@mintlify/validation 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/schemas/analytics.d.ts +17 -4
- package/dist/schemas/anchorColors.d.ts +2 -2
- package/dist/schemas/anchors.d.ts +7 -7
- package/dist/schemas/colors.d.ts +6 -6
- package/dist/schemas/config.d.ts +135 -102
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@mintlify/validation"]=t():e["@mintlify/validation"]=t()}(this,(()=>(()=>{"use strict";var e={3607:function(e,t,r){var a=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var a,s=0,n=t.length;s<n;s++)!a&&s in t||(a||(a=Array.prototype.slice.call(t,0,s)),a[s]=t[s]);return e.concat(a||Array.prototype.slice.call(t))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mintConfigSchema=t.validateMintConfig=void 0;var n,i,o,d,u,c,l,p=s(r(8841)),h=r(7059),m=r(3555),f=r(5815),y=r(5573),g=r(6217);t.validateMintConfig=function(e){var t,r=new m.MintValidationResults;if(null==e||null==e||0===Object.entries(e).length)return r.errors.push("Mint Config object cannot be empty."),r.status="error",r;var s=(0,y.validateAnchorsWarnings)(e.anchors,e.navigation),n=(0,g.validateVersionsInNavigation)(e.navigation,null!==(t=e.versions)&&void 0!==t?t:[]);r.errors=a(a([],r.errors,!0),n.errors,!0),r.warnings=a(a(a([],r.warnings,!0),n.warnings,!0),s.warnings,!0);var i=h.configSchema.safeParse(e);return 0==i.success&&i.error.issues.forEach((function(e){var t,a;if("invalid_union"===e.code&&(null===(a=e.unionErrors)||void 0===a?void 0:a.length)>0)(t=r.errors).push.apply(t,(0,f.flattenUnionErrorMessages)(e.unionErrors));else{var s=e.message;"Required"===s&&(s="Missing required field: "+e.path.join(".")),r.errors.push(s)}})),r.status=r.errors.length?"error":"success",r},t.mintConfigSchema=(null===(i=null===(n=(l=(0,p.default)(h.configSchema,"Schema")).definitions)||void 0===n?void 0:n.Schema)||void 0===i||delete i.properties.__injected,null===(d=null===(o=l.definitions)||void 0===o?void 0:o.Schema)||void 0===d||delete d.properties.colors.properties.ultraDark,null===(c=null===(u=l.definitions)||void 0===u?void 0:u.Schema)||void 0===c||delete c.properties.colors.properties.ultraLight,l)},1271:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.analyticsSchema=void 0;var a=r(8754),s=a.z.object({apiKey:a.z.string({required_error:"Amplitude apiKey is missing.",invalid_type_error:"Amplitude apiKey must be a string."})},{invalid_type_error:"Amplitude analytics config must be an object with an apiKey property."}),n=a.z.object({siteId:a.z.string({required_error:"Fathom siteId is missing.",invalid_type_error:"Fathom siteId must be a string."})},{invalid_type_error:"Fathom analytics config must be an object with a siteId property."}),i=a.z.object({measurementId:a.z.string({required_error:"Google Analytics measurementId is missing.",invalid_type_error:"Google Analytics measurementId must be a string."}).startsWith("G","Google Analytics measurementId must start with G.")},{invalid_type_error:"Google Analytics config must be an object with a measurementId property."}),o=a.z.object({tagId:a.z.string({required_error:"Google Tag Manager tagId is missing.",invalid_type_error:"Google Tag Manager tagId must be a string."}).startsWith("G","Google Tag Manager tagId must start with G.")},{invalid_type_error:"Google Tag Manager config must be an object with a tagId property."}),d=a.z.object({hjid:a.z.string({required_error:"Hotjar hjid is missing.",invalid_type_error:"Hotjar hjid must be a string."}),hjsv:a.z.string({required_error:"Hotjar hjsv is missing.",invalid_type_error:"Hotjar hjsv must be a string."})},{invalid_type_error:"Hotjar config must be an object with a hjid and hjsv property."}),u=a.z.object({publicApiKey:a.z.string({required_error:"Public Api Key is required for the Koala snippet to run.",invalid_type_error:"Koala Public Api Key must be a string."}).refine((function(e){return e.length>=2}),"Koala Public Api Key must have at least two characters")},{invalid_type_error:"Koala config must be an object with a publicApiKey property."}),c=a.z.object({appId:a.z.string({required_error:"Logrocket appId is missing.",invalid_type_error:"Logrocket appId must be a string."})},{invalid_type_error:"Logrocket config must be an object with an appId property."}),l=a.z.object({projectToken:a.z.string({required_error:"Mixpanel projectToken is missing.",invalid_type_error:"Mixpanel projectToken must be a string."})},{invalid_type_error:"Mixpanel config must be an object with a projectToken property."}),p=a.z.object({id:a.z.string({required_error:"Pirsch id is missing.",invalid_type_error:"Pirsch id must be a string."})},{invalid_type_error:"Pirsch config must be an object with an id property."}),h=a.z.object({apiKey:a.z.string({required_error:"Posthog apiKey is missing.",invalid_type_error:"Posthog apiKey must be a string."}).startsWith("phc_","Posthog apiKey must start with phc_"),apiHost:a.z.string({invalid_type_error:"Posthog apiHost must be a string."}).url("Posthog apiHost must be a valid URL.").optional()},{invalid_type_error:"Posthog config must be an object with an apiKey property."}),m=a.z.object({domain:a.z.string({required_error:"Plausible domain is missing.",invalid_type_error:"Plausible domain must be a string."}).refine((function(e){return!e.startsWith("http://")&&!e.startsWith("https://")}),"Plausible domain must not start with http:// or https://")},{invalid_type_error:"Plausible config must be an object with a domain property. The domain must not start with http:// or https://."});t.analyticsSchema=a.z.object({amplitude:s.optional(),fathom:n.optional(),ga4:i.optional(),gtm:o.optional(),hotjar:d.optional(),koala:u.optional(),logrocket:c.optional(),mixpanel:l.optional(),pirsch:p.optional(),posthog:h.optional(),plausible:m.optional()}).strict("Mintlify only supports analytics integrations from: amplitude, fathom, ga4, gtm, hotjar, koala, logrocket, mixpanel, pirsch, posthog and plausible.")},6249:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.anchorColorSchema=void 0;var a=r(8754),s=r(2609);t.anchorColorSchema=a.z.union([a.z.string({invalid_type_error:"Anchor color must be a string."}).regex(s.hexadecimalPattern,"Anchor color must be a hexadecimal color."),a.z.object({from:a.z.string({invalid_type_error:"Anchor color.from must be a string."}).regex(s.hexadecimalPattern,"Anchor color.from must be a hexadecimal color."),via:a.z.string({invalid_type_error:"Anchor color.via must be a string."}).regex(s.hexadecimalPattern,"Anchor color.via must be undefined or a hexadecimal color.").optional(),to:a.z.string({invalid_type_error:"Anchor color.to must be a string."}).regex(s.hexadecimalPattern,"Anchor color.to must be a hexadecimal color.")}).strict("Anchors with gradient colors can only have properties from, via, and to with valid hexadecimal colors.")],{invalid_type_error:"Anchor color must be a string or an object with from and to properties."})},3838:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.anchorsSchema=void 0;var a=r(8754),s=r(6249);t.anchorsSchema=a.z.object({name:a.z.string({required_error:"Every anchor must have a name.",invalid_type_error:"Anchor name must be a string."}).trim().min(1,"Anchor name is empty."),url:a.z.string({required_error:"Every anchor must have a url",invalid_type_error:"Anchor url must be a string."}).trim().min(1,"Anchor URL is missing."),icon:a.z.string({invalid_type_error:"Anchor icon must be the name of a Font Awesome icon. Visit this link to see all the available icons: https://fontawesome.com/icons"}).refine((function(e){return!e.startsWith("fa-")}),'icon does not need to start with "fa-". Please delete "fa-" and keep the rest of the icon name.').optional(),iconType:a.z.enum(["brands","duotone","light","sharp-solid","solid","thin"],{errorMap:function(){return{message:"anchor iconType must be one of the following strings: brands, duotone, light, sharp-solid, solid, thin"}}}).optional(),color:s.anchorColorSchema.optional(),isDefaultHidden:a.z.boolean({invalid_type_error:"Anchor isDefaultHidden must be a boolean. Try writing true or false without quotes around them."}).optional(),version:a.z.string({invalid_type_error:"Version must be a string in the versions array."}).optional()}).array()},6861:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.colorsSchema=void 0;var a=r(8754),s=r(6249),n=r(2609);t.colorsSchema=a.z.object({primary:a.z.string({invalid_type_error:"Primary color must be a string."}).min(1,"Color primary is missing.").regex(n.hexadecimalPattern,"Primary color must be a hexadecimal color including the # at the start."),light:a.z.string({invalid_type_error:"Light color must be a string."}).regex(n.hexadecimalPattern,"Light color must be a hexadecimal color including the # at the start.").optional(),dark:a.z.string({invalid_type_error:"Dark color must be a string."}).regex(n.hexadecimalPattern,"Dark color must be a hexadecimal color including the # at the start.").optional(),background:a.z.object({light:a.z.string({invalid_type_error:"Background light color must be a string."}).regex(n.hexadecimalPattern,"Background light color must be a hexadecimal color including the # at the start.").optional(),dark:a.z.string({invalid_type_error:"Background dark color must be a string."}).regex(n.hexadecimalPattern,"Background dark color must be a hexadecimal color including the # at the start.").optional()}).optional(),anchors:s.anchorColorSchema.optional(),ultraLight:a.z.any().optional(),ultraDark:a.z.any().optional()},{required_error:'Colors are missing. You need to define at least the primary color. For example: { "colors": { "primary": "#ff0000" } }',invalid_type_error:"Colors must be an object."}).strict("Some of the colors in mint.json are invalid, did you make a typo? We only accept primary, light, dark, background, and anchors.")},7059:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.configSchema=void 0;var a=r(8754),s=r(6861),n=r(5112),i=r(2341),o=r(9294),d=r(7243),u=r(3838),c=r(1271),l=a.z.union([a.z.string().min(3,"Logo needs to be a path to your logo file including the file extension."),a.z.object({light:a.z.string(),dark:a.z.string(),href:a.z.string().optional()})],{invalid_type_error:"Logo must be a string or an object with light and dark properties."}),p=a.z.object({baseUrl:a.z.union([a.z.string().url("api.baseUrl must be a valid URL."),a.z.array(a.z.string().url("api.baseUrl array entries must be valid URLs."))]).optional(),auth:a.z.object({method:a.z.string({invalid_type_error:"api.auth.method has to be a string equal to one of: bearer, basic, key"}).refine((function(e){return"bearer"===e||"basic"===e||"key"===e}),{message:"api.auth.method has to be one of: bearer, basic, key"}).optional(),name:a.z.string().optional(),inputPrefix:a.z.string().optional()}).strict("api.auth can only contain method, name, and inputPrefix.").optional(),hidePlayground:a.z.boolean({invalid_type_error:"hidePlayground must be a boolean. Try writing true or false without the quotes."}).optional()},{invalid_type_error:"api must be an object. The object can have baseUrl, auth, and hidePlayground as properties."}).strict("api can only contain baseUrl, auth, and hidePlayground as properties."),h=a.z.object({default:a.z.string().optional(),isHidden:a.z.boolean({invalid_type_error:"isHidden must be a boolean. Try writing true or false without the quotes."}).optional()}),m=function(e){return a.z.union([a.z.object({type:a.z.literal("link").optional(),name:a.z.string({required_error:"Name must be defined when using a CTA button",invalid_type_error:"Name must be a string"}),url:a.z.string({required_error:e+".url is missing",invalid_type_error:e+".url must be a string"}).min(1,e+".url cannot be empty")}).strict(e+" can only contain name, url, and type properties. Set a different type if you need to set other fields."),a.z.object({type:a.z.literal("github"),url:a.z.string({required_error:e+".url is missing. Please set the url to a link to your GitHub repository.",invalid_type_error:e+".url must be a string. Specifically, set the url to a link to your GitHub repository."}).url(e+".url must be a valid url pointing to your GitHub repository.")}).strict(e+' can only contain url and type properties when type="github". Please delete any other properties you have set.')],{invalid_type_error:e+' must be an object. The object can have type="link" (the default) if you define a url and a name. You can also have type="github" if you define a url pointing to your GitHub repo and set the type in the object.'})},f=a.z.union([a.z.array(a.z.object({type:a.z.string(),url:a.z.string().url("footerSocials url must be a valid url")})),a.z.record(a.z.string().trim().min(1,"footerSocials name (the key in the object) must not be empty"),a.z.string().url("footerSocials url (the value in the object) must be a valid url"))],{invalid_type_error:'footerSocials must be an object where the key is the name of the social media and the value is the url to your profile. For example: { "twitter": "https://twitter.com/mintlify" }'}),y=a.z.object({intercom:a.z.string({invalid_type_error:"integrations.intercom must be a string"}).min(6,"integrations.intercom must be a valid Intercom app ID").optional()},{invalid_type_error:"integrations must be an object"});t.configSchema=a.z.object({$schema:a.z.string().url().optional().default("https://mintlify.com/schema.json"),mintlify:a.z.string().optional(),name:i.nameSchema,logo:l.optional(),favicon:n.faviconSchema,openapi:a.z.union([a.z.string({invalid_type_error:"openapi must be a string or an array of strings of absolute or relative URLs pointing to your OpenAPI file."}),a.z.array(a.z.string({invalid_type_error:"openapi must be a string or an array of strings of absolute or relative URLs pointing to your OpenAPI file."}))]).optional(),api:p.optional(),modeToggle:h.optional(),versions:o.versionsSchema.optional(),metadata:a.z.record(a.z.string({invalid_type_error:"metadata keys must be strings"}),a.z.string({invalid_type_error:"metadata values must be strings"}).min(1,"metadata values must not be empty")).optional(),colors:s.colorsSchema,topbarCtaButton:m("topbarCtaButton").optional(),topbarLinks:a.z.array(m("topbarLinks")).optional(),navigation:d.navigationConfigSchema,topAnchor:a.z.object({name:a.z.string({required_error:"topAnchor.name is missing, set it or delete the entire topAnchor property.",invalid_type_error:"topAnchor.name must be a string"}),icon:a.z.string({invalid_type_error:"topAnchor.icon must be a string"}).optional(),iconType:a.z.enum(["brands","duotone","light","sharp-solid","solid","thin"],{errorMap:function(){return{message:"topAnchor.iconType must be one of the following strings: brands, duotone, light, sharp-solid, solid, thin"}}}).optional()},{invalid_type_error:"topAnchor must be an object with a name property. Delete the topAnchor if you don't want to customize the values."}).strict("topAnchor can only have name, icon, and iconType properties.").optional(),anchors:u.anchorsSchema.optional(),footerSocials:f.optional(),backgroundImage:a.z.string().optional(),analytics:c.analyticsSchema.optional(),integrations:y.optional(),__injected:a.z.undefined({invalid_type_error:"Do not add __injected to mint.json. Mintlify uses this property internally."})})},5112:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.faviconSchema=void 0;var a=r(8754);t.faviconSchema=a.z.string({required_error:"Favicon is missing. Please set favicon to the path of your favicon file. We recommend using a .svg or .png file. Mintlify automatically resizes your favicon to the sizes needed.",invalid_type_error:"Favicon must be a string path pointing to the favicon file in your Mintlify folder."}).refine((function(e){return"ico"!==e.split(".").pop()}),{message:"Favicon cannot be an .ico file."})},2341:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.nameSchema=void 0;var a=r(8754);t.nameSchema=a.z.string({required_error:"Name is missing."}).min(1,"Name cannot be empty.").trim()},7243:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.navigationConfigSchema=void 0;var a=r(8754),s=a.z.lazy((function(){return a.z.object({group:a.z.string({required_error:"Missing navigation group name.",invalid_type_error:"Group must be a string. We use the group name to create the navigation sidebar."}),pages:a.z.array(a.z.union([s,a.z.string().min(1,"Page cannot be an empty string.")])).min(1,"Pages array can't be empty."),version:a.z.string({invalid_type_error:"Version must be a string."}).optional()},{invalid_type_error:"Navigation entry must be an object."}).strict("Navigation entry can only contain group, pages, and version.")}));t.navigationConfigSchema=a.z.array(s,{required_error:"Navigation is missing.",invalid_type_error:"Navigation must be an array."}).min(1,"Navigation cannot be an empty array. Please add at least one group.")},9294:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.versionsSchema=void 0;var a=r(8754);t.versionsSchema=a.z.array(a.z.string({invalid_type_error:"Versions must be an array of strings."})).min(1,"Versions array cannot be empty. Either delete the property or add strings to the array.")},3555:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MintValidationResults=void 0;t.MintValidationResults=function(){this.status="success",this.errors=[],this.warnings=[]}},5815:function(e,t){var r=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var a,s=0,n=t.length;s<n;s++)!a&&s in t||(a||(a=Array.prototype.slice.call(t,0,s)),a[s]=t[s]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.flattenUnionErrorMessages=void 0,t.flattenUnionErrorMessages=function e(t){return t.reduce((function(t,a){return Array.isArray(a.unionErrors)&&a.unionErrors.length>0?r(r([],t,!0),e(a.unionErrors),!0):r(r([],t,!0),[a.message],!1)}),[])}},2609:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hexadecimalPattern=void 0,t.hexadecimalPattern=/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/},5573:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validateAnchorsWarnings=void 0;var a=r(7243),s=r(3555);function n(e,t){return"string"==typeof e?e.startsWith(t):null!=e.pages&&e.pages.some((function(e){return n(e,t)}))}t.validateAnchorsWarnings=function(e,t){var r=new s.MintValidationResults;return null!=e&&Array.isArray(e)&&0!==e.length?t&&!0===a.navigationConfigSchema.safeParse(t).success&&e.forEach((function(e){e.url.startsWith("mailto:")||e.url.startsWith("http")||e.url.startsWith("https")||t.some((function(t){return n(t,e.url)}))||r.warnings.push("No pages in the navigation match anchor "+e.url+" you should have at least one page that starts with "+e.url)})):r.warnings.push("Mintlify runs without anchors but most sites look better with at least one."),r}},6217:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validateVersionsInNavigation=t.flattenNavigationVersions=void 0;var a=r(7243),s=r(3555);function n(e,t){return void 0===t&&(t=[]),e.forEach((function(e){return null==e||"string"==typeof e?t:(e.version&&t.push(e.version),Array.isArray(e.pages)?n(e.pages,t):t)})),t}function i(e,t){if("string"==typeof e)return[];var r=[];return e.version&&null!=t&&e.version!==t&&r.push('Please do not set versions on groups nested inside a group that already has a version. The group "'.concat(e.group,'" has version "').concat(e.version,'" set and it is nested in a group that has the version "').concat(t,'" set.')),e.pages?r.concat(e.pages.map((function(r){return i(r,t||e.version)})).flat().filter(Boolean)):[]}t.flattenNavigationVersions=n,t.validateVersionsInNavigation=function(e,t){void 0===t&&(t=[]);var r=new s.MintValidationResults;if(null==e||!1===a.navigationConfigSchema.safeParse(e).success)return r;var o=n(e);return o.forEach((function(e){t.includes(e)||r.errors.push("Version ".concat(e," is not included in the versions array, but is used in the navigation. Please add ").concat(e," to the versions array."))})),0===o.length&&t.length>0&&r.warnings.push("You have versions defined in the config, but no versions are used in the navigation."),e.forEach((function(e){var t;(t=r.warnings).push.apply(t,i(e,null))})),r}},8841:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.zodToJsonSchema=void 0;const a=r(4357);Object.defineProperty(t,"zodToJsonSchema",{enumerable:!0,get:function(){return a.zodToJsonSchema}}),t.default=a.zodToJsonSchema},7181:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultOptions=t.defaultOptions=void 0,t.defaultOptions={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1},t.getDefaultOptions=e=>"string"==typeof e?Object.assign(Object.assign({},t.defaultOptions),{name:e}):Object.assign(Object.assign({},t.defaultOptions),e)},1908:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getRefs=void 0;const a=r(7181);t.getRefs=e=>{const t=(0,a.getDefaultOptions)(e),r=void 0!==t.name?[...t.basePath,t.definitionPath,t.name]:t.basePath;return Object.assign(Object.assign({},t),{currentPath:r,propertyPath:void 0,seen:[]})}},6519:(e,t)=>{function r(e,t,r,a){(null==a?void 0:a.errorMessages)&&r&&(e.errorMessage=Object.assign(Object.assign({},e.errorMessage),{[t]:r}))}Object.defineProperty(t,"__esModule",{value:!0}),t.setResponseValueAndErrors=t.addErrorMessage=void 0,t.addErrorMessage=r,t.setResponseValueAndErrors=function(e,t,a,s,n){e[t]=a,r(e,t,s,n)}},9959:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseDef=void 0;const a=r(8754),s=r(6840),n=r(2886),i=r(2722),o=r(5823),d=r(423),u=r(9444),c=r(4117),l=r(3245),p=r(4804),h=r(2105),m=r(2734),f=r(8392),y=r(8716),g=r(2295),v=r(2200),_=r(5907),b=r(993),Z=r(8490),P=r(938),x=r(8289),T=r(1250),I=r(9033),j=r(3564),O=r(9226),k=r(9229),w=r(3133),C=r(9646),D=r(8e3),A=r(34);function N(e,t){const r=t.seen.find((t=>Object.is(t.def,e)));if(r)return S(r,t);const a={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.push(a);const s=z(e,e.typeName,t);return s&&E(e,s),a.jsonSchema=s,s}t.parseDef=N;const S=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:0===e.path.length?"":1===e.path.length?`${e.path[0]}/`:e.path.join("/")};case"relative":return{$ref:M(t.currentPath,e.path)};case"none":return e.path.length<t.currentPath.length&&e.path.every(((e,r)=>t.currentPath[r]===e))?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),{}):e.jsonSchema}},M=(e,t)=>{let r=0;for(;r<e.length&&r<t.length&&e[r]===t[r];r++);return[(e.length-r).toString(),...t.slice(r)].join("/")},z=(e,t,r)=>{switch(t){case a.ZodFirstPartyTypeKind.ZodString:return(0,k.parseStringDef)(e,r);case a.ZodFirstPartyTypeKind.ZodNumber:return(0,Z.parseNumberDef)(e,r);case a.ZodFirstPartyTypeKind.ZodObject:return(0,P.parseObjectDef)(e,r);case a.ZodFirstPartyTypeKind.ZodBigInt:return(0,i.parseBigintDef)();case a.ZodFirstPartyTypeKind.ZodBoolean:return(0,o.parseBooleanDef)();case a.ZodFirstPartyTypeKind.ZodDate:return(0,c.parseDateDef)();case a.ZodFirstPartyTypeKind.ZodUndefined:return(0,C.parseUndefinedDef)();case a.ZodFirstPartyTypeKind.ZodNull:return(0,_.parseNullDef)(r);case a.ZodFirstPartyTypeKind.ZodArray:return(0,n.parseArrayDef)(e,r);case a.ZodFirstPartyTypeKind.ZodUnion:case a.ZodFirstPartyTypeKind.ZodDiscriminatedUnion:return(0,D.parseUnionDef)(e,r);case a.ZodFirstPartyTypeKind.ZodIntersection:return(0,m.parseIntersectionDef)(e,r);case a.ZodFirstPartyTypeKind.ZodTuple:return(0,w.parseTupleDef)(e,r);case a.ZodFirstPartyTypeKind.ZodRecord:return(0,j.parseRecordDef)(e,r);case a.ZodFirstPartyTypeKind.ZodLiteral:return(0,f.parseLiteralDef)(e,r);case a.ZodFirstPartyTypeKind.ZodEnum:return(0,h.parseEnumDef)(e);case a.ZodFirstPartyTypeKind.ZodNativeEnum:return(0,g.parseNativeEnumDef)(e);case a.ZodFirstPartyTypeKind.ZodNullable:return(0,b.parseNullableDef)(e,r);case a.ZodFirstPartyTypeKind.ZodOptional:return(0,x.parseOptionalDef)(e,r);case a.ZodFirstPartyTypeKind.ZodMap:return(0,y.parseMapDef)(e,r);case a.ZodFirstPartyTypeKind.ZodSet:return(0,O.parseSetDef)(e,r);case a.ZodFirstPartyTypeKind.ZodLazy:return N(e.getter()._def,r);case a.ZodFirstPartyTypeKind.ZodPromise:return(0,I.parsePromiseDef)(e,r);case a.ZodFirstPartyTypeKind.ZodNaN:case a.ZodFirstPartyTypeKind.ZodNever:return(0,v.parseNeverDef)();case a.ZodFirstPartyTypeKind.ZodEffects:return(0,p.parseEffectsDef)(e,r);case a.ZodFirstPartyTypeKind.ZodAny:return(0,s.parseAnyDef)();case a.ZodFirstPartyTypeKind.ZodUnknown:return(0,A.parseUnknownDef)();case a.ZodFirstPartyTypeKind.ZodDefault:return(0,l.parseDefaultDef)(e,r);case a.ZodFirstPartyTypeKind.ZodBranded:return(0,d.parseBrandedDef)(e,r);case a.ZodFirstPartyTypeKind.ZodCatch:return(0,u.parseCatchDef)(e,r);case a.ZodFirstPartyTypeKind.ZodPipeline:return(0,T.parsePipelineDef)(e,r);case a.ZodFirstPartyTypeKind.ZodFunction:case a.ZodFirstPartyTypeKind.ZodVoid:case a.ZodFirstPartyTypeKind.ZodSymbol:default:return}},E=(e,t)=>(e.description&&(t.description=e.description),t)},6840:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseAnyDef=void 0,t.parseAnyDef=function(){return{}}},2886:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseArrayDef=void 0;const a=r(8754),s=r(6519),n=r(9959);t.parseArrayDef=function(e,t){var r,i;const o={type:"array"};return(null===(i=null===(r=e.type)||void 0===r?void 0:r._def)||void 0===i?void 0:i.typeName)!==a.ZodFirstPartyTypeKind.ZodAny&&(o.items=(0,n.parseDef)(e.type._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"items"]}))),e.minLength&&(0,s.setResponseValueAndErrors)(o,"minItems",e.minLength.value,e.minLength.message,t),e.maxLength&&(0,s.setResponseValueAndErrors)(o,"maxItems",e.maxLength.value,e.maxLength.message,t),o}},2722:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseBigintDef=void 0,t.parseBigintDef=function(){return{type:"integer",format:"int64"}}},5823:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseBooleanDef=void 0,t.parseBooleanDef=function(){return{type:"boolean"}}},423:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseBrandedDef=void 0;const a=r(9959);t.parseBrandedDef=function(e,t){return(0,a.parseDef)(e.type._def,t)}},9444:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseCatchDef=void 0;const a=r(9959);t.parseCatchDef=(e,t)=>(0,a.parseDef)(e.innerType._def,t)},4117:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseDateDef=void 0,t.parseDateDef=function(){return{type:"string",format:"date-time"}}},3245:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseDefaultDef=void 0;const a=r(9959);t.parseDefaultDef=function(e,t){return Object.assign(Object.assign({},(0,a.parseDef)(e.innerType._def,t)),{default:e.defaultValue()})}},4804:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseEffectsDef=void 0;const a=r(9959);t.parseEffectsDef=function(e,t){return"input"===t.effectStrategy?(0,a.parseDef)(e.schema._def,t):{}}},2105:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseEnumDef=void 0,t.parseEnumDef=function(e){return{type:"string",enum:e.values}}},2734:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseIntersectionDef=void 0;const a=r(9959);t.parseIntersectionDef=function(e,t){const r=[(0,a.parseDef)(e.left._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"allOf","0"]})),(0,a.parseDef)(e.right._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"allOf","1"]}))].filter((e=>!!e));return r.length?{allOf:r}:void 0}},8392:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseLiteralDef=void 0,t.parseLiteralDef=function(e,t){const r=typeof e.value;return"bigint"!==r&&"number"!==r&&"boolean"!==r&&"string"!==r?{type:Array.isArray(e.value)?"array":"object"}:"openApi3"===t.target?{type:"bigint"===r?"integer":r,enum:[e.value]}:{type:"bigint"===r?"integer":r,const:e.value}}},8716:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseMapDef=void 0;const a=r(9959);t.parseMapDef=function(e,t){return{type:"array",maxItems:125,items:{type:"array",items:[(0,a.parseDef)(e.keyType._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"items","items","0"]}))||{},(0,a.parseDef)(e.valueType._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"items","items","1"]}))||{}],minItems:2,maxItems:2}}}},2295:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseNativeEnumDef=void 0,t.parseNativeEnumDef=function(e){const t=e.values,r=Object.keys(e.values).filter((e=>"number"!=typeof t[t[e]])).map((e=>t[e])),a=Array.from(new Set(r.map((e=>typeof e))));return{type:1===a.length?"string"===a[0]?"string":"number":["string","number"],enum:r}}},2200:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseNeverDef=void 0,t.parseNeverDef=function(){return{not:{}}}},5907:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseNullDef=void 0,t.parseNullDef=function(e){return"openApi3"===e.target?{enum:["null"],nullable:!0}:{type:"null"}}},993:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseNullableDef=void 0;const a=r(9959),s=r(8e3);t.parseNullableDef=function(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return"openApi3"===t.target?{type:s.primitiveMappings[e.innerType._def.typeName],nullable:!0}:{type:[s.primitiveMappings[e.innerType._def.typeName],"null"]};const r=(0,a.parseDef)(e.innerType._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"anyOf","0"]}));return r?"openApi3"===t.target?Object.assign(Object.assign({},r),{nullable:!0}):{anyOf:[r,{type:"null"}]}:void 0}},8490:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseNumberDef=void 0;const a=r(6519);t.parseNumberDef=function(e,t){const r={type:"number"};if(!e.checks)return r;for(const s of e.checks)switch(s.kind){case"int":r.type="integer",(0,a.addErrorMessage)(r,"type",s.message,t);break;case"min":"jsonSchema7"===t.target?s.inclusive?(0,a.setResponseValueAndErrors)(r,"minimum",s.value,s.message,t):(0,a.setResponseValueAndErrors)(r,"exclusiveMinimum",s.value,s.message,t):(s.inclusive||(r.exclusiveMinimum=!0),(0,a.setResponseValueAndErrors)(r,"minimum",s.value,s.message,t));break;case"max":"jsonSchema7"===t.target?s.inclusive?(0,a.setResponseValueAndErrors)(r,"maximum",s.value,s.message,t):(0,a.setResponseValueAndErrors)(r,"exclusiveMaximum",s.value,s.message,t):(s.inclusive||(r.exclusiveMaximum=!0),(0,a.setResponseValueAndErrors)(r,"maximum",s.value,s.message,t));break;case"multipleOf":(0,a.setResponseValueAndErrors)(r,"multipleOf",s.value,s.message,t)}return r}},938:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseObjectDef=void 0;const a=r(9959);t.parseObjectDef=function(e,t){var r;const s=Object.assign(Object.assign({type:"object"},Object.entries(e.shape()).reduce(((e,[r,s])=>{if(void 0===s||void 0===s._def)return e;const n=(0,a.parseDef)(s._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"properties",r],propertyPath:[...t.currentPath,"properties",r]}));return void 0===n?e:{properties:Object.assign(Object.assign({},e.properties),{[r]:n}),required:s.isOptional()?e.required:[...e.required,r]}}),{properties:{},required:[]})),{additionalProperties:"ZodNever"===e.catchall._def.typeName?"passthrough"===e.unknownKeys:null===(r=(0,a.parseDef)(e.catchall._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"additionalProperties"]})))||void 0===r||r});return s.required.length||delete s.required,s}},8289:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseOptionalDef=void 0;const a=r(9959);t.parseOptionalDef=(e,t)=>{var r;if(t.currentPath.toString()===(null===(r=t.propertyPath)||void 0===r?void 0:r.toString()))return(0,a.parseDef)(e.innerType._def,t);const s=(0,a.parseDef)(e.innerType._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"anyOf","1"]}));return s?{anyOf:[{not:{}},s]}:{}}},1250:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parsePipelineDef=void 0;const a=r(9959);t.parsePipelineDef=(e,t)=>{const r=(0,a.parseDef)(e.in._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"allOf","0"]}));return{allOf:[r,(0,a.parseDef)(e.out._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"allOf",r?"1":"0"]}))].filter((e=>void 0!==e))}}},9033:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parsePromiseDef=void 0;const a=r(9959);t.parsePromiseDef=function(e,t){return(0,a.parseDef)(e.type._def,t)}},3564:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRecordDef=void 0;const a=r(8754),s=r(9959),n=r(9229);t.parseRecordDef=function(e,t){var r,i,o;const d={type:"object",additionalProperties:(0,s.parseDef)(e.valueType._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"additionalProperties"]}))||{}};if((null===(r=e.keyType)||void 0===r?void 0:r._def.typeName)===a.ZodFirstPartyTypeKind.ZodString&&(null===(i=e.keyType._def.checks)||void 0===i?void 0:i.length)){const r=Object.entries((0,n.parseStringDef)(e.keyType._def,t)).reduce(((e,[t,r])=>"type"===t?e:Object.assign(Object.assign({},e),{[t]:r})),{});return Object.assign(Object.assign({},d),{propertyNames:r})}return(null===(o=e.keyType)||void 0===o?void 0:o._def.typeName)===a.ZodFirstPartyTypeKind.ZodEnum?Object.assign(Object.assign({},d),{propertyNames:{enum:e.keyType._def.values}}):d}},9226:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseSetDef=void 0;const a=r(6519),s=r(9959);t.parseSetDef=function(e,t){const r={type:"array",items:(0,s.parseDef)(e.valueType._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"items"]}))};return e.minSize&&(0,a.setResponseValueAndErrors)(r,"minItems",e.minSize.value,e.minSize.message,t),e.maxSize&&(0,a.setResponseValueAndErrors)(r,"maxItems",e.maxSize.value,e.maxSize.message,t),r}},9229:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseStringDef=void 0;const a=r(6519);t.parseStringDef=function(e,t){const r={type:"string"};if(e.checks)for(const i of e.checks)switch(i.kind){case"min":(0,a.setResponseValueAndErrors)(r,"minLength","number"==typeof r.minLength?Math.max(r.minLength,i.value):i.value,i.message,t);break;case"max":(0,a.setResponseValueAndErrors)(r,"maxLength","number"==typeof r.maxLength?Math.min(r.maxLength,i.value):i.value,i.message,t);break;case"email":(0,a.setResponseValueAndErrors)(r,"format","email",i.message,t);break;case"url":(0,a.setResponseValueAndErrors)(r,"format","uri",i.message,t);break;case"uuid":(0,a.setResponseValueAndErrors)(r,"format","uuid",i.message,t);break;case"regex":n(r,i.regex.source,i.message,t);break;case"cuid":n(r,"^c[^\\s-]{8,}$",i.message,t);break;case"cuid2":n(r,"^[a-z][a-z0-9]*$",i.message,t);break;case"startsWith":n(r,"^"+s(i.value),i.message,t);break;case"endsWith":n(r,s(i.value)+"$",i.message,t);break;case"trim":break;case"datetime":(0,a.setResponseValueAndErrors)(r,"format","date-time",i.message,t);break;case"length":(0,a.setResponseValueAndErrors)(r,"minLength","number"==typeof r.minLength?Math.max(r.minLength,i.value):i.value,i.message,t),(0,a.setResponseValueAndErrors)(r,"maxLength","number"==typeof r.maxLength?Math.min(r.maxLength,i.value):i.value,i.message,t)}return r};const s=e=>Array.from(e).map((e=>/[a-zA-Z0-9]/.test(e)?e:`\\${e}`)).join(""),n=(e,t,r,s)=>{var n;e.pattern||(null===(n=e.allOf)||void 0===n?void 0:n.some((e=>e.pattern)))?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push(Object.assign({pattern:e.pattern},e.errorMessage&&s.errorMessages&&{errorMessage:{pattern:e.errorMessage.pattern}})),delete e.pattern,e.errorMessage&&(delete e.errorMessage.pattern,0===Object.keys(e.errorMessage).length&&delete e.errorMessage)),e.allOf.push(Object.assign({pattern:t},r&&s.errorMessages&&{errorMessage:{pattern:r}}))):(0,a.setResponseValueAndErrors)(e,"pattern",t,r,s)}},3133:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseTupleDef=void 0;const a=r(9959);t.parseTupleDef=function(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map(((e,r)=>(0,a.parseDef)(e._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"items",`${r}`]})))).reduce(((e,t)=>void 0===t?e:[...e,t]),[]),additionalItems:(0,a.parseDef)(e.rest._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"additionalItems"]}))}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map(((e,r)=>(0,a.parseDef)(e._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"items",`${r}`]})))).reduce(((e,t)=>void 0===t?e:[...e,t]),[])}}},9646:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseUndefinedDef=void 0,t.parseUndefinedDef=function(){return{not:{}}}},8e3:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseUnionDef=t.primitiveMappings=void 0;const a=r(9959);t.primitiveMappings={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"},t.parseUnionDef=function(e,r){if("openApi3"===r.target)return s(e,r);const a=e.options instanceof Map?Array.from(e.options.values()):e.options;if(a.every((e=>e._def.typeName in t.primitiveMappings&&(!e._def.checks||!e._def.checks.length)))){const e=a.reduce(((e,r)=>{const a=t.primitiveMappings[r._def.typeName];return a&&!e.includes(a)?[...e,a]:e}),[]);return{type:e.length>1?e:e[0]}}if(a.every((e=>"ZodLiteral"===e._def.typeName))){const e=a.reduce(((e,t)=>{const r=typeof t._def.value;switch(r){case"string":case"number":case"boolean":return[...e,r];case"bigint":return[...e,"integer"];case"object":if(null===t._def.value)return[...e,"null"];default:return e}}),[]);if(e.length===a.length){const t=e.filter(((e,t,r)=>r.indexOf(e)===t));return{type:t.length>1?t:t[0],enum:a.reduce(((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value]),[])}}}else if(a.every((e=>"ZodEnum"===e._def.typeName)))return{type:"string",enum:a.reduce(((e,t)=>[...e,...t._def.values.filter((t=>!e.includes(t)))]),[])};return s(e,r)};const s=(e,t)=>{const r=(e.options instanceof Map?Array.from(e.options.values()):e.options).map(((e,r)=>(0,a.parseDef)(e._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"anyOf",`${r}`]})))).filter((e=>!!e&&(!t.strictUnions||"object"==typeof e&&Object.keys(e).length>0)));return r.length?{anyOf:r}:void 0}},34:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseUnknownDef=void 0,t.parseUnknownDef=function(){return{}}},4357:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.zodToJsonSchema=void 0;const a=r(9959),s=r(1908);t.zodToJsonSchema=(e,t)=>{var r;const n=(0,s.getRefs)(t),i="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce(((e,[t,r])=>{var s;return Object.assign(Object.assign({},e),{[t]:null!==(s=(0,a.parseDef)(r._def,Object.assign(Object.assign({},n),{currentPath:[...n.basePath,n.definitionPath,t]})))&&void 0!==s?s:{}})}),{}):void 0,o="string"==typeof t?t:null==t?void 0:t.name,d=null!==(r=(0,a.parseDef)(e._def,void 0===o?n:Object.assign(Object.assign({},n),{currentPath:[...n.basePath,n.definitionPath,o]})))&&void 0!==r?r:{},u=void 0===o?i?Object.assign(Object.assign({},d),{[n.definitionPath]:i}):d:{$ref:[..."relative"===n.$refStrategy?[]:n.basePath,n.definitionPath,o].join("/"),[n.definitionPath]:Object.assign(Object.assign({},i),{[o]:d})};return"jsonSchema7"===n.target&&(u.$schema="http://json-schema.org/draft-07/schema#"),u}},8280:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ZodError=t.quotelessJson=t.ZodIssueCode=void 0;const a=r(9110);t.ZodIssueCode=a.util.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"]),t.quotelessJson=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class s extends Error{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}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},r={_errors:[]},a=e=>{for(const s of e.issues)if("invalid_union"===s.code)s.unionErrors.map(a);else if("invalid_return_type"===s.code)a(s.returnTypeError);else if("invalid_arguments"===s.code)a(s.argumentsError);else if(0===s.path.length)r._errors.push(t(s));else{let e=r,a=0;for(;a<s.path.length;){const r=s.path[a];a===s.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(s))):e[r]=e[r]||{_errors:[]},e=e[r],a++}}};return a(this),r}toString(){return this.message}get message(){return JSON.stringify(this.issues,a.util.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=(e=>e.message)){const t={},r=[];for(const a of this.issues)a.path.length>0?(t[a.path[0]]=t[a.path[0]]||[],t[a.path[0]].push(e(a))):r.push(e(a));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}t.ZodError=s,s.create=e=>new s(e)},6996:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorMap=t.setErrorMap=t.defaultErrorMap=void 0;const s=a(r(9349));t.defaultErrorMap=s.default;let n=s.default;t.setErrorMap=function(e){n=e},t.getErrorMap=function(){return n}},6349:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||a(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),s(r(6996),t),s(r(3187),t),s(r(116),t),s(r(9110),t),s(r(5433),t),s(r(8280),t)},8762:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.errorUtil=void 0,(r=t.errorUtil||(t.errorUtil={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},r.toString=e=>"string"==typeof e?e:null==e?void 0:e.message},3187:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isAsync=t.isValid=t.isDirty=t.isAborted=t.OK=t.DIRTY=t.INVALID=t.ParseStatus=t.addIssueToContext=t.EMPTY_PATH=t.makeIssue=void 0;const s=r(6996),n=a(r(9349));t.makeIssue=e=>{const{data:t,path:r,errorMaps:a,issueData:s}=e,n=[...r,...s.path||[]],i={...s,path:n};let o="";const d=a.filter((e=>!!e)).slice().reverse();for(const e of d)o=e(i,{data:t,defaultError:o}).message;return{...s,path:n,message:s.message||o}},t.EMPTY_PATH=[],t.addIssueToContext=function(e,r){const a=(0,t.makeIssue)({issueData:r,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,(0,s.getErrorMap)(),n.default].filter((e=>!!e))});e.common.issues.push(a)};class i{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,r){const a=[];for(const s of r){if("aborted"===s.status)return t.INVALID;"dirty"===s.status&&e.dirty(),a.push(s.value)}return{status:e.value,value:a}}static async mergeObjectAsync(e,t){const r=[];for(const e of t)r.push({key:await e.key,value:await e.value});return i.mergeObjectSync(e,r)}static mergeObjectSync(e,r){const a={};for(const s of r){const{key:r,value:n}=s;if("aborted"===r.status)return t.INVALID;if("aborted"===n.status)return t.INVALID;"dirty"===r.status&&e.dirty(),"dirty"===n.status&&e.dirty(),(void 0!==n.value||s.alwaysSet)&&(a[r.value]=n.value)}return{status:e.value,value:a}}}t.ParseStatus=i,t.INVALID=Object.freeze({status:"aborted"}),t.DIRTY=e=>({status:"dirty",value:e}),t.OK=e=>({status:"valid",value:e}),t.isAborted=e=>"aborted"===e.status,t.isDirty=e=>"dirty"===e.status,t.isValid=e=>"valid"===e.status,t.isAsync=e=>"undefined"!=typeof Promise&&e instanceof Promise},116:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},9110:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.getParsedType=t.ZodParsedType=t.util=void 0,function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const r of e)t[r]=r;return t},e.getValidEnumValues=t=>{const r=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),a={};for(const e of r)a[e]=t[e];return e.objectValues(a)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(const r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(r=t.util||(t.util={})),t.ZodParsedType=r.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),t.getParsedType=e=>{switch(typeof e){case"undefined":return t.ZodParsedType.undefined;case"string":return t.ZodParsedType.string;case"number":return isNaN(e)?t.ZodParsedType.nan:t.ZodParsedType.number;case"boolean":return t.ZodParsedType.boolean;case"function":return t.ZodParsedType.function;case"bigint":return t.ZodParsedType.bigint;case"symbol":return t.ZodParsedType.symbol;case"object":return Array.isArray(e)?t.ZodParsedType.array:null===e?t.ZodParsedType.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?t.ZodParsedType.promise:"undefined"!=typeof Map&&e instanceof Map?t.ZodParsedType.map:"undefined"!=typeof Set&&e instanceof Set?t.ZodParsedType.set:"undefined"!=typeof Date&&e instanceof Date?t.ZodParsedType.date:t.ZodParsedType.object;default:return t.ZodParsedType.unknown}}},8754:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){void 0===a&&(a=r),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,a){void 0===a&&(a=r),e[a]=t[r]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return s(t,e),t},i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||a(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.z=void 0;const o=n(r(6349));t.z=o,i(r(6349),t),t.default=o},9349:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=r(9110),s=r(8280);t.default=(e,t)=>{let r;switch(e.code){case s.ZodIssueCode.invalid_type:r=e.received===a.ZodParsedType.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case s.ZodIssueCode.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,a.util.jsonStringifyReplacer)}`;break;case s.ZodIssueCode.unrecognized_keys:r=`Unrecognized key(s) in object: ${a.util.joinValues(e.keys,", ")}`;break;case s.ZodIssueCode.invalid_union:r="Invalid input";break;case s.ZodIssueCode.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${a.util.joinValues(e.options)}`;break;case s.ZodIssueCode.invalid_enum_value:r=`Invalid enum value. Expected ${a.util.joinValues(e.options)}, received '${e.received}'`;break;case s.ZodIssueCode.invalid_arguments:r="Invalid function arguments";break;case s.ZodIssueCode.invalid_return_type:r="Invalid function return type";break;case s.ZodIssueCode.invalid_date:r="Invalid date";break;case s.ZodIssueCode.invalid_string:"object"==typeof e.validation?"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:a.util.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case s.ZodIssueCode.too_small:r="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?`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(e.minimum)}`:"Invalid input";break;case s.ZodIssueCode.too_big:r="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}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(e.maximum)}`:"Invalid input";break;case s.ZodIssueCode.custom:r="Invalid input";break;case s.ZodIssueCode.invalid_intersection_types:r="Intersection results could not be merged";break;case s.ZodIssueCode.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case s.ZodIssueCode.not_finite:r="Number must be finite";break;default:r=t.defaultError,a.util.assertNever(e)}return{message:r}}},5433:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.date=t.boolean=t.bigint=t.array=t.any=t.coerce=t.ZodFirstPartyTypeKind=t.late=t.ZodSchema=t.Schema=t.custom=t.ZodPipeline=t.ZodBranded=t.BRAND=t.ZodNaN=t.ZodCatch=t.ZodDefault=t.ZodNullable=t.ZodOptional=t.ZodTransformer=t.ZodEffects=t.ZodPromise=t.ZodNativeEnum=t.ZodEnum=t.ZodLiteral=t.ZodLazy=t.ZodFunction=t.ZodSet=t.ZodMap=t.ZodRecord=t.ZodTuple=t.ZodIntersection=t.ZodDiscriminatedUnion=t.ZodUnion=t.ZodObject=t.objectUtil=t.ZodArray=t.ZodVoid=t.ZodNever=t.ZodUnknown=t.ZodAny=t.ZodNull=t.ZodUndefined=t.ZodSymbol=t.ZodDate=t.ZodBoolean=t.ZodBigInt=t.ZodNumber=t.ZodString=t.ZodType=void 0,t.NEVER=t.void=t.unknown=t.union=t.undefined=t.tuple=t.transformer=t.symbol=t.string=t.strictObject=t.set=t.record=t.promise=t.preprocess=t.pipeline=t.ostring=t.optional=t.onumber=t.oboolean=t.object=t.number=t.nullable=t.null=t.never=t.nativeEnum=t.nan=t.map=t.literal=t.lazy=t.intersection=t.instanceof=t.function=t.enum=t.effect=t.discriminatedUnion=void 0;const a=r(6996),s=r(8762),n=r(3187),i=r(9110),o=r(8280);class d{constructor(e,t,r,a){this.parent=e,this.data=t,this._path=r,this._key=a}get path(){return this._path.concat(this._key)}}const u=(e,t)=>{if((0,n.isValid)(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,error:new o.ZodError(e.common.issues)}};function c(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:a,description:s}=e;if(t&&(r||a))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:s}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=a?a:t.defaultError}:{message:null!=r?r:t.defaultError},description:s}}class l{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.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return(0,i.getParsedType)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,i.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new n.ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:(0,i.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if((0,n.isAsync)(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;const a={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,i.getParsedType)(e)},s=this._parseSync({data:e,path:a.path,parent:a});return u(a,s)}async parseAsync(e,t){const r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){const r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,i.getParsedType)(e)},a=this._parse({data:e,path:r.path,parent:r}),s=await((0,n.isAsync)(a)?a:Promise.resolve(a));return u(r,s)}refine(e,t){const r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,a)=>{const s=e(t),n=()=>a.addIssue({code:o.ZodIssueCode.custom,...r(t)});return"undefined"!=typeof Promise&&s instanceof Promise?s.then((e=>!!e||(n(),!1))):!!s||(n(),!1)}))}refinement(e,t){return this._refinement(((r,a)=>!!e(r)||(a.addIssue("function"==typeof t?t(r,a):t),!1)))}_refinement(e){return new G({schema:this,typeName:ae.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return J.create(this,this._def)}nullable(){return Y.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return w.create(this,this._def)}promise(){return H.create(this,this._def)}or(e){return N.create([this,e],this._def)}and(e){return E.create(this,e,this._def)}transform(e){return new G({...c(this._def),schema:this,typeName:ae.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new Q({...c(this._def),innerType:this,defaultValue:t,typeName:ae.ZodDefault})}brand(){return new te({typeName:ae.ZodBranded,type:this,...c(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new X({...c(this._def),innerType:this,catchValue:t,typeName:ae.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return re.create(this,e)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}t.ZodType=l,t.Schema=l,t.ZodSchema=l;const p=/^c[^\s-]{8,}$/i,h=/^[a-z][a-z0-9]*$/,m=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,f=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|([^-]([a-zA-Z0-9-]*\.)+[a-zA-Z]{2,}))$/;class y extends l{constructor(){super(...arguments),this._regex=(e,t,r)=>this.refinement((t=>e.test(t)),{validation:t,code:o.ZodIssueCode.invalid_string,...s.errorUtil.errToObj(r)}),this.nonempty=e=>this.min(1,s.errorUtil.errToObj(e)),this.trim=()=>new y({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==i.ZodParsedType.string){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.string,received:t.parsedType}),n.INVALID}const t=new n.ParseStatus;let r;for(const s of this._def.checks)if("min"===s.kind)e.data.length<s.value&&(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),t.dirty());else if("max"===s.kind)e.data.length>s.value&&(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),t.dirty());else if("length"===s.kind){const a=e.data.length>s.value,i=e.data.length<s.value;(a||i)&&(r=this._getOrReturnCtx(e,r),a?(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):i&&(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),t.dirty())}else if("email"===s.kind)f.test(e.data)||(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{validation:"email",code:o.ZodIssueCode.invalid_string,message:s.message}),t.dirty());else if("uuid"===s.kind)m.test(e.data)||(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{validation:"uuid",code:o.ZodIssueCode.invalid_string,message:s.message}),t.dirty());else if("cuid"===s.kind)p.test(e.data)||(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{validation:"cuid",code:o.ZodIssueCode.invalid_string,message:s.message}),t.dirty());else if("cuid2"===s.kind)h.test(e.data)||(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{validation:"cuid2",code:o.ZodIssueCode.invalid_string,message:s.message}),t.dirty());else if("url"===s.kind)try{new URL(e.data)}catch(a){r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{validation:"url",code:o.ZodIssueCode.invalid_string,message:s.message}),t.dirty()}else"regex"===s.kind?(s.regex.lastIndex=0,s.regex.test(e.data)||(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{validation:"regex",code:o.ZodIssueCode.invalid_string,message:s.message}),t.dirty())):"trim"===s.kind?e.data=e.data.trim():"startsWith"===s.kind?e.data.startsWith(s.value)||(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_string,validation:{startsWith:s.value},message:s.message}),t.dirty()):"endsWith"===s.kind?e.data.endsWith(s.value)||(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_string,validation:{endsWith:s.value},message:s.message}),t.dirty()):"datetime"===s.kind?((a=s).precision?a.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${a.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${a.precision}}Z$`):0===a.precision?a.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):a.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$")).test(e.data)||(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_string,validation:"datetime",message:s.message}),t.dirty()):i.util.assertNever(s);var a;return{status:t.value,value:e.data}}_addCheck(e){return new y({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...s.errorUtil.errToObj(e)})}url(e){return this._addCheck({kind:"url",...s.errorUtil.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...s.errorUtil.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...s.errorUtil.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...s.errorUtil.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...s.errorUtil.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...s.errorUtil.errToObj(t)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...s.errorUtil.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...s.errorUtil.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...s.errorUtil.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...s.errorUtil.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...s.errorUtil.errToObj(t)})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===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 isUUID(){return!!this._def.checks.find((e=>"uuid"===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 minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function g(e,t){const r=(e.toString().split(".")[1]||"").length,a=(t.toString().split(".")[1]||"").length,s=r>a?r:a;return parseInt(e.toFixed(s).replace(".",""))%parseInt(t.toFixed(s).replace(".",""))/Math.pow(10,s)}t.ZodString=y,y.create=e=>{var t;return new y({checks:[],typeName:ae.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...c(e)})};class v extends l{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==i.ZodParsedType.number){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.number,received:t.parsedType}),n.INVALID}let t;const r=new n.ParseStatus;for(const a of this._def.checks)"int"===a.kind?i.util.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:a.message}),r.dirty()):"min"===a.kind?(a.inclusive?e.data<a.value:e.data<=a.value)&&(t=this._getOrReturnCtx(e,t),(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),r.dirty()):"max"===a.kind?(a.inclusive?e.data>a.value:e.data>=a.value)&&(t=this._getOrReturnCtx(e,t),(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),r.dirty()):"multipleOf"===a.kind?0!==g(e.data,a.value)&&(t=this._getOrReturnCtx(e,t),(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.not_multiple_of,multipleOf:a.value,message:a.message}),r.dirty()):"finite"===a.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.not_finite,message:a.message}),r.dirty()):i.util.assertNever(a);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,s.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,s.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,s.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,s.errorUtil.toString(t))}setLimit(e,t,r,a){return new v({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:s.errorUtil.toString(a)}]})}_addCheck(e){return new v({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:s.errorUtil.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:s.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:s.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:s.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:s.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:s.errorUtil.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:s.errorUtil.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const 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&&i.util.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value)}return Number.isFinite(t)&&Number.isFinite(e)}}t.ZodNumber=v,v.create=e=>new v({checks:[],typeName:ae.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...c(e)});class _ extends l{_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==i.ZodParsedType.bigint){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.bigint,received:t.parsedType}),n.INVALID}return(0,n.OK)(e.data)}}t.ZodBigInt=_,_.create=e=>{var t;return new _({typeName:ae.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...c(e)})};class b extends l{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==i.ZodParsedType.boolean){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.boolean,received:t.parsedType}),n.INVALID}return(0,n.OK)(e.data)}}t.ZodBoolean=b,b.create=e=>new b({typeName:ae.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...c(e)});class Z extends l{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==i.ZodParsedType.date){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.date,received:t.parsedType}),n.INVALID}if(isNaN(e.data.getTime())){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_date}),n.INVALID}const t=new n.ParseStatus;let r;for(const a of this._def.checks)"min"===a.kind?e.data.getTime()<a.value&&(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),t.dirty()):"max"===a.kind?e.data.getTime()>a.value&&(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),t.dirty()):i.util.assertNever(a);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:s.errorUtil.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:s.errorUtil.toString(t)})}get minDate(){let e=null;for(const 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(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}t.ZodDate=Z,Z.create=e=>new Z({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:ae.ZodDate,...c(e)});class P extends l{_parse(e){if(this._getType(e)!==i.ZodParsedType.symbol){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.symbol,received:t.parsedType}),n.INVALID}return(0,n.OK)(e.data)}}t.ZodSymbol=P,P.create=e=>new P({typeName:ae.ZodSymbol,...c(e)});class x extends l{_parse(e){if(this._getType(e)!==i.ZodParsedType.undefined){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.undefined,received:t.parsedType}),n.INVALID}return(0,n.OK)(e.data)}}t.ZodUndefined=x,x.create=e=>new x({typeName:ae.ZodUndefined,...c(e)});class T extends l{_parse(e){if(this._getType(e)!==i.ZodParsedType.null){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.null,received:t.parsedType}),n.INVALID}return(0,n.OK)(e.data)}}t.ZodNull=T,T.create=e=>new T({typeName:ae.ZodNull,...c(e)});class I extends l{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,n.OK)(e.data)}}t.ZodAny=I,I.create=e=>new I({typeName:ae.ZodAny,...c(e)});class j extends l{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,n.OK)(e.data)}}t.ZodUnknown=j,j.create=e=>new j({typeName:ae.ZodUnknown,...c(e)});class O extends l{_parse(e){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.never,received:t.parsedType}),n.INVALID}}t.ZodNever=O,O.create=e=>new O({typeName:ae.ZodNever,...c(e)});class k extends l{_parse(e){if(this._getType(e)!==i.ZodParsedType.undefined){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.void,received:t.parsedType}),n.INVALID}return(0,n.OK)(e.data)}}t.ZodVoid=k,k.create=e=>new k({typeName:ae.ZodVoid,...c(e)});class w extends l{_parse(e){const{ctx:t,status:r}=this._processInputParams(e),a=this._def;if(t.parsedType!==i.ZodParsedType.array)return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.array,received:t.parsedType}),n.INVALID;if(null!==a.exactLength){const e=t.data.length>a.exactLength.value,s=t.data.length<a.exactLength.value;(e||s)&&((0,n.addIssueToContext)(t,{code:e?o.ZodIssueCode.too_big:o.ZodIssueCode.too_small,minimum:s?a.exactLength.value:void 0,maximum:e?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(null!==a.minLength&&t.data.length<a.minLength.value&&((0,n.addIssueToContext)(t,{code:o.ZodIssueCode.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),null!==a.maxLength&&t.data.length>a.maxLength.value&&((0,n.addIssueToContext)(t,{code:o.ZodIssueCode.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map(((e,r)=>a.type._parseAsync(new d(t,e,t.path,r))))).then((e=>n.ParseStatus.mergeArray(r,e)));const s=[...t.data].map(((e,r)=>a.type._parseSync(new d(t,e,t.path,r))));return n.ParseStatus.mergeArray(r,s)}get element(){return this._def.type}min(e,t){return new w({...this._def,minLength:{value:e,message:s.errorUtil.toString(t)}})}max(e,t){return new w({...this._def,maxLength:{value:e,message:s.errorUtil.toString(t)}})}length(e,t){return new w({...this._def,exactLength:{value:e,message:s.errorUtil.toString(t)}})}nonempty(e){return this.min(1,e)}}var C;function D(e){if(e instanceof A){const t={};for(const r in e.shape){const a=e.shape[r];t[r]=J.create(D(a))}return new A({...e._def,shape:()=>t})}return e instanceof w?w.create(D(e.element)):e instanceof J?J.create(D(e.unwrap())):e instanceof Y?Y.create(D(e.unwrap())):e instanceof L?L.create(e.items.map((e=>D(e)))):e}t.ZodArray=w,w.create=(e,t)=>new w({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ae.ZodArray,...c(t)}),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(C=t.objectUtil||(t.objectUtil={}));class A extends l{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=i.util.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==i.ZodParsedType.object){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.object,received:t.parsedType}),n.INVALID}const{status:t,ctx:r}=this._processInputParams(e),{shape:a,keys:s}=this._getCached(),u=[];if(!(this._def.catchall instanceof O&&"strip"===this._def.unknownKeys))for(const e in r.data)s.includes(e)||u.push(e);const c=[];for(const e of s){const t=a[e],s=r.data[e];c.push({key:{status:"valid",value:e},value:t._parse(new d(r,s,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof O){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of u)c.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)u.length>0&&((0,n.addIssueToContext)(r,{code:o.ZodIssueCode.unrecognized_keys,keys:u}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of u){const a=r.data[t];c.push({key:{status:"valid",value:t},value:e._parse(new d(r,a,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of c){const r=await t.key;e.push({key:r,value:await t.value,alwaysSet:t.alwaysSet})}return e})).then((e=>n.ParseStatus.mergeObjectSync(t,e))):n.ParseStatus.mergeObjectSync(t,c)}get shape(){return this._def.shape()}strict(e){return s.errorUtil.errToObj,new A({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var a,n,i,o;const d=null!==(i=null===(n=(a=this._def).errorMap)||void 0===n?void 0:n.call(a,t,r).message)&&void 0!==i?i:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(o=s.errorUtil.errToObj(e).message)&&void 0!==o?o:d}:{message:d}}}:{}})}strip(){return new A({...this._def,unknownKeys:"strip"})}passthrough(){return new A({...this._def,unknownKeys:"passthrough"})}extend(e){return new A({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new A({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>C.mergeShapes(this._def.shape(),e._def.shape()),typeName:ae.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new A({...this._def,catchall:e})}pick(e){const t={};return i.util.objectKeys(e).forEach((r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])})),new A({...this._def,shape:()=>t})}omit(e){const t={};return i.util.objectKeys(this.shape).forEach((r=>{e[r]||(t[r]=this.shape[r])})),new A({...this._def,shape:()=>t})}deepPartial(){return D(this)}partial(e){const t={};return i.util.objectKeys(this.shape).forEach((r=>{const a=this.shape[r];e&&!e[r]?t[r]=a:t[r]=a.optional()})),new A({...this._def,shape:()=>t})}required(e){const t={};return i.util.objectKeys(this.shape).forEach((r=>{if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof J;)e=e._def.innerType;t[r]=e}})),new A({...this._def,shape:()=>t})}keyof(){return q(i.util.objectKeys(this.shape))}}t.ZodObject=A,A.create=(e,t)=>new A({shape:()=>e,unknownKeys:"strip",catchall:O.create(),typeName:ae.ZodObject,...c(t)}),A.strictCreate=(e,t)=>new A({shape:()=>e,unknownKeys:"strict",catchall:O.create(),typeName:ae.ZodObject,...c(t)}),A.lazycreate=(e,t)=>new A({shape:e,unknownKeys:"strip",catchall:O.create(),typeName:ae.ZodObject,...c(t)});class N extends l{_parse(e){const{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map((async e=>{const r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const r=e.map((e=>new o.ZodError(e.ctx.common.issues)));return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_union,unionErrors:r}),n.INVALID}));{let e;const a=[];for(const s of r){const r={...t,common:{...t.common,issues:[]},parent:null},n=s._parseSync({data:t.data,path:t.path,parent:r});if("valid"===n.status)return n;"dirty"!==n.status||e||(e={result:n,ctx:r}),r.common.issues.length&&a.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const s=a.map((e=>new o.ZodError(e)));return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_union,unionErrors:s}),n.INVALID}}get options(){return this._def.options}}t.ZodUnion=N,N.create=(e,t)=>new N({options:e,typeName:ae.ZodUnion,...c(t)});const S=e=>e instanceof F?S(e.schema):e instanceof G?S(e.innerType()):e instanceof $?[e.value]:e instanceof B?e.options:e instanceof W?Object.keys(e.enum):e instanceof Q?S(e._def.innerType):e instanceof x?[void 0]:e instanceof T?[null]:null;class M extends l{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.ZodParsedType.object)return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.object,received:t.parsedType}),n.INVALID;const r=this.discriminator,a=t.data[r],s=this.optionsMap.get(a);return s?t.common.async?s._parseAsync({data:t.data,path:t.path,parent:t}):s._parseSync({data:t.data,path:t.path,parent:t}):((0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),n.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){const a=new Map;for(const r of t){const t=S(r.shape[e]);if(!t)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const s of t){if(a.has(s))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(s)}`);a.set(s,r)}}return new M({typeName:ae.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:a,...c(r)})}}function z(e,t){const r=(0,i.getParsedType)(e),a=(0,i.getParsedType)(t);if(e===t)return{valid:!0,data:e};if(r===i.ZodParsedType.object&&a===i.ZodParsedType.object){const r=i.util.objectKeys(t),a=i.util.objectKeys(e).filter((e=>-1!==r.indexOf(e))),s={...e,...t};for(const r of a){const a=z(e[r],t[r]);if(!a.valid)return{valid:!1};s[r]=a.data}return{valid:!0,data:s}}if(r===i.ZodParsedType.array&&a===i.ZodParsedType.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let a=0;a<e.length;a++){const s=z(e[a],t[a]);if(!s.valid)return{valid:!1};r.push(s.data)}return{valid:!0,data:r}}return r===i.ZodParsedType.date&&a===i.ZodParsedType.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}t.ZodDiscriminatedUnion=M;class E extends l{_parse(e){const{status:t,ctx:r}=this._processInputParams(e),a=(e,a)=>{if((0,n.isAborted)(e)||(0,n.isAborted)(a))return n.INVALID;const s=z(e.value,a.value);return s.valid?(((0,n.isDirty)(e)||(0,n.isDirty)(a))&&t.dirty(),{status:t.value,value:s.data}):((0,n.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_intersection_types}),n.INVALID)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then((([e,t])=>a(e,t))):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}t.ZodIntersection=E,E.create=(e,t,r)=>new E({left:e,right:t,typeName:ae.ZodIntersection,...c(r)});class L extends l{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.ZodParsedType.array)return(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.array,received:r.parsedType}),n.INVALID;if(r.data.length<this._def.items.length)return(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.INVALID;!this._def.rest&&r.data.length>this._def.items.length&&((0,n.addIssueToContext)(r,{code:o.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const a=[...r.data].map(((e,t)=>{const a=this._def.items[t]||this._def.rest;return a?a._parse(new d(r,e,r.path,t)):null})).filter((e=>!!e));return r.common.async?Promise.all(a).then((e=>n.ParseStatus.mergeArray(t,e))):n.ParseStatus.mergeArray(t,a)}get items(){return this._def.items}rest(e){return new L({...this._def,rest:e})}}t.ZodTuple=L,L.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new L({items:e,typeName:ae.ZodTuple,rest:null,...c(t)})};class V extends l{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.ZodParsedType.object)return(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.object,received:r.parsedType}),n.INVALID;const a=[],s=this._def.keyType,u=this._def.valueType;for(const e in r.data)a.push({key:s._parse(new d(r,e,r.path,e)),value:u._parse(new d(r,r.data[e],r.path,e))});return r.common.async?n.ParseStatus.mergeObjectAsync(t,a):n.ParseStatus.mergeObjectSync(t,a)}get element(){return this._def.valueType}static create(e,t,r){return new V(t instanceof l?{keyType:e,valueType:t,typeName:ae.ZodRecord,...c(r)}:{keyType:y.create(),valueType:e,typeName:ae.ZodRecord,...c(t)})}}t.ZodRecord=V;class R extends l{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.ZodParsedType.map)return(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.map,received:r.parsedType}),n.INVALID;const a=this._def.keyType,s=this._def.valueType,u=[...r.data.entries()].map((([e,t],n)=>({key:a._parse(new d(r,e,r.path,[n,"key"])),value:s._parse(new d(r,t,r.path,[n,"value"]))})));if(r.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const r of u){const a=await r.key,s=await r.value;if("aborted"===a.status||"aborted"===s.status)return n.INVALID;"dirty"!==a.status&&"dirty"!==s.status||t.dirty(),e.set(a.value,s.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const r of u){const a=r.key,s=r.value;if("aborted"===a.status||"aborted"===s.status)return n.INVALID;"dirty"!==a.status&&"dirty"!==s.status||t.dirty(),e.set(a.value,s.value)}return{status:t.value,value:e}}}}t.ZodMap=R,R.create=(e,t,r)=>new R({valueType:t,keyType:e,typeName:ae.ZodMap,...c(r)});class U extends l{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.ZodParsedType.set)return(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.set,received:r.parsedType}),n.INVALID;const a=this._def;null!==a.minSize&&r.data.size<a.minSize.value&&((0,n.addIssueToContext)(r,{code:o.ZodIssueCode.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),t.dirty()),null!==a.maxSize&&r.data.size>a.maxSize.value&&((0,n.addIssueToContext)(r,{code:o.ZodIssueCode.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),t.dirty());const s=this._def.valueType;function u(e){const r=new Set;for(const a of e){if("aborted"===a.status)return n.INVALID;"dirty"===a.status&&t.dirty(),r.add(a.value)}return{status:t.value,value:r}}const c=[...r.data.values()].map(((e,t)=>s._parse(new d(r,e,r.path,t))));return r.common.async?Promise.all(c).then((e=>u(e))):u(c)}min(e,t){return new U({...this._def,minSize:{value:e,message:s.errorUtil.toString(t)}})}max(e,t){return new U({...this._def,maxSize:{value:e,message:s.errorUtil.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}t.ZodSet=U,U.create=(e,t)=>new U({valueType:e,minSize:null,maxSize:null,typeName:ae.ZodSet,...c(t)});class K extends l{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.ZodParsedType.function)return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.function,received:t.parsedType}),n.INVALID;function r(e,r){return(0,n.makeIssue)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,a.getErrorMap)(),a.defaultErrorMap].filter((e=>!!e)),issueData:{code:o.ZodIssueCode.invalid_arguments,argumentsError:r}})}function s(e,r){return(0,n.makeIssue)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,a.getErrorMap)(),a.defaultErrorMap].filter((e=>!!e)),issueData:{code:o.ZodIssueCode.invalid_return_type,returnTypeError:r}})}const d={errorMap:t.common.contextualErrorMap},u=t.data;return this._def.returns instanceof H?(0,n.OK)((async(...e)=>{const t=new o.ZodError([]),a=await this._def.args.parseAsync(e,d).catch((a=>{throw t.addIssue(r(e,a)),t})),n=await u(...a);return await this._def.returns._def.type.parseAsync(n,d).catch((e=>{throw t.addIssue(s(n,e)),t}))})):(0,n.OK)(((...e)=>{const t=this._def.args.safeParse(e,d);if(!t.success)throw new o.ZodError([r(e,t.error)]);const a=u(...t.data),n=this._def.returns.safeParse(a,d);if(!n.success)throw new o.ZodError([s(a,n.error)]);return n.data}))}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new K({...this._def,args:L.create(e).rest(j.create())})}returns(e){return new K({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new K({args:e||L.create([]).rest(j.create()),returns:t||j.create(),typeName:ae.ZodFunction,...c(r)})}}t.ZodFunction=K;class F extends l{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}t.ZodLazy=F,F.create=(e,t)=>new F({getter:e,typeName:ae.ZodLazy,...c(t)});class $ extends l{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{received:t.data,code:o.ZodIssueCode.invalid_literal,expected:this._def.value}),n.INVALID}return{status:"valid",value:e.data}}get value(){return this._def.value}}function q(e,t){return new B({values:e,typeName:ae.ZodEnum,...c(t)})}t.ZodLiteral=$,$.create=(e,t)=>new $({value:e,typeName:ae.ZodLiteral,...c(t)});class B extends l{_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),r=this._def.values;return(0,n.addIssueToContext)(t,{expected:i.util.joinValues(r),received:t.parsedType,code:o.ZodIssueCode.invalid_type}),n.INVALID}if(-1===this._def.values.indexOf(e.data)){const t=this._getOrReturnCtx(e),r=this._def.values;return(0,n.addIssueToContext)(t,{received:t.data,code:o.ZodIssueCode.invalid_enum_value,options:r}),n.INVALID}return(0,n.OK)(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e){return B.create(e)}exclude(e){return B.create(this.options.filter((t=>!e.includes(t))))}}t.ZodEnum=B,B.create=q;class W extends l{_parse(e){const t=i.util.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==i.ZodParsedType.string&&r.parsedType!==i.ZodParsedType.number){const e=i.util.objectValues(t);return(0,n.addIssueToContext)(r,{expected:i.util.joinValues(e),received:r.parsedType,code:o.ZodIssueCode.invalid_type}),n.INVALID}if(-1===t.indexOf(e.data)){const e=i.util.objectValues(t);return(0,n.addIssueToContext)(r,{received:r.data,code:o.ZodIssueCode.invalid_enum_value,options:e}),n.INVALID}return(0,n.OK)(e.data)}get enum(){return this._def.values}}t.ZodNativeEnum=W,W.create=(e,t)=>new W({values:e,typeName:ae.ZodNativeEnum,...c(t)});class H extends l{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.ZodParsedType.promise&&!1===t.common.async)return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.promise,received:t.parsedType}),n.INVALID;const r=t.parsedType===i.ZodParsedType.promise?t.data:Promise.resolve(t.data);return(0,n.OK)(r.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}t.ZodPromise=H,H.create=(e,t)=>new H({type:e,typeName:ae.ZodPromise,...c(t)});class G extends l{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ae.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:r}=this._processInputParams(e),a=this._def.effect||null;if("preprocess"===a.type){const e=a.transform(r.data);return r.common.async?Promise.resolve(e).then((e=>this._def.schema._parseAsync({data:e,path:r.path,parent:r}))):this._def.schema._parseSync({data:e,path:r.path,parent:r})}const s={addIssue:e=>{(0,n.addIssueToContext)(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),"refinement"===a.type){const e=e=>{const t=a.refinement(e,s);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===r.common.async){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===a.status?n.INVALID:("dirty"===a.status&&t.dirty(),e(a.value),{status:t.value,value:a.value})}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((r=>"aborted"===r.status?n.INVALID:("dirty"===r.status&&t.dirty(),e(r.value).then((()=>({status:t.value,value:r.value}))))))}if("transform"===a.type){if(!1===r.common.async){const e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!(0,n.isValid)(e))return e;const i=a.transform(e.value,s);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((e=>(0,n.isValid)(e)?Promise.resolve(a.transform(e.value,s)).then((e=>({status:t.value,value:e}))):e))}i.util.assertNever(a)}}t.ZodEffects=G,t.ZodTransformer=G,G.create=(e,t,r)=>new G({schema:e,typeName:ae.ZodEffects,effect:t,...c(r)}),G.createWithPreprocess=(e,t,r)=>new G({schema:t,effect:{type:"preprocess",transform:e},typeName:ae.ZodEffects,...c(r)});class J extends l{_parse(e){return this._getType(e)===i.ZodParsedType.undefined?(0,n.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}t.ZodOptional=J,J.create=(e,t)=>new J({innerType:e,typeName:ae.ZodOptional,...c(t)});class Y extends l{_parse(e){return this._getType(e)===i.ZodParsedType.null?(0,n.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}t.ZodNullable=Y,Y.create=(e,t)=>new Y({innerType:e,typeName:ae.ZodNullable,...c(t)});class Q extends l{_parse(e){const{ctx:t}=this._processInputParams(e);let r=t.data;return t.parsedType===i.ZodParsedType.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}t.ZodDefault=Q,Q.create=(e,t)=>new Q({innerType:e,typeName:ae.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...c(t)});class X extends l{_parse(e){const{ctx:t}=this._processInputParams(e),r=this._def.innerType._parse({data:t.data,path:t.path,parent:{...t,common:{...t.common,issues:[]}}});return(0,n.isAsync)(r)?r.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue()}))):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue()}}removeCatch(){return this._def.innerType}}t.ZodCatch=X,X.create=(e,t)=>new X({innerType:e,typeName:ae.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...c(t)});class ee extends l{_parse(e){if(this._getType(e)!==i.ZodParsedType.nan){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.nan,received:t.parsedType}),n.INVALID}return{status:"valid",value:e.data}}}t.ZodNaN=ee,ee.create=e=>new ee({typeName:ae.ZodNaN,...c(e)}),t.BRAND=Symbol("zod_brand");class te extends l{_parse(e){const{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}t.ZodBranded=te;class re extends l{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?n.INVALID:"dirty"===e.status?(t.dirty(),(0,n.DIRTY)(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{const e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?n.INVALID:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new re({in:e,out:t,typeName:ae.ZodPipeline})}}var ae;t.ZodPipeline=re,t.custom=(e,t={},r)=>e?I.create().superRefine(((a,s)=>{if(!e(a)){const e="function"==typeof t?t(a):t,n="string"==typeof e?{message:e}:e;s.addIssue({code:"custom",...n,fatal:r})}})):I.create(),t.late={object:A.lazycreate},function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline"}(ae=t.ZodFirstPartyTypeKind||(t.ZodFirstPartyTypeKind={})),t.instanceof=(e,r={message:`Input not instance of ${e.name}`})=>(0,t.custom)((t=>t instanceof e),r,!0);const se=y.create;t.string=se;const ne=v.create;t.number=ne;const ie=ee.create;t.nan=ie;const oe=_.create;t.bigint=oe;const de=b.create;t.boolean=de;const ue=Z.create;t.date=ue;const ce=P.create;t.symbol=ce;const le=x.create;t.undefined=le;const pe=T.create;t.null=pe;const he=I.create;t.any=he;const me=j.create;t.unknown=me;const fe=O.create;t.never=fe;const ye=k.create;t.void=ye;const ge=w.create;t.array=ge;const ve=A.create;t.object=ve;const _e=A.strictCreate;t.strictObject=_e;const be=N.create;t.union=be;const Ze=M.create;t.discriminatedUnion=Ze;const Pe=E.create;t.intersection=Pe;const xe=L.create;t.tuple=xe;const Te=V.create;t.record=Te;const Ie=R.create;t.map=Ie;const je=U.create;t.set=je;const Oe=K.create;t.function=Oe;const ke=F.create;t.lazy=ke;const we=$.create;t.literal=we;const Ce=B.create;t.enum=Ce;const De=W.create;t.nativeEnum=De;const Ae=H.create;t.promise=Ae;const Ne=G.create;t.effect=Ne,t.transformer=Ne;const Se=J.create;t.optional=Se;const Me=Y.create;t.nullable=Me;const ze=G.createWithPreprocess;t.preprocess=ze;const Ee=re.create;t.pipeline=Ee,t.ostring=()=>se().optional(),t.onumber=()=>ne().optional(),t.oboolean=()=>de().optional(),t.coerce={string:e=>y.create({...e,coerce:!0}),number:e=>v.create({...e,coerce:!0}),boolean:e=>b.create({...e,coerce:!0}),bigint:e=>_.create({...e,coerce:!0}),date:e=>Z.create({...e,coerce:!0})},t.NEVER=n.INVALID}},t={};return function r(a){var s=t[a];if(void 0!==s)return s.exports;var n=t[a]={exports:{}};return e[a].call(n.exports,n,n.exports,r),n.exports}(3607)})()));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@mintlify/validation"]=t():e["@mintlify/validation"]=t()}(this,(()=>(()=>{"use strict";var e={1920:function(e,t,r){var s=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var s,a=0,n=t.length;a<n;a++)!s&&a in t||(s||(s=Array.prototype.slice.call(t,0,a)),s[a]=t[a]);return e.concat(s||Array.prototype.slice.call(t))},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mintConfigSchema=t.validateMintConfig=void 0;var n,i,o,d,u,c,l,p=a(r(8111)),h=r(4868),m=r(5276),f=r(6879),y=r(7818),g=r(7057);t.validateMintConfig=function(e){var t,r=new m.MintValidationResults;if(null==e||null==e||0===Object.entries(e).length)return r.errors.push("Mint Config object cannot be empty."),r.status="error",r;var a=(0,y.validateAnchorsWarnings)(e.anchors,e.navigation),n=(0,g.validateVersionsInNavigation)(e.navigation,null!==(t=e.versions)&&void 0!==t?t:[]);r.errors=s(s([],r.errors,!0),n.errors,!0),r.warnings=s(s(s([],r.warnings,!0),n.warnings,!0),a.warnings,!0);var i=h.configSchema.safeParse(e);return 0==i.success&&i.error.issues.forEach((function(e){var t,s;if("invalid_union"===e.code&&(null===(s=e.unionErrors)||void 0===s?void 0:s.length)>0)(t=r.errors).push.apply(t,(0,f.flattenUnionErrorMessages)(e.unionErrors));else{var a=e.message;"Required"===a&&(a="Missing required field: "+e.path.join(".")),r.errors.push(a)}})),r.status=r.errors.length?"error":"success",r},t.mintConfigSchema=(null===(i=null===(n=(l=(0,p.default)(h.configSchema,"Schema")).definitions)||void 0===n?void 0:n.Schema)||void 0===i||delete i.properties.__injected,null===(d=null===(o=l.definitions)||void 0===o?void 0:o.Schema)||void 0===d||delete d.properties.colors.properties.ultraDark,null===(c=null===(u=l.definitions)||void 0===u?void 0:u.Schema)||void 0===c||delete c.properties.colors.properties.ultraLight,l)},8893:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.analyticsSchema=void 0;var s=r(6750),a=s.z.object({apiKey:s.z.string({required_error:"Amplitude apiKey is missing.",invalid_type_error:"Amplitude apiKey must be a string."})},{invalid_type_error:"Amplitude analytics config must be an object with an apiKey property."}),n=s.z.object({publicApiKey:s.z.string({required_error:"Clearbit publicApiKey is missing.",invalid_type_error:"Clearbit publicApiKey must be a string."})},{invalid_type_error:"Clearbit config must be an object with a publicApiKey property."}),i=s.z.object({siteId:s.z.string({required_error:"Fathom siteId is missing.",invalid_type_error:"Fathom siteId must be a string."})},{invalid_type_error:"Fathom analytics config must be an object with a siteId property."}),o=s.z.object({measurementId:s.z.string({required_error:"Google Analytics measurementId is missing.",invalid_type_error:"Google Analytics measurementId must be a string."}).startsWith("G","Google Analytics measurementId must start with G.")},{invalid_type_error:"Google Analytics config must be an object with a measurementId property."}),d=s.z.object({tagId:s.z.string({required_error:"Google Tag Manager tagId is missing.",invalid_type_error:"Google Tag Manager tagId must be a string."}).startsWith("G","Google Tag Manager tagId must start with G.")},{invalid_type_error:"Google Tag Manager config must be an object with a tagId property."}),u=s.z.object({hjid:s.z.string({required_error:"Hotjar hjid is missing.",invalid_type_error:"Hotjar hjid must be a string."}),hjsv:s.z.string({required_error:"Hotjar hjsv is missing.",invalid_type_error:"Hotjar hjsv must be a string."})},{invalid_type_error:"Hotjar config must be an object with a hjid and hjsv property."}),c=s.z.object({publicApiKey:s.z.string({required_error:"Public Api Key is required for the Koala snippet to run.",invalid_type_error:"Koala Public Api Key must be a string."}).refine((function(e){return e.length>=2}),"Koala Public Api Key must have at least two characters")},{invalid_type_error:"Koala config must be an object with a publicApiKey property."}),l=s.z.object({appId:s.z.string({required_error:"Logrocket appId is missing.",invalid_type_error:"Logrocket appId must be a string."})},{invalid_type_error:"Logrocket config must be an object with an appId property."}),p=s.z.object({projectToken:s.z.string({required_error:"Mixpanel projectToken is missing.",invalid_type_error:"Mixpanel projectToken must be a string."})},{invalid_type_error:"Mixpanel config must be an object with a projectToken property."}),h=s.z.object({id:s.z.string({required_error:"Pirsch id is missing.",invalid_type_error:"Pirsch id must be a string."})},{invalid_type_error:"Pirsch config must be an object with an id property."}),m=s.z.object({apiKey:s.z.string({required_error:"Posthog apiKey is missing.",invalid_type_error:"Posthog apiKey must be a string."}).startsWith("phc_","Posthog apiKey must start with phc_"),apiHost:s.z.string({invalid_type_error:"Posthog apiHost must be a string."}).url("Posthog apiHost must be a valid URL.").optional()},{invalid_type_error:"Posthog config must be an object with an apiKey property."}),f=s.z.object({domain:s.z.string({required_error:"Plausible domain is missing.",invalid_type_error:"Plausible domain must be a string."}).refine((function(e){return!e.startsWith("http://")&&!e.startsWith("https://")}),"Plausible domain must not start with http:// or https://")},{invalid_type_error:"Plausible config must be an object with a domain property. The domain must not start with http:// or https://."});t.analyticsSchema=s.z.object({amplitude:a.optional(),clearbit:n.optional(),fathom:i.optional(),ga4:o.optional(),gtm:d.optional(),hotjar:u.optional(),koala:c.optional(),logrocket:l.optional(),mixpanel:p.optional(),pirsch:h.optional(),posthog:m.optional(),plausible:f.optional()}).strict("Mintlify only supports analytics integrations from: amplitude, clearbit, fathom, ga4, gtm, hotjar, koala, logrocket, mixpanel, pirsch, posthog and plausible.")},2913:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.anchorColorSchema=void 0;var s=r(6750),a=r(4671);t.anchorColorSchema=s.z.union([s.z.string({invalid_type_error:"Anchor color must be a string."}).regex(a.hexadecimalPattern,"Anchor color must be a hexadecimal color."),s.z.object({from:s.z.string({invalid_type_error:"Anchor color.from must be a string."}).regex(a.hexadecimalPattern,"Anchor color.from must be a hexadecimal color."),via:s.z.string({invalid_type_error:"Anchor color.via must be a string."}).regex(a.hexadecimalPattern,"Anchor color.via must be undefined or a hexadecimal color.").optional(),to:s.z.string({invalid_type_error:"Anchor color.to must be a string."}).regex(a.hexadecimalPattern,"Anchor color.to must be a hexadecimal color.")}).strict("Anchors with gradient colors can only have properties from, via, and to with valid hexadecimal colors.")],{invalid_type_error:"Anchor color must be a string or an object with from and to properties."})},6640:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.anchorsSchema=void 0;var s=r(6750),a=r(2913);t.anchorsSchema=s.z.object({name:s.z.string({required_error:"Every anchor must have a name.",invalid_type_error:"Anchor name must be a string."}).trim().min(1,"Anchor name is empty."),url:s.z.string({required_error:"Every anchor must have a url",invalid_type_error:"Anchor url must be a string."}).trim().min(1,"Anchor URL is missing."),icon:s.z.string({invalid_type_error:"Anchor icon must be the name of a Font Awesome icon. Visit this link to see all the available icons: https://fontawesome.com/icons"}).refine((function(e){return!e.startsWith("fa-")}),'icon does not need to start with "fa-". Please delete "fa-" and keep the rest of the icon name.').optional(),iconType:s.z.enum(["brands","duotone","light","sharp-solid","solid","thin"],{errorMap:function(){return{message:"anchor iconType must be one of the following strings: brands, duotone, light, sharp-solid, solid, thin"}}}).optional(),color:a.anchorColorSchema.optional(),isDefaultHidden:s.z.boolean({invalid_type_error:"Anchor isDefaultHidden must be a boolean. Try writing true or false without quotes around them."}).optional(),version:s.z.string({invalid_type_error:"Version must be a string in the versions array."}).optional()}).array()},4330:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.colorsSchema=void 0;var s=r(6750),a=r(2913),n=r(4671);t.colorsSchema=s.z.object({primary:s.z.string({invalid_type_error:"Primary color must be a string."}).min(1,"Color primary is missing.").regex(n.hexadecimalPattern,"Primary color must be a hexadecimal color including the # at the start."),light:s.z.string({invalid_type_error:"Light color must be a string."}).regex(n.hexadecimalPattern,"Light color must be a hexadecimal color including the # at the start.").optional(),dark:s.z.string({invalid_type_error:"Dark color must be a string."}).regex(n.hexadecimalPattern,"Dark color must be a hexadecimal color including the # at the start.").optional(),background:s.z.object({light:s.z.string({invalid_type_error:"Background light color must be a string."}).regex(n.hexadecimalPattern,"Background light color must be a hexadecimal color including the # at the start.").optional(),dark:s.z.string({invalid_type_error:"Background dark color must be a string."}).regex(n.hexadecimalPattern,"Background dark color must be a hexadecimal color including the # at the start.").optional()}).optional(),anchors:a.anchorColorSchema.optional(),ultraLight:s.z.any().optional(),ultraDark:s.z.any().optional()},{required_error:'Colors are missing. You need to define at least the primary color. For example: { "colors": { "primary": "#ff0000" } }',invalid_type_error:"Colors must be an object."}).strict("Some of the colors in mint.json are invalid, did you make a typo? We only accept primary, light, dark, background, and anchors.")},4868:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.configSchema=void 0;var s=r(6750),a=r(8893),n=r(6640),i=r(4330),o=r(2446),d=r(50),u=r(553),c=r(8840),l=s.z.union([s.z.string().min(3,"Logo needs to be a path to your logo file including the file extension."),s.z.object({light:s.z.string(),dark:s.z.string(),href:s.z.string().optional()})],{invalid_type_error:"Logo must be a string or an object with light and dark properties."}),p=s.z.object({baseUrl:s.z.union([s.z.string().url("api.baseUrl must be a valid URL."),s.z.array(s.z.string().url("api.baseUrl array entries must be valid URLs."))]).optional(),auth:s.z.object({method:s.z.enum(["bearer","basic","key"],{errorMap:function(){return{message:"api.auth.method has to be one of: bearer, basic, or key"}}}).optional(),name:s.z.string().optional(),inputPrefix:s.z.string().optional()}).strict("api.auth can only contain method, name, and inputPrefix.").optional(),playground:s.z.object({mode:s.z.enum(["show","simple","hide"],{errorMap:function(){return{message:"api.playground.mode must be one of the following strings: show, simple, or hide"}}}).optional().default("show")}).optional()},{invalid_type_error:"api must be an object. The object can have baseUrl, auth, and playground as properties."}).strict("api can only contain baseUrl, auth, and playground as properties."),h=s.z.object({default:s.z.enum(["light","dark"],{errorMap:function(){return{message:"modeToggleSchema.default must be one of the following: light or dark"}}}).optional(),isHidden:s.z.boolean({invalid_type_error:"isHidden must be a boolean. Try writing true or false without the quotes."}).optional()}),m=function(e){return s.z.union([s.z.object({type:s.z.literal("link").optional(),name:s.z.string({required_error:"Name must be defined when using a CTA button",invalid_type_error:"Name must be a string"}),url:s.z.string({required_error:e+".url is missing",invalid_type_error:e+".url must be a string"}).min(1,e+".url cannot be empty")}).strict(e+" can only contain name, url, and type properties. Set a different type if you need to set other fields."),s.z.object({type:s.z.literal("github"),url:s.z.string({required_error:e+".url is missing. Please set the url to a link to your GitHub repository.",invalid_type_error:e+".url must be a string. Specifically, set the url to a link to your GitHub repository."}).url(e+".url must be a valid url pointing to your GitHub repository.")}).strict(e+' can only contain url and type properties when type="github". Please delete any other properties you have set.')],{invalid_type_error:e+' must be an object. The object can have type="link" (the default) if you define a url and a name. You can also have type="github" if you define a url pointing to your GitHub repo and set the type in the object.'})},f=s.z.union([s.z.array(s.z.object({type:s.z.string(),url:s.z.string().url("footerSocials url must be a valid url")})),s.z.record(s.z.string().trim().min(1,"footerSocials name (the key in the object) must not be empty"),s.z.string().url("footerSocials url (the value in the object) must be a valid url"))],{invalid_type_error:'footerSocials must be an object where the key is the name of the social media and the value is the url to your profile. For example: { "twitter": "https://twitter.com/mintlify" }'}),y=s.z.object({intercom:s.z.string({invalid_type_error:"integrations.intercom must be a string"}).min(6,"integrations.intercom must be a valid Intercom app ID").optional()},{invalid_type_error:"integrations must be an object"});t.configSchema=s.z.object({$schema:s.z.string().url().optional().default("https://mintlify.com/schema.json"),mintlify:s.z.string().optional(),name:d.nameSchema,logo:l.optional(),favicon:o.faviconSchema,openapi:s.z.union([s.z.string({invalid_type_error:"openapi must be a string or an array of strings of absolute or relative URLs pointing to your OpenAPI file."}),s.z.array(s.z.string({invalid_type_error:"openapi must be a string or an array of strings of absolute or relative URLs pointing to your OpenAPI file."}))]).optional(),api:p.optional(),modeToggle:h.optional(),versions:c.versionsSchema.optional(),metadata:s.z.record(s.z.string({invalid_type_error:"metadata keys must be strings"}),s.z.string({invalid_type_error:"metadata values must be strings"}).min(1,"metadata values must not be empty")).optional(),colors:i.colorsSchema,topbarCtaButton:m("topbarCtaButton").optional(),topbarLinks:s.z.array(m("topbarLinks")).optional(),navigation:u.navigationConfigSchema,topAnchor:s.z.object({name:s.z.string({required_error:"topAnchor.name is missing, set it or delete the entire topAnchor property.",invalid_type_error:"topAnchor.name must be a string"}),icon:s.z.string({invalid_type_error:"topAnchor.icon must be a string"}).optional(),iconType:s.z.enum(["brands","duotone","light","sharp-solid","solid","thin"],{errorMap:function(){return{message:"topAnchor.iconType must be one of the following strings: brands, duotone, light, sharp-solid, solid, thin"}}}).optional()},{invalid_type_error:"topAnchor must be an object with a name property. Delete the topAnchor if you don't want to customize the values."}).strict("topAnchor can only have name, icon, and iconType properties.").optional(),anchors:n.anchorsSchema.optional(),footerSocials:f.optional(),backgroundImage:s.z.string().optional(),analytics:a.analyticsSchema.optional(),integrations:y.optional(),__injected:s.z.undefined({invalid_type_error:"Do not add __injected to mint.json. Mintlify uses this property internally."})})},2446:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.faviconSchema=void 0;var s=r(6750);t.faviconSchema=s.z.string({required_error:"Favicon is missing. Please set favicon to the path of your favicon file. We recommend using a .svg or .png file. Mintlify automatically resizes your favicon to the sizes needed.",invalid_type_error:"Favicon must be a string path pointing to the favicon file in your Mintlify folder."}).refine((function(e){return"ico"!==e.split(".").pop()}),{message:"Favicon cannot be an .ico file."})},50:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.nameSchema=void 0;var s=r(6750);t.nameSchema=s.z.string({required_error:"Name is missing."}).min(1,"Name cannot be empty.").trim()},553:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.navigationConfigSchema=void 0;var s=r(6750),a=s.z.lazy((function(){return s.z.object({group:s.z.string({required_error:"Missing navigation group name.",invalid_type_error:"Group must be a string. We use the group name to create the navigation sidebar."}),pages:s.z.array(s.z.union([a,s.z.string().min(1,"Page cannot be an empty string.")])).min(1,"Pages array can't be empty."),version:s.z.string({invalid_type_error:"Version must be a string."}).optional()},{invalid_type_error:"Navigation entry must be an object."}).strict("Navigation entry can only contain group, pages, and version.")}));t.navigationConfigSchema=s.z.array(a,{required_error:"Navigation is missing.",invalid_type_error:"Navigation must be an array."}).min(1,"Navigation cannot be an empty array. Please add at least one group.")},8840:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.versionsSchema=void 0;var s=r(6750);t.versionsSchema=s.z.array(s.z.string({invalid_type_error:"Versions must be an array of strings."})).min(1,"Versions array cannot be empty. Either delete the property or add strings to the array.")},5276:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MintValidationResults=void 0;t.MintValidationResults=function(){this.status="success",this.errors=[],this.warnings=[]}},6879:function(e,t){var r=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var s,a=0,n=t.length;a<n;a++)!s&&a in t||(s||(s=Array.prototype.slice.call(t,0,a)),s[a]=t[a]);return e.concat(s||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.flattenUnionErrorMessages=void 0,t.flattenUnionErrorMessages=function e(t){return t.reduce((function(t,s){return Array.isArray(s.unionErrors)&&s.unionErrors.length>0?r(r([],t,!0),e(s.unionErrors),!0):r(r([],t,!0),[s.message],!1)}),[])}},4671:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hexadecimalPattern=void 0,t.hexadecimalPattern=/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/},7818:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validateAnchorsWarnings=void 0;var s=r(553),a=r(5276);function n(e,t){return"string"==typeof e?e.startsWith(t):null!=e.pages&&e.pages.some((function(e){return n(e,t)}))}t.validateAnchorsWarnings=function(e,t){var r=new a.MintValidationResults;return null!=e&&Array.isArray(e)&&0!==e.length?t&&!0===s.navigationConfigSchema.safeParse(t).success&&e.forEach((function(e){e.url.startsWith("mailto:")||e.url.startsWith("http")||e.url.startsWith("https")||t.some((function(t){return n(t,e.url)}))||r.warnings.push("No pages in the navigation match anchor "+e.url+" you should have at least one page that starts with "+e.url)})):r.warnings.push("Mintlify runs without anchors but most sites look better with at least one."),r}},7057:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validateVersionsInNavigation=t.flattenNavigationVersions=void 0;var s=r(553),a=r(5276);function n(e,t){return void 0===t&&(t=[]),e.forEach((function(e){return null==e||"string"==typeof e?t:(e.version&&t.push(e.version),Array.isArray(e.pages)?n(e.pages,t):t)})),t}function i(e,t){if("string"==typeof e)return[];var r=[];return e.version&&null!=t&&e.version!==t&&r.push('Please do not set versions on groups nested inside a group that already has a version. The group "'.concat(e.group,'" has version "').concat(e.version,'" set and it is nested in a group that has the version "').concat(t,'" set.')),e.pages?r.concat(e.pages.map((function(r){return i(r,t||e.version)})).flat().filter(Boolean)):[]}t.flattenNavigationVersions=n,t.validateVersionsInNavigation=function(e,t){void 0===t&&(t=[]);var r=new a.MintValidationResults;if(null==e||!1===s.navigationConfigSchema.safeParse(e).success)return r;var o=n(e);return o.forEach((function(e){t.includes(e)||r.errors.push("Version ".concat(e," is not included in the versions array, but is used in the navigation. Please add ").concat(e," to the versions array."))})),0===o.length&&t.length>0&&r.warnings.push("You have versions defined in the config, but no versions are used in the navigation."),e.forEach((function(e){var t;(t=r.warnings).push.apply(t,i(e,null))})),r}},8111:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.zodToJsonSchema=void 0;const s=r(5030);Object.defineProperty(t,"zodToJsonSchema",{enumerable:!0,get:function(){return s.zodToJsonSchema}}),t.default=s.zodToJsonSchema},8987:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultOptions=t.defaultOptions=void 0,t.defaultOptions={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1},t.getDefaultOptions=e=>"string"==typeof e?Object.assign(Object.assign({},t.defaultOptions),{name:e}):Object.assign(Object.assign({},t.defaultOptions),e)},1933:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getRefs=void 0;const s=r(8987);t.getRefs=e=>{const t=(0,s.getDefaultOptions)(e),r=void 0!==t.name?[...t.basePath,t.definitionPath,t.name]:t.basePath;return Object.assign(Object.assign({},t),{currentPath:r,propertyPath:void 0,seen:[]})}},7603:(e,t)=>{function r(e,t,r,s){(null==s?void 0:s.errorMessages)&&r&&(e.errorMessage=Object.assign(Object.assign({},e.errorMessage),{[t]:r}))}Object.defineProperty(t,"__esModule",{value:!0}),t.setResponseValueAndErrors=t.addErrorMessage=void 0,t.addErrorMessage=r,t.setResponseValueAndErrors=function(e,t,s,a,n){e[t]=s,r(e,t,a,n)}},765:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseDef=void 0;const s=r(6750),a=r(2426),n=r(6694),i=r(603),o=r(4630),d=r(2822),u=r(9909),c=r(7660),l=r(8324),p=r(7741),h=r(8363),m=r(3433),f=r(861),y=r(5591),g=r(5763),v=r(6334),_=r(1661),b=r(114),Z=r(9827),x=r(6555),P=r(3296),T=r(3171),I=r(5559),j=r(7031),k=r(4047),O=r(149),C=r(1395),w=r(3665),D=r(1131),A=r(1671);function N(e,t){const r=t.seen.find((t=>Object.is(t.def,e)));if(r)return S(r,t);const s={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.push(s);const a=E(e,e.typeName,t);return a&&z(e,a),s.jsonSchema=a,a}t.parseDef=N;const S=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:0===e.path.length?"":1===e.path.length?`${e.path[0]}/`:e.path.join("/")};case"relative":return{$ref:M(t.currentPath,e.path)};case"none":return e.path.length<t.currentPath.length&&e.path.every(((e,r)=>t.currentPath[r]===e))?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),{}):e.jsonSchema}},M=(e,t)=>{let r=0;for(;r<e.length&&r<t.length&&e[r]===t[r];r++);return[(e.length-r).toString(),...t.slice(r)].join("/")},E=(e,t,r)=>{switch(t){case s.ZodFirstPartyTypeKind.ZodString:return(0,O.parseStringDef)(e,r);case s.ZodFirstPartyTypeKind.ZodNumber:return(0,Z.parseNumberDef)(e,r);case s.ZodFirstPartyTypeKind.ZodObject:return(0,x.parseObjectDef)(e,r);case s.ZodFirstPartyTypeKind.ZodBigInt:return(0,i.parseBigintDef)();case s.ZodFirstPartyTypeKind.ZodBoolean:return(0,o.parseBooleanDef)();case s.ZodFirstPartyTypeKind.ZodDate:return(0,c.parseDateDef)();case s.ZodFirstPartyTypeKind.ZodUndefined:return(0,w.parseUndefinedDef)();case s.ZodFirstPartyTypeKind.ZodNull:return(0,_.parseNullDef)(r);case s.ZodFirstPartyTypeKind.ZodArray:return(0,n.parseArrayDef)(e,r);case s.ZodFirstPartyTypeKind.ZodUnion:case s.ZodFirstPartyTypeKind.ZodDiscriminatedUnion:return(0,D.parseUnionDef)(e,r);case s.ZodFirstPartyTypeKind.ZodIntersection:return(0,m.parseIntersectionDef)(e,r);case s.ZodFirstPartyTypeKind.ZodTuple:return(0,C.parseTupleDef)(e,r);case s.ZodFirstPartyTypeKind.ZodRecord:return(0,j.parseRecordDef)(e,r);case s.ZodFirstPartyTypeKind.ZodLiteral:return(0,f.parseLiteralDef)(e,r);case s.ZodFirstPartyTypeKind.ZodEnum:return(0,h.parseEnumDef)(e);case s.ZodFirstPartyTypeKind.ZodNativeEnum:return(0,g.parseNativeEnumDef)(e);case s.ZodFirstPartyTypeKind.ZodNullable:return(0,b.parseNullableDef)(e,r);case s.ZodFirstPartyTypeKind.ZodOptional:return(0,P.parseOptionalDef)(e,r);case s.ZodFirstPartyTypeKind.ZodMap:return(0,y.parseMapDef)(e,r);case s.ZodFirstPartyTypeKind.ZodSet:return(0,k.parseSetDef)(e,r);case s.ZodFirstPartyTypeKind.ZodLazy:return N(e.getter()._def,r);case s.ZodFirstPartyTypeKind.ZodPromise:return(0,I.parsePromiseDef)(e,r);case s.ZodFirstPartyTypeKind.ZodNaN:case s.ZodFirstPartyTypeKind.ZodNever:return(0,v.parseNeverDef)();case s.ZodFirstPartyTypeKind.ZodEffects:return(0,p.parseEffectsDef)(e,r);case s.ZodFirstPartyTypeKind.ZodAny:return(0,a.parseAnyDef)();case s.ZodFirstPartyTypeKind.ZodUnknown:return(0,A.parseUnknownDef)();case s.ZodFirstPartyTypeKind.ZodDefault:return(0,l.parseDefaultDef)(e,r);case s.ZodFirstPartyTypeKind.ZodBranded:return(0,d.parseBrandedDef)(e,r);case s.ZodFirstPartyTypeKind.ZodCatch:return(0,u.parseCatchDef)(e,r);case s.ZodFirstPartyTypeKind.ZodPipeline:return(0,T.parsePipelineDef)(e,r);case s.ZodFirstPartyTypeKind.ZodFunction:case s.ZodFirstPartyTypeKind.ZodVoid:case s.ZodFirstPartyTypeKind.ZodSymbol:default:return}},z=(e,t)=>(e.description&&(t.description=e.description),t)},2426:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseAnyDef=void 0,t.parseAnyDef=function(){return{}}},6694:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseArrayDef=void 0;const s=r(6750),a=r(7603),n=r(765);t.parseArrayDef=function(e,t){var r,i;const o={type:"array"};return(null===(i=null===(r=e.type)||void 0===r?void 0:r._def)||void 0===i?void 0:i.typeName)!==s.ZodFirstPartyTypeKind.ZodAny&&(o.items=(0,n.parseDef)(e.type._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"items"]}))),e.minLength&&(0,a.setResponseValueAndErrors)(o,"minItems",e.minLength.value,e.minLength.message,t),e.maxLength&&(0,a.setResponseValueAndErrors)(o,"maxItems",e.maxLength.value,e.maxLength.message,t),o}},603:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseBigintDef=void 0,t.parseBigintDef=function(){return{type:"integer",format:"int64"}}},4630:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseBooleanDef=void 0,t.parseBooleanDef=function(){return{type:"boolean"}}},2822:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseBrandedDef=void 0;const s=r(765);t.parseBrandedDef=function(e,t){return(0,s.parseDef)(e.type._def,t)}},9909:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseCatchDef=void 0;const s=r(765);t.parseCatchDef=(e,t)=>(0,s.parseDef)(e.innerType._def,t)},7660:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseDateDef=void 0,t.parseDateDef=function(){return{type:"string",format:"date-time"}}},8324:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseDefaultDef=void 0;const s=r(765);t.parseDefaultDef=function(e,t){return Object.assign(Object.assign({},(0,s.parseDef)(e.innerType._def,t)),{default:e.defaultValue()})}},7741:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseEffectsDef=void 0;const s=r(765);t.parseEffectsDef=function(e,t){return"input"===t.effectStrategy?(0,s.parseDef)(e.schema._def,t):{}}},8363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseEnumDef=void 0,t.parseEnumDef=function(e){return{type:"string",enum:e.values}}},3433:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseIntersectionDef=void 0;const s=r(765);t.parseIntersectionDef=function(e,t){const r=[(0,s.parseDef)(e.left._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"allOf","0"]})),(0,s.parseDef)(e.right._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"allOf","1"]}))].filter((e=>!!e));return r.length?{allOf:r}:void 0}},861:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseLiteralDef=void 0,t.parseLiteralDef=function(e,t){const r=typeof e.value;return"bigint"!==r&&"number"!==r&&"boolean"!==r&&"string"!==r?{type:Array.isArray(e.value)?"array":"object"}:"openApi3"===t.target?{type:"bigint"===r?"integer":r,enum:[e.value]}:{type:"bigint"===r?"integer":r,const:e.value}}},5591:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseMapDef=void 0;const s=r(765);t.parseMapDef=function(e,t){return{type:"array",maxItems:125,items:{type:"array",items:[(0,s.parseDef)(e.keyType._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"items","items","0"]}))||{},(0,s.parseDef)(e.valueType._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"items","items","1"]}))||{}],minItems:2,maxItems:2}}}},5763:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseNativeEnumDef=void 0,t.parseNativeEnumDef=function(e){const t=e.values,r=Object.keys(e.values).filter((e=>"number"!=typeof t[t[e]])).map((e=>t[e])),s=Array.from(new Set(r.map((e=>typeof e))));return{type:1===s.length?"string"===s[0]?"string":"number":["string","number"],enum:r}}},6334:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseNeverDef=void 0,t.parseNeverDef=function(){return{not:{}}}},1661:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseNullDef=void 0,t.parseNullDef=function(e){return"openApi3"===e.target?{enum:["null"],nullable:!0}:{type:"null"}}},114:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseNullableDef=void 0;const s=r(765),a=r(1131);t.parseNullableDef=function(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return"openApi3"===t.target?{type:a.primitiveMappings[e.innerType._def.typeName],nullable:!0}:{type:[a.primitiveMappings[e.innerType._def.typeName],"null"]};const r=(0,s.parseDef)(e.innerType._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"anyOf","0"]}));return r?"openApi3"===t.target?Object.assign(Object.assign({},r),{nullable:!0}):{anyOf:[r,{type:"null"}]}:void 0}},9827:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseNumberDef=void 0;const s=r(7603);t.parseNumberDef=function(e,t){const r={type:"number"};if(!e.checks)return r;for(const a of e.checks)switch(a.kind){case"int":r.type="integer",(0,s.addErrorMessage)(r,"type",a.message,t);break;case"min":"jsonSchema7"===t.target?a.inclusive?(0,s.setResponseValueAndErrors)(r,"minimum",a.value,a.message,t):(0,s.setResponseValueAndErrors)(r,"exclusiveMinimum",a.value,a.message,t):(a.inclusive||(r.exclusiveMinimum=!0),(0,s.setResponseValueAndErrors)(r,"minimum",a.value,a.message,t));break;case"max":"jsonSchema7"===t.target?a.inclusive?(0,s.setResponseValueAndErrors)(r,"maximum",a.value,a.message,t):(0,s.setResponseValueAndErrors)(r,"exclusiveMaximum",a.value,a.message,t):(a.inclusive||(r.exclusiveMaximum=!0),(0,s.setResponseValueAndErrors)(r,"maximum",a.value,a.message,t));break;case"multipleOf":(0,s.setResponseValueAndErrors)(r,"multipleOf",a.value,a.message,t)}return r}},6555:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseObjectDef=void 0;const s=r(765);t.parseObjectDef=function(e,t){var r;const a=Object.assign(Object.assign({type:"object"},Object.entries(e.shape()).reduce(((e,[r,a])=>{if(void 0===a||void 0===a._def)return e;const n=(0,s.parseDef)(a._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"properties",r],propertyPath:[...t.currentPath,"properties",r]}));return void 0===n?e:{properties:Object.assign(Object.assign({},e.properties),{[r]:n}),required:a.isOptional()?e.required:[...e.required,r]}}),{properties:{},required:[]})),{additionalProperties:"ZodNever"===e.catchall._def.typeName?"passthrough"===e.unknownKeys:null===(r=(0,s.parseDef)(e.catchall._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"additionalProperties"]})))||void 0===r||r});return a.required.length||delete a.required,a}},3296:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseOptionalDef=void 0;const s=r(765);t.parseOptionalDef=(e,t)=>{var r;if(t.currentPath.toString()===(null===(r=t.propertyPath)||void 0===r?void 0:r.toString()))return(0,s.parseDef)(e.innerType._def,t);const a=(0,s.parseDef)(e.innerType._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"anyOf","1"]}));return a?{anyOf:[{not:{}},a]}:{}}},3171:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parsePipelineDef=void 0;const s=r(765);t.parsePipelineDef=(e,t)=>{const r=(0,s.parseDef)(e.in._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"allOf","0"]}));return{allOf:[r,(0,s.parseDef)(e.out._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"allOf",r?"1":"0"]}))].filter((e=>void 0!==e))}}},5559:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parsePromiseDef=void 0;const s=r(765);t.parsePromiseDef=function(e,t){return(0,s.parseDef)(e.type._def,t)}},7031:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRecordDef=void 0;const s=r(6750),a=r(765),n=r(149);t.parseRecordDef=function(e,t){var r,i,o,d,u;if("openApi3"===t.target&&(null===(r=e.keyType)||void 0===r?void 0:r._def.typeName)===s.ZodFirstPartyTypeKind.ZodEnum)return{type:"object",required:e.keyType._def.values,properties:e.keyType._def.values.reduce(((r,s)=>{var n;return Object.assign(Object.assign({},r),{[s]:null!==(n=(0,a.parseDef)(e.valueType._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"properties",s]})))&&void 0!==n?n:{}})}),{}),additionalProperties:!1};const c={type:"object",additionalProperties:null!==(i=(0,a.parseDef)(e.valueType._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"additionalProperties"]})))&&void 0!==i?i:{}};if("openApi3"===t.target)return c;if((null===(o=e.keyType)||void 0===o?void 0:o._def.typeName)===s.ZodFirstPartyTypeKind.ZodString&&(null===(d=e.keyType._def.checks)||void 0===d?void 0:d.length)){const r=Object.entries((0,n.parseStringDef)(e.keyType._def,t)).reduce(((e,[t,r])=>"type"===t?e:Object.assign(Object.assign({},e),{[t]:r})),{});return Object.assign(Object.assign({},c),{propertyNames:r})}return(null===(u=e.keyType)||void 0===u?void 0:u._def.typeName)===s.ZodFirstPartyTypeKind.ZodEnum?Object.assign(Object.assign({},c),{propertyNames:{enum:e.keyType._def.values}}):c}},4047:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseSetDef=void 0;const s=r(7603),a=r(765);t.parseSetDef=function(e,t){const r={type:"array",items:(0,a.parseDef)(e.valueType._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"items"]}))};return e.minSize&&(0,s.setResponseValueAndErrors)(r,"minItems",e.minSize.value,e.minSize.message,t),e.maxSize&&(0,s.setResponseValueAndErrors)(r,"maxItems",e.maxSize.value,e.maxSize.message,t),r}},149:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseStringDef=void 0;const s=r(7603);t.parseStringDef=function(e,t){const r={type:"string"};if(e.checks)for(const i of e.checks)switch(i.kind){case"min":(0,s.setResponseValueAndErrors)(r,"minLength","number"==typeof r.minLength?Math.max(r.minLength,i.value):i.value,i.message,t);break;case"max":(0,s.setResponseValueAndErrors)(r,"maxLength","number"==typeof r.maxLength?Math.min(r.maxLength,i.value):i.value,i.message,t);break;case"email":(0,s.setResponseValueAndErrors)(r,"format","email",i.message,t);break;case"url":(0,s.setResponseValueAndErrors)(r,"format","uri",i.message,t);break;case"uuid":(0,s.setResponseValueAndErrors)(r,"format","uuid",i.message,t);break;case"regex":n(r,i.regex.source,i.message,t);break;case"cuid":n(r,"^c[^\\s-]{8,}$",i.message,t);break;case"cuid2":n(r,"^[a-z][a-z0-9]*$",i.message,t);break;case"startsWith":n(r,"^"+a(i.value),i.message,t);break;case"endsWith":n(r,a(i.value)+"$",i.message,t);break;case"trim":break;case"datetime":(0,s.setResponseValueAndErrors)(r,"format","date-time",i.message,t);break;case"length":(0,s.setResponseValueAndErrors)(r,"minLength","number"==typeof r.minLength?Math.max(r.minLength,i.value):i.value,i.message,t),(0,s.setResponseValueAndErrors)(r,"maxLength","number"==typeof r.maxLength?Math.min(r.maxLength,i.value):i.value,i.message,t)}return r};const a=e=>Array.from(e).map((e=>/[a-zA-Z0-9]/.test(e)?e:`\\${e}`)).join(""),n=(e,t,r,a)=>{var n;e.pattern||(null===(n=e.allOf)||void 0===n?void 0:n.some((e=>e.pattern)))?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push(Object.assign({pattern:e.pattern},e.errorMessage&&a.errorMessages&&{errorMessage:{pattern:e.errorMessage.pattern}})),delete e.pattern,e.errorMessage&&(delete e.errorMessage.pattern,0===Object.keys(e.errorMessage).length&&delete e.errorMessage)),e.allOf.push(Object.assign({pattern:t},r&&a.errorMessages&&{errorMessage:{pattern:r}}))):(0,s.setResponseValueAndErrors)(e,"pattern",t,r,a)}},1395:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseTupleDef=void 0;const s=r(765);t.parseTupleDef=function(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map(((e,r)=>(0,s.parseDef)(e._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"items",`${r}`]})))).reduce(((e,t)=>void 0===t?e:[...e,t]),[]),additionalItems:(0,s.parseDef)(e.rest._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"additionalItems"]}))}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map(((e,r)=>(0,s.parseDef)(e._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"items",`${r}`]})))).reduce(((e,t)=>void 0===t?e:[...e,t]),[])}}},3665:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseUndefinedDef=void 0,t.parseUndefinedDef=function(){return{not:{}}}},1131:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseUnionDef=t.primitiveMappings=void 0;const s=r(765);t.primitiveMappings={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"},t.parseUnionDef=function(e,r){if("openApi3"===r.target)return a(e,r);const s=e.options instanceof Map?Array.from(e.options.values()):e.options;if(s.every((e=>e._def.typeName in t.primitiveMappings&&(!e._def.checks||!e._def.checks.length)))){const e=s.reduce(((e,r)=>{const s=t.primitiveMappings[r._def.typeName];return s&&!e.includes(s)?[...e,s]:e}),[]);return{type:e.length>1?e:e[0]}}if(s.every((e=>"ZodLiteral"===e._def.typeName))){const e=s.reduce(((e,t)=>{const r=typeof t._def.value;switch(r){case"string":case"number":case"boolean":return[...e,r];case"bigint":return[...e,"integer"];case"object":if(null===t._def.value)return[...e,"null"];default:return e}}),[]);if(e.length===s.length){const t=e.filter(((e,t,r)=>r.indexOf(e)===t));return{type:t.length>1?t:t[0],enum:s.reduce(((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value]),[])}}}else if(s.every((e=>"ZodEnum"===e._def.typeName)))return{type:"string",enum:s.reduce(((e,t)=>[...e,...t._def.values.filter((t=>!e.includes(t)))]),[])};return a(e,r)};const a=(e,t)=>{const r=(e.options instanceof Map?Array.from(e.options.values()):e.options).map(((e,r)=>(0,s.parseDef)(e._def,Object.assign(Object.assign({},t),{currentPath:[...t.currentPath,"anyOf",`${r}`]})))).filter((e=>!!e&&(!t.strictUnions||"object"==typeof e&&Object.keys(e).length>0)));return r.length?{anyOf:r}:void 0}},1671:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseUnknownDef=void 0,t.parseUnknownDef=function(){return{}}},5030:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.zodToJsonSchema=void 0;const s=r(765),a=r(1933);t.zodToJsonSchema=(e,t)=>{var r;const n=(0,a.getRefs)(t),i="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce(((e,[t,r])=>{var a;return Object.assign(Object.assign({},e),{[t]:null!==(a=(0,s.parseDef)(r._def,Object.assign(Object.assign({},n),{currentPath:[...n.basePath,n.definitionPath,t]})))&&void 0!==a?a:{}})}),{}):void 0,o="string"==typeof t?t:null==t?void 0:t.name,d=null!==(r=(0,s.parseDef)(e._def,void 0===o?n:Object.assign(Object.assign({},n),{currentPath:[...n.basePath,n.definitionPath,o]})))&&void 0!==r?r:{},u=void 0===o?i?Object.assign(Object.assign({},d),{[n.definitionPath]:i}):d:{$ref:[..."relative"===n.$refStrategy?[]:n.basePath,n.definitionPath,o].join("/"),[n.definitionPath]:Object.assign(Object.assign({},i),{[o]:d})};return"jsonSchema7"===n.target&&(u.$schema="http://json-schema.org/draft-07/schema#"),u}},5809:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ZodError=t.quotelessJson=t.ZodIssueCode=void 0;const s=r(3133);t.ZodIssueCode=s.util.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"]),t.quotelessJson=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class a extends Error{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}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},r={_errors:[]},s=e=>{for(const a of e.issues)if("invalid_union"===a.code)a.unionErrors.map(s);else if("invalid_return_type"===a.code)s(a.returnTypeError);else if("invalid_arguments"===a.code)s(a.argumentsError);else if(0===a.path.length)r._errors.push(t(a));else{let e=r,s=0;for(;s<a.path.length;){const r=a.path[s];s===a.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(a))):e[r]=e[r]||{_errors:[]},e=e[r],s++}}};return s(this),r}toString(){return this.message}get message(){return JSON.stringify(this.issues,s.util.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=(e=>e.message)){const t={},r=[];for(const s of this.issues)s.path.length>0?(t[s.path[0]]=t[s.path[0]]||[],t[s.path[0]].push(e(s))):r.push(e(s));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}t.ZodError=a,a.create=e=>new a(e)},1909:function(e,t,r){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorMap=t.setErrorMap=t.defaultErrorMap=void 0;const a=s(r(6013));t.defaultErrorMap=a.default;let n=a.default;t.setErrorMap=function(e){n=e},t.getErrorMap=function(){return n}},4474:function(e,t,r){var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(1909),t),a(r(4735),t),a(r(1832),t),a(r(3133),t),a(r(1176),t),a(r(5809),t)},3682:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.errorUtil=void 0,(r=t.errorUtil||(t.errorUtil={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},r.toString=e=>"string"==typeof e?e:null==e?void 0:e.message},4735:function(e,t,r){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isAsync=t.isValid=t.isDirty=t.isAborted=t.OK=t.DIRTY=t.INVALID=t.ParseStatus=t.addIssueToContext=t.EMPTY_PATH=t.makeIssue=void 0;const a=r(1909),n=s(r(6013));t.makeIssue=e=>{const{data:t,path:r,errorMaps:s,issueData:a}=e,n=[...r,...a.path||[]],i={...a,path:n};let o="";const d=s.filter((e=>!!e)).slice().reverse();for(const e of d)o=e(i,{data:t,defaultError:o}).message;return{...a,path:n,message:a.message||o}},t.EMPTY_PATH=[],t.addIssueToContext=function(e,r){const s=(0,t.makeIssue)({issueData:r,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,(0,a.getErrorMap)(),n.default].filter((e=>!!e))});e.common.issues.push(s)};class i{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,r){const s=[];for(const a of r){if("aborted"===a.status)return t.INVALID;"dirty"===a.status&&e.dirty(),s.push(a.value)}return{status:e.value,value:s}}static async mergeObjectAsync(e,t){const r=[];for(const e of t)r.push({key:await e.key,value:await e.value});return i.mergeObjectSync(e,r)}static mergeObjectSync(e,r){const s={};for(const a of r){const{key:r,value:n}=a;if("aborted"===r.status)return t.INVALID;if("aborted"===n.status)return t.INVALID;"dirty"===r.status&&e.dirty(),"dirty"===n.status&&e.dirty(),(void 0!==n.value||a.alwaysSet)&&(s[r.value]=n.value)}return{status:e.value,value:s}}}t.ParseStatus=i,t.INVALID=Object.freeze({status:"aborted"}),t.DIRTY=e=>({status:"dirty",value:e}),t.OK=e=>({status:"valid",value:e}),t.isAborted=e=>"aborted"===e.status,t.isDirty=e=>"dirty"===e.status,t.isValid=e=>"valid"===e.status,t.isAsync=e=>"undefined"!=typeof Promise&&e instanceof Promise},1832:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},3133:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.getParsedType=t.ZodParsedType=t.objectUtil=t.util=void 0,function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const r of e)t[r]=r;return t},e.getValidEnumValues=t=>{const r=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),s={};for(const e of r)s[e]=t[e];return e.objectValues(s)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(const r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(r=t.util||(t.util={})),(t.objectUtil||(t.objectUtil={})).mergeShapes=(e,t)=>({...e,...t}),t.ZodParsedType=r.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),t.getParsedType=e=>{switch(typeof e){case"undefined":return t.ZodParsedType.undefined;case"string":return t.ZodParsedType.string;case"number":return isNaN(e)?t.ZodParsedType.nan:t.ZodParsedType.number;case"boolean":return t.ZodParsedType.boolean;case"function":return t.ZodParsedType.function;case"bigint":return t.ZodParsedType.bigint;case"symbol":return t.ZodParsedType.symbol;case"object":return Array.isArray(e)?t.ZodParsedType.array:null===e?t.ZodParsedType.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?t.ZodParsedType.promise:"undefined"!=typeof Map&&e instanceof Map?t.ZodParsedType.map:"undefined"!=typeof Set&&e instanceof Set?t.ZodParsedType.set:"undefined"!=typeof Date&&e instanceof Date?t.ZodParsedType.date:t.ZodParsedType.object;default:return t.ZodParsedType.unknown}}},6750:function(e,t,r){var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r),Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return a(t,e),t},i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.z=void 0;const o=n(r(4474));t.z=o,i(r(4474),t),t.default=o},6013:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});const s=r(3133),a=r(5809);t.default=(e,t)=>{let r;switch(e.code){case a.ZodIssueCode.invalid_type:r=e.received===s.ZodParsedType.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case a.ZodIssueCode.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,s.util.jsonStringifyReplacer)}`;break;case a.ZodIssueCode.unrecognized_keys:r=`Unrecognized key(s) in object: ${s.util.joinValues(e.keys,", ")}`;break;case a.ZodIssueCode.invalid_union:r="Invalid input";break;case a.ZodIssueCode.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${s.util.joinValues(e.options)}`;break;case a.ZodIssueCode.invalid_enum_value:r=`Invalid enum value. Expected ${s.util.joinValues(e.options)}, received '${e.received}'`;break;case a.ZodIssueCode.invalid_arguments:r="Invalid function arguments";break;case a.ZodIssueCode.invalid_return_type:r="Invalid function return type";break;case a.ZodIssueCode.invalid_date:r="Invalid date";break;case a.ZodIssueCode.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:s.util.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case a.ZodIssueCode.too_small:r="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?`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 a.ZodIssueCode.too_big:r="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 a.ZodIssueCode.custom:r="Invalid input";break;case a.ZodIssueCode.invalid_intersection_types:r="Intersection results could not be merged";break;case a.ZodIssueCode.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case a.ZodIssueCode.not_finite:r="Number must be finite";break;default:r=t.defaultError,s.util.assertNever(e)}return{message:r}}},1176:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.discriminatedUnion=t.date=t.boolean=t.bigint=t.array=t.any=t.coerce=t.ZodFirstPartyTypeKind=t.late=t.ZodSchema=t.Schema=t.custom=t.ZodPipeline=t.ZodBranded=t.BRAND=t.ZodNaN=t.ZodCatch=t.ZodDefault=t.ZodNullable=t.ZodOptional=t.ZodTransformer=t.ZodEffects=t.ZodPromise=t.ZodNativeEnum=t.ZodEnum=t.ZodLiteral=t.ZodLazy=t.ZodFunction=t.ZodSet=t.ZodMap=t.ZodRecord=t.ZodTuple=t.ZodIntersection=t.ZodDiscriminatedUnion=t.ZodUnion=t.ZodObject=t.ZodArray=t.ZodVoid=t.ZodNever=t.ZodUnknown=t.ZodAny=t.ZodNull=t.ZodUndefined=t.ZodSymbol=t.ZodDate=t.ZodBoolean=t.ZodBigInt=t.ZodNumber=t.ZodString=t.ZodType=void 0,t.NEVER=t.void=t.unknown=t.union=t.undefined=t.tuple=t.transformer=t.symbol=t.string=t.strictObject=t.set=t.record=t.promise=t.preprocess=t.pipeline=t.ostring=t.optional=t.onumber=t.oboolean=t.object=t.number=t.nullable=t.null=t.never=t.nativeEnum=t.nan=t.map=t.literal=t.lazy=t.intersection=t.instanceof=t.function=t.enum=t.effect=void 0;const s=r(1909),a=r(3682),n=r(4735),i=r(3133),o=r(5809);class d{constructor(e,t,r,s){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const u=(e,t)=>{if((0,n.isValid)(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new o.ZodError(e.common.issues);return this._error=t,this._error}}};function c(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:s,description:a}=e;if(t&&(r||s))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:a}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=s?s:t.defaultError}:{message:null!=r?r:t.defaultError},description:a}}class l{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.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return(0,i.getParsedType)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,i.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new n.ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:(0,i.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if((0,n.isAsync)(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;const s={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,i.getParsedType)(e)},a=this._parseSync({data:e,path:s.path,parent:s});return u(s,a)}async parseAsync(e,t){const r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){const r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,i.getParsedType)(e)},s=this._parse({data:e,path:r.path,parent:r}),a=await((0,n.isAsync)(s)?s:Promise.resolve(s));return u(r,a)}refine(e,t){const r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,s)=>{const a=e(t),n=()=>s.addIssue({code:o.ZodIssueCode.custom,...r(t)});return"undefined"!=typeof Promise&&a instanceof Promise?a.then((e=>!!e||(n(),!1))):!!a||(n(),!1)}))}refinement(e,t){return this._refinement(((r,s)=>!!e(r)||(s.addIssue("function"==typeof t?t(r,s):t),!1)))}_refinement(e){return new X({schema:this,typeName:ie.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Q.create(this,this._def)}nullable(){return ee.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return N.create(this,this._def)}promise(){return Y.create(this,this._def)}or(e){return E.create([this,e],this._def)}and(e){return U.create(this,e,this._def)}transform(e){return new X({...c(this._def),schema:this,typeName:ie.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new te({...c(this._def),innerType:this,defaultValue:t,typeName:ie.ZodDefault})}brand(){return new ae({typeName:ie.ZodBranded,type:this,...c(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new re({...c(this._def),innerType:this,catchValue:t,typeName:ie.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return ne.create(this,e)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}t.ZodType=l,t.Schema=l,t.ZodSchema=l;const p=/^c[^\s-]{8,}$/i,h=/^[a-z][a-z0-9]*$/,m=/[0-9A-HJKMNP-TV-Z]{26}/,f=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,y=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,g=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,v=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,_=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;class b extends l{constructor(){super(...arguments),this._regex=(e,t,r)=>this.refinement((t=>e.test(t)),{validation:t,code:o.ZodIssueCode.invalid_string,...a.errorUtil.errToObj(r)}),this.nonempty=e=>this.min(1,a.errorUtil.errToObj(e)),this.trim=()=>new b({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new b({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new b({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==i.ZodParsedType.string){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.string,received:t.parsedType}),n.INVALID}const t=new n.ParseStatus;let r;for(const u of this._def.checks)if("min"===u.kind)e.data.length<u.value&&(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),t.dirty());else if("max"===u.kind)e.data.length>u.value&&(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),t.dirty());else if("length"===u.kind){const s=e.data.length>u.value,a=e.data.length<u.value;(s||a)&&(r=this._getOrReturnCtx(e,r),s?(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}):a&&(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}),t.dirty())}else if("email"===u.kind)y.test(e.data)||(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{validation:"email",code:o.ZodIssueCode.invalid_string,message:u.message}),t.dirty());else if("emoji"===u.kind)g.test(e.data)||(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{validation:"emoji",code:o.ZodIssueCode.invalid_string,message:u.message}),t.dirty());else if("uuid"===u.kind)f.test(e.data)||(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{validation:"uuid",code:o.ZodIssueCode.invalid_string,message:u.message}),t.dirty());else if("cuid"===u.kind)p.test(e.data)||(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{validation:"cuid",code:o.ZodIssueCode.invalid_string,message:u.message}),t.dirty());else if("cuid2"===u.kind)h.test(e.data)||(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{validation:"cuid2",code:o.ZodIssueCode.invalid_string,message:u.message}),t.dirty());else if("ulid"===u.kind)m.test(e.data)||(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{validation:"ulid",code:o.ZodIssueCode.invalid_string,message:u.message}),t.dirty());else if("url"===u.kind)try{new URL(e.data)}catch(s){r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{validation:"url",code:o.ZodIssueCode.invalid_string,message:u.message}),t.dirty()}else"regex"===u.kind?(u.regex.lastIndex=0,u.regex.test(e.data)||(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{validation:"regex",code:o.ZodIssueCode.invalid_string,message:u.message}),t.dirty())):"trim"===u.kind?e.data=e.data.trim():"includes"===u.kind?e.data.includes(u.value,u.position)||(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_string,validation:{includes:u.value,position:u.position},message:u.message}),t.dirty()):"toLowerCase"===u.kind?e.data=e.data.toLowerCase():"toUpperCase"===u.kind?e.data=e.data.toUpperCase():"startsWith"===u.kind?e.data.startsWith(u.value)||(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_string,validation:{startsWith:u.value},message:u.message}),t.dirty()):"endsWith"===u.kind?e.data.endsWith(u.value)||(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_string,validation:{endsWith:u.value},message:u.message}),t.dirty()):"datetime"===u.kind?((d=u).precision?d.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${d.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${d.precision}}Z$`):0===d.precision?d.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):d.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$")).test(e.data)||(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_string,validation:"datetime",message:u.message}),t.dirty()):"ip"===u.kind?(s=e.data,("v4"!==(a=u.version)&&a||!v.test(s))&&("v6"!==a&&a||!_.test(s))&&(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{validation:"ip",code:o.ZodIssueCode.invalid_string,message:u.message}),t.dirty())):i.util.assertNever(u);var s,a,d;return{status:t.value,value:e.data}}_addCheck(e){return new b({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...a.errorUtil.errToObj(e)})}url(e){return this._addCheck({kind:"url",...a.errorUtil.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...a.errorUtil.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...a.errorUtil.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...a.errorUtil.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...a.errorUtil.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...a.errorUtil.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...a.errorUtil.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...a.errorUtil.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...a.errorUtil.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...a.errorUtil.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...a.errorUtil.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...a.errorUtil.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...a.errorUtil.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...a.errorUtil.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...a.errorUtil.errToObj(t)})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===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 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 minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function Z(e,t){const r=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,a=r>s?r:s;return parseInt(e.toFixed(a).replace(".",""))%parseInt(t.toFixed(a).replace(".",""))/Math.pow(10,a)}t.ZodString=b,b.create=e=>{var t;return new b({checks:[],typeName:ie.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...c(e)})};class x extends l{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==i.ZodParsedType.number){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.number,received:t.parsedType}),n.INVALID}let t;const r=new n.ParseStatus;for(const s of this._def.checks)"int"===s.kind?i.util.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:s.message}),r.dirty()):"min"===s.kind?(s.inclusive?e.data<s.value:e.data<=s.value)&&(t=this._getOrReturnCtx(e,t),(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),r.dirty()):"max"===s.kind?(s.inclusive?e.data>s.value:e.data>=s.value)&&(t=this._getOrReturnCtx(e,t),(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),r.dirty()):"multipleOf"===s.kind?0!==Z(e.data,s.value)&&(t=this._getOrReturnCtx(e,t),(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.not_multiple_of,multipleOf:s.value,message:s.message}),r.dirty()):"finite"===s.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.not_finite,message:s.message}),r.dirty()):i.util.assertNever(s);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,a.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,a.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,a.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,a.errorUtil.toString(t))}setLimit(e,t,r,s){return new x({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:a.errorUtil.toString(s)}]})}_addCheck(e){return new x({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:a.errorUtil.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:a.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:a.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:a.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:a.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:a.errorUtil.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:a.errorUtil.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:a.errorUtil.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:a.errorUtil.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const 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&&i.util.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value)}return Number.isFinite(t)&&Number.isFinite(e)}}t.ZodNumber=x,x.create=e=>new x({checks:[],typeName:ie.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...c(e)});class P extends l{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==i.ZodParsedType.bigint){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.bigint,received:t.parsedType}),n.INVALID}let t;const r=new n.ParseStatus;for(const s of this._def.checks)"min"===s.kind?(s.inclusive?e.data<s.value:e.data<=s.value)&&(t=this._getOrReturnCtx(e,t),(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),r.dirty()):"max"===s.kind?(s.inclusive?e.data>s.value:e.data>=s.value)&&(t=this._getOrReturnCtx(e,t),(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),r.dirty()):"multipleOf"===s.kind?e.data%s.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.not_multiple_of,multipleOf:s.value,message:s.message}),r.dirty()):i.util.assertNever(s);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,a.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,a.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,a.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,a.errorUtil.toString(t))}setLimit(e,t,r,s){return new P({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:a.errorUtil.toString(s)}]})}_addCheck(e){return new P({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:a.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:a.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:a.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:a.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:a.errorUtil.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}t.ZodBigInt=P,P.create=e=>{var t;return new P({checks:[],typeName:ie.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...c(e)})};class T extends l{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==i.ZodParsedType.boolean){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.boolean,received:t.parsedType}),n.INVALID}return(0,n.OK)(e.data)}}t.ZodBoolean=T,T.create=e=>new T({typeName:ie.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...c(e)});class I extends l{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==i.ZodParsedType.date){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.date,received:t.parsedType}),n.INVALID}if(isNaN(e.data.getTime())){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_date}),n.INVALID}const t=new n.ParseStatus;let r;for(const s of this._def.checks)"min"===s.kind?e.data.getTime()<s.value&&(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),t.dirty()):"max"===s.kind?e.data.getTime()>s.value&&(r=this._getOrReturnCtx(e,r),(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),t.dirty()):i.util.assertNever(s);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new I({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:a.errorUtil.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:a.errorUtil.toString(t)})}get minDate(){let e=null;for(const 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(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}t.ZodDate=I,I.create=e=>new I({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:ie.ZodDate,...c(e)});class j extends l{_parse(e){if(this._getType(e)!==i.ZodParsedType.symbol){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.symbol,received:t.parsedType}),n.INVALID}return(0,n.OK)(e.data)}}t.ZodSymbol=j,j.create=e=>new j({typeName:ie.ZodSymbol,...c(e)});class k extends l{_parse(e){if(this._getType(e)!==i.ZodParsedType.undefined){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.undefined,received:t.parsedType}),n.INVALID}return(0,n.OK)(e.data)}}t.ZodUndefined=k,k.create=e=>new k({typeName:ie.ZodUndefined,...c(e)});class O extends l{_parse(e){if(this._getType(e)!==i.ZodParsedType.null){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.null,received:t.parsedType}),n.INVALID}return(0,n.OK)(e.data)}}t.ZodNull=O,O.create=e=>new O({typeName:ie.ZodNull,...c(e)});class C extends l{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,n.OK)(e.data)}}t.ZodAny=C,C.create=e=>new C({typeName:ie.ZodAny,...c(e)});class w extends l{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,n.OK)(e.data)}}t.ZodUnknown=w,w.create=e=>new w({typeName:ie.ZodUnknown,...c(e)});class D extends l{_parse(e){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.never,received:t.parsedType}),n.INVALID}}t.ZodNever=D,D.create=e=>new D({typeName:ie.ZodNever,...c(e)});class A extends l{_parse(e){if(this._getType(e)!==i.ZodParsedType.undefined){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.void,received:t.parsedType}),n.INVALID}return(0,n.OK)(e.data)}}t.ZodVoid=A,A.create=e=>new A({typeName:ie.ZodVoid,...c(e)});class N extends l{_parse(e){const{ctx:t,status:r}=this._processInputParams(e),s=this._def;if(t.parsedType!==i.ZodParsedType.array)return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.array,received:t.parsedType}),n.INVALID;if(null!==s.exactLength){const e=t.data.length>s.exactLength.value,a=t.data.length<s.exactLength.value;(e||a)&&((0,n.addIssueToContext)(t,{code:e?o.ZodIssueCode.too_big:o.ZodIssueCode.too_small,minimum:a?s.exactLength.value:void 0,maximum:e?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),r.dirty())}if(null!==s.minLength&&t.data.length<s.minLength.value&&((0,n.addIssueToContext)(t,{code:o.ZodIssueCode.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),r.dirty()),null!==s.maxLength&&t.data.length>s.maxLength.value&&((0,n.addIssueToContext)(t,{code:o.ZodIssueCode.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map(((e,r)=>s.type._parseAsync(new d(t,e,t.path,r))))).then((e=>n.ParseStatus.mergeArray(r,e)));const a=[...t.data].map(((e,r)=>s.type._parseSync(new d(t,e,t.path,r))));return n.ParseStatus.mergeArray(r,a)}get element(){return this._def.type}min(e,t){return new N({...this._def,minLength:{value:e,message:a.errorUtil.toString(t)}})}max(e,t){return new N({...this._def,maxLength:{value:e,message:a.errorUtil.toString(t)}})}length(e,t){return new N({...this._def,exactLength:{value:e,message:a.errorUtil.toString(t)}})}nonempty(e){return this.min(1,e)}}function S(e){if(e instanceof M){const t={};for(const r in e.shape){const s=e.shape[r];t[r]=Q.create(S(s))}return new M({...e._def,shape:()=>t})}return e instanceof N?new N({...e._def,type:S(e.element)}):e instanceof Q?Q.create(S(e.unwrap())):e instanceof ee?ee.create(S(e.unwrap())):e instanceof R?R.create(e.items.map((e=>S(e)))):e}t.ZodArray=N,N.create=(e,t)=>new N({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ie.ZodArray,...c(t)});class M extends l{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=i.util.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==i.ZodParsedType.object){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.object,received:t.parsedType}),n.INVALID}const{status:t,ctx:r}=this._processInputParams(e),{shape:s,keys:a}=this._getCached(),u=[];if(!(this._def.catchall instanceof D&&"strip"===this._def.unknownKeys))for(const e in r.data)a.includes(e)||u.push(e);const c=[];for(const e of a){const t=s[e],a=r.data[e];c.push({key:{status:"valid",value:e},value:t._parse(new d(r,a,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof D){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of u)c.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)u.length>0&&((0,n.addIssueToContext)(r,{code:o.ZodIssueCode.unrecognized_keys,keys:u}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of u){const s=r.data[t];c.push({key:{status:"valid",value:t},value:e._parse(new d(r,s,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of c){const r=await t.key;e.push({key:r,value:await t.value,alwaysSet:t.alwaysSet})}return e})).then((e=>n.ParseStatus.mergeObjectSync(t,e))):n.ParseStatus.mergeObjectSync(t,c)}get shape(){return this._def.shape()}strict(e){return a.errorUtil.errToObj,new M({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var s,n,i,o;const d=null!==(i=null===(n=(s=this._def).errorMap)||void 0===n?void 0:n.call(s,t,r).message)&&void 0!==i?i:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(o=a.errorUtil.errToObj(e).message)&&void 0!==o?o:d}:{message:d}}}:{}})}strip(){return new M({...this._def,unknownKeys:"strip"})}passthrough(){return new M({...this._def,unknownKeys:"passthrough"})}extend(e){return new M({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new M({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ie.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new M({...this._def,catchall:e})}pick(e){const t={};return i.util.objectKeys(e).forEach((r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])})),new M({...this._def,shape:()=>t})}omit(e){const t={};return i.util.objectKeys(this.shape).forEach((r=>{e[r]||(t[r]=this.shape[r])})),new M({...this._def,shape:()=>t})}deepPartial(){return S(this)}partial(e){const t={};return i.util.objectKeys(this.shape).forEach((r=>{const s=this.shape[r];e&&!e[r]?t[r]=s:t[r]=s.optional()})),new M({...this._def,shape:()=>t})}required(e){const t={};return i.util.objectKeys(this.shape).forEach((r=>{if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof Q;)e=e._def.innerType;t[r]=e}})),new M({...this._def,shape:()=>t})}keyof(){return G(i.util.objectKeys(this.shape))}}t.ZodObject=M,M.create=(e,t)=>new M({shape:()=>e,unknownKeys:"strip",catchall:D.create(),typeName:ie.ZodObject,...c(t)}),M.strictCreate=(e,t)=>new M({shape:()=>e,unknownKeys:"strict",catchall:D.create(),typeName:ie.ZodObject,...c(t)}),M.lazycreate=(e,t)=>new M({shape:e,unknownKeys:"strip",catchall:D.create(),typeName:ie.ZodObject,...c(t)});class E extends l{_parse(e){const{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map((async e=>{const r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const r=e.map((e=>new o.ZodError(e.ctx.common.issues)));return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_union,unionErrors:r}),n.INVALID}));{let e;const s=[];for(const a of r){const r={...t,common:{...t.common,issues:[]},parent:null},n=a._parseSync({data:t.data,path:t.path,parent:r});if("valid"===n.status)return n;"dirty"!==n.status||e||(e={result:n,ctx:r}),r.common.issues.length&&s.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const a=s.map((e=>new o.ZodError(e)));return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_union,unionErrors:a}),n.INVALID}}get options(){return this._def.options}}t.ZodUnion=E,E.create=(e,t)=>new E({options:e,typeName:ie.ZodUnion,...c(t)});const z=e=>e instanceof B?z(e.schema):e instanceof X?z(e.innerType()):e instanceof W?[e.value]:e instanceof H?e.options:e instanceof J?Object.keys(e.enum):e instanceof te?z(e._def.innerType):e instanceof k?[void 0]:e instanceof O?[null]:null;class L extends l{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.ZodParsedType.object)return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.object,received:t.parsedType}),n.INVALID;const r=this.discriminator,s=t.data[r],a=this.optionsMap.get(s);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):((0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),n.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){const s=new Map;for(const r of t){const t=z(r.shape[e]);if(!t)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const a of t){if(s.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);s.set(a,r)}}return new L({typeName:ie.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:s,...c(r)})}}function V(e,t){const r=(0,i.getParsedType)(e),s=(0,i.getParsedType)(t);if(e===t)return{valid:!0,data:e};if(r===i.ZodParsedType.object&&s===i.ZodParsedType.object){const r=i.util.objectKeys(t),s=i.util.objectKeys(e).filter((e=>-1!==r.indexOf(e))),a={...e,...t};for(const r of s){const s=V(e[r],t[r]);if(!s.valid)return{valid:!1};a[r]=s.data}return{valid:!0,data:a}}if(r===i.ZodParsedType.array&&s===i.ZodParsedType.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let s=0;s<e.length;s++){const a=V(e[s],t[s]);if(!a.valid)return{valid:!1};r.push(a.data)}return{valid:!0,data:r}}return r===i.ZodParsedType.date&&s===i.ZodParsedType.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}t.ZodDiscriminatedUnion=L;class U extends l{_parse(e){const{status:t,ctx:r}=this._processInputParams(e),s=(e,s)=>{if((0,n.isAborted)(e)||(0,n.isAborted)(s))return n.INVALID;const a=V(e.value,s.value);return a.valid?(((0,n.isDirty)(e)||(0,n.isDirty)(s))&&t.dirty(),{status:t.value,value:a.data}):((0,n.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_intersection_types}),n.INVALID)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then((([e,t])=>s(e,t))):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}t.ZodIntersection=U,U.create=(e,t,r)=>new U({left:e,right:t,typeName:ie.ZodIntersection,...c(r)});class R extends l{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.ZodParsedType.array)return(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.array,received:r.parsedType}),n.INVALID;if(r.data.length<this._def.items.length)return(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.INVALID;!this._def.rest&&r.data.length>this._def.items.length&&((0,n.addIssueToContext)(r,{code:o.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const s=[...r.data].map(((e,t)=>{const s=this._def.items[t]||this._def.rest;return s?s._parse(new d(r,e,r.path,t)):null})).filter((e=>!!e));return r.common.async?Promise.all(s).then((e=>n.ParseStatus.mergeArray(t,e))):n.ParseStatus.mergeArray(t,s)}get items(){return this._def.items}rest(e){return new R({...this._def,rest:e})}}t.ZodTuple=R,R.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new R({items:e,typeName:ie.ZodTuple,rest:null,...c(t)})};class K extends l{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.ZodParsedType.object)return(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.object,received:r.parsedType}),n.INVALID;const s=[],a=this._def.keyType,u=this._def.valueType;for(const e in r.data)s.push({key:a._parse(new d(r,e,r.path,e)),value:u._parse(new d(r,r.data[e],r.path,e))});return r.common.async?n.ParseStatus.mergeObjectAsync(t,s):n.ParseStatus.mergeObjectSync(t,s)}get element(){return this._def.valueType}static create(e,t,r){return new K(t instanceof l?{keyType:e,valueType:t,typeName:ie.ZodRecord,...c(r)}:{keyType:b.create(),valueType:e,typeName:ie.ZodRecord,...c(t)})}}t.ZodRecord=K;class $ extends l{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.ZodParsedType.map)return(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.map,received:r.parsedType}),n.INVALID;const s=this._def.keyType,a=this._def.valueType,u=[...r.data.entries()].map((([e,t],n)=>({key:s._parse(new d(r,e,r.path,[n,"key"])),value:a._parse(new d(r,t,r.path,[n,"value"]))})));if(r.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const r of u){const s=await r.key,a=await r.value;if("aborted"===s.status||"aborted"===a.status)return n.INVALID;"dirty"!==s.status&&"dirty"!==a.status||t.dirty(),e.set(s.value,a.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const r of u){const s=r.key,a=r.value;if("aborted"===s.status||"aborted"===a.status)return n.INVALID;"dirty"!==s.status&&"dirty"!==a.status||t.dirty(),e.set(s.value,a.value)}return{status:t.value,value:e}}}}t.ZodMap=$,$.create=(e,t,r)=>new $({valueType:t,keyType:e,typeName:ie.ZodMap,...c(r)});class F extends l{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.ZodParsedType.set)return(0,n.addIssueToContext)(r,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.set,received:r.parsedType}),n.INVALID;const s=this._def;null!==s.minSize&&r.data.size<s.minSize.value&&((0,n.addIssueToContext)(r,{code:o.ZodIssueCode.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),t.dirty()),null!==s.maxSize&&r.data.size>s.maxSize.value&&((0,n.addIssueToContext)(r,{code:o.ZodIssueCode.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),t.dirty());const a=this._def.valueType;function u(e){const r=new Set;for(const s of e){if("aborted"===s.status)return n.INVALID;"dirty"===s.status&&t.dirty(),r.add(s.value)}return{status:t.value,value:r}}const c=[...r.data.values()].map(((e,t)=>a._parse(new d(r,e,r.path,t))));return r.common.async?Promise.all(c).then((e=>u(e))):u(c)}min(e,t){return new F({...this._def,minSize:{value:e,message:a.errorUtil.toString(t)}})}max(e,t){return new F({...this._def,maxSize:{value:e,message:a.errorUtil.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}t.ZodSet=F,F.create=(e,t)=>new F({valueType:e,minSize:null,maxSize:null,typeName:ie.ZodSet,...c(t)});class q extends l{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.ZodParsedType.function)return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.function,received:t.parsedType}),n.INVALID;function r(e,r){return(0,n.makeIssue)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,s.getErrorMap)(),s.defaultErrorMap].filter((e=>!!e)),issueData:{code:o.ZodIssueCode.invalid_arguments,argumentsError:r}})}function a(e,r){return(0,n.makeIssue)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,s.getErrorMap)(),s.defaultErrorMap].filter((e=>!!e)),issueData:{code:o.ZodIssueCode.invalid_return_type,returnTypeError:r}})}const d={errorMap:t.common.contextualErrorMap},u=t.data;return this._def.returns instanceof Y?(0,n.OK)((async(...e)=>{const t=new o.ZodError([]),s=await this._def.args.parseAsync(e,d).catch((s=>{throw t.addIssue(r(e,s)),t})),n=await u(...s);return await this._def.returns._def.type.parseAsync(n,d).catch((e=>{throw t.addIssue(a(n,e)),t}))})):(0,n.OK)(((...e)=>{const t=this._def.args.safeParse(e,d);if(!t.success)throw new o.ZodError([r(e,t.error)]);const s=u(...t.data),n=this._def.returns.safeParse(s,d);if(!n.success)throw new o.ZodError([a(s,n.error)]);return n.data}))}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new q({...this._def,args:R.create(e).rest(w.create())})}returns(e){return new q({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new q({args:e||R.create([]).rest(w.create()),returns:t||w.create(),typeName:ie.ZodFunction,...c(r)})}}t.ZodFunction=q;class B extends l{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}t.ZodLazy=B,B.create=(e,t)=>new B({getter:e,typeName:ie.ZodLazy,...c(t)});class W extends l{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{received:t.data,code:o.ZodIssueCode.invalid_literal,expected:this._def.value}),n.INVALID}return{status:"valid",value:e.data}}get value(){return this._def.value}}function G(e,t){return new H({values:e,typeName:ie.ZodEnum,...c(t)})}t.ZodLiteral=W,W.create=(e,t)=>new W({value:e,typeName:ie.ZodLiteral,...c(t)});class H extends l{_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),r=this._def.values;return(0,n.addIssueToContext)(t,{expected:i.util.joinValues(r),received:t.parsedType,code:o.ZodIssueCode.invalid_type}),n.INVALID}if(-1===this._def.values.indexOf(e.data)){const t=this._getOrReturnCtx(e),r=this._def.values;return(0,n.addIssueToContext)(t,{received:t.data,code:o.ZodIssueCode.invalid_enum_value,options:r}),n.INVALID}return(0,n.OK)(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e){return H.create(e)}exclude(e){return H.create(this.options.filter((t=>!e.includes(t))))}}t.ZodEnum=H,H.create=G;class J extends l{_parse(e){const t=i.util.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==i.ZodParsedType.string&&r.parsedType!==i.ZodParsedType.number){const e=i.util.objectValues(t);return(0,n.addIssueToContext)(r,{expected:i.util.joinValues(e),received:r.parsedType,code:o.ZodIssueCode.invalid_type}),n.INVALID}if(-1===t.indexOf(e.data)){const e=i.util.objectValues(t);return(0,n.addIssueToContext)(r,{received:r.data,code:o.ZodIssueCode.invalid_enum_value,options:e}),n.INVALID}return(0,n.OK)(e.data)}get enum(){return this._def.values}}t.ZodNativeEnum=J,J.create=(e,t)=>new J({values:e,typeName:ie.ZodNativeEnum,...c(t)});class Y extends l{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.ZodParsedType.promise&&!1===t.common.async)return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.promise,received:t.parsedType}),n.INVALID;const r=t.parsedType===i.ZodParsedType.promise?t.data:Promise.resolve(t.data);return(0,n.OK)(r.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}t.ZodPromise=Y,Y.create=(e,t)=>new Y({type:e,typeName:ie.ZodPromise,...c(t)});class X extends l{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ie.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:r}=this._processInputParams(e),s=this._def.effect||null;if("preprocess"===s.type){const e=s.transform(r.data);return r.common.async?Promise.resolve(e).then((e=>this._def.schema._parseAsync({data:e,path:r.path,parent:r}))):this._def.schema._parseSync({data:e,path:r.path,parent:r})}const a={addIssue:e=>{(0,n.addIssueToContext)(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),"refinement"===s.type){const e=e=>{const t=s.refinement(e,a);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===r.common.async){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===s.status?n.INVALID:("dirty"===s.status&&t.dirty(),e(s.value),{status:t.value,value:s.value})}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((r=>"aborted"===r.status?n.INVALID:("dirty"===r.status&&t.dirty(),e(r.value).then((()=>({status:t.value,value:r.value}))))))}if("transform"===s.type){if(!1===r.common.async){const e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!(0,n.isValid)(e))return e;const i=s.transform(e.value,a);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((e=>(0,n.isValid)(e)?Promise.resolve(s.transform(e.value,a)).then((e=>({status:t.value,value:e}))):e))}i.util.assertNever(s)}}t.ZodEffects=X,t.ZodTransformer=X,X.create=(e,t,r)=>new X({schema:e,typeName:ie.ZodEffects,effect:t,...c(r)}),X.createWithPreprocess=(e,t,r)=>new X({schema:t,effect:{type:"preprocess",transform:e},typeName:ie.ZodEffects,...c(r)});class Q extends l{_parse(e){return this._getType(e)===i.ZodParsedType.undefined?(0,n.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}t.ZodOptional=Q,Q.create=(e,t)=>new Q({innerType:e,typeName:ie.ZodOptional,...c(t)});class ee extends l{_parse(e){return this._getType(e)===i.ZodParsedType.null?(0,n.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}t.ZodNullable=ee,ee.create=(e,t)=>new ee({innerType:e,typeName:ie.ZodNullable,...c(t)});class te extends l{_parse(e){const{ctx:t}=this._processInputParams(e);let r=t.data;return t.parsedType===i.ZodParsedType.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}t.ZodDefault=te,te.create=(e,t)=>new te({innerType:e,typeName:ie.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...c(t)});class re extends l{_parse(e){const{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return(0,n.isAsync)(s)?s.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new o.ZodError(r.common.issues)},input:r.data})}))):{status:"valid",value:"valid"===s.status?s.value:this._def.catchValue({get error(){return new o.ZodError(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}t.ZodCatch=re,re.create=(e,t)=>new re({innerType:e,typeName:ie.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...c(t)});class se extends l{_parse(e){if(this._getType(e)!==i.ZodParsedType.nan){const t=this._getOrReturnCtx(e);return(0,n.addIssueToContext)(t,{code:o.ZodIssueCode.invalid_type,expected:i.ZodParsedType.nan,received:t.parsedType}),n.INVALID}return{status:"valid",value:e.data}}}t.ZodNaN=se,se.create=e=>new se({typeName:ie.ZodNaN,...c(e)}),t.BRAND=Symbol("zod_brand");class ae extends l{_parse(e){const{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}t.ZodBranded=ae;class ne extends l{_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?n.INVALID:"dirty"===e.status?(t.dirty(),(0,n.DIRTY)(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{const e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?n.INVALID:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new ne({in:e,out:t,typeName:ie.ZodPipeline})}}var ie;t.ZodPipeline=ne,t.custom=(e,t={},r)=>e?C.create().superRefine(((s,a)=>{var n,i;if(!e(s)){const e="function"==typeof t?t(s):"string"==typeof t?{message:t}:t,o=null===(i=null!==(n=e.fatal)&&void 0!==n?n:r)||void 0===i||i,d="string"==typeof e?{message:e}:e;a.addIssue({code:"custom",...d,fatal:o})}})):C.create(),t.late={object:M.lazycreate},function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline"}(ie=t.ZodFirstPartyTypeKind||(t.ZodFirstPartyTypeKind={})),t.instanceof=(e,r={message:`Input not instance of ${e.name}`})=>(0,t.custom)((t=>t instanceof e),r);const oe=b.create;t.string=oe;const de=x.create;t.number=de;const ue=se.create;t.nan=ue;const ce=P.create;t.bigint=ce;const le=T.create;t.boolean=le;const pe=I.create;t.date=pe;const he=j.create;t.symbol=he;const me=k.create;t.undefined=me;const fe=O.create;t.null=fe;const ye=C.create;t.any=ye;const ge=w.create;t.unknown=ge;const ve=D.create;t.never=ve;const _e=A.create;t.void=_e;const be=N.create;t.array=be;const Ze=M.create;t.object=Ze;const xe=M.strictCreate;t.strictObject=xe;const Pe=E.create;t.union=Pe;const Te=L.create;t.discriminatedUnion=Te;const Ie=U.create;t.intersection=Ie;const je=R.create;t.tuple=je;const ke=K.create;t.record=ke;const Oe=$.create;t.map=Oe;const Ce=F.create;t.set=Ce;const we=q.create;t.function=we;const De=B.create;t.lazy=De;const Ae=W.create;t.literal=Ae;const Ne=H.create;t.enum=Ne;const Se=J.create;t.nativeEnum=Se;const Me=Y.create;t.promise=Me;const Ee=X.create;t.effect=Ee,t.transformer=Ee;const ze=Q.create;t.optional=ze;const Le=ee.create;t.nullable=Le;const Ve=X.createWithPreprocess;t.preprocess=Ve;const Ue=ne.create;t.pipeline=Ue,t.ostring=()=>oe().optional(),t.onumber=()=>de().optional(),t.oboolean=()=>le().optional(),t.coerce={string:e=>b.create({...e,coerce:!0}),number:e=>x.create({...e,coerce:!0}),boolean:e=>T.create({...e,coerce:!0}),bigint:e=>P.create({...e,coerce:!0}),date:e=>I.create({...e,coerce:!0})},t.NEVER=n.INVALID}},t={};return function r(s){var a=t[s];if(void 0!==a)return a.exports;var n=t[s]={exports:{}};return e[s].call(n.exports,n,n.exports,r),n.exports}(1920)})()));
|
|
@@ -7,6 +7,13 @@ export declare const analyticsSchema: z.ZodObject<{
|
|
|
7
7
|
}, {
|
|
8
8
|
apiKey: string;
|
|
9
9
|
}>>;
|
|
10
|
+
clearbit: z.ZodOptional<z.ZodObject<{
|
|
11
|
+
publicApiKey: z.ZodString;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
publicApiKey: string;
|
|
14
|
+
}, {
|
|
15
|
+
publicApiKey: string;
|
|
16
|
+
}>>;
|
|
10
17
|
fathom: z.ZodOptional<z.ZodObject<{
|
|
11
18
|
siteId: z.ZodString;
|
|
12
19
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -70,11 +77,11 @@ export declare const analyticsSchema: z.ZodObject<{
|
|
|
70
77
|
apiKey: z.ZodString;
|
|
71
78
|
apiHost: z.ZodOptional<z.ZodString>;
|
|
72
79
|
}, "strip", z.ZodTypeAny, {
|
|
73
|
-
apiHost?: string | undefined;
|
|
74
80
|
apiKey: string;
|
|
75
|
-
}, {
|
|
76
81
|
apiHost?: string | undefined;
|
|
82
|
+
}, {
|
|
77
83
|
apiKey: string;
|
|
84
|
+
apiHost?: string | undefined;
|
|
78
85
|
}>>;
|
|
79
86
|
plausible: z.ZodOptional<z.ZodObject<{
|
|
80
87
|
domain: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -87,6 +94,9 @@ export declare const analyticsSchema: z.ZodObject<{
|
|
|
87
94
|
amplitude?: {
|
|
88
95
|
apiKey: string;
|
|
89
96
|
} | undefined;
|
|
97
|
+
clearbit?: {
|
|
98
|
+
publicApiKey: string;
|
|
99
|
+
} | undefined;
|
|
90
100
|
fathom?: {
|
|
91
101
|
siteId: string;
|
|
92
102
|
} | undefined;
|
|
@@ -113,8 +123,8 @@ export declare const analyticsSchema: z.ZodObject<{
|
|
|
113
123
|
id: string;
|
|
114
124
|
} | undefined;
|
|
115
125
|
posthog?: {
|
|
116
|
-
apiHost?: string | undefined;
|
|
117
126
|
apiKey: string;
|
|
127
|
+
apiHost?: string | undefined;
|
|
118
128
|
} | undefined;
|
|
119
129
|
plausible?: {
|
|
120
130
|
domain: string;
|
|
@@ -123,6 +133,9 @@ export declare const analyticsSchema: z.ZodObject<{
|
|
|
123
133
|
amplitude?: {
|
|
124
134
|
apiKey: string;
|
|
125
135
|
} | undefined;
|
|
136
|
+
clearbit?: {
|
|
137
|
+
publicApiKey: string;
|
|
138
|
+
} | undefined;
|
|
126
139
|
fathom?: {
|
|
127
140
|
siteId: string;
|
|
128
141
|
} | undefined;
|
|
@@ -149,8 +162,8 @@ export declare const analyticsSchema: z.ZodObject<{
|
|
|
149
162
|
id: string;
|
|
150
163
|
} | undefined;
|
|
151
164
|
posthog?: {
|
|
152
|
-
apiHost?: string | undefined;
|
|
153
165
|
apiKey: string;
|
|
166
|
+
apiHost?: string | undefined;
|
|
154
167
|
} | undefined;
|
|
155
168
|
plausible?: {
|
|
156
169
|
domain: string;
|
|
@@ -4,11 +4,11 @@ export declare const anchorColorSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
4
4
|
via: z.ZodOptional<z.ZodString>;
|
|
5
5
|
to: z.ZodString;
|
|
6
6
|
}, "strict", z.ZodTypeAny, {
|
|
7
|
-
via?: string | undefined;
|
|
8
7
|
from: string;
|
|
9
8
|
to: string;
|
|
10
|
-
}, {
|
|
11
9
|
via?: string | undefined;
|
|
10
|
+
}, {
|
|
12
11
|
from: string;
|
|
13
12
|
to: string;
|
|
13
|
+
via?: string | undefined;
|
|
14
14
|
}>]>;
|
|
@@ -9,38 +9,38 @@ export declare const anchorsSchema: z.ZodArray<z.ZodObject<{
|
|
|
9
9
|
via: z.ZodOptional<z.ZodString>;
|
|
10
10
|
to: z.ZodString;
|
|
11
11
|
}, "strict", z.ZodTypeAny, {
|
|
12
|
-
via?: string | undefined;
|
|
13
12
|
from: string;
|
|
14
13
|
to: string;
|
|
15
|
-
}, {
|
|
16
14
|
via?: string | undefined;
|
|
15
|
+
}, {
|
|
17
16
|
from: string;
|
|
18
17
|
to: string;
|
|
18
|
+
via?: string | undefined;
|
|
19
19
|
}>]>>;
|
|
20
20
|
isDefaultHidden: z.ZodOptional<z.ZodBoolean>;
|
|
21
21
|
version: z.ZodOptional<z.ZodString>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
name: string;
|
|
24
|
+
url: string;
|
|
23
25
|
icon?: string | undefined;
|
|
24
26
|
iconType?: "light" | "brands" | "duotone" | "sharp-solid" | "solid" | "thin" | undefined;
|
|
25
27
|
color?: string | {
|
|
26
|
-
via?: string | undefined;
|
|
27
28
|
from: string;
|
|
28
29
|
to: string;
|
|
30
|
+
via?: string | undefined;
|
|
29
31
|
} | undefined;
|
|
30
32
|
isDefaultHidden?: boolean | undefined;
|
|
31
33
|
version?: string | undefined;
|
|
34
|
+
}, {
|
|
32
35
|
name: string;
|
|
33
36
|
url: string;
|
|
34
|
-
}, {
|
|
35
37
|
icon?: string | undefined;
|
|
36
38
|
iconType?: "light" | "brands" | "duotone" | "sharp-solid" | "solid" | "thin" | undefined;
|
|
37
39
|
color?: string | {
|
|
38
|
-
via?: string | undefined;
|
|
39
40
|
from: string;
|
|
40
41
|
to: string;
|
|
42
|
+
via?: string | undefined;
|
|
41
43
|
} | undefined;
|
|
42
44
|
isDefaultHidden?: boolean | undefined;
|
|
43
45
|
version?: string | undefined;
|
|
44
|
-
name: string;
|
|
45
|
-
url: string;
|
|
46
46
|
}>, "many">;
|
package/dist/schemas/colors.d.ts
CHANGED
|
@@ -18,17 +18,18 @@ export declare const colorsSchema: z.ZodObject<{
|
|
|
18
18
|
via: z.ZodOptional<z.ZodString>;
|
|
19
19
|
to: z.ZodString;
|
|
20
20
|
}, "strict", z.ZodTypeAny, {
|
|
21
|
-
via?: string | undefined;
|
|
22
21
|
from: string;
|
|
23
22
|
to: string;
|
|
24
|
-
}, {
|
|
25
23
|
via?: string | undefined;
|
|
24
|
+
}, {
|
|
26
25
|
from: string;
|
|
27
26
|
to: string;
|
|
27
|
+
via?: string | undefined;
|
|
28
28
|
}>]>>;
|
|
29
29
|
ultraLight: z.ZodOptional<z.ZodAny>;
|
|
30
30
|
ultraDark: z.ZodOptional<z.ZodAny>;
|
|
31
31
|
}, "strict", z.ZodTypeAny, {
|
|
32
|
+
primary: string;
|
|
32
33
|
light?: string | undefined;
|
|
33
34
|
dark?: string | undefined;
|
|
34
35
|
background?: {
|
|
@@ -36,14 +37,14 @@ export declare const colorsSchema: z.ZodObject<{
|
|
|
36
37
|
dark?: string | undefined;
|
|
37
38
|
} | undefined;
|
|
38
39
|
anchors?: string | {
|
|
39
|
-
via?: string | undefined;
|
|
40
40
|
from: string;
|
|
41
41
|
to: string;
|
|
42
|
+
via?: string | undefined;
|
|
42
43
|
} | undefined;
|
|
43
44
|
ultraLight?: any;
|
|
44
45
|
ultraDark?: any;
|
|
45
|
-
primary: string;
|
|
46
46
|
}, {
|
|
47
|
+
primary: string;
|
|
47
48
|
light?: string | undefined;
|
|
48
49
|
dark?: string | undefined;
|
|
49
50
|
background?: {
|
|
@@ -51,11 +52,10 @@ export declare const colorsSchema: z.ZodObject<{
|
|
|
51
52
|
dark?: string | undefined;
|
|
52
53
|
} | undefined;
|
|
53
54
|
anchors?: string | {
|
|
54
|
-
via?: string | undefined;
|
|
55
55
|
from: string;
|
|
56
56
|
to: string;
|
|
57
|
+
via?: string | undefined;
|
|
57
58
|
} | undefined;
|
|
58
59
|
ultraLight?: any;
|
|
59
60
|
ultraDark?: any;
|
|
60
|
-
primary: string;
|
|
61
61
|
}>;
|
package/dist/schemas/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare const configSchema: z.ZodObject<{
|
|
3
3
|
$schema: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
4
4
|
mintlify: z.ZodOptional<z.ZodString>;
|
|
@@ -8,57 +8,67 @@ export declare const configSchema: z.ZodObject<{
|
|
|
8
8
|
dark: z.ZodString;
|
|
9
9
|
href: z.ZodOptional<z.ZodString>;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
href?: string | undefined;
|
|
12
11
|
light: string;
|
|
13
12
|
dark: string;
|
|
14
|
-
}, {
|
|
15
13
|
href?: string | undefined;
|
|
14
|
+
}, {
|
|
16
15
|
light: string;
|
|
17
16
|
dark: string;
|
|
17
|
+
href?: string | undefined;
|
|
18
18
|
}>]>>;
|
|
19
19
|
favicon: z.ZodEffects<z.ZodString, string, string>;
|
|
20
20
|
openapi: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
21
21
|
api: z.ZodOptional<z.ZodObject<{
|
|
22
22
|
baseUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
23
23
|
auth: z.ZodOptional<z.ZodObject<{
|
|
24
|
-
method: z.ZodOptional<z.
|
|
24
|
+
method: z.ZodOptional<z.ZodEnum<["bearer", "basic", "key"]>>;
|
|
25
25
|
name: z.ZodOptional<z.ZodString>;
|
|
26
26
|
inputPrefix: z.ZodOptional<z.ZodString>;
|
|
27
27
|
}, "strict", z.ZodTypeAny, {
|
|
28
|
+
method?: "bearer" | "basic" | "key" | undefined;
|
|
28
29
|
name?: string | undefined;
|
|
29
|
-
method?: string | undefined;
|
|
30
30
|
inputPrefix?: string | undefined;
|
|
31
31
|
}, {
|
|
32
|
+
method?: "bearer" | "basic" | "key" | undefined;
|
|
32
33
|
name?: string | undefined;
|
|
33
|
-
method?: string | undefined;
|
|
34
34
|
inputPrefix?: string | undefined;
|
|
35
35
|
}>>;
|
|
36
|
-
|
|
36
|
+
playground: z.ZodOptional<z.ZodObject<{
|
|
37
|
+
mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["show", "simple", "hide"]>>>;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
mode: "show" | "simple" | "hide";
|
|
40
|
+
}, {
|
|
41
|
+
mode?: "show" | "simple" | "hide" | undefined;
|
|
42
|
+
}>>;
|
|
37
43
|
}, "strict", z.ZodTypeAny, {
|
|
38
44
|
baseUrl?: string | string[] | undefined;
|
|
39
45
|
auth?: {
|
|
46
|
+
method?: "bearer" | "basic" | "key" | undefined;
|
|
40
47
|
name?: string | undefined;
|
|
41
|
-
method?: string | undefined;
|
|
42
48
|
inputPrefix?: string | undefined;
|
|
43
49
|
} | undefined;
|
|
44
|
-
|
|
50
|
+
playground?: {
|
|
51
|
+
mode: "show" | "simple" | "hide";
|
|
52
|
+
} | undefined;
|
|
45
53
|
}, {
|
|
46
54
|
baseUrl?: string | string[] | undefined;
|
|
47
55
|
auth?: {
|
|
56
|
+
method?: "bearer" | "basic" | "key" | undefined;
|
|
48
57
|
name?: string | undefined;
|
|
49
|
-
method?: string | undefined;
|
|
50
58
|
inputPrefix?: string | undefined;
|
|
51
59
|
} | undefined;
|
|
52
|
-
|
|
60
|
+
playground?: {
|
|
61
|
+
mode?: "show" | "simple" | "hide" | undefined;
|
|
62
|
+
} | undefined;
|
|
53
63
|
}>>;
|
|
54
64
|
modeToggle: z.ZodOptional<z.ZodObject<{
|
|
55
|
-
default: z.ZodOptional<z.
|
|
65
|
+
default: z.ZodOptional<z.ZodEnum<["light", "dark"]>>;
|
|
56
66
|
isHidden: z.ZodOptional<z.ZodBoolean>;
|
|
57
67
|
}, "strip", z.ZodTypeAny, {
|
|
58
|
-
default?:
|
|
68
|
+
default?: "light" | "dark" | undefined;
|
|
59
69
|
isHidden?: boolean | undefined;
|
|
60
70
|
}, {
|
|
61
|
-
default?:
|
|
71
|
+
default?: "light" | "dark" | undefined;
|
|
62
72
|
isHidden?: boolean | undefined;
|
|
63
73
|
}>>;
|
|
64
74
|
versions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -82,17 +92,18 @@ export declare const configSchema: z.ZodObject<{
|
|
|
82
92
|
via: z.ZodOptional<z.ZodString>;
|
|
83
93
|
to: z.ZodString;
|
|
84
94
|
}, "strict", z.ZodTypeAny, {
|
|
85
|
-
via?: string | undefined;
|
|
86
95
|
from: string;
|
|
87
96
|
to: string;
|
|
88
|
-
}, {
|
|
89
97
|
via?: string | undefined;
|
|
98
|
+
}, {
|
|
90
99
|
from: string;
|
|
91
100
|
to: string;
|
|
101
|
+
via?: string | undefined;
|
|
92
102
|
}>]>>;
|
|
93
103
|
ultraLight: z.ZodOptional<z.ZodAny>;
|
|
94
104
|
ultraDark: z.ZodOptional<z.ZodAny>;
|
|
95
105
|
}, "strict", z.ZodTypeAny, {
|
|
106
|
+
primary: string;
|
|
96
107
|
light?: string | undefined;
|
|
97
108
|
dark?: string | undefined;
|
|
98
109
|
background?: {
|
|
@@ -100,14 +111,14 @@ export declare const configSchema: z.ZodObject<{
|
|
|
100
111
|
dark?: string | undefined;
|
|
101
112
|
} | undefined;
|
|
102
113
|
anchors?: string | {
|
|
103
|
-
via?: string | undefined;
|
|
104
114
|
from: string;
|
|
105
115
|
to: string;
|
|
116
|
+
via?: string | undefined;
|
|
106
117
|
} | undefined;
|
|
107
118
|
ultraLight?: any;
|
|
108
119
|
ultraDark?: any;
|
|
109
|
-
primary: string;
|
|
110
120
|
}, {
|
|
121
|
+
primary: string;
|
|
111
122
|
light?: string | undefined;
|
|
112
123
|
dark?: string | undefined;
|
|
113
124
|
background?: {
|
|
@@ -115,26 +126,25 @@ export declare const configSchema: z.ZodObject<{
|
|
|
115
126
|
dark?: string | undefined;
|
|
116
127
|
} | undefined;
|
|
117
128
|
anchors?: string | {
|
|
118
|
-
via?: string | undefined;
|
|
119
129
|
from: string;
|
|
120
130
|
to: string;
|
|
131
|
+
via?: string | undefined;
|
|
121
132
|
} | undefined;
|
|
122
133
|
ultraLight?: any;
|
|
123
134
|
ultraDark?: any;
|
|
124
|
-
primary: string;
|
|
125
135
|
}>;
|
|
126
136
|
topbarCtaButton: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
127
137
|
type: z.ZodOptional<z.ZodLiteral<"link">>;
|
|
128
138
|
name: z.ZodString;
|
|
129
139
|
url: z.ZodString;
|
|
130
140
|
}, "strict", z.ZodTypeAny, {
|
|
131
|
-
type?: "link" | undefined;
|
|
132
141
|
name: string;
|
|
133
142
|
url: string;
|
|
134
|
-
}, {
|
|
135
143
|
type?: "link" | undefined;
|
|
144
|
+
}, {
|
|
136
145
|
name: string;
|
|
137
146
|
url: string;
|
|
147
|
+
type?: "link" | undefined;
|
|
138
148
|
}>, z.ZodObject<{
|
|
139
149
|
type: z.ZodLiteral<"github">;
|
|
140
150
|
url: z.ZodString;
|
|
@@ -150,13 +160,13 @@ export declare const configSchema: z.ZodObject<{
|
|
|
150
160
|
name: z.ZodString;
|
|
151
161
|
url: z.ZodString;
|
|
152
162
|
}, "strict", z.ZodTypeAny, {
|
|
153
|
-
type?: "link" | undefined;
|
|
154
163
|
name: string;
|
|
155
164
|
url: string;
|
|
156
|
-
}, {
|
|
157
165
|
type?: "link" | undefined;
|
|
166
|
+
}, {
|
|
158
167
|
name: string;
|
|
159
168
|
url: string;
|
|
169
|
+
type?: "link" | undefined;
|
|
160
170
|
}>, z.ZodObject<{
|
|
161
171
|
type: z.ZodLiteral<"github">;
|
|
162
172
|
url: z.ZodString;
|
|
@@ -173,13 +183,13 @@ export declare const configSchema: z.ZodObject<{
|
|
|
173
183
|
icon: z.ZodOptional<z.ZodString>;
|
|
174
184
|
iconType: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "sharp-solid", "solid", "thin"]>>;
|
|
175
185
|
}, "strict", z.ZodTypeAny, {
|
|
186
|
+
name: string;
|
|
176
187
|
icon?: string | undefined;
|
|
177
188
|
iconType?: "light" | "brands" | "duotone" | "sharp-solid" | "solid" | "thin" | undefined;
|
|
178
|
-
name: string;
|
|
179
189
|
}, {
|
|
190
|
+
name: string;
|
|
180
191
|
icon?: string | undefined;
|
|
181
192
|
iconType?: "light" | "brands" | "duotone" | "sharp-solid" | "solid" | "thin" | undefined;
|
|
182
|
-
name: string;
|
|
183
193
|
}>>;
|
|
184
194
|
anchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
185
195
|
name: z.ZodString;
|
|
@@ -191,40 +201,40 @@ export declare const configSchema: z.ZodObject<{
|
|
|
191
201
|
via: z.ZodOptional<z.ZodString>;
|
|
192
202
|
to: z.ZodString;
|
|
193
203
|
}, "strict", z.ZodTypeAny, {
|
|
194
|
-
via?: string | undefined;
|
|
195
204
|
from: string;
|
|
196
205
|
to: string;
|
|
197
|
-
}, {
|
|
198
206
|
via?: string | undefined;
|
|
207
|
+
}, {
|
|
199
208
|
from: string;
|
|
200
209
|
to: string;
|
|
210
|
+
via?: string | undefined;
|
|
201
211
|
}>]>>;
|
|
202
212
|
isDefaultHidden: z.ZodOptional<z.ZodBoolean>;
|
|
203
213
|
version: z.ZodOptional<z.ZodString>;
|
|
204
214
|
}, "strip", z.ZodTypeAny, {
|
|
215
|
+
name: string;
|
|
216
|
+
url: string;
|
|
205
217
|
icon?: string | undefined;
|
|
206
218
|
iconType?: "light" | "brands" | "duotone" | "sharp-solid" | "solid" | "thin" | undefined;
|
|
207
219
|
color?: string | {
|
|
208
|
-
via?: string | undefined;
|
|
209
220
|
from: string;
|
|
210
221
|
to: string;
|
|
222
|
+
via?: string | undefined;
|
|
211
223
|
} | undefined;
|
|
212
224
|
isDefaultHidden?: boolean | undefined;
|
|
213
225
|
version?: string | undefined;
|
|
226
|
+
}, {
|
|
214
227
|
name: string;
|
|
215
228
|
url: string;
|
|
216
|
-
}, {
|
|
217
229
|
icon?: string | undefined;
|
|
218
230
|
iconType?: "light" | "brands" | "duotone" | "sharp-solid" | "solid" | "thin" | undefined;
|
|
219
231
|
color?: string | {
|
|
220
|
-
via?: string | undefined;
|
|
221
232
|
from: string;
|
|
222
233
|
to: string;
|
|
234
|
+
via?: string | undefined;
|
|
223
235
|
} | undefined;
|
|
224
236
|
isDefaultHidden?: boolean | undefined;
|
|
225
237
|
version?: string | undefined;
|
|
226
|
-
name: string;
|
|
227
|
-
url: string;
|
|
228
238
|
}>, "many">>;
|
|
229
239
|
footerSocials: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
230
240
|
type: z.ZodString;
|
|
@@ -245,6 +255,13 @@ export declare const configSchema: z.ZodObject<{
|
|
|
245
255
|
}, {
|
|
246
256
|
apiKey: string;
|
|
247
257
|
}>>;
|
|
258
|
+
clearbit: z.ZodOptional<z.ZodObject<{
|
|
259
|
+
publicApiKey: z.ZodString;
|
|
260
|
+
}, "strip", z.ZodTypeAny, {
|
|
261
|
+
publicApiKey: string;
|
|
262
|
+
}, {
|
|
263
|
+
publicApiKey: string;
|
|
264
|
+
}>>;
|
|
248
265
|
fathom: z.ZodOptional<z.ZodObject<{
|
|
249
266
|
siteId: z.ZodString;
|
|
250
267
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -308,11 +325,11 @@ export declare const configSchema: z.ZodObject<{
|
|
|
308
325
|
apiKey: z.ZodString;
|
|
309
326
|
apiHost: z.ZodOptional<z.ZodString>;
|
|
310
327
|
}, "strip", z.ZodTypeAny, {
|
|
311
|
-
apiHost?: string | undefined;
|
|
312
328
|
apiKey: string;
|
|
313
|
-
}, {
|
|
314
329
|
apiHost?: string | undefined;
|
|
330
|
+
}, {
|
|
315
331
|
apiKey: string;
|
|
332
|
+
apiHost?: string | undefined;
|
|
316
333
|
}>>;
|
|
317
334
|
plausible: z.ZodOptional<z.ZodObject<{
|
|
318
335
|
domain: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -325,6 +342,9 @@ export declare const configSchema: z.ZodObject<{
|
|
|
325
342
|
amplitude?: {
|
|
326
343
|
apiKey: string;
|
|
327
344
|
} | undefined;
|
|
345
|
+
clearbit?: {
|
|
346
|
+
publicApiKey: string;
|
|
347
|
+
} | undefined;
|
|
328
348
|
fathom?: {
|
|
329
349
|
siteId: string;
|
|
330
350
|
} | undefined;
|
|
@@ -351,8 +371,8 @@ export declare const configSchema: z.ZodObject<{
|
|
|
351
371
|
id: string;
|
|
352
372
|
} | undefined;
|
|
353
373
|
posthog?: {
|
|
354
|
-
apiHost?: string | undefined;
|
|
355
374
|
apiKey: string;
|
|
375
|
+
apiHost?: string | undefined;
|
|
356
376
|
} | undefined;
|
|
357
377
|
plausible?: {
|
|
358
378
|
domain: string;
|
|
@@ -361,6 +381,9 @@ export declare const configSchema: z.ZodObject<{
|
|
|
361
381
|
amplitude?: {
|
|
362
382
|
apiKey: string;
|
|
363
383
|
} | undefined;
|
|
384
|
+
clearbit?: {
|
|
385
|
+
publicApiKey: string;
|
|
386
|
+
} | undefined;
|
|
364
387
|
fathom?: {
|
|
365
388
|
siteId: string;
|
|
366
389
|
} | undefined;
|
|
@@ -387,8 +410,8 @@ export declare const configSchema: z.ZodObject<{
|
|
|
387
410
|
id: string;
|
|
388
411
|
} | undefined;
|
|
389
412
|
posthog?: {
|
|
390
|
-
apiHost?: string | undefined;
|
|
391
413
|
apiKey: string;
|
|
414
|
+
apiHost?: string | undefined;
|
|
392
415
|
} | undefined;
|
|
393
416
|
plausible?: {
|
|
394
417
|
domain: string;
|
|
@@ -403,62 +426,84 @@ export declare const configSchema: z.ZodObject<{
|
|
|
403
426
|
}>>;
|
|
404
427
|
__injected: z.ZodUndefined;
|
|
405
428
|
}, "strip", z.ZodTypeAny, {
|
|
429
|
+
$schema: string;
|
|
430
|
+
name: string;
|
|
431
|
+
favicon: string;
|
|
432
|
+
colors: {
|
|
433
|
+
primary: string;
|
|
434
|
+
light?: string | undefined;
|
|
435
|
+
dark?: string | undefined;
|
|
436
|
+
background?: {
|
|
437
|
+
light?: string | undefined;
|
|
438
|
+
dark?: string | undefined;
|
|
439
|
+
} | undefined;
|
|
440
|
+
anchors?: string | {
|
|
441
|
+
from: string;
|
|
442
|
+
to: string;
|
|
443
|
+
via?: string | undefined;
|
|
444
|
+
} | undefined;
|
|
445
|
+
ultraLight?: any;
|
|
446
|
+
ultraDark?: any;
|
|
447
|
+
};
|
|
448
|
+
navigation: import("../types/navigation").NavigationType[];
|
|
406
449
|
mintlify?: string | undefined;
|
|
407
450
|
logo?: string | {
|
|
408
|
-
href?: string | undefined;
|
|
409
451
|
light: string;
|
|
410
452
|
dark: string;
|
|
453
|
+
href?: string | undefined;
|
|
411
454
|
} | undefined;
|
|
412
455
|
openapi?: string | string[] | undefined;
|
|
413
456
|
api?: {
|
|
414
457
|
baseUrl?: string | string[] | undefined;
|
|
415
458
|
auth?: {
|
|
459
|
+
method?: "bearer" | "basic" | "key" | undefined;
|
|
416
460
|
name?: string | undefined;
|
|
417
|
-
method?: string | undefined;
|
|
418
461
|
inputPrefix?: string | undefined;
|
|
419
462
|
} | undefined;
|
|
420
|
-
|
|
463
|
+
playground?: {
|
|
464
|
+
mode: "show" | "simple" | "hide";
|
|
465
|
+
} | undefined;
|
|
421
466
|
} | undefined;
|
|
422
467
|
modeToggle?: {
|
|
423
|
-
default?:
|
|
468
|
+
default?: "light" | "dark" | undefined;
|
|
424
469
|
isHidden?: boolean | undefined;
|
|
425
470
|
} | undefined;
|
|
426
471
|
versions?: string[] | undefined;
|
|
427
472
|
metadata?: Record<string, string> | undefined;
|
|
428
|
-
anchors?: {
|
|
429
|
-
icon?: string | undefined;
|
|
430
|
-
iconType?: "light" | "brands" | "duotone" | "sharp-solid" | "solid" | "thin" | undefined;
|
|
431
|
-
color?: string | {
|
|
432
|
-
via?: string | undefined;
|
|
433
|
-
from: string;
|
|
434
|
-
to: string;
|
|
435
|
-
} | undefined;
|
|
436
|
-
isDefaultHidden?: boolean | undefined;
|
|
437
|
-
version?: string | undefined;
|
|
438
|
-
name: string;
|
|
439
|
-
url: string;
|
|
440
|
-
}[] | undefined;
|
|
441
473
|
topbarCtaButton?: {
|
|
442
|
-
type?: "link" | undefined;
|
|
443
474
|
name: string;
|
|
444
475
|
url: string;
|
|
476
|
+
type?: "link" | undefined;
|
|
445
477
|
} | {
|
|
446
478
|
type: "github";
|
|
447
479
|
url: string;
|
|
448
480
|
} | undefined;
|
|
449
481
|
topbarLinks?: ({
|
|
450
|
-
type?: "link" | undefined;
|
|
451
482
|
name: string;
|
|
452
483
|
url: string;
|
|
484
|
+
type?: "link" | undefined;
|
|
453
485
|
} | {
|
|
454
486
|
type: "github";
|
|
455
487
|
url: string;
|
|
456
488
|
})[] | undefined;
|
|
457
489
|
topAnchor?: {
|
|
490
|
+
name: string;
|
|
458
491
|
icon?: string | undefined;
|
|
459
492
|
iconType?: "light" | "brands" | "duotone" | "sharp-solid" | "solid" | "thin" | undefined;
|
|
460
|
-
name: string;
|
|
461
493
|
} | undefined;
|
|
494
|
+
anchors?: {
|
|
495
|
+
name: string;
|
|
496
|
+
url: string;
|
|
497
|
+
icon?: string | undefined;
|
|
498
|
+
iconType?: "light" | "brands" | "duotone" | "sharp-solid" | "solid" | "thin" | undefined;
|
|
499
|
+
color?: string | {
|
|
500
|
+
from: string;
|
|
501
|
+
to: string;
|
|
502
|
+
via?: string | undefined;
|
|
503
|
+
} | undefined;
|
|
504
|
+
isDefaultHidden?: boolean | undefined;
|
|
505
|
+
version?: string | undefined;
|
|
506
|
+
}[] | undefined;
|
|
462
507
|
footerSocials?: Record<string, string> | {
|
|
463
508
|
type: string;
|
|
464
509
|
url: string;
|
|
@@ -468,6 +513,9 @@ export declare const configSchema: z.ZodObject<{
|
|
|
468
513
|
amplitude?: {
|
|
469
514
|
apiKey: string;
|
|
470
515
|
} | undefined;
|
|
516
|
+
clearbit?: {
|
|
517
|
+
publicApiKey: string;
|
|
518
|
+
} | undefined;
|
|
471
519
|
fathom?: {
|
|
472
520
|
siteId: string;
|
|
473
521
|
} | undefined;
|
|
@@ -494,8 +542,8 @@ export declare const configSchema: z.ZodObject<{
|
|
|
494
542
|
id: string;
|
|
495
543
|
} | undefined;
|
|
496
544
|
posthog?: {
|
|
497
|
-
apiHost?: string | undefined;
|
|
498
545
|
apiKey: string;
|
|
546
|
+
apiHost?: string | undefined;
|
|
499
547
|
} | undefined;
|
|
500
548
|
plausible?: {
|
|
501
549
|
domain: string;
|
|
@@ -505,10 +553,11 @@ export declare const configSchema: z.ZodObject<{
|
|
|
505
553
|
intercom?: string | undefined;
|
|
506
554
|
} | undefined;
|
|
507
555
|
__injected?: undefined;
|
|
508
|
-
|
|
556
|
+
}, {
|
|
509
557
|
name: string;
|
|
510
558
|
favicon: string;
|
|
511
559
|
colors: {
|
|
560
|
+
primary: string;
|
|
512
561
|
light?: string | undefined;
|
|
513
562
|
dark?: string | undefined;
|
|
514
563
|
background?: {
|
|
@@ -516,73 +565,73 @@ export declare const configSchema: z.ZodObject<{
|
|
|
516
565
|
dark?: string | undefined;
|
|
517
566
|
} | undefined;
|
|
518
567
|
anchors?: string | {
|
|
519
|
-
via?: string | undefined;
|
|
520
568
|
from: string;
|
|
521
569
|
to: string;
|
|
570
|
+
via?: string | undefined;
|
|
522
571
|
} | undefined;
|
|
523
572
|
ultraLight?: any;
|
|
524
573
|
ultraDark?: any;
|
|
525
|
-
primary: string;
|
|
526
574
|
};
|
|
527
575
|
navigation: import("../types/navigation").NavigationType[];
|
|
528
|
-
}, {
|
|
529
576
|
$schema?: string | undefined;
|
|
530
577
|
mintlify?: string | undefined;
|
|
531
578
|
logo?: string | {
|
|
532
|
-
href?: string | undefined;
|
|
533
579
|
light: string;
|
|
534
580
|
dark: string;
|
|
581
|
+
href?: string | undefined;
|
|
535
582
|
} | undefined;
|
|
536
583
|
openapi?: string | string[] | undefined;
|
|
537
584
|
api?: {
|
|
538
585
|
baseUrl?: string | string[] | undefined;
|
|
539
586
|
auth?: {
|
|
587
|
+
method?: "bearer" | "basic" | "key" | undefined;
|
|
540
588
|
name?: string | undefined;
|
|
541
|
-
method?: string | undefined;
|
|
542
589
|
inputPrefix?: string | undefined;
|
|
543
590
|
} | undefined;
|
|
544
|
-
|
|
591
|
+
playground?: {
|
|
592
|
+
mode?: "show" | "simple" | "hide" | undefined;
|
|
593
|
+
} | undefined;
|
|
545
594
|
} | undefined;
|
|
546
595
|
modeToggle?: {
|
|
547
|
-
default?:
|
|
596
|
+
default?: "light" | "dark" | undefined;
|
|
548
597
|
isHidden?: boolean | undefined;
|
|
549
598
|
} | undefined;
|
|
550
599
|
versions?: string[] | undefined;
|
|
551
600
|
metadata?: Record<string, string> | undefined;
|
|
552
|
-
anchors?: {
|
|
553
|
-
icon?: string | undefined;
|
|
554
|
-
iconType?: "light" | "brands" | "duotone" | "sharp-solid" | "solid" | "thin" | undefined;
|
|
555
|
-
color?: string | {
|
|
556
|
-
via?: string | undefined;
|
|
557
|
-
from: string;
|
|
558
|
-
to: string;
|
|
559
|
-
} | undefined;
|
|
560
|
-
isDefaultHidden?: boolean | undefined;
|
|
561
|
-
version?: string | undefined;
|
|
562
|
-
name: string;
|
|
563
|
-
url: string;
|
|
564
|
-
}[] | undefined;
|
|
565
601
|
topbarCtaButton?: {
|
|
566
|
-
type?: "link" | undefined;
|
|
567
602
|
name: string;
|
|
568
603
|
url: string;
|
|
604
|
+
type?: "link" | undefined;
|
|
569
605
|
} | {
|
|
570
606
|
type: "github";
|
|
571
607
|
url: string;
|
|
572
608
|
} | undefined;
|
|
573
609
|
topbarLinks?: ({
|
|
574
|
-
type?: "link" | undefined;
|
|
575
610
|
name: string;
|
|
576
611
|
url: string;
|
|
612
|
+
type?: "link" | undefined;
|
|
577
613
|
} | {
|
|
578
614
|
type: "github";
|
|
579
615
|
url: string;
|
|
580
616
|
})[] | undefined;
|
|
581
617
|
topAnchor?: {
|
|
618
|
+
name: string;
|
|
582
619
|
icon?: string | undefined;
|
|
583
620
|
iconType?: "light" | "brands" | "duotone" | "sharp-solid" | "solid" | "thin" | undefined;
|
|
584
|
-
name: string;
|
|
585
621
|
} | undefined;
|
|
622
|
+
anchors?: {
|
|
623
|
+
name: string;
|
|
624
|
+
url: string;
|
|
625
|
+
icon?: string | undefined;
|
|
626
|
+
iconType?: "light" | "brands" | "duotone" | "sharp-solid" | "solid" | "thin" | undefined;
|
|
627
|
+
color?: string | {
|
|
628
|
+
from: string;
|
|
629
|
+
to: string;
|
|
630
|
+
via?: string | undefined;
|
|
631
|
+
} | undefined;
|
|
632
|
+
isDefaultHidden?: boolean | undefined;
|
|
633
|
+
version?: string | undefined;
|
|
634
|
+
}[] | undefined;
|
|
586
635
|
footerSocials?: Record<string, string> | {
|
|
587
636
|
type: string;
|
|
588
637
|
url: string;
|
|
@@ -592,6 +641,9 @@ export declare const configSchema: z.ZodObject<{
|
|
|
592
641
|
amplitude?: {
|
|
593
642
|
apiKey: string;
|
|
594
643
|
} | undefined;
|
|
644
|
+
clearbit?: {
|
|
645
|
+
publicApiKey: string;
|
|
646
|
+
} | undefined;
|
|
595
647
|
fathom?: {
|
|
596
648
|
siteId: string;
|
|
597
649
|
} | undefined;
|
|
@@ -618,8 +670,8 @@ export declare const configSchema: z.ZodObject<{
|
|
|
618
670
|
id: string;
|
|
619
671
|
} | undefined;
|
|
620
672
|
posthog?: {
|
|
621
|
-
apiHost?: string | undefined;
|
|
622
673
|
apiKey: string;
|
|
674
|
+
apiHost?: string | undefined;
|
|
623
675
|
} | undefined;
|
|
624
676
|
plausible?: {
|
|
625
677
|
domain: string;
|
|
@@ -629,23 +681,4 @@ export declare const configSchema: z.ZodObject<{
|
|
|
629
681
|
intercom?: string | undefined;
|
|
630
682
|
} | undefined;
|
|
631
683
|
__injected?: undefined;
|
|
632
|
-
name: string;
|
|
633
|
-
favicon: string;
|
|
634
|
-
colors: {
|
|
635
|
-
light?: string | undefined;
|
|
636
|
-
dark?: string | undefined;
|
|
637
|
-
background?: {
|
|
638
|
-
light?: string | undefined;
|
|
639
|
-
dark?: string | undefined;
|
|
640
|
-
} | undefined;
|
|
641
|
-
anchors?: string | {
|
|
642
|
-
via?: string | undefined;
|
|
643
|
-
from: string;
|
|
644
|
-
to: string;
|
|
645
|
-
} | undefined;
|
|
646
|
-
ultraLight?: any;
|
|
647
|
-
ultraDark?: any;
|
|
648
|
-
primary: string;
|
|
649
|
-
};
|
|
650
|
-
navigation: import("../types/navigation").NavigationType[];
|
|
651
684
|
}>;
|