@farthershore/cli 0.9.2 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,78 +1,78 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __createRequire } from "node:module";const require=__createRequire(import.meta.url);
3
- var Wg=Object.create;var Ni=Object.defineProperty;var Gg=Object.getOwnPropertyDescriptor;var Jg=Object.getOwnPropertyNames;var qg=Object.getPrototypeOf,Kg=Object.prototype.hasOwnProperty;var Rt=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(r,n)=>(typeof require<"u"?require:r)[n]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var Ve=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),$e=(t,r)=>{for(var n in r)Ni(t,n,{get:r[n],enumerable:!0})},Yg=(t,r,n,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of Jg(r))!Kg.call(t,e)&&e!==n&&Ni(t,e,{get:()=>r[e],enumerable:!(o=Gg(r,e))||o.enumerable});return t};var Xg=(t,r,n)=>(n=t!=null?Wg(qg(t)):{},Yg(r||!t||!t.__esModule?Ni(n,"default",{value:t,enumerable:!0}):n,t));var Zt=Ve(Ui=>{var Cr=class extends Error{constructor(r,n,o){super(o),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=n,this.exitCode=r,this.nestedError=void 0}},Di=class extends Cr{constructor(r){super(1,"commander.invalidArgument",r),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};Ui.CommanderError=Cr;Ui.InvalidArgumentError=Di});var Nr=Ve(Zi=>{var{InvalidArgumentError:Qg}=Zt(),Ri=class{constructor(r,n){switch(this.description=n||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,r[0]){case"<":this.required=!0,this._name=r.slice(1,-1);break;case"[":this.required=!1,this._name=r.slice(1,-1);break;default:this.required=!0,this._name=r;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(r,n){return n===this.defaultValue||!Array.isArray(n)?[r]:n.concat(r)}default(r,n){return this.defaultValue=r,this.defaultValueDescription=n,this}argParser(r){return this.parseArg=r,this}choices(r){return this.argChoices=r.slice(),this.parseArg=(n,o)=>{if(!this.argChoices.includes(n))throw new Qg(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(n,o):n},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function eh(t){let r=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+r+">":"["+r+"]"}Zi.Argument=Ri;Zi.humanReadableArgName=eh});var Mi=Ve(Fi=>{var{humanReadableArgName:th}=Nr(),Li=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(r){this.helpWidth=this.helpWidth??r.helpWidth??80}visibleCommands(r){let n=r.commands.filter(e=>!e._hidden),o=r._getHelpCommand();return o&&!o._hidden&&n.push(o),this.sortSubcommands&&n.sort((e,i)=>e.name().localeCompare(i.name())),n}compareOptions(r,n){let o=e=>e.short?e.short.replace(/^-/,""):e.long.replace(/^--/,"");return o(r).localeCompare(o(n))}visibleOptions(r){let n=r.options.filter(e=>!e.hidden),o=r._getHelpOption();if(o&&!o.hidden){let e=o.short&&r._findOption(o.short),i=o.long&&r._findOption(o.long);!e&&!i?n.push(o):o.long&&!i?n.push(r.createOption(o.long,o.description)):o.short&&!e&&n.push(r.createOption(o.short,o.description))}return this.sortOptions&&n.sort(this.compareOptions),n}visibleGlobalOptions(r){if(!this.showGlobalOptions)return[];let n=[];for(let o=r.parent;o;o=o.parent){let e=o.options.filter(i=>!i.hidden);n.push(...e)}return this.sortOptions&&n.sort(this.compareOptions),n}visibleArguments(r){return r._argsDescription&&r.registeredArguments.forEach(n=>{n.description=n.description||r._argsDescription[n.name()]||""}),r.registeredArguments.find(n=>n.description)?r.registeredArguments:[]}subcommandTerm(r){let n=r.registeredArguments.map(o=>th(o)).join(" ");return r._name+(r._aliases[0]?"|"+r._aliases[0]:"")+(r.options.length?" [options]":"")+(n?" "+n:"")}optionTerm(r){return r.flags}argumentTerm(r){return r.name()}longestSubcommandTermLength(r,n){return n.visibleCommands(r).reduce((o,e)=>Math.max(o,this.displayWidth(n.styleSubcommandTerm(n.subcommandTerm(e)))),0)}longestOptionTermLength(r,n){return n.visibleOptions(r).reduce((o,e)=>Math.max(o,this.displayWidth(n.styleOptionTerm(n.optionTerm(e)))),0)}longestGlobalOptionTermLength(r,n){return n.visibleGlobalOptions(r).reduce((o,e)=>Math.max(o,this.displayWidth(n.styleOptionTerm(n.optionTerm(e)))),0)}longestArgumentTermLength(r,n){return n.visibleArguments(r).reduce((o,e)=>Math.max(o,this.displayWidth(n.styleArgumentTerm(n.argumentTerm(e)))),0)}commandUsage(r){let n=r._name;r._aliases[0]&&(n=n+"|"+r._aliases[0]);let o="";for(let e=r.parent;e;e=e.parent)o=e.name()+" "+o;return o+n+" "+r.usage()}commandDescription(r){return r.description()}subcommandDescription(r){return r.summary()||r.description()}optionDescription(r){let n=[];return r.argChoices&&n.push(`choices: ${r.argChoices.map(o=>JSON.stringify(o)).join(", ")}`),r.defaultValue!==void 0&&(r.required||r.optional||r.isBoolean()&&typeof r.defaultValue=="boolean")&&n.push(`default: ${r.defaultValueDescription||JSON.stringify(r.defaultValue)}`),r.presetArg!==void 0&&r.optional&&n.push(`preset: ${JSON.stringify(r.presetArg)}`),r.envVar!==void 0&&n.push(`env: ${r.envVar}`),n.length>0?`${r.description} (${n.join(", ")})`:r.description}argumentDescription(r){let n=[];if(r.argChoices&&n.push(`choices: ${r.argChoices.map(o=>JSON.stringify(o)).join(", ")}`),r.defaultValue!==void 0&&n.push(`default: ${r.defaultValueDescription||JSON.stringify(r.defaultValue)}`),n.length>0){let o=`(${n.join(", ")})`;return r.description?`${r.description} ${o}`:o}return r.description}formatHelp(r,n){let o=n.padWidth(r,n),e=n.helpWidth??80;function i(m,g){return n.formatItem(m,o,g,n)}let a=[`${n.styleTitle("Usage:")} ${n.styleUsage(n.commandUsage(r))}`,""],s=n.commandDescription(r);s.length>0&&(a=a.concat([n.boxWrap(n.styleCommandDescription(s),e),""]));let u=n.visibleArguments(r).map(m=>i(n.styleArgumentTerm(n.argumentTerm(m)),n.styleArgumentDescription(n.argumentDescription(m))));u.length>0&&(a=a.concat([n.styleTitle("Arguments:"),...u,""]));let l=n.visibleOptions(r).map(m=>i(n.styleOptionTerm(n.optionTerm(m)),n.styleOptionDescription(n.optionDescription(m))));if(l.length>0&&(a=a.concat([n.styleTitle("Options:"),...l,""])),n.showGlobalOptions){let m=n.visibleGlobalOptions(r).map(g=>i(n.styleOptionTerm(n.optionTerm(g)),n.styleOptionDescription(n.optionDescription(g))));m.length>0&&(a=a.concat([n.styleTitle("Global Options:"),...m,""]))}let d=n.visibleCommands(r).map(m=>i(n.styleSubcommandTerm(n.subcommandTerm(m)),n.styleSubcommandDescription(n.subcommandDescription(m))));return d.length>0&&(a=a.concat([n.styleTitle("Commands:"),...d,""])),a.join(`
4
- `)}displayWidth(r){return Tl(r).length}styleTitle(r){return r}styleUsage(r){return r.split(" ").map(n=>n==="[options]"?this.styleOptionText(n):n==="[command]"?this.styleSubcommandText(n):n[0]==="["||n[0]==="<"?this.styleArgumentText(n):this.styleCommandText(n)).join(" ")}styleCommandDescription(r){return this.styleDescriptionText(r)}styleOptionDescription(r){return this.styleDescriptionText(r)}styleSubcommandDescription(r){return this.styleDescriptionText(r)}styleArgumentDescription(r){return this.styleDescriptionText(r)}styleDescriptionText(r){return r}styleOptionTerm(r){return this.styleOptionText(r)}styleSubcommandTerm(r){return r.split(" ").map(n=>n==="[options]"?this.styleOptionText(n):n[0]==="["||n[0]==="<"?this.styleArgumentText(n):this.styleSubcommandText(n)).join(" ")}styleArgumentTerm(r){return this.styleArgumentText(r)}styleOptionText(r){return r}styleArgumentText(r){return r}styleSubcommandText(r){return r}styleCommandText(r){return r}padWidth(r,n){return Math.max(n.longestOptionTermLength(r,n),n.longestGlobalOptionTermLength(r,n),n.longestSubcommandTermLength(r,n),n.longestArgumentTermLength(r,n))}preformatted(r){return/\n[^\S\r\n]/.test(r)}formatItem(r,n,o,e){let a=" ".repeat(2);if(!o)return a+r;let s=r.padEnd(n+r.length-e.displayWidth(r)),u=2,d=(this.helpWidth??80)-n-u-2,m;return d<this.minWidthToWrap||e.preformatted(o)?m=o:m=e.boxWrap(o,d).replace(/\n/g,`
3
+ var qg=Object.create;var Di=Object.defineProperty;var Kg=Object.getOwnPropertyDescriptor;var Yg=Object.getOwnPropertyNames;var Xg=Object.getPrototypeOf,Qg=Object.prototype.hasOwnProperty;var Rt=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(r,n)=>(typeof require<"u"?require:r)[n]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var Ve=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),xe=(t,r)=>{for(var n in r)Di(t,n,{get:r[n],enumerable:!0})},eh=(t,r,n,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of Yg(r))!Qg.call(t,e)&&e!==n&&Di(t,e,{get:()=>r[e],enumerable:!(o=Kg(r,e))||o.enumerable});return t};var th=(t,r,n)=>(n=t!=null?qg(Xg(t)):{},eh(r||!t||!t.__esModule?Di(n,"default",{value:t,enumerable:!0}):n,t));var Zt=Ve(Ri=>{var Cr=class extends Error{constructor(r,n,o){super(o),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=n,this.exitCode=r,this.nestedError=void 0}},Ui=class extends Cr{constructor(r){super(1,"commander.invalidArgument",r),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};Ri.CommanderError=Cr;Ri.InvalidArgumentError=Ui});var Nr=Ve(Li=>{var{InvalidArgumentError:rh}=Zt(),Zi=class{constructor(r,n){switch(this.description=n||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,r[0]){case"<":this.required=!0,this._name=r.slice(1,-1);break;case"[":this.required=!1,this._name=r.slice(1,-1);break;default:this.required=!0,this._name=r;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(r,n){return n===this.defaultValue||!Array.isArray(n)?[r]:n.concat(r)}default(r,n){return this.defaultValue=r,this.defaultValueDescription=n,this}argParser(r){return this.parseArg=r,this}choices(r){return this.argChoices=r.slice(),this.parseArg=(n,o)=>{if(!this.argChoices.includes(n))throw new rh(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(n,o):n},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function nh(t){let r=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+r+">":"["+r+"]"}Li.Argument=Zi;Li.humanReadableArgName=nh});var Vi=Ve(Fi=>{var{humanReadableArgName:ih}=Nr(),Mi=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(r){this.helpWidth=this.helpWidth??r.helpWidth??80}visibleCommands(r){let n=r.commands.filter(e=>!e._hidden),o=r._getHelpCommand();return o&&!o._hidden&&n.push(o),this.sortSubcommands&&n.sort((e,i)=>e.name().localeCompare(i.name())),n}compareOptions(r,n){let o=e=>e.short?e.short.replace(/^-/,""):e.long.replace(/^--/,"");return o(r).localeCompare(o(n))}visibleOptions(r){let n=r.options.filter(e=>!e.hidden),o=r._getHelpOption();if(o&&!o.hidden){let e=o.short&&r._findOption(o.short),i=o.long&&r._findOption(o.long);!e&&!i?n.push(o):o.long&&!i?n.push(r.createOption(o.long,o.description)):o.short&&!e&&n.push(r.createOption(o.short,o.description))}return this.sortOptions&&n.sort(this.compareOptions),n}visibleGlobalOptions(r){if(!this.showGlobalOptions)return[];let n=[];for(let o=r.parent;o;o=o.parent){let e=o.options.filter(i=>!i.hidden);n.push(...e)}return this.sortOptions&&n.sort(this.compareOptions),n}visibleArguments(r){return r._argsDescription&&r.registeredArguments.forEach(n=>{n.description=n.description||r._argsDescription[n.name()]||""}),r.registeredArguments.find(n=>n.description)?r.registeredArguments:[]}subcommandTerm(r){let n=r.registeredArguments.map(o=>ih(o)).join(" ");return r._name+(r._aliases[0]?"|"+r._aliases[0]:"")+(r.options.length?" [options]":"")+(n?" "+n:"")}optionTerm(r){return r.flags}argumentTerm(r){return r.name()}longestSubcommandTermLength(r,n){return n.visibleCommands(r).reduce((o,e)=>Math.max(o,this.displayWidth(n.styleSubcommandTerm(n.subcommandTerm(e)))),0)}longestOptionTermLength(r,n){return n.visibleOptions(r).reduce((o,e)=>Math.max(o,this.displayWidth(n.styleOptionTerm(n.optionTerm(e)))),0)}longestGlobalOptionTermLength(r,n){return n.visibleGlobalOptions(r).reduce((o,e)=>Math.max(o,this.displayWidth(n.styleOptionTerm(n.optionTerm(e)))),0)}longestArgumentTermLength(r,n){return n.visibleArguments(r).reduce((o,e)=>Math.max(o,this.displayWidth(n.styleArgumentTerm(n.argumentTerm(e)))),0)}commandUsage(r){let n=r._name;r._aliases[0]&&(n=n+"|"+r._aliases[0]);let o="";for(let e=r.parent;e;e=e.parent)o=e.name()+" "+o;return o+n+" "+r.usage()}commandDescription(r){return r.description()}subcommandDescription(r){return r.summary()||r.description()}optionDescription(r){let n=[];return r.argChoices&&n.push(`choices: ${r.argChoices.map(o=>JSON.stringify(o)).join(", ")}`),r.defaultValue!==void 0&&(r.required||r.optional||r.isBoolean()&&typeof r.defaultValue=="boolean")&&n.push(`default: ${r.defaultValueDescription||JSON.stringify(r.defaultValue)}`),r.presetArg!==void 0&&r.optional&&n.push(`preset: ${JSON.stringify(r.presetArg)}`),r.envVar!==void 0&&n.push(`env: ${r.envVar}`),n.length>0?`${r.description} (${n.join(", ")})`:r.description}argumentDescription(r){let n=[];if(r.argChoices&&n.push(`choices: ${r.argChoices.map(o=>JSON.stringify(o)).join(", ")}`),r.defaultValue!==void 0&&n.push(`default: ${r.defaultValueDescription||JSON.stringify(r.defaultValue)}`),n.length>0){let o=`(${n.join(", ")})`;return r.description?`${r.description} ${o}`:o}return r.description}formatHelp(r,n){let o=n.padWidth(r,n),e=n.helpWidth??80;function i(m,g){return n.formatItem(m,o,g,n)}let a=[`${n.styleTitle("Usage:")} ${n.styleUsage(n.commandUsage(r))}`,""],s=n.commandDescription(r);s.length>0&&(a=a.concat([n.boxWrap(n.styleCommandDescription(s),e),""]));let u=n.visibleArguments(r).map(m=>i(n.styleArgumentTerm(n.argumentTerm(m)),n.styleArgumentDescription(n.argumentDescription(m))));u.length>0&&(a=a.concat([n.styleTitle("Arguments:"),...u,""]));let l=n.visibleOptions(r).map(m=>i(n.styleOptionTerm(n.optionTerm(m)),n.styleOptionDescription(n.optionDescription(m))));if(l.length>0&&(a=a.concat([n.styleTitle("Options:"),...l,""])),n.showGlobalOptions){let m=n.visibleGlobalOptions(r).map(g=>i(n.styleOptionTerm(n.optionTerm(g)),n.styleOptionDescription(n.optionDescription(g))));m.length>0&&(a=a.concat([n.styleTitle("Global Options:"),...m,""]))}let d=n.visibleCommands(r).map(m=>i(n.styleSubcommandTerm(n.subcommandTerm(m)),n.styleSubcommandDescription(n.subcommandDescription(m))));return d.length>0&&(a=a.concat([n.styleTitle("Commands:"),...d,""])),a.join(`
4
+ `)}displayWidth(r){return jl(r).length}styleTitle(r){return r}styleUsage(r){return r.split(" ").map(n=>n==="[options]"?this.styleOptionText(n):n==="[command]"?this.styleSubcommandText(n):n[0]==="["||n[0]==="<"?this.styleArgumentText(n):this.styleCommandText(n)).join(" ")}styleCommandDescription(r){return this.styleDescriptionText(r)}styleOptionDescription(r){return this.styleDescriptionText(r)}styleSubcommandDescription(r){return this.styleDescriptionText(r)}styleArgumentDescription(r){return this.styleDescriptionText(r)}styleDescriptionText(r){return r}styleOptionTerm(r){return this.styleOptionText(r)}styleSubcommandTerm(r){return r.split(" ").map(n=>n==="[options]"?this.styleOptionText(n):n[0]==="["||n[0]==="<"?this.styleArgumentText(n):this.styleSubcommandText(n)).join(" ")}styleArgumentTerm(r){return this.styleArgumentText(r)}styleOptionText(r){return r}styleArgumentText(r){return r}styleSubcommandText(r){return r}styleCommandText(r){return r}padWidth(r,n){return Math.max(n.longestOptionTermLength(r,n),n.longestGlobalOptionTermLength(r,n),n.longestSubcommandTermLength(r,n),n.longestArgumentTermLength(r,n))}preformatted(r){return/\n[^\S\r\n]/.test(r)}formatItem(r,n,o,e){let a=" ".repeat(2);if(!o)return a+r;let s=r.padEnd(n+r.length-e.displayWidth(r)),u=2,d=(this.helpWidth??80)-n-u-2,m;return d<this.minWidthToWrap||e.preformatted(o)?m=o:m=e.boxWrap(o,d).replace(/\n/g,`
5
5
  `+" ".repeat(n+u)),a+s+" ".repeat(u)+m.replace(/\n/g,`
6
6
  ${a}`)}boxWrap(r,n){if(n<this.minWidthToWrap)return r;let o=r.split(/\r\n|\n/),e=/[\s]*[^\s]+/g,i=[];return o.forEach(a=>{let s=a.match(e);if(s===null){i.push("");return}let u=[s.shift()],l=this.displayWidth(u[0]);s.forEach(d=>{let m=this.displayWidth(d);if(l+m<=n){u.push(d),l+=m;return}i.push(u.join(""));let g=d.trimStart();u=[g],l=this.displayWidth(g)}),i.push(u.join(""))}),i.join(`
7
- `)}};function Tl(t){let r=/\x1b\[\d*(;\d*)*m/g;return t.replace(r,"")}Fi.Help=Li;Fi.stripColor=Tl});var Wi=Ve(Hi=>{var{InvalidArgumentError:rh}=Zt(),Vi=class{constructor(r,n){this.flags=r,this.description=n||"",this.required=r.includes("<"),this.optional=r.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(r),this.mandatory=!1;let o=nh(r);this.short=o.shortFlag,this.long=o.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(r,n){return this.defaultValue=r,this.defaultValueDescription=n,this}preset(r){return this.presetArg=r,this}conflicts(r){return this.conflictsWith=this.conflictsWith.concat(r),this}implies(r){let n=r;return typeof r=="string"&&(n={[r]:!0}),this.implied=Object.assign(this.implied||{},n),this}env(r){return this.envVar=r,this}argParser(r){return this.parseArg=r,this}makeOptionMandatory(r=!0){return this.mandatory=!!r,this}hideHelp(r=!0){return this.hidden=!!r,this}_concatValue(r,n){return n===this.defaultValue||!Array.isArray(n)?[r]:n.concat(r)}choices(r){return this.argChoices=r.slice(),this.parseArg=(n,o)=>{if(!this.argChoices.includes(n))throw new rh(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(n,o):n},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?jl(this.name().replace(/^no-/,"")):jl(this.name())}is(r){return this.short===r||this.long===r}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Bi=class{constructor(r){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,r.forEach(n=>{n.negate?this.negativeOptions.set(n.attributeName(),n):this.positiveOptions.set(n.attributeName(),n)}),this.negativeOptions.forEach((n,o)=>{this.positiveOptions.has(o)&&this.dualOptions.add(o)})}valueFromOption(r,n){let o=n.attributeName();if(!this.dualOptions.has(o))return!0;let e=this.negativeOptions.get(o).presetArg,i=e!==void 0?e:!1;return n.negate===(i===r)}};function jl(t){return t.split("-").reduce((r,n)=>r+n[0].toUpperCase()+n.slice(1))}function nh(t){let r,n,o=/^-[^-]$/,e=/^--[^-]/,i=t.split(/[ |,]+/).concat("guard");if(o.test(i[0])&&(r=i.shift()),e.test(i[0])&&(n=i.shift()),!r&&o.test(i[0])&&(r=i.shift()),!r&&e.test(i[0])&&(r=n,n=i.shift()),i[0].startsWith("-")){let a=i[0],s=`option creation failed due to '${a}' in option flags '${t}'`;throw/^-[^-][^-]/.test(a)?new Error(`${s}
7
+ `)}};function jl(t){let r=/\x1b\[\d*(;\d*)*m/g;return t.replace(r,"")}Fi.Help=Mi;Fi.stripColor=jl});var Wi=Ve(Gi=>{var{InvalidArgumentError:oh}=Zt(),Bi=class{constructor(r,n){this.flags=r,this.description=n||"",this.required=r.includes("<"),this.optional=r.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(r),this.mandatory=!1;let o=ah(r);this.short=o.shortFlag,this.long=o.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(r,n){return this.defaultValue=r,this.defaultValueDescription=n,this}preset(r){return this.presetArg=r,this}conflicts(r){return this.conflictsWith=this.conflictsWith.concat(r),this}implies(r){let n=r;return typeof r=="string"&&(n={[r]:!0}),this.implied=Object.assign(this.implied||{},n),this}env(r){return this.envVar=r,this}argParser(r){return this.parseArg=r,this}makeOptionMandatory(r=!0){return this.mandatory=!!r,this}hideHelp(r=!0){return this.hidden=!!r,this}_concatValue(r,n){return n===this.defaultValue||!Array.isArray(n)?[r]:n.concat(r)}choices(r){return this.argChoices=r.slice(),this.parseArg=(n,o)=>{if(!this.argChoices.includes(n))throw new oh(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(n,o):n},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?Al(this.name().replace(/^no-/,"")):Al(this.name())}is(r){return this.short===r||this.long===r}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Hi=class{constructor(r){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,r.forEach(n=>{n.negate?this.negativeOptions.set(n.attributeName(),n):this.positiveOptions.set(n.attributeName(),n)}),this.negativeOptions.forEach((n,o)=>{this.positiveOptions.has(o)&&this.dualOptions.add(o)})}valueFromOption(r,n){let o=n.attributeName();if(!this.dualOptions.has(o))return!0;let e=this.negativeOptions.get(o).presetArg,i=e!==void 0?e:!1;return n.negate===(i===r)}};function Al(t){return t.split("-").reduce((r,n)=>r+n[0].toUpperCase()+n.slice(1))}function ah(t){let r,n,o=/^-[^-]$/,e=/^--[^-]/,i=t.split(/[ |,]+/).concat("guard");if(o.test(i[0])&&(r=i.shift()),e.test(i[0])&&(n=i.shift()),!r&&o.test(i[0])&&(r=i.shift()),!r&&e.test(i[0])&&(r=n,n=i.shift()),i[0].startsWith("-")){let a=i[0],s=`option creation failed due to '${a}' in option flags '${t}'`;throw/^-[^-][^-]/.test(a)?new Error(`${s}
8
8
  - a short flag is a single dash and a single character
9
9
  - either use a single dash and a single character (for a short flag)
10
10
  - or use a double dash for a long option (and can have two, like '--ws, --workspace')`):o.test(a)?new Error(`${s}
11
11
  - too many short flags`):e.test(a)?new Error(`${s}
12
12
  - too many long flags`):new Error(`${s}
13
- - unrecognised flag format`)}if(r===void 0&&n===void 0)throw new Error(`option creation failed due to no flags found in '${t}'.`);return{shortFlag:r,longFlag:n}}Hi.Option=Vi;Hi.DualOptions=Bi});var Cl=Ve(Al=>{function ih(t,r){if(Math.abs(t.length-r.length)>3)return Math.max(t.length,r.length);let n=[];for(let o=0;o<=t.length;o++)n[o]=[o];for(let o=0;o<=r.length;o++)n[0][o]=o;for(let o=1;o<=r.length;o++)for(let e=1;e<=t.length;e++){let i=1;t[e-1]===r[o-1]?i=0:i=1,n[e][o]=Math.min(n[e-1][o]+1,n[e][o-1]+1,n[e-1][o-1]+i),e>1&&o>1&&t[e-1]===r[o-2]&&t[e-2]===r[o-1]&&(n[e][o]=Math.min(n[e][o],n[e-2][o-2]+1))}return n[t.length][r.length]}function oh(t,r){if(!r||r.length===0)return"";r=Array.from(new Set(r));let n=t.startsWith("--");n&&(t=t.slice(2),r=r.map(a=>a.slice(2)));let o=[],e=3,i=.4;return r.forEach(a=>{if(a.length<=1)return;let s=ih(t,a),u=Math.max(t.length,a.length);(u-s)/u>i&&(s<e?(e=s,o=[a]):s===e&&o.push(a))}),o.sort((a,s)=>a.localeCompare(s)),n&&(o=o.map(a=>`--${a}`)),o.length>1?`
13
+ - unrecognised flag format`)}if(r===void 0&&n===void 0)throw new Error(`option creation failed due to no flags found in '${t}'.`);return{shortFlag:r,longFlag:n}}Gi.Option=Bi;Gi.DualOptions=Hi});var Nl=Ve(Cl=>{function sh(t,r){if(Math.abs(t.length-r.length)>3)return Math.max(t.length,r.length);let n=[];for(let o=0;o<=t.length;o++)n[o]=[o];for(let o=0;o<=r.length;o++)n[0][o]=o;for(let o=1;o<=r.length;o++)for(let e=1;e<=t.length;e++){let i=1;t[e-1]===r[o-1]?i=0:i=1,n[e][o]=Math.min(n[e-1][o]+1,n[e][o-1]+1,n[e-1][o-1]+i),e>1&&o>1&&t[e-1]===r[o-2]&&t[e-2]===r[o-1]&&(n[e][o]=Math.min(n[e][o],n[e-2][o-2]+1))}return n[t.length][r.length]}function ch(t,r){if(!r||r.length===0)return"";r=Array.from(new Set(r));let n=t.startsWith("--");n&&(t=t.slice(2),r=r.map(a=>a.slice(2)));let o=[],e=3,i=.4;return r.forEach(a=>{if(a.length<=1)return;let s=sh(t,a),u=Math.max(t.length,a.length);(u-s)/u>i&&(s<e?(e=s,o=[a]):s===e&&o.push(a))}),o.sort((a,s)=>a.localeCompare(s)),n&&(o=o.map(a=>`--${a}`)),o.length>1?`
14
14
  (Did you mean one of ${o.join(", ")}?)`:o.length===1?`
15
- (Did you mean ${o[0]}?)`:""}Al.suggestSimilar=oh});var Rl=Ve(Yi=>{var ah=Rt("node:events").EventEmitter,Gi=Rt("node:child_process"),xe=Rt("node:path"),Dr=Rt("node:fs"),P=Rt("node:process"),{Argument:sh,humanReadableArgName:ch}=Nr(),{CommanderError:Ji}=Zt(),{Help:uh,stripColor:lh}=Mi(),{Option:Nl,DualOptions:dh}=Wi(),{suggestSimilar:Dl}=Cl(),qi=class t extends ah{constructor(r){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=r||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:n=>P.stdout.write(n),writeErr:n=>P.stderr.write(n),outputError:(n,o)=>o(n),getOutHelpWidth:()=>P.stdout.isTTY?P.stdout.columns:void 0,getErrHelpWidth:()=>P.stderr.isTTY?P.stderr.columns:void 0,getOutHasColors:()=>Ki()??(P.stdout.isTTY&&P.stdout.hasColors?.()),getErrHasColors:()=>Ki()??(P.stderr.isTTY&&P.stderr.hasColors?.()),stripColor:n=>lh(n)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={}}copyInheritedSettings(r){return this._outputConfiguration=r._outputConfiguration,this._helpOption=r._helpOption,this._helpCommand=r._helpCommand,this._helpConfiguration=r._helpConfiguration,this._exitCallback=r._exitCallback,this._storeOptionsAsProperties=r._storeOptionsAsProperties,this._combineFlagAndOptionalValue=r._combineFlagAndOptionalValue,this._allowExcessArguments=r._allowExcessArguments,this._enablePositionalOptions=r._enablePositionalOptions,this._showHelpAfterError=r._showHelpAfterError,this._showSuggestionAfterError=r._showSuggestionAfterError,this}_getCommandAndAncestors(){let r=[];for(let n=this;n;n=n.parent)r.push(n);return r}command(r,n,o){let e=n,i=o;typeof e=="object"&&e!==null&&(i=e,e=null),i=i||{};let[,a,s]=r.match(/([^ ]+) *(.*)/),u=this.createCommand(a);return e&&(u.description(e),u._executableHandler=!0),i.isDefault&&(this._defaultCommandName=u._name),u._hidden=!!(i.noHelp||i.hidden),u._executableFile=i.executableFile||null,s&&u.arguments(s),this._registerCommand(u),u.parent=this,u.copyInheritedSettings(this),e?this:u}createCommand(r){return new t(r)}createHelp(){return Object.assign(new uh,this.configureHelp())}configureHelp(r){return r===void 0?this._helpConfiguration:(this._helpConfiguration=r,this)}configureOutput(r){return r===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,r),this)}showHelpAfterError(r=!0){return typeof r!="string"&&(r=!!r),this._showHelpAfterError=r,this}showSuggestionAfterError(r=!0){return this._showSuggestionAfterError=!!r,this}addCommand(r,n){if(!r._name)throw new Error(`Command passed to .addCommand() must have a name
16
- - specify the name in Command constructor or using .name()`);return n=n||{},n.isDefault&&(this._defaultCommandName=r._name),(n.noHelp||n.hidden)&&(r._hidden=!0),this._registerCommand(r),r.parent=this,r._checkForBrokenPassThrough(),this}createArgument(r,n){return new sh(r,n)}argument(r,n,o,e){let i=this.createArgument(r,n);return typeof o=="function"?i.default(e).argParser(o):i.default(o),this.addArgument(i),this}arguments(r){return r.trim().split(/ +/).forEach(n=>{this.argument(n)}),this}addArgument(r){let n=this.registeredArguments.slice(-1)[0];if(n&&n.variadic)throw new Error(`only the last argument can be variadic '${n.name()}'`);if(r.required&&r.defaultValue!==void 0&&r.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${r.name()}'`);return this.registeredArguments.push(r),this}helpCommand(r,n){if(typeof r=="boolean")return this._addImplicitHelpCommand=r,this;r=r??"help [command]";let[,o,e]=r.match(/([^ ]+) *(.*)/),i=n??"display help for command",a=this.createCommand(o);return a.helpOption(!1),e&&a.arguments(e),i&&a.description(i),this._addImplicitHelpCommand=!0,this._helpCommand=a,this}addHelpCommand(r,n){return typeof r!="object"?(this.helpCommand(r,n),this):(this._addImplicitHelpCommand=!0,this._helpCommand=r,this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(r,n){let o=["preSubcommand","preAction","postAction"];if(!o.includes(r))throw new Error(`Unexpected value for event passed to hook : '${r}'.
17
- Expecting one of '${o.join("', '")}'`);return this._lifeCycleHooks[r]?this._lifeCycleHooks[r].push(n):this._lifeCycleHooks[r]=[n],this}exitOverride(r){return r?this._exitCallback=r:this._exitCallback=n=>{if(n.code!=="commander.executeSubCommandAsync")throw n},this}_exit(r,n,o){this._exitCallback&&this._exitCallback(new Ji(r,n,o)),P.exit(r)}action(r){let n=o=>{let e=this.registeredArguments.length,i=o.slice(0,e);return this._storeOptionsAsProperties?i[e]=this:i[e]=this.opts(),i.push(this),r.apply(this,i)};return this._actionHandler=n,this}createOption(r,n){return new Nl(r,n)}_callParseArg(r,n,o,e){try{return r.parseArg(n,o)}catch(i){if(i.code==="commander.invalidArgument"){let a=`${e} ${i.message}`;this.error(a,{exitCode:i.exitCode,code:i.code})}throw i}}_registerOption(r){let n=r.short&&this._findOption(r.short)||r.long&&this._findOption(r.long);if(n){let o=r.long&&this._findOption(r.long)?r.long:r.short;throw new Error(`Cannot add option '${r.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${o}'
18
- - already used by option '${n.flags}'`)}this.options.push(r)}_registerCommand(r){let n=e=>[e.name()].concat(e.aliases()),o=n(r).find(e=>this._findCommand(e));if(o){let e=n(this._findCommand(o)).join("|"),i=n(r).join("|");throw new Error(`cannot add command '${i}' as already have command '${e}'`)}this.commands.push(r)}addOption(r){this._registerOption(r);let n=r.name(),o=r.attributeName();if(r.negate){let i=r.long.replace(/^--no-/,"--");this._findOption(i)||this.setOptionValueWithSource(o,r.defaultValue===void 0?!0:r.defaultValue,"default")}else r.defaultValue!==void 0&&this.setOptionValueWithSource(o,r.defaultValue,"default");let e=(i,a,s)=>{i==null&&r.presetArg!==void 0&&(i=r.presetArg);let u=this.getOptionValue(o);i!==null&&r.parseArg?i=this._callParseArg(r,i,u,a):i!==null&&r.variadic&&(i=r._concatValue(i,u)),i==null&&(r.negate?i=!1:r.isBoolean()||r.optional?i=!0:i=""),this.setOptionValueWithSource(o,i,s)};return this.on("option:"+n,i=>{let a=`error: option '${r.flags}' argument '${i}' is invalid.`;e(i,a,"cli")}),r.envVar&&this.on("optionEnv:"+n,i=>{let a=`error: option '${r.flags}' value '${i}' from env '${r.envVar}' is invalid.`;e(i,a,"env")}),this}_optionEx(r,n,o,e,i){if(typeof n=="object"&&n instanceof Nl)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let a=this.createOption(n,o);if(a.makeOptionMandatory(!!r.mandatory),typeof e=="function")a.default(i).argParser(e);else if(e instanceof RegExp){let s=e;e=(u,l)=>{let d=s.exec(u);return d?d[0]:l},a.default(i).argParser(e)}else a.default(e);return this.addOption(a)}option(r,n,o,e){return this._optionEx({},r,n,o,e)}requiredOption(r,n,o,e){return this._optionEx({mandatory:!0},r,n,o,e)}combineFlagAndOptionalValue(r=!0){return this._combineFlagAndOptionalValue=!!r,this}allowUnknownOption(r=!0){return this._allowUnknownOption=!!r,this}allowExcessArguments(r=!0){return this._allowExcessArguments=!!r,this}enablePositionalOptions(r=!0){return this._enablePositionalOptions=!!r,this}passThroughOptions(r=!0){return this._passThroughOptions=!!r,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(r=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!r,this}getOptionValue(r){return this._storeOptionsAsProperties?this[r]:this._optionValues[r]}setOptionValue(r,n){return this.setOptionValueWithSource(r,n,void 0)}setOptionValueWithSource(r,n,o){return this._storeOptionsAsProperties?this[r]=n:this._optionValues[r]=n,this._optionValueSources[r]=o,this}getOptionValueSource(r){return this._optionValueSources[r]}getOptionValueSourceWithGlobals(r){let n;return this._getCommandAndAncestors().forEach(o=>{o.getOptionValueSource(r)!==void 0&&(n=o.getOptionValueSource(r))}),n}_prepareUserArgs(r,n){if(r!==void 0&&!Array.isArray(r))throw new Error("first parameter to parse must be array or undefined");if(n=n||{},r===void 0&&n.from===void 0){P.versions?.electron&&(n.from="electron");let e=P.execArgv??[];(e.includes("-e")||e.includes("--eval")||e.includes("-p")||e.includes("--print"))&&(n.from="eval")}r===void 0&&(r=P.argv),this.rawArgs=r.slice();let o;switch(n.from){case void 0:case"node":this._scriptPath=r[1],o=r.slice(2);break;case"electron":P.defaultApp?(this._scriptPath=r[1],o=r.slice(2)):o=r.slice(1);break;case"user":o=r.slice(0);break;case"eval":o=r.slice(1);break;default:throw new Error(`unexpected parse option { from: '${n.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",o}parse(r,n){this._prepareForParse();let o=this._prepareUserArgs(r,n);return this._parseCommand([],o),this}async parseAsync(r,n){this._prepareForParse();let o=this._prepareUserArgs(r,n);return await this._parseCommand([],o),this}_prepareForParse(){this._savedState===null?this.saveStateBeforeParse():this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw new Error(`Can not call parse again when storeOptionsAsProperties is true.
15
+ (Did you mean ${o[0]}?)`:""}Cl.suggestSimilar=ch});var Zl=Ve(Xi=>{var uh=Rt("node:events").EventEmitter,Ji=Rt("node:child_process"),ke=Rt("node:path"),Dr=Rt("node:fs"),E=Rt("node:process"),{Argument:lh,humanReadableArgName:dh}=Nr(),{CommanderError:qi}=Zt(),{Help:mh,stripColor:ph}=Vi(),{Option:Dl,DualOptions:fh}=Wi(),{suggestSimilar:Ul}=Nl(),Ki=class t extends uh{constructor(r){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=r||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:n=>E.stdout.write(n),writeErr:n=>E.stderr.write(n),outputError:(n,o)=>o(n),getOutHelpWidth:()=>E.stdout.isTTY?E.stdout.columns:void 0,getErrHelpWidth:()=>E.stderr.isTTY?E.stderr.columns:void 0,getOutHasColors:()=>Yi()??(E.stdout.isTTY&&E.stdout.hasColors?.()),getErrHasColors:()=>Yi()??(E.stderr.isTTY&&E.stderr.hasColors?.()),stripColor:n=>ph(n)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={}}copyInheritedSettings(r){return this._outputConfiguration=r._outputConfiguration,this._helpOption=r._helpOption,this._helpCommand=r._helpCommand,this._helpConfiguration=r._helpConfiguration,this._exitCallback=r._exitCallback,this._storeOptionsAsProperties=r._storeOptionsAsProperties,this._combineFlagAndOptionalValue=r._combineFlagAndOptionalValue,this._allowExcessArguments=r._allowExcessArguments,this._enablePositionalOptions=r._enablePositionalOptions,this._showHelpAfterError=r._showHelpAfterError,this._showSuggestionAfterError=r._showSuggestionAfterError,this}_getCommandAndAncestors(){let r=[];for(let n=this;n;n=n.parent)r.push(n);return r}command(r,n,o){let e=n,i=o;typeof e=="object"&&e!==null&&(i=e,e=null),i=i||{};let[,a,s]=r.match(/([^ ]+) *(.*)/),u=this.createCommand(a);return e&&(u.description(e),u._executableHandler=!0),i.isDefault&&(this._defaultCommandName=u._name),u._hidden=!!(i.noHelp||i.hidden),u._executableFile=i.executableFile||null,s&&u.arguments(s),this._registerCommand(u),u.parent=this,u.copyInheritedSettings(this),e?this:u}createCommand(r){return new t(r)}createHelp(){return Object.assign(new mh,this.configureHelp())}configureHelp(r){return r===void 0?this._helpConfiguration:(this._helpConfiguration=r,this)}configureOutput(r){return r===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,r),this)}showHelpAfterError(r=!0){return typeof r!="string"&&(r=!!r),this._showHelpAfterError=r,this}showSuggestionAfterError(r=!0){return this._showSuggestionAfterError=!!r,this}addCommand(r,n){if(!r._name)throw new Error(`Command passed to .addCommand() must have a name
16
+ - specify the name in Command constructor or using .name()`);return n=n||{},n.isDefault&&(this._defaultCommandName=r._name),(n.noHelp||n.hidden)&&(r._hidden=!0),this._registerCommand(r),r.parent=this,r._checkForBrokenPassThrough(),this}createArgument(r,n){return new lh(r,n)}argument(r,n,o,e){let i=this.createArgument(r,n);return typeof o=="function"?i.default(e).argParser(o):i.default(o),this.addArgument(i),this}arguments(r){return r.trim().split(/ +/).forEach(n=>{this.argument(n)}),this}addArgument(r){let n=this.registeredArguments.slice(-1)[0];if(n&&n.variadic)throw new Error(`only the last argument can be variadic '${n.name()}'`);if(r.required&&r.defaultValue!==void 0&&r.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${r.name()}'`);return this.registeredArguments.push(r),this}helpCommand(r,n){if(typeof r=="boolean")return this._addImplicitHelpCommand=r,this;r=r??"help [command]";let[,o,e]=r.match(/([^ ]+) *(.*)/),i=n??"display help for command",a=this.createCommand(o);return a.helpOption(!1),e&&a.arguments(e),i&&a.description(i),this._addImplicitHelpCommand=!0,this._helpCommand=a,this}addHelpCommand(r,n){return typeof r!="object"?(this.helpCommand(r,n),this):(this._addImplicitHelpCommand=!0,this._helpCommand=r,this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(r,n){let o=["preSubcommand","preAction","postAction"];if(!o.includes(r))throw new Error(`Unexpected value for event passed to hook : '${r}'.
17
+ Expecting one of '${o.join("', '")}'`);return this._lifeCycleHooks[r]?this._lifeCycleHooks[r].push(n):this._lifeCycleHooks[r]=[n],this}exitOverride(r){return r?this._exitCallback=r:this._exitCallback=n=>{if(n.code!=="commander.executeSubCommandAsync")throw n},this}_exit(r,n,o){this._exitCallback&&this._exitCallback(new qi(r,n,o)),E.exit(r)}action(r){let n=o=>{let e=this.registeredArguments.length,i=o.slice(0,e);return this._storeOptionsAsProperties?i[e]=this:i[e]=this.opts(),i.push(this),r.apply(this,i)};return this._actionHandler=n,this}createOption(r,n){return new Dl(r,n)}_callParseArg(r,n,o,e){try{return r.parseArg(n,o)}catch(i){if(i.code==="commander.invalidArgument"){let a=`${e} ${i.message}`;this.error(a,{exitCode:i.exitCode,code:i.code})}throw i}}_registerOption(r){let n=r.short&&this._findOption(r.short)||r.long&&this._findOption(r.long);if(n){let o=r.long&&this._findOption(r.long)?r.long:r.short;throw new Error(`Cannot add option '${r.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${o}'
18
+ - already used by option '${n.flags}'`)}this.options.push(r)}_registerCommand(r){let n=e=>[e.name()].concat(e.aliases()),o=n(r).find(e=>this._findCommand(e));if(o){let e=n(this._findCommand(o)).join("|"),i=n(r).join("|");throw new Error(`cannot add command '${i}' as already have command '${e}'`)}this.commands.push(r)}addOption(r){this._registerOption(r);let n=r.name(),o=r.attributeName();if(r.negate){let i=r.long.replace(/^--no-/,"--");this._findOption(i)||this.setOptionValueWithSource(o,r.defaultValue===void 0?!0:r.defaultValue,"default")}else r.defaultValue!==void 0&&this.setOptionValueWithSource(o,r.defaultValue,"default");let e=(i,a,s)=>{i==null&&r.presetArg!==void 0&&(i=r.presetArg);let u=this.getOptionValue(o);i!==null&&r.parseArg?i=this._callParseArg(r,i,u,a):i!==null&&r.variadic&&(i=r._concatValue(i,u)),i==null&&(r.negate?i=!1:r.isBoolean()||r.optional?i=!0:i=""),this.setOptionValueWithSource(o,i,s)};return this.on("option:"+n,i=>{let a=`error: option '${r.flags}' argument '${i}' is invalid.`;e(i,a,"cli")}),r.envVar&&this.on("optionEnv:"+n,i=>{let a=`error: option '${r.flags}' value '${i}' from env '${r.envVar}' is invalid.`;e(i,a,"env")}),this}_optionEx(r,n,o,e,i){if(typeof n=="object"&&n instanceof Dl)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let a=this.createOption(n,o);if(a.makeOptionMandatory(!!r.mandatory),typeof e=="function")a.default(i).argParser(e);else if(e instanceof RegExp){let s=e;e=(u,l)=>{let d=s.exec(u);return d?d[0]:l},a.default(i).argParser(e)}else a.default(e);return this.addOption(a)}option(r,n,o,e){return this._optionEx({},r,n,o,e)}requiredOption(r,n,o,e){return this._optionEx({mandatory:!0},r,n,o,e)}combineFlagAndOptionalValue(r=!0){return this._combineFlagAndOptionalValue=!!r,this}allowUnknownOption(r=!0){return this._allowUnknownOption=!!r,this}allowExcessArguments(r=!0){return this._allowExcessArguments=!!r,this}enablePositionalOptions(r=!0){return this._enablePositionalOptions=!!r,this}passThroughOptions(r=!0){return this._passThroughOptions=!!r,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(r=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!r,this}getOptionValue(r){return this._storeOptionsAsProperties?this[r]:this._optionValues[r]}setOptionValue(r,n){return this.setOptionValueWithSource(r,n,void 0)}setOptionValueWithSource(r,n,o){return this._storeOptionsAsProperties?this[r]=n:this._optionValues[r]=n,this._optionValueSources[r]=o,this}getOptionValueSource(r){return this._optionValueSources[r]}getOptionValueSourceWithGlobals(r){let n;return this._getCommandAndAncestors().forEach(o=>{o.getOptionValueSource(r)!==void 0&&(n=o.getOptionValueSource(r))}),n}_prepareUserArgs(r,n){if(r!==void 0&&!Array.isArray(r))throw new Error("first parameter to parse must be array or undefined");if(n=n||{},r===void 0&&n.from===void 0){E.versions?.electron&&(n.from="electron");let e=E.execArgv??[];(e.includes("-e")||e.includes("--eval")||e.includes("-p")||e.includes("--print"))&&(n.from="eval")}r===void 0&&(r=E.argv),this.rawArgs=r.slice();let o;switch(n.from){case void 0:case"node":this._scriptPath=r[1],o=r.slice(2);break;case"electron":E.defaultApp?(this._scriptPath=r[1],o=r.slice(2)):o=r.slice(1);break;case"user":o=r.slice(0);break;case"eval":o=r.slice(1);break;default:throw new Error(`unexpected parse option { from: '${n.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",o}parse(r,n){this._prepareForParse();let o=this._prepareUserArgs(r,n);return this._parseCommand([],o),this}async parseAsync(r,n){this._prepareForParse();let o=this._prepareUserArgs(r,n);return await this._parseCommand([],o),this}_prepareForParse(){this._savedState===null?this.saveStateBeforeParse():this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw new Error(`Can not call parse again when storeOptionsAsProperties is true.
19
19
  - either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(r,n,o){if(Dr.existsSync(r))return;let e=n?`searched for local subcommand relative to directory '${n}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",i=`'${r}' does not exist
20
20
  - if '${o}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
21
21
  - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
22
- - ${e}`;throw new Error(i)}_executeSubCommand(r,n){n=n.slice();let o=!1,e=[".js",".ts",".tsx",".mjs",".cjs"];function i(d,m){let g=xe.resolve(d,m);if(Dr.existsSync(g))return g;if(e.includes(xe.extname(m)))return;let _=e.find(x=>Dr.existsSync(`${g}${x}`));if(_)return`${g}${_}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let a=r._executableFile||`${this._name}-${r._name}`,s=this._executableDir||"";if(this._scriptPath){let d;try{d=Dr.realpathSync(this._scriptPath)}catch{d=this._scriptPath}s=xe.resolve(xe.dirname(d),s)}if(s){let d=i(s,a);if(!d&&!r._executableFile&&this._scriptPath){let m=xe.basename(this._scriptPath,xe.extname(this._scriptPath));m!==this._name&&(d=i(s,`${m}-${r._name}`))}a=d||a}o=e.includes(xe.extname(a));let u;P.platform!=="win32"?o?(n.unshift(a),n=Ul(P.execArgv).concat(n),u=Gi.spawn(P.argv[0],n,{stdio:"inherit"})):u=Gi.spawn(a,n,{stdio:"inherit"}):(this._checkForMissingExecutable(a,s,r._name),n.unshift(a),n=Ul(P.execArgv).concat(n),u=Gi.spawn(P.execPath,n,{stdio:"inherit"})),u.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(m=>{P.on(m,()=>{u.killed===!1&&u.exitCode===null&&u.kill(m)})});let l=this._exitCallback;u.on("close",d=>{d=d??1,l?l(new Ji(d,"commander.executeSubCommandAsync","(close)")):P.exit(d)}),u.on("error",d=>{if(d.code==="ENOENT")this._checkForMissingExecutable(a,s,r._name);else if(d.code==="EACCES")throw new Error(`'${a}' not executable`);if(!l)P.exit(1);else{let m=new Ji(1,"commander.executeSubCommandAsync","(error)");m.nestedError=d,l(m)}}),this.runningCommand=u}_dispatchSubcommand(r,n,o){let e=this._findCommand(r);e||this.help({error:!0}),e._prepareForParse();let i;return i=this._chainOrCallSubCommandHook(i,e,"preSubcommand"),i=this._chainOrCall(i,()=>{if(e._executableHandler)this._executeSubCommand(e,n.concat(o));else return e._parseCommand(n,o)}),i}_dispatchHelpCommand(r){r||this.help();let n=this._findCommand(r);return n&&!n._executableHandler&&n.help(),this._dispatchSubcommand(r,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((r,n)=>{r.required&&this.args[n]==null&&this.missingArgument(r.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let r=(o,e,i)=>{let a=e;if(e!==null&&o.parseArg){let s=`error: command-argument value '${e}' is invalid for argument '${o.name()}'.`;a=this._callParseArg(o,e,i,s)}return a};this._checkNumberOfArguments();let n=[];this.registeredArguments.forEach((o,e)=>{let i=o.defaultValue;o.variadic?e<this.args.length?(i=this.args.slice(e),o.parseArg&&(i=i.reduce((a,s)=>r(o,s,a),o.defaultValue))):i===void 0&&(i=[]):e<this.args.length&&(i=this.args[e],o.parseArg&&(i=r(o,i,o.defaultValue))),n[e]=i}),this.processedArgs=n}_chainOrCall(r,n){return r&&r.then&&typeof r.then=="function"?r.then(()=>n()):n()}_chainOrCallHooks(r,n){let o=r,e=[];return this._getCommandAndAncestors().reverse().filter(i=>i._lifeCycleHooks[n]!==void 0).forEach(i=>{i._lifeCycleHooks[n].forEach(a=>{e.push({hookedCommand:i,callback:a})})}),n==="postAction"&&e.reverse(),e.forEach(i=>{o=this._chainOrCall(o,()=>i.callback(i.hookedCommand,this))}),o}_chainOrCallSubCommandHook(r,n,o){let e=r;return this._lifeCycleHooks[o]!==void 0&&this._lifeCycleHooks[o].forEach(i=>{e=this._chainOrCall(e,()=>i(this,n))}),e}_parseCommand(r,n){let o=this.parseOptions(n);if(this._parseOptionsEnv(),this._parseOptionsImplied(),r=r.concat(o.operands),n=o.unknown,this.args=r.concat(n),r&&this._findCommand(r[0]))return this._dispatchSubcommand(r[0],r.slice(1),n);if(this._getHelpCommand()&&r[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(r[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(n),this._dispatchSubcommand(this._defaultCommandName,r,n);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(o.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let e=()=>{o.unknown.length>0&&this.unknownOption(o.unknown[0])},i=`command:${this.name()}`;if(this._actionHandler){e(),this._processArguments();let a;return a=this._chainOrCallHooks(a,"preAction"),a=this._chainOrCall(a,()=>this._actionHandler(this.processedArgs)),this.parent&&(a=this._chainOrCall(a,()=>{this.parent.emit(i,r,n)})),a=this._chainOrCallHooks(a,"postAction"),a}if(this.parent&&this.parent.listenerCount(i))e(),this._processArguments(),this.parent.emit(i,r,n);else if(r.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",r,n);this.listenerCount("command:*")?this.emit("command:*",r,n):this.commands.length?this.unknownCommand():(e(),this._processArguments())}else this.commands.length?(e(),this.help({error:!0})):(e(),this._processArguments())}_findCommand(r){if(r)return this.commands.find(n=>n._name===r||n._aliases.includes(r))}_findOption(r){return this.options.find(n=>n.is(r))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(r=>{r.options.forEach(n=>{n.mandatory&&r.getOptionValue(n.attributeName())===void 0&&r.missingMandatoryOptionValue(n)})})}_checkForConflictingLocalOptions(){let r=this.options.filter(o=>{let e=o.attributeName();return this.getOptionValue(e)===void 0?!1:this.getOptionValueSource(e)!=="default"});r.filter(o=>o.conflictsWith.length>0).forEach(o=>{let e=r.find(i=>o.conflictsWith.includes(i.attributeName()));e&&this._conflictingOption(o,e)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(r=>{r._checkForConflictingLocalOptions()})}parseOptions(r){let n=[],o=[],e=n,i=r.slice();function a(u){return u.length>1&&u[0]==="-"}let s=null;for(;i.length;){let u=i.shift();if(u==="--"){e===o&&e.push(u),e.push(...i);break}if(s&&!a(u)){this.emit(`option:${s.name()}`,u);continue}if(s=null,a(u)){let l=this._findOption(u);if(l){if(l.required){let d=i.shift();d===void 0&&this.optionMissingArgument(l),this.emit(`option:${l.name()}`,d)}else if(l.optional){let d=null;i.length>0&&!a(i[0])&&(d=i.shift()),this.emit(`option:${l.name()}`,d)}else this.emit(`option:${l.name()}`);s=l.variadic?l:null;continue}}if(u.length>2&&u[0]==="-"&&u[1]!=="-"){let l=this._findOption(`-${u[1]}`);if(l){l.required||l.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${l.name()}`,u.slice(2)):(this.emit(`option:${l.name()}`),i.unshift(`-${u.slice(2)}`));continue}}if(/^--[^=]+=/.test(u)){let l=u.indexOf("="),d=this._findOption(u.slice(0,l));if(d&&(d.required||d.optional)){this.emit(`option:${d.name()}`,u.slice(l+1));continue}}if(a(u)&&(e=o),(this._enablePositionalOptions||this._passThroughOptions)&&n.length===0&&o.length===0){if(this._findCommand(u)){n.push(u),i.length>0&&o.push(...i);break}else if(this._getHelpCommand()&&u===this._getHelpCommand().name()){n.push(u),i.length>0&&n.push(...i);break}else if(this._defaultCommandName){o.push(u),i.length>0&&o.push(...i);break}}if(this._passThroughOptions){e.push(u),i.length>0&&e.push(...i);break}e.push(u)}return{operands:n,unknown:o}}opts(){if(this._storeOptionsAsProperties){let r={},n=this.options.length;for(let o=0;o<n;o++){let e=this.options[o].attributeName();r[e]=e===this._versionOptionName?this._version:this[e]}return r}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((r,n)=>Object.assign(r,n.opts()),{})}error(r,n){this._outputConfiguration.outputError(`${r}
22
+ - ${e}`;throw new Error(i)}_executeSubCommand(r,n){n=n.slice();let o=!1,e=[".js",".ts",".tsx",".mjs",".cjs"];function i(d,m){let g=ke.resolve(d,m);if(Dr.existsSync(g))return g;if(e.includes(ke.extname(m)))return;let _=e.find(x=>Dr.existsSync(`${g}${x}`));if(_)return`${g}${_}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let a=r._executableFile||`${this._name}-${r._name}`,s=this._executableDir||"";if(this._scriptPath){let d;try{d=Dr.realpathSync(this._scriptPath)}catch{d=this._scriptPath}s=ke.resolve(ke.dirname(d),s)}if(s){let d=i(s,a);if(!d&&!r._executableFile&&this._scriptPath){let m=ke.basename(this._scriptPath,ke.extname(this._scriptPath));m!==this._name&&(d=i(s,`${m}-${r._name}`))}a=d||a}o=e.includes(ke.extname(a));let u;E.platform!=="win32"?o?(n.unshift(a),n=Rl(E.execArgv).concat(n),u=Ji.spawn(E.argv[0],n,{stdio:"inherit"})):u=Ji.spawn(a,n,{stdio:"inherit"}):(this._checkForMissingExecutable(a,s,r._name),n.unshift(a),n=Rl(E.execArgv).concat(n),u=Ji.spawn(E.execPath,n,{stdio:"inherit"})),u.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(m=>{E.on(m,()=>{u.killed===!1&&u.exitCode===null&&u.kill(m)})});let l=this._exitCallback;u.on("close",d=>{d=d??1,l?l(new qi(d,"commander.executeSubCommandAsync","(close)")):E.exit(d)}),u.on("error",d=>{if(d.code==="ENOENT")this._checkForMissingExecutable(a,s,r._name);else if(d.code==="EACCES")throw new Error(`'${a}' not executable`);if(!l)E.exit(1);else{let m=new qi(1,"commander.executeSubCommandAsync","(error)");m.nestedError=d,l(m)}}),this.runningCommand=u}_dispatchSubcommand(r,n,o){let e=this._findCommand(r);e||this.help({error:!0}),e._prepareForParse();let i;return i=this._chainOrCallSubCommandHook(i,e,"preSubcommand"),i=this._chainOrCall(i,()=>{if(e._executableHandler)this._executeSubCommand(e,n.concat(o));else return e._parseCommand(n,o)}),i}_dispatchHelpCommand(r){r||this.help();let n=this._findCommand(r);return n&&!n._executableHandler&&n.help(),this._dispatchSubcommand(r,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((r,n)=>{r.required&&this.args[n]==null&&this.missingArgument(r.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let r=(o,e,i)=>{let a=e;if(e!==null&&o.parseArg){let s=`error: command-argument value '${e}' is invalid for argument '${o.name()}'.`;a=this._callParseArg(o,e,i,s)}return a};this._checkNumberOfArguments();let n=[];this.registeredArguments.forEach((o,e)=>{let i=o.defaultValue;o.variadic?e<this.args.length?(i=this.args.slice(e),o.parseArg&&(i=i.reduce((a,s)=>r(o,s,a),o.defaultValue))):i===void 0&&(i=[]):e<this.args.length&&(i=this.args[e],o.parseArg&&(i=r(o,i,o.defaultValue))),n[e]=i}),this.processedArgs=n}_chainOrCall(r,n){return r&&r.then&&typeof r.then=="function"?r.then(()=>n()):n()}_chainOrCallHooks(r,n){let o=r,e=[];return this._getCommandAndAncestors().reverse().filter(i=>i._lifeCycleHooks[n]!==void 0).forEach(i=>{i._lifeCycleHooks[n].forEach(a=>{e.push({hookedCommand:i,callback:a})})}),n==="postAction"&&e.reverse(),e.forEach(i=>{o=this._chainOrCall(o,()=>i.callback(i.hookedCommand,this))}),o}_chainOrCallSubCommandHook(r,n,o){let e=r;return this._lifeCycleHooks[o]!==void 0&&this._lifeCycleHooks[o].forEach(i=>{e=this._chainOrCall(e,()=>i(this,n))}),e}_parseCommand(r,n){let o=this.parseOptions(n);if(this._parseOptionsEnv(),this._parseOptionsImplied(),r=r.concat(o.operands),n=o.unknown,this.args=r.concat(n),r&&this._findCommand(r[0]))return this._dispatchSubcommand(r[0],r.slice(1),n);if(this._getHelpCommand()&&r[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(r[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(n),this._dispatchSubcommand(this._defaultCommandName,r,n);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(o.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let e=()=>{o.unknown.length>0&&this.unknownOption(o.unknown[0])},i=`command:${this.name()}`;if(this._actionHandler){e(),this._processArguments();let a;return a=this._chainOrCallHooks(a,"preAction"),a=this._chainOrCall(a,()=>this._actionHandler(this.processedArgs)),this.parent&&(a=this._chainOrCall(a,()=>{this.parent.emit(i,r,n)})),a=this._chainOrCallHooks(a,"postAction"),a}if(this.parent&&this.parent.listenerCount(i))e(),this._processArguments(),this.parent.emit(i,r,n);else if(r.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",r,n);this.listenerCount("command:*")?this.emit("command:*",r,n):this.commands.length?this.unknownCommand():(e(),this._processArguments())}else this.commands.length?(e(),this.help({error:!0})):(e(),this._processArguments())}_findCommand(r){if(r)return this.commands.find(n=>n._name===r||n._aliases.includes(r))}_findOption(r){return this.options.find(n=>n.is(r))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(r=>{r.options.forEach(n=>{n.mandatory&&r.getOptionValue(n.attributeName())===void 0&&r.missingMandatoryOptionValue(n)})})}_checkForConflictingLocalOptions(){let r=this.options.filter(o=>{let e=o.attributeName();return this.getOptionValue(e)===void 0?!1:this.getOptionValueSource(e)!=="default"});r.filter(o=>o.conflictsWith.length>0).forEach(o=>{let e=r.find(i=>o.conflictsWith.includes(i.attributeName()));e&&this._conflictingOption(o,e)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(r=>{r._checkForConflictingLocalOptions()})}parseOptions(r){let n=[],o=[],e=n,i=r.slice();function a(u){return u.length>1&&u[0]==="-"}let s=null;for(;i.length;){let u=i.shift();if(u==="--"){e===o&&e.push(u),e.push(...i);break}if(s&&!a(u)){this.emit(`option:${s.name()}`,u);continue}if(s=null,a(u)){let l=this._findOption(u);if(l){if(l.required){let d=i.shift();d===void 0&&this.optionMissingArgument(l),this.emit(`option:${l.name()}`,d)}else if(l.optional){let d=null;i.length>0&&!a(i[0])&&(d=i.shift()),this.emit(`option:${l.name()}`,d)}else this.emit(`option:${l.name()}`);s=l.variadic?l:null;continue}}if(u.length>2&&u[0]==="-"&&u[1]!=="-"){let l=this._findOption(`-${u[1]}`);if(l){l.required||l.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${l.name()}`,u.slice(2)):(this.emit(`option:${l.name()}`),i.unshift(`-${u.slice(2)}`));continue}}if(/^--[^=]+=/.test(u)){let l=u.indexOf("="),d=this._findOption(u.slice(0,l));if(d&&(d.required||d.optional)){this.emit(`option:${d.name()}`,u.slice(l+1));continue}}if(a(u)&&(e=o),(this._enablePositionalOptions||this._passThroughOptions)&&n.length===0&&o.length===0){if(this._findCommand(u)){n.push(u),i.length>0&&o.push(...i);break}else if(this._getHelpCommand()&&u===this._getHelpCommand().name()){n.push(u),i.length>0&&n.push(...i);break}else if(this._defaultCommandName){o.push(u),i.length>0&&o.push(...i);break}}if(this._passThroughOptions){e.push(u),i.length>0&&e.push(...i);break}e.push(u)}return{operands:n,unknown:o}}opts(){if(this._storeOptionsAsProperties){let r={},n=this.options.length;for(let o=0;o<n;o++){let e=this.options[o].attributeName();r[e]=e===this._versionOptionName?this._version:this[e]}return r}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((r,n)=>Object.assign(r,n.opts()),{})}error(r,n){this._outputConfiguration.outputError(`${r}
23
23
  `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
24
24
  `):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
25
- `),this.outputHelp({error:!0}));let o=n||{},e=o.exitCode||1,i=o.code||"commander.error";this._exit(e,i,r)}_parseOptionsEnv(){this.options.forEach(r=>{if(r.envVar&&r.envVar in P.env){let n=r.attributeName();(this.getOptionValue(n)===void 0||["default","config","env"].includes(this.getOptionValueSource(n)))&&(r.required||r.optional?this.emit(`optionEnv:${r.name()}`,P.env[r.envVar]):this.emit(`optionEnv:${r.name()}`))}})}_parseOptionsImplied(){let r=new dh(this.options),n=o=>this.getOptionValue(o)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(o));this.options.filter(o=>o.implied!==void 0&&n(o.attributeName())&&r.valueFromOption(this.getOptionValue(o.attributeName()),o)).forEach(o=>{Object.keys(o.implied).filter(e=>!n(e)).forEach(e=>{this.setOptionValueWithSource(e,o.implied[e],"implied")})})}missingArgument(r){let n=`error: missing required argument '${r}'`;this.error(n,{code:"commander.missingArgument"})}optionMissingArgument(r){let n=`error: option '${r.flags}' argument missing`;this.error(n,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(r){let n=`error: required option '${r.flags}' not specified`;this.error(n,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(r,n){let o=a=>{let s=a.attributeName(),u=this.getOptionValue(s),l=this.options.find(m=>m.negate&&s===m.attributeName()),d=this.options.find(m=>!m.negate&&s===m.attributeName());return l&&(l.presetArg===void 0&&u===!1||l.presetArg!==void 0&&u===l.presetArg)?l:d||a},e=a=>{let s=o(a),u=s.attributeName();return this.getOptionValueSource(u)==="env"?`environment variable '${s.envVar}'`:`option '${s.flags}'`},i=`error: ${e(r)} cannot be used with ${e(n)}`;this.error(i,{code:"commander.conflictingOption"})}unknownOption(r){if(this._allowUnknownOption)return;let n="";if(r.startsWith("--")&&this._showSuggestionAfterError){let e=[],i=this;do{let a=i.createHelp().visibleOptions(i).filter(s=>s.long).map(s=>s.long);e=e.concat(a),i=i.parent}while(i&&!i._enablePositionalOptions);n=Dl(r,e)}let o=`error: unknown option '${r}'${n}`;this.error(o,{code:"commander.unknownOption"})}_excessArguments(r){if(this._allowExcessArguments)return;let n=this.registeredArguments.length,o=n===1?"":"s",i=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${n} argument${o} but got ${r.length}.`;this.error(i,{code:"commander.excessArguments"})}unknownCommand(){let r=this.args[0],n="";if(this._showSuggestionAfterError){let e=[];this.createHelp().visibleCommands(this).forEach(i=>{e.push(i.name()),i.alias()&&e.push(i.alias())}),n=Dl(r,e)}let o=`error: unknown command '${r}'${n}`;this.error(o,{code:"commander.unknownCommand"})}version(r,n,o){if(r===void 0)return this._version;this._version=r,n=n||"-V, --version",o=o||"output the version number";let e=this.createOption(n,o);return this._versionOptionName=e.attributeName(),this._registerOption(e),this.on("option:"+e.name(),()=>{this._outputConfiguration.writeOut(`${r}
26
- `),this._exit(0,"commander.version",r)}),this}description(r,n){return r===void 0&&n===void 0?this._description:(this._description=r,n&&(this._argsDescription=n),this)}summary(r){return r===void 0?this._summary:(this._summary=r,this)}alias(r){if(r===void 0)return this._aliases[0];let n=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(n=this.commands[this.commands.length-1]),r===n._name)throw new Error("Command alias can't be the same as its name");let o=this.parent?._findCommand(r);if(o){let e=[o.name()].concat(o.aliases()).join("|");throw new Error(`cannot add alias '${r}' to command '${this.name()}' as already have command '${e}'`)}return n._aliases.push(r),this}aliases(r){return r===void 0?this._aliases:(r.forEach(n=>this.alias(n)),this)}usage(r){if(r===void 0){if(this._usage)return this._usage;let n=this.registeredArguments.map(o=>ch(o));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?n:[]).join(" ")}return this._usage=r,this}name(r){return r===void 0?this._name:(this._name=r,this)}nameFromFilename(r){return this._name=xe.basename(r,xe.extname(r)),this}executableDir(r){return r===void 0?this._executableDir:(this._executableDir=r,this)}helpInformation(r){let n=this.createHelp(),o=this._getOutputContext(r);n.prepareContext({error:o.error,helpWidth:o.helpWidth,outputHasColors:o.hasColors});let e=n.formatHelp(this,n);return o.hasColors?e:this._outputConfiguration.stripColor(e)}_getOutputContext(r){r=r||{};let n=!!r.error,o,e,i;return n?(o=s=>this._outputConfiguration.writeErr(s),e=this._outputConfiguration.getErrHasColors(),i=this._outputConfiguration.getErrHelpWidth()):(o=s=>this._outputConfiguration.writeOut(s),e=this._outputConfiguration.getOutHasColors(),i=this._outputConfiguration.getOutHelpWidth()),{error:n,write:s=>(e||(s=this._outputConfiguration.stripColor(s)),o(s)),hasColors:e,helpWidth:i}}outputHelp(r){let n;typeof r=="function"&&(n=r,r=void 0);let o=this._getOutputContext(r),e={error:o.error,write:o.write,command:this};this._getCommandAndAncestors().reverse().forEach(a=>a.emit("beforeAllHelp",e)),this.emit("beforeHelp",e);let i=this.helpInformation({error:o.error});if(n&&(i=n(i),typeof i!="string"&&!Buffer.isBuffer(i)))throw new Error("outputHelp callback must return a string or a Buffer");o.write(i),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",e),this._getCommandAndAncestors().forEach(a=>a.emit("afterAllHelp",e))}helpOption(r,n){return typeof r=="boolean"?(r?this._helpOption=this._helpOption??void 0:this._helpOption=null,this):(r=r??"-h, --help",n=n??"display help for command",this._helpOption=this.createOption(r,n),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(r){return this._helpOption=r,this}help(r){this.outputHelp(r);let n=Number(P.exitCode??0);n===0&&r&&typeof r!="function"&&r.error&&(n=1),this._exit(n,"commander.help","(outputHelp)")}addHelpText(r,n){let o=["beforeAll","before","after","afterAll"];if(!o.includes(r))throw new Error(`Unexpected value for position to addHelpText.
25
+ `),this.outputHelp({error:!0}));let o=n||{},e=o.exitCode||1,i=o.code||"commander.error";this._exit(e,i,r)}_parseOptionsEnv(){this.options.forEach(r=>{if(r.envVar&&r.envVar in E.env){let n=r.attributeName();(this.getOptionValue(n)===void 0||["default","config","env"].includes(this.getOptionValueSource(n)))&&(r.required||r.optional?this.emit(`optionEnv:${r.name()}`,E.env[r.envVar]):this.emit(`optionEnv:${r.name()}`))}})}_parseOptionsImplied(){let r=new fh(this.options),n=o=>this.getOptionValue(o)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(o));this.options.filter(o=>o.implied!==void 0&&n(o.attributeName())&&r.valueFromOption(this.getOptionValue(o.attributeName()),o)).forEach(o=>{Object.keys(o.implied).filter(e=>!n(e)).forEach(e=>{this.setOptionValueWithSource(e,o.implied[e],"implied")})})}missingArgument(r){let n=`error: missing required argument '${r}'`;this.error(n,{code:"commander.missingArgument"})}optionMissingArgument(r){let n=`error: option '${r.flags}' argument missing`;this.error(n,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(r){let n=`error: required option '${r.flags}' not specified`;this.error(n,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(r,n){let o=a=>{let s=a.attributeName(),u=this.getOptionValue(s),l=this.options.find(m=>m.negate&&s===m.attributeName()),d=this.options.find(m=>!m.negate&&s===m.attributeName());return l&&(l.presetArg===void 0&&u===!1||l.presetArg!==void 0&&u===l.presetArg)?l:d||a},e=a=>{let s=o(a),u=s.attributeName();return this.getOptionValueSource(u)==="env"?`environment variable '${s.envVar}'`:`option '${s.flags}'`},i=`error: ${e(r)} cannot be used with ${e(n)}`;this.error(i,{code:"commander.conflictingOption"})}unknownOption(r){if(this._allowUnknownOption)return;let n="";if(r.startsWith("--")&&this._showSuggestionAfterError){let e=[],i=this;do{let a=i.createHelp().visibleOptions(i).filter(s=>s.long).map(s=>s.long);e=e.concat(a),i=i.parent}while(i&&!i._enablePositionalOptions);n=Ul(r,e)}let o=`error: unknown option '${r}'${n}`;this.error(o,{code:"commander.unknownOption"})}_excessArguments(r){if(this._allowExcessArguments)return;let n=this.registeredArguments.length,o=n===1?"":"s",i=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${n} argument${o} but got ${r.length}.`;this.error(i,{code:"commander.excessArguments"})}unknownCommand(){let r=this.args[0],n="";if(this._showSuggestionAfterError){let e=[];this.createHelp().visibleCommands(this).forEach(i=>{e.push(i.name()),i.alias()&&e.push(i.alias())}),n=Ul(r,e)}let o=`error: unknown command '${r}'${n}`;this.error(o,{code:"commander.unknownCommand"})}version(r,n,o){if(r===void 0)return this._version;this._version=r,n=n||"-V, --version",o=o||"output the version number";let e=this.createOption(n,o);return this._versionOptionName=e.attributeName(),this._registerOption(e),this.on("option:"+e.name(),()=>{this._outputConfiguration.writeOut(`${r}
26
+ `),this._exit(0,"commander.version",r)}),this}description(r,n){return r===void 0&&n===void 0?this._description:(this._description=r,n&&(this._argsDescription=n),this)}summary(r){return r===void 0?this._summary:(this._summary=r,this)}alias(r){if(r===void 0)return this._aliases[0];let n=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(n=this.commands[this.commands.length-1]),r===n._name)throw new Error("Command alias can't be the same as its name");let o=this.parent?._findCommand(r);if(o){let e=[o.name()].concat(o.aliases()).join("|");throw new Error(`cannot add alias '${r}' to command '${this.name()}' as already have command '${e}'`)}return n._aliases.push(r),this}aliases(r){return r===void 0?this._aliases:(r.forEach(n=>this.alias(n)),this)}usage(r){if(r===void 0){if(this._usage)return this._usage;let n=this.registeredArguments.map(o=>dh(o));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?n:[]).join(" ")}return this._usage=r,this}name(r){return r===void 0?this._name:(this._name=r,this)}nameFromFilename(r){return this._name=ke.basename(r,ke.extname(r)),this}executableDir(r){return r===void 0?this._executableDir:(this._executableDir=r,this)}helpInformation(r){let n=this.createHelp(),o=this._getOutputContext(r);n.prepareContext({error:o.error,helpWidth:o.helpWidth,outputHasColors:o.hasColors});let e=n.formatHelp(this,n);return o.hasColors?e:this._outputConfiguration.stripColor(e)}_getOutputContext(r){r=r||{};let n=!!r.error,o,e,i;return n?(o=s=>this._outputConfiguration.writeErr(s),e=this._outputConfiguration.getErrHasColors(),i=this._outputConfiguration.getErrHelpWidth()):(o=s=>this._outputConfiguration.writeOut(s),e=this._outputConfiguration.getOutHasColors(),i=this._outputConfiguration.getOutHelpWidth()),{error:n,write:s=>(e||(s=this._outputConfiguration.stripColor(s)),o(s)),hasColors:e,helpWidth:i}}outputHelp(r){let n;typeof r=="function"&&(n=r,r=void 0);let o=this._getOutputContext(r),e={error:o.error,write:o.write,command:this};this._getCommandAndAncestors().reverse().forEach(a=>a.emit("beforeAllHelp",e)),this.emit("beforeHelp",e);let i=this.helpInformation({error:o.error});if(n&&(i=n(i),typeof i!="string"&&!Buffer.isBuffer(i)))throw new Error("outputHelp callback must return a string or a Buffer");o.write(i),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",e),this._getCommandAndAncestors().forEach(a=>a.emit("afterAllHelp",e))}helpOption(r,n){return typeof r=="boolean"?(r?this._helpOption=this._helpOption??void 0:this._helpOption=null,this):(r=r??"-h, --help",n=n??"display help for command",this._helpOption=this.createOption(r,n),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(r){return this._helpOption=r,this}help(r){this.outputHelp(r);let n=Number(E.exitCode??0);n===0&&r&&typeof r!="function"&&r.error&&(n=1),this._exit(n,"commander.help","(outputHelp)")}addHelpText(r,n){let o=["beforeAll","before","after","afterAll"];if(!o.includes(r))throw new Error(`Unexpected value for position to addHelpText.
27
27
  Expecting one of '${o.join("', '")}'`);let e=`${r}Help`;return this.on(e,i=>{let a;typeof n=="function"?a=n({error:i.error,command:i.command}):a=n,a&&i.write(`${a}
28
- `)}),this}_outputHelpIfRequested(r){let n=this._getHelpOption();n&&r.find(e=>n.is(e))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function Ul(t){return t.map(r=>{if(!r.startsWith("--inspect"))return r;let n,o="127.0.0.1",e="9229",i;return(i=r.match(/^(--inspect(-brk)?)$/))!==null?n=i[1]:(i=r.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(n=i[1],/^\d+$/.test(i[3])?e=i[3]:o=i[3]):(i=r.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(n=i[1],o=i[3],e=i[4]),n&&e!=="0"?`${n}=${o}:${parseInt(e)+1}`:r})}function Ki(){if(P.env.NO_COLOR||P.env.FORCE_COLOR==="0"||P.env.FORCE_COLOR==="false")return!1;if(P.env.FORCE_COLOR||P.env.CLICOLOR_FORCE!==void 0)return!0}Yi.Command=qi;Yi.useColor=Ki});var Ml=Ve(oe=>{var{Argument:Zl}=Nr(),{Command:Xi}=Rl(),{CommanderError:mh,InvalidArgumentError:Ll}=Zt(),{Help:ph}=Mi(),{Option:Fl}=Wi();oe.program=new Xi;oe.createCommand=t=>new Xi(t);oe.createOption=(t,r)=>new Fl(t,r);oe.createArgument=(t,r)=>new Zl(t,r);oe.Command=Xi;oe.Option=Fl;oe.Argument=Zl;oe.Help=ph;oe.CommanderError=mh;oe.InvalidArgumentError=Ll;oe.InvalidOptionArgumentError=Ll});var Vl=Xg(Ml(),1),{program:K$,createCommand:Y$,createArgument:X$,createOption:Q$,CommanderError:ex,InvalidArgumentError:tx,InvalidOptionArgumentError:rx,Command:Bl,Argument:nx,Option:ix,Help:ox}=Vl.default;import{readFile as C$}from"node:fs/promises";import{fileURLToPath as N$}from"node:url";import{dirname as D$,join as U$}from"node:path";var S=class extends Error{constructor(n,o,e){super(n);this.status=o;this.name="CliError",this.code=e?.code,this.details=e?.details}status;code;details};var Lt="x-fs-surface",Ft="cli";function et(t,r){let n=new URLSearchParams;for(let[e,i]of Object.entries(r))i&&n.set(e,i);let o=n.toString();return o?`${t}?${o}`:t}function Hl(t){let r=null;async function n(){let i=await fetch(`${t.apiUrl}/auth/cli/exchange`,{method:"POST",headers:{Authorization:`Bearer ${t.token}`,"Content-Type":"application/json",[Lt]:Ft}});if(!i.ok){let s=(await i.json().catch(()=>null))?.error,u=typeof s=="string"?{message:s}:s;throw new S(u?.message??i.statusText,i.status,{code:u?.code,details:u?.details})}return r=await i.json(),r}async function o(){if(!t.token.startsWith("mk_"))return t.token;let i=r?Date.parse(r.expiresAt):0;return(!r||i-Date.now()<6e4)&&await n(),r.accessToken}async function e(i,a,s){let u=await o(),l=await fetch(`${t.apiUrl}${a}`,{method:i,headers:{Authorization:`Bearer ${u}`,"Content-Type":"application/json",[Lt]:Ft},body:s?JSON.stringify(s):void 0});if(!l.ok){let m=(await l.json().catch(()=>null))?.error,g=typeof m=="string"?{message:m}:m;throw new S(g?.message??l.statusText,l.status,{code:g?.code,details:g?.details})}if(l.status!==204)return l.json()}return{exchangeCliToken:n,bootstrap:()=>e("POST","/builder/context/bootstrap"),listProducts:()=>e("GET","/products"),initProduct:i=>e("POST","/products/init",i),updateProduct:(i,a,s)=>e("PATCH",et(`/products/${i}`,{env:s?.env}),a),publishProduct:i=>e("POST",`/products/${i}/publish`),createPlan:(i,a,s)=>e("POST",et(`/products/${i}/plans`,{env:s?.env}),a),updatePlan:(i,a,s,u)=>e("PATCH",et(`/products/${i}/plans/${a}`,{env:u?.env}),s),deletePlan:(i,a,s)=>e("DELETE",et(`/products/${i}/plans/${a}`,{env:s?.env})),getProduct:(i,a)=>e("GET",et(`/products/${i}`,{env:a?.env})),listEnvironments:i=>e("GET",`/products/${i}/environments`),createEnvironment:(i,a)=>e("POST",`/products/${i}/environments`,a),deleteEnvironment:(i,a)=>e("DELETE",`/products/${i}/environments/${encodeURIComponent(a)}`),deleteProduct:i=>e("DELETE",`/products/${i}`),managementListPlans:i=>e("GET",`/management/products/${i}/plans`),managementGetUsage:i=>e("GET",`/management/products/${i}/usage`),managementListMakerTokens:()=>e("GET","/maker-tokens"),managementCreateMakerToken:i=>e("POST","/maker-tokens",i),managementRevokeMakerToken:i=>e("DELETE",`/maker-tokens/${i}`),builderGitHubStatus:()=>e("GET","/builder/git/github/status"),productStripeStatus:i=>e("GET",`/products/${i}/stripe/status`),issuePersonaBootstrapKey:async(i,a,s)=>{let u=await fetch(`${t.apiUrl}/portal/products/${i}/environments/${a}/test/bootstrap-key`,{method:"POST",headers:{Authorization:`Bearer ${t.token}`,"Content-Type":"application/json",[Lt]:Ft},body:JSON.stringify(s??{})});if(!u.ok){let d=(await u.json().catch(()=>null))?.error,m=typeof d=="string"?{message:d}:d;throw new S(m?.message??u.statusText,u.status,{code:m?.code,details:m?.details})}return u.json()},listPersonas:async(i,a)=>{let s=await fetch(`${t.apiUrl}/portal/products/${i}/environments/${a}/test/personas`,{method:"GET",headers:{Authorization:`Bearer ${t.token}`,[Lt]:Ft}});if(!s.ok){let l=(await s.json().catch(()=>null))?.error,d=typeof l=="string"?{message:l}:l;throw new S(d?.message??s.statusText,s.status,{code:d?.code,details:d?.details})}return s.json()},revokePersona:async(i,a,s)=>{let u=await fetch(`${t.apiUrl}/portal/products/${i}/environments/${a}/test/personas/${s}`,{method:"DELETE",headers:{Authorization:`Bearer ${t.token}`,[Lt]:Ft}});if(!u.ok){let d=(await u.json().catch(()=>null))?.error,m=typeof d=="string"?{message:d}:d;throw new S(m?.message??u.statusText,u.status,{code:m?.code,details:m?.details})}return u.json()},getProductConfig:(i,a)=>e("GET",et(`/products/${i}/config`,{format:"json",env:a?.env,state:a?.state})),updateProductConfigDraft:(i,a,s)=>e("PATCH",`/products/${i}/config/draft`,{spec:a,dryRun:s?.dryRun===!0,env:s?.env,branch:s?.branch,source:s?.source,baseDraftHash:s?.baseDraftHash}),validateProductConfigDraft:(i,a)=>e("POST",`/products/${i}/config/draft/validate`,{env:a?.env}),applyProductConfig:(i,a)=>e("POST",`/products/${i}/config/apply`,{spec:a?.spec,dryRun:a?.dryRun===!0,env:a?.env,branch:a?.branch,source:a?.source,draftHash:a?.draftHash}),compileProduct:(i,a)=>e("POST",`/products/${i}/compile`,fh(a)),compileProductManifest:(i,a)=>e("POST",`/products/${i}/manifest/compile`,{ir:a.ir,env:a.env}),applyProductManifest:(i,a)=>e("POST",`/products/${i}/manifest/apply`,{ir:a.ir,env:a.env,sourceRef:a.sourceRef})}}function fh(t){let r={};return t?.branch&&(r.branch=t.branch),t?.dryRun&&(r.dryRun=!0),t?.env&&(r.env=t.env),Object.keys(r).length>0?r:void 0}import{existsSync as Ur,mkdirSync as gh,readFileSync as Jl,writeFileSync as ql}from"node:fs";import{homedir as hh}from"node:os";import{join as eo}from"node:path";var Wl="https://core.farthershore.com";var Rr=eo(hh(),".farthershore"),Gl=eo(Rr,"config.json"),Mt=eo(Rr,"credentials.json");function Kl(t){Ur(t)||gh(t,{recursive:!0,mode:448})}var Qi={apiUrl:Wl};function Yl(){if(Kl(Rr),!Ur(Gl))return Qi;try{let t=JSON.parse(Jl(Gl,"utf-8"));return{...Qi,...t}}catch{return Qi}}function Zr(){if(!Ur(Mt))return null;try{return JSON.parse(Jl(Mt,"utf-8"))}catch{return null}}function Xl(t){Kl(Rr),ql(Mt,JSON.stringify(t,null,2)+`
29
- `,{mode:384})}function Ql(){Ur(Mt)&&ql(Mt,"{}")}function ed(t){if(t)return t;let r=process.env.FARTHERSHORE_TOKEN;if(r)return r;let n=Zr();if(n?.token)return n.token;throw new S("Not authenticated. Run `farthershore auth login` or set FARTHERSHORE_TOKEN environment variable.")}import{createInterface as Ch}from"node:readline";var td=(t=0)=>r=>`\x1B[${r+t}m`,rd=(t=0)=>r=>`\x1B[${38+t};5;${r}m`,nd=(t=0)=>(r,n,o)=>`\x1B[${38+t};2;${r};${n};${o}m`,D={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},yx=Object.keys(D.modifier),vh=Object.keys(D.color),_h=Object.keys(D.bgColor),bx=[...vh,..._h];function yh(){let t=new Map;for(let[r,n]of Object.entries(D)){for(let[o,e]of Object.entries(n))D[o]={open:`\x1B[${e[0]}m`,close:`\x1B[${e[1]}m`},n[o]=D[o],t.set(e[0],e[1]);Object.defineProperty(D,r,{value:n,enumerable:!1})}return Object.defineProperty(D,"codes",{value:t,enumerable:!1}),D.color.close="\x1B[39m",D.bgColor.close="\x1B[49m",D.color.ansi=td(),D.color.ansi256=rd(),D.color.ansi16m=nd(),D.bgColor.ansi=td(10),D.bgColor.ansi256=rd(10),D.bgColor.ansi16m=nd(10),Object.defineProperties(D,{rgbToAnsi256:{value(r,n,o){return r===n&&n===o?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(o/255*5)},enumerable:!1},hexToRgb:{value(r){let n=/[a-f\d]{6}|[a-f\d]{3}/i.exec(r.toString(16));if(!n)return[0,0,0];let[o]=n;o.length===3&&(o=[...o].map(i=>i+i).join(""));let e=Number.parseInt(o,16);return[e>>16&255,e>>8&255,e&255]},enumerable:!1},hexToAnsi256:{value:r=>D.rgbToAnsi256(...D.hexToRgb(r)),enumerable:!1},ansi256ToAnsi:{value(r){if(r<8)return 30+r;if(r<16)return 90+(r-8);let n,o,e;if(r>=232)n=((r-232)*10+8)/255,o=n,e=n;else{r-=16;let s=r%36;n=Math.floor(r/36)/5,o=Math.floor(s/6)/5,e=s%6/5}let i=Math.max(n,o,e)*2;if(i===0)return 30;let a=30+(Math.round(e)<<2|Math.round(o)<<1|Math.round(n));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(r,n,o)=>D.ansi256ToAnsi(D.rgbToAnsi256(r,n,o)),enumerable:!1},hexToAnsi:{value:r=>D.ansi256ToAnsi(D.hexToAnsi256(r)),enumerable:!1}}),D}var bh=yh(),ce=bh;import to from"node:process";import $h from"node:os";import id from"node:tty";function ae(t,r=globalThis.Deno?globalThis.Deno.args:to.argv){let n=t.startsWith("-")?"":t.length===1?"-":"--",o=r.indexOf(n+t),e=r.indexOf("--");return o!==-1&&(e===-1||o<e)}var{env:U}=to,Lr;ae("no-color")||ae("no-colors")||ae("color=false")||ae("color=never")?Lr=0:(ae("color")||ae("colors")||ae("color=true")||ae("color=always"))&&(Lr=1);function xh(){if("FORCE_COLOR"in U)return U.FORCE_COLOR==="true"?1:U.FORCE_COLOR==="false"?0:U.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(U.FORCE_COLOR,10),3)}function kh(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Sh(t,{streamIsTTY:r,sniffFlags:n=!0}={}){let o=xh();o!==void 0&&(Lr=o);let e=n?Lr:o;if(e===0)return 0;if(n){if(ae("color=16m")||ae("color=full")||ae("color=truecolor"))return 3;if(ae("color=256"))return 2}if("TF_BUILD"in U&&"AGENT_NAME"in U)return 1;if(t&&!r&&e===void 0)return 0;let i=e||0;if(U.TERM==="dumb")return i;if(to.platform==="win32"){let a=$h.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in U)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(a=>a in U)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in U)||U.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in U)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(U.TEAMCITY_VERSION)?1:0;if(U.COLORTERM==="truecolor"||U.TERM==="xterm-kitty"||U.TERM==="xterm-ghostty"||U.TERM==="wezterm")return 3;if("TERM_PROGRAM"in U){let a=Number.parseInt((U.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(U.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(U.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(U.TERM)||"COLORTERM"in U?1:i}function od(t,r={}){let n=Sh(t,{streamIsTTY:t&&t.isTTY,...r});return kh(n)}var wh={stdout:od({isTTY:id.isatty(1)}),stderr:od({isTTY:id.isatty(2)})},ad=wh;function sd(t,r,n){let o=t.indexOf(r);if(o===-1)return t;let e=r.length,i=0,a="";do a+=t.slice(i,o)+r+n,i=o+e,o=t.indexOf(r,i);while(o!==-1);return a+=t.slice(i),a}function cd(t,r,n,o){let e=0,i="";do{let a=t[o-1]==="\r";i+=t.slice(e,a?o-1:o)+r+(a?`\r
28
+ `)}),this}_outputHelpIfRequested(r){let n=this._getHelpOption();n&&r.find(e=>n.is(e))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function Rl(t){return t.map(r=>{if(!r.startsWith("--inspect"))return r;let n,o="127.0.0.1",e="9229",i;return(i=r.match(/^(--inspect(-brk)?)$/))!==null?n=i[1]:(i=r.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(n=i[1],/^\d+$/.test(i[3])?e=i[3]:o=i[3]):(i=r.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(n=i[1],o=i[3],e=i[4]),n&&e!=="0"?`${n}=${o}:${parseInt(e)+1}`:r})}function Yi(){if(E.env.NO_COLOR||E.env.FORCE_COLOR==="0"||E.env.FORCE_COLOR==="false")return!1;if(E.env.FORCE_COLOR||E.env.CLICOLOR_FORCE!==void 0)return!0}Xi.Command=Ki;Xi.useColor=Yi});var Vl=Ve(oe=>{var{Argument:Ll}=Nr(),{Command:Qi}=Zl(),{CommanderError:gh,InvalidArgumentError:Ml}=Zt(),{Help:hh}=Vi(),{Option:Fl}=Wi();oe.program=new Qi;oe.createCommand=t=>new Qi(t);oe.createOption=(t,r)=>new Fl(t,r);oe.createArgument=(t,r)=>new Ll(t,r);oe.Command=Qi;oe.Option=Fl;oe.Argument=Ll;oe.Help=hh;oe.CommanderError=gh;oe.InvalidArgumentError=Ml;oe.InvalidOptionArgumentError=Ml});var Bl=th(Vl(),1),{program:rx,createCommand:nx,createArgument:ix,createOption:ox,CommanderError:ax,InvalidArgumentError:sx,InvalidOptionArgumentError:cx,Command:Hl,Argument:ux,Option:lx,Help:dx}=Bl.default;import{readFile as L$}from"node:fs/promises";import{fileURLToPath as M$}from"node:url";import{dirname as F$,join as V$}from"node:path";var k=class extends Error{constructor(n,o,e){super(n);this.status=o;this.name="CliError",this.code=e?.code,this.details=e?.details}status;code;details};var Lt="x-fs-surface",Mt="cli";function et(t,r){let n=new URLSearchParams;for(let[e,i]of Object.entries(r))i&&n.set(e,i);let o=n.toString();return o?`${t}?${o}`:t}function Gl(t){let r=null;async function n(){let i=await fetch(`${t.apiUrl}/auth/cli/exchange`,{method:"POST",headers:{Authorization:`Bearer ${t.token}`,"Content-Type":"application/json",[Lt]:Mt}});if(!i.ok){let s=(await i.json().catch(()=>null))?.error,u=typeof s=="string"?{message:s}:s;throw new k(u?.message??i.statusText,i.status,{code:u?.code,details:u?.details})}return r=await i.json(),r}async function o(){if(!t.token.startsWith("mk_"))return t.token;let i=r?Date.parse(r.expiresAt):0;return(!r||i-Date.now()<6e4)&&await n(),r.accessToken}async function e(i,a,s){let u=await o(),l=await fetch(`${t.apiUrl}${a}`,{method:i,headers:{Authorization:`Bearer ${u}`,"Content-Type":"application/json",[Lt]:Mt},body:s?JSON.stringify(s):void 0});if(!l.ok){let m=(await l.json().catch(()=>null))?.error,g=typeof m=="string"?{message:m}:m;throw new k(g?.message??l.statusText,l.status,{code:g?.code,details:g?.details})}if(l.status!==204)return l.json()}return{exchangeCliToken:n,bootstrap:()=>e("POST","/builder/context/bootstrap"),listProducts:()=>e("GET","/products"),initProduct:i=>e("POST","/products/init",i),updateProduct:(i,a,s)=>e("PATCH",et(`/products/${i}`,{env:s?.env}),a),publishProduct:i=>e("POST",`/products/${i}/publish`),createPlan:(i,a,s)=>e("POST",et(`/products/${i}/plans`,{env:s?.env}),a),updatePlan:(i,a,s,u)=>e("PATCH",et(`/products/${i}/plans/${a}`,{env:u?.env}),s),deletePlan:(i,a,s)=>e("DELETE",et(`/products/${i}/plans/${a}`,{env:s?.env})),getProduct:(i,a)=>e("GET",et(`/products/${i}`,{env:a?.env})),listEnvironments:i=>e("GET",`/products/${i}/environments`),createEnvironment:(i,a)=>e("POST",`/products/${i}/environments`,a),deleteEnvironment:(i,a)=>e("DELETE",`/products/${i}/environments/${encodeURIComponent(a)}`),deleteProduct:i=>e("DELETE",`/products/${i}`),managementListPlans:i=>e("GET",`/management/products/${i}/plans`),managementGetUsage:i=>e("GET",`/management/products/${i}/usage`),managementListMakerTokens:()=>e("GET","/maker-tokens"),managementCreateMakerToken:i=>e("POST","/maker-tokens",i),managementRevokeMakerToken:i=>e("DELETE",`/maker-tokens/${i}`),managementListMeteringTokens:i=>e("GET",`/management/products/${i}/metering-tokens`),managementCreateMeteringToken:(i,a)=>e("POST",`/management/products/${i}/metering-tokens`,a),managementRevokeMeteringToken:(i,a)=>e("DELETE",`/management/products/${i}/metering-tokens/${a}`),builderGitHubStatus:()=>e("GET","/builder/git/github/status"),productStripeStatus:i=>e("GET",`/products/${i}/stripe/status`),issuePersonaBootstrapKey:async(i,a,s)=>{let u=await fetch(`${t.apiUrl}/portal/products/${i}/environments/${a}/test/bootstrap-key`,{method:"POST",headers:{Authorization:`Bearer ${t.token}`,"Content-Type":"application/json",[Lt]:Mt},body:JSON.stringify(s??{})});if(!u.ok){let d=(await u.json().catch(()=>null))?.error,m=typeof d=="string"?{message:d}:d;throw new k(m?.message??u.statusText,u.status,{code:m?.code,details:m?.details})}return u.json()},listPersonas:async(i,a)=>{let s=await fetch(`${t.apiUrl}/portal/products/${i}/environments/${a}/test/personas`,{method:"GET",headers:{Authorization:`Bearer ${t.token}`,[Lt]:Mt}});if(!s.ok){let l=(await s.json().catch(()=>null))?.error,d=typeof l=="string"?{message:l}:l;throw new k(d?.message??s.statusText,s.status,{code:d?.code,details:d?.details})}return s.json()},revokePersona:async(i,a,s)=>{let u=await fetch(`${t.apiUrl}/portal/products/${i}/environments/${a}/test/personas/${s}`,{method:"DELETE",headers:{Authorization:`Bearer ${t.token}`,[Lt]:Mt}});if(!u.ok){let d=(await u.json().catch(()=>null))?.error,m=typeof d=="string"?{message:d}:d;throw new k(m?.message??u.statusText,u.status,{code:m?.code,details:m?.details})}return u.json()},getProductConfig:(i,a)=>e("GET",et(`/products/${i}/config`,{format:"json",env:a?.env,state:a?.state})),updateProductConfigDraft:(i,a,s)=>e("PATCH",`/products/${i}/config/draft`,{spec:a,dryRun:s?.dryRun===!0,env:s?.env,branch:s?.branch,source:s?.source,baseDraftHash:s?.baseDraftHash}),validateProductConfigDraft:(i,a)=>e("POST",`/products/${i}/config/draft/validate`,{env:a?.env}),applyProductConfig:(i,a)=>e("POST",`/products/${i}/config/apply`,{spec:a?.spec,dryRun:a?.dryRun===!0,env:a?.env,branch:a?.branch,source:a?.source,draftHash:a?.draftHash}),compileProduct:(i,a)=>e("POST",`/products/${i}/compile`,vh(a)),compileProductManifest:(i,a)=>e("POST",`/products/${i}/manifest/compile`,{ir:a.ir,env:a.env}),applyProductManifest:(i,a)=>e("POST",`/products/${i}/manifest/apply`,{ir:a.ir,env:a.env,sourceRef:a.sourceRef})}}function vh(t){let r={};return t?.branch&&(r.branch=t.branch),t?.dryRun&&(r.dryRun=!0),t?.env&&(r.env=t.env),Object.keys(r).length>0?r:void 0}import{existsSync as Ur,mkdirSync as _h,readFileSync as ql,writeFileSync as Kl}from"node:fs";import{homedir as yh}from"node:os";import{join as to}from"node:path";var Wl="https://core.farthershore.com";var Rr=to(yh(),".farthershore"),Jl=to(Rr,"config.json"),Ft=to(Rr,"credentials.json");function Yl(t){Ur(t)||_h(t,{recursive:!0,mode:448})}var eo={apiUrl:Wl};function Xl(){if(Yl(Rr),!Ur(Jl))return eo;try{let t=JSON.parse(ql(Jl,"utf-8"));return{...eo,...t}}catch{return eo}}function Zr(){if(!Ur(Ft))return null;try{return JSON.parse(ql(Ft,"utf-8"))}catch{return null}}function Ql(t){Yl(Rr),Kl(Ft,JSON.stringify(t,null,2)+`
29
+ `,{mode:384})}function ed(){Ur(Ft)&&Kl(Ft,"{}")}function td(t){if(t)return t;let r=process.env.FARTHERSHORE_TOKEN;if(r)return r;let n=Zr();if(n?.token)return n.token;throw new k("Not authenticated. Run `farthershore auth login` or set FARTHERSHORE_TOKEN environment variable.")}import{createInterface as Uh}from"node:readline";var rd=(t=0)=>r=>`\x1B[${r+t}m`,nd=(t=0)=>r=>`\x1B[${38+t};5;${r}m`,id=(t=0)=>(r,n,o)=>`\x1B[${38+t};2;${r};${n};${o}m`,D={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},wx=Object.keys(D.modifier),bh=Object.keys(D.color),$h=Object.keys(D.bgColor),Ix=[...bh,...$h];function xh(){let t=new Map;for(let[r,n]of Object.entries(D)){for(let[o,e]of Object.entries(n))D[o]={open:`\x1B[${e[0]}m`,close:`\x1B[${e[1]}m`},n[o]=D[o],t.set(e[0],e[1]);Object.defineProperty(D,r,{value:n,enumerable:!1})}return Object.defineProperty(D,"codes",{value:t,enumerable:!1}),D.color.close="\x1B[39m",D.bgColor.close="\x1B[49m",D.color.ansi=rd(),D.color.ansi256=nd(),D.color.ansi16m=id(),D.bgColor.ansi=rd(10),D.bgColor.ansi256=nd(10),D.bgColor.ansi16m=id(10),Object.defineProperties(D,{rgbToAnsi256:{value(r,n,o){return r===n&&n===o?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(o/255*5)},enumerable:!1},hexToRgb:{value(r){let n=/[a-f\d]{6}|[a-f\d]{3}/i.exec(r.toString(16));if(!n)return[0,0,0];let[o]=n;o.length===3&&(o=[...o].map(i=>i+i).join(""));let e=Number.parseInt(o,16);return[e>>16&255,e>>8&255,e&255]},enumerable:!1},hexToAnsi256:{value:r=>D.rgbToAnsi256(...D.hexToRgb(r)),enumerable:!1},ansi256ToAnsi:{value(r){if(r<8)return 30+r;if(r<16)return 90+(r-8);let n,o,e;if(r>=232)n=((r-232)*10+8)/255,o=n,e=n;else{r-=16;let s=r%36;n=Math.floor(r/36)/5,o=Math.floor(s/6)/5,e=s%6/5}let i=Math.max(n,o,e)*2;if(i===0)return 30;let a=30+(Math.round(e)<<2|Math.round(o)<<1|Math.round(n));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(r,n,o)=>D.ansi256ToAnsi(D.rgbToAnsi256(r,n,o)),enumerable:!1},hexToAnsi:{value:r=>D.ansi256ToAnsi(D.hexToAnsi256(r)),enumerable:!1}}),D}var kh=xh(),ce=kh;import ro from"node:process";import Sh from"node:os";import od from"node:tty";function ae(t,r=globalThis.Deno?globalThis.Deno.args:ro.argv){let n=t.startsWith("-")?"":t.length===1?"-":"--",o=r.indexOf(n+t),e=r.indexOf("--");return o!==-1&&(e===-1||o<e)}var{env:U}=ro,Lr;ae("no-color")||ae("no-colors")||ae("color=false")||ae("color=never")?Lr=0:(ae("color")||ae("colors")||ae("color=true")||ae("color=always"))&&(Lr=1);function wh(){if("FORCE_COLOR"in U)return U.FORCE_COLOR==="true"?1:U.FORCE_COLOR==="false"?0:U.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(U.FORCE_COLOR,10),3)}function Ih(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function zh(t,{streamIsTTY:r,sniffFlags:n=!0}={}){let o=wh();o!==void 0&&(Lr=o);let e=n?Lr:o;if(e===0)return 0;if(n){if(ae("color=16m")||ae("color=full")||ae("color=truecolor"))return 3;if(ae("color=256"))return 2}if("TF_BUILD"in U&&"AGENT_NAME"in U)return 1;if(t&&!r&&e===void 0)return 0;let i=e||0;if(U.TERM==="dumb")return i;if(ro.platform==="win32"){let a=Sh.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in U)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(a=>a in U)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in U)||U.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in U)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(U.TEAMCITY_VERSION)?1:0;if(U.COLORTERM==="truecolor"||U.TERM==="xterm-kitty"||U.TERM==="xterm-ghostty"||U.TERM==="wezterm")return 3;if("TERM_PROGRAM"in U){let a=Number.parseInt((U.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(U.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(U.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(U.TERM)||"COLORTERM"in U?1:i}function ad(t,r={}){let n=zh(t,{streamIsTTY:t&&t.isTTY,...r});return Ih(n)}var Oh={stdout:ad({isTTY:od.isatty(1)}),stderr:ad({isTTY:od.isatty(2)})},sd=Oh;function cd(t,r,n){let o=t.indexOf(r);if(o===-1)return t;let e=r.length,i=0,a="";do a+=t.slice(i,o)+r+n,i=o+e,o=t.indexOf(r,i);while(o!==-1);return a+=t.slice(i),a}function ud(t,r,n,o){let e=0,i="";do{let a=t[o-1]==="\r";i+=t.slice(e,a?o-1:o)+r+(a?`\r
30
30
  `:`
31
31
  `)+n,e=o+1,o=t.indexOf(`
32
- `,e)}while(o!==-1);return i+=t.slice(e),i}var{stdout:ud,stderr:ld}=ad,ro=Symbol("GENERATOR"),tt=Symbol("STYLER"),Vt=Symbol("IS_EMPTY"),dd=["ansi","ansi","ansi256","ansi16m"],rt=Object.create(null),Ih=(t,r={})=>{if(r.level&&!(Number.isInteger(r.level)&&r.level>=0&&r.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let n=ud?ud.level:0;t.level=r.level===void 0?n:r.level};var zh=t=>{let r=(...n)=>n.join(" ");return Ih(r,t),Object.setPrototypeOf(r,Bt.prototype),r};function Bt(t){return zh(t)}Object.setPrototypeOf(Bt.prototype,Function.prototype);for(let[t,r]of Object.entries(ce))rt[t]={get(){let n=Fr(this,io(r.open,r.close,this[tt]),this[Vt]);return Object.defineProperty(this,t,{value:n}),n}};rt.visible={get(){let t=Fr(this,this[tt],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var no=(t,r,n,...o)=>t==="rgb"?r==="ansi16m"?ce[n].ansi16m(...o):r==="ansi256"?ce[n].ansi256(ce.rgbToAnsi256(...o)):ce[n].ansi(ce.rgbToAnsi(...o)):t==="hex"?no("rgb",r,n,...ce.hexToRgb(...o)):ce[n][t](...o),Oh=["rgb","hex","ansi256"];for(let t of Oh){rt[t]={get(){let{level:n}=this;return function(...o){let e=io(no(t,dd[n],"color",...o),ce.color.close,this[tt]);return Fr(this,e,this[Vt])}}};let r="bg"+t[0].toUpperCase()+t.slice(1);rt[r]={get(){let{level:n}=this;return function(...o){let e=io(no(t,dd[n],"bgColor",...o),ce.bgColor.close,this[tt]);return Fr(this,e,this[Vt])}}}}var Ph=Object.defineProperties(()=>{},{...rt,level:{enumerable:!0,get(){return this[ro].level},set(t){this[ro].level=t}}}),io=(t,r,n)=>{let o,e;return n===void 0?(o=t,e=r):(o=n.openAll+t,e=r+n.closeAll),{open:t,close:r,openAll:o,closeAll:e,parent:n}},Fr=(t,r,n)=>{let o=(...e)=>Eh(o,e.length===1?""+e[0]:e.join(" "));return Object.setPrototypeOf(o,Ph),o[ro]=t,o[tt]=r,o[Vt]=n,o},Eh=(t,r)=>{if(t.level<=0||!r)return t[Vt]?"":r;let n=t[tt];if(n===void 0)return r;let{openAll:o,closeAll:e}=n;if(r.includes("\x1B"))for(;n!==void 0;)r=sd(r,n.close,n.open),n=n.parent;let i=r.indexOf(`
33
- `);return i!==-1&&(r=cd(r,e,o,i)),o+r+e};Object.defineProperties(Bt.prototype,rt);var Th=Bt(),Ex=Bt({level:ld?ld.level:0});var A=Th;function ee(t){return JSON.stringify(t,null,2)}function ke(t){console.log(A.green(`\u2713 ${t}`))}function Oe(t){console.error(A.red(`\u2717 ${t}`))}function oo(t){console.warn(A.yellow(`\u26A0 ${t}`))}function Pe(t){console.log(A.dim(t))}function ao(){return process.stdout.isTTY===!0}function Ee(t){return t==="json"||t==="table"?t:ao()?"table":"json"}var jh=new Set(["production","prod","main"]);function Ah(t){return Ee(t.opts().format)}function O(t,r,n){if(Ah(t)==="json"){console.log(ee(n));return}ke(r)}async function N(t,r){if(r){if(r.length===36)return r;let o=(await t.listProducts()).find(e=>e.id===r||e.name.toLowerCase()===r.toLowerCase());if(o)return o.id}throw new Error("No product selected. Pass --product <id-or-name> or run `farthershore product create` first.")}function md(t){let r=t?.trim();if(r)return jh.has(r.toLowerCase())?null:r}function so(t){let r=md(t);if(r!==void 0)return{name:r,production:r===null};let n=md(process.env.FARTHERSHORE_ENV);return n!==void 0?{name:n,production:n===null}:{name:null,production:!0}}function co(t){return t.production?void 0:t.name??void 0}async function Nh(t){if(!ao())throw new S("No token provided. Pass --token, set FARTHERSHORE_TOKEN, or run interactively.",void 0,{code:"AUTH_NO_TOKEN"});let r=Ch({input:process.stdin,output:process.stdout,terminal:!0});return new Promise(n=>{r.question(t,o=>{r.close(),n(o.trim())})})}function pd(t,r){let n=t.command("auth").description("Manage CLI auth credentials");n.command("login").description("Store a maker token in ~/.farthershore/credentials.json").option("--token <token>","Maker token (mk_...). Falls back to FARTHERSHORE_TOKEN env, then prompt.").action(async o=>{let e=o.token??process.env.FARTHERSHORE_TOKEN??await Nh("Maker token: ");if(!e||e.length<10)throw new S("Token looks malformed.",void 0,{code:"AUTH_INVALID_TOKEN"});let i=Zr();Xl({...i??{},token:e}),O(t,"Token stored.",{ok:!0})}),n.command("whoami").description("Show current auth identity (org, role, scopes)").action(async()=>{let e=await r().bootstrap(),i=e.memberships.find(a=>a.organization.id===e.activeOrganization.id);O(t,`Authenticated as ${e.user.id}`,{ok:!0,userId:e.user.id,clerkUserId:e.user.clerkUserId,organizationId:e.activeOrganization.id,organizationName:e.activeOrganization.name??null,organizationSlug:e.activeOrganization.slug??null,role:i?.role??null,memberships:e.memberships.map(a=>({organizationId:a.organization.id,organizationName:a.organization.name??null,role:a.role}))})}),n.command("logout").description("Clear stored credentials").action(()=>{Ql(),O(t,"Logged out.",{ok:!0})})}var Mr=[{id:"requests",label:"API requests",description:"Count every call \u2014 the right default for most APIs.",meters:[{key:"requests",display:"Requests",unit:"request"}]},{id:"ai-tokens",label:"AI tokens",description:"LLM-style token metering alongside calls. The gateway estimates tokens per request and settles actuals from an x-fs-cost-tokens response header.",meters:[{key:"requests",display:"Requests",unit:"request"},{key:"tokens",display:"Tokens",unit:"token"}]},{id:"credits",label:"Credits",description:"Price work in abstract credits (e.g. one image = 5 credits). Report each call's cost via an x-fs-cost-credits response header.",meters:[{key:"requests",display:"Requests",unit:"request"},{key:"credits",display:"Credits",unit:"credit"}]},{id:"spend",label:"Metered spend",description:"Pass-through spend in cents (OpenRouter-style) via the x-fs-cost-dollars response header. Pairs with prepaid credit wallets.",meters:[{key:"requests",display:"Requests",unit:"request"},{key:"dollars",display:"Spend",unit:"cent"}]},{id:"compute",label:"Compute time",description:"Bill milliseconds of compute, settled from an x-fs-cost-compute-ms response header.",meters:[{key:"requests",display:"Requests",unit:"request"},{key:"compute_ms",display:"Compute Time",unit:"ms"}]}];function fd(t){let r=t.trim().toLowerCase();return Mr.find(n=>n.id===r)}function gd(){return Mr.map(t=>t.id)}function Dh(t){return t.split("_").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" ")}function Uh(t){let[r="",n,o]=t.split(":");if(!/^[a-z0-9_]+$/.test(r))throw new S(`Invalid meter key in "--meter ${t}" \u2014 keys are lowercase letters, digits, and underscores (e.g. input_tokens).`,void 0,{code:"INVALID_METER_SPEC"});return{key:r,display:n?.trim()||Dh(r),unit:o?.trim()||void 0}}function Rh(t){let r=t.meter??[];if(r.length>0&&t.meters)throw new S("Pass either --meters <template> or repeated --meter entries, not both.",void 0,{code:"CONFLICTING_METER_FLAGS"});if(r.length>0){let n=r.map(Uh);if(new Set(n.map(e=>e.key)).size!==n.length)throw new S("Duplicate meter keys in --meter flags.",void 0,{code:"INVALID_METER_SPEC"});return n}if(t.meters){let n=fd(t.meters);if(!n)throw new S(`Unknown meter template "${t.meters}". Available: ${gd().join(", ")}.`,void 0,{code:"UNKNOWN_METER_TEMPLATE"});return n.meters.map(o=>({...o}))}}function hd(t,r){let n=t.command("product").description("Product lifecycle: list, show, create, update, delete, compile");n.command("list").description("List products in the current org").action(async()=>{let e=await r().listProducts();O(t,`${e.length} product(s)`,{ok:!0,count:e.length,products:e.map(i=>({id:i.id,name:i.name,displayName:i.displayName??null,baseUrl:i.baseUrl,status:i.status??null}))})}),n.command("show <productIdOrName>").description("Show a product").option("--env <env>","Environment scope (preview branch name)").action(async(o,e)=>{let i=r(),a=await N(i,o),s=await i.getProduct(a,{env:e.env});O(t,`Product ${a}`,{ok:!0,product:s})}),n.command("create").description("Create a new product and provision the frontend starter repo").requiredOption("--name <name>","Product slug (becomes the subdomain)").option("--display-name <displayName>","Human-friendly product name").option("--description <description>").option("--base-url <url>","Upstream API base URL the gateway proxies to").option("--meters <template>",`Meter template: ${Mr.map(o=>`${o.id} (${o.label})`).join(", ")}. Default: requests.`).option("--meter <key[:display[:unit]]>","Custom meter, repeatable (e.g. --meter input_tokens:'Input Tokens':token). Overrides --meters.",(o,e)=>[...e,o],[]).action(async o=>{let e=Rh(o),a=await r().initProduct({name:o.name,baseUrl:o.baseUrl,description:o.description,displayName:o.displayName,meters:e});O(t,`Product created: ${o.name}`,{ok:!0,result:a})}),n.command("update <productIdOrName>").description("Update product metadata (name, baseUrl, description, etc.)").option("--display-name <displayName>").option("--description <description>").option("--base-url <url>").option("--env <env>","Environment scope").action(async(o,e)=>{let i=r(),a=await N(i,o),s={};if(e.displayName!==void 0&&(s.displayName=e.displayName),e.description!==void 0&&(s.description=e.description),e.baseUrl!==void 0&&(s.baseUrl=e.baseUrl),Object.keys(s).length===0)throw new S("No fields to update. Pass --display-name / --base-url / --description.",void 0,{code:"PRODUCT_UPDATE_NO_FIELDS"});let u=await i.updateProduct(a,s,{env:e.env});O(t,`Product ${a} updated`,{ok:!0,product:u})}),n.command("publish <productIdOrName>").description("Publish a draft product (make it live). Requires at least one plan, a base URL, and a verified Stripe connection.").action(async o=>{let e=r(),i=await N(e,o),a=await e.publishProduct(i);O(t,`Product ${i} published`,{ok:!0,product:a})}),n.command("delete <productIdOrName>").description("Permanently delete a product. Requires --yes.").option("--yes","Skip confirmation; required for delete").action(async(o,e)=>{if(!e.yes)throw new S("Pass --yes to confirm product deletion.",void 0,{code:"DESTRUCTIVE_OP_REQUIRES_YES"});let i=r(),a=await N(i,o);await i.deleteProduct(a),O(t,`Product ${a} deleted`,{ok:!0,deleted:a})}),n.command("compile <productIdOrName>").description("Run the product compiler").option("--branch <branch>","Git branch to compile").option("--dry-run","Validate only; do not publish").action(async(o,e)=>{let i=r(),a=await N(i,o),s=await i.compileProduct(a,{branch:e.branch,dryRun:e.dryRun});O(t,`Compile complete for ${a}`,{ok:!0,result:s})})}function Zh(t){if(!t||typeof t!="object")return[];let r=t;return Array.isArray(r.data)?r.data:Array.isArray(r.environments)?r.environments:[]}function vd(t,r){let n=t.command("env").description("Manage product environments (preview branches, prod)");n.command("list <productIdOrName>").description("List environments for a product").action(async o=>{let e=r(),i=await N(e,o),a=Zh(await e.listEnvironments(i));O(t,`${a.length} environment(s)`,{ok:!0,productId:i,count:a.length,environments:a.map(s=>({id:s.id,name:s.name,branch:s.branch??null,portalHostname:s.portalHostname??null,runtimeHostname:s.runtimeHostname??null,status:s.status??null}))})}),n.command("create <productIdOrName>").description("Create a preview environment bound to a git branch").requiredOption("--name <name>","Environment name (e.g. preview, staging)").requiredOption("--branch <branch>","Git branch to track (e.g. env/preview)").action(async(o,e)=>{let i=r(),a=await N(i,o),s=await i.createEnvironment(a,{name:e.name,branch:e.branch});O(t,`Environment ${e.name} created`,{ok:!0,productId:a,environment:s})}),n.command("delete <productIdOrName> <envName>").description("Delete an environment by name. Requires --yes.").option("--yes","Skip confirmation; required for delete").action(async(o,e,i)=>{if(!i.yes)throw new S("Pass --yes to confirm environment deletion.",void 0,{code:"DESTRUCTIVE_OP_REQUIRES_YES"});let a=r(),s=await N(a,o);await a.deleteEnvironment(s,e),O(t,`Environment ${e} deleted`,{ok:!0,productId:s,deleted:e})})}var c={};$e(c,{$brand:()=>lo,$input:()=>js,$output:()=>Ts,NEVER:()=>uo,TimePrecision:()=>Ds,ZodAny:()=>wu,ZodArray:()=>Pu,ZodBase64:()=>hi,ZodBase64URL:()=>vi,ZodBigInt:()=>At,ZodBigIntFormat:()=>bi,ZodBoolean:()=>jt,ZodCIDRv4:()=>fi,ZodCIDRv6:()=>gi,ZodCUID:()=>si,ZodCUID2:()=>ci,ZodCatch:()=>Yu,ZodCodec:()=>kr,ZodCustom:()=>Sr,ZodCustomStringFormat:()=>Et,ZodDate:()=>_r,ZodDefault:()=>Hu,ZodDiscriminatedUnion:()=>Tu,ZodE164:()=>_i,ZodEmail:()=>ii,ZodEmoji:()=>oi,ZodEnum:()=>Ot,ZodError:()=>hy,ZodExactOptional:()=>Mu,ZodFile:()=>Lu,ZodFirstPartyTypeKind:()=>ll,ZodFunction:()=>sl,ZodGUID:()=>pr,ZodIPv4:()=>mi,ZodIPv6:()=>pi,ZodISODate:()=>Xn,ZodISODateTime:()=>Yn,ZodISODuration:()=>ei,ZodISOTime:()=>Qn,ZodIntersection:()=>ju,ZodIssueCode:()=>_y,ZodJWT:()=>yi,ZodKSUID:()=>di,ZodLazy:()=>il,ZodLiteral:()=>Zu,ZodMAC:()=>_u,ZodMap:()=>Uu,ZodNaN:()=>Qu,ZodNanoID:()=>ai,ZodNever:()=>zu,ZodNonOptional:()=>Ii,ZodNull:()=>ku,ZodNullable:()=>Bu,ZodNumber:()=>Tt,ZodNumberFormat:()=>Xe,ZodObject:()=>br,ZodOptional:()=>wi,ZodPipe:()=>xr,ZodPrefault:()=>Gu,ZodPreprocess:()=>el,ZodPromise:()=>al,ZodReadonly:()=>tl,ZodRealError:()=>Q,ZodRecord:()=>zt,ZodSet:()=>Ru,ZodString:()=>Pt,ZodStringFormat:()=>j,ZodSuccess:()=>Ku,ZodSymbol:()=>$u,ZodTemplateLiteral:()=>nl,ZodTransform:()=>Fu,ZodTuple:()=>Cu,ZodType:()=>w,ZodULID:()=>ui,ZodURL:()=>vr,ZodUUID:()=>ye,ZodUndefined:()=>xu,ZodUnion:()=>$r,ZodUnknown:()=>Iu,ZodVoid:()=>Ou,ZodXID:()=>li,ZodXor:()=>Eu,_ZodString:()=>ni,_default:()=>Wu,_function:()=>af,any:()=>Dp,array:()=>yr,base64:()=>yp,base64url:()=>bp,bigint:()=>Tp,boolean:()=>bu,catch:()=>Xu,check:()=>sf,cidrv4:()=>vp,cidrv6:()=>_p,clone:()=>H,codec:()=>tf,coerce:()=>dl,config:()=>Z,core:()=>Ie,cuid:()=>up,cuid2:()=>lp,custom:()=>cf,date:()=>Rp,decode:()=>du,decodeAsync:()=>pu,describe:()=>uf,discriminatedUnion:()=>Bp,e164:()=>$p,email:()=>Qm,emoji:()=>sp,encode:()=>lu,encodeAsync:()=>mu,endsWith:()=>vt,enum:()=>ki,exactOptional:()=>Vu,file:()=>Yp,flattenError:()=>Qt,float32:()=>zp,float64:()=>Op,formatError:()=>er,fromJSONSchema:()=>hf,function:()=>af,getErrorMap:()=>by,globalRegistry:()=>V,gt:()=>ve,gte:()=>G,guid:()=>ep,hash:()=>Ip,hex:()=>wp,hostname:()=>Sp,httpUrl:()=>ap,includes:()=>gt,instanceof:()=>df,int:()=>ti,int32:()=>Pp,int64:()=>jp,intersection:()=>Au,invertCodec:()=>rf,ipv4:()=>fp,ipv6:()=>hp,iso:()=>It,json:()=>pf,jwt:()=>xp,keyof:()=>Zp,ksuid:()=>pp,lazy:()=>ol,length:()=>Ke,literal:()=>Kp,locales:()=>cr,looseObject:()=>Mp,looseRecord:()=>Wp,lowercase:()=>pt,lt:()=>he,lte:()=>re,mac:()=>gp,map:()=>Gp,maxLength:()=>qe,maxSize:()=>Ue,meta:()=>lf,mime:()=>_t,minLength:()=>we,minSize:()=>_e,multipleOf:()=>De,nan:()=>ef,nanoid:()=>cp,nativeEnum:()=>qp,negative:()=>Fn,never:()=>$i,nonnegative:()=>Vn,nonoptional:()=>qu,nonpositive:()=>Mn,normalize:()=>yt,null:()=>Su,nullable:()=>gr,nullish:()=>Xp,number:()=>yu,object:()=>Lp,optional:()=>fr,overwrite:()=>le,parse:()=>au,parseAsync:()=>su,partialRecord:()=>Hp,pipe:()=>ri,positive:()=>Ln,prefault:()=>Ju,preprocess:()=>ff,prettifyError:()=>So,promise:()=>of,property:()=>Bn,readonly:()=>rl,record:()=>Du,refine:()=>cl,regex:()=>mt,regexes:()=>te,registry:()=>yn,safeDecode:()=>gu,safeDecodeAsync:()=>vu,safeEncode:()=>fu,safeEncodeAsync:()=>hu,safeParse:()=>cu,safeParseAsync:()=>uu,set:()=>Jp,setErrorMap:()=>yy,size:()=>Je,slugify:()=>kt,startsWith:()=>ht,strictObject:()=>Fp,string:()=>mr,stringFormat:()=>kp,stringbool:()=>mf,success:()=>Qp,superRefine:()=>ul,symbol:()=>Cp,templateLiteral:()=>nf,toJSONSchema:()=>Jn,toLowerCase:()=>$t,toUpperCase:()=>xt,transform:()=>Si,treeifyError:()=>ko,trim:()=>bt,tuple:()=>Nu,uint32:()=>Ep,uint64:()=>Ap,ulid:()=>dp,undefined:()=>Np,union:()=>xi,unknown:()=>Ye,uppercase:()=>ft,url:()=>op,util:()=>y,uuid:()=>tp,uuidv4:()=>rp,uuidv6:()=>np,uuidv7:()=>ip,void:()=>Up,xid:()=>mp,xor:()=>Vp});var Ie={};$e(Ie,{$ZodAny:()=>Qa,$ZodArray:()=>is,$ZodAsyncError:()=>ue,$ZodBase64:()=>Va,$ZodBase64URL:()=>Ba,$ZodBigInt:()=>dn,$ZodBigIntFormat:()=>qa,$ZodBoolean:()=>ir,$ZodCIDRv4:()=>La,$ZodCIDRv6:()=>Fa,$ZodCUID:()=>Oa,$ZodCUID2:()=>Pa,$ZodCatch:()=>xs,$ZodCheck:()=>C,$ZodCheckBigIntFormat:()=>ia,$ZodCheckEndsWith:()=>ha,$ZodCheckGreaterThan:()=>on,$ZodCheckIncludes:()=>fa,$ZodCheckLengthEquals:()=>la,$ZodCheckLessThan:()=>nn,$ZodCheckLowerCase:()=>ma,$ZodCheckMaxLength:()=>ca,$ZodCheckMaxSize:()=>oa,$ZodCheckMimeType:()=>_a,$ZodCheckMinLength:()=>ua,$ZodCheckMinSize:()=>aa,$ZodCheckMultipleOf:()=>ra,$ZodCheckNumberFormat:()=>na,$ZodCheckOverwrite:()=>ya,$ZodCheckProperty:()=>va,$ZodCheckRegex:()=>da,$ZodCheckSizeEquals:()=>sa,$ZodCheckStartsWith:()=>ga,$ZodCheckStringFormat:()=>lt,$ZodCheckUpperCase:()=>pa,$ZodCodec:()=>ar,$ZodCustom:()=>Es,$ZodCustomStringFormat:()=>Ga,$ZodDate:()=>ns,$ZodDefault:()=>_s,$ZodDiscriminatedUnion:()=>ss,$ZodE164:()=>Ha,$ZodEmail:()=>Sa,$ZodEmoji:()=>Ia,$ZodEncodeError:()=>Te,$ZodEnum:()=>ms,$ZodError:()=>Xt,$ZodExactOptional:()=>hs,$ZodFile:()=>fs,$ZodFunction:()=>zs,$ZodGUID:()=>xa,$ZodIPv4:()=>Ua,$ZodIPv6:()=>Ra,$ZodISODate:()=>Ca,$ZodISODateTime:()=>Aa,$ZodISODuration:()=>Da,$ZodISOTime:()=>Na,$ZodIntersection:()=>cs,$ZodJWT:()=>Wa,$ZodKSUID:()=>ja,$ZodLazy:()=>Ps,$ZodLiteral:()=>ps,$ZodMAC:()=>Za,$ZodMap:()=>ls,$ZodNaN:()=>ks,$ZodNanoID:()=>za,$ZodNever:()=>ts,$ZodNonOptional:()=>bs,$ZodNull:()=>Xa,$ZodNullable:()=>vs,$ZodNumber:()=>ln,$ZodNumberFormat:()=>Ja,$ZodObject:()=>Jd,$ZodObjectJIT:()=>os,$ZodOptional:()=>pn,$ZodPipe:()=>fn,$ZodPrefault:()=>ys,$ZodPreprocess:()=>Ss,$ZodPromise:()=>Os,$ZodReadonly:()=>ws,$ZodRealError:()=>X,$ZodRecord:()=>us,$ZodRegistry:()=>_n,$ZodSet:()=>ds,$ZodString:()=>Ge,$ZodStringFormat:()=>T,$ZodSuccess:()=>$s,$ZodSymbol:()=>Ka,$ZodTemplateLiteral:()=>Is,$ZodTransform:()=>gs,$ZodTuple:()=>mn,$ZodType:()=>k,$ZodULID:()=>Ea,$ZodURL:()=>wa,$ZodUUID:()=>ka,$ZodUndefined:()=>Ya,$ZodUnion:()=>or,$ZodUnknown:()=>es,$ZodVoid:()=>rs,$ZodXID:()=>Ta,$ZodXor:()=>as,$brand:()=>lo,$constructor:()=>p,$input:()=>js,$output:()=>Ts,Doc:()=>nr,JSONSchema:()=>Km,JSONSchemaGenerator:()=>qn,NEVER:()=>uo,TimePrecision:()=>Ds,_any:()=>nc,_array:()=>lc,_base64:()=>Dn,_base64url:()=>Un,_bigint:()=>Ks,_boolean:()=>Js,_catch:()=>cy,_check:()=>qm,_cidrv4:()=>Cn,_cidrv6:()=>Nn,_coercedBigint:()=>Ys,_coercedBoolean:()=>qs,_coercedDate:()=>cc,_coercedNumber:()=>Ms,_coercedString:()=>Cs,_cuid:()=>zn,_cuid2:()=>On,_custom:()=>mc,_date:()=>sc,_decode:()=>Jr,_decodeAsync:()=>Kr,_default:()=>oy,_discriminatedUnion:()=>G_,_e164:()=>Rn,_email:()=>bn,_emoji:()=>wn,_encode:()=>Gr,_encodeAsync:()=>qr,_endsWith:()=>vt,_enum:()=>Q_,_file:()=>dc,_float32:()=>Bs,_float64:()=>Hs,_gt:()=>ve,_gte:()=>G,_guid:()=>ur,_includes:()=>gt,_int:()=>Vs,_int32:()=>Ws,_int64:()=>Xs,_intersection:()=>J_,_ipv4:()=>jn,_ipv6:()=>An,_isoDate:()=>Rs,_isoDateTime:()=>Us,_isoDuration:()=>Ls,_isoTime:()=>Zs,_jwt:()=>Zn,_ksuid:()=>Tn,_lazy:()=>my,_length:()=>Ke,_literal:()=>ty,_lowercase:()=>pt,_lt:()=>he,_lte:()=>re,_mac:()=>Ns,_map:()=>Y_,_max:()=>re,_maxLength:()=>qe,_maxSize:()=>Ue,_mime:()=>_t,_min:()=>G,_minLength:()=>we,_minSize:()=>_e,_multipleOf:()=>De,_nan:()=>uc,_nanoid:()=>In,_nativeEnum:()=>ey,_negative:()=>Fn,_never:()=>oc,_nonnegative:()=>Vn,_nonoptional:()=>ay,_nonpositive:()=>Mn,_normalize:()=>yt,_null:()=>rc,_nullable:()=>iy,_number:()=>Fs,_optional:()=>ny,_overwrite:()=>le,_parse:()=>at,_parseAsync:()=>st,_pipe:()=>uy,_positive:()=>Ln,_promise:()=>py,_property:()=>Bn,_readonly:()=>ly,_record:()=>K_,_refine:()=>pc,_regex:()=>mt,_safeDecode:()=>Xr,_safeDecodeAsync:()=>en,_safeEncode:()=>Yr,_safeEncodeAsync:()=>Qr,_safeParse:()=>ct,_safeParseAsync:()=>ut,_set:()=>X_,_size:()=>Je,_slugify:()=>kt,_startsWith:()=>ht,_string:()=>As,_stringFormat:()=>St,_stringbool:()=>vc,_success:()=>sy,_superRefine:()=>fc,_symbol:()=>ec,_templateLiteral:()=>dy,_toLowerCase:()=>$t,_toUpperCase:()=>xt,_transform:()=>ry,_trim:()=>bt,_tuple:()=>q_,_uint32:()=>Gs,_uint64:()=>Qs,_ulid:()=>Pn,_undefined:()=>tc,_union:()=>H_,_unknown:()=>ic,_uppercase:()=>ft,_url:()=>lr,_uuid:()=>$n,_uuidv4:()=>xn,_uuidv6:()=>kn,_uuidv7:()=>Sn,_void:()=>ac,_xid:()=>En,_xor:()=>W_,clone:()=>H,config:()=>Z,createStandardJSONSchemaMethod:()=>wt,createToJSONSchemaMethod:()=>_c,decode:()=>pv,decodeAsync:()=>gv,describe:()=>gc,encode:()=>mv,encodeAsync:()=>fv,extractDefs:()=>Ze,finalize:()=>Le,flattenError:()=>Qt,formatError:()=>er,globalConfig:()=>Be,globalRegistry:()=>V,initializeContext:()=>Re,isValidBase64:()=>Ma,isValidBase64URL:()=>Bd,isValidJWT:()=>Hd,locales:()=>cr,meta:()=>hc,parse:()=>Hr,parseAsync:()=>Wr,prettifyError:()=>So,process:()=>E,regexes:()=>te,registry:()=>yn,safeDecode:()=>vv,safeDecodeAsync:()=>yv,safeEncode:()=>hv,safeEncodeAsync:()=>_v,safeParse:()=>wo,safeParseAsync:()=>Io,toDotPath:()=>kd,toJSONSchema:()=>Jn,treeifyError:()=>ko,util:()=>y,version:()=>ba});var _d,uo=Object.freeze({status:"aborted"});function p(t,r,n){function o(s,u){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:u,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(t))return;s._zod.traits.add(t),r(s,u);let l=a.prototype,d=Object.keys(l);for(let m=0;m<d.length;m++){let g=d[m];g in s||(s[g]=l[g].bind(s))}}let e=n?.Parent??Object;class i extends e{}Object.defineProperty(i,"name",{value:t});function a(s){var u;let l=n?.Parent?new i:this;o(l,s),(u=l._zod).deferred??(u.deferred=[]);for(let d of l._zod.deferred)d();return l}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>n?.Parent&&s instanceof n.Parent?!0:s?._zod?.traits?.has(t)}),Object.defineProperty(a,"name",{value:t}),a}var lo=Symbol("zod_brand"),ue=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Te=class extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}};(_d=globalThis).__zod_globalConfig??(_d.__zod_globalConfig={});var Be=globalThis.__zod_globalConfig;function Z(t){return t&&Object.assign(Be,t),Be}var y={};$e(y,{BIGINT_FORMAT_RANGES:()=>$o,Class:()=>po,NUMBER_FORMAT_RANGES:()=>bo,aborted:()=>Ne,allowsEval:()=>ho,assert:()=>Bh,assertEqual:()=>Lh,assertIs:()=>Mh,assertNever:()=>Vh,assertNotEqual:()=>Fh,assignProp:()=>Ae,base64ToUint8Array:()=>bd,base64urlToUint8Array:()=>sv,cached:()=>it,captureStackTrace:()=>Br,cleanEnum:()=>av,cleanRegex:()=>Jt,clone:()=>H,cloneDef:()=>Wh,createTransparentProxy:()=>Xh,defineLazy:()=>I,esc:()=>Vr,escapeRegex:()=>se,explicitlyAborted:()=>xo,extend:()=>tv,finalizeIssue:()=>W,floatSafeRemainder:()=>fo,getElementAtPath:()=>Gh,getEnumValues:()=>Gt,getLengthableOrigin:()=>Yt,getParsedType:()=>Yh,getSizableOrigin:()=>Kt,hexToUint8Array:()=>uv,isObject:()=>He,isPlainObject:()=>Ce,issue:()=>ot,joinValues:()=>f,jsonStringifyReplacer:()=>nt,merge:()=>nv,mergeDefs:()=>Se,normalizeParams:()=>b,nullish:()=>je,numKeys:()=>Kh,objectClone:()=>Hh,omit:()=>ev,optionalKeys:()=>yo,parsedType:()=>v,partial:()=>iv,pick:()=>Qh,prefixIssues:()=>Y,primitiveTypes:()=>_o,promiseAllObject:()=>Jh,propertyKeyTypes:()=>qt,randomString:()=>qh,required:()=>ov,safeExtend:()=>rv,shallowClone:()=>vo,slugify:()=>go,stringifyPrimitive:()=>h,uint8ArrayToBase64:()=>$d,uint8ArrayToBase64url:()=>cv,uint8ArrayToHex:()=>lv,unwrapMessage:()=>Wt});function Lh(t){return t}function Fh(t){return t}function Mh(t){}function Vh(t){throw new Error("Unexpected value in exhaustive check")}function Bh(t){}function Gt(t){let r=Object.values(t).filter(o=>typeof o=="number");return Object.entries(t).filter(([o,e])=>r.indexOf(+o)===-1).map(([o,e])=>e)}function f(t,r="|"){return t.map(n=>h(n)).join(r)}function nt(t,r){return typeof r=="bigint"?r.toString():r}function it(t){return{get value(){{let n=t();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function je(t){return t==null}function Jt(t){let r=t.startsWith("^")?1:0,n=t.endsWith("$")?t.length-1:t.length;return t.slice(r,n)}function fo(t,r){let n=t/r,o=Math.round(n),e=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-o)<e?0:n-o}var yd=Symbol("evaluating");function I(t,r,n){let o;Object.defineProperty(t,r,{get(){if(o!==yd)return o===void 0&&(o=yd,o=n()),o},set(e){Object.defineProperty(t,r,{value:e})},configurable:!0})}function Hh(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}function Ae(t,r,n){Object.defineProperty(t,r,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Se(...t){let r={};for(let n of t){let o=Object.getOwnPropertyDescriptors(n);Object.assign(r,o)}return Object.defineProperties({},r)}function Wh(t){return Se(t._zod.def)}function Gh(t,r){return r?r.reduce((n,o)=>n?.[o],t):t}function Jh(t){let r=Object.keys(t),n=r.map(o=>t[o]);return Promise.all(n).then(o=>{let e={};for(let i=0;i<r.length;i++)e[r[i]]=o[i];return e})}function qh(t=10){let r="abcdefghijklmnopqrstuvwxyz",n="";for(let o=0;o<t;o++)n+=r[Math.floor(Math.random()*r.length)];return n}function Vr(t){return JSON.stringify(t)}function go(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Br="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function He(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var ho=it(()=>{if(Be.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function Ce(t){if(He(t)===!1)return!1;let r=t.constructor;if(r===void 0||typeof r!="function")return!0;let n=r.prototype;return!(He(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function vo(t){return Ce(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}function Kh(t){let r=0;for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&r++;return r}var Yh=t=>{let r=typeof t;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},qt=new Set(["string","number","symbol"]),_o=new Set(["string","number","bigint","boolean","symbol","undefined"]);function se(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function H(t,r,n){let o=new t._zod.constr(r??t._zod.def);return(!r||n?.parent)&&(o._zod.parent=t),o}function b(t){let r=t;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function Xh(t){let r;return new Proxy({},{get(n,o,e){return r??(r=t()),Reflect.get(r,o,e)},set(n,o,e,i){return r??(r=t()),Reflect.set(r,o,e,i)},has(n,o){return r??(r=t()),Reflect.has(r,o)},deleteProperty(n,o){return r??(r=t()),Reflect.deleteProperty(r,o)},ownKeys(n){return r??(r=t()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(n,o){return r??(r=t()),Reflect.getOwnPropertyDescriptor(r,o)},defineProperty(n,o,e){return r??(r=t()),Reflect.defineProperty(r,o,e)}})}function h(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function yo(t){return Object.keys(t).filter(r=>t[r]._zod.optin==="optional"&&t[r]._zod.optout==="optional")}var bo={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},$o={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Qh(t,r){let n=t._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=Se(t._zod.def,{get shape(){let a={};for(let s in r){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(a[s]=n.shape[s])}return Ae(this,"shape",a),a},checks:[]});return H(t,i)}function ev(t,r){let n=t._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=Se(t._zod.def,{get shape(){let a={...t._zod.def.shape};for(let s in r){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);r[s]&&delete a[s]}return Ae(this,"shape",a),a},checks:[]});return H(t,i)}function tv(t,r){if(!Ce(r))throw new Error("Invalid input to extend: expected a plain object");let n=t._zod.def.checks;if(n&&n.length>0){let i=t._zod.def.shape;for(let a in r)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let e=Se(t._zod.def,{get shape(){let i={...t._zod.def.shape,...r};return Ae(this,"shape",i),i}});return H(t,e)}function rv(t,r){if(!Ce(r))throw new Error("Invalid input to safeExtend: expected a plain object");let n=Se(t._zod.def,{get shape(){let o={...t._zod.def.shape,...r};return Ae(this,"shape",o),o}});return H(t,n)}function nv(t,r){if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n=Se(t._zod.def,{get shape(){let o={...t._zod.def.shape,...r._zod.def.shape};return Ae(this,"shape",o),o},get catchall(){return r._zod.def.catchall},checks:r._zod.def.checks??[]});return H(t,n)}function iv(t,r,n){let e=r._zod.def.checks;if(e&&e.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=Se(r._zod.def,{get shape(){let s=r._zod.def.shape,u={...s};if(n)for(let l in n){if(!(l in s))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(u[l]=t?new t({type:"optional",innerType:s[l]}):s[l])}else for(let l in s)u[l]=t?new t({type:"optional",innerType:s[l]}):s[l];return Ae(this,"shape",u),u},checks:[]});return H(r,a)}function ov(t,r,n){let o=Se(r._zod.def,{get shape(){let e=r._zod.def.shape,i={...e};if(n)for(let a in n){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=new t({type:"nonoptional",innerType:e[a]}))}else for(let a in e)i[a]=new t({type:"nonoptional",innerType:e[a]});return Ae(this,"shape",i),i}});return H(r,o)}function Ne(t,r=0){if(t.aborted===!0)return!0;for(let n=r;n<t.issues.length;n++)if(t.issues[n]?.continue!==!0)return!0;return!1}function xo(t,r=0){if(t.aborted===!0)return!0;for(let n=r;n<t.issues.length;n++)if(t.issues[n]?.continue===!1)return!0;return!1}function Y(t,r){return r.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(t),n})}function Wt(t){return typeof t=="string"?t:t?.message}function W(t,r,n){let o=t.message?t.message:Wt(t.inst?._zod.def?.error?.(t))??Wt(r?.error?.(t))??Wt(n.customError?.(t))??Wt(n.localeError?.(t))??"Invalid input",{inst:e,continue:i,input:a,...s}=t;return s.path??(s.path=[]),s.message=o,r?.reportInput&&(s.input=a),s}function Kt(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function Yt(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function v(t){let r=typeof t;switch(r){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let n=t;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return r}function ot(...t){let[r,n,o]=t;return typeof r=="string"?{message:r,code:"custom",input:n,inst:o}:{...r}}function av(t){return Object.entries(t).filter(([r,n])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function bd(t){let r=atob(t),n=new Uint8Array(r.length);for(let o=0;o<r.length;o++)n[o]=r.charCodeAt(o);return n}function $d(t){let r="";for(let n=0;n<t.length;n++)r+=String.fromCharCode(t[n]);return btoa(r)}function sv(t){let r=t.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-r.length%4)%4);return bd(r+n)}function cv(t){return $d(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function uv(t){let r=t.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(r.length/2);for(let o=0;o<r.length;o+=2)n[o/2]=Number.parseInt(r.slice(o,o+2),16);return n}function lv(t){return Array.from(t).map(r=>r.toString(16).padStart(2,"0")).join("")}var po=class{constructor(...r){}};var xd=(t,r)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:r,enumerable:!1}),t.message=JSON.stringify(r,nt,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},Xt=p("$ZodError",xd),X=p("$ZodError",xd,{Parent:Error});function Qt(t,r=n=>n.message){let n={},o=[];for(let e of t.issues)e.path.length>0?(n[e.path[0]]=n[e.path[0]]||[],n[e.path[0]].push(r(e))):o.push(r(e));return{formErrors:o,fieldErrors:n}}function er(t,r=n=>n.message){let n={_errors:[]},o=(e,i=[])=>{for(let a of e.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>o({issues:s},[...i,...a.path]));else if(a.code==="invalid_key")o({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")o({issues:a.issues},[...i,...a.path]);else{let s=[...i,...a.path];if(s.length===0)n._errors.push(r(a));else{let u=n,l=0;for(;l<s.length;){let d=s[l];l===s.length-1?(u[d]=u[d]||{_errors:[]},u[d]._errors.push(r(a))):u[d]=u[d]||{_errors:[]},u=u[d],l++}}}};return o(t),n}function ko(t,r=n=>n.message){let n={errors:[]},o=(e,i=[])=>{var a,s;for(let u of e.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(l=>o({issues:l},[...i,...u.path]));else if(u.code==="invalid_key")o({issues:u.issues},[...i,...u.path]);else if(u.code==="invalid_element")o({issues:u.issues},[...i,...u.path]);else{let l=[...i,...u.path];if(l.length===0){n.errors.push(r(u));continue}let d=n,m=0;for(;m<l.length;){let g=l[m],_=m===l.length-1;typeof g=="string"?(d.properties??(d.properties={}),(a=d.properties)[g]??(a[g]={errors:[]}),d=d.properties[g]):(d.items??(d.items=[]),(s=d.items)[g]??(s[g]={errors:[]}),d=d.items[g]),_&&d.errors.push(r(u)),m++}}};return o(t),n}function kd(t){let r=[],n=t.map(o=>typeof o=="object"?o.key:o);for(let o of n)typeof o=="number"?r.push(`[${o}]`):typeof o=="symbol"?r.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?r.push(`[${JSON.stringify(o)}]`):(r.length&&r.push("."),r.push(o));return r.join("")}function So(t){let r=[],n=[...t.issues].sort((o,e)=>(o.path??[]).length-(e.path??[]).length);for(let o of n)r.push(`\u2716 ${o.message}`),o.path?.length&&r.push(` \u2192 at ${kd(o.path)}`);return r.join(`
34
- `)}var at=t=>(r,n,o,e)=>{let i=o?{...o,async:!1}:{async:!1},a=r._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new ue;if(a.issues.length){let s=new(e?.Err??t)(a.issues.map(u=>W(u,i,Z())));throw Br(s,e?.callee),s}return a.value},Hr=at(X),st=t=>async(r,n,o,e)=>{let i=o?{...o,async:!0}:{async:!0},a=r._zod.run({value:n,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(e?.Err??t)(a.issues.map(u=>W(u,i,Z())));throw Br(s,e?.callee),s}return a.value},Wr=st(X),ct=t=>(r,n,o)=>{let e=o?{...o,async:!1}:{async:!1},i=r._zod.run({value:n,issues:[]},e);if(i instanceof Promise)throw new ue;return i.issues.length?{success:!1,error:new(t??Xt)(i.issues.map(a=>W(a,e,Z())))}:{success:!0,data:i.value}},wo=ct(X),ut=t=>async(r,n,o)=>{let e=o?{...o,async:!0}:{async:!0},i=r._zod.run({value:n,issues:[]},e);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new t(i.issues.map(a=>W(a,e,Z())))}:{success:!0,data:i.value}},Io=ut(X),Gr=t=>(r,n,o)=>{let e=o?{...o,direction:"backward"}:{direction:"backward"};return at(t)(r,n,e)},mv=Gr(X),Jr=t=>(r,n,o)=>at(t)(r,n,o),pv=Jr(X),qr=t=>async(r,n,o)=>{let e=o?{...o,direction:"backward"}:{direction:"backward"};return st(t)(r,n,e)},fv=qr(X),Kr=t=>async(r,n,o)=>st(t)(r,n,o),gv=Kr(X),Yr=t=>(r,n,o)=>{let e=o?{...o,direction:"backward"}:{direction:"backward"};return ct(t)(r,n,e)},hv=Yr(X),Xr=t=>(r,n,o)=>ct(t)(r,n,o),vv=Xr(X),Qr=t=>async(r,n,o)=>{let e=o?{...o,direction:"backward"}:{direction:"backward"};return ut(t)(r,n,e)},_v=Qr(X),en=t=>async(r,n,o)=>ut(t)(r,n,o),yv=en(X);var te={};$e(te,{base64:()=>Mo,base64url:()=>tn,bigint:()=>qo,boolean:()=>Yo,browserEmail:()=>zv,cidrv4:()=>Lo,cidrv6:()=>Fo,cuid:()=>zo,cuid2:()=>Oo,date:()=>Ho,datetime:()=>Go,domain:()=>Ev,duration:()=>Ao,e164:()=>Bo,email:()=>No,emoji:()=>Do,extendedDuration:()=>bv,guid:()=>Co,hex:()=>Tv,hostname:()=>Pv,html5Email:()=>Sv,httpProtocol:()=>Vo,idnEmail:()=>Iv,integer:()=>Ko,ipv4:()=>Uo,ipv6:()=>Ro,ksuid:()=>To,lowercase:()=>ea,mac:()=>Zo,md5_base64:()=>Av,md5_base64url:()=>Cv,md5_hex:()=>jv,nanoid:()=>jo,null:()=>Xo,number:()=>rn,rfc5322Email:()=>wv,sha1_base64:()=>Dv,sha1_base64url:()=>Uv,sha1_hex:()=>Nv,sha256_base64:()=>Zv,sha256_base64url:()=>Lv,sha256_hex:()=>Rv,sha384_base64:()=>Mv,sha384_base64url:()=>Vv,sha384_hex:()=>Fv,sha512_base64:()=>Hv,sha512_base64url:()=>Wv,sha512_hex:()=>Bv,string:()=>Jo,time:()=>Wo,ulid:()=>Po,undefined:()=>Qo,unicodeEmail:()=>Sd,uppercase:()=>ta,uuid:()=>We,uuid4:()=>$v,uuid6:()=>xv,uuid7:()=>kv,xid:()=>Eo});var zo=/^[cC][0-9a-z]{6,}$/,Oo=/^[0-9a-z]+$/,Po=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Eo=/^[0-9a-vA-V]{20}$/,To=/^[A-Za-z0-9]{27}$/,jo=/^[a-zA-Z0-9_-]{21}$/,Ao=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,bv=/^[-+]?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)?)??$/,Co=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,We=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,$v=We(4),xv=We(6),kv=We(7),No=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Sv=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,wv=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Sd=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Iv=Sd,zv=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ov="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Do(){return new RegExp(Ov,"u")}var Uo=/^(?:(?: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])$/,Ro=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,Zo=t=>{let r=se(t??":");return new RegExp(`^(?:[0-9A-F]{2}${r}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${r}){5}[0-9a-f]{2}$`)},Lo=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,Fo=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Mo=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,tn=/^[A-Za-z0-9_-]*$/,Pv=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Ev=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Vo=/^https?$/,Bo=/^\+[1-9]\d{6,14}$/,wd="(?:(?:\\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])))",Ho=new RegExp(`^${wd}$`);function Id(t){let r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${r}`:t.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${t.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Wo(t){return new RegExp(`^${Id(t)}$`)}function Go(t){let r=Id({precision:t.precision}),n=["Z"];t.local&&n.push(""),t.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${r}(?:${n.join("|")})`;return new RegExp(`^${wd}T(?:${o})$`)}var Jo=t=>{let r=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},qo=/^-?\d+n?$/,Ko=/^-?\d+$/,rn=/^-?\d+(?:\.\d+)?$/,Yo=/^(?:true|false)$/i,Xo=/^null$/i;var Qo=/^undefined$/i;var ea=/^[^A-Z]*$/,ta=/^[^a-z]*$/,Tv=/^[0-9a-fA-F]*$/;function tr(t,r){return new RegExp(`^[A-Za-z0-9+/]{${t}}${r}$`)}function rr(t){return new RegExp(`^[A-Za-z0-9_-]{${t}}$`)}var jv=/^[0-9a-fA-F]{32}$/,Av=tr(22,"=="),Cv=rr(22),Nv=/^[0-9a-fA-F]{40}$/,Dv=tr(27,"="),Uv=rr(27),Rv=/^[0-9a-fA-F]{64}$/,Zv=tr(43,"="),Lv=rr(43),Fv=/^[0-9a-fA-F]{96}$/,Mv=tr(64,""),Vv=rr(64),Bv=/^[0-9a-fA-F]{128}$/,Hv=tr(86,"=="),Wv=rr(86);var C=p("$ZodCheck",(t,r)=>{var n;t._zod??(t._zod={}),t._zod.def=r,(n=t._zod).onattach??(n.onattach=[])}),Od={number:"number",bigint:"bigint",object:"date"},nn=p("$ZodCheckLessThan",(t,r)=>{C.init(t,r);let n=Od[typeof r.value];t._zod.onattach.push(o=>{let e=o._zod.bag,i=(r.inclusive?e.maximum:e.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<i&&(r.inclusive?e.maximum=r.value:e.exclusiveMaximum=r.value)}),t._zod.check=o=>{(r.inclusive?o.value<=r.value:o.value<r.value)||o.issues.push({origin:n,code:"too_big",maximum:typeof r.value=="object"?r.value.getTime():r.value,input:o.value,inclusive:r.inclusive,inst:t,continue:!r.abort})}}),on=p("$ZodCheckGreaterThan",(t,r)=>{C.init(t,r);let n=Od[typeof r.value];t._zod.onattach.push(o=>{let e=o._zod.bag,i=(r.inclusive?e.minimum:e.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>i&&(r.inclusive?e.minimum=r.value:e.exclusiveMinimum=r.value)}),t._zod.check=o=>{(r.inclusive?o.value>=r.value:o.value>r.value)||o.issues.push({origin:n,code:"too_small",minimum:typeof r.value=="object"?r.value.getTime():r.value,input:o.value,inclusive:r.inclusive,inst:t,continue:!r.abort})}}),ra=p("$ZodCheckMultipleOf",(t,r)=>{C.init(t,r),t._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=r.value)}),t._zod.check=n=>{if(typeof n.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%r.value===BigInt(0):fo(n.value,r.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:r.value,input:n.value,inst:t,continue:!r.abort})}}),na=p("$ZodCheckNumberFormat",(t,r)=>{C.init(t,r),r.format=r.format||"float64";let n=r.format?.includes("int"),o=n?"int":"number",[e,i]=bo[r.format];t._zod.onattach.push(a=>{let s=a._zod.bag;s.format=r.format,s.minimum=e,s.maximum=i,n&&(s.pattern=Ko)}),t._zod.check=a=>{let s=a.value;if(n){if(!Number.isInteger(s)){a.issues.push({expected:o,format:r.format,code:"invalid_type",continue:!1,input:s,inst:t});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:o,inclusive:!0,continue:!r.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:o,inclusive:!0,continue:!r.abort});return}}s<e&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:e,inclusive:!0,inst:t,continue:!r.abort}),s>i&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:t,continue:!r.abort})}}),ia=p("$ZodCheckBigIntFormat",(t,r)=>{C.init(t,r);let[n,o]=$o[r.format];t._zod.onattach.push(e=>{let i=e._zod.bag;i.format=r.format,i.minimum=n,i.maximum=o}),t._zod.check=e=>{let i=e.value;i<n&&e.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:t,continue:!r.abort}),i>o&&e.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:t,continue:!r.abort})}}),oa=p("$ZodCheckMaxSize",(t,r)=>{var n;C.init(t,r),(n=t._zod.def).when??(n.when=o=>{let e=o.value;return!je(e)&&e.size!==void 0}),t._zod.onattach.push(o=>{let e=o._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<e&&(o._zod.bag.maximum=r.maximum)}),t._zod.check=o=>{let e=o.value;e.size<=r.maximum||o.issues.push({origin:Kt(e),code:"too_big",maximum:r.maximum,inclusive:!0,input:e,inst:t,continue:!r.abort})}}),aa=p("$ZodCheckMinSize",(t,r)=>{var n;C.init(t,r),(n=t._zod.def).when??(n.when=o=>{let e=o.value;return!je(e)&&e.size!==void 0}),t._zod.onattach.push(o=>{let e=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>e&&(o._zod.bag.minimum=r.minimum)}),t._zod.check=o=>{let e=o.value;e.size>=r.minimum||o.issues.push({origin:Kt(e),code:"too_small",minimum:r.minimum,inclusive:!0,input:e,inst:t,continue:!r.abort})}}),sa=p("$ZodCheckSizeEquals",(t,r)=>{var n;C.init(t,r),(n=t._zod.def).when??(n.when=o=>{let e=o.value;return!je(e)&&e.size!==void 0}),t._zod.onattach.push(o=>{let e=o._zod.bag;e.minimum=r.size,e.maximum=r.size,e.size=r.size}),t._zod.check=o=>{let e=o.value,i=e.size;if(i===r.size)return;let a=i>r.size;o.issues.push({origin:Kt(e),...a?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:o.value,inst:t,continue:!r.abort})}}),ca=p("$ZodCheckMaxLength",(t,r)=>{var n;C.init(t,r),(n=t._zod.def).when??(n.when=o=>{let e=o.value;return!je(e)&&e.length!==void 0}),t._zod.onattach.push(o=>{let e=o._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<e&&(o._zod.bag.maximum=r.maximum)}),t._zod.check=o=>{let e=o.value;if(e.length<=r.maximum)return;let a=Yt(e);o.issues.push({origin:a,code:"too_big",maximum:r.maximum,inclusive:!0,input:e,inst:t,continue:!r.abort})}}),ua=p("$ZodCheckMinLength",(t,r)=>{var n;C.init(t,r),(n=t._zod.def).when??(n.when=o=>{let e=o.value;return!je(e)&&e.length!==void 0}),t._zod.onattach.push(o=>{let e=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>e&&(o._zod.bag.minimum=r.minimum)}),t._zod.check=o=>{let e=o.value;if(e.length>=r.minimum)return;let a=Yt(e);o.issues.push({origin:a,code:"too_small",minimum:r.minimum,inclusive:!0,input:e,inst:t,continue:!r.abort})}}),la=p("$ZodCheckLengthEquals",(t,r)=>{var n;C.init(t,r),(n=t._zod.def).when??(n.when=o=>{let e=o.value;return!je(e)&&e.length!==void 0}),t._zod.onattach.push(o=>{let e=o._zod.bag;e.minimum=r.length,e.maximum=r.length,e.length=r.length}),t._zod.check=o=>{let e=o.value,i=e.length;if(i===r.length)return;let a=Yt(e),s=i>r.length;o.issues.push({origin:a,...s?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:o.value,inst:t,continue:!r.abort})}}),lt=p("$ZodCheckStringFormat",(t,r)=>{var n,o;C.init(t,r),t._zod.onattach.push(e=>{let i=e._zod.bag;i.format=r.format,r.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(r.pattern))}),r.pattern?(n=t._zod).check??(n.check=e=>{r.pattern.lastIndex=0,!r.pattern.test(e.value)&&e.issues.push({origin:"string",code:"invalid_format",format:r.format,input:e.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:t,continue:!r.abort})}):(o=t._zod).check??(o.check=()=>{})}),da=p("$ZodCheckRegex",(t,r)=>{lt.init(t,r),t._zod.check=n=>{r.pattern.lastIndex=0,!r.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:r.pattern.toString(),inst:t,continue:!r.abort})}}),ma=p("$ZodCheckLowerCase",(t,r)=>{r.pattern??(r.pattern=ea),lt.init(t,r)}),pa=p("$ZodCheckUpperCase",(t,r)=>{r.pattern??(r.pattern=ta),lt.init(t,r)}),fa=p("$ZodCheckIncludes",(t,r)=>{C.init(t,r);let n=se(r.includes),o=new RegExp(typeof r.position=="number"?`^.{${r.position}}${n}`:n);r.pattern=o,t._zod.onattach.push(e=>{let i=e._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),t._zod.check=e=>{e.value.includes(r.includes,r.position)||e.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:e.value,inst:t,continue:!r.abort})}}),ga=p("$ZodCheckStartsWith",(t,r)=>{C.init(t,r);let n=new RegExp(`^${se(r.prefix)}.*`);r.pattern??(r.pattern=n),t._zod.onattach.push(o=>{let e=o._zod.bag;e.patterns??(e.patterns=new Set),e.patterns.add(n)}),t._zod.check=o=>{o.value.startsWith(r.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:o.value,inst:t,continue:!r.abort})}}),ha=p("$ZodCheckEndsWith",(t,r)=>{C.init(t,r);let n=new RegExp(`.*${se(r.suffix)}$`);r.pattern??(r.pattern=n),t._zod.onattach.push(o=>{let e=o._zod.bag;e.patterns??(e.patterns=new Set),e.patterns.add(n)}),t._zod.check=o=>{o.value.endsWith(r.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:o.value,inst:t,continue:!r.abort})}});function zd(t,r,n){t.issues.length&&r.issues.push(...Y(n,t.issues))}var va=p("$ZodCheckProperty",(t,r)=>{C.init(t,r),t._zod.check=n=>{let o=r.schema._zod.run({value:n.value[r.property],issues:[]},{});if(o instanceof Promise)return o.then(e=>zd(e,n,r.property));zd(o,n,r.property)}}),_a=p("$ZodCheckMimeType",(t,r)=>{C.init(t,r);let n=new Set(r.mime);t._zod.onattach.push(o=>{o._zod.bag.mime=r.mime}),t._zod.check=o=>{n.has(o.value.type)||o.issues.push({code:"invalid_value",values:r.mime,input:o.value.type,inst:t,continue:!r.abort})}}),ya=p("$ZodCheckOverwrite",(t,r)=>{C.init(t,r),t._zod.check=n=>{n.value=r.tx(n.value)}});var nr=class{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}let o=r.split(`
32
+ `,e)}while(o!==-1);return i+=t.slice(e),i}var{stdout:ld,stderr:dd}=sd,no=Symbol("GENERATOR"),tt=Symbol("STYLER"),Vt=Symbol("IS_EMPTY"),md=["ansi","ansi","ansi256","ansi16m"],rt=Object.create(null),Eh=(t,r={})=>{if(r.level&&!(Number.isInteger(r.level)&&r.level>=0&&r.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let n=ld?ld.level:0;t.level=r.level===void 0?n:r.level};var Ph=t=>{let r=(...n)=>n.join(" ");return Eh(r,t),Object.setPrototypeOf(r,Bt.prototype),r};function Bt(t){return Ph(t)}Object.setPrototypeOf(Bt.prototype,Function.prototype);for(let[t,r]of Object.entries(ce))rt[t]={get(){let n=Mr(this,oo(r.open,r.close,this[tt]),this[Vt]);return Object.defineProperty(this,t,{value:n}),n}};rt.visible={get(){let t=Mr(this,this[tt],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var io=(t,r,n,...o)=>t==="rgb"?r==="ansi16m"?ce[n].ansi16m(...o):r==="ansi256"?ce[n].ansi256(ce.rgbToAnsi256(...o)):ce[n].ansi(ce.rgbToAnsi(...o)):t==="hex"?io("rgb",r,n,...ce.hexToRgb(...o)):ce[n][t](...o),Th=["rgb","hex","ansi256"];for(let t of Th){rt[t]={get(){let{level:n}=this;return function(...o){let e=oo(io(t,md[n],"color",...o),ce.color.close,this[tt]);return Mr(this,e,this[Vt])}}};let r="bg"+t[0].toUpperCase()+t.slice(1);rt[r]={get(){let{level:n}=this;return function(...o){let e=oo(io(t,md[n],"bgColor",...o),ce.bgColor.close,this[tt]);return Mr(this,e,this[Vt])}}}}var jh=Object.defineProperties(()=>{},{...rt,level:{enumerable:!0,get(){return this[no].level},set(t){this[no].level=t}}}),oo=(t,r,n)=>{let o,e;return n===void 0?(o=t,e=r):(o=n.openAll+t,e=r+n.closeAll),{open:t,close:r,openAll:o,closeAll:e,parent:n}},Mr=(t,r,n)=>{let o=(...e)=>Ah(o,e.length===1?""+e[0]:e.join(" "));return Object.setPrototypeOf(o,jh),o[no]=t,o[tt]=r,o[Vt]=n,o},Ah=(t,r)=>{if(t.level<=0||!r)return t[Vt]?"":r;let n=t[tt];if(n===void 0)return r;let{openAll:o,closeAll:e}=n;if(r.includes("\x1B"))for(;n!==void 0;)r=cd(r,n.close,n.open),n=n.parent;let i=r.indexOf(`
33
+ `);return i!==-1&&(r=ud(r,e,o,i)),o+r+e};Object.defineProperties(Bt.prototype,rt);var Ch=Bt(),Dx=Bt({level:dd?dd.level:0});var A=Ch;function ee(t){return JSON.stringify(t,null,2)}function Se(t){console.log(A.green(`\u2713 ${t}`))}function Oe(t){console.error(A.red(`\u2717 ${t}`))}function ao(t){console.warn(A.yellow(`\u26A0 ${t}`))}function Ee(t){console.log(A.dim(t))}function so(){return process.stdout.isTTY===!0}function Pe(t){return t==="json"||t==="table"?t:so()?"table":"json"}var Nh=new Set(["production","prod","main"]);function Dh(t){return Pe(t.opts().format)}function I(t,r,n){if(Dh(t)==="json"){console.log(ee(n));return}Se(r)}async function N(t,r){if(r){if(r.length===36)return r;let o=(await t.listProducts()).find(e=>e.id===r||e.name.toLowerCase()===r.toLowerCase());if(o)return o.id}throw new Error("No product selected. Pass --product <id-or-name> or run `farthershore product create` first.")}async function Fr(t,r,n){let e=await t.listEnvironments(r),a=(Array.isArray(e.data)?e.data:Array.isArray(e.environments)?e.environments:[]).find(s=>s.name.toLowerCase()===n.toLowerCase()||s.id===n);if(!a)throw new Error(`Environment "${n}" not found on product ${r}.`);return a.id}function pd(t){let r=t?.trim();if(r)return Nh.has(r.toLowerCase())?null:r}function co(t){let r=pd(t);if(r!==void 0)return{name:r,production:r===null};let n=pd(process.env.FARTHERSHORE_ENV);return n!==void 0?{name:n,production:n===null}:{name:null,production:!0}}function uo(t){return t.production?void 0:t.name??void 0}async function Rh(t){if(!so())throw new k("No token provided. Pass --token, set FARTHERSHORE_TOKEN, or run interactively.",void 0,{code:"AUTH_NO_TOKEN"});let r=Uh({input:process.stdin,output:process.stdout,terminal:!0});return new Promise(n=>{r.question(t,o=>{r.close(),n(o.trim())})})}function fd(t,r){let n=t.command("auth").description("Manage CLI auth credentials");n.command("login").description("Store a maker token in ~/.farthershore/credentials.json").option("--token <token>","Maker token (mk_...). Falls back to FARTHERSHORE_TOKEN env, then prompt.").action(async o=>{let e=o.token??process.env.FARTHERSHORE_TOKEN??await Rh("Maker token: ");if(!e||e.length<10)throw new k("Token looks malformed.",void 0,{code:"AUTH_INVALID_TOKEN"});let i=Zr();Ql({...i??{},token:e}),I(t,"Token stored.",{ok:!0})}),n.command("whoami").description("Show current auth identity (org, role, scopes)").action(async()=>{let e=await r().bootstrap(),i=e.memberships.find(a=>a.organization.id===e.activeOrganization.id);I(t,`Authenticated as ${e.user.id}`,{ok:!0,userId:e.user.id,clerkUserId:e.user.clerkUserId,organizationId:e.activeOrganization.id,organizationName:e.activeOrganization.name??null,organizationSlug:e.activeOrganization.slug??null,role:i?.role??null,memberships:e.memberships.map(a=>({organizationId:a.organization.id,organizationName:a.organization.name??null,role:a.role}))})}),n.command("logout").description("Clear stored credentials").action(()=>{ed(),I(t,"Logged out.",{ok:!0})})}var Vr=[{id:"requests",label:"API requests",description:"Count every call \u2014 the right default for most APIs.",meters:[{key:"requests",display:"Requests",unit:"request"}]},{id:"ai-tokens",label:"AI tokens",description:"LLM-style token metering alongside calls. The gateway can estimate tokens per request and settle actuals from @farthershore/metering reports.",meters:[{key:"requests",display:"Requests",unit:"request"},{key:"tokens",display:"Tokens",unit:"token"}]},{id:"credits",label:"Credits",description:"Price work in abstract credits (e.g. one image = 5 credits). Report each call's dynamic credit cost through @farthershore/metering.",meters:[{key:"requests",display:"Requests",unit:"request"},{key:"credits",display:"Credits",unit:"credit"}]},{id:"spend",label:"Metered spend",description:"Pass-through spend in cents (OpenRouter-style) reported through @farthershore/metering. Pairs with prepaid credit wallets.",meters:[{key:"requests",display:"Requests",unit:"request"},{key:"dollars",display:"Spend",unit:"cent"}]},{id:"compute",label:"Compute time",description:"Bill milliseconds of compute, settled from @farthershore/metering reports.",meters:[{key:"requests",display:"Requests",unit:"request"},{key:"compute_ms",display:"Compute Time",unit:"ms"}]}];function gd(t){let r=t.trim().toLowerCase();return Vr.find(n=>n.id===r)}function hd(){return Vr.map(t=>t.id)}function Zh(t){return t.split("_").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" ")}function Lh(t){let[r="",n,o]=t.split(":");if(!/^[a-z0-9_]+$/.test(r))throw new k(`Invalid meter key in "--meter ${t}" \u2014 keys are lowercase letters, digits, and underscores (e.g. input_tokens).`,void 0,{code:"INVALID_METER_SPEC"});return{key:r,display:n?.trim()||Zh(r),unit:o?.trim()||void 0}}function Mh(t){let r=t.meter??[];if(r.length>0&&t.meters)throw new k("Pass either --meters <template> or repeated --meter entries, not both.",void 0,{code:"CONFLICTING_METER_FLAGS"});if(r.length>0){let n=r.map(Lh);if(new Set(n.map(e=>e.key)).size!==n.length)throw new k("Duplicate meter keys in --meter flags.",void 0,{code:"INVALID_METER_SPEC"});return n}if(t.meters){let n=gd(t.meters);if(!n)throw new k(`Unknown meter template "${t.meters}". Available: ${hd().join(", ")}.`,void 0,{code:"UNKNOWN_METER_TEMPLATE"});return n.meters.map(o=>({...o}))}}function vd(t,r){let n=t.command("product").description("Product lifecycle: list, show, create, update, delete, compile");n.command("list").description("List products in the current org").action(async()=>{let e=await r().listProducts();I(t,`${e.length} product(s)`,{ok:!0,count:e.length,products:e.map(i=>({id:i.id,name:i.name,displayName:i.displayName??null,baseUrl:i.baseUrl,status:i.status??null}))})}),n.command("show <productIdOrName>").description("Show a product").option("--env <env>","Environment scope (preview branch name)").action(async(o,e)=>{let i=r(),a=await N(i,o),s=await i.getProduct(a,{env:e.env});I(t,`Product ${a}`,{ok:!0,product:s})}),n.command("create").description("Create a new product and provision the frontend starter repo").requiredOption("--name <name>","Product slug (becomes the subdomain)").option("--display-name <displayName>","Human-friendly product name").option("--description <description>").option("--base-url <url>","Upstream API base URL the gateway proxies to").option("--meters <template>",`Meter template: ${Vr.map(o=>`${o.id} (${o.label})`).join(", ")}. Default: requests.`).option("--meter <key[:display[:unit]]>","Custom meter, repeatable (e.g. --meter input_tokens:'Input Tokens':token). Overrides --meters.",(o,e)=>[...e,o],[]).action(async o=>{let e=Mh(o),a=await r().initProduct({name:o.name,baseUrl:o.baseUrl,description:o.description,displayName:o.displayName,meters:e});I(t,`Product created: ${o.name}`,{ok:!0,result:a})}),n.command("update <productIdOrName>").description("Update product metadata (name, baseUrl, description, etc.)").option("--display-name <displayName>").option("--description <description>").option("--base-url <url>").option("--env <env>","Environment scope").action(async(o,e)=>{let i=r(),a=await N(i,o),s={};if(e.displayName!==void 0&&(s.displayName=e.displayName),e.description!==void 0&&(s.description=e.description),e.baseUrl!==void 0&&(s.baseUrl=e.baseUrl),Object.keys(s).length===0)throw new k("No fields to update. Pass --display-name / --base-url / --description.",void 0,{code:"PRODUCT_UPDATE_NO_FIELDS"});let u=await i.updateProduct(a,s,{env:e.env});I(t,`Product ${a} updated`,{ok:!0,product:u})}),n.command("publish <productIdOrName>").description("Publish a draft product (make it live). Requires at least one plan, a base URL, and a verified Stripe connection.").action(async o=>{let e=r(),i=await N(e,o),a=await e.publishProduct(i);I(t,`Product ${i} published`,{ok:!0,product:a})}),n.command("delete <productIdOrName>").description("Permanently delete a product. Requires --yes.").option("--yes","Skip confirmation; required for delete").action(async(o,e)=>{if(!e.yes)throw new k("Pass --yes to confirm product deletion.",void 0,{code:"DESTRUCTIVE_OP_REQUIRES_YES"});let i=r(),a=await N(i,o);await i.deleteProduct(a),I(t,`Product ${a} deleted`,{ok:!0,deleted:a})}),n.command("compile <productIdOrName>").description("Run the product compiler").option("--branch <branch>","Git branch to compile").option("--dry-run","Validate only; do not publish").action(async(o,e)=>{let i=r(),a=await N(i,o),s=await i.compileProduct(a,{branch:e.branch,dryRun:e.dryRun});I(t,`Compile complete for ${a}`,{ok:!0,result:s})})}function Fh(t){if(!t||typeof t!="object")return[];let r=t;return Array.isArray(r.data)?r.data:Array.isArray(r.environments)?r.environments:[]}function _d(t,r){let n=t.command("env").description("Manage product environments (preview branches, prod)");n.command("list <productIdOrName>").description("List environments for a product").action(async o=>{let e=r(),i=await N(e,o),a=Fh(await e.listEnvironments(i));I(t,`${a.length} environment(s)`,{ok:!0,productId:i,count:a.length,environments:a.map(s=>({id:s.id,name:s.name,branch:s.branch??null,portalHostname:s.portalHostname??null,runtimeHostname:s.runtimeHostname??null,status:s.status??null}))})}),n.command("create <productIdOrName>").description("Create a preview environment bound to a git branch").requiredOption("--name <name>","Environment name (e.g. preview, staging)").requiredOption("--branch <branch>","Git branch to track (e.g. env/preview)").action(async(o,e)=>{let i=r(),a=await N(i,o),s=await i.createEnvironment(a,{name:e.name,branch:e.branch});I(t,`Environment ${e.name} created`,{ok:!0,productId:a,environment:s})}),n.command("delete <productIdOrName> <envName>").description("Delete an environment by name. Requires --yes.").option("--yes","Skip confirmation; required for delete").action(async(o,e,i)=>{if(!i.yes)throw new k("Pass --yes to confirm environment deletion.",void 0,{code:"DESTRUCTIVE_OP_REQUIRES_YES"});let a=r(),s=await N(a,o);await a.deleteEnvironment(s,e),I(t,`Environment ${e} deleted`,{ok:!0,productId:s,deleted:e})})}var c={};xe(c,{$brand:()=>mo,$input:()=>As,$output:()=>js,NEVER:()=>lo,TimePrecision:()=>Us,ZodAny:()=>Iu,ZodArray:()=>Pu,ZodBase64:()=>vi,ZodBase64URL:()=>_i,ZodBigInt:()=>At,ZodBigIntFormat:()=>$i,ZodBoolean:()=>jt,ZodCIDRv4:()=>gi,ZodCIDRv6:()=>hi,ZodCUID:()=>ci,ZodCUID2:()=>ui,ZodCatch:()=>Xu,ZodCodec:()=>kr,ZodCustom:()=>Sr,ZodCustomStringFormat:()=>Pt,ZodDate:()=>_r,ZodDefault:()=>Gu,ZodDiscriminatedUnion:()=>ju,ZodE164:()=>yi,ZodEmail:()=>oi,ZodEmoji:()=>ai,ZodEnum:()=>Ot,ZodError:()=>yy,ZodExactOptional:()=>Vu,ZodFile:()=>Mu,ZodFirstPartyTypeKind:()=>dl,ZodFunction:()=>cl,ZodGUID:()=>pr,ZodIPv4:()=>pi,ZodIPv6:()=>fi,ZodISODate:()=>Qn,ZodISODateTime:()=>Xn,ZodISODuration:()=>ti,ZodISOTime:()=>ei,ZodIntersection:()=>Au,ZodIssueCode:()=>$y,ZodJWT:()=>bi,ZodKSUID:()=>mi,ZodLazy:()=>ol,ZodLiteral:()=>Lu,ZodMAC:()=>yu,ZodMap:()=>Ru,ZodNaN:()=>el,ZodNanoID:()=>si,ZodNever:()=>Ou,ZodNonOptional:()=>zi,ZodNull:()=>Su,ZodNullable:()=>Hu,ZodNumber:()=>Tt,ZodNumberFormat:()=>Xe,ZodObject:()=>br,ZodOptional:()=>Ii,ZodPipe:()=>xr,ZodPrefault:()=>Ju,ZodPreprocess:()=>tl,ZodPromise:()=>sl,ZodReadonly:()=>rl,ZodRealError:()=>Q,ZodRecord:()=>zt,ZodSet:()=>Zu,ZodString:()=>Et,ZodStringFormat:()=>j,ZodSuccess:()=>Yu,ZodSymbol:()=>xu,ZodTemplateLiteral:()=>il,ZodTransform:()=>Fu,ZodTuple:()=>Nu,ZodType:()=>w,ZodULID:()=>li,ZodURL:()=>vr,ZodUUID:()=>ye,ZodUndefined:()=>ku,ZodUnion:()=>$r,ZodUnknown:()=>zu,ZodVoid:()=>Eu,ZodXID:()=>di,ZodXor:()=>Tu,_ZodString:()=>ii,_default:()=>Wu,_function:()=>sf,any:()=>Up,array:()=>yr,base64:()=>bp,base64url:()=>$p,bigint:()=>jp,boolean:()=>$u,catch:()=>Qu,check:()=>cf,cidrv4:()=>_p,cidrv6:()=>yp,clone:()=>G,codec:()=>rf,coerce:()=>ml,config:()=>Z,core:()=>ze,cuid:()=>lp,cuid2:()=>dp,custom:()=>uf,date:()=>Zp,decode:()=>mu,decodeAsync:()=>fu,describe:()=>lf,discriminatedUnion:()=>Hp,e164:()=>xp,email:()=>ep,emoji:()=>cp,encode:()=>du,encodeAsync:()=>pu,endsWith:()=>vt,enum:()=>Si,exactOptional:()=>Bu,file:()=>Xp,flattenError:()=>Qt,float32:()=>Op,float64:()=>Ep,formatError:()=>er,fromJSONSchema:()=>vf,function:()=>sf,getErrorMap:()=>ky,globalRegistry:()=>V,gt:()=>ve,gte:()=>J,guid:()=>tp,hash:()=>zp,hex:()=>Ip,hostname:()=>wp,httpUrl:()=>sp,includes:()=>gt,instanceof:()=>mf,int:()=>ri,int32:()=>Pp,int64:()=>Ap,intersection:()=>Cu,invertCodec:()=>nf,ipv4:()=>gp,ipv6:()=>vp,iso:()=>It,json:()=>ff,jwt:()=>kp,keyof:()=>Lp,ksuid:()=>fp,lazy:()=>al,length:()=>Ke,literal:()=>Yp,locales:()=>cr,looseObject:()=>Vp,looseRecord:()=>Wp,lowercase:()=>pt,lt:()=>he,lte:()=>re,mac:()=>hp,map:()=>Jp,maxLength:()=>qe,maxSize:()=>Ue,meta:()=>df,mime:()=>_t,minLength:()=>Ie,minSize:()=>_e,multipleOf:()=>De,nan:()=>tf,nanoid:()=>up,nativeEnum:()=>Kp,negative:()=>Fn,never:()=>xi,nonnegative:()=>Bn,nonoptional:()=>Ku,nonpositive:()=>Vn,normalize:()=>yt,null:()=>wu,nullable:()=>gr,nullish:()=>Qp,number:()=>bu,object:()=>Mp,optional:()=>fr,overwrite:()=>le,parse:()=>su,parseAsync:()=>cu,partialRecord:()=>Gp,pipe:()=>ni,positive:()=>Mn,prefault:()=>qu,preprocess:()=>gf,prettifyError:()=>wo,promise:()=>af,property:()=>Hn,readonly:()=>nl,record:()=>Uu,refine:()=>ul,regex:()=>mt,regexes:()=>te,registry:()=>bn,safeDecode:()=>hu,safeDecodeAsync:()=>_u,safeEncode:()=>gu,safeEncodeAsync:()=>vu,safeParse:()=>uu,safeParseAsync:()=>lu,set:()=>qp,setErrorMap:()=>xy,size:()=>Je,slugify:()=>kt,startsWith:()=>ht,strictObject:()=>Fp,string:()=>mr,stringFormat:()=>Sp,stringbool:()=>pf,success:()=>ef,superRefine:()=>ll,symbol:()=>Np,templateLiteral:()=>of,toJSONSchema:()=>qn,toLowerCase:()=>$t,toUpperCase:()=>xt,transform:()=>wi,treeifyError:()=>So,trim:()=>bt,tuple:()=>Du,uint32:()=>Tp,uint64:()=>Cp,ulid:()=>mp,undefined:()=>Dp,union:()=>ki,unknown:()=>Ye,uppercase:()=>ft,url:()=>ap,util:()=>y,uuid:()=>rp,uuidv4:()=>np,uuidv6:()=>ip,uuidv7:()=>op,void:()=>Rp,xid:()=>pp,xor:()=>Bp});var ze={};xe(ze,{$ZodAny:()=>es,$ZodArray:()=>os,$ZodAsyncError:()=>ue,$ZodBase64:()=>Ba,$ZodBase64URL:()=>Ha,$ZodBigInt:()=>mn,$ZodBigIntFormat:()=>Ka,$ZodBoolean:()=>ir,$ZodCIDRv4:()=>Ma,$ZodCIDRv6:()=>Fa,$ZodCUID:()=>Ea,$ZodCUID2:()=>Pa,$ZodCatch:()=>ks,$ZodCheck:()=>C,$ZodCheckBigIntFormat:()=>oa,$ZodCheckEndsWith:()=>va,$ZodCheckGreaterThan:()=>an,$ZodCheckIncludes:()=>ga,$ZodCheckLengthEquals:()=>da,$ZodCheckLessThan:()=>on,$ZodCheckLowerCase:()=>pa,$ZodCheckMaxLength:()=>ua,$ZodCheckMaxSize:()=>aa,$ZodCheckMimeType:()=>ya,$ZodCheckMinLength:()=>la,$ZodCheckMinSize:()=>sa,$ZodCheckMultipleOf:()=>na,$ZodCheckNumberFormat:()=>ia,$ZodCheckOverwrite:()=>ba,$ZodCheckProperty:()=>_a,$ZodCheckRegex:()=>ma,$ZodCheckSizeEquals:()=>ca,$ZodCheckStartsWith:()=>ha,$ZodCheckStringFormat:()=>lt,$ZodCheckUpperCase:()=>fa,$ZodCodec:()=>ar,$ZodCustom:()=>Ts,$ZodCustomStringFormat:()=>Ja,$ZodDate:()=>is,$ZodDefault:()=>ys,$ZodDiscriminatedUnion:()=>cs,$ZodE164:()=>Ga,$ZodEmail:()=>wa,$ZodEmoji:()=>za,$ZodEncodeError:()=>Te,$ZodEnum:()=>ps,$ZodError:()=>Xt,$ZodExactOptional:()=>vs,$ZodFile:()=>gs,$ZodFunction:()=>Os,$ZodGUID:()=>ka,$ZodIPv4:()=>Ra,$ZodIPv6:()=>Za,$ZodISODate:()=>Na,$ZodISODateTime:()=>Ca,$ZodISODuration:()=>Ua,$ZodISOTime:()=>Da,$ZodIntersection:()=>us,$ZodJWT:()=>Wa,$ZodKSUID:()=>Aa,$ZodLazy:()=>Ps,$ZodLiteral:()=>fs,$ZodMAC:()=>La,$ZodMap:()=>ds,$ZodNaN:()=>Ss,$ZodNanoID:()=>Oa,$ZodNever:()=>rs,$ZodNonOptional:()=>$s,$ZodNull:()=>Qa,$ZodNullable:()=>_s,$ZodNumber:()=>dn,$ZodNumberFormat:()=>qa,$ZodObject:()=>qd,$ZodObjectJIT:()=>as,$ZodOptional:()=>fn,$ZodPipe:()=>gn,$ZodPrefault:()=>bs,$ZodPreprocess:()=>ws,$ZodPromise:()=>Es,$ZodReadonly:()=>Is,$ZodRealError:()=>X,$ZodRecord:()=>ls,$ZodRegistry:()=>yn,$ZodSet:()=>ms,$ZodString:()=>We,$ZodStringFormat:()=>T,$ZodSuccess:()=>xs,$ZodSymbol:()=>Ya,$ZodTemplateLiteral:()=>zs,$ZodTransform:()=>hs,$ZodTuple:()=>pn,$ZodType:()=>S,$ZodULID:()=>Ta,$ZodURL:()=>Ia,$ZodUUID:()=>Sa,$ZodUndefined:()=>Xa,$ZodUnion:()=>or,$ZodUnknown:()=>ts,$ZodVoid:()=>ns,$ZodXID:()=>ja,$ZodXor:()=>ss,$brand:()=>mo,$constructor:()=>p,$input:()=>As,$output:()=>js,Doc:()=>nr,JSONSchema:()=>Ym,JSONSchemaGenerator:()=>Kn,NEVER:()=>lo,TimePrecision:()=>Us,_any:()=>ic,_array:()=>dc,_base64:()=>Un,_base64url:()=>Rn,_bigint:()=>Ys,_boolean:()=>qs,_catch:()=>dy,_check:()=>Km,_cidrv4:()=>Nn,_cidrv6:()=>Dn,_coercedBigint:()=>Xs,_coercedBoolean:()=>Ks,_coercedDate:()=>uc,_coercedNumber:()=>Vs,_coercedString:()=>Ns,_cuid:()=>On,_cuid2:()=>En,_custom:()=>pc,_date:()=>cc,_decode:()=>qr,_decodeAsync:()=>Yr,_default:()=>cy,_discriminatedUnion:()=>K_,_e164:()=>Zn,_email:()=>$n,_emoji:()=>In,_encode:()=>Jr,_encodeAsync:()=>Kr,_endsWith:()=>vt,_enum:()=>ry,_file:()=>mc,_float32:()=>Hs,_float64:()=>Gs,_gt:()=>ve,_gte:()=>J,_guid:()=>ur,_includes:()=>gt,_int:()=>Bs,_int32:()=>Ws,_int64:()=>Qs,_intersection:()=>Y_,_ipv4:()=>An,_ipv6:()=>Cn,_isoDate:()=>Zs,_isoDateTime:()=>Rs,_isoDuration:()=>Ms,_isoTime:()=>Ls,_jwt:()=>Ln,_ksuid:()=>jn,_lazy:()=>gy,_length:()=>Ke,_literal:()=>iy,_lowercase:()=>pt,_lt:()=>he,_lte:()=>re,_mac:()=>Ds,_map:()=>ey,_max:()=>re,_maxLength:()=>qe,_maxSize:()=>Ue,_mime:()=>_t,_min:()=>J,_minLength:()=>Ie,_minSize:()=>_e,_multipleOf:()=>De,_nan:()=>lc,_nanoid:()=>zn,_nativeEnum:()=>ny,_negative:()=>Fn,_never:()=>ac,_nonnegative:()=>Bn,_nonoptional:()=>uy,_nonpositive:()=>Vn,_normalize:()=>yt,_null:()=>nc,_nullable:()=>sy,_number:()=>Fs,_optional:()=>ay,_overwrite:()=>le,_parse:()=>at,_parseAsync:()=>st,_pipe:()=>my,_positive:()=>Mn,_promise:()=>hy,_property:()=>Hn,_readonly:()=>py,_record:()=>Q_,_refine:()=>fc,_regex:()=>mt,_safeDecode:()=>Qr,_safeDecodeAsync:()=>tn,_safeEncode:()=>Xr,_safeEncodeAsync:()=>en,_safeParse:()=>ct,_safeParseAsync:()=>ut,_set:()=>ty,_size:()=>Je,_slugify:()=>kt,_startsWith:()=>ht,_string:()=>Cs,_stringFormat:()=>St,_stringbool:()=>_c,_success:()=>ly,_superRefine:()=>gc,_symbol:()=>tc,_templateLiteral:()=>fy,_toLowerCase:()=>$t,_toUpperCase:()=>xt,_transform:()=>oy,_trim:()=>bt,_tuple:()=>X_,_uint32:()=>Js,_uint64:()=>ec,_ulid:()=>Pn,_undefined:()=>rc,_union:()=>J_,_unknown:()=>oc,_uppercase:()=>ft,_url:()=>lr,_uuid:()=>xn,_uuidv4:()=>kn,_uuidv6:()=>Sn,_uuidv7:()=>wn,_void:()=>sc,_xid:()=>Tn,_xor:()=>q_,clone:()=>G,config:()=>Z,createStandardJSONSchemaMethod:()=>wt,createToJSONSchemaMethod:()=>yc,decode:()=>hv,decodeAsync:()=>_v,describe:()=>hc,encode:()=>gv,encodeAsync:()=>vv,extractDefs:()=>Ze,finalize:()=>Le,flattenError:()=>Qt,formatError:()=>er,globalConfig:()=>Be,globalRegistry:()=>V,initializeContext:()=>Re,isValidBase64:()=>Va,isValidBase64URL:()=>Hd,isValidJWT:()=>Gd,locales:()=>cr,meta:()=>vc,parse:()=>Gr,parseAsync:()=>Wr,prettifyError:()=>wo,process:()=>P,regexes:()=>te,registry:()=>bn,safeDecode:()=>bv,safeDecodeAsync:()=>xv,safeEncode:()=>yv,safeEncodeAsync:()=>$v,safeParse:()=>Io,safeParseAsync:()=>zo,toDotPath:()=>Sd,toJSONSchema:()=>qn,treeifyError:()=>So,util:()=>y,version:()=>$a});var yd,lo=Object.freeze({status:"aborted"});function p(t,r,n){function o(s,u){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:u,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(t))return;s._zod.traits.add(t),r(s,u);let l=a.prototype,d=Object.keys(l);for(let m=0;m<d.length;m++){let g=d[m];g in s||(s[g]=l[g].bind(s))}}let e=n?.Parent??Object;class i extends e{}Object.defineProperty(i,"name",{value:t});function a(s){var u;let l=n?.Parent?new i:this;o(l,s),(u=l._zod).deferred??(u.deferred=[]);for(let d of l._zod.deferred)d();return l}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>n?.Parent&&s instanceof n.Parent?!0:s?._zod?.traits?.has(t)}),Object.defineProperty(a,"name",{value:t}),a}var mo=Symbol("zod_brand"),ue=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Te=class extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}};(yd=globalThis).__zod_globalConfig??(yd.__zod_globalConfig={});var Be=globalThis.__zod_globalConfig;function Z(t){return t&&Object.assign(Be,t),Be}var y={};xe(y,{BIGINT_FORMAT_RANGES:()=>xo,Class:()=>fo,NUMBER_FORMAT_RANGES:()=>$o,aborted:()=>Ne,allowsEval:()=>vo,assert:()=>Wh,assertEqual:()=>Vh,assertIs:()=>Hh,assertNever:()=>Gh,assertNotEqual:()=>Bh,assignProp:()=>Ae,base64ToUint8Array:()=>$d,base64urlToUint8Array:()=>lv,cached:()=>it,captureStackTrace:()=>Hr,cleanEnum:()=>uv,cleanRegex:()=>Jt,clone:()=>G,cloneDef:()=>qh,createTransparentProxy:()=>tv,defineLazy:()=>z,esc:()=>Br,escapeRegex:()=>se,explicitlyAborted:()=>ko,extend:()=>iv,finalizeIssue:()=>W,floatSafeRemainder:()=>go,getElementAtPath:()=>Kh,getEnumValues:()=>Wt,getLengthableOrigin:()=>Yt,getParsedType:()=>ev,getSizableOrigin:()=>Kt,hexToUint8Array:()=>mv,isObject:()=>He,isPlainObject:()=>Ce,issue:()=>ot,joinValues:()=>f,jsonStringifyReplacer:()=>nt,merge:()=>av,mergeDefs:()=>we,normalizeParams:()=>b,nullish:()=>je,numKeys:()=>Qh,objectClone:()=>Jh,omit:()=>nv,optionalKeys:()=>bo,parsedType:()=>v,partial:()=>sv,pick:()=>rv,prefixIssues:()=>Y,primitiveTypes:()=>yo,promiseAllObject:()=>Yh,propertyKeyTypes:()=>qt,randomString:()=>Xh,required:()=>cv,safeExtend:()=>ov,shallowClone:()=>_o,slugify:()=>ho,stringifyPrimitive:()=>h,uint8ArrayToBase64:()=>xd,uint8ArrayToBase64url:()=>dv,uint8ArrayToHex:()=>pv,unwrapMessage:()=>Gt});function Vh(t){return t}function Bh(t){return t}function Hh(t){}function Gh(t){throw new Error("Unexpected value in exhaustive check")}function Wh(t){}function Wt(t){let r=Object.values(t).filter(o=>typeof o=="number");return Object.entries(t).filter(([o,e])=>r.indexOf(+o)===-1).map(([o,e])=>e)}function f(t,r="|"){return t.map(n=>h(n)).join(r)}function nt(t,r){return typeof r=="bigint"?r.toString():r}function it(t){return{get value(){{let n=t();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function je(t){return t==null}function Jt(t){let r=t.startsWith("^")?1:0,n=t.endsWith("$")?t.length-1:t.length;return t.slice(r,n)}function go(t,r){let n=t/r,o=Math.round(n),e=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-o)<e?0:n-o}var bd=Symbol("evaluating");function z(t,r,n){let o;Object.defineProperty(t,r,{get(){if(o!==bd)return o===void 0&&(o=bd,o=n()),o},set(e){Object.defineProperty(t,r,{value:e})},configurable:!0})}function Jh(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}function Ae(t,r,n){Object.defineProperty(t,r,{value:n,writable:!0,enumerable:!0,configurable:!0})}function we(...t){let r={};for(let n of t){let o=Object.getOwnPropertyDescriptors(n);Object.assign(r,o)}return Object.defineProperties({},r)}function qh(t){return we(t._zod.def)}function Kh(t,r){return r?r.reduce((n,o)=>n?.[o],t):t}function Yh(t){let r=Object.keys(t),n=r.map(o=>t[o]);return Promise.all(n).then(o=>{let e={};for(let i=0;i<r.length;i++)e[r[i]]=o[i];return e})}function Xh(t=10){let r="abcdefghijklmnopqrstuvwxyz",n="";for(let o=0;o<t;o++)n+=r[Math.floor(Math.random()*r.length)];return n}function Br(t){return JSON.stringify(t)}function ho(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Hr="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function He(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var vo=it(()=>{if(Be.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function Ce(t){if(He(t)===!1)return!1;let r=t.constructor;if(r===void 0||typeof r!="function")return!0;let n=r.prototype;return!(He(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function _o(t){return Ce(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}function Qh(t){let r=0;for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&r++;return r}var ev=t=>{let r=typeof t;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},qt=new Set(["string","number","symbol"]),yo=new Set(["string","number","bigint","boolean","symbol","undefined"]);function se(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function G(t,r,n){let o=new t._zod.constr(r??t._zod.def);return(!r||n?.parent)&&(o._zod.parent=t),o}function b(t){let r=t;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function tv(t){let r;return new Proxy({},{get(n,o,e){return r??(r=t()),Reflect.get(r,o,e)},set(n,o,e,i){return r??(r=t()),Reflect.set(r,o,e,i)},has(n,o){return r??(r=t()),Reflect.has(r,o)},deleteProperty(n,o){return r??(r=t()),Reflect.deleteProperty(r,o)},ownKeys(n){return r??(r=t()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(n,o){return r??(r=t()),Reflect.getOwnPropertyDescriptor(r,o)},defineProperty(n,o,e){return r??(r=t()),Reflect.defineProperty(r,o,e)}})}function h(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function bo(t){return Object.keys(t).filter(r=>t[r]._zod.optin==="optional"&&t[r]._zod.optout==="optional")}var $o={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},xo={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function rv(t,r){let n=t._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=we(t._zod.def,{get shape(){let a={};for(let s in r){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(a[s]=n.shape[s])}return Ae(this,"shape",a),a},checks:[]});return G(t,i)}function nv(t,r){let n=t._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=we(t._zod.def,{get shape(){let a={...t._zod.def.shape};for(let s in r){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);r[s]&&delete a[s]}return Ae(this,"shape",a),a},checks:[]});return G(t,i)}function iv(t,r){if(!Ce(r))throw new Error("Invalid input to extend: expected a plain object");let n=t._zod.def.checks;if(n&&n.length>0){let i=t._zod.def.shape;for(let a in r)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let e=we(t._zod.def,{get shape(){let i={...t._zod.def.shape,...r};return Ae(this,"shape",i),i}});return G(t,e)}function ov(t,r){if(!Ce(r))throw new Error("Invalid input to safeExtend: expected a plain object");let n=we(t._zod.def,{get shape(){let o={...t._zod.def.shape,...r};return Ae(this,"shape",o),o}});return G(t,n)}function av(t,r){if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n=we(t._zod.def,{get shape(){let o={...t._zod.def.shape,...r._zod.def.shape};return Ae(this,"shape",o),o},get catchall(){return r._zod.def.catchall},checks:r._zod.def.checks??[]});return G(t,n)}function sv(t,r,n){let e=r._zod.def.checks;if(e&&e.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=we(r._zod.def,{get shape(){let s=r._zod.def.shape,u={...s};if(n)for(let l in n){if(!(l in s))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(u[l]=t?new t({type:"optional",innerType:s[l]}):s[l])}else for(let l in s)u[l]=t?new t({type:"optional",innerType:s[l]}):s[l];return Ae(this,"shape",u),u},checks:[]});return G(r,a)}function cv(t,r,n){let o=we(r._zod.def,{get shape(){let e=r._zod.def.shape,i={...e};if(n)for(let a in n){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=new t({type:"nonoptional",innerType:e[a]}))}else for(let a in e)i[a]=new t({type:"nonoptional",innerType:e[a]});return Ae(this,"shape",i),i}});return G(r,o)}function Ne(t,r=0){if(t.aborted===!0)return!0;for(let n=r;n<t.issues.length;n++)if(t.issues[n]?.continue!==!0)return!0;return!1}function ko(t,r=0){if(t.aborted===!0)return!0;for(let n=r;n<t.issues.length;n++)if(t.issues[n]?.continue===!1)return!0;return!1}function Y(t,r){return r.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(t),n})}function Gt(t){return typeof t=="string"?t:t?.message}function W(t,r,n){let o=t.message?t.message:Gt(t.inst?._zod.def?.error?.(t))??Gt(r?.error?.(t))??Gt(n.customError?.(t))??Gt(n.localeError?.(t))??"Invalid input",{inst:e,continue:i,input:a,...s}=t;return s.path??(s.path=[]),s.message=o,r?.reportInput&&(s.input=a),s}function Kt(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function Yt(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function v(t){let r=typeof t;switch(r){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let n=t;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return r}function ot(...t){let[r,n,o]=t;return typeof r=="string"?{message:r,code:"custom",input:n,inst:o}:{...r}}function uv(t){return Object.entries(t).filter(([r,n])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function $d(t){let r=atob(t),n=new Uint8Array(r.length);for(let o=0;o<r.length;o++)n[o]=r.charCodeAt(o);return n}function xd(t){let r="";for(let n=0;n<t.length;n++)r+=String.fromCharCode(t[n]);return btoa(r)}function lv(t){let r=t.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-r.length%4)%4);return $d(r+n)}function dv(t){return xd(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function mv(t){let r=t.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(r.length/2);for(let o=0;o<r.length;o+=2)n[o/2]=Number.parseInt(r.slice(o,o+2),16);return n}function pv(t){return Array.from(t).map(r=>r.toString(16).padStart(2,"0")).join("")}var fo=class{constructor(...r){}};var kd=(t,r)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:r,enumerable:!1}),t.message=JSON.stringify(r,nt,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},Xt=p("$ZodError",kd),X=p("$ZodError",kd,{Parent:Error});function Qt(t,r=n=>n.message){let n={},o=[];for(let e of t.issues)e.path.length>0?(n[e.path[0]]=n[e.path[0]]||[],n[e.path[0]].push(r(e))):o.push(r(e));return{formErrors:o,fieldErrors:n}}function er(t,r=n=>n.message){let n={_errors:[]},o=(e,i=[])=>{for(let a of e.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>o({issues:s},[...i,...a.path]));else if(a.code==="invalid_key")o({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")o({issues:a.issues},[...i,...a.path]);else{let s=[...i,...a.path];if(s.length===0)n._errors.push(r(a));else{let u=n,l=0;for(;l<s.length;){let d=s[l];l===s.length-1?(u[d]=u[d]||{_errors:[]},u[d]._errors.push(r(a))):u[d]=u[d]||{_errors:[]},u=u[d],l++}}}};return o(t),n}function So(t,r=n=>n.message){let n={errors:[]},o=(e,i=[])=>{var a,s;for(let u of e.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(l=>o({issues:l},[...i,...u.path]));else if(u.code==="invalid_key")o({issues:u.issues},[...i,...u.path]);else if(u.code==="invalid_element")o({issues:u.issues},[...i,...u.path]);else{let l=[...i,...u.path];if(l.length===0){n.errors.push(r(u));continue}let d=n,m=0;for(;m<l.length;){let g=l[m],_=m===l.length-1;typeof g=="string"?(d.properties??(d.properties={}),(a=d.properties)[g]??(a[g]={errors:[]}),d=d.properties[g]):(d.items??(d.items=[]),(s=d.items)[g]??(s[g]={errors:[]}),d=d.items[g]),_&&d.errors.push(r(u)),m++}}};return o(t),n}function Sd(t){let r=[],n=t.map(o=>typeof o=="object"?o.key:o);for(let o of n)typeof o=="number"?r.push(`[${o}]`):typeof o=="symbol"?r.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?r.push(`[${JSON.stringify(o)}]`):(r.length&&r.push("."),r.push(o));return r.join("")}function wo(t){let r=[],n=[...t.issues].sort((o,e)=>(o.path??[]).length-(e.path??[]).length);for(let o of n)r.push(`\u2716 ${o.message}`),o.path?.length&&r.push(` \u2192 at ${Sd(o.path)}`);return r.join(`
34
+ `)}var at=t=>(r,n,o,e)=>{let i=o?{...o,async:!1}:{async:!1},a=r._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new ue;if(a.issues.length){let s=new(e?.Err??t)(a.issues.map(u=>W(u,i,Z())));throw Hr(s,e?.callee),s}return a.value},Gr=at(X),st=t=>async(r,n,o,e)=>{let i=o?{...o,async:!0}:{async:!0},a=r._zod.run({value:n,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(e?.Err??t)(a.issues.map(u=>W(u,i,Z())));throw Hr(s,e?.callee),s}return a.value},Wr=st(X),ct=t=>(r,n,o)=>{let e=o?{...o,async:!1}:{async:!1},i=r._zod.run({value:n,issues:[]},e);if(i instanceof Promise)throw new ue;return i.issues.length?{success:!1,error:new(t??Xt)(i.issues.map(a=>W(a,e,Z())))}:{success:!0,data:i.value}},Io=ct(X),ut=t=>async(r,n,o)=>{let e=o?{...o,async:!0}:{async:!0},i=r._zod.run({value:n,issues:[]},e);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new t(i.issues.map(a=>W(a,e,Z())))}:{success:!0,data:i.value}},zo=ut(X),Jr=t=>(r,n,o)=>{let e=o?{...o,direction:"backward"}:{direction:"backward"};return at(t)(r,n,e)},gv=Jr(X),qr=t=>(r,n,o)=>at(t)(r,n,o),hv=qr(X),Kr=t=>async(r,n,o)=>{let e=o?{...o,direction:"backward"}:{direction:"backward"};return st(t)(r,n,e)},vv=Kr(X),Yr=t=>async(r,n,o)=>st(t)(r,n,o),_v=Yr(X),Xr=t=>(r,n,o)=>{let e=o?{...o,direction:"backward"}:{direction:"backward"};return ct(t)(r,n,e)},yv=Xr(X),Qr=t=>(r,n,o)=>ct(t)(r,n,o),bv=Qr(X),en=t=>async(r,n,o)=>{let e=o?{...o,direction:"backward"}:{direction:"backward"};return ut(t)(r,n,e)},$v=en(X),tn=t=>async(r,n,o)=>ut(t)(r,n,o),xv=tn(X);var te={};xe(te,{base64:()=>Vo,base64url:()=>rn,bigint:()=>Ko,boolean:()=>Xo,browserEmail:()=>Pv,cidrv4:()=>Mo,cidrv6:()=>Fo,cuid:()=>Oo,cuid2:()=>Eo,date:()=>Go,datetime:()=>Jo,domain:()=>Av,duration:()=>Co,e164:()=>Ho,email:()=>Do,emoji:()=>Uo,extendedDuration:()=>kv,guid:()=>No,hex:()=>Cv,hostname:()=>jv,html5Email:()=>zv,httpProtocol:()=>Bo,idnEmail:()=>Ev,integer:()=>Yo,ipv4:()=>Ro,ipv6:()=>Zo,ksuid:()=>jo,lowercase:()=>ta,mac:()=>Lo,md5_base64:()=>Dv,md5_base64url:()=>Uv,md5_hex:()=>Nv,nanoid:()=>Ao,null:()=>Qo,number:()=>nn,rfc5322Email:()=>Ov,sha1_base64:()=>Zv,sha1_base64url:()=>Lv,sha1_hex:()=>Rv,sha256_base64:()=>Fv,sha256_base64url:()=>Vv,sha256_hex:()=>Mv,sha384_base64:()=>Hv,sha384_base64url:()=>Gv,sha384_hex:()=>Bv,sha512_base64:()=>Jv,sha512_base64url:()=>qv,sha512_hex:()=>Wv,string:()=>qo,time:()=>Wo,ulid:()=>Po,undefined:()=>ea,unicodeEmail:()=>wd,uppercase:()=>ra,uuid:()=>Ge,uuid4:()=>Sv,uuid6:()=>wv,uuid7:()=>Iv,xid:()=>To});var Oo=/^[cC][0-9a-z]{6,}$/,Eo=/^[0-9a-z]+$/,Po=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,To=/^[0-9a-vA-V]{20}$/,jo=/^[A-Za-z0-9]{27}$/,Ao=/^[a-zA-Z0-9_-]{21}$/,Co=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,kv=/^[-+]?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)?)??$/,No=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Ge=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Sv=Ge(4),wv=Ge(6),Iv=Ge(7),Do=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,zv=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ov=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,wd=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Ev=wd,Pv=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Tv="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Uo(){return new RegExp(Tv,"u")}var Ro=/^(?:(?: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])$/,Zo=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,Lo=t=>{let r=se(t??":");return new RegExp(`^(?:[0-9A-F]{2}${r}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${r}){5}[0-9a-f]{2}$`)},Mo=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,Fo=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Vo=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,rn=/^[A-Za-z0-9_-]*$/,jv=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Av=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Bo=/^https?$/,Ho=/^\+[1-9]\d{6,14}$/,Id="(?:(?:\\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])))",Go=new RegExp(`^${Id}$`);function zd(t){let r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${r}`:t.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${t.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Wo(t){return new RegExp(`^${zd(t)}$`)}function Jo(t){let r=zd({precision:t.precision}),n=["Z"];t.local&&n.push(""),t.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${r}(?:${n.join("|")})`;return new RegExp(`^${Id}T(?:${o})$`)}var qo=t=>{let r=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},Ko=/^-?\d+n?$/,Yo=/^-?\d+$/,nn=/^-?\d+(?:\.\d+)?$/,Xo=/^(?:true|false)$/i,Qo=/^null$/i;var ea=/^undefined$/i;var ta=/^[^A-Z]*$/,ra=/^[^a-z]*$/,Cv=/^[0-9a-fA-F]*$/;function tr(t,r){return new RegExp(`^[A-Za-z0-9+/]{${t}}${r}$`)}function rr(t){return new RegExp(`^[A-Za-z0-9_-]{${t}}$`)}var Nv=/^[0-9a-fA-F]{32}$/,Dv=tr(22,"=="),Uv=rr(22),Rv=/^[0-9a-fA-F]{40}$/,Zv=tr(27,"="),Lv=rr(27),Mv=/^[0-9a-fA-F]{64}$/,Fv=tr(43,"="),Vv=rr(43),Bv=/^[0-9a-fA-F]{96}$/,Hv=tr(64,""),Gv=rr(64),Wv=/^[0-9a-fA-F]{128}$/,Jv=tr(86,"=="),qv=rr(86);var C=p("$ZodCheck",(t,r)=>{var n;t._zod??(t._zod={}),t._zod.def=r,(n=t._zod).onattach??(n.onattach=[])}),Ed={number:"number",bigint:"bigint",object:"date"},on=p("$ZodCheckLessThan",(t,r)=>{C.init(t,r);let n=Ed[typeof r.value];t._zod.onattach.push(o=>{let e=o._zod.bag,i=(r.inclusive?e.maximum:e.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<i&&(r.inclusive?e.maximum=r.value:e.exclusiveMaximum=r.value)}),t._zod.check=o=>{(r.inclusive?o.value<=r.value:o.value<r.value)||o.issues.push({origin:n,code:"too_big",maximum:typeof r.value=="object"?r.value.getTime():r.value,input:o.value,inclusive:r.inclusive,inst:t,continue:!r.abort})}}),an=p("$ZodCheckGreaterThan",(t,r)=>{C.init(t,r);let n=Ed[typeof r.value];t._zod.onattach.push(o=>{let e=o._zod.bag,i=(r.inclusive?e.minimum:e.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>i&&(r.inclusive?e.minimum=r.value:e.exclusiveMinimum=r.value)}),t._zod.check=o=>{(r.inclusive?o.value>=r.value:o.value>r.value)||o.issues.push({origin:n,code:"too_small",minimum:typeof r.value=="object"?r.value.getTime():r.value,input:o.value,inclusive:r.inclusive,inst:t,continue:!r.abort})}}),na=p("$ZodCheckMultipleOf",(t,r)=>{C.init(t,r),t._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=r.value)}),t._zod.check=n=>{if(typeof n.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%r.value===BigInt(0):go(n.value,r.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:r.value,input:n.value,inst:t,continue:!r.abort})}}),ia=p("$ZodCheckNumberFormat",(t,r)=>{C.init(t,r),r.format=r.format||"float64";let n=r.format?.includes("int"),o=n?"int":"number",[e,i]=$o[r.format];t._zod.onattach.push(a=>{let s=a._zod.bag;s.format=r.format,s.minimum=e,s.maximum=i,n&&(s.pattern=Yo)}),t._zod.check=a=>{let s=a.value;if(n){if(!Number.isInteger(s)){a.issues.push({expected:o,format:r.format,code:"invalid_type",continue:!1,input:s,inst:t});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:o,inclusive:!0,continue:!r.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:o,inclusive:!0,continue:!r.abort});return}}s<e&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:e,inclusive:!0,inst:t,continue:!r.abort}),s>i&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:t,continue:!r.abort})}}),oa=p("$ZodCheckBigIntFormat",(t,r)=>{C.init(t,r);let[n,o]=xo[r.format];t._zod.onattach.push(e=>{let i=e._zod.bag;i.format=r.format,i.minimum=n,i.maximum=o}),t._zod.check=e=>{let i=e.value;i<n&&e.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:t,continue:!r.abort}),i>o&&e.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:t,continue:!r.abort})}}),aa=p("$ZodCheckMaxSize",(t,r)=>{var n;C.init(t,r),(n=t._zod.def).when??(n.when=o=>{let e=o.value;return!je(e)&&e.size!==void 0}),t._zod.onattach.push(o=>{let e=o._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<e&&(o._zod.bag.maximum=r.maximum)}),t._zod.check=o=>{let e=o.value;e.size<=r.maximum||o.issues.push({origin:Kt(e),code:"too_big",maximum:r.maximum,inclusive:!0,input:e,inst:t,continue:!r.abort})}}),sa=p("$ZodCheckMinSize",(t,r)=>{var n;C.init(t,r),(n=t._zod.def).when??(n.when=o=>{let e=o.value;return!je(e)&&e.size!==void 0}),t._zod.onattach.push(o=>{let e=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>e&&(o._zod.bag.minimum=r.minimum)}),t._zod.check=o=>{let e=o.value;e.size>=r.minimum||o.issues.push({origin:Kt(e),code:"too_small",minimum:r.minimum,inclusive:!0,input:e,inst:t,continue:!r.abort})}}),ca=p("$ZodCheckSizeEquals",(t,r)=>{var n;C.init(t,r),(n=t._zod.def).when??(n.when=o=>{let e=o.value;return!je(e)&&e.size!==void 0}),t._zod.onattach.push(o=>{let e=o._zod.bag;e.minimum=r.size,e.maximum=r.size,e.size=r.size}),t._zod.check=o=>{let e=o.value,i=e.size;if(i===r.size)return;let a=i>r.size;o.issues.push({origin:Kt(e),...a?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:o.value,inst:t,continue:!r.abort})}}),ua=p("$ZodCheckMaxLength",(t,r)=>{var n;C.init(t,r),(n=t._zod.def).when??(n.when=o=>{let e=o.value;return!je(e)&&e.length!==void 0}),t._zod.onattach.push(o=>{let e=o._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<e&&(o._zod.bag.maximum=r.maximum)}),t._zod.check=o=>{let e=o.value;if(e.length<=r.maximum)return;let a=Yt(e);o.issues.push({origin:a,code:"too_big",maximum:r.maximum,inclusive:!0,input:e,inst:t,continue:!r.abort})}}),la=p("$ZodCheckMinLength",(t,r)=>{var n;C.init(t,r),(n=t._zod.def).when??(n.when=o=>{let e=o.value;return!je(e)&&e.length!==void 0}),t._zod.onattach.push(o=>{let e=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>e&&(o._zod.bag.minimum=r.minimum)}),t._zod.check=o=>{let e=o.value;if(e.length>=r.minimum)return;let a=Yt(e);o.issues.push({origin:a,code:"too_small",minimum:r.minimum,inclusive:!0,input:e,inst:t,continue:!r.abort})}}),da=p("$ZodCheckLengthEquals",(t,r)=>{var n;C.init(t,r),(n=t._zod.def).when??(n.when=o=>{let e=o.value;return!je(e)&&e.length!==void 0}),t._zod.onattach.push(o=>{let e=o._zod.bag;e.minimum=r.length,e.maximum=r.length,e.length=r.length}),t._zod.check=o=>{let e=o.value,i=e.length;if(i===r.length)return;let a=Yt(e),s=i>r.length;o.issues.push({origin:a,...s?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:o.value,inst:t,continue:!r.abort})}}),lt=p("$ZodCheckStringFormat",(t,r)=>{var n,o;C.init(t,r),t._zod.onattach.push(e=>{let i=e._zod.bag;i.format=r.format,r.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(r.pattern))}),r.pattern?(n=t._zod).check??(n.check=e=>{r.pattern.lastIndex=0,!r.pattern.test(e.value)&&e.issues.push({origin:"string",code:"invalid_format",format:r.format,input:e.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:t,continue:!r.abort})}):(o=t._zod).check??(o.check=()=>{})}),ma=p("$ZodCheckRegex",(t,r)=>{lt.init(t,r),t._zod.check=n=>{r.pattern.lastIndex=0,!r.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:r.pattern.toString(),inst:t,continue:!r.abort})}}),pa=p("$ZodCheckLowerCase",(t,r)=>{r.pattern??(r.pattern=ta),lt.init(t,r)}),fa=p("$ZodCheckUpperCase",(t,r)=>{r.pattern??(r.pattern=ra),lt.init(t,r)}),ga=p("$ZodCheckIncludes",(t,r)=>{C.init(t,r);let n=se(r.includes),o=new RegExp(typeof r.position=="number"?`^.{${r.position}}${n}`:n);r.pattern=o,t._zod.onattach.push(e=>{let i=e._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),t._zod.check=e=>{e.value.includes(r.includes,r.position)||e.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:e.value,inst:t,continue:!r.abort})}}),ha=p("$ZodCheckStartsWith",(t,r)=>{C.init(t,r);let n=new RegExp(`^${se(r.prefix)}.*`);r.pattern??(r.pattern=n),t._zod.onattach.push(o=>{let e=o._zod.bag;e.patterns??(e.patterns=new Set),e.patterns.add(n)}),t._zod.check=o=>{o.value.startsWith(r.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:o.value,inst:t,continue:!r.abort})}}),va=p("$ZodCheckEndsWith",(t,r)=>{C.init(t,r);let n=new RegExp(`.*${se(r.suffix)}$`);r.pattern??(r.pattern=n),t._zod.onattach.push(o=>{let e=o._zod.bag;e.patterns??(e.patterns=new Set),e.patterns.add(n)}),t._zod.check=o=>{o.value.endsWith(r.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:o.value,inst:t,continue:!r.abort})}});function Od(t,r,n){t.issues.length&&r.issues.push(...Y(n,t.issues))}var _a=p("$ZodCheckProperty",(t,r)=>{C.init(t,r),t._zod.check=n=>{let o=r.schema._zod.run({value:n.value[r.property],issues:[]},{});if(o instanceof Promise)return o.then(e=>Od(e,n,r.property));Od(o,n,r.property)}}),ya=p("$ZodCheckMimeType",(t,r)=>{C.init(t,r);let n=new Set(r.mime);t._zod.onattach.push(o=>{o._zod.bag.mime=r.mime}),t._zod.check=o=>{n.has(o.value.type)||o.issues.push({code:"invalid_value",values:r.mime,input:o.value.type,inst:t,continue:!r.abort})}}),ba=p("$ZodCheckOverwrite",(t,r)=>{C.init(t,r),t._zod.check=n=>{n.value=r.tx(n.value)}});var nr=class{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}let o=r.split(`
35
35
  `).filter(a=>a),e=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(e)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let r=Function,n=this?.args,e=[...(this?.content??[""]).map(i=>` ${i}`)];return new r(...n,e.join(`
36
- `))}};var ba={major:4,minor:4,patch:3};var k=p("$ZodType",(t,r)=>{var n;t??(t={}),t._zod.def=r,t._zod.bag=t._zod.bag||{},t._zod.version=ba;let o=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&o.unshift(t);for(let e of o)for(let i of e._zod.onattach)i(t);if(o.length===0)(n=t._zod).deferred??(n.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let e=(a,s,u)=>{let l=Ne(a),d;for(let m of s){if(m._zod.def.when){if(xo(a)||!m._zod.def.when(a))continue}else if(l)continue;let g=a.issues.length,_=m._zod.check(a);if(_ instanceof Promise&&u?.async===!1)throw new ue;if(d||_ instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await _,a.issues.length!==g&&(l||(l=Ne(a,g)))});else{if(a.issues.length===g)continue;l||(l=Ne(a,g))}}return d?d.then(()=>a):a},i=(a,s,u)=>{if(Ne(a))return a.aborted=!0,a;let l=e(s,o,u);if(l instanceof Promise){if(u.async===!1)throw new ue;return l.then(d=>t._zod.parse(d,u))}return t._zod.parse(l,u)};t._zod.run=(a,s)=>{if(s.skipChecks)return t._zod.parse(a,s);if(s.direction==="backward"){let l=t._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return l instanceof Promise?l.then(d=>i(d,a,s)):i(l,a,s)}let u=t._zod.parse(a,s);if(u instanceof Promise){if(s.async===!1)throw new ue;return u.then(l=>e(l,o,s))}return e(u,o,s)}}I(t,"~standard",()=>({validate:e=>{try{let i=wo(t,e);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Io(t,e).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Ge=p("$ZodString",(t,r)=>{k.init(t,r),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??Jo(t._zod.bag),t._zod.parse=(n,o)=>{if(r.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:t}),n}}),T=p("$ZodStringFormat",(t,r)=>{lt.init(t,r),Ge.init(t,r)}),xa=p("$ZodGUID",(t,r)=>{r.pattern??(r.pattern=Co),T.init(t,r)}),ka=p("$ZodUUID",(t,r)=>{if(r.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(o===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=We(o))}else r.pattern??(r.pattern=We());T.init(t,r)}),Sa=p("$ZodEmail",(t,r)=>{r.pattern??(r.pattern=No),T.init(t,r)}),wa=p("$ZodURL",(t,r)=>{T.init(t,r),t._zod.check=n=>{try{let o=n.value.trim();if(!r.normalize&&r.protocol?.source===Vo.source&&!/^https?:\/\//i.test(o)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:t,continue:!r.abort});return}let e=new URL(o);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(e.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:n.value,inst:t,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:n.value,inst:t,continue:!r.abort})),r.normalize?n.value=e.href:n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:t,continue:!r.abort})}}}),Ia=p("$ZodEmoji",(t,r)=>{r.pattern??(r.pattern=Do()),T.init(t,r)}),za=p("$ZodNanoID",(t,r)=>{r.pattern??(r.pattern=jo),T.init(t,r)}),Oa=p("$ZodCUID",(t,r)=>{r.pattern??(r.pattern=zo),T.init(t,r)}),Pa=p("$ZodCUID2",(t,r)=>{r.pattern??(r.pattern=Oo),T.init(t,r)}),Ea=p("$ZodULID",(t,r)=>{r.pattern??(r.pattern=Po),T.init(t,r)}),Ta=p("$ZodXID",(t,r)=>{r.pattern??(r.pattern=Eo),T.init(t,r)}),ja=p("$ZodKSUID",(t,r)=>{r.pattern??(r.pattern=To),T.init(t,r)}),Aa=p("$ZodISODateTime",(t,r)=>{r.pattern??(r.pattern=Go(r)),T.init(t,r)}),Ca=p("$ZodISODate",(t,r)=>{r.pattern??(r.pattern=Ho),T.init(t,r)}),Na=p("$ZodISOTime",(t,r)=>{r.pattern??(r.pattern=Wo(r)),T.init(t,r)}),Da=p("$ZodISODuration",(t,r)=>{r.pattern??(r.pattern=Ao),T.init(t,r)}),Ua=p("$ZodIPv4",(t,r)=>{r.pattern??(r.pattern=Uo),T.init(t,r),t._zod.bag.format="ipv4"}),Ra=p("$ZodIPv6",(t,r)=>{r.pattern??(r.pattern=Ro),T.init(t,r),t._zod.bag.format="ipv6",t._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:t,continue:!r.abort})}}}),Za=p("$ZodMAC",(t,r)=>{r.pattern??(r.pattern=Zo(r.delimiter)),T.init(t,r),t._zod.bag.format="mac"}),La=p("$ZodCIDRv4",(t,r)=>{r.pattern??(r.pattern=Lo),T.init(t,r)}),Fa=p("$ZodCIDRv6",(t,r)=>{r.pattern??(r.pattern=Fo),T.init(t,r),t._zod.check=n=>{let o=n.value.split("/");try{if(o.length!==2)throw new Error;let[e,i]=o;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${e}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:t,continue:!r.abort})}}});function Ma(t){if(t==="")return!0;if(/\s/.test(t)||t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var Va=p("$ZodBase64",(t,r)=>{r.pattern??(r.pattern=Mo),T.init(t,r),t._zod.bag.contentEncoding="base64",t._zod.check=n=>{Ma(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:t,continue:!r.abort})}});function Bd(t){if(!tn.test(t))return!1;let r=t.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=r.padEnd(Math.ceil(r.length/4)*4,"=");return Ma(n)}var Ba=p("$ZodBase64URL",(t,r)=>{r.pattern??(r.pattern=tn),T.init(t,r),t._zod.bag.contentEncoding="base64url",t._zod.check=n=>{Bd(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:t,continue:!r.abort})}}),Ha=p("$ZodE164",(t,r)=>{r.pattern??(r.pattern=Bo),T.init(t,r)});function Hd(t,r=null){try{let n=t.split(".");if(n.length!==3)return!1;let[o]=n;if(!o)return!1;let e=JSON.parse(atob(o));return!("typ"in e&&e?.typ!=="JWT"||!e.alg||r&&(!("alg"in e)||e.alg!==r))}catch{return!1}}var Wa=p("$ZodJWT",(t,r)=>{T.init(t,r),t._zod.check=n=>{Hd(n.value,r.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:t,continue:!r.abort})}}),Ga=p("$ZodCustomStringFormat",(t,r)=>{T.init(t,r),t._zod.check=n=>{r.fn(n.value)||n.issues.push({code:"invalid_format",format:r.format,input:n.value,inst:t,continue:!r.abort})}}),ln=p("$ZodNumber",(t,r)=>{k.init(t,r),t._zod.pattern=t._zod.bag.pattern??rn,t._zod.parse=(n,o)=>{if(r.coerce)try{n.value=Number(n.value)}catch{}let e=n.value;if(typeof e=="number"&&!Number.isNaN(e)&&Number.isFinite(e))return n;let i=typeof e=="number"?Number.isNaN(e)?"NaN":Number.isFinite(e)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:e,inst:t,...i?{received:i}:{}}),n}}),Ja=p("$ZodNumberFormat",(t,r)=>{na.init(t,r),ln.init(t,r)}),ir=p("$ZodBoolean",(t,r)=>{k.init(t,r),t._zod.pattern=Yo,t._zod.parse=(n,o)=>{if(r.coerce)try{n.value=!!n.value}catch{}let e=n.value;return typeof e=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:e,inst:t}),n}}),dn=p("$ZodBigInt",(t,r)=>{k.init(t,r),t._zod.pattern=qo,t._zod.parse=(n,o)=>{if(r.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:t}),n}}),qa=p("$ZodBigIntFormat",(t,r)=>{ia.init(t,r),dn.init(t,r)}),Ka=p("$ZodSymbol",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>{let e=n.value;return typeof e=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:e,inst:t}),n}}),Ya=p("$ZodUndefined",(t,r)=>{k.init(t,r),t._zod.pattern=Qo,t._zod.values=new Set([void 0]),t._zod.parse=(n,o)=>{let e=n.value;return typeof e>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:e,inst:t}),n}}),Xa=p("$ZodNull",(t,r)=>{k.init(t,r),t._zod.pattern=Xo,t._zod.values=new Set([null]),t._zod.parse=(n,o)=>{let e=n.value;return e===null||n.issues.push({expected:"null",code:"invalid_type",input:e,inst:t}),n}}),Qa=p("$ZodAny",(t,r)=>{k.init(t,r),t._zod.parse=n=>n}),es=p("$ZodUnknown",(t,r)=>{k.init(t,r),t._zod.parse=n=>n}),ts=p("$ZodNever",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:t}),n)}),rs=p("$ZodVoid",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>{let e=n.value;return typeof e>"u"||n.issues.push({expected:"void",code:"invalid_type",input:e,inst:t}),n}}),ns=p("$ZodDate",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>{if(r.coerce)try{n.value=new Date(n.value)}catch{}let e=n.value,i=e instanceof Date;return i&&!Number.isNaN(e.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:e,...i?{received:"Invalid Date"}:{},inst:t}),n}});function Ed(t,r,n){t.issues.length&&r.issues.push(...Y(n,t.issues)),r.value[n]=t.value}var is=p("$ZodArray",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>{let e=n.value;if(!Array.isArray(e))return n.issues.push({expected:"array",code:"invalid_type",input:e,inst:t}),n;n.value=Array(e.length);let i=[];for(let a=0;a<e.length;a++){let s=e[a],u=r.element._zod.run({value:s,issues:[]},o);u instanceof Promise?i.push(u.then(l=>Ed(l,n,a))):Ed(u,n,a)}return i.length?Promise.all(i).then(()=>n):n}});function un(t,r,n,o,e,i){let a=n in o;if(t.issues.length){if(e&&i&&!a)return;r.issues.push(...Y(n,t.issues))}if(!a&&!e){t.issues.length||r.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}t.value===void 0?a&&(r.value[n]=void 0):r.value[n]=t.value}function Wd(t){let r=Object.keys(t.shape);for(let o of r)if(!t.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let n=yo(t.shape);return{...t,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(n)}}function Gd(t,r,n,o,e,i){let a=[],s=e.keySet,u=e.catchall._zod,l=u.def.type,d=u.optin==="optional",m=u.optout==="optional";for(let g in r){if(g==="__proto__"||s.has(g))continue;if(l==="never"){a.push(g);continue}let _=u.run({value:r[g],issues:[]},o);_ instanceof Promise?t.push(_.then(x=>un(x,n,g,r,d,m))):un(_,n,g,r,d,m)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:r,inst:i}),t.length?Promise.all(t).then(()=>n):n}var Jd=p("$ZodObject",(t,r)=>{if(k.init(t,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){let s=r.shape;Object.defineProperty(r,"shape",{get:()=>{let u={...s};return Object.defineProperty(r,"shape",{value:u}),u}})}let o=it(()=>Wd(r));I(t._zod,"propValues",()=>{let s=r.shape,u={};for(let l in s){let d=s[l]._zod;if(d.values){u[l]??(u[l]=new Set);for(let m of d.values)u[l].add(m)}}return u});let e=He,i=r.catchall,a;t._zod.parse=(s,u)=>{a??(a=o.value);let l=s.value;if(!e(l))return s.issues.push({expected:"object",code:"invalid_type",input:l,inst:t}),s;s.value={};let d=[],m=a.shape;for(let g of a.keys){let _=m[g],x=_._zod.optin==="optional",K=_._zod.optout==="optional",F=_._zod.run({value:l[g],issues:[]},u);F instanceof Promise?d.push(F.then(Ci=>un(Ci,s,g,l,x,K))):un(F,s,g,l,x,K)}return i?Gd(d,l,s,u,o.value,t):d.length?Promise.all(d).then(()=>s):s}}),os=p("$ZodObjectJIT",(t,r)=>{Jd.init(t,r);let n=t._zod.parse,o=it(()=>Wd(r)),e=g=>{let _=new nr(["shape","payload","ctx"]),x=o.value,K=ge=>{let R=Vr(ge);return`shape[${R}]._zod.run({ value: input[${R}], issues: [] }, ctx)`};_.write("const input = payload.value;");let F=Object.create(null),Ci=0;for(let ge of x.keys)F[ge]=`key_${Ci++}`;_.write("const newResult = {};");for(let ge of x.keys){let R=F[ge],M=Vr(ge),Pl=g[ge],El=Pl?._zod?.optin==="optional",Hg=Pl?._zod?.optout==="optional";_.write(`const ${R} = ${K(ge)};`),El&&Hg?_.write(`
36
+ `))}};var $a={major:4,minor:4,patch:3};var S=p("$ZodType",(t,r)=>{var n;t??(t={}),t._zod.def=r,t._zod.bag=t._zod.bag||{},t._zod.version=$a;let o=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&o.unshift(t);for(let e of o)for(let i of e._zod.onattach)i(t);if(o.length===0)(n=t._zod).deferred??(n.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let e=(a,s,u)=>{let l=Ne(a),d;for(let m of s){if(m._zod.def.when){if(ko(a)||!m._zod.def.when(a))continue}else if(l)continue;let g=a.issues.length,_=m._zod.check(a);if(_ instanceof Promise&&u?.async===!1)throw new ue;if(d||_ instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await _,a.issues.length!==g&&(l||(l=Ne(a,g)))});else{if(a.issues.length===g)continue;l||(l=Ne(a,g))}}return d?d.then(()=>a):a},i=(a,s,u)=>{if(Ne(a))return a.aborted=!0,a;let l=e(s,o,u);if(l instanceof Promise){if(u.async===!1)throw new ue;return l.then(d=>t._zod.parse(d,u))}return t._zod.parse(l,u)};t._zod.run=(a,s)=>{if(s.skipChecks)return t._zod.parse(a,s);if(s.direction==="backward"){let l=t._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return l instanceof Promise?l.then(d=>i(d,a,s)):i(l,a,s)}let u=t._zod.parse(a,s);if(u instanceof Promise){if(s.async===!1)throw new ue;return u.then(l=>e(l,o,s))}return e(u,o,s)}}z(t,"~standard",()=>({validate:e=>{try{let i=Io(t,e);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return zo(t,e).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),We=p("$ZodString",(t,r)=>{S.init(t,r),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??qo(t._zod.bag),t._zod.parse=(n,o)=>{if(r.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:t}),n}}),T=p("$ZodStringFormat",(t,r)=>{lt.init(t,r),We.init(t,r)}),ka=p("$ZodGUID",(t,r)=>{r.pattern??(r.pattern=No),T.init(t,r)}),Sa=p("$ZodUUID",(t,r)=>{if(r.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(o===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=Ge(o))}else r.pattern??(r.pattern=Ge());T.init(t,r)}),wa=p("$ZodEmail",(t,r)=>{r.pattern??(r.pattern=Do),T.init(t,r)}),Ia=p("$ZodURL",(t,r)=>{T.init(t,r),t._zod.check=n=>{try{let o=n.value.trim();if(!r.normalize&&r.protocol?.source===Bo.source&&!/^https?:\/\//i.test(o)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:t,continue:!r.abort});return}let e=new URL(o);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(e.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:n.value,inst:t,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:n.value,inst:t,continue:!r.abort})),r.normalize?n.value=e.href:n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:t,continue:!r.abort})}}}),za=p("$ZodEmoji",(t,r)=>{r.pattern??(r.pattern=Uo()),T.init(t,r)}),Oa=p("$ZodNanoID",(t,r)=>{r.pattern??(r.pattern=Ao),T.init(t,r)}),Ea=p("$ZodCUID",(t,r)=>{r.pattern??(r.pattern=Oo),T.init(t,r)}),Pa=p("$ZodCUID2",(t,r)=>{r.pattern??(r.pattern=Eo),T.init(t,r)}),Ta=p("$ZodULID",(t,r)=>{r.pattern??(r.pattern=Po),T.init(t,r)}),ja=p("$ZodXID",(t,r)=>{r.pattern??(r.pattern=To),T.init(t,r)}),Aa=p("$ZodKSUID",(t,r)=>{r.pattern??(r.pattern=jo),T.init(t,r)}),Ca=p("$ZodISODateTime",(t,r)=>{r.pattern??(r.pattern=Jo(r)),T.init(t,r)}),Na=p("$ZodISODate",(t,r)=>{r.pattern??(r.pattern=Go),T.init(t,r)}),Da=p("$ZodISOTime",(t,r)=>{r.pattern??(r.pattern=Wo(r)),T.init(t,r)}),Ua=p("$ZodISODuration",(t,r)=>{r.pattern??(r.pattern=Co),T.init(t,r)}),Ra=p("$ZodIPv4",(t,r)=>{r.pattern??(r.pattern=Ro),T.init(t,r),t._zod.bag.format="ipv4"}),Za=p("$ZodIPv6",(t,r)=>{r.pattern??(r.pattern=Zo),T.init(t,r),t._zod.bag.format="ipv6",t._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:t,continue:!r.abort})}}}),La=p("$ZodMAC",(t,r)=>{r.pattern??(r.pattern=Lo(r.delimiter)),T.init(t,r),t._zod.bag.format="mac"}),Ma=p("$ZodCIDRv4",(t,r)=>{r.pattern??(r.pattern=Mo),T.init(t,r)}),Fa=p("$ZodCIDRv6",(t,r)=>{r.pattern??(r.pattern=Fo),T.init(t,r),t._zod.check=n=>{let o=n.value.split("/");try{if(o.length!==2)throw new Error;let[e,i]=o;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${e}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:t,continue:!r.abort})}}});function Va(t){if(t==="")return!0;if(/\s/.test(t)||t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var Ba=p("$ZodBase64",(t,r)=>{r.pattern??(r.pattern=Vo),T.init(t,r),t._zod.bag.contentEncoding="base64",t._zod.check=n=>{Va(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:t,continue:!r.abort})}});function Hd(t){if(!rn.test(t))return!1;let r=t.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=r.padEnd(Math.ceil(r.length/4)*4,"=");return Va(n)}var Ha=p("$ZodBase64URL",(t,r)=>{r.pattern??(r.pattern=rn),T.init(t,r),t._zod.bag.contentEncoding="base64url",t._zod.check=n=>{Hd(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:t,continue:!r.abort})}}),Ga=p("$ZodE164",(t,r)=>{r.pattern??(r.pattern=Ho),T.init(t,r)});function Gd(t,r=null){try{let n=t.split(".");if(n.length!==3)return!1;let[o]=n;if(!o)return!1;let e=JSON.parse(atob(o));return!("typ"in e&&e?.typ!=="JWT"||!e.alg||r&&(!("alg"in e)||e.alg!==r))}catch{return!1}}var Wa=p("$ZodJWT",(t,r)=>{T.init(t,r),t._zod.check=n=>{Gd(n.value,r.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:t,continue:!r.abort})}}),Ja=p("$ZodCustomStringFormat",(t,r)=>{T.init(t,r),t._zod.check=n=>{r.fn(n.value)||n.issues.push({code:"invalid_format",format:r.format,input:n.value,inst:t,continue:!r.abort})}}),dn=p("$ZodNumber",(t,r)=>{S.init(t,r),t._zod.pattern=t._zod.bag.pattern??nn,t._zod.parse=(n,o)=>{if(r.coerce)try{n.value=Number(n.value)}catch{}let e=n.value;if(typeof e=="number"&&!Number.isNaN(e)&&Number.isFinite(e))return n;let i=typeof e=="number"?Number.isNaN(e)?"NaN":Number.isFinite(e)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:e,inst:t,...i?{received:i}:{}}),n}}),qa=p("$ZodNumberFormat",(t,r)=>{ia.init(t,r),dn.init(t,r)}),ir=p("$ZodBoolean",(t,r)=>{S.init(t,r),t._zod.pattern=Xo,t._zod.parse=(n,o)=>{if(r.coerce)try{n.value=!!n.value}catch{}let e=n.value;return typeof e=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:e,inst:t}),n}}),mn=p("$ZodBigInt",(t,r)=>{S.init(t,r),t._zod.pattern=Ko,t._zod.parse=(n,o)=>{if(r.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:t}),n}}),Ka=p("$ZodBigIntFormat",(t,r)=>{oa.init(t,r),mn.init(t,r)}),Ya=p("$ZodSymbol",(t,r)=>{S.init(t,r),t._zod.parse=(n,o)=>{let e=n.value;return typeof e=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:e,inst:t}),n}}),Xa=p("$ZodUndefined",(t,r)=>{S.init(t,r),t._zod.pattern=ea,t._zod.values=new Set([void 0]),t._zod.parse=(n,o)=>{let e=n.value;return typeof e>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:e,inst:t}),n}}),Qa=p("$ZodNull",(t,r)=>{S.init(t,r),t._zod.pattern=Qo,t._zod.values=new Set([null]),t._zod.parse=(n,o)=>{let e=n.value;return e===null||n.issues.push({expected:"null",code:"invalid_type",input:e,inst:t}),n}}),es=p("$ZodAny",(t,r)=>{S.init(t,r),t._zod.parse=n=>n}),ts=p("$ZodUnknown",(t,r)=>{S.init(t,r),t._zod.parse=n=>n}),rs=p("$ZodNever",(t,r)=>{S.init(t,r),t._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:t}),n)}),ns=p("$ZodVoid",(t,r)=>{S.init(t,r),t._zod.parse=(n,o)=>{let e=n.value;return typeof e>"u"||n.issues.push({expected:"void",code:"invalid_type",input:e,inst:t}),n}}),is=p("$ZodDate",(t,r)=>{S.init(t,r),t._zod.parse=(n,o)=>{if(r.coerce)try{n.value=new Date(n.value)}catch{}let e=n.value,i=e instanceof Date;return i&&!Number.isNaN(e.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:e,...i?{received:"Invalid Date"}:{},inst:t}),n}});function Td(t,r,n){t.issues.length&&r.issues.push(...Y(n,t.issues)),r.value[n]=t.value}var os=p("$ZodArray",(t,r)=>{S.init(t,r),t._zod.parse=(n,o)=>{let e=n.value;if(!Array.isArray(e))return n.issues.push({expected:"array",code:"invalid_type",input:e,inst:t}),n;n.value=Array(e.length);let i=[];for(let a=0;a<e.length;a++){let s=e[a],u=r.element._zod.run({value:s,issues:[]},o);u instanceof Promise?i.push(u.then(l=>Td(l,n,a))):Td(u,n,a)}return i.length?Promise.all(i).then(()=>n):n}});function ln(t,r,n,o,e,i){let a=n in o;if(t.issues.length){if(e&&i&&!a)return;r.issues.push(...Y(n,t.issues))}if(!a&&!e){t.issues.length||r.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}t.value===void 0?a&&(r.value[n]=void 0):r.value[n]=t.value}function Wd(t){let r=Object.keys(t.shape);for(let o of r)if(!t.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let n=bo(t.shape);return{...t,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(n)}}function Jd(t,r,n,o,e,i){let a=[],s=e.keySet,u=e.catchall._zod,l=u.def.type,d=u.optin==="optional",m=u.optout==="optional";for(let g in r){if(g==="__proto__"||s.has(g))continue;if(l==="never"){a.push(g);continue}let _=u.run({value:r[g],issues:[]},o);_ instanceof Promise?t.push(_.then(x=>ln(x,n,g,r,d,m))):ln(_,n,g,r,d,m)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:r,inst:i}),t.length?Promise.all(t).then(()=>n):n}var qd=p("$ZodObject",(t,r)=>{if(S.init(t,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){let s=r.shape;Object.defineProperty(r,"shape",{get:()=>{let u={...s};return Object.defineProperty(r,"shape",{value:u}),u}})}let o=it(()=>Wd(r));z(t._zod,"propValues",()=>{let s=r.shape,u={};for(let l in s){let d=s[l]._zod;if(d.values){u[l]??(u[l]=new Set);for(let m of d.values)u[l].add(m)}}return u});let e=He,i=r.catchall,a;t._zod.parse=(s,u)=>{a??(a=o.value);let l=s.value;if(!e(l))return s.issues.push({expected:"object",code:"invalid_type",input:l,inst:t}),s;s.value={};let d=[],m=a.shape;for(let g of a.keys){let _=m[g],x=_._zod.optin==="optional",K=_._zod.optout==="optional",M=_._zod.run({value:l[g],issues:[]},u);M instanceof Promise?d.push(M.then(Ni=>ln(Ni,s,g,l,x,K))):ln(M,s,g,l,x,K)}return i?Jd(d,l,s,u,o.value,t):d.length?Promise.all(d).then(()=>s):s}}),as=p("$ZodObjectJIT",(t,r)=>{qd.init(t,r);let n=t._zod.parse,o=it(()=>Wd(r)),e=g=>{let _=new nr(["shape","payload","ctx"]),x=o.value,K=ge=>{let R=Br(ge);return`shape[${R}]._zod.run({ value: input[${R}], issues: [] }, ctx)`};_.write("const input = payload.value;");let M=Object.create(null),Ni=0;for(let ge of x.keys)M[ge]=`key_${Ni++}`;_.write("const newResult = {};");for(let ge of x.keys){let R=M[ge],F=Br(ge),Pl=g[ge],Tl=Pl?._zod?.optin==="optional",Jg=Pl?._zod?.optout==="optional";_.write(`const ${R} = ${K(ge)};`),Tl&&Jg?_.write(`
37
37
  if (${R}.issues.length) {
38
- if (${M} in input) {
38
+ if (${F} in input) {
39
39
  payload.issues = payload.issues.concat(${R}.issues.map(iss => ({
40
40
  ...iss,
41
- path: iss.path ? [${M}, ...iss.path] : [${M}]
41
+ path: iss.path ? [${F}, ...iss.path] : [${F}]
42
42
  })));
43
43
  }
44
44
  }
45
45
 
46
46
  if (${R}.value === undefined) {
47
- if (${M} in input) {
48
- newResult[${M}] = undefined;
47
+ if (${F} in input) {
48
+ newResult[${F}] = undefined;
49
49
  }
50
50
  } else {
51
- newResult[${M}] = ${R}.value;
51
+ newResult[${F}] = ${R}.value;
52
52
  }
53
53
 
54
- `):El?_.write(`
54
+ `):Tl?_.write(`
55
55
  if (${R}.issues.length) {
56
56
  payload.issues = payload.issues.concat(${R}.issues.map(iss => ({
57
57
  ...iss,
58
- path: iss.path ? [${M}, ...iss.path] : [${M}]
58
+ path: iss.path ? [${F}, ...iss.path] : [${F}]
59
59
  })));
60
60
  }
61
61
 
62
62
  if (${R}.value === undefined) {
63
- if (${M} in input) {
64
- newResult[${M}] = undefined;
63
+ if (${F} in input) {
64
+ newResult[${F}] = undefined;
65
65
  }
66
66
  } else {
67
- newResult[${M}] = ${R}.value;
67
+ newResult[${F}] = ${R}.value;
68
68
  }
69
69
 
70
70
  `):_.write(`
71
- const ${R}_present = ${M} in input;
71
+ const ${R}_present = ${F} in input;
72
72
  if (${R}.issues.length) {
73
73
  payload.issues = payload.issues.concat(${R}.issues.map(iss => ({
74
74
  ...iss,
75
- path: iss.path ? [${M}, ...iss.path] : [${M}]
75
+ path: iss.path ? [${F}, ...iss.path] : [${F}]
76
76
  })));
77
77
  }
78
78
  if (!${R}_present && !${R}.issues.length) {
@@ -80,26 +80,26 @@ Expecting one of '${o.join("', '")}'`);let e=`${r}Help`;return this.on(e,i=>{let
80
80
  code: "invalid_type",
81
81
  expected: "nonoptional",
82
82
  input: undefined,
83
- path: [${M}]
83
+ path: [${F}]
84
84
  });
85
85
  }
86
86
 
87
87
  if (${R}_present) {
88
88
  if (${R}.value === undefined) {
89
- newResult[${M}] = undefined;
89
+ newResult[${F}] = undefined;
90
90
  } else {
91
- newResult[${M}] = ${R}.value;
91
+ newResult[${F}] = ${R}.value;
92
92
  }
93
93
  }
94
94
 
95
- `)}_.write("payload.value = newResult;"),_.write("return payload;");let Bg=_.compile();return(ge,R)=>Bg(g,ge,R)},i,a=He,s=!Be.jitless,l=s&&ho.value,d=r.catchall,m;t._zod.parse=(g,_)=>{m??(m=o.value);let x=g.value;return a(x)?s&&l&&_?.async===!1&&_.jitless!==!0?(i||(i=e(r.shape)),g=i(g,_),d?Gd([],x,g,_,m,t):g):n(g,_):(g.issues.push({expected:"object",code:"invalid_type",input:x,inst:t}),g)}});function Td(t,r,n,o){for(let i of t)if(i.issues.length===0)return r.value=i.value,r;let e=t.filter(i=>!Ne(i));return e.length===1?(r.value=e[0].value,e[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:t.map(i=>i.issues.map(a=>W(a,o,Z())))}),r)}var or=p("$ZodUnion",(t,r)=>{k.init(t,r),I(t._zod,"optin",()=>r.options.some(o=>o._zod.optin==="optional")?"optional":void 0),I(t._zod,"optout",()=>r.options.some(o=>o._zod.optout==="optional")?"optional":void 0),I(t._zod,"values",()=>{if(r.options.every(o=>o._zod.values))return new Set(r.options.flatMap(o=>Array.from(o._zod.values)))}),I(t._zod,"pattern",()=>{if(r.options.every(o=>o._zod.pattern)){let o=r.options.map(e=>e._zod.pattern);return new RegExp(`^(${o.map(e=>Jt(e.source)).join("|")})$`)}});let n=r.options.length===1?r.options[0]._zod.run:null;t._zod.parse=(o,e)=>{if(n)return n(o,e);let i=!1,a=[];for(let s of r.options){let u=s._zod.run({value:o.value,issues:[]},e);if(u instanceof Promise)a.push(u),i=!0;else{if(u.issues.length===0)return u;a.push(u)}}return i?Promise.all(a).then(s=>Td(s,o,t,e)):Td(a,o,t,e)}});function jd(t,r,n,o){let e=t.filter(i=>i.issues.length===0);return e.length===1?(r.value=e[0].value,r):(e.length===0?r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:t.map(i=>i.issues.map(a=>W(a,o,Z())))}):r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:[],inclusive:!1}),r)}var as=p("$ZodXor",(t,r)=>{or.init(t,r),r.inclusive=!1;let n=r.options.length===1?r.options[0]._zod.run:null;t._zod.parse=(o,e)=>{if(n)return n(o,e);let i=!1,a=[];for(let s of r.options){let u=s._zod.run({value:o.value,issues:[]},e);u instanceof Promise?(a.push(u),i=!0):a.push(u)}return i?Promise.all(a).then(s=>jd(s,o,t,e)):jd(a,o,t,e)}}),ss=p("$ZodDiscriminatedUnion",(t,r)=>{r.inclusive=!1,or.init(t,r);let n=t._zod.parse;I(t._zod,"propValues",()=>{let e={};for(let i of r.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(i)}"`);for(let[s,u]of Object.entries(a)){e[s]||(e[s]=new Set);for(let l of u)e[s].add(l)}}return e});let o=it(()=>{let e=r.options,i=new Map;for(let a of e){let s=a._zod.propValues?.[r.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(a)}"`);for(let u of s){if(i.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);i.set(u,a)}}return i});t._zod.parse=(e,i)=>{let a=e.value;if(!He(a))return e.issues.push({code:"invalid_type",expected:"object",input:a,inst:t}),e;let s=o.value.get(a?.[r.discriminator]);return s?s._zod.run(e,i):r.unionFallback||i.direction==="backward"?n(e,i):(e.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,options:Array.from(o.value.keys()),input:a,path:[r.discriminator],inst:t}),e)}}),cs=p("$ZodIntersection",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>{let e=n.value,i=r.left._zod.run({value:e,issues:[]},o),a=r.right._zod.run({value:e,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([u,l])=>Ad(n,u,l)):Ad(n,i,a)}});function $a(t,r){if(t===r)return{valid:!0,data:t};if(t instanceof Date&&r instanceof Date&&+t==+r)return{valid:!0,data:t};if(Ce(t)&&Ce(r)){let n=Object.keys(r),o=Object.keys(t).filter(i=>n.indexOf(i)!==-1),e={...t,...r};for(let i of o){let a=$a(t[i],r[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};e[i]=a.data}return{valid:!0,data:e}}if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let o=0;o<t.length;o++){let e=t[o],i=r[o],a=$a(e,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ad(t,r,n){let o=new Map,e;for(let s of r.issues)if(s.code==="unrecognized_keys"){e??(e=s);for(let u of s.keys)o.has(u)||o.set(u,{}),o.get(u).l=!0}else t.issues.push(s);for(let s of n.issues)if(s.code==="unrecognized_keys")for(let u of s.keys)o.has(u)||o.set(u,{}),o.get(u).r=!0;else t.issues.push(s);let i=[...o].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(i.length&&e&&t.issues.push({...e,keys:i}),Ne(t))return t;let a=$a(r.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return t.value=a.data,t}var mn=p("$ZodTuple",(t,r)=>{k.init(t,r);let n=r.items;t._zod.parse=(o,e)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:t,expected:"tuple",code:"invalid_type"}),o;o.value=[];let a=[],s=Cd(n,"optin"),u=Cd(n,"optout");if(!r.rest){if(i.length<s)return o.issues.push({code:"too_small",minimum:s,inclusive:!0,input:i,inst:t,origin:"array"}),o;i.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:i,inst:t,origin:"array"})}let l=new Array(n.length);for(let d=0;d<n.length;d++){let m=n[d]._zod.run({value:i[d],issues:[]},e);m instanceof Promise?a.push(m.then(g=>{l[d]=g})):l[d]=m}if(r.rest){let d=n.length-1,m=i.slice(n.length);for(let g of m){d++;let _=r.rest._zod.run({value:g,issues:[]},e);_ instanceof Promise?a.push(_.then(x=>Nd(x,o,d))):Nd(_,o,d)}}return a.length?Promise.all(a).then(()=>Dd(l,o,n,i,u)):Dd(l,o,n,i,u)}});function Cd(t,r){for(let n=t.length-1;n>=0;n--)if(t[n]._zod[r]!=="optional")return n+1;return 0}function Nd(t,r,n){t.issues.length&&r.issues.push(...Y(n,t.issues)),r.value[n]=t.value}function Dd(t,r,n,o,e){for(let i=0;i<n.length;i++){let a=t[i],s=i<o.length;if(a.issues.length){if(!s&&i>=e){r.value.length=i;break}r.issues.push(...Y(i,a.issues))}r.value[i]=a.value}for(let i=r.value.length-1;i>=o.length&&(n[i]._zod.optout==="optional"&&r.value[i]===void 0);i--)r.value.length=i;return r}var us=p("$ZodRecord",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>{let e=n.value;if(!Ce(e))return n.issues.push({expected:"record",code:"invalid_type",input:e,inst:t}),n;let i=[],a=r.keyType._zod.values;if(a){n.value={};let s=new Set;for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){s.add(typeof l=="number"?l.toString():l);let d=r.keyType._zod.run({value:l,issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(_=>W(_,o,Z())),input:l,path:[l],inst:t});continue}let m=d.value,g=r.valueType._zod.run({value:e[l],issues:[]},o);g instanceof Promise?i.push(g.then(_=>{_.issues.length&&n.issues.push(...Y(l,_.issues)),n.value[m]=_.value})):(g.issues.length&&n.issues.push(...Y(l,g.issues)),n.value[m]=g.value)}let u;for(let l in e)s.has(l)||(u=u??[],u.push(l));u&&u.length>0&&n.issues.push({code:"unrecognized_keys",input:e,inst:t,keys:u})}else{n.value={};for(let s of Reflect.ownKeys(e)){if(s==="__proto__"||!Object.prototype.propertyIsEnumerable.call(e,s))continue;let u=r.keyType._zod.run({value:s,issues:[]},o);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&rn.test(s)&&u.issues.length){let m=r.keyType._zod.run({value:Number(s),issues:[]},o);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");m.issues.length===0&&(u=m)}if(u.issues.length){r.mode==="loose"?n.value[s]=e[s]:n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(m=>W(m,o,Z())),input:s,path:[s],inst:t});continue}let d=r.valueType._zod.run({value:e[s],issues:[]},o);d instanceof Promise?i.push(d.then(m=>{m.issues.length&&n.issues.push(...Y(s,m.issues)),n.value[u.value]=m.value})):(d.issues.length&&n.issues.push(...Y(s,d.issues)),n.value[u.value]=d.value)}}return i.length?Promise.all(i).then(()=>n):n}}),ls=p("$ZodMap",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>{let e=n.value;if(!(e instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:e,inst:t}),n;let i=[];n.value=new Map;for(let[a,s]of e){let u=r.keyType._zod.run({value:a,issues:[]},o),l=r.valueType._zod.run({value:s,issues:[]},o);u instanceof Promise||l instanceof Promise?i.push(Promise.all([u,l]).then(([d,m])=>{Ud(d,m,n,a,e,t,o)})):Ud(u,l,n,a,e,t,o)}return i.length?Promise.all(i).then(()=>n):n}});function Ud(t,r,n,o,e,i,a){t.issues.length&&(qt.has(typeof o)?n.issues.push(...Y(o,t.issues)):n.issues.push({code:"invalid_key",origin:"map",input:e,inst:i,issues:t.issues.map(s=>W(s,a,Z()))})),r.issues.length&&(qt.has(typeof o)?n.issues.push(...Y(o,r.issues)):n.issues.push({origin:"map",code:"invalid_element",input:e,inst:i,key:o,issues:r.issues.map(s=>W(s,a,Z()))})),n.value.set(t.value,r.value)}var ds=p("$ZodSet",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>{let e=n.value;if(!(e instanceof Set))return n.issues.push({input:e,inst:t,expected:"set",code:"invalid_type"}),n;let i=[];n.value=new Set;for(let a of e){let s=r.valueType._zod.run({value:a,issues:[]},o);s instanceof Promise?i.push(s.then(u=>Rd(u,n))):Rd(s,n)}return i.length?Promise.all(i).then(()=>n):n}});function Rd(t,r){t.issues.length&&r.issues.push(...t.issues),r.value.add(t.value)}var ms=p("$ZodEnum",(t,r)=>{k.init(t,r);let n=Gt(r.entries),o=new Set(n);t._zod.values=o,t._zod.pattern=new RegExp(`^(${n.filter(e=>qt.has(typeof e)).map(e=>typeof e=="string"?se(e):e.toString()).join("|")})$`),t._zod.parse=(e,i)=>{let a=e.value;return o.has(a)||e.issues.push({code:"invalid_value",values:n,input:a,inst:t}),e}}),ps=p("$ZodLiteral",(t,r)=>{if(k.init(t,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(r.values);t._zod.values=n,t._zod.pattern=new RegExp(`^(${r.values.map(o=>typeof o=="string"?se(o):o?se(o.toString()):String(o)).join("|")})$`),t._zod.parse=(o,e)=>{let i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:r.values,input:i,inst:t}),o}}),fs=p("$ZodFile",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>{let e=n.value;return e instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:e,inst:t}),n}}),gs=p("$ZodTransform",(t,r)=>{k.init(t,r),t._zod.optin="optional",t._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Te(t.constructor.name);let e=r.transform(n.value,n);if(o.async)return(e instanceof Promise?e:Promise.resolve(e)).then(a=>(n.value=a,n.fallback=!0,n));if(e instanceof Promise)throw new ue;return n.value=e,n.fallback=!0,n}});function Zd(t,r){return r===void 0&&(t.issues.length||t.fallback)?{issues:[],value:void 0}:t}var pn=p("$ZodOptional",(t,r)=>{k.init(t,r),t._zod.optin="optional",t._zod.optout="optional",I(t._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),I(t._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp(`^(${Jt(n.source)})?$`):void 0}),t._zod.parse=(n,o)=>{if(r.innerType._zod.optin==="optional"){let e=n.value,i=r.innerType._zod.run(n,o);return i instanceof Promise?i.then(a=>Zd(a,e)):Zd(i,e)}return n.value===void 0?n:r.innerType._zod.run(n,o)}}),hs=p("$ZodExactOptional",(t,r)=>{pn.init(t,r),I(t._zod,"values",()=>r.innerType._zod.values),I(t._zod,"pattern",()=>r.innerType._zod.pattern),t._zod.parse=(n,o)=>r.innerType._zod.run(n,o)}),vs=p("$ZodNullable",(t,r)=>{k.init(t,r),I(t._zod,"optin",()=>r.innerType._zod.optin),I(t._zod,"optout",()=>r.innerType._zod.optout),I(t._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp(`^(${Jt(n.source)}|null)$`):void 0}),I(t._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),t._zod.parse=(n,o)=>n.value===null?n:r.innerType._zod.run(n,o)}),_s=p("$ZodDefault",(t,r)=>{k.init(t,r),t._zod.optin="optional",I(t._zod,"values",()=>r.innerType._zod.values),t._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);if(n.value===void 0)return n.value=r.defaultValue,n;let e=r.innerType._zod.run(n,o);return e instanceof Promise?e.then(i=>Ld(i,r)):Ld(e,r)}});function Ld(t,r){return t.value===void 0&&(t.value=r.defaultValue),t}var ys=p("$ZodPrefault",(t,r)=>{k.init(t,r),t._zod.optin="optional",I(t._zod,"values",()=>r.innerType._zod.values),t._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=r.defaultValue),r.innerType._zod.run(n,o))}),bs=p("$ZodNonOptional",(t,r)=>{k.init(t,r),I(t._zod,"values",()=>{let n=r.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),t._zod.parse=(n,o)=>{let e=r.innerType._zod.run(n,o);return e instanceof Promise?e.then(i=>Fd(i,t)):Fd(e,t)}});function Fd(t,r){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:r}),t}var $s=p("$ZodSuccess",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Te("ZodSuccess");let e=r.innerType._zod.run(n,o);return e instanceof Promise?e.then(i=>(n.value=i.issues.length===0,n)):(n.value=e.issues.length===0,n)}}),xs=p("$ZodCatch",(t,r)=>{k.init(t,r),t._zod.optin="optional",I(t._zod,"optout",()=>r.innerType._zod.optout),I(t._zod,"values",()=>r.innerType._zod.values),t._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);let e=r.innerType._zod.run(n,o);return e instanceof Promise?e.then(i=>(n.value=i.value,i.issues.length&&(n.value=r.catchValue({...n,error:{issues:i.issues.map(a=>W(a,o,Z()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=e.value,e.issues.length&&(n.value=r.catchValue({...n,error:{issues:e.issues.map(i=>W(i,o,Z()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),ks=p("$ZodNaN",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:t,expected:"nan",code:"invalid_type"}),n)}),fn=p("$ZodPipe",(t,r)=>{k.init(t,r),I(t._zod,"values",()=>r.in._zod.values),I(t._zod,"optin",()=>r.in._zod.optin),I(t._zod,"optout",()=>r.out._zod.optout),I(t._zod,"propValues",()=>r.in._zod.propValues),t._zod.parse=(n,o)=>{if(o.direction==="backward"){let i=r.out._zod.run(n,o);return i instanceof Promise?i.then(a=>an(a,r.in,o)):an(i,r.in,o)}let e=r.in._zod.run(n,o);return e instanceof Promise?e.then(i=>an(i,r.out,o)):an(e,r.out,o)}});function an(t,r,n){return t.issues.length?(t.aborted=!0,t):r._zod.run({value:t.value,issues:t.issues,fallback:t.fallback},n)}var ar=p("$ZodCodec",(t,r)=>{k.init(t,r),I(t._zod,"values",()=>r.in._zod.values),I(t._zod,"optin",()=>r.in._zod.optin),I(t._zod,"optout",()=>r.out._zod.optout),I(t._zod,"propValues",()=>r.in._zod.propValues),t._zod.parse=(n,o)=>{if((o.direction||"forward")==="forward"){let i=r.in._zod.run(n,o);return i instanceof Promise?i.then(a=>sn(a,r,o)):sn(i,r,o)}else{let i=r.out._zod.run(n,o);return i instanceof Promise?i.then(a=>sn(a,r,o)):sn(i,r,o)}}});function sn(t,r,n){if(t.issues.length)return t.aborted=!0,t;if((n.direction||"forward")==="forward"){let e=r.transform(t.value,t);return e instanceof Promise?e.then(i=>cn(t,i,r.out,n)):cn(t,e,r.out,n)}else{let e=r.reverseTransform(t.value,t);return e instanceof Promise?e.then(i=>cn(t,i,r.in,n)):cn(t,e,r.in,n)}}function cn(t,r,n,o){return t.issues.length?(t.aborted=!0,t):n._zod.run({value:r,issues:t.issues},o)}var Ss=p("$ZodPreprocess",(t,r)=>{fn.init(t,r)}),ws=p("$ZodReadonly",(t,r)=>{k.init(t,r),I(t._zod,"propValues",()=>r.innerType._zod.propValues),I(t._zod,"values",()=>r.innerType._zod.values),I(t._zod,"optin",()=>r.innerType?._zod?.optin),I(t._zod,"optout",()=>r.innerType?._zod?.optout),t._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);let e=r.innerType._zod.run(n,o);return e instanceof Promise?e.then(Md):Md(e)}});function Md(t){return t.value=Object.freeze(t.value),t}var Is=p("$ZodTemplateLiteral",(t,r)=>{k.init(t,r);let n=[];for(let o of r.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let e=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!e)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=e.startsWith("^")?1:0,a=e.endsWith("$")?e.length-1:e.length;n.push(e.slice(i,a))}else if(o===null||_o.has(typeof o))n.push(se(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);t._zod.pattern=new RegExp(`^${n.join("")}$`),t._zod.parse=(o,e)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:t,expected:"string",code:"invalid_type"}),o):(t._zod.pattern.lastIndex=0,t._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:t,code:"invalid_format",format:r.format??"template_literal",pattern:t._zod.pattern.source}),o)}),zs=p("$ZodFunction",(t,r)=>(k.init(t,r),t._def=r,t._zod.def=r,t.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...o){let e=t._def.input?Hr(t._def.input,o):o,i=Reflect.apply(n,this,e);return t._def.output?Hr(t._def.output,i):i}},t.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let e=t._def.input?await Wr(t._def.input,o):o,i=await Reflect.apply(n,this,e);return t._def.output?await Wr(t._def.output,i):i}},t._zod.parse=(n,o)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:t}),n):(t._def.output&&t._def.output._zod.def.type==="promise"?n.value=t.implementAsync(n.value):n.value=t.implement(n.value),n),t.input=(...n)=>{let o=t.constructor;return Array.isArray(n[0])?new o({type:"function",input:new mn({type:"tuple",items:n[0],rest:n[1]}),output:t._def.output}):new o({type:"function",input:n[0],output:t._def.output})},t.output=n=>{let o=t.constructor;return new o({type:"function",input:t._def.input,output:n})},t)),Os=p("$ZodPromise",(t,r)=>{k.init(t,r),t._zod.parse=(n,o)=>Promise.resolve(n.value).then(e=>r.innerType._zod.run({value:e,issues:[]},o))}),Ps=p("$ZodLazy",(t,r)=>{k.init(t,r),I(t._zod,"innerType",()=>{let n=r;return n._cachedInner||(n._cachedInner=r.getter()),n._cachedInner}),I(t._zod,"pattern",()=>t._zod.innerType?._zod?.pattern),I(t._zod,"propValues",()=>t._zod.innerType?._zod?.propValues),I(t._zod,"optin",()=>t._zod.innerType?._zod?.optin??void 0),I(t._zod,"optout",()=>t._zod.innerType?._zod?.optout??void 0),t._zod.parse=(n,o)=>t._zod.innerType._zod.run(n,o)}),Es=p("$ZodCustom",(t,r)=>{C.init(t,r),k.init(t,r),t._zod.parse=(n,o)=>n,t._zod.check=n=>{let o=n.value,e=r.fn(o);if(e instanceof Promise)return e.then(i=>Vd(i,n,o,t));Vd(e,n,o,t)}});function Vd(t,r,n,o){if(!t){let e={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(e.params=o._zod.def.params),r.issues.push(ot(e))}}var cr={};$e(cr,{ar:()=>qd,az:()=>Kd,be:()=>Xd,bg:()=>Qd,ca:()=>em,cs:()=>tm,da:()=>rm,de:()=>nm,el:()=>im,en:()=>gn,eo:()=>om,es:()=>am,fa:()=>sm,fi:()=>cm,fr:()=>um,frCA:()=>lm,he:()=>dm,hr:()=>mm,hu:()=>pm,hy:()=>gm,id:()=>hm,is:()=>vm,it:()=>_m,ja:()=>ym,ka:()=>bm,kh:()=>$m,km:()=>hn,ko:()=>xm,lt:()=>Sm,mk:()=>wm,ms:()=>Im,nl:()=>zm,no:()=>Om,ota:()=>Pm,pl:()=>Tm,ps:()=>Em,pt:()=>jm,ro:()=>Am,ru:()=>Nm,sl:()=>Dm,sv:()=>Um,ta:()=>Rm,th:()=>Zm,tr:()=>Lm,ua:()=>Fm,uk:()=>vn,ur:()=>Mm,uz:()=>Vm,vi:()=>Bm,yo:()=>Gm,zhCN:()=>Hm,zhTW:()=>Wm});var Jv=()=>{let t={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function r(e){return t[e]??null}let n={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${e.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`}case"invalid_value":return e.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${h(e.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${e.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${e.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${e.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${e.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${e.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${e.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${e.prefix}"`:i.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${i.suffix}"`:i.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${i.includes}"`:i.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${i.pattern}`:`${n[i.format]??e.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${e.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${e.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${e.keys.length>1?"\u0629":""}: ${f(e.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${e.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${e.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function qd(){return{localeError:Jv()}}var qv=()=>{let t={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function r(e){return t[e]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${e.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${s}`}case"invalid_value":return e.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${h(e.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${e.origin??"d\u0259y\u0259r"} ${i}${e.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${e.origin??"d\u0259y\u0259r"} ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${e.origin} ${i}${e.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${e.origin} ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[i.format]??e.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${e.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${e.keys.length>1?"lar":""}: ${f(e.keys,", ")}`;case"invalid_key":return`${e.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${e.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function Kd(){return{localeError:qv()}}function Yd(t,r,n,o){let e=Math.abs(t),i=e%10,a=e%100;return a>=11&&a<=19?o:i===1?r:i>=2&&i<=4?n:o}var Kv=()=>{let t={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function r(e){return t[e]??null}let n={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${e.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`}case"invalid_value":return e.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${h(e.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);if(a){let s=Number(e.maximum),u=Yd(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${e.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${e.maximum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${e.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);if(a){let s=Number(e.minimum),u=Yd(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${e.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${e.minimum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${e.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[i.format]??e.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${e.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${e.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${f(e.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${e.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${e.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function Xd(){return{localeError:Kv()}}var Yv=()=>{let t={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function r(e){return t[e]??null}let n={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${e.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`}case"invalid_value":return e.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${h(e.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${e.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${e.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${e.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${e.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${e.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${e.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;if(i.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${i.prefix}"`;if(i.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${i.suffix}"`;if(i.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${i.includes}"`;if(i.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${i.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${n[i.format]??e.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${e.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${e.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${e.keys.length>1?"\u043E\u0432\u0435":""}: ${f(e.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${e.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${e.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function Qd(){return{localeError:Yv()}}var Xv=()=>{let t={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(e){return t[e]??null}let n={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${e.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${s}`}case"invalid_value":return e.values.length===1?`Valor inv\xE0lid: s'esperava ${h(e.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${f(e.values," o ")}`;case"too_big":{let i=e.inclusive?"com a m\xE0xim":"menys de",a=r(e.origin);return a?`Massa gran: s'esperava que ${e.origin??"el valor"} contingu\xE9s ${i} ${e.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${e.origin??"el valor"} fos ${i} ${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?"com a m\xEDnim":"m\xE9s de",a=r(e.origin);return a?`Massa petit: s'esperava que ${e.origin} contingu\xE9s ${i} ${e.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${i} ${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${n[i.format]??e.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${e.divisor}`;case"unrecognized_keys":return`Clau${e.keys.length>1?"s":""} no reconeguda${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${e.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${e.origin}`;default:return"Entrada inv\xE0lida"}}};function em(){return{localeError:Xv()}}var Qv=()=>{let t={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function r(e){return t[e]??null}let n={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${e.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${s}`}case"invalid_value":return e.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${h(e.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${e.origin??"hodnota"} mus\xED m\xEDt ${i}${e.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${e.origin??"hodnota"} mus\xED b\xFDt ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${e.origin??"hodnota"} mus\xED m\xEDt ${i}${e.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${e.origin??"hodnota"} mus\xED b\xFDt ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${n[i.format]??e.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${e.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${f(e.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${e.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${e.origin}`;default:return"Neplatn\xFD vstup"}}};function tm(){return{localeError:Qv()}}var e_=()=>{let t={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function r(e){return t[e]??null}let n={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${s}`:`Ugyldigt input: forventede ${i}, fik ${s}`}case"invalid_value":return e.values.length===1?`Ugyldig v\xE6rdi: forventede ${h(e.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin),s=o[e.origin]??e.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${i} ${e.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${i} ${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin),s=o[e.origin]??e.origin;return a?`For lille: forventede ${s} ${a.verb} ${i} ${e.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${i} ${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??e.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${f(e.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${e.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${e.origin}`;default:return"Ugyldigt input"}}};function rm(){return{localeError:e_()}}var t_=()=>{let t={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function r(e){return t[e]??null}let n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},o={nan:"NaN",number:"Zahl",array:"Array"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${e.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${s}`}case"invalid_value":return e.values.length===1?`Ung\xFCltige Eingabe: erwartet ${h(e.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Zu gro\xDF: erwartet, dass ${e.origin??"Wert"} ${i}${e.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${e.origin??"Wert"} ${i}${e.maximum.toString()} ist`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Zu klein: erwartet, dass ${e.origin} ${i}${e.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${i}${e.minimum.toString()} ist`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${n[i.format]??e.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case"unrecognized_keys":return`${e.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${f(e.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${e.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${e.origin}`;default:return"Ung\xFCltige Eingabe"}}};function nm(){return{localeError:t_()}}var r_=()=>{let t={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function r(e){return t[e]??null}let n={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return typeof e.expected=="string"&&/^[A-Z]/.test(e.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${e.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${i}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`}case"invalid_value":return e.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${h(e.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${e.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${e.maximum.toString()} ${a.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${e.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${e.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${e.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${e.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${i.prefix}"`:i.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${i.suffix}"`:i.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${i.includes}"`:i.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${i.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${n[i.format]??e.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${e.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${e.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${e.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${f(e.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${e.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${e.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function im(){return{localeError:r_()}}var n_=()=>{let t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function r(e){return t[e]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return`Invalid input: expected ${i}, received ${s}`}case"invalid_value":return e.values.length===1?`Invalid input: expected ${h(e.values[0])}`:`Invalid option: expected one of ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Too big: expected ${e.origin??"value"} to have ${i}${e.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${e.origin??"value"} to be ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Too small: expected ${e.origin} to have ${i}${e.minimum.toString()} ${a.unit}`:`Too small: expected ${e.origin} to be ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${n[i.format]??e.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${e.divisor}`;case"unrecognized_keys":return`Unrecognized key${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`Invalid key in ${e.origin}`;case"invalid_union":return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${e.origin}`;default:return"Invalid input"}}};function gn(){return{localeError:n_()}}var i_=()=>{let t={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(e){return t[e]??null}let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${e.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${s}`}case"invalid_value":return e.values.length===1?`Nevalida enigo: atendi\u011Dis ${h(e.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Tro granda: atendi\u011Dis ke ${e.origin??"valoro"} havu ${i}${e.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${e.origin??"valoro"} havu ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Tro malgranda: atendi\u011Dis ke ${e.origin} havu ${i}${e.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${e.origin} estu ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${n[i.format]??e.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case"unrecognized_keys":return`Nekonata${e.keys.length>1?"j":""} \u015Dlosilo${e.keys.length>1?"j":""}: ${f(e.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${e.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${e.origin}`;default:return"Nevalida enigo"}}};function om(){return{localeError:i_()}}var o_=()=>{let t={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function r(e){return t[e]??null}let n={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${e.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${s}`}case"invalid_value":return e.values.length===1?`Entrada inv\xE1lida: se esperaba ${h(e.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin),s=o[e.origin]??e.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${i}${e.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin),s=o[e.origin]??e.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${i}${e.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${n[i.format]??e.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${e.divisor}`;case"unrecognized_keys":return`Llave${e.keys.length>1?"s":""} desconocida${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[e.origin]??e.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[e.origin]??e.origin}`;default:return"Entrada inv\xE1lida"}}};function am(){return{localeError:o_()}}var a_=()=>{let t={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function r(e){return t[e]??null}let n={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${e.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return e.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${h(e.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${f(e.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${e.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${e.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${e.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${e.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${e.origin} \u0628\u0627\u06CC\u062F ${i}${e.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${e.origin} \u0628\u0627\u06CC\u062F ${i}${e.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[i.format]??e.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${e.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${e.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${f(e.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${e.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${e.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function sm(){return{localeError:a_()}}var s_=()=>{let t={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function r(e){return t[e]??null}let n={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${s}`}case"invalid_value":return e.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${h(e.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${e.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${e.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${n[i.format]??e.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${e.divisor} monikerta`;case"unrecognized_keys":return`${e.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${f(e.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function cm(){return{localeError:s_()}}var c_=()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(e){return t[e]??null}let n={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Entr\xE9e invalide : instanceof ${e.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${s} re\xE7u`}case"invalid_value":return e.values.length===1?`Entr\xE9e invalide : ${h(e.values[0])} attendu`:`Option invalide : une valeur parmi ${f(e.values,"|")} attendue`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Trop grand : ${o[e.origin]??"valeur"} doit ${a.verb} ${i}${e.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${o[e.origin]??"valeur"} doit \xEAtre ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Trop petit : ${o[e.origin]??"valeur"} doit ${a.verb} ${i}${e.minimum.toString()} ${a.unit}`:`Trop petit : ${o[e.origin]??"valeur"} doit \xEAtre ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${n[i.format]??e.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${e.divisor}`;case"unrecognized_keys":return`Cl\xE9${e.keys.length>1?"s":""} non reconnue${e.keys.length>1?"s":""} : ${f(e.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${e.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${e.origin}`;default:return"Entr\xE9e invalide"}}};function um(){return{localeError:c_()}}var u_=()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(e){return t[e]??null}let n={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Entr\xE9e invalide : attendu instanceof ${e.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${s}`}case"invalid_value":return e.values.length===1?`Entr\xE9e invalide : attendu ${h(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"\u2264":"<",a=r(e.origin);return a?`Trop grand : attendu que ${e.origin??"la valeur"} ait ${i}${e.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${e.origin??"la valeur"} soit ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?"\u2265":">",a=r(e.origin);return a?`Trop petit : attendu que ${e.origin} ait ${i}${e.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${e.origin} soit ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${n[i.format]??e.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${e.divisor}`;case"unrecognized_keys":return`Cl\xE9${e.keys.length>1?"s":""} non reconnue${e.keys.length>1?"s":""} : ${f(e.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${e.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${e.origin}`;default:return"Entr\xE9e invalide"}}};function lm(){return{localeError:u_()}}var l_=()=>{let t={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},r={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},n=l=>l?t[l]:void 0,o=l=>{let d=n(l);return d?d.label:l??t.unknown.label},e=l=>`\u05D4${o(l)}`,i=l=>(n(l)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=l=>l?r[l]??null:null,s={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},u={nan:"NaN"};return l=>{switch(l.code){case"invalid_type":{let d=l.expected,m=u[d??""]??o(d),g=v(l.input),_=u[g]??t[g]?.label??g;return/^[A-Z]/.test(l.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${l.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${_}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}, \u05D4\u05EA\u05E7\u05D1\u05DC ${_}`}case"invalid_value":{if(l.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${h(l.values[0])}`;let d=l.values.map(_=>h(_));if(l.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d[0]} \u05D0\u05D5 ${d[1]}`;let m=d[d.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d.slice(0,-1).join(", ")} \u05D0\u05D5 ${m}`}case"too_big":{let d=a(l.origin),m=e(l.origin??"value");if(l.origin==="string")return`${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.maximum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(l.origin==="number"){let x=l.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${l.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${x}`}if(l.origin==="array"||l.origin==="set"){let x=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",K=l.inclusive?`${l.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${l.maximum} ${d?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${m} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${K}`.trim()}let g=l.inclusive?"<=":"<",_=i(l.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${m} ${_} ${g}${l.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${m} ${_} ${g}${l.maximum.toString()}`}case"too_small":{let d=a(l.origin),m=e(l.origin??"value");if(l.origin==="string")return`${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.minimum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(l.origin==="number"){let x=l.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${l.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${x}`}if(l.origin==="array"||l.origin==="set"){let x=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(l.minimum===1&&l.inclusive){let F=(l.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${m} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${F}`}let K=l.inclusive?`${l.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${l.minimum} ${d?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${m} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${K}`.trim()}let g=l.inclusive?">=":">",_=i(l.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${m} ${_} ${g}${l.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${m} ${_} ${g}${l.minimum.toString()}`}case"invalid_format":{let d=l;if(d.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${d.prefix}"`;if(d.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${d.suffix}"`;if(d.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${d.includes}"`;if(d.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${d.pattern}`;let m=s[d.format],g=m?.label??d.format,x=(m?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${g} \u05DC\u05D0 ${x}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${l.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${l.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${l.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${f(l.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${e(l.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function dm(){return{localeError:l_()}}var d_=()=>{let t={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function r(e){return t[e]??null}let n={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},o={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${e.expected}, a primljeno je ${s}`:`Neispravan unos: o\u010Dekuje se ${i}, a primljeno je ${s}`}case"invalid_value":return e.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${h(e.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin),s=o[e.origin]??e.origin;return a?`Preveliko: o\u010Dekivano da ${s??"vrijednost"} ima ${i}${e.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${s??"vrijednost"} bude ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin),s=o[e.origin]??e.origin;return a?`Premalo: o\u010Dekivano da ${s} ima ${i}${e.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${s} bude ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${i.prefix}"`:i.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${i.suffix}"`:i.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${i.includes}"`:i.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${i.pattern}`:`Neispravna ${n[i.format]??e.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${e.divisor}`;case"unrecognized_keys":return`Neprepoznat${e.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${f(e.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${o[e.origin]??e.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[e.origin]??e.origin}`;default:return"Neispravan unos"}}};function mm(){return{localeError:d_()}}var m_=()=>{let t={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function r(e){return t[e]??null}let n={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${e.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return e.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${h(e.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`T\xFAl nagy: ${e.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${e.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${e.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${e.origin} m\xE9rete t\xFAl kicsi ${i}${e.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${e.origin} t\xFAl kicsi ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[i.format]??e.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${e.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${e.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${e.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function pm(){return{localeError:m_()}}function fm(t,r,n){return Math.abs(t)===1?r:n}function dt(t){if(!t)return"";let r=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=t[t.length-1];return t+(r.includes(n)?"\u0576":"\u0568")}var p_=()=>{let t={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function r(e){return t[e]??null}let n={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${e.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`}case"invalid_value":return e.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${h(e.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);if(a){let s=Number(e.maximum),u=fm(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${dt(e.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${e.maximum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${dt(e.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);if(a){let s=Number(e.minimum),u=fm(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${dt(e.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${e.minimum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${dt(e.origin)} \u056C\u056B\u0576\u056B ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[i.format]??e.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${e.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${e.keys.length>1?"\u0576\u0565\u0580":""}. ${f(e.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${dt(e.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${dt(e.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function gm(){return{localeError:p_()}}var f_=()=>{let t={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function r(e){return t[e]??null}let n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${i}, diterima ${s}`}case"invalid_value":return e.values.length===1?`Input tidak valid: diharapkan ${h(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Terlalu besar: diharapkan ${e.origin??"value"} memiliki ${i}${e.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${e.origin??"value"} menjadi ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Terlalu kecil: diharapkan ${e.origin} memiliki ${i}${e.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${n[i.format]??e.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${e.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${e.origin}`;default:return"Input tidak valid"}}};function hm(){return{localeError:f_()}}var g_=()=>{let t={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function r(e){return t[e]??null}let n={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${e.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return e.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${h(e.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${e.origin??"gildi"} hafi ${i}${e.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${e.origin??"gildi"} s\xE9 ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${e.origin} hafi ${i}${e.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${e.origin} s\xE9 ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${n[i.format]??e.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${e.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${e.keys.length>1?"ir lyklar":"ur lykill"}: ${f(e.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${e.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${e.origin}`;default:return"Rangt gildi"}}};function vm(){return{localeError:g_()}}var h_=()=>{let t={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function r(e){return t[e]??null}let n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"numero",array:"vettore"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${s}`:`Input non valido: atteso ${i}, ricevuto ${s}`}case"invalid_value":return e.values.length===1?`Input non valido: atteso ${h(e.values[0])}`:`Opzione non valida: atteso uno tra ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Troppo grande: ${e.origin??"valore"} deve avere ${i}${e.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${e.origin??"valore"} deve essere ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Troppo piccolo: ${e.origin} deve avere ${i}${e.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${e.origin} deve essere ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Input non valido: ${n[i.format]??e.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case"unrecognized_keys":return`Chiav${e.keys.length>1?"i":"e"} non riconosciut${e.keys.length>1?"e":"a"}: ${f(e.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${e.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${e.origin}`;default:return"Input non valido"}}};function _m(){return{localeError:h_()}}var v_=()=>{let t={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function r(e){return t[e]??null}let n={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${e.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return e.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${h(e.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${f(e.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=e.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=r(e.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${e.origin??"\u5024"}\u306F${e.maximum.toString()}${a.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${e.origin??"\u5024"}\u306F${e.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=e.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=r(e.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${e.origin}\u306F${e.minimum.toString()}${a.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${e.origin}\u306F${e.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[i.format]??e.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${e.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${e.keys.length>1?"\u7FA4":""}: ${f(e.keys,"\u3001")}`;case"invalid_key":return`${e.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${e.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function ym(){return{localeError:v_()}}var __=()=>{let t={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function r(e){return t[e]??null}let n={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${e.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`}case"invalid_value":return e.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${h(e.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${f(e.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${e.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${i}${e.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${e.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${e.origin} ${a.verb} ${i}${e.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${e.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.prefix}"-\u10D8\u10D7`:i.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.suffix}"-\u10D8\u10D7`:i.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${i.includes}"-\u10E1`:i.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[i.format]??e.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${e.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${e.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${f(e.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${e.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${e.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function bm(){return{localeError:__()}}var y_=()=>{let t={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function r(e){return t[e]??null}let n={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},o={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${e.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`}case"invalid_value":return e.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${h(e.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${e.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${e.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${e.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${e.origin} ${i} ${e.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${e.origin} ${i} ${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${i.prefix}"`:i.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${i.suffix}"`:i.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${i.includes}"`:i.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[i.format]??e.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${e.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${f(e.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${e.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${e.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function hn(){return{localeError:y_()}}function $m(){return hn()}var b_=()=>{let t={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function r(e){return t[e]??null}let n={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${e.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return e.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${h(e.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${f(e.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=e.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=r(e.origin),u=s?.unit??"\uC694\uC18C";return s?`${e.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${e.maximum.toString()}${u} ${i}${a}`:`${e.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${e.maximum.toString()} ${i}${a}`}case"too_small":{let i=e.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=r(e.origin),u=s?.unit??"\uC694\uC18C";return s?`${e.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${e.minimum.toString()}${u} ${i}${a}`:`${e.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${e.minimum.toString()} ${i}${a}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[i.format]??e.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${e.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${f(e.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${e.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${e.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function xm(){return{localeError:b_()}}var sr=t=>t.charAt(0).toUpperCase()+t.slice(1);function km(t){let r=Math.abs(t),n=r%10,o=r%100;return o>=11&&o<=19||n===0?"many":n===1?"one":"few"}var $_=()=>{let t={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function r(e,i,a,s){let u=t[e]??null;return u===null?u:{unit:u.unit[i],verb:u.verb[s][a?"inclusive":"notInclusive"]}}let n={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},o={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${e.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${i}`}case"invalid_value":return e.values.length===1?`Privalo b\u016Bti ${h(e.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${f(e.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[e.origin]??e.origin,a=r(e.origin,km(Number(e.maximum)),e.inclusive??!1,"smaller");if(a?.verb)return`${sr(i??e.origin??"reik\u0161m\u0117")} ${a.verb} ${e.maximum.toString()} ${a.unit??"element\u0173"}`;let s=e.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${sr(i??e.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${e.maximum.toString()} ${a?.unit}`}case"too_small":{let i=o[e.origin]??e.origin,a=r(e.origin,km(Number(e.minimum)),e.inclusive??!1,"bigger");if(a?.verb)return`${sr(i??e.origin??"reik\u0161m\u0117")} ${a.verb} ${e.minimum.toString()} ${a.unit??"element\u0173"}`;let s=e.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${sr(i??e.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${e.minimum.toString()} ${a?.unit}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${n[i.format]??e.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${e.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${e.keys.length>1?"i":"as"} rakt${e.keys.length>1?"ai":"as"}: ${f(e.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[e.origin]??e.origin;return`${sr(i??e.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function Sm(){return{localeError:$_()}}var x_=()=>{let t={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function r(e){return t[e]??null}let n={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${e.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return e.values.length===1?`Invalid input: expected ${h(e.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${e.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${e.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${e.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${e.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${e.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${e.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${i.pattern}`:`Invalid ${n[i.format]??e.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${f(e.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${e.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${e.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function wm(){return{localeError:x_()}}var k_=()=>{let t={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function r(e){return t[e]??null}let n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"nombor"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${s}`:`Input tidak sah: dijangka ${i}, diterima ${s}`}case"invalid_value":return e.values.length===1?`Input tidak sah: dijangka ${h(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Terlalu besar: dijangka ${e.origin??"nilai"} ${a.verb} ${i}${e.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${e.origin??"nilai"} adalah ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Terlalu kecil: dijangka ${e.origin} ${a.verb} ${i}${e.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${n[i.format]??e.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${f(e.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${e.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${e.origin}`;default:return"Input tidak sah"}}};function Im(){return{localeError:k_()}}var S_=()=>{let t={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function r(e){return t[e]??null}let n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${i}, ontving ${s}`}case"invalid_value":return e.values.length===1?`Ongeldige invoer: verwacht ${h(e.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin),s=e.origin==="date"?"laat":e.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${e.origin??"waarde"} ${i}${e.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${e.origin??"waarde"} ${i}${e.maximum.toString()} is`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin),s=e.origin==="date"?"vroeg":e.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${e.origin} ${i}${e.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${e.origin} ${i}${e.minimum.toString()} is`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${n[i.format]??e.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${e.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${e.origin}`;default:return"Ongeldige invoer"}}};function zm(){return{localeError:S_()}}var w_=()=>{let t={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function r(e){return t[e]??null}let n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tall",array:"liste"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${s}`:`Ugyldig input: forventet ${i}, fikk ${s}`}case"invalid_value":return e.values.length===1?`Ugyldig verdi: forventet ${h(e.values[0])}`:`Ugyldig valg: forventet en av ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`For stor(t): forventet ${e.origin??"value"} til \xE5 ha ${i}${e.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${e.origin??"value"} til \xE5 ha ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`For lite(n): forventet ${e.origin} til \xE5 ha ${i}${e.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${e.origin} til \xE5 ha ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??e.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${f(e.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${e.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${e.origin}`;default:return"Ugyldig input"}}};function Om(){return{localeError:w_()}}var I_=()=>{let t={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function r(e){return t[e]??null}let n={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`F\xE2sit giren: umulan instanceof ${e.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${s}`}case"invalid_value":return e.values.length===1?`F\xE2sit giren: umulan ${h(e.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Fazla b\xFCy\xFCk: ${e.origin??"value"}, ${i}${e.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${e.origin??"value"}, ${i}${e.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Fazla k\xFC\xE7\xFCk: ${e.origin}, ${i}${e.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${e.origin}, ${i}${e.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=e;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[i.format]??e.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${e.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`${e.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${e.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function Pm(){return{localeError:I_()}}var z_=()=>{let t={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function r(e){return t[e]??null}let n={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${e.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return e.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${h(e.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${f(e.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${e.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${e.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${e.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${e.maximum.toString()} \u0648\u064A`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${e.origin} \u0628\u0627\u06CC\u062F ${i}${e.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${e.origin} \u0628\u0627\u06CC\u062F ${i}${e.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[i.format]??e.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${e.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${e.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${f(e.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${e.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${e.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function Em(){return{localeError:z_()}}var O_=()=>{let t={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function r(e){return t[e]??null}let n={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${e.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${s}`}case"invalid_value":return e.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${h(e.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${e.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${e.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${e.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${e.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${e.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${e.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[i.format]??e.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${e.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${e.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${e.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function Tm(){return{localeError:O_()}}var P_=()=>{let t={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function r(e){return t[e]??null}let n={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Tipo inv\xE1lido: esperado instanceof ${e.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${s}`}case"invalid_value":return e.values.length===1?`Entrada inv\xE1lida: esperado ${h(e.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Muito grande: esperado que ${e.origin??"valor"} tivesse ${i}${e.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${e.origin??"valor"} fosse ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Muito pequeno: esperado que ${e.origin} tivesse ${i}${e.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${n[i.format]??e.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${e.divisor}`;case"unrecognized_keys":return`Chave${e.keys.length>1?"s":""} desconhecida${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${e.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${e.origin}`;default:return"Campo inv\xE1lido"}}};function jm(){return{localeError:P_()}}var E_=()=>{let t={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function r(e){return t[e]??null}let n={regex:"intrare",email:"adres\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},o={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${i}, primit ${s}`}case"invalid_value":return e.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${h(e.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Prea mare: a\u0219teptat ca ${e.origin??"valoarea"} ${a.verb} ${i}${e.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${e.origin??"valoarea"} s\u0103 fie ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Prea mic: a\u0219teptat ca ${e.origin} ${a.verb} ${i}${e.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${e.origin} s\u0103 fie ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${i.prefix}"`:i.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${i.suffix}"`:i.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${i.includes}"`:i.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${i.pattern}`:`Format invalid: ${n[i.format]??e.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${e.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${f(e.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${e.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${e.origin}`;default:return"Intrare invalid\u0103"}}};function Am(){return{localeError:E_()}}function Cm(t,r,n,o){let e=Math.abs(t),i=e%10,a=e%100;return a>=11&&a<=19?o:i===1?r:i>=2&&i<=4?n:o}var T_=()=>{let t={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function r(e){return t[e]??null}let n={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${e.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`}case"invalid_value":return e.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${h(e.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);if(a){let s=Number(e.maximum),u=Cm(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${e.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${e.maximum.toString()} ${u}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${e.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);if(a){let s=Number(e.minimum),u=Cm(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${e.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${e.minimum.toString()} ${u}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${e.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[i.format]??e.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${e.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${e.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${e.keys.length>1?"\u0438":""}: ${f(e.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${e.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${e.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function Nm(){return{localeError:T_()}}var j_=()=>{let t={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function r(e){return t[e]??null}let n={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${e.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${s}`}case"invalid_value":return e.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${h(e.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${e.origin??"vrednost"} imelo ${i}${e.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${e.origin??"vrednost"} ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${e.origin} imelo ${i}${e.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${e.origin} ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${n[i.format]??e.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${e.divisor}`;case"unrecognized_keys":return`Neprepoznan${e.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${f(e.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${e.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${e.origin}`;default:return"Neveljaven vnos"}}};function Dm(){return{localeError:j_()}}var A_=()=>{let t={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function r(e){return t[e]??null}let n={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${e.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${s}`}case"invalid_value":return e.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${h(e.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${e.origin??"v\xE4rdet"} att ha ${i}${e.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${e.origin??"v\xE4rdet"} att ha ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${e.origin??"v\xE4rdet"} att ha ${i}${e.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${e.origin??"v\xE4rdet"} att ha ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${n[i.format]??e.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${f(e.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${e.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${e.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function Um(){return{localeError:A_()}}var C_=()=>{let t={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function r(e){return t[e]??null}let n={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${e.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`}case"invalid_value":return e.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${h(e.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${f(e.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${e.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${e.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${e.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${e.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${e.origin} ${i}${e.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${e.origin} ${i}${e.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${n[i.format]??e.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${e.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${e.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${f(e.keys,", ")}`;case"invalid_key":return`${e.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${e.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function Rm(){return{localeError:C_()}}var N_=()=>{let t={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function r(e){return t[e]??null}let n={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},o={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${e.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`}case"invalid_value":return e.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${h(e.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=r(e.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${e.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${e.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${e.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=r(e.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${e.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${e.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${e.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${i.prefix}"`:i.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${i.suffix}"`:i.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[i.format]??e.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${e.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${f(e.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${e.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${e.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function Zm(){return{localeError:N_()}}var D_=()=>{let t={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function r(e){return t[e]??null}let n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${e.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${s}`}case"invalid_value":return e.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${h(e.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${e.origin??"de\u011Fer"} ${i}${e.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${e.origin??"de\u011Fer"} ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${e.origin} ${i}${e.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${e.origin} ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[i.format]??e.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${e.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${e.keys.length>1?"lar":""}: ${f(e.keys,", ")}`;case"invalid_key":return`${e.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${e.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function Lm(){return{localeError:D_()}}var U_=()=>{let t={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function r(e){return t[e]??null}let n={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${e.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`}case"invalid_value":return e.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${h(e.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${e.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${i}${e.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${e.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${e.origin} ${a.verb} ${i}${e.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${e.origin} \u0431\u0443\u0434\u0435 ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[i.format]??e.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${e.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${e.keys.length>1?"\u0456":""}: ${f(e.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${e.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${e.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function vn(){return{localeError:U_()}}function Fm(){return vn()}var R_=()=>{let t={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function r(e){return t[e]??null}let n={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${e.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return e.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${h(e.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${f(e.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${e.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${e.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${e.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${e.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${e.origin} \u06A9\u06D2 ${i}${e.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${e.origin} \u06A9\u0627 ${i}${e.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[i.format]??e.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${e.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${e.keys.length>1?"\u0632":""}: ${f(e.keys,"\u060C ")}`;case"invalid_key":return`${e.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${e.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function Mm(){return{localeError:R_()}}var Z_=()=>{let t={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function r(e){return t[e]??null}let n={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${s}`}case"invalid_value":return e.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${h(e.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Juda katta: kutilgan ${e.origin??"qiymat"} ${i}${e.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${e.origin??"qiymat"} ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Juda kichik: kutilgan ${e.origin} ${i}${e.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${e.origin} ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[i.format]??e.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${e.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${e.keys.length>1?"lar":""}: ${f(e.keys,", ")}`;case"invalid_key":return`${e.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${e.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function Vm(){return{localeError:Z_()}}var L_=()=>{let t={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function r(e){return t[e]??null}let n={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${e.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case"invalid_value":return e.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${h(e.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${e.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${e.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${e.origin??"gi\xE1 tr\u1ECB"} ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${e.origin} ${a.verb} ${i}${e.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${e.origin} ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${n[i.format]??e.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${e.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${f(e.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${e.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${e.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function Bm(){return{localeError:L_()}}var F_=()=>{let t={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function r(e){return t[e]??null}let n={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${e.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return e.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${h(e.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${e.origin??"\u503C"} ${i}${e.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${e.origin??"\u503C"} ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${e.origin} ${i}${e.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${e.origin} ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${n[i.format]??e.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${e.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${f(e.keys,", ")}`;case"invalid_key":return`${e.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${e.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function Hm(){return{localeError:F_()}}var M_=()=>{let t={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function r(e){return t[e]??null}let n={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${e.expected}\uFF0C\u4F46\u6536\u5230 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return e.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${h(e.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${e.origin??"\u503C"} \u61C9\u70BA ${i}${e.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${e.origin??"\u503C"} \u61C9\u70BA ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${e.origin} \u61C9\u70BA ${i}${e.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${e.origin} \u61C9\u70BA ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${n[i.format]??e.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${e.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${e.keys.length>1?"\u5011":""}\uFF1A${f(e.keys,"\u3001")}`;case"invalid_key":return`${e.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${e.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function Wm(){return{localeError:M_()}}var V_=()=>{let t={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function r(e){return t[e]??null}let n={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${e.expected}, \xE0m\u1ECD\u0300 a r\xED ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case"invalid_value":return e.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${h(e.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${e.origin??"iye"} ${a.verb} ${i}${e.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${e.maximum}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${e.origin} ${a.verb} ${i}${e.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${e.minimum}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${n[i.format]??e.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${e.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${f(e.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${e.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${e.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function Gm(){return{localeError:V_()}}var Jm,Ts=Symbol("ZodOutput"),js=Symbol("ZodInput"),_n=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...n){let o=n[0];return this._map.set(r,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,r),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){let n=this._map.get(r);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(r),this}get(r){let n=r._zod.parent;if(n){let o={...this.get(n)??{}};delete o.id;let e={...o,...this._map.get(r)};return Object.keys(e).length?e:void 0}return this._map.get(r)}has(r){return this._map.has(r)}};function yn(){return new _n}(Jm=globalThis).__zod_globalRegistry??(Jm.__zod_globalRegistry=yn());var V=globalThis.__zod_globalRegistry;function As(t,r){return new t({type:"string",...b(r)})}function Cs(t,r){return new t({type:"string",coerce:!0,...b(r)})}function bn(t,r){return new t({type:"string",format:"email",check:"string_format",abort:!1,...b(r)})}function ur(t,r){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...b(r)})}function $n(t,r){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...b(r)})}function xn(t,r){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...b(r)})}function kn(t,r){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...b(r)})}function Sn(t,r){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...b(r)})}function lr(t,r){return new t({type:"string",format:"url",check:"string_format",abort:!1,...b(r)})}function wn(t,r){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...b(r)})}function In(t,r){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...b(r)})}function zn(t,r){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...b(r)})}function On(t,r){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...b(r)})}function Pn(t,r){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...b(r)})}function En(t,r){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...b(r)})}function Tn(t,r){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...b(r)})}function jn(t,r){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...b(r)})}function An(t,r){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...b(r)})}function Ns(t,r){return new t({type:"string",format:"mac",check:"string_format",abort:!1,...b(r)})}function Cn(t,r){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...b(r)})}function Nn(t,r){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...b(r)})}function Dn(t,r){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...b(r)})}function Un(t,r){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...b(r)})}function Rn(t,r){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...b(r)})}function Zn(t,r){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...b(r)})}var Ds={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Us(t,r){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...b(r)})}function Rs(t,r){return new t({type:"string",format:"date",check:"string_format",...b(r)})}function Zs(t,r){return new t({type:"string",format:"time",check:"string_format",precision:null,...b(r)})}function Ls(t,r){return new t({type:"string",format:"duration",check:"string_format",...b(r)})}function Fs(t,r){return new t({type:"number",checks:[],...b(r)})}function Ms(t,r){return new t({type:"number",coerce:!0,checks:[],...b(r)})}function Vs(t,r){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...b(r)})}function Bs(t,r){return new t({type:"number",check:"number_format",abort:!1,format:"float32",...b(r)})}function Hs(t,r){return new t({type:"number",check:"number_format",abort:!1,format:"float64",...b(r)})}function Ws(t,r){return new t({type:"number",check:"number_format",abort:!1,format:"int32",...b(r)})}function Gs(t,r){return new t({type:"number",check:"number_format",abort:!1,format:"uint32",...b(r)})}function Js(t,r){return new t({type:"boolean",...b(r)})}function qs(t,r){return new t({type:"boolean",coerce:!0,...b(r)})}function Ks(t,r){return new t({type:"bigint",...b(r)})}function Ys(t,r){return new t({type:"bigint",coerce:!0,...b(r)})}function Xs(t,r){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...b(r)})}function Qs(t,r){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...b(r)})}function ec(t,r){return new t({type:"symbol",...b(r)})}function tc(t,r){return new t({type:"undefined",...b(r)})}function rc(t,r){return new t({type:"null",...b(r)})}function nc(t){return new t({type:"any"})}function ic(t){return new t({type:"unknown"})}function oc(t,r){return new t({type:"never",...b(r)})}function ac(t,r){return new t({type:"void",...b(r)})}function sc(t,r){return new t({type:"date",...b(r)})}function cc(t,r){return new t({type:"date",coerce:!0,...b(r)})}function uc(t,r){return new t({type:"nan",...b(r)})}function he(t,r){return new nn({check:"less_than",...b(r),value:t,inclusive:!1})}function re(t,r){return new nn({check:"less_than",...b(r),value:t,inclusive:!0})}function ve(t,r){return new on({check:"greater_than",...b(r),value:t,inclusive:!1})}function G(t,r){return new on({check:"greater_than",...b(r),value:t,inclusive:!0})}function Ln(t){return ve(0,t)}function Fn(t){return he(0,t)}function Mn(t){return re(0,t)}function Vn(t){return G(0,t)}function De(t,r){return new ra({check:"multiple_of",...b(r),value:t})}function Ue(t,r){return new oa({check:"max_size",...b(r),maximum:t})}function _e(t,r){return new aa({check:"min_size",...b(r),minimum:t})}function Je(t,r){return new sa({check:"size_equals",...b(r),size:t})}function qe(t,r){return new ca({check:"max_length",...b(r),maximum:t})}function we(t,r){return new ua({check:"min_length",...b(r),minimum:t})}function Ke(t,r){return new la({check:"length_equals",...b(r),length:t})}function mt(t,r){return new da({check:"string_format",format:"regex",...b(r),pattern:t})}function pt(t){return new ma({check:"string_format",format:"lowercase",...b(t)})}function ft(t){return new pa({check:"string_format",format:"uppercase",...b(t)})}function gt(t,r){return new fa({check:"string_format",format:"includes",...b(r),includes:t})}function ht(t,r){return new ga({check:"string_format",format:"starts_with",...b(r),prefix:t})}function vt(t,r){return new ha({check:"string_format",format:"ends_with",...b(r),suffix:t})}function Bn(t,r,n){return new va({check:"property",property:t,schema:r,...b(n)})}function _t(t,r){return new _a({check:"mime_type",mime:t,...b(r)})}function le(t){return new ya({check:"overwrite",tx:t})}function yt(t){return le(r=>r.normalize(t))}function bt(){return le(t=>t.trim())}function $t(){return le(t=>t.toLowerCase())}function xt(){return le(t=>t.toUpperCase())}function kt(){return le(t=>go(t))}function lc(t,r,n){return new t({type:"array",element:r,...b(n)})}function H_(t,r,n){return new t({type:"union",options:r,...b(n)})}function W_(t,r,n){return new t({type:"union",options:r,inclusive:!1,...b(n)})}function G_(t,r,n,o){return new t({type:"union",options:n,discriminator:r,...b(o)})}function J_(t,r,n){return new t({type:"intersection",left:r,right:n})}function q_(t,r,n,o){let e=n instanceof k,i=e?o:n,a=e?n:null;return new t({type:"tuple",items:r,rest:a,...b(i)})}function K_(t,r,n,o){return new t({type:"record",keyType:r,valueType:n,...b(o)})}function Y_(t,r,n,o){return new t({type:"map",keyType:r,valueType:n,...b(o)})}function X_(t,r,n){return new t({type:"set",valueType:r,...b(n)})}function Q_(t,r,n){let o=Array.isArray(r)?Object.fromEntries(r.map(e=>[e,e])):r;return new t({type:"enum",entries:o,...b(n)})}function ey(t,r,n){return new t({type:"enum",entries:r,...b(n)})}function ty(t,r,n){return new t({type:"literal",values:Array.isArray(r)?r:[r],...b(n)})}function dc(t,r){return new t({type:"file",...b(r)})}function ry(t,r){return new t({type:"transform",transform:r})}function ny(t,r){return new t({type:"optional",innerType:r})}function iy(t,r){return new t({type:"nullable",innerType:r})}function oy(t,r,n){return new t({type:"default",innerType:r,get defaultValue(){return typeof n=="function"?n():vo(n)}})}function ay(t,r,n){return new t({type:"nonoptional",innerType:r,...b(n)})}function sy(t,r){return new t({type:"success",innerType:r})}function cy(t,r,n){return new t({type:"catch",innerType:r,catchValue:typeof n=="function"?n:()=>n})}function uy(t,r,n){return new t({type:"pipe",in:r,out:n})}function ly(t,r){return new t({type:"readonly",innerType:r})}function dy(t,r,n){return new t({type:"template_literal",parts:r,...b(n)})}function my(t,r){return new t({type:"lazy",getter:r})}function py(t,r){return new t({type:"promise",innerType:r})}function mc(t,r,n){let o=b(n);return o.abort??(o.abort=!0),new t({type:"custom",check:"custom",fn:r,...o})}function pc(t,r,n){return new t({type:"custom",check:"custom",fn:r,...b(n)})}function fc(t,r){let n=qm(o=>(o.addIssue=e=>{if(typeof e=="string")o.issues.push(ot(e,o.value,n._zod.def));else{let i=e;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),o.issues.push(ot(i))}},t(o.value,o)),r);return n}function qm(t,r){let n=new C({check:"custom",...b(r)});return n._zod.check=t,n}function gc(t){let r=new C({check:"describe"});return r._zod.onattach=[n=>{let o=V.get(n)??{};V.add(n,{...o,description:t})}],r._zod.check=()=>{},r}function hc(t){let r=new C({check:"meta"});return r._zod.onattach=[n=>{let o=V.get(n)??{};V.add(n,{...o,...t})}],r._zod.check=()=>{},r}function vc(t,r){let n=b(r),o=n.truthy??["true","1","yes","on","y","enabled"],e=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(o=o.map(_=>typeof _=="string"?_.toLowerCase():_),e=e.map(_=>typeof _=="string"?_.toLowerCase():_));let i=new Set(o),a=new Set(e),s=t.Codec??ar,u=t.Boolean??ir,l=t.String??Ge,d=new l({type:"string",error:n.error}),m=new u({type:"boolean",error:n.error}),g=new s({type:"pipe",in:d,out:m,transform:((_,x)=>{let K=_;return n.case!=="sensitive"&&(K=K.toLowerCase()),i.has(K)?!0:a.has(K)?!1:(x.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:x.value,inst:g,continue:!1}),{})}),reverseTransform:((_,x)=>_===!0?o[0]||"true":e[0]||"false"),error:n.error});return g}function St(t,r,n,o={}){let e=b(o),i={...b(o),check:"string_format",type:"string",format:r,fn:typeof n=="function"?n:s=>n.test(s),...e};return n instanceof RegExp&&(i.pattern=n),new t(i)}function Re(t){let r=t?.target??"draft-2020-12";return r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),{processors:t.processors??{},metadataRegistry:t?.metadata??V,target:r,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0}}function E(t,r,n={path:[],schemaPath:[]}){var o;let e=t._zod.def,i=r.seen.get(t);if(i)return i.count++,n.schemaPath.includes(t)&&(i.cycle=n.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};r.seen.set(t,a);let s=t._zod.toJSONSchema?.();if(s)a.schema=s;else{let d={...n,schemaPath:[...n.schemaPath,t],path:n.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(r,a.schema,d);else{let g=a.schema,_=r.processors[e.type];if(!_)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${e.type}`);_(t,r,g,d)}let m=t._zod.parent;m&&(a.ref||(a.ref=m),E(m,r,d),r.seen.get(m).isParent=!0)}let u=r.metadataRegistry.get(t);return u&&Object.assign(a.schema,u),r.io==="input"&&J(t)&&(delete a.schema.examples,delete a.schema.default),r.io==="input"&&"_prefault"in a.schema&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,r.seen.get(t).schema}function Ze(t,r){let n=t.seen.get(r);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let a of t.seen.entries()){let s=t.metadataRegistry.get(a[0])?.id;if(s){let u=o.get(s);if(u&&u!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(s,a[0])}}let e=a=>{let s=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){let m=t.external.registry.get(a[0])?.id,g=t.external.uri??(x=>x);if(m)return{ref:g(m)};let _=a[1].defId??a[1].schema.id??`schema${t.counter++}`;return a[1].defId=_,{defId:_,ref:`${g("__shared")}#/${s}/${_}`}}if(a[1]===n)return{ref:"#"};let l=`#/${s}/`,d=a[1].schema.id??`__schema${t.counter++}`;return{defId:d,ref:l+d}},i=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:u,defId:l}=e(a);s.def={...s.schema},l&&(s.defId=l);let d=s.schema;for(let m in d)delete d[m];d.$ref=u};if(t.cycles==="throw")for(let a of t.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
95
+ `)}_.write("payload.value = newResult;"),_.write("return payload;");let Wg=_.compile();return(ge,R)=>Wg(g,ge,R)},i,a=He,s=!Be.jitless,l=s&&vo.value,d=r.catchall,m;t._zod.parse=(g,_)=>{m??(m=o.value);let x=g.value;return a(x)?s&&l&&_?.async===!1&&_.jitless!==!0?(i||(i=e(r.shape)),g=i(g,_),d?Jd([],x,g,_,m,t):g):n(g,_):(g.issues.push({expected:"object",code:"invalid_type",input:x,inst:t}),g)}});function jd(t,r,n,o){for(let i of t)if(i.issues.length===0)return r.value=i.value,r;let e=t.filter(i=>!Ne(i));return e.length===1?(r.value=e[0].value,e[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:t.map(i=>i.issues.map(a=>W(a,o,Z())))}),r)}var or=p("$ZodUnion",(t,r)=>{S.init(t,r),z(t._zod,"optin",()=>r.options.some(o=>o._zod.optin==="optional")?"optional":void 0),z(t._zod,"optout",()=>r.options.some(o=>o._zod.optout==="optional")?"optional":void 0),z(t._zod,"values",()=>{if(r.options.every(o=>o._zod.values))return new Set(r.options.flatMap(o=>Array.from(o._zod.values)))}),z(t._zod,"pattern",()=>{if(r.options.every(o=>o._zod.pattern)){let o=r.options.map(e=>e._zod.pattern);return new RegExp(`^(${o.map(e=>Jt(e.source)).join("|")})$`)}});let n=r.options.length===1?r.options[0]._zod.run:null;t._zod.parse=(o,e)=>{if(n)return n(o,e);let i=!1,a=[];for(let s of r.options){let u=s._zod.run({value:o.value,issues:[]},e);if(u instanceof Promise)a.push(u),i=!0;else{if(u.issues.length===0)return u;a.push(u)}}return i?Promise.all(a).then(s=>jd(s,o,t,e)):jd(a,o,t,e)}});function Ad(t,r,n,o){let e=t.filter(i=>i.issues.length===0);return e.length===1?(r.value=e[0].value,r):(e.length===0?r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:t.map(i=>i.issues.map(a=>W(a,o,Z())))}):r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:[],inclusive:!1}),r)}var ss=p("$ZodXor",(t,r)=>{or.init(t,r),r.inclusive=!1;let n=r.options.length===1?r.options[0]._zod.run:null;t._zod.parse=(o,e)=>{if(n)return n(o,e);let i=!1,a=[];for(let s of r.options){let u=s._zod.run({value:o.value,issues:[]},e);u instanceof Promise?(a.push(u),i=!0):a.push(u)}return i?Promise.all(a).then(s=>Ad(s,o,t,e)):Ad(a,o,t,e)}}),cs=p("$ZodDiscriminatedUnion",(t,r)=>{r.inclusive=!1,or.init(t,r);let n=t._zod.parse;z(t._zod,"propValues",()=>{let e={};for(let i of r.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(i)}"`);for(let[s,u]of Object.entries(a)){e[s]||(e[s]=new Set);for(let l of u)e[s].add(l)}}return e});let o=it(()=>{let e=r.options,i=new Map;for(let a of e){let s=a._zod.propValues?.[r.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(a)}"`);for(let u of s){if(i.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);i.set(u,a)}}return i});t._zod.parse=(e,i)=>{let a=e.value;if(!He(a))return e.issues.push({code:"invalid_type",expected:"object",input:a,inst:t}),e;let s=o.value.get(a?.[r.discriminator]);return s?s._zod.run(e,i):r.unionFallback||i.direction==="backward"?n(e,i):(e.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,options:Array.from(o.value.keys()),input:a,path:[r.discriminator],inst:t}),e)}}),us=p("$ZodIntersection",(t,r)=>{S.init(t,r),t._zod.parse=(n,o)=>{let e=n.value,i=r.left._zod.run({value:e,issues:[]},o),a=r.right._zod.run({value:e,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([u,l])=>Cd(n,u,l)):Cd(n,i,a)}});function xa(t,r){if(t===r)return{valid:!0,data:t};if(t instanceof Date&&r instanceof Date&&+t==+r)return{valid:!0,data:t};if(Ce(t)&&Ce(r)){let n=Object.keys(r),o=Object.keys(t).filter(i=>n.indexOf(i)!==-1),e={...t,...r};for(let i of o){let a=xa(t[i],r[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};e[i]=a.data}return{valid:!0,data:e}}if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let o=0;o<t.length;o++){let e=t[o],i=r[o],a=xa(e,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Cd(t,r,n){let o=new Map,e;for(let s of r.issues)if(s.code==="unrecognized_keys"){e??(e=s);for(let u of s.keys)o.has(u)||o.set(u,{}),o.get(u).l=!0}else t.issues.push(s);for(let s of n.issues)if(s.code==="unrecognized_keys")for(let u of s.keys)o.has(u)||o.set(u,{}),o.get(u).r=!0;else t.issues.push(s);let i=[...o].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(i.length&&e&&t.issues.push({...e,keys:i}),Ne(t))return t;let a=xa(r.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return t.value=a.data,t}var pn=p("$ZodTuple",(t,r)=>{S.init(t,r);let n=r.items;t._zod.parse=(o,e)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:t,expected:"tuple",code:"invalid_type"}),o;o.value=[];let a=[],s=Nd(n,"optin"),u=Nd(n,"optout");if(!r.rest){if(i.length<s)return o.issues.push({code:"too_small",minimum:s,inclusive:!0,input:i,inst:t,origin:"array"}),o;i.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:i,inst:t,origin:"array"})}let l=new Array(n.length);for(let d=0;d<n.length;d++){let m=n[d]._zod.run({value:i[d],issues:[]},e);m instanceof Promise?a.push(m.then(g=>{l[d]=g})):l[d]=m}if(r.rest){let d=n.length-1,m=i.slice(n.length);for(let g of m){d++;let _=r.rest._zod.run({value:g,issues:[]},e);_ instanceof Promise?a.push(_.then(x=>Dd(x,o,d))):Dd(_,o,d)}}return a.length?Promise.all(a).then(()=>Ud(l,o,n,i,u)):Ud(l,o,n,i,u)}});function Nd(t,r){for(let n=t.length-1;n>=0;n--)if(t[n]._zod[r]!=="optional")return n+1;return 0}function Dd(t,r,n){t.issues.length&&r.issues.push(...Y(n,t.issues)),r.value[n]=t.value}function Ud(t,r,n,o,e){for(let i=0;i<n.length;i++){let a=t[i],s=i<o.length;if(a.issues.length){if(!s&&i>=e){r.value.length=i;break}r.issues.push(...Y(i,a.issues))}r.value[i]=a.value}for(let i=r.value.length-1;i>=o.length&&(n[i]._zod.optout==="optional"&&r.value[i]===void 0);i--)r.value.length=i;return r}var ls=p("$ZodRecord",(t,r)=>{S.init(t,r),t._zod.parse=(n,o)=>{let e=n.value;if(!Ce(e))return n.issues.push({expected:"record",code:"invalid_type",input:e,inst:t}),n;let i=[],a=r.keyType._zod.values;if(a){n.value={};let s=new Set;for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){s.add(typeof l=="number"?l.toString():l);let d=r.keyType._zod.run({value:l,issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(_=>W(_,o,Z())),input:l,path:[l],inst:t});continue}let m=d.value,g=r.valueType._zod.run({value:e[l],issues:[]},o);g instanceof Promise?i.push(g.then(_=>{_.issues.length&&n.issues.push(...Y(l,_.issues)),n.value[m]=_.value})):(g.issues.length&&n.issues.push(...Y(l,g.issues)),n.value[m]=g.value)}let u;for(let l in e)s.has(l)||(u=u??[],u.push(l));u&&u.length>0&&n.issues.push({code:"unrecognized_keys",input:e,inst:t,keys:u})}else{n.value={};for(let s of Reflect.ownKeys(e)){if(s==="__proto__"||!Object.prototype.propertyIsEnumerable.call(e,s))continue;let u=r.keyType._zod.run({value:s,issues:[]},o);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&nn.test(s)&&u.issues.length){let m=r.keyType._zod.run({value:Number(s),issues:[]},o);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");m.issues.length===0&&(u=m)}if(u.issues.length){r.mode==="loose"?n.value[s]=e[s]:n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(m=>W(m,o,Z())),input:s,path:[s],inst:t});continue}let d=r.valueType._zod.run({value:e[s],issues:[]},o);d instanceof Promise?i.push(d.then(m=>{m.issues.length&&n.issues.push(...Y(s,m.issues)),n.value[u.value]=m.value})):(d.issues.length&&n.issues.push(...Y(s,d.issues)),n.value[u.value]=d.value)}}return i.length?Promise.all(i).then(()=>n):n}}),ds=p("$ZodMap",(t,r)=>{S.init(t,r),t._zod.parse=(n,o)=>{let e=n.value;if(!(e instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:e,inst:t}),n;let i=[];n.value=new Map;for(let[a,s]of e){let u=r.keyType._zod.run({value:a,issues:[]},o),l=r.valueType._zod.run({value:s,issues:[]},o);u instanceof Promise||l instanceof Promise?i.push(Promise.all([u,l]).then(([d,m])=>{Rd(d,m,n,a,e,t,o)})):Rd(u,l,n,a,e,t,o)}return i.length?Promise.all(i).then(()=>n):n}});function Rd(t,r,n,o,e,i,a){t.issues.length&&(qt.has(typeof o)?n.issues.push(...Y(o,t.issues)):n.issues.push({code:"invalid_key",origin:"map",input:e,inst:i,issues:t.issues.map(s=>W(s,a,Z()))})),r.issues.length&&(qt.has(typeof o)?n.issues.push(...Y(o,r.issues)):n.issues.push({origin:"map",code:"invalid_element",input:e,inst:i,key:o,issues:r.issues.map(s=>W(s,a,Z()))})),n.value.set(t.value,r.value)}var ms=p("$ZodSet",(t,r)=>{S.init(t,r),t._zod.parse=(n,o)=>{let e=n.value;if(!(e instanceof Set))return n.issues.push({input:e,inst:t,expected:"set",code:"invalid_type"}),n;let i=[];n.value=new Set;for(let a of e){let s=r.valueType._zod.run({value:a,issues:[]},o);s instanceof Promise?i.push(s.then(u=>Zd(u,n))):Zd(s,n)}return i.length?Promise.all(i).then(()=>n):n}});function Zd(t,r){t.issues.length&&r.issues.push(...t.issues),r.value.add(t.value)}var ps=p("$ZodEnum",(t,r)=>{S.init(t,r);let n=Wt(r.entries),o=new Set(n);t._zod.values=o,t._zod.pattern=new RegExp(`^(${n.filter(e=>qt.has(typeof e)).map(e=>typeof e=="string"?se(e):e.toString()).join("|")})$`),t._zod.parse=(e,i)=>{let a=e.value;return o.has(a)||e.issues.push({code:"invalid_value",values:n,input:a,inst:t}),e}}),fs=p("$ZodLiteral",(t,r)=>{if(S.init(t,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(r.values);t._zod.values=n,t._zod.pattern=new RegExp(`^(${r.values.map(o=>typeof o=="string"?se(o):o?se(o.toString()):String(o)).join("|")})$`),t._zod.parse=(o,e)=>{let i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:r.values,input:i,inst:t}),o}}),gs=p("$ZodFile",(t,r)=>{S.init(t,r),t._zod.parse=(n,o)=>{let e=n.value;return e instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:e,inst:t}),n}}),hs=p("$ZodTransform",(t,r)=>{S.init(t,r),t._zod.optin="optional",t._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Te(t.constructor.name);let e=r.transform(n.value,n);if(o.async)return(e instanceof Promise?e:Promise.resolve(e)).then(a=>(n.value=a,n.fallback=!0,n));if(e instanceof Promise)throw new ue;return n.value=e,n.fallback=!0,n}});function Ld(t,r){return r===void 0&&(t.issues.length||t.fallback)?{issues:[],value:void 0}:t}var fn=p("$ZodOptional",(t,r)=>{S.init(t,r),t._zod.optin="optional",t._zod.optout="optional",z(t._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),z(t._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp(`^(${Jt(n.source)})?$`):void 0}),t._zod.parse=(n,o)=>{if(r.innerType._zod.optin==="optional"){let e=n.value,i=r.innerType._zod.run(n,o);return i instanceof Promise?i.then(a=>Ld(a,e)):Ld(i,e)}return n.value===void 0?n:r.innerType._zod.run(n,o)}}),vs=p("$ZodExactOptional",(t,r)=>{fn.init(t,r),z(t._zod,"values",()=>r.innerType._zod.values),z(t._zod,"pattern",()=>r.innerType._zod.pattern),t._zod.parse=(n,o)=>r.innerType._zod.run(n,o)}),_s=p("$ZodNullable",(t,r)=>{S.init(t,r),z(t._zod,"optin",()=>r.innerType._zod.optin),z(t._zod,"optout",()=>r.innerType._zod.optout),z(t._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp(`^(${Jt(n.source)}|null)$`):void 0}),z(t._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),t._zod.parse=(n,o)=>n.value===null?n:r.innerType._zod.run(n,o)}),ys=p("$ZodDefault",(t,r)=>{S.init(t,r),t._zod.optin="optional",z(t._zod,"values",()=>r.innerType._zod.values),t._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);if(n.value===void 0)return n.value=r.defaultValue,n;let e=r.innerType._zod.run(n,o);return e instanceof Promise?e.then(i=>Md(i,r)):Md(e,r)}});function Md(t,r){return t.value===void 0&&(t.value=r.defaultValue),t}var bs=p("$ZodPrefault",(t,r)=>{S.init(t,r),t._zod.optin="optional",z(t._zod,"values",()=>r.innerType._zod.values),t._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=r.defaultValue),r.innerType._zod.run(n,o))}),$s=p("$ZodNonOptional",(t,r)=>{S.init(t,r),z(t._zod,"values",()=>{let n=r.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),t._zod.parse=(n,o)=>{let e=r.innerType._zod.run(n,o);return e instanceof Promise?e.then(i=>Fd(i,t)):Fd(e,t)}});function Fd(t,r){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:r}),t}var xs=p("$ZodSuccess",(t,r)=>{S.init(t,r),t._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Te("ZodSuccess");let e=r.innerType._zod.run(n,o);return e instanceof Promise?e.then(i=>(n.value=i.issues.length===0,n)):(n.value=e.issues.length===0,n)}}),ks=p("$ZodCatch",(t,r)=>{S.init(t,r),t._zod.optin="optional",z(t._zod,"optout",()=>r.innerType._zod.optout),z(t._zod,"values",()=>r.innerType._zod.values),t._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);let e=r.innerType._zod.run(n,o);return e instanceof Promise?e.then(i=>(n.value=i.value,i.issues.length&&(n.value=r.catchValue({...n,error:{issues:i.issues.map(a=>W(a,o,Z()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=e.value,e.issues.length&&(n.value=r.catchValue({...n,error:{issues:e.issues.map(i=>W(i,o,Z()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),Ss=p("$ZodNaN",(t,r)=>{S.init(t,r),t._zod.parse=(n,o)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:t,expected:"nan",code:"invalid_type"}),n)}),gn=p("$ZodPipe",(t,r)=>{S.init(t,r),z(t._zod,"values",()=>r.in._zod.values),z(t._zod,"optin",()=>r.in._zod.optin),z(t._zod,"optout",()=>r.out._zod.optout),z(t._zod,"propValues",()=>r.in._zod.propValues),t._zod.parse=(n,o)=>{if(o.direction==="backward"){let i=r.out._zod.run(n,o);return i instanceof Promise?i.then(a=>sn(a,r.in,o)):sn(i,r.in,o)}let e=r.in._zod.run(n,o);return e instanceof Promise?e.then(i=>sn(i,r.out,o)):sn(e,r.out,o)}});function sn(t,r,n){return t.issues.length?(t.aborted=!0,t):r._zod.run({value:t.value,issues:t.issues,fallback:t.fallback},n)}var ar=p("$ZodCodec",(t,r)=>{S.init(t,r),z(t._zod,"values",()=>r.in._zod.values),z(t._zod,"optin",()=>r.in._zod.optin),z(t._zod,"optout",()=>r.out._zod.optout),z(t._zod,"propValues",()=>r.in._zod.propValues),t._zod.parse=(n,o)=>{if((o.direction||"forward")==="forward"){let i=r.in._zod.run(n,o);return i instanceof Promise?i.then(a=>cn(a,r,o)):cn(i,r,o)}else{let i=r.out._zod.run(n,o);return i instanceof Promise?i.then(a=>cn(a,r,o)):cn(i,r,o)}}});function cn(t,r,n){if(t.issues.length)return t.aborted=!0,t;if((n.direction||"forward")==="forward"){let e=r.transform(t.value,t);return e instanceof Promise?e.then(i=>un(t,i,r.out,n)):un(t,e,r.out,n)}else{let e=r.reverseTransform(t.value,t);return e instanceof Promise?e.then(i=>un(t,i,r.in,n)):un(t,e,r.in,n)}}function un(t,r,n,o){return t.issues.length?(t.aborted=!0,t):n._zod.run({value:r,issues:t.issues},o)}var ws=p("$ZodPreprocess",(t,r)=>{gn.init(t,r)}),Is=p("$ZodReadonly",(t,r)=>{S.init(t,r),z(t._zod,"propValues",()=>r.innerType._zod.propValues),z(t._zod,"values",()=>r.innerType._zod.values),z(t._zod,"optin",()=>r.innerType?._zod?.optin),z(t._zod,"optout",()=>r.innerType?._zod?.optout),t._zod.parse=(n,o)=>{if(o.direction==="backward")return r.innerType._zod.run(n,o);let e=r.innerType._zod.run(n,o);return e instanceof Promise?e.then(Vd):Vd(e)}});function Vd(t){return t.value=Object.freeze(t.value),t}var zs=p("$ZodTemplateLiteral",(t,r)=>{S.init(t,r);let n=[];for(let o of r.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let e=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!e)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=e.startsWith("^")?1:0,a=e.endsWith("$")?e.length-1:e.length;n.push(e.slice(i,a))}else if(o===null||yo.has(typeof o))n.push(se(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);t._zod.pattern=new RegExp(`^${n.join("")}$`),t._zod.parse=(o,e)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:t,expected:"string",code:"invalid_type"}),o):(t._zod.pattern.lastIndex=0,t._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:t,code:"invalid_format",format:r.format??"template_literal",pattern:t._zod.pattern.source}),o)}),Os=p("$ZodFunction",(t,r)=>(S.init(t,r),t._def=r,t._zod.def=r,t.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...o){let e=t._def.input?Gr(t._def.input,o):o,i=Reflect.apply(n,this,e);return t._def.output?Gr(t._def.output,i):i}},t.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let e=t._def.input?await Wr(t._def.input,o):o,i=await Reflect.apply(n,this,e);return t._def.output?await Wr(t._def.output,i):i}},t._zod.parse=(n,o)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:t}),n):(t._def.output&&t._def.output._zod.def.type==="promise"?n.value=t.implementAsync(n.value):n.value=t.implement(n.value),n),t.input=(...n)=>{let o=t.constructor;return Array.isArray(n[0])?new o({type:"function",input:new pn({type:"tuple",items:n[0],rest:n[1]}),output:t._def.output}):new o({type:"function",input:n[0],output:t._def.output})},t.output=n=>{let o=t.constructor;return new o({type:"function",input:t._def.input,output:n})},t)),Es=p("$ZodPromise",(t,r)=>{S.init(t,r),t._zod.parse=(n,o)=>Promise.resolve(n.value).then(e=>r.innerType._zod.run({value:e,issues:[]},o))}),Ps=p("$ZodLazy",(t,r)=>{S.init(t,r),z(t._zod,"innerType",()=>{let n=r;return n._cachedInner||(n._cachedInner=r.getter()),n._cachedInner}),z(t._zod,"pattern",()=>t._zod.innerType?._zod?.pattern),z(t._zod,"propValues",()=>t._zod.innerType?._zod?.propValues),z(t._zod,"optin",()=>t._zod.innerType?._zod?.optin??void 0),z(t._zod,"optout",()=>t._zod.innerType?._zod?.optout??void 0),t._zod.parse=(n,o)=>t._zod.innerType._zod.run(n,o)}),Ts=p("$ZodCustom",(t,r)=>{C.init(t,r),S.init(t,r),t._zod.parse=(n,o)=>n,t._zod.check=n=>{let o=n.value,e=r.fn(o);if(e instanceof Promise)return e.then(i=>Bd(i,n,o,t));Bd(e,n,o,t)}});function Bd(t,r,n,o){if(!t){let e={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(e.params=o._zod.def.params),r.issues.push(ot(e))}}var cr={};xe(cr,{ar:()=>Kd,az:()=>Yd,be:()=>Qd,bg:()=>em,ca:()=>tm,cs:()=>rm,da:()=>nm,de:()=>im,el:()=>om,en:()=>hn,eo:()=>am,es:()=>sm,fa:()=>cm,fi:()=>um,fr:()=>lm,frCA:()=>dm,he:()=>mm,hr:()=>pm,hu:()=>fm,hy:()=>hm,id:()=>vm,is:()=>_m,it:()=>ym,ja:()=>bm,ka:()=>$m,kh:()=>xm,km:()=>vn,ko:()=>km,lt:()=>wm,mk:()=>Im,ms:()=>zm,nl:()=>Om,no:()=>Em,ota:()=>Pm,pl:()=>jm,ps:()=>Tm,pt:()=>Am,ro:()=>Cm,ru:()=>Dm,sl:()=>Um,sv:()=>Rm,ta:()=>Zm,th:()=>Lm,tr:()=>Mm,ua:()=>Fm,uk:()=>_n,ur:()=>Vm,uz:()=>Bm,vi:()=>Hm,yo:()=>Jm,zhCN:()=>Gm,zhTW:()=>Wm});var Yv=()=>{let t={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function r(e){return t[e]??null}let n={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${e.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`}case"invalid_value":return e.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${h(e.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${e.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${e.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${e.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${e.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${e.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${e.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${e.prefix}"`:i.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${i.suffix}"`:i.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${i.includes}"`:i.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${i.pattern}`:`${n[i.format]??e.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${e.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${e.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${e.keys.length>1?"\u0629":""}: ${f(e.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${e.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${e.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function Kd(){return{localeError:Yv()}}var Xv=()=>{let t={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function r(e){return t[e]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${e.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${s}`}case"invalid_value":return e.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${h(e.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${e.origin??"d\u0259y\u0259r"} ${i}${e.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${e.origin??"d\u0259y\u0259r"} ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${e.origin} ${i}${e.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${e.origin} ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[i.format]??e.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${e.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${e.keys.length>1?"lar":""}: ${f(e.keys,", ")}`;case"invalid_key":return`${e.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${e.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function Yd(){return{localeError:Xv()}}function Xd(t,r,n,o){let e=Math.abs(t),i=e%10,a=e%100;return a>=11&&a<=19?o:i===1?r:i>=2&&i<=4?n:o}var Qv=()=>{let t={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function r(e){return t[e]??null}let n={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${e.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`}case"invalid_value":return e.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${h(e.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);if(a){let s=Number(e.maximum),u=Xd(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${e.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${e.maximum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${e.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);if(a){let s=Number(e.minimum),u=Xd(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${e.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${e.minimum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${e.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[i.format]??e.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${e.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${e.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${f(e.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${e.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${e.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function Qd(){return{localeError:Qv()}}var e_=()=>{let t={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function r(e){return t[e]??null}let n={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${e.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`}case"invalid_value":return e.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${h(e.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${e.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${e.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${e.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${e.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${e.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${e.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;if(i.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${i.prefix}"`;if(i.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${i.suffix}"`;if(i.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${i.includes}"`;if(i.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${i.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${n[i.format]??e.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${e.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${e.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${e.keys.length>1?"\u043E\u0432\u0435":""}: ${f(e.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${e.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${e.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function em(){return{localeError:e_()}}var t_=()=>{let t={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(e){return t[e]??null}let n={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${e.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${s}`}case"invalid_value":return e.values.length===1?`Valor inv\xE0lid: s'esperava ${h(e.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${f(e.values," o ")}`;case"too_big":{let i=e.inclusive?"com a m\xE0xim":"menys de",a=r(e.origin);return a?`Massa gran: s'esperava que ${e.origin??"el valor"} contingu\xE9s ${i} ${e.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${e.origin??"el valor"} fos ${i} ${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?"com a m\xEDnim":"m\xE9s de",a=r(e.origin);return a?`Massa petit: s'esperava que ${e.origin} contingu\xE9s ${i} ${e.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${i} ${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${n[i.format]??e.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${e.divisor}`;case"unrecognized_keys":return`Clau${e.keys.length>1?"s":""} no reconeguda${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${e.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${e.origin}`;default:return"Entrada inv\xE0lida"}}};function tm(){return{localeError:t_()}}var r_=()=>{let t={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function r(e){return t[e]??null}let n={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${e.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${s}`}case"invalid_value":return e.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${h(e.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${e.origin??"hodnota"} mus\xED m\xEDt ${i}${e.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${e.origin??"hodnota"} mus\xED b\xFDt ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${e.origin??"hodnota"} mus\xED m\xEDt ${i}${e.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${e.origin??"hodnota"} mus\xED b\xFDt ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${n[i.format]??e.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${e.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${f(e.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${e.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${e.origin}`;default:return"Neplatn\xFD vstup"}}};function rm(){return{localeError:r_()}}var n_=()=>{let t={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function r(e){return t[e]??null}let n={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${s}`:`Ugyldigt input: forventede ${i}, fik ${s}`}case"invalid_value":return e.values.length===1?`Ugyldig v\xE6rdi: forventede ${h(e.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin),s=o[e.origin]??e.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${i} ${e.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${i} ${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin),s=o[e.origin]??e.origin;return a?`For lille: forventede ${s} ${a.verb} ${i} ${e.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${i} ${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??e.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${f(e.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${e.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${e.origin}`;default:return"Ugyldigt input"}}};function nm(){return{localeError:n_()}}var i_=()=>{let t={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function r(e){return t[e]??null}let n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},o={nan:"NaN",number:"Zahl",array:"Array"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${e.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${s}`}case"invalid_value":return e.values.length===1?`Ung\xFCltige Eingabe: erwartet ${h(e.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Zu gro\xDF: erwartet, dass ${e.origin??"Wert"} ${i}${e.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${e.origin??"Wert"} ${i}${e.maximum.toString()} ist`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Zu klein: erwartet, dass ${e.origin} ${i}${e.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${i}${e.minimum.toString()} ist`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${n[i.format]??e.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case"unrecognized_keys":return`${e.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${f(e.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${e.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${e.origin}`;default:return"Ung\xFCltige Eingabe"}}};function im(){return{localeError:i_()}}var o_=()=>{let t={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function r(e){return t[e]??null}let n={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return typeof e.expected=="string"&&/^[A-Z]/.test(e.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${e.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${i}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`}case"invalid_value":return e.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${h(e.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${e.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${e.maximum.toString()} ${a.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${e.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${e.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${e.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${e.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${i.prefix}"`:i.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${i.suffix}"`:i.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${i.includes}"`:i.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${i.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${n[i.format]??e.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${e.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${e.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${e.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${f(e.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${e.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${e.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function om(){return{localeError:o_()}}var a_=()=>{let t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function r(e){return t[e]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return`Invalid input: expected ${i}, received ${s}`}case"invalid_value":return e.values.length===1?`Invalid input: expected ${h(e.values[0])}`:`Invalid option: expected one of ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Too big: expected ${e.origin??"value"} to have ${i}${e.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${e.origin??"value"} to be ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Too small: expected ${e.origin} to have ${i}${e.minimum.toString()} ${a.unit}`:`Too small: expected ${e.origin} to be ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${n[i.format]??e.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${e.divisor}`;case"unrecognized_keys":return`Unrecognized key${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`Invalid key in ${e.origin}`;case"invalid_union":return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${e.origin}`;default:return"Invalid input"}}};function hn(){return{localeError:a_()}}var s_=()=>{let t={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(e){return t[e]??null}let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${e.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${s}`}case"invalid_value":return e.values.length===1?`Nevalida enigo: atendi\u011Dis ${h(e.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Tro granda: atendi\u011Dis ke ${e.origin??"valoro"} havu ${i}${e.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${e.origin??"valoro"} havu ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Tro malgranda: atendi\u011Dis ke ${e.origin} havu ${i}${e.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${e.origin} estu ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${n[i.format]??e.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case"unrecognized_keys":return`Nekonata${e.keys.length>1?"j":""} \u015Dlosilo${e.keys.length>1?"j":""}: ${f(e.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${e.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${e.origin}`;default:return"Nevalida enigo"}}};function am(){return{localeError:s_()}}var c_=()=>{let t={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function r(e){return t[e]??null}let n={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${e.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${s}`}case"invalid_value":return e.values.length===1?`Entrada inv\xE1lida: se esperaba ${h(e.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin),s=o[e.origin]??e.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${i}${e.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin),s=o[e.origin]??e.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${i}${e.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${n[i.format]??e.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${e.divisor}`;case"unrecognized_keys":return`Llave${e.keys.length>1?"s":""} desconocida${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[e.origin]??e.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[e.origin]??e.origin}`;default:return"Entrada inv\xE1lida"}}};function sm(){return{localeError:c_()}}var u_=()=>{let t={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function r(e){return t[e]??null}let n={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${e.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return e.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${h(e.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${f(e.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${e.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${e.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${e.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${e.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${e.origin} \u0628\u0627\u06CC\u062F ${i}${e.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${e.origin} \u0628\u0627\u06CC\u062F ${i}${e.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[i.format]??e.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${e.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${e.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${f(e.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${e.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${e.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function cm(){return{localeError:u_()}}var l_=()=>{let t={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function r(e){return t[e]??null}let n={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${s}`}case"invalid_value":return e.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${h(e.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${e.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${e.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${n[i.format]??e.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${e.divisor} monikerta`;case"unrecognized_keys":return`${e.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${f(e.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function um(){return{localeError:l_()}}var d_=()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(e){return t[e]??null}let n={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Entr\xE9e invalide : instanceof ${e.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${s} re\xE7u`}case"invalid_value":return e.values.length===1?`Entr\xE9e invalide : ${h(e.values[0])} attendu`:`Option invalide : une valeur parmi ${f(e.values,"|")} attendue`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Trop grand : ${o[e.origin]??"valeur"} doit ${a.verb} ${i}${e.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${o[e.origin]??"valeur"} doit \xEAtre ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Trop petit : ${o[e.origin]??"valeur"} doit ${a.verb} ${i}${e.minimum.toString()} ${a.unit}`:`Trop petit : ${o[e.origin]??"valeur"} doit \xEAtre ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${n[i.format]??e.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${e.divisor}`;case"unrecognized_keys":return`Cl\xE9${e.keys.length>1?"s":""} non reconnue${e.keys.length>1?"s":""} : ${f(e.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${e.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${e.origin}`;default:return"Entr\xE9e invalide"}}};function lm(){return{localeError:d_()}}var m_=()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function r(e){return t[e]??null}let n={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Entr\xE9e invalide : attendu instanceof ${e.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${s}`}case"invalid_value":return e.values.length===1?`Entr\xE9e invalide : attendu ${h(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"\u2264":"<",a=r(e.origin);return a?`Trop grand : attendu que ${e.origin??"la valeur"} ait ${i}${e.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${e.origin??"la valeur"} soit ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?"\u2265":">",a=r(e.origin);return a?`Trop petit : attendu que ${e.origin} ait ${i}${e.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${e.origin} soit ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${n[i.format]??e.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${e.divisor}`;case"unrecognized_keys":return`Cl\xE9${e.keys.length>1?"s":""} non reconnue${e.keys.length>1?"s":""} : ${f(e.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${e.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${e.origin}`;default:return"Entr\xE9e invalide"}}};function dm(){return{localeError:m_()}}var p_=()=>{let t={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},r={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},n=l=>l?t[l]:void 0,o=l=>{let d=n(l);return d?d.label:l??t.unknown.label},e=l=>`\u05D4${o(l)}`,i=l=>(n(l)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=l=>l?r[l]??null:null,s={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},u={nan:"NaN"};return l=>{switch(l.code){case"invalid_type":{let d=l.expected,m=u[d??""]??o(d),g=v(l.input),_=u[g]??t[g]?.label??g;return/^[A-Z]/.test(l.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${l.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${_}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}, \u05D4\u05EA\u05E7\u05D1\u05DC ${_}`}case"invalid_value":{if(l.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${h(l.values[0])}`;let d=l.values.map(_=>h(_));if(l.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d[0]} \u05D0\u05D5 ${d[1]}`;let m=d[d.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d.slice(0,-1).join(", ")} \u05D0\u05D5 ${m}`}case"too_big":{let d=a(l.origin),m=e(l.origin??"value");if(l.origin==="string")return`${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.maximum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(l.origin==="number"){let x=l.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${l.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${x}`}if(l.origin==="array"||l.origin==="set"){let x=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",K=l.inclusive?`${l.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${l.maximum} ${d?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${m} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${K}`.trim()}let g=l.inclusive?"<=":"<",_=i(l.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${m} ${_} ${g}${l.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${m} ${_} ${g}${l.maximum.toString()}`}case"too_small":{let d=a(l.origin),m=e(l.origin??"value");if(l.origin==="string")return`${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.minimum.toString()} ${d?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(l.origin==="number"){let x=l.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${l.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${x}`}if(l.origin==="array"||l.origin==="set"){let x=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(l.minimum===1&&l.inclusive){let M=(l.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${m} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${M}`}let K=l.inclusive?`${l.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${l.minimum} ${d?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${m} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${K}`.trim()}let g=l.inclusive?">=":">",_=i(l.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${m} ${_} ${g}${l.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${m} ${_} ${g}${l.minimum.toString()}`}case"invalid_format":{let d=l;if(d.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${d.prefix}"`;if(d.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${d.suffix}"`;if(d.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${d.includes}"`;if(d.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${d.pattern}`;let m=s[d.format],g=m?.label??d.format,x=(m?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${g} \u05DC\u05D0 ${x}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${l.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${l.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${l.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${f(l.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${e(l.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function mm(){return{localeError:p_()}}var f_=()=>{let t={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function r(e){return t[e]??null}let n={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},o={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${e.expected}, a primljeno je ${s}`:`Neispravan unos: o\u010Dekuje se ${i}, a primljeno je ${s}`}case"invalid_value":return e.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${h(e.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin),s=o[e.origin]??e.origin;return a?`Preveliko: o\u010Dekivano da ${s??"vrijednost"} ima ${i}${e.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${s??"vrijednost"} bude ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin),s=o[e.origin]??e.origin;return a?`Premalo: o\u010Dekivano da ${s} ima ${i}${e.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${s} bude ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${i.prefix}"`:i.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${i.suffix}"`:i.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${i.includes}"`:i.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${i.pattern}`:`Neispravna ${n[i.format]??e.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${e.divisor}`;case"unrecognized_keys":return`Neprepoznat${e.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${f(e.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${o[e.origin]??e.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[e.origin]??e.origin}`;default:return"Neispravan unos"}}};function pm(){return{localeError:f_()}}var g_=()=>{let t={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function r(e){return t[e]??null}let n={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${e.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return e.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${h(e.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`T\xFAl nagy: ${e.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${e.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${e.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${e.origin} m\xE9rete t\xFAl kicsi ${i}${e.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${e.origin} t\xFAl kicsi ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[i.format]??e.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${e.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${e.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${e.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function fm(){return{localeError:g_()}}function gm(t,r,n){return Math.abs(t)===1?r:n}function dt(t){if(!t)return"";let r=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=t[t.length-1];return t+(r.includes(n)?"\u0576":"\u0568")}var h_=()=>{let t={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function r(e){return t[e]??null}let n={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${e.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`}case"invalid_value":return e.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${h(e.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);if(a){let s=Number(e.maximum),u=gm(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${dt(e.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${e.maximum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${dt(e.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);if(a){let s=Number(e.minimum),u=gm(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${dt(e.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${e.minimum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${dt(e.origin)} \u056C\u056B\u0576\u056B ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[i.format]??e.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${e.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${e.keys.length>1?"\u0576\u0565\u0580":""}. ${f(e.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${dt(e.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${dt(e.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function hm(){return{localeError:h_()}}var v_=()=>{let t={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function r(e){return t[e]??null}let n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${i}, diterima ${s}`}case"invalid_value":return e.values.length===1?`Input tidak valid: diharapkan ${h(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Terlalu besar: diharapkan ${e.origin??"value"} memiliki ${i}${e.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${e.origin??"value"} menjadi ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Terlalu kecil: diharapkan ${e.origin} memiliki ${i}${e.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${n[i.format]??e.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${e.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${e.origin}`;default:return"Input tidak valid"}}};function vm(){return{localeError:v_()}}var __=()=>{let t={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function r(e){return t[e]??null}let n={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${e.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return e.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${h(e.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${e.origin??"gildi"} hafi ${i}${e.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${e.origin??"gildi"} s\xE9 ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${e.origin} hafi ${i}${e.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${e.origin} s\xE9 ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${n[i.format]??e.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${e.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${e.keys.length>1?"ir lyklar":"ur lykill"}: ${f(e.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${e.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${e.origin}`;default:return"Rangt gildi"}}};function _m(){return{localeError:__()}}var y_=()=>{let t={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function r(e){return t[e]??null}let n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"numero",array:"vettore"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${s}`:`Input non valido: atteso ${i}, ricevuto ${s}`}case"invalid_value":return e.values.length===1?`Input non valido: atteso ${h(e.values[0])}`:`Opzione non valida: atteso uno tra ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Troppo grande: ${e.origin??"valore"} deve avere ${i}${e.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${e.origin??"valore"} deve essere ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Troppo piccolo: ${e.origin} deve avere ${i}${e.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${e.origin} deve essere ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Input non valido: ${n[i.format]??e.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case"unrecognized_keys":return`Chiav${e.keys.length>1?"i":"e"} non riconosciut${e.keys.length>1?"e":"a"}: ${f(e.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${e.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${e.origin}`;default:return"Input non valido"}}};function ym(){return{localeError:y_()}}var b_=()=>{let t={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function r(e){return t[e]??null}let n={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${e.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return e.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${h(e.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${f(e.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=e.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=r(e.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${e.origin??"\u5024"}\u306F${e.maximum.toString()}${a.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${e.origin??"\u5024"}\u306F${e.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=e.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=r(e.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${e.origin}\u306F${e.minimum.toString()}${a.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${e.origin}\u306F${e.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[i.format]??e.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${e.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${e.keys.length>1?"\u7FA4":""}: ${f(e.keys,"\u3001")}`;case"invalid_key":return`${e.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${e.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function bm(){return{localeError:b_()}}var $_=()=>{let t={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function r(e){return t[e]??null}let n={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${e.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`}case"invalid_value":return e.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${h(e.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${f(e.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${e.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${i}${e.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${e.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${e.origin} ${a.verb} ${i}${e.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${e.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.prefix}"-\u10D8\u10D7`:i.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.suffix}"-\u10D8\u10D7`:i.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${i.includes}"-\u10E1`:i.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[i.format]??e.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${e.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${e.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${f(e.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${e.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${e.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function $m(){return{localeError:$_()}}var x_=()=>{let t={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function r(e){return t[e]??null}let n={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},o={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${e.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`}case"invalid_value":return e.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${h(e.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${e.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${e.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${e.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${e.origin} ${i} ${e.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${e.origin} ${i} ${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${i.prefix}"`:i.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${i.suffix}"`:i.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${i.includes}"`:i.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[i.format]??e.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${e.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${f(e.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${e.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${e.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function vn(){return{localeError:x_()}}function xm(){return vn()}var k_=()=>{let t={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function r(e){return t[e]??null}let n={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${e.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return e.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${h(e.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${f(e.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=e.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=r(e.origin),u=s?.unit??"\uC694\uC18C";return s?`${e.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${e.maximum.toString()}${u} ${i}${a}`:`${e.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${e.maximum.toString()} ${i}${a}`}case"too_small":{let i=e.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=r(e.origin),u=s?.unit??"\uC694\uC18C";return s?`${e.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${e.minimum.toString()}${u} ${i}${a}`:`${e.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${e.minimum.toString()} ${i}${a}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[i.format]??e.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${e.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${f(e.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${e.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${e.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function km(){return{localeError:k_()}}var sr=t=>t.charAt(0).toUpperCase()+t.slice(1);function Sm(t){let r=Math.abs(t),n=r%10,o=r%100;return o>=11&&o<=19||n===0?"many":n===1?"one":"few"}var S_=()=>{let t={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function r(e,i,a,s){let u=t[e]??null;return u===null?u:{unit:u.unit[i],verb:u.verb[s][a?"inclusive":"notInclusive"]}}let n={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},o={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${e.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${i}`}case"invalid_value":return e.values.length===1?`Privalo b\u016Bti ${h(e.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${f(e.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[e.origin]??e.origin,a=r(e.origin,Sm(Number(e.maximum)),e.inclusive??!1,"smaller");if(a?.verb)return`${sr(i??e.origin??"reik\u0161m\u0117")} ${a.verb} ${e.maximum.toString()} ${a.unit??"element\u0173"}`;let s=e.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${sr(i??e.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${e.maximum.toString()} ${a?.unit}`}case"too_small":{let i=o[e.origin]??e.origin,a=r(e.origin,Sm(Number(e.minimum)),e.inclusive??!1,"bigger");if(a?.verb)return`${sr(i??e.origin??"reik\u0161m\u0117")} ${a.verb} ${e.minimum.toString()} ${a.unit??"element\u0173"}`;let s=e.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${sr(i??e.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${e.minimum.toString()} ${a?.unit}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${n[i.format]??e.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${e.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${e.keys.length>1?"i":"as"} rakt${e.keys.length>1?"ai":"as"}: ${f(e.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[e.origin]??e.origin;return`${sr(i??e.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function wm(){return{localeError:S_()}}var w_=()=>{let t={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function r(e){return t[e]??null}let n={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${e.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return e.values.length===1?`Invalid input: expected ${h(e.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${e.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${e.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${e.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${e.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${e.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${e.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${i.pattern}`:`Invalid ${n[i.format]??e.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${f(e.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${e.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${e.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function Im(){return{localeError:w_()}}var I_=()=>{let t={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function r(e){return t[e]??null}let n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"nombor"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${s}`:`Input tidak sah: dijangka ${i}, diterima ${s}`}case"invalid_value":return e.values.length===1?`Input tidak sah: dijangka ${h(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Terlalu besar: dijangka ${e.origin??"nilai"} ${a.verb} ${i}${e.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${e.origin??"nilai"} adalah ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Terlalu kecil: dijangka ${e.origin} ${a.verb} ${i}${e.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${n[i.format]??e.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${f(e.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${e.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${e.origin}`;default:return"Input tidak sah"}}};function zm(){return{localeError:I_()}}var z_=()=>{let t={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function r(e){return t[e]??null}let n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${i}, ontving ${s}`}case"invalid_value":return e.values.length===1?`Ongeldige invoer: verwacht ${h(e.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin),s=e.origin==="date"?"laat":e.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${e.origin??"waarde"} ${i}${e.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${e.origin??"waarde"} ${i}${e.maximum.toString()} is`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin),s=e.origin==="date"?"vroeg":e.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${e.origin} ${i}${e.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${e.origin} ${i}${e.minimum.toString()} is`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${n[i.format]??e.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${e.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${e.origin}`;default:return"Ongeldige invoer"}}};function Om(){return{localeError:z_()}}var O_=()=>{let t={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function r(e){return t[e]??null}let n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tall",array:"liste"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${s}`:`Ugyldig input: forventet ${i}, fikk ${s}`}case"invalid_value":return e.values.length===1?`Ugyldig verdi: forventet ${h(e.values[0])}`:`Ugyldig valg: forventet en av ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`For stor(t): forventet ${e.origin??"value"} til \xE5 ha ${i}${e.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${e.origin??"value"} til \xE5 ha ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`For lite(n): forventet ${e.origin} til \xE5 ha ${i}${e.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${e.origin} til \xE5 ha ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??e.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${f(e.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${e.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${e.origin}`;default:return"Ugyldig input"}}};function Em(){return{localeError:O_()}}var E_=()=>{let t={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function r(e){return t[e]??null}let n={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`F\xE2sit giren: umulan instanceof ${e.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${s}`}case"invalid_value":return e.values.length===1?`F\xE2sit giren: umulan ${h(e.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Fazla b\xFCy\xFCk: ${e.origin??"value"}, ${i}${e.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${e.origin??"value"}, ${i}${e.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Fazla k\xFC\xE7\xFCk: ${e.origin}, ${i}${e.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${e.origin}, ${i}${e.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=e;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[i.format]??e.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${e.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`${e.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${e.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function Pm(){return{localeError:E_()}}var P_=()=>{let t={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function r(e){return t[e]??null}let n={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${e.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return e.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${h(e.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${f(e.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${e.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${e.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${e.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${e.maximum.toString()} \u0648\u064A`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${e.origin} \u0628\u0627\u06CC\u062F ${i}${e.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${e.origin} \u0628\u0627\u06CC\u062F ${i}${e.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[i.format]??e.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${e.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${e.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${f(e.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${e.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${e.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function Tm(){return{localeError:P_()}}var T_=()=>{let t={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function r(e){return t[e]??null}let n={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${e.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${s}`}case"invalid_value":return e.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${h(e.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${e.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${e.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${e.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${e.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${e.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${e.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[i.format]??e.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${e.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${e.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${e.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function jm(){return{localeError:T_()}}var j_=()=>{let t={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function r(e){return t[e]??null}let n={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Tipo inv\xE1lido: esperado instanceof ${e.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${s}`}case"invalid_value":return e.values.length===1?`Entrada inv\xE1lida: esperado ${h(e.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Muito grande: esperado que ${e.origin??"valor"} tivesse ${i}${e.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${e.origin??"valor"} fosse ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Muito pequeno: esperado que ${e.origin} tivesse ${i}${e.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${n[i.format]??e.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${e.divisor}`;case"unrecognized_keys":return`Chave${e.keys.length>1?"s":""} desconhecida${e.keys.length>1?"s":""}: ${f(e.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${e.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${e.origin}`;default:return"Campo inv\xE1lido"}}};function Am(){return{localeError:j_()}}var A_=()=>{let t={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function r(e){return t[e]??null}let n={regex:"intrare",email:"adres\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},o={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${i}, primit ${s}`}case"invalid_value":return e.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${h(e.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Prea mare: a\u0219teptat ca ${e.origin??"valoarea"} ${a.verb} ${i}${e.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${e.origin??"valoarea"} s\u0103 fie ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Prea mic: a\u0219teptat ca ${e.origin} ${a.verb} ${i}${e.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${e.origin} s\u0103 fie ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${i.prefix}"`:i.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${i.suffix}"`:i.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${i.includes}"`:i.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${i.pattern}`:`Format invalid: ${n[i.format]??e.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${e.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${f(e.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${e.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${e.origin}`;default:return"Intrare invalid\u0103"}}};function Cm(){return{localeError:A_()}}function Nm(t,r,n,o){let e=Math.abs(t),i=e%10,a=e%100;return a>=11&&a<=19?o:i===1?r:i>=2&&i<=4?n:o}var C_=()=>{let t={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function r(e){return t[e]??null}let n={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${e.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`}case"invalid_value":return e.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${h(e.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);if(a){let s=Number(e.maximum),u=Nm(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${e.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${e.maximum.toString()} ${u}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${e.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);if(a){let s=Number(e.minimum),u=Nm(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${e.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${e.minimum.toString()} ${u}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${e.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[i.format]??e.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${e.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${e.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${e.keys.length>1?"\u0438":""}: ${f(e.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${e.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${e.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function Dm(){return{localeError:C_()}}var N_=()=>{let t={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function r(e){return t[e]??null}let n={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${e.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${s}`}case"invalid_value":return e.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${h(e.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${e.origin??"vrednost"} imelo ${i}${e.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${e.origin??"vrednost"} ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${e.origin} imelo ${i}${e.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${e.origin} ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${n[i.format]??e.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${e.divisor}`;case"unrecognized_keys":return`Neprepoznan${e.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${f(e.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${e.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${e.origin}`;default:return"Neveljaven vnos"}}};function Um(){return{localeError:N_()}}var D_=()=>{let t={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function r(e){return t[e]??null}let n={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${e.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${s}`}case"invalid_value":return e.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${h(e.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${e.origin??"v\xE4rdet"} att ha ${i}${e.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${e.origin??"v\xE4rdet"} att ha ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${e.origin??"v\xE4rdet"} att ha ${i}${e.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${e.origin??"v\xE4rdet"} att ha ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${n[i.format]??e.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${f(e.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${e.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${e.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function Rm(){return{localeError:D_()}}var U_=()=>{let t={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function r(e){return t[e]??null}let n={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${e.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`}case"invalid_value":return e.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${h(e.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${f(e.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${e.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${e.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${e.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${e.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${e.origin} ${i}${e.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${e.origin} ${i}${e.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${n[i.format]??e.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${e.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${e.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${f(e.keys,", ")}`;case"invalid_key":return`${e.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${e.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function Zm(){return{localeError:U_()}}var R_=()=>{let t={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function r(e){return t[e]??null}let n={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},o={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${e.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`}case"invalid_value":return e.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${h(e.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=r(e.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${e.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${e.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${e.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=r(e.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${e.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${e.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${e.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${i.prefix}"`:i.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${i.suffix}"`:i.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[i.format]??e.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${e.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${f(e.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${e.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${e.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function Lm(){return{localeError:R_()}}var Z_=()=>{let t={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function r(e){return t[e]??null}let n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${e.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${s}`}case"invalid_value":return e.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${h(e.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${e.origin??"de\u011Fer"} ${i}${e.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${e.origin??"de\u011Fer"} ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${e.origin} ${i}${e.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${e.origin} ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[i.format]??e.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${e.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${e.keys.length>1?"lar":""}: ${f(e.keys,", ")}`;case"invalid_key":return`${e.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${e.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function Mm(){return{localeError:Z_()}}var L_=()=>{let t={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function r(e){return t[e]??null}let n={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${e.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`}case"invalid_value":return e.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${h(e.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${e.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${i}${e.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${e.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${e.origin} ${a.verb} ${i}${e.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${e.origin} \u0431\u0443\u0434\u0435 ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[i.format]??e.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${e.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${e.keys.length>1?"\u0456":""}: ${f(e.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${e.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${e.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function _n(){return{localeError:L_()}}function Fm(){return _n()}var M_=()=>{let t={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function r(e){return t[e]??null}let n={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${e.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return e.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${h(e.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${f(e.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${e.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${e.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${e.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${e.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${e.origin} \u06A9\u06D2 ${i}${e.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${e.origin} \u06A9\u0627 ${i}${e.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[i.format]??e.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${e.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${e.keys.length>1?"\u0632":""}: ${f(e.keys,"\u060C ")}`;case"invalid_key":return`${e.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${e.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function Vm(){return{localeError:M_()}}var F_=()=>{let t={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function r(e){return t[e]??null}let n={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${s}`}case"invalid_value":return e.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${h(e.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Juda katta: kutilgan ${e.origin??"qiymat"} ${i}${e.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${e.origin??"qiymat"} ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Juda kichik: kutilgan ${e.origin} ${i}${e.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${e.origin} ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[i.format]??e.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${e.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${e.keys.length>1?"lar":""}: ${f(e.keys,", ")}`;case"invalid_key":return`${e.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${e.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function Bm(){return{localeError:F_()}}var V_=()=>{let t={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function r(e){return t[e]??null}let n={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${e.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case"invalid_value":return e.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${h(e.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${e.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${e.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${e.origin??"gi\xE1 tr\u1ECB"} ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${e.origin} ${a.verb} ${i}${e.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${e.origin} ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${n[i.format]??e.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${e.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${f(e.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${e.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${e.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function Hm(){return{localeError:V_()}}var B_=()=>{let t={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function r(e){return t[e]??null}let n={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${e.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return e.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${h(e.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${e.origin??"\u503C"} ${i}${e.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${e.origin??"\u503C"} ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${e.origin} ${i}${e.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${e.origin} ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${n[i.format]??e.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${e.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${f(e.keys,", ")}`;case"invalid_key":return`${e.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${e.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function Gm(){return{localeError:B_()}}var H_=()=>{let t={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function r(e){return t[e]??null}let n={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},o={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${e.expected}\uFF0C\u4F46\u6536\u5230 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return e.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${h(e.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${e.origin??"\u503C"} \u61C9\u70BA ${i}${e.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${e.origin??"\u503C"} \u61C9\u70BA ${i}${e.maximum.toString()}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${e.origin} \u61C9\u70BA ${i}${e.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${e.origin} \u61C9\u70BA ${i}${e.minimum.toString()}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${n[i.format]??e.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${e.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${e.keys.length>1?"\u5011":""}\uFF1A${f(e.keys,"\u3001")}`;case"invalid_key":return`${e.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${e.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function Wm(){return{localeError:H_()}}var G_=()=>{let t={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function r(e){return t[e]??null}let n={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return e=>{switch(e.code){case"invalid_type":{let i=o[e.expected]??e.expected,a=v(e.input),s=o[a]??a;return/^[A-Z]/.test(e.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${e.expected}, \xE0m\u1ECD\u0300 a r\xED ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case"invalid_value":return e.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${h(e.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${f(e.values,"|")}`;case"too_big":{let i=e.inclusive?"<=":"<",a=r(e.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${e.origin??"iye"} ${a.verb} ${i}${e.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${e.maximum}`}case"too_small":{let i=e.inclusive?">=":">",a=r(e.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${e.origin} ${a.verb} ${i}${e.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${e.minimum}`}case"invalid_format":{let i=e;return i.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${n[i.format]??e.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${e.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${f(e.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${e.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${e.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function Jm(){return{localeError:G_()}}var qm,js=Symbol("ZodOutput"),As=Symbol("ZodInput"),yn=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...n){let o=n[0];return this._map.set(r,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,r),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){let n=this._map.get(r);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(r),this}get(r){let n=r._zod.parent;if(n){let o={...this.get(n)??{}};delete o.id;let e={...o,...this._map.get(r)};return Object.keys(e).length?e:void 0}return this._map.get(r)}has(r){return this._map.has(r)}};function bn(){return new yn}(qm=globalThis).__zod_globalRegistry??(qm.__zod_globalRegistry=bn());var V=globalThis.__zod_globalRegistry;function Cs(t,r){return new t({type:"string",...b(r)})}function Ns(t,r){return new t({type:"string",coerce:!0,...b(r)})}function $n(t,r){return new t({type:"string",format:"email",check:"string_format",abort:!1,...b(r)})}function ur(t,r){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...b(r)})}function xn(t,r){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...b(r)})}function kn(t,r){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...b(r)})}function Sn(t,r){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...b(r)})}function wn(t,r){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...b(r)})}function lr(t,r){return new t({type:"string",format:"url",check:"string_format",abort:!1,...b(r)})}function In(t,r){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...b(r)})}function zn(t,r){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...b(r)})}function On(t,r){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...b(r)})}function En(t,r){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...b(r)})}function Pn(t,r){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...b(r)})}function Tn(t,r){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...b(r)})}function jn(t,r){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...b(r)})}function An(t,r){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...b(r)})}function Cn(t,r){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...b(r)})}function Ds(t,r){return new t({type:"string",format:"mac",check:"string_format",abort:!1,...b(r)})}function Nn(t,r){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...b(r)})}function Dn(t,r){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...b(r)})}function Un(t,r){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...b(r)})}function Rn(t,r){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...b(r)})}function Zn(t,r){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...b(r)})}function Ln(t,r){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...b(r)})}var Us={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Rs(t,r){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...b(r)})}function Zs(t,r){return new t({type:"string",format:"date",check:"string_format",...b(r)})}function Ls(t,r){return new t({type:"string",format:"time",check:"string_format",precision:null,...b(r)})}function Ms(t,r){return new t({type:"string",format:"duration",check:"string_format",...b(r)})}function Fs(t,r){return new t({type:"number",checks:[],...b(r)})}function Vs(t,r){return new t({type:"number",coerce:!0,checks:[],...b(r)})}function Bs(t,r){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...b(r)})}function Hs(t,r){return new t({type:"number",check:"number_format",abort:!1,format:"float32",...b(r)})}function Gs(t,r){return new t({type:"number",check:"number_format",abort:!1,format:"float64",...b(r)})}function Ws(t,r){return new t({type:"number",check:"number_format",abort:!1,format:"int32",...b(r)})}function Js(t,r){return new t({type:"number",check:"number_format",abort:!1,format:"uint32",...b(r)})}function qs(t,r){return new t({type:"boolean",...b(r)})}function Ks(t,r){return new t({type:"boolean",coerce:!0,...b(r)})}function Ys(t,r){return new t({type:"bigint",...b(r)})}function Xs(t,r){return new t({type:"bigint",coerce:!0,...b(r)})}function Qs(t,r){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...b(r)})}function ec(t,r){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...b(r)})}function tc(t,r){return new t({type:"symbol",...b(r)})}function rc(t,r){return new t({type:"undefined",...b(r)})}function nc(t,r){return new t({type:"null",...b(r)})}function ic(t){return new t({type:"any"})}function oc(t){return new t({type:"unknown"})}function ac(t,r){return new t({type:"never",...b(r)})}function sc(t,r){return new t({type:"void",...b(r)})}function cc(t,r){return new t({type:"date",...b(r)})}function uc(t,r){return new t({type:"date",coerce:!0,...b(r)})}function lc(t,r){return new t({type:"nan",...b(r)})}function he(t,r){return new on({check:"less_than",...b(r),value:t,inclusive:!1})}function re(t,r){return new on({check:"less_than",...b(r),value:t,inclusive:!0})}function ve(t,r){return new an({check:"greater_than",...b(r),value:t,inclusive:!1})}function J(t,r){return new an({check:"greater_than",...b(r),value:t,inclusive:!0})}function Mn(t){return ve(0,t)}function Fn(t){return he(0,t)}function Vn(t){return re(0,t)}function Bn(t){return J(0,t)}function De(t,r){return new na({check:"multiple_of",...b(r),value:t})}function Ue(t,r){return new aa({check:"max_size",...b(r),maximum:t})}function _e(t,r){return new sa({check:"min_size",...b(r),minimum:t})}function Je(t,r){return new ca({check:"size_equals",...b(r),size:t})}function qe(t,r){return new ua({check:"max_length",...b(r),maximum:t})}function Ie(t,r){return new la({check:"min_length",...b(r),minimum:t})}function Ke(t,r){return new da({check:"length_equals",...b(r),length:t})}function mt(t,r){return new ma({check:"string_format",format:"regex",...b(r),pattern:t})}function pt(t){return new pa({check:"string_format",format:"lowercase",...b(t)})}function ft(t){return new fa({check:"string_format",format:"uppercase",...b(t)})}function gt(t,r){return new ga({check:"string_format",format:"includes",...b(r),includes:t})}function ht(t,r){return new ha({check:"string_format",format:"starts_with",...b(r),prefix:t})}function vt(t,r){return new va({check:"string_format",format:"ends_with",...b(r),suffix:t})}function Hn(t,r,n){return new _a({check:"property",property:t,schema:r,...b(n)})}function _t(t,r){return new ya({check:"mime_type",mime:t,...b(r)})}function le(t){return new ba({check:"overwrite",tx:t})}function yt(t){return le(r=>r.normalize(t))}function bt(){return le(t=>t.trim())}function $t(){return le(t=>t.toLowerCase())}function xt(){return le(t=>t.toUpperCase())}function kt(){return le(t=>ho(t))}function dc(t,r,n){return new t({type:"array",element:r,...b(n)})}function J_(t,r,n){return new t({type:"union",options:r,...b(n)})}function q_(t,r,n){return new t({type:"union",options:r,inclusive:!1,...b(n)})}function K_(t,r,n,o){return new t({type:"union",options:n,discriminator:r,...b(o)})}function Y_(t,r,n){return new t({type:"intersection",left:r,right:n})}function X_(t,r,n,o){let e=n instanceof S,i=e?o:n,a=e?n:null;return new t({type:"tuple",items:r,rest:a,...b(i)})}function Q_(t,r,n,o){return new t({type:"record",keyType:r,valueType:n,...b(o)})}function ey(t,r,n,o){return new t({type:"map",keyType:r,valueType:n,...b(o)})}function ty(t,r,n){return new t({type:"set",valueType:r,...b(n)})}function ry(t,r,n){let o=Array.isArray(r)?Object.fromEntries(r.map(e=>[e,e])):r;return new t({type:"enum",entries:o,...b(n)})}function ny(t,r,n){return new t({type:"enum",entries:r,...b(n)})}function iy(t,r,n){return new t({type:"literal",values:Array.isArray(r)?r:[r],...b(n)})}function mc(t,r){return new t({type:"file",...b(r)})}function oy(t,r){return new t({type:"transform",transform:r})}function ay(t,r){return new t({type:"optional",innerType:r})}function sy(t,r){return new t({type:"nullable",innerType:r})}function cy(t,r,n){return new t({type:"default",innerType:r,get defaultValue(){return typeof n=="function"?n():_o(n)}})}function uy(t,r,n){return new t({type:"nonoptional",innerType:r,...b(n)})}function ly(t,r){return new t({type:"success",innerType:r})}function dy(t,r,n){return new t({type:"catch",innerType:r,catchValue:typeof n=="function"?n:()=>n})}function my(t,r,n){return new t({type:"pipe",in:r,out:n})}function py(t,r){return new t({type:"readonly",innerType:r})}function fy(t,r,n){return new t({type:"template_literal",parts:r,...b(n)})}function gy(t,r){return new t({type:"lazy",getter:r})}function hy(t,r){return new t({type:"promise",innerType:r})}function pc(t,r,n){let o=b(n);return o.abort??(o.abort=!0),new t({type:"custom",check:"custom",fn:r,...o})}function fc(t,r,n){return new t({type:"custom",check:"custom",fn:r,...b(n)})}function gc(t,r){let n=Km(o=>(o.addIssue=e=>{if(typeof e=="string")o.issues.push(ot(e,o.value,n._zod.def));else{let i=e;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),o.issues.push(ot(i))}},t(o.value,o)),r);return n}function Km(t,r){let n=new C({check:"custom",...b(r)});return n._zod.check=t,n}function hc(t){let r=new C({check:"describe"});return r._zod.onattach=[n=>{let o=V.get(n)??{};V.add(n,{...o,description:t})}],r._zod.check=()=>{},r}function vc(t){let r=new C({check:"meta"});return r._zod.onattach=[n=>{let o=V.get(n)??{};V.add(n,{...o,...t})}],r._zod.check=()=>{},r}function _c(t,r){let n=b(r),o=n.truthy??["true","1","yes","on","y","enabled"],e=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(o=o.map(_=>typeof _=="string"?_.toLowerCase():_),e=e.map(_=>typeof _=="string"?_.toLowerCase():_));let i=new Set(o),a=new Set(e),s=t.Codec??ar,u=t.Boolean??ir,l=t.String??We,d=new l({type:"string",error:n.error}),m=new u({type:"boolean",error:n.error}),g=new s({type:"pipe",in:d,out:m,transform:((_,x)=>{let K=_;return n.case!=="sensitive"&&(K=K.toLowerCase()),i.has(K)?!0:a.has(K)?!1:(x.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:x.value,inst:g,continue:!1}),{})}),reverseTransform:((_,x)=>_===!0?o[0]||"true":e[0]||"false"),error:n.error});return g}function St(t,r,n,o={}){let e=b(o),i={...b(o),check:"string_format",type:"string",format:r,fn:typeof n=="function"?n:s=>n.test(s),...e};return n instanceof RegExp&&(i.pattern=n),new t(i)}function Re(t){let r=t?.target??"draft-2020-12";return r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),{processors:t.processors??{},metadataRegistry:t?.metadata??V,target:r,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0}}function P(t,r,n={path:[],schemaPath:[]}){var o;let e=t._zod.def,i=r.seen.get(t);if(i)return i.count++,n.schemaPath.includes(t)&&(i.cycle=n.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};r.seen.set(t,a);let s=t._zod.toJSONSchema?.();if(s)a.schema=s;else{let d={...n,schemaPath:[...n.schemaPath,t],path:n.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(r,a.schema,d);else{let g=a.schema,_=r.processors[e.type];if(!_)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${e.type}`);_(t,r,g,d)}let m=t._zod.parent;m&&(a.ref||(a.ref=m),P(m,r,d),r.seen.get(m).isParent=!0)}let u=r.metadataRegistry.get(t);return u&&Object.assign(a.schema,u),r.io==="input"&&q(t)&&(delete a.schema.examples,delete a.schema.default),r.io==="input"&&"_prefault"in a.schema&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,r.seen.get(t).schema}function Ze(t,r){let n=t.seen.get(r);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let a of t.seen.entries()){let s=t.metadataRegistry.get(a[0])?.id;if(s){let u=o.get(s);if(u&&u!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(s,a[0])}}let e=a=>{let s=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){let m=t.external.registry.get(a[0])?.id,g=t.external.uri??(x=>x);if(m)return{ref:g(m)};let _=a[1].defId??a[1].schema.id??`schema${t.counter++}`;return a[1].defId=_,{defId:_,ref:`${g("__shared")}#/${s}/${_}`}}if(a[1]===n)return{ref:"#"};let l=`#/${s}/`,d=a[1].schema.id??`__schema${t.counter++}`;return{defId:d,ref:l+d}},i=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:u,defId:l}=e(a);s.def={...s.schema},l&&(s.defId=l);let d=s.schema;for(let m in d)delete d[m];d.$ref=u};if(t.cycles==="throw")for(let a of t.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
96
96
 
97
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of t.seen.entries()){let s=a[1];if(r===a[0]){i(a);continue}if(t.external){let l=t.external.registry.get(a[0])?.id;if(r!==a[0]&&l){i(a);continue}}if(t.metadataRegistry.get(a[0])?.id){i(a);continue}if(s.cycle){i(a);continue}if(s.count>1&&t.reused==="ref"){i(a);continue}}}function Le(t,r){let n=t.seen.get(r);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=s=>{let u=t.seen.get(s);if(u.ref===null)return;let l=u.def??u.schema,d={...l},m=u.ref;if(u.ref=null,m){o(m);let _=t.seen.get(m),x=_.schema;if(x.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(x)):Object.assign(l,x),Object.assign(l,d),s._zod.parent===m)for(let F in l)F==="$ref"||F==="allOf"||F in d||delete l[F];if(x.$ref&&_.def)for(let F in l)F==="$ref"||F==="allOf"||F in _.def&&JSON.stringify(l[F])===JSON.stringify(_.def[F])&&delete l[F]}let g=s._zod.parent;if(g&&g!==m){o(g);let _=t.seen.get(g);if(_?.schema.$ref&&(l.$ref=_.schema.$ref,_.def))for(let x in l)x==="$ref"||x==="allOf"||x in _.def&&JSON.stringify(l[x])===JSON.stringify(_.def[x])&&delete l[x]}t.override({zodSchema:s,jsonSchema:l,path:u.path??[]})};for(let s of[...t.seen.entries()].reverse())o(s[0]);let e={};if(t.target==="draft-2020-12"?e.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?e.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?e.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let s=t.external.registry.get(r)?.id;if(!s)throw new Error("Schema is missing an `id` property");e.$id=t.external.uri(s)}Object.assign(e,n.def??n.schema);let i=t.metadataRegistry.get(r)?.id;i!==void 0&&e.id===i&&delete e.id;let a=t.external?.defs??{};for(let s of t.seen.entries()){let u=s[1];u.def&&u.defId&&(u.def.id===u.defId&&delete u.def.id,a[u.defId]=u.def)}t.external||Object.keys(a).length>0&&(t.target==="draft-2020-12"?e.$defs=a:e.definitions=a);try{let s=JSON.parse(JSON.stringify(e));return Object.defineProperty(s,"~standard",{value:{...r["~standard"],jsonSchema:{input:wt(r,"input",t.processors),output:wt(r,"output",t.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function J(t,r){let n=r??{seen:new Set};if(n.seen.has(t))return!1;n.seen.add(t);let o=t._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return J(o.element,n);if(o.type==="set")return J(o.valueType,n);if(o.type==="lazy")return J(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return J(o.innerType,n);if(o.type==="intersection")return J(o.left,n)||J(o.right,n);if(o.type==="record"||o.type==="map")return J(o.keyType,n)||J(o.valueType,n);if(o.type==="pipe")return t._zod.traits.has("$ZodCodec")?!0:J(o.in,n)||J(o.out,n);if(o.type==="object"){for(let e in o.shape)if(J(o.shape[e],n))return!0;return!1}if(o.type==="union"){for(let e of o.options)if(J(e,n))return!0;return!1}if(o.type==="tuple"){for(let e of o.items)if(J(e,n))return!0;return!!(o.rest&&J(o.rest,n))}return!1}var _c=(t,r={})=>n=>{let o=Re({...n,processors:r});return E(t,o),Ze(o,t),Le(o,t)},wt=(t,r,n={})=>o=>{let{libraryOptions:e,target:i}=o??{},a=Re({...e??{},target:i,io:r,processors:n});return E(t,a),Ze(a,t),Le(a,t)};var fy={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},yc=(t,r,n,o)=>{let e=n;e.type="string";let{minimum:i,maximum:a,format:s,patterns:u,contentEncoding:l}=t._zod.bag;if(typeof i=="number"&&(e.minLength=i),typeof a=="number"&&(e.maxLength=a),s&&(e.format=fy[s]??s,e.format===""&&delete e.format,s==="time"&&delete e.format),l&&(e.contentEncoding=l),u&&u.size>0){let d=[...u];d.length===1?e.pattern=d[0].source:d.length>1&&(e.allOf=[...d.map(m=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},bc=(t,r,n,o)=>{let e=n,{minimum:i,maximum:a,format:s,multipleOf:u,exclusiveMaximum:l,exclusiveMinimum:d}=t._zod.bag;typeof s=="string"&&s.includes("int")?e.type="integer":e.type="number";let m=typeof d=="number"&&d>=(i??Number.NEGATIVE_INFINITY),g=typeof l=="number"&&l<=(a??Number.POSITIVE_INFINITY),_=r.target==="draft-04"||r.target==="openapi-3.0";m?_?(e.minimum=d,e.exclusiveMinimum=!0):e.exclusiveMinimum=d:typeof i=="number"&&(e.minimum=i),g?_?(e.maximum=l,e.exclusiveMaximum=!0):e.exclusiveMaximum=l:typeof a=="number"&&(e.maximum=a),typeof u=="number"&&(e.multipleOf=u)},$c=(t,r,n,o)=>{n.type="boolean"},xc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},kc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Sc=(t,r,n,o)=>{r.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},wc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Ic=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},zc=(t,r,n,o)=>{n.not={}},Oc=(t,r,n,o)=>{},Pc=(t,r,n,o)=>{},Ec=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Tc=(t,r,n,o)=>{let e=t._zod.def,i=Gt(e.entries);i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),n.enum=i},jc=(t,r,n,o)=>{let e=t._zod.def,i=[];for(let a of e.values)if(a===void 0){if(r.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(r.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];n.type=a===null?"null":typeof a,r.target==="draft-04"||r.target==="openapi-3.0"?n.enum=[a]:n.const=a}else i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),i.every(a=>typeof a=="boolean")&&(n.type="boolean"),i.every(a=>a===null)&&(n.type="null"),n.enum=i},Ac=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Cc=(t,r,n,o)=>{let e=n,i=t._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");e.type="string",e.pattern=i.source},Nc=(t,r,n,o)=>{let e=n,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:u}=t._zod.bag;a!==void 0&&(i.minLength=a),s!==void 0&&(i.maxLength=s),u?u.length===1?(i.contentMediaType=u[0],Object.assign(e,i)):(Object.assign(e,i),e.anyOf=u.map(l=>({contentMediaType:l}))):Object.assign(e,i)},Dc=(t,r,n,o)=>{n.type="boolean"},Uc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Rc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Zc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Lc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Fc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Mc=(t,r,n,o)=>{let e=n,i=t._zod.def,{minimum:a,maximum:s}=t._zod.bag;typeof a=="number"&&(e.minItems=a),typeof s=="number"&&(e.maxItems=s),e.type="array",e.items=E(i.element,r,{...o,path:[...o.path,"items"]})},Vc=(t,r,n,o)=>{let e=n,i=t._zod.def;e.type="object",e.properties={};let a=i.shape;for(let l in a)e.properties[l]=E(a[l],r,{...o,path:[...o.path,"properties",l]});let s=new Set(Object.keys(a)),u=new Set([...s].filter(l=>{let d=i.shape[l]._zod;return r.io==="input"?d.optin===void 0:d.optout===void 0}));u.size>0&&(e.required=Array.from(u)),i.catchall?._zod.def.type==="never"?e.additionalProperties=!1:i.catchall?i.catchall&&(e.additionalProperties=E(i.catchall,r,{...o,path:[...o.path,"additionalProperties"]})):r.io==="output"&&(e.additionalProperties=!1)},Wn=(t,r,n,o)=>{let e=t._zod.def,i=e.inclusive===!1,a=e.options.map((s,u)=>E(s,r,{...o,path:[...o.path,i?"oneOf":"anyOf",u]}));i?n.oneOf=a:n.anyOf=a},Bc=(t,r,n,o)=>{let e=t._zod.def,i=E(e.left,r,{...o,path:[...o.path,"allOf",0]}),a=E(e.right,r,{...o,path:[...o.path,"allOf",1]}),s=l=>"allOf"in l&&Object.keys(l).length===1,u=[...s(i)?i.allOf:[i],...s(a)?a.allOf:[a]];n.allOf=u},Hc=(t,r,n,o)=>{let e=n,i=t._zod.def;e.type="array";let a=r.target==="draft-2020-12"?"prefixItems":"items",s=r.target==="draft-2020-12"||r.target==="openapi-3.0"?"items":"additionalItems",u=i.items.map((g,_)=>E(g,r,{...o,path:[...o.path,a,_]})),l=i.rest?E(i.rest,r,{...o,path:[...o.path,s,...r.target==="openapi-3.0"?[i.items.length]:[]]}):null;r.target==="draft-2020-12"?(e.prefixItems=u,l&&(e.items=l)):r.target==="openapi-3.0"?(e.items={anyOf:u},l&&e.items.anyOf.push(l),e.minItems=u.length,l||(e.maxItems=u.length)):(e.items=u,l&&(e.additionalItems=l));let{minimum:d,maximum:m}=t._zod.bag;typeof d=="number"&&(e.minItems=d),typeof m=="number"&&(e.maxItems=m)},Wc=(t,r,n,o)=>{let e=n,i=t._zod.def;e.type="object";let a=i.keyType,u=a._zod.bag?.patterns;if(i.mode==="loose"&&u&&u.size>0){let d=E(i.valueType,r,{...o,path:[...o.path,"patternProperties","*"]});e.patternProperties={};for(let m of u)e.patternProperties[m.source]=d}else(r.target==="draft-07"||r.target==="draft-2020-12")&&(e.propertyNames=E(i.keyType,r,{...o,path:[...o.path,"propertyNames"]})),e.additionalProperties=E(i.valueType,r,{...o,path:[...o.path,"additionalProperties"]});let l=a._zod.values;if(l){let d=[...l].filter(m=>typeof m=="string"||typeof m=="number");d.length>0&&(e.required=d)}},Gc=(t,r,n,o)=>{let e=t._zod.def,i=E(e.innerType,r,o),a=r.seen.get(t);r.target==="openapi-3.0"?(a.ref=e.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},Jc=(t,r,n,o)=>{let e=t._zod.def;E(e.innerType,r,o);let i=r.seen.get(t);i.ref=e.innerType},qc=(t,r,n,o)=>{let e=t._zod.def;E(e.innerType,r,o);let i=r.seen.get(t);i.ref=e.innerType,n.default=JSON.parse(JSON.stringify(e.defaultValue))},Kc=(t,r,n,o)=>{let e=t._zod.def;E(e.innerType,r,o);let i=r.seen.get(t);i.ref=e.innerType,r.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(e.defaultValue)))},Yc=(t,r,n,o)=>{let e=t._zod.def;E(e.innerType,r,o);let i=r.seen.get(t);i.ref=e.innerType;let a;try{a=e.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},Xc=(t,r,n,o)=>{let e=t._zod.def,i=e.in._zod.traits.has("$ZodTransform"),a=r.io==="input"?i?e.out:e.in:e.out;E(a,r,o);let s=r.seen.get(t);s.ref=a},Qc=(t,r,n,o)=>{let e=t._zod.def;E(e.innerType,r,o);let i=r.seen.get(t);i.ref=e.innerType,n.readOnly=!0},eu=(t,r,n,o)=>{let e=t._zod.def;E(e.innerType,r,o);let i=r.seen.get(t);i.ref=e.innerType},Gn=(t,r,n,o)=>{let e=t._zod.def;E(e.innerType,r,o);let i=r.seen.get(t);i.ref=e.innerType},tu=(t,r,n,o)=>{let e=t._zod.innerType;E(e,r,o);let i=r.seen.get(t);i.ref=e},Hn={string:yc,number:bc,boolean:$c,bigint:xc,symbol:kc,null:Sc,undefined:wc,void:Ic,never:zc,any:Oc,unknown:Pc,date:Ec,enum:Tc,literal:jc,nan:Ac,template_literal:Cc,file:Nc,success:Dc,custom:Uc,function:Rc,transform:Zc,map:Lc,set:Fc,array:Mc,object:Vc,union:Wn,intersection:Bc,tuple:Hc,record:Wc,nullable:Gc,nonoptional:Jc,default:qc,prefault:Kc,catch:Yc,pipe:Xc,readonly:Qc,promise:eu,optional:Gn,lazy:tu};function Jn(t,r){if("_idmap"in t){let o=t,e=Re({...r,processors:Hn}),i={};for(let u of o._idmap.entries()){let[l,d]=u;E(d,e)}let a={},s={registry:o,uri:r?.uri,defs:i};e.external=s;for(let u of o._idmap.entries()){let[l,d]=u;Ze(e,d),a[l]=Le(e,d)}if(Object.keys(i).length>0){let u=e.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[u]:i}}return{schemas:a}}let n=Re({...r,processors:Hn});return E(t,n),Ze(n,t),Le(n,t)}var qn=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(r){this.ctx.counter=r}get seen(){return this.ctx.seen}constructor(r){let n=r?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=Re({processors:Hn,target:n,...r?.metadata&&{metadata:r.metadata},...r?.unrepresentable&&{unrepresentable:r.unrepresentable},...r?.override&&{override:r.override},...r?.io&&{io:r.io}})}process(r,n={path:[],schemaPath:[]}){return E(r,this.ctx,n)}emit(r,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),Ze(this.ctx,r);let o=Le(this.ctx,r),{"~standard":e,...i}=o;return i}};var Km={};var dr={};$e(dr,{ZodAny:()=>wu,ZodArray:()=>Pu,ZodBase64:()=>hi,ZodBase64URL:()=>vi,ZodBigInt:()=>At,ZodBigIntFormat:()=>bi,ZodBoolean:()=>jt,ZodCIDRv4:()=>fi,ZodCIDRv6:()=>gi,ZodCUID:()=>si,ZodCUID2:()=>ci,ZodCatch:()=>Yu,ZodCodec:()=>kr,ZodCustom:()=>Sr,ZodCustomStringFormat:()=>Et,ZodDate:()=>_r,ZodDefault:()=>Hu,ZodDiscriminatedUnion:()=>Tu,ZodE164:()=>_i,ZodEmail:()=>ii,ZodEmoji:()=>oi,ZodEnum:()=>Ot,ZodExactOptional:()=>Mu,ZodFile:()=>Lu,ZodFunction:()=>sl,ZodGUID:()=>pr,ZodIPv4:()=>mi,ZodIPv6:()=>pi,ZodIntersection:()=>ju,ZodJWT:()=>yi,ZodKSUID:()=>di,ZodLazy:()=>il,ZodLiteral:()=>Zu,ZodMAC:()=>_u,ZodMap:()=>Uu,ZodNaN:()=>Qu,ZodNanoID:()=>ai,ZodNever:()=>zu,ZodNonOptional:()=>Ii,ZodNull:()=>ku,ZodNullable:()=>Bu,ZodNumber:()=>Tt,ZodNumberFormat:()=>Xe,ZodObject:()=>br,ZodOptional:()=>wi,ZodPipe:()=>xr,ZodPrefault:()=>Gu,ZodPreprocess:()=>el,ZodPromise:()=>al,ZodReadonly:()=>tl,ZodRecord:()=>zt,ZodSet:()=>Ru,ZodString:()=>Pt,ZodStringFormat:()=>j,ZodSuccess:()=>Ku,ZodSymbol:()=>$u,ZodTemplateLiteral:()=>nl,ZodTransform:()=>Fu,ZodTuple:()=>Cu,ZodType:()=>w,ZodULID:()=>ui,ZodURL:()=>vr,ZodUUID:()=>ye,ZodUndefined:()=>xu,ZodUnion:()=>$r,ZodUnknown:()=>Iu,ZodVoid:()=>Ou,ZodXID:()=>li,ZodXor:()=>Eu,_ZodString:()=>ni,_default:()=>Wu,_function:()=>af,any:()=>Dp,array:()=>yr,base64:()=>yp,base64url:()=>bp,bigint:()=>Tp,boolean:()=>bu,catch:()=>Xu,check:()=>sf,cidrv4:()=>vp,cidrv6:()=>_p,codec:()=>tf,cuid:()=>up,cuid2:()=>lp,custom:()=>cf,date:()=>Rp,describe:()=>uf,discriminatedUnion:()=>Bp,e164:()=>$p,email:()=>Qm,emoji:()=>sp,enum:()=>ki,exactOptional:()=>Vu,file:()=>Yp,float32:()=>zp,float64:()=>Op,function:()=>af,guid:()=>ep,hash:()=>Ip,hex:()=>wp,hostname:()=>Sp,httpUrl:()=>ap,instanceof:()=>df,int:()=>ti,int32:()=>Pp,int64:()=>jp,intersection:()=>Au,invertCodec:()=>rf,ipv4:()=>fp,ipv6:()=>hp,json:()=>pf,jwt:()=>xp,keyof:()=>Zp,ksuid:()=>pp,lazy:()=>ol,literal:()=>Kp,looseObject:()=>Mp,looseRecord:()=>Wp,mac:()=>gp,map:()=>Gp,meta:()=>lf,nan:()=>ef,nanoid:()=>cp,nativeEnum:()=>qp,never:()=>$i,nonoptional:()=>qu,null:()=>Su,nullable:()=>gr,nullish:()=>Xp,number:()=>yu,object:()=>Lp,optional:()=>fr,partialRecord:()=>Hp,pipe:()=>ri,prefault:()=>Ju,preprocess:()=>ff,promise:()=>of,readonly:()=>rl,record:()=>Du,refine:()=>cl,set:()=>Jp,strictObject:()=>Fp,string:()=>mr,stringFormat:()=>kp,stringbool:()=>mf,success:()=>Qp,superRefine:()=>ul,symbol:()=>Cp,templateLiteral:()=>nf,transform:()=>Si,tuple:()=>Nu,uint32:()=>Ep,uint64:()=>Ap,ulid:()=>dp,undefined:()=>Np,union:()=>xi,unknown:()=>Ye,url:()=>op,uuid:()=>tp,uuidv4:()=>rp,uuidv6:()=>np,uuidv7:()=>ip,void:()=>Up,xid:()=>mp,xor:()=>Vp});var Kn={};$e(Kn,{endsWith:()=>vt,gt:()=>ve,gte:()=>G,includes:()=>gt,length:()=>Ke,lowercase:()=>pt,lt:()=>he,lte:()=>re,maxLength:()=>qe,maxSize:()=>Ue,mime:()=>_t,minLength:()=>we,minSize:()=>_e,multipleOf:()=>De,negative:()=>Fn,nonnegative:()=>Vn,nonpositive:()=>Mn,normalize:()=>yt,overwrite:()=>le,positive:()=>Ln,property:()=>Bn,regex:()=>mt,size:()=>Je,slugify:()=>kt,startsWith:()=>ht,toLowerCase:()=>$t,toUpperCase:()=>xt,trim:()=>bt,uppercase:()=>ft});var It={};$e(It,{ZodISODate:()=>Xn,ZodISODateTime:()=>Yn,ZodISODuration:()=>ei,ZodISOTime:()=>Qn,date:()=>nu,datetime:()=>ru,duration:()=>ou,time:()=>iu});var Yn=p("ZodISODateTime",(t,r)=>{Aa.init(t,r),j.init(t,r)});function ru(t){return Us(Yn,t)}var Xn=p("ZodISODate",(t,r)=>{Ca.init(t,r),j.init(t,r)});function nu(t){return Rs(Xn,t)}var Qn=p("ZodISOTime",(t,r)=>{Na.init(t,r),j.init(t,r)});function iu(t){return Zs(Qn,t)}var ei=p("ZodISODuration",(t,r)=>{Da.init(t,r),j.init(t,r)});function ou(t){return Ls(ei,t)}var Ym=(t,r)=>{Xt.init(t,r),t.name="ZodError",Object.defineProperties(t,{format:{value:n=>er(t,n)},flatten:{value:n=>Qt(t,n)},addIssue:{value:n=>{t.issues.push(n),t.message=JSON.stringify(t.issues,nt,2)}},addIssues:{value:n=>{t.issues.push(...n),t.message=JSON.stringify(t.issues,nt,2)}},isEmpty:{get(){return t.issues.length===0}}})},hy=p("ZodError",Ym),Q=p("ZodError",Ym,{Parent:Error});var au=at(Q),su=st(Q),cu=ct(Q),uu=ut(Q),lu=Gr(Q),du=Jr(Q),mu=qr(Q),pu=Kr(Q),fu=Yr(Q),gu=Xr(Q),hu=Qr(Q),vu=en(Q);var Xm=new WeakMap;function hr(t,r,n){let o=Object.getPrototypeOf(t),e=Xm.get(o);if(e||(e=new Set,Xm.set(o,e)),!e.has(r)){e.add(r);for(let i in n){let a=n[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){let s=a.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:s}),s},set(s){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:s})}})}}}var w=p("ZodType",(t,r)=>(k.init(t,r),Object.assign(t["~standard"],{jsonSchema:{input:wt(t,"input"),output:wt(t,"output")}}),t.toJSONSchema=_c(t,{}),t.def=r,t.type=r.type,Object.defineProperty(t,"_def",{value:r}),t.parse=(n,o)=>au(t,n,o,{callee:t.parse}),t.safeParse=(n,o)=>cu(t,n,o),t.parseAsync=async(n,o)=>su(t,n,o,{callee:t.parseAsync}),t.safeParseAsync=async(n,o)=>uu(t,n,o),t.spa=t.safeParseAsync,t.encode=(n,o)=>lu(t,n,o),t.decode=(n,o)=>du(t,n,o),t.encodeAsync=async(n,o)=>mu(t,n,o),t.decodeAsync=async(n,o)=>pu(t,n,o),t.safeEncode=(n,o)=>fu(t,n,o),t.safeDecode=(n,o)=>gu(t,n,o),t.safeEncodeAsync=async(n,o)=>hu(t,n,o),t.safeDecodeAsync=async(n,o)=>vu(t,n,o),hr(t,"ZodType",{check(...n){let o=this.def;return this.clone(y.mergeDefs(o,{checks:[...o.checks??[],...n.map(e=>typeof e=="function"?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return H(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(cl(n,o))},superRefine(n,o){return this.check(ul(n,o))},overwrite(n){return this.check(le(n))},optional(){return fr(this)},exactOptional(){return Vu(this)},nullable(){return gr(this)},nullish(){return fr(gr(this))},nonoptional(n){return qu(this,n)},array(){return yr(this)},or(n){return xi([this,n])},and(n){return Au(this,n)},transform(n){return ri(this,Si(n))},default(n){return Wu(this,n)},prefault(n){return Ju(this,n)},catch(n){return Xu(this,n)},pipe(n){return ri(this,n)},readonly(){return rl(this)},describe(n){let o=this.clone();return V.add(o,{description:n}),o},meta(...n){if(n.length===0)return V.get(this);let o=this.clone();return V.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(t,"description",{get(){return V.get(t)?.description},configurable:!0}),t)),ni=p("_ZodString",(t,r)=>{Ge.init(t,r),w.init(t,r),t._zod.processJSONSchema=(o,e,i)=>yc(t,o,e,i);let n=t._zod.bag;t.format=n.format??null,t.minLength=n.minimum??null,t.maxLength=n.maximum??null,hr(t,"_ZodString",{regex(...o){return this.check(mt(...o))},includes(...o){return this.check(gt(...o))},startsWith(...o){return this.check(ht(...o))},endsWith(...o){return this.check(vt(...o))},min(...o){return this.check(we(...o))},max(...o){return this.check(qe(...o))},length(...o){return this.check(Ke(...o))},nonempty(...o){return this.check(we(1,...o))},lowercase(o){return this.check(pt(o))},uppercase(o){return this.check(ft(o))},trim(){return this.check(bt())},normalize(...o){return this.check(yt(...o))},toLowerCase(){return this.check($t())},toUpperCase(){return this.check(xt())},slugify(){return this.check(kt())}})}),Pt=p("ZodString",(t,r)=>{Ge.init(t,r),ni.init(t,r),t.email=n=>t.check(bn(ii,n)),t.url=n=>t.check(lr(vr,n)),t.jwt=n=>t.check(Zn(yi,n)),t.emoji=n=>t.check(wn(oi,n)),t.guid=n=>t.check(ur(pr,n)),t.uuid=n=>t.check($n(ye,n)),t.uuidv4=n=>t.check(xn(ye,n)),t.uuidv6=n=>t.check(kn(ye,n)),t.uuidv7=n=>t.check(Sn(ye,n)),t.nanoid=n=>t.check(In(ai,n)),t.guid=n=>t.check(ur(pr,n)),t.cuid=n=>t.check(zn(si,n)),t.cuid2=n=>t.check(On(ci,n)),t.ulid=n=>t.check(Pn(ui,n)),t.base64=n=>t.check(Dn(hi,n)),t.base64url=n=>t.check(Un(vi,n)),t.xid=n=>t.check(En(li,n)),t.ksuid=n=>t.check(Tn(di,n)),t.ipv4=n=>t.check(jn(mi,n)),t.ipv6=n=>t.check(An(pi,n)),t.cidrv4=n=>t.check(Cn(fi,n)),t.cidrv6=n=>t.check(Nn(gi,n)),t.e164=n=>t.check(Rn(_i,n)),t.datetime=n=>t.check(ru(n)),t.date=n=>t.check(nu(n)),t.time=n=>t.check(iu(n)),t.duration=n=>t.check(ou(n))});function mr(t){return As(Pt,t)}var j=p("ZodStringFormat",(t,r)=>{T.init(t,r),ni.init(t,r)}),ii=p("ZodEmail",(t,r)=>{Sa.init(t,r),j.init(t,r)});function Qm(t){return bn(ii,t)}var pr=p("ZodGUID",(t,r)=>{xa.init(t,r),j.init(t,r)});function ep(t){return ur(pr,t)}var ye=p("ZodUUID",(t,r)=>{ka.init(t,r),j.init(t,r)});function tp(t){return $n(ye,t)}function rp(t){return xn(ye,t)}function np(t){return kn(ye,t)}function ip(t){return Sn(ye,t)}var vr=p("ZodURL",(t,r)=>{wa.init(t,r),j.init(t,r)});function op(t){return lr(vr,t)}function ap(t){return lr(vr,{protocol:te.httpProtocol,hostname:te.domain,...y.normalizeParams(t)})}var oi=p("ZodEmoji",(t,r)=>{Ia.init(t,r),j.init(t,r)});function sp(t){return wn(oi,t)}var ai=p("ZodNanoID",(t,r)=>{za.init(t,r),j.init(t,r)});function cp(t){return In(ai,t)}var si=p("ZodCUID",(t,r)=>{Oa.init(t,r),j.init(t,r)});function up(t){return zn(si,t)}var ci=p("ZodCUID2",(t,r)=>{Pa.init(t,r),j.init(t,r)});function lp(t){return On(ci,t)}var ui=p("ZodULID",(t,r)=>{Ea.init(t,r),j.init(t,r)});function dp(t){return Pn(ui,t)}var li=p("ZodXID",(t,r)=>{Ta.init(t,r),j.init(t,r)});function mp(t){return En(li,t)}var di=p("ZodKSUID",(t,r)=>{ja.init(t,r),j.init(t,r)});function pp(t){return Tn(di,t)}var mi=p("ZodIPv4",(t,r)=>{Ua.init(t,r),j.init(t,r)});function fp(t){return jn(mi,t)}var _u=p("ZodMAC",(t,r)=>{Za.init(t,r),j.init(t,r)});function gp(t){return Ns(_u,t)}var pi=p("ZodIPv6",(t,r)=>{Ra.init(t,r),j.init(t,r)});function hp(t){return An(pi,t)}var fi=p("ZodCIDRv4",(t,r)=>{La.init(t,r),j.init(t,r)});function vp(t){return Cn(fi,t)}var gi=p("ZodCIDRv6",(t,r)=>{Fa.init(t,r),j.init(t,r)});function _p(t){return Nn(gi,t)}var hi=p("ZodBase64",(t,r)=>{Va.init(t,r),j.init(t,r)});function yp(t){return Dn(hi,t)}var vi=p("ZodBase64URL",(t,r)=>{Ba.init(t,r),j.init(t,r)});function bp(t){return Un(vi,t)}var _i=p("ZodE164",(t,r)=>{Ha.init(t,r),j.init(t,r)});function $p(t){return Rn(_i,t)}var yi=p("ZodJWT",(t,r)=>{Wa.init(t,r),j.init(t,r)});function xp(t){return Zn(yi,t)}var Et=p("ZodCustomStringFormat",(t,r)=>{Ga.init(t,r),j.init(t,r)});function kp(t,r,n={}){return St(Et,t,r,n)}function Sp(t){return St(Et,"hostname",te.hostname,t)}function wp(t){return St(Et,"hex",te.hex,t)}function Ip(t,r){let n=r?.enc??"hex",o=`${t}_${n}`,e=te[o];if(!e)throw new Error(`Unrecognized hash format: ${o}`);return St(Et,o,e,r)}var Tt=p("ZodNumber",(t,r)=>{ln.init(t,r),w.init(t,r),t._zod.processJSONSchema=(o,e,i)=>bc(t,o,e,i),hr(t,"ZodNumber",{gt(o,e){return this.check(ve(o,e))},gte(o,e){return this.check(G(o,e))},min(o,e){return this.check(G(o,e))},lt(o,e){return this.check(he(o,e))},lte(o,e){return this.check(re(o,e))},max(o,e){return this.check(re(o,e))},int(o){return this.check(ti(o))},safe(o){return this.check(ti(o))},positive(o){return this.check(ve(0,o))},nonnegative(o){return this.check(G(0,o))},negative(o){return this.check(he(0,o))},nonpositive(o){return this.check(re(0,o))},multipleOf(o,e){return this.check(De(o,e))},step(o,e){return this.check(De(o,e))},finite(){return this}});let n=t._zod.bag;t.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),t.isFinite=!0,t.format=n.format??null});function yu(t){return Fs(Tt,t)}var Xe=p("ZodNumberFormat",(t,r)=>{Ja.init(t,r),Tt.init(t,r)});function ti(t){return Vs(Xe,t)}function zp(t){return Bs(Xe,t)}function Op(t){return Hs(Xe,t)}function Pp(t){return Ws(Xe,t)}function Ep(t){return Gs(Xe,t)}var jt=p("ZodBoolean",(t,r)=>{ir.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>$c(t,n,o,e)});function bu(t){return Js(jt,t)}var At=p("ZodBigInt",(t,r)=>{dn.init(t,r),w.init(t,r),t._zod.processJSONSchema=(o,e,i)=>xc(t,o,e,i),t.gte=(o,e)=>t.check(G(o,e)),t.min=(o,e)=>t.check(G(o,e)),t.gt=(o,e)=>t.check(ve(o,e)),t.gte=(o,e)=>t.check(G(o,e)),t.min=(o,e)=>t.check(G(o,e)),t.lt=(o,e)=>t.check(he(o,e)),t.lte=(o,e)=>t.check(re(o,e)),t.max=(o,e)=>t.check(re(o,e)),t.positive=o=>t.check(ve(BigInt(0),o)),t.negative=o=>t.check(he(BigInt(0),o)),t.nonpositive=o=>t.check(re(BigInt(0),o)),t.nonnegative=o=>t.check(G(BigInt(0),o)),t.multipleOf=(o,e)=>t.check(De(o,e));let n=t._zod.bag;t.minValue=n.minimum??null,t.maxValue=n.maximum??null,t.format=n.format??null});function Tp(t){return Ks(At,t)}var bi=p("ZodBigIntFormat",(t,r)=>{qa.init(t,r),At.init(t,r)});function jp(t){return Xs(bi,t)}function Ap(t){return Qs(bi,t)}var $u=p("ZodSymbol",(t,r)=>{Ka.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>kc(t,n,o,e)});function Cp(t){return ec($u,t)}var xu=p("ZodUndefined",(t,r)=>{Ya.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>wc(t,n,o,e)});function Np(t){return tc(xu,t)}var ku=p("ZodNull",(t,r)=>{Xa.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Sc(t,n,o,e)});function Su(t){return rc(ku,t)}var wu=p("ZodAny",(t,r)=>{Qa.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Oc(t,n,o,e)});function Dp(){return nc(wu)}var Iu=p("ZodUnknown",(t,r)=>{es.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Pc(t,n,o,e)});function Ye(){return ic(Iu)}var zu=p("ZodNever",(t,r)=>{ts.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>zc(t,n,o,e)});function $i(t){return oc(zu,t)}var Ou=p("ZodVoid",(t,r)=>{rs.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Ic(t,n,o,e)});function Up(t){return ac(Ou,t)}var _r=p("ZodDate",(t,r)=>{ns.init(t,r),w.init(t,r),t._zod.processJSONSchema=(o,e,i)=>Ec(t,o,e,i),t.min=(o,e)=>t.check(G(o,e)),t.max=(o,e)=>t.check(re(o,e));let n=t._zod.bag;t.minDate=n.minimum?new Date(n.minimum):null,t.maxDate=n.maximum?new Date(n.maximum):null});function Rp(t){return sc(_r,t)}var Pu=p("ZodArray",(t,r)=>{is.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Mc(t,n,o,e),t.element=r.element,hr(t,"ZodArray",{min(n,o){return this.check(we(n,o))},nonempty(n){return this.check(we(1,n))},max(n,o){return this.check(qe(n,o))},length(n,o){return this.check(Ke(n,o))},unwrap(){return this.element}})});function yr(t,r){return lc(Pu,t,r)}function Zp(t){let r=t._zod.def.shape;return ki(Object.keys(r))}var br=p("ZodObject",(t,r)=>{os.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Vc(t,n,o,e),y.defineLazy(t,"shape",()=>r.shape),hr(t,"ZodObject",{keyof(){return ki(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:Ye()})},loose(){return this.clone({...this._zod.def,catchall:Ye()})},strict(){return this.clone({...this._zod.def,catchall:$i()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return y.extend(this,n)},safeExtend(n){return y.safeExtend(this,n)},merge(n){return y.merge(this,n)},pick(n){return y.pick(this,n)},omit(n){return y.omit(this,n)},partial(...n){return y.partial(wi,this,n[0])},required(...n){return y.required(Ii,this,n[0])}})});function Lp(t,r){let n={type:"object",shape:t??{},...y.normalizeParams(r)};return new br(n)}function Fp(t,r){return new br({type:"object",shape:t,catchall:$i(),...y.normalizeParams(r)})}function Mp(t,r){return new br({type:"object",shape:t,catchall:Ye(),...y.normalizeParams(r)})}var $r=p("ZodUnion",(t,r)=>{or.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Wn(t,n,o,e),t.options=r.options});function xi(t,r){return new $r({type:"union",options:t,...y.normalizeParams(r)})}var Eu=p("ZodXor",(t,r)=>{$r.init(t,r),as.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Wn(t,n,o,e),t.options=r.options});function Vp(t,r){return new Eu({type:"union",options:t,inclusive:!1,...y.normalizeParams(r)})}var Tu=p("ZodDiscriminatedUnion",(t,r)=>{$r.init(t,r),ss.init(t,r)});function Bp(t,r,n){return new Tu({type:"union",options:r,discriminator:t,...y.normalizeParams(n)})}var ju=p("ZodIntersection",(t,r)=>{cs.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Bc(t,n,o,e)});function Au(t,r){return new ju({type:"intersection",left:t,right:r})}var Cu=p("ZodTuple",(t,r)=>{mn.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Hc(t,n,o,e),t.rest=n=>t.clone({...t._zod.def,rest:n})});function Nu(t,r,n){let o=r instanceof k,e=o?n:r,i=o?r:null;return new Cu({type:"tuple",items:t,rest:i,...y.normalizeParams(e)})}var zt=p("ZodRecord",(t,r)=>{us.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Wc(t,n,o,e),t.keyType=r.keyType,t.valueType=r.valueType});function Du(t,r,n){return!r||!r._zod?new zt({type:"record",keyType:mr(),valueType:t,...y.normalizeParams(r)}):new zt({type:"record",keyType:t,valueType:r,...y.normalizeParams(n)})}function Hp(t,r,n){let o=H(t);return o._zod.values=void 0,new zt({type:"record",keyType:o,valueType:r,...y.normalizeParams(n)})}function Wp(t,r,n){return new zt({type:"record",keyType:t,valueType:r,mode:"loose",...y.normalizeParams(n)})}var Uu=p("ZodMap",(t,r)=>{ls.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Lc(t,n,o,e),t.keyType=r.keyType,t.valueType=r.valueType,t.min=(...n)=>t.check(_e(...n)),t.nonempty=n=>t.check(_e(1,n)),t.max=(...n)=>t.check(Ue(...n)),t.size=(...n)=>t.check(Je(...n))});function Gp(t,r,n){return new Uu({type:"map",keyType:t,valueType:r,...y.normalizeParams(n)})}var Ru=p("ZodSet",(t,r)=>{ds.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Fc(t,n,o,e),t.min=(...n)=>t.check(_e(...n)),t.nonempty=n=>t.check(_e(1,n)),t.max=(...n)=>t.check(Ue(...n)),t.size=(...n)=>t.check(Je(...n))});function Jp(t,r){return new Ru({type:"set",valueType:t,...y.normalizeParams(r)})}var Ot=p("ZodEnum",(t,r)=>{ms.init(t,r),w.init(t,r),t._zod.processJSONSchema=(o,e,i)=>Tc(t,o,e,i),t.enum=r.entries,t.options=Object.values(r.entries);let n=new Set(Object.keys(r.entries));t.extract=(o,e)=>{let i={};for(let a of o)if(n.has(a))i[a]=r.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Ot({...r,checks:[],...y.normalizeParams(e),entries:i})},t.exclude=(o,e)=>{let i={...r.entries};for(let a of o)if(n.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new Ot({...r,checks:[],...y.normalizeParams(e),entries:i})}});function ki(t,r){let n=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new Ot({type:"enum",entries:n,...y.normalizeParams(r)})}function qp(t,r){return new Ot({type:"enum",entries:t,...y.normalizeParams(r)})}var Zu=p("ZodLiteral",(t,r)=>{ps.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>jc(t,n,o,e),t.values=new Set(r.values),Object.defineProperty(t,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function Kp(t,r){return new Zu({type:"literal",values:Array.isArray(t)?t:[t],...y.normalizeParams(r)})}var Lu=p("ZodFile",(t,r)=>{fs.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Nc(t,n,o,e),t.min=(n,o)=>t.check(_e(n,o)),t.max=(n,o)=>t.check(Ue(n,o)),t.mime=(n,o)=>t.check(_t(Array.isArray(n)?n:[n],o))});function Yp(t){return dc(Lu,t)}var Fu=p("ZodTransform",(t,r)=>{gs.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Zc(t,n,o,e),t._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Te(t.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(y.issue(i,n.value,r));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=t),n.issues.push(y.issue(a))}};let e=r.transform(n.value,n);return e instanceof Promise?e.then(i=>(n.value=i,n.fallback=!0,n)):(n.value=e,n.fallback=!0,n)}});function Si(t){return new Fu({type:"transform",transform:t})}var wi=p("ZodOptional",(t,r)=>{pn.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Gn(t,n,o,e),t.unwrap=()=>t._zod.def.innerType});function fr(t){return new wi({type:"optional",innerType:t})}var Mu=p("ZodExactOptional",(t,r)=>{hs.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Gn(t,n,o,e),t.unwrap=()=>t._zod.def.innerType});function Vu(t){return new Mu({type:"optional",innerType:t})}var Bu=p("ZodNullable",(t,r)=>{vs.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Gc(t,n,o,e),t.unwrap=()=>t._zod.def.innerType});function gr(t){return new Bu({type:"nullable",innerType:t})}function Xp(t){return fr(gr(t))}var Hu=p("ZodDefault",(t,r)=>{_s.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>qc(t,n,o,e),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function Wu(t,r){return new Hu({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():y.shallowClone(r)}})}var Gu=p("ZodPrefault",(t,r)=>{ys.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Kc(t,n,o,e),t.unwrap=()=>t._zod.def.innerType});function Ju(t,r){return new Gu({type:"prefault",innerType:t,get defaultValue(){return typeof r=="function"?r():y.shallowClone(r)}})}var Ii=p("ZodNonOptional",(t,r)=>{bs.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Jc(t,n,o,e),t.unwrap=()=>t._zod.def.innerType});function qu(t,r){return new Ii({type:"nonoptional",innerType:t,...y.normalizeParams(r)})}var Ku=p("ZodSuccess",(t,r)=>{$s.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Dc(t,n,o,e),t.unwrap=()=>t._zod.def.innerType});function Qp(t){return new Ku({type:"success",innerType:t})}var Yu=p("ZodCatch",(t,r)=>{xs.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Yc(t,n,o,e),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function Xu(t,r){return new Yu({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}var Qu=p("ZodNaN",(t,r)=>{ks.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Ac(t,n,o,e)});function ef(t){return uc(Qu,t)}var xr=p("ZodPipe",(t,r)=>{fn.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Xc(t,n,o,e),t.in=r.in,t.out=r.out});function ri(t,r){return new xr({type:"pipe",in:t,out:r})}var kr=p("ZodCodec",(t,r)=>{xr.init(t,r),ar.init(t,r)});function tf(t,r,n){return new kr({type:"pipe",in:t,out:r,transform:n.decode,reverseTransform:n.encode})}function rf(t){let r=t._zod.def;return new kr({type:"pipe",in:r.out,out:r.in,transform:r.reverseTransform,reverseTransform:r.transform})}var el=p("ZodPreprocess",(t,r)=>{xr.init(t,r),Ss.init(t,r)}),tl=p("ZodReadonly",(t,r)=>{ws.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Qc(t,n,o,e),t.unwrap=()=>t._zod.def.innerType});function rl(t){return new tl({type:"readonly",innerType:t})}var nl=p("ZodTemplateLiteral",(t,r)=>{Is.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Cc(t,n,o,e)});function nf(t,r){return new nl({type:"template_literal",parts:t,...y.normalizeParams(r)})}var il=p("ZodLazy",(t,r)=>{Ps.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>tu(t,n,o,e),t.unwrap=()=>t._zod.def.getter()});function ol(t){return new il({type:"lazy",getter:t})}var al=p("ZodPromise",(t,r)=>{Os.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>eu(t,n,o,e),t.unwrap=()=>t._zod.def.innerType});function of(t){return new al({type:"promise",innerType:t})}var sl=p("ZodFunction",(t,r)=>{zs.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Rc(t,n,o,e)});function af(t){return new sl({type:"function",input:Array.isArray(t?.input)?Nu(t?.input):t?.input??yr(Ye()),output:t?.output??Ye()})}var Sr=p("ZodCustom",(t,r)=>{Es.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Uc(t,n,o,e)});function sf(t){let r=new C({check:"custom"});return r._zod.check=t,r}function cf(t,r){return mc(Sr,t??(()=>!0),r)}function cl(t,r={}){return pc(Sr,t,r)}function ul(t,r){return fc(t,r)}var uf=gc,lf=hc;function df(t,r={}){let n=new Sr({type:"custom",check:"custom",fn:o=>o instanceof t,abort:!0,...y.normalizeParams(r)});return n._zod.bag.Class=t,n._zod.check=o=>{o.value instanceof t||o.issues.push({code:"invalid_type",expected:t.name,input:o.value,inst:n,path:[...n._zod.def.path??[]]})},n}var mf=(...t)=>vc({Codec:kr,Boolean:jt,String:Pt},...t);function pf(t){let r=ol(()=>xi([mr(t),yu(),bu(),Su(),yr(r),Du(mr(),r)]));return r}function ff(t,r){return new el({type:"pipe",in:Si(t),out:r})}var _y={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function yy(t){Z({customError:t})}function by(){return Z().customError}var ll;ll||(ll={});var $={...dr,...Kn,iso:It},$y=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function xy(t,r){let n=t.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":r??"draft-2020-12"}function ky(t,r){if(!t.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=t.slice(1).split("/").filter(Boolean);if(n.length===0)return r.rootSchema;let o=r.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===o){let e=n[1];if(!e||!r.defs[e])throw new Error(`Reference not found: ${t}`);return r.defs[e]}throw new Error(`Reference not found: ${t}`)}function gf(t,r){if(t.not!==void 0){if(typeof t.not=="object"&&Object.keys(t.not).length===0)return $.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(t.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(t.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(t.if!==void 0||t.then!==void 0||t.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(t.dependentSchemas!==void 0||t.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(t.$ref){let e=t.$ref;if(r.refs.has(e))return r.refs.get(e);if(r.processing.has(e))return $.lazy(()=>{if(!r.refs.has(e))throw new Error(`Circular reference not resolved: ${e}`);return r.refs.get(e)});r.processing.add(e);let i=ky(e,r),a=B(i,r);return r.refs.set(e,a),r.processing.delete(e),a}if(t.enum!==void 0){let e=t.enum;if(r.version==="openapi-3.0"&&t.nullable===!0&&e.length===1&&e[0]===null)return $.null();if(e.length===0)return $.never();if(e.length===1)return $.literal(e[0]);if(e.every(a=>typeof a=="string"))return $.enum(e);let i=e.map(a=>$.literal(a));return i.length<2?i[0]:$.union([i[0],i[1],...i.slice(2)])}if(t.const!==void 0)return $.literal(t.const);let n=t.type;if(Array.isArray(n)){let e=n.map(i=>{let a={...t,type:i};return gf(a,r)});return e.length===0?$.never():e.length===1?e[0]:$.union(e)}if(!n)return $.any();let o;switch(n){case"string":{let e=$.string();if(t.format){let i=t.format;i==="email"?e=e.check($.email()):i==="uri"||i==="uri-reference"?e=e.check($.url()):i==="uuid"||i==="guid"?e=e.check($.uuid()):i==="date-time"?e=e.check($.iso.datetime()):i==="date"?e=e.check($.iso.date()):i==="time"?e=e.check($.iso.time()):i==="duration"?e=e.check($.iso.duration()):i==="ipv4"?e=e.check($.ipv4()):i==="ipv6"?e=e.check($.ipv6()):i==="mac"?e=e.check($.mac()):i==="cidr"?e=e.check($.cidrv4()):i==="cidr-v6"?e=e.check($.cidrv6()):i==="base64"?e=e.check($.base64()):i==="base64url"?e=e.check($.base64url()):i==="e164"?e=e.check($.e164()):i==="jwt"?e=e.check($.jwt()):i==="emoji"?e=e.check($.emoji()):i==="nanoid"?e=e.check($.nanoid()):i==="cuid"?e=e.check($.cuid()):i==="cuid2"?e=e.check($.cuid2()):i==="ulid"?e=e.check($.ulid()):i==="xid"?e=e.check($.xid()):i==="ksuid"&&(e=e.check($.ksuid()))}typeof t.minLength=="number"&&(e=e.min(t.minLength)),typeof t.maxLength=="number"&&(e=e.max(t.maxLength)),t.pattern&&(e=e.regex(new RegExp(t.pattern))),o=e;break}case"number":case"integer":{let e=n==="integer"?$.number().int():$.number();typeof t.minimum=="number"&&(e=e.min(t.minimum)),typeof t.maximum=="number"&&(e=e.max(t.maximum)),typeof t.exclusiveMinimum=="number"?e=e.gt(t.exclusiveMinimum):t.exclusiveMinimum===!0&&typeof t.minimum=="number"&&(e=e.gt(t.minimum)),typeof t.exclusiveMaximum=="number"?e=e.lt(t.exclusiveMaximum):t.exclusiveMaximum===!0&&typeof t.maximum=="number"&&(e=e.lt(t.maximum)),typeof t.multipleOf=="number"&&(e=e.multipleOf(t.multipleOf)),o=e;break}case"boolean":{o=$.boolean();break}case"null":{o=$.null();break}case"object":{let e={},i=t.properties||{},a=new Set(t.required||[]);for(let[u,l]of Object.entries(i)){let d=B(l,r);e[u]=a.has(u)?d:d.optional()}if(t.propertyNames){let u=B(t.propertyNames,r),l=t.additionalProperties&&typeof t.additionalProperties=="object"?B(t.additionalProperties,r):$.any();if(Object.keys(e).length===0){o=$.record(u,l);break}let d=$.object(e).passthrough(),m=$.looseRecord(u,l);o=$.intersection(d,m);break}if(t.patternProperties){let u=t.patternProperties,l=Object.keys(u),d=[];for(let g of l){let _=B(u[g],r),x=$.string().regex(new RegExp(g));d.push($.looseRecord(x,_))}let m=[];if(Object.keys(e).length>0&&m.push($.object(e).passthrough()),m.push(...d),m.length===0)o=$.object({}).passthrough();else if(m.length===1)o=m[0];else{let g=$.intersection(m[0],m[1]);for(let _=2;_<m.length;_++)g=$.intersection(g,m[_]);o=g}break}let s=$.object(e);t.additionalProperties===!1?o=s.strict():typeof t.additionalProperties=="object"?o=s.catchall(B(t.additionalProperties,r)):o=s.passthrough();break}case"array":{let e=t.prefixItems,i=t.items;if(e&&Array.isArray(e)){let a=e.map(u=>B(u,r)),s=i&&typeof i=="object"&&!Array.isArray(i)?B(i,r):void 0;s?o=$.tuple(a).rest(s):o=$.tuple(a),typeof t.minItems=="number"&&(o=o.check($.minLength(t.minItems))),typeof t.maxItems=="number"&&(o=o.check($.maxLength(t.maxItems)))}else if(Array.isArray(i)){let a=i.map(u=>B(u,r)),s=t.additionalItems&&typeof t.additionalItems=="object"?B(t.additionalItems,r):void 0;s?o=$.tuple(a).rest(s):o=$.tuple(a),typeof t.minItems=="number"&&(o=o.check($.minLength(t.minItems))),typeof t.maxItems=="number"&&(o=o.check($.maxLength(t.maxItems)))}else if(i!==void 0){let a=B(i,r),s=$.array(a);typeof t.minItems=="number"&&(s=s.min(t.minItems)),typeof t.maxItems=="number"&&(s=s.max(t.maxItems)),o=s}else o=$.array($.any());break}default:throw new Error(`Unsupported type: ${n}`)}return o}function B(t,r){if(typeof t=="boolean")return t?$.any():$.never();let n=gf(t,r),o=t.type||t.enum!==void 0||t.const!==void 0;if(t.anyOf&&Array.isArray(t.anyOf)){let s=t.anyOf.map(l=>B(l,r)),u=$.union(s);n=o?$.intersection(n,u):u}if(t.oneOf&&Array.isArray(t.oneOf)){let s=t.oneOf.map(l=>B(l,r)),u=$.xor(s);n=o?$.intersection(n,u):u}if(t.allOf&&Array.isArray(t.allOf))if(t.allOf.length===0)n=o?n:$.any();else{let s=o?n:B(t.allOf[0],r),u=o?0:1;for(let l=u;l<t.allOf.length;l++)s=$.intersection(s,B(t.allOf[l],r));n=s}t.nullable===!0&&r.version==="openapi-3.0"&&(n=$.nullable(n)),t.readOnly===!0&&(n=$.readonly(n)),t.default!==void 0&&(n=n.default(t.default));let e={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of i)s in t&&(e[s]=t[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in t&&(e[s]=t[s]);for(let s of Object.keys(t))$y.has(s)||(e[s]=t[s]);return Object.keys(e).length>0&&r.registry.add(n,e),t.description&&(n=n.describe(t.description)),n}function hf(t,r){if(typeof t=="boolean")return t?$.any():$.never();let n;try{n=JSON.parse(JSON.stringify(t))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=xy(n,r?.defaultTarget),e=n.$defs||n.definitions||{},i={version:o,defs:e,refs:new Map,processing:new Set,rootSchema:n,registry:r?.registry??V};return B(n,i)}var dl={};$e(dl,{bigint:()=>zy,boolean:()=>Iy,date:()=>Oy,number:()=>wy,string:()=>Sy});function Sy(t){return Cs(Pt,t)}function wy(t){return Ms(Tt,t)}function Iy(t){return qs(jt,t)}function zy(t){return Ys(At,t)}function Oy(t){return cc(_r,t)}Z(gn());var Py=c.string().min(1),Ey=c.object({type:c.literal("named"),name:c.enum(["second","minute","hour","day","week","month"])}),Ty=c.object({type:c.literal("custom"),seconds:c.number().int().positive(),label:c.string().optional()}),jy=c.discriminatedUnion("type",[Ey,Ty]),Fe=c.object({dimension:Py,window:jy,capacity:c.number().nonnegative(),enforcement:c.enum(["enforce","track"]).optional(),acknowledgeUnreachable:c.boolean().optional()}),Bw=c.array(Fe).max(20);var de=c.enum(["preserve_current_period","switch_immediately","switch_immediately_prorate","new_subscribers_only"]),wr=c.object({default:de.default("preserve_current_period"),proration:c.enum(["none","prorate","credit"]).default("none"),when:c.object({price_increase:de.optional(),price_decrease:de.optional(),feature_added:de.optional(),feature_removed:de.optional(),limit_increased:de.optional(),limit_reduced:de.optional(),credit_increased:de.optional(),credit_reduced:de.optional(),rating_changed:de.optional()}).strict().default({price_increase:"preserve_current_period",price_decrease:"switch_immediately",feature_added:"switch_immediately",feature_removed:"preserve_current_period",limit_increased:"switch_immediately",limit_reduced:"preserve_current_period",credit_increased:"switch_immediately",credit_reduced:"preserve_current_period",rating_changed:"preserve_current_period"}),allowImmediatePriceIncrease:c.boolean().default(!1),allowImmediateEntitlementReduction:c.boolean().default(!1)}).strict().superRefine((t,r)=>{let n=new Set(["switch_immediately","switch_immediately_prorate"]);n.has(t.when.price_increase??t.default)&&!t.allowImmediatePriceIncrease&&r.addIssue({code:"custom",path:["when","price_increase"],message:"price_increase cannot switch immediately without allowImmediatePriceIncrease: true"});for(let o of["feature_removed","limit_reduced","credit_reduced"])n.has(t.when[o]??t.default)&&!t.allowImmediateEntitlementReduction&&r.addIssue({code:"custom",path:["when",o],message:`${o} cannot switch immediately without allowImmediateEntitlementReduction: true`})});var Ay=c.object({kind:c.literal("recurring"),amount_cents:c.number().int().nonnegative()}),Cy=c.object({kind:c.literal("one_time"),amount_cents:c.number().int().nonnegative()}),Ny=c.object({kind:c.literal("promotional"),amount_cents:c.number().int().nonnegative(),label:c.string().min(1).max(120),expires_after_days:c.number().int().positive().optional()}),Dy=c.object({kind:c.literal("trial")}),Uy=c.object({kind:c.literal("rollover"),percent:c.number().int().min(0).max(100)}),Ry=c.object({kind:c.literal("top_up"),sku:c.string().min(1).max(120),label:c.string().min(1).max(200),price_cents:c.number().int().positive(),credit_cents:c.number().int().positive()}),Zy=c.object({kind:c.literal("auto_recharge"),threshold_cents:c.number().int().nonnegative(),refill_cents:c.number().int().positive()}),ne=c.discriminatedUnion("kind",[Ay,Cy,Ny,Dy,Uy,Ry,Zy]);function Ir(t,r,n=["grants"]){if(!t)return;let o=0,e=0;for(let i of t)i.kind==="recurring"?o+=1:i.kind==="one_time"&&(e+=1);o>1&&r.addIssue({code:"custom",message:"At most one `recurring` grant is allowed \u2014 recurring credit is a single canonical entry.",path:n}),e>1&&r.addIssue({code:"custom",message:"At most one `one_time` grant is allowed \u2014 one-time credit is a single canonical entry.",path:n})}function Ly(t){let r=[];return t.grants&&t.grants.length>0&&r.push(...t.grants),(t.trial_days??0)>0&&!r.some(n=>n.kind==="trial")&&r.push({kind:"trial"}),r}function vf(t,r){return Ly(t).find(n=>n.kind===r)}function zr(t){return vf(t,"recurring")?.amount_cents??0}function Ct(t){return vf(t,"one_time")?.amount_cents??0}var _f=c.enum(["linear","active_count"]);var Fy=c.object({up_to:c.number().int().positive().nullable(),price_per_unit_micros:c.number().int().nonnegative()}),My=c.object({strategy:c.enum(["graduated","volume"]),tiers:c.array(Fy).min(1).max(20)}),ie=c.object({dimension:c.string().min(1).max(64).regex(/^[a-z0-9_]+$/,"Meter dimension must be lowercase alphanumeric with underscores"),kind:_f.default("linear"),price_per_unit_micros:c.number().int().nonnegative().default(0),tiered:My.optional(),included_units:c.number().int().positive().optional()}).superRefine((t,r)=>{if(t.tiered&&t.price_per_unit_micros>0&&r.addIssue({code:"custom",message:"`tiered` is mutually exclusive with a non-zero `price_per_unit_micros` \u2014 drop one",path:["tiered"]}),t.included_units!==void 0&&t.tiered&&r.addIssue({code:"custom",message:"`included_units` is mutually exclusive with `tiered` \u2014 a tiered schedule already expresses the included allotment as a zero-priced first tier",path:["included_units"]}),t.tiered){let n=0,o=!1;for(let e=0;e<t.tiered.tiers.length;e++){let i=t.tiered.tiers[e];if(o){r.addIssue({code:"custom",message:"Open-ended tier (`up_to: null`) must be the final tier",path:["tiered","tiers",e,"up_to"]});break}if(i.up_to===null){o=!0;continue}i.up_to<=n&&r.addIssue({code:"custom",message:`Tier upper bounds must be strictly ascending (tier ${e} = ${i.up_to} <= previous ${n})`,path:["tiered","tiers",e,"up_to"]}),n=i.up_to}o||r.addIssue({code:"custom",message:"The final tier of a `tiered` schedule must be open-ended (`up_to: null`)",path:["tiered","tiers",t.tiered.tiers.length-1,"up_to"]})}}),me=c.enum(["month","year"]),Vy=c.object({meters:c.array(ie).default([]),recurring_fee_cents:c.number().int().nonnegative().default(0),billing_interval:me.default("month"),grants:c.array(ne).max(40).default([]),trial_days:c.number().int().nonnegative().default(0),max_monthly_spend_cents:c.number().int().nonnegative().optional()});var By=c.enum(["NONE","PRORATE","CREDIT"]).default("NONE"),Hy={meters:c.array(ie).default([]),recurring_fee_cents:c.number().int().nonnegative().default(0),billing_interval:me.default("month"),trial_days:c.number().int().nonnegative().default(0),max_monthly_spend_cents:c.number().int().nonnegative().optional(),min_monthly_spend_cents:c.number().int().nonnegative().optional(),grants:c.array(ne).max(40).default([])},Wy={meters:c.array(ie).optional(),recurring_fee_cents:c.number().int().nonnegative().optional(),billing_interval:me.optional(),trial_days:c.number().int().nonnegative().optional(),max_monthly_spend_cents:c.number().int().nonnegative().optional(),min_monthly_spend_cents:c.number().int().nonnegative().optional(),grants:c.array(ne).max(40).optional()},Gy=c.object({id:c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Variant id must be lowercase alphanumeric with hyphens/underscores"),label:c.string().max(200).optional(),rolloutPercent:c.number().int().min(0).max(100),assignmentSeed:c.string().min(1).max(100).default("default"),prorationOnRollback:By,...Wy,limits:c.array(Fe).max(20).optional(),featureGates:c.record(c.string(),c.boolean()).optional(),capability_limits:c.record(c.string().min(1).max(120),c.union([c.number().int().nonnegative(),c.boolean()])).optional(),overageBehavior:c.enum(["block","allow_and_bill"]).optional()}),yf=Gy.superRefine((t,r)=>{Ir(t.grants,r)}),bf=c.object({key:c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Plan key must be lowercase alphanumeric with hyphens/underscores"),name:c.string().min(1).max(100),description:c.string().max(500).optional(),details:c.array(c.string().max(200)).max(10).optional(),...Hy,free:c.boolean().default(!1),limits:c.array(Fe).max(20).default([]),featureGates:c.record(c.string(),c.boolean()).optional(),capability_limits:c.record(c.string().min(1).max(120),c.union([c.number().int().nonnegative(),c.boolean()])).default({}),overageBehavior:c.enum(["block","allow_and_bill"]).default("block"),selfServeEnabled:c.boolean().default(!0),legacy:c.boolean().optional().default(!1),variants:c.array(yf).max(4).optional(),archive:c.object({at:c.string().datetime().optional(),transitionTo:c.string().optional(),strategy:c.enum(["auto","explicit","block"]).default("auto")}).optional()}),ml=bf.superRefine((t,r)=>{Ir(t.grants,r)});var pl=["subscription.created","subscription.updated","subscription.canceled","payment.succeeded","payment.failed","rate_limit.exceeded","entitlement.changed","usage.threshold_reached"],Nt=c.enum(pl);var Jy=/^\$\{[A-Z][A-Z0-9_]{0,127}\}$/,fl=c.string().min(3).max(200).refine(t=>Jy.test(t),{message:"secret must use ${VAR} interpolation syntax (e.g. ${WEBHOOK_SECRET}); raw secrets in YAML are rejected. Define the env var in the per-product secret store and reference it here."}),gl=c.object({maxAttempts:c.number().int().min(1).max(20).default(5),backoff:c.enum(["exponential","fixed"]).default("exponential")}),$f=c.object({id:c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Webhook endpoint id must be lowercase alphanumeric with hyphens/underscores"),url:c.string().url("webhooks.endpoints[].url must be a valid URL"),secret:fl,events:c.array(Nt).min(1,"webhooks.endpoints[].events must subscribe to \u2265 1 event"),enabled:c.boolean().default(!0),retryPolicy:gl.default({maxAttempts:5,backoff:"exponential"})}),Or=c.object({endpoints:c.array($f).max(50).default([])});var qy=c.object({meters:c.array(ie).optional(),recurring_fee_cents:c.number().int().nonnegative().optional(),billing_interval:me.optional(),grants:c.array(ne).max(40).optional(),trial_days:c.number().int().nonnegative().optional(),max_monthly_spend_cents:c.number().int().nonnegative().optional(),limits:c.array(Fe).max(20).optional(),featureGates:c.record(c.string(),c.boolean()).optional(),overageBehavior:c.enum(["block","allow_and_bill"]).optional(),selfServeEnabled:c.boolean().optional(),legacy:c.boolean().optional()}).strict(),Ky=c.object({url:c.string().url().optional(),secret:fl.optional(),events:c.array(Nt).optional(),enabled:c.boolean().optional(),retryPolicy:gl.partial().optional()}).strict(),Yy=c.object({plans:c.record(c.string(),qy).optional(),webhooks:c.object({endpoints:c.record(c.string(),Ky).optional()}).strict().optional()}).strict(),Pr=c.record(c.string().min(1).max(64),Yy);var xf=1,kf=["plans_table","usage_card","api_keys_panel","billing_summary","credit_balance","feature_panel","product_docs","audit_log","team_panel","markdown"],Sf=["/","/pricing","/dashboard","/dashboard/*","/settings","/settings/*","/team","/audit-log","/docs","/docs/*","/terms","/privacy","/persona","/persona-sign-in"],wf=c.string().min(1).max(200).regex(/^\/[a-zA-Z0-9_./-]*$/,"path must start with / and contain only [a-zA-Z0-9_./-]"),hl=c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/),If=c.object({label:c.string().min(1).max(80),path:wf,capability:hl.optional()}),zf=c.enum(kf),Of=c.object({component:zf,props:c.record(c.string().min(1).max(80),c.unknown()).optional(),capability:hl.optional(),gateMode:c.enum(["hide","disable","upsell"]).default("hide")}),Pf=c.object({path:wf,title:c.string().min(1).max(120),requiresAuth:c.boolean(),capability:hl.optional(),components:c.array(Of).max(12).default([])}),Er=c.object({version:c.literal(xf),nav:c.array(If).max(12).default([]),pages:c.array(Pf).max(24).default([])}).superRefine((t,r)=>{let n=new Set;t.pages.forEach((o,e)=>{n.has(o.path)&&r.addIssue({code:"custom",message:`duplicate frontend page path "${o.path}"`,path:["pages",e,"path"]}),n.add(o.path),Ef(o.path)&&r.addIssue({code:"custom",message:`frontend page path "${o.path}" is reserved by the template`,path:["pages",e,"path"]})})});function Ef(t){return Sf.some(r=>{if(r.endsWith("/*")){let n=r.slice(0,-2);return t===n||t.startsWith(`${n}/`)}return t===r})}var vl=c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Plan key must be lowercase alphanumeric with hyphens/underscores"),Tf=c.string().min(1).max(100),Xy=c.object({plan:vl,version:Tf.optional()}),Qy=c.object({plan:vl,version:c.literal("head").default("head")}),eb=c.object({plan:vl,version:Tf}),jf=c.enum(["grandfather","next_renewal","by_date","immediate","opt_in"]),Af=c.enum(["none","prorate","credit"]),Cf=c.object({effective:jf,date:c.string().datetime().optional(),proration:Af.optional()}).superRefine((t,r)=>{t.effective==="by_date"&&t.date===void 0&&r.addIssue({code:"custom",path:["date"],message:"existingCustomers.date is required when effective is by_date"})}),Nf=c.object({subscriber:c.string().min(1).max(200),pinTo:eb,until:c.string().datetime().optional(),notes:c.string().max(1e3).optional()}),Df=c.object({id:c.string().min(1).max(120).regex(/^[a-z0-9][a-z0-9_.-]*$/,"Migration id must be lowercase alphanumeric with dots, hyphens, or underscores"),from:Xy,to:Qy,newCustomers:c.literal("immediate").default("immediate"),existingCustomers:Cf,pins:c.array(Nf).max(50).default([])}),Tr=c.array(Df).superRefine((t,r)=>{let n=new Set;t.forEach((o,e)=>{n.has(o.id)&&r.addIssue({code:"custom",path:[e,"id"],message:`duplicate migration id "${o.id}"`}),n.add(o.id)})});var Uf=c.enum(["subscription","subject"]),Rf=c.enum(["reported","action_inferred"]),Zf=c.string().min(1).max(100).regex(/^[a-z0-9_.:-]+$/),Lf=c.object({name:Zf,display:c.string().min(1).max(120).optional(),scope:Uf.default("subscription"),subjectType:c.string().min(1).max(64).regex(/^[a-zA-Z0-9_.:-]+$/).optional(),countSource:Rf.default("reported")}).superRefine((t,r)=>{t.scope==="subject"&&!t.subjectType&&r.addIssue({code:"custom",path:["subjectType"],message:"subjectType is required when resource scope is subject"}),t.scope==="subscription"&&t.subjectType&&r.addIssue({code:"custom",path:["subjectType"],message:"subjectType is only valid for subject-scoped counted resources"})}),jr=c.array(Lf).max(100).default([]);var tb=c.object({key:c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"AddOn key must be lowercase alphanumeric with hyphens/underscores"),name:c.string().min(1).max(100),description:c.string().max(500).optional(),recurring_fee_cents:c.number().int().nonnegative().default(0),billing_interval:me.default("month"),meters:c.array(ie).default([]),grants:c.array(ne).max(40).default([]),capability_limits:c.record(c.string().min(1).max(120),c.union([c.number().int().nonnegative(),c.boolean()])).default({}),featureGates:c.record(c.string(),c.boolean()).optional(),selfServeEnabled:c.boolean().default(!0)}),zi=c.record(c.string().min(1).max(64),tb).default({}),rb=c.enum(["active","canceled","paused","pending_activation"]),wI=c.object({addOnKey:c.string().min(1).max(64),status:rb.default("active"),activatedAt:c.string().datetime().optional(),canceledAt:c.string().datetime().nullable().optional(),stripeSubscriptionItemId:c.string().optional()});function Ff(t,r){t.usagePricing!==void 0&&r.addIssue({code:"custom",path:["usagePricing"],message:"usagePricing is not supported. Define usage.meters.<key>.rating instead."})}function Mf(t,r){t.filter(o=>o.free).length>1&&r.addIssue({code:"custom",path:["plans"],message:"Only one free plan is allowed per product"}),t.forEach((o,e)=>{o.free&&(nb(o,e,r),ib(o,e,r))})}function nb(t,r,n){(Jf(t)??0)!==0&&n.addIssue({code:"custom",path:["plans",r,"recurring_fee_cents"],message:"Free plans must have zero price"})}function ib(t,r,n){t.limits.some(e=>!e.enforcement||e.enforcement==="enforce")||n.addIssue({code:"custom",path:["plans",r,"limits"],message:"Free plans must include at least one hard enforced limit"})}function Vf(t,r){let n=new Map;t.forEach((o,e)=>{if(o.free)return;let i=Jf(o);if(i===void 0||i<=0)return;let a=ub(o,i),s=n.get(a);if(s){r.addIssue({code:"custom",path:["plans",e,"recurring_fee_cents"],message:`Paid plan price duplicates plan "${s}" (${a})`});return}n.set(a,o.key)})}function Bf(t,r){let n=new Set((t.metering?.meters??[]).map(e=>e.key).filter(e=>typeof e=="string"&&e.length>0)),o=new Set(Object.keys(t.usage?.meters??{}));t.plans.forEach((e,i)=>{let a=e.meters;a&&a.forEach((s,u)=>{let l=s.dimension;typeof l!="string"||l.length===0||n.has(l)||o.has(l)||r.addIssue({code:"custom",path:["plans",i,"meters",u,"dimension"],message:`Plan "${e.key}" prices meter "${l}" but no metering.meters[] entry and no usage.meters[] entry declares it.`})})})}function Hf(t,r){if(!t.features)return;let n=new Set(t.plans.map(o=>o.key));for(let[o,e]of Object.entries(t.features)){if(!e.plans)continue;e.plans.forEach((a,s)=>{n.has(a)||r.addIssue({code:"custom",path:["features",o,"plans",s],message:`Feature "${o}" references unknown plan "${a}"`})});let i=new Set;e.plans.forEach((a,s)=>{i.has(a)&&r.addIssue({code:"custom",path:["features",o,"plans",s],message:`Feature "${o}" lists plan "${a}" more than once`}),i.add(a)})}}function Wf(t,r){if(!t.features)return;let n=new Set((t.metering?.meters??[]).map(e=>e.key).filter(e=>typeof e=="string"&&e.length>0)),o=!1;for(let[e,i]of Object.entries(t.features))(i.routes??[]).forEach((s,u)=>{!s.meters||s.meters.length===0||(o=!0,s.meters.forEach((l,d)=>{n.has(l)||r.addIssue({code:"custom",path:["features",e,"routes",u,"meters",d],message:`Route references unknown meter "${l}". Declare it in metering.meters[].`})}))});o&&n.size===0&&r.addIssue({code:"custom",path:["metering","meters"],message:"One or more routes declare `meters` but `metering.meters[]` is empty. Declare meters at the product level first."})}function ob(t,r){let n=new Map;for(let o of t.plans)n.set(o.key,new Set);if(!t.features){for(let o of n.values())for(let e of r)o.add(e);return n}for(let o of Object.values(t.features))ab(o,r,n);return n}function ab(t,r,n){let o=t.plans??[],e=t.routes??[];for(let i of o){let a=n.get(i);if(a){for(let s of e)if(s.unmetered!==!0){if(s.meters&&s.meters.length>0){for(let u of s.meters)a.add(u);continue}for(let u of r)a.add(u)}}}}function sb(t){if(!t||typeof t!="object")return null;let r=t;return typeof r.dimension=="string"?r.dimension:null}var cb=new Set(["credits"]);function Gf(t,r){if(!t.plans||t.plans.length===0)return;let n=new Set((t.metering?.meters??[]).map(i=>i.key).filter(i=>typeof i=="string"&&i.length>0)),o=new Set(Object.keys(t.usage?.meters??{})),e=ob(t,n);t.plans.forEach((i,a)=>{let s=i.limits??[],u=e.get(i.key)??new Set;s.forEach((l,d)=>{if(l&&typeof l=="object"?l.acknowledgeUnreachable===!0:!1)return;let g=sb(l);g&&(u.has(g)||o.has(g)||cb.has(g)||r.addIssue({code:"custom",path:["plans",a,"limits",d,"meter"],message:`Plan "${i.key}" limits meter "${g}" but no route in any granted feature emits this meter, and the meter is not declared under usage.meters either. Either grant a feature whose routes meter "${g}" to this plan, declare the meter under metering.meters[] or usage.meters, or set acknowledgeUnreachable: true if the limit is intentional (e.g. soft budget).`}))})})}function Jf(t){return t.recurring_fee_cents}function ub(t,r){return`USD:month:${r}`}var qf=c.object({subdomain:c.string().min(1).max(63).regex(/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/,"Subdomain must be lowercase alphanumeric with optional hyphens")}),lb=c.enum(["exact_pre_request","estimated_then_settled","postpaid","strict_concurrency"]),Oi=c.object({key:c.string().min(1).max(64).regex(/^[a-z0-9_]+$/,"Meter key must be lowercase alphanumeric with underscores"),display:c.string().min(1).max(100),unit:c.string().max(20).optional(),enforcementType:lb.default("estimated_then_settled"),aggregation:c.enum(["SUM","COUNT","MAX","UNIQUE_COUNT","LATEST"]).default("COUNT"),window:c.enum(["minute","hour","day","month","billing_period"]).default("billing_period"),valueProperty:c.string().optional(),uniqueProperty:c.string().optional(),groupBy:c.array(c.string()).optional(),eventCode:c.string().optional()}),Kf=c.string().min(1).max(64).regex(/^[a-z0-9_]+$/,"Usage measure must be lowercase alphanumeric with underscores"),db=c.enum(["pass_through","markup","fixed_margin","customer_rate"]),mb=c.object({source:c.literal("fixed"),rates:c.record(c.string().min(1),c.record(Kf,c.number().int().nonnegative()))}),pb=c.object({source:c.literal("provider_catalog"),catalog:c.string().min(1).max(100),pricePolicy:db.default("pass_through"),markupPercent:c.number().nonnegative().max(1e4).optional(),marginMicros:c.number().int().nonnegative().optional()}),fb=c.object({source:c.literal("upstream_reported"),amountField:c.string().min(1).max(500),currencyField:c.string().min(1).max(500).optional()}),gb=c.object({source:c.literal("external_rate_api"),resolver:c.string().min(1).max(100),configRef:c.string().min(1).max(200).optional()}),hb=c.object({source:c.literal("custom"),resolver:c.string().min(1).max(100),configRef:c.string().min(1).max(200).optional()}),Yf=c.discriminatedUnion("source",[mb,pb,fb,gb,hb]),Xf=c.object({selector:c.string().min(1).max(100).optional(),measures:c.array(Kf).min(1).max(20),rating:Yf.optional()}),Qf=c.object({meters:c.record(c.string().min(1).max(64).regex(/^[a-z0-9_]+$/),Xf)}),eg=c.object({method:c.enum(["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","*"]).default("*"),path:c.string().min(1).max(500).regex(/^\/[a-zA-Z0-9_/:.{}*-]*$/,"path must start with / and contain only [a-zA-Z0-9_/:.{}*-]"),meters:c.array(c.string().min(1).max(64)).min(1,"Use `unmetered: true` instead of an empty array (typo guard against silently-unmetered routes)").max(20).nullable().optional(),unmetered:c.boolean().optional()}).superRefine((t,r)=>{t.unmetered===!0&&t.meters&&t.meters.length>0&&r.addIssue({code:"custom",message:"`unmetered: true` is mutually exclusive with `meters` \u2014 drop one",path:["unmetered"]})}),tg=c.object({description:c.string().max(500).optional(),routes:c.array(eg).min(1).max(50),plans:c.array(c.string().min(1)).min(1).max(20)}),rg=c.record(c.string().min(1).max(100).regex(/^[a-z0-9_.:-]+$/),tg),ng=c.enum(["report","pull_request"]),ig=c.enum(["safe","non_blocking","economic_risk","blocking"]),Pi=c.object({cleanup:c.object({enabled:c.boolean().default(!1),mode:ng.default("report")}).default({enabled:!1,mode:"report"}),change_approval:c.object({auto_merge_max_risk:c.enum(["none","safe","non_blocking"]).default("none"),require_human_for:c.array(ig).default(["economic_risk","blocking"])}).default({auto_merge_max_risk:"none",require_human_for:["economic_risk","blocking"]})}).default({cleanup:{enabled:!1,mode:"report"},change_approval:{auto_merge_max_risk:"none",require_human_for:["economic_risk","blocking"]}}),og=c.enum(["org_only","org_and_user"]),ag=c.enum(["clerk","test-personas"]),Ei=c.object({identity_requirement:og.optional(),context_tokens:c.object({enabled:c.boolean().default(!0)}).optional(),portal_auth:c.object({strategy:ag}).optional()}),Qe=c.object({product:c.object({name:c.string().min(1).max(100),displayName:c.string().max(200).optional(),description:c.string().max(2e3).optional(),baseUrl:c.string().url("baseUrl must be a valid URL"),sandboxBaseUrl:c.string().url("sandboxBaseUrl must be a valid URL").optional(),visibility:c.enum(["public","private"]).default("public"),logoUrl:c.string().url().optional(),primaryColor:c.string().regex(/^#[0-9a-fA-F]{6}$/).optional(),envBranchPrefix:c.string().max(50).nullable().optional()}),gateway:c.object({authHeader:c.string().min(1).max(100).default("x-api-key"),upstreamAuth:c.object({type:c.enum(["none","static_bearer"]),token:c.string().optional()}).default({type:"none"})}),metering:c.object({meters:c.array(Oi).max(10).default([]),billOn4xx:c.boolean().default(!1)}).default({meters:[],billOn4xx:!1}),usage:Qf.optional(),usagePricing:c.never({error:"usagePricing is not supported. Define usage.meters.<key>.rating instead."}).optional(),features:rg.optional(),resources:jr,policies:Pi,customer_context:Ei.optional(),frontend:Er.optional(),migrations:Tr.optional(),billing:c.object({gracePeriodDays:c.number().int().nonnegative().default(3),applyLimitUpgradesInstantly:c.boolean().optional(),subscriberChangePolicy:wr.default({default:"preserve_current_period",proration:"none",when:{price_increase:"preserve_current_period",price_decrease:"switch_immediately",feature_added:"switch_immediately",feature_removed:"preserve_current_period",limit_increased:"switch_immediately",limit_reduced:"preserve_current_period",credit_increased:"switch_immediately",credit_reduced:"preserve_current_period",rating_changed:"preserve_current_period"},allowImmediatePriceIncrease:!1,allowImmediateEntitlementReduction:!1})}).default({gracePeriodDays:3,subscriberChangePolicy:{default:"preserve_current_period",proration:"none",when:{price_increase:"preserve_current_period",price_decrease:"switch_immediately",feature_added:"switch_immediately",feature_removed:"preserve_current_period",limit_increased:"switch_immediately",limit_reduced:"preserve_current_period",credit_increased:"switch_immediately",credit_reduced:"preserve_current_period",rating_changed:"preserve_current_period"},allowImmediatePriceIncrease:!1,allowImmediateEntitlementReduction:!1}}),plans:c.array(ml).max(4).default([]),add_ons:zi,lifecycle:c.object({breaking_changes:c.object({require_deprecation_window_days:c.number().int().nonnegative().default(0),require_successor_route:c.boolean().default(!1)}).default({require_deprecation_window_days:0,require_successor_route:!1})}).default({breaking_changes:{require_deprecation_window_days:0,require_successor_route:!1}}),webhooks:Or.optional(),environments:Pr.optional(),ephemeral:c.object({defaultPlan:c.string().min(1).optional()}).optional()}).superRefine((t,r)=>{Ff(t,r),Mf(t.plans,r),Vf(t.plans,r),Bf(t,r),Hf(t,r),Wf(t,r),Gf(t,r)}),vb=c.object({product:Qe.shape.product}),_b=c.object({gateway:Qe.shape.gateway}),yb=c.object({metering:Qe.shape.metering}),bb=c.object({plans:Qe.shape.plans});var $b=c.string().min(2).max(20).regex(/^\d+(ms|s|m|h)$/,"rate_limit window must look like `60s`, `5m`, `1h`"),sg=c.object({strategy:c.enum(["token_bucket","sliding_window","fixed_window"]).default("token_bucket"),dimensions:c.array(c.enum(["subscription","credential","ip","route"])).min(1).max(4).default(["subscription"]),limits:c.array(c.object({window:$b,max:c.number().int().positive().max(1e7)})).min(1).max(10),fail_open:c.object({max_consecutive_failures:c.number().int().positive().default(100),max_window_seconds:c.number().int().positive().default(60),recovery_threshold:c.number().int().positive().default(50),degraded_mode:c.enum(["safe_mode_block","safe_mode_throttle","runtime_killswitch_trigger"]).default("safe_mode_throttle")}).default({max_consecutive_failures:100,max_window_seconds:60,recovery_threshold:50,degraded_mode:"safe_mode_throttle"})}),cg=c.object({header_name:c.string().min(1).max(100).default("x-api-key"),upstream_token_source:c.discriminatedUnion("type",[c.object({type:c.literal("none")}),c.object({type:c.literal("static_bearer"),token_secret_ref:c.string().min(1).max(200).describe("Reference into the secret store (e.g. CF Secret name); not the raw token")})]).default({type:"none"}),scope_mode:c.enum(["strict","advisory","off"]).default("strict")}),ug=c.object({max_in_flight:c.number().int().positive().max(1e4),dimensions:c.array(c.enum(["subscription","credential","capability"])).min(1).max(3).default(["subscription"]),capability:c.string().min(1).max(120).optional(),lease_ttl_seconds:c.number().int().positive().max(600).default(30),fail_open:c.object({max_consecutive_failures:c.number().int().positive().default(50),max_window_seconds:c.number().int().positive().default(60),recovery_threshold:c.number().int().positive().default(20),degraded_mode:c.enum(["safe_mode_block","safe_mode_throttle","runtime_killswitch_trigger"]).default("safe_mode_throttle")}).default({max_consecutive_failures:50,max_window_seconds:60,recovery_threshold:20,degraded_mode:"safe_mode_throttle"})}),lg=c.object({max_attempts:c.number().int().min(1).max(5).default(2),retry_on_status:c.array(c.number().int().min(400).max(599)).min(1).max(20).default([502,503,504]),backoff:c.object({initial_ms:c.number().int().positive().max(5e3).default(100),multiplier:c.number().positive().max(10).default(2),jitter:c.enum(["none","full","equal"]).default("equal"),total_budget_ms:c.number().int().positive().max(3e4).default(5e3)}).default({initial_ms:100,multiplier:2,jitter:"equal",total_budget_ms:5e3})}),dg=c.object({applies_to:c.enum(["request","response","both"]).default("request"),rewrites:c.array(c.object({source:c.string().min(1).max(200),target:c.string().min(1).max(200).nullable()})).min(1).max(20)});var _l=c.discriminatedUnion("type",[c.object({type:c.literal("rate_limit"),config:sg}),c.object({type:c.literal("auth"),config:cg}),c.object({type:c.literal("concurrency"),config:ug}),c.object({type:c.literal("retry"),config:lg}),c.object({type:c.literal("transform"),config:dg})]);var Me=c.enum(["long","short","blocking"]).default("long"),mg=c.object({route_types:c.array(c.enum(["http"])).max(5).optional(),meters:c.array(c.string().min(1).max(64)).max(20).optional(),auth_modes:c.array(c.enum(["api_key","oauth2","anonymous"])).max(5).optional()});var yl=c.intersection(c.object({name:c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Policy name must be lowercase alphanumeric with hyphens/underscores"),description:c.string().max(500).optional(),compatible_with:mg.default({}),mutation_class:c.enum(["runtime","contractual"]).default("runtime"),cacheProfile:Me}),_l);var xb=c.enum(["query","mutation"]),kb=c.enum(["none","metadata","full"]),Sb=c.object({type:c.string().min(1).max(64).regex(/^[a-zA-Z0-9_.:-]+$/),from:c.enum(["header","path_param"]),name:c.string().min(1).max(120)}),wb=c.object({resource:c.string().min(1).max(100).regex(/^[a-z0-9_.:-]+$/),effect:c.enum(["create","delete"])}),pg=c.object({id:c.string().min(1).max(160).regex(/^[a-z0-9_.:-]+$/),title:c.string().min(1).max(160).optional(),kind:xb,actorType:c.string().min(1).max(64).regex(/^[a-zA-Z0-9_.:-]+$/).optional(),subject:Sb.optional(),inputSchemaRef:c.string().min(1).max(240).optional(),audit:kb.default("metadata"),resource:wb.optional()});var fg=c.object({method:c.enum(["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","*"]).default("*"),path:c.string().min(1).max(500).regex(/^\/[a-zA-Z0-9_/:.{}*-]*$/,"path must start with / and contain only [a-zA-Z0-9_/:.{}*-]")}),gg=c.object({match:fg,meters:c.array(c.string().min(1).max(64)).min(1,"Use `unmetered: true` instead of an empty array (typo guard against silently-unmetered routes)").max(20).nullable().optional(),unmetered:c.boolean().optional(),action:c.string().min(1).max(160).regex(/^[a-z0-9_.:-]+$/).optional()}).superRefine((t,r)=>{t.unmetered===!0&&t.meters&&t.meters.length>0&&r.addIssue({code:"custom",message:"`unmetered: true` is mutually exclusive with `meters` \u2014 drop one",path:["unmetered"]})}),hg=c.object({override_origin:c.string().url("override_origin must be a valid URL").nullable().default(null)}),vg=c.object({rollout_key:c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/,"rollout_key must be lowercase alphanumeric with hyphens/underscores").optional(),required_flags:c.array(c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/)).max(10).optional()}),bl=c.object({feature:c.string().min(1).max(100).regex(/^[a-z0-9_.:-]+$/,"feature key must be lowercase alphanumeric with [_.:-]"),description:c.string().max(500).optional(),mutation_class:c.enum(["runtime","contractual"]).default("contractual"),cacheProfile:Me,routes:c.array(gg).min(1).max(50),upstream:hg.default({override_origin:null}),policies:c.array(c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/)).max(20).default([]),runtime:vg.default({}),capabilities:c.array(c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/)).max(20).default([]),plans:c.array(c.string().min(1).max(64)).max(20).default([]),actions:c.array(pg).max(100).optional()});var Ti=c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/,"runtime key must be lowercase alphanumeric with hyphens/underscores"),$l=c.object({runtime_flags:c.array(Ti).max(10).optional(),capabilities:c.array(c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/)).max(10).optional()}).default({}),_g=c.object({plans:c.array(c.string().min(1).max(64)).max(20).optional(),environments:c.array(c.string().min(1).max(64)).max(10).optional(),capabilities:c.array(c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/)).max(10).optional()}).default({}),Ib=c.object({missing_behavior:c.enum(["treat_as_zero_percent","treat_as_full_rollout","fail_closed"]).default("treat_as_zero_percent"),stale_behavior:c.enum(["use_last_known","fail_closed_on_signature"]).default("use_last_known")}),yg=c.object({description:c.string().max(500).optional(),audience:_g,percent:c.number().int().min(0).max(100),assignment_seed:c.string().min(1).max(120).default("default"),depends_on:$l,defaults:Ib.default({missing_behavior:"treat_as_zero_percent",stale_behavior:"use_last_known"})}),zb=c.object({cacheProfile:Me.default("blocking"),rollouts:c.record(Ti,yg).default({})}),Ob=c.object({missing_behavior:c.enum(["disabled","enabled","fail_closed"]).default("disabled"),stale_behavior:c.enum(["use_last_known","fail_closed_on_signature"]).default("use_last_known")}),bg=c.object({description:c.string().max(500).optional(),enabled:c.boolean(),audience:_g,depends_on:$l,defaults:Ob.default({missing_behavior:"disabled",stale_behavior:"use_last_known"}),killswitch_target:c.object({kind:c.enum(["policy","route","rollout"]),name:c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/)}).optional()}),Pb=c.object({cacheProfile:Me.default("blocking"),flags:c.record(Ti,bg).default({})}),Eb=c.object({missing_behavior:c.enum(["disabled","pending_review"]).default("disabled"),stale_behavior:c.enum(["use_last_known","fail_closed_on_signature"]).default("use_last_known")}),$g=c.object({description:c.string().max(500).optional(),from_plan_key:c.string().min(1).max(64),to_plan_key:c.string().min(1).max(64),policy:c.enum(["GRANDFATHER","MIGRATE_AT_RENEWAL","MIGRATE_IMMEDIATELY","MIGRATE_BY_DATE","OPT_IN"]).default("MIGRATE_AT_RENEWAL"),proration_policy:c.enum(["NONE","PRORATE","CREDIT"]).default("NONE"),cutover_at:c.string().datetime().optional(),freeze_contract_mutations:c.boolean().default(!0),depends_on:$l,defaults:Eb.default({missing_behavior:"disabled",stale_behavior:"use_last_known"})}),Tb=c.object({cacheProfile:Me.default("blocking"),migrations:c.record(Ti,$g).default({})});var xl=c.object({capability:c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/,"capability name must be lowercase alphanumeric with hyphens/underscores"),description:c.string().max(500).optional(),mutation_class:c.enum(["runtime","contractual"]).default("contractual"),includes_features:c.array(c.string().min(1).max(100).regex(/^[a-z0-9_.:-]+$/)).max(20).default([]),includes_policies:c.array(c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/)).max(20).default([]),includes_capabilities:c.array(c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/)).max(20).default([])});var kl=1,jb={meters:c.array(ie).default([]),recurring_fee_cents:c.number().int().nonnegative().default(0),billing_interval:me.default("month"),trial_days:c.number().int().nonnegative().default(0),max_monthly_spend_cents:c.number().int().nonnegative().optional(),min_monthly_spend_cents:c.number().int().nonnegative().optional(),grants:c.array(ne).max(40).default([])},kg=c.object({key:c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Plan key must be lowercase alphanumeric with hyphens/underscores"),name:c.string().min(1).max(100),description:c.string().max(500).optional(),details:c.array(c.string().max(200)).max(10).optional(),...jb,free:c.boolean().default(!1),capabilities:c.array(c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/)).max(20).default([]),limits:c.array(Fe).max(20).default([]),capability_limits:c.record(c.string().min(1).max(120),c.union([c.number().int().nonnegative(),c.boolean()])).default({}),overageBehavior:c.enum(["block","allow_and_bill"]).default("block"),selfServeEnabled:c.boolean().default(!0),legacy:c.boolean().optional().default(!1),archive:c.object({at:c.string().datetime().optional(),transitionTo:c.string().optional(),strategy:c.enum(["auto","explicit","block"]).default("auto")}).optional()}).superRefine((t,r)=>{Ir(t.grants,r)}),xg={default:"preserve_current_period",proration:"none",when:{price_increase:"preserve_current_period",price_decrease:"switch_immediately",feature_added:"switch_immediately",feature_removed:"preserve_current_period",limit_increased:"switch_immediately",limit_reduced:"preserve_current_period",credit_increased:"switch_immediately",credit_reduced:"preserve_current_period",rating_changed:"preserve_current_period"},allowImmediatePriceIncrease:!1,allowImmediateEntitlementReduction:!1},Ab=c.object({artifactSchemaVersion:c.literal(kl).default(kl),product:c.object({name:c.string().min(1).max(100),displayName:c.string().max(200).optional(),description:c.string().max(2e3).optional(),baseUrl:c.string().url("baseUrl must be a valid URL"),sandboxBaseUrl:c.string().url("sandboxBaseUrl must be a valid URL").optional(),visibility:c.enum(["public","private"]).default("public"),logoUrl:c.string().url().optional(),primaryColor:c.string().regex(/^#[0-9a-fA-F]{6}$/).optional(),envBranchPrefix:c.string().max(50).nullable().optional()}),meters:c.array(Oi).max(10).default([]),billOn4xx:c.boolean().default(!1),frontend:Er.optional(),migrations:Tr.optional(),resources:jr,policies:Pi,customer_context:Ei.optional(),billing:c.object({gracePeriodDays:c.number().int().nonnegative().default(3),applyLimitUpgradesInstantly:c.boolean().optional(),subscriberChangePolicy:wr.default(xg)}).default({gracePeriodDays:3,subscriberChangePolicy:xg}),plans:c.array(kg).max(4).default([]),add_ons:zi,lifecycle:c.object({breaking_changes:c.object({require_deprecation_window_days:c.number().int().nonnegative().default(0),require_successor_route:c.boolean().default(!1)}).default({require_deprecation_window_days:0,require_successor_route:!1})}).default({breaking_changes:{require_deprecation_window_days:0,require_successor_route:!1}}),webhooks:Or.optional(),environments:Pr.optional(),ephemeral:c.object({defaultPlan:c.string().min(1).optional()}).optional()});var Sg=1;var Cb=c.object({irVersion:c.literal(Sg),sdkVersion:c.string().min(1).max(64),product:Qe,routes:c.array(bl).max(200).default([]),policies:c.array(yl).max(200).default([]),capabilities:c.array(xl).max(200).default([]),runtime:c.object({rollout:c.null().default(null),flags:c.null().default(null),migrations:c.null().default(null)}).default({rollout:null,flags:null,migrations:null})});var pe=["free","starter","pro","prepaid","metered"],Nb={kind:"free",label:"Free",description:"No recurring fee and no metered usage. Pure freemium tier.",pricing:{meters:[],recurring_fee_cents:0,billing_interval:"month",grants:[],trial_days:0}},Db={kind:"starter",label:"Starter \u2014 $20/mo + $20 included",description:"$20/month subscription with $20 of usage credit each period. Stripe-style minimum-spend; overage billed at $0.001/request by default.",pricing:{meters:[{dimension:"requests",kind:"linear",price_per_unit_micros:1e3}],recurring_fee_cents:2e3,billing_interval:"month",grants:[{kind:"recurring",amount_cents:2e3}],trial_days:0}},Ub={kind:"pro",label:"Pro \u2014 $100/mo + $200 included",description:"$100/month subscription with $200 of usage credit each period and a 14-day trial. Overage billed at $0.0005/request by default.",pricing:{meters:[{dimension:"requests",kind:"linear",price_per_unit_micros:500}],recurring_fee_cents:1e4,billing_interval:"month",grants:[{kind:"recurring",amount_cents:2e4}],trial_days:14}},Rb={kind:"prepaid",label:"Prepaid \u2014 $50 sign-up credit, then PAYG",description:"$50 one-time credit at signup. Once depleted the subscriber pays-as-they-go at $0.001/request by default.",pricing:{meters:[{dimension:"requests",kind:"linear",price_per_unit_micros:1e3}],recurring_fee_cents:0,billing_interval:"month",grants:[{kind:"one_time",amount_cents:5e3}],trial_days:0}},Zb={kind:"metered",label:"Metered (pay-as-you-go)",description:"No subscription fee. Pure usage billing at $0.001/request by default.",pricing:{meters:[{dimension:"requests",kind:"linear",price_per_unit_micros:1e3}],recurring_fee_cents:0,billing_interval:"month",grants:[],trial_days:0}},wg=Object.freeze({free:Nb,starter:Db,pro:Ub,prepaid:Rb,metered:Zb});function ji(t){return wg[t]}function Sl(){return pe.map(t=>wg[t])}var iO=c.object({recurring_fee_cents:c.number().int().nonnegative().optional(),grants:c.array(ne).max(40).optional(),min_monthly_spend_cents:c.number().int().nonnegative().optional(),max_monthly_spend_cents:c.number().int().nonnegative().optional(),meters:c.array(ie).optional(),notes:c.string().max(2e3).optional()});function Ig(t,r){if(typeof t!="number"&&typeof r!="number")return;let n=[];return typeof t=="number"&&t>0&&n.push({kind:"recurring",amount_cents:t}),typeof r=="number"&&r>0&&n.push({kind:"one_time",amount_cents:r}),n}function Lb(t){if(!t||typeof t!="object")return[];let r=t;return Array.isArray(r.data)?r.data:Array.isArray(r.plans)?r.plans:Array.isArray(t)?t:[]}function Fb(t){if(t.length===0)return"(no plans)";let r=["KEY","NAME","FREE","FEE\xA2","RECUR_GRANT\xA2","ONE_TIME\xA2","TRIAL_D","MAX_SPEND\xA2","STATUS"],n=s=>s===null?"\u2014":s.toLocaleString("en-US"),o=t.map(s=>[s.key,s.name,s.free?"Y":"N",n(s.recurring_fee_cents),n(s.recurring_credit_grant_cents),n(s.one_time_credit_grant_cents),n(s.trial_days),n(s.max_monthly_spend_cents),s.status]),e=r.map((s,u)=>Math.max(s.length,...o.map(l=>l[u]?.length??0))),i=s=>s.map((u,l)=>u.padEnd(e[l]??u.length)).join(" "),a=e.map(s=>"-".repeat(s)).join(" ");return[i(r),a,...o.map(i)].join(`
98
- `)}function zg(t,r){let n=t.command("plan").description("Plan management: list, create, update, delete");n.command("list <productIdOrName>").description("List plans for a product").addHelpText("after",`
97
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of t.seen.entries()){let s=a[1];if(r===a[0]){i(a);continue}if(t.external){let l=t.external.registry.get(a[0])?.id;if(r!==a[0]&&l){i(a);continue}}if(t.metadataRegistry.get(a[0])?.id){i(a);continue}if(s.cycle){i(a);continue}if(s.count>1&&t.reused==="ref"){i(a);continue}}}function Le(t,r){let n=t.seen.get(r);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=s=>{let u=t.seen.get(s);if(u.ref===null)return;let l=u.def??u.schema,d={...l},m=u.ref;if(u.ref=null,m){o(m);let _=t.seen.get(m),x=_.schema;if(x.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(x)):Object.assign(l,x),Object.assign(l,d),s._zod.parent===m)for(let M in l)M==="$ref"||M==="allOf"||M in d||delete l[M];if(x.$ref&&_.def)for(let M in l)M==="$ref"||M==="allOf"||M in _.def&&JSON.stringify(l[M])===JSON.stringify(_.def[M])&&delete l[M]}let g=s._zod.parent;if(g&&g!==m){o(g);let _=t.seen.get(g);if(_?.schema.$ref&&(l.$ref=_.schema.$ref,_.def))for(let x in l)x==="$ref"||x==="allOf"||x in _.def&&JSON.stringify(l[x])===JSON.stringify(_.def[x])&&delete l[x]}t.override({zodSchema:s,jsonSchema:l,path:u.path??[]})};for(let s of[...t.seen.entries()].reverse())o(s[0]);let e={};if(t.target==="draft-2020-12"?e.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?e.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?e.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let s=t.external.registry.get(r)?.id;if(!s)throw new Error("Schema is missing an `id` property");e.$id=t.external.uri(s)}Object.assign(e,n.def??n.schema);let i=t.metadataRegistry.get(r)?.id;i!==void 0&&e.id===i&&delete e.id;let a=t.external?.defs??{};for(let s of t.seen.entries()){let u=s[1];u.def&&u.defId&&(u.def.id===u.defId&&delete u.def.id,a[u.defId]=u.def)}t.external||Object.keys(a).length>0&&(t.target==="draft-2020-12"?e.$defs=a:e.definitions=a);try{let s=JSON.parse(JSON.stringify(e));return Object.defineProperty(s,"~standard",{value:{...r["~standard"],jsonSchema:{input:wt(r,"input",t.processors),output:wt(r,"output",t.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function q(t,r){let n=r??{seen:new Set};if(n.seen.has(t))return!1;n.seen.add(t);let o=t._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return q(o.element,n);if(o.type==="set")return q(o.valueType,n);if(o.type==="lazy")return q(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return q(o.innerType,n);if(o.type==="intersection")return q(o.left,n)||q(o.right,n);if(o.type==="record"||o.type==="map")return q(o.keyType,n)||q(o.valueType,n);if(o.type==="pipe")return t._zod.traits.has("$ZodCodec")?!0:q(o.in,n)||q(o.out,n);if(o.type==="object"){for(let e in o.shape)if(q(o.shape[e],n))return!0;return!1}if(o.type==="union"){for(let e of o.options)if(q(e,n))return!0;return!1}if(o.type==="tuple"){for(let e of o.items)if(q(e,n))return!0;return!!(o.rest&&q(o.rest,n))}return!1}var yc=(t,r={})=>n=>{let o=Re({...n,processors:r});return P(t,o),Ze(o,t),Le(o,t)},wt=(t,r,n={})=>o=>{let{libraryOptions:e,target:i}=o??{},a=Re({...e??{},target:i,io:r,processors:n});return P(t,a),Ze(a,t),Le(a,t)};var vy={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},bc=(t,r,n,o)=>{let e=n;e.type="string";let{minimum:i,maximum:a,format:s,patterns:u,contentEncoding:l}=t._zod.bag;if(typeof i=="number"&&(e.minLength=i),typeof a=="number"&&(e.maxLength=a),s&&(e.format=vy[s]??s,e.format===""&&delete e.format,s==="time"&&delete e.format),l&&(e.contentEncoding=l),u&&u.size>0){let d=[...u];d.length===1?e.pattern=d[0].source:d.length>1&&(e.allOf=[...d.map(m=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},$c=(t,r,n,o)=>{let e=n,{minimum:i,maximum:a,format:s,multipleOf:u,exclusiveMaximum:l,exclusiveMinimum:d}=t._zod.bag;typeof s=="string"&&s.includes("int")?e.type="integer":e.type="number";let m=typeof d=="number"&&d>=(i??Number.NEGATIVE_INFINITY),g=typeof l=="number"&&l<=(a??Number.POSITIVE_INFINITY),_=r.target==="draft-04"||r.target==="openapi-3.0";m?_?(e.minimum=d,e.exclusiveMinimum=!0):e.exclusiveMinimum=d:typeof i=="number"&&(e.minimum=i),g?_?(e.maximum=l,e.exclusiveMaximum=!0):e.exclusiveMaximum=l:typeof a=="number"&&(e.maximum=a),typeof u=="number"&&(e.multipleOf=u)},xc=(t,r,n,o)=>{n.type="boolean"},kc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Sc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},wc=(t,r,n,o)=>{r.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},Ic=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},zc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Oc=(t,r,n,o)=>{n.not={}},Ec=(t,r,n,o)=>{},Pc=(t,r,n,o)=>{},Tc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},jc=(t,r,n,o)=>{let e=t._zod.def,i=Wt(e.entries);i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),n.enum=i},Ac=(t,r,n,o)=>{let e=t._zod.def,i=[];for(let a of e.values)if(a===void 0){if(r.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(r.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];n.type=a===null?"null":typeof a,r.target==="draft-04"||r.target==="openapi-3.0"?n.enum=[a]:n.const=a}else i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),i.every(a=>typeof a=="boolean")&&(n.type="boolean"),i.every(a=>a===null)&&(n.type="null"),n.enum=i},Cc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Nc=(t,r,n,o)=>{let e=n,i=t._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");e.type="string",e.pattern=i.source},Dc=(t,r,n,o)=>{let e=n,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:u}=t._zod.bag;a!==void 0&&(i.minLength=a),s!==void 0&&(i.maxLength=s),u?u.length===1?(i.contentMediaType=u[0],Object.assign(e,i)):(Object.assign(e,i),e.anyOf=u.map(l=>({contentMediaType:l}))):Object.assign(e,i)},Uc=(t,r,n,o)=>{n.type="boolean"},Rc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Zc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Lc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Mc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Fc=(t,r,n,o)=>{if(r.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Vc=(t,r,n,o)=>{let e=n,i=t._zod.def,{minimum:a,maximum:s}=t._zod.bag;typeof a=="number"&&(e.minItems=a),typeof s=="number"&&(e.maxItems=s),e.type="array",e.items=P(i.element,r,{...o,path:[...o.path,"items"]})},Bc=(t,r,n,o)=>{let e=n,i=t._zod.def;e.type="object",e.properties={};let a=i.shape;for(let l in a)e.properties[l]=P(a[l],r,{...o,path:[...o.path,"properties",l]});let s=new Set(Object.keys(a)),u=new Set([...s].filter(l=>{let d=i.shape[l]._zod;return r.io==="input"?d.optin===void 0:d.optout===void 0}));u.size>0&&(e.required=Array.from(u)),i.catchall?._zod.def.type==="never"?e.additionalProperties=!1:i.catchall?i.catchall&&(e.additionalProperties=P(i.catchall,r,{...o,path:[...o.path,"additionalProperties"]})):r.io==="output"&&(e.additionalProperties=!1)},Wn=(t,r,n,o)=>{let e=t._zod.def,i=e.inclusive===!1,a=e.options.map((s,u)=>P(s,r,{...o,path:[...o.path,i?"oneOf":"anyOf",u]}));i?n.oneOf=a:n.anyOf=a},Hc=(t,r,n,o)=>{let e=t._zod.def,i=P(e.left,r,{...o,path:[...o.path,"allOf",0]}),a=P(e.right,r,{...o,path:[...o.path,"allOf",1]}),s=l=>"allOf"in l&&Object.keys(l).length===1,u=[...s(i)?i.allOf:[i],...s(a)?a.allOf:[a]];n.allOf=u},Gc=(t,r,n,o)=>{let e=n,i=t._zod.def;e.type="array";let a=r.target==="draft-2020-12"?"prefixItems":"items",s=r.target==="draft-2020-12"||r.target==="openapi-3.0"?"items":"additionalItems",u=i.items.map((g,_)=>P(g,r,{...o,path:[...o.path,a,_]})),l=i.rest?P(i.rest,r,{...o,path:[...o.path,s,...r.target==="openapi-3.0"?[i.items.length]:[]]}):null;r.target==="draft-2020-12"?(e.prefixItems=u,l&&(e.items=l)):r.target==="openapi-3.0"?(e.items={anyOf:u},l&&e.items.anyOf.push(l),e.minItems=u.length,l||(e.maxItems=u.length)):(e.items=u,l&&(e.additionalItems=l));let{minimum:d,maximum:m}=t._zod.bag;typeof d=="number"&&(e.minItems=d),typeof m=="number"&&(e.maxItems=m)},Wc=(t,r,n,o)=>{let e=n,i=t._zod.def;e.type="object";let a=i.keyType,u=a._zod.bag?.patterns;if(i.mode==="loose"&&u&&u.size>0){let d=P(i.valueType,r,{...o,path:[...o.path,"patternProperties","*"]});e.patternProperties={};for(let m of u)e.patternProperties[m.source]=d}else(r.target==="draft-07"||r.target==="draft-2020-12")&&(e.propertyNames=P(i.keyType,r,{...o,path:[...o.path,"propertyNames"]})),e.additionalProperties=P(i.valueType,r,{...o,path:[...o.path,"additionalProperties"]});let l=a._zod.values;if(l){let d=[...l].filter(m=>typeof m=="string"||typeof m=="number");d.length>0&&(e.required=d)}},Jc=(t,r,n,o)=>{let e=t._zod.def,i=P(e.innerType,r,o),a=r.seen.get(t);r.target==="openapi-3.0"?(a.ref=e.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},qc=(t,r,n,o)=>{let e=t._zod.def;P(e.innerType,r,o);let i=r.seen.get(t);i.ref=e.innerType},Kc=(t,r,n,o)=>{let e=t._zod.def;P(e.innerType,r,o);let i=r.seen.get(t);i.ref=e.innerType,n.default=JSON.parse(JSON.stringify(e.defaultValue))},Yc=(t,r,n,o)=>{let e=t._zod.def;P(e.innerType,r,o);let i=r.seen.get(t);i.ref=e.innerType,r.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(e.defaultValue)))},Xc=(t,r,n,o)=>{let e=t._zod.def;P(e.innerType,r,o);let i=r.seen.get(t);i.ref=e.innerType;let a;try{a=e.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},Qc=(t,r,n,o)=>{let e=t._zod.def,i=e.in._zod.traits.has("$ZodTransform"),a=r.io==="input"?i?e.out:e.in:e.out;P(a,r,o);let s=r.seen.get(t);s.ref=a},eu=(t,r,n,o)=>{let e=t._zod.def;P(e.innerType,r,o);let i=r.seen.get(t);i.ref=e.innerType,n.readOnly=!0},tu=(t,r,n,o)=>{let e=t._zod.def;P(e.innerType,r,o);let i=r.seen.get(t);i.ref=e.innerType},Jn=(t,r,n,o)=>{let e=t._zod.def;P(e.innerType,r,o);let i=r.seen.get(t);i.ref=e.innerType},ru=(t,r,n,o)=>{let e=t._zod.innerType;P(e,r,o);let i=r.seen.get(t);i.ref=e},Gn={string:bc,number:$c,boolean:xc,bigint:kc,symbol:Sc,null:wc,undefined:Ic,void:zc,never:Oc,any:Ec,unknown:Pc,date:Tc,enum:jc,literal:Ac,nan:Cc,template_literal:Nc,file:Dc,success:Uc,custom:Rc,function:Zc,transform:Lc,map:Mc,set:Fc,array:Vc,object:Bc,union:Wn,intersection:Hc,tuple:Gc,record:Wc,nullable:Jc,nonoptional:qc,default:Kc,prefault:Yc,catch:Xc,pipe:Qc,readonly:eu,promise:tu,optional:Jn,lazy:ru};function qn(t,r){if("_idmap"in t){let o=t,e=Re({...r,processors:Gn}),i={};for(let u of o._idmap.entries()){let[l,d]=u;P(d,e)}let a={},s={registry:o,uri:r?.uri,defs:i};e.external=s;for(let u of o._idmap.entries()){let[l,d]=u;Ze(e,d),a[l]=Le(e,d)}if(Object.keys(i).length>0){let u=e.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[u]:i}}return{schemas:a}}let n=Re({...r,processors:Gn});return P(t,n),Ze(n,t),Le(n,t)}var Kn=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(r){this.ctx.counter=r}get seen(){return this.ctx.seen}constructor(r){let n=r?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=Re({processors:Gn,target:n,...r?.metadata&&{metadata:r.metadata},...r?.unrepresentable&&{unrepresentable:r.unrepresentable},...r?.override&&{override:r.override},...r?.io&&{io:r.io}})}process(r,n={path:[],schemaPath:[]}){return P(r,this.ctx,n)}emit(r,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),Ze(this.ctx,r);let o=Le(this.ctx,r),{"~standard":e,...i}=o;return i}};var Ym={};var dr={};xe(dr,{ZodAny:()=>Iu,ZodArray:()=>Pu,ZodBase64:()=>vi,ZodBase64URL:()=>_i,ZodBigInt:()=>At,ZodBigIntFormat:()=>$i,ZodBoolean:()=>jt,ZodCIDRv4:()=>gi,ZodCIDRv6:()=>hi,ZodCUID:()=>ci,ZodCUID2:()=>ui,ZodCatch:()=>Xu,ZodCodec:()=>kr,ZodCustom:()=>Sr,ZodCustomStringFormat:()=>Pt,ZodDate:()=>_r,ZodDefault:()=>Gu,ZodDiscriminatedUnion:()=>ju,ZodE164:()=>yi,ZodEmail:()=>oi,ZodEmoji:()=>ai,ZodEnum:()=>Ot,ZodExactOptional:()=>Vu,ZodFile:()=>Mu,ZodFunction:()=>cl,ZodGUID:()=>pr,ZodIPv4:()=>pi,ZodIPv6:()=>fi,ZodIntersection:()=>Au,ZodJWT:()=>bi,ZodKSUID:()=>mi,ZodLazy:()=>ol,ZodLiteral:()=>Lu,ZodMAC:()=>yu,ZodMap:()=>Ru,ZodNaN:()=>el,ZodNanoID:()=>si,ZodNever:()=>Ou,ZodNonOptional:()=>zi,ZodNull:()=>Su,ZodNullable:()=>Hu,ZodNumber:()=>Tt,ZodNumberFormat:()=>Xe,ZodObject:()=>br,ZodOptional:()=>Ii,ZodPipe:()=>xr,ZodPrefault:()=>Ju,ZodPreprocess:()=>tl,ZodPromise:()=>sl,ZodReadonly:()=>rl,ZodRecord:()=>zt,ZodSet:()=>Zu,ZodString:()=>Et,ZodStringFormat:()=>j,ZodSuccess:()=>Yu,ZodSymbol:()=>xu,ZodTemplateLiteral:()=>il,ZodTransform:()=>Fu,ZodTuple:()=>Nu,ZodType:()=>w,ZodULID:()=>li,ZodURL:()=>vr,ZodUUID:()=>ye,ZodUndefined:()=>ku,ZodUnion:()=>$r,ZodUnknown:()=>zu,ZodVoid:()=>Eu,ZodXID:()=>di,ZodXor:()=>Tu,_ZodString:()=>ii,_default:()=>Wu,_function:()=>sf,any:()=>Up,array:()=>yr,base64:()=>bp,base64url:()=>$p,bigint:()=>jp,boolean:()=>$u,catch:()=>Qu,check:()=>cf,cidrv4:()=>_p,cidrv6:()=>yp,codec:()=>rf,cuid:()=>lp,cuid2:()=>dp,custom:()=>uf,date:()=>Zp,describe:()=>lf,discriminatedUnion:()=>Hp,e164:()=>xp,email:()=>ep,emoji:()=>cp,enum:()=>Si,exactOptional:()=>Bu,file:()=>Xp,float32:()=>Op,float64:()=>Ep,function:()=>sf,guid:()=>tp,hash:()=>zp,hex:()=>Ip,hostname:()=>wp,httpUrl:()=>sp,instanceof:()=>mf,int:()=>ri,int32:()=>Pp,int64:()=>Ap,intersection:()=>Cu,invertCodec:()=>nf,ipv4:()=>gp,ipv6:()=>vp,json:()=>ff,jwt:()=>kp,keyof:()=>Lp,ksuid:()=>fp,lazy:()=>al,literal:()=>Yp,looseObject:()=>Vp,looseRecord:()=>Wp,mac:()=>hp,map:()=>Jp,meta:()=>df,nan:()=>tf,nanoid:()=>up,nativeEnum:()=>Kp,never:()=>xi,nonoptional:()=>Ku,null:()=>wu,nullable:()=>gr,nullish:()=>Qp,number:()=>bu,object:()=>Mp,optional:()=>fr,partialRecord:()=>Gp,pipe:()=>ni,prefault:()=>qu,preprocess:()=>gf,promise:()=>af,readonly:()=>nl,record:()=>Uu,refine:()=>ul,set:()=>qp,strictObject:()=>Fp,string:()=>mr,stringFormat:()=>Sp,stringbool:()=>pf,success:()=>ef,superRefine:()=>ll,symbol:()=>Np,templateLiteral:()=>of,transform:()=>wi,tuple:()=>Du,uint32:()=>Tp,uint64:()=>Cp,ulid:()=>mp,undefined:()=>Dp,union:()=>ki,unknown:()=>Ye,url:()=>ap,uuid:()=>rp,uuidv4:()=>np,uuidv6:()=>ip,uuidv7:()=>op,void:()=>Rp,xid:()=>pp,xor:()=>Bp});var Yn={};xe(Yn,{endsWith:()=>vt,gt:()=>ve,gte:()=>J,includes:()=>gt,length:()=>Ke,lowercase:()=>pt,lt:()=>he,lte:()=>re,maxLength:()=>qe,maxSize:()=>Ue,mime:()=>_t,minLength:()=>Ie,minSize:()=>_e,multipleOf:()=>De,negative:()=>Fn,nonnegative:()=>Bn,nonpositive:()=>Vn,normalize:()=>yt,overwrite:()=>le,positive:()=>Mn,property:()=>Hn,regex:()=>mt,size:()=>Je,slugify:()=>kt,startsWith:()=>ht,toLowerCase:()=>$t,toUpperCase:()=>xt,trim:()=>bt,uppercase:()=>ft});var It={};xe(It,{ZodISODate:()=>Qn,ZodISODateTime:()=>Xn,ZodISODuration:()=>ti,ZodISOTime:()=>ei,date:()=>iu,datetime:()=>nu,duration:()=>au,time:()=>ou});var Xn=p("ZodISODateTime",(t,r)=>{Ca.init(t,r),j.init(t,r)});function nu(t){return Rs(Xn,t)}var Qn=p("ZodISODate",(t,r)=>{Na.init(t,r),j.init(t,r)});function iu(t){return Zs(Qn,t)}var ei=p("ZodISOTime",(t,r)=>{Da.init(t,r),j.init(t,r)});function ou(t){return Ls(ei,t)}var ti=p("ZodISODuration",(t,r)=>{Ua.init(t,r),j.init(t,r)});function au(t){return Ms(ti,t)}var Xm=(t,r)=>{Xt.init(t,r),t.name="ZodError",Object.defineProperties(t,{format:{value:n=>er(t,n)},flatten:{value:n=>Qt(t,n)},addIssue:{value:n=>{t.issues.push(n),t.message=JSON.stringify(t.issues,nt,2)}},addIssues:{value:n=>{t.issues.push(...n),t.message=JSON.stringify(t.issues,nt,2)}},isEmpty:{get(){return t.issues.length===0}}})},yy=p("ZodError",Xm),Q=p("ZodError",Xm,{Parent:Error});var su=at(Q),cu=st(Q),uu=ct(Q),lu=ut(Q),du=Jr(Q),mu=qr(Q),pu=Kr(Q),fu=Yr(Q),gu=Xr(Q),hu=Qr(Q),vu=en(Q),_u=tn(Q);var Qm=new WeakMap;function hr(t,r,n){let o=Object.getPrototypeOf(t),e=Qm.get(o);if(e||(e=new Set,Qm.set(o,e)),!e.has(r)){e.add(r);for(let i in n){let a=n[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){let s=a.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:s}),s},set(s){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:s})}})}}}var w=p("ZodType",(t,r)=>(S.init(t,r),Object.assign(t["~standard"],{jsonSchema:{input:wt(t,"input"),output:wt(t,"output")}}),t.toJSONSchema=yc(t,{}),t.def=r,t.type=r.type,Object.defineProperty(t,"_def",{value:r}),t.parse=(n,o)=>su(t,n,o,{callee:t.parse}),t.safeParse=(n,o)=>uu(t,n,o),t.parseAsync=async(n,o)=>cu(t,n,o,{callee:t.parseAsync}),t.safeParseAsync=async(n,o)=>lu(t,n,o),t.spa=t.safeParseAsync,t.encode=(n,o)=>du(t,n,o),t.decode=(n,o)=>mu(t,n,o),t.encodeAsync=async(n,o)=>pu(t,n,o),t.decodeAsync=async(n,o)=>fu(t,n,o),t.safeEncode=(n,o)=>gu(t,n,o),t.safeDecode=(n,o)=>hu(t,n,o),t.safeEncodeAsync=async(n,o)=>vu(t,n,o),t.safeDecodeAsync=async(n,o)=>_u(t,n,o),hr(t,"ZodType",{check(...n){let o=this.def;return this.clone(y.mergeDefs(o,{checks:[...o.checks??[],...n.map(e=>typeof e=="function"?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return G(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(ul(n,o))},superRefine(n,o){return this.check(ll(n,o))},overwrite(n){return this.check(le(n))},optional(){return fr(this)},exactOptional(){return Bu(this)},nullable(){return gr(this)},nullish(){return fr(gr(this))},nonoptional(n){return Ku(this,n)},array(){return yr(this)},or(n){return ki([this,n])},and(n){return Cu(this,n)},transform(n){return ni(this,wi(n))},default(n){return Wu(this,n)},prefault(n){return qu(this,n)},catch(n){return Qu(this,n)},pipe(n){return ni(this,n)},readonly(){return nl(this)},describe(n){let o=this.clone();return V.add(o,{description:n}),o},meta(...n){if(n.length===0)return V.get(this);let o=this.clone();return V.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(t,"description",{get(){return V.get(t)?.description},configurable:!0}),t)),ii=p("_ZodString",(t,r)=>{We.init(t,r),w.init(t,r),t._zod.processJSONSchema=(o,e,i)=>bc(t,o,e,i);let n=t._zod.bag;t.format=n.format??null,t.minLength=n.minimum??null,t.maxLength=n.maximum??null,hr(t,"_ZodString",{regex(...o){return this.check(mt(...o))},includes(...o){return this.check(gt(...o))},startsWith(...o){return this.check(ht(...o))},endsWith(...o){return this.check(vt(...o))},min(...o){return this.check(Ie(...o))},max(...o){return this.check(qe(...o))},length(...o){return this.check(Ke(...o))},nonempty(...o){return this.check(Ie(1,...o))},lowercase(o){return this.check(pt(o))},uppercase(o){return this.check(ft(o))},trim(){return this.check(bt())},normalize(...o){return this.check(yt(...o))},toLowerCase(){return this.check($t())},toUpperCase(){return this.check(xt())},slugify(){return this.check(kt())}})}),Et=p("ZodString",(t,r)=>{We.init(t,r),ii.init(t,r),t.email=n=>t.check($n(oi,n)),t.url=n=>t.check(lr(vr,n)),t.jwt=n=>t.check(Ln(bi,n)),t.emoji=n=>t.check(In(ai,n)),t.guid=n=>t.check(ur(pr,n)),t.uuid=n=>t.check(xn(ye,n)),t.uuidv4=n=>t.check(kn(ye,n)),t.uuidv6=n=>t.check(Sn(ye,n)),t.uuidv7=n=>t.check(wn(ye,n)),t.nanoid=n=>t.check(zn(si,n)),t.guid=n=>t.check(ur(pr,n)),t.cuid=n=>t.check(On(ci,n)),t.cuid2=n=>t.check(En(ui,n)),t.ulid=n=>t.check(Pn(li,n)),t.base64=n=>t.check(Un(vi,n)),t.base64url=n=>t.check(Rn(_i,n)),t.xid=n=>t.check(Tn(di,n)),t.ksuid=n=>t.check(jn(mi,n)),t.ipv4=n=>t.check(An(pi,n)),t.ipv6=n=>t.check(Cn(fi,n)),t.cidrv4=n=>t.check(Nn(gi,n)),t.cidrv6=n=>t.check(Dn(hi,n)),t.e164=n=>t.check(Zn(yi,n)),t.datetime=n=>t.check(nu(n)),t.date=n=>t.check(iu(n)),t.time=n=>t.check(ou(n)),t.duration=n=>t.check(au(n))});function mr(t){return Cs(Et,t)}var j=p("ZodStringFormat",(t,r)=>{T.init(t,r),ii.init(t,r)}),oi=p("ZodEmail",(t,r)=>{wa.init(t,r),j.init(t,r)});function ep(t){return $n(oi,t)}var pr=p("ZodGUID",(t,r)=>{ka.init(t,r),j.init(t,r)});function tp(t){return ur(pr,t)}var ye=p("ZodUUID",(t,r)=>{Sa.init(t,r),j.init(t,r)});function rp(t){return xn(ye,t)}function np(t){return kn(ye,t)}function ip(t){return Sn(ye,t)}function op(t){return wn(ye,t)}var vr=p("ZodURL",(t,r)=>{Ia.init(t,r),j.init(t,r)});function ap(t){return lr(vr,t)}function sp(t){return lr(vr,{protocol:te.httpProtocol,hostname:te.domain,...y.normalizeParams(t)})}var ai=p("ZodEmoji",(t,r)=>{za.init(t,r),j.init(t,r)});function cp(t){return In(ai,t)}var si=p("ZodNanoID",(t,r)=>{Oa.init(t,r),j.init(t,r)});function up(t){return zn(si,t)}var ci=p("ZodCUID",(t,r)=>{Ea.init(t,r),j.init(t,r)});function lp(t){return On(ci,t)}var ui=p("ZodCUID2",(t,r)=>{Pa.init(t,r),j.init(t,r)});function dp(t){return En(ui,t)}var li=p("ZodULID",(t,r)=>{Ta.init(t,r),j.init(t,r)});function mp(t){return Pn(li,t)}var di=p("ZodXID",(t,r)=>{ja.init(t,r),j.init(t,r)});function pp(t){return Tn(di,t)}var mi=p("ZodKSUID",(t,r)=>{Aa.init(t,r),j.init(t,r)});function fp(t){return jn(mi,t)}var pi=p("ZodIPv4",(t,r)=>{Ra.init(t,r),j.init(t,r)});function gp(t){return An(pi,t)}var yu=p("ZodMAC",(t,r)=>{La.init(t,r),j.init(t,r)});function hp(t){return Ds(yu,t)}var fi=p("ZodIPv6",(t,r)=>{Za.init(t,r),j.init(t,r)});function vp(t){return Cn(fi,t)}var gi=p("ZodCIDRv4",(t,r)=>{Ma.init(t,r),j.init(t,r)});function _p(t){return Nn(gi,t)}var hi=p("ZodCIDRv6",(t,r)=>{Fa.init(t,r),j.init(t,r)});function yp(t){return Dn(hi,t)}var vi=p("ZodBase64",(t,r)=>{Ba.init(t,r),j.init(t,r)});function bp(t){return Un(vi,t)}var _i=p("ZodBase64URL",(t,r)=>{Ha.init(t,r),j.init(t,r)});function $p(t){return Rn(_i,t)}var yi=p("ZodE164",(t,r)=>{Ga.init(t,r),j.init(t,r)});function xp(t){return Zn(yi,t)}var bi=p("ZodJWT",(t,r)=>{Wa.init(t,r),j.init(t,r)});function kp(t){return Ln(bi,t)}var Pt=p("ZodCustomStringFormat",(t,r)=>{Ja.init(t,r),j.init(t,r)});function Sp(t,r,n={}){return St(Pt,t,r,n)}function wp(t){return St(Pt,"hostname",te.hostname,t)}function Ip(t){return St(Pt,"hex",te.hex,t)}function zp(t,r){let n=r?.enc??"hex",o=`${t}_${n}`,e=te[o];if(!e)throw new Error(`Unrecognized hash format: ${o}`);return St(Pt,o,e,r)}var Tt=p("ZodNumber",(t,r)=>{dn.init(t,r),w.init(t,r),t._zod.processJSONSchema=(o,e,i)=>$c(t,o,e,i),hr(t,"ZodNumber",{gt(o,e){return this.check(ve(o,e))},gte(o,e){return this.check(J(o,e))},min(o,e){return this.check(J(o,e))},lt(o,e){return this.check(he(o,e))},lte(o,e){return this.check(re(o,e))},max(o,e){return this.check(re(o,e))},int(o){return this.check(ri(o))},safe(o){return this.check(ri(o))},positive(o){return this.check(ve(0,o))},nonnegative(o){return this.check(J(0,o))},negative(o){return this.check(he(0,o))},nonpositive(o){return this.check(re(0,o))},multipleOf(o,e){return this.check(De(o,e))},step(o,e){return this.check(De(o,e))},finite(){return this}});let n=t._zod.bag;t.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),t.isFinite=!0,t.format=n.format??null});function bu(t){return Fs(Tt,t)}var Xe=p("ZodNumberFormat",(t,r)=>{qa.init(t,r),Tt.init(t,r)});function ri(t){return Bs(Xe,t)}function Op(t){return Hs(Xe,t)}function Ep(t){return Gs(Xe,t)}function Pp(t){return Ws(Xe,t)}function Tp(t){return Js(Xe,t)}var jt=p("ZodBoolean",(t,r)=>{ir.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>xc(t,n,o,e)});function $u(t){return qs(jt,t)}var At=p("ZodBigInt",(t,r)=>{mn.init(t,r),w.init(t,r),t._zod.processJSONSchema=(o,e,i)=>kc(t,o,e,i),t.gte=(o,e)=>t.check(J(o,e)),t.min=(o,e)=>t.check(J(o,e)),t.gt=(o,e)=>t.check(ve(o,e)),t.gte=(o,e)=>t.check(J(o,e)),t.min=(o,e)=>t.check(J(o,e)),t.lt=(o,e)=>t.check(he(o,e)),t.lte=(o,e)=>t.check(re(o,e)),t.max=(o,e)=>t.check(re(o,e)),t.positive=o=>t.check(ve(BigInt(0),o)),t.negative=o=>t.check(he(BigInt(0),o)),t.nonpositive=o=>t.check(re(BigInt(0),o)),t.nonnegative=o=>t.check(J(BigInt(0),o)),t.multipleOf=(o,e)=>t.check(De(o,e));let n=t._zod.bag;t.minValue=n.minimum??null,t.maxValue=n.maximum??null,t.format=n.format??null});function jp(t){return Ys(At,t)}var $i=p("ZodBigIntFormat",(t,r)=>{Ka.init(t,r),At.init(t,r)});function Ap(t){return Qs($i,t)}function Cp(t){return ec($i,t)}var xu=p("ZodSymbol",(t,r)=>{Ya.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Sc(t,n,o,e)});function Np(t){return tc(xu,t)}var ku=p("ZodUndefined",(t,r)=>{Xa.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Ic(t,n,o,e)});function Dp(t){return rc(ku,t)}var Su=p("ZodNull",(t,r)=>{Qa.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>wc(t,n,o,e)});function wu(t){return nc(Su,t)}var Iu=p("ZodAny",(t,r)=>{es.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Ec(t,n,o,e)});function Up(){return ic(Iu)}var zu=p("ZodUnknown",(t,r)=>{ts.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Pc(t,n,o,e)});function Ye(){return oc(zu)}var Ou=p("ZodNever",(t,r)=>{rs.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Oc(t,n,o,e)});function xi(t){return ac(Ou,t)}var Eu=p("ZodVoid",(t,r)=>{ns.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>zc(t,n,o,e)});function Rp(t){return sc(Eu,t)}var _r=p("ZodDate",(t,r)=>{is.init(t,r),w.init(t,r),t._zod.processJSONSchema=(o,e,i)=>Tc(t,o,e,i),t.min=(o,e)=>t.check(J(o,e)),t.max=(o,e)=>t.check(re(o,e));let n=t._zod.bag;t.minDate=n.minimum?new Date(n.minimum):null,t.maxDate=n.maximum?new Date(n.maximum):null});function Zp(t){return cc(_r,t)}var Pu=p("ZodArray",(t,r)=>{os.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Vc(t,n,o,e),t.element=r.element,hr(t,"ZodArray",{min(n,o){return this.check(Ie(n,o))},nonempty(n){return this.check(Ie(1,n))},max(n,o){return this.check(qe(n,o))},length(n,o){return this.check(Ke(n,o))},unwrap(){return this.element}})});function yr(t,r){return dc(Pu,t,r)}function Lp(t){let r=t._zod.def.shape;return Si(Object.keys(r))}var br=p("ZodObject",(t,r)=>{as.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Bc(t,n,o,e),y.defineLazy(t,"shape",()=>r.shape),hr(t,"ZodObject",{keyof(){return Si(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:Ye()})},loose(){return this.clone({...this._zod.def,catchall:Ye()})},strict(){return this.clone({...this._zod.def,catchall:xi()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return y.extend(this,n)},safeExtend(n){return y.safeExtend(this,n)},merge(n){return y.merge(this,n)},pick(n){return y.pick(this,n)},omit(n){return y.omit(this,n)},partial(...n){return y.partial(Ii,this,n[0])},required(...n){return y.required(zi,this,n[0])}})});function Mp(t,r){let n={type:"object",shape:t??{},...y.normalizeParams(r)};return new br(n)}function Fp(t,r){return new br({type:"object",shape:t,catchall:xi(),...y.normalizeParams(r)})}function Vp(t,r){return new br({type:"object",shape:t,catchall:Ye(),...y.normalizeParams(r)})}var $r=p("ZodUnion",(t,r)=>{or.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Wn(t,n,o,e),t.options=r.options});function ki(t,r){return new $r({type:"union",options:t,...y.normalizeParams(r)})}var Tu=p("ZodXor",(t,r)=>{$r.init(t,r),ss.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Wn(t,n,o,e),t.options=r.options});function Bp(t,r){return new Tu({type:"union",options:t,inclusive:!1,...y.normalizeParams(r)})}var ju=p("ZodDiscriminatedUnion",(t,r)=>{$r.init(t,r),cs.init(t,r)});function Hp(t,r,n){return new ju({type:"union",options:r,discriminator:t,...y.normalizeParams(n)})}var Au=p("ZodIntersection",(t,r)=>{us.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Hc(t,n,o,e)});function Cu(t,r){return new Au({type:"intersection",left:t,right:r})}var Nu=p("ZodTuple",(t,r)=>{pn.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Gc(t,n,o,e),t.rest=n=>t.clone({...t._zod.def,rest:n})});function Du(t,r,n){let o=r instanceof S,e=o?n:r,i=o?r:null;return new Nu({type:"tuple",items:t,rest:i,...y.normalizeParams(e)})}var zt=p("ZodRecord",(t,r)=>{ls.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Wc(t,n,o,e),t.keyType=r.keyType,t.valueType=r.valueType});function Uu(t,r,n){return!r||!r._zod?new zt({type:"record",keyType:mr(),valueType:t,...y.normalizeParams(r)}):new zt({type:"record",keyType:t,valueType:r,...y.normalizeParams(n)})}function Gp(t,r,n){let o=G(t);return o._zod.values=void 0,new zt({type:"record",keyType:o,valueType:r,...y.normalizeParams(n)})}function Wp(t,r,n){return new zt({type:"record",keyType:t,valueType:r,mode:"loose",...y.normalizeParams(n)})}var Ru=p("ZodMap",(t,r)=>{ds.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Mc(t,n,o,e),t.keyType=r.keyType,t.valueType=r.valueType,t.min=(...n)=>t.check(_e(...n)),t.nonempty=n=>t.check(_e(1,n)),t.max=(...n)=>t.check(Ue(...n)),t.size=(...n)=>t.check(Je(...n))});function Jp(t,r,n){return new Ru({type:"map",keyType:t,valueType:r,...y.normalizeParams(n)})}var Zu=p("ZodSet",(t,r)=>{ms.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Fc(t,n,o,e),t.min=(...n)=>t.check(_e(...n)),t.nonempty=n=>t.check(_e(1,n)),t.max=(...n)=>t.check(Ue(...n)),t.size=(...n)=>t.check(Je(...n))});function qp(t,r){return new Zu({type:"set",valueType:t,...y.normalizeParams(r)})}var Ot=p("ZodEnum",(t,r)=>{ps.init(t,r),w.init(t,r),t._zod.processJSONSchema=(o,e,i)=>jc(t,o,e,i),t.enum=r.entries,t.options=Object.values(r.entries);let n=new Set(Object.keys(r.entries));t.extract=(o,e)=>{let i={};for(let a of o)if(n.has(a))i[a]=r.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Ot({...r,checks:[],...y.normalizeParams(e),entries:i})},t.exclude=(o,e)=>{let i={...r.entries};for(let a of o)if(n.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new Ot({...r,checks:[],...y.normalizeParams(e),entries:i})}});function Si(t,r){let n=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new Ot({type:"enum",entries:n,...y.normalizeParams(r)})}function Kp(t,r){return new Ot({type:"enum",entries:t,...y.normalizeParams(r)})}var Lu=p("ZodLiteral",(t,r)=>{fs.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Ac(t,n,o,e),t.values=new Set(r.values),Object.defineProperty(t,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function Yp(t,r){return new Lu({type:"literal",values:Array.isArray(t)?t:[t],...y.normalizeParams(r)})}var Mu=p("ZodFile",(t,r)=>{gs.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Dc(t,n,o,e),t.min=(n,o)=>t.check(_e(n,o)),t.max=(n,o)=>t.check(Ue(n,o)),t.mime=(n,o)=>t.check(_t(Array.isArray(n)?n:[n],o))});function Xp(t){return mc(Mu,t)}var Fu=p("ZodTransform",(t,r)=>{hs.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Lc(t,n,o,e),t._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Te(t.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(y.issue(i,n.value,r));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=t),n.issues.push(y.issue(a))}};let e=r.transform(n.value,n);return e instanceof Promise?e.then(i=>(n.value=i,n.fallback=!0,n)):(n.value=e,n.fallback=!0,n)}});function wi(t){return new Fu({type:"transform",transform:t})}var Ii=p("ZodOptional",(t,r)=>{fn.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Jn(t,n,o,e),t.unwrap=()=>t._zod.def.innerType});function fr(t){return new Ii({type:"optional",innerType:t})}var Vu=p("ZodExactOptional",(t,r)=>{vs.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Jn(t,n,o,e),t.unwrap=()=>t._zod.def.innerType});function Bu(t){return new Vu({type:"optional",innerType:t})}var Hu=p("ZodNullable",(t,r)=>{_s.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Jc(t,n,o,e),t.unwrap=()=>t._zod.def.innerType});function gr(t){return new Hu({type:"nullable",innerType:t})}function Qp(t){return fr(gr(t))}var Gu=p("ZodDefault",(t,r)=>{ys.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Kc(t,n,o,e),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function Wu(t,r){return new Gu({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():y.shallowClone(r)}})}var Ju=p("ZodPrefault",(t,r)=>{bs.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Yc(t,n,o,e),t.unwrap=()=>t._zod.def.innerType});function qu(t,r){return new Ju({type:"prefault",innerType:t,get defaultValue(){return typeof r=="function"?r():y.shallowClone(r)}})}var zi=p("ZodNonOptional",(t,r)=>{$s.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>qc(t,n,o,e),t.unwrap=()=>t._zod.def.innerType});function Ku(t,r){return new zi({type:"nonoptional",innerType:t,...y.normalizeParams(r)})}var Yu=p("ZodSuccess",(t,r)=>{xs.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Uc(t,n,o,e),t.unwrap=()=>t._zod.def.innerType});function ef(t){return new Yu({type:"success",innerType:t})}var Xu=p("ZodCatch",(t,r)=>{ks.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Xc(t,n,o,e),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function Qu(t,r){return new Xu({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}var el=p("ZodNaN",(t,r)=>{Ss.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Cc(t,n,o,e)});function tf(t){return lc(el,t)}var xr=p("ZodPipe",(t,r)=>{gn.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Qc(t,n,o,e),t.in=r.in,t.out=r.out});function ni(t,r){return new xr({type:"pipe",in:t,out:r})}var kr=p("ZodCodec",(t,r)=>{xr.init(t,r),ar.init(t,r)});function rf(t,r,n){return new kr({type:"pipe",in:t,out:r,transform:n.decode,reverseTransform:n.encode})}function nf(t){let r=t._zod.def;return new kr({type:"pipe",in:r.out,out:r.in,transform:r.reverseTransform,reverseTransform:r.transform})}var tl=p("ZodPreprocess",(t,r)=>{xr.init(t,r),ws.init(t,r)}),rl=p("ZodReadonly",(t,r)=>{Is.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>eu(t,n,o,e),t.unwrap=()=>t._zod.def.innerType});function nl(t){return new rl({type:"readonly",innerType:t})}var il=p("ZodTemplateLiteral",(t,r)=>{zs.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Nc(t,n,o,e)});function of(t,r){return new il({type:"template_literal",parts:t,...y.normalizeParams(r)})}var ol=p("ZodLazy",(t,r)=>{Ps.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>ru(t,n,o,e),t.unwrap=()=>t._zod.def.getter()});function al(t){return new ol({type:"lazy",getter:t})}var sl=p("ZodPromise",(t,r)=>{Es.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>tu(t,n,o,e),t.unwrap=()=>t._zod.def.innerType});function af(t){return new sl({type:"promise",innerType:t})}var cl=p("ZodFunction",(t,r)=>{Os.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Zc(t,n,o,e)});function sf(t){return new cl({type:"function",input:Array.isArray(t?.input)?Du(t?.input):t?.input??yr(Ye()),output:t?.output??Ye()})}var Sr=p("ZodCustom",(t,r)=>{Ts.init(t,r),w.init(t,r),t._zod.processJSONSchema=(n,o,e)=>Rc(t,n,o,e)});function cf(t){let r=new C({check:"custom"});return r._zod.check=t,r}function uf(t,r){return pc(Sr,t??(()=>!0),r)}function ul(t,r={}){return fc(Sr,t,r)}function ll(t,r){return gc(t,r)}var lf=hc,df=vc;function mf(t,r={}){let n=new Sr({type:"custom",check:"custom",fn:o=>o instanceof t,abort:!0,...y.normalizeParams(r)});return n._zod.bag.Class=t,n._zod.check=o=>{o.value instanceof t||o.issues.push({code:"invalid_type",expected:t.name,input:o.value,inst:n,path:[...n._zod.def.path??[]]})},n}var pf=(...t)=>_c({Codec:kr,Boolean:jt,String:Et},...t);function ff(t){let r=al(()=>ki([mr(t),bu(),$u(),wu(),yr(r),Uu(mr(),r)]));return r}function gf(t,r){return new tl({type:"pipe",in:wi(t),out:r})}var $y={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function xy(t){Z({customError:t})}function ky(){return Z().customError}var dl;dl||(dl={});var $={...dr,...Yn,iso:It},Sy=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function wy(t,r){let n=t.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":r??"draft-2020-12"}function Iy(t,r){if(!t.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=t.slice(1).split("/").filter(Boolean);if(n.length===0)return r.rootSchema;let o=r.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===o){let e=n[1];if(!e||!r.defs[e])throw new Error(`Reference not found: ${t}`);return r.defs[e]}throw new Error(`Reference not found: ${t}`)}function hf(t,r){if(t.not!==void 0){if(typeof t.not=="object"&&Object.keys(t.not).length===0)return $.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(t.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(t.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(t.if!==void 0||t.then!==void 0||t.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(t.dependentSchemas!==void 0||t.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(t.$ref){let e=t.$ref;if(r.refs.has(e))return r.refs.get(e);if(r.processing.has(e))return $.lazy(()=>{if(!r.refs.has(e))throw new Error(`Circular reference not resolved: ${e}`);return r.refs.get(e)});r.processing.add(e);let i=Iy(e,r),a=B(i,r);return r.refs.set(e,a),r.processing.delete(e),a}if(t.enum!==void 0){let e=t.enum;if(r.version==="openapi-3.0"&&t.nullable===!0&&e.length===1&&e[0]===null)return $.null();if(e.length===0)return $.never();if(e.length===1)return $.literal(e[0]);if(e.every(a=>typeof a=="string"))return $.enum(e);let i=e.map(a=>$.literal(a));return i.length<2?i[0]:$.union([i[0],i[1],...i.slice(2)])}if(t.const!==void 0)return $.literal(t.const);let n=t.type;if(Array.isArray(n)){let e=n.map(i=>{let a={...t,type:i};return hf(a,r)});return e.length===0?$.never():e.length===1?e[0]:$.union(e)}if(!n)return $.any();let o;switch(n){case"string":{let e=$.string();if(t.format){let i=t.format;i==="email"?e=e.check($.email()):i==="uri"||i==="uri-reference"?e=e.check($.url()):i==="uuid"||i==="guid"?e=e.check($.uuid()):i==="date-time"?e=e.check($.iso.datetime()):i==="date"?e=e.check($.iso.date()):i==="time"?e=e.check($.iso.time()):i==="duration"?e=e.check($.iso.duration()):i==="ipv4"?e=e.check($.ipv4()):i==="ipv6"?e=e.check($.ipv6()):i==="mac"?e=e.check($.mac()):i==="cidr"?e=e.check($.cidrv4()):i==="cidr-v6"?e=e.check($.cidrv6()):i==="base64"?e=e.check($.base64()):i==="base64url"?e=e.check($.base64url()):i==="e164"?e=e.check($.e164()):i==="jwt"?e=e.check($.jwt()):i==="emoji"?e=e.check($.emoji()):i==="nanoid"?e=e.check($.nanoid()):i==="cuid"?e=e.check($.cuid()):i==="cuid2"?e=e.check($.cuid2()):i==="ulid"?e=e.check($.ulid()):i==="xid"?e=e.check($.xid()):i==="ksuid"&&(e=e.check($.ksuid()))}typeof t.minLength=="number"&&(e=e.min(t.minLength)),typeof t.maxLength=="number"&&(e=e.max(t.maxLength)),t.pattern&&(e=e.regex(new RegExp(t.pattern))),o=e;break}case"number":case"integer":{let e=n==="integer"?$.number().int():$.number();typeof t.minimum=="number"&&(e=e.min(t.minimum)),typeof t.maximum=="number"&&(e=e.max(t.maximum)),typeof t.exclusiveMinimum=="number"?e=e.gt(t.exclusiveMinimum):t.exclusiveMinimum===!0&&typeof t.minimum=="number"&&(e=e.gt(t.minimum)),typeof t.exclusiveMaximum=="number"?e=e.lt(t.exclusiveMaximum):t.exclusiveMaximum===!0&&typeof t.maximum=="number"&&(e=e.lt(t.maximum)),typeof t.multipleOf=="number"&&(e=e.multipleOf(t.multipleOf)),o=e;break}case"boolean":{o=$.boolean();break}case"null":{o=$.null();break}case"object":{let e={},i=t.properties||{},a=new Set(t.required||[]);for(let[u,l]of Object.entries(i)){let d=B(l,r);e[u]=a.has(u)?d:d.optional()}if(t.propertyNames){let u=B(t.propertyNames,r),l=t.additionalProperties&&typeof t.additionalProperties=="object"?B(t.additionalProperties,r):$.any();if(Object.keys(e).length===0){o=$.record(u,l);break}let d=$.object(e).passthrough(),m=$.looseRecord(u,l);o=$.intersection(d,m);break}if(t.patternProperties){let u=t.patternProperties,l=Object.keys(u),d=[];for(let g of l){let _=B(u[g],r),x=$.string().regex(new RegExp(g));d.push($.looseRecord(x,_))}let m=[];if(Object.keys(e).length>0&&m.push($.object(e).passthrough()),m.push(...d),m.length===0)o=$.object({}).passthrough();else if(m.length===1)o=m[0];else{let g=$.intersection(m[0],m[1]);for(let _=2;_<m.length;_++)g=$.intersection(g,m[_]);o=g}break}let s=$.object(e);t.additionalProperties===!1?o=s.strict():typeof t.additionalProperties=="object"?o=s.catchall(B(t.additionalProperties,r)):o=s.passthrough();break}case"array":{let e=t.prefixItems,i=t.items;if(e&&Array.isArray(e)){let a=e.map(u=>B(u,r)),s=i&&typeof i=="object"&&!Array.isArray(i)?B(i,r):void 0;s?o=$.tuple(a).rest(s):o=$.tuple(a),typeof t.minItems=="number"&&(o=o.check($.minLength(t.minItems))),typeof t.maxItems=="number"&&(o=o.check($.maxLength(t.maxItems)))}else if(Array.isArray(i)){let a=i.map(u=>B(u,r)),s=t.additionalItems&&typeof t.additionalItems=="object"?B(t.additionalItems,r):void 0;s?o=$.tuple(a).rest(s):o=$.tuple(a),typeof t.minItems=="number"&&(o=o.check($.minLength(t.minItems))),typeof t.maxItems=="number"&&(o=o.check($.maxLength(t.maxItems)))}else if(i!==void 0){let a=B(i,r),s=$.array(a);typeof t.minItems=="number"&&(s=s.min(t.minItems)),typeof t.maxItems=="number"&&(s=s.max(t.maxItems)),o=s}else o=$.array($.any());break}default:throw new Error(`Unsupported type: ${n}`)}return o}function B(t,r){if(typeof t=="boolean")return t?$.any():$.never();let n=hf(t,r),o=t.type||t.enum!==void 0||t.const!==void 0;if(t.anyOf&&Array.isArray(t.anyOf)){let s=t.anyOf.map(l=>B(l,r)),u=$.union(s);n=o?$.intersection(n,u):u}if(t.oneOf&&Array.isArray(t.oneOf)){let s=t.oneOf.map(l=>B(l,r)),u=$.xor(s);n=o?$.intersection(n,u):u}if(t.allOf&&Array.isArray(t.allOf))if(t.allOf.length===0)n=o?n:$.any();else{let s=o?n:B(t.allOf[0],r),u=o?0:1;for(let l=u;l<t.allOf.length;l++)s=$.intersection(s,B(t.allOf[l],r));n=s}t.nullable===!0&&r.version==="openapi-3.0"&&(n=$.nullable(n)),t.readOnly===!0&&(n=$.readonly(n)),t.default!==void 0&&(n=n.default(t.default));let e={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of i)s in t&&(e[s]=t[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in t&&(e[s]=t[s]);for(let s of Object.keys(t))Sy.has(s)||(e[s]=t[s]);return Object.keys(e).length>0&&r.registry.add(n,e),t.description&&(n=n.describe(t.description)),n}function vf(t,r){if(typeof t=="boolean")return t?$.any():$.never();let n;try{n=JSON.parse(JSON.stringify(t))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=wy(n,r?.defaultTarget),e=n.$defs||n.definitions||{},i={version:o,defs:e,refs:new Map,processing:new Set,rootSchema:n,registry:r?.registry??V};return B(n,i)}var ml={};xe(ml,{bigint:()=>Py,boolean:()=>Ey,date:()=>Ty,number:()=>Oy,string:()=>zy});function zy(t){return Ns(Et,t)}function Oy(t){return Vs(Tt,t)}function Ey(t){return Ks(jt,t)}function Py(t){return Xs(At,t)}function Ty(t){return uc(_r,t)}Z(hn());var jy=c.string().min(1),Ay=c.object({type:c.literal("named"),name:c.enum(["second","minute","hour","day","week","month"])}),Cy=c.object({type:c.literal("custom"),seconds:c.number().int().positive(),label:c.string().optional()}),Ny=c.discriminatedUnion("type",[Ay,Cy]),Me=c.object({dimension:jy,window:Ny,capacity:c.number().nonnegative(),enforcement:c.enum(["enforce","track"]).optional(),acknowledgeUnreachable:c.boolean().optional()}),Kw=c.array(Me).max(20);var de=c.enum(["preserve_current_period","switch_immediately","switch_immediately_prorate","new_subscribers_only"]),wr=c.object({default:de.default("preserve_current_period"),proration:c.enum(["none","prorate","credit"]).default("none"),when:c.object({price_increase:de.optional(),price_decrease:de.optional(),feature_added:de.optional(),feature_removed:de.optional(),limit_increased:de.optional(),limit_reduced:de.optional(),credit_increased:de.optional(),credit_reduced:de.optional(),rating_changed:de.optional()}).strict().default({price_increase:"preserve_current_period",price_decrease:"switch_immediately",feature_added:"switch_immediately",feature_removed:"preserve_current_period",limit_increased:"switch_immediately",limit_reduced:"preserve_current_period",credit_increased:"switch_immediately",credit_reduced:"preserve_current_period",rating_changed:"preserve_current_period"}),allowImmediatePriceIncrease:c.boolean().default(!1),allowImmediateEntitlementReduction:c.boolean().default(!1)}).strict().superRefine((t,r)=>{let n=new Set(["switch_immediately","switch_immediately_prorate"]);n.has(t.when.price_increase??t.default)&&!t.allowImmediatePriceIncrease&&r.addIssue({code:"custom",path:["when","price_increase"],message:"price_increase cannot switch immediately without allowImmediatePriceIncrease: true"});for(let o of["feature_removed","limit_reduced","credit_reduced"])n.has(t.when[o]??t.default)&&!t.allowImmediateEntitlementReduction&&r.addIssue({code:"custom",path:["when",o],message:`${o} cannot switch immediately without allowImmediateEntitlementReduction: true`})});var Dy=c.object({kind:c.literal("recurring"),amount_cents:c.number().int().nonnegative()}),Uy=c.object({kind:c.literal("one_time"),amount_cents:c.number().int().nonnegative()}),Ry=c.object({kind:c.literal("promotional"),amount_cents:c.number().int().nonnegative(),label:c.string().min(1).max(120),expires_after_days:c.number().int().positive().optional()}),Zy=c.object({kind:c.literal("trial")}),Ly=c.object({kind:c.literal("rollover"),percent:c.number().int().min(0).max(100)}),My=c.object({kind:c.literal("top_up"),sku:c.string().min(1).max(120),label:c.string().min(1).max(200),price_cents:c.number().int().positive(),credit_cents:c.number().int().positive()}),Fy=c.object({kind:c.literal("auto_recharge"),threshold_cents:c.number().int().nonnegative(),refill_cents:c.number().int().positive()}),ne=c.discriminatedUnion("kind",[Dy,Uy,Ry,Zy,Ly,My,Fy]);function Ir(t,r,n=["grants"]){if(!t)return;let o=0,e=0;for(let i of t)i.kind==="recurring"?o+=1:i.kind==="one_time"&&(e+=1);o>1&&r.addIssue({code:"custom",message:"At most one `recurring` grant is allowed \u2014 recurring credit is a single canonical entry.",path:n}),e>1&&r.addIssue({code:"custom",message:"At most one `one_time` grant is allowed \u2014 one-time credit is a single canonical entry.",path:n})}function Vy(t){let r=[];return t.grants&&t.grants.length>0&&r.push(...t.grants),(t.trial_days??0)>0&&!r.some(n=>n.kind==="trial")&&r.push({kind:"trial"}),r}function _f(t,r){return Vy(t).find(n=>n.kind===r)}function zr(t){return _f(t,"recurring")?.amount_cents??0}function Ct(t){return _f(t,"one_time")?.amount_cents??0}var yf=c.enum(["linear","active_count"]);var By=c.object({up_to:c.number().int().positive().nullable(),price_per_unit_micros:c.number().int().nonnegative()}),Hy=c.object({strategy:c.enum(["graduated","volume"]),tiers:c.array(By).min(1).max(20)}),ie=c.object({dimension:c.string().min(1).max(64).regex(/^[a-z0-9_]+$/,"Meter dimension must be lowercase alphanumeric with underscores"),kind:yf.default("linear"),price_per_unit_micros:c.number().int().nonnegative().default(0),tiered:Hy.optional(),included_units:c.number().int().positive().optional()}).superRefine((t,r)=>{if(t.tiered&&t.price_per_unit_micros>0&&r.addIssue({code:"custom",message:"`tiered` is mutually exclusive with a non-zero `price_per_unit_micros` \u2014 drop one",path:["tiered"]}),t.included_units!==void 0&&t.tiered&&r.addIssue({code:"custom",message:"`included_units` is mutually exclusive with `tiered` \u2014 a tiered schedule already expresses the included allotment as a zero-priced first tier",path:["included_units"]}),t.tiered){let n=0,o=!1;for(let e=0;e<t.tiered.tiers.length;e++){let i=t.tiered.tiers[e];if(o){r.addIssue({code:"custom",message:"Open-ended tier (`up_to: null`) must be the final tier",path:["tiered","tiers",e,"up_to"]});break}if(i.up_to===null){o=!0;continue}i.up_to<=n&&r.addIssue({code:"custom",message:`Tier upper bounds must be strictly ascending (tier ${e} = ${i.up_to} <= previous ${n})`,path:["tiered","tiers",e,"up_to"]}),n=i.up_to}o||r.addIssue({code:"custom",message:"The final tier of a `tiered` schedule must be open-ended (`up_to: null`)",path:["tiered","tiers",t.tiered.tiers.length-1,"up_to"]})}}),me=c.enum(["month","year"]),Gy=c.object({meters:c.array(ie).default([]),recurring_fee_cents:c.number().int().nonnegative().default(0),billing_interval:me.default("month"),grants:c.array(ne).max(40).default([]),trial_days:c.number().int().nonnegative().default(0),max_monthly_spend_cents:c.number().int().nonnegative().optional()});var Wy=c.enum(["NONE","PRORATE","CREDIT"]).default("NONE"),Jy={meters:c.array(ie).default([]),recurring_fee_cents:c.number().int().nonnegative().default(0),billing_interval:me.default("month"),trial_days:c.number().int().nonnegative().default(0),max_monthly_spend_cents:c.number().int().nonnegative().optional(),min_monthly_spend_cents:c.number().int().nonnegative().optional(),grants:c.array(ne).max(40).default([])},qy={meters:c.array(ie).optional(),recurring_fee_cents:c.number().int().nonnegative().optional(),billing_interval:me.optional(),trial_days:c.number().int().nonnegative().optional(),max_monthly_spend_cents:c.number().int().nonnegative().optional(),min_monthly_spend_cents:c.number().int().nonnegative().optional(),grants:c.array(ne).max(40).optional()},Ky=c.object({id:c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Variant id must be lowercase alphanumeric with hyphens/underscores"),label:c.string().max(200).optional(),rolloutPercent:c.number().int().min(0).max(100),assignmentSeed:c.string().min(1).max(100).default("default"),prorationOnRollback:Wy,...qy,limits:c.array(Me).max(20).optional(),featureGates:c.record(c.string(),c.boolean()).optional(),capability_limits:c.record(c.string().min(1).max(120),c.union([c.number().int().nonnegative(),c.boolean()])).optional(),overageBehavior:c.enum(["block","allow_and_bill"]).optional()}),bf=Ky.superRefine((t,r)=>{Ir(t.grants,r)}),$f=c.object({key:c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Plan key must be lowercase alphanumeric with hyphens/underscores"),name:c.string().min(1).max(100),description:c.string().max(500).optional(),details:c.array(c.string().max(200)).max(10).optional(),...Jy,free:c.boolean().default(!1),limits:c.array(Me).max(20).default([]),featureGates:c.record(c.string(),c.boolean()).optional(),capability_limits:c.record(c.string().min(1).max(120),c.union([c.number().int().nonnegative(),c.boolean()])).default({}),overageBehavior:c.enum(["block","allow_and_bill"]).default("block"),selfServeEnabled:c.boolean().default(!0),legacy:c.boolean().optional().default(!1),variants:c.array(bf).max(4).optional(),archive:c.object({at:c.string().datetime().optional(),transitionTo:c.string().optional(),strategy:c.enum(["auto","explicit","block"]).default("auto")}).optional()}),pl=$f.superRefine((t,r)=>{Ir(t.grants,r)});var fl=["subscription.created","subscription.updated","subscription.canceled","payment.succeeded","payment.failed","rate_limit.exceeded","entitlement.changed","usage.threshold_reached"],Nt=c.enum(fl);var Yy=/^\$\{[A-Z][A-Z0-9_]{0,127}\}$/,gl=c.string().min(3).max(200).refine(t=>Yy.test(t),{message:"secret must use ${VAR} interpolation syntax (e.g. ${WEBHOOK_SECRET}); raw secrets in YAML are rejected. Define the env var in the per-product secret store and reference it here."}),hl=c.object({maxAttempts:c.number().int().min(1).max(20).default(5),backoff:c.enum(["exponential","fixed"]).default("exponential")}),xf=c.object({id:c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Webhook endpoint id must be lowercase alphanumeric with hyphens/underscores"),url:c.string().url("webhooks.endpoints[].url must be a valid URL"),secret:gl,events:c.array(Nt).min(1,"webhooks.endpoints[].events must subscribe to \u2265 1 event"),enabled:c.boolean().default(!0),retryPolicy:hl.default({maxAttempts:5,backoff:"exponential"})}),Or=c.object({endpoints:c.array(xf).max(50).default([])});var Xy=c.object({meters:c.array(ie).optional(),recurring_fee_cents:c.number().int().nonnegative().optional(),billing_interval:me.optional(),grants:c.array(ne).max(40).optional(),trial_days:c.number().int().nonnegative().optional(),max_monthly_spend_cents:c.number().int().nonnegative().optional(),limits:c.array(Me).max(20).optional(),featureGates:c.record(c.string(),c.boolean()).optional(),overageBehavior:c.enum(["block","allow_and_bill"]).optional(),selfServeEnabled:c.boolean().optional(),legacy:c.boolean().optional()}).strict(),Qy=c.object({url:c.string().url().optional(),secret:gl.optional(),events:c.array(Nt).optional(),enabled:c.boolean().optional(),retryPolicy:hl.partial().optional()}).strict(),eb=c.object({plans:c.record(c.string(),Xy).optional(),webhooks:c.object({endpoints:c.record(c.string(),Qy).optional()}).strict().optional()}).strict(),Er=c.record(c.string().min(1).max(64),eb);var kf=1,Sf=["plans_table","usage_card","api_keys_panel","billing_summary","credit_balance","feature_panel","product_docs","audit_log","team_panel","markdown"],wf=["/","/pricing","/dashboard","/dashboard/*","/settings","/settings/*","/team","/audit-log","/docs","/docs/*","/terms","/privacy","/persona","/persona-sign-in"],If=c.string().min(1).max(200).regex(/^\/[a-zA-Z0-9_./-]*$/,"path must start with / and contain only [a-zA-Z0-9_./-]"),vl=c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/),zf=c.object({label:c.string().min(1).max(80),path:If,capability:vl.optional()}),Of=c.enum(Sf),Ef=c.object({component:Of,props:c.record(c.string().min(1).max(80),c.unknown()).optional(),capability:vl.optional(),gateMode:c.enum(["hide","disable","upsell"]).default("hide")}),Pf=c.object({path:If,title:c.string().min(1).max(120),requiresAuth:c.boolean(),capability:vl.optional(),components:c.array(Ef).max(12).default([])}),Pr=c.object({version:c.literal(kf),nav:c.array(zf).max(12).default([]),pages:c.array(Pf).max(24).default([])}).superRefine((t,r)=>{let n=new Set;t.pages.forEach((o,e)=>{n.has(o.path)&&r.addIssue({code:"custom",message:`duplicate frontend page path "${o.path}"`,path:["pages",e,"path"]}),n.add(o.path),Tf(o.path)&&r.addIssue({code:"custom",message:`frontend page path "${o.path}" is reserved by the template`,path:["pages",e,"path"]})})});function Tf(t){return wf.some(r=>{if(r.endsWith("/*")){let n=r.slice(0,-2);return t===n||t.startsWith(`${n}/`)}return t===r})}var _l=c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Plan key must be lowercase alphanumeric with hyphens/underscores"),jf=c.string().min(1).max(100),tb=c.object({plan:_l,version:jf.optional()}),rb=c.object({plan:_l,version:c.literal("head").default("head")}),nb=c.object({plan:_l,version:jf}),Af=c.enum(["grandfather","next_renewal","by_date","immediate","opt_in"]),Cf=c.enum(["none","prorate","credit"]),Nf=c.object({effective:Af,date:c.string().datetime().optional(),proration:Cf.optional()}).superRefine((t,r)=>{t.effective==="by_date"&&t.date===void 0&&r.addIssue({code:"custom",path:["date"],message:"existingCustomers.date is required when effective is by_date"})}),Df=c.object({subscriber:c.string().min(1).max(200),pinTo:nb,until:c.string().datetime().optional(),notes:c.string().max(1e3).optional()}),Uf=c.object({id:c.string().min(1).max(120).regex(/^[a-z0-9][a-z0-9_.-]*$/,"Migration id must be lowercase alphanumeric with dots, hyphens, or underscores"),from:tb,to:rb,newCustomers:c.literal("immediate").default("immediate"),existingCustomers:Nf,pins:c.array(Df).max(50).default([])}),Tr=c.array(Uf).superRefine((t,r)=>{let n=new Set;t.forEach((o,e)=>{n.has(o.id)&&r.addIssue({code:"custom",path:[e,"id"],message:`duplicate migration id "${o.id}"`}),n.add(o.id)})});var Rf=c.enum(["subscription","subject"]),Zf=c.enum(["reported","action_inferred"]),Lf=c.string().min(1).max(100).regex(/^[a-z0-9_.:-]+$/),Mf=c.object({name:Lf,display:c.string().min(1).max(120).optional(),scope:Rf.default("subscription"),subjectType:c.string().min(1).max(64).regex(/^[a-zA-Z0-9_.:-]+$/).optional(),countSource:Zf.default("reported")}).superRefine((t,r)=>{t.scope==="subject"&&!t.subjectType&&r.addIssue({code:"custom",path:["subjectType"],message:"subjectType is required when resource scope is subject"}),t.scope==="subscription"&&t.subjectType&&r.addIssue({code:"custom",path:["subjectType"],message:"subjectType is only valid for subject-scoped counted resources"})}),jr=c.array(Mf).max(100).default([]);var ib=c.object({key:c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"AddOn key must be lowercase alphanumeric with hyphens/underscores"),name:c.string().min(1).max(100),description:c.string().max(500).optional(),recurring_fee_cents:c.number().int().nonnegative().default(0),billing_interval:me.default("month"),meters:c.array(ie).default([]),grants:c.array(ne).max(40).default([]),capability_limits:c.record(c.string().min(1).max(120),c.union([c.number().int().nonnegative(),c.boolean()])).default({}),featureGates:c.record(c.string(),c.boolean()).optional(),selfServeEnabled:c.boolean().default(!0)}),Oi=c.record(c.string().min(1).max(64),ib).default({}),ob=c.enum(["active","canceled","paused","pending_activation"]),TI=c.object({addOnKey:c.string().min(1).max(64),status:ob.default("active"),activatedAt:c.string().datetime().optional(),canceledAt:c.string().datetime().nullable().optional(),stripeSubscriptionItemId:c.string().optional()});function Ff(t,r){t.usagePricing!==void 0&&r.addIssue({code:"custom",path:["usagePricing"],message:"usagePricing is not supported. Define usage.meters.<key>.rating instead."})}function Vf(t,r){t.filter(o=>o.free).length>1&&r.addIssue({code:"custom",path:["plans"],message:"Only one free plan is allowed per product"}),t.forEach((o,e)=>{o.free&&(ab(o,e,r),sb(o,e,r))})}function ab(t,r,n){(Kf(t)??0)!==0&&n.addIssue({code:"custom",path:["plans",r,"recurring_fee_cents"],message:"Free plans must have zero price"})}function sb(t,r,n){t.limits.some(e=>!e.enforcement||e.enforcement==="enforce")||n.addIssue({code:"custom",path:["plans",r,"limits"],message:"Free plans must include at least one hard enforced limit"})}function Bf(t,r){let n=new Map;t.forEach((o,e)=>{if(o.free)return;let i=Kf(o);if(i===void 0||i<=0)return;let a=mb(o,i),s=n.get(a);if(s){r.addIssue({code:"custom",path:["plans",e,"recurring_fee_cents"],message:`Paid plan price duplicates plan "${s}" (${a})`});return}n.set(a,o.key)})}function Hf(t,r){let n=new Set((t.metering?.meters??[]).map(e=>e.key).filter(e=>typeof e=="string"&&e.length>0)),o=new Set(Object.keys(t.usage?.meters??{}));t.plans.forEach((e,i)=>{let a=e.meters;a&&a.forEach((s,u)=>{let l=s.dimension;typeof l!="string"||l.length===0||n.has(l)||o.has(l)||r.addIssue({code:"custom",path:["plans",i,"meters",u,"dimension"],message:`Plan "${e.key}" prices meter "${l}" but no metering.meters[] entry and no usage.meters[] entry declares it.`})})})}function Gf(t,r){if(!t.features)return;let n=new Set(t.plans.map(o=>o.key));for(let[o,e]of Object.entries(t.features)){if(!e.plans)continue;e.plans.forEach((a,s)=>{n.has(a)||r.addIssue({code:"custom",path:["features",o,"plans",s],message:`Feature "${o}" references unknown plan "${a}"`})});let i=new Set;e.plans.forEach((a,s)=>{i.has(a)&&r.addIssue({code:"custom",path:["features",o,"plans",s],message:`Feature "${o}" lists plan "${a}" more than once`}),i.add(a)})}}function Wf(t,r){if(!t.features)return;let n=new Set((t.metering?.meters??[]).map(e=>e.key).filter(e=>typeof e=="string"&&e.length>0)),o=!1;for(let[e,i]of Object.entries(t.features))(i.routes??[]).forEach((s,u)=>{let l=Jf(s);l.length!==0&&(o=!0,l.forEach((d,m)=>{n.has(d)||r.addIssue({code:"custom",path:["features",e,"routes",u,"metering",m],message:`Route references unknown meter "${d}". Declare it in metering.meters[].`})}))});o&&n.size===0&&r.addIssue({code:"custom",path:["metering","meters"],message:"One or more routes declare metering keys but `metering.meters[]` is empty. Declare meters at the product level first."})}function cb(t,r){let n=new Map;for(let o of t.plans)n.set(o.key,new Set);if(!t.features){for(let o of n.values())for(let e of r)o.add(e);return n}for(let o of Object.values(t.features))ub(o,n);return n}function ub(t,r){let n=t.plans??[],o=t.routes??[];for(let e of n){let i=r.get(e);if(i)for(let a of o){if(a.unmetered===!0)continue;let s=Jf(a);if(s.length>0){for(let u of s)i.add(u);continue}}}}function Jf(t){let r=new Set;for(let n of Object.keys(t.metering?.defaults??{}))r.add(n);for(let n of t.metering?.reports??[])r.add(n);for(let n of Object.keys(t.metering?.estimates??{}))r.add(n);return[...r]}function lb(t){if(!t||typeof t!="object")return null;let r=t;return typeof r.dimension=="string"?r.dimension:null}var db=new Set(["credits"]);function qf(t,r){if(!t.plans||t.plans.length===0)return;let n=new Set((t.metering?.meters??[]).map(i=>i.key).filter(i=>typeof i=="string"&&i.length>0)),o=new Set(Object.keys(t.usage?.meters??{})),e=cb(t,n);t.plans.forEach((i,a)=>{let s=i.limits??[],u=e.get(i.key)??new Set;s.forEach((l,d)=>{if(l&&typeof l=="object"?l.acknowledgeUnreachable===!0:!1)return;let g=lb(l);g&&(u.has(g)||o.has(g)||db.has(g)||r.addIssue({code:"custom",path:["plans",a,"limits",d,"meter"],message:`Plan "${i.key}" limits meter "${g}" but no route in any granted feature emits this meter, and the meter is not declared under usage.meters either. Either grant a feature whose routes meter "${g}" to this plan, declare the meter under metering.meters[] or usage.meters, or set acknowledgeUnreachable: true if the limit is intentional (e.g. soft budget).`}))})})}function Kf(t){return t.recurring_fee_cents}function mb(t,r){return`USD:month:${r}`}var Yf=c.object({subdomain:c.string().min(1).max(63).regex(/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/,"Subdomain must be lowercase alphanumeric with optional hyphens")}),pb=c.enum(["exact_pre_request","estimated_then_settled","postpaid","strict_concurrency"]),Ei=c.object({key:c.string().min(1).max(64).regex(/^[a-z0-9_]+$/,"Meter key must be lowercase alphanumeric with underscores"),display:c.string().min(1).max(100),unit:c.string().max(20).optional(),estimate:c.number().finite().nonnegative().optional(),routeDefault:c.number().finite().nonnegative().optional(),enforcementType:pb.default("estimated_then_settled"),aggregation:c.enum(["SUM","COUNT","MAX","UNIQUE_COUNT","LATEST"]).default("COUNT"),window:c.enum(["minute","hour","day","month","billing_period"]).default("billing_period"),valueProperty:c.string().optional(),uniqueProperty:c.string().optional(),groupBy:c.array(c.string()).optional(),eventCode:c.string().optional()}),Xf=c.string().min(1).max(64).regex(/^[a-z0-9_]+$/,"Usage measure must be lowercase alphanumeric with underscores"),fb=c.enum(["pass_through","markup","fixed_margin","customer_rate"]),gb=c.object({source:c.literal("fixed"),rates:c.record(c.string().min(1),c.record(Xf,c.number().int().nonnegative()))}),hb=c.object({source:c.literal("provider_catalog"),catalog:c.string().min(1).max(100),pricePolicy:fb.default("pass_through"),markupPercent:c.number().nonnegative().max(1e4).optional(),marginMicros:c.number().int().nonnegative().optional()}),vb=c.object({source:c.literal("upstream_reported"),amountField:c.string().min(1).max(500),currencyField:c.string().min(1).max(500).optional()}),_b=c.object({source:c.literal("external_rate_api"),resolver:c.string().min(1).max(100),configRef:c.string().min(1).max(200).optional()}),yb=c.object({source:c.literal("custom"),resolver:c.string().min(1).max(100),configRef:c.string().min(1).max(200).optional()}),Qf=c.discriminatedUnion("source",[gb,hb,vb,_b,yb]),eg=c.object({selector:c.string().min(1).max(100).optional(),measures:c.array(Xf).min(1).max(20),rating:Qf.optional()}),tg=c.object({meters:c.record(c.string().min(1).max(64).regex(/^[a-z0-9_]+$/),eg)}),bb=c.object({defaults:c.record(c.string().min(1).max(64),c.number().finite().nonnegative()).optional(),reports:c.array(c.string().min(1).max(64)).max(20).optional(),estimates:c.record(c.string().min(1).max(64),c.number().finite().nonnegative()).optional(),onStatusCodes:c.union([c.string().min(1).max(100),c.array(c.number().int().min(100).max(599)).min(1).max(100)]).optional()}),rg=c.object({method:c.enum(["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","*"]).default("*"),path:c.string().min(1).max(500).regex(/^\/[a-zA-Z0-9_/:.{}*-]*$/,"path must start with / and contain only [a-zA-Z0-9_/:.{}*-]"),unmetered:c.boolean().optional(),metering:bb.optional(),inheritDefaultMeters:c.boolean().optional()}).strict(),ng=c.object({description:c.string().max(500).optional(),routes:c.array(rg).min(1).max(50),plans:c.array(c.string().min(1)).min(1).max(20)}),ig=c.record(c.string().min(1).max(100).regex(/^[a-z0-9_.:-]+$/),ng),og=c.enum(["report","pull_request"]),ag=c.enum(["safe","non_blocking","economic_risk","blocking"]),Pi=c.object({cleanup:c.object({enabled:c.boolean().default(!1),mode:og.default("report")}).default({enabled:!1,mode:"report"}),change_approval:c.object({auto_merge_max_risk:c.enum(["none","safe","non_blocking"]).default("none"),require_human_for:c.array(ag).default(["economic_risk","blocking"])}).default({auto_merge_max_risk:"none",require_human_for:["economic_risk","blocking"]})}).default({cleanup:{enabled:!1,mode:"report"},change_approval:{auto_merge_max_risk:"none",require_human_for:["economic_risk","blocking"]}}),sg=c.enum(["org_only","org_and_user"]),cg=c.enum(["clerk","test-personas"]),Ti=c.object({identity_requirement:sg.optional(),context_tokens:c.object({enabled:c.boolean().default(!0)}).optional(),portal_auth:c.object({strategy:cg}).optional()}),Qe=c.object({product:c.object({name:c.string().min(1).max(100),displayName:c.string().max(200).optional(),description:c.string().max(2e3).optional(),baseUrl:c.string().url("baseUrl must be a valid URL"),sandboxBaseUrl:c.string().url("sandboxBaseUrl must be a valid URL").optional(),visibility:c.enum(["public","private"]).default("public"),logoUrl:c.string().url().optional(),primaryColor:c.string().regex(/^#[0-9a-fA-F]{6}$/).optional(),envBranchPrefix:c.string().max(50).nullable().optional()}),gateway:c.object({authHeader:c.string().min(1).max(100).default("x-api-key"),upstreamAuth:c.object({type:c.enum(["none","static_bearer"]),token:c.string().optional()}).default({type:"none"})}),metering:c.object({meters:c.array(Ei).max(10).default([]),billOn4xx:c.boolean().default(!1)}).default({meters:[],billOn4xx:!1}),usage:tg.optional(),usagePricing:c.never({error:"usagePricing is not supported. Define usage.meters.<key>.rating instead."}).optional(),features:ig.optional(),resources:jr,policies:Pi,customer_context:Ti.optional(),frontend:Pr.optional(),migrations:Tr.optional(),billing:c.object({gracePeriodDays:c.number().int().nonnegative().default(3),applyLimitUpgradesInstantly:c.boolean().optional(),subscriberChangePolicy:wr.default({default:"preserve_current_period",proration:"none",when:{price_increase:"preserve_current_period",price_decrease:"switch_immediately",feature_added:"switch_immediately",feature_removed:"preserve_current_period",limit_increased:"switch_immediately",limit_reduced:"preserve_current_period",credit_increased:"switch_immediately",credit_reduced:"preserve_current_period",rating_changed:"preserve_current_period"},allowImmediatePriceIncrease:!1,allowImmediateEntitlementReduction:!1})}).default({gracePeriodDays:3,subscriberChangePolicy:{default:"preserve_current_period",proration:"none",when:{price_increase:"preserve_current_period",price_decrease:"switch_immediately",feature_added:"switch_immediately",feature_removed:"preserve_current_period",limit_increased:"switch_immediately",limit_reduced:"preserve_current_period",credit_increased:"switch_immediately",credit_reduced:"preserve_current_period",rating_changed:"preserve_current_period"},allowImmediatePriceIncrease:!1,allowImmediateEntitlementReduction:!1}}),plans:c.array(pl).max(4).default([]),add_ons:Oi,lifecycle:c.object({breaking_changes:c.object({require_deprecation_window_days:c.number().int().nonnegative().default(0),require_successor_route:c.boolean().default(!1)}).default({require_deprecation_window_days:0,require_successor_route:!1})}).default({breaking_changes:{require_deprecation_window_days:0,require_successor_route:!1}}),webhooks:Or.optional(),environments:Er.optional(),ephemeral:c.object({defaultPlan:c.string().min(1).optional()}).optional()}).superRefine((t,r)=>{Ff(t,r),Vf(t.plans,r),Bf(t.plans,r),Hf(t,r),Gf(t,r),Wf(t,r),qf(t,r)}),$b=c.object({product:Qe.shape.product}),xb=c.object({gateway:Qe.shape.gateway}),kb=c.object({metering:Qe.shape.metering}),Sb=c.object({plans:Qe.shape.plans});var wb=c.string().min(2).max(20).regex(/^\d+(ms|s|m|h)$/,"rate_limit window must look like `60s`, `5m`, `1h`"),ug=c.object({strategy:c.enum(["token_bucket","sliding_window","fixed_window"]).default("token_bucket"),dimensions:c.array(c.enum(["subscription","credential","ip","route"])).min(1).max(4).default(["subscription"]),limits:c.array(c.object({window:wb,max:c.number().int().positive().max(1e7)})).min(1).max(10),fail_open:c.object({max_consecutive_failures:c.number().int().positive().default(100),max_window_seconds:c.number().int().positive().default(60),recovery_threshold:c.number().int().positive().default(50),degraded_mode:c.enum(["safe_mode_block","safe_mode_throttle","runtime_killswitch_trigger"]).default("safe_mode_throttle")}).default({max_consecutive_failures:100,max_window_seconds:60,recovery_threshold:50,degraded_mode:"safe_mode_throttle"})}),lg=c.object({header_name:c.string().min(1).max(100).default("x-api-key"),upstream_token_source:c.discriminatedUnion("type",[c.object({type:c.literal("none")}),c.object({type:c.literal("static_bearer"),token_secret_ref:c.string().min(1).max(200).describe("Reference into the secret store (e.g. CF Secret name); not the raw token")})]).default({type:"none"}),scope_mode:c.enum(["strict","advisory","off"]).default("strict")}),dg=c.object({max_in_flight:c.number().int().positive().max(1e4),dimensions:c.array(c.enum(["subscription","credential","capability"])).min(1).max(3).default(["subscription"]),capability:c.string().min(1).max(120).optional(),lease_ttl_seconds:c.number().int().positive().max(600).default(30),fail_open:c.object({max_consecutive_failures:c.number().int().positive().default(50),max_window_seconds:c.number().int().positive().default(60),recovery_threshold:c.number().int().positive().default(20),degraded_mode:c.enum(["safe_mode_block","safe_mode_throttle","runtime_killswitch_trigger"]).default("safe_mode_throttle")}).default({max_consecutive_failures:50,max_window_seconds:60,recovery_threshold:20,degraded_mode:"safe_mode_throttle"})}),mg=c.object({max_attempts:c.number().int().min(1).max(5).default(2),retry_on_status:c.array(c.number().int().min(400).max(599)).min(1).max(20).default([502,503,504]),backoff:c.object({initial_ms:c.number().int().positive().max(5e3).default(100),multiplier:c.number().positive().max(10).default(2),jitter:c.enum(["none","full","equal"]).default("equal"),total_budget_ms:c.number().int().positive().max(3e4).default(5e3)}).default({initial_ms:100,multiplier:2,jitter:"equal",total_budget_ms:5e3})}),pg=c.object({applies_to:c.enum(["request","response","both"]).default("request"),rewrites:c.array(c.object({source:c.string().min(1).max(200),target:c.string().min(1).max(200).nullable()})).min(1).max(20)});var yl=c.discriminatedUnion("type",[c.object({type:c.literal("rate_limit"),config:ug}),c.object({type:c.literal("auth"),config:lg}),c.object({type:c.literal("concurrency"),config:dg}),c.object({type:c.literal("retry"),config:mg}),c.object({type:c.literal("transform"),config:pg})]);var Fe=c.enum(["long","short","blocking"]).default("long"),fg=c.object({route_types:c.array(c.enum(["http"])).max(5).optional(),meters:c.array(c.string().min(1).max(64)).max(20).optional(),auth_modes:c.array(c.enum(["api_key","oauth2","anonymous"])).max(5).optional()});var bl=c.intersection(c.object({name:c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Policy name must be lowercase alphanumeric with hyphens/underscores"),description:c.string().max(500).optional(),compatible_with:fg.default({}),mutation_class:c.enum(["runtime","contractual"]).default("runtime"),cacheProfile:Fe}),yl);var Ib=c.enum(["query","mutation"]),zb=c.enum(["none","metadata","full"]),Ob=c.object({type:c.string().min(1).max(64).regex(/^[a-zA-Z0-9_.:-]+$/),from:c.enum(["header","path_param"]),name:c.string().min(1).max(120)}),Eb=c.object({resource:c.string().min(1).max(100).regex(/^[a-z0-9_.:-]+$/),effect:c.enum(["create","delete"])}),gg=c.object({id:c.string().min(1).max(160).regex(/^[a-z0-9_.:-]+$/),title:c.string().min(1).max(160).optional(),kind:Ib,actorType:c.string().min(1).max(64).regex(/^[a-zA-Z0-9_.:-]+$/).optional(),subject:Ob.optional(),inputSchemaRef:c.string().min(1).max(240).optional(),audit:zb.default("metadata"),resource:Eb.optional()});var hg=c.object({method:c.enum(["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","*"]).default("*"),path:c.string().min(1).max(500).regex(/^\/[a-zA-Z0-9_/:.{}*-]*$/,"path must start with / and contain only [a-zA-Z0-9_/:.{}*-]")}),vg=c.object({match:hg,metering:c.object({defaults:c.record(c.string().min(1).max(64),c.number().finite().nonnegative()).optional(),reports:c.array(c.string().min(1).max(64)).max(20).optional(),estimates:c.record(c.string().min(1).max(64),c.number().finite().nonnegative()).optional(),onStatusCodes:c.union([c.string().min(1).max(100),c.array(c.number().int().min(100).max(599)).min(1).max(100)]).optional()}).optional(),unmetered:c.boolean().optional(),inheritDefaultMeters:c.boolean().optional(),action:c.string().min(1).max(160).regex(/^[a-z0-9_.:-]+$/).optional()}).strict(),_g=c.object({override_origin:c.string().url("override_origin must be a valid URL").nullable().default(null)}),yg=c.object({rollout_key:c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/,"rollout_key must be lowercase alphanumeric with hyphens/underscores").optional(),required_flags:c.array(c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/)).max(10).optional()}),$l=c.object({feature:c.string().min(1).max(100).regex(/^[a-z0-9_.:-]+$/,"feature key must be lowercase alphanumeric with [_.:-]"),description:c.string().max(500).optional(),mutation_class:c.enum(["runtime","contractual"]).default("contractual"),cacheProfile:Fe,routes:c.array(vg).min(1).max(50),upstream:_g.default({override_origin:null}),policies:c.array(c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/)).max(20).default([]),runtime:yg.default({}),capabilities:c.array(c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/)).max(20).default([]),plans:c.array(c.string().min(1).max(64)).max(20).default([]),actions:c.array(gg).max(100).optional()});var ji=c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/,"runtime key must be lowercase alphanumeric with hyphens/underscores"),xl=c.object({runtime_flags:c.array(ji).max(10).optional(),capabilities:c.array(c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/)).max(10).optional()}).default({}),bg=c.object({plans:c.array(c.string().min(1).max(64)).max(20).optional(),environments:c.array(c.string().min(1).max(64)).max(10).optional(),capabilities:c.array(c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/)).max(10).optional()}).default({}),Pb=c.object({missing_behavior:c.enum(["treat_as_zero_percent","treat_as_full_rollout","fail_closed"]).default("treat_as_zero_percent"),stale_behavior:c.enum(["use_last_known","fail_closed_on_signature"]).default("use_last_known")}),$g=c.object({description:c.string().max(500).optional(),audience:bg,percent:c.number().int().min(0).max(100),assignment_seed:c.string().min(1).max(120).default("default"),depends_on:xl,defaults:Pb.default({missing_behavior:"treat_as_zero_percent",stale_behavior:"use_last_known"})}),Tb=c.object({cacheProfile:Fe.default("blocking"),rollouts:c.record(ji,$g).default({})}),jb=c.object({missing_behavior:c.enum(["disabled","enabled","fail_closed"]).default("disabled"),stale_behavior:c.enum(["use_last_known","fail_closed_on_signature"]).default("use_last_known")}),xg=c.object({description:c.string().max(500).optional(),enabled:c.boolean(),audience:bg,depends_on:xl,defaults:jb.default({missing_behavior:"disabled",stale_behavior:"use_last_known"}),killswitch_target:c.object({kind:c.enum(["policy","route","rollout"]),name:c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/)}).optional()}),Ab=c.object({cacheProfile:Fe.default("blocking"),flags:c.record(ji,xg).default({})}),Cb=c.object({missing_behavior:c.enum(["disabled","pending_review"]).default("disabled"),stale_behavior:c.enum(["use_last_known","fail_closed_on_signature"]).default("use_last_known")}),kg=c.object({description:c.string().max(500).optional(),from_plan_key:c.string().min(1).max(64),to_plan_key:c.string().min(1).max(64),policy:c.enum(["GRANDFATHER","MIGRATE_AT_RENEWAL","MIGRATE_IMMEDIATELY","MIGRATE_BY_DATE","OPT_IN"]).default("MIGRATE_AT_RENEWAL"),proration_policy:c.enum(["NONE","PRORATE","CREDIT"]).default("NONE"),cutover_at:c.string().datetime().optional(),freeze_contract_mutations:c.boolean().default(!0),depends_on:xl,defaults:Cb.default({missing_behavior:"disabled",stale_behavior:"use_last_known"})}),Nb=c.object({cacheProfile:Fe.default("blocking"),migrations:c.record(ji,kg).default({})});var kl=c.object({capability:c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/,"capability name must be lowercase alphanumeric with hyphens/underscores"),description:c.string().max(500).optional(),mutation_class:c.enum(["runtime","contractual"]).default("contractual"),includes_features:c.array(c.string().min(1).max(100).regex(/^[a-z0-9_.:-]+$/)).max(20).default([]),includes_policies:c.array(c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/)).max(20).default([]),includes_capabilities:c.array(c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/)).max(20).default([])});var Sl=1,Db={meters:c.array(ie).default([]),recurring_fee_cents:c.number().int().nonnegative().default(0),billing_interval:me.default("month"),trial_days:c.number().int().nonnegative().default(0),max_monthly_spend_cents:c.number().int().nonnegative().optional(),min_monthly_spend_cents:c.number().int().nonnegative().optional(),grants:c.array(ne).max(40).default([])},wg=c.object({key:c.string().min(1).max(64).regex(/^[a-z0-9_-]+$/,"Plan key must be lowercase alphanumeric with hyphens/underscores"),name:c.string().min(1).max(100),description:c.string().max(500).optional(),details:c.array(c.string().max(200)).max(10).optional(),...Db,free:c.boolean().default(!1),capabilities:c.array(c.string().min(1).max(120).regex(/^[a-z0-9_-]+$/)).max(20).default([]),limits:c.array(Me).max(20).default([]),capability_limits:c.record(c.string().min(1).max(120),c.union([c.number().int().nonnegative(),c.boolean()])).default({}),overageBehavior:c.enum(["block","allow_and_bill"]).default("block"),selfServeEnabled:c.boolean().default(!0),legacy:c.boolean().optional().default(!1),archive:c.object({at:c.string().datetime().optional(),transitionTo:c.string().optional(),strategy:c.enum(["auto","explicit","block"]).default("auto")}).optional()}).superRefine((t,r)=>{Ir(t.grants,r)}),Sg={default:"preserve_current_period",proration:"none",when:{price_increase:"preserve_current_period",price_decrease:"switch_immediately",feature_added:"switch_immediately",feature_removed:"preserve_current_period",limit_increased:"switch_immediately",limit_reduced:"preserve_current_period",credit_increased:"switch_immediately",credit_reduced:"preserve_current_period",rating_changed:"preserve_current_period"},allowImmediatePriceIncrease:!1,allowImmediateEntitlementReduction:!1},Ub=c.object({artifactSchemaVersion:c.literal(Sl).default(Sl),product:c.object({name:c.string().min(1).max(100),displayName:c.string().max(200).optional(),description:c.string().max(2e3).optional(),baseUrl:c.string().url("baseUrl must be a valid URL"),sandboxBaseUrl:c.string().url("sandboxBaseUrl must be a valid URL").optional(),visibility:c.enum(["public","private"]).default("public"),logoUrl:c.string().url().optional(),primaryColor:c.string().regex(/^#[0-9a-fA-F]{6}$/).optional(),envBranchPrefix:c.string().max(50).nullable().optional()}),meters:c.array(Ei).max(10).default([]),billOn4xx:c.boolean().default(!1),frontend:Pr.optional(),migrations:Tr.optional(),resources:jr,policies:Pi,customer_context:Ti.optional(),billing:c.object({gracePeriodDays:c.number().int().nonnegative().default(3),applyLimitUpgradesInstantly:c.boolean().optional(),subscriberChangePolicy:wr.default(Sg)}).default({gracePeriodDays:3,subscriberChangePolicy:Sg}),plans:c.array(wg).max(4).default([]),add_ons:Oi,lifecycle:c.object({breaking_changes:c.object({require_deprecation_window_days:c.number().int().nonnegative().default(0),require_successor_route:c.boolean().default(!1)}).default({require_deprecation_window_days:0,require_successor_route:!1})}).default({breaking_changes:{require_deprecation_window_days:0,require_successor_route:!1}}),webhooks:Or.optional(),environments:Er.optional(),ephemeral:c.object({defaultPlan:c.string().min(1).optional()}).optional()});var Ig=1;var Rb=c.object({irVersion:c.literal(Ig),sdkVersion:c.string().min(1).max(64),product:Qe,routes:c.array($l).max(200).default([]),policies:c.array(bl).max(200).default([]),capabilities:c.array(kl).max(200).default([]),runtime:c.object({rollout:c.null().default(null),flags:c.null().default(null),migrations:c.null().default(null)}).default({rollout:null,flags:null,migrations:null})});var pe=["free","starter","pro","prepaid","metered"],Zb={kind:"free",label:"Free",description:"No recurring fee and no metered usage. Pure freemium tier.",pricing:{meters:[],recurring_fee_cents:0,billing_interval:"month",grants:[],trial_days:0}},Lb={kind:"starter",label:"Starter \u2014 $20/mo + $20 included",description:"$20/month subscription with $20 of usage credit each period. Stripe-style minimum-spend; overage billed at $0.001/request by default.",pricing:{meters:[{dimension:"requests",kind:"linear",price_per_unit_micros:1e3}],recurring_fee_cents:2e3,billing_interval:"month",grants:[{kind:"recurring",amount_cents:2e3}],trial_days:0}},Mb={kind:"pro",label:"Pro \u2014 $100/mo + $200 included",description:"$100/month subscription with $200 of usage credit each period and a 14-day trial. Overage billed at $0.0005/request by default.",pricing:{meters:[{dimension:"requests",kind:"linear",price_per_unit_micros:500}],recurring_fee_cents:1e4,billing_interval:"month",grants:[{kind:"recurring",amount_cents:2e4}],trial_days:14}},Fb={kind:"prepaid",label:"Prepaid \u2014 $50 sign-up credit, then PAYG",description:"$50 one-time credit at signup. Once depleted the subscriber pays-as-they-go at $0.001/request by default.",pricing:{meters:[{dimension:"requests",kind:"linear",price_per_unit_micros:1e3}],recurring_fee_cents:0,billing_interval:"month",grants:[{kind:"one_time",amount_cents:5e3}],trial_days:0}},Vb={kind:"metered",label:"Metered (pay-as-you-go)",description:"No subscription fee. Pure usage billing at $0.001/request by default.",pricing:{meters:[{dimension:"requests",kind:"linear",price_per_unit_micros:1e3}],recurring_fee_cents:0,billing_interval:"month",grants:[],trial_days:0}},zg=Object.freeze({free:Zb,starter:Lb,pro:Mb,prepaid:Fb,metered:Vb});function Ai(t){return zg[t]}function wl(){return pe.map(t=>zg[t])}var lO=c.object({recurring_fee_cents:c.number().int().nonnegative().optional(),grants:c.array(ne).max(40).optional(),min_monthly_spend_cents:c.number().int().nonnegative().optional(),max_monthly_spend_cents:c.number().int().nonnegative().optional(),meters:c.array(ie).optional(),notes:c.string().max(2e3).optional()});function Og(t,r){if(typeof t!="number"&&typeof r!="number")return;let n=[];return typeof t=="number"&&t>0&&n.push({kind:"recurring",amount_cents:t}),typeof r=="number"&&r>0&&n.push({kind:"one_time",amount_cents:r}),n}function Bb(t){if(!t||typeof t!="object")return[];let r=t;return Array.isArray(r.data)?r.data:Array.isArray(r.plans)?r.plans:Array.isArray(t)?t:[]}function Hb(t){if(t.length===0)return"(no plans)";let r=["KEY","NAME","FREE","FEE\xA2","RECUR_GRANT\xA2","ONE_TIME\xA2","TRIAL_D","MAX_SPEND\xA2","STATUS"],n=s=>s===null?"\u2014":s.toLocaleString("en-US"),o=t.map(s=>[s.key,s.name,s.free?"Y":"N",n(s.recurring_fee_cents),n(s.recurring_credit_grant_cents),n(s.one_time_credit_grant_cents),n(s.trial_days),n(s.max_monthly_spend_cents),s.status]),e=r.map((s,u)=>Math.max(s.length,...o.map(l=>l[u]?.length??0))),i=s=>s.map((u,l)=>u.padEnd(e[l]??u.length)).join(" "),a=e.map(s=>"-".repeat(s)).join(" ");return[i(r),a,...o.map(i)].join(`
98
+ `)}function Eg(t,r){let n=t.command("plan").description("Plan management: list, create, update, delete");n.command("list <productIdOrName>").description("List plans for a product").addHelpText("after",`
99
99
  Output:
100
100
  --format json \u2014 stable agent-friendly JSON envelope (default for non-TTY)
101
101
  --format table \u2014 human-readable summary table (default for TTY)
102
- `).action(async o=>{let e=r(),i=await N(e,o),s=Lb(await e.managementListPlans(i)).map(d=>({id:d.id,key:d.planKey??d.key??"",name:d.name??"",version:d.version??null,free:d.free??!1,recurring_fee_cents:d.recurring_fee_cents??0,recurring_credit_grant_cents:zr({grants:d.grants}),one_time_credit_grant_cents:Ct({grants:d.grants}),trial_days:d.trial_days??0,max_monthly_spend_cents:d.max_monthly_spend_cents??null,status:d.status??(d.isActive===!1?"INACTIVE":"ACTIVE")})),u=t.opts();if(Ee(u.format)==="json"){console.log(ee({ok:!0,productId:i,count:s.length,plans:s}));return}ke(`${s.length} plan(s) for product ${i}`),console.log(Fb(s))}),n.command("create <productIdOrName>").description("Create a plan on a product (5-knob spec)").requiredOption("--key <key>","Stable plan key (e.g. starter, pro)").requiredOption("--name <name>","Human-friendly plan name").option("--free","Mark this as the free plan (requires hard-enforced limits)").option("--recurring-fee-cents <cents>","Flat subscription fee per period, in cents",o=>parseInt(o,10)).option("--recurring-credit-grant-cents <cents>","Credit granted each period, in cents",o=>parseInt(o,10)).option("--one-time-credit-grant-cents <cents>","Prepaid balance at signup, in cents",o=>parseInt(o,10)).option("--trial-days <days>","Free-trial length in days",o=>parseInt(o,10)).option("--max-monthly-spend-cents <cents>","Optional hard cap on monthly spend, in cents",o=>parseInt(o,10)).option("--rate-limit <maxPerWindow>","Burst-protection rate limit on requests (default: 600). Publishing requires every plan to carry one \u2014 pass --no-rate-limit only for drafts.",o=>parseInt(o,10)).option("--no-rate-limit","Create the plan without a burst rate limit").option("--rate-window <window>","Rate limit window: second | minute | hour (default: minute)").option("--env <env>","Environment scope").action(async(o,e)=>{let i=r(),a=await N(i,o),s={key:e.key,name:e.name};if(e.free&&(s.free=!0),e.rateLimit!==!1){let d=typeof e.rateLimit=="number"?e.rateLimit:600,m=e.rateWindow??"minute";if(!["second","minute","hour"].includes(m))throw new S(`Invalid --rate-window "${m}" \u2014 use second, minute, or hour.`,void 0,{code:"INVALID_RATE_WINDOW"});s.limits=[{dimension:"requests",window:{type:"named",name:m},capacity:d,enforcement:"enforce"}]}typeof e.recurringFeeCents=="number"&&(s.recurring_fee_cents=e.recurringFeeCents);let u=Ig(e.recurringCreditGrantCents,e.oneTimeCreditGrantCents);u&&(s.grants=u),typeof e.trialDays=="number"&&(s.trial_days=e.trialDays),typeof e.maxMonthlySpendCents=="number"&&(s.max_monthly_spend_cents=e.maxMonthlySpendCents);let l=await i.createPlan(a,s,{env:e.env});O(t,`Plan ${e.key} created`,{ok:!0,productId:a,plan:l})}),n.command("update <productIdOrName> <planId>").description("Update a plan (5-knob spec)").option("--name <name>","Human-friendly plan name").option("--recurring-fee-cents <cents>","Flat subscription fee per period, in cents",o=>parseInt(o,10)).option("--recurring-credit-grant-cents <cents>","Credit granted each period, in cents",o=>parseInt(o,10)).option("--one-time-credit-grant-cents <cents>","Prepaid balance at signup, in cents",o=>parseInt(o,10)).option("--trial-days <days>","Free-trial length in days",o=>parseInt(o,10)).option("--max-monthly-spend-cents <cents>","Optional hard cap on monthly spend, in cents",o=>parseInt(o,10)).option("--env <env>","Environment scope").action(async(o,e,i)=>{let a=r(),s=await N(a,o),u={};i.name!==void 0&&(u.name=i.name),typeof i.recurringFeeCents=="number"&&(u.recurring_fee_cents=i.recurringFeeCents);let l=Ig(i.recurringCreditGrantCents,i.oneTimeCreditGrantCents);if(l&&(u.grants=l),typeof i.trialDays=="number"&&(u.trial_days=i.trialDays),typeof i.maxMonthlySpendCents=="number"&&(u.max_monthly_spend_cents=i.maxMonthlySpendCents),Object.keys(u).length===0)throw new S("No fields to update. Pass --name, --recurring-fee-cents, --recurring-credit-grant-cents, --one-time-credit-grant-cents, --trial-days, or --max-monthly-spend-cents.",void 0,{code:"PLAN_UPDATE_NO_FIELDS"});let d=await a.updatePlan(s,e,u,{env:i.env});O(t,`Plan ${e} updated`,{ok:!0,productId:s,plan:d})}),n.command("delete <productIdOrName> <planId>").description("Delete a plan. Requires --yes.").option("--yes","Skip confirmation; required for delete").option("--env <env>","Environment scope").action(async(o,e,i)=>{if(!i.yes)throw new S("Pass --yes to confirm plan deletion.",void 0,{code:"DESTRUCTIVE_OP_REQUIRES_YES"});let a=r(),s=await N(a,o);await a.deletePlan(s,e,{env:i.env}),O(t,`Plan ${e} deleted`,{ok:!0,productId:s,deleted:e})})}async function wl(t,r,n){let e=await t.listEnvironments(r),a=(Array.isArray(e.data)?e.data:Array.isArray(e.environments)?e.environments:[]).find(s=>s.name.toLowerCase()===n.toLowerCase()||s.id===n);if(!a)throw new S(`Environment "${n}" not found on product ${r}.`,void 0,{code:"ENV_NOT_FOUND"});return a.id}function Og(t,r){let n=t.command("persona").description("Mint and manage test-env personas (test API keys)");n.command("bootstrap <productIdOrName>").description("Issue a fresh fsk_test_ API key in a test environment").requiredOption("--env <env>","Environment name (must be test-strategy)").option("--plan <planKey>","Plan key to assign (e.g. starter)").option("--display-name <name>","Persona display name").action(async(o,e)=>{let i=r(),a=await N(i,o),s=await wl(i,a,e.env),u=await i.issuePersonaBootstrapKey(a,s,{planKey:e.plan,displayName:e.displayName});O(t,"Persona bootstrapped",{ok:!0,productId:a,environmentId:s,result:u})}),n.command("list <productIdOrName>").description("List personas for a test environment").requiredOption("--env <env>","Environment name").action(async(o,e)=>{let i=r(),a=await N(i,o),s=await wl(i,a,e.env),u=await i.listPersonas(a,s);O(t,"Personas",{ok:!0,productId:a,environmentId:s,result:u})}),n.command("revoke <productIdOrName> <personaId>").description("Revoke a persona's API key").requiredOption("--env <env>","Environment name").action(async(o,e,i)=>{let a=r(),s=await N(a,o),u=await wl(a,s,i.env),l=await a.revokePersona(s,u,e);O(t,`Persona ${e} revoked`,{ok:!0,productId:s,environmentId:u,result:l})})}function Pg(t,r){t.command("usage").description("Usage observability for a product").command("summary <productIdOrName>").description("Show usage summary for the last 30 days").action(async o=>{let e=r(),i=await N(e,o),a=await e.managementGetUsage(i);O(t,"Usage summary",{ok:!0,productId:i,summary:a})})}function Eg(t,r){let n=t.command("connect").description("Connection status for GitHub and Stripe (browser-only flows)");n.command("github").description("Print GitHub-connection status").action(async()=>{let e=await r().builderGitHubStatus();O(t,"GitHub status",{ok:!0,status:e})}),n.command("stripe <productIdOrName>").description("Print Stripe Connect status for a product").action(async o=>{let e=r(),i=await N(e,o),a=await e.productStripeStatus(i);O(t,"Stripe status",{ok:!0,productId:i,status:a})})}function Mb(t){if(!t||typeof t!="object")return[];let r=t;return Array.isArray(r.data)?r.data:Array.isArray(r.tokens)?r.tokens:Array.isArray(t)?t:[]}function Tg(t,r){let n=t.command("token").description("Maker-token management (list, create, revoke)");n.command("list").description("List maker tokens in the current org").action(async()=>{let o=r(),e=Mb(await o.managementListMakerTokens());O(t,`${e.length} token(s)`,{ok:!0,count:e.length,tokens:e.map(i=>({id:i.id,name:i.name??null,scopes:i.scopes??[],productId:i.productId??null,lastFour:i.lastFour??null,createdAt:i.createdAt??null,revokedAt:i.revokedAt??null}))})}),n.command("create").description("Create a new maker token (returns the secret once)").requiredOption("--name <name>","Human-friendly token name").option("--scope <scope...>","Scope(s) to attach (e.g. products:update products:publish)").option("--product <productId>","Scope to a specific product").action(async o=>{let i=await r().managementCreateMakerToken({name:o.name,scopes:o.scope,productId:o.product});O(t,"Token created",{ok:!0,result:i})}),n.command("revoke <tokenId>").description("Revoke a maker token. Requires --yes.").option("--yes","Skip confirmation; required for revoke").action(async(o,e)=>{if(!e.yes)throw new S("Pass --yes to confirm token revocation.",void 0,{code:"DESTRUCTIVE_OP_REQUIRES_YES"});await r().managementRevokeMakerToken(o),O(t,`Token ${o} revoked`,{ok:!0,revoked:o})})}import{existsSync as Vb,mkdirSync as Bb,writeFileSync as Hb}from"node:fs";import{dirname as Wb,resolve as Gb}from"node:path";import{createInterface as Jb}from"node:readline/promises";import{stdin as jg,stdout as Ag}from"node:process";var Il="product/product.config.ts";function qb(t){let r=new Set;for(let a of t.pricing.meters??[])typeof a.dimension=="string"&&r.add(a.dimension);let n=new Set,o={key:t.kind,name:t.label.split(" \u2014 ")[0]??t.label,description:t.description,...t.pricing};t.kind==="free"&&(o.free=!0,o.limits=[{dimension:"requests",window:{type:"named",name:"month"},capacity:1e3,enforcement:"enforce"}],n.add("requests"));let e={product:{name:"my-product",displayName:"My Product",baseUrl:"https://api.example.com"},gateway:{},plans:[o]},i=new Set([...r,...n]);return i.size>0&&(e.metering={meters:[...i].map(a=>({key:a,display:a.charAt(0).toUpperCase()+a.slice(1)}))}),e}function Kb(t){if(!t)throw new S(`--template is required. Choose one of: ${pe.join(", ")}.`,void 0,{code:"INIT_TEMPLATE_REQUIRED"});let r=t.toLowerCase();if(!pe.includes(r))throw new S(`Unknown template "${t}". Choose one of: ${pe.join(", ")}.`,void 0,{code:"INIT_TEMPLATE_UNKNOWN"});return r}function Yb(t){let r=qb(t),n={};r.gateway&&Object.keys(r.gateway).length>0&&(n.gateway=r.gateway),r.metering&&(n.metering=r.metering);let o=Object.keys(n).length>0?`
102
+ `).action(async o=>{let e=r(),i=await N(e,o),s=Bb(await e.managementListPlans(i)).map(d=>({id:d.id,key:d.planKey??d.key??"",name:d.name??"",version:d.version??null,free:d.free??!1,recurring_fee_cents:d.recurring_fee_cents??0,recurring_credit_grant_cents:zr({grants:d.grants}),one_time_credit_grant_cents:Ct({grants:d.grants}),trial_days:d.trial_days??0,max_monthly_spend_cents:d.max_monthly_spend_cents??null,status:d.status??(d.isActive===!1?"INACTIVE":"ACTIVE")})),u=t.opts();if(Pe(u.format)==="json"){console.log(ee({ok:!0,productId:i,count:s.length,plans:s}));return}Se(`${s.length} plan(s) for product ${i}`),console.log(Hb(s))}),n.command("create <productIdOrName>").description("Create a plan on a product (5-knob spec)").requiredOption("--key <key>","Stable plan key (e.g. starter, pro)").requiredOption("--name <name>","Human-friendly plan name").option("--free","Mark this as the free plan (requires hard-enforced limits)").option("--recurring-fee-cents <cents>","Flat subscription fee per period, in cents",o=>parseInt(o,10)).option("--recurring-credit-grant-cents <cents>","Credit granted each period, in cents",o=>parseInt(o,10)).option("--one-time-credit-grant-cents <cents>","Prepaid balance at signup, in cents",o=>parseInt(o,10)).option("--trial-days <days>","Free-trial length in days",o=>parseInt(o,10)).option("--max-monthly-spend-cents <cents>","Optional hard cap on monthly spend, in cents",o=>parseInt(o,10)).option("--rate-limit <maxPerWindow>","Burst-protection rate limit on requests (default: 600). Publishing requires every plan to carry one \u2014 pass --no-rate-limit only for drafts.",o=>parseInt(o,10)).option("--no-rate-limit","Create the plan without a burst rate limit").option("--rate-window <window>","Rate limit window: second | minute | hour (default: minute)").option("--env <env>","Environment scope").action(async(o,e)=>{let i=r(),a=await N(i,o),s={key:e.key,name:e.name};if(e.free&&(s.free=!0),e.rateLimit!==!1){let d=typeof e.rateLimit=="number"?e.rateLimit:600,m=e.rateWindow??"minute";if(!["second","minute","hour"].includes(m))throw new k(`Invalid --rate-window "${m}" \u2014 use second, minute, or hour.`,void 0,{code:"INVALID_RATE_WINDOW"});s.limits=[{dimension:"requests",window:{type:"named",name:m},capacity:d,enforcement:"enforce"}]}typeof e.recurringFeeCents=="number"&&(s.recurring_fee_cents=e.recurringFeeCents);let u=Og(e.recurringCreditGrantCents,e.oneTimeCreditGrantCents);u&&(s.grants=u),typeof e.trialDays=="number"&&(s.trial_days=e.trialDays),typeof e.maxMonthlySpendCents=="number"&&(s.max_monthly_spend_cents=e.maxMonthlySpendCents);let l=await i.createPlan(a,s,{env:e.env});I(t,`Plan ${e.key} created`,{ok:!0,productId:a,plan:l})}),n.command("update <productIdOrName> <planId>").description("Update a plan (5-knob spec)").option("--name <name>","Human-friendly plan name").option("--recurring-fee-cents <cents>","Flat subscription fee per period, in cents",o=>parseInt(o,10)).option("--recurring-credit-grant-cents <cents>","Credit granted each period, in cents",o=>parseInt(o,10)).option("--one-time-credit-grant-cents <cents>","Prepaid balance at signup, in cents",o=>parseInt(o,10)).option("--trial-days <days>","Free-trial length in days",o=>parseInt(o,10)).option("--max-monthly-spend-cents <cents>","Optional hard cap on monthly spend, in cents",o=>parseInt(o,10)).option("--env <env>","Environment scope").action(async(o,e,i)=>{let a=r(),s=await N(a,o),u={};i.name!==void 0&&(u.name=i.name),typeof i.recurringFeeCents=="number"&&(u.recurring_fee_cents=i.recurringFeeCents);let l=Og(i.recurringCreditGrantCents,i.oneTimeCreditGrantCents);if(l&&(u.grants=l),typeof i.trialDays=="number"&&(u.trial_days=i.trialDays),typeof i.maxMonthlySpendCents=="number"&&(u.max_monthly_spend_cents=i.maxMonthlySpendCents),Object.keys(u).length===0)throw new k("No fields to update. Pass --name, --recurring-fee-cents, --recurring-credit-grant-cents, --one-time-credit-grant-cents, --trial-days, or --max-monthly-spend-cents.",void 0,{code:"PLAN_UPDATE_NO_FIELDS"});let d=await a.updatePlan(s,e,u,{env:i.env});I(t,`Plan ${e} updated`,{ok:!0,productId:s,plan:d})}),n.command("delete <productIdOrName> <planId>").description("Delete a plan. Requires --yes.").option("--yes","Skip confirmation; required for delete").option("--env <env>","Environment scope").action(async(o,e,i)=>{if(!i.yes)throw new k("Pass --yes to confirm plan deletion.",void 0,{code:"DESTRUCTIVE_OP_REQUIRES_YES"});let a=r(),s=await N(a,o);await a.deletePlan(s,e,{env:i.env}),I(t,`Plan ${e} deleted`,{ok:!0,productId:s,deleted:e})})}function Pg(t,r){let n=t.command("persona").description("Mint and manage test-env personas (test API keys)");n.command("bootstrap <productIdOrName>").description("Issue a fresh fsk_test_ API key in a test environment").requiredOption("--env <env>","Environment name (must be test-strategy)").option("--plan <planKey>","Plan key to assign (e.g. starter)").option("--display-name <name>","Persona display name").action(async(o,e)=>{let i=r(),a=await N(i,o),s=await Il(i,a,e.env),u=await i.issuePersonaBootstrapKey(a,s,{planKey:e.plan,displayName:e.displayName});I(t,"Persona bootstrapped",{ok:!0,productId:a,environmentId:s,result:u})}),n.command("list <productIdOrName>").description("List personas for a test environment").requiredOption("--env <env>","Environment name").action(async(o,e)=>{let i=r(),a=await N(i,o),s=await Il(i,a,e.env),u=await i.listPersonas(a,s);I(t,"Personas",{ok:!0,productId:a,environmentId:s,result:u})}),n.command("revoke <productIdOrName> <personaId>").description("Revoke a persona's API key").requiredOption("--env <env>","Environment name").action(async(o,e,i)=>{let a=r(),s=await N(a,o),u=await Il(a,s,i.env),l=await a.revokePersona(s,u,e);I(t,`Persona ${e} revoked`,{ok:!0,productId:s,environmentId:u,result:l})})}async function Il(t,r,n){try{return await Fr(t,r,n)}catch(o){throw new k(o instanceof Error?o.message:`Environment "${n}" not found on product ${r}.`,void 0,{code:"ENV_NOT_FOUND"})}}function Tg(t,r){t.command("usage").description("Usage observability for a product").command("summary <productIdOrName>").description("Show usage summary for the last 30 days").action(async o=>{let e=r(),i=await N(e,o),a=await e.managementGetUsage(i);I(t,"Usage summary",{ok:!0,productId:i,summary:a})})}function jg(t,r){let n=t.command("connect").description("Connection status for GitHub and Stripe (browser-only flows)");n.command("github").description("Print GitHub-connection status").action(async()=>{let e=await r().builderGitHubStatus();I(t,"GitHub status",{ok:!0,status:e})}),n.command("stripe <productIdOrName>").description("Print Stripe Connect status for a product").action(async o=>{let e=r(),i=await N(e,o),a=await e.productStripeStatus(i);I(t,"Stripe status",{ok:!0,productId:i,status:a})})}function Gb(t){if(!t||typeof t!="object")return[];let r=t;return Array.isArray(r.data)?r.data:Array.isArray(r.tokens)?r.tokens:Array.isArray(t)?t:[]}function Ag(t,r){let n=t.command("token").description("Maker-token management (list, create, revoke)");n.command("list").description("List maker tokens in the current org").action(async()=>{let o=r(),e=Gb(await o.managementListMakerTokens());I(t,`${e.length} token(s)`,{ok:!0,count:e.length,tokens:e.map(i=>({id:i.id,name:i.name??null,scopes:i.scopes??[],productId:i.productId??null,lastFour:i.lastFour??null,createdAt:i.createdAt??null,revokedAt:i.revokedAt??null}))})}),n.command("create").description("Create a new maker token (returns the secret once)").requiredOption("--name <name>","Human-friendly token name").option("--scope <scope...>","Scope(s) to attach (e.g. products:update products:publish)").option("--product <productId>","Scope to a specific product").action(async o=>{let i=await r().managementCreateMakerToken({name:o.name,scopes:o.scope,productId:o.product});I(t,"Token created",{ok:!0,result:i})}),n.command("revoke <tokenId>").description("Revoke a maker token. Requires --yes.").option("--yes","Skip confirmation; required for revoke").action(async(o,e)=>{if(!e.yes)throw new k("Pass --yes to confirm token revocation.",void 0,{code:"DESTRUCTIVE_OP_REQUIRES_YES"});await r().managementRevokeMakerToken(o),I(t,`Token ${o} revoked`,{ok:!0,revoked:o})})}function Wb(t){if(!t||typeof t!="object")return[];let r=t;return Array.isArray(r.data)?r.data:Array.isArray(r.tokens)?r.tokens:Array.isArray(t)?t:[]}async function Jb(t,r,n){if(!n)return null;try{return await Fr(t,r,n)}catch(o){throw new k(o instanceof Error?o.message:`Environment "${n}" not found on product ${r}.`,void 0,{code:"ENV_NOT_FOUND"})}}function Cg(t,r){let n=t.command("metering-token").description("Runtime metering token management");n.command("list <productId>").description("List runtime metering tokens for a product").action(async o=>{let e=r(),i=Wb(await e.managementListMeteringTokens(o));I(t,`${i.length} metering token(s)`,{ok:!0,count:i.length,tokens:i})}),n.command("create <productId>").description("Create a runtime metering token (returns FARTHERSHORE_METERING_TOKEN once)").requiredOption("--name <name>","Human-friendly token name").option("--env <environment>","Scope token to an environment name or id").option("--environment <environment>","Alias for --env").action(async(o,e)=>{let i=r(),a=e.env??e.environment,s=await Jb(i,o,a),u=await i.managementCreateMeteringToken(o,{name:e.name,environmentId:s});I(t,"Metering token created",{ok:!0,envVar:"FARTHERSHORE_METERING_TOKEN",result:u})}),n.command("revoke <productId> <tokenId>").description("Revoke a runtime metering token. Requires --yes.").option("--yes","Skip confirmation; required for revoke").action(async(o,e,i)=>{if(!i.yes)throw new k("Pass --yes to confirm metering token revocation.",void 0,{code:"DESTRUCTIVE_OP_REQUIRES_YES"});await r().managementRevokeMeteringToken(o,e),I(t,`Metering token ${e} revoked`,{ok:!0,productId:o,revoked:e})})}import{existsSync as qb,mkdirSync as Kb,writeFileSync as Yb}from"node:fs";import{dirname as Xb,resolve as Qb}from"node:path";import{createInterface as e$}from"node:readline/promises";import{stdin as Ng,stdout as Dg}from"node:process";var zl="product/product.config.ts";function t$(t){let r=new Set;for(let a of t.pricing.meters??[])typeof a.dimension=="string"&&r.add(a.dimension);let n=new Set,o={key:t.kind,name:t.label.split(" \u2014 ")[0]??t.label,description:t.description,...t.pricing};t.kind==="free"&&(o.free=!0,o.limits=[{dimension:"requests",window:{type:"named",name:"month"},capacity:1e3,enforcement:"enforce"}],n.add("requests"));let e={product:{name:"my-product",displayName:"My Product",baseUrl:"https://api.example.com"},gateway:{},plans:[o]},i=new Set([...r,...n]);return i.size>0&&(e.metering={meters:[...i].map(a=>({key:a,display:a.charAt(0).toUpperCase()+a.slice(1)}))}),e}function r$(t){if(!t)throw new k(`--template is required. Choose one of: ${pe.join(", ")}.`,void 0,{code:"INIT_TEMPLATE_REQUIRED"});let r=t.toLowerCase();if(!pe.includes(r))throw new k(`Unknown template "${t}". Choose one of: ${pe.join(", ")}.`,void 0,{code:"INIT_TEMPLATE_UNKNOWN"});return r}function n$(t){let r=t$(t),n={};r.gateway&&Object.keys(r.gateway).length>0&&(n.gateway=r.gateway),r.metering&&(n.metering=r.metering);let o=Object.keys(n).length>0?`
103
103
 
104
104
  business.raw.productPatch(${Ar(n)});`:"",e=r.plans.map(i=>`
105
105
 
@@ -112,9 +112,9 @@ const business = fs.business(${Ar(r.product.name)}, {
112
112
  ${o}${e}
113
113
 
114
114
  export default business;
115
- `}function Xb(){return Sl().map((t,r)=>` ${r+1}) ${t.kind.padEnd(8)} \u2014 ${t.description}`).join(`
116
- `)}function Qb(t){let r=t.pricing,n=(r.meters??[]).map(e=>`${e.dimension} @ ${e.price_per_unit_micros} micros/unit`).join(", "),o=[` recurring_fee_cents ${r.recurring_fee_cents}`,` recurring credit (grant) ${zr(r)}`,` one-time credit (grant) ${Ct(r)}`,` trial_days ${r.trial_days}`];return n&&o.push(` meters ${n}`),o.join(`
117
- `)}async function e$(t){t.log("FartherShore init \u2014 pick a starter plan preset:"),t.log(""),t.log(Xb()),t.log("");let r=(await t.ask("Preset (number or name, blank to cancel): ")).trim();if(!r)return null;let n=Number.parseInt(r,10),o=null;if(Number.isInteger(n)&&n>=1&&n<=pe.length?o=pe[n-1]??null:pe.includes(r.toLowerCase())&&(o=r.toLowerCase()),!o)throw new S(`Unknown preset "${r}". Choose one of: ${pe.join(", ")}.`,void 0,{code:"INIT_TEMPLATE_UNKNOWN"});t.log(""),t.log(`Preview \u2014 ${ji(o).label}:`),t.log(Qb(ji(o))),t.log("");let e=(await t.ask(`Output path (default: ${Il}): `)).trim();return{kind:o,path:e||Il}}function Cg(t){t.command("init").description("Scaffold a starter product/product.config.ts from a named plan preset (free | starter | pro | prepaid | metered)").option("--template <kind>",`Plan preset to scaffold. One of: ${pe.join(" | ")}`).option("--force","Overwrite product/product.config.ts if it already exists").option("--path <path>","Output path for the generated product config (default: ./product/product.config.ts)").addHelpText("after",`
115
+ `}function i$(){return wl().map((t,r)=>` ${r+1}) ${t.kind.padEnd(8)} \u2014 ${t.description}`).join(`
116
+ `)}function o$(t){let r=t.pricing,n=(r.meters??[]).map(e=>`${e.dimension} @ ${e.price_per_unit_micros} micros/unit`).join(", "),o=[` recurring_fee_cents ${r.recurring_fee_cents}`,` recurring credit (grant) ${zr(r)}`,` one-time credit (grant) ${Ct(r)}`,` trial_days ${r.trial_days}`];return n&&o.push(` meters ${n}`),o.join(`
117
+ `)}async function a$(t){t.log("FartherShore init \u2014 pick a starter plan preset:"),t.log(""),t.log(i$()),t.log("");let r=(await t.ask("Preset (number or name, blank to cancel): ")).trim();if(!r)return null;let n=Number.parseInt(r,10),o=null;if(Number.isInteger(n)&&n>=1&&n<=pe.length?o=pe[n-1]??null:pe.includes(r.toLowerCase())&&(o=r.toLowerCase()),!o)throw new k(`Unknown preset "${r}". Choose one of: ${pe.join(", ")}.`,void 0,{code:"INIT_TEMPLATE_UNKNOWN"});t.log(""),t.log(`Preview \u2014 ${Ai(o).label}:`),t.log(o$(Ai(o))),t.log("");let e=(await t.ask(`Output path (default: ${zl}): `)).trim();return{kind:o,path:e||zl}}function Ug(t){t.command("init").description("Scaffold a starter product/product.config.ts from a named plan preset (free | starter | pro | prepaid | metered)").option("--template <kind>",`Plan preset to scaffold. One of: ${pe.join(" | ")}`).option("--force","Overwrite product/product.config.ts if it already exists").option("--path <path>","Output path for the generated product config (default: ./product/product.config.ts)").addHelpText("after",`
118
118
  Examples:
119
119
  farthershore init # interactive (TTY only)
120
120
  farthershore init --template free
@@ -122,25 +122,25 @@ Examples:
122
122
  farthershore init --template metered --format json
123
123
 
124
124
  Available templates:
125
- ${Sl().map(r=>` ${r.kind.padEnd(8)} ${r.description}`).join(`
125
+ ${wl().map(r=>` ${r.kind.padEnd(8)} ${r.description}`).join(`
126
126
  `)}
127
- `).action(async r=>{let n,o=r.path;if(r.template)n=Kb(r.template);else if(jg.isTTY&&Ag.isTTY){let l=Jb({input:jg,output:Ag});try{let d=await e$({ask:m=>l.question(m),log:m=>{console.log(m)}});if(!d){Pe("Cancelled.");return}n=d.kind,o=o??d.path}finally{l.close()}}else throw new S(`--template is required when stdin is not a TTY. Choose one of: ${pe.join(", ")}.`,void 0,{code:"INIT_TEMPLATE_REQUIRED"});let e=ji(n),i=Gb(o??Il);if(Vb(i)&&!r.force)throw new S(`${i} already exists. Pass --force to overwrite.`,void 0,{code:"INIT_FILE_EXISTS"});let a=Yb(e);Bb(Wb(i),{recursive:!0}),Hb(i,a,"utf-8");let s=t.opts();if(Ee(s.format)==="json"){O(t,"",{ok:!0,template:n,path:i,preset:{kind:e.kind,label:e.label},content:a});return}ke(`Scaffolded ${i} from preset "${e.label}".`),Pe("Next: edit product/product.config.ts, then run `farthershore build --validate`.")})}function Ar(t){return JSON.stringify(t,null,2)}var t$="x-fs-surface",r$="cli",n$=["ProductApplyWorkflow","RollbackWorkflow","StripeSyncWorkflow","WebhookDispatchWorkflow","DLQReplayWorkflow","NoOpWorkflow"];function i$(){let t=process.env.FARTHERSHORE_API_URL;if(!t)throw new S("FARTHERSHORE_API_URL is not set. Point it at the core base URL (e.g. https://core.farthershore.com) before running `farthershore workflows`.",void 0,{code:"ADMIN_API_URL_MISSING"});return t.replace(/\/+$/,"")}function o$(){let t=process.env.FARTHERSHORE_ADMIN_SECRET;if(!t)throw new S("FARTHERSHORE_ADMIN_SECRET is not set. This command authenticates against core's /internal/admin/workflow/* proxy with the same shared secret fs-admin uses.",void 0,{code:"ADMIN_SECRET_MISSING"});return t}async function Ng(t){let r=i$(),n=o$(),o=await fetch(`${r}${t}`,{method:"GET",headers:{"content-type":"application/json","x-admin-service-secret":n,"x-admin-actor-id":"farthershore-cli",[t$]:r$}});if(!o.ok){let i=(await o.json().catch(()=>null))?.error;throw new S(i?.message??o.statusText,o.status,{code:i?.code,details:i?.details})}if(o.status!==204)return o.json()}function Ol(t){if(t==null)return"\u2014";if(t<1e3)return`${t}ms`;let r=t/1e3;if(r<60)return`${r.toFixed(1)}s`;let n=r/60;return n<60?`${n.toFixed(1)}m`:`${(n/60).toFixed(1)}h`}function Dg(t,r=new Date){let n=new Date(t.startedAt).getTime(),o=t.completedAt?new Date(t.completedAt).getTime():t.failedAt?new Date(t.failedAt).getTime():r.getTime();return Math.max(0,o-n)}function Ai(t){switch(t){case"COMPLETED":case"SUCCEEDED":case"CONVERGED":return A.green;case"RUNNING":case"PENDING":case"PAUSED":case"RETRYING":case"WAITING_FOR_APPROVAL":return A.yellow;case"FAILED":case"DIVERGED":case"STALLED":case"REQUIRES_HUMAN_INTERVENTION":case"TIMEOUT":return A.red;case"ROLLED_BACK":case"CANCELLED":case"COMPENSATED":return A.magenta;default:return r=>r}}function z(t,r){return t.length<=r?t.padEnd(r):r<=1?t.slice(0,r):`${t.slice(0,r-1)}\u2026`}var L={id:30,type:24,product:18,status:16,phase:26,started:24,duration:10};function a$(t,r=new Date){let n=A.dim([z("ID",L.id),z("TYPE",L.type),z("PRODUCT",L.product),z("STATUS",L.status),z("PHASE",L.phase),z("STARTED",L.started),z("DURATION",L.duration)].join(" ")),o=A.dim(["-".repeat(L.id),"-".repeat(L.type),"-".repeat(L.product),"-".repeat(L.status),"-".repeat(L.phase),"-".repeat(L.started),"-".repeat(L.duration)].join(" ")),e=t.map(i=>{let a=Ol(Dg(i,r)),s=Ai(i.status)(z(i.status,L.status));return[z(i.id,L.id),z(i.workflowType,L.type),z(i.productId??"\u2014",L.product),s,z(i.currentPhase??"\u2014",L.phase),z(i.startedAt,L.started),z(a,L.duration)].join(" ")});return[n,o,...e].join(`
128
- `)}function fe(t,r){let n;return r==null||r===""?n=A.dim("(unset)"):typeof r=="object"?n=JSON.stringify(r):typeof r=="string"||typeof r=="number"||typeof r=="boolean"?n=String(r):n=JSON.stringify(r),` ${A.dim(t.padEnd(20))}${n}`}var be={stepName:28,phase:26,status:14,attempt:8,duration:10},Dt={eventType:28,occurredAt:24,payload:60},Ut={surface:24,status:14,delta:60};function s$(t){if(t.length===0)return A.dim(" (no steps recorded)");let r=A.dim([z("STEP",be.stepName),z("PHASE",be.phase),z("STATUS",be.status),z("ATTEMPT",be.attempt),z("DURATION",be.duration)].join(" ")),n=t.map(o=>[z(o.stepName,be.stepName),z(o.phase,be.phase),Ai(o.status)(z(o.status,be.status)),z(String(o.attempt),be.attempt),z(Ol(o.durationMs),be.duration)].join(" "));return[r,...n].join(`
129
- `)}function c$(t){return Object.keys(t).length===0?"(empty)":JSON.stringify(t)}function u$(t){if(t.length===0)return A.dim(" (no events recorded)");let r=A.dim([z("EVENT",Dt.eventType),z("OCCURRED AT",Dt.occurredAt),z("PAYLOAD",Dt.payload)].join(" ")),n=t.map(o=>[z(o.eventType,Dt.eventType),z(o.occurredAt,Dt.occurredAt),z(c$(o.payload),Dt.payload)].join(" "));return[r,...n].join(`
130
- `)}function l$(t){if(t.length===0)return A.dim(" (no convergence state recorded)");let r=A.dim([z("SURFACE",Ut.surface),z("STATUS",Ut.status),z("DELTA",Ut.delta)].join(" ")),n=t.map(o=>[z(o.surface,Ut.surface),Ai(o.status)(z(o.status,Ut.status)),z(o.deltaDescription??"\u2014",Ut.delta)].join(" "));return[r,...n].join(`
131
- `)}function d$(t){let{execution:r,steps:n,events:o,convergence:e}=t,i=[];return i.push(A.bold(`Workflow ${r.id}`)),i.push(fe("type",r.workflowType)),i.push(fe("status",Ai(r.status)(r.status))),i.push(fe("currentPhase",r.currentPhase)),i.push(fe("startedAt",r.startedAt)),i.push(fe("completedAt",r.completedAt)),i.push(fe("triggeredBy",r.triggeredBy)),i.push(fe("correlationId",r.correlationId)),i.push(fe("productId",r.productId)),i.push(fe("duration",Ol(Dg(r)))),i.push(""),i.push(A.bold("Steps")),i.push(s$(n)),i.push(""),i.push(A.bold("Events")),i.push(u$(o)),i.push(""),i.push(A.bold("Convergence")),i.push(l$(e)),r.errorReason&&(i.push(""),i.push(A.bold(A.red("Error"))),i.push(fe("reason",r.errorReason)),i.push(fe("classification",r.errorClassification))),i.join(`
132
- `)}var zl=["RUNNING","COMPLETED","FAILED","ROLLED_BACK","STALLED","REQUIRES_HUMAN_INTERVENTION","WAITING_FOR_APPROVAL","CANCELLED"];function m$(t){if(!t)return 50;let r=Number.parseInt(t,10);if(Number.isNaN(r)||r<=0)throw new S(`--limit must be a positive integer (got "${t}")`,void 0,{code:"INVALID_LIMIT"});return r}function p$(t){let r=new URLSearchParams;if(t.status){if(!zl.includes(t.status))throw new S(`--status must be one of: ${zl.join(", ")} (got "${t.status}")`,void 0,{code:"INVALID_STATUS"});r.set("status",t.status)}t.type&&r.set("workflowType",t.type),t.product&&r.set("productId",t.product),r.set("limit",String(m$(t.limit)));let n=r.toString();return n?`?${n}`:""}function Ug(t){let r=t.command("workflows").description("Inspect durable lifecycle workflow executions (list / show / replay)");r.command("ls").description("List workflow executions as a table").option("--status <status>",`Filter by status (one of: ${zl.join(", ")})`).option("--type <type>",`Filter by workflow type (e.g. ${n$.join(", ")})`).option("--product <productId>","Filter by productId").option("--limit <N>","Maximum number of rows to return (default 50)").option("--json","Emit raw JSON for piping instead of the pretty table").action(async n=>{let o=p$(n),e=await Ng(`/internal/admin/workflow/executions${o}`);if(n.json){console.log(ee(e));return}console.log(a$(e.items)),console.log(A.dim(`
133
- ${e.items.length} executions${e.nextCursor?" (more available \u2014 pass --limit to see more)":""}`))}),r.command("show <workflowExecutionId>").description("Show a single workflow execution: header, steps, events, convergence panel").option("--json","Emit raw JSON instead of the pretty-printed view").action(async(n,o)=>{let e=await Ng(`/internal/admin/workflow/executions/${encodeURIComponent(n)}`);if(o.json){console.log(ee(e));return}console.log(d$(e))}),r.command("replay <workflowExecutionId>").description("Replay a workflow execution (or a single step). STUB in Wave 5 \u2014 operator-action endpoints land in a follow-up.").option("--step <stepName>","Replay only the named step rather than the full execution").action((n,o)=>{Oe("Replay is not yet implemented; use core's /workflow/<id>/rollback for now. Tracked in FAR-<followup>."),process.exitCode=1})}import{spawn as f$}from"node:child_process";import{existsSync as Fg}from"node:fs";import{readFile as g$}from"node:fs/promises";var h$="product/product.config.ts",v$="manifest-ir.json",Rg="./product/node_modules/.bin/farthershore-manifest-build",_$="./node_modules/.bin/farthershore-manifest-build";function y$(t=Fg){return t(Rg)?Rg:_$}async function b$(t,r=f$,n=Fg){let o=y$(n),e=["--entry",t.entry,"--out",t.out],i=r(o,e,{stdio:["ignore","pipe","pipe"]}),a="",s="",u=!1;return i.stdout?.setEncoding("utf8"),i.stderr?.setEncoding("utf8"),i.stdout?.on("data",l=>{a+=l}),i.stderr?.on("data",l=>{s+=l}),new Promise(l=>{let d=(m,g)=>{u||(u=!0,l({command:o,args:e,exitCode:m,signal:g,stdout:a,stderr:s}))};i.on("error",m=>{s+=`${m.message}
134
- `,d(1,null)}),i.on("close",(m,g)=>{d(m??(g?1:0),g)})})}async function $$(t){let r=await g$(t,"utf8"),n=JSON.parse(r);if(!j$(n)||!("ir"in n))throw new Error(`${t} is not a Manifest IR envelope with an ir field`);return{ir:n.ir,irHash:typeof n.irHash=="string"?n.irHash:void 0}}function Mg(t,r,n={}){t.command("build").description("Build product/product.config.ts into a Manifest IR envelope").option("--entry <path>","Product-as-code entry file (default: product/product.config.ts)").option("--out <path>","Output path for the Manifest IR envelope (default: manifest-ir.json)").option("--validate <product>","After the local build succeeds, dry-run compile this product id or name").option("--apply <product>","After the local build succeeds, apply this Manifest IR to the product lifecycle state").option("--env <environment>","Environment name or production").addHelpText("after",`
127
+ `).action(async r=>{let n,o=r.path;if(r.template)n=r$(r.template);else if(Ng.isTTY&&Dg.isTTY){let l=e$({input:Ng,output:Dg});try{let d=await a$({ask:m=>l.question(m),log:m=>{console.log(m)}});if(!d){Ee("Cancelled.");return}n=d.kind,o=o??d.path}finally{l.close()}}else throw new k(`--template is required when stdin is not a TTY. Choose one of: ${pe.join(", ")}.`,void 0,{code:"INIT_TEMPLATE_REQUIRED"});let e=Ai(n),i=Qb(o??zl);if(qb(i)&&!r.force)throw new k(`${i} already exists. Pass --force to overwrite.`,void 0,{code:"INIT_FILE_EXISTS"});let a=n$(e);Kb(Xb(i),{recursive:!0}),Yb(i,a,"utf-8");let s=t.opts();if(Pe(s.format)==="json"){I(t,"",{ok:!0,template:n,path:i,preset:{kind:e.kind,label:e.label},content:a});return}Se(`Scaffolded ${i} from preset "${e.label}".`),Ee("Next: edit product/product.config.ts, then run `farthershore build --validate`.")})}function Ar(t){return JSON.stringify(t,null,2)}var s$="x-fs-surface",c$="cli",u$=["ProductApplyWorkflow","RollbackWorkflow","StripeSyncWorkflow","WebhookDispatchWorkflow","DLQReplayWorkflow","NoOpWorkflow"];function l$(){let t=process.env.FARTHERSHORE_API_URL;if(!t)throw new k("FARTHERSHORE_API_URL is not set. Point it at the core base URL (e.g. https://core.farthershore.com) before running `farthershore workflows`.",void 0,{code:"ADMIN_API_URL_MISSING"});return t.replace(/\/+$/,"")}function d$(){let t=process.env.FARTHERSHORE_ADMIN_SECRET;if(!t)throw new k("FARTHERSHORE_ADMIN_SECRET is not set. This command authenticates against core's /internal/admin/workflow/* proxy with the same shared secret fs-admin uses.",void 0,{code:"ADMIN_SECRET_MISSING"});return t}async function Rg(t){let r=l$(),n=d$(),o=await fetch(`${r}${t}`,{method:"GET",headers:{"content-type":"application/json","x-admin-service-secret":n,"x-admin-actor-id":"farthershore-cli",[s$]:c$}});if(!o.ok){let i=(await o.json().catch(()=>null))?.error;throw new k(i?.message??o.statusText,o.status,{code:i?.code,details:i?.details})}if(o.status!==204)return o.json()}function El(t){if(t==null)return"\u2014";if(t<1e3)return`${t}ms`;let r=t/1e3;if(r<60)return`${r.toFixed(1)}s`;let n=r/60;return n<60?`${n.toFixed(1)}m`:`${(n/60).toFixed(1)}h`}function Zg(t,r=new Date){let n=new Date(t.startedAt).getTime(),o=t.completedAt?new Date(t.completedAt).getTime():t.failedAt?new Date(t.failedAt).getTime():r.getTime();return Math.max(0,o-n)}function Ci(t){switch(t){case"COMPLETED":case"SUCCEEDED":case"CONVERGED":return A.green;case"RUNNING":case"PENDING":case"PAUSED":case"RETRYING":case"WAITING_FOR_APPROVAL":return A.yellow;case"FAILED":case"DIVERGED":case"STALLED":case"REQUIRES_HUMAN_INTERVENTION":case"TIMEOUT":return A.red;case"ROLLED_BACK":case"CANCELLED":case"COMPENSATED":return A.magenta;default:return r=>r}}function O(t,r){return t.length<=r?t.padEnd(r):r<=1?t.slice(0,r):`${t.slice(0,r-1)}\u2026`}var L={id:30,type:24,product:18,status:16,phase:26,started:24,duration:10};function m$(t,r=new Date){let n=A.dim([O("ID",L.id),O("TYPE",L.type),O("PRODUCT",L.product),O("STATUS",L.status),O("PHASE",L.phase),O("STARTED",L.started),O("DURATION",L.duration)].join(" ")),o=A.dim(["-".repeat(L.id),"-".repeat(L.type),"-".repeat(L.product),"-".repeat(L.status),"-".repeat(L.phase),"-".repeat(L.started),"-".repeat(L.duration)].join(" ")),e=t.map(i=>{let a=El(Zg(i,r)),s=Ci(i.status)(O(i.status,L.status));return[O(i.id,L.id),O(i.workflowType,L.type),O(i.productId??"\u2014",L.product),s,O(i.currentPhase??"\u2014",L.phase),O(i.startedAt,L.started),O(a,L.duration)].join(" ")});return[n,o,...e].join(`
128
+ `)}function fe(t,r){let n;return r==null||r===""?n=A.dim("(unset)"):typeof r=="object"?n=JSON.stringify(r):typeof r=="string"||typeof r=="number"||typeof r=="boolean"?n=String(r):n=JSON.stringify(r),` ${A.dim(t.padEnd(20))}${n}`}var be={stepName:28,phase:26,status:14,attempt:8,duration:10},Dt={eventType:28,occurredAt:24,payload:60},Ut={surface:24,status:14,delta:60};function p$(t){if(t.length===0)return A.dim(" (no steps recorded)");let r=A.dim([O("STEP",be.stepName),O("PHASE",be.phase),O("STATUS",be.status),O("ATTEMPT",be.attempt),O("DURATION",be.duration)].join(" ")),n=t.map(o=>[O(o.stepName,be.stepName),O(o.phase,be.phase),Ci(o.status)(O(o.status,be.status)),O(String(o.attempt),be.attempt),O(El(o.durationMs),be.duration)].join(" "));return[r,...n].join(`
129
+ `)}function f$(t){return Object.keys(t).length===0?"(empty)":JSON.stringify(t)}function g$(t){if(t.length===0)return A.dim(" (no events recorded)");let r=A.dim([O("EVENT",Dt.eventType),O("OCCURRED AT",Dt.occurredAt),O("PAYLOAD",Dt.payload)].join(" ")),n=t.map(o=>[O(o.eventType,Dt.eventType),O(o.occurredAt,Dt.occurredAt),O(f$(o.payload),Dt.payload)].join(" "));return[r,...n].join(`
130
+ `)}function h$(t){if(t.length===0)return A.dim(" (no convergence state recorded)");let r=A.dim([O("SURFACE",Ut.surface),O("STATUS",Ut.status),O("DELTA",Ut.delta)].join(" ")),n=t.map(o=>[O(o.surface,Ut.surface),Ci(o.status)(O(o.status,Ut.status)),O(o.deltaDescription??"\u2014",Ut.delta)].join(" "));return[r,...n].join(`
131
+ `)}function v$(t){let{execution:r,steps:n,events:o,convergence:e}=t,i=[];return i.push(A.bold(`Workflow ${r.id}`)),i.push(fe("type",r.workflowType)),i.push(fe("status",Ci(r.status)(r.status))),i.push(fe("currentPhase",r.currentPhase)),i.push(fe("startedAt",r.startedAt)),i.push(fe("completedAt",r.completedAt)),i.push(fe("triggeredBy",r.triggeredBy)),i.push(fe("correlationId",r.correlationId)),i.push(fe("productId",r.productId)),i.push(fe("duration",El(Zg(r)))),i.push(""),i.push(A.bold("Steps")),i.push(p$(n)),i.push(""),i.push(A.bold("Events")),i.push(g$(o)),i.push(""),i.push(A.bold("Convergence")),i.push(h$(e)),r.errorReason&&(i.push(""),i.push(A.bold(A.red("Error"))),i.push(fe("reason",r.errorReason)),i.push(fe("classification",r.errorClassification))),i.join(`
132
+ `)}var Ol=["RUNNING","COMPLETED","FAILED","ROLLED_BACK","STALLED","REQUIRES_HUMAN_INTERVENTION","WAITING_FOR_APPROVAL","CANCELLED"];function _$(t){if(!t)return 50;let r=Number.parseInt(t,10);if(Number.isNaN(r)||r<=0)throw new k(`--limit must be a positive integer (got "${t}")`,void 0,{code:"INVALID_LIMIT"});return r}function y$(t){let r=new URLSearchParams;if(t.status){if(!Ol.includes(t.status))throw new k(`--status must be one of: ${Ol.join(", ")} (got "${t.status}")`,void 0,{code:"INVALID_STATUS"});r.set("status",t.status)}t.type&&r.set("workflowType",t.type),t.product&&r.set("productId",t.product),r.set("limit",String(_$(t.limit)));let n=r.toString();return n?`?${n}`:""}function Lg(t){let r=t.command("workflows").description("Inspect durable lifecycle workflow executions (list / show / replay)");r.command("ls").description("List workflow executions as a table").option("--status <status>",`Filter by status (one of: ${Ol.join(", ")})`).option("--type <type>",`Filter by workflow type (e.g. ${u$.join(", ")})`).option("--product <productId>","Filter by productId").option("--limit <N>","Maximum number of rows to return (default 50)").option("--json","Emit raw JSON for piping instead of the pretty table").action(async n=>{let o=y$(n),e=await Rg(`/internal/admin/workflow/executions${o}`);if(n.json){console.log(ee(e));return}console.log(m$(e.items)),console.log(A.dim(`
133
+ ${e.items.length} executions${e.nextCursor?" (more available \u2014 pass --limit to see more)":""}`))}),r.command("show <workflowExecutionId>").description("Show a single workflow execution: header, steps, events, convergence panel").option("--json","Emit raw JSON instead of the pretty-printed view").action(async(n,o)=>{let e=await Rg(`/internal/admin/workflow/executions/${encodeURIComponent(n)}`);if(o.json){console.log(ee(e));return}console.log(v$(e))}),r.command("replay <workflowExecutionId>").description("Replay a workflow execution (or a single step). STUB in Wave 5 \u2014 operator-action endpoints land in a follow-up.").option("--step <stepName>","Replay only the named step rather than the full execution").action((n,o)=>{Oe("Replay is not yet implemented; use core's /workflow/<id>/rollback for now. Tracked in FAR-<followup>."),process.exitCode=1})}import{spawn as b$}from"node:child_process";import{existsSync as Bg}from"node:fs";import{readFile as $$}from"node:fs/promises";var x$="product/product.config.ts",k$="manifest-ir.json",Mg="./product/node_modules/.bin/farthershore-manifest-build",S$="./node_modules/.bin/farthershore-manifest-build";function w$(t=Bg){return t(Mg)?Mg:S$}async function I$(t,r=b$,n=Bg){let o=w$(n),e=["--entry",t.entry,"--out",t.out],i=r(o,e,{stdio:["ignore","pipe","pipe"]}),a="",s="",u=!1;return i.stdout?.setEncoding("utf8"),i.stderr?.setEncoding("utf8"),i.stdout?.on("data",l=>{a+=l}),i.stderr?.on("data",l=>{s+=l}),new Promise(l=>{let d=(m,g)=>{u||(u=!0,l({command:o,args:e,exitCode:m,signal:g,stdout:a,stderr:s}))};i.on("error",m=>{s+=`${m.message}
134
+ `,d(1,null)}),i.on("close",(m,g)=>{d(m??(g?1:0),g)})})}async function z$(t){let r=await $$(t,"utf8"),n=JSON.parse(r);if(!R$(n)||!("ir"in n))throw new Error(`${t} is not a Manifest IR envelope with an ir field`);return{ir:n.ir,irHash:typeof n.irHash=="string"?n.irHash:void 0}}function Hg(t,r,n={}){t.command("build").description("Build product/product.config.ts into a Manifest IR envelope").option("--entry <path>","Product-as-code entry file (default: product/product.config.ts)").option("--out <path>","Output path for the Manifest IR envelope (default: manifest-ir.json)").option("--validate <product>","After the local build succeeds, dry-run compile this product id or name").option("--apply <product>","After the local build succeeds, apply this Manifest IR to the product lifecycle state").option("--env <environment>","Environment name or production").addHelpText("after",`
135
135
  Examples:
136
136
  farthershore build
137
137
  farthershore build --entry product/product.config.ts --out manifest-ir.json
138
138
  farthershore build --validate weather-api --format json
139
139
  farthershore build --apply weather-api --env preview --format json
140
140
  farthershore build --validate weather-api --env preview --format json
141
- `).action(async o=>{let e=t.opts(),i=Ee(e.format),a=o.entry??h$,s=o.out??v$,u=n.runLocalManifestBuild??b$,l=n.readManifestEnvelope??$$,d=await u({entry:a,out:s});if(x$(d,i),d.exitCode!==0){k$(d,a,s,i);return}let m;try{m=await l(s)}catch(x){S$(x,a,s,i);return}let g=null,_=null;if(o.validate&&o.apply){w$(a,s,m,i);return}if(o.validate){_="validate";try{g=await I$({client:r(),product:o.validate,ir:m.ir,envName:o.env??e.env})}catch(x){Zg(x,a,s,m,i);return}}if(o.apply){_="apply";try{g=await z$({client:r(),product:o.apply,ir:m.ir,envName:o.env??e.env,sourceRef:`cli:${s}`})}catch(x){Zg(x,a,s,m,i);return}}O$({entry:a,out:s,envelope:m,validation:g,remoteMode:_,format:i})})}function x$(t,r){r!=="json"&&(t.stdout&&process.stdout.write(t.stdout),t.stderr&&process.stderr.write(t.stderr))}function k$(t,r,n,o){if(process.exitCode=t.exitCode||1,o==="json"){console.log(ee({ok:!1,success:!1,phase:"local_build",entry:r,out:n,command:t.command,args:t.args,exitCode:t.exitCode,signal:t.signal,stdout:t.stdout,stderr:t.stderr,nextActions:["Fix product/product.config.ts and run farthershore build again"]}));return}Oe(`Manifest build failed with exit code ${t.exitCode||1}`)}function S$(t,r,n,o){let e=t instanceof Error?t.message:"Manifest IR output could not be read";if(process.exitCode=1,o==="json"){console.log(ee({ok:!1,success:!1,phase:"read_manifest_ir",entry:r,out:n,errors:[{message:e}],nextActions:["Check the manifest build output path and run farthershore build again"]}));return}Oe(e)}function Zg(t,r,n,o,e){let i=t instanceof Error?t.message:"Manifest compile dry-run failed";if(process.exitCode=1,e==="json"){console.log(ee({ok:!1,success:!1,phase:"remote_validation",entry:r,out:n,irHash:o.irHash??null,errors:[{message:i}],nextActions:["Fix product/product.config.ts or credentials and run farthershore build --validate again"]}));return}Oe(i)}function w$(t,r,n,o){if(process.exitCode=1,o==="json"){console.log(ee({ok:!1,success:!1,phase:"remote_compile",entry:t,out:r,irHash:n.irHash??null,errors:[{message:"Pass either --validate <product> or --apply <product>, not both."}],nextActions:["Run farthershore build --validate <product> first, then farthershore build --apply <product> when ready"]}));return}Oe("Pass either --validate <product> or --apply <product>, not both.")}async function I$(t){let r=await N(t.client,t.product),n=so(t.envName),o=co(n);return t.client.compileProductManifest(r,{ir:t.ir,env:o})}async function z$(t){let r=await N(t.client,t.product),n=so(t.envName),o=co(n);return t.client.applyProductManifest(r,{ir:t.ir,env:o,sourceRef:t.sourceRef})}function O$(t){let r=t.validation?.success!==!1;if(r||(process.exitCode=1),t.format==="json"){console.log(ee({ok:r,success:r,entry:t.entry,out:t.out,irHash:t.envelope.irHash??t.validation?.irHash??null,mode:t.remoteMode,validation:t.validation,errors:t.validation?.errors??[],warnings:t.validation?.warnings??[],lifecyclePlan:t.validation?.lifecyclePlan??null,nextActions:P$(r,t.validation)}));return}if(ke(`Manifest IR written to ${t.out}`),!t.validation){Pe("Run farthershore build --validate <product> to dry-run compile, or --apply <product> to accept the lifecycle change in Core.");return}if(r){ke(t.remoteMode==="apply"?"Manifest apply passed":"Manifest compile dry-run passed");for(let n of t.validation.warnings??[])oo(Lg(n));E$(t.validation.lifecyclePlan),T$(t.validation.compiledPlans);return}Oe(t.remoteMode==="apply"?`Manifest apply failed
141
+ `).action(async o=>{let e=t.opts(),i=Pe(e.format),a=o.entry??x$,s=o.out??k$,u=n.runLocalManifestBuild??I$,l=n.readManifestEnvelope??z$,d=await u({entry:a,out:s});if(O$(d,i),d.exitCode!==0){E$(d,a,s,i);return}let m;try{m=await l(s)}catch(x){P$(x,a,s,i);return}let g=null,_=null;if(o.validate&&o.apply){T$(a,s,m,i);return}if(o.validate){_="validate";try{g=await j$({client:r(),product:o.validate,ir:m.ir,envName:o.env})}catch(x){Fg(x,a,s,m,i);return}}if(o.apply){_="apply";try{g=await A$({client:r(),product:o.apply,ir:m.ir,envName:o.env,sourceRef:`cli:${s}`})}catch(x){Fg(x,a,s,m,i);return}}C$({entry:a,out:s,envelope:m,validation:g,remoteMode:_,format:i})})}function O$(t,r){r!=="json"&&(t.stdout&&process.stdout.write(t.stdout),t.stderr&&process.stderr.write(t.stderr))}function E$(t,r,n,o){if(process.exitCode=t.exitCode||1,o==="json"){console.log(ee({ok:!1,success:!1,phase:"local_build",entry:r,out:n,command:t.command,args:t.args,exitCode:t.exitCode,signal:t.signal,stdout:t.stdout,stderr:t.stderr,nextActions:["Fix product/product.config.ts and run farthershore build again"]}));return}Oe(`Manifest build failed with exit code ${t.exitCode||1}`)}function P$(t,r,n,o){let e=t instanceof Error?t.message:"Manifest IR output could not be read";if(process.exitCode=1,o==="json"){console.log(ee({ok:!1,success:!1,phase:"read_manifest_ir",entry:r,out:n,errors:[{message:e}],nextActions:["Check the manifest build output path and run farthershore build again"]}));return}Oe(e)}function Fg(t,r,n,o,e){let i=t instanceof Error?t.message:"Manifest compile dry-run failed";if(process.exitCode=1,e==="json"){console.log(ee({ok:!1,success:!1,phase:"remote_validation",entry:r,out:n,irHash:o.irHash??null,errors:[{message:i}],nextActions:["Fix product/product.config.ts or credentials and run farthershore build --validate again"]}));return}Oe(i)}function T$(t,r,n,o){if(process.exitCode=1,o==="json"){console.log(ee({ok:!1,success:!1,phase:"remote_compile",entry:t,out:r,irHash:n.irHash??null,errors:[{message:"Pass either --validate <product> or --apply <product>, not both."}],nextActions:["Run farthershore build --validate <product> first, then farthershore build --apply <product> when ready"]}));return}Oe("Pass either --validate <product> or --apply <product>, not both.")}async function j$(t){let r=await N(t.client,t.product),n=co(t.envName),o=uo(n);return t.client.compileProductManifest(r,{ir:t.ir,env:o})}async function A$(t){let r=await N(t.client,t.product),n=co(t.envName),o=uo(n);return t.client.applyProductManifest(r,{ir:t.ir,env:o,sourceRef:t.sourceRef})}function C$(t){let r=t.validation?.success!==!1;if(r||(process.exitCode=1),t.format==="json"){console.log(ee({ok:r,success:r,entry:t.entry,out:t.out,irHash:t.envelope.irHash??t.validation?.irHash??null,mode:t.remoteMode,validation:t.validation,errors:t.validation?.errors??[],warnings:t.validation?.warnings??[],lifecyclePlan:t.validation?.lifecyclePlan??null,nextActions:N$(r,t.validation)}));return}if(Se(`Manifest IR written to ${t.out}`),!t.validation){Ee("Run farthershore build --validate <product> to dry-run compile, or --apply <product> to accept the lifecycle change in Core.");return}if(r){Se(t.remoteMode==="apply"?"Manifest apply passed":"Manifest compile dry-run passed");for(let n of t.validation.warnings??[])ao(Vg(n));D$(t.validation.lifecyclePlan),U$(t.validation.compiledPlans);return}Oe(t.remoteMode==="apply"?`Manifest apply failed
142
142
  `:`Manifest compile dry-run failed
143
- `);for(let n of t.validation.errors??[])console.log(` - ${Lg(n)}`)}function P$(t,r){return r?t?["Commit product/product.config.ts and the generated Manifest IR if desired"]:["Fix product/product.config.ts and run farthershore build --validate again"]:["Run farthershore build --validate <product> to dry-run compile, or --apply <product> to accept the lifecycle change"]}function Lg(t){let r=t.code?`[${t.code}] `:"",n=t.path?`${t.path}: `:"";return`${r}${n}${t.message}`}function E$(t){if(t){if(t.requiresSubscriptionMigration){oo(`Subscription migration required (${t.actions.length} domain action(s)). See lifecyclePlan in --format json output for details.`);return}t.actions.length>0&&Pe(`Lifecycle plan: ${t.actions.length} domain action(s); no subscription migration required.`)}}function T$(t){if(t?.length){Pe("Compiled plan active subscriptions:");for(let r of t){let n=r.planKey??"(unknown)",o=r.status?` ${r.status}`:"",e=r.activeSubscriptionCount??0;Pe(` - ${n}:${o} ${e}`)}}}function j$(t){return!!t&&typeof t=="object"&&!Array.isArray(t)}var A$={UNAUTHORIZED:"Token is invalid or revoked. Run `farthershore auth login` to update it.",FORBIDDEN:"Your token doesn't have access to this resource. Check the org / product scope.",INVALID_ACCESS_KEY:"Token format is wrong. Generate a new one at https://farthershore.com/settings/tokens.",MAKER_TOKEN_REVOKED:"This maker token was revoked. Mint a new one in the product settings.",MAKER_TOKEN_NO_PRODUCT:"Maker token is not bound to a product. Re-create it from the product page.",AUTH_NO_TOKEN:"Pass --token <mk_...> or set FARTHERSHORE_TOKEN, or run interactively in a TTY.",AUTH_INVALID_TOKEN:"Token format is malformed. Maker tokens start with `mk_` and are 30+ characters.",DESTRUCTIVE_OP_REQUIRES_YES:"Destructive ops (delete) require an explicit `--yes` to proceed. This is intentional safety.",PRODUCT_UPDATE_NO_FIELDS:"Pass at least one field flag (--display-name, --base-url, --description).",PLAN_UPDATE_NO_FIELDS:"Pass at least one of --name, --recurring-fee-cents, --recurring-credit-grant-cents, --one-time-credit-grant-cents, --trial-days, --max-monthly-spend-cents.",ENV_NOT_FOUND:"Environment doesn't exist. Use `farthershore env list <product>` to see available envs, or create one with `farthershore env create`.",STRIPE_NOT_CONFIGURED:"Stripe isn't connected on this product. Connect it in the dashboard before running billing operations.",STRIPE_NOT_CONNECTED:"Publishing requires a connected Stripe account. Connect one on the dashboard Connections page, then re-run `farthershore product publish`.",STRIPE_NOT_VERIFIED:"Your Stripe account isn't fully verified yet. Finish Stripe onboarding, then re-run `farthershore product publish`.",BILLING_TAX_NOT_ENROLLED:"Stripe Tax isn't enrolled for this account. Enable it from the dashboard Connections page, then re-run `farthershore product publish`.",STRIPE_BALANCE_OUTSTANDING:"Customer has an outstanding balance. Resolve the invoice in Stripe before retrying.",CHECKOUT_SESSION_FAILED:"Stripe rejected the checkout request. Check that the plan exists and Stripe credentials are valid.",PRODUCT_NOT_FOUND:"Check the product slug. Run `farthershore` (no args) for a list of products you can see.",PRODUCT_REPO_NOT_LINKED:"Link a GitHub repo to this product before publishing or validating product manifests.",YAML_PARSE_ERROR:"product manifest is not valid. Run `farthershore build --validate <product>` to surface validation details.",GITHUB_NOT_CONNECTED:"Connect GitHub on the org page before running `init` (it provisions the repo).",BRANCH_NO_MATCHING_ENV:"The current branch isn't mapped to an environment. Add a branch rule in product settings or pass --branch explicitly.",PLAN_NOT_FOUND:"Plan key doesn't exist on this product. Check the `plans` block in your local product manifest.",PLAN_HAS_ACTIVE_SUBSCRIPTIONS:"Plan has active subscribers and can't be deleted. Migrate them to another plan first.",PLAN_SLUG_CONFLICT:"Another plan already uses this key. Pick a unique plan key in your manifest.",SLUG_CONFLICT:"This product slug is taken. Pick a different name.",SLUG_BLOCKED:"This slug is reserved or blocked. Pick a different name.",SLUG_RESERVED:"This slug is reserved by Farther Shore. Pick a different name.",SLUG_INVALID_FORMAT:"Slug must be lowercase letters, digits, and hyphens (no leading/trailing hyphen).",DECISION_NOT_FOUND:"No DenialEvent recorded for that decisionId. Verify the id from the original deny response or audit log.",AUTH_UNAUTHORIZED:"Token is missing, expired, or lacks the audit:read scope required to read denial events.",RATE_LIMIT_EXCEEDED:"You've hit the rate limit. Wait a moment and retry.",VALIDATION_ERROR:"Request is malformed. The `details` field has the field-level errors.",CONFLICT:"The resource is in a state that conflicts with the request. Inspect `details` to learn more."};function Vg(t){if(t)return A$[t]}var R$=D$(N$(import.meta.url)),Z$=JSON.parse(await C$(U$(R$,"..","package.json"),"utf-8")),q=new Bl;q.name("farthershore").description("FartherShore CLI \u2014 agent-friendly commands for product configuration").version(Z$.version).option("--token <token>","Override auth token").option("--api-url <url>","Override API base URL").option("--format <format>","Output format. Use --format json for machine-readable agent output");function ze(){let t=Yl(),r=q.opts(),n=ed(r.token),o=r.apiUrl??process.env.FARTHERSHORE_API_URL??t.apiUrl;return Hl({apiUrl:o,token:n})}pd(q,ze);hd(q,ze);vd(q,ze);zg(q,ze);Og(q,ze);Pg(q,ze);Eg(q,ze);Tg(q,ze);Cg(q);Mg(q,ze);Ug(q);q.exitOverride();function L$(t){let r=t.code?` [${t.code}]`:"";process.stderr.write(`Error${r}: ${t.message}
144
- `);let n=Vg(t.code);n&&process.stderr.write(`Hint: ${n}
145
- `)}async function F$(){try{await q.parseAsync(process.argv)}catch(t){if(t instanceof S)L$(t),process.exitCode=1;else if(t instanceof Error){let r=t.code;r==="commander.helpDisplayed"||r==="commander.version"||t.message!=="(outputHelp)"&&(process.stderr.write(`Error: ${t.message}
146
- `),process.exitCode=1)}}}F$();
143
+ `);for(let n of t.validation.errors??[])console.log(` - ${Vg(n)}`)}function N$(t,r){return r?t?["Commit product/product.config.ts and the generated Manifest IR if desired"]:["Fix product/product.config.ts and run farthershore build --validate again"]:["Run farthershore build --validate <product> to dry-run compile, or --apply <product> to accept the lifecycle change"]}function Vg(t){let r=t.code?`[${t.code}] `:"",n=t.path?`${t.path}: `:"";return`${r}${n}${t.message}`}function D$(t){if(t){if(t.requiresSubscriptionMigration){ao(`Subscription migration required (${t.actions.length} domain action(s)). See lifecyclePlan in --format json output for details.`);return}t.actions.length>0&&Ee(`Lifecycle plan: ${t.actions.length} domain action(s); no subscription migration required.`)}}function U$(t){if(t?.length){Ee("Compiled plan active subscriptions:");for(let r of t){let n=r.planKey??"(unknown)",o=r.status?` ${r.status}`:"",e=r.activeSubscriptionCount??0;Ee(` - ${n}:${o} ${e}`)}}}function R$(t){return!!t&&typeof t=="object"&&!Array.isArray(t)}var Z$={UNAUTHORIZED:"Token is invalid or revoked. Run `farthershore auth login` to update it.",FORBIDDEN:"Your token doesn't have access to this resource. Check the org / product scope.",INVALID_ACCESS_KEY:"Token format is wrong. Generate a new one at https://farthershore.com/settings/tokens.",MAKER_TOKEN_REVOKED:"This maker token was revoked. Mint a new one in the product settings.",MAKER_TOKEN_NO_PRODUCT:"Maker token is not bound to a product. Re-create it from the product page.",AUTH_NO_TOKEN:"Pass --token <mk_...> or set FARTHERSHORE_TOKEN, or run interactively in a TTY.",AUTH_INVALID_TOKEN:"Token format is malformed. Maker tokens start with `mk_` and are 30+ characters.",DESTRUCTIVE_OP_REQUIRES_YES:"Destructive ops (delete) require an explicit `--yes` to proceed. This is intentional safety.",PRODUCT_UPDATE_NO_FIELDS:"Pass at least one field flag (--display-name, --base-url, --description).",PLAN_UPDATE_NO_FIELDS:"Pass at least one of --name, --recurring-fee-cents, --recurring-credit-grant-cents, --one-time-credit-grant-cents, --trial-days, --max-monthly-spend-cents.",ENV_NOT_FOUND:"Environment doesn't exist. Use `farthershore env list <product>` to see available envs, or create one with `farthershore env create`.",STRIPE_NOT_CONFIGURED:"Stripe isn't connected on this product. Connect it in the dashboard before running billing operations.",STRIPE_NOT_CONNECTED:"Publishing requires a connected Stripe account. Connect one on the dashboard Connections page, then re-run `farthershore product publish`.",STRIPE_NOT_VERIFIED:"Your Stripe account isn't fully verified yet. Finish Stripe onboarding, then re-run `farthershore product publish`.",BILLING_TAX_NOT_ENROLLED:"Stripe Tax isn't enrolled for this account. Enable it from the dashboard Connections page, then re-run `farthershore product publish`.",STRIPE_BALANCE_OUTSTANDING:"Customer has an outstanding balance. Resolve the invoice in Stripe before retrying.",CHECKOUT_SESSION_FAILED:"Stripe rejected the checkout request. Check that the plan exists and Stripe credentials are valid.",PRODUCT_NOT_FOUND:"Check the product slug. Run `farthershore` (no args) for a list of products you can see.",PRODUCT_REPO_NOT_LINKED:"Link a GitHub repo to this product before publishing or validating product manifests.",YAML_PARSE_ERROR:"product manifest is not valid. Run `farthershore build --validate <product>` to surface validation details.",GITHUB_NOT_CONNECTED:"Connect GitHub on the org page before running `init` (it provisions the repo).",BRANCH_NO_MATCHING_ENV:"The current branch isn't mapped to an environment. Add a branch rule in product settings or pass --branch explicitly.",PLAN_NOT_FOUND:"Plan key doesn't exist on this product. Check the `plans` block in your local product manifest.",PLAN_HAS_ACTIVE_SUBSCRIPTIONS:"Plan has active subscribers and can't be deleted. Migrate them to another plan first.",PLAN_SLUG_CONFLICT:"Another plan already uses this key. Pick a unique plan key in your manifest.",SLUG_CONFLICT:"This product slug is taken. Pick a different name.",SLUG_BLOCKED:"This slug is reserved or blocked. Pick a different name.",SLUG_RESERVED:"This slug is reserved by Farther Shore. Pick a different name.",SLUG_INVALID_FORMAT:"Slug must be lowercase letters, digits, and hyphens (no leading/trailing hyphen).",DECISION_NOT_FOUND:"No DenialEvent recorded for that decisionId. Verify the id from the original deny response or audit log.",AUTH_UNAUTHORIZED:"Token is missing, expired, or lacks the audit:read scope required to read denial events.",RATE_LIMIT_EXCEEDED:"You've hit the rate limit. Wait a moment and retry.",VALIDATION_ERROR:"Request is malformed. The `details` field has the field-level errors.",CONFLICT:"The resource is in a state that conflicts with the request. Inspect `details` to learn more."};function Gg(t){if(t)return Z$[t]}var B$=F$(M$(import.meta.url)),H$=JSON.parse(await L$(V$(B$,"..","package.json"),"utf-8")),H=new Hl;H.name("farthershore").description("FartherShore CLI \u2014 agent-friendly commands for product configuration").version(H$.version).option("--token <token>","Override auth token").option("--api-url <url>","Override API base URL").option("--format <format>","Output format. Use --format json for machine-readable agent output");function $e(){let t=Xl(),r=H.opts(),n=td(r.token),o=r.apiUrl??process.env.FARTHERSHORE_API_URL??t.apiUrl;return Gl({apiUrl:o,token:n})}fd(H,$e);vd(H,$e);_d(H,$e);Eg(H,$e);Pg(H,$e);Tg(H,$e);jg(H,$e);Ag(H,$e);Cg(H,$e);Ug(H);Hg(H,$e);Lg(H);H.exitOverride();function G$(t){let r=t.code?` [${t.code}]`:"";process.stderr.write(`Error${r}: ${t.message}
144
+ `);let n=Gg(t.code);n&&process.stderr.write(`Hint: ${n}
145
+ `)}async function W$(){try{await H.parseAsync(process.argv)}catch(t){if(t instanceof k)G$(t),process.exitCode=1;else if(t instanceof Error){let r=t.code;r==="commander.helpDisplayed"||r==="commander.version"||t.message!=="(outputHelp)"&&(process.stderr.write(`Error: ${t.message}
146
+ `),process.exitCode=1)}}}W$();