PageSourceSearch

https://gmp.ai/assets/contact-BndWC8s6.js

js gmp.ai collected 2026-10-05 12:56:25 UTC 70,608 bytes, 1 lines download raw bytes

1import{Q as e,et as t,g as n,s as r}from"./cases-s7DwVUls.js";import{i,t as a}from"./SiteLayout-C4H2E4R2.js";import{c as o,i as s,l as c,o as ee,s as te,u as ne}from"./index-BASpBRo4.js";import{t as re}from"./clock-DFJgFzl5.js";import{t as ie}from"./shield-check-DURzYFYs.js";import{t as ae}from"./sparkles-C8WCPeH8.js";function oe(e){if(Array.isArray(e))return e.flatMap(e=>oe(e));if(typeof e!=`string`)return[];let t=[],n=0,r,i,a,o,s,c=()=>{for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n<e.length},ee=()=>(i=e.charAt(n),i!==`=`&&i!==`;`&&i!==`,`);for(;n<e.length;){for(r=n,s=!1;c();)if(i=e.charAt(n),i===`,`){for(a=n,n+=1,c(),o=n;n<e.length&&ee();)n+=1;n<e.length&&e.charAt(n)===`=`?(s=!0,n=o,t.push(e.slice(r,a)),r=n):n=a+1}else n+=1;(!s||n>=e.length)&&t.push(e.slice(r))}return t}function se(e){return e instanceof Headers?e:Array.isArray(e)||typeof e==`object`?new Headers(e):null}function ce(...e){return e.reduce((e,t)=>{let n=se(t);if(!n)return e;for(let[t,r]of n.entries())t===`set-cookie`?oe(r).forEach(t=>e.append(`set-cookie`,t)):e.set(t,r);return e},new Headers)}function le(e){return e!==`__proto__`&&e!==`constructor`&&e!==`prototype`}function ue(e,t){let n=Object.create(null);if(e)for(let t of Object.keys(e))le(t)&&(n[t]=e[t]);if(t&&typeof t==`object`)for(let e of Object.keys(t))le(e)&&(n[e]=t[e]);return n}function de(e){if(!e)return Object.create(null);let t=Object.create(null);for(let n of Object.keys(e))le(n)&&(t[n]=e[n]);return t}var fe=()=>{throw Error(`createServerOnlyFn() functions can only be called on the server!`)},l=(e,t)=>{let n=t||e||{};n.method===void 0&&(n.method=`GET`);let r=e=>l(void 0,{...n,validator:e,inputValidator:e});return Object.assign(e=>l(void 0,{...n,...e}),{options:n,middleware:e=>{let t=[...n.middleware||[]];e.map(e=>{ne in e?e.options.middleware&&t.push(...e.options.middleware):t.push(e)});let r=l(void 0,{...n,middleware:t});return r[ne]=!0,r},validator:r,inputValidator:r,handler:(...e)=>{let[t,r]=e,i={...n,extractedFn:t,serverFn:r},a=[...i.middleware||[],ge(i)];return t.method=n.method,Object.assign(async e=>{let n=await pe(a,`client`,{...t,...i,data:e?.data,headers:e?.headers,signal:e?.signal,fetch:e?.fetch,context:de()}),r=o(n.error);if(r)throw r;if(n.error)throw n.error;return n.result},{...t,method:n.method,__executeServer:async e=>{let n=fe(),r=n.contextAfterGlobalMiddlewares;return await pe(a,`server`,{...t,...e,serverFnMeta:t.serverFnMeta,context:ue(e.context,r),request:n.request}).then(e=>({result:e.result,error:e.error,context:e.sendContext}))}})}})};async function pe(e,t,n){let r=me([...c()?.functionMiddleware||[],...e]);if(t===`server`){let e=fe({throwIfNotFound:!1});e?.executedRequestMiddlewares&&(r=r.filter(t=>!e.executedRequestMiddlewares.has(t)))}let i=async e=>{let n=r.shift();if(!n)return e;try{let r=`validator`in n.options?n.options.validator:void 0;!r&&`inputValidator`in n.options&&(r=n.options.inputValidator),r&&t===`server`&&(e.data=await he(r,e.data));let a;if(t===`client`?`client`in n.options&&(a=n.options.client):`server`in n.options&&(a=n.options.server),a){let t=async(t={})=>{let n=await i({...e,...t,context:ue(e.context,t.context),sendContext:ue(e.sendContext,t.sendContext),headers:ce(e.headers,t.headers),_callSiteFetch:e._callSiteFetch,fetch:e._callSiteFetch??t.fetch??e.fetch,result:t.result===void 0?t instanceof Response?t:e.result:t.result,error:t.error??e.error});if(n.error)throw n.error;return n},n=await a({...e,next:t});if(te(n))return{...e,error:n};if(n instanceof Response)return{...e,result:n};if(!n)throw Error(`User middleware returned undefined. You must call next() or return a result in your middlewares.`);return n}return i(e)}catch(t){return{...e,error:t}}};return i({...n,headers:n.headers||{},sendContext:n.sendContext||{},context:n.context||de(),_callSiteFetch:n.fetch})}function me(e,t=100){let n=new Set,r=[],i=(e,a)=>{if(a>t)throw Error(`Middleware nesting depth exceeded maximum of ${t}. Check for circular references.`);e.forEach(e=>{e.options.middleware&&i(e.options.middleware,a+1),n.has(e)||(n.add(e),r.push(e))})};return i(e,0),r}async function he(e,t){if(e==null)return{};if(`~standard`in e){let n=await e[`~standard`].validate(t);if(n.issues)throw Error(JSON.stringify(n.issues,void 0,2));return n.value}if(`parse`in e)return e.parse(t);if(typeof e==`function`)return e(t);throw Error(`Invalid validator type!`)}function ge(e){return{"~types":void 0,options:{inputValidator:e.validator??e.inputValidator,client:async({next:t,sendContext:n,fetch:r,...i})=>{let a={...i,context:n,fetch:r};return t(await e.extractedFn?.(a))},server:async({next:t,...n})=>{let r=await e.serverFn?.(n);return t({...n,result:r})}}}}var _e=i(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),ve=i(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),ye=i(`mail`,[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}
vendor: 13,188 bytes, line 1
1],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]),u;(function(e){e.assertEqual=e=>{};function t(e){}e.assertIs=t;function n(e){throw Error()}e.assertNever=n,e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>typeof t[t[e]]!=`number`),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys=typeof Object.keys==`function`?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger=typeof Number.isInteger==`function`?e=>Number.isInteger(e):e=>typeof e==`number`&&Number.isFinite(e)&&Math.floor(e)===e;function r(e,t=` | `){return e.map(e=>typeof e==`string`?`'${e}'`:e).join(t)}e.joinValues=r,e.jsonStringifyReplacer=(e,t)=>typeof t==`bigint`?t.toString():t})(u||={});var be;(function(e){e.mergeShapes=(e,t)=>({...e,...t})})(be||={});var d=u.arrayToEnum([`string`,`nan`,`number`,`integer`,`float`,`boolean`,`date`,`bigint`,`symbol`,`function`,`undefined`,`null`,`array`,`object`,`unknown`,`promise`,`void`,`never`,`map`,`set`]),f=e=>{switch(typeof e){case`undefined`:return d.undefined;case`string`:return d.string;case`number`:return Number.isNaN(e)?d.nan:d.number;case`boolean`:return d.boolean;case`function`:return d.function;case`bigint`:return d.bigint;case`symbol`:return d.symbol;case`object`:return Array.isArray(e)?d.array:e===null?d.null:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?d.promise:typeof Map<`u`&&e instanceof Map?d.map:typeof Set<`u`&&e instanceof Set?d.set:typeof Date<`u`&&e instanceof Date?d.date:d.object;default:return d.unknown}},p=u.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`]),m=class e extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name=`ZodError`,this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`)i.unionErrors.map(r);else if(i.code===`invalid_return_type`)r(i.returnTypeError);else if(i.code===`invalid_arguments`)r(i.argumentsError);else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(t){if(!(t instanceof e))throw Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,u.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=e=>e.message){let t={},n=[];for(let r of this.issues)if(r.path.length>0){let n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};m.create=e=>new m(e);var h=(e,t)=>{let n;switch(e.code){case p.invalid_type:n=e.received===d.undefined?`Required`:`Expected ${e.expected}, received ${e.received}`;break;case p.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,u.jsonStringifyReplacer)}`;break;case p.unrecognized_keys:n=`Unrecognized key(s) in object: ${u.joinValues(e.keys,`, `)}`;break;case p.invalid_union:n=`Invalid input`;break;case p.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${u.joinValues(e.options)}`;break;case p.invalid_enum_value:n=`Invalid enum value. Expected ${u.joinValues(e.options)}, received '${e.received}'`;break;case p.invalid_arguments:n=`Invalid function arguments`;break;case p.invalid_return_type:n=`Invalid function return type`;break;case p.invalid_date:n=`Invalid date`;break;case p.invalid_string:typeof e.validation==`object`?`includes`in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position==`number`&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):`startsWith`in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:`endsWith`in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:u.assertNever(e.validation):n=e.validation===`regex`?`Invalid`:`Invalid ${e.validation}`;break;case p.too_small:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at least`:`more than`} ${e.minimum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at least`:`over`} ${e.minimum} character(s)`:e.type===`number`||e.type===`bigint`?`Number must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${e.minimum}`:e.type===`date`?`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 p.too_big:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at most`:`less than`} ${e.maximum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at most`:`under`} ${e.maximum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`bigint`?`BigInt must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`date`?`Date must be ${e.exact?`exactly`:e.inclusive?`smaller than or equal to`:`smaller than`} ${new Date(Number(e.maximum))}`:`Invalid input`;break;case p.custom:n=`Invalid input`;break;case p.invalid_intersection_types:n=`Intersection results could not be merged`;break;case p.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case p.not_finite:n=`Number must be finite`;break;default:n=t.defaultError,u.assertNever(e)}return{message:n}},xe=h;function Se(){return xe}var Ce=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s=``,c=r.filter(e=>!!e).slice().reverse();for(let e of c)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function g(e,t){let n=Se(),r=Ce({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===h?void 0:h].filter(e=>!!e)});e.common.issues.push(r)}var _=class e{constructor(){this.value=`valid`}dirty(){this.value===`valid`&&(this.value=`dirty`)}abort(){this.value!==`aborted`&&(this.value=`aborted`)}static mergeArray(e,t){let n=[];for(let r of t){if(r.status===`aborted`)return v;r.status===`dirty`&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(t,n){let r=[];for(let e of n){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return e.mergeObjectSync(t,r)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if(t.status===`aborted`||i.status===`aborted`)return v;t.status===`dirty`&&e.dirty(),i.status===`dirty`&&e.dirty(),t.value!==`__proto__`&&(i.value!==void 0||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}},v=Object.freeze({status:`aborted`}),we=e=>({status:`dirty`,value:e}),y=e=>({status:`valid`,value:e}),Te=e=>e.status===`aborted`,Ee=e=>e.status===`dirty`,b=e=>e.status===`valid`,x=e=>typeof Promise<`u`&&e instanceof Promise,S;(function(e){e.errToObj=e=>typeof e==`string`?{message:e}:e||{},e.toString=e=>typeof e==`string`?e:e?.message})(S||={});var C=class{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},De=(e,t)=>{if(b(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error(`Validation failed but no issues detected.`);return{success:!1,get error(){if(this._error)return this._error;let t=new m(e.common.issues);return this._error=t,this._error}}};function w(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return t.code===`invalid_enum_value`?{message:a??i.defaultError}:i.data===void 0?{message:a??r??i.defaultError}:t.code===`invalid_type`?{message:a??n??i.defaultError}:{message:i.defaultError}},description:i}}var T=class{get description(){return this._def.description}_getType(e){return f(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:f(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new _,ctx:{common:e.parent.common,data:e.data,parsedType:f(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(x(t))throw Error(`Synchronous parse encountered promise.`);return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:f(e)};return De(n,this._parseSync({data:e,path:n.path,parent:n}))}"~validate"(e){let t={common:{issues:[],async:!!this[`~standard`].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:f(e)};if(!this[`~standard`].async)try{let n=this._parseSync({data:e,path:[],parent:t});return b(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes(`encountered`)&&(this[`~standard`].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>b(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:f(e)},r=this._parse({data:e,path:n.path,parent:n});return De(n,await(x(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>typeof t==`string`||t===void 0?{message:t}:typeof t==`function`?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:p.custom,...n(t)});return typeof Promise<`u`&&i instanceof Promise?i.then(e=>e?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>e(n)?!0:(r.addIssue(typeof t==`function`?t(n,r):t),!1))}_refinement(e){return new U({schema:this,typeName:Y.ZodEffects,effect:{type:`refinement`,refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[`~standard`]={version:1,vendor:`zod`,validate:e=>this[`~validate`](e)}}optional(){return W.create(this,this._def)}nullable(){return G.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return j.create(this)}promise(){return H.create(this,this._def)}or(e){return P.create([this,e],this._def)}and(e){return I.create(this,e,this._def)}transform(e){return new U({...w(this._def),schema:this,typeName:Y.ZodEffects,effect:{type:`transform`,transform:e}})}default(e){let t=typeof e==`function`?e:()=>e;return new K({...w(this._def),innerType:this,defaultValue:t,typeName:Y.ZodDefault})}brand(){return new mt({typeName:Y.ZodBranded,type:this,...w(this._def)})}catch(e){let t=typeof e==`function`?e:()=>e;return new q({...w(this._def),innerType:this,catchValue:t,typeName:Y.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return ht.create(this,e)}readonly(){return J.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Oe=/^c[^\s-]{8,}
vendor: 39,435 bytes, line 1
1$/i,ke=/^[0-9a-z]+$/,Ae=/^[0-9A-HJKMNP-TV-Z]{26}$/i,je=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Me=/^[a-z0-9_-]{21}$/i,Ne=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Pe=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Fe=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Ie=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,Le,Re=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ze=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Be=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Ve=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,He=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Ue=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,We=`((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`,Ge=RegExp(`^${We}$`);function Ke(e){let t=`[0-5]\\d`;e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision??(t=`${t}(\\.\\d+)?`);let n=e.precision?`+`:`?`;return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function qe(e){return RegExp(`^${Ke(e)}$`)}function Je(e){let t=`${We}T${Ke(e)}`,n=[];return n.push(e.local?`Z?`:`Z`),e.offset&&n.push(`([+-]\\d{2}:?\\d{2})`),t=`${t}(${n.join(`|`)})`,RegExp(`^${t}$`)}function Ye(e,t){return!!((t===`v4`||!t)&&Re.test(e)||(t===`v6`||!t)&&Be.test(e))}function Xe(e,t){if(!Ne.test(e))return!1;try{let[n]=e.split(`.`);if(!n)return!1;let r=n.replace(/-/g,`+`).replace(/_/g,`/`).padEnd(n.length+(4-n.length%4)%4,`=`),i=JSON.parse(atob(r));return!(typeof i!=`object`||!i||`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&i.alg!==t)}catch{return!1}}function Ze(e,t){return!!((t===`v4`||!t)&&ze.test(e)||(t===`v6`||!t)&&Ve.test(e))}var E=class e extends T{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==d.string){let t=this._getOrReturnCtx(e);return g(t,{code:p.invalid_type,expected:d.string,received:t.parsedType}),v}let t=new _,n;for(let r of this._def.checks)if(r.kind===`min`)e.data.length<r.value&&(n=this._getOrReturnCtx(e,n),g(n,{code:p.too_small,minimum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`max`)e.data.length>r.value&&(n=this._getOrReturnCtx(e,n),g(n,{code:p.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`length`){let i=e.data.length>r.value,a=e.data.length<r.value;(i||a)&&(n=this._getOrReturnCtx(e,n),i?g(n,{code:p.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!0,message:r.message}):a&&g(n,{code:p.too_small,minimum:r.value,type:`string`,inclusive:!0,exact:!0,message:r.message}),t.dirty())}else if(r.kind===`email`)Fe.test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{validation:`email`,code:p.invalid_string,message:r.message}),t.dirty());else if(r.kind===`emoji`)Le||=new RegExp(Ie,`u`),Le.test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{validation:`emoji`,code:p.invalid_string,message:r.message}),t.dirty());else if(r.kind===`uuid`)je.test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{validation:`uuid`,code:p.invalid_string,message:r.message}),t.dirty());else if(r.kind===`nanoid`)Me.test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{validation:`nanoid`,code:p.invalid_string,message:r.message}),t.dirty());else if(r.kind===`cuid`)Oe.test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{validation:`cuid`,code:p.invalid_string,message:r.message}),t.dirty());else if(r.kind===`cuid2`)ke.test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{validation:`cuid2`,code:p.invalid_string,message:r.message}),t.dirty());else if(r.kind===`ulid`)Ae.test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{validation:`ulid`,code:p.invalid_string,message:r.message}),t.dirty());else if(r.kind===`url`)try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),g(n,{validation:`url`,code:p.invalid_string,message:r.message}),t.dirty()}else r.kind===`regex`?(r.regex.lastIndex=0,r.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{validation:`regex`,code:p.invalid_string,message:r.message}),t.dirty())):r.kind===`trim`?e.data=e.data.trim():r.kind===`includes`?e.data.includes(r.value,r.position)||(n=this._getOrReturnCtx(e,n),g(n,{code:p.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),t.dirty()):r.kind===`toLowerCase`?e.data=e.data.toLowerCase():r.kind===`toUpperCase`?e.data=e.data.toUpperCase():r.kind===`startsWith`?e.data.startsWith(r.value)||(n=this._getOrReturnCtx(e,n),g(n,{code:p.invalid_string,validation:{startsWith:r.value},message:r.message}),t.dirty()):r.kind===`endsWith`?e.data.endsWith(r.value)||(n=this._getOrReturnCtx(e,n),g(n,{code:p.invalid_string,validation:{endsWith:r.value},message:r.message}),t.dirty()):r.kind===`datetime`?Je(r).test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{code:p.invalid_string,validation:`datetime`,message:r.message}),t.dirty()):r.kind===`date`?Ge.test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{code:p.invalid_string,validation:`date`,message:r.message}),t.dirty()):r.kind===`time`?qe(r).test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{code:p.invalid_string,validation:`time`,message:r.message}),t.dirty()):r.kind===`duration`?Pe.test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{validation:`duration`,code:p.invalid_string,message:r.message}),t.dirty()):r.kind===`ip`?Ye(e.data,r.version)||(n=this._getOrReturnCtx(e,n),g(n,{validation:`ip`,code:p.invalid_string,message:r.message}),t.dirty()):r.kind===`jwt`?Xe(e.data,r.alg)||(n=this._getOrReturnCtx(e,n),g(n,{validation:`jwt`,code:p.invalid_string,message:r.message}),t.dirty()):r.kind===`cidr`?Ze(e.data,r.version)||(n=this._getOrReturnCtx(e,n),g(n,{validation:`cidr`,code:p.invalid_string,message:r.message}),t.dirty()):r.kind===`base64`?He.test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{validation:`base64`,code:p.invalid_string,message:r.message}),t.dirty()):r.kind===`base64url`?Ue.test(e.data)||(n=this._getOrReturnCtx(e,n),g(n,{validation:`base64url`,code:p.invalid_string,message:r.message}),t.dirty()):u.assertNever(r);return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:p.invalid_string,...S.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(e){return this._addCheck({kind:`email`,...S.errToObj(e)})}url(e){return this._addCheck({kind:`url`,...S.errToObj(e)})}emoji(e){return this._addCheck({kind:`emoji`,...S.errToObj(e)})}uuid(e){return this._addCheck({kind:`uuid`,...S.errToObj(e)})}nanoid(e){return this._addCheck({kind:`nanoid`,...S.errToObj(e)})}cuid(e){return this._addCheck({kind:`cuid`,...S.errToObj(e)})}cuid2(e){return this._addCheck({kind:`cuid2`,...S.errToObj(e)})}ulid(e){return this._addCheck({kind:`ulid`,...S.errToObj(e)})}base64(e){return this._addCheck({kind:`base64`,...S.errToObj(e)})}base64url(e){return this._addCheck({kind:`base64url`,...S.errToObj(e)})}jwt(e){return this._addCheck({kind:`jwt`,...S.errToObj(e)})}ip(e){return this._addCheck({kind:`ip`,...S.errToObj(e)})}cidr(e){return this._addCheck({kind:`cidr`,...S.errToObj(e)})}datetime(e){return typeof e==`string`?this._addCheck({kind:`datetime`,precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:`datetime`,precision:e?.precision===void 0?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...S.errToObj(e?.message)})}date(e){return this._addCheck({kind:`date`,message:e})}time(e){return typeof e==`string`?this._addCheck({kind:`time`,precision:null,message:e}):this._addCheck({kind:`time`,precision:e?.precision===void 0?null:e?.precision,...S.errToObj(e?.message)})}duration(e){return this._addCheck({kind:`duration`,...S.errToObj(e)})}regex(e,t){return this._addCheck({kind:`regex`,regex:e,...S.errToObj(t)})}includes(e,t){return this._addCheck({kind:`includes`,value:e,position:t?.position,...S.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:`startsWith`,value:e,...S.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:`endsWith`,value:e,...S.errToObj(t)})}min(e,t){return this._addCheck({kind:`min`,value:e,...S.errToObj(t)})}max(e,t){return this._addCheck({kind:`max`,value:e,...S.errToObj(t)})}length(e,t){return this._addCheck({kind:`length`,value:e,...S.errToObj(t)})}nonempty(e){return this.min(1,S.errToObj(e))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:`trim`}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toLowerCase`}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toUpperCase`}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind===`datetime`)}get isDate(){return!!this._def.checks.find(e=>e.kind===`date`)}get isTime(){return!!this._def.checks.find(e=>e.kind===`time`)}get isDuration(){return!!this._def.checks.find(e=>e.kind===`duration`)}get isEmail(){return!!this._def.checks.find(e=>e.kind===`email`)}get isURL(){return!!this._def.checks.find(e=>e.kind===`url`)}get isEmoji(){return!!this._def.checks.find(e=>e.kind===`emoji`)}get isUUID(){return!!this._def.checks.find(e=>e.kind===`uuid`)}get isNANOID(){return!!this._def.checks.find(e=>e.kind===`nanoid`)}get isCUID(){return!!this._def.checks.find(e=>e.kind===`cuid`)}get isCUID2(){return!!this._def.checks.find(e=>e.kind===`cuid2`)}get isULID(){return!!this._def.checks.find(e=>e.kind===`ulid`)}get isIP(){return!!this._def.checks.find(e=>e.kind===`ip`)}get isCIDR(){return!!this._def.checks.find(e=>e.kind===`cidr`)}get isBase64(){return!!this._def.checks.find(e=>e.kind===`base64`)}get isBase64url(){return!!this._def.checks.find(e=>e.kind===`base64url`)}get minLength(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}};E.create=e=>new E({checks:[],typeName:Y.ZodString,coerce:e?.coerce??!1,...w(e)});function Qe(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=(t.toString().split(`.`)[1]||``).length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(`.`,``))%Number.parseInt(t.toFixed(i).replace(`.`,``))/10**i}var $e=class e extends T{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)!==d.number){let t=this._getOrReturnCtx(e);return g(t,{code:p.invalid_type,expected:d.number,received:t.parsedType}),v}let t,n=new _;for(let r of this._def.checks)r.kind===`int`?u.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),g(t,{code:p.invalid_type,expected:`integer`,received:`float`,message:r.message}),n.dirty()):r.kind===`min`?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),g(t,{code:p.too_small,minimum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`max`?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),g(t,{code:p.too_big,maximum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`multipleOf`?Qe(e.data,r.value)!==0&&(t=this._getOrReturnCtx(e,t),g(t,{code:p.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):r.kind===`finite`?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),g(t,{code:p.not_finite,message:r.message}),n.dirty()):u.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,S.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,S.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,S.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,S.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:S.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(e){return this._addCheck({kind:`int`,message:S.toString(e)})}positive(e){return this._addCheck({kind:`min`,value:0,inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:0,inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:0,inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:0,inclusive:!0,message:S.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:S.toString(t)})}finite(e){return this._addCheck({kind:`finite`,message:S.toString(e)})}safe(e){return this._addCheck({kind:`min`,inclusive:!0,value:-(2**53-1),message:S.toString(e)})._addCheck({kind:`max`,inclusive:!0,value:2**53-1,message:S.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind===`int`||e.kind===`multipleOf`&&u.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if(n.kind===`finite`||n.kind===`int`||n.kind===`multipleOf`)return!0;else n.kind===`min`?(t===null||n.value>t)&&(t=n.value):n.kind===`max`&&(e===null||n.value<e)&&(e=n.value);return Number.isFinite(t)&&Number.isFinite(e)}};$e.create=e=>new $e({checks:[],typeName:Y.ZodNumber,coerce:e?.coerce||!1,...w(e)});var et=class e extends T{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==d.bigint)return this._getInvalidInput(e);let t,n=new _;for(let r of this._def.checks)r.kind===`min`?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),g(t,{code:p.too_small,type:`bigint`,minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`max`?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),g(t,{code:p.too_big,type:`bigint`,maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`multipleOf`?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),g(t,{code:p.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):u.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return g(t,{code:p.invalid_type,expected:d.bigint,received:t.parsedType}),v}gte(e,t){return this.setLimit(`min`,e,!0,S.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,S.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,S.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,S.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:S.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!0,message:S.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:S.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}};et.create=e=>new et({checks:[],typeName:Y.ZodBigInt,coerce:e?.coerce??!1,...w(e)});var tt=class extends T{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==d.boolean){let t=this._getOrReturnCtx(e);return g(t,{code:p.invalid_type,expected:d.boolean,received:t.parsedType}),v}return y(e.data)}};tt.create=e=>new tt({typeName:Y.ZodBoolean,coerce:e?.coerce||!1,...w(e)});var nt=class e extends T{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==d.date){let t=this._getOrReturnCtx(e);return g(t,{code:p.invalid_type,expected:d.date,received:t.parsedType}),v}if(Number.isNaN(e.data.getTime()))return g(this._getOrReturnCtx(e),{code:p.invalid_date}),v;let t=new _,n;for(let r of this._def.checks)r.kind===`min`?e.data.getTime()<r.value&&(n=this._getOrReturnCtx(e,n),g(n,{code:p.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:`date`}),t.dirty()):r.kind===`max`?e.data.getTime()>r.value&&(n=this._getOrReturnCtx(e,n),g(n,{code:p.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:`date`}),t.dirty()):u.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(e,t){return this._addCheck({kind:`min`,value:e.getTime(),message:S.toString(t)})}max(e,t){return this._addCheck({kind:`max`,value:e.getTime(),message:S.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e==null?null:new Date(e)}get maxDate(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e==null?null:new Date(e)}};nt.create=e=>new nt({checks:[],coerce:e?.coerce||!1,typeName:Y.ZodDate,...w(e)});var rt=class extends T{_parse(e){if(this._getType(e)!==d.symbol){let t=this._getOrReturnCtx(e);return g(t,{code:p.invalid_type,expected:d.symbol,received:t.parsedType}),v}return y(e.data)}};rt.create=e=>new rt({typeName:Y.ZodSymbol,...w(e)});var D=class extends T{_parse(e){if(this._getType(e)!==d.undefined){let t=this._getOrReturnCtx(e);return g(t,{code:p.invalid_type,expected:d.undefined,received:t.parsedType}),v}return y(e.data)}};D.create=e=>new D({typeName:Y.ZodUndefined,...w(e)});var O=class extends T{_parse(e){if(this._getType(e)!==d.null){let t=this._getOrReturnCtx(e);return g(t,{code:p.invalid_type,expected:d.null,received:t.parsedType}),v}return y(e.data)}};O.create=e=>new O({typeName:Y.ZodNull,...w(e)});var it=class extends T{constructor(){super(...arguments),this._any=!0}_parse(e){return y(e.data)}};it.create=e=>new it({typeName:Y.ZodAny,...w(e)});var k=class extends T{constructor(){super(...arguments),this._unknown=!0}_parse(e){return y(e.data)}};k.create=e=>new k({typeName:Y.ZodUnknown,...w(e)});var A=class extends T{_parse(e){let t=this._getOrReturnCtx(e);return g(t,{code:p.invalid_type,expected:d.never,received:t.parsedType}),v}};A.create=e=>new A({typeName:Y.ZodNever,...w(e)});var at=class extends T{_parse(e){if(this._getType(e)!==d.undefined){let t=this._getOrReturnCtx(e);return g(t,{code:p.invalid_type,expected:d.void,received:t.parsedType}),v}return y(e.data)}};at.create=e=>new at({typeName:Y.ZodVoid,...w(e)});var j=class e extends T{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==d.array)return g(t,{code:p.invalid_type,expected:d.array,received:t.parsedType}),v;if(r.exactLength!==null){let e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(g(t,{code:e?p.too_big:p.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:`array`,inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(r.minLength!==null&&t.data.length<r.minLength.value&&(g(t,{code:p.too_small,minimum:r.minLength.value,type:`array`,inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),r.maxLength!==null&&t.data.length>r.maxLength.value&&(g(t,{code:p.too_big,maximum:r.maxLength.value,type:`array`,inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new C(t,e,t.path,n)))).then(e=>_.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new C(t,e,t.path,n)));return _.mergeArray(n,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:S.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:S.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:S.toString(n)}})}nonempty(e){return this.min(1,e)}};j.create=(e,t)=>new j({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Y.ZodArray,...w(t)});function M(e){if(e instanceof N){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=W.create(M(r))}return new N({...e._def,shape:()=>t})}else if(e instanceof j)return new j({...e._def,type:M(e.element)});else if(e instanceof W)return W.create(M(e.unwrap()));else if(e instanceof G)return G.create(M(e.unwrap()));else if(e instanceof L)return L.create(e.items.map(e=>M(e)));else return e}var N=class e extends T{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=u.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==d.object){let t=this._getOrReturnCtx(e);return g(t,{code:p.invalid_type,expected:d.object,received:t.parsedType}),v}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof A&&this._def.unknownKeys===`strip`))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:`valid`,value:e},value:t._parse(new C(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof A){let e=this._def.unknownKeys;if(e===`passthrough`)for(let e of a)o.push({key:{status:`valid`,value:e},value:{status:`valid`,value:n.data[e]}});else if(e===`strict`)a.length>0&&(g(n,{code:p.unrecognized_keys,keys:a}),t.dirty());else if(e!==`strip`)throw Error(`Internal ZodObject error: invalid unknownKeys value.`)}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:`valid`,value:t},value:e._parse(new C(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>_.mergeObjectSync(t,e)):_.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(t){return S.errToObj,new e({...this._def,unknownKeys:`strict`,...t===void 0?{}:{errorMap:(e,n)=>{let r=this._def.errorMap?.(e,n).message??n.defaultError;return e.code===`unrecognized_keys`?{message:S.errToObj(t).message??r}:{message:r}}}})}strip(){return new e({...this._def,unknownKeys:`strip`})}passthrough(){return new e({...this._def,unknownKeys:`passthrough`})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Y.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let e of u.objectKeys(t))t[e]&&this.shape[e]&&(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let e of u.objectKeys(this.shape))t[e]||(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}deepPartial(){return M(this)}partial(t){let n={};for(let e of u.objectKeys(this.shape)){let r=this.shape[e];t&&!t[e]?n[e]=r:n[e]=r.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let e of u.objectKeys(this.shape))if(t&&!t[e])n[e]=this.shape[e];else{let t=this.shape[e];for(;t instanceof W;)t=t._def.innerType;n[e]=t}return new e({...this._def,shape:()=>n})}keyof(){return ft(u.objectKeys(this.shape))}};N.create=(e,t)=>new N({shape:()=>e,unknownKeys:`strip`,catchall:A.create(),typeName:Y.ZodObject,...w(t)}),N.strictCreate=(e,t)=>new N({shape:()=>e,unknownKeys:`strict`,catchall:A.create(),typeName:Y.ZodObject,...w(t)}),N.lazycreate=(e,t)=>new N({shape:e,unknownKeys:`strip`,catchall:A.create(),typeName:Y.ZodObject,...w(t)});var P=class extends T{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function r(e){for(let t of e)if(t.result.status===`valid`)return t.result;for(let n of e)if(n.result.status===`dirty`)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new m(e.ctx.common.issues));return g(t,{code:p.invalid_union,unionErrors:n}),v}if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(r);{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if(a.status===`valid`)return a;a.status===`dirty`&&!e&&(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new m(e));return g(t,{code:p.invalid_union,unionErrors:i}),v}}get options(){return this._def.options}};P.create=(e,t)=>new P({options:e,typeName:Y.ZodUnion,...w(t)});var F=e=>e instanceof R?F(e.schema):e instanceof U?F(e.innerType()):e instanceof z?[e.value]:e instanceof B?e.options:e instanceof V?u.objectValues(e.enum):e instanceof K?F(e._def.innerType):e instanceof D?[void 0]:e instanceof O?[null]:e instanceof W?[void 0,...F(e.unwrap())]:e instanceof G?[null,...F(e.unwrap())]:e instanceof mt||e instanceof J?F(e.unwrap()):e instanceof q?F(e._def.innerType):[],ot=class e extends T{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==d.object)return g(t,{code:p.invalid_type,expected:d.object,received:t.parsedType}),v;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(g(t,{code:p.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),v)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let i=new Map;for(let e of n){let n=F(e.shape[t]);if(!n.length)throw Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let r of n){if(i.has(r))throw Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);i.set(r,e)}}return new e({typeName:Y.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...w(r)})}};function st(e,t){let n=f(e),r=f(t);if(e===t)return{valid:!0,data:e};if(n===d.object&&r===d.object){let n=u.objectKeys(t),r=u.objectKeys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=st(e[n],t[n]);if(!r.valid)return{valid:!1};i[n]=r.data}return{valid:!0,data:i}}else if(n===d.array&&r===d.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=st(i,a);if(!o.valid)return{valid:!1};n.push(o.data)}return{valid:!0,data:n}}else if(n===d.date&&r===d.date&&+e==+t)return{valid:!0,data:e};else return{valid:!1}}var I=class extends T{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(Te(e)||Te(r))return v;let i=st(e.value,r.value);return i.valid?((Ee(e)||Ee(r))&&t.dirty(),{status:t.value,value:i.data}):(g(n,{code:p.invalid_intersection_types}),v)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};I.create=(e,t,n)=>new I({left:e,right:t,typeName:Y.ZodIntersection,...w(n)});var L=class e extends T{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==d.array)return g(n,{code:p.invalid_type,expected:d.array,received:n.parsedType}),v;if(n.data.length<this._def.items.length)return g(n,{code:p.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),v;!this._def.rest&&n.data.length>this._def.items.length&&(g(n,{code:p.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new C(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>_.mergeArray(t,e)):_.mergeArray(t,r)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};L.create=(e,t)=>{if(!Array.isArray(e))throw Error(`You must pass an array of schemas to z.tuple([ ... ])`);return new L({items:e,typeName:Y.ZodTuple,rest:null,...w(t)})};var ct=class e extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==d.object)return g(n,{code:p.invalid_type,expected:d.object,received:n.parsedType}),v;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new C(n,e,n.path,e)),value:a._parse(new C(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?_.mergeObjectAsync(t,r):_.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof T?new e({keyType:t,valueType:n,typeName:Y.ZodRecord,...w(r)}):new e({keyType:E.create(),valueType:t,typeName:Y.ZodRecord,...w(n)})}},lt=class extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==d.map)return g(n,{code:p.invalid_type,expected:d.map,received:n.parsedType}),v;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new C(n,e,n.path,[a,`key`])),value:i._parse(new C(n,t,n.path,[a,`value`]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if(r.status===`aborted`||i.status===`aborted`)return v;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}else{let e=new Map;for(let n of a){let r=n.key,i=n.value;if(r.status===`aborted`||i.status===`aborted`)return v;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}};lt.create=(e,t,n)=>new lt({valueType:t,keyType:e,typeName:Y.ZodMap,...w(n)});var ut=class e extends T{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==d.set)return g(n,{code:p.invalid_type,expected:d.set,received:n.parsedType}),v;let r=this._def;r.minSize!==null&&n.data.size<r.minSize.value&&(g(n,{code:p.too_small,minimum:r.minSize.value,type:`set`,inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),r.maxSize!==null&&n.data.size>r.maxSize.value&&(g(n,{code:p.too_big,maximum:r.maxSize.value,type:`set`,inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if(r.status===`aborted`)return v;r.status===`dirty`&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new C(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(t,n){return new e({...this._def,minSize:{value:t,message:S.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:S.toString(n)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};ut.create=(e,t)=>new ut({valueType:e,minSize:null,maxSize:null,typeName:Y.ZodSet,...w(t)});var dt=class e extends T{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==d.function)return g(t,{code:p.invalid_type,expected:d.function,received:t.parsedType}),v;function n(e,n){return Ce({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Se(),h].filter(e=>!!e),issueData:{code:p.invalid_arguments,argumentsError:n}})}function r(e,n){return Ce({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Se(),h].filter(e=>!!e),issueData:{code:p.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof H){let e=this;return y(async function(...t){let o=new m([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw o.addIssue(r(c,e)),o})})}else{let e=this;return y(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new m([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new m([r(s,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:L.create(t).rest(k.create())})}returns(t){return new e({...this._def,returns:t})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(t,n,r){return new e({args:t||L.create([]).rest(k.create()),returns:n||k.create(),typeName:Y.ZodFunction,...w(r)})}},R=class extends T{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};R.create=(e,t)=>new R({getter:e,typeName:Y.ZodLazy,...w(t)});var z=class extends T{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return g(t,{received:t.data,code:p.invalid_literal,expected:this._def.value}),v}return{status:`valid`,value:e.data}}get value(){return this._def.value}};z.create=(e,t)=>new z({value:e,typeName:Y.ZodLiteral,...w(t)});function ft(e,t){return new B({values:e,typeName:Y.ZodEnum,...w(t)})}var B=class e extends T{_parse(e){if(typeof e.data!=`string`){let t=this._getOrReturnCtx(e),n=this._def.values;return g(t,{expected:u.joinValues(n),received:t.parsedType,code:p.invalid_type}),v}if(this._cache||=new Set(this._def.values),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return g(t,{received:t.data,code:p.invalid_enum_value,options:n}),v}return y(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(e=>!t.includes(e)),{...this._def,...n})}};B.create=ft;var V=class extends T{_parse(e){let t=u.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==d.string&&n.parsedType!==d.number){let e=u.objectValues(t);return g(n,{expected:u.joinValues(e),received:n.parsedType,code:p.invalid_type}),v}if(this._cache||=new Set(u.getValidEnumValues(this._def.values)),!this._cache.has(e.data)){let e=u.objectValues(t);return g(n,{received:n.data,code:p.invalid_enum_value,options:e}),v}return y(e.data)}get enum(){return this._def.values}};V.create=(e,t)=>new V({values:e,typeName:Y.ZodNativeEnum,...w(t)});var H=class extends T{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==d.promise&&t.common.async===!1?(g(t,{code:p.invalid_type,expected:d.promise,received:t.parsedType}),v):y((t.parsedType===d.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}};H.create=(e,t)=>new H({type:e,typeName:Y.ZodPromise,...w(t)});var U=class extends T{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Y.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{g(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),r.type===`preprocess`){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if(t.value===`aborted`)return v;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return r.status===`aborted`?v:r.status===`dirty`||t.value===`dirty`?we(r.value):r});{if(t.value===`aborted`)return v;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return r.status===`aborted`?v:r.status===`dirty`||t.value===`dirty`?we(r.value):r}}if(r.type===`refinement`){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error(`Async refinement encountered during synchronous parse operation. Use .parseAsync instead.`);return e};if(n.common.async===!1){let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return r.status===`aborted`?v:(r.status===`dirty`&&t.dirty(),e(r.value),{status:t.value,value:r.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>n.status===`aborted`?v:(n.status===`dirty`&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if(r.type===`transform`)if(n.common.async===!1){let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!b(e))return v;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);return{status:t.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>b(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):v);u.assertNever(r)}};U.create=(e,t,n)=>new U({schema:e,typeName:Y.ZodEffects,effect:t,...w(n)}),U.createWithPreprocess=(e,t,n)=>new U({schema:t,effect:{type:`preprocess`,transform:e},typeName:Y.ZodEffects,...w(n)});var W=class extends T{_parse(e){return this._getType(e)===d.undefined?y(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};W.create=(e,t)=>
1new W({innerType:e,typeName:Y.ZodOptional,...w(t)});var G=class extends T{_parse(e){return this._getType(e)===d.null?y(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};G.create=(e,t)=>new G({innerType:e,typeName:Y.ZodNullable,...w(t)});var K=class extends T{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===d.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};K.create=(e,t)=>new K({innerType:e,typeName:Y.ZodDefault,defaultValue:typeof t.default==`function`?t.default:()=>t.default,...w(t)});var q=class extends T{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return x(r)?r.then(e=>({status:`valid`,value:e.status===`valid`?e.value:this._def.catchValue({get error(){return new m(n.common.issues)},input:n.data})})):{status:`valid`,value:r.status===`valid`?r.value:this._def.catchValue({get error(){return new m(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};q.create=(e,t)=>new q({innerType:e,typeName:Y.ZodCatch,catchValue:typeof t.catch==`function`?t.catch:()=>t.catch,...w(t)});var pt=class extends T{_parse(e){if(this._getType(e)!==d.nan){let t=this._getOrReturnCtx(e);return g(t,{code:p.invalid_type,expected:d.nan,received:t.parsedType}),v}return{status:`valid`,value:e.data}}};pt.create=e=>new pt({typeName:Y.ZodNaN,...w(e)});var mt=class extends T{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},ht=class e extends T{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?v:e.status===`dirty`?(t.dirty(),we(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?v:e.status===`dirty`?(t.dirty(),{status:`dirty`,value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(t,n){return new e({in:t,out:n,typeName:Y.ZodPipeline})}},J=class extends T{_parse(e){let t=this._def.innerType._parse(e),n=e=>(b(e)&&(e.value=Object.freeze(e.value)),e);return x(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}};J.create=(e,t)=>new J({innerType:e,typeName:Y.ZodReadonly,...w(t)}),N.lazycreate;var Y;(function(e){e.ZodString=`ZodString`,e.ZodNumber=`ZodNumber`,e.ZodNaN=`ZodNaN`,e.ZodBigInt=`ZodBigInt`,e.ZodBoolean=`ZodBoolean`,e.ZodDate=`ZodDate`,e.ZodSymbol=`ZodSymbol`,e.ZodUndefined=`ZodUndefined`,e.ZodNull=`ZodNull`,e.ZodAny=`ZodAny`,e.ZodUnknown=`ZodUnknown`,e.ZodNever=`ZodNever`,e.ZodVoid=`ZodVoid`,e.ZodArray=`ZodArray`,e.ZodObject=`ZodObject`,e.ZodUnion=`ZodUnion`,e.ZodDiscriminatedUnion=`ZodDiscriminatedUnion`,e.ZodIntersection=`ZodIntersection`,e.ZodTuple=`ZodTuple`,e.ZodRecord=`ZodRecord`,e.ZodMap=`ZodMap`,e.ZodSet=`ZodSet`,e.ZodFunction=`ZodFunction`,e.ZodLazy=`ZodLazy`,e.ZodLiteral=`ZodLiteral`,e.ZodEnum=`ZodEnum`,e.ZodEffects=`ZodEffects`,e.ZodNativeEnum=`ZodNativeEnum`,e.ZodOptional=`ZodOptional`,e.ZodNullable=`ZodNullable`,e.ZodDefault=`ZodDefault`,e.ZodCatch=`ZodCatch`,e.ZodPromise=`ZodPromise`,e.ZodBranded=`ZodBranded`,e.ZodPipeline=`ZodPipeline`,e.ZodReadonly=`ZodReadonly`})(Y||={});var X=E.create;$e.create,pt.create,et.create,tt.create,nt.create,rt.create,D.create,O.create,it.create,k.create,A.create,at.create,j.create;var gt=N.create;N.strictCreate,P.create,ot.create,I.create,L.create,ct.create,lt.create,ut.create,dt.create,R.create;var Z=z.create;B.create,V.create,H.create,U.create,W.create,G.create,U.createWithPreprocess,ht.create;var _t=t(e()),vt=`[email protected]`,yt=gt({company:X().trim().min(1,`회사명을 입력해 주세요.`).max(120),name:X().trim().min(1,`담당자명을 입력해 주세요.`).max(80),email:X().trim().email(`올바른 이메일을 입력해 주세요.`).max(160),phone:X().trim().max(40).optional().or(Z(``)),topic:X().trim().max(120).optional().or(Z(``)),tools:X().trim().max(200).optional().or(Z(``)),message:X().trim().min(1,`문의 내용을 입력해 주세요.`).max(4e3),company_website:X().max(0).optional().or(Z(``))}),bt=l({method:`POST`}).handler(ee(`48442dc848490caa102ed4d7e3f19f8fb3240bdbe0e058beac98
16481cb10c7c3`)),Q=n(),xt=`mt-1 w-full rounded-md border border-border bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground/70 focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary/40`,St=[`광고 매체 통합 데이터 (AIR)`,`검색광고 자동입찰 (AdMonster)`,`AI 광고소재 자동생성`,`지능형 상품 피드 (Smart Feed)`,`증분 성과·iROAS (LIFT™)`,`전환 태깅·CAPI`,`링크 추적·정산 (CVTR)`,`리포트·보고서 자동화`,`데이터 연동 (DaaS · MCP/API)`,`기타`];function Ct(){let{topic:e}=s.useSearch(),[t,n]=(0,_t.useState)({kind:`idle`}),[i,o]=(0,_t.useState)({});async function c(e){e.preventDefault();let t=new FormData(e.currentTarget),r=Object.fromEntries(t),i=yt.safeParse(r);if(!i.success){let e={};for(let t of i.error.issues)e[String(t.path[0])]=t.message;o(e);return}o({}),n({kind:`sending`});try{let e=await bt({data:i.data});e.ok?n({kind:`ok`}):n({kind:`error`,fallback:e.error===`email_not_configured`})}catch{n({kind:`error`,fallback:!1})}}return t.kind===`ok`?(0,Q.jsx)(a,{children:(0,Q.jsxs)(`section`,{className:`mx-auto max-w-2xl px-6 py-24 text-center`,children:[(0,Q.jsx)(`div`,{className:`mx-auto grid h-14 w-14 place-items-center rounded-full bg-emerald-500/15 text-emerald-400`,children:(0,Q.jsx)(_e,{className:`h-7 w-7`})}),(0,Q.jsx)(`h1`,{className:`mt-6 text-2xl font-bold tracking-normal`,children:`문의가 접수되었습니다`}),(0,Q.jsx)(`p`,{className:`mx-auto mt-3 max-w-md text-[15px] leading-relaxed text-muted-foreground`,children:`담당 엔지니어가 확인 후 보통 1~2영업일 내에 회신드립니다. 입력하신 이메일로 접수 확인 메일도 함께 보내드렸어요.`}
1),(0,Q.jsx)(r,{to:`/solutions`,className:`mt-8 inline-flex items-center gap-1.5 rounded-xl px-5 py-3 text-sm font-semibold text-white`,style:{background:`var(--gradient-brand)`},children:`솔루션 둘러보기`})]})}):(0,Q.jsx)(a,{children:(0,Q.jsx)(`section`,{className:`relative overflow-hidden px-6 py-16`,children:(0,Q.jsxs)(`div`,{className:`relative mx-auto max-w-2xl`,children:[(0,Q.jsxs)(`div`,{className:`text-center`,children:[(0,Q.jsx)(`div`,{className:`text-[12px] font-semibold uppercase tracking-wider text-primary`,children:`도입 문의`}),(0,Q.jsx)(`h1`,{className:`mt-2 text-3xl font-bold tracking-normal sm:text-4xl`,children:`광고·캠페인 AX, 우리 상황에 맞게`}),(0,Q.jsx)(`p`,{className:`mx-auto mt-3 max-w-xl text-[15px] leading-relaxed text-muted-foreground`,children:`현재 사용 중인 매체·도구와 자동화하고 싶은 광고 업무를 알려주세요. 담당 엔지니어가 우선 적용 지점을 정리해 안내드립니다. 접수 즉시 확인 메일이 발송됩니다.`})]}),(0,Q.jsxs)(`div`,{className:`relative mt-8`,children:[(0,Q.jsxs)(`div`,{className:`pointer-events-none absolute left-1/2 top-0 hidden w-screen max-w-[1376px] -translate-x-1/2 lg:block`,"aria-hidden":!0,children:[(0,Q.jsx)(`img`,{src:`/illustrations/contact-pano-light.webp`,alt:``,className:`w-full opacity-[0.6] dark:hidden`,style:{maskImage:`linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 82%, transparent 100%)`,WebkitMaskImage:`linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 82%, transparent 100%)`}}),(0,Q.jsx)(`img`,{src:`/illustrations/contact-pano-dark.webp`,alt:``,className:`hidden w-full opacity-[0.6] dark:block`,style:{maskImage:`linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 82%, transparent 100%)`,WebkitMaskImage:`linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 82%, transparent 100%)`}})]}),(0,Q.jsx)(`div`,{className:`relative rounded-2xl border bg-card p-6 shadow-sm sm:p-8`,children:(0,Q.jsxs)(`form`,{onSubmit:c,className:`space-y-4`,noValidate:!0,children:[(0,Q.jsx)(`div`,{className:`hidden`,"aria-hidden":!0,children:(0,Q.jsxs)(`label`,{children:[`Website`,(0,Q.jsx)(`input`,{name:`company_website`,tabIndex:-1,autoComplete:`off`})]})}),(0,Q.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,Q.jsx)($,{label:`회사명`,name:`company`,required:!0,error:i.company,placeholder:`주식회사 OO`}),(0,Q.jsx)($,{label:`담당자명`,name:`name`,required:!0,error:i.name,placeholder:`홍길동`})]}),(0,Q.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,Q.jsx)($,{label:`이메일`,name:`email`,type:`email`,required:!0,error:i.email,placeholder:`[email protected]`}),(0,Q.jsx)($,{label:`연락처`,name:`phone`,error:i.phone,placeholder:`선택 · 010-0000-0000`})]}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`label`,{className:`text-sm font-medium text-foreground`,children:`관심 주제`}),(0,Q.jsxs)(`select`,{name:`topic`,defaultValue:e??``,className:xt,children:[(0,Q.jsx)(`option`,{value:``,children:`선택 안 함`}),St.map(e=>(0,Q.jsx)(`option`,{value:e,children:e},e))]})]}),(0,Q.jsx)($,{label:`현재 사용 중인 매체·도구`,name:`tools`,error:i.tools,placeholder:`예: 네이버 SA · 메타 · GA4 · 엑셀 리포트 (선택)`}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(`label`,{className:`text-sm font-medium text-foreground`,children:[`문의 내용 `,(0,Q.jsx)(`span`,{className:`text-destructive`,children:`*`})]}),(0,Q.jsx)(`textarea`,{name:`message`,rows:5,className:xt,placeholder:`현재 광고 운영 상황과 자동화하고 싶은 업무(입찰·소재·피드·리포트 등)를 알려주세요.`}),i.message&&(0,Q.jsx)(`p`,{className:`mt-1 text-[12px] text-destructive`,children:i.message})]}),t.kind===`error`&&(0,Q.jsx)(`div`,{className:`rounded-md border border-destructive/30 bg-destructive/5 p-3 text-[13px] text-destructive`,children:t.fallback?(0,Q.jsxs)(Q.Fragment,{children:[`메일 발송이 일시적으로 불가합니다. 번거로우시겠지만`,` `,(0,Q.jsx)(`a`,{href:`mailto:[email protected]`,className:`font-semibold underline`,children:`[email protected]`}),` 로 바로 보내주시면 동일하게 접수됩니다.`]}):(0,Q.jsxs)(Q.Fragment,{children:[`전송 중 문제가 발생했어요. 잠시 후 다시 시도하시거나`,` `,(0,Q.jsx)(`a`,{href:`mailto:[email protected]`,className:`font-semibold underline`,children:`[email protected]`}),` 로 연락 주세요.`]})}),(0,Q.jsxs)(`div`,{className:`flex items-center gap-3 pt-1`,children:[(0,Q.jsx)(`button`,{type:`submit`,disabled:t.kind===`sending`,className:`inline-flex items-center gap-1.5 rounded-xl px-5 py-3 text-sm font-semibold text-white transition-opacity hover:opacity-90 disabled:opacity-60`,style:{background:`var(--gradient-brand)`},children:t.kind===`sending`?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(ve,{className:`h-4 w-4 animate-spin`}),` 전송 중…`]}):`문의 보내기`}),(0,Q.jsxs)(`span`,{className:`text-[12px] text-muted-foreground`,children:[`수신: `,vt,` · 접수 후 1~2영업일 내 회신`]})]})]})})]}),(0,Q.jsxs)(`div`,{className:`mt-6 grid gap-3 sm:grid-cols-3`,children:[(0,Q.jsx)(wt,{icon:re,title:`빠른 회신`,body:`담당 엔지니어가 우선 적용 지점을 정리해 1~2영업일 내 회신.`}),(0,Q.jsx)(wt,{icon:ie,title:`광고주별 격리`,body:`키 1개로 다계정을 관리해도 광고주 간 데이터는 완전 격리.`}),(0,Q.jsx)(wt,{icon:ae,title:`자동화 연동`,body:`Claude·ChatGPT 등에서 바로 호출. 자동화 워크플로우까지 함께 설계.`})]}),(0,Q.jsxs)(`p`,{className:`mt-5 text-center text-[13px] text-muted-foreground`,children:[(0,Q.jsx)(ye,{className:`mr-1 inline h-3.5 w-3.5 text-primary`}),` 직접 메일:`,` `,(0,Q.jsx)(`a`,{href:`mailto:${vt}`,className:`font-medium text-primary hover:underline`,children:vt})]})]})})})}function $({label:e,name:t,type:n=`text`,required:r,error:i,placeholder:a}){return(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(`label`,{className:`text-sm font-medium text-foreground`,children:[e,` `,r&&(0,Q.jsx)(`span`,{className:`text-destructive`,children:`*`})]}),(0,Q.jsx)(`input`,{name:t,type:n,placeholder:a,className:xt}),i&&(0,Q.jsx)(`p`,{className:`mt-1 text-[12px] text-destructive`,children:i})]})}function wt({icon:e,title:t,body:n}){return(0,Q.jsxs)(`div`,{className:`rounded-xl border bg-card/80 p-4 shadow-sm backdrop-blur-sm`,children:[(0,Q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Q.jsx)(`div`,{className:`grid h-7 w-7 shrink-0 place-items-center rounded-lg bg-primary/10 text-primary`,children:(0,Q.jsx)(e,{className:`h-3.5 w-3.5`})}),(0,Q.jsx)(`div`,{className:`text-[13px] font-semibold`,children:t})]}),(0,Q.jsx)(`p`,{className:`mt-2 text-[12px] leading-relaxed text-muted-foreground`,children:n})]})}export{Ct as component};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.