1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="351d73f9-b9a9-4f99-8bb1-40583ce62169",e._sentryDebugIdIdentifier="sentry-dbid-351d73f9-b9a9-4f99-8bb1-40583ce62169")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7409],{9993:(e,t,r)=>{"use strict";let i;r.d(t,{bz:()=>eS,YO:()=>eO,zM:()=>ek,k5:()=>ej,ai:()=>ew,Ik:()=>eC,Yj:()=>ex,KC:()=>eA});var a,n,s=r(98506),o=r(58613);let u=(e,t)=>{let r;switch(e.code){case s.eq.invalid_type:r=e.received===o.Zp.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case s.eq.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,o.ZS.jsonStringifyReplacer)}`;break;case s.eq.unrecognized_keys:r=`Unrecognized key(s) in object: ${o.ZS.joinValues(e.keys,", ")}`;break;case s.eq.invalid_union:r="Invalid input";break;case s.eq.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${o.ZS.joinValues(e.options)}`;break;case s.eq.invalid_enum_value:r=`Invalid enum value. Expected ${o.ZS.joinValues(e.options)}, received '${e.received}'`;break;case s.eq.invalid_arguments:r="Invalid function arguments";break;case s.eq.invalid_return_type:r="Invalid function return type";break;case s.eq.invalid_date:r="Invalid date";break;case s.eq.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}"`:o.ZS.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case s.eq.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 s.eq.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 s.eq.custom:r="Invalid input";break;case s.eq.invalid_intersection_types:r="Intersection results could not be merged";break;case s.eq.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case s.eq.not_finite:r="Number must be finite";break;default:r=t.defaultError,o.ZS.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}(a||(a={}));let l=e=>{let{data:t,path:r,errorMaps:i,issueData:a}=e,n=[...r,...a.path||[]],s={...a,path:n};if(void 0!==a.message)return{...a,path:n,message:a.message};let o="";for(let e of i.filter(e=>!!e).slice().reverse())o=e(s,{data:t,defaultError:o}).message;return{...a,path:n,message:o}};function c(e,t){let r=l({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,u,void 0].filter(e=>!!e)});e.common.issues.push(r)}class d{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 f;"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 d.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 f;"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 f=Object.freeze({status:"aborted"}),p=e=>({status:"dirty",value:e}),h=e=>
vendor: 5,499 bytes, line 1
1({status:"valid",value:e}),m=e=>"undefined"!=typeof Promise&&e instanceof Promise;class g{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 y=(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 s.G(e.common.issues);return this._error=t,this._error}}};function v(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:i,description:a}=e;if(t&&(r||i))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:a}:{errorMap:(t,a)=>{let{message:n}=e;return"invalid_enum_value"===t.code?{message:n??a.defaultError}:void 0===a.data?{message:n??i??a.defaultError}:"invalid_type"!==t.code?{message:a.defaultError}:{message:n??r??a.defaultError}},description:a}}class _{get description(){return this._def.description}_getType(e){return(0,o.CR)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,o.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new d,ctx:{common:e.parent.common,data:e.data,parsedType:(0,o.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(m(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,o.CR)(e)},i=this._parseSync({data:e,path:r.path,parent:r});return y(r,i)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,o.CR)(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:(0,o.CR)(e)},i=this._parse({data:e,path:r.path,parent:r});return y(r,await (m(i)?i:Promise.resolve(i)))}refine(e,t){return this._refinement((r,i)=>{let a=e(r),n=()=>i.addIssue({code:s.eq.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||(n(),!1)):!!a||(n(),!1)})}refinement(e,t){return this._refinement((r,i)=>!!e(r)||(i.addIssue("function"==typeof t?t(r,i):t),!1))}_refinement(e){return new ef({schema:this,typeName:n.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 ep.create(this,this._def)}nullable(){return eh.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return W.create(this)}promise(){return ed.create(this,this._def)}or(e){return H.create([this,e],this._def)}and(e){return ee.create(this,e,this._def)}transform(e){return new ef({...v(this._def),schema:this,typeName:n.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new em({...v(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:n.ZodDefault})}brand(){return new ev({typeName:n.ZodBranded,type:this,...v(this._def)})}catch(e){return new eg({...v(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:n.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return e_.create(this,e)}readonly(){return eb.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let b=/^c[^\s-]{8,}
1$/i,x=/^[0-9a-z]+$/,w=/^[0-9A-HJKMNP-TV-Z]{26}$/i,k=/^[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,S=/^[a-z0-9_-]{21}$/i,O=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,C=/^[-+]?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)?)??$/,A=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,j=/^(?:(?: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])$/,T=/^(?:(?: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])$/,E=/^(([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]))$/,N=/^(([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])$/,Z=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,q=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,$="((\\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])))",I=RegExp(`^${$}$`);function R(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 z extends _{_parse(e){var t,r,a,n;let u;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==o.Zp.string){let t=this._getOrReturnCtx(e);return c(t,{code:s.eq.invalid_type,expected:o.Zp.string,received:t.parsedType}),f}let l=new d;for(let d of this._def.checks)if("min"===d.kind)e.data.length<d.value&&(c(u=this._getOrReturnCtx(e,u),{code:s.eq.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&&(c(u=this._getOrReturnCtx(e,u),{code:s.eq.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)&&(u=this._getOrReturnCtx(e,u),t?c(u,{code:s.eq.too_big,maximum:d.value,type:"string",inclusive:!0,exact:!0,message:d.message}):r&&c(u,{code:s.eq.too_small,minimum:d.value,type:"string",inclusive:!0,exact:!0,message:d.message}),l.dirty())}else if("email"===d.kind)A.test(e.data)||(c(u=this._getOrReturnCtx(e,u),{validation:"email",code:s.eq.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)||(c(u=this._getOrReturnCtx(e,u),{validation:"emoji",code:s.eq.invalid_string,message:d.message}),l.dirty());else if("uuid"===d.kind)k.test(e.data)||(c(u=this._getOrReturnCtx(e,u),{validation:"uuid",code:s.eq.invali
vendor: 11,721 bytes, line 1
1d_string,message:d.message}),l.dirty());else if("nanoid"===d.kind)S.test(e.data)||(c(u=this._getOrReturnCtx(e,u),{validation:"nanoid",code:s.eq.invalid_string,message:d.message}),l.dirty());else if("cuid"===d.kind)b.test(e.data)||(c(u=this._getOrReturnCtx(e,u),{validation:"cuid",code:s.eq.invalid_string,message:d.message}),l.dirty());else if("cuid2"===d.kind)x.test(e.data)||(c(u=this._getOrReturnCtx(e,u),{validation:"cuid2",code:s.eq.invalid_string,message:d.message}),l.dirty());else if("ulid"===d.kind)w.test(e.data)||(c(u=this._getOrReturnCtx(e,u),{validation:"ulid",code:s.eq.invalid_string,message:d.message}),l.dirty());else if("url"===d.kind)try{new URL(e.data)}catch{c(u=this._getOrReturnCtx(e,u),{validation:"url",code:s.eq.invalid_string,message:d.message}),l.dirty()}else"regex"===d.kind?(d.regex.lastIndex=0,d.regex.test(e.data)||(c(u=this._getOrReturnCtx(e,u),{validation:"regex",code:s.eq.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)||(c(u=this._getOrReturnCtx(e,u),{code:s.eq.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)||(c(u=this._getOrReturnCtx(e,u),{code:s.eq.invalid_string,validation:{startsWith:d.value},message:d.message}),l.dirty()):"endsWith"===d.kind?e.data.endsWith(d.value)||(c(u=this._getOrReturnCtx(e,u),{code:s.eq.invalid_string,validation:{endsWith:d.value},message:d.message}),l.dirty()):"datetime"===d.kind?(function(e){let t=`${$}T${R(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)||(c(u=this._getOrReturnCtx(e,u),{code:s.eq.invalid_string,validation:"datetime",message:d.message}),l.dirty()):"date"===d.kind?I.test(e.data)||(c(u=this._getOrReturnCtx(e,u),{code:s.eq.invalid_string,validation:"date",message:d.message}),l.dirty()):"time"===d.kind?RegExp(`^${R(d)}$`).test(e.data)||(c(u=this._getOrReturnCtx(e,u),{code:s.eq.invalid_string,validation:"time",message:d.message}),l.dirty()):"duration"===d.kind?C.test(e.data)||(c(u=this._getOrReturnCtx(e,u),{validation:"duration",code:s.eq.invalid_string,message:d.message}),l.dirty()):"ip"===d.kind?(t=e.data,!(("v4"===(r=d.version)||!r)&&j.test(t)||("v6"===r||!r)&&E.test(t))&&1&&(c(u=this._getOrReturnCtx(e,u),{validation:"ip",code:s.eq.invalid_string,message:d.message}),l.dirty())):"jwt"===d.kind?!function(e,t){if(!O.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)&&(c(u=this._getOrReturnCtx(e,u),{validation:"jwt",code:s.eq.invalid_string,message:d.message}),l.dirty()):"cidr"===d.kind?(a=e.data,!(("v4"===(n=d.version)||!n)&&T.test(a)||("v6"===n||!n)&&N.test(a))&&1&&(c(u=this._getOrReturnCtx(e,u),{validation:"cidr",code:s.eq.invalid_string,message:d.message}),l.dirty())):"base64"===d.kind?Z.test(e.data)||(c(u=this._getOrReturnCtx(e,u),{validation:"base64",code:s.eq.invalid_string,message:d.message}),l.dirty()):"base64url"===d.kind?q.test(e.data)||(c(u=this._getOrReturnCtx(e,u),{validation:"base64url",code:s.eq.invalid_string,message:d.message}),l.dirty()):o.ZS.assertNever(d);return{status:l.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:s.eq.invalid_string,...a.errToObj(r)})}_addCheck(e){return new z({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...a.errToObj(e)})}url(e){return this._addCheck({kind:"url",...a.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...a.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...a.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...a.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...a.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...a.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...a.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...a.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...a.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...a.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...a.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...a.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,...a.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,...a.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...a.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...a.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...a.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...a.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...a.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...a.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...a.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...a.errToObj(t)})}nonempty(e){return this.min(1,a.errToObj(e))}trim(){return new z({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new z({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new z({...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}}z.create=e=>new z({checks:[],typeName:n.ZodString,coerce:e?.coerce??!1,...v(e)});class M extends _{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)!==o.Zp.number){let t=this._getOrReturnCtx(e);return c(t,{code:s.eq.invalid_type,expected:o.Zp.number,received:t.parsedType}),f}let r=new d;for(let i of this._def.checks)"int"===i.kind?o.ZS.isInteger(e.data)||(c(t=this._getOrReturnCtx(e,t),{code:s.eq.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(c(t=this._getOrReturnCtx(e,t),{code:s.eq.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)&&(c(t=this._getOrReturnCtx(e,t),{code:s.eq.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)&&(c(t=this._getOrReturnCtx(e,t),{code:s.eq.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):"finite"===i.kind?Number.isFinite(e.data)||(c(t=this._getOrReturnCtx(e,t),{code:s.eq.not_finite,message:i.message}),r.dirty()):o.ZS.assertNever(i);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,a.toString(t))}gt(e,t){return this.setLimit("min",e,!1,a.toString(t))}lte(e,t){return this.setLimit("max",e,!0,a.toString(t))}lt(e,t){return this.setLimit("max",e,!1,a.toString(t))}setLimit(e,t,r,i){return new M({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:a.toString(i)}]})}_addCheck(e){return new M({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:a.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:a.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:a.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:a.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:a.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:a.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:a.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:a.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:a.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&&o.ZS.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)}}M.create=e=>new M({checks:[],typeName:n.ZodNumber,coerce:e?.coerce||!1,...v(e)});class P extends _{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)!==o.Zp.bigint)return this._getInvalidInput(e);let r=new d;for(let i of this._def.checks)"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(c(t=this._getOrReturnCtx(e,t),{code:s.eq.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)&&(c(t=this._getOrReturnCtx(e,t),{code:s.eq.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):"multipleOf"===i.kind?e.data%i.value!==BigInt(0)&&(c(t=this._getOrReturnCtx(e,t),{code:s.eq.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):o.ZS.assertNever(i);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);
1return c(t,{code:s.eq.invalid_type,expected:o.Zp.bigint,received:t.parsedType}),f}gte(e,t){return this.setLimit("min",e,!0,a.toString(t))}gt(e,t){return this.setLimit("min",e,!1,a.toString(t))}lte(e,t){return this.setLimit("max",e,!0,a.toString(t))}lt(e,t){return this.setLimit("max",e,!1,a.toString(t))}setLimit(e,t,r,i){return new P({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:a.toString(i)}]})}_addCheck(e){return new P({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:a.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:a.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:a.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:a.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:a.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}}P.create=e=>new P({checks:[],typeName:n.ZodBigInt,coerce:e?.coerce??!1,...v(e)});class U extends _{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==o.Zp.boolean){let t=this._getOrReturnCtx(e);return c(t,{code:s.eq.invalid_type,expected:o.Zp.boolean,received:t.parsedType}),f}return h(e.data)}}U.create=e=>new U({typeName:n.ZodBoolean,coerce:e?.coerce||!1,...v(e)});class Y extends _{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==o.Zp.date){let t=this._getOrReturnCtx(e);return c(t,{code:s.eq.invalid_type,expected:o.Zp.date,received:t.parsedType}),f}if(Number.isNaN(e.data.getTime()))return c(this._getOrReturnCtx(e),{code:s.eq.invalid_date}),f;let r=new d;for(let i of this._def.checks)"min"===i.kind?e.data.getTime()<i.value&&(c(t=this._getOrReturnCtx(e,t),{code:s.eq.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):"max"===i.kind?e.data.getTime()>i.value&&(c(t=this._getOrReturnCtx(e,t),{code:s.eq.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):o.ZS.assertNever(i);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Y({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:a.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:a.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Y.create=e=>new Y({checks:[],coerce:e?.coerce||!1,typeName:n.ZodDate,...v(e)});class L extends _{_parse(e){if(this._getType(e)!==o.Zp.symbol){let t=this._getOrReturnCtx(e);return c(t,{code:s.eq.invalid_type,expected:o.Zp.symbol,received:t.parsedType}),f}return h(e.data)}}L.create=e=>new L({typeName:n.ZodSymbol,...v(e)});class B extends _{_parse(e){if(this._getType(e)!==o.Zp.undefined){let t=this._getOrReturnCtx(e);return c(t,{code:s.eq.invalid_type,expected:o.Zp.undefined,received:t.parsedType}),f}return h(e.data)}}B.create=e=>new B({typeName:n.ZodUndefined,...v(e)});class J extends _{_parse(e){if(this._getType(e)!==o.Zp.null){let t=this._getOrReturnCtx(e);return c(t,{code:s.eq.invalid_type,expected:o.Zp.null,received:t.parsedType}),f}return h(e.data)}}J.create=e=>new J({typeName:n.ZodNull,...v(e)});class F extends _{constructor(){super(...arguments),this._any=!0}_parse(e){return h(e.data)}}F.create=e=>new F({typeName:n.ZodAny,...v(e)});class K extends _{constructor(){super(...arguments),this._unknown=!0}_parse(e){return h(e.data)}}K.create=e=>new K({typeName:n.ZodUnknown,...v(e)});class D extends _{_parse(e){let t=this._getOrReturnCtx(e);
1return c(t,{code:s.eq.invalid_type,expected:o.Zp.never,received:t.parsedType}),f}}D.create=e=>new D({typeName:n.ZodNever,...v(e)});class V extends _{_parse(e){if(this._getType(e)!==o.Zp.undefined){let t=this._getOrReturnCtx(e);return c(t,{code:s.eq.invalid_type,expected:o.Zp.void,received:t.parsedType}),f}return h(e.data)}}V.create=e=>new V({typeName:n.ZodVoid,...v(e)});class W extends _{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),i=this._def;if(t.parsedType!==o.Zp.array)return c(t,{code:s.eq.invalid_type,expected:o.Zp.array,received:t.parsedType}),f;if(null!==i.exactLength){let e=t.data.length>i.exactLength.value,a=t.data.length<i.exactLength.value;(e||a)&&(c(t,{code:e?s.eq.too_big:s.eq.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&&(c(t,{code:s.eq.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&&(c(t,{code:s.eq.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 g(t,e,t.path,r)))).then(e=>d.mergeArray(r,e));let a=[...t.data].map((e,r)=>i.type._parseSync(new g(t,e,t.path,r)));return d.mergeArray(r,a)}get element(){return this._def.type}min(e,t){return new W({...this._def,minLength:{value:e,message:a.toString(t)}})}max(e,t){return new W({...this._def,maxLength:{value:e,message:a.toString(t)}})}length(e,t){return new W({...this._def,exactLength:{value:e,message:a.toString(t)}})}nonempty(e){return this.min(1,e)}}W.create=(e,t)=>new W({type:e,minLength:null,maxLength:null,exactLength:null,typeName:n.ZodArray,...v(t)});class G extends _{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=o.ZS.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==o.Zp.object){let t=this._getOrReturnCtx(e);return c(t,{code:s.eq.invalid_type,expected:o.Zp.object,received:t.parsedType}),f}let{status:t,ctx:r}=this._processInputParams(e),{shape:i,keys:a}=this._getCached(),n=[];if(!(this._def.catchall instanceof D&&"strip"===this._def.unknownKeys))for(let e in r.data)a.includes(e)||n.push(e);let u=[];for(let e of a){let t=i[e],a=r.data[e];u.push({key:{status:"valid",value:e},value:t._parse(new g(r,a,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof D){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of n)u.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)n.length>0&&(c(r,{code:s.eq.unrecognized_keys,keys:n}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of n){let i=r.data[t];u.push({key:{status:"valid",value:t},value:e._parse(new g(r,i,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of u){let r=await t.key,i=await t.value;e.push({key:r,value:i,alwaysSet:t.alwaysSet})}return e}).then(e=>d.mergeObjectSync(t,e)):d.mergeObjectSync(t,u)}get shape(){return this._def.shape()}strict(e){return a.errToObj,new G({...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:a.errToObj(e).message??i}:{message:i}}}:{}})}strip(){return new G({...this._def,unknownKeys:"strip"})}passthrough(){return new G({...this._def,unknownKeys:"passthrough"})}extend(e){return new G({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new G({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:n.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new G({...this._def,catchall:e})}pick(e){let t={};for(let r of o.ZS.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new G({...this._def,shape:()=>t})}omit(e){let t={};for(let r of o.ZS.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new G({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof G){let r={};for(let i in t.shape){let a=t.shape[i];r[i]=ep.create(e(a))}return new G({...t._def,shape:()=>r})}if(t instanceof W)return new W({...t._def,type:e(t.element)});if(t instanceof ep)return ep.create(e(t.unwrap()));if(t instanceof eh)return eh.create(e(t.unwrap()));if(t instanceof et)return et.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let r of o.ZS.objectKeys(this.shape)){let i=this.shape[r];e&&!e[r]?t[r]=i:t[r]=i.optional()}return new G({...this._def,shape:()=>t})}required(e){let t={};for(let r of o.ZS.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof ep;)e=e._def.innerType;t[r]=e}return new G({...this._def,shape:()=>t})}keyof(){return eu(o.ZS.objectKeys(this.shape))}}G.create=(e,t)=>
1new G({shape:()=>e,unknownKeys:"strip",catchall:D.create(),typeName:n.ZodObject,...v(t)}),G.strictCreate=(e,t)=>new G({shape:()=>e,unknownKeys:"strict",catchall:D.create(),typeName:n.ZodObject,...v(t)}),G.lazycreate=(e,t)=>new G({shape:e,unknownKeys:"strip",catchall:D.create(),typeName:n.ZodObject,...v(t)});class H extends _{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new s.G(e.ctx.common.issues));return c(t,{code:s.eq.invalid_union,unionErrors:r}),f});{let e,i=[];for(let a of r){let r={...t,common:{...t.common,issues:[]},parent:null},n=a._parseSync({data:t.data,path:t.path,parent:r});if("valid"===n.status)return n;"dirty"!==n.status||e||(e={result:n,ctx:r}),r.common.issues.length&&i.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let a=i.map(e=>new s.G(e));return c(t,{code:s.eq.invalid_union,unionErrors:a}),f}}get options(){return this._def.options}}H.create=(e,t)=>new H({options:e,typeName:n.ZodUnion,...v(t)});let Q=e=>{if(e instanceof es)return Q(e.schema);if(e instanceof ef)return Q(e.innerType());if(e instanceof eo)return[e.value];if(e instanceof el)return e.options;if(e instanceof ec)return o.ZS.objectValues(e.enum);else if(e instanceof em)return Q(e._def.innerType);else if(e instanceof B)return[void 0];else if(e instanceof J)return[null];else if(e instanceof ep)return[void 0,...Q(e.unwrap())];else if(e instanceof eh)return[null,...Q(e.unwrap())];else if(e instanceof ev)return Q(e.unwrap());else if(e instanceof eb)return Q(e.unwrap());else if(e instanceof eg)return Q(e._def.innerType);else return[]};class X extends _{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.Zp.object)return c(t,{code:s.eq.invalid_type,expected:o.Zp.object,received:t.parsedType}),f;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}):(c(t,{code:s.eq.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),f)}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=Q(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 X({typeName:n.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:i,...v(r)})}}class ee extends _{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),i=(e,i)=>{if("aborted"===e.status||"aborted"===i.status)return f;let a=function e(t,r){let i=(0,o.CR)(t),a=(0,o.CR)(r);if(t===r)return{valid:!0,data:t};if(i===o.Zp.object&&a===o.Zp.object){let i=o.ZS.objectKeys(r),a=o.ZS.objectKeys(t).filter(e=>-1!==i.indexOf(e)),n={...t,...r};for(let i of a){let a=e(t[i],r[i]);if(!a.valid)return{valid:!1};n[i]=a.data}return{valid:!0,data:n}}if(i===o.Zp.array&&a===o.Zp.array){if(t.length!==r.length)return{valid:!1};let i=[];for(let a=0;a<t.length;a++){let n=e(t[a],r[a]);if(!n.valid)return{valid:!1};i.push(n.data)}return{valid:!0,data:i}}if(i===o.Zp.date&&a===o.Zp.date&&+t==+r)return{valid:!0,data:t};return{valid:!1}}(e.value,i.value);return a.valid?(("dirty"===e.status||"dirty"===i.status)&&t.dirty(),{status:t.value,value:a.data}):(c(r,{code:s.eq.invalid_intersection_types}),f)};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}))}}ee.create=(e,t,r)=>new ee({left:e,right:t,typeName:n.ZodIntersection,...v(r)});class et extends _{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);
1if(r.parsedType!==o.Zp.array)return c(r,{code:s.eq.invalid_type,expected:o.Zp.array,received:r.parsedType}),f;if(r.data.length<this._def.items.length)return c(r,{code:s.eq.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),f;!this._def.rest&&r.data.length>this._def.items.length&&(c(r,{code:s.eq.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 g(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(i).then(e=>d.mergeArray(t,e)):d.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new et({...this._def,rest:e})}}et.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new et({items:e,typeName:n.ZodTuple,rest:null,...v(t)})};class er extends _{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!==o.Zp.object)return c(r,{code:s.eq.invalid_type,expected:o.Zp.object,received:r.parsedType}),f;let i=[],a=this._def.keyType,n=this._def.valueType;for(let e in r.data)i.push({key:a._parse(new g(r,e,r.path,e)),value:n._parse(new g(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?d.mergeObjectAsync(t,i):d.mergeObjectSync(t,i)}get element(){return this._def.valueType}static create(e,t,r){return new er(t instanceof _?{keyType:e,valueType:t,typeName:n.ZodRecord,...v(r)}:{keyType:z.create(),valueType:e,typeName:n.ZodRecord,...v(t)})}}class ei extends _{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!==o.Zp.map)return c(r,{code:s.eq.invalid_type,expected:o.Zp.map,received:r.parsedType}),f;let i=this._def.keyType,a=this._def.valueType,n=[...r.data.entries()].map(([e,t],n)=>({key:i._parse(new g(r,e,r.path,[n,"key"])),value:a._parse(new g(r,t,r.path,[n,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of n){let i=await r.key,a=await r.value;if("aborted"===i.status||"aborted"===a.status)return f;("dirty"===i.status||"dirty"===a.status)&&t.dirty(),e.set(i.value,a.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of n){let i=r.key,a=r.value;if("aborted"===i.status||"aborted"===a.status)return f;("dirty"===i.status||"dirty"===a.status)&&t.dirty(),e.set(i.value,a.value)}return{status:t.value,value:e}}}}ei.create=(e,t,r)=>new ei({valueType:t,keyType:e,typeName:n.ZodMap,...v(r)});class ea extends _{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==o.Zp.set)return c(r,{code:s.eq.invalid_type,expected:o.Zp.set,received:r.parsedType}),f;let i=this._def;null!==i.minSize&&r.data.size<i.minSize.value&&(c(r,{code:s.eq.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&&(c(r,{code:s.eq.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());let a=this._def.valueType;function n(e){let r=new Set;for(let i of e){if("aborted"===i.status)return f;"dirty"===i.status&&t.dirty(),r.add(i.value)}return{status:t.value,value:r}}let u=[...r.data.values()].map((e,t)=>a._parse(new g(r,e,r.path,t)));return r.common.async?Promise.all(u).then(e=>n(e)):n(u)}min(e,t){return new ea({...this._def,minSize:{value:e,message:a.toString(t)}})}max(e,t){return new ea({...this._def,maxSize:{value:e,message:a.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ea.create=(e,t)=>new ea({valueType:e,minSize:null,maxSize:null,typeName:n.ZodSet,...v(t)});class en extends _{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.Zp.function)return c(t,{code:s.eq.invalid_type,expected:o.Zp.function,received:t.parsedType}),f;function r(e,r){return l({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,u,u].filter(e=>
1!!e),issueData:{code:s.eq.invalid_arguments,argumentsError:r}})}function i(e,r){return l({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,u,u].filter(e=>!!e),issueData:{code:s.eq.invalid_return_type,returnTypeError:r}})}let a={errorMap:t.common.contextualErrorMap},n=t.data;if(this._def.returns instanceof ed){let e=this;return h(async function(...t){let o=new s.G([]),u=await e._def.args.parseAsync(t,a).catch(e=>{throw o.addIssue(r(t,e)),o}),l=await Reflect.apply(n,this,u);return await e._def.returns._def.type.parseAsync(l,a).catch(e=>{throw o.addIssue(i(l,e)),o})})}{let e=this;return h(function(...t){let o=e._def.args.safeParse(t,a);if(!o.success)throw new s.G([r(t,o.error)]);let u=Reflect.apply(n,this,o.data),l=e._def.returns.safeParse(u,a);if(!l.success)throw new s.G([i(u,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new en({...this._def,args:et.create(e).rest(K.create())})}returns(e){return new en({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new en({args:e||et.create([]).rest(K.create()),returns:t||K.create(),typeName:n.ZodFunction,...v(r)})}}class es extends _{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})}}es.create=(e,t)=>new es({getter:e,typeName:n.ZodLazy,...v(t)});class eo extends _{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return c(t,{received:t.data,code:s.eq.invalid_literal,expected:this._def.value}),f}return{status:"valid",value:e.data}}get value(){return this._def.value}}function eu(e,t){return new el({values:e,typeName:n.ZodEnum,...v(t)})}eo.create=(e,t)=>new eo({value:e,typeName:n.ZodLiteral,...v(t)});class el extends _{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return c(t,{expected:o.ZS.joinValues(r),received:t.parsedType,code:s.eq.invalid_type}),f}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 c(t,{received:t.data,code:s.eq.invalid_enum_value,options:r}),f}return h(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 el.create(e,{...this._def,...t})}exclude(e,t=this._def){return el.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}el.create=eu;class ec extends _{_parse(e){let t=o.ZS.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==o.Zp.string&&r.parsedType!==o.Zp.number){let e=o.ZS.objectValues(t);return c(r,{expected:o.ZS.joinValues(e),received:r.parsedType,code:s.eq.invalid_type}),f}if(this._cache||(this._cache=new Set(o.ZS.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=o.ZS.objectValues(t);return c(r,{received:r.data,code:s.eq.invalid_enum_value,options:e}),f}return h(e.data)}get enum(){return this._def.values}}ec.create=(e,t)=>new ec({values:e,typeName:n.ZodNativeEnum,...v(t)});class ed extends _{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==o.Zp.promise&&!1===t.common.async?(c(t,{code:s.eq.invalid_type,expected:o.Zp.promise,received:t.parsedType}),f):h((t.parsedType===o.Zp.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ed.create=(e,t)=>new ed({type:e,typeName:n.ZodPromise,...v(t)});class ef extends _{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===n.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),i=this._def.effect||null,a={addIssue:e=>{c(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};
1if(a.addIssue=a.addIssue.bind(a),"preprocess"===i.type){let e=i.transform(r.data,a);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return f;let i=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===i.status?f:"dirty"===i.status||"dirty"===t.value?p(i.value):i});{if("aborted"===t.value)return f;let i=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===i.status?f:"dirty"===i.status||"dirty"===t.value?p(i.value):i}}if("refinement"===i.type){let e=e=>{let t=i.refinement(e,a);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?f:("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?f:("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?f:Promise.resolve(i.transform(e.value,a)).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 f;let n=i.transform(e.value,a);if(n instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:n}}o.ZS.assertNever(i)}}ef.create=(e,t,r)=>new ef({schema:e,typeName:n.ZodEffects,effect:t,...v(r)}),ef.createWithPreprocess=(e,t,r)=>new ef({schema:t,effect:{type:"preprocess",transform:e},typeName:n.ZodEffects,...v(r)});class ep extends _{_parse(e){return this._getType(e)===o.Zp.undefined?h(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ep.create=(e,t)=>new ep({innerType:e,typeName:n.ZodOptional,...v(t)});class eh extends _{_parse(e){return this._getType(e)===o.Zp.null?h(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eh.create=(e,t)=>new eh({innerType:e,typeName:n.ZodNullable,...v(t)});class em extends _{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===o.Zp.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}em.create=(e,t)=>new em({innerType:e,typeName:n.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...v(t)});class eg extends _{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return m(i)?i.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new s.G(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===i.status?i.value:this._def.catchValue({get error(){return new s.G(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}eg.create=(e,t)=>new eg({innerType:e,typeName:n.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...v(t)});class ey extends _{_parse(e){if(this._getType(e)!==o.Zp.nan){let t=this._getOrReturnCtx(e);return c(t,{code:s.eq.invalid_type,expected:o.Zp.nan,received:t.parsedType}),f}return{status:"valid",value:e.data}}}ey.create=e=>new ey({typeName:n.ZodNaN,...v(e)}),Symbol("zod_brand");class ev extends _{_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 e_ extends _{_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?f:"dirty"===e.status?(t.dirty(),p(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?f:"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 e_({in:e,out:t,typeName:n.ZodPipeline})}}class eb extends _{_parse(e){let t=this._def.innerType._parse(e),r=e=>("valid"===e.status&&(e.value=Object.freeze(e.value)),e);return m(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}eb.create=(e,t)=>
vendor: 21,782 bytes, line 1
1new eb({innerType:e,typeName:n.ZodReadonly,...v(t)}),G.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"}(n||(n={}));let ex=z.create,ew=M.create;ey.create,P.create;let ek=U.create;Y.create,L.create,B.create,J.create;let eS=F.create;K.create,D.create,V.create;let eO=W.create,eC=G.create;G.strictCreate;let eA=H.create;X.create,ee.create,et.create,er.create,ei.create,ea.create,en.create,es.create,eo.create;let ej=el.create;ec.create,ed.create,ef.create,ep.create,eh.create,ef.createWithPreprocess,e_.create},52075:(e,t,r)=>{"use strict";var i=r(59113),a=r(54272),n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e){var i=e,a=t;if(("string"!=typeof a||""===a)&&(a="utf8"),!o.isEncoding(a))throw TypeError("Unknown encoding: "+a);var n=0|h(i,a),u=s(n),l=u.write(i,a);return l!==n&&(u=u.slice(0,l)),u}if(ArrayBuffer.isView(e)){var c=e;if(T(c,Uint8Array)){var m=new Uint8Array(c);return f(m.buffer,m.byteOffset,m.byteLength)}return d(c)}if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(T(e,ArrayBuffer)||e&&T(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(T(e,SharedArrayBuffer)||e&&T(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var g=e.valueOf&&e.valueOf();if(null!=g&&g!==e)return o.from(g,t,r);var y=function(e){if(o.isBuffer(e)){var t=0|p(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?s(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(y)return y;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return l(e),s(e<0?0:0|p(e))}function d(e){for(var t=e.length<0?0:0|p(e.length),r=s(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function f(e,t,r){var i;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),o.prototype),i}function p(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||T(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return A(e).length;default:if(a)return i?-1:C(e).length;t=(""+t).toLowerCase(),a=!0}}function m(e,t,r){var a,n,s,o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);for(var a="",n=t;n<r;++n)a+=E[e[n]];return a}(this,t,r);case"utf8":case"utf-8":return _(this,t,r);case"ascii":return function(e,t,r){var i="";r=Math.min(e.length,r);for(var a=t;a<r;++a)i+=String.fromCharCode(127&e[a]);return i}(this,t,r);case"latin1":case"binary":return function(e,t,r){var i="";r=Math.min(e.length,r);for(var a=t;a<r;++a)i+=String.fromCharCode(e[a]);return i}(this,t,r);case"base64":return a=this,n=t,s=r,0===n&&s===a.length?i.fromByteArray(a):i.fromByteArray(a.slice(n,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var i=e.slice(t,r),a="",n=0;n<i.length-1;n+=2)a+=String.fromCharCode(i[n]+256*i[n+1]);return a}(this,t,r);default:if(o)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function g(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function y(e,t,r,i,a){var n;if(0===e.length)return -1;if("string"==typeof r?(i=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(n=r*=1)!=n&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(a)return -1;else r=e.length-1;else if(r<0)if(!a)return -1;else r=0;if("string"==typeof t&&(t=o.from(t,i)),o.isBuffer(t))return 0===t.length?-1:v(e,t,r,i,a);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(a)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return v(e,[t],r,i,a)}throw TypeError("val must be string, number or Buffer")}function v(e,t,r,i,a){var n,s=1,o=e.length,u=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return -1;s=2,o/=2,u/=2,r/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(a){var c=-1;for(n=r;n<o;n++)if(l(e,n)===l(t,-1===c?0:n-c)){if(-1===c&&(c=n),n-c+1===u)return c*s}else -1!==c&&(n-=n-c),c=-1}else for(r+u>o&&(r=o-u),n=r;n>=0;n--){for(var d=!0,f=0;f<u;f++)if(l(e,n+f)!==l(t,f)){d=!1;break}if(d)return n}return -1}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],a=t;a<r;){var n,s,o,u,l=e[a],c=null,d=l>239?4:l>223?3:l>191?2:1;if(a+d<=r)switch(d){case 1:l<128&&(c=l);break;case 2:(192&(n=e[a+1]))==128&&(u=(31&l)<<6|63&n)>127&&(c=u);break;case 3:n=e[a+1],s=e[a+2],(192&n)==128&&(192&s)==128&&(u=(15&l)<<12|(63&n)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:n=e[a+1],s=e[a+2],o=e[a+3],(192&n)==128&&(192&s)==128&&(192&o)==128&&(u=(15&l)<<18|(63&n)<<12|(63&s)<<6|63&o)>65535&&u<1114112&&(c=u)}null===c?(c=65533,d=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),a+=d}var f=i,p=f.length;if(p<=4096)return String.fromCharCode.apply(String,f);for(var h="",m=0;m<p;)h+=String.fromCharCode.apply(String,f.slice(m,m+=4096));return h}function b(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function x(e,t,r,i,a,n){if(!o.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<n)throw RangeError('"value" argument is out of bounds');if(r+i>e.length)throw RangeError("Index out of range")}function w(e,t,r,i,a,n){if(r+i>e.length||r<0)throw RangeError("Index out of range")}function k(e,t,r,i,n){return t*=1,r>>>=0,n||w(e,t,r,4,34028234663852886e22,-34028234663852886e22),a.write(e,t,r,i,23,4),r+4}function S(e,t,r,i,n){return t*=1,r>>>=0,n||w(e,t,r,8,17976931348623157e292,-17976931348623157e292),a.write(e,t,r,i,52,8),r+8}t.hp=o,t.IS=50,o.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),o.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(e,t,r){return(l(e),e<=0)?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)},o.allocUnsafe=function(e){return c(e)},o.allocUnsafeSlow=function(e){return c(e)},o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(T(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),T(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,a=0,n=Math.min(r,i);a<n;++a)if(e[a]!==t[a]){r=e[a],i=t[a];break}return r<i?-1:+(i<r)},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,i=o.allocUnsafe(t),a=0;for(r=0;r<e.length;++r){var n=e[r];if(T(n,Uint8Array))a+n.length>i.length?o.from(n).copy(i,a):Uint8Array.prototype.set.call(i,n,a);else if(o.isBuffer(n))n.copy(i,a);else throw TypeError('"list" argument must be an Array of Buffers');a+=n.length}return i},o.byteLength=h,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},o.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?_(this,0,e):m.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",r=t.IS;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(e,t,r,i,a){if(T(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===a&&(a=this.length),t<0||r>e.length||i<0||a>this.length)throw RangeError("out of range index");if(i>=a&&t>=r)return 0;if(i>=a)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,i>>>=0,a>>>=0,this===e)return 0;for(var n=a-i,s=r-t,u=Math.min(n,s),l=this.slice(i,a),c=e.slice(t,r),d=0;d<u;++d)if(l[d]!==c[d]){n=l[d],s=c[d];break}return n<s?-1:+(s<n)},o.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},o.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},o.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},o.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a,n,s,o,u,l,c,d,f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var p=!1;;)switch(i){case"hex":return function(e,t,r,i){r=Number(r)||0;var a=e.length-r;i?(i=Number(i))>a&&(i=a):i=a;var n=t.length;i>n/2&&(i=n/2);for(var s=0;s<i;++s){var o,u=parseInt(t.substr(2*s,2),16);if((o=u)!=o)break;e[r+s]=u}return s}(this,e,t,r);case"utf8":case"utf-8":return a=t,n=r,j(C(e,this.length-a),this,a,n);case"ascii":case"latin1":case"binary":return s=t,o=r,j(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,s,o);case"base64":return u=t,l=r,j(A(e),this,u,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,d=r,j(function(e,t){for(var r,i,a=[],n=0;n<e.length&&!((t-=2)<0);++n)i=(r=e.charCodeAt(n))>>8,a.push(r%256),a.push(i);return a}(e,this.length-c),this,c,d);default:if(p)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,o.prototype),i},o.prototype.readUintLE=o.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var i=this[e],a=1,n=0;++n<t&&(a*=256);)i+=this[e+n]*a;return i},o.prototype.readUintBE=o.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var i=this[e+--t],a=1;t>0&&(a*=256);)i+=this[e+--t]*a;return i},o.prototype.readUint8=o.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var i=this[e],a=1,n=0;++n<t&&(a*=256);)i+=this[e+n]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},o.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var i=t,a=1,n=this[e+--i];i>0&&(a*=256);)n+=this[e+--i]*a;return n>=(a*=128)&&(n-=Math.pow(2,8*t)),n},o.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),a.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),a.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),a.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),a.read(this,e,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(e,t,r,i){if(e*=1,t>>>=0,r>>>=0,!i){var a=Math.pow(2,8*r)-1;x(this,e,t,r,a,0)}var n=1,s=0;for(this[t]=255&e;++s<r&&(n*=256);)this[t+s]=e/n&255;return t+r},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(e,t,r,i){if(e*=1,t>>>=0,r>>>=0,!i){var a=Math.pow(2,8*r)-1;x(this,e,t,r,a,0)}var n=r-1,s=1;for(this[t+n]=255&e;--n>=0&&(s*=256);)this[t+n]=e/s&255;return t+r},o.prototype.writeUint8=o.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeIntLE=function(e,t,r,i){if(e*=1,t>>>=0,!i){var a=Math.pow(2,8*r-1);x(this,e,t,r,a-1,-a)}var n=0,s=1,o=0;for(this[t]=255&e;++n<r&&(s*=256);)e<0&&0===o&&0!==this[t+n-1]&&(o=1),this[t+n]=(e/s|0)-o&255;return t+r},o.prototype.writeIntBE=function(e,t,r,i){if(e*=1,t>>>=0,!i){var a=Math.pow(2,8*r-1);x(this,e,t,r,a-1,-a)}var n=r-1,s=1,o=0;for(this[t+n]=255&e;--n>=0&&(s*=256);)e<0&&0===o&&0!==this[t+n+1]&&(o=1),this[t+n]=(e/s|0)-o&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||x(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeFloatLE=function(e,t,r){return k(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return k(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return S(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return S(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,i){if(!o.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<r&&(i=r),i===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var a=i-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,i):Uint8Array.prototype.set.call(e,this.subarray(r,i),t),a},o.prototype.fill=function(e,t,r,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw TypeError("encoding must be a string");if("string"==typeof i&&!o.isEncoding(i))throw TypeError("Unknown encoding: "+i);if(1===e.length){var a,n=e.charCodeAt(0);("utf8"===i&&n<128||"latin1"===i)&&(e=n)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var s=o.isBuffer(e)?e:o.from(e,i),u=s.length;if(0===u)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<r-t;++a)this[a+t]=s[a%u]}return this};var O=/[^+/0-9A-Za-z-_]/g;function C(e,t){t=t||1/0;for(var r,i=e.length,a=null,n=[],s=0;s<i;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!a){if(r>56319||s+1===i){(t-=3)>-1&&n.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&n.push(239,191,189),a=r;continue}r=(a-55296<<10|r-56320)+65536}else a&&(t-=3)>-1&&n.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;n.push(r)}else if(r<2048){if((t-=2)<0)break;n.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;n.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;n.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return n}function A(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(O,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function j(e,t,r,i){for(var a=0;a<i&&!(a+r>=t.length)&&!(a>=e.length);++a)t[a+r]=e[a];return a}function T(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var E=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var i=16*r,a=0;a<16;++a)t[i+a]=e[r]+e[a];return t}()},54272:(e,t)=>
1{t.read=function(e,t,r,i,a){var n,s,o=8*a-i-1,u=(1<<o)-1,l=u>>1,c=-7,d=r?a-1:0,f=r?-1:1,p=e[t+d];for(d+=f,n=p&(1<<-c)-1,p>>=-c,c+=o;c>0;n=256*n+e[t+d],d+=f,c-=8);for(s=n&(1<<-c)-1,n>>=-c,c+=i;c>0;s=256*s+e[t+d],d+=f,c-=8);if(0===n)n=1-l;else{if(n===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,i),n-=l}return(p?-1:1)*s*Math.pow(2,n-i)},t.write=function(e,t,r,i,a,n){var s,o,u,l=8*n-a-1,c=(1<<l)-1,d=c>>1,f=5960464477539062e-23*(23===a),p=i?0:n-1,h=i?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(o=+!!isNaN(t),s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+d>=1?t+=f/u:t+=f*Math.pow(2,1-d),t*u>=2&&(s++,u/=2),s+d>=c?(o=0,s=c):s+d>=1?(o=(t*u-1)*Math.pow(2,a),s+=d):(o=t*Math.pow(2,d-1)*Math.pow(2,a),s=0));a>=8;e[r+p]=255&o,p+=h,o/=256,a-=8);for(s=s<<a|o,l+=a;l>0;e[r+p]=255&s,p+=h,s/=256,l-=8);e[r+p-h]|=128*m}},58613:(e,t,r)=>{"use strict";var i,a;r.d(t,{CR:()=>s,ZS:()=>i,Zp:()=>n}),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=>"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}(i||(i={})),(a||(a={})).mergeShapes=(e,t)=>({...e,...t});let n=i.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),s=e=>{switch(typeof e){case"undefined":return n.undefined;case"string":return n.string;case"number":return Number.isNaN(e)?n.nan:n.number;case"boolean":return n.boolean;case"function":return n.function;case"bigint":return n.bigint;case"symbol":return n.symbol;case"object":if(Array.isArray(e))return n.array;if(null===e)return n.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return n.promise;if("undefined"!=typeof Map&&e instanceof Map)return n.map;if("undefined"!=typeof Set&&e instanceof Set)return n.set;if("undefined"!=typeof Date&&e instanceof Date)return n.date;return n.object;default:return n.unknown}}},59113:(e,t)=>{"use strict";t.byteLength=function(e){var t=u(e),r=t[0],i=t[1];return(r+i)*3/4-i},t.toByteArray=function(e){var t,r,n=u(e),s=n[0],o=n[1],l=new a((s+o)*3/4-o),c=0,d=o>0?s-4:s;for(r=0;r<d;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===o&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,l[c++]=255&t),1===o&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l},t.fromByteArray=function(e){for(var t,i=e.length,a=i%3,n=[],s=0,o=i-a;s<o;s+=16383)n.push(function(e,t,i){for(var a,n=[],s=t;s<i;s+=3)a=(e[s]<<16&0xff0000)+(e[s+1]<<8&65280)+(255&e[s+2]),n.push(r[a>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return n.join("")}(e,s,s+16383>o?o:s+16383));return 1===a?n.push(r[(t=e[i-1])>>2]+r[t<<4&63]+"=="):2===a&&n.push(r[(t=(e[i-2]<<8)+e[i-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),n.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,o=n.length;s<o;++s)r[s]=n[s],i[n.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var i=r===t?0:4-r%4;return[r,i]}i[45]=62,i[95]=63},67409:(e,t,r)=>{"use strict";r.d(t,{dp:()=>t3});var i=r(76766),a=r(48998),n=r(52075).hp,s=/\/v\d+\//,o=/\.(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,u=/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]+)$/,l=["images","videos","files"];function c(e){var t,r,i,a;if("string"!=typeof e)throw Error(`Failed to parse URL: Invalid src of type ${typeof e}`);if(!s.test(e))throw Error("Invalid src: Does not include version (Ex: /v1234/)");let[n,o]=e.split("?"),c=d(n),f=n;c&&(f=n.replace(RegExp(`${c}$`),""));let p=f.match(u),h=null==(r=null==(t=null==p?void 0:p.groups)?void 0:t.transformations)?void 0:r.split("/").filter(e=>!!e),m={...null==p?void 0:p.groups,format:c,seoSuffix:void 0,transformations:h||[],queryParams:{},version:(null==(i=null==p?void 0:p.groups)?void 0:i.version)?parseInt(p.groups.version.replace("v","")):void 0};if(o&&(m.queryParams=o.split("&").reduce((e,t)=>
1{let[r,i]=t.split("=");return e[r]=i,e},{})),m.assetType&&l.includes(m.assetType)){let e=(null==(a=m.publicId)?void 0:a.split("/"))||[];m.seoSuffix=e.pop(),m.publicId=e.join("/")}return m.publicId&&(m.publicId=decodeURIComponent(m.publicId)),m}function d(e){let t=e.match(o);if(null!==t)return t[0]}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var p=r(9993);class h{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 m extends Error{constructor(e="Unsupported"){super(e)}}function g(){return this._qualifierModel||{error:new m(`unsupported qualifier ${this.constructor.name}`)}}class y{constructor(){this._qualifierModel={}}toJson(){return g.apply(this)}}class v extends y{constructor(e,t){super(),this.delimiter="_",this.key=e,t instanceof h?this.qualifierValue=t:(this.qualifierValue=new h,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 _ extends v{constructor(e,t){super("fl",t?new h([e,`${t}`]).setDelimiter(":"):e),this.flagValue=t}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function b(){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 m(`unsupported action ${this.constructor.name}`)}}class x{constructor(){this._actionModel={}}toJson(){return b.apply(this)}}class w extends x{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 _(r)):this.qualifiers.set(t,new v(t,r))}else this.qualifiers.set(e.key,e);return this}addFlag(e){return"string"==typeof e?this.flags.push(new _(e)):e instanceof _&&this.flags.push(e),this}addValueToQualifier(e,t){return this.qualifiers.get(e).addValue(t),this}}class k extends w{constructor(e){super(),this._actionModel={},this.addQualifier(new v("b",new h(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 S{constructor(e){this.raw=e}toString(){return this.raw}toJson(){return{error:new m(`unsupported action ${this.constructor.name}`)}}}class O extends h{constructor(e){super(e),this.val=e}getValue(){return this.val}}function C(e){let t={};return Object.keys(e).forEach(r=>{t[e[r]]=r}),t}C({444:"CHROMA_444",420:"CHROMA_420"}),C({noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"}),C({limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"});let A=C({colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"});C({redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"}),C({autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"}),C({fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"});class j extends w{constructor(e,t,r){let i;super(),this._actionModel={},i=t instanceof O?t.getValue():t,this._actionModel.actionType=A[e],this._actionModel[r]=i,this.addQualifier(new v(e,t))}}class T extends _{constructor(e){super("progressive",e)}}class E extends j{constructor(e,t){super(e,t,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(new _("lossy")),this}progressive(e){return e instanceof T?(this._actionModel.progressive={mode:e.getFlagValue()},this.addFlag(e)):(this._actionModel.progressive={mode:e},this.addFlag(new _("progressive",e))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(new _("preserve_transparency")),this}static fromJson(e){let t,{formatType:r,lossy:i,progressive:a,preserveTransparency:n}=e;return t=r?new this("f",r):new this("f"),a&&(a.mode?t.progressive(a.mode):t.progressive()),i&&t.lossy(),n&&t.preserveTransparency(),t}}class N{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 S(e);else t=e;return this.actions.push(t),this}addTransformation(e){return e instanceof N?this.actions=this.actions.concat(e.actions):this.actions.push(new S(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 E("q",e)),this}format(e){return this.addAction(new E("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 k(e))}psdTools(e){return this.addAction(e)}extract(e){return this.addAction(e)}addFlag(e){let t=new w,r=e;return"string"==typeof e&&(r=new _(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 Z extends N{}class q{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 $=q,I=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class R extends ${constructor(e){super(),Object.assign(this,{secure:!0},this.filterOutNonSupportedKeys(e,I))}extend(e){return new R(Object.assign({},this,this.filterOutNonSupportedKeys(e,I)))}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 z(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 M={},P=0;function U(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 z(e,2,"0")}
1).join(".")})(e).split(".").join("")).toString(2);if((i=z(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+=M[e]}),t}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(e=>{let t=P.toString(2);M[t=z(t,6,"0")]=e,P++});var Y=r(37811);function L(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 Y.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=U(t.sdkSemver),i=U(e),a=t.feature,n=t.sdkCode,s=t.product;return`B${s}${n}${r}${i}${a}`}catch(e){return"E"}}let B={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class J{constructor(e,t={},r){this.setPublicID(e),this.setCloudConfig(t),this.setURLConfig(r)}setURLConfig(e){return this.urlConfig=new R(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,n=`${r}/${i}`,s=B[`${r}/${i}`],o=this.urlConfig.useRootPath,u=this.urlConfig.shorten;if(o)if("image/upload"===n)return"";else throw Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${n} instead`);if(u&&"image/upload"===n)return"iu";if(a)if(s)return s;else throw Error(`URL Suffix only supported for ${Object.keys(B).join(", ")}, Provided: ${n} instead`);return n}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(e,t){var r,i,a;if(!this.publicID)return"";this.validateAssetForURLCreation();let n=function(e,t){let r=t.secure,i=t.privateCdn,a=t.cname,n=t.secureDistribution;return r||a?r&&!n&&i?`https://${e}-res.cloudinary.com`:r&&!n?`https://res.cloudinary.com/${e}`:r&&n&&i?`https://${n}`:r&&n?`https://${n}/${e}`:!r&&a?`http://${a}/${e}`:"ERROR":`http://res.cloudinary.com/${e}`}(this.cloudName,this.urlConfig),s=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":""),u=this.publicID;if("string"==typeof e)return[n,this.getResourceType(),this.getSignature(),s,o,u.replace(/,/g,"%2C"),this.suffix].filter(e=>e).join("/");{let e=[encodeURI(n),this.getResourceType(),this.getSignature(),encodeURI(s),o,encodeURI(u).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(e=>e).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),r=!1!==this.urlConfig.analytics&&!u.includes("?"),i="";if("object"==typeof this.urlConfig.queryParams)try{let e=new URLSearchParams(this.urlConfig.queryParams);r&&e.set("_a",L(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=${L(t)}`);return i?`${e}?${i}`:e}}}
1class F extends J{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 E("q",e)),this}format(e){return this.addAction(new E("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 K extends F{constructor(e,t,r){super(e,t,r,new Z)}}class D extends N{}class V extends F{constructor(e,t,r){super(e,t,r,new D),this.assetType="video"}transcode(e){return this.transformation.transcode(e),this}videoEdit(e){return this.transformation.videoEdit(e),this}}class W{constructor(e){e&&(this.cloudinaryConfig=e)}image(e){return new K(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(e){return new V(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(e){return this.cloudinaryConfig=e,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var G=r(37811),H=Object.defineProperty,Q=(e,t)=>{for(var r in t)H(e,r,{get:t[r],enumerable:!0})},X={};Q(X,{angle:()=>ee,aspectRatio:()=>er,aspectRatioModesEnum:()=>et,crop:()=>ea,cropModesEnum:()=>ei,flags:()=>es,flagsEnum:()=>en,gravity:()=>eo,height:()=>eu,width:()=>el,widthResize:()=>ec,x:()=>ed,y:()=>ef,zoom:()=>ep});var ee={qualifier:"a",schema:p.KC([p.Yj(),p.ai()]).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"}))},et=p.k5(["vflip","hflip","ignore","auto_right","auto_left"]),er={qualifier:"ar",schema:p.KC([p.ai(),et,p.Yj()]).describe(JSON.stringify({text:"Crops or resizes the asset to a new aspect ratio.",url:"https://cloudinary.com/documentation/transformation_reference#ar_aspect_ratio"}))},ei=p.k5(["fill","lfill","fill_pad","crop","thumb","scale","fit","limit","mfit","pad","lpad","mpad","imagga_scale","imagga_crop"]),ea={qualifier:"c",schema:ei.describe(JSON.stringify({text:"Mode to use when cropping an asset.",url:"https://cloudinary.com/documentation/transformation_reference#c_crop_resize"}))},en=p.k5(["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"]),es={qualifier:"fl",schema:p.KC([en,p.YO(en)]).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"}))},eo={qualifier:"g",schema:p.Yj().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"}))},eu={qualifier:"h",schema:p.KC([p.ai(),p.Yj()]).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"}))},el={qualifier:"w",schema:p.KC([p.ai(),p.Yj()]).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"}))},ec={schema:p.KC([p.Yj(),p.ai()]).describe(JSON.stringify({text:"Width to resize the asset after all transformations are applied. Useful for responsive resizing."}))},ed={qualifier:"x",schema:p.KC([p.Yj(),p.ai()]).describe(JSON.stringify({text:"Adjusts the starting location or offset of the x axis.",url:"https://cloudinary.com/documentation/transformation_reference#x_y_coordinates"}))},ef={qualifier:"y",schema:p.KC([p.Yj(),p.ai()]).describe(JSON.stringify({text:"Adjusts the starting location or offset of the y axis.",url:"https://cloudinary.com/documentation/transformation_reference#x_y_coordinates"}))},ep={schema:p.Yj().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"}))},eh=[{test:function(e){return"string"==typeof e&&!!e.startsWith("#")},convert:function(e){return`rgb:${e.replace("#","")}`}}],em={aspectRatio:er,crop:ea,gravity:eo,height:eu,width:el},eg={angle:ee,gravity:eo,x:ed,y:ef},ey={alignment:{qualifier:!1,order:6},antialias:{qualifier:"antialias"},border:{qualifier:"bo",location:"primary"},color:{qualifier:"co",location:"primary",converters:eh},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}},ev={art:{prefix:"e",qualifier:"art",schema:p.Yj().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:p.KC([p.Yj(),p.zM()]).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:p.KC([p.Yj(),p.zM()]).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:p.KC([p.Yj(),p.zM()]).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:p.KC([p.Yj(),p.zM()]).describe(JSON.stringify({text:"Applies stripes or color adju
1stment to help people with common color blind conditions to differentiate between colors that are similar for them.",url:"https://cloudinary.com/documentation/transformation_reference#e_assist_colorblind"}))},background:{qualifier:"b",schema:p.Yj().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:p.KC([p.Yj(),p.zM()]).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:p.KC([p.Yj(),p.zM()]).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:p.KC([p.Yj(),p.zM()]).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:p.KC([p.Yj(),p.zM()]).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:p.Yj().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:p.KC([p.Yj(),p.zM()]).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:p.KC([p.Yj(),p.zM()]).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:p.KC([p.Yj(),p.zM()]).describe(JSON.stringify({text:"Applies a cartoon effect to an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_cartoonify"}))},color:{qualifier:"co",schema:p.Yj().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:eh}
1,colorize:{prefix:"e",qualifier:"colorize",schema:p.Yj().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:p.KC([p.Yj(),p.zM()]).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:p.Yj().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:p.Yj().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:p.KC([p.Yj(),p.zM()]).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:p.KC([p.Yj(),p.zM()]).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:p.KC([p.Yj(),p.zM()]).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:p.zM().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:p.KC([p.Yj(),p.zM()]).describe(JSON.stringify({text:"Adjusts an image's hue.",url:"https://cloudinary.com/documentation/transformation_reference#e_hue"}))},improve:{prefix:"e",qualifier:"improve",schema:p.KC([p.Yj(),p.zM()]).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"}))},multiply:{prefix:"e",qualifier:"multiply",schema:p.zM().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:p.KC([p.Yj(),p.zM()]).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:p.zM().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:p.KC([p.Yj(),p.zM()]).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:p.KC([p.Yj(),p.ai()]).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:p.KC([p.Yj(),p.zM()]).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:p.KC([p.Yj(),p.zM()]).describe(JSON.stringify({text:"Applies a pixelation effect.",url:"https://cloudinary.com/documentation/transformation_reference#e_pixelate"}))},pixelateFaces:{prefix:"e",qualifier:"pixelate_faces",schema:p.KC([p.Yj(),p.zM()]).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:p.KC([p.Yj(),p.zM()]).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:p.Yj().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:p.KC([p.Yj(),p.zM()]).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:p.Yj().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:p.KC([p.Yj(),p.zM()]).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:p.zM().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:p.KC([p.Yj(),p.zM()]).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:p.KC([p.Yj(),p.zM()]).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:p.KC([p.Yj(),p.zM()]).describe(JSON.stringify({text:"Applies a sharpening filter.",url:"https://cloudinary.com/documentation/transformation_reference#e_sharpen"}))},shear:{prefix:"e",qualifier:"shear",schema:p.Yj().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:p.KC([p.Yj(),p.zM()]).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:p.KC([p.Yj(),p.zM()]).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:p.KC([p.Yj(),p.zM()]).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:p.KC([p.Yj(),p.zM()]).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:p.KC([p.Yj(),p.zM()]).describe(JSON.stringify({text:"Vectorizes an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_vectorize"}))},vibrance:{prefix:"e",qualifier:"vibrance",schema:p.KC([p.Yj(),p.zM()]).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:p.KC([p.Yj(),p.zM()]).describe(JSON.stringify({text:"Applies a vignette effect to an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_vignette"}))}},e_={};Q(e_,{assetTypes:()=>eO,normalizeNumberParameter:()=>eC,plugin:()=>eA,pluginProps:()=>eS});var eb=["crop","fill","lfill","fill_pad","thumb"],ex=["crop","fill","lfill","fill_pad","thumb"],ew=["crop","thumb"],ek="limit",eS={aspectRatio:er.schema.optional(),crop:ea.schema.default(ek).optional(),gravity:eo.schema.optional(),widthResize:ec.schema.optional(),zoom:ep.schema.optional()},eO=["image","images","video","videos"];function eC(e){return"string"!=typeof e?e:parseInt(e)}function eA(e){let{cldAsset:t,options:r}=e,{aspectRatio:i,width:a,height:n,widthResize:s,crop:o=ek}=r,u={width:void 0},l=eC(n),c=eC(a),d=eC(s),f=l||c,p=i&&eb.includes(o),h="";return o&&(f||p)&&(h=`c_${o}`),p&&(h=`${h},ar_${i}`),c&&(h=`${h},w_${c}`),!r.gravity&&ex.includes(o)&&(r.gravity="auto"),["limit"].includes(o)||"number"!=typeof l||(h=`${h},h_${l}`),r.gravity&&("auto"!==r.gravity||ex.includes(o)?h=`${h},g_${r.gravity}`:console.warn(`Auto gravity can only be used with crop modes: ${ex.join(", ")}. Not applying gravity.`)),r.zoom&&("auto"!==r.zoom||ew.includes(o)?h=`${h},z_${r.zoom}`:console.warn(`Zoom can only be used with crop modes: ${ew.join(", ")}. Not applying zoom.`)),t.effect(h),d&&(u.width=d),{options:u}}var ej={};function eT({prefix:e,qualifier:t,value:r,converters:i}){let a="";e&&(a=`${e}_`);let n=r;if(i?.forEach(({test:e,convert:t})=>{e(n)&&(n=t(n))}),!0===n||"true"===n)return`${a}${t}`;if("string"==typeof n||"number"==typeof n)if(e)return`${a}${t}:${n}`;else return`${t}_${n}`}function eE(e){return`(${e.join(";")})`}Q(ej,{assetTypes:()=>eq,plugin:()=>e$,pluginProps:()=>eZ});var eN={art:ev.art.schema.optional(),autoBrightness:ev.autoBrightness.schema.optional(),autoColor:ev.autoColor.schema.optional(),autoContrast:ev.autoContrast.schema.optional(),assistColorblind:ev.assistColorblind.schema.optional(),background:ev.background.schema.optional(),blackwhite:ev.blackwhite.schema.optional(),blur:ev.blur.schema.optional(),blurFaces:ev.blurFaces.schema.optional(),blurRegion:ev.blurRegion.schema.optional(),border:ev.border.schema.optional(),brightness:ev.brightness.schema.optional(),brightnessHSB:ev.brightnessHSB.schema.optional(),cartoonify:ev.cartoonify.schema.optional(),color:ev.color.schema.optional(),colorize:ev.colorize.schema.optional(),contrast:ev.contrast.schema.optional(),distort:ev.distort.schema.optional(),fillLight:ev.fillLight.schema.optional(),gamma:ev.gamma.schema.optional(),gradientFade:ev.gradientFade.schema.optional(),grayscale:ev.grayscale.schema.optional(),improve:ev.improve.schema.optional(),multiply:ev.multiply.schema.optional(),negate:ev.negate.schema.optional(),oilPaint:ev.oilPaint.schema.optional(),opacity:ev.opacity.schema.optional(),outline:ev.outline.schema.optional(),pixelate:ev.pixelate.schema.optional(),pixelateFaces:ev.pixelateFaces.schema.optional(),pixelateRegion:ev.pixelateRegion.schema.optional(),radius:ev.radius.schema.optional(),redeye:ev.redeye.schema.optional(),replaceColor:ev.replaceColor.schema.optional(),saturation:ev.saturation.schema.optional(),screen:ev.screen.schema.optional(),sepia:ev.sepia.schema.optional(),shadow:ev.shadow.schema.optional(),sharpen:ev.sharpen.schema.optional(),shear:ev.shear.schema.optional(),simulateColorblind:ev.simulateColorblind.schema.optional(),tint:ev.tint.schema.optional(),trim:ev.trim.schema.optional(),unsharpMask:ev.unsharpMask.schema.optional(),vectorize:ev.vectorize.schema.optional(),vibrance:ev.vibrance.schema.optional(),vignette:ev.vignette.schema.optional()},eZ={effects:p.YO(p.Ik(eN)).describe(JSON.stringify({text:"Array of objects specifying transformations to be applied to asset."})).optional(),...eN},eq=["image","images","video","videos"];function e$(e){let{cldAsset:t,options:r}=e;function i({effects:e,options:t}){return Object.keys(e).map(r=>{let{prefix:i,qualifier:a,converters:n}=e[r];return eT({qualifier:a,prefix:i,value:t?.[r],converters:n})})}return i({effects:ev,options:r}).filter(e=>
1!!e).forEach(e=>t.effect(e)),Array.isArray(r?.effects)&&r?.effects.forEach(e=>{let r=i({effects:ev,options:e}).filter(e=>!!e).join(",");t.effect(r)}),{}}var eI={};Q(eI,{assetTypes:()=>eM,plugin:()=>eP,pluginProps:()=>ez});var{flagsEnum:eR}=X,ez={flags:es.schema.optional()},eM=["image","images","video","videos"];function eP(e){let{cldAsset:t,options:r}=e,{flags:i=[]}=r;return Array.isArray(i)&&i.length>0?i.forEach(e=>{let{success:r}=eR.safeParse(e);r&&t.addFlag(e)}):"object"==typeof i&&Object.entries(i).forEach(([e,r])=>{let{success:i}=eR.safeParse(e);i&&t.addTransformation(`fl_${e}:${r}`)}),{}}var eU={};Q(eU,{assetTypes:()=>eB,plugin:()=>eF,pluginProps:()=>eL,strict:()=>eJ});var eY=p.Yj(),eL={namedTransformations:p.KC([eY,p.YO(eY)]).describe(JSON.stringify({text:"Named transformations to apply to asset.",url:"https://cloudinary.com/documentation/image_transformations#named_transformations"})).optional(),transformations:p.KC([eY,p.YO(eY)]).describe(JSON.stringify({text:"Deprecated: use namedTransformations instead",url:"https://cloudinary.com/documentation/image_transformations#named_transformations"})).optional()},eB=["image","images","video","videos"],eJ=!0;function eF(e){let{cldAsset:t,options:r}=e,{transformations:i,namedTransformations:a}=r;i&&"development"===G.env.NODE_ENVIRONMENT&&console.warn("The transformations prop is deprecated. Please use namedTransformations instead.");let n=a||i||[];return Array.isArray(n)||(n=[n]),n.forEach(e=>{t.addTransformation(`t_${e}`)}),{}}var eK={};Q(eK,{DEFAULT_TEXT_OPTIONS:()=>eQ,assetTypes:()=>eH,plugin:()=>eX,pluginProps:()=>eG});var eD=p.Ik({alignment:p.Yj().optional(),antialias:p.Yj().optional(),border:p.Yj().optional(),color:p.Yj().optional(),fontFamily:p.Yj().optional(),fontSize:p.ai().optional(),fontStyle:p.KC([p.Yj(),p.ai()]).optional(),fontWeight:p.Yj().optional(),hinting:p.KC([p.Yj(),p.ai()]).optional(),letterSpacing:p.KC([p.Yj(),p.ai()]).optional(),lineSpacing:p.KC([p.Yj(),p.ai()]).optional(),stroke:p.Yj().optional(),text:p.Yj()}),eV=p.Ik({angle:ee.schema.optional(),gravity:eo.schema.optional(),x:ed.schema.optional(),y:ef.schema.optional()}),eW=p.Ik({appliedEffects:p.YO(p.Ik({})).optional(),appliedFlags:es.schema.optional(),effects:p.YO(p.Ik({})).optional(),crop:ea.schema.optional(),flags:es.schema.optional(),height:eu.schema.optional(),position:eV.optional(),publicId:p.Yj().optional(),text:p.KC([p.Yj(),eD]).optional(),url:p.Yj().optional(),width:el.schema.optional()}),eG={overlay:eW.describe(JSON.stringify({text:"Image or text layer that is applied on top of the base image.",url:"https://cloudinary.com/documentation/transformation_reference#l_layer"})).optional(),overlays:p.YO(eW).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:p.Yj().describe(JSON.stringify({text:"Text to be overlaid on asset.",url:"https://cloudinary.com/documentation/image_transformations#transformation_url_structure"})).optional()},eH=["image","images","video","videos"],eQ={color:"black",fontFamily:"Arial",fontSize:200,fontWeight:"bold"};function eX(e){let{cldAsset:t,options:r}=e,{text:i,overlays:a=[]}=r;function s({publicId:e,url:r,position:i,text:a,effects:s=[],appliedEffects:o=[],flags:u=[],appliedFlags:l=[],...c}){let d,p="string"==typeof e,h="string"==typeof r,m="object"==typeof a||"string"==typeof a,g="object"==typeof i;if(!p&&!h&&!m)return void console.warn("An overlay is missing Public ID, URL, or Text");if(m)d="l_text";else if(p)d=`l_${e.replace(/\//g,":")}`;else h&&(d=`l_fetch:${"function"==typeof btoa?btoa(r):void 0!==n?n.from(r).toString("base64"):void 0}`);let y=[],v=[];if(Object.keys(c).forEach(e=>{if(!f(em,e))return;let{qualifier:t,converters:r}=em[e],i=eT({qualifier:t,value:c[e],converters:r});i&&y.push(i)}),s.forEach(e=>{Object.keys(e).forEach(t=>{let r=em[t]||ev[t]||eg[t];if(!r)return;let{qualifier:i,prefix:a,converters:n}=r,s=eT({qualifier:i,prefix:a,value:e[t],converters:n});s&&y.push(s)})}),o.forEach(e=>{Object.keys(e).forEach(t=>{let r=em[t]||ev[t]||eg[t];if(!r)return;let{qualifier:i,prefix:a,converters:n}=r,s=eT({qualifier:i,prefix:a,value:e[t],converters:n});s&&v.push(s)})}
1),(Array.isArray(u)?u:[u]).forEach(e=>{let{success:t}=en.safeParse(e);t&&y.push(`fl_${e}`)}),(Array.isArray(l)?l:[l]).forEach(e=>{let{success:t}=en.safeParse(e);t&&v.push(`fl_${e}`)}),m){"string"==typeof a&&(a={...eQ,text:a});let e=[];if("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=>f(ey,e)).map(e=>{let t=a&&f(a,e)&&a[e];return{...ey[e],key:e,value:t,order:ey[e].order||99}}),"order")){let{key:r,value:i,qualifier:a,location:n,converters:s}=t,o=i;s?.forEach(({test:e,convert:t})=>{e(i)&&(o=t(i))}),"primary"===n?y.push(`${a}_${o}`):"self"===a?e.push(r):a?e.push(`${a}_${o}`):e.push(o)}let t={".":"%2E",",":"%2C","/":"%2F"},r=a?.text||"";"string"==typeof r&&Object.keys(t)?.forEach(e=>{r=r?.replace(e,t[e])}),d=`${d}:${e.join("_")}:${r}`}g&&Object.keys(i).forEach(e=>{if(!f(eg,e)||!f(i,e))return;let{qualifier:t,converters:r}=eg[e],a=eT({qualifier:t,value:i[e],converters:r});a&&v.push(a)}),y.length>0&&(d=`${d},${y.join(",")}`),d=`${d}/fl_layer_apply,fl_no_overflow`,v.length>0&&(d=`${d},${v.join(",")}`),t.addTransformation(d)}return Array.isArray(a)&&a.forEach(s),"string"==typeof i?s({text:Object.assign({},eQ,{text:i})}):"object"==typeof i&&s({text:Object.assign({},eQ,i)}),{}}var e0={};Q(e0,{assetTypes:()=>e5,plugin:()=>e4,pluginProps:()=>e2});var e1=p.Yj(),e2={rawTransformations:p.KC([e1,p.YO(e1)]).describe(JSON.stringify({text:"Array of URL transformation parameters to apply to an asset.",url:"https://cloudinary.com/documentation/transformation_reference"})).optional()},e5=["image","images","video","videos"];function e4(e){let{cldAsset:t,options:r}=e,{rawTransformations:i=[]}=r;
1return Array.isArray(i)||(i=[i]),i.forEach(e=>{t.addTransformation(e)}),{}}var e6={};Q(e6,{assetTypes:()=>e8,plugin:()=>e3,pluginProps:()=>e9});var e9={removeBackground:p.zM().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()},e8=["image","images"];function e3(e){let{cldAsset:t,options:r}=e,{removeBackground:i=!1}=r;return i&&t.effect("e_background_removal"),{}}var e7={};Q(e7,{assetTypes:()=>tt,plugin:()=>tr,pluginProps:()=>te});var te={sanitize:p.zM().describe(JSON.stringify({text:"Runs a sanitizer on SVG images.",url:"https://cloudinary.com/documentation/transformation_reference#fl_sanitize"})).optional()},tt=["image","images"];function tr(e){let{cldAsset:t,options:r}=e,{sanitize:i=!0}=r;return i&&("svg"===r.format||t.publicID.endsWith(".svg"))&&t.effect("fl_sanitize"),{}}var ti={};Q(ti,{assetTypes:()=>tn,plugin:()=>ts,pluginProps:()=>ta});var ta={seoSuffix:p.Yj().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()},tn=["image","images","video","videos"];function ts(e){let{cldAsset:t,options:r}=e,{seoSuffix:i}=r;return"string"==typeof i&&("fetch"===r.deliveryType?console.warn("SEO suffix is not supported with a delivery type of fetch"):t.setSuffix(i)),{}}var to={};Q(to,{assetTypes:()=>td,plugin:()=>tf,pluginProps:()=>tc});var tu=p.Ik({angle:ee.schema.optional(),gravity:eo.schema.optional(),x:ed.schema.optional(),y:ef.schema.optional()}),tl=p.Ik({appliedEffects:p.YO(p.Ik({})).optional(),appliedFlags:es.schema.optional(),effects:p.YO(p.Ik({})).optional(),crop:ea.schema.optional(),flags:es.schema.optional(),height:eu.schema.optional(),position:tu.optional(),publicId:p.Yj().optional(),type:p.Yj().optional(),url:p.Yj().optional(),width:el.schema.optional()}),tc={underlay:p.Yj().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:p.YO(tl).describe(JSON.stringify({text:"Image layers that are applied under the base image.",url:"https://cloudinary.com/documentation/transformation_reference#l_layer"})).optional()},td=["image","images","video","videos"];function tf(e){let{cldAsset:t,options:r}=e,{underlay:i,underlays:a=[]}=r;function n({publicId:e,type:r,position:i,effects:a=[],flags:n=[],appliedFlags:s=[],...o}){let u="object"==typeof i;if("string"!=typeof e)return void console.warn(`An ${r} is missing a Public ID`);let l=`u_${e.replace(/\//g,":")}`,c=[],d=[];Object.keys(o).forEach(e=>{if(!f(em,e))return;let{qualifier:t}=em[e];c.push(`${t}_${o[e]}`)}),a.forEach(e=>{Object.keys(e).forEach(t=>{if(!f(em,t))return;let{qualifier:r}=em[t];c.push(`${r}_${e[t]}`)})}
1),u&&Object.keys(i).forEach(e=>{if(!f(eg,e))return;let{qualifier:t}=eg[e];d.push(`${t}_${i[e]}`)}),(Array.isArray(n)?n:[n]).forEach(e=>{let{success:t}=en.safeParse(e);t&&c.push(`fl_${e}`)}),(Array.isArray(s)?s:[s]).forEach(e=>{let{success:t}=en.safeParse(e);t&&d.push(`fl_${e}`)}),l=`${l},${c.join(",")}`,l=`${l}/fl_layer_apply,fl_no_overflow`,d.length>0&&(l=`${l},${d.join(",")}`),t.addTransformation(l)}return Array.isArray(a)&&a.forEach(n),"string"==typeof i&&n({publicId:i,crop:"fill",width:"1.0",height:"1.0",flags:["relative"]}),{}}var tp={};Q(tp,{assetTypes:()=>tm,plugin:()=>tg,pluginProps:()=>th});var th={version:p.KC([p.ai(),p.Yj()]).describe(JSON.stringify({text:"Custom version number to apply to asset URL.",url:"https://cloudinary.com/documentation/advanced_url_delivery_options#asset_versions"})).optional()},tm=["image","images","video","videos"];function tg(e){let{cldAsset:t,options:r}=e,{version:i}=r;return("string"==typeof i||"number"==typeof i)&&t.setVersion(`${i}`.replace("v","")),{}}var ty=p.Ik({assetType:p.Yj().default("image").describe(JSON.stringify({text:"The type of asset to deliver.",url:"https://cloudinary.com/documentation/image_transformations#transformation_url_structure"})).optional(),deliveryType:p.Yj().default("upload").describe(JSON.stringify({text:"Delivery method of the asset.",url:"https://cloudinary.com/documentation/image_transformations#delivery_types"})).optional(),dpr:p.KC([p.Yj(),p.ai()]).describe(JSON.stringify({text:"Delivery method of the asset.",url:"https://cloudinary.com/documentation/image_transformations#delivery_types"})).optional(),format:p.Yj().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:p.KC([p.Yj(),p.ai()]).describe(JSON.stringify({text:"Height of the given asset."})).optional(),quality:p.KC([p.ai(),p.Yj()]).default("auto").describe(JSON.stringify({text:"Quality of the delivered asset",url:"https://cloudinary.com/documentation/transformation_reference#q_quality"})).optional(),src:p.Yj().describe(JSON.stringify({text:"Cloudinary Public ID or versioned Cloudinary URL (/v1234/)"})),strictTransformations:p.zM().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:p.KC([p.Yj(),p.ai()]).describe(JSON.stringify({text:"Width of the given asset."})).optional(),...eS,...eZ,...ez,...eL,...eG,...e2,...e9,...te,...ta,...tc,...th}),tv={};Q(tv,{assetTypes:()=>tb,plugin:()=>tx,pluginProps:()=>t_});var t_={defaultImage:p.Yj().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()},tb=["image","images"];function tx(e){let{cldAsset:t,options:r}=e,{defaultImage:i}=r;if("string"==typeof i){d(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{}}var tw={};Q(tw,{assetTypes:()=>tS,plugin:()=>tO,pluginProps:()=>tk});var tk={fillBackground:p.KC([p.zM(),p.Ik({crop:ea.schema.optional(),gravity:eo.schema.optional(),prompt:p.Yj().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()},tS=["image","images"];function tO(e){let{cldAsset:t,options:r}=e,{fillBackground:i}=r;if(!0===i){let e=["b_gen_fill",`ar_${r.width}:${r.height}`,`w_${r.width}`,"c_pad"];t.addTransformation(e.join(","))}else if("object"==typeof i){let{crop:e="pad",gravity:a,prompt:n}=i,s=[`ar_${r.width}:${r.height}`,`w_${r.width}`,`c_${e}`];"string"==typeof n?s.unshift(`b_gen_fill:${n}
1`):s.unshift("b_gen_fill"),"string"==typeof a&&s.push(`g_${a}`),t.addTransformation(s.join(","))}return{}}var tC={};Q(tC,{assetTypes:()=>tE,plugin:()=>tN,pluginProps:()=>tT});var tA=p.KC([p.Yj(),p.YO(p.Yj())]),tj=p.Ik({prompt:tA.optional(),to:p.Yj().optional(),multiple:p.zM().optional()}),tT={recolor:p.KC([tA,tj]).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()},tE=["image","images"];function tN(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=eE(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=eE(i.prompt)),"string"==typeof i.to&&(a["to-color"]=i.to),!0===i.multiple&&(a.multiple="true"));let n=Object.entries(a).filter(([,e])=>!!e).map(([e,t])=>`${e}_${t}`).join(";");return n&&t.addTransformation(`e_gen_recolor:${n}`),{}}var tZ={};Q(tZ,{assetTypes:()=>tR,plugin:()=>tz,pluginProps:()=>tI});var tq=p.KC([p.Yj(),p.YO(p.Yj())]),t$=p.Ik({prompt:tq.optional(),region:p.KC([p.YO(p.ai()),p.YO(p.YO(p.ai()))]).optional(),multiple:p.zM().optional(),removeShadow:p.zM().optional()}),tI={remove:p.KC([tq,t$]).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()},tR=["image","images"];function tz(e){let{cldAsset:t,options:r}=e,{remove:i}=r,a={prompt:void 0,region:void 0,multiple:void 0,"remove-shadow":void 0};if("string"==typeof i)a.prompt=i;else if(Array.isArray(i))a.prompt=eE(i);else if("object"==typeof i){let e="string"==typeof i.prompt||Array.isArray(i.prompt),t=Array.isArray(i.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 i.prompt?a.prompt=i.prompt:Array.isArray(i.prompt)&&(a.prompt=eE(i.prompt)),Array.isArray(i.region)&&(a.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})`}(i.region)),!0===i.multiple&&(a.multiple="true"),!0===i.removeShadow&&(a["remove-shadow"]="true")}let n=Object.entries(a).filter(([,e])=>!!e).map(([e,t])=>`${e}_${t}`).join(";");return n&&t.addTransformation(`e_gen_remove:${n}`),{}}var tM={};Q(tM,{assetTypes:()=>tU,plugin:()=>tY,pluginProps:()=>tP});var tP={restore:p.zM().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()},tU=["image","images"];function tY(e){let{cldAsset:t,options:r}=e,{restore:i=!1}=r;return i&&t.effect("e_gen_restore"),{}}var tL={};Q(tL,{assetTypes:()=>tJ,plugin:()=>tF,pluginProps:()=>tB});var tB={replace:p.KC([p.YO(p.Yj()),p.YO(p.zM()),p.Ik({to:p.Yj(),from:p.Yj(),preserveGeometry:p.zM().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()},tJ=["image","images"];function tF(e){let{cldAsset:t,options:r}=e,{replace:i=null}=r;if(i){let e,r,a=!1;Array.isArray(i)?(e=i[0],r=i[1],a=i[2]||!1):(e=i.from,r=i.to,a=i.preserveGeometry||!1);let n=[`e_gen_replace:from_${e}`,`to_${r}`];a&&n.push(`preserve-geometry_${a}`),t.effect(n.join(";"))}return{}}var tK={};Q(tK,{assetTypes:()=>tV,plugin:()=>tW,pluginProps:()=>tD});var tD={zoompan:p.KC([p.Yj(),p.zM(),p.Ik({loop:p.KC([p.Yj(),p.zM()]),options:p.Yj()})]).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()},tV=["image","images"];function tW(e){let{cldAsset:t,options:r}=e,{zoompan:i=!1}=r,a={format:void 0};if(!0===i)t.effect("e_zoompan");else if("string"==typeof i)"loop"===i?(t.effect("e_zoompan"),t.effect("e_loop")):t.effect(`e_zoompan:${i}`);else if("object"==typeof i){let e,r="e_zoompan";"string"==typeof i.options&&(r=`${r}${i.options}`),t.effect(r),!0===i.loop?e="e_loop":"string"==typeof i.loop&&(e=`e_loop${i.loop}`),e&&t.effect(e)}return!1!==i&&(a.format="auto:animated"),{options:a}}var tG=ty.merge(p.Ik({...t_,...tk,...tT,...tI,...tB,...tP,...tD})),tH={};Q(tH,{assetTypes:()=>tX,plugin:()=>t0,pluginProps:()=>tQ});var tQ={streamingProfile:p.Yj().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()},tX=["video","videos"];function t0(e){let{cldAsset:t,options:r}=e,{streamingProfile:i}=r;return"string"==typeof i&&t.addTransformation(`sp_${i}`),{}}var t1=ty.merge(p.Ik({...tQ})),t2=p.bz(),t5=p.bz(),t4=[tC,tZ,e6,tL,tM,e0,tH,e_,tv,ej,tw,eI,eK,e7,eU,ti,to,tp,tK];p.Ik({analytics:p.KC([t2,p.zM()]).describe(JSON.stringify({text:"Tech, dependency, and feature identifiers for tracking SDK usage.",path:"/url-loader/analyticsoptions"})).optional(),config:t5.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:p.KC([ty,tG,t1]).describe(JSON.stringify({text:"Asset options (Image or Video) that define delivery URL including public ID and transformations.",path:"/url-loader/assetoptions"}))}),r(12022),r(46234);var t6=r(37811);async function t9(e){let{src:t}=e;try{await new Promise((e,r)=>{fetch(t).then(t=>{if(!t.ok)return void r(t);e(t)})})}catch(t){return 423===t.status&&await t9(e)}return!0}function t8(e,t,r){var i,a;let n=null!=(a=null==(i=null==t?void 0:t.cloud)?void 0:i.cloudName)?a:t6.env.NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME;return function(e){if(!e)throw Error("A Cloudinary Cloud name is required, please make sure NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME is set and configured in your environment.")}(n),function({options:e,config:t={},analytics:r}){let i,a;!1===r&&(void 0===t?.url&&(t.url={}),t.url.analytics=!1);let n=new W(t);if("string"!=typeof e?.src)throw Error("Failed to construct Cloudinary U
1RL: Missing source (src) in options");e?.assetType||(e.assetType="image");let s=[];t4.forEach(({pluginProps:e})=>{Object.keys(e).forEach(e=>{if(s.includes(e))throw Error(`Option ${e} already exists!`);s.push(e)})});let o={};if("string"==typeof e.src&&/^https?:\/\//.test(e.src))try{let t=c(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=>{f(e,t)||(e[t]=o[t])}),["image","images"].includes(e.assetType)?a=n.image(i):["video","videos"].includes(e.assetType)&&(a=n.video(i)),void 0===a)throw Error("Invalid asset type.");let u={};if(t4.forEach(({plugin:t,assetTypes:r,pluginProps:i,strict:n})=>{let s=void 0!==e?.assetType&&r.includes(e?.assetType),o=Object.keys(i),l=Object.keys(e),c=o.map(e=>l.includes(e)).filter(e=>!!e).length>0;if(!s){c&&console.warn(`One of the following props [${o.join(", ")}] was used with an unsupported asset type [${e?.assetType}]`);return}if(e.strictTransformations&&!n){c&&console.warn(`One of the following props [${o.join(", ")}] was used that is not supported with Strict Transformations.`);return}let{options:d}=t({cldAsset:a,options:e})||{options:void 0};d?.format&&e&&(u.format=d.format),d?.width&&e&&(u.resize={width:d?.width})}),u?.resize&&!e.strictTransformations){let{width:e,crop:t="limit"}=u.resize;a.effect(`c_${t},w_${e}`)}if(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}`)}e?.format!=="default"&&a.format(e?.format||u?.format||"auto"),e?.quality!=="default"&&a.quality(e?.quality||"auto")}return a.toURL({trackedAnalytics:r})}({options:e,config:Object.assign({cloud:{cloudName:n}},t),analytics:Object.assign({sdkCode:"V",sdkSemver:"5.12.0",techVersion:"15.5.25",feature:""},r)})}var t3=(0,i.forwardRef)(function(e,t){let r=!1,n=["deliveryType","preserveTransformations","strictTransformations"];t4.forEach(({props:e=[]})=>{e.forEach(e=>{if(n.includes(e))throw Error(`Option ${e} already exists!`);n.push(e)})});let s={alt:e.alt,src:e.src};Object.keys(e).filter(e=>!n.includes(e)).forEach(t=>s[t]=e[t]);let o=Object.keys(s).map(e=>`${e}:${s[e]}`).join(";"),[u,l]=(0,i.useState)(o),d={};if(n.forEach(t=>{e[t]&&(d[t]=e[t]||void 0)}),e.preserveTransformations)try{d.rawTransformations=[...(function(e){let{transformations:t=[]}=c(e)||{};return t.map(e=>e.split(","))})(e.src).map(e=>e.join(",")).flat(),...e.rawTransformations||[]]}catch(e){console.warn(`Failed to preserve transformations: ${e.message}`)}let f={unoptimized:!0};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;await t9({src:a.src})&&l(`${o};${Date.now()}`)}(!0===e.unoptimized||(null==f?void 0:f.unoptimized)===!0)&&(s.src=t8({...d,width:s.width,height:s.height,src:s.src,format:"default",quality:"default"},e.config));let h=(0,i.useCallback)(p,[t9,o]),m=a.default;return"default"in m&&(m=m.default),i.createElement(m,{key:u,...s,loader:t=>(function({loaderOptions:e,imageProps:t,cldOptions:r,cldConfig:i={}}){let a,n={...t,...r};return n.width="string"==typeof n.width?parseInt(n.width):n.width,n.height="string"==typeof n.height?parseInt(n.height):n.height,"number"==typeof(null==e?void 0:e.width)&&"number"==typeof n.width&&e.width!==n.width?a=e.width:"number"==typeof(null==e?void 0:e.width)&&"number"!=typeof(null==n?void 0:n.width)&&(n.width=a=e.width),n.width&&a&&a<n.width&&(n.widthResize=e.width),t8(n,i)})({loaderOptions:t,imageProps:s,cldOptions:d,cldConfig:e.config}),onError:h,ref:t})})},98506:(e,t,r)=>{"use strict";r.d(t,{G:()=>n,eq:()=>a});var i=r(58613);
1let a=i.ZS.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 n 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 n))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,i.ZS.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()}}n.create=e=>new n(e)}}]); 2//# sourceMappingURL=7409-e31e82fbd037c084.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.