MCPcopy
hub / github.com/RedPlanetHQ/core / optional

Method optional

integrations/swiggy-orders/bin/index.js:26–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24`),this._exit(0,"commander.version",$)}),this}description($,q){if($===void 0&&q===void 0)return this._description;if(this._description=$,q)this._argsDescription=q;return this}summary($){if($===void 0)return this._summary;return this._summary=$,this}alias($){if($===void 0)return this._aliases[0];let q=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)q=this.commands[this.commands.length-1];if($===q._name)throw Error("Command alias can't be the same as its name");let J=this.parent?._findCommand($);if(J){let X=[J.name()].concat(J.aliases()).join("|");throw Error(`cannot add alias '${$}' to command '${this.name()}' as already have command '${X}'`)}return q._aliases.push($),this}aliases($){if($===void 0)return this._aliases;return $.forEach((q)=>this.alias(q)),this}usage($){if($===void 0){if(this._usage)return this._usage;let q=this.registeredArguments.map((J)=>{return JJ(J)});return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?q:[]).join(" ")}return this._usage=$,this}name($){if($===void 0)return this._name;return this._name=$,this}helpGroup($){if($===void 0)return this._helpGroupHeading??"";return this._helpGroupHeading=$,this}commandsGroup($){if($===void 0)return this._defaultCommandGroup??"";return this._defaultCommandGroup=$,this}optionsGroup($){if($===void 0)return this._defaultOptionGroup??"";return this._defaultOptionGroup=$,this}_initOptionGroup($){if(this._defaultOptionGroup&&!$.helpGroupHeading)$.helpGroup(this._defaultOptionGroup)}_initCommandGroup($){if(this._defaultCommandGroup&&!$.helpGroup())$.helpGroup(this._defaultCommandGroup)}nameFromFilename($){return this._name=y.basename($,y.extname($)),this}executableDir($){if($===void 0)return this._executableDir;return this._executableDir=$,this}helpInformation($){let q=this.createHelp(),J=this._getOutputContext($);q.prepareContext({error:J.error,helpWidth:J.helpWidth,outputHasColors:J.hasColors});let X=q.formatHelp(this,q);if(J.hasColors)return X;return this._outputConfiguration.stripColor(X)}_getOutputContext($){$=$||{};let q=!!$.error,J,X,Q;if(q)J=(Y)=>this._outputConfiguration.writeErr(Y),X=this._outputConfiguration.getErrHasColors(),Q=this._outputConfiguration.getErrHelpWidth();else J=(Y)=>this._outputConfiguration.writeOut(Y),X=this._outputConfiguration.getOutHasColors(),Q=this._outputConfiguration.getOutHelpWidth();return{error:q,write:(Y)=>{if(!X)Y=this._outputConfiguration.stripColor(Y);return J(Y)},hasColors:X,helpWidth:Q}}outputHelp($){let q;if(typeof $==="function")q=$,$=void 0;let J=this._getOutputContext($),X={error:J.error,write:J.write,command:this};this._getCommandAndAncestors().reverse().forEach((_)=>_.emit("beforeAllHelp",X)),this.emit("beforeHelp",X);let Q=this.helpInformation({error:J.error});if(q){if(Q=q(Q),typeof Q!=="string"&&!Buffer.isBuffer(Q))throw Error("outputHelp callback must return a string or a Buffer")}if(J.write(Q),this._getHelpOption()?.long)this.emit(this._getHelpOption().long);this.emit("afterHelp",X),this._getCommandAndAncestors().forEach((_)=>_.emit("afterAllHelp",X))}helpOption($,q){if(typeof $==="boolean"){if($){if(this._helpOption===null)this._helpOption=void 0;if(this._defaultOptionGroup)this._initOptionGroup(this._getHelpOption())}else this._helpOption=null;return this}if(this._helpOption=this.createOption($??"-h, --help",q??"display help for command"),$||q)this._initOptionGroup(this._helpOption);return this}_getHelpOption(){if(this._helpOption===void 0)this.helpOption(void 0,void 0);return this._helpOption}addHelpOption($){return this._helpOption=$,this._initOptionGroup($),this}help($){this.outputHelp($);let q=Number(D.exitCode??0);if(q===0&&$&&typeof $!=="function"&&$.error)q=1;this._exit(q,"commander.help","(outputHelp)")}addHelpText($,q){let J=["beforeAll","before","after","afterAll"];if(!J.includes($))throw Error(`Unexpected value for position to addHelpText.
25Expecting one of '${J.join("', '")}'`);let X=`${$}Help`;return this.on(X,(Q)=>{let _;if(typeof q==="function")_=q({error:Q.error,command:Q.command});else _=q;if(_)Q.write(`${_}
26`)}),this}_outputHelpIfRequested($){let q=this._getHelpOption();if(q&&$.find((X)=>q.is(X)))this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)")}}function e$($){return $.map((q)=>{if(!q.startsWith("--inspect"))return q;let J,X="127.0.0.1",Q="9229",_;if((_=q.match(/^(--inspect(-brk)?)$/))!==null)J=_[1];else if((_=q.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(J=_[1],/^\d+$/.test(_[3]))Q=_[3];else X=_[3];else if((_=q.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)J=_[1],X=_[3],Q=_[4];if(J&&Q!=="0")return`${J}=${X}:${parseInt(Q)+1}`;return q})}function h$(){if(D.env.NO_COLOR||D.env.FORCE_COLOR==="0"||D.env.FORCE_COLOR==="false")return!1;if(D.env.FORCE_COLOR||D.env.CLICOLOR_FORCE!==void 0)return!0;return}YJ.Command=y$;YJ.useColor=h$});var Qq=r((BJ)=>{var{Argument:qq}=O$(),{Command:g$}=$q(),{CommanderError:WJ,InvalidArgumentError:Jq}=S$(),{Help:zJ}=C$(),{Option:Xq}=T$();BJ.program=new g$;BJ.createCommand=($)=>new g$($);BJ.createOption=($,q)=>new Xq($,q);BJ.createArgument=($,q)=>new qq($,q);BJ.Command=g$;BJ.Option=Xq;BJ.Argument=qq;BJ.Help=zJ;BJ.CommanderError=WJ;BJ.InvalidArgumentError=Jq;BJ.InvalidOptionArgumentError=Jq});var _q=Iq(Qq(),1),{program:sX,createCommand:tX,createArgument:eX,createOption:$1,CommanderError:q1,InvalidArgumentError:J1,InvalidOptionArgumentError:X1,Command:Yq,Argument:Q1,Option:_1,Help:Y1}=_q.default;var W={};vq(W,{void:()=>YX,util:()=>K,unknown:()=>QX,union:()=>zX,undefined:()=>qX,tuple:()=>RX,transformer:()=>EX,symbol:()=>$X,string:()=>Vq,strictObject:()=>WX,setErrorMap:()=>OJ,set:()=>SX,record:()=>UX,quotelessJson:()=>EJ,promise:()=>FX,preprocess:()=>LX,pipeline:()=>bX,ostring:()=>fX,optional:()=>AX,onumber:()=>kX,oboolean:()=>IX,objectUtil:()=>l$,object:()=>HX,number:()=>Sq,nullable:()=>OX,null:()=>JX,never:()=>_X,nativeEnum:()=>DX,nan:()=>sJ,map:()=>VX,makeIssue:()=>w$,literal:()=>MX,lazy:()=>NX,late:()=>oJ,isValid:()=>u,isDirty:()=>f$,isAsync:()=>q$,isAborted:()=>b$,intersection:()=>jX,instanceof:()=>aJ,getParsedType:()=>T,getErrorMap:()=>$$,function:()=>wX,enum:()=>KX,effect:()=>EX,discriminatedUnion:()=>BX,defaultErrorMap:()=>g,datetimeRegex:()=>jq,date:()=>eJ,custom:()=>Uq,coerce:()=>vX,boolean:()=>wq,bigint:()=>tJ,array:()=>GX,any:()=>XX,addIssueToContext:()=>R,ZodVoid:()=>M$,ZodUnknown:()=>c,ZodUnion:()=>G$,ZodUndefined:()=>_$,ZodType:()=>M,ZodTuple:()=>Z,ZodTransformer:()=>P,ZodSymbol:()=>N$,ZodString:()=>f,ZodSet:()=>t,ZodSchema:()=>M,ZodRecord:()=>K$,ZodReadonly:()=>U$,ZodPromise:()=>e,ZodPipeline:()=>E$,ZodParsedType:()=>j,ZodOptional:()=>I,ZodObject:()=>F,ZodNumber:()=>d,ZodNullable:()=>m,ZodNull:()=>Y$,ZodNever:()=>x,ZodNativeEnum:()=>B$,ZodNaN:()=>F$,ZodMap:()=>D$,ZodLiteral:()=>z$,ZodLazy:()=>W$,ZodIssueCode:()=>z,ZodIntersection:()=>H$,ZodFunction:()=>X$,ZodFirstPartyTypeKind:()=>w,ZodError:()=>b,ZodEnum:()=>i,ZodEffects:()=>P,ZodDiscriminatedUnion:()=>k$,ZodDefault:()=>j$,ZodDate:()=>a,ZodCatch:()=>R$,ZodBranded:()=>I$,ZodBoolean:()=>Q$,ZodBigInt:()=>p,ZodArray:()=>k,ZodAny:()=>s,Schema:()=>M,ParseStatus:()=>A,OK:()=>O,NEVER:()=>PX,INVALID:()=>S,EMPTY_PATH:()=>LJ,DIRTY:()=>o,BRAND:()=>rJ});var K;(function($){$.assertEqual=(Q)=>{};function q(Q){}$.assertIs=q;function J(Q){throw Error()}$.assertNever=J,$.arrayToEnum=(Q)=>{let _={};for(let Y of Q)_[Y]=Y;return _},$.getValidEnumValues=(Q)=>{let _=$.objectKeys(Q).filter((G)=>typeof Q[Q[G]]!=="number"),Y={};for(let G of _)Y[G]=Q[G];return $.objectValues(Y)},$.objectValues=(Q)=>{return $.objectKeys(Q).map(function(_){return Q[_]})},$.objectKeys=typeof Object.keys==="function"?(Q)=>Object.keys(Q):(Q)=>{let _=[];for(let Y in Q)if(Object.prototype.hasOwnProperty.call(Q,Y))_.push(Y);return _},$.find=(Q,_)=>{for(let Y of Q)if(_(Y))return Y;return},$.isInteger=typeof Number.isInteger==="function"?(Q)=>Number.isInteger(Q):(Q)=>typeof Q==="number"&&Number.isFinite(Q)&&Math.floor(Q)===Q;function X(Q,_=" | "){return Q.map((Y)=>typeof Y==="string"?`'${Y}'`:Y).join(_)}$.joinValues=X,$.jsonStringifyReplacer=(Q,_)=>{if(typeof _==="bigint")return _.toString();return _}})(K||(K={}));var l$;(function($){$.mergeShapes=(q,J)=>{return{...q,...J}}})(l$||(l$={}));var j=K.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),T=($)=>{switch(typeof $){case"undefined":return j.undefined;case"string":return j.string;case"number":return Number.isNaN($)?j.nan:j.number;case"boolean":return j.boolean;case"function":return j.function;case"bigint":return j.bigint;case"symbol":return j.symbol;case"object":if(Array.isArray($))return j.array;if($===null)return j.null;if($.then&&typeof $.then==="function"&&$.catch&&typeof $.catch==="function")return j.promise;if(typeof Map<"u"&&$ instanceof Map)return j.map;if(typeof Set<"u"&&$ instanceof Set)return j.set;if(typeof Date<"u"&&$ instanceof Date)return j.date;return j.object;default:return j.unknown}};var z=K.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"]),EJ=($)=>{return JSON.stringify($,null,2).replace(/"([^"]+)":/g,"$1:")};class b extends Error{get errors(){return this.issues}constructor($){super();this.issues=[],this.addIssue=(J)=>{this.issues=[...this.issues,J]},this.addIssues=(J=[])=>{this.issues=[...this.issues,...J]};let q=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,q);else this.__proto__=q;this.name="ZodError",this.issues=$}format($){let q=$||function(Q){return Q.message},J={_errors:[]},X=(Q)=>{for(let _ of Q.issues)if(_.code==="invalid_union")_.unionErrors.map(X);else if(_.code==="invalid_return_type")X(_.returnTypeError);else if(_.code==="invalid_arguments")X(_.argumentsError);else if(_.path.length===0)J._errors.push(q(_));else{let Y=J,G=0;while(G<_.path.length){let H=_.path[G];if(G!==_.path.length-1)Y[H]=Y[H]||{_errors:[]};else Y[H]=Y[H]||{_errors:[]},Y[H]._errors.push(q(_));Y=Y[H],G++}}};return X(this),J}static assert($){if(!($ instanceof b))throw Error(`Not a ZodError: ${$}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,K.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten($=(q)=>q.message){let q={},J=[];for(let X of this.issues)if(X.path.length>0){let Q=X.path[0];q[Q]=q[Q]||[],q[Q].push($(X))}else J.push($(X));return{formErrors:J,fieldErrors:q}}get formErrors(){return this.flatten()}}b.create=($)=>{return new b($)};var AJ=($,q)=>{let J;switch($.code){case z.invalid_type:if($.received===j.undefined)J="Required";else J=`Expected ${$.expected}, received ${$.received}`;break;case z.invalid_literal:J=`Invalid literal value, expected ${JSON.stringify($.expected,K.jsonStringifyReplacer)}`;break;case z.unrecognized_keys:J=`Unrecognized key(s) in object: ${K.joinValues($.keys,", ")}`;break;case z.invalid_union:J="Invalid input";break;case z.invalid_union_discriminator:J=`Invalid discriminator value. Expected ${K.joinValues($.options)}`;break;case z.invalid_enum_value:J=`Invalid enum value. Expected ${K.joinValues($.options)}, received '${$.received}'`;break;case z.invalid_arguments:J="Invalid function arguments";break;case z.invalid_return_type:J="Invalid function return type";break;case z.invalid_date:J="Invalid date";break;case z.invalid_string:if(typeof $.validation==="object")if("includes"in $.validation){if(J=`Invalid input: must include "${$.validation.includes}"`,typeof $.validation.position==="number")J=`${J} at one or more positions greater than or equal to ${$.validation.position}`}else if("startsWith"in $.validation)J=`Invalid input: must start with "${$.validation.startsWith}"`;else if("endsWith"in $.validation)J=`Invalid input: must end with "${$.validation.endsWith}"`;else K.assertNever($.validation);else if($.validation!=="regex")J=`Invalid ${$.validation}`;else J="Invalid";break;case z.too_small:if($.type==="array")J=`Array must contain ${$.exact?"exactly":$.inclusive?"at least":"more than"} ${$.minimum} element(s)`;else if($.type==="string")J=`String must contain ${$.exact?"exactly":$.inclusive?"at least":"over"} ${$.minimum} character(s)`;else if($.type==="number")J=`Number must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${$.minimum}`;else if($.type==="bigint")J=`Number must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${$.minimum}`;else if($.type==="date")J=`Date must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${new Date(Number($.minimum))}`;else J="Invalid input";break;case z.too_big:if($.type==="array")J=`Array must contain ${$.exact?"exactly":$.inclusive?"at most":"less than"} ${$.maximum} element(s)`;else if($.type==="string")J=`String must contain ${$.exact?"exactly":$.inclusive?"at most":"under"} ${$.maximum} character(s)`;else if($.type==="number")J=`Number must be ${$.exact?"exactly":$.inclusive?"less than or equal to":"less than"} ${$.maximum}`;else if($.type==="bigint")J=`BigInt must be ${$.exact?"exactly":$.inclusive?"less than or equal to":"less than"} ${$.maximum}`;else if($.type==="date")J=`Date must be ${$.exact?"exactly":$.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number($.maximum))}`;else J="Invalid input";break;case z.custom:J="Invalid input";break;case z.invalid_intersection_types:J="Intersection results could not be merged";break;case z.not_multiple_of:J=`Number must be a multiple of ${$.multipleOf}`;break;case z.not_finite:J="Number must be finite";break;default:J=q.defaultError,K.assertNever($)}return{message:J}},g=AJ;var Gq=g;function OJ($){Gq=$}function $$(){return Gq}var w$=($)=>{let{data:q,path:J,errorMaps:X,issueData:Q}=$,_=[...J,...Q.path||[]],Y={...Q,path:_};if(Q.message!==void 0)return{...Q,path:_,message:Q.message};let G="",H=X.filter((B)=>!!B).slice().reverse();for(let B of H)G=B(Y,{data:q,defaultError:G}).message;return{...Q,path:_,message:G}},LJ=[];function R($,q){let J=$$(),X=w$({issueData:q,data:$.data,path:$.path,errorMaps:[$.common.contextualErrorMap,$.schemaErrorMap,J,J===g?void 0:g].filter((Q)=>!!Q)});$.common.issues.push(X)}class A{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray($,q){let J=[];for(let X of q){if(X.status==="aborted")return S;if(X.status==="dirty")$.dirty();J.push(X.value)}return{status:$.value,value:J}}static async mergeObjectAsync($,q){let J=[];for(let X of q){let Q=await X.key,_=await X.value;J.push({key:Q,value:_})}return A.mergeObjectSync($,J)}static mergeObjectSync($,q){let J={};for(let X of q){let{key:Q,value:_}=X;if(Q.status==="aborted")return S;if(_.status==="aborted")return S;if(Q.status==="dirty")$.dirty();if(_.status==="dirty")$.dirty();if(Q.value!=="__proto__"&&(typeof _.value<"u"||X.alwaysSet))J[Q.value]=_.value}return{status:$.value,value:J}}}var S=Object.freeze({status:"aborted"}),o=($)=>({status:"dirty",value:$}),O=($)=>({status:"valid",value:$}),b$=($)=>$.status==="aborted",f$=($)=>$.status==="dirty",u=($)=>$.status==="valid",q$=($)=>typeof Promise<"u"&&$ instanceof Promise;var V;(function($){$.errToObj=(q)=>typeof q==="string"?{message:q}:q||{},$.toString=(q)=>typeof q==="string"?q:q?.message})(V||(V={}));class v{constructor($,q,J,X){this._cachedPath=[],this.parent=$,this.data=q,this._path=J,this._key=X}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}var Hq=($,q)=>{if(u(q))return{success:!0,data:q.value};else{if(!$.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let J=new b($.common.issues);return this._error=J,this._error}}}};function N($){if(!$)return{};let{errorMap:q,invalid_type_error:J,required_error:X,description:Q}=$;if(q&&(J||X))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(q)return{errorMap:q,description:Q};return{errorMap:(Y,G)=>{let{message:H}=$;if(Y.code==="invalid_enum_value")return{message:H??G.defaultError};if(typeof G.data>"u")return{message:H??X??G.defaultError};if(Y.code!=="invalid_type")return{message:G.defaultError};return{message:H??J??G.defaultError}},description:Q}}class M{get description(){return this._def.description}_getType($){return T($.data)}_getOrReturnCtx($,q){return q||{common:$.parent.common,data:$.data,parsedType:T($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}_processInputParams($){return{status:new A,ctx:{common:$.parent.common,data:$.data,parsedType:T($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}}_parseSync($){let q=this._parse($);if(q$(q))throw Error("Synchronous parse encountered promise.");return q}_parseAsync($){let q=this._parse($);return Promise.resolve(q)}parse($,q){let J=this.safeParse($,q);if(J.success)return J.data;throw J.error}safeParse($,q){let J={common:{issues:[],async:q?.async??!1,contextualErrorMap:q?.errorMap},path:q?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:T($)},X=this._parseSync({data:$,path:J.path,parent:J});return Hq(J,X)}"~validate"($){let q={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:T($)};if(!this["~standard"].async)try{let J=this._parseSync({data:$,path:[],parent:q});return u(J)?{value:J.value}:{issues:q.common.issues}}catch(J){if(J?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;q.common={issues:[],async:!0}}return this._parseAsync({data:$,path:[],parent:q}).then((J)=>u(J)?{value:J.value}:{issues:q.common.issues})}async parseAsync($,q){let J=await this.safeParseAsync($,q);if(J.success)return J.data;throw J.error}async safeParseAsync($,q){let J={common:{issues:[],contextualErrorMap:q?.errorMap,async:!0},path:q?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:T($)},X=this._parse({data:$,path:J.path,parent:J}),Q=await(q$(X)?X:Promise.resolve(X));return Hq(J,Q)}refine($,q){let J=(X)=>{if(typeof q==="string"||typeof q>"u")return{message:q};else if(typeof q==="function")return q(X);else return q};return this._refinement((X,Q)=>{let _=$(X),Y=()=>Q.addIssue({code:z.custom,...J(X)});if(typeof Promise<"u"&&_ instanceof Promise)return _.then((G)=>{if(!G)return Y(),!1;else return!0});if(!_)return Y(),!1;else return!0})}refinement($,q){return this._refinement((J,X)=>{if(!$(J))return X.addIssue(typeof q==="function"?q(J,X):q),!1;else return!0})}_refinement($){return new P({schema:this,typeName:w.ZodEffects,effect:{type:"refinement",refinement:$}})}superRefine($){return this._refinement($)}constructor($){this.spa=this.safeParseAsync,this._def=$,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:(q)=>this["~validate"](q)}}optional(){return I.create(this,this._def)}nullable(){return m.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return k.create(this)}promise(){return e.create(this,this._def)}or($){return G$.create([this,$],this._def)}and($){return H$.create(this,$,this._def)}transform($){return new P({...N(this._def),schema:this,typeName:w.ZodEffects,effect:{type:"transform",transform:$}})}default($){let q=typeof $==="function"?$:()=>$;return new j$({...N(this._def),innerType:this,defaultValue:q,typeName:w.ZodDefault})}brand(){return new I$({typeName:w.ZodBranded,type:this,...N(this._def)})}catch($){let q=typeof $==="function"?$:()=>$;return new R$({...N(this._def),innerType:this,catchValue:q,typeName:w.ZodCatch})}describe($){return new this.constructor({...this._def,description:$})}pipe($){return E$.create(this,$)}readonly(){return U$.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}var bJ=/^c[^\s-]{8,}$/i,fJ=/^[0-9a-z]+$/,kJ=/^[0-9A-HJKMNP-TV-Z]{26}$/i,IJ=/^[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,vJ=/^[a-z0-9_-]{21}$/i,PJ=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,CJ=/^[-+]?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)?)??$/,TJ=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,xJ="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",m$,ZJ=/^(?:(?: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])$/,hJ=/^(?:(?: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])$/,yJ=/^(([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]))$/,gJ=/^(([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])$/,lJ=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,mJ=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,zq="((\\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])))",uJ=new RegExp(`^${zq}$`);function Bq($){let q="[0-5]\\d";if($.precision)q=`${q}\\.\\d{${$.precision}}`;else if($.precision==null)q=`${q}(\\.\\d+)?`;let J=$.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${q})${J}`}function cJ($){return new RegExp(`^${Bq($)}$`)}function jq($){let q=`${zq}T${Bq($)}`,J=[];if(J.push($.local?"Z?":"Z"),$.offset)J.push("([+-]\\d{2}:?\\d{2})");return q=`${q}(${J.join("|")})`,new RegExp(`^${q}$`)}function dJ($,q){if((q==="v4"||!q)&&ZJ.test($))return!0;if((q==="v6"||!q)&&yJ.test($))return!0;return!1}function pJ($,q){if(!PJ.test($))return!1;try{let[J]=$.split(".");if(!J)return!1;let X=J.replace(/-/g,"+").replace(/_/g,"/").padEnd(J.length+(4-J.length%4)%4,"="),Q=JSON.parse(atob(X));if(typeof Q!=="object"||Q===null)return!1;if("typ"in Q&&Q?.typ!=="JWT")return!1;if(!Q.alg)return!1;if(q&&Q.alg!==q)return!1;return!0}catch{return!1}}function iJ($,q){if((q==="v4"||!q)&&hJ.test($))return!0;if((q==="v6"||!q)&&gJ.test($))return!0;return!1}class f extends M{_parse($){if(this._def.coerce)$.data=String($.data);if(this._getType($)!==j.string){let Q=this._getOrReturnCtx($);return R(Q,{code:z.invalid_type,expected:j.string,received:Q.parsedType}),S}let J=new A,X=void 0;for(let Q of this._def.checks)if(Q.kind==="min"){if($.data.length<Q.value)X=this._getOrReturnCtx($,X),R(X,{code:z.too_small,minimum:Q.value,type:"string",inclusive:!0,exact:!1,message:Q.message}),J.dirty()}else if(Q.kind==="max"){if($.data.length>Q.value)X=this._getOrReturnCtx($,X),R(X,{code:z.too_big,maximum:Q.value,type:"string",inclusive:!0,exact:!1,message:Q.message}),J.dirty()}else if(Q.kind==="length"){let _=$.data.length>Q.value,Y=$.data.length<Q.value;if(_||Y){if(X=this._getOrReturnCtx($,X),_)R(X,{code:z.too_big,maximum:Q.value,type:"string",inclusive:!0,exact:!0,message:Q.message});else if(Y)R(X,{code:z.too_small,minimum:Q.value,type:"string",inclusive:!0,exact:!0,message:Q.message});J.dirty()}}else if(Q.kind==="email"){if(!TJ.test($.data))X=this._getOrReturnCtx($,X),R(X,{validation:"email",code:z.invalid_string,message:Q.message}),J.dirty()}else if(Q.kind==="emoji"){if(!m$)m$=new RegExp(xJ,"u");if(!m$.test($.data))X=this._getOrReturnCtx($,X),R(X,{validation:"emoji",code:z.invalid_string,message:Q.message}),J.dirty()}else if(Q.kind==="uuid"){if(!IJ.test($.data))X=this._getOrReturnCtx($,X),R(X,{validation:"uuid",code:z.invalid_string,message:Q.message}),J.dirty()}else if(Q.kind==="nanoid"){if(!vJ.test($.data))X=this._getOrReturnCtx($,X),R(X,{validation:"nanoid",code:z.invalid_string,message:Q.message}),J.dirty()}else if(Q.kind==="cuid"){if(!bJ.test($.data))X=this._getOrReturnCtx($,X),R(X,{validation:"cuid",code:z.invalid_string,message:Q.message}),J.dirty()}else if(Q.kind==="cuid2"){if(!fJ.test($.data))X=this._getOrReturnCtx($,X),R(X,{validation:"cuid2",code:z.invalid_string,message:Q.message}),J.dirty()}else if(Q.kind==="ulid"){if(!kJ.test($.data))X=this._getOrReturnCtx($,X),R(X,{validation:"ulid",code:z.invalid_string,message:Q.message}),J.dirty()}else if(Q.kind==="url")try{new URL($.data)}catch{X=this._getOrReturnCtx($,X),R(X,{validation:"url",code:z.invalid_string,message:Q.message}),J.dirty()}else if(Q.kind==="regex"){if(Q.regex.lastIndex=0,!Q.regex.test($.data))X=this._getOrReturnCtx($,X),R(X,{validation:"regex",code:z.invalid_string,message:Q.message}),J.dirty()}else if(Q.kind==="trim")$.data=$.data.trim();else if(Q.kind==="includes"){if(!$.data.includes(Q.value,Q.position))X=this._getOrReturnCtx($,X),R(X,{code:z.invalid_string,validation:{includes:Q.value,position:Q.position},message:Q.message}),J.dirty()}else if(Q.kind==="toLowerCase")$.data=$.data.toLowerCase();else if(Q.kind==="toUpperCase")$.data=$.data.toUpperCase();else if(Q.kind==="startsWith"){if(!$.data.startsWith(Q.value))X=this._getOrReturnCtx($,X),R(X,{code:z.invalid_string,validation:{startsWith:Q.value},message:Q.message}),J.dirty()}else if(Q.kind==="endsWith"){if(!$.data.endsWith(Q.value))X=this._getOrReturnCtx($,X),R(X,{code:z.invalid_string,validation:{endsWith:Q.value},message:Q.message}),J.dirty()}else if(Q.kind==="datetime"){if(!jq(Q).test($.data))X=this._getOrReturnCtx($,X),R(X,{code:z.invalid_string,validation:"datetime",message:Q.message}),J.dirty()}else if(Q.kind==="date"){if(!uJ.test($.data))X=this._getOrReturnCtx($,X),R(X,{code:z.invalid_string,validation:"date",message:Q.message}),J.dirty()}else if(Q.kind==="time"){if(!cJ(Q).test($.data))X=this._getOrReturnCtx($,X),R(X,{code:z.invalid_string,validation:"time",message:Q.message}),J.dirty()}else if(Q.kind==="duration"){if(!CJ.test($.data))X=this._getOrReturnCtx($,X),R(X,{validation:"duration",code:z.invalid_string,message:Q.message}),J.dirty()}else if(Q.kind==="ip"){if(!dJ($.data,Q.version))X=this._getOrReturnCtx($,X),R(X,{validation:"ip",code:z.invalid_string,message:Q.message}),J.dirty()}else if(Q.kind==="jwt"){if(!pJ($.data,Q.alg))X=this._getOrReturnCtx($,X),R(X,{validation:"jwt",code:z.invalid_string,message:Q.message}),J.dirty()}else if(Q.kind==="cidr"){if(!iJ($.data,Q.version))X=this._getOrReturnCtx($,X),R(X,{validation:"cidr",code:z.invalid_string,message:Q.message}),J.dirty()}else if(Q.kind==="base64"){if(!lJ.test($.data))X=this._getOrReturnCtx($,X),R(X,{validation:"base64",code:z.invalid_string,message:Q.message}),J.dirty()}else if(Q.kind==="base64url"){if(!mJ.test($.data))X=this._getOrReturnCtx($,X),R(X,{validation:"base64url",code:z.invalid_string,message:Q.message}),J.dirty()}else K.assertNever(Q);return{status:J.value,value:$.data}}_regex($,q,J){return this.refinement((X)=>$.test(X),{validation:q,code:z.invalid_string,...V.errToObj(J)})}_addCheck($){return new f({...this._def,checks:[...this._def.checks,$]})}email($){return this._addCheck({kind:"email",...V.errToObj($)})}url($){return this._addCheck({kind:"url",...V.errToObj($)})}emoji($){return this._addCheck({kind:"emoji",...V.errToObj($)})}uuid($){return this._addCheck({kind:"uuid",...V.errToObj($)})}nanoid($){return this._addCheck({kind:"nanoid",...V.errToObj($)})}cuid($){return this._addCheck({kind:"cuid",...V.errToObj($)})}cuid2($){return this._addCheck({kind:"cuid2",...V.errToObj($)})}ulid($){return this._addCheck({kind:"ulid",...V.errToObj($)})}base64($){return this._addCheck({kind:"base64",...V.errToObj($)})}base64url($){return this._addCheck({kind:"base64url",...V.errToObj($)})}jwt($){return this._addCheck({kind:"jwt",...V.errToObj($)})}ip($){return this._addCheck({kind:"ip",...V.errToObj($)})}cidr($){return this._addCheck({kind:"cidr",...V.errToObj($)})}datetime($){if(typeof $==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:$});return this._addCheck({kind:"datetime",precision:typeof $?.precision>"u"?null:$?.precision,offset:$?.offset??!1,local:$?.local??!1,...V.errToObj($?.message)})}date($){return this._addCheck({kind:"date",message:$})}time($){if(typeof $==="string")return this._addCheck({kind:"time",precision:null,message:$});return this._addCheck({kind:"time",precision:typeof $?.precision>"u"?null:$?.precision,...V.errToObj($?.message)})}duration($){return this._addCheck({kind:"duration",...V.errToObj($)})}regex($,q){return this._addCheck({kind:"regex",regex:$,...V.errToObj(q)})}includes($,q){return this._addCheck({kind:"includes",value:$,position:q?.position,...V.errToObj(q?.message)})}startsWith($,q){return this._addCheck({kind:"startsWith",value:$,...V.errToObj(q)})}endsWith($,q){return this._addCheck({kind:"endsWith",value:$,...V.errToObj(q)})}min($,q){return this._addCheck({kind:"min",value:$,...V.errToObj(q)})}max($,q){return this._addCheck({kind:"max",value:$,...V.errToObj(q)})}length($,q){return this._addCheck({kind:"length",value:$,...V.errToObj(q)})}nonempty($){return this.min(1,V.errToObj($))}trim(){return new f({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new f({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new f({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(($)=>$.kind==="datetime")}get isDate(){return!!this._def.checks.find(($)=>$.kind==="date")}get isTime(){return!!this._def.checks.find(($)=>$.kind==="time")}get isDuration(){return!!this._def.checks.find(($)=>$.kind==="duration")}get isEmail(){return!!this._def.checks.find(($)=>$.kind==="email")}get isURL(){return!!this._def.checks.find(($)=>$.kind==="url")}get isEmoji(){return!!this._def.checks.find(($)=>$.kind==="emoji")}get isUUID(){return!!this._def.checks.find(($)=>$.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(($)=>$.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(($)=>$.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(($)=>$.kind==="cuid2")}get isULID(){return!!this._def.checks.find(($)=>$.kind==="ulid")}get isIP(){return!!this._def.checks.find(($)=>$.kind==="ip")}get isCIDR(){return!!this._def.checks.find(($)=>$.kind==="cidr")}get isBase64(){return!!this._def.checks.find(($)=>$.kind==="base64")}get isBase64url(){return!!this._def.checks.find(($)=>$.kind==="base64url")}get minLength(){let $=null;for(let q of this._def.checks)if(q.kind==="min"){if($===null||q.value>$)$=q.value}return $}get maxLength(){let $=null;for(let q of this._def.checks)if(q.kind==="max"){if($===null||q.value<$)$=q.value}return $}}f.create=($)=>{return new f({checks:[],typeName:w.ZodString,coerce:$?.coerce??!1,...N($)})};function nJ($,q){let J=($.toString().split(".")[1]||"").length,X=(q.toString().split(".")[1]||"").length,Q=J>X?J:X,_=Number.parseInt($.toFixed(Q).replace(".","")),Y=Number.parseInt(q.toFixed(Q).replace(".",""));return _%Y/10**Q}class d extends M{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse($){if(this._def.coerce)$.data=Number($.data);if(this._getType($)!==j.number){let Q=this._getOrReturnCtx($);return R(Q,{code:z.invalid_type,expected:j.number,received:Q.parsedType}),S}let J=void 0,X=new A;for(let Q of this._def.checks)if(Q.kind==="int"){if(!K.isInteger($.data))J=this._getOrReturnCtx($,J),R(J,{code:z.invalid_type,expected:"integer",received:"float",message:Q.message}),X.dirty()}else if(Q.kind==="min"){if(Q.inclusive?$.data<Q.value:$.data<=Q.value)J=this._getOrReturnCtx($,J),R(J,{code:z.too_small,minimum:Q.value,type:"number",inclusive:Q.inclusive,exact:!1,message:Q.message}),X.dirty()}else if(Q.kind==="max"){if(Q.inclusive?$.data>Q.value:$.data>=Q.value)J=this._getOrReturnCtx($,J),R(J,{code:z.too_big,maximum:Q.value,type:"number",inclusive:Q.inclusive,exact:!1,message:Q.message}),X.dirty()}else if(Q.kind==="multipleOf"){if(nJ($.data,Q.value)!==0)J=this._getOrReturnCtx($,J),R(J,{code:z.not_multiple_of,multipleOf:Q.value,message:Q.message}),X.dirty()}else if(Q.kind==="finite"){if(!Number.isFinite($.data))J=this._getOrReturnCtx($,J),R(J,{code:z.not_finite,message:Q.message}),X.dirty()}else K.assertNever(Q);return{status:X.value,value:$.data}}gte($,q){return this.setLimit("min",$,!0,V.toString(q))}gt($,q){return this.setLimit("min",$,!1,V.toString(q))}lte($,q){return this.setLimit("max",$,!0,V.toString(q))}lt($,q){return this.setLimit("max",$,!1,V.toString(q))}setLimit($,q,J,X){return new d({...this._def,checks:[...this._def.checks,{kind:$,value:q,inclusive:J,message:V.toString(X)}]})}_addCheck($){return new d({...this._def,checks:[...this._def.checks,$]})}int($){return this._addCheck({kind:"int",message:V.toString($)})}positive($){return this._addCheck({kind:"min",value:0,inclusive:!1,message:V.toString($)})}negative($){return this._addCheck({kind:"max",value:0,inclusive:!1,message:V.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:0,inclusive:!0,message:V.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:0,inclusive:!0,message:V.toString($)})}multipleOf($,q){return this._addCheck({kind:"multipleOf",value:$,message:V.toString(q)})}finite($){return this._addCheck({kind:"finite",message:V.toString($)})}safe($){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:V.toString($)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:V.toString($)})}get minValue(){let $=null;for(let q of this._def.checks)if(q.kind==="min"){if($===null||q.value>$)$=q.value}return $}get maxValue(){let $=null;for(let q of this._def.checks)if(q.kind==="max"){if($===null||q.value<$)$=q.value}return $}get isInt(){return!!this._def.checks.find(($)=>$.kind==="int"||$.kind==="multipleOf"&&K.isInteger($.value))}get isFinite(){let $=null,q=null;for(let J of this._def.checks)if(J.kind==="finite"||J.kind==="int"||J.kind==="multipleOf")return!0;else if(J.kind==="min"){if(q===null||J.value>q)q=J.value}else if(J.kind==="max"){if($===null||J.value<$)$=J.value}return Number.isFinite(q)&&Number.isFinite($)}}d.create=($)=>{return new d({checks:[],typeName:w.ZodNumber,coerce:$?.coerce||!1,...N($)})};class p extends M{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse($){if(this._def.coerce)try{$.data=BigInt($.data)}catch{return this._getInvalidInput($)}if(this._getType($)!==j.bigint)return this._getInvalidInput($);let J=void 0,X=new A;for(let Q of this._def.checks)if(Q.kind==="min"){if(Q.inclusive?$.data<Q.value:$.data<=Q.value)J=this._getOrReturnCtx($,J),R(J,{code:z.too_small,type:"bigint",minimum:Q.value,inclusive:Q.inclusive,message:Q.message}),X.dirty()}else if(Q.kind==="max"){if(Q.inclusive?$.data>Q.value:$.data>=Q.value)J=this._getOrReturnCtx($,J),R(J,{code:z.too_big,type:"bigint",maximum:Q.value,inclusive:Q.inclusive,message:Q.message}),X.dirty()}else if(Q.kind==="multipleOf"){if($.data%Q.value!==BigInt(0))J=this._getOrReturnCtx($,J),R(J,{code:z.not_multiple_of,multipleOf:Q.value,message:Q.message}),X.dirty()}else K.assertNever(Q);return{status:X.value,value:$.data}}_getInvalidInput($){let q=this._getOrReturnCtx($);return R(q,{code:z.invalid_type,expected:j.bigint,received:q.parsedType}),S}gte($,q){return this.setLimit("min",$,!0,V.toString(q))}gt($,q){return this.setLimit("min",$,!1,V.toString(q))}lte($,q){return this.setLimit("max",$,!0,V.toString(q))}lt($,q){return this.setLimit("max",$,!1,V.toString(q))}setLimit($,q,J,X){return new p({...this._def,checks:[...this._def.checks,{kind:$,value:q,inclusive:J,message:V.toString(X)}]})}_addCheck($){return new p({...this._def,checks:[...this._def.checks,$]})}positive($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:V.toString($)})}negative($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:V.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:V.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:V.toString($)})}multipleOf($,q){return this._addCheck({kind:"multipleOf",value:$,message:V.toString(q)})}get minValue(){let $=null;for(let q of this._def.checks)if(q.kind==="min"){if($===null||q.value>$)$=q.value}return $}get maxValue(){let $=null;for(let q of this._def.checks)if(q.kind==="max"){if($===null||q.value<$)$=q.value}return $}}p.create=($)=>{return new p({checks:[],typeName:w.ZodBigInt,coerce:$?.coerce??!1,...N($)})};class Q$ extends M{_parse($){if(this._def.coerce)$.data=Boolean($.data);if(this._getType($)!==j.boolean){let J=this._getOrReturnCtx($);return R(J,{code:z.invalid_type,expected:j.boolean,received:J.parsedType}),S}return O($.data)}}Q$.create=($)=>{return new Q$({typeName:w.ZodBoolean,coerce:$?.coerce||!1,...N($)})};class a extends M{_parse($){if(this._def.coerce)$.data=new Date($.data);if(this._getType($)!==j.date){let Q=this._getOrReturnCtx($);return R(Q,{code:z.invalid_type,expected:j.date,received:Q.parsedType}),S}if(Number.isNaN($.data.getTime())){let Q=this._getOrReturnCtx($);return R(Q,{code:z.invalid_date}),S}let J=new A,X=void 0;for(let Q of this._def.checks)if(Q.kind==="min"){if($.data.getTime()<Q.value)X=this._getOrReturnCtx($,X),R(X,{code:z.too_small,message:Q.message,inclusive:!0,exact:!1,minimum:Q.value,type:"date"}),J.dirty()}else if(Q.kind==="max"){if($.data.getTime()>Q.value)X=this._getOrReturnCtx($,X),R(X,{code:z.too_big,message:Q.message,inclusive:!0,exact:!1,maximum:Q.value,type:"date"}),J.dirty()}else K.assertNever(Q);return{status:J.value,value:new Date($.data.getTime())}}_addCheck($){return new a({...this._def,checks:[...this._def.checks,$]})}min($,q){return this._addCheck({kind:"min",value:$.getTime(),message:V.toString(q)})}max($,q){return this._addCheck({kind:"max",value:$.getTime(),message:V.toString(q)})}get minDate(){let $=null;for(let q of this._def.checks)if(q.kind==="min"){if($===null||q.value>$)$=q.value}return $!=null?new Date($):null}get maxDate(){let $=null;for(let q of this._def.checks)if(q.kind==="max"){if($===null||q.value<$)$=q.value}return $!=null?new Date($):null}}a.create=($)=>{return new a({checks:[],coerce:$?.coerce||!1,typeName:w.ZodDate,...N($)})};class N$ extends M{_parse($){if(this._getType($)!==j.symbol){let J=this._getOrReturnCtx($);return R(J,{code:z.invalid_type,expected:j.symbol,received:J.parsedType}),S}return O($.data)}}N$.create=($)=>{return new N$({typeName:w.ZodSymbol,...N($)})};class _$ extends M{_parse($){if(this._getType($)!==j.undefined){let J=this._getOrReturnCtx($);return R(J,{code:z.invalid_type,expected:j.undefined,received:J.parsedType}),S}return O($.data)}}_$.create=($)=>{return new _$({typeName:w.ZodUndefined,...N($)})};class Y$ extends M{_parse($){if(this._getType($)!==j.null){let J=this._getOrReturnCtx($);return R(J,{code:z.invalid_type,expected:j.null,received:J.parsedType}),S}return O($.data)}}Y$.create=($)=>{return new Y$({typeName:w.ZodNull,...N($)})};class s extends M{constructor(){super(...arguments);this._any=!0}_parse($){return O($.data)}}s.create=($)=>{return new s({typeName:w.ZodAny,...N($)})};class c extends M{constructor(){super(...arguments);this._unknown=!0}_parse($){return O($.data)}}c.create=($)=>{return new c({typeName:w.ZodUnknown,...N($)})};class x extends M{_parse($){let q=this._getOrReturnCtx($);return R(q,{code:z.invalid_type,expected:j.never,received:q.parsedType}),S}}x.create=($)=>{return new x({typeName:w.ZodNever,...N($)})};class M$ extends M{_parse($){if(this._getType($)!==j.undefined){let J=this._getOrReturnCtx($);return R(J,{code:z.invalid_type,expected:j.void,received:J.parsedType}),S}return O($.data)}}M$.create=($)=>{return new M$({typeName:w.ZodVoid,...N($)})};class k extends M{_parse($){let{ctx:q,status:J}=this._processInputParams($),X=this._def;if(q.parsedType!==j.array)return R(q,{code:z.invalid_type,expected:j.array,received:q.parsedType}),S;if(X.exactLength!==null){let _=q.data.length>X.exactLength.value,Y=q.data.length<X.exactLength.value;if(_||Y)R(q,{code:_?z.too_big:z.too_small,minimum:Y?X.exactLength.value:void 0,maximum:_?X.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:X.exactLength.message}),J.dirty()}if(X.minLength!==null){if(q.data.length<X.minLength.value)R(q,{code:z.too_small,minimum:X.minLength.value,type:"array",inclusive:!0,exact:!1,message:X.minLength.message}),J.dirty()}if(X.maxLength!==null){if(q.data.length>X.maxLength.value)R(q,{code:z.too_big,maximum:X.maxLength.value,type:"array",inclusive:!0,exact:!1,message:X.maxLength.message}),J.dirty()}if(q.common.async)return Promise.all([...q.data].map((_,Y)=>{return X.type._parseAsync(new v(q,_,q.path,Y))})).then((_)=>{return A.mergeArray(J,_)});let Q=[...q.data].map((_,Y)=>{return X.type._parseSync(new v(q,_,q.path,Y))});return A.mergeArray(J,Q)}get element(){return this._def.type}min($,q){return new k({...this._def,minLength:{value:$,message:V.toString(q)}})}max($,q){return new k({...this._def,maxLength:{value:$,message:V.toString(q)}})}length($,q){return new k({...this._def,exactLength:{value:$,message:V.toString(q)}})}nonempty($){return this.min(1,$)}}k.create=($,q)=>{return new k({type:$,minLength:null,maxLength:null,exactLength:null,typeName:w.ZodArray,...N(q)})};function J$($){if($ instanceof F){let q={};for(let J in $.shape){let X=$.shape[J];q[J]=I.create(J$(X))}return new F({...$._def,shape:()=>q})}else if($ instanceof k)return new k({...$._def,type:J$($.element)});else if($ instanceof I)return I.create(J$($.unwrap()));else if($ instanceof m)return m.create(J$($.unwrap()));else if($ instanceof Z)return Z.create($.items.map((q)=>J$(q)));else return $}class F extends M{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let $=this._def.shape(),q=K.objectKeys($);return this._cached={shape:$,keys:q},this._cached}_parse($){if(this._getType($)!==j.object){let H=this._getOrReturnCtx($);return R(H,{code:z.invalid_type,expected:j.object,received:H.parsedType}),S}let{status:J,ctx:X}=this._processInputParams($),{shape:Q,keys:_}=this._getCached(),Y=[];if(!(this._def.catchall instanceof x&&this._def.unknownKeys==="strip")){for(let H in X.data)if(!_.includes(H))Y.push(H)}let G=[];for(let H of _){let B=Q[H],U=X.data[H];G.push({key:{status:"valid",value:H},value:B._parse(new v(X,U,X.path,H)),alwaysSet:H in X.data})}if(this._def.catchall instanceof x){let H=this._def.unknownKeys;if(H==="passthrough")for(let B of Y)G.push({key:{status:"valid",value:B},value:{status:"valid",value:X.data[B]}});else if(H==="strict"){if(Y.length>0)R(X,{code:z.unrecognized_keys,keys:Y}),J.dirty()}else if(H==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let H=this._def.catchall;for(let B of Y){let U=X.data[B];G.push({key:{status:"valid",value:B},value:H._parse(new v(X,U,X.path,B)),alwaysSet:B in X.data})}}if(X.common.async)return Promise.resolve().then(async()=>{let H=[];for(let B of G){let U=await B.key,E=await B.value;H.push({key:U,value:E,alwaysSet:B.alwaysSet})}return H}).then((H)=>{return A.mergeObjectSync(J,H)});else return A.mergeObjectSync(J,G)}get shape(){return this._def.shape()}strict($){return V.errToObj,new F({...this._def,unknownKeys:"strict",...$!==void 0?{errorMap:(q,J)=>{let X=this._def.errorMap?.(q,J).message??J.defaultError;if(q.code==="unrecognized_keys")return{message:V.errToObj($).message??X};return{message:X}}}:{}})}strip(){return new F({...this._def,unknownKeys:"strip"})}passthrough(){return new F({...this._def,unknownKeys:"passthrough"})}extend($){return new F({...this._def,shape:()=>({...this._def.shape(),...$})})}merge($){return new F({unknownKeys:$._def.unknownKeys,catchall:$._def.catchall,shape:()=>({...this._def.shape(),...$._def.shape()}),typeName:w.ZodObject})}setKey($,q){return this.augment({[$]:q})}catchall($){return new F({...this._def,catchall:$})}pick($){let q={};for(let J of K.objectKeys($))if($[J]&&this.shape[J])q[J]=this.shape[J];return new F({...this._def,shape:()=>q})}omit($){let q={};for(let J of K.objectKeys(this.shape))if(!$[J])q[J]=this.shape[J];return new F({...this._def,shape:()=>q})}deepPartial(){return J$(this)}partial($){let q={};for(let J of K.objectKeys(this.shape)){let X=this.shape[J];if($&&!$[J])q[J]=X;else q[J]=X.optional()}return new F({...this._def,shape:()=>q})}required($){let q={};for(let J of K.objectKeys(this.shape))if($&&!$[J])q[J]=this.shape[J];else{let Q=this.shape[J];while(Q instanceof I)Q=Q._def.innerType;q[J]=Q}return new F({...this._def,shape:()=>q})}keyof(){return Rq(K.objectKeys(this.shape))}}F.create=($,q)=>{return new F({shape:()=>$,unknownKeys:"strip",catchall:x.create(),typeName:w.ZodObject,...N(q)})};F.strictCreate=($,q)=>{return new F({shape:()=>$,unknownKeys:"strict",catchall:x.create(),typeName:w.ZodObject,...N(q)})};F.lazycreate=($,q)=>{return new F({shape:$,unknownKeys:"strip",catchall:x.create(),typeName:w.ZodObject,...N(q)})};class G$ extends M{_parse($){let{ctx:q}=this._processInputParams($),J=this._def.options;function X(Q){for(let Y of Q)if(Y.result.status==="valid")return Y.result;for(let Y of Q)if(Y.result.status==="dirty")return q.common.issues.push(...Y.ctx.common.issues),Y.result;let _=Q.map((Y)=>new b(Y.ctx.common.issues));return R(q,{code:z.invalid_union,unionErrors:_}),S}if(q.common.async)return Promise.all(J.map(async(Q)=>{let _={...q,common:{...q.common,issues:[]},parent:null};return{result:await Q._parseAsync({data:q.data,path:q.path,parent:_}),ctx:_}})).then(X);else{let Q=void 0,_=[];for(let G of J){let H={...q,common:{...q.common,issues:[]},parent:null},B=G._parseSync({data:q.data,path:q.path,parent:H});if(B.status==="valid")return B;else if(B.status==="dirty"&&!Q)Q={result:B,ctx:H};if(H.common.issues.length)_.push(H.common.issues)}if(Q)return q.common.issues.push(...Q.ctx.common.issues),Q.result;let Y=_.map((G)=>new b(G));return R(q,{code:z.invalid_union,unionErrors:Y}),S}}get options(){return this._def.options}}G$.create=($,q)=>{return new G$({options:$,typeName:w.ZodUnion,...N(q)})};var l=($)=>{if($ instanceof W$)return l($.schema);else if($ instanceof P)return l($.innerType());else if($ instanceof z$)return[$.value];else if($ instanceof i)return $.options;else if($ instanceof B$)return K.objectValues($.enum);else if($ instanceof j$)return l($._def.innerType);else if($ instanceof _$)return[void 0];else if($ instanceof Y$)return[null];else if($ instanceof I)return[void 0,...l($.unwrap())];else if($ instanceof m)return[null,...l($.unwrap())];else if($ instanceof I$)return l($.unwrap());else if($ instanceof U$)return l($.unwrap());else if($ instanceof R$)return l($._def.innerType);else return[]};class k$ extends M{_parse($){let{ctx:q}=this._processInputParams($);if(q.parsedType!==j.object)return R(q,{code:z.invalid_type,expected:j.object,received:q.parsedType}),S;let J=this.discriminator,X=q.data[J],Q=this.optionsMap.get(X);if(!Q)return R(q,{code:z.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[J]}),S;if(q.common.async)return Q._parseAsync({data:q.data,path:q.path,parent:q});else return Q._parseSync({data:q.data,path:q.path,parent:q})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create($,q,J){let X=new Map;for(let Q of q){let _=l(Q.shape[$]);if(!_.length)throw Error(`A discriminator value for key \`${$}\` could not be extracted from all schema options`);for(let Y of _){if(X.has(Y))throw Error(`Discriminator property ${String($)} has duplicate value ${String(Y)}`);X.set(Y,Q)}}return new k$({typeName:w.ZodDiscriminatedUnion,discriminator:$,options:q,optionsMap:X,...N(J)})}}function u$($,q){let J=T($),X=T(q);if($===q)return{valid:!0,data:$};else if(J===j.object&&X===j.object){let Q=K.objectKeys(q),_=K.objectKeys($).filter((G)=>Q.indexOf(G)!==-1),Y={...$,...q};for(let G of _){let H=u$($[G],q[G]);if(!H.valid)return{valid:!1};Y[G]=H.data}return{valid:!0,data:Y}}else if(J===j.array&&X===j.array){if($.length!==q.length)return{valid:!1};let Q=[];for(let _=0;_<$.length;_++){let Y=$[_],G=q[_],H=u$(Y,G);if(!H.valid)return{valid:!1};Q.push(H.data)}return{valid:!0,data:Q}}else if(J===j.date&&X===j.date&&+$===+q)return{valid:!0,data:$};else return{valid:!1}}class H$ extends M{_parse($){let{status:q,ctx:J}=this._processInputParams($),X=(Q,_)=>{if(b$(Q)||b$(_))return S;let Y=u$(Q.value,_.value);if(!Y.valid)return R(J,{code:z.invalid_intersection_types}),S;if(f$(Q)||f$(_))q.dirty();return{status:q.value,value:Y.data}};if(J.common.async)return Promise.all([this._def.left._parseAsync({data:J.data,path:J.path,parent:J}),this._def.right._parseAsync({data:J.data,path:J.path,parent:J})]).then(([Q,_])=>X(Q,_));else return X(this._def.left._parseSync({data:J.data,path:J.path,parent:J}),this._def.right._parseSync({data:J.data,path:J.path,parent:J}))}}H$.create=($,q,J)=>{return new H$({left:$,right:q,typeName:w.ZodIntersection,...N(J)})};class Z extends M{_parse($){let{status:q,ctx:J}=this._processInputParams($);if(J.parsedType!==j.array)return R(J,{code:z.invalid_type,expected:j.array,received:J.parsedType}),S;if(J.data.length<this._def.items.length)return R(J,{code:z.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),S;if(!this._def.rest&&J.data.length>this._def.items.length)R(J,{code:z.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),q.dirty();let Q=[...J.data].map((_,Y)=>{let G=this._def.items[Y]||this._def.rest;if(!G)return null;return G._parse(new v(J,_,J.path,Y))}).filter((_)=>!!_);if(J.common.async)return Promise.all(Q).then((_)=>{return A.mergeArray(q,_)});else return A.mergeArray(q,Q)}get items(){return this._def.items}rest($){return new Z({...this._def,rest:$})}}Z.create=($,q)=>{if(!Array.isArray($))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new Z({items:$,typeName:w.ZodTuple,rest:null,...N(q)})};class K$ extends M{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:q,ctx:J}=this._processInputParams($);if(J.parsedType!==j.object)return R(J,{code:z.invalid_type,expected:j.object,received:J.parsedType}),S;let X=[],Q=this._def.keyType,_=this._def.valueType;for(let Y in J.data)X.push({key:Q._parse(new v(J,Y,J.path,Y)),value:_._parse(new v(J,J.data[Y],J.path,Y)),alwaysSet:Y in J.data});if(J.common.async)return A.mergeObjectAsync(q,X);else return A.mergeObjectSync(q,X)}get element(){return this._def.valueType}static create($,q,J){if(q instanceof M)return new K$({keyType:$,valueType:q,typeName:w.ZodRecord,...N(J)});return new K$({keyType:f.create(),valueType:$,typeName:w.ZodRecord,...N(q)})}}class D$ extends M{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:q,ctx:J}=this._processInputParams($);if(J.parsedType!==j.map)return R(J,{code:z.invalid_type,expected:j.map,received:J.parsedType}),S;let X=this._def.keyType,Q=this._def.valueType,_=[...J.data.entries()].map(([Y,G],H)=>{return{key:X._parse(new v(J,Y,J.path,[H,"key"])),value:Q._parse(new v(J,G,J.path,[H,"value"]))}});if(J.common.async){let Y=new Map;return Promise.resolve().then(async()=>{for(let G of _){let H=await G.key,B=await G.value;if(H.status==="aborted"||B.status==="aborted")return S;if(H.status==="dirty"||B.status==="dirty")q.dirty();Y.set(H.value,B.value)}return{status:q.value,value:Y}})}else{let Y=new Map;for(let G of _){let{key:H,value:B}=G;if(H.status==="aborted"||B.status==="aborted")return S;if(H.status==="dirty"||B.status==="dirty")q.dirty();Y.set(H.value,B.value)}return{status:q.value,value:Y}}}}D$.create=($,q,J)=>{return new D$({valueType:q,keyType:$,typeName:w.ZodMap,...N(J)})};class t extends M{_parse($){let{status:q,ctx:J}=this._processInputParams($);if(J.parsedType!==j.set)return R(J,{code:z.invalid_type,expected:j.set,received:J.parsedType}),S;let X=this._def;if(X.minSize!==null){if(J.data.size<X.minSize.value)R(J,{code:z.too_small,minimum:X.minSize.value,type:"set",inclusive:!0,exact:!1,message:X.minSize.message}),q.dirty()}if(X.maxSize!==null){if(J.data.size>X.maxSize.value)R(J,{code:z.too_big,maximum:X.maxSize.value,type:"set",inclusive:!0,exact:!1,message:X.maxSize.message}),q.dirty()}let Q=this._def.valueType;function _(G){let H=new Set;for(let B of G){if(B.status==="aborted")return S;if(B.status==="dirty")q.dirty();H.add(B.value)}return{status:q.value,value:H}}let Y=[...J.data.values()].map((G,H)=>Q._parse(new v(J,G,J.path,H)));if(J.common.async)return Promise.all(Y).then((G)=>_(G));else return _(Y)}min($,q){return new t({...this._def,minSize:{value:$,message:V.toString(q)}})}max($,q){return new t({...this._def,maxSize:{value:$,message:V.toString(q)}})}size($,q){return this.min($,q).max($,q)}nonempty($){return this.min(1,$)}}t.create=($,q)=>{return new t({valueType:$,minSize:null,maxSize:null,typeName:w.ZodSet,...N(q)})};class X$ extends M{constructor(){super(...arguments);this.validate=this.implement}_parse($){let{ctx:q}=this._processInputParams($);if(q.parsedType!==j.function)return R(q,{code:z.invalid_type,expected:j.function,received:q.parsedType}),S;function J(Y,G){return w$({data:Y,path:q.path,errorMaps:[q.common.contextualErrorMap,q.schemaErrorMap,$$(),g].filter((H)=>!!H),issueData:{code:z.invalid_arguments,argumentsError:G}})}function X(Y,G){return w$({data:Y,path:q.path,errorMaps:[q.common.contextualErrorMap,q.schemaErrorMap,$$(),g].filter((H)=>!!H),issueData:{code:z.invalid_return_type,returnTypeError:G}})}let Q={errorMap:q.common.contextualErrorMap},_=q.data;if(this._def.returns instanceof e){let Y=this;return O(async function(...G){let H=new b([]),B=await Y._def.args.parseAsync(G,Q).catch((C)=>{throw H.addIssue(J(G,C)),H}),U=await Reflect.apply(_,this,B);return await Y._def.returns._def.type.parseAsync(U,Q).catch((C)=>{throw H.addIssue(X(U,C)),H})})}else{let Y=this;return O(function(...G){let H=Y._def.args.safeParse(G,Q);if(!H.success)throw new b([J(G,H.error)]);let B=Reflect.apply(_,this,H.data),U=Y._def.returns.safeParse(B,Q);if(!U.success)throw new b([X(B,U.error)]);return U.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...$){return new X$({...this._def,args:Z.create($).rest(c.create())})}returns($){return new X$({...this._def,returns:$})}implement($){return this.parse($)}strictImplement($){return this.parse($)}static create($,q,J){return new X$({args:$?$:Z.create([]).rest(c.create()),returns:q||c.create(),typeName:w.ZodFunction,...N(J)})}}class W$ extends M{get schema(){return this._def.getter()}_parse($){let{ctx:q}=this._processInputParams($);return this._def.getter()._parse({data:q.data,path:q.path,parent:q})}}W$.create=($,q)=>{return new W$({getter:$,typeName:w.ZodLazy,...N(q)})};class z$ extends M{_parse($){if($.data!==this._def.value){let q=this._getOrReturnCtx($);return R(q,{received:q.data,code:z.invalid_literal,expected:this._def.value}),S}return{status:"valid",value:$.data}}get value(){return this._def.value}}z$.create=($,q)=>{return new z$({value:$,typeName:w.ZodLiteral,...N(q)})};function Rq($,q){return new i({values:$,typeName:w.ZodEnum,...N(q)})}class i extends M{_parse($){if(typeof $.data!=="string"){let q=this._getOrReturnCtx($),J=this._def.values;return R(q,{expected:K.joinValues(J),received:q.parsedType,code:z.invalid_type}),S}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has($.data)){let q=this._getOrReturnCtx($),J=this._def.values;return R(q,{received:q.data,code:z.invalid_enum_value,options:J}),S}return O($.data)}get options(){return this._def.values}get enum(){let $={};for(let q of this._def.values)$[q]=q;return $}get Values(){let $={};for(let q of this._def.values)$[q]=q;return $}get Enum(){let $={};for(let q of this._def.values)$[q]=q;return $}extract($,q=this._def){return i.create($,{...this._def,...q})}exclude($,q=this._def){return i.create(this.options.filter((J)=>!$.includes(J)),{...this._def,...q})}}i.create=Rq;class B$ extends M{_parse($){let q=K.getValidEnumValues(this._def.values),J=this._getOrReturnCtx($);if(J.parsedType!==j.string&&J.parsedType!==j.number){let X=K.objectValues(q);return R(J,{expected:K.joinValues(X),received:J.parsedType,code:z.invalid_type}),S}if(!this._cache)this._cache=new Set(K.getValidEnumValues(this._def.values));if(!this._cache.has($.data)){let X=K.objectValues(q);return R(J,{received:J.data,code:z.invalid_enum_value,options:X}),S}return O($.data)}get enum(){return this._def.values}}B$.create=($,q)=>{return new B$({values:$,typeName:w.ZodNativeEnum,...N(q)})};class e extends M{unwrap(){return this._def.type}_parse($){let{ctx:q}=this._processInputParams($);if(q.parsedType!==j.promise&&q.common.async===!1)return R(q,{code:z.invalid_type,expected:j.promise,received:q.parsedType}),S;let J=q.parsedType===j.promise?q.data:Promise.resolve(q.data);return O(J.then((X)=>{return this._def.type.parseAsync(X,{path:q.path,errorMap:q.common.contextualErrorMap})}))}}e.create=($,q)=>{return new e({type:$,typeName:w.ZodPromise,...N(q)})};class P extends M{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===w.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse($){let{status:q,ctx:J}=this._processInputParams($),X=this._def.effect||null,Q={addIssue:(_)=>{if(R(J,_),_.fatal)q.abort();else q.dirty()},get path(){return J.path}};if(Q.addIssue=Q.addIssue.bind(Q),X.type==="preprocess"){let _=X.transform(J.data,Q);if(J.common.async)return Promise.resolve(_).then(async(Y)=>{if(q.value==="aborted")return S;let G=await this._def.schema._parseAsync({data:Y,path:J.path,parent:J});if(G.status==="aborted")return S;if(G.status==="dirty")return o(G.value);if(q.value==="dirty")return o(G.value);return G});else{if(q.value==="aborted")return S;let Y=this._def.schema._parseSync({data:_,path:J.path,parent:J});if(Y.status==="aborted")return S;if(Y.status==="dirty")return o(Y.value);if(q.value==="dirty")return o(Y.value);return Y}}if(X.type==="refinement"){let _=(Y)=>{let G=X.refinement(Y,Q);if(J.common.async)return Promise.resolve(G);if(G instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return Y};if(J.common.async===!1){let Y=this._def.schema._parseSync({data:J.data,path:J.path,parent:J});if(Y.status==="aborted")return S;if(Y.status==="dirty")q.dirty();return _(Y.value),{status:q.value,value:Y.value}}else return this._def.schema._parseAsync({data:J.data,path:J.path,parent:J}).then((Y)=>{if(Y.status==="aborted")return S;if(Y.status==="dirty")q.dirty();return _(Y.value).then(()=>{return{status:q.value,value:Y.value}})})}if(X.type==="transform")if(J.common.async===!1){let _=this._def.schema._parseSync({data:J.data,path:J.path,parent:J});if(!u(_))return S;let Y=X.transform(_.value,Q);if(Y instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:q.value,value:Y}}else return this._def.schema._parseAsync({data:J.data,path:J.path,parent:J}).then((_)=>{if(!u(_))return S;return Promise.resolve(X.transform(_.value,Q)).then((Y)=>({status:q.value,value:Y}))});K.assertNever(X)}}P.create=($,q,J)=>{return new P({schema:$,typeName:w.ZodEffects,effect:q,...N(J)})};P.createWithPreprocess=($,q,J)=>{return new P({schema:q,effect:{type:"preprocess",transform:$},typeName:w.ZodEffects,...N(J)})};class I extends M{_parse($){if(this._getType($)===j.undefined)return O(void 0);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}}I.create=($,q)=>{return new I({innerType:$,typeName:w.ZodOptional,...N(q)})};class m extends M{_parse($){if(this._getType($)===j.null)return O(null);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}}m.create=($,q)=>{return new m({innerType:$,typeName:w.ZodNullable,...N(q)})};class j$ extends M{_parse($){let{ctx:q}=this._processInputParams($),J=q.data;if(q.parsedType===j.undefined)J=this._def.defaultValue();return this._def.innerType._parse({data:J,path:q.path,parent:q})}removeDefault(){return this._def.innerType}}j$.create=($,q)=>{return new j$({innerType:$,typeName:w.ZodDefault,defaultValue:typeof q.default==="function"?q.default:()=>q.default,...N(q)})};class R$ extends M{_parse($){let{ctx:q}=this._processInputParams($),J={...q,common:{...q.common,issues:[]}},X=this._def.innerType._parse({data:J.data,path:J.path,parent:{...J}});if(q$(X))return X.then((Q)=>{return{status:"valid",value:Q.status==="valid"?Q.value:this._def.catchValue({get error(){return new b(J.common.issues)},input:J.data})}});else return{status:"valid",value:X.status==="valid"?X.value:this._def.catchValue({get error(){return new b(J.common.issues)},input:J.data})}}removeCatch(){return this._def.innerType}}R$.create=($,q)=>{return new R$({innerType:$,typeName:w.ZodCatch,catchValue:typeof q.catch==="function"?q.catch:()=>q.catch,...N(q)})};class F$ extends M{_parse($){if(this._getType($)!==j.nan){let J=this._getOrReturnCtx($);return R(J,{code:z.invalid_type,expected:j.nan,received:J.parsedType}),S}return{status:"valid",value:$.data}}}F$.create=($)=>{return new F$({typeName:w.ZodNaN,...N($)})};var rJ=Symbol("zod_brand");class I$ extends M{_parse($){let{ctx:q}=this._processInputParams($),J=q.data;return this._def.type._parse({data:J,path:q.path,parent:q})}unwrap(){return this._def.type}}class E$ extends M{_parse($){let{status:q,ctx:J}=this._processInputParams($);if(J.common.async)return(async()=>{let Q=await this._def.in._parseAsync({data:J.data,path:J.path,parent:J});if(Q.status==="aborted")return S;if(Q.status==="dirty")return q.dirty(),o(Q.value);else return this._def.out._parseAsync({data:Q.value,path:J.path,parent:J})})();else{let X=this._def.in._parseSync({data:J.data,path:J.path,parent:J});if(X.status==="aborted")return S;if(X.status==="dirty")return q.dirty(),{status:"dirty",value:X.value};else return this._def.out._parseSync({data:X.value,path:J.path,parent:J})}}static create($,q){return new E$({in:$,out:q,typeName:w.ZodPipeline})}}class U$ extends M{_parse($){let q=this._def.innerType._parse($),J=(X)=>{if(u(X))X.value=Object.freeze(X.value);return X};return q$(q)?q.then((X)=>J(X)):J(q)}unwrap(){return this._def.innerType}}U$.create=($,q)=>{return new U$({innerType:$,typeName:w.ZodReadonly,...N(q)})};function Wq($,q){let J=typeof $==="function"?$(q):typeof $==="string"?{message:$}:$;return typeof J==="string"?{message:J}:J}function Uq($,q={},J){if($)return s.create().superRefine((X,Q)=>{let _=$(X);if(_ instanceof Promise)return _.then((Y)=>{if(!Y){let G=Wq(q,X),H=G.fatal??J??!0;Q.addIssue({code:"custom",...G,fatal:H})}});if(!_){let Y=Wq(q,X),G=Y.fatal??J??!0;Q.addIssue({code:"custom",...Y,fatal:G})}return});return s.create()}var oJ={object:F.lazycreate},w;(function($){$.ZodString="ZodString",$.ZodNumber="ZodNumber",$.ZodNaN="ZodNaN",$.ZodBigInt="ZodBigInt",$.ZodBoolean="ZodBoolean",$.ZodDate="ZodDate",$.ZodSymbol="ZodSymbol",$.ZodUndefined="ZodUndefined",$.ZodNull="ZodNull",$.ZodAny="ZodAny",$.ZodUnknown="ZodUnknown",$.ZodNever="ZodNever",$.ZodVoid="ZodVoid",$.ZodArray="ZodArray",$.ZodObject="ZodObject",$.ZodUnion="ZodUnion",$.ZodDiscriminatedUnion="ZodDiscriminatedUnion",$.ZodIntersection="ZodIntersection",$.ZodTuple="ZodTuple",$.ZodRecord="ZodRecord",$.ZodMap="ZodMap",$.ZodSet="ZodSet",$.ZodFunction="ZodFunction",$.ZodLazy="ZodLazy",$.ZodLiteral="ZodLiteral",$.ZodEnum="ZodEnum",$.ZodEffects="ZodEffects",$.ZodNativeEnum="ZodNativeEnum",$.ZodOptional="ZodOptional",$.ZodNullable="ZodNullable",$.ZodDefault="ZodDefault",$.ZodCatch="ZodCatch",$.ZodPromise="ZodPromise",$.ZodBranded="ZodBranded",$.ZodPipeline="ZodPipeline",$.ZodReadonly="ZodReadonly"})(w||(w={}));var aJ=($,q={message:`Input not instance of ${$.name}`})=>Uq((J)=>J instanceof $,q),Vq=f.create,Sq=d.create,sJ=F$.create,tJ=p.create,wq=Q$.create,eJ=a.create,$X=N$.create,qX=_$.create,JX=Y$.create,XX=s.create,QX=c.create,_X=x.create,YX=M$.create,GX=k.create,HX=F.create,WX=F.strictCreate,zX=G$.create,BX=k$.create,jX=H$.create,RX=Z.create,UX=K$.create,VX=D$.create,SX=t.create,wX=X$.create,NX=W$.create,MX=z$.create,KX=i.create,DX=B$.create,FX=e.create,EX=P.create,AX=I.create,OX=m.create,LX=P.createWithPreprocess,bX=E$.create,fX=()=>Vq().optional(),kX=()=>Sq().optional(),IX=()=>wq().optional(),vX={string:($)=>f.create({...$,coerce:!0}),number:($)=>d.create({...$,coerce:!0}),boolean:($)=>Q$.create({...$,coerce:!0}),bigint:($)=>p.create({...$,coerce:!0}),date:($)=>a.create({...$,coerce:!0})};var PX=S;import{randomUUID as CX}from"crypto";var TX=Object.defineProperty,A$=($,q)=>TX($,"name",{value:q,configurable:!0}),L;(function($){$.GPT35TURBO="GPT35TURBO",$.GPT4TURBO="GPT4TURBO",$.GPT4O="GPT4O",$.GPT41="GPT41",$.GPT41MINI="GPT41MINI",$.GPT41NANO="GPT41NANO",$.LLAMA3="LLAMA3",$.CLAUDEOPUS="CLAUDEOPUS",$.CLAUDESONNET="CLAUDESONNET",$.CLAUDEHAIKU="CLAUDEHAIKU",$.GEMINI25FLASH="GEMINI25FLASH",$.GEMINI25PRO="GEMINI25PRO",$.GEMINI20FLASH="GEMINI20FLASH",$.GEMINI20FLASHLITE="GEMINI20FLASHLITE"})(L||(L={}));var Nq;(function($){$.GPT35TURBO="gpt-3.5-turbo",$.GPT4TURBO="gpt-4-turbo",$.GPT4O="gpt-4o",$.GPT41="gpt-4.1-2025-04-14",$.GPT41MINI="gpt-4.1-mini-2025-04-14",$.GPT41NANO="gpt-4.1-nano-2025-04-14",$.LLAMA3="llama3",$.CLAUDEOPUS="claude-3-opus-20240229",$.CLAUDESONNET="claude-3-7-sonnet-20250219",$.CLAUDEHAIKU="claude-3-5-haiku-20241022",$.GEMINI25FLASH="gemini-2.5-flash-preview-04-17",$.GEMINI25PRO="gemini-2.5-pro-preview-03-25",$.GEMINI20FLASH="gemini-2.0-flash",$.GEMINI20FLASHLITE="gemini-2.0-flash-lite"})(Nq||(Nq={}));var h1=[L.GPT35TURBO,L.GPT4TURBO,L.GPT4O,L.GPT41,L.GPT41MINI,L.GPT41NANO],y1=[L.CLAUDEOPUS,L.CLAUDESONNET,L.CLAUDEHAIKU],g1=[L.GEMINI25FLASH,L.GEMINI25PRO,L.GEMINI20FLASH,L.GEMINI20FLASHLITE];var Mq;(function($){$.CONVERSATION="CONVERSATION",$.DOCUMENT="DOCUMENT"})(Mq||(Mq={}));var Kq;(function($){$.ACCEPT="ACCEPT",$.DECLINE="DECLINE",$.QUESTION="QUESTION",$.TOOL_REQUEST="TOOL_REQUEST",$.SUCCESS="SUCCESS",$.FAILED="FAILED"})(Kq||(Kq={}));var l1=class{static{A$(this,"OAuth2Params")}},h;(function($){$.SETUP="setup",$.PROCESS="process",$.IDENTIFY="identify",$.SYNC="sync",$.SPEC="spec",$.GET_TOOLS="get-tools",$.CALL_TOOL="call-tool"})(h||(h={}));var m1=class{static{A$(this,"Spec")}},Dq;(function($){$.Agent="Agent",$.User="User",$.System="System"})(Dq||(Dq={}));var xX={THEME:"theme",TOPIC:"topic",DOMAIN:"domain",INTEREST_AREA:"interest_area"},ZX={PREFERENCE:"preference",HABIT:"habit",WORKFLOW:"workflow",COMMUNICATION_STYLE:"communication_style",DECISION_PATTERN:"decision_pattern",TEMPORAL_PATTERN:"temporal_pattern",BEHAVIORAL_PATTERN:"behavioral_pattern",LEARNING_STYLE:"learning_style",COLLABORATION_STYLE:"collaboration_style"},u1=Object.assign(Object.assign({},xX),ZX);var Eq=class{static{A$(this,"IntegrationCLI")}program;integrationName;version;constructor($,q="1.0.0"){this.integrationName=$,this.version=q,this.program=new Yq,this.setupProgram()}setupProgram(){this.program.name(`${this.integrationName}-integration`).description(`${this.integrationName} integration CLI`).version(this.version),this.setupSpecCommand(),this.setupAccountCommands(),this.setupDataCommands(),this.setupSyncCommand(),this.setupGetToolsCommand(),this.setupCallToolCommand()}setupAccountCommands(){this.program.command("setup").description(`Set up a new ${this.integrationName} integration account`).requiredOption("--event-body <body>","Event body JSON (e.g. OAuth response or setup data)").requiredOption("--integration-definition <definition>","Integration definition JSON").action(async($)=>{try{let q=JSON.parse($.eventBody),J=JSON.parse($.integrationDefinition),X=await this.handleEvent({event:h.SETUP,eventBody:q,integrationDefinition:J});for(let Q of X)console.log(JSON.stringify(Q))}catch(q){console.error("Error during setup:",q),process.exit(1)}})}setupDataCommands(){this.program.command("process").description(`Process ${this.integrationName} integration data`).requiredOption("--event-data <data>","Event data JSON").requiredOption("--config <config>","Integration configuration JSON").action(async($)=>{try{let q=JSON.parse($.eventData),J=JSON.parse($.config),X=await this.handleEvent({event:h.PROCESS,eventBody:q,config:J});for(let Q of X)console.log(JSON.stringify(Q))}catch(q){console.error("Error processing data:",q),process.exit(1)}}),this.program.command("identify").description("Identify webhook account").requiredOption("--webhook-data <data>","Webhook data JSON").requiredOption("--integration-definition <definition>","Integration definition JSON").action(async($)=>{try{let q=JSON.parse($.webhookData),J=JSON.parse($.integrationDefinition),X=await this.handleEvent({event:h.IDENTIFY,eventBody:q,integrationDefinition:J});for(let Q of X)console.log(JSON.stringify(Q))}catch(q){console.error("Error identifying account:",q),process.exit(1)}})}setupSpecCommand(){this.program.command("spec").description("Get integration specification").action(async()=>{try{let q={type:"spec",data:await this.getSpec()};console.log(JSON.stringify(q))}catch($){console.error("Error getting spec:",$),process.exit(1)}})}setupSyncCommand(){this.program.command("sync").description("Perform scheduled sync").requiredOption("--config <config>","Integration configuration JSON").requiredOption("--integration-definition <definition>","Integration definition JSON").option("--state <state>","Integration state JSON","{}").action(async($)=>{try{let q=JSON.parse($.config),J=JSON.parse($.integrationDefinition),X=$.state?JSON.parse($.state):{},Q=await this.handleEvent({event:h.SYNC,eventBody:{},config:q,state:X,integrationDefinition:J});for(let _ of Q)console.log(JSON.stringify(_))}catch(q){console.error("Error during sync:",q),process.exit(1)}})}setupGetToolsCommand(){this.program.command("get-tools").description("Get available MCP tools for this integration").requiredOption("--config <config>","Integration configuration JSON").requiredOption("--integration-definition <definition>","Integration definition JSON").action(async($)=>{try{let q=JSON.parse($.config),J=JSON.parse($.integrationDefinition),X=await this.handleEvent({event:h.GET_TOOLS,eventBody:{},config:q,integrationDefinition:J});console.log(JSON.stringify(X))}catch(q){console.error("Error getting tools:",q),process.exit(1)}})}setupCallToolCommand(){this.program.command("call-tool").description("Call a specific MCP tool").requiredOption("--config <config>","Integration configuration JSON").requiredOption("--integration-definition <definition>","Integration definition JSON").requiredOption("--tool-name <name>","Name of the tool to call").requiredOption("--tool-arguments <arguments>","Tool arguments as JSON").action(async($)=>{try{let q=JSON.parse($.config),J=JSON.parse($.integrationDefinition),X=JSON.parse($.toolArguments),Q=await this.handleEvent({event:h.CALL_TOOL,eventBody:{name:$.toolName,arguments:X},config:q,integrationDefinition:J});console.log(JSON.stringify(Q))}catch(q){console.error("Error calling tool:",q),process.exit(1)}})}parse(){this.program.parse()}getProgram(){return this.program}},c1=W.object({episodeBody:W.string(),referenceTime:W.string(),metadata:W.record(W.union([W.string(),W.number(),W.boolean()])).optional(),source:W.string(),labelIds:W.array(W.string()).optional(),sessionId:W.string().optional(),type:W.enum(["CONVERSATION","DOCUMENT"]).default("CONVERSATION"),title:W.string().optional()}),d1=W.object({success:W.boolean(),id:W.string()}),p1=W.object({query:W.string(),startTime:W.string().optional(),endTime:W.string().optional(),labelIds:W.array(W.string()).optional(),limit:W.number().optional(),structured:W.boolean().optional(),sortBy:W.enum(["relevance","recency"]).optional()}),i1=W.record(W.unknown()),n1=W.object({id:W.string(),name:W.string().nullable().optional(),persona:W.string().nullable().optional(),workspaceId:W.string().nullable().optional(),phoneNumber:W.string().nullable().optional(),email:W.string().nullable().optional(),timezone:W.string().nullable().optional(),metadata:W.record(W.unknown()).nullable().optional()}),hX=W.object({id:W.string(),name:W.string().optional(),slug:W.string().optional()}).passthrough(),r1=W.object({accounts:W.array(hX)}),o1=W.object({accountId:W.string(),query:W.string().optional()}),a1=W.object({actions:W.array(W.unknown())}),s1=W.object({accountId:W.string(),action:W.string(),parameters:W.record(W.unknown()).optional()}),t1=W.object({result:W.unknown()}),e1=W.object({page:W.number().optional(),limit:W.number().optional(),source:W.string().optional(),status:W.string().optional(),type:W.string().optional(),sessionId:W.string().optional(),label:W.string().optional(),cursor:W.string().optional()}),Aq=W.object({id:W.string(),title:W.string().nullable().optional(),createdAt:W.string().optional(),sessionId:W.string().nullable().optional(),source:W.string().nullable().optional()}).passthrough(),$6=W.object({documents:W.array(Aq),page:W.number(),limit:W.number(),hasMore:W.boolean(),nextCursor:W.string().nullable(),availableSources:W.array(W.object({name:W.string(),slug:W.string()})),totalCount:W.number()}),q6=W.object({documentId:W.string()}),J6=W.object({document:Aq.nullable()}),yX=W.object({id:W.string(),name:W.string(),description:W.string(),tools:W.array(W.string()),platform:W.string().nullable(),hostname:W.string().nullable(),status:W.enum(["CONNECTED","DISCONNECTED"])}),X6=W.object({gateways:W.array(yX)}),Q6=W.object({gatewayId:W.string(),intent:W.string()}),_6=W.object({gatewayId:W.string(),toolName:W.string(),params:W.record(W.unknown())}),Y6=W.object({result:W.unknown()}),G6=W.object({authorizationCode:W.string(),url:W.string()}),H6=W.object({authorizationCode:W.string()}),W6=W.object({token:W.object({token:W.string(),obfuscatedToken:W.string()}).nullable()}),Fq=class extends Error{static{A$(this,"CoreClientError")}statusCode;constructor($,q){super($);this.name="CoreClientError",this.statusCode=q}},z6=class{static{A$(this,"CoreClient")}baseUrl;token;constructor($){this.baseUrl=$.baseUrl.replace(/\/+$/,""),this.token=$.token}async request($,q,J){let X=`${this.baseUrl}${q}`;if(J?.searchParams){let Y=new URLSearchParams(J.searchParams).toString();if(Y)X+=`?${Y}`}let Q=await fetch(X,{method:$,headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.token}`},...J?.body?{body:JSON.stringify(J.body)}:{}});if(!Q.ok){let _;try{let Y=await Q.json();_=Y.error||JSON.stringify(Y)}catch{_=await Q.text()}throw new Fq(_,Q.status)}return Q.json()}async requestPublic($,q,J){let X=`${this.baseUrl}${q}`,Q=await fetch(X,{method:$,headers:{"Content-Type":"application/json"},...J?.body?{body:JSON.stringify(J.body)}:{}});if(!Q.ok){let _;try{let Y=await Q.json();_=Y.error||JSON.stringify(Y)}catch{_=await Q.text()}throw new Fq(_,Q.status)}return Q.json()}async me(){return this.request("GET","/api/v1/me")}async ingest($){return this.request("POST","/api/v1/add",{body:$})}async search($){return this.request("POST","/api/v1/search",{body:$})}async getIntegrationsConnected(){return this.request("GET","/api/v1/integration_account")}async getIntegrationActions($){let q={};if($.query)q.query=$.query;return this.request("GET",`/api/v1/integration_account/${$.accountId}/action`,{searchParams:Object.keys(q).length>0?q:void 0})}async executeIntegrationAction($){let{accountId:q,...J}=$;return this.request("POST",`/api/v1/integration_account/${q}/action`,{body:J})}async getSessionId(){return CX()}async getDocuments($){let q={};if($){if($.page!=null)q.page=String($.page);if($.limit!=null)q.limit=String($.limit);if($.source)q.source=$.source;if($.status)q.status=$.status;if($.type)q.type=$.type;if($.sessionId)q.sessionId=$.sessionId;if($.label)q.label=$.label;if($.cursor)q.cursor=$.cursor}return this.request("GET","/api/v1/documents",{searchParams:Object.keys(q).length>0?q:void 0})}async getDocument($){return this.request("GET",`/api/v1/documents/${$.documentId}`)}async getGateways(){return this.request("GET","/api/v1/gateways")}async executeGateway($){return this.request("POST",`/api/v1/gateways/${$.gatewayId}/execute`,{body:{intent:$.intent}})}async executeGatewayTool($){return this.request("POST",`/api/v1/gateways/${$.gatewayId}/execute`,{body:{mode:"tool",toolName:$.toolName,params:$.params}})}async getAuthorizationCode(){return this.requestPublic("POST","/api/v1/authorization-code")}async exchangeToken($){return this.requestPublic("POST","/api/v1/token",{body:$})}async checkAuth(){return this.me()}};import{fileURLToPath as gX}from"url";async function lX($){switch($.event){case h.GET_TOOLS:return[];default:return{message:`The event payload type is ${$.event}`}}}class Oq extends Eq{constructor(){super("swiggy-orders","1.0.0")}async handleEvent($){return await lX($)}async getSpec(){return{name:"Swiggy Live Orders",key:"swiggy-orders",description:"Live orders widget that aggregates active food, grocery and dineout orders from your connected Swiggy accounts.",icon:"swiggy-orders",widgets:[{name:"Live Orders",slug:"live-orders",description:"Shows current Swiggy Food, Instamart and Dineout orders in one place.",support:["webapp"],configSchema:[]}]}}}function mX(){new Oq().parse()}if(process.argv[1]===gX(import.meta.url))mX();export{lX as run};

Callers 15

payment-failed.tsxFile · 0.80
invite.tsxFile · 0.80
open.tsxFile · 0.80
read.tsxFile · 0.80
config.tsxFile · 0.80
list.tsxFile · 0.80
config.tsxFile · 0.80
remove.tsxFile · 0.80
add.tsxFile · 0.80
scope.tsxFile · 0.80
register.tsxFile · 0.80
setup.tsxFile · 0.80

Calls 1

createMethod · 0.45

Tested by

no test coverage detected