PageSourceSearch

https://charma.io/_next/static/chunks/03r4l92bwqa9k.js

js charma.io collected 2026-10-01 23:46:57 UTC 130,957 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,351098,35124,e=>{"use strict";let t;var r,i,a,n,s,o,l,d=e.i(211201),u=e.i(537878),c=e.i(386382),p=e.i(773006);async function h(e){try{let t=await fetch(e.src);if(423===t.status)return await new Promise(e=>setTimeout(e,500)),await h(e);if(!t.ok)return{success:!1,status:t.status,error:t.headers.get("x-cld-error")||"Unknown error"};return{success:!0,status:t.status}}catch(e){return{success:!1,status:500,error:e.message||"Network error"}}}var f=/\/v\d+\//,m=/\.(ai|avif|gif|png|webp|bmp|bw|djvu|dng|ps|ept|eps|eps3|fbx|flif|gif|glb|gltf|heif|heic|ico|indd|jpg|jpe|jpeg|jp2|wdp|jxr|hdp|obj|pdf|ply|png|psd|arw|cr2|svg|tga|tif|tiff|u3ma|usdz|webp|3g2|3gp|avi|flv|m3u8|ts|m2ts|mts|mov|mkv|mp4|mpeg|mpd|mxf|ogv|webm|wmv)$/i,g=/https?:\/\/(?<host>[^/]+)\/(?<cloudName>[^/]+)?\/?(?<assetType>image|images|video|videos|raw|files)\/(?<deliveryType>upload|fetch|private|authenticated|sprite|facebook|twitter|youtube|vimeo)?\/?(?<signature>s--([a-zA-Z0-9_-]{8}|[a-zA-Z0-9_-]{32})--)?\/?(?<transformations>(?:[^_/]+_[^,/]+,?\/?)*\/)*(?<version>v\d+|\w{1,2})\/(?<publicId>[^\s]+)$/,y=["images","videos","files"];function _(e){if("string"!=typeof e)throw Error("Failed to parse URL - Invalid src: Is not a string");if(!f.test(e))throw Error("Failed to parse URL - Invalid src: Does not include version (Ex: /v1234/)");let[t,r]=e.split("?"),i=v(t),a=t;i&&(a=t.replace(RegExp(`${i}$`),""));let n=a.match(g),s=n?.groups?.transformations?.split("/").filter(e=>!!e),o={...n?.groups,format:i,seoSuffix:void 0,transformations:s||[],queryParams:{},version:n?.groups?.version?parseInt(n.groups.version.replace("v","")):void 0};if("res.cloudinary.com"===o.host&&!o.cloudName)throw Error("Failed to parse URL - Invalid src: Cloudinary URL delivered from res.cloudinary.com must include Cloud Name (ex: res.cloudinary.com/<Cloud Name>/image/...)");if(r&&(o.queryParams=r.split("&").reduce((e,t)=>{let[r,i]=t.split("=");return e[r]=i,e},{})),o.assetType&&y.includes(o.assetType)){let e=o.publicId?.split("/")||[];o.seoSuffix=e.pop(),o.publicId=e.join("/")}return o.publicId&&(o.publicId=decodeURIComponent(o.publicId)),o}function v(e){let t=e.match(m);if(null!==t)return t[0]}function b(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.s([],180703),e.i(180703),(r=n||(n={})).assertEqual=e=>{},r.assertIs=function(e){},r.assertNever=function(e){throw Error()},r.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},r.getValidEnumValues=e=>{let t=r.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),i={};for(let r of t)i[r]=e[r];return r.objectValues(i)},r.objectValues=e=>r.objectKeys(e).map(function(t){return e[t]}),r.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},r.find=(e,t)=>{for(let r of e)if(t(r))return r},r.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,r.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},r.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(s||(s={})).mergeShapes=(e,t)=>({...e,...t});let x=n.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),w=e=>{switch(typeof e){case"undefined":return x.undefined;case"string":return x.string;case"number":return Number.isNaN(e)?x.nan:x.number;case"boolean":return x.boolean;case"function":return x.function;case"bigint":return x.bigint;case"symbol":return x.symbol;case"object":if(Array.isArray(e))return x.array;if(null===e)return x.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return x.promise;if("u">typeof Map&&e instanceof Map)return x.map;if("u">typeof Set&&e instanceof Set)return x.set;if("u">typeof Date&&e instanceof Date)return x.date;return x.object;default:return x.unknown}};e.s(["ZodParsedType",0,x,"getParsedType",0,w,"objectUtil",0,s,"util",0,n],458728);
1let k=n.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"]),O=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class S extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},i=e=>{for(let a of e.issues)if("invalid_union"===a.code)a.unionErrors.map(i);else if("invalid_return_type"===a.code)i(a.returnTypeError);else if("invalid_arguments"===a.code)i(a.argumentsError);else if(0===a.path.length)r._errors.push(t(a));else{let e=r,i=0;for(;i<a.path.length;){let r=a.path[i];i===a.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(a))):e[r]=e[r]||{_errors:[]},e=e[r],i++}}};return i(this),r}static assert(e){if(!(e instanceof S))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,n.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let i of this.issues)if(i.path.length>0){let r=i.path[0];t[r]=t[r]||[],t[r].push(e(i))}else r.push(e(i));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}S.create=e=>new S(e),e.s(["ZodError",0,S,"ZodIssueCode",0,k,"quotelessJson",0,O],559413);let j=(e,t)=>{let r;switch(e.code){case k.invalid_type:r=e.received===x.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case k.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,n.jsonStringifyReplacer)}`;break;case k.unrecognized_keys:r=`Unrecognized key(s) in object: ${n.joinValues(e.keys,", ")}`;break;case k.invalid_union:r="Invalid input";break;case k.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${n.joinValues(e.options)}`;break;case k.invalid_enum_value:r=`Invalid enum value. Expected ${n.joinValues(e.options)}, received '${e.received}'`;break;case k.invalid_arguments:r="Invalid function arguments";break;case k.invalid_return_type:r="Invalid function return type";break;case k.invalid_date:r="Invalid date";break;case k.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:n.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case k.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case k.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case k.custom:r="Invalid input";break;case k.invalid_intersection_types:r="Intersection results could not be merged";break;case k.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case k.not_finite:r="Number must be finite";break;default:r=t.defaultError,n.assertNever(e)}return{message:r}},T=j;function A(e){T=e}function N(){return T}e.s(["getErrorMap",0,N,"setErrorMap",0,A],725827),e.i(725827),e.s(["defaultErrorMap",0,j,"getErrorMap",0,N,"setErrorMap",0,A],279407),e.i(279407);let C=e=>{let{data:t,path:r,errorMaps:i,issueData:a}=e,n=[...r,...a.path||[]],s={...a,path:n};if(void 0!==a.message)return{...a,path:n,message:a.message};let o="";for(let e of i.filter(e=>!!e).slice().reverse())o=e(s,{data:t,defaultError:o}).message;return{...a,path:n,message:o}},Z=[];function $(e,t){let r=N(),i=C({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===j?void 0:j].filter(e=>!!e)});e.common.issues.push(i)}class E{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let i of t){if("aborted"===i.status)return I;"dirty"===i.status&&e.dirty(),r.push(i.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,i=await e.value;r.push({key:t,value:i})}return E.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let i of t){let{key:t,value:a}=i;if("aborted"===t.status||"aborted"===a.status)return I;"dirty"===t.status&&e.dirty(),"dirty"===a.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==a.value||i.alwaysSet)&&(r[t.value]=a.value)}return{status:e.value,value:r}}}let I=Object.freeze({status:"aborted"}),R=e=>({status:"dirty",value:e}),P=e=>
vendor: 5,812 bytes, line 1
1({status:"valid",value:e}),q=e=>"aborted"===e.status,J=e=>"dirty"===e.status,z=e=>"valid"===e.status,M=e=>"u">typeof Promise&&e instanceof Promise;e.s(["DIRTY",0,R,"EMPTY_PATH",0,Z,"INVALID",0,I,"OK",0,P,"ParseStatus",0,E,"addIssueToContext",0,$,"isAborted",0,q,"isAsync",0,M,"isDirty",0,J,"isValid",0,z,"makeIssue",0,C],696555),e.i(696555),e.s([],924326),e.i(924326),e.i(458728),(i=o||(o={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},i.toString=e=>"string"==typeof e?e:e?.message;class F{constructor(e,t,r,i){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let D=(e,t)=>{if(z(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 S(e.common.issues);return this._error=t,this._error}}};function L(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:i,description:a}=e;if(t&&(r||i))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:a}:{errorMap:(t,a)=>{let{message:n}=e;return"invalid_enum_value"===t.code?{message:n??a.defaultError}:void 0===a.data?{message:n??i??a.defaultError}:"invalid_type"!==t.code?{message:a.defaultError}:{message:n??r??a.defaultError}},description:a}}class U{get description(){return this._def.description}_getType(e){return w(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:w(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new E,ctx:{common:e.parent.common,data:e.data,parsedType:w(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(M(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:w(e)},i=this._parseSync({data:e,path:r.path,parent:r});return D(r,i)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:w(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return z(r)?{value:r.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=>z(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:w(e)},i=this._parse({data:e,path:r.path,parent:r});return D(r,await (M(i)?i:Promise.resolve(i)))}refine(e,t){return this._refinement((r,i)=>{let a=e(r),n=()=>i.addIssue({code:k.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(r):t});return"u">typeof Promise&&a instanceof Promise?a.then(e=>!!e||(n(),!1)):!!a||(n(),!1)})}refinement(e,t){return this._refinement((r,i)=>!!e(r)||(i.addIssue("function"==typeof t?t(r,i):t),!1))}_refinement(e){return new eJ({schema:this,typeName:l.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 ez.create(this,this._def)}nullable(){return eM.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ex.create(this)}promise(){return eq.create(this,this._def)}or(e){return ek.create([this,e],this._def)}and(e){return ej.create(this,e,this._def)}transform(e){return new eJ({...L(this._def),schema:this,typeName:l.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eF({...L(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:l.ZodDefault})}brand(){return new eV({typeName:l.ZodBranded,type:this,...L(this._def)})}catch(e){return new eD({...L(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:l.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eB.create(this,e)}readonly(){return eK.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let V=/^c[^\s-]{8,}
vendor: 26,385 bytes, line 1
1$/i,B=/^[0-9a-z]+$/,K=/^[0-9A-HJKMNP-TV-Z]{26}$/i,W=/^[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,H=/^[a-z0-9_-]{21}$/i,Y=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,G=/^[-+]?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)?)??$/,Q=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,X=/^(?:(?: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])$/,ee=/^(?:(?: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])$/,et=/^(([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]))$/,er=/^(([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])$/,ei=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ea=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,en="((\\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])))",es=RegExp(`^${en}$`);function eo(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function el(e){let t=`${en}T${eo(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}class ed extends U{_parse(e){var r,i,a,s;let o;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==x.string){let t=this._getOrReturnCtx(e);return $(t,{code:k.invalid_type,expected:x.string,received:t.parsedType}),I}let l=new E;for(let d of this._def.checks)if("min"===d.kind)e.data.length<d.value&&($(o=this._getOrReturnCtx(e,o),{code:k.too_small,minimum:d.value,type:"string",inclusive:!0,exact:!1,message:d.message}),l.dirty());else if("max"===d.kind)e.data.length>d.value&&($(o=this._getOrReturnCtx(e,o),{code:k.too_big,maximum:d.value,type:"string",inclusive:!0,exact:!1,message:d.message}),l.dirty());else if("length"===d.kind){let t=e.data.length>d.value,r=e.data.length<d.value;(t||r)&&(o=this._getOrReturnCtx(e,o),t?$(o,{code:k.too_big,maximum:d.value,type:"string",inclusive:!0,exact:!0,message:d.message}):r&&$(o,{code:k.too_small,minimum:d.value,type:"string",inclusive:!0,exact:!0,message:d.message}),l.dirty())}else if("email"===d.kind)Q.test(e.data)||($(o=this._getOrReturnCtx(e,o),{validation:"email",code:k.invalid_string,message:d.message}),l.dirty());else if("emoji"===d.kind)t||(t=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),t.test(e.data)||($(o=this._getOrReturnCtx(e,o),{validation:"emoji",code:k.invalid_string,message:d.message}),l.dirty());else if("uuid"===d.kind)W.test(e.data)||($(o=this._getOrReturnCtx(e,o),{validation:"uuid",code:k.invalid_string,message:d.message}),l.dirty());else if("nanoid"===d.kind)H.test(e.data)||($(o=this._getOrReturnCtx(e,o),{validation:"nanoid",code:k.invalid_string,message:d.message}),l.dirty());else if("cuid"===d.kind)V.test(e.data)||($(o=this._getOrReturnCtx(e,o),{validation:"cuid",code:k.invalid_string,message:d.message}),l.dirty());else if("cuid2"===d.kind)B.test(e.data)||($(o=this._getOrReturnCtx(e,o),{validation:"cuid2",code:k.invalid_string,message:d.message}),l.dirty());else if("ulid"===d.kind)K.test(e.data)||($(o=this._getOrReturnCtx(e,o),{validation:"ulid",code:k.invalid_string,message:d.message}),l.dirty());else if("url"===d.kind)try{new URL(e.data)}catch{$(o=this._getOrReturnCtx(e,o),{validation:"url",code:k.invalid_string,message:d.message}),l.dirty()}else"regex"===d.kind?(d.regex.lastIndex=0,d.regex.test(e.data)||($(o=this._getOrReturnCtx(e,o),{validation:"regex",code:k.invalid_string,message:d.message}),l.dirty())):"trim"===d.kind?e.data=e.data.trim():"includes"===d.kind?e.data.includes(d.value,d.position)||($(o=this._getOrReturnCtx(e,o),{code:k.invalid_string,validation:{includes:d.value,position:d.position},message:d.message}),l.dirty()):"toLowerCase"===d.kind?e.data=e.data.toLowerCase():"toUpperCase"===d.kind?e.data=e.data.toUpperCase():"startsWith"===d.kind?e.data.startsWith(d.value)||($(o=this._getOrReturnCtx(e,o),{code:k.invalid_string,validation:{startsWith:d.value},message:d.message}),l.dirty()):"endsWith"===d.kind?e.data.endsWith(d.value)||($(o=this._getOrReturnCtx(e,o),{code:k.invalid_string,validation:{endsWith:d.value},message:d.message}),l.dirty()):"datetime"===d.kind?el(d).test(e.data)||($(o=this._getOrReturnCtx(e,o),{code:k.invalid_string,validation:"datetime",message:d.message}),l.dirty()):"date"===d.kind?es.test(e.data)||($(o=this._getOrReturnCtx(e,o),{code:k.invalid_string,validation:"date",message:d.message}),l.dirty()):"time"===d.kind?RegExp(`^${eo(d)}$`).test(e.data)||($(o=this._getOrReturnCtx(e,o),{code:k.invalid_string,validation:"time",message:d.message}),l.dirty()):"duration"===d.kind?G.test(e.data)||($(o=this._getOrReturnCtx(e,o),{validation:"duration",code:k.invalid_string,message:d.message}),l.dirty()):"ip"===d.kind?(r=e.data,!(("v4"===(i=d.version)||!i)&&X.test(r)||("v6"===i||!i)&&et.test(r))&&1&&($(o=this._getOrReturnCtx(e,o),{validation:"ip",code:k.invalid_string,message:d.message}),l.dirty())):"jwt"===d.kind?!function(e,t){if(!Y.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let i=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),a=JSON.parse(atob(i));if("object"!=typeof a||null===a||"typ"in a&&a?.typ!=="JWT"||!a.alg||t&&a.alg!==t)return!1;return!0}catch{return!1}}(e.data,d.alg)&&($(o=this._getOrReturnCtx(e,o),{validation:"jwt",code:k.invalid_string,message:d.message}),l.dirty()):"cidr"===d.kind?(a=e.data,!(("v4"===(s=d.version)||!s)&&ee.test(a)||("v6"===s||!s)&&er.test(a))&&1&&($(o=this._getOrReturnCtx(e,o),{validation:"cidr",code:k.invalid_string,message:d.message}),l.dirty())):"base64"===d.kind?ei.test(e.data)||($(o=this._getOrReturnCtx(e,o),{validation:"base64",code:k.invalid_string,message:d.message}),l.dirty()):"base64url"===d.kind?ea.test(e.data)||($(o=this._getOrReturnCtx(e,o),{validation:"base64url",code:k.invalid_string,message:d.message}),l.dirty()):n.assertNever(d);return{status:l.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:k.invalid_string,...o.errToObj(r)})}_addCheck(e){return new ed({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...o.errToObj(e)})}url(e){return this._addCheck({kind:"url",...o.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...o.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...o.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...o.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...o.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...o.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...o.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...o.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...o.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...o.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...o.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...o.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...o.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...o.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...o.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...o.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...o.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...o.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...o.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...o.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...o.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...o.errToObj(t)})}nonempty(e){return this.min(1,o.errToObj(e))}trim(){return new ed({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ed({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ed({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}ed.create=e=>new ed({checks:[],typeName:l.ZodString,coerce:e?.coerce??!1,...L(e)});class eu extends U{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==x.number){let t=this._getOrReturnCtx(e);return $(t,{code:k.invalid_type,expected:x.number,received:t.parsedType}),I}let r=new E;for(let i of this._def.checks)"int"===i.kind?n.isInteger(e.data)||($(t=this._getOrReturnCtx(e,t),{code:k.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&($(t=this._getOrReturnCtx(e,t),{code:k.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&($(t=this._getOrReturnCtx(e,t),{code:k.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):"multipleOf"===i.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,a=r>i?r:i;return Number.parseInt(e.toFixed(a).replace(".",""))%Number.parseInt(t.toFixed(a).replace(".",""))/10**a}(e.data,i.value)&&($(t=this._getOrReturnCtx(e,t),{code:k.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):"finite"===i.kind?Number.isFinite(e.data)||($(t=this._getOrReturnCtx(e,t),{code:k.not_finite,message:i.message}),r.dirty()):n.assertNever(i);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,o.toString(t))}gt(e,t){return this.setLimit("min",e,!1,o.toString(t))}lte(e,t){return this.setLimit("max",e,!0,o.toString(t))}lt(e,t){return this.setLimit("max",e,!1,o.toString(t))}setLimit(e,t,r,i){return new eu({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:o.toString(i)}]})}_addCheck(e){return new eu({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:o.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:o.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:o.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:o.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:o.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:o.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:o.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:o.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:o.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&n.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value);return Number.isFinite(t)&&Number.isFinite(e)}}eu.create=e=>new eu({checks:[],typeName:l.ZodNumber,coerce:e?.coerce||!1,...L(e)});class ec extends U{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==x.bigint)return this._getInvalidInput(e);let r=new E;for(let i of this._def.checks)"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&($(t=this._getOrReturnCtx(e,t),{code:k.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&($(t=this._getOrReturnCtx(e,t),{code:k.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):"multipleOf"===i.kind?e.data%i.value!==BigInt(0)&&($(t=this._getOrReturnCtx(e,t),{code:k.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):n.assertNever(i);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return $(t,{code:k.invalid_type,expected:x.bigint,received:t.parsedType}),I}gte(e,t){return this.setLimit("min",e,!0,o.toString(t))}gt(e,t){return this.setLimit("min",e,!1,o.toString(t))}lte(e,t){return this.setLimit("max",e,!0,o.toString(t))}lt(e,t){return this.setLimit("max",e,!1,o.toString(t))}setLimit(e,t,r,i){return new ec({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:o.toString(i)}]})}_addCheck(e){return new ec({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:o.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:o.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:o.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:o.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:o.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}ec.create=e=>new ec({checks:[],typeName:l.ZodBigInt,coerce:e?.coerce??!1,...L(e)});class ep extends U{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==x.boolean){let t=this._getOrReturnCtx(e);return $(t,{code:k.invalid_type,expected:x.boolean,received:t.parsedType}),I}return P(e.data)}}ep.create=e=>new ep({typeName:l.ZodBoolean,coerce:e?.coerce||!1,...L(e)});class eh extends U{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==x.date){let t=this._getOrReturnCtx(e);return $(t,{code:k.invalid_type,expected:x.date,received:t.parsedType}),I}if(Number.isNaN(e.data.getTime()))return $(this._getOrReturnCtx(e),{code:k.invalid_date}),I;let r=new E;for(let i of this._def.checks)"min"===i.kind?e.data.getTime()<i.value&&($(t=this._getOrReturnCtx(e,t),{code:k.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):"max"===i.kind?e.data.getTime()>i.value&&($(t=this._getOrReturnCtx(e,t),{code:k.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):n.assertNever(i);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new eh({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:o.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:o.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}eh.create=e=>new eh({checks:[],coerce:e?.coerce||!1,typeName:l.ZodDate,...L(e)});class ef extends U{_parse(e){if(this._getType(e)!==x.symbol){let t=this._getOrReturnCtx(e);return $(t,{code:k.invalid_type,expected:x.symbol,received:t.parsedType}),I}return P(e.data)}}ef.create=e=>new ef({typeName:l.ZodSymbol,...L(e)});class em extends U{_parse(e){if(this._getType(e)!==x.undefined){let t=this._getOrReturnCtx(e);return $(t,{code:k.invalid_type,expected:x.undefined,received:t.parsedType}),I}return P(e.data)}}em.create=e=>new em({typeName:l.ZodUndefined,...L(e)});class eg extends U{_parse(e){if(this._getType(e)!==x.null){let t=this._getOrReturnCtx(e);return $(t,{code:k.invalid_type,expected:x.null,received:t.parsedType}),I}return P(e.data)}}eg.create=e=>new eg({typeName:l.ZodNull,...L(e)});class ey extends U{constructor(){super(...arguments),this._any=!0}_parse(e){return P(e.data)}}ey.create=e=>new ey({typeName:l.ZodAny,...L(e)});class e_ extends U{constructor(){super(...arguments),this._unknown=!0}_parse(e){return P(e.data)}}e_.create=e=>new e_({typeName:l.ZodUnknown,...L(e)});class ev extends U{_parse(e){let t=this._getOrReturnCtx(e);return $(t,{code:k.invalid_type,expected:x.never,received:t.parsedType}),I}}ev.create=e=>new ev({typeName:l.ZodNever,...L(e)});class eb extends U{_parse(e){if(this._getType(e)!==x.undefined){let t=this._getOrReturnCtx(e);return $(t,{code:k.invalid_type,expected:x.void,received:t.parsedType}),I}return P(e.data)}}eb.create=e=>new eb({typeName:l.ZodVoid,...L(e)});class ex extends U{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),i=this._def;if(t.parsedType!==x.array)return $(t,{code:k.invalid_type,expected:x.array,received:t.parsedType}),I;if(null!==i.exactLength){let e=t.data.length>i.exactLength.value,a=t.data.length<i.exactLength.value;(e||a)&&($(t,{code:e?k.too_big:k.too_small,minimum:a?i.exactLength.value:void 0,maximum:e?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(null!==i.minLength&&t.data.length<i.minLength.value&&($(t,{code:k.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),null!==i.maxLength&&t.data.length>i.maxLength.value&&($(t,{code:k.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>i.type._parseAsync(new F(t,e,t.path,r)))).then(e=>E.mergeArray(r,e));let a=[...t.data].map((e,r)=>i.type._parseSync(new F(t,e,t.path,r)));return E.mergeArray(r,a)}get element(){return this._def.type}min(e,t){return new ex({...this._def,minLength:{value:e,message:o.toString(t)}})}max(e,t){return new ex({...this._def,maxLength:{value:e,message:o.toString(t)}})}length(e,t){return new ex({...this._def,exactLength:{value:e,message:o.toString(t)}})}nonempty(e){return this.min(1,e)}}ex.create=(e,t)=>new ex({type:e,minLength:null,maxLength:null,exactLength:null,typeName:l.ZodArray,...L(t)});class ew extends U{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=n.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==x.object){let t=this._getOrReturnCtx(e);return $(t,{code:k.invalid_type,expected:x.object,received:t.parsedType}),I}let{status:t,ctx:r}=this._processInputParams(e),{shape:i,keys:a}=this._getCached(),n=[];if(!(this._def.catchall instanceof ev&&"strip"===this._def.unknownKeys))for(let e in r.data)a.includes(e)||n.push(e);let s=[];for(let e of a){let t=i[e],a=r.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new F(r,a,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof ev){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of n)s.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)n.length>0&&($(r,{code:k.unrecognized_keys,keys:n}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of n){let i=r.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new F(r,i,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of s){let r=await t.key,i=await t.value;e.push({key:r,value:i,alwaysSet:t.alwaysSet})}return e}).then(e=>E.mergeObjectSync(t,e)):E.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return o.errToObj,new ew({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let i=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:o.errToObj(e).message??i}:{message:i}}}:{}})}strip(){return new ew({...this._def,unknownKeys:"strip"})}passthrough(){return new ew({...this._def,unknownKeys:"passthrough"})}extend(e){return new ew({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ew({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:l.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ew({...this._def,catchall:e})}pick(e){let t={};for(let r of n.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new ew({...this._def,shape:()=>t})}omit(e){let t={};for(let r of n.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new ew({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof ew){let r={};for(let i in t.shape){let a=t.shape[i];r[i]=ez.create(e(a))}return new ew({...t._def,shape:()=>r})}if(t instanceof ex)return new ex({...t._def,type:e(t.element)});if(t instanceof ez)return ez.create(e(t.unwrap()));if(t instanceof eM)return eM.create(e(t.unwrap()));if(t instanceof eT)return eT.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let r of n.objectKeys(this.shape)){let i=this.shape[r];e&&!e[r]?t[r]=i:t[r]=i.optional()}return new ew({...this._def,shape:()=>t})}required(e){let t={};for(let r of n.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof ez;)e=e._def.innerType;t[r]=e}return new ew({...this._def,shape:()=>t})}keyof(){return eI(n.objectKeys(this.shape))}}ew.create=(e,t)=>new ew({shape:()=>e,unknownKeys:"strip",catchall:ev.create(),typeName:l.ZodObject,...L(t)}),ew.strictCreate=(e,t)=>new ew({shape:()=>e,unknownKeys:"strict",catchall:ev.create(),typeName:l.ZodObject,...L(t)}),ew.lazycreate=(e,t)=>new ew({shape:e,unknownKeys:"strip",catchall:ev.create(),typeName:l.ZodObject,...L(t)});class ek extends U{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new S(e.ctx.common.issues));return $(t,{code:k.invalid_union,unionErrors:r}),I});{let e,i=[];for(let a of r){let r={...t,common:{...t.common,issues:[]},parent:null},n=a._parseSync({data:t.data,path:t.path,parent:r});if("valid"===n.status)return n;"dirty"!==n.status||e||(e={result:n,ctx:r}),r.common.issues.length&&i.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let a=i.map(e=>new S(e));return $(t,{code:k.invalid_union,unionErrors:a}),I}}get options(){return this._def.options}}ek.create=(e,t)=>
1new ek({options:e,typeName:l.ZodUnion,...L(t)});let eO=e=>{if(e instanceof e$)return eO(e.schema);if(e instanceof eJ)return eO(e.innerType());if(e instanceof eE)return[e.value];if(e instanceof eR)return e.options;if(e instanceof eP)return n.objectValues(e.enum);else if(e instanceof eF)return eO(e._def.innerType);else if(e instanceof em)return[void 0];else if(e instanceof eg)return[null];else if(e instanceof ez)return[void 0,...eO(e.unwrap())];else if(e instanceof eM)return[null,...eO(e.unwrap())];else if(e instanceof eV)return eO(e.unwrap());else if(e instanceof eK)return eO(e.unwrap());else if(e instanceof eD)return eO(e._def.innerType);else return[]};class eS extends U{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==x.object)return $(t,{code:k.invalid_type,expected:x.object,received:t.parsedType}),I;let r=this.discriminator,i=t.data[r],a=this.optionsMap.get(i);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):($(t,{code:k.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),I)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let i=new Map;for(let r of t){let t=eO(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of t){if(i.has(a))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);i.set(a,r)}}return new eS({typeName:l.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:i,...L(r)})}}class ej extends U{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),i=(e,i)=>{if(q(e)||q(i))return I;let a=function e(t,r){let i=w(t),a=w(r);if(t===r)return{valid:!0,data:t};if(i===x.object&&a===x.object){let i=n.objectKeys(r),a=n.objectKeys(t).filter(e=>-1!==i.indexOf(e)),s={...t,...r};for(let i of a){let a=e(t[i],r[i]);if(!a.valid)return{valid:!1};s[i]=a.data}return{valid:!0,data:s}}if(i===x.array&&a===x.array){if(t.length!==r.length)return{valid:!1};let i=[];for(let a=0;a<t.length;a++){let n=e(t[a],r[a]);if(!n.valid)return{valid:!1};i.push(n.data)}return{valid:!0,data:i}}if(i===x.date&&a===x.date&&+t==+r)return{valid:!0,data:t};return{valid:!1}}(e.value,i.value);return a.valid?((J(e)||J(i))&&t.dirty(),{status:t.value,value:a.data}):($(r,{code:k.invalid_intersection_types}),I)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>i(e,t)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ej.create=(e,t,r)=>new ej({left:e,right:t,typeName:l.ZodIntersection,...L(r)});class eT extends U{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==x.array)return $(r,{code:k.invalid_type,expected:x.array,received:r.parsedType}),I;if(r.data.length<this._def.items.length)return $(r,{code:k.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),I;!this._def.rest&&r.data.length>this._def.items.length&&($(r,{code:k.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let i=[...r.data].map((e,t)=>{let i=this._def.items[t]||this._def.rest;return i?i._parse(new F(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(i).then(e=>E.mergeArray(t,e)):E.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new eT({...this._def,rest:e})}}eT.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new eT({items:e,typeName:l.ZodTuple,rest:null,...L(t)})};class eA extends U{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==x.object)return $(r,{code:k.invalid_type,expected:x.object,received:r.parsedType}),I;let i=[],a=this._def.keyType,n=this._def.valueType;for(let e in r.data)i.push({key:a._parse(new F(r,e,r.path,e)),value:n._parse(new F(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?E.mergeObjectAsync(t,i):E.mergeObjectSync(t,i)}
vendor: 4,160 bytes, line 1
1get element(){return this._def.valueType}static create(e,t,r){return new eA(t instanceof U?{keyType:e,valueType:t,typeName:l.ZodRecord,...L(r)}:{keyType:ed.create(),valueType:e,typeName:l.ZodRecord,...L(t)})}}class eN extends U{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==x.map)return $(r,{code:k.invalid_type,expected:x.map,received:r.parsedType}),I;let i=this._def.keyType,a=this._def.valueType,n=[...r.data.entries()].map(([e,t],n)=>({key:i._parse(new F(r,e,r.path,[n,"key"])),value:a._parse(new F(r,t,r.path,[n,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of n){let i=await r.key,a=await r.value;if("aborted"===i.status||"aborted"===a.status)return I;("dirty"===i.status||"dirty"===a.status)&&t.dirty(),e.set(i.value,a.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of n){let i=r.key,a=r.value;if("aborted"===i.status||"aborted"===a.status)return I;("dirty"===i.status||"dirty"===a.status)&&t.dirty(),e.set(i.value,a.value)}return{status:t.value,value:e}}}}eN.create=(e,t,r)=>new eN({valueType:t,keyType:e,typeName:l.ZodMap,...L(r)});class eC extends U{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==x.set)return $(r,{code:k.invalid_type,expected:x.set,received:r.parsedType}),I;let i=this._def;null!==i.minSize&&r.data.size<i.minSize.value&&($(r,{code:k.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),t.dirty()),null!==i.maxSize&&r.data.size>i.maxSize.value&&($(r,{code:k.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());let a=this._def.valueType;function n(e){let r=new Set;for(let i of e){if("aborted"===i.status)return I;"dirty"===i.status&&t.dirty(),r.add(i.value)}return{status:t.value,value:r}}let s=[...r.data.values()].map((e,t)=>a._parse(new F(r,e,r.path,t)));return r.common.async?Promise.all(s).then(e=>n(e)):n(s)}min(e,t){return new eC({...this._def,minSize:{value:e,message:o.toString(t)}})}max(e,t){return new eC({...this._def,maxSize:{value:e,message:o.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}eC.create=(e,t)=>new eC({valueType:e,minSize:null,maxSize:null,typeName:l.ZodSet,...L(t)});class eZ extends U{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==x.function)return $(t,{code:k.invalid_type,expected:x.function,received:t.parsedType}),I;function r(e,r){return C({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,N(),j].filter(e=>!!e),issueData:{code:k.invalid_arguments,argumentsError:r}})}function i(e,r){return C({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,N(),j].filter(e=>!!e),issueData:{code:k.invalid_return_type,returnTypeError:r}})}let a={errorMap:t.common.contextualErrorMap},n=t.data;if(this._def.returns instanceof eq){let e=this;return P(async function(...t){let s=new S([]),o=await e._def.args.parseAsync(t,a).catch(e=>{throw s.addIssue(r(t,e)),s}),l=await Reflect.apply(n,this,o);return await e._def.returns._def.type.parseAsync(l,a).catch(e=>{throw s.addIssue(i(l,e)),s})})}{let e=this;return P(function(...t){let s=e._def.args.safeParse(t,a);if(!s.success)throw new S([r(t,s.error)]);let o=Reflect.apply(n,this,s.data),l=e._def.returns.safeParse(o,a);if(!l.success)throw new S([i(o,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eZ({...this._def,args:eT.create(e).rest(e_.create())})}returns(e){return new eZ({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new eZ({args:e||eT.create([]).rest(e_.create()),returns:t||e_.create(),typeName:l.ZodFunction,...L(r)})}}class e$ extends U{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})}}e$.create=(e,t)=>
vendor: 4,603 bytes, line 1
1new e$({getter:e,typeName:l.ZodLazy,...L(t)});class eE extends U{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return $(t,{received:t.data,code:k.invalid_literal,expected:this._def.value}),I}return{status:"valid",value:e.data}}get value(){return this._def.value}}function eI(e,t){return new eR({values:e,typeName:l.ZodEnum,...L(t)})}eE.create=(e,t)=>new eE({value:e,typeName:l.ZodLiteral,...L(t)});class eR extends U{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return $(t,{expected:n.joinValues(r),received:t.parsedType,code:k.invalid_type}),I}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return $(t,{received:t.data,code:k.invalid_enum_value,options:r}),I}return P(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return eR.create(e,{...this._def,...t})}exclude(e,t=this._def){return eR.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}eR.create=eI;class eP extends U{_parse(e){let t=n.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==x.string&&r.parsedType!==x.number){let e=n.objectValues(t);return $(r,{expected:n.joinValues(e),received:r.parsedType,code:k.invalid_type}),I}if(this._cache||(this._cache=new Set(n.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=n.objectValues(t);return $(r,{received:r.data,code:k.invalid_enum_value,options:e}),I}return P(e.data)}get enum(){return this._def.values}}eP.create=(e,t)=>new eP({values:e,typeName:l.ZodNativeEnum,...L(t)});class eq extends U{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==x.promise&&!1===t.common.async?($(t,{code:k.invalid_type,expected:x.promise,received:t.parsedType}),I):P((t.parsedType===x.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eq.create=(e,t)=>new eq({type:e,typeName:l.ZodPromise,...L(t)});class eJ extends U{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===l.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),i=this._def.effect||null,a={addIssue:e=>{$(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),"preprocess"===i.type){let e=i.transform(r.data,a);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return I;let i=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===i.status?I:"dirty"===i.status||"dirty"===t.value?R(i.value):i});{if("aborted"===t.value)return I;let i=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===i.status?I:"dirty"===i.status||"dirty"===t.value?R(i.value):i}}if("refinement"===i.type){let e=e=>{let t=i.refinement(e,a);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?I:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===i.status?I:("dirty"===i.status&&t.dirty(),e(i.value),{status:t.value,value:i.value})}}if("transform"===i.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>z(e)?Promise.resolve(i.transform(e.value,a)).then(e=>({status:t.value,value:e})):I);else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!z(e))return I;let n=i.transform(e.value,a);if(n instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:n}}n.assertNever(i)}}eJ.create=(e,t,r)=>new eJ({schema:e,typeName:l.ZodEffects,effect:t,...L(r)}),eJ.createWithPreprocess=(e,t,r)=>new eJ({schema:t,effect:{type:"preprocess",transform:e},typeName:l.ZodEffects,...L(r)});class ez extends U{_parse(e){return this._getType(e)===x.undefined?P(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ez.create=(e,t)=>
1new ez({innerType:e,typeName:l.ZodOptional,...L(t)});class eM extends U{_parse(e){return this._getType(e)===x.null?P(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eM.create=(e,t)=>new eM({innerType:e,typeName:l.ZodNullable,...L(t)});class eF extends U{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===x.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eF.create=(e,t)=>new eF({innerType:e,typeName:l.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...L(t)});class eD extends U{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return M(i)?i.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new S(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===i.status?i.value:this._def.catchValue({get error(){return new S(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}eD.create=(e,t)=>new eD({innerType:e,typeName:l.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...L(t)});class eL extends U{_parse(e){if(this._getType(e)!==x.nan){let t=this._getOrReturnCtx(e);return $(t,{code:k.invalid_type,expected:x.nan,received:t.parsedType}),I}return{status:"valid",value:e.data}}}eL.create=e=>new eL({typeName:l.ZodNaN,...L(e)});let eU=Symbol("zod_brand");class eV extends U{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class eB extends U{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?I:"dirty"===e.status?(t.dirty(),R(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?I:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eB({in:e,out:t,typeName:l.ZodPipeline})}}class eK extends U{_parse(e){let t=this._def.innerType._parse(e),r=e=>(z(e)&&(e.value=Object.freeze(e.value)),e);return M(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}function eW(e,t){let r="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof r?{message:r}:r}function eH(e,t={},r){return e?ey.create().superRefine((i,a)=>{let n=e(i);if(n instanceof Promise)return n.then(e=>{if(!e){let e=eW(t,i),n=e.fatal??r??!0;a.addIssue({code:"custom",...e,fatal:n})}});if(!n){let e=eW(t,i),n=e.fatal??r??!0;a.addIssue({code:"custom",...e,fatal:n})}}):ey.create()}eK.create=(e,t)=>new eK({innerType:e,typeName:l.ZodReadonly,...L(t)});let eY={object:ew.lazycreate};(a=l||(l={})).ZodString="ZodString",a.ZodNumber="ZodNumber",a.ZodNaN="ZodNaN",a.ZodBigInt="ZodBigInt",a.ZodBoolean="ZodBoolean",a.ZodDate="ZodDate",a.ZodSymbol="ZodSymbol",a.ZodUndefined="ZodUndefined",a.ZodNull="ZodNull",a.ZodAny="ZodAny",a.ZodUnknown="ZodUnknown",a.ZodNever="ZodNever",a.ZodVoid="ZodVoid",a.ZodArray="ZodArray",a.ZodObject="ZodObject",a.ZodUnion="ZodUnion",a.ZodDiscriminatedUnion="ZodDiscriminatedUnion",a.ZodIntersection="ZodIntersection",a.ZodTuple="ZodTuple",a.ZodRecord="ZodRecord",a.ZodMap="ZodMap",a.ZodSet="ZodSet",a.ZodFunction="ZodFunction",a.ZodLazy="ZodLazy",a.ZodLiteral="ZodLiteral",a.ZodEnum="ZodEnum",a.ZodEffects="ZodEffects",a.ZodNativeEnum="ZodNativeEnum",a.ZodOptional="ZodOptional",a.ZodNullable="ZodNullable",a.ZodDefault="ZodDefault",a.ZodCatch="ZodCatch",a.ZodPromise="ZodPromise",a.ZodBranded="ZodBranded",a.ZodPipeline="ZodPipeline",a.ZodReadonly="ZodReadonly";let eG=(e,t={message:`Input not instance of ${e.name}`})=>eH(t=>t instanceof e,t),eQ=ed.create,eX=eu.create,e0=eL.create,e1=ec.create,e9=ep.create,e2=eh.create,e4=ef.create,e3=em.create,e5=eg.create,e6=ey.create,e7=e_.create,e8=ev.create,te=eb.create,tt=ex.create,tr=ew.create,ti=ew.str
1ictCreate,ta=ek.create,tn=eS.create,ts=ej.create,to=eT.create,tl=eA.create,td=eN.create,tu=eC.create,tc=eZ.create,tp=e$.create,th=eE.create,tf=eR.create,tm=eP.create,tg=eq.create,ty=eJ.create,t_=ez.create,tv=eM.create,tb=eJ.createWithPreprocess,tx=eB.create,tw=()=>eQ().optional(),tk=()=>eX().optional(),tO=()=>e9().optional(),tS={string:e=>ed.create({...e,coerce:!0}),number:e=>eu.create({...e,coerce:!0}),boolean:e=>ep.create({...e,coerce:!0}),bigint:e=>ec.create({...e,coerce:!0}),date:e=>eh.create({...e,coerce:!0})};e.s(["BRAND",0,eU,"NEVER",0,I,"Schema",0,U,"ZodAny",0,ey,"ZodArray",0,ex,"ZodBigInt",0,ec,"ZodBoolean",0,ep,"ZodBranded",0,eV,"ZodCatch",0,eD,"ZodDate",0,eh,"ZodDefault",0,eF,"ZodDiscriminatedUnion",0,eS,"ZodEffects",0,eJ,"ZodEnum",0,eR,"ZodFirstPartyTypeKind",0,l,"ZodFunction",0,eZ,"ZodIntersection",0,ej,"ZodLazy",0,e$,"ZodLiteral",0,eE,"ZodMap",0,eN,"ZodNaN",0,eL,"ZodNativeEnum",0,eP,"ZodNever",0,ev,"ZodNull",0,eg,"ZodNullable",0,eM,"ZodNumber",0,eu,"ZodObject",0,ew,"ZodOptional",0,ez,"ZodPipeline",0,eB,"ZodPromise",0,eq,"ZodReadonly",0,eK,"ZodRecord",0,eA,"ZodSchema",0,U,"ZodSet",0,eC,"ZodString",0,ed,"ZodSymbol",0,ef,"ZodTransformer",0,eJ,"ZodTuple",0,eT,"ZodType",0,U,"ZodUndefined",0,em,"ZodUnion",0,ek,"ZodUnknown",0,e_,"ZodVoid",0,eb,"any",0,e6,"array",0,tt,"bigint",0,e1,"boolean",0,e9,"coerce",0,tS,"custom",0,eH,"date",0,e2,"datetimeRegex",0,el,"discriminatedUnion",0,tn,"effect",0,ty,"enum",0,tf,"function",0,tc,"instanceof",0,eG,"intersection",0,ts,"late",0,eY,"lazy",0,tp,"literal",0,th,"map",0,td,"nan",0,e0,"nativeEnum",0,tm,"never",0,e8,"null",0,e5,"nullable",0,tv,"number",0,eX,"object",0,tr,"oboolean",0,tO,"onumber",0,tk,"optional",0,t_,"ostring",0,tw,"pipeline",0,tx,"preprocess",0,tb,"promise",0,tg,"record",0,tl,"set",0,tu,"strictObject",0,ti,"string",0,eQ,"symbol",0,e4,"transformer",0,ty,"tuple",0,to,"undefined",0,e3,"union",0,ta,"unknown",0,e7,"void",0,te],480),e.i(480),e.i(559413),e.s(["BRAND",0,eU,"DIRTY",0,R,"EMPTY_PATH",0,Z,"INVALID",0,I,"NEVER",0,I,"OK",0,P,"ParseStatus",0,E,"Schema",0,U,"ZodAny",0,ey,"ZodArray",0,ex,"ZodBigInt",0,ec,"ZodBoolean",0,ep,"ZodBranded",0,eV,"ZodCatch",0,eD,"ZodDate",0,eh,"ZodDefault",0,eF,"ZodDiscriminatedUnion",0,eS,"ZodEffects",0,eJ,"ZodEnum",0,eR,"ZodError",0,S,"ZodFirstPartyTypeKind",0,l,"ZodFunction",0,eZ,"ZodIntersection",0,ej,"ZodIssueCode",0,k,"ZodLazy",0,e$,"ZodLiteral",0,eE,"ZodMap",0,eN,"ZodNaN",0,eL,"ZodNativeEnum",0,eP,"ZodNever",0,ev,"ZodNull",0,eg,"ZodNullable",0,eM,"ZodNumber",0,eu,"ZodObject",0,ew,"ZodOptional",0,ez,"ZodParsedType",0,x,"ZodPipeline",0,eB,"ZodPromise",0,eq,"ZodReadonly",0,eK,"ZodRecord",0,eA,"ZodSchema",0,U,"ZodSet",0,eC,"ZodString",0,ed,"ZodSymbol",0,ef,"ZodTransformer",0,eJ,"ZodTuple",0,eT,"ZodType",0,U,"ZodUndefined",0,em,"ZodUnion",0,ek,"ZodUnknown",0,e_,"ZodVoid",0,eb,"addIssueToContext",0,$,"any",0,e6,"array",0,tt,"bigint",0,e1,"boolean",0,e9,"coerce",0,tS,"custom",0,eH,"date",0,e2,"datetimeRegex",0,el,"defaultErrorMap",0,j,"discriminatedUnion",0,tn,"effect",0,ty,"enum",0,tf,"function",0,tc,"getErrorMap",0,N,"getParsedType",0,w,"instanceof",0,eG,"intersection",0,ts,"isAborted",0,q,"isAsync",0,M,"isDirty",0,J,"isValid",0,z,"late",0,eY,"lazy",0,tp,"literal",0,th,"makeIssue",0,C,"map",0,td,"nan",0,e0,"nativeEnum",0,tm,"never",0,e8,"null",0,e5,"nullable",0,tv,"number",0,eX,"object",0,tr,"objectUtil",0,s,"oboolean",0,tO,"onumber",0,tk,"optional",0,t_,"ostring",0,tw,"pipeline",0,tx,"preprocess",0,tb,"promise",0,tg,"quotelessJson",0,O,"record",0,tl,"set",0,tu,"setErrorMap",0,A,"strictObject",0,ti,"string",0,eQ,"symbol",0,e4,"transformer",0,ty,"tuple",0,to,"undefined",0,e3,"union",0,ta,"unknown",0,e7,"util",0,n,"void",0,te],966951);var tj=e.i(966951),tj=tj;class tT{constructor(e){this.values=[],this.delimiter=":",this.hasValue(e)&&this.addValue(e)}toString(){return this.values.join(this.delimiter)}hasValue(e){return null!=e&&""!==e}addValue(e){return Array.isArray(e)?this.values=this.values.concat(e):this.values.push(e),this.values=this.values.filter(e=>this.hasValue(e)),this}setDelimiter(e){return this.delimiter=e,this}}
1class tA extends Error{constructor(e="Unsupported"){super(e)}}function tN(){return this._qualifierModel||{error:new tA(`unsupported qualifier ${this.constructor.name}`)}}class tC{constructor(){this._qualifierModel={}}toJson(){return tN.apply(this)}}class tZ extends tC{constructor(e,t){super(),this.delimiter="_",this.key=e,t instanceof tT?this.qualifierValue=t:(this.qualifierValue=new tT,this.qualifierValue.addValue(t))}toString(){let{key:e,delimiter:t,qualifierValue:r}=this;return`${e}${t}${r.toString()}`}addValue(e){return this.qualifierValue.addValue(e),this}}class t$ extends tZ{constructor(e,t){super("fl",t?new tT([e,`${t}`]).setDelimiter(":"):e),this.flagValue=t}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function tE(){var e,t,r;let i=this._actionModel&&Object.keys(this._actionModel).length,a=null==(r=null==(t=null==(e=this._actionModel)?void 0:e.source)?void 0:t.transformation)?void 0:r.error;return a&&a instanceof Error?{error:a}:i?this._actionModel:{error:new tA(`unsupported action ${this.constructor.name}`)}}class tI{constructor(){this._actionModel={}}toJson(){return tE.apply(this)}}class tR extends tI{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(e){return this.actionTag=e,this}toString(){var e,t;let r;
1return this.prepareQualifiers(),(e=this.qualifiers,t=this.flags,r=Array.from(e.entries()),t.forEach(e=>{r.push(["fl",e])}),r.sort().map(e=>e[1])).join(this.delimiter)}addQualifier(e){if("string"==typeof e){let[t,r]=e.toLowerCase().split("_");"fl"===t?this.flags.push(new t$(r)):this.qualifiers.set(t,new tZ(t,r))}else this.qualifiers.set(e.key,e);return this}addFlag(e){return"string"==typeof e?this.flags.push(new t$(e)):e instanceof t$&&this.flags.push(e),this}addValueToQualifier(e,t){return this.qualifiers.get(e).addValue(t),this}}class tP extends tR{constructor(e){super(),this._actionModel={},this.addQualifier(new tZ("b",new tT(function(e){return e&&e.match(/^#/)?`rgb:${e.substr(1)}`:e}(e)).setDelimiter("_"))),this._actionModel.color=e,this._actionModel.actionType="backgroundColor"}static fromJson(e){let{color:t}=e;return new this(t)}}class tq{constructor(e){this.raw=e}toString(){return this.raw}toJson(){return{error:new tA(`unsupported action ${this.constructor.name}`)}}}class tJ extends tT{constructor(e){super(e),this.val=e}getValue(){return this.val}}function tz(e){let t={};return Object.keys(e).forEach(r=>{t[e[r]]=r}),t}tz({444:"CHROMA_444",420:"CHROMA_420"}),tz({noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"}),tz({limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"});let tM=tz({colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"});tz({redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"}),tz({autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"}),tz({fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"});class tF extends tR{constructor(e,t,r){let i;super(),this._actionModel={},i=t instanceof tJ?t.getValue():t,this._actionModel.actionType=tM[e],this._actionModel[r]=i,this.addQualifier(new tZ(e,t))}}class tD extends t${constructor(e){super("progressive",e)}}class tL extends tF{constructor(e,t){super(e,t,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(new t$("lossy")),this}progressive(e){return e instanceof tD?(this._actionModel.progressive={mode:e.getFlagValue()},this.addFlag(e)):(this._actionModel.progressive={mode:e},this.addFlag(new t$("progressive",e))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(new t$("preserve_transparency")),this}static fromJson(e){let t,{formatType:r,lossy:i,progressive:a,preserveTransparency:n}=e;return t=r?new this("f",r):new this("f"),a&&(a.mode?t.progressive(a.mode):t.progressive()),i&&t.lossy(),n&&t.preserveTransparency(),t}}class tU{constructor(){this.actions=[]}addAction(e){let t;if("string"==typeof e)if(e.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";else t=new tq(e);else t=e;return this.actions.push(t),this}addTransformation(e){return e instanceof tU?this.actions=this.actions.concat(e.actions):this.actions.push(new tq(e)),this}toString(){return this.actions.map(e=>e.toString()).filter(e=>e).join("/")}animated(e){return this.addAction(e)}border(e){return this.addAction(e)}reshape(e){return this.addAction(e)}resize(e){return this.addAction(e)}quality(e){return this.addAction(new tL("q",e)),this}format(e){return this.addAction(new tL("f",e)),this}
1roundCorners(e){return this.addAction(e)}overlay(e){return this.addAction(e)}underlay(e){return e.setLayerType("u"),this.addAction(e)}addVariable(e){return this.addAction(e)}conditional(e){return this.addAction(e)}effect(e){return this.addAction(e)}adjust(e){return this.addAction(e)}rotate(e){return this.addAction(e)}namedTransformation(e){return this.addAction(e)}delivery(e){return this.addAction(e)}backgroundColor(e){return this.addAction(new tP(e))}psdTools(e){return this.addAction(e)}extract(e){return this.addAction(e)}addFlag(e){let t=new tR,r=e;return"string"==typeof e&&(r=new t$(e)),t.addQualifier(r),this.addAction(t)}customFunction(e){return this.addAction(e)}transcode(e){return this.addAction(e)}videoEdit(e){return this.addAction(e)}toJson(){let e=[];for(let t of this.actions){let r=t.toJson();if("error"in r&&r.error)return r;e.push(r)}return{actions:e}}}class tV extends tU{}let tB=class{filterOutNonSupportedKeys(e,t){let r=Object.create({});return"object"!=typeof e||e instanceof Array?Object.create({}):(Object.keys(e).forEach(i=>{t.indexOf(i)>=0?r[i]=e[i]:console.warn("Warning - unsupported key provided to configuration: ",i)}),r)}},tK=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"],tW=class e extends tB{constructor(e){super(),Object.assign(this,{secure:!0},this.filterOutNonSupportedKeys(e,tK))}extend(t){return new e(Object.assign({},this,this.filterOutNonSupportedKeys(t,tK)))}setCname(e){return this.cname=e,this}setSecureDistribution(e){return this.secureDistribution=e,this}setPrivateCdn(e){return this.privateCdn=e,this}setSignUrl(e){return this.signUrl=e,this}setLongUrlSignature(e){return this.longUrlSignature=e,this}setShorten(e){return this.shorten=e,this}setUseRootPath(e){return this.useRootPath=e,this}setSecure(e){return this.secure=e,this}setForceVersion(e){return this.forceVersion=e,this}setQueryParams(e){return this.queryParams=e,this}};function tH(e,t,r){let i=0|t,a=String(void 0!==r?r:" ");return e.length>i?String(e):((i-=e.length)>a.length&&(a+=function(e,t){let r=t,i="";for(;r>0;)i+=e,r--;return i}(a,i/a.length)),a.slice(0,i)+String(e))}let tY={},tG=0;function tQ(e){let t="",r=e.split(".").length,i=parseInt((function(e){if(e.split(".").length<2)throw Error("invalid semVer, must have at least two segments");return e.split(".").map(e=>{let t=+e;if(isNaN(t)||t<0)throw"Invalid version number provided";return tH(e,2,"0")}).join(".")})(function(e){if(e.split(".").length<2)throw Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}(e)).split(".").join("")).toString(2);if((i=tH(i,6*r,"0")).length%6!=0)throw"Version must be smaller than 43.21.26)";return i.match(/.{1,6}/g).forEach(e=>{t+=tY[e]}),t}function tX(e){var t;let r,i,a=(i={sdkSemver:(r={techVersion:function(){let e="0.0.0";if("u">typeof window)return e;try{return d.default.versions.node||e}catch(t){return e}}(),sdkCode:"T",sdkSemver:"1.22.0".split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1},t=!e?r:Object.assign(Object.assign({},r),e)).sdkSemver,techVersion:t.techVersion,sdkCode:t.sdkCode,product:t.product,feature:"0",osType:t.osType,osVersion:t.osVersion},t.accessibility&&(i.feature="D"),t.lazyload&&(i.feature="C"),t.responsive&&(i.feature="A"),t.placeholder&&(i.feature="B"),t.feature&&(i.feature=t.feature),i);try{let e,t=(e=a.techVersion.split("."),`${e[0]}.${e[1]}`),r=tQ(a.sdkSemver),i=tQ(t),n=function(e){let[t,r]=e.split("."),i=parseInt(t).toString(2),a=parseInt(r).toString(2),n=i.padStart(6,"0"),s=a.padStart(6,"0");return tY[n]+tY[s]}(a.osVersion),s=a.feature,o=a.sdkCode,{product:l,osType:d}=a;return`D${l}${o}${r}${i}${d}${n}${s}`}catch(e){return"E"}}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(e=>{let t=tG.toString(2);tY[t=tH(t,6,"0")]=e,tG++});let t0={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class t1{constructor(e,t={},r){this.setPublicID(e),this.setCloudConfig(t),this.setURLConfig(r)}setURLConfig(e){return this.urlConfig=new tW(e),this}setCloudConfig(e){return this.cloudName=e.cloudName,this.apiKey=e.apiKey,this.apiSecret=e.apiSecret,this.authToken=e.authToken,this}
1setPublicID(e){return this.publicID=e?e.toString():"",this}setDeliveryType(e){return this.deliveryType=e,this}setSuffix(e){return this.suffix=e,this}setSignature(e){return this.signature=e,this}setVersion(e){return e&&(this.version=e),this}setAssetType(e){return e&&(this.assetType=e),this}sign(){return this}toURL(e={}){return this.createCloudinaryURL(null,e.trackedAnalytics)}validateAssetForURLCreation(){if(void 0===this.cloudName)throw"You must supply a cloudName when initializing the asset";let e=this.suffix&&this.suffix.indexOf(".")>=0,t=this.suffix&&this.suffix.indexOf("/")>=0;if(e||t)throw"`suffix`` should not include . or /"}getResourceType(){var e,t;let r=(e=this.assetType)?e:"image",i=(t=this.deliveryType)?t:"upload",a=!!this.suffix,n=`${r}/${i}`,s=t0[`${r}/${i}`],o=this.urlConfig.useRootPath,l=this.urlConfig.shorten;if(o)if("image/upload"===n)return"";else throw Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${n} instead`);if(l&&"image/upload"===n)return"iu";if(a)if(s)return s;else throw Error(`URL Suffix only supported for ${Object.keys(t0).join(", ")}, Provided: ${n} instead`);return n}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(e,t){var r,i,a,n,s;let o,l,d,u;if(!this.publicID)return"";this.validateAssetForURLCreation();let c=(r=this.cloudName,o=(i=this.urlConfig).secure,l=i.privateCdn,d=i.cname,u=i.secureDistribution,o||d?o&&!u&&l?`https://${r}-res.cloudinary.com`:o&&!u?`https://res.cloudinary.com/${r}`:o&&u&&l?`https://${u}`:o&&u?`https://${u}/${r}`:!o&&d?`http://${d}/${r}`:"ERROR":`http://res.cloudinary.com/${r}`),p=e?e.toString():"",h=(a=this.publicID,n=this.version,s=this.urlConfig.forceVersion,n?`v${n}`:a.match(/^v[0-9]+/)||a.match(/^https?:\//)||0>a.indexOf("/")?"":!1!==s?"v1":""),f=this.publicID;if("string"==typeof e)return[c,this.getResourceType(),this.getSignature(),p,h,f.replace(/,/g,"%2C"),this.suffix].filter(e=>e).join("/");{let e=[encodeURI(c),this.getResourceType(),this.getSignature(),encodeURI(p),h,encodeURI(f).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(e=>e).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),r=!1!==this.urlConfig.analytics&&!f.includes("?"),i="";if("object"==typeof this.urlConfig.queryParams)try{let e=new URLSearchParams(this.urlConfig.queryParams);r&&e.set("_a",tX(t)),i=e.toString()}catch(e){console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else i=this.urlConfig.queryParams||"",r&&(i+=`${i.length>0?"&":""}_a=${tX(t)}`);return i?`${e}?${i}`:e}}}
1class t9 extends t1{constructor(e,t,r,i){super(e,t,r),this.transformation=i}animated(e){return this.transformation.animated(e),this}border(e){return this.transformation.border(e),this}reshape(e){return this.transformation.reshape(e),this}resize(e){return this.transformation.resize(e),this}quality(e){return this.addAction(new tL("q",e)),this}format(e){return this.addAction(new tL("f",e)),this}roundCorners(e){return this.transformation.roundCorners(e),this}overlay(e){return this.transformation.overlay(e),this}addVariable(e){return this.transformation.addVariable(e),this}conditional(e){return this.transformation.conditional(e),this}effect(e){return this.transformation.effect(e),this}adjust(e){return this.transformation.adjust(e),this}rotate(e){return this.transformation.rotate(e),this}namedTransformation(e){return this.transformation.namedTransformation(e),this}delivery(e){return this.transformation.delivery(e),this}backgroundColor(e){return this.transformation.backgroundColor(e),this}psdTools(e){return this.transformation.psdTools(e),this}extract(e){return this.transformation.extract(e),this}addFlag(e){return this.transformation.addFlag(e),this}customFunction(e){return this.transformation.customFunction(e),this}addAction(e){return this.transformation.addAction(e),this}addTransformation(e){return this.transformation.addTransformation(e),this}toString(){return this.transformation.toString()}underlay(e){return this.transformation.underlay(e),this}toURL(e={}){return this.createCloudinaryURL(this.transformation,null==e?void 0:e.trackedAnalytics)}}class t2 extends t9{constructor(e,t,r){super(e,t,r,new tV)}}class t4 extends tU{}class t3 extends t9{constructor(e,t,r){super(e,t,r,new t4),this.assetType="video"}transcode(e){return this.transformation.transcode(e),this}videoEdit(e){return this.transformation.videoEdit(e),this}}class t5{constructor(e){e&&(this.cloudinaryConfig=e)}image(e){return new t2(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(e){return new t3(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(e){return this.cloudinaryConfig=e,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var t6=Object.defineProperty,t7={},t8={angle:()=>ra,aspectRatio:()=>rs,aspectRatioModesEnum:()=>rn,crop:()=>ro,cropModesEnum:()=>rt,extractMode:()=>rl,extractModesEnum:()=>rr,flags:()=>rd,flagsEnum:()=>ri,format:()=>ru,gravity:()=>rc,height:()=>rp,multiple:()=>rh,prompt:()=>rf,width:()=>rm,x:()=>rg,y:()=>ry,zoom:()=>r_};for(var re in t8)t6(t7,re,{get:t8[re],enumerable:!0});var rt=tj.enum(["auto","crop","fill","fill_pad","fit","imagga_crop","imagga_scale","lfill","limit","lpad","mfit","mpad","pad","scale","thumb"]),rr=tj.enum(["content","mask"]),ri=tj.enum(["animated","any_format","apng","attachment","awebp","clip","clip_evenodd","cutter","force_icc","force_strip","getinfo","group4","hlsv3","ignore_aspect_ratio","ignore_mask_channels","immutable_cache","keep_attribution","keep_dar","keep_iptc","layer_apply","lossy","mono","no_overflow","no_stream","png8_fl_png24_fl_png32","preserve_transparency","progressive","rasterize","region_relative","relative","replace_image","sanitize","splice","streaming_attachment","strip_profile","text_disallow_overflow","text_no_trim","tiff8_lzw","tiled","truncate_ts","waveform"]),ra={qualifier:"a",schema:tj.union([tj.string(),tj.number()]).describe(JSON.stringify({text:"Rotates or flips an asset by the specified number of degrees or automatically according to its orientation or available metadata.",url:"https://cloudinary.com/documentation/transformation_reference#a_angle"}))},rn=tj.enum(["vflip","hflip","ignore","auto_right","auto_left"]),rs={qualifier:"ar",schema:tj.union([tj.number(),rn,tj.intersection(tj.string(),tj.object({}))]).describe(JSON.stringify({text:"Crops or resizes the asset to a new aspect ratio.",url:"https://cloudinary.com/documentation/transformation_reference#ar_aspect_ratio"}))},ro={qualifier:"c",schema:rt.describe(JSON.stringify({text:"Mode to use when cropping an asset.",url:"https://cloudinary.com/documentation/transformation_reference#c_crop_resize"}))}
1,rl={schema:rr.default("content").describe(JSON.stringify({text:"Whether to keep the content of the extracted area, or to replace it with a mask.",url:"https://cloudinary.com/documentation/transformation_reference#e_extract"}))},rd={qualifier:"fl",schema:tj.union([ri,tj.array(ri)]).describe(JSON.stringify({text:"Alters the regular behavior of another transformation or the overall delivery behavior.",url:"https://cloudinary.com/documentation/transformation_reference#fl_flag"}))},ru={qualifier:"f",schema:tj.string().describe(JSON.stringify({text:"Converts (if necessary) and delivers an asset in the specified format regardless of the file extension used in the delivery URL.",url:"https://cloudinary.com/documentation/transformation_reference#f_format"}))},rc={qualifier:"g",schema:tj.union([tj.enum(["auto","auto_content_aware","center","custom","east","face","face_center","multi_face","north","north_east","north_west","south","south_east","south_west","west"]),tj.intersection(tj.string(),tj.object({}))]).describe(JSON.stringify({text:"Determines which part of an asset to focus on. Note: Default of auto is applied for supported crop modes only.",url:"https://cloudinary.com/documentation/transformation_reference#g_gravity"}))},rp={qualifier:"h",schema:tj.union([tj.number(),tj.string()]).describe(JSON.stringify({text:"A qualifier that determines the height of a transformed asset or an overlay.",url:"https://cloudinary.com/documentation/transformation_reference#h_height"}))},rh={schema:tj.boolean().describe(JSON.stringify({text:"Should generative AI features detect multiple instances."}))},rf={schema:tj.string().describe(JSON.stringify({text:"Natural language descriptions used for generative AI capabilities."}))},rm={qualifier:"w",schema:tj.union([tj.number(),tj.string()]).describe(JSON.stringify({text:"A qualifier that sets the desired width of an asset using a specified value, or automatically based on the available width.",url:"https://cloudinary.com/documentation/transformation_reference#w_width"}))},rg={qualifier:"x",schema:tj.union([tj.string(),tj.number()]).describe(JSON.stringify({text:"Adjusts the starting location or offset of the x axis.",url:"https://cloudinary.com/documentation/transformation_reference#x_y_coordinates"}))},ry={qualifier:"y",schema:tj.union([tj.string(),tj.number()]).describe(JSON.stringify({text:"Adjusts the starting location or offset of the y axis.",url:"https://cloudinary.com/documentation/transformation_reference#x_y_coordinates"}))},r_={schema:tj.string().describe(JSON.stringify({text:"Controls how close to crop to the detected coordinates when using face-detection, custom-coordinate, or object-specific gravity.",url:"https://cloudinary.com/documentation/transformation_reference#z_zoom"}))},rv=[{test:function(e){return"string"==typeof e&&!!e.startsWith("#")},convert:function(e){return`rgb:${e.replace("#","")}`}}],rb={aspectRatio:rs,crop:ro,gravity:rc,height:rp,width:rm},rx={angle:ra,gravity:rc,x:rg,y:ry},rw={alignment:{qualifier:!1,order:6},antialias:{qualifier:"antialias"},border:{qualifier:"bo",location:"primary"},color:{qualifier:"co",location:"primary",converters:rv},fontFamily:{qualifier:!1,order:1},fontSize:{qualifier:!1,order:2},fontStyle:{qualifier:!1,order:4},fontWeight:{qualifier:!1,order:3},hinting:{qualifier:"hinting"},letterSpacing:{qualifier:"letter_spacing"},lineSpacing:{qualifier:"line_spacing"},stroke:{qualifier:"self",order:7},textDecoration:{qualifier:!1,order:5}},rk={angle:ra,art:{prefix:"e",qualifier:"art",schema:tj.string().describe(JSON.stringify({text:"Applies the selected artistic filter.",url:"https://cloudinary.com/documentation/transformation_reference#e_art"}))},autoBrightness:{prefix:"e",qualifier:"auto_brightness",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Automatically adjusts the image brightness and blends the result with the original image.",url:"https://cloudinary.com/documentation/transformation_reference#e_auto_brightness"}))},autoColor:{prefix:"e",qualifier:"auto_color",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Automatically adjusts the image color balance and blends the result with the original image.",url:"https://cloudinary.com/documentation/transformation_reference#e_auto_color"}))},autoContrast:{prefix:"e",qualifier:"auto_contrast",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Automatically adjusts the image contrast and blends the result with the original image.",url:"https://cloudinary.com/documentation/transformation_reference#e_auto_contrast"}))},assistColorblind:{prefix:"e",qualifier:"assist_colorblind",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Applies stripes or color adju
1stment to help people with common color blind conditions to differentiate between colors that are similar for them.",url:"https://cloudinary.com/documentation/transformation_reference#e_assist_colorblind"}))},background:{qualifier:"b",schema:tj.string().describe(JSON.stringify({text:"Applies a background to empty or transparent areas.",url:"https://cloudinary.com/documentation/transformation_reference#b_background"}))},blackwhite:{prefix:"e",qualifier:"blackwhite",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Converts an image to black and white.",url:"https://cloudinary.com/documentation/transformation_reference#e_blackwhite"}))},blur:{prefix:"e",qualifier:"blur",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Applies a blurring filter to an asset.",url:"https://cloudinary.com/documentation/transformation_reference#e_blur"}))},blurFaces:{prefix:"e",qualifier:"blur_faces",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Blurs all detected faces in an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_blur_faces"}))},blurRegion:{prefix:"e",qualifier:"blur_region",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Applies a blurring filter to the region of an image specified by x, y, width and height, or an area of text. If no region is specified, the whole image is blurred.",url:"https://cloudinary.com/documentation/transformation_reference#e_blur_region"}))},border:{qualifier:"bo",schema:tj.string().describe(JSON.stringify({text:"Adds a solid border around an image or video.",url:"https://cloudinary.com/documentation/transformation_reference#bo_border"}))},brightness:{prefix:"e",qualifier:"brightness",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Adjusts the image or video brightness.",url:"https://cloudinary.com/documentation/transformation_reference#e_brightness"}))},brightnessHSB:{prefix:"e",qualifier:"brightness_hsb",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Adjusts image brightness modulation in HSB to prevent artifacts in some images.",url:"https://cloudinary.com/documentation/transformation_reference#e_brightness_hsb"}))},cartoonify:{prefix:"e",qualifier:"cartoonify",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Applies a cartoon effect to an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_cartoonify"}))},color:{qualifier:"co",schema:tj.string().describe(JSON.stringify({text:"A qualifier that specifies the color to use with the corresponding transformation.",url:"https://cloudinary.com/documentation/transformation_reference#co_color"})),converters:rv}
1,colorize:{prefix:"e",qualifier:"colorize",schema:tj.string().describe(JSON.stringify({text:"Colorizes an image. By default, gray is used for colorization. You can specify a different color using the color qualifier.",url:"https://cloudinary.com/documentation/transformation_reference#e_colorize"}))},contrast:{prefix:"e",qualifier:"contrast",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Adjusts an image or video contrast.",url:"https://cloudinary.com/documentation/transformation_reference#e_contrast"}))},displace:{prefix:"e",qualifier:"distort",schema:tj.string().describe(JSON.stringify({text:"Displaces the pixels in an image according to the color channels of the pixels in another specified image (a gradient map specified with the overlay parameter).",url:"https://cloudinary.com/documentation/transformation_reference#e_displace"}))},distort:{prefix:"e",qualifier:"distort",schema:tj.string().describe(JSON.stringify({text:"Distorts an image to a new shape by either adjusting its corners or by warping it into an arc.",url:"https://cloudinary.com/documentation/transformation_reference#e_distort"}))},fillLight:{prefix:"e",qualifier:"fill_light",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Adjusts the fill light and optionally blends the result with the original image.",url:"https://cloudinary.com/documentation/transformation_reference#e_fill_light"}))},gamma:{prefix:"e",qualifier:"gamma",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Adjusts the image or video gamma level.",url:"https://cloudinary.com/documentation/transformation_reference#e_gamma"}))},gradientFade:{prefix:"e",qualifier:"gradient_fade",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Applies a gradient fade effect from the edge of an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_gradient_fade"}))},grayscale:{prefix:"e",qualifier:"grayscale",schema:tj.boolean().describe(JSON.stringify({text:"Converts an image to grayscale (multiple shades of gray).",url:"https://cloudinary.com/documentation/transformation_reference#e_grayscale"}))},hue:{prefix:"e",qualifier:"hue",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Adjusts an image's hue.",url:"https://cloudinary.com/documentation/transformation_reference#e_hue"}))},improve:{prefix:"e",qualifier:"improve",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Adjusts an image's colors, contrast and brightness to improve its appearance.",url:"https://cloudinary.com/documentation/transformation_reference#e_improve"}))},loop:{prefix:"e",qualifier:"loop",schema:tj.union([tj.boolean(),tj.number(),tj.string()]).describe(JSON.stringify({text:"Loops a video or animated image the specified number of times.",url:"https://cloudinary.com/documentation/transformation_reference#e_loop"}))},multiply:{prefix:"e",qualifier:"multiply",schema:tj.boolean().describe(JSON.stringify({text:"A qualifier that blends image layers using the multiply blend mode",url:"https://cloudinary.com/documentation/transformation_reference#e_multiply"}))},negate:{prefix:"e",qualifier:"negate",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"https://cloudinary.com/documentation/transformation_reference#e_negate",url:"https://cloudinary.com/documentation/transformation_reference#e_negate"}))},noise:{prefix:"e",qualifier:"noise",schema:tj.boolean().describe(JSON.stringify({text:"https://cloudinary.com/documentation/transformation_reference#e_noise",url:"https://cloudinary.com/documentation/transformation_reference#e_noise"}))},oilPaint:{prefix:"e",qualifier:"oil_paint",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"https://cloudinary.com/documentation/transformation_reference#e_oil_paint",url:"https://cloudinary.com/documentation/transformation_reference#e_oil_paint"}))},opacity:{qualifier:"o",schema:tj.union([tj.string(),tj.number()]).describe(JSON.stringify({text:"Adjusts the opacity of an asset and makes it semi-transparent.",url:"https://cloudinary.com/documentation/transformation_reference#o_opacity"}))},outline:{prefix:"e",qualifier:"outline",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Adds an outline effect to an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_outline"}))},pixelate:{prefix:"e",qualifier:"pixelate",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Applies a pixelation effect.",url:"https://cloudinary.com/documentation/transformation_reference#e_pixelate"}))},pixelateFaces:{prefix:"e",qualifier:"pixelate_faces",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Pixelates all detected faces in an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_pixelate_faces"}))},pixelateRegion:{prefix:"e",qualifier:"pixelate_region",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Pixelates the region of an image specified by x, y, width and height, or an area of text.",url:"https://cloudinary.com/documentation/transformation_reference#e_pixelate_region"}))},radius:{qualifier:"r",schema:tj.union([tj.string(),tj.number()]).describe(JSON.stringify({text:"Rounds the corners of an image or video.",url:"https://cloudinary.com/documentation/transformation_reference#r_round_corners"}))},redeye:{prefix:"e",qualifier:"redeye",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Automatically removes red eyes in an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_redeye"}))},replaceColor:{prefix:"e",qualifier:"replace_color",schema:tj.string().describe(JSON.stringify({text:"Maps an input color and those similar to the input color to corresponding shades of a specified output color.",url:"https://cloudinary.com/documentation/transformation_reference#e_replace_color"}))},saturation:{prefix:"e",qualifier:"saturation",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Adjusts an image or video saturation level.",url:"https://cloudinary.com/documentation/transformation_reference#e_saturation"}))},screen:{prefix:"e",qualifier:"screen",schema:tj.boolean().describe(JSON.stringify({text:"A qualifier that blends image layers using the screen blend mode.",url:"https://cloudinary.com/documentation/transformation_reference#e_screen"}))},sepia:{prefix:"e",qualifier:"sepia",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Changes the color scheme of an image to sepia.",url:"https://cloudinary.com/documentation/transformation_reference#e_sepia"}))},shadow:{prefix:"e",qualifier:"shadow",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Adds a gray shadow to the bottom right of an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_shadow"}))},sharpen:{prefix:"e",qualifier:"sharpen",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Applies a sharpening filter.",url:"https://cloudinary.com/documentation/transformation_reference#e_sharpen"}))},shear:{prefix:"e",qualifier:"shear",schema:tj.string().describe(JSON.stringify({text:"Skews an image according to the two specified values in degrees.",url:"https://cloudinary.com/documentation/transformation_reference#e_shear"}))},simulateColorblind:{prefix:"e",qualifier:"simulate_colorblind",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Simulates the way an image would appear to someone with the specified color blind condition.",url:"https://cloudinary.com/documentation/transformation_reference#e_simulate_colorblind"}))},tint:{prefix:"e",qualifier:"tint",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Blends an image with one or more tint colors at a specified intensity.",url:"https://cloudinary.com/documentation/transformation_reference#e_tint"}))},trim:{prefix:"e",qualifier:"trim",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Detects and removes image edges whose color is similar to the corner pixels.",url:"https://cloudinary.com/documentation/transformation_reference#e_trim"}))},unsharpMask:{prefix:"e",qualifier:"unsharp_mask",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Applies an unsharp mask filter to an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_unsharp_mask"}))}
1,vectorize:{prefix:"e",qualifier:"vectorize",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Vectorizes an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_vectorize"}))},vibrance:{prefix:"e",qualifier:"vibrance",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Applies a vibrance filter to an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_vibrance"}))},vignette:{prefix:"e",qualifier:"vignette",schema:tj.union([tj.string(),tj.boolean()]).describe(JSON.stringify({text:"Applies a vignette effect to an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_vignette"}))}};function rO({prefix:e,qualifier:t,value:r,converters:i}){let a="";e&&(a=`${e}_`);let n=r;if(i?.forEach(({test:e,convert:t})=>{e(n)&&(n=t(n))}),!0===n||"true"===n)return`${a}${t}`;if("string"==typeof n||"number"==typeof n)if(e)return`${a}${t}:${n}`;else return`${t}_${n}`}function rS(e){return`(${e.join(";")})`}function rj(e){return"string"!=typeof e?e:parseInt(e)}var rT=["auto","crop","fill","lfill","fill_pad","thumb"],rA=["auto","crop","fill","lfill","fill_pad","thumb"],rN=["crop","thumb"],rC="limit",rZ=tj.object({aspectRatio:rs.schema.optional(),type:ro.schema,gravity:rc.schema.optional(),height:rp.schema.optional(),width:rm.schema.optional(),x:rg.schema.optional(),y:ry.schema.optional(),zoom:r_.schema.optional(),source:tj.boolean().optional()}),r$={aspectRatio:rs.schema.optional(),crop:tj.union([ro.schema,rZ,tj.array(rZ)]).default(rC).optional(),gravity:rc.schema.optional(),zoom:r_.schema.optional()},rE={angle:rk.angle.schema.optional(),art:rk.art.schema.optional(),autoBrightness:rk.autoBrightness.schema.optional(),autoColor:rk.autoColor.schema.optional(),autoContrast:r
1k.autoContrast.schema.optional(),assistColorblind:rk.assistColorblind.schema.optional(),background:rk.background.schema.optional(),blackwhite:rk.blackwhite.schema.optional(),blur:rk.blur.schema.optional(),blurFaces:rk.blurFaces.schema.optional(),blurRegion:rk.blurRegion.schema.optional(),border:rk.border.schema.optional(),brightness:rk.brightness.schema.optional(),brightnessHSB:rk.brightnessHSB.schema.optional(),cartoonify:rk.cartoonify.schema.optional(),color:rk.color.schema.optional(),colorize:rk.colorize.schema.optional(),contrast:rk.contrast.schema.optional(),distort:rk.distort.schema.optional(),fillLight:rk.fillLight.schema.optional(),gamma:rk.gamma.schema.optional(),gradientFade:rk.gradientFade.schema.optional(),grayscale:rk.grayscale.schema.optional(),improve:rk.improve.schema.optional(),loop:rk.loop.schema.optional(),multiply:rk.multiply.schema.optional(),negate:rk.negate.schema.optional(),oilPaint:rk.oilPaint.schema.optional(),opacity:rk.opacity.schema.optional(),outline:rk.outline.schema.optional(),pixelate:rk.pixelate.schema.optional(),pixelateFaces:rk.pixelateFaces.schema.optional(),pixelateRegion:rk.pixelateRegion.schema.optional(),radius:rk.radius.schema.optional(),redeye:rk.redeye.schema.optional(),replaceColor:rk.replaceColor.schema.optional(),saturation:rk.saturation.schema.optional(),screen:rk.screen.schema.optional(),sepia:rk.sepia.schema.optional(),shadow:rk.shadow.schema.optional(),sharpen:rk.sharpen.schema.optional(),shear:rk.shear.schema.optional(),simulateColorblind:rk.simulateColorblind.schema.optional(),tint:rk.tint.schema.optional(),trim:rk.trim.schema.optional(),unsharpMask:rk.unsharpMask.schema.optional(),vectorize:rk.vectorize.schema.optional(),vibrance:rk.vibrance.schema.optional(),vignette:rk.vignette.schema.optional()},rI={effects:tj.array(tj.object(rE)).describe(JSON.stringify({text:"Array of objects specifying transformations to be applied to asset."})).optional(),...rE},{flagsEnum:rR}=t7,rP={flags:rd.schema.optional()},rq=tj.string(),rJ={namedTransformations:tj.union([rq,tj.array(rq)]).describe(JSON.stringify({text:"Named transformations to apply to asset.",url:"https://cloudinary.com/documentation/image_transformations#named_transformations"})).optional(),transformations:tj.union([rq,tj.array(rq)]).describe(JSON.stringify({text:"Deprecated: use namedTransformations instead",url:"https://cloudinary.com/documentation/image_transformations#named_transformations"})).optional()},rz=tj.object({alignment:tj.string().optional(),antialias:tj.string().optional(),border:tj.string().optional(),color:tj.string().optional(),fontFamily:tj.string().optional(),fontSize:tj.number().optional(),fontStyle:tj.union([tj.string(),tj.number()]).optional(),fontWeight:tj.string().optional(),hinting:tj.union([tj.string(),tj.number()]).optional(),letterSpacing:tj.union([tj.string(),tj.number()]).optional(),lineSpacing:tj.union([tj.string(),tj.number()]).optional(),stroke:tj.string().optional(),text:tj.string()}),rM=tj.object({angle:ra.schema.optional(),gravity:rc.schema.optional(),x:rg.schema.optional(),y:ry.schema.optional()}),rF=tj.object({appliedEffects:tj.array(tj.object({})).optional(),appliedFlags:rd.schema.optional(),effects:tj.array(tj.object({})).optional(),crop:ro.schema.optional(),flags:rd.schema.optional(),height:rp.schema.optional(),position:rM.optional(),publicId:tj.string().optional(),text:tj.union([tj.string(),rz]).optional(),url:tj.string().optional(),width:rm.schema.optional()}),rD={color:"black",fontFamily:"Arial",fontSize:200,fontWeight:"bold"},rL={overlay:rF.describe(JSON.stringify({text:"Image or text layer that is applied on top of the base image.",url:"https://cloudinary.com/documentation/transformation_reference#l_layer"})).optional(),overlays:tj.array(rF).describe(JSON.stringify({text:"Image or text layers that are applied on top of the base image.",url:"https://cloudinary.com/documentation/transformation_reference#l_layer"})).optional(),text:tj.string().describe(JSON.stringify({text:"Text to be overlaid on asset.",url:"https://cloudinary.com/documentation/image_transformations#transformation_url_structure"})).optional()},rU={preserveTransformations:tj.boolean().describe(JSON.stringify({text:"Preserves transformations from a Cloudinary U
1RL when using using a Cloudinary URL as the asset source (src)."})).optional()},rV=tj.string(),rB={rawTransformations:tj.union([rV,tj.array(rV)]).describe(JSON.stringify({text:"Array of transformation parameters using the Cloudinary URL API to apply to an asset.",url:"https://cloudinary.com/documentation/transformation_reference"})).optional()},rK={removeBackground:tj.boolean().describe(JSON.stringify({text:"Removes the background of an image using the Cloudinary AI Background Removal Add-On (Required).",url:"https://cloudinary.com/documentation/cloudinary_ai_background_removal_addon"})).optional()},rW={sanitize:tj.boolean().describe(JSON.stringify({text:"Runs a sanitizer on SVG images.",url:"https://cloudinary.com/documentation/transformation_reference#fl_sanitize"})).optional()},rH={seoSuffix:tj.string().describe(JSON.stringify({text:"Configures the URL to include an SEO-friendly suffix in the URL",url:"https://cloudinary.com/documentation/advanced_url_delivery_options#seo_friendly_media_asset_urls"})).optional()},rY=tj.object({angle:ra.schema.optional(),gravity:rc.schema.optional(),x:rg.schema.optional(),y:ry.schema.optional()}),rG=tj.object({appliedEffects:tj.array(tj.object({})).optional(),appliedFlags:rd.schema.optional(),effects:tj.array(tj.object({})).optional(),crop:ro.schema.optional(),flags:rd.schema.optional(),height:rp.schema.optional(),position:rY.optional(),publicId:tj.string().optional(),type:tj.string().optional(),url:tj.string().optional(),width:rm.schema.optional()}),rQ={underlay:tj.string().describe(JSON.stringify({text:"Public ID of image that is applied under the base image.",url:"https://cloudinary.com/documentation/transformation_reference#l_layer"})).optional(),underlays:tj.array(rG).describe(JSON.stringify({text:"Image layers that are applied under the base image.",url:"https://cloudinary.com/documentation/transformation_reference#l_layer"})).optional()},rX={version:tj.union([tj.number(),tj.string()]).describe(JSON.stringify({text:"Custom version number to apply to asset URL.",url:"https://cloudinary.com/documentation/advanced_url_delivery_options#asset_versions"})).optional()},r0=tj.object({assetType:tj.string().default("image").describe(JSON.stringify({text:"The type of asset to deliver.",url:"https://cloudinary.com/documentation/image_transformations#transformation_url_structure"})).optional(),deliveryType:tj.string().default("upload").describe(JSON.stringify({text:"Delivery method of the asset.",url:"https://cloudinary.com/documentation/image_transformations#delivery_types"})).optional(),dpr:tj.union([tj.string(),tj.number()]).describe(JSON.stringify({text:"Delivery method of the asset.",url:"https://cloudinary.com/documentation/image_transformations#delivery_types"})).optional(),format:tj.string().default("auto").describe(JSON.stringify({text:"Converts (if necessary) and delivers an asset in the specified format.",url:"https://cloudinary.com/documentation/transformation_reference#f_format"})).optional(),height:tj.union([tj.string(),tj.number()]).describe(JSON.stringify({text:"Height of the given asset."})).optional(),quality:tj.union([tj.string(),tj.number(),tj.string()]).default("auto").describe(JSON.stringify({text:"Quality of the delivered asset",url:"https://cloudinary.com/documentation/transformation_reference#q_quality"})).optional(),src:tj.string().describe(JSON.stringify({text:"Cloudinary Public ID or versioned Cloudinary URL (/v1234/)"})),strictTransformations:tj.boolean().describe(JSON.stringify({text:"Gives you the ability to have more control over what transformations are permitted to be used from your Cloudinary account.",url:"https://cloudinary.com/documentation/control_access_to_media#strict_transformations"})).optional(),width:tj.union([tj.string(),tj.number()]).describe(JSON.stringify({text:"Width of the given asset."})).optional(),...r$,...rI,...rP,...rJ,...rL,...rU,...rB,...rK,...rW,...rH,...rQ,...rX}),r1={defaultImage:tj.string().describe(JSON.stringify({text:"Configures the default image to use in case the given public ID is not available. Must include file extension.",url:"https://cloudinary.com/documentation/transformation_reference#d_default_image"})).optional()},r9={enhance:tj.boolean().describe(JSON.stringify({text:"Uses AI to analyze an image and make adjustments to enhance the appeal of the image.",url:"https://cloudinary.com/documentation/transformation_reference#e_enhance"})).optional()},r2={extract:tj.union([rf.schema.optional(),tj.array(rf.schema).optional(),tj.object({invert:tj.boolean().default(!1).optional(),mode:rl.schema.optional(),multiple:rh.schema.default(!1).optional(),prompt:tj.union([rf.schema,tj.array(rf.schema)]).optional()})]).describe(JSON.stringify({text:"Extracts an area or multiple areas of an image, described 
1in natural language.",url:"https://cloudinary.com/documentation/transformation_reference#e_extract"})).optional()};function r4(e){return"string"==typeof e?e:Array.isArray(e)?`(${e.filter(e=>"string"==typeof e).join(";")})`:void 0}var r3={fillBackground:tj.union([tj.boolean(),tj.object({crop:ro.schema.optional(),gravity:rc.schema.optional(),prompt:tj.string().optional()})]).describe(JSON.stringify({text:"Uses Generative Fill to extended padded image with AI",url:"https://cloudinary.com/documentation/transformation_reference#b_gen_fill"})).optional()},r5=tj.union([tj.string(),tj.array(tj.string())]),r6=tj.object({prompt:r5.optional(),to:tj.string().optional(),multiple:tj.boolean().optional()}),r7={recolor:tj.union([r5,r6]).describe(JSON.stringify({text:"Uses generative AI to recolor parts of your image, maintaining the relative shading.",url:"https://cloudinary.com/documentation/transformation_reference#e_gen_recolor"})).optional()},r8=tj.union([tj.string(),tj.array(tj.string())]),ie=tj.object({prompt:r8.optional(),region:tj.union([tj.array(tj.number()),tj.array(tj.array(tj.number()))]).optional(),multiple:tj.boolean().optional(),removeShadow:tj.boolean().optional()}),it={remove:tj.union([r8,ie]).describe(JSON.stringify({text:"Applies zooming and/or panning to an image, resulting in a video or animated image.",url:"https://cloudinary.com/documentation/transformation_reference#e_zoompan"})).optional()},ir={replaceBackground:tj.union([tj.boolean(),tj.string(),tj.object({seed:tj.number().optional(),prompt:tj.string().optional()})]).describe(JSON.stringify({text:"Replaces the background of an image with an AI-generated background.",url:"https://cloudinary.com/documentation/transformation_reference#e_gen_background_replace"})).optional()},ii={replace:tj.union([tj.array(tj.string()),tj.array(tj.boolean()),tj.object({to:tj.string(),from:tj.string(),preserveGeometry:tj.boolean().optional()})]).describe(JSON.stringify({text:"Uses generative AI to replace parts of your image with something else.",url:"https://cloudinary.com/documentation/transformation_reference#e_gen_replace"})).optional()},ia={restore:tj.boolean().describe(JSON.stringify({text:"Uses generative AI to restore details in poor quality images or images that may have become degraded through repeated processing and compression.",url:"https://cloudinary.com/documentation/transformation_reference#e_gen_restore"})).optional()},is={zoompan:tj.union([tj.string(),tj.boolean(),tj.object({loop:rk.loop.schema.optional(),options:tj.string()})]).describe(JSON.stringify({text:"Applies zooming and/or panning to an image, resulting in a video or animated image.",url:"https://cloudinary.com/documentation/transformation_reference#e_zoompan"})).optional()},io=r0.merge(tj.object({...r1,...r9,...r2,...r3,...r7,...it,...ii,...ir,...ia,...is})),il={streamingProfile:tj.string().describe(JSON.stringify({text:"The streaming profile to apply when delivering a video using adaptive bitrate streaming.",url:"https://cloudinary.com/documentation/transformation_reference#sp_streaming_profile"})).optional()},id=r0.merge(tj.object({...il})),iu=tj.any(),ic=tj.any(),ip=[{props:r9,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:r}=e,{enhance:i=!1}=r;return i&&t.effect("e_enhance"),{}}},{props:r2,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:r}=e,{extract:i}=r;if(!i||void 0===i)return{};let a=[];if("string"==typeof i)a.push(`prompt_${i}`);else if(Array.isArray(i))a.push(`prompt_${r4(i)}`);else if("object"==typeof i&&!Array.isArray(i)){let e=r4(i.prompt);e&&a.push(`prompt_${e}`),!0===i.invert&&a.push("invert_true"),"string"==typeof i.mode&&a.push(`mode_${i.mode}`),!0===i.multiple&&a.push("multiple_true")}if(a.length>0){let e=`e_extract:${a.join(";")}`;t.addTransformation(e)}return{}}},{props:r7,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:r}=e,{recolor:i}=r,a={prompt:void 0,"to-color":void 0,multiple:void 0};Array.isArray(i)?(Array.isArray(i[0])?a.prompt=rS(i[0]):a.prompt=i[0],"string"==typeof i[1]&&(a["to-color"]=i[1])):"object"==typeof i&&("string"==typeof i.prompt?a.prompt=i.prompt:Array.isArray(i.prompt)&&(a.prompt=rS(i.prompt)),"string"==typeof i.to&&(a["to-color"]=i.to),!0===i.multiple&&(a.multiple="true"));let n=Object.entries(a).filter(([,e])=>!!e).map(([e,t])=>`${e}_${t}`).join(";");return n&&t.addTransformation(`e_gen_recolor:${n}`),{}}},{props:rK,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:r}
1=e,{removeBackground:i=!1}=r;return i&&t.effect("e_background_removal"),{}}},{props:it,assetTypes:["image","images"],plugin:({cldAsset:e,options:t})=>{let{remove:r}=t,i={prompt:void 0,region:void 0,multiple:void 0,"remove-shadow":void 0};if("string"==typeof r)i.prompt=r;else if(Array.isArray(r))i.prompt=rS(r);else if("object"==typeof r){let e="string"==typeof r.prompt||Array.isArray(r.prompt),t=Array.isArray(r.region);if(e&&t)throw Error("Invalid remove options: you can not have both a prompt and a region. More info: https://cloudinary.com/documentation/transformation_reference#e_gen_remove");"string"==typeof r.prompt?i.prompt=r.prompt:Array.isArray(r.prompt)&&(i.prompt=rS(r.prompt)),Array.isArray(r.region)&&(i.region=function e(t){let r={0:"x",1:"y",2:"w",3:"h"},i=t.map((t,i)=>{if(Array.isArray(t))return e(t);let a=r[i];return`${a}_${t}`}).join(";");return`(${i})`}(r.region)),!0===r.multiple&&(i.multiple="true"),!0===r.removeShadow&&(i["remove-shadow"]="true")}let a=Object.entries(i).filter(([,e])=>!!e).map(([e,t])=>`${e}_${t}`).join(";");return a&&e.addTransformation(`e_gen_remove:${a}`),{}}},{props:ii,assetTypes:["image","images"],plugin:({cldAsset:e,options:t})=>{let{replace:r=null}=t;if(r){let t,i,a=!1;Array.isArray(r)?(t=r[0],i=r[1],a=r[2]||!1):(t=r.from,i=r.to,a=r.preserveGeometry||!1);let n=[`e_gen_replace:from_${t}`,`to_${i}`];a&&n.push(`preserve-geometry_${a}`),e.effect(n.join(";"))}return{}}},{props:ir,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:r}=e,{replaceBackground:i}=r;if(!i||void 0===i)return{};let a=[];"object"==typeof i?(void 0!==i.prompt&&a.push(`prompt_${i.prompt}`),"number"==typeof i.seed&&a.push(`seed_${i.seed}`)):"string"==typeof i&&a.push(`prompt_${i}`);let n="e_gen_background_replace";return a.length>0&&(n=`${n}:${a.join(";")}`),t.addTransformation(n),{}}},{props:ia,assetTypes:["image","images"],plugin:({cldAsset:e,options:t})=>{let{restore:r=!1}=t;return r&&e.effect("e_gen_restore"),{}}},{props:r$,assetTypes:["image","images","video","videos"],plugin:e=>{let{cldAsset:t,options:r}=e,i=[];"string"==typeof r.crop||void 0===r.crop?i.push({aspectRatio:r.aspectRatio,height:r.height,gravity:r.gravity,type:r.crop||rC,width:r.width,zoom:r.zoom}):"object"!=typeof r.crop||Array.isArray(r.crop)?Array.isArray(r.crop)&&(i=r.crop):i.push(r.crop),1===i.length&&!0===i[0].source&&i.push({aspectRatio:r.aspectRatio,width:r.width,height:r.height,gravity:r.gravity,type:rC,zoom:r.zoom});let a=[],n=[];for(let e of i){let t={width:e.width,height:e.height};void 0===t.width&&void 0===e.aspectRatio&&(t.width=r.width,void 0===t.height&&(t.height=r.height));let i=function(e){let{aspectRatio:t,type:r,x:i,y:a,zoom:n}=e,s=e.gravity,o=rj(e.height),l=rj(e.width),d=[],u=t&&rT.includes(r),c="number"==typeof i||"string"==typeof i,p="number"==typeof a||"string"==typeof a,h=c||p;return r&&(o||l||u||h)&&d.push(`c_${r}`),u&&d.push(`ar_${t}`),l&&d.push(`w_${l}`),["limit"].includes(r)||"number"!=typeof o||d.push(`h_${o}`),c&&d.push(`x_${i}`),p&&d.push(`y_${a}`),!s&&rA.includes(r)&&!h&&(s="auto"),s&&("auto"!==s||rA.includes(r)?d.push(`g_${s}`):console.warn(`Auto gravity can only be used with crop modes: ${rA.join(", ")}. Not applying gravity.`)),n&&("auto"!==n||rN.includes(r)?d.push(`z_${n}`):console.warn(`Zoom can only be used with crop modes: ${rN.join(", ")}. Not applying zoom.`)),d}({aspectRatio:e.aspectRatio,gravity:e.gravity,type:e.type||rC,x:e.x,y:e.y,zoom:e.zoom,...t});i.length>0&&(!0===e.source?n.push(i):a.push(i))}n.forEach(e=>{e.length>0&&t.addTransformation(e.join(","))});let s={options:{}};return s.options&&a.length>0&&(s.options.resize=a.map(e=>e.join(",")).join("/")),s}},{props:rU,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{preserveTransformations:r=!1}=t;if(r)try{(function(e){let{transformations:t=[]}=_(e)||{};return t.map(e=>e.split(","))})(t.src).map(e=>e.join(",")).flat().forEach(t=>{e.addTransformation(t)})}catch(e){console.warn(`Failed to preserve transformations: ${e.message}`)}return{}}},{props:rB,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{rawTransformations:r=[]}=t;return Array.isArray(r)||(r=[r]),r.forEach(t=>{e.addTransformation(t)}),{}}},{props:il,assetTypes:["video","videos"],plugin:e=>{let{cldAsset:t,options:r}=e,{streamingProfile:i}=r;return"string"==typeof i&&t.addTransformation(`sp_${i}`),{}}},{props:r1,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:r}=e,{defaultImage:i}=r;if("string"==typeof i){v(i)||console.warn("The defaultImage prop may be missing a format and must include it along with the public ID. (Ex: myimage.jpg)");let e=i.replace(/\//g,":");t.addTransformation(`d_${e}`)}return{}}},{props:rI,assetTypes:["image","images","video","videos"],plugin:e=>{let{cldAsset:t,options:r}=e;function i({effects:e,options:t}){return Object.keys(e).map(r=>{let{prefix:i,qualifier:a,converters:n}=e[r];return rO({qualifier:a,prefix:i,value:t?.[r],converters:n})})}return i({effects:rk,options:r}).filter(e=>
1!!e).forEach(e=>t.effect(e)),Array.isArray(r?.effects)&&r?.effects.forEach(e=>{let r=i({effects:rk,options:e}).filter(e=>!!e).join(",");t.effect(r)}),{}}},{props:r3,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:r}=e,{fillBackground:i}=r;if(void 0===i)return{};let a=rj(r.width),n=rj(r.height),s=r.aspectRatio;if(s||"number"!=typeof n||"number"!=typeof a||(s=`${a}:${n}`),!s)return{};if(!0===i){let e=["b_gen_fill",`ar_${s}`,"c_pad"];t.addTransformation(e.join(","))}else if("object"==typeof i){let{crop:e="pad",gravity:r,prompt:a}=i,n=[`ar_${s}`,`c_${e}`];"string"==typeof a?n.unshift(`b_gen_fill:${a}`):n.unshift("b_gen_fill"),"string"==typeof r&&n.push(`g_${r}`),t.addTransformation(n.join(","))}return{}}},{props:rP,assetTypes:["image","images","video","videos"],plugin:e=>{let{cldAsset:t,options:r}=e,{flags:i=[]}=r;return Array.isArray(i)&&i.length>0?i.forEach(e=>{let{success:r}=rR.safeParse(e);r&&t.addFlag(e)}):"object"==typeof i&&Object.entries(i).forEach(([e,r])=>{let{success:i}=rR.safeParse(e);i&&t.addTransformation(`fl_${e}:${r}`)}),{}}},{props:rL,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{text:r,overlays:i=[]}=t;function a({publicId:t,url:r,position:i,text:n,effects:s=[],appliedEffects:o=[],flags:l=[],appliedFlags:d=[],...u}){let c,h="string"==typeof t,f="string"==typeof r,m="object"==typeof n||"string"==typeof n,g="object"==typeof i;if(!h&&!f&&!m)return void console.warn("An overlay is missing Public ID, URL, or Text");if(m)c="l_text";else if(h)c=`l_${t.replace(/\//g,":")}`;else f&&(c=`l_fetch:${"function"==typeof btoa?btoa(r):void 0!==p.Buffer?p.Buffer.from(r).toString("base64"):void 0}`);let y=[],_=[];if(Object.keys(u).forEach(e=>{if(!b(rb,e))return;let{qualifier:t,converters:r}=rb[e],i=rO({qualifier:t,value:u[e],converters:r});i&&y.push(i)}),s.forEach(e=>{Object.keys(e).forEach(t=>{let r=rb[t]||rk[t]||rx[t];if(!r)return;let{qualifier:i,prefix:a,converters:n}=r,s=rO({qualifier:i,prefix:a,value:e[t],converters:n});s&&y.push(s)})}),o.forEach(e=>{Object.keys(e).forEach(t=>{let r=rb[t]||rk[t]||rx[t];if(!r)return;let{qualifier:i,prefix:a,converters:n}=r,s=rO({qualifier:i,prefix:a,value:e[t],converters:n});s&&_.push(s)})}),(Array.isArray(l)?l:[l]).forEach(e=>{let{success:t}=ri.safeParse(e);t&&y.push(`fl_${e}`)}),(Array.isArray(d)?d:[d]).forEach(e=>{let{success:t}=ri.safeParse(e);t&&_.push(`fl_${e}`)}),m){"string"==typeof n&&(n={...rD,text:n});let e=[];
1if("object"==typeof n)for(let t of function(e=[],t,r="asc"){let i=[...e];return"string"!=typeof t?i:(i=i.sort(function(e,r){let i=e[t],a=r[t];return("string"==typeof i&&(i=i.toLowerCase()),"string"==typeof a&&(a=a.toLowerCase()),i<a)?-1:+(i>a)}),"desc"===r)?i.reverse():i}(Object.keys(n).filter(e=>b(rw,e)).map(e=>{let t=n&&b(n,e)&&n[e];return{...rw[e],key:e,value:t,order:rw[e].order||99}}),"order")){let{key:r,value:i,qualifier:a,location:n,converters:s}=t,o=i;s?.forEach(({test:e,convert:t})=>{e(i)&&(o=t(i))}),"primary"===n?y.push(`${a}_${o}`):"self"===a?e.push(r):a?e.push(`${a}_${o}`):e.push(o)}let t={".":"%2E",",":"%2C","/":"%2F"},r=n?.text||"";"string"==typeof r&&Object.keys(t)?.forEach(e=>{r=r?.replace(e,t[e])}),c=`${c}:${e.join("_")}:${r}`}g&&Object.keys(i).forEach(e=>{if(!b(rx,e)||!b(i,e))return;let{qualifier:t,converters:r}=rx[e],a=rO({qualifier:t,value:i[e],converters:r});a&&_.push(a)}),y.length>0&&(c=`${c},${y.join(",")}`),c=`${c}/fl_layer_apply,fl_no_overflow`,_.length>0&&(c=`${c},${_.join(",")}`),e.addTransformation(c)}return Array.isArray(i)&&i.forEach(a),"string"==typeof r?a({text:Object.assign({},rD,{text:r})}):"object"==typeof r&&a({text:Object.assign({},rD,r)}),{}}},{props:rW,assetTypes:["image","images"],plugin:({cldAsset:e,options:t})=>{let{sanitize:r=!0}=t;return r&&("svg"===t.format||e.publicID.endsWith(".svg"))&&e.effect("fl_sanitize"),{}}},{props:rJ,strict:!0,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{transformations:r,namedTransformations:i}=t;r&&"development"===d.default.env.NODE_ENVIRONMENT&&console.warn("The transformations prop is deprecated. Please use namedTransformations instead.");let a=i||r||[];return Array.isArray(a)||(a=[a]),a.forEach(t=>{e.addTransformation(`t_${t}`)}),{}}},{props:rH,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{seoSuffix:r}=t;return"string"==typeof r&&("fetch"===t.deliveryType?console.warn("SEO suffix is not supported with a delivery type of fetch"):e.setSuffix(r)),{}}},{props:rQ,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{underlay:r,underlays:i=[]}=t;function a({publicId:t,type:r,position:i,effects:n=[],flags:s=[],appliedFlags:o=[],...l}){let d="object"==typeof i;if("string"!=typeof t)return void console.warn(`An ${r} is missing a Public ID`);let u=`u_${t.replace(/\//g,":")}`,c=[],p=[];Object.keys(l).forEach(e=>{if(!b(rb,e))return;let{qualifier:t}=rb[e];c.push(`${t}_${l[e]}`)}),n.forEach(e=>{Object.keys(e).forEach(t=>{if(!b(rb,t))return;let{qualifier:r}=rb[t];c.push(`${r}_${e[t]}`)})}
1),d&&Object.keys(i).forEach(e=>{if(!b(rx,e))return;let{qualifier:t}=rx[e];p.push(`${t}_${i[e]}`)}),(Array.isArray(s)?s:[s]).forEach(e=>{let{success:t}=ri.safeParse(e);t&&c.push(`fl_${e}`)}),(Array.isArray(o)?o:[o]).forEach(e=>{let{success:t}=ri.safeParse(e);t&&p.push(`fl_${e}`)}),u=`${u},${c.join(",")}`,u=`${u}/fl_layer_apply,fl_no_overflow`,p.length>0&&(u=`${u},${p.join(",")}`),e.addTransformation(u)}return Array.isArray(i)&&i.forEach(a),"string"==typeof r&&a({publicId:r,crop:"fill",width:"1.0",height:"1.0",flags:["relative"]}),{}}},{props:rX,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{version:r}=t;return("string"==typeof r||"number"==typeof r)&&e.setVersion(`${r}`.replace("v","")),{}}},{props:is,assetTypes:["image","images"],plugin:({cldAsset:e,options:t})=>{let{zoompan:r=!1}=t,i={format:void 0};if(!0===r)e.effect("e_zoompan");else if("string"==typeof r)"loop"===r?(e.effect("e_zoompan"),e.effect("e_loop")):e.effect(`e_zoompan:${r}`);else if("object"==typeof r){let t,i="e_zoompan";"string"==typeof r.options&&(i=`${i}:${r.options}`),e.effect(i),!0===r.loop?t="e_loop":("string"==typeof r.loop||"number"==typeof r.loop)&&(t=`e_loop:${r.loop}`),t&&e.effect(t)}return!1!==r&&(i.format="auto:animated"),{options:i}}}],ih=tj.union([io,id]).describe(JSON.stringify({text:"Asset options (Image or Video) that define delivery URL including public ID and transformations.",path:"/url-loader/assetoptions"}));function im({options:e,config:t={},analytics:r}){let i,a;!1===r&&(void 0===t?.url&&(t.url={}),t.url.analytics=!1);let n=new t5(t);if("string"!=typeof e?.src)throw Error("Failed to construct Cloudinary URL: Missing source (src) in options.");e?.assetType||(e.assetType="image");let s=[];ip.forEach(({props:e})=>{Object.keys(e).forEach(e=>{if(s.includes(e))throw Error(`Option ${e} already exists!`);s.push(e)})});let o={};if("string"==typeof e.src&&/^https?:\/\//.test(e.src))try{let t=_(e.src);i=t?.publicId,o.seoSuffix=t?.seoSuffix,o.version=t?.version}catch(e){}if(i||(i=e.src),Object.keys(o).forEach(t=>{b(e,t)||(e[t]=o[t])}),e.version??(e.version=1),["image","images"].includes(e.assetType)?a=n.image(i):["video","videos"].includes(e.assetType)&&(a=n.video(i)),void 0===a)throw Error("Invalid asset type.");let l={};if(ip.forEach(({plugin:t,assetTypes:r,props:i,strict:n})=>{let s=e?.assetType!==void 0&&r.includes(e.assetType),o=Object.keys(i),d=Object.keys(e),u=o.map(e=>d.includes(e)).filter(e=>!!e).length>0;if(!s){u&&console.warn(`One of the following props [${o.join(", ")}] was used with an unsupported asset type [${e?.assetType}]`);return}if(e.strictTransformations&&!n){u&&console.warn(`One of the following props [${o.join(", ")}] was used that is not supported with Strict Transformations.`);return}let{options:c}=t({cldAsset:a,options:e})||{options:void 0};Object.assign(l,c)}),"string"==typeof l.resize&&a.addTransformation(l.resize),a.setDeliveryType(e?.deliveryType||"upload"),!e.strictTransformations){if(e?.dpr){let t=e.dpr;"number"==typeof t&&(t=t.toFixed(1)),a.addTransformation(`dpr_${t}`)}let t=e?.format==="default",r=ig("f_",a,{matchType:"startsWith"}),i=r&&void 0!==e?.format;
1(l?.format||!t&&(!r||i))&&a.format(e?.format||l?.format||"auto");let n=e?.quality==="default",s=ig("q_",a,{matchType:"startsWith"}),o=s&&void 0!==e?.quality;n||s&&!o||a.quality(e?.quality||"auto")}return a.toURL({trackedAnalytics:r})}function ig(e,t,r){if(void 0===t.transformation)return;let{matchType:i="includes"}=r||{};return t.transformation.actions.flatMap(e=>e.toString().split("/").flatMap(e=>e.split(","))).filter(t=>"startsWith"===i?t.startsWith(e):t.includes(e)).length>0}tj.object({analytics:tj.union([iu,tj.boolean()]).describe(JSON.stringify({text:"Tech, dependency, and feature identifiers for tracking SDK usage related to Cloudinary.",path:"/url-loader/analyticsoptions"})).optional(),config:ic.describe(JSON.stringify({text:"Configuration parameters for environment and Cloudinary account.",url:"https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters",path:"/url-loader/analyticsoptions"})).optional(),options:ih}),e.s(["constructCloudinaryUrl",0,im,"effects",0,rk,"position",0,rx,"primary",0,rb,"text",0,rw,"transformationPlugins",0,ip],35124);var iy=e.i(552732);e.i(874715);var i_=e.i(295177),iv="u">typeof d.default&&!!d.default.env&&"cli"===d.default.env.CLOUDINARY_SOURCE,ib=iv?"B":"A",ix=iv?"I":"V",iw=iO(iy.default.version),ik=iO("6.19.3");function iO(e){let t=e;return t.includes("-")&&(t=t.split("-")[0]),t}function iS(e){let t=e?.cloud?.cloudName??"paketleken-se";if(!t)throw Error("A Cloudinary Cloud name is required, please make sure NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME is set and configured in your environment.");let r=e?.cloud?.apiKey??d.default.env.NEXT_PUBLIC_CLOUDINARY_API_KEY,i=e?.url?.secureDistribution??"res.charma.io",a=e?.url?.privateCdn??"true";return Object.assign({cloud:{...e?.cloud,apiKey:r,cloudName:t},url:{...e?.url,secureDistribution:i,privateCdn:a}},e)}function ij(e,t,r){return im({options:e,config:iS(t),analytics:Object.assign({product:ib,sdkCode:ix,sdkSemver:ik,techVersion:iw,feature:""},r)})}var iT=(0,u.forwardRef)(function(e,t){let r=!1,i=["assetType","config","deliveryType","strictTransformations"];ip.forEach(({props:e})=>{Object.keys(e).forEach(e=>{if(i.includes(e))throw Error(`Option ${e} already exists!`);i.push(e)})});let a={alt:e.alt,src:e.src};Object.keys(e).filter(e=>"string"==typeof e&&!i.includes(e)).forEach(t=>a[t]=e[t]);let n=Object.keys(a).map(e=>`${e}:${a[e]}`).join(";"),[s,o]=(0,u.useState)(n),l={};async function d(t){let i=!0;if(r)return;if(r=!0,"function"==typeof e.onError){let r=e.onError(t);"boolean"==typeof r&&!1===r&&(i=!1)}else"boolean"==typeof e.onError&&!1===e.onError&&(i=!1);if(!1===i)return;let a=t.target,s=await h({src:a.src});s.error,s.success&&o(`${n};${Date.now()}`)}i.forEach(t=>{let r=e[t];r&&(l[t]=r)}),!0===e.unoptimized&&(a.src=ij({...l,width:a.width,height:a.height,src:a.src,format:"default",quality:"default"},e.config));let p=(0,u.useCallback)(d,[h,n]),f=c.default;return"default"in f&&(f=f.default),u.default.createElement(f,{key:s,...a,loader:t=>(function({loaderOptions:e,imageProps:t,cldOptions:r,cldConfig:i={}}){let a={...t,...r};if(a.width="string"==typeof a.width?parseInt(a.width):a.width,a.height="string"==typeof a.height?parseInt(a.height):a.height,"number"==typeof e?.width&&"number"==typeof a.width&&e.width!==a.width){let t=e.width/a.width;a.width=e.width,"number"==typeof a.height&&(a.height=Math.floor(a.height*t))}else"number"==typeof e?.width&&"number"!=typeof a?.width&&(a.width=e?.width);return ij(a,i)})({loaderOptions:t,imageProps:a,cldOptions:l,cldConfig:e.config}),onError:p,ref:t})});e.s(["CldImage",0,iT,"getCldImageUrl",0,ij],351098)},552732,(e,t,r)=>{t.exports={name:"next",version:"16.3.1",description:"The React Framework",main:"./dist/server/next.js",license:"MIT",repository:"vercel/next.js",bugs:"https://github.com/vercel/next.js/issues",homepage:"https://nextjs.org",types:"index.d.ts",files:["AGENTS.md","dist","app.js","app.d.ts","babel.js","babel.d.ts","client.js","client.d.ts","compat","cache.js","cache.d.ts","constants.js","constants.d.ts","document.js","document.d.ts","dynamic.js","dynamic.d.ts","error.js","error.d.ts","future","legacy","script.js","script.d.ts","server.js","server.d.ts","head.js","head.d.ts","image.js","image.d.ts","link.js","link.d.ts","offline.js","offline.d.ts","form.js","form.d.ts","router.js","router.d.ts","jest.js","jest.d.ts","og.js","og.d.ts","root-params.js","root-params.d.ts","types.d.ts","types.js","index.d.ts","types/global.d.ts","types/compiled.d.ts","image-types/global.d.ts","navigation-types/navigation.d.ts","navigation-types/compat/navigation.d.ts","font","navigation.js","navigation.d.ts","headers.js","headers.d.ts","navigation-types","web-vitals.js","web-vitals.d.ts","experimental/testing/server.js","experimental/testing/server.d.ts","experimental/testmode/playwright.js","experimental/testmode/playwright.d.ts","experimental/testmode/playwright/msw.js","experimental/testmode/playwright/msw.d.ts","experimental/testmode/proxy.js","experimental/testmode/proxy.d.ts"],bin:{next:"./dist/bin/next"},dependencies:{"@next/env":"16.3.1","@swc/helpers":"0.5.23","baseline-browser-mapping":"^2.9.19","caniuse-lite":"^1.0.30001579",postcss:"8.5.23","styled-jsx":"5.1.6"}
1,peerDependencies:{"@opentelemetry/api":"^1.1.0","@playwright/test":"^1.51.1","babel-plugin-react-compiler":"*",react:"^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0","react-dom":"^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0",sass:"^1.3.0"},peerDependenciesMeta:{"babel-plugin-react-compiler":{optional:!0},sass:{optional:!0},"@opentelemetry/api":{optional:!0},"@playwright/test":{optional:!0}},optionalDependencies:{sharp:"^0.35.3","@next/swc-darwin-arm64":"16.3.1","@next/swc-darwin-x64":"16.3.1","@next/swc-linux-arm64-gnu":"16.3.1","@next/swc-linux-arm64-musl":"16.3.1","@next/swc-linux-x64-gnu":"16.3.1","@next/swc-linux-x64-musl":"16.3.1","@next/swc-win32-arm64-msvc":"16.3.1","@next/swc-win32-x64-msvc":"16.3.1"},keywords:["react","framework","nextjs","web","server","node","front-end","backend","cli","vercel"],engines:{node:">=20.9.0"}}},874715,(e,t,r)=>{"use strict";function i(){return null}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},295177,(e,t,r)=>{t.exports=e.r(320253)}]);

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.