1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7891],{6173:(e,t,r)=>{"use strict";r.d(t,{z:()=>u});var i=r(21462),a=r(79395),s=r(45945),n=r(16230),o=r(81491),l=r(72686),d=r(36408),c=function(e){var t=e.boldPrefixText,r=e.standardText,n=e.height,o=void 0===n?"spacing-20":n;return t&&r?i.createElement(s.J,{$color:"text-primary",$minHeight:o,$alignItems:"center"},i.createElement(a.f,null,i.createElement(l.W,{$font:"body-2-bold"},i.createElement(d.C,{string:t})),i.createElement(l.W,{$font:"body-2"},"\xa0","-","\xa0",i.createElement(d.C,{string:r})))):r?i.createElement(s.J,{$minHeight:o,$alignItems:"center"},i.createElement(l.W,{$color:"text-primary",$font:"body-2"},i.createElement(d.C,{string:r}))):null},u=function(e){var t=e.standardText,r=e.boldPrefixText,a=e.feedbackState,l=e.imageURL,d=e.imageAlt;if(r&&!t)throw Error("standardText must be provided if boldPrefixText is provided");if(!t&&!l)throw Error("Either standardText or imageURL must be provided");if(l&&!d)throw Error("Image URL provided without alt text");return i.createElement(s.J,{$flexDirection:"column",$alignItems:"start",$gap:"spacing-8"},i.createElement(s.J,{$background:"correct"===a?"bg-decorative5-subdued":"incorrect"===a?"bg-neutral":null,$pa:"spacing-8",$borderRadius:"border-radius-m",$width:"fit-content",$gap:"spacing-12",$alignItems:"center"},a&&i.createElement(n.vm,{iconName:"correct"===a?"tick":"cross","data-testid":"correct"===a?"tick":"cross",$width:"spacing-32",$height:"spacing-32",$colorFilter:"correct"===a?"text-primary":"icon-error"}),i.createElement(c,{height:"spacing-32",standardText:t,boldPrefixText:r})),l&&d&&i.createElement(o.RN,{src:l,alt:d,$width:"spacing-160",$height:"spacing-160",$background:"bg-neutral"}))}},14268:(e,t,r)=>{var i=r(64339),a=r(9862),s=r(47553);e.exports=function(e){return"string"==typeof e||!a(e)&&s(e)&&"[object String]"==i(e)}},40542:(e,t,r)=>{"use strict";let i;r.d(t,{P:()=>rD,d:()=>rU});var a,s,n,o,l=r(82643),d=r(21462),c=r(3045);async function u(e){try{let t=await fetch(e.src);if(423===t.status)return await new Promise(e=>setTimeout(e,500)),await u(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"}}}r(72076).hp;var p=r(72076).hp,h=/\/v\d+\//,f=/\.(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,m=/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]+)$/,g=["images","videos","files"];function y(e){if("string"!=typeof e)throw Error("Failed to parse URL - Invalid src: Is not a string");if(!h.test(e))throw Error("Failed to parse URL - Invalid src: Does not include version (Ex: /v1234/)");let[t,r]=e.split("?"),i=_(t),a=t;i&&(a=t.replace(RegExp(`${i}$`),""));let s=a.match(m),n=s?.groups?.transformations?.split("/").filter(e=>!!e),o={...s?.groups,format:i,seoSuffix:void 0,transformations:n||[],queryParams:{},version:s?.groups?.version?parseInt(s.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&&g.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 _(e){let t=e.match(f);if(null!==t)return t[0]}function v(e,t){return Object.prototype.hasOwnProperty.call(e,t)}!function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},e.getValidEnumValues=t=>{let r=e.objectKeys(t).filter(e=>
1"number"!=typeof t[t[e]]),i={};for(let e of r)i[e]=t[e];return e.objectValues(i)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.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},e.find=(e,t)=>{for(let r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(a||(a={})),(s||(s={})).mergeShapes=(e,t)=>({...e,...t});let b=a.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),x=e=>{switch(typeof e){case"undefined":return b.undefined;case"string":return b.string;case"number":return Number.isNaN(e)?b.nan:b.number;case"boolean":return b.boolean;case"function":return b.function;case"bigint":return b.bigint;case"symbol":return b.symbol;case"object":if(Array.isArray(e))return b.array;if(null===e)return b.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return b.promise;if("undefined"!=typeof Map&&e instanceof Map)return b.map;if("undefined"!=typeof Set&&e instanceof Set)return b.set;if("undefined"!=typeof Date&&e instanceof Date)return b.date;return b.object;default:return b.unknown}}
1,w=a.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class k extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},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 k))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,a.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()}}k.create=e=>new k(e);let O=(e,t)=>{let r;switch(e.code){case w.invalid_type:r=e.received===b.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case w.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,a.jsonStringifyReplacer)}`;break;case w.unrecognized_keys:r=`Unrecognized key(s) in object: ${a.joinValues(e.keys,", ")}`;break;case w.invalid_union:r="Invalid input";break;case w.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${a.joinValues(e.options)}`;break;case w.invalid_enum_value:r=`Invalid enum value. Expected ${a.joinValues(e.options)}, received '${e.received}'`;break;case w.invalid_arguments:r="Invalid function arguments";break;case w.invalid_return_type:r="Invalid function return type";break;case w.invalid_date:r="Invalid date";break;case w.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}"`:a.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case w.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 w.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 w.custom:r="Invalid input";break;case w.invalid_intersection_types:r="Intersection results could not be merged";break;case w.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case w.not_finite:r="Number must be finite";break;default:r=t.defaultError,a.assertNever(e)}return{message:r}};!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(n||(n={}));let S=e=>{let{data:t,path:r,errorMaps:i,issueData:a}=e,s=[...r,...a.path||[]],n={...a,path:s};if(void 0!==a.message)return{...a,path:s,message:a.message};let o="";for(let e of i.filter(e=>!!e).slice().reverse())o=e(n,{data:t,defaultError:o}).message;return{...a,path:s,message:o}};function A(e,t){let r=S({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,O,void 0].filter(e=>!!e)});e.common.issues.push(r)}class T{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 N;"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 T.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 N;"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 N=Object.freeze({status:"aborted"}),C=e=>({status:"dirty",value:e}),$=e=>
1({status:"valid",value:e}),j=e=>"undefined"!=typeof Promise&&e instanceof Promise;class E{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 R=(e,t)=>{if("valid"===t.status)return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new k(e.common.issues);return this._error=t,this._error}}};function I(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:s}=e;return"invalid_enum_value"===t.code?{message:s??a.defaultError}:void 0===a.data?{message:s??i??a.defaultError}:"invalid_type"!==t.code?{message:a.defaultError}:{message:s??r??a.defaultError}},description:a}}class Z{get description(){return this._def.description}_getType(e){return x(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:x(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new T,ctx:{common:e.parent.common,data:e.data,parsedType:x(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(j(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:x(e)},i=this._parseSync({data:e,path:r.path,parent:r});return R(r,i)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:x(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return"valid"===r.status?{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=>"valid"===e.status?{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:x(e)},i=this._parse({data:e,path:r.path,parent:r});return R(r,await (j(i)?i:Promise.resolve(i)))}refine(e,t){return this._refinement((r,i)=>{let a=e(r),s=()=>i.addIssue({code:w.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(r):t});return"undefined"!=typeof Promise&&a instanceof Promise?a.then(e=>!!e||(s(),!1)):!!a||(s(),!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 eN({schema:this,typeName:o.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 eC.create(this,this._def)}nullable(){return e$.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return eu.create(this)}promise(){return eT.create(this,this._def)}or(e){return eh.create([this,e],this._def)}and(e){return eg.create(this,e,this._def)}transform(e){return new eN({...I(this._def),schema:this,typeName:o.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ej({...I(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:o.ZodDefault})}brand(){return new eI({typeName:o.ZodBranded,type:this,...I(this._def)})}catch(e){return new eE({...I(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:o.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eZ.create(this,e)}readonly(){return eP.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let P=/^c[^\s-]{8,}
1$/i,q=/^[0-9a-z]+$/,J=/^[0-9A-HJKMNP-TV-Z]{26}$/i,z=/^[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,F=/^[a-z0-9_-]{21}$/i,L=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,M=/^[-+]?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)?)??$/,D=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,U=/^(?:(?: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])$/,V=/^(?:(?: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])$/,B=/^(([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]))$/,W=/^(([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])$/,K=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,H=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Q="((\\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])))",Y=RegExp(`^${Q}$`);function G(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}`}class X extends Z{_parse(e){var t,r,s,n;let o;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==b.string){let t=this._getOrReturnCtx(e);return A(t,{code:w.invalid_type,expected:b.string,received:t.parsedType}),N}let l=new T;for(let d of this._def.checks)if("min"===d.kind)e.data.length<d.value&&(A(o=this._getOrReturnCtx(e,o),{code:w.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&&(A(o=this._getOrReturnCtx(e,o),{code:w.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?A(o,{code:w.too_big,maximum:d.value,type:"string",inclusive:!0,exact:!0,message:d.message}):r&&A(o,{code:w.too_small,minimum:d.value,type:"string",inclusive:!0,exact:!0,message:d.message}),l.dirty())}else if("email"===d.kind)D.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"email",code:w.invalid_string,message:d.message}),l.dirty());else if("emoji"===d.kind)i||(i=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),i.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"emoji",code:w.invalid_string,message:d.message}),l.dirty());else if("uuid"===d.kind)z.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"uuid",code:w.invalid_string,message:d.message}),l.dirty());else if("nanoid"===d.kind)F.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"nanoid",code:w.invalid_string,message:d.message}),l.dirty());else if("cuid"===d.kind)P.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"cuid",code:w.invalid_string,message:d.message}),l.dirty());else if("cuid2"===d.kind)q.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"cuid2",code:w.invalid_string,message:d.message}),l.dirty());else if("ulid"===d.kind)J.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"ulid",code:w.invalid_string,message:d.message}),l.dirty());else if("url"===d.kind)try{new URL(e.data)}catch{A(o=this._getOrReturnCtx(e,o),{validation:"url",code:w.invalid_string,message:d.message}),l.dirty()}else"regex"===d.kind?(d.regex.lastIndex=0,d.regex.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"regex",code:w.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)||(A(o=this._getOrReturnCtx(e,o),{code:w.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)||(A(o=this._getOrReturnCtx(e,o),{code:w.invalid_string,validation:{startsWith:d.value},message:d.message}),l.dirty()):"endsWith"===d.kind?e.data.endsWith(d.value)||(A(o=this._getOrReturnCtx(e,o),{code:w.invalid_string,validation:{endsWith:d.value},message:d.message}),l.dirty()):"datetime"===d.kind?(function(e){let t=`${Q}T${G(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)})(d).test(e.data)||(A(o=this._getOrReturnCtx(e,o),{code:w.invalid_string,validation:"datetime",message:d.message}),l.dirty()):"date"===d.kind?Y.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{code:w.invalid_string,validation:"date",message:d.message}),l.dirty()):"time"===d.kind?RegExp(`^${G(d)}$`).test(e.data)||(A(o=this._getOrReturnCtx(e,o),{code:w.invalid_string,validation:"time",message:d.message}),l.dirty()):"duration"===d.kind?M.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"duration",code:w.invalid_string,message:d.message}),l.dirty()):"ip"===d.kind?(t=e.data,!(("v4"===(r=d.version)||!r)&&U.test(t)||("v6"===r||!r)&&B.test(t))&&1&&(A(o=this._getOrReturnCtx(e,o),{validation:"ip",code:w.invalid_string,message:d.message}),l.dirty())):"jwt"===d.kind?!function(e,t){if(!L.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)&&(A(o=this._getOrReturnCtx(e,o),{validation:"jwt",code:w.invalid_string,message:d.message}),l.dirty()):"cidr"===d.kind?(s=e.data,!(("v4"===(n=d.version)||!n)&&V.test(s)||("v6"===n||!n)&&W.test(s))&&1&&
1(A(o=this._getOrReturnCtx(e,o),{validation:"cidr",code:w.invalid_string,message:d.message}),l.dirty())):"base64"===d.kind?K.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"base64",code:w.invalid_string,message:d.message}),l.dirty()):"base64url"===d.kind?H.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"base64url",code:w.invalid_string,message:d.message}),l.dirty()):a.assertNever(d);return{status:l.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:w.invalid_string,...n.errToObj(r)})}_addCheck(e){return new X({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...n.errToObj(e)})}url(e){return this._addCheck({kind:"url",...n.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...n.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...n.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...n.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...n.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...n.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...n.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...n.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...n.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...n.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...n.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...n.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,...n.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,...n.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...n.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...n.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...n.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...n.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...n.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...n.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...n.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...n.errToObj(t)})}nonempty(e){return this.min(1,n.errToObj(e))}trim(){return new X({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new X({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new X({...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}}X.create=e=>new X({checks:[],typeName:o.ZodString,coerce:e?.coerce??!1,...I(e)});class ee extends Z{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)!==b.number){let t=this._getOrReturnCtx(e);return A(t,{code:w.invalid_type,expected:b.number,received:t.parsedType}),N}let r=new T;for(let i of this._def.checks)"int"===i.kind?a.isInteger(e.data)||(A(t=this._getOrReturnCtx(e,t),{code:w.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(A(t=this._getOrReturnCtx(e,t),{code:w.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)&&(A(t=this._getOrReturnCtx(e,t),{code:w.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)&&(A(t=this._getOrReturnCtx(e,t),{code:w.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):"finite"===i.kind?Number.isFinite(e.data)||(A(t=this._getOrReturnCtx(e,t),{code:w.not_finite,message:i.message}),r.dirty()):a.assertNever(i);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,n.toString(t))}gt(e,t){return this.setLimit("min",e,!1,n.toString(t))}lte(e,t){return this.setLimit("max",e,!0,n.toString(t))}lt(e,t){return this.setLimit("max",e,!1,n.toString(t))}
1setLimit(e,t,r,i){return new ee({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:n.toString(i)}]})}_addCheck(e){return new ee({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:n.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:n.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:n.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:n.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:n.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:n.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:n.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:n.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:n.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&&a.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)}}ee.create=e=>new ee({checks:[],typeName:o.ZodNumber,coerce:e?.coerce||!1,...I(e)});class et extends Z{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)!==b.bigint)return this._getInvalidInput(e);let r=new T;for(let i of this._def.checks)"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(A(t=this._getOrReturnCtx(e,t),{code:w.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)&&(A(t=this._getOrReturnCtx(e,t),{code:w.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):"multipleOf"===i.kind?e.data%i.value!==BigInt(0)&&(A(t=this._getOrReturnCtx(e,t),{code:w.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):a.assertNever(i);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return A(t,{code:w.invalid_type,expected:b.bigint,received:t.parsedType}),N}gte(e,t){return this.setLimit("min",e,!0,n.toString(t))}gt(e,t){return this.setLimit("min",e,!1,n.toString(t))}lte(e,t){return this.setLimit("max",e,!0,n.toString(t))}lt(e,t){return this.setLimit("max",e,!1,n.toString(t))}setLimit(e,t,r,i){return new et({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:n.toString(i)}]})}_addCheck(e){return new et({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:n.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:n.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:n.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:n.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:n.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}}et.create=e=>new et({checks:[],typeName:o.ZodBigInt,coerce:e?.coerce??!1,...I(e)});class er extends Z{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==b.boolean){let t=this._getOrReturnCtx(e);return A(t,{code:w.invalid_type,expected:b.boolean,received:t.parsedType}),N}return $(e.data)}}er.create=e=>new er({typeName:o.ZodBoolean,coerce:e?.coerce||!1,...I(e)});class ei extends Z{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==b.date){let t=this._getOrReturnCtx(e);return A(t,{code:w.invalid_type,expected:b.date,received:t.parsedType}),N}if(Number.isNaN(e.data.getTime()))return A(this._getOrReturnCtx(e),{code:w.invalid_date}),N;let r=new T;for(let i of this._def.checks)"min"===i.kind?e.data.getTime()<i.value&&(A(t=this._getOrReturnCtx(e,t),{code:w.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):"max"===i.kind?e.data.getTime()>i.value&&(A(t=this._getOrReturnCtx(e,t),{code:w.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):a.assertNever(i);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ei({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:n.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:n.toString(t)})}
1get 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}}ei.create=e=>new ei({checks:[],coerce:e?.coerce||!1,typeName:o.ZodDate,...I(e)});class ea extends Z{_parse(e){if(this._getType(e)!==b.symbol){let t=this._getOrReturnCtx(e);return A(t,{code:w.invalid_type,expected:b.symbol,received:t.parsedType}),N}return $(e.data)}}ea.create=e=>new ea({typeName:o.ZodSymbol,...I(e)});class es extends Z{_parse(e){if(this._getType(e)!==b.undefined){let t=this._getOrReturnCtx(e);return A(t,{code:w.invalid_type,expected:b.undefined,received:t.parsedType}),N}return $(e.data)}}es.create=e=>new es({typeName:o.ZodUndefined,...I(e)});class en extends Z{_parse(e){if(this._getType(e)!==b.null){let t=this._getOrReturnCtx(e);return A(t,{code:w.invalid_type,expected:b.null,received:t.parsedType}),N}return $(e.data)}}en.create=e=>new en({typeName:o.ZodNull,...I(e)});class eo extends Z{constructor(){super(...arguments),this._any=!0}_parse(e){return $(e.data)}}eo.create=e=>new eo({typeName:o.ZodAny,...I(e)});class el extends Z{constructor(){super(...arguments),this._unknown=!0}_parse(e){return $(e.data)}}el.create=e=>new el({typeName:o.ZodUnknown,...I(e)});class ed extends Z{_parse(e){let t=this._getOrReturnCtx(e);return A(t,{code:w.invalid_type,expected:b.never,received:t.parsedType}),N}}ed.create=e=>new ed({typeName:o.ZodNever,...I(e)});class ec extends Z{_parse(e){if(this._getType(e)!==b.undefined){let t=this._getOrReturnCtx(e);return A(t,{code:w.invalid_type,expected:b.void,received:t.parsedType}),N}return $(e.data)}}ec.create=e=>new ec({typeName:o.ZodVoid,...I(e)});class eu extends Z{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),i=this._def;if(t.parsedType!==b.array)return A(t,{code:w.invalid_type,expected:b.array,received:t.parsedType}),N;if(null!==i.exactLength){let e=t.data.length>i.exactLength.value,a=t.data.length<i.exactLength.value;(e||a)&&(A(t,{code:e?w.too_big:w.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&&(A(t,{code:w.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&&(A(t,{code:w.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 E(t,e,t.path,r)))).then(e=>T.mergeArray(r,e));let a=[...t.data].map((e,r)=>i.type._parseSync(new E(t,e,t.path,r)));return T.mergeArray(r,a)}get element(){return this._def.type}min(e,t){return new eu({...this._def,minLength:{value:e,message:n.toString(t)}})}max(e,t){return new eu({...this._def,maxLength:{value:e,message:n.toString(t)}})}length(e,t){return new eu({...this._def,exactLength:{value:e,message:n.toString(t)}})}nonempty(e){return this.min(1,e)}}eu.create=(e,t)=>new eu({type:e,minLength:null,maxLength:null,exactLength:null,typeName:o.ZodArray,...I(t)});class ep extends Z{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=a.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==b.object){let t=this._getOrReturnCtx(e);return A(t,{code:w.invalid_type,expected:b.object,received:t.parsedType}),N}let{status:t,ctx:r}=this._processInputParams(e),{shape:i,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof ed&&"strip"===this._def.unknownKeys))for(let e in r.data)a.includes(e)||s.push(e);let n=[];for(let e of a){let t=i[e],a=r.data[e];n.push({key:{status:"valid",value:e},value:t._parse(new E(r,a,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof ed){let e=this._def.unknownKeys;
1if("passthrough"===e)for(let e of s)n.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)s.length>0&&(A(r,{code:w.unrecognized_keys,keys:s}),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 s){let i=r.data[t];n.push({key:{status:"valid",value:t},value:e._parse(new E(r,i,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of n){let r=await t.key,i=await t.value;e.push({key:r,value:i,alwaysSet:t.alwaysSet})}return e}).then(e=>T.mergeObjectSync(t,e)):T.mergeObjectSync(t,n)}get shape(){return this._def.shape()}strict(e){return n.errToObj,new ep({...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:n.errToObj(e).message??i}:{message:i}}}:{}})}strip(){return new ep({...this._def,unknownKeys:"strip"})}passthrough(){return new ep({...this._def,unknownKeys:"passthrough"})}extend(e){return new ep({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ep({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:o.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ep({...this._def,catchall:e})}pick(e){let t={};for(let r of a.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new ep({...this._def,shape:()=>t})}omit(e){let t={};for(let r of a.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new ep({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof ep){let r={};for(let i in t.shape){let a=t.shape[i];r[i]=eC.create(e(a))}return new ep({...t._def,shape:()=>r})}if(t instanceof eu)return new eu({...t._def,type:e(t.element)});if(t instanceof eC)return eC.create(e(t.unwrap()));if(t instanceof e$)return e$.create(e(t.unwrap()));if(t instanceof ey)return ey.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let r of a.objectKeys(this.shape)){let i=this.shape[r];e&&!e[r]?t[r]=i:t[r]=i.optional()}return new ep({...this._def,shape:()=>t})}required(e){let t={};for(let r of a.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof eC;)e=e._def.innerType;t[r]=e}return new ep({...this._def,shape:()=>t})}keyof(){return eO(a.objectKeys(this.shape))}}ep.create=(e,t)=>new ep({shape:()=>e,unknownKeys:"strip",catchall:ed.create(),typeName:o.ZodObject,...I(t)}),ep.strictCreate=(e,t)=>new ep({shape:()=>e,unknownKeys:"strict",catchall:ed.create(),typeName:o.ZodObject,...I(t)}),ep.lazycreate=(e,t)=>new ep({shape:e,unknownKeys:"strip",catchall:ed.create(),typeName:o.ZodObject,...I(t)});class eh extends Z{_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 k(e.ctx.common.issues));return A(t,{code:w.invalid_union,unionErrors:r}),N});{let e,i=[];for(let a of r){let r={...t,common:{...t.common,issues:[]},parent:null},s=a._parseSync({data:t.data,path:t.path,parent:r});if("valid"===s.status)return s;"dirty"!==s.status||e||(e={result:s,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 k(e));return A(t,{code:w.invalid_union,unionErrors:a}),N}}get options(){return this._def.options}}eh.create=(e,t)=>new eh({options:e,typeName:o.ZodUnion,...I(t)});let ef=e=>{if(e instanceof ew)return ef(e.schema);if(e instanceof eN)return ef(e.innerType());if(e instanceof ek)return[e.value];if(e instanceof eS)return e.options;if(e instanceof eA)return a.objectValues(e.enum);else if(e instanceof ej)return ef(e._def.innerType);else if(e instanceof es)return[void 0];else if(e instanceof en)return[null];else if(e instanceof eC)return[void 0,...ef(e.unwrap())];else if(e instanceof e$)return[null,...ef(e.unwrap())];else if(e instanceof eI)return ef(e.unwrap());else if(e instanceof eP)return ef(e.unwrap());else if(e instanceof eE)return ef(e._def.innerType);else return[]};class em extends Z{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==b.object)return A(t,{code:w.invalid_type,expected:b.object,received:t.parsedType}),N;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}):(A(t,{code:w.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),N)}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=ef(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 em({typeName:o.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:i,...I(r)})}}class eg extends Z{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),i=(e,i)=>{if("aborted"===e.status||"aborted"===i.status)return N;let s=function e(t,r){let i=x(t),s=x(r);if(t===r)return{valid:!0,data:t};if(i===b.object&&s===b.object){let i=a.objectKeys(r),s=a.objectKeys(t).filter(e=>-1!==i.indexOf(e)),n={...t,...r};for(let i of s){let a=e(t[i],r[i]);
1if(!a.valid)return{valid:!1};n[i]=a.data}return{valid:!0,data:n}}if(i===b.array&&s===b.array){if(t.length!==r.length)return{valid:!1};let i=[];for(let a=0;a<t.length;a++){let s=e(t[a],r[a]);if(!s.valid)return{valid:!1};i.push(s.data)}return{valid:!0,data:i}}if(i===b.date&&s===b.date&&+t==+r)return{valid:!0,data:t};return{valid:!1}}(e.value,i.value);return s.valid?(("dirty"===e.status||"dirty"===i.status)&&t.dirty(),{status:t.value,value:s.data}):(A(r,{code:w.invalid_intersection_types}),N)};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}))}}eg.create=(e,t,r)=>new eg({left:e,right:t,typeName:o.ZodIntersection,...I(r)});class ey extends Z{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==b.array)return A(r,{code:w.invalid_type,expected:b.array,received:r.parsedType}),N;if(r.data.length<this._def.items.length)return A(r,{code:w.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),N;!this._def.rest&&r.data.length>this._def.items.length&&(A(r,{code:w.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 E(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(i).then(e=>T.mergeArray(t,e)):T.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new ey({...this._def,rest:e})}}ey.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new ey({items:e,typeName:o.ZodTuple,rest:null,...I(t)})};class e_ extends Z{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!==b.object)return A(r,{code:w.invalid_type,expected:b.object,received:r.parsedType}),N;let i=[],a=this._def.keyType,s=this._def.valueType;for(let e in r.data)i.push({key:a._parse(new E(r,e,r.path,e)),value:s._parse(new E(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?T.mergeObjectAsync(t,i):T.mergeObjectSync(t,i)}get element(){return this._def.valueType}static create(e,t,r){return new e_(t instanceof Z?{keyType:e,valueType:t,typeName:o.ZodRecord,...I(r)}:{keyType:X.create(),valueType:e,typeName:o.ZodRecord,...I(t)})}}class ev extends Z{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!==b.map)return A(r,{code:w.invalid_type,expected:b.map,received:r.parsedType}),N;let i=this._def.keyType,a=this._def.valueType,s=[...r.data.entries()].map(([e,t],s)=>({key:i._parse(new E(r,e,r.path,[s,"key"])),value:a._parse(new E(r,t,r.path,[s,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of s){let i=await r.key,a=await r.value;if("aborted"===i.status||"aborted"===a.status)return N;("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 s){let i=r.key,a=r.value;if("aborted"===i.status||"aborted"===a.status)return N;("dirty"===i.status||"dirty"===a.status)&&t.dirty(),e.set(i.value,a.value)}return{status:t.value,value:e}}}}ev.create=(e,t,r)=>new ev({valueType:t,keyType:e,typeName:o.ZodMap,...I(r)});class eb extends Z{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==b.set)return A(r,{code:w.invalid_type,expected:b.set,received:r.parsedType}),N;let i=this._def;null!==i.minSize&&r.data.size<i.minSize.value&&(A(r,{code:w.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&&(A(r,{code:w.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());let a=this._def.valueType;function s(e){let r=new Set;for(let i of e){if("aborted"===i.status)return N;"dirty"===i.status&&t.dirty(),r.add(i.value)}return{status:t.value,value:r}}let n=[...r.data.values()].map((e,t)=>a._parse(new E(r,e,r.path,t)));return r.common.async?Promise.all(n).then(e=>s(e)):s(n)}min(e,t){return new eb({...this._def,minSize:{value:e,message:n.toString(t)}})}max(e,t){return new eb({...this._def,maxSize:{value:e,message:n.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}eb.create=(e,t)=>
1new eb({valueType:e,minSize:null,maxSize:null,typeName:o.ZodSet,...I(t)});class ex extends Z{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==b.function)return A(t,{code:w.invalid_type,expected:b.function,received:t.parsedType}),N;function r(e,r){return S({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,O,O].filter(e=>!!e),issueData:{code:w.invalid_arguments,argumentsError:r}})}function i(e,r){return S({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,O,O].filter(e=>!!e),issueData:{code:w.invalid_return_type,returnTypeError:r}})}let a={errorMap:t.common.contextualErrorMap},s=t.data;if(this._def.returns instanceof eT){let e=this;return $(async function(...t){let n=new k([]),o=await e._def.args.parseAsync(t,a).catch(e=>{throw n.addIssue(r(t,e)),n}),l=await Reflect.apply(s,this,o);return await e._def.returns._def.type.parseAsync(l,a).catch(e=>{throw n.addIssue(i(l,e)),n})})}{let e=this;return $(function(...t){let n=e._def.args.safeParse(t,a);if(!n.success)throw new k([r(t,n.error)]);let o=Reflect.apply(s,this,n.data),l=e._def.returns.safeParse(o,a);if(!l.success)throw new k([i(o,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ex({...this._def,args:ey.create(e).rest(el.create())})}returns(e){return new ex({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new ex({args:e||ey.create([]).rest(el.create()),returns:t||el.create(),typeName:o.ZodFunction,...I(r)})}}class ew extends Z{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})}}ew.create=(e,t)=>new ew({getter:e,typeName:o.ZodLazy,...I(t)});class ek extends Z{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return A(t,{received:t.data,code:w.invalid_literal,expected:this._def.value}),N}return{status:"valid",value:e.data}}get value(){return this._def.value}}function eO(e,t){return new eS({values:e,typeName:o.ZodEnum,...I(t)})}ek.create=(e,t)=>new ek({value:e,typeName:o.ZodLiteral,...I(t)});class eS extends Z{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return A(t,{expected:a.joinValues(r),received:t.parsedType,code:w.invalid_type}),N}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 A(t,{received:t.data,code:w.invalid_enum_value,options:r}),N}return $(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 eS.create(e,{...this._def,...t})}exclude(e,t=this._def){return eS.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}eS.create=eO;class eA extends Z{_parse(e){let t=a.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==b.string&&r.parsedType!==b.number){let e=a.objectValues(t);return A(r,{expected:a.joinValues(e),received:r.parsedType,code:w.invalid_type}),N}if(this._cache||(this._cache=new Set(a.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=a.objectValues(t);return A(r,{received:r.data,code:w.invalid_enum_value,options:e}),N}return $(e.data)}get enum(){return this._def.values}}eA.create=(e,t)=>new eA({values:e,typeName:o.ZodNativeEnum,...I(t)});class eT extends Z{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==b.promise&&!1===t.common.async?(A(t,{code:w.invalid_type,expected:b.promise,received:t.parsedType}),N):$((t.parsedType===b.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eT.create=(e,t)=>new eT({type:e,typeName:o.ZodPromise,...I(t)});class eN extends Z{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===o.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),i=this._def.effect||null,s={addIssue:e=>{A(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};
1if(s.addIssue=s.addIssue.bind(s),"preprocess"===i.type){let e=i.transform(r.data,s);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return N;let i=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===i.status?N:"dirty"===i.status||"dirty"===t.value?C(i.value):i});{if("aborted"===t.value)return N;let i=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===i.status?N:"dirty"===i.status||"dirty"===t.value?C(i.value):i}}if("refinement"===i.type){let e=e=>{let t=i.refinement(e,s);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?N:("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?N:("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=>"valid"!==e.status?N:Promise.resolve(i.transform(e.value,s)).then(e=>({status:t.value,value:e})));else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if("valid"!==e.status)return N;let a=i.transform(e.value,s);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}a.assertNever(i)}}eN.create=(e,t,r)=>new eN({schema:e,typeName:o.ZodEffects,effect:t,...I(r)}),eN.createWithPreprocess=(e,t,r)=>new eN({schema:t,effect:{type:"preprocess",transform:e},typeName:o.ZodEffects,...I(r)});class eC extends Z{_parse(e){return this._getType(e)===b.undefined?$(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eC.create=(e,t)=>new eC({innerType:e,typeName:o.ZodOptional,...I(t)});class e$ extends Z{_parse(e){return this._getType(e)===b.null?$(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}e$.create=(e,t)=>new e$({innerType:e,typeName:o.ZodNullable,...I(t)});class ej extends Z{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===b.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ej.create=(e,t)=>new ej({innerType:e,typeName:o.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...I(t)});class eE extends Z{_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 j(i)?i.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new k(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===i.status?i.value:this._def.catchValue({get error(){return new k(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}eE.create=(e,t)=>new eE({innerType:e,typeName:o.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...I(t)});class eR extends Z{_parse(e){if(this._getType(e)!==b.nan){let t=this._getOrReturnCtx(e);return A(t,{code:w.invalid_type,expected:b.nan,received:t.parsedType}),N}return{status:"valid",value:e.data}}}eR.create=e=>new eR({typeName:o.ZodNaN,...I(e)}),Symbol("zod_brand");class eI extends Z{_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 eZ extends Z{_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?N:"dirty"===e.status?(t.dirty(),C(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?N:"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 eZ({in:e,out:t,typeName:o.ZodPipeline})}}class eP extends Z{_parse(e){let t=this._def.innerType._parse(e),r=e=>("valid"===e.status&&(e.value=Object.freeze(e.value)),e);return j(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}eP.create=(e,t)=>
1new eP({innerType:e,typeName:o.ZodReadonly,...I(t)}),ep.lazycreate,function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(o||(o={}));let eq=X.create,eJ=ee.create;eR.create,et.create;let ez=er.create;ei.create,ea.create,es.create,en.create;let eF=eo.create;el.create,ed.create,ec.create;let eL=eu.create,eM=ep.create;ep.strictCreate;let eD=eh.create;em.create;let eU=eg.create;ey.create,e_.create,ev.create,eb.create,ex.create,ew.create,ek.create;let eV=eS.create;eA.create,eT.create,eN.create,eC.create,e$.create,eN.createWithPreprocess,eZ.create;class eB{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}}class eW extends Error{constructor(e="Unsupported"){super(e)}}function eK(){return this._qualifierModel||{error:new eW(`unsupported qualifier ${this.constructor.name}`)}}class eH{constructor(){this._qualifierModel={}}toJson(){return eK.apply(this)}}class eQ extends eH{constructor(e,t){super(),this.delimiter="_",this.key=e,t instanceof eB?this.qualifierValue=t:(this.qualifierValue=new eB,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 eY extends eQ{constructor(e,t){super("fl",t?new eB([e,`${t}`]).setDelimiter(":"):e),this.flagValue=t}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function eG(){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 eW(`unsupported action ${this.constructor.name}`)}}class eX{constructor(){this._actionModel={}}toJson(){return eG.apply(this)}}class e0 extends eX{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(){return this.prepareQualifiers(),(function(e,t){let r=Array.from(e.entries());return t.forEach(e=>{r.push(["fl",e])}),r.sort().map(e=>e[1])})(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(e){if("string"==typeof e){let[t,r]=e.toLowerCase().split("_");"fl"===t?this.flags.push(new eY(r)):this.qualifiers.set(t,new eQ(t,r))}else this.qualifiers.set(e.key,e);return this}addFlag(e){return"string"==typeof e?this.flags.push(new eY(e)):e instanceof eY&&this.flags.push(e),this}addValueToQualifier(e,t){return this.qualifiers.get(e).addValue(t),this}}class e1 extends e0{constructor(e){super(),this._actionModel={},this.addQualifier(new eQ("b",new eB(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 e9{constructor(e){this.raw=e}toString(){return this.raw}toJson(){return{error:new eW(`unsupported action ${this.constructor.name}`)}}}class e4 extends eB{constructor(e){super(e),this.val=e}getValue(){return this.val}}function e2(e){let t={};return Object.keys(e).forEach(r=>{t[e[r]]=r}),t}e2({444:"CHROMA_444",420:"CHROMA_420"}),e2({noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"}),e2({limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"});let e3=e2({colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"});e2({redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"}),e2({autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"}),e2({fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"});class e6 extends e0{constructor(e,t,r){let i;super(),this._actionModel={},i=t instanceof e4?t.getValue():t,this._actionModel.actionType=e3[e],this._actionModel[r]=i,this.addQualifier(new eQ(e,t))}}class e5 extends eY{constructor(e){super("progressive",e)}}class e8 extends e6{constructor(e,t){super(e,t,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(new eY("lossy")),this}progressive(e){return e instanceof e5?(this._actionModel.progressive={mode:e.getFlagValue()},this.addFlag(e)):(this._actionModel.progressive={mode:e},this.addFlag(new eY("progressive",e))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(new eY("preserve_transparency")),this}static fromJson(e){let t,{formatType:r,lossy:i,progressive:a,preserveTransparency:s}=e;return t=r?new this("f",r):new this("f"),a&&(a.mode?t.progressive(a.mode):t.progressive()),i&&t.lossy(),s&&t.preserveTransparency(),t}}class e7{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 e9(e);else t=e;return this.actions.push(t),this}addTransformation(e){return e instanceof e7?this.actions=this.actions.concat(e.actions):this.actions.push(new e9(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 e8("q",e)),this}format(e){return this.addAction(new e8("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 e1(e))}psdTools(e){return this.addAction(e)}extract(e){return this.addAction(e)}addFlag(e){let t=new e0,r=e;return"string"==typeof e&&(r=new eY(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 te extends e7{}class tt{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)}}let tr=tt,ti=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class ta extends tr{constructor(e){super(),Object.assign(this,{secure:!0},this.filterOutNonSupportedKeys(e,ti))}extend(e){return new ta(Object.assign({},this,this.filterOutNonSupportedKeys(e,ti)))}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 ts(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 tn={},to=0;function tl(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(".").reverse().map(e=>{let t=+e;if(isNaN(t)||t<0)throw"Invalid version number provided";return ts(e,2,"0")}).join(".")})(e).split(".").join("")).toString(2);if((i=ts(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+=tn[e]}),t}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(e=>{let t=to.toString(2);tn[t=ts(t,6,"0")]=e,to++});var td=r(2272);function tc(e){let t=function(e){let t={sdkSemver:e.sdkSemver,techVersion:e.techVersion,sdkCode:e.sdkCode,product:e.product,feature:"0"};return e.accessibility&&(t.feature="D"),e.lazyload&&(t.feature="C"),e.responsive&&(t.feature="A"),e.placeholder&&(t.feature="B"),t}(function(e){let t={techVersion:function(){let e="0.0.0";if("undefined"!=typeof window)return e;try{return td.versions.node||e}catch(t){return e}}(),sdkCode:"T",sdkSemver:"1.15.0".split("-")[0],product:"A",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return e?Object.assign(Object.assign({},t),e):t}(e));try{let e=function(e){let t=e.split(".");return`${t[0]}.${t[1]}`}(t.techVersion),r=tl(t.sdkSemver),i=tl(e),a=t.feature,s=t.sdkCode,n=t.product;return`B${n}${s}${r}${i}${a}`}catch(e){return"E"}}let tu={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class tp{constructor(e,t={},r){this.setPublicID(e),this.setCloudConfig(t),this.setURLConfig(r)}setURLConfig(e){return this.urlConfig=new ta(e),this}setCloudConfig(e){return this.cloudName=e.cloudName,this.apiKey=e.apiKey,this.apiSecret=e.apiSecret,this.authToken=e.authToken,this}setPublicID(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,s=`${r}/${i}`,n=tu[`${r}/${i}`],o=this.urlConfig.useRootPath,l=this.urlConfig.shorten;if(o)if("image/upload"===s)return"";else throw Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${s} instead`);if(l&&"image/upload"===s)return"iu";if(a)if(n)return n;else throw Error(`URL Suffix only supported for ${Object.keys(tu).join(", ")}, Provided: ${s} instead`);return s}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(e,t){var r,i,a;
1if(!this.publicID)return"";this.validateAssetForURLCreation();let s=function(e,t){let r=t.secure,i=t.privateCdn,a=t.cname,s=t.secureDistribution;return r||a?r&&!s&&i?`https://${e}-res.cloudinary.com`:r&&!s?`https://res.cloudinary.com/${e}`:r&&s&&i?`https://${s}`:r&&s?`https://${s}/${e}`:!r&&a?`http://${a}/${e}`:"ERROR":`http://res.cloudinary.com/${e}`}(this.cloudName,this.urlConfig),n=e?e.toString():"",o=(r=this.publicID,i=this.version,a=this.urlConfig.forceVersion,i?`v${i}`:r.match(/^v[0-9]+/)||r.match(/^https?:\//)||0>r.indexOf("/")?"":!1!==a?"v1":""),l=this.publicID;if("string"==typeof e)return[s,this.getResourceType(),this.getSignature(),n,o,l.replace(/,/g,"%2C"),this.suffix].filter(e=>e).join("/");{let e=[encodeURI(s),this.getResourceType(),this.getSignature(),encodeURI(n),o,encodeURI(l).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(e=>e).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),r=!1!==this.urlConfig.analytics&&!l.includes("?"),i="";if("object"==typeof this.urlConfig.queryParams)try{let e=new URLSearchParams(this.urlConfig.queryParams);r&&e.set("_a",tc(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=${tc(t)}`);return i?`${e}?${i}`:e}}}
1class th extends tp{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 e8("q",e)),this}format(e){return this.addAction(new e8("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 tf extends th{constructor(e,t,r){super(e,t,r,new te)}}class tm extends e7{}class tg extends th{constructor(e,t,r){super(e,t,r,new tm),this.assetType="video"}transcode(e){return this.transformation.transcode(e),this}videoEdit(e){return this.transformation.videoEdit(e),this}}class ty{constructor(e){e&&(this.cloudinaryConfig=e)}image(e){return new tf(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(e){return new tg(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(e){return this.cloudinaryConfig=e,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var t_=r(2272),tv=Object.defineProperty,tb={};((e,t)=>{for(var r in t)tv(e,r,{get:t[r],enumerable:!0})})(tb,{angle:()=>tO,aspectRatio:()=>tA,aspectRatioModesEnum:()=>tS,crop:()=>tT,cropModesEnum:()=>tx,extractMode:()=>tN,extractModesEnum:()=>tw,flags:()=>tC,flagsEnum:()=>tk,format:()=>t$,gravity:()=>tj,height:()=>tE,multiple:()=>tR,prompt:()=>tI,width:()=>tZ,x:()=>tP,y:()=>tq,zoom:()=>tJ});var tx=eV(["auto","crop","fill","fill_pad","fit","imagga_crop","imagga_scale","lfill","limit","lpad","mfit","mpad","pad","scale","thumb"]),tw=eV(["content","mask"]),tk=eV(["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"]),tO={qualifier:"a",schema:eD([eq(),eJ()]).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"}))},tS=eV(["vflip","hflip","ignore","auto_right","auto_left"]),tA={qualifier:"ar",schema:eD([eJ(),tS,eU(eq(),eM({}))]).describe(JSON.stringify({text:"Crops or resizes the asset to a new aspect ratio.",url:"https://cloudinary.com/documentation/transformation_reference#ar_aspect_ratio"}))},tT={qualifier:"c",schema:tx.describe(JSON.stringify({text:"Mode to use when cropping an asset.",url:"https://cloudinary.com/documentation/transformation_reference#c_crop_resize"}))},tN={schema:tw.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"}))},tC={qualifier:"fl",schema:eD([tk,eL(tk)]).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"}))},t$={qualifier:"f",schema:eq().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"}))},tj={qualifier:"g",schema:eD([eV(["auto","auto_content_aware","center","custom","east","face","face_center","multi_face","north","north_east","north_
1west","south","south_east","south_west","west"]),eU(eq(),eM({}))]).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"}))},tE={qualifier:"h",schema:eD([eJ(),eq()]).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"}))},tR={schema:ez().describe(JSON.stringify({text:"Should generative AI features detect multiple instances."}))},tI={schema:eq().describe(JSON.stringify({text:"Natural language descriptions used for generative AI capabilities."}))},tZ={qualifier:"w",schema:eD([eJ(),eq()]).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"}))},tP={qualifier:"x",schema:eD([eq(),eJ()]).describe(JSON.stringify({text:"Adjusts the starting location or offset of the x axis.",url:"https://cloudinary.com/documentation/transformation_reference#x_y_coordinates"}))},tq={qualifier:"y",schema:eD([eq(),eJ()]).describe(JSON.stringify({text:"Adjusts the starting location or offset of the y axis.",url:"https://cloudinary.com/documentation/transformation_reference#x_y_coordinates"}))},tJ={schema:eq().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"}))},tz=[{test:function(e){return"string"==typeof e&&!!e.startsWith("#")},convert:function(e){return`rgb:${e.replace("#","")}`}}],tF={aspectRatio:tA,crop:tT,gravity:tj,height:tE,width:tZ},tL={angle:tO,gravity:tj,x:tP,y:tq},tM={alignment:{qualifier:!1,order:6},antialias:{qualifier:"antialias"},border:{qualifier:"bo",location:"primary"},color:{qualifier:"co",location:"primary",converters:tz},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}},tD={angle:tO,art:{prefix:"e",qualifier:"art",schema:eq().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:eD([eq(),ez()]).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:eD([eq(),ez()]).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:eD([eq(),ez()]).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:eD([eq(),ez()]).describe(JSON.stringify({text:"Applies stripes or color adjustment 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:eq().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:eD([eq(),ez()]).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:eD([eq(),ez()]).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:eD([eq(),ez()]).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:eD([eq(),ez()]).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:eq().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:eD([eq(),ez()]).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:eD([eq(),ez()]).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:eD([eq(),ez()]).describe(JSON.stringify({text:"Applies a cartoon effect to an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_cartoonify"}))},color:{qualifier:"co",schema:eq().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:tz}
1,colorize:{prefix:"e",qualifier:"colorize",schema:eq().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:eD([eq(),ez()]).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:eq().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:eq().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:eD([eq(),ez()]).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:eD([eq(),ez()]).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:eD([eq(),ez()]).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:ez().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:eD([eq(),ez()]).describe(JSON.stringify({text:"Adjusts an image's hue.",url:"https://cloudinary.com/documentation/transformation_reference#e_hue"}))},improve:{prefix:"e",qualifier:"improve",schema:eD([eq(),ez()]).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:eD([ez(),eJ(),eq()]).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:ez().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:eD([eq(),ez()]).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:ez().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:eD([eq(),ez()]).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:eD([eq(),eJ()]).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:eD([eq(),ez()]).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:eD([eq(),ez()]).describe(JSON.stringify({text:"Applies a pixelation effect.",url:"https://cloudinary.com/documentation/transformation_reference#e_pixelate"}))},pixelateFaces:{prefix:"e",qualifier:"pixelate_faces",schema:eD([eq(),ez()]).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:eD([eq(),ez()]).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:eD([eq(),eJ()]).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:eD([eq(),ez()]).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:eq().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:eD([eq(),ez()]).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:ez().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:eD([eq(),ez()]).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:eD([eq(),ez()]).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:eD([eq(),ez()]).describe(JSON.stringify({text:"Applies a sharpening filter.",url:"https://cloudinary.com/documentation/transformation_reference#e_sharpen"}))},shear:{prefix:"e",qualifier:"shear",schema:eq().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:eD([eq(),ez()]).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:eD([eq(),ez()]).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:eD([eq(),ez()]).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:eD([eq(),ez()]).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:eD([eq(),ez()]).describe(JSON.stringify({text:"Vectorizes an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_vectorize"}))},vibrance:{prefix:"e",qualifier:"vibrance",schema:eD([eq(),ez()]).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:eD([eq(),ez()]).describe(JSON.stringify({text:"Applies a vignette effect to an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_vignette"}))}};function tU({prefix:e,qualifier:t,value:r,converters:i}){let a="";e&&(a=`${e}_`);let s=r;if(i?.forEach(({test:e,convert:t})=>{e(s)&&(s=t(s))}),!0===s||"true"===s)return`${a}${t}`;if("string"==typeof s||"number"==typeof s)if(e)return`${a}${t}:${s}`;else return`${t}_${s}`}function tV(e){return`(${e.join(";")})`}function tB(e){return"string"!=typeof e?e:parseInt(e)}var tW=["auto","crop","fill","lfill","fill_pad","thumb"],tK=["auto","crop","fill","lfill","fill_pad","thumb"],tH=["crop","thumb"],tQ="limit",tY=eM({aspectRatio:tA.schema.optional(),type:tT.schema,gravity:tj.schema.optional(),height:tE.schema.optional(),width:tZ.schema.optional(),x:tP.schema.optional(),y:tq.schema.optional(),zoom:tJ.schema.optional(),source:ez().optional()}),tG={aspectRatio:tA.schema.optional(),crop:eD([tT.schema,tY,eL(tY)]).default(tQ).optional(),gravity:tj.schema.optional(),zoom:tJ.schema.optional()},tX={angle:tD.angle.schema.optional(),art:tD.art.schema.optional(),autoBrightness:tD.autoBrightness.schema.optional(),autoColor:tD.autoColor.schema.optional(),autoContrast:tD.autoContrast.schema.optional(),assistColorblind:tD.assistColorblind.schema.optional(),background:tD.background.schema.optional(),blackwhite:tD.blackwhite.schema.optional(),blur:tD.blur.schema.optional(),blurFaces:tD.blurFaces.schema.optional(),blurRegion:tD.blurRegion.schema.optional(),border:tD.border.schema.optional(),brightness:tD.brightness.schema.optional(),brightnessHSB:tD.brightnessHSB.schema.optional(),cartoonify:tD.cartoonify.schema.optional(),color:tD.color.schema.optional(),colorize:tD.colorize.schema.optional(),contrast:tD.contrast.schema.optional(),distort:tD.distort.schema.optional(),fillLight:tD.fillLight.schema.optional(),gamma:tD.gamma.schema.optional(),gradientFade:tD.gradientFade.schema.optional(),grayscale:tD.grayscale.schema.optional(),improve:tD.improve.schema.optional(),loop:tD.loop.schema.optional(),multiply:tD.multiply.schema.optional(),negate:tD.negate.schema.optional(),oilPaint:tD.oilPaint.schema.optional(),opacity:tD.opacity.schema.optional(),outline:tD.outline.schema.optional(),pixelate:tD.pixelate.schema.optional(),pixelateFaces:tD.pixelateFaces.schema.optional(),pixelateRegion:tD.pixelateRegion.schema.optional(),radius:tD.radius.schema.optional(),redeye:tD.redeye.schema.optional(),replaceColor:tD.replaceColor.schema.optional(),saturation:tD.saturation.schema.optional(),screen:tD.screen.schema.optional(),sepia:tD.sepia.schema.optional(),shadow:tD.shadow.schema.optional(),sharpen:tD.sharpen.schema.optional(),shear:tD.shear.schema.optional(),simulateColorblind:tD.simulateColorblind.schema.optional(),tint:tD.tint.schema.optional(),trim:tD.trim.schema.optional(),unsharpMask:tD.unsharpMask.schema.optional(),vectorize:tD.vectorize.schema.optional(),vibrance:tD.vibrance.schema.optional(),vignette:tD.vignette.schema.optional()},t0={effects:eL(eM(tX)).describe(JSON.stringify({text:"Array of objects specifying transformations to be applied to asset."})).optional(),...tX},{flagsEnum:t1}=tb,t9={flags:tC.schema.optional()},t4=eq(),t2={namedTransformations:eD([t4,eL(t4)]).describe(JSON.stringify({text:"Named transformations to apply to asset.",url:"https://cloudinary.com/documentation/image_transformations#named_transformations"})).optional(),transformations:eD([t4,eL(t4)]).describe(JSON.stringify({text:"Deprecated: use namedTransformations instead",url:"https://cloudinary.com/documentation/image_transformations#named_transformations"})).optional()},t3=eM({alignment:eq().optional(),antialias:eq().optional(),border:eq().optional(),color:eq().optional(),fontFamily:eq().optional(),fontSize:eJ().optional(),fontStyle:eD([eq(),eJ()]).optional(),fontWeight:eq().optional(),hinting:eD([eq(),eJ()]).optional(),letterSpacing:eD([eq(),eJ()]).optional(),lineSpacing:eD([eq(),eJ()]).optional(),stroke:eq().optional(),text:eq()}),t6=eM({angle:tO.schema.optional(),gravity:tj.schema.optional(),x:tP.schema.optional(),y:tq.schema.optional()}),t5=eM({appliedEffects:eL(eM({})).optional(),appliedFlags:tC.schema.optional(),effects:eL(eM({})).optional(),crop:tT.schema.optional(),flags:tC.schema.optional(),height:tE.schema.optional(),position:t6.optional(),publicId:eq().optional(),text:eD([eq(),t3]).optional(),url:eq().optional(),width:tZ.schema.optional()}),t8={color:"black",fontFamily:"Arial",fontSize:200,fontWeight:"bold"},t7={overlay:t5.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"}
1)).optional(),overlays:eL(t5).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:eq().describe(JSON.stringify({text:"Text to be overlaid on asset.",url:"https://cloudinary.com/documentation/image_transformations#transformation_url_structure"})).optional()},re={preserveTransformations:ez().describe(JSON.stringify({text:"Preserves transformations from a Cloudinary URL when using using a Cloudinary URL as the asset source (src)."})).optional()},rt=eq(),rr={rawTransformations:eD([rt,eL(rt)]).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()},ri={removeBackground:ez().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()},ra={sanitize:ez().describe(JSON.stringify({text:"Runs a sanitizer on SVG images.",url:"https://cloudinary.com/documentation/transformation_reference#fl_sanitize"})).optional()},rs={seoSuffix:eq().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()},rn=eM({angle:tO.schema.optional(),gravity:tj.schema.optional(),x:tP.schema.optional(),y:tq.schema.optional()}),ro=eM({appliedEffects:eL(eM({})).optional(),appliedFlags:tC.schema.optional(),effects:eL(eM({})).optional(),crop:tT.schema.optional(),flags:tC.schema.optional(),height:tE.schema.optional(),position:rn.optional(),publicId:eq().optional(),type:eq().optional(),url:eq().optional(),width:tZ.schema.optional()}),rl={underlay:eq().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:eL(ro).describe(JSON.stringify({text:"Image layers that are applied under the base image.",url:"https://cloudinary.com/documentation/transformation_reference#l_layer"})).optional()},rd={version:eD([eJ(),eq()]).describe(JSON.stringify({text:"Custom version number to apply to asset URL.",url:"https://cloudinary.com/documentation/advanced_url_delivery_options#asset_versions"})).optional()},rc=eM({assetType:eq().default("image").describe(JSON.stringify({text:"The type of asset to deliver.",url:"https://cloudinary.com/documentation/image_transformations#transformation_url_structure"})).optional(),deliveryType:eq().default("upload").describe(JSON.stringify({text:"Delivery method of the asset.",url:"https://cloudinary.com/documentation/image_transformations#delivery_types"})).optional(),dpr:eD([eq(),eJ()]).describe(JSON.stringify({text:"Delivery method of the asset.",url:"https://cloudinary.com/documentation/image_transformations#delivery_types"})).optional(),format:eq().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:eD([eq(),eJ()]).describe(JSON.stringify({text:"Height of the given asset."})).optional(),quality:eD([eq(),eJ(),eq()]).default("auto").describe(JSON.stringify({text:"Quality of the delivered asset",url:"https://cloudinary.com/documentation/transformation_reference#q_quality"})).optional(),src:eq().describe(JSON.stringify({text:"Cloudinary Public ID or versioned Cloudinary URL (/v1234/)"})),strictTransformations:ez().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:eD([eq(),eJ()]).describe(JSON.stringify({text:"Width of the given asset."})).optional(),...tG,...t0,...t9,...t2,...t7,...re,...rr,...ri,...ra,...rs,...rl,...rd}),ru={defaultImage:eq().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()},rp={enhance:ez().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()},rh={extract:eD([tI.schema.optional(),eL(tI.schema).optional(),eM({invert:ez().default(!1).optional(),mode:tN.schema.optional(),multiple:tR.schema.default(!1).optional(),prompt:eD([tI.schema,eL(tI.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 rf(e){return"string"==typeof e?e:Array.isArray(e)?`(${e.filter(e=>"string"==typeof e).join(";")})`:void 0}var rm={fillBackground:eD([ez(),eM({crop:tT.schema.optional(),gravity:tj.schema.optional(),prompt:eq().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()},rg=eD([eq(),eL(eq())]),ry=eM({prompt:rg.optional(),to:eq().optional(),multiple:ez().optional()}),r_={recolor:eD([rg,ry]).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()},rv=eD([eq(),eL(eq())]),rb=eM({prompt:rv.optional(),region:eD([eL(eJ()),eL(eL(eJ()))]).optional(),multiple:ez().optional(),removeShadow:ez().optional()}),rx={remove:eD([rv,rb]).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()},rw={replaceBackground:eD([ez(),eq(),eM({seed:eJ().optional(),prompt:eq().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()},rk={replace:eD([eL(eq()),eL(ez()),eM({to:eq(),from:eq(),preserveGeometry:ez().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()},rO={restore:ez().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()},rS={zoompan:eD([eq(),ez(),eM({loop:tD.loop.schema.optional(),options:eq()})]).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()},rA=rc.merge(eM({...ru,...rp,...rh,...rm,...r_,...rx,...rk,...rw,...rO,...rS})),rT={streamingProfile:eq().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()},rN=rc.merge(eM({...rT})),rC=eF(),r$=eF(),rj=[{props:rp,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:r}=e,{enhance:i=!1}=r;return i&&t.effect("e_enhance"),{}}},{props:rh,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_${rf(i)}`);else if("object"==typeof i&&!Array.isArray(i)){let e=rf(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:r_,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=tV(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=tV(i.prompt)),"string"==typeof i.to&&(a["to-color"]=i.to),!0===i.multiple&&(a.multiple="true"));let s=Object.entries(a).filter(([,e])=>!!e).map(([e,t])=>`${e}_${t}`).join(";");return s&&t.addTransformation(`e_gen_recolor:${s}`),{}}},{props:ri,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:r}
1=e,{removeBackground:i=!1}=r;return i&&t.effect("e_background_removal"),{}}},{props:rx,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=tV(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=tV(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:rk,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 s=[`e_gen_replace:from_${t}`,`to_${i}`];a&&s.push(`preserve-geometry_${a}`),e.effect(s.join(";"))}return{}}},{props:rw,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 s="e_gen_background_replace";return a.length>0&&(s=`${s}:${a.join(";")}`),t.addTransformation(s),{}}},{props:rO,assetTypes:["image","images"],plugin:({cldAsset:e,options:t})=>{let{restore:r=!1}=t;return r&&e.effect("e_gen_restore"),{}}},{props:tG,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||tQ,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:tQ,zoom:r.zoom});let a=[],s=[];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:s}=e,n=e.gravity,o=tB(e.height),l=tB(e.width),d=[],c=t&&tW.includes(r),u="number"==typeof i||"string"==typeof i,p="number"==typeof a||"string"==typeof a,h=u||p;return r&&(o||l||c||h)&&d.push(`c_${r}`),c&&d.push(`ar_${t}`),l&&d.push(`w_${l}`),["limit"].includes(r)||"number"!=typeof o||d.push(`h_${o}`),u&&d.push(`x_${i}`),p&&d.push(`y_${a}`),!n&&tK.includes(r)&&!h&&(n="auto"),n&&("auto"!==n||tK.includes(r)?d.push(`g_${n}`):console.warn(`Auto gravity can only be used with crop modes: ${tK.join(", ")}. Not applying gravity.`)),s&&("auto"!==s||tH.includes(r)?d.push(`z_${s}`):console.warn(`Zoom can only be used with crop modes: ${tH.join(", ")}. Not applying zoom.`)),d}({aspectRatio:e.aspectRatio,gravity:e.gravity,type:e.type||tQ,x:e.x,y:e.y,zoom:e.zoom,...t});i.length>0&&(!0===e.source?s.push(i):a.push(i))}s.forEach(e=>{e.length>0&&t.addTransformation(e.join(","))});let n={options:{}};return n.options&&a.length>0&&(n.options.resize=a.map(e=>e.join(",")).join("/")),n}},{props:re,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{preserveTransformations:r=!1}=t;if(r)try{(function(e){let{transformations:t=[]}=y(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:rr,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:rT,assetTypes:["video","videos"],plugin:e=>{let{cldAsset:t,options:r}=e,{streamingProfile:i}=r;return"string"==typeof i&&t.addTransformation(`sp_${i}`),{}}},{props:ru,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:r}=e,{defaultImage:i}=r;if("string"==typeof i){_(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:t0,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:s}=e[r];return tU({qualifier:a,prefix:i,value:t?.[r],converters:s})})}return i({effects:tD,options:r}).filter(e=>
1!!e).forEach(e=>t.effect(e)),Array.isArray(r?.effects)&&r?.effects.forEach(e=>{let r=i({effects:tD,options:e}).filter(e=>!!e).join(",");t.effect(r)}),{}}},{props:rm,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:r}=e,{fillBackground:i}=r;if(void 0===i)return{};let a=tB(r.width),s=tB(r.height),n=r.aspectRatio;if(n||"number"!=typeof s||"number"!=typeof a||(n=`${a}:${s}`),!n)return{};if(!0===i){let e=["b_gen_fill",`ar_${n}`,"c_pad"];t.addTransformation(e.join(","))}else if("object"==typeof i){let{crop:e="pad",gravity:r,prompt:a}=i,s=[`ar_${n}`,`c_${e}`];"string"==typeof a?s.unshift(`b_gen_fill:${a}`):s.unshift("b_gen_fill"),"string"==typeof r&&s.push(`g_${r}`),t.addTransformation(s.join(","))}return{}}},{props:t9,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}=t1.safeParse(e);r&&t.addFlag(e)}):"object"==typeof i&&Object.entries(i).forEach(([e,r])=>{let{success:i}=t1.safeParse(e);i&&t.addTransformation(`fl_${e}:${r}`)}),{}}},{props:t7,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:a,effects:s=[],appliedEffects:n=[],flags:o=[],appliedFlags:l=[],...d}){let c,u="string"==typeof t,h="string"==typeof r,f="object"==typeof a||"string"==typeof a,m="object"==typeof i;if(!u&&!h&&!f)return void console.warn("An overlay is missing Public ID, URL, or Text");if(f)c="l_text";else if(u)c=`l_${t.replace(/\//g,":")}`;else h&&(c=`l_fetch:${"function"==typeof btoa?btoa(r):void 0!==p?p.from(r).toString("base64"):void 0}`);let g=[],y=[];if(Object.keys(d).forEach(e=>{if(!v(tF,e))return;let{qualifier:t,converters:r}=tF[e],i=tU({qualifier:t,value:d[e],converters:r});i&&g.push(i)}),s.forEach(e=>{Object.keys(e).forEach(t=>{let r=tF[t]||tD[t]||tL[t];if(!r)return;let{qualifier:i,prefix:a,converters:s}=r,n=tU({qualifier:i,prefix:a,value:e[t],converters:s});n&&g.push(n)})}),n.forEach(e=>{Object.keys(e).forEach(t=>{let r=tF[t]||tD[t]||tL[t];if(!r)return;let{qualifier:i,prefix:a,converters:s}=r,n=tU({qualifier:i,prefix:a,value:e[t],converters:s});n&&y.push(n)})}),(Array.isArray(o)?o:[o]).forEach(e=>{let{success:t}=tk.safeParse(e);t&&g.push(`fl_${e}`)}),(Array.isArray(l)?l:[l]).forEach(e=>{let{success:t}=tk.safeParse(e);t&&y.push(`fl_${e}`)}),f){"string"==typeof a&&(a={...t8,text:a});let e=[];
1if("object"==typeof a)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(a).filter(e=>v(tM,e)).map(e=>{let t=a&&v(a,e)&&a[e];return{...tM[e],key:e,value:t,order:tM[e].order||99}}),"order")){let{key:r,value:i,qualifier:a,location:s,converters:n}=t,o=i;n?.forEach(({test:e,convert:t})=>{e(i)&&(o=t(i))}),"primary"===s?g.push(`${a}_${o}`):"self"===a?e.push(r):a?e.push(`${a}_${o}`):e.push(o)}let t={".":"%2E",",":"%2C","/":"%2F"},r=a?.text||"";"string"==typeof r&&Object.keys(t)?.forEach(e=>{r=r?.replace(e,t[e])}),c=`${c}:${e.join("_")}:${r}`}m&&Object.keys(i).forEach(e=>{if(!v(tL,e)||!v(i,e))return;let{qualifier:t,converters:r}=tL[e],a=tU({qualifier:t,value:i[e],converters:r});a&&y.push(a)}),g.length>0&&(c=`${c},${g.join(",")}`),c=`${c}/fl_layer_apply,fl_no_overflow`,y.length>0&&(c=`${c},${y.join(",")}`),e.addTransformation(c)}return Array.isArray(i)&&i.forEach(a),"string"==typeof r?a({text:Object.assign({},t8,{text:r})}):"object"==typeof r&&a({text:Object.assign({},t8,r)}),{}}},{props:ra,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:t2,strict:!0,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{transformations:r,namedTransformations:i}=t;r&&"development"===t_.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:rs,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:rl,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:a=[],flags:s=[],appliedFlags:n=[],...o}){let l="object"==typeof i;if("string"!=typeof t)return void console.warn(`An ${r} is missing a Public ID`);let d=`u_${t.replace(/\//g,":")}`,c=[],u=[];Object.keys(o).forEach(e=>{if(!v(tF,e))return;let{qualifier:t}=tF[e];c.push(`${t}_${o[e]}`)}),a.forEach(e=>{Object.keys(e).forEach(t=>{if(!v(tF,t))return;let{qualifier:r}=tF[t];c.push(`${r}_${e[t]}`)})}
1),l&&Object.keys(i).forEach(e=>{if(!v(tL,e))return;let{qualifier:t}=tL[e];u.push(`${t}_${i[e]}`)}),(Array.isArray(s)?s:[s]).forEach(e=>{let{success:t}=tk.safeParse(e);t&&c.push(`fl_${e}`)}),(Array.isArray(n)?n:[n]).forEach(e=>{let{success:t}=tk.safeParse(e);t&&u.push(`fl_${e}`)}),d=`${d},${c.join(",")}`,d=`${d}/fl_layer_apply,fl_no_overflow`,u.length>0&&(d=`${d},${u.join(",")}`),e.addTransformation(d)}return Array.isArray(i)&&i.forEach(a),"string"==typeof r&&a({publicId:r,crop:"fill",width:"1.0",height:"1.0",flags:["relative"]}),{}}},{props:rd,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:rS,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}}}],rE=eD([rA,rN]).describe(JSON.stringify({text:"Asset options (Image or Video) that define delivery URL including public ID and transformations.",path:"/url-loader/assetoptions"}));function rR(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}eM({analytics:eD([rC,ez()]).describe(JSON.stringify({text:"Tech, dependency, and feature identifiers for tracking SDK usage related to Cloudinary.",path:"/url-loader/analyticsoptions"})).optional(),config:r$.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:rE});var rI=r(84340);r(25794),r(19287);var rZ=r(2272),rP=rJ(rI.version),rq=rJ("6.16.0");function rJ(e){let t=e;return t.includes("-")&&(t=t.split("-")[0]),t}function rz(e,t,r){return function({options:e,config:t={},analytics:r}){let i,a;!1===r&&(void 0===t?.url&&(t.url={}),t.url.analytics=!1);let s=new ty(t);if("string"!=typeof e?.src)throw Error("Failed to construct Cloudinary URL: Missing source (src) in options.");e?.assetType||(e.assetType="image");let n=[];rj.forEach(({props:e})=>{Object.keys(e).forEach(e=>{if(n.includes(e))throw Error(`Option ${e} already exists!`);n.push(e)})});let o={};if("string"==typeof e.src&&/^https?:\/\//.test(e.src))try{let t=y(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=>{v(e,t)||(e[t]=o[t])}),e.version??(e.version=1),["image","images"].includes(e.assetType)?a=s.image(i):["video","videos"].includes(e.assetType)&&(a=s.video(i)),void 0===a)throw Error("Invalid asset type.");let l={};if(rj.forEach(({plugin:t,assetTypes:r,props:i,strict:s})=>{let n=e?.assetType!==void 0&&r.includes(e.assetType),o=Object.keys(i),d=Object.keys(e),c=o.map(e=>d.includes(e)).filter(e=>!!e).length>0;if(!n){c&&console.warn(`One of the following props [${o.join(", ")}] was used with an unsupported asset type [${e?.assetType}]`);return}if(e.strictTransformations&&!s){c&&console.warn(`One of the following props [${o.join(", ")}] was used that is not supported with Strict Transformations.`);return}let{options:u}=t({cldAsset:a,options:e})||{options:void 0};Object.assign(l,u)}),"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=rR("f_",a,{matchType:"startsWith"}),i=r&&void 0!==e?.format;
1(l?.format||!t&&(!r||i))&&a.format(e?.format||l?.format||"auto");let s=e?.quality==="default",n=rR("q_",a,{matchType:"startsWith"}),o=n&&void 0!==e?.quality;s||n&&!o||a.quality(e?.quality||"auto")}return a.toURL({trackedAnalytics:r})}({options:e,config:function(e){let t=e?.cloud?.cloudName??"oaknationalacademy";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??rZ.env.NEXT_PUBLIC_CLOUDINARY_API_KEY,i=e?.url?.secureDistribution??"cloudinary-res.thenational.academy",a=e?.url?.privateCdn??rZ.env.NEXT_PUBLIC_CLOUDINARY_PRIVATE_CDN;return Object.assign({cloud:{...e?.cloud,apiKey:r,cloudName:t},url:{...e?.url,secureDistribution:i,privateCdn:a}},e)}(t),analytics:Object.assign({product:"A",sdkCode:"V",sdkSemver:rq,techVersion:rP,feature:""},r)})}var rF=(0,d.forwardRef)(function(e,t){let r=!1,i=["assetType","config","deliveryType","strictTransformations"];rj.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 s=Object.keys(a).map(e=>`${e}:${a[e]}`).join(";"),[n,o]=(0,d.useState)(s),l={};async function p(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,n=await u({src:a.src});n.error,n.success&&o(`${s};${Date.now()}`)}i.forEach(t=>{let r=e[t];r&&(l[t]=r)}),!0===e.unoptimized&&(a.src=rz({...l,width:a.width,height:a.height,src:a.src,format:"default",quality:"default"},e.config));let h=(0,d.useCallback)(p,[u,s]),f=c;return"default"in f&&(f=f.default),d.createElement(f,{key:n,...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 rz(a,i)})({loaderOptions:t,imageProps:a,cldOptions:l,cldConfig:e.config}),onError:h,ref:t})}),rL=r(81491),rM=(0,d.createContext)(void 0),rD=rM.Provider,rU=function(e){var t=e.cloudinaryId,r=e.unoptimized,i=void 0===r?t.endsWith(".svg"):r,a=(0,l.Tt)(e,["cloudinaryId","unoptimized"]),s=(0,d.useContext)(rM),n=t.toString().replace(new URL(rz({src:"canary.jpg"},s)).origin+"/image/upload/","");return d.createElement(rL.RN,(0,l.Cl)({as:rF,src:n,imageProps:{config:s,flags:i?void 0:["keep_attribution"]},unoptimized:i},a))}}}]); 2//# sourceMappingURL=7891-c98a5378a4bc95ed.js.map
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.