@shipstatic/ship 2.9.3 → 2.9.4-beta.1

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/cli.cjs CHANGED
@@ -1,40 +1,40 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var _g=Object.create;var ao=Object.defineProperty;var yg=Object.getOwnPropertyDescriptor;var $g=Object.getOwnPropertyNames;var xg=Object.getPrototypeOf,bg=Object.prototype.hasOwnProperty;var Y=(e,t)=>()=>(e&&(t=e(e=0)),t);var W=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pe=(e,t)=>{for(var r in t)ao(e,r,{get:t[r],enumerable:!0})},Sg=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of $g(t))!bg.call(e,n)&&n!==r&&ao(e,n,{get:()=>t[n],enumerable:!(o=yg(t,n))||o.enumerable});return e};var re=(e,t,r)=>(r=e!=null?_g(xg(e)):{},Sg(t||!e||!e.__esModule?ao(r,"default",{value:e,enumerable:!0}):r,e));var Kt=W(co=>{"use strict";var Hn=class extends Error{constructor(t,r,o){super(o),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=t,this.nestedError=void 0}},so=class extends Hn{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};co.CommanderError=Hn;co.InvalidArgumentError=so});var Jn=W(lo=>{"use strict";var{InvalidArgumentError:kg}=Kt(),uo=class{constructor(t,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t;break}this._name.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:(r.push(t),r)}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}argParser(t){return this.parseArg=t,this}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,o)=>{if(!this.argChoices.includes(r))throw new kg(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(r,o):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function wg(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}lo.Argument=uo;lo.humanReadableArgName=wg});var fo=W(mo=>{"use strict";var{humanReadableArgName:Ig}=Jn(),po=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(t){this.helpWidth=this.helpWidth??t.helpWidth??80}visibleCommands(t){let r=t.commands.filter(n=>!n._hidden),o=t._getHelpCommand();return o&&!o._hidden&&r.push(o),this.sortSubcommands&&r.sort((n,i)=>n.name().localeCompare(i.name())),r}compareOptions(t,r){let o=n=>n.short?n.short.replace(/^-/,""):n.long.replace(/^--/,"");return o(t).localeCompare(o(r))}visibleOptions(t){let r=t.options.filter(n=>!n.hidden),o=t._getHelpOption();if(o&&!o.hidden){let n=o.short&&t._findOption(o.short),i=o.long&&t._findOption(o.long);!n&&!i?r.push(o):o.long&&!i?r.push(t.createOption(o.long,o.description)):o.short&&!n&&r.push(t.createOption(o.short,o.description))}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];let r=[];for(let o=t.parent;o;o=o.parent){let n=o.options.filter(i=>!i.hidden);r.push(...n)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(t){return t._argsDescription&&t.registeredArguments.forEach(r=>{r.description=r.description||t._argsDescription[r.name()]||""}),t.registeredArguments.find(r=>r.description)?t.registeredArguments:[]}subcommandTerm(t){let r=t.registeredArguments.map(o=>Ig(o)).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,r){return r.visibleCommands(t).reduce((o,n)=>Math.max(o,this.displayWidth(r.styleSubcommandTerm(r.subcommandTerm(n)))),0)}longestOptionTermLength(t,r){return r.visibleOptions(t).reduce((o,n)=>Math.max(o,this.displayWidth(r.styleOptionTerm(r.optionTerm(n)))),0)}longestGlobalOptionTermLength(t,r){return r.visibleGlobalOptions(t).reduce((o,n)=>Math.max(o,this.displayWidth(r.styleOptionTerm(r.optionTerm(n)))),0)}longestArgumentTermLength(t,r){return r.visibleArguments(t).reduce((o,n)=>Math.max(o,this.displayWidth(r.styleArgumentTerm(r.argumentTerm(n)))),0)}commandUsage(t){let r=t._name;t._aliases[0]&&(r=r+"|"+t._aliases[0]);let o="";for(let n=t.parent;n;n=n.parent)o=n.name()+" "+o;return o+r+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(o=>JSON.stringify(o)).join(", ")}`),t.defaultValue!==void 0&&(t.required||t.optional||t.isBoolean()&&typeof t.defaultValue=="boolean")&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),t.presetArg!==void 0&&t.optional&&r.push(`preset: ${JSON.stringify(t.presetArg)}`),t.envVar!==void 0&&r.push(`env: ${t.envVar}`),r.length>0){let o=`(${r.join(", ")})`;return t.description?`${t.description} ${o}`:o}return t.description}argumentDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(o=>JSON.stringify(o)).join(", ")}`),t.defaultValue!==void 0&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),r.length>0){let o=`(${r.join(", ")})`;return t.description?`${t.description} ${o}`:o}return t.description}formatItemList(t,r,o){return r.length===0?[]:[o.styleTitle(t),...r,""]}groupItems(t,r,o){let n=new Map;return t.forEach(i=>{let a=o(i);n.has(a)||n.set(a,[])}),r.forEach(i=>{let a=o(i);n.has(a)||n.set(a,[]),n.get(a).push(i)}),n}formatHelp(t,r){let o=r.padWidth(t,r),n=r.helpWidth??80;function i(f,p){return r.formatItem(f,o,p,r)}let a=[`${r.styleTitle("Usage:")} ${r.styleUsage(r.commandUsage(t))}`,""],s=r.commandDescription(t);s.length>0&&(a=a.concat([r.boxWrap(r.styleCommandDescription(s),n),""]));let c=r.visibleArguments(t).map(f=>i(r.styleArgumentTerm(r.argumentTerm(f)),r.styleArgumentDescription(r.argumentDescription(f))));if(a=a.concat(this.formatItemList("Arguments:",c,r)),this.groupItems(t.options,r.visibleOptions(t),f=>f.helpGroupHeading??"Options:").forEach((f,p)=>{let _=f.map(b=>i(r.styleOptionTerm(r.optionTerm(b)),r.styleOptionDescription(r.optionDescription(b))));a=a.concat(this.formatItemList(p,_,r))}),r.showGlobalOptions){let f=r.visibleGlobalOptions(t).map(p=>i(r.styleOptionTerm(r.optionTerm(p)),r.styleOptionDescription(r.optionDescription(p))));a=a.concat(this.formatItemList("Global Options:",f,r))}return this.groupItems(t.commands,r.visibleCommands(t),f=>f.helpGroup()||"Commands:").forEach((f,p)=>{let _=f.map(b=>i(r.styleSubcommandTerm(r.subcommandTerm(b)),r.styleSubcommandDescription(r.subcommandDescription(b))));a=a.concat(this.formatItemList(p,_,r))}),a.join(`
3
- `)}displayWidth(t){return ld(t).length}styleTitle(t){return t}styleUsage(t){return t.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r==="[command]"?this.styleSubcommandText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleCommandText(r)).join(" ")}styleCommandDescription(t){return this.styleDescriptionText(t)}styleOptionDescription(t){return this.styleDescriptionText(t)}styleSubcommandDescription(t){return this.styleDescriptionText(t)}styleArgumentDescription(t){return this.styleDescriptionText(t)}styleDescriptionText(t){return t}styleOptionTerm(t){return this.styleOptionText(t)}styleSubcommandTerm(t){return t.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleSubcommandText(r)).join(" ")}styleArgumentTerm(t){return this.styleArgumentText(t)}styleOptionText(t){return t}styleArgumentText(t){return t}styleSubcommandText(t){return t}styleCommandText(t){return t}padWidth(t,r){return Math.max(r.longestOptionTermLength(t,r),r.longestGlobalOptionTermLength(t,r),r.longestSubcommandTermLength(t,r),r.longestArgumentTermLength(t,r))}preformatted(t){return/\n[^\S\r\n]/.test(t)}formatItem(t,r,o,n){let a=" ".repeat(2);if(!o)return a+t;let s=t.padEnd(r+t.length-n.displayWidth(t)),c=2,l=(this.helpWidth??80)-r-c-2,f;return l<this.minWidthToWrap||n.preformatted(o)?f=o:f=n.boxWrap(o,l).replace(/\n/g,`
2
+ "use strict";var $g=Object.create;var ao=Object.defineProperty;var xg=Object.getOwnPropertyDescriptor;var bg=Object.getOwnPropertyNames;var Sg=Object.getPrototypeOf,kg=Object.prototype.hasOwnProperty;var Y=(e,t)=>()=>(e&&(t=e(e=0)),t);var W=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pe=(e,t)=>{for(var r in t)ao(e,r,{get:t[r],enumerable:!0})},wg=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of bg(t))!kg.call(e,n)&&n!==r&&ao(e,n,{get:()=>t[n],enumerable:!(o=xg(t,n))||o.enumerable});return e};var re=(e,t,r)=>(r=e!=null?$g(Sg(e)):{},wg(t||!e||!e.__esModule?ao(r,"default",{value:e,enumerable:!0}):r,e));var Kt=W(co=>{"use strict";var Hn=class extends Error{constructor(t,r,o){super(o),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=t,this.nestedError=void 0}},so=class extends Hn{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};co.CommanderError=Hn;co.InvalidArgumentError=so});var Jn=W(lo=>{"use strict";var{InvalidArgumentError:Ig}=Kt(),uo=class{constructor(t,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t;break}this._name.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:(r.push(t),r)}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}argParser(t){return this.parseArg=t,this}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,o)=>{if(!this.argChoices.includes(r))throw new Ig(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(r,o):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function Og(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}lo.Argument=uo;lo.humanReadableArgName=Og});var fo=W(mo=>{"use strict";var{humanReadableArgName:zg}=Jn(),po=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(t){this.helpWidth=this.helpWidth??t.helpWidth??80}visibleCommands(t){let r=t.commands.filter(n=>!n._hidden),o=t._getHelpCommand();return o&&!o._hidden&&r.push(o),this.sortSubcommands&&r.sort((n,i)=>n.name().localeCompare(i.name())),r}compareOptions(t,r){let o=n=>n.short?n.short.replace(/^-/,""):n.long.replace(/^--/,"");return o(t).localeCompare(o(r))}visibleOptions(t){let r=t.options.filter(n=>!n.hidden),o=t._getHelpOption();if(o&&!o.hidden){let n=o.short&&t._findOption(o.short),i=o.long&&t._findOption(o.long);!n&&!i?r.push(o):o.long&&!i?r.push(t.createOption(o.long,o.description)):o.short&&!n&&r.push(t.createOption(o.short,o.description))}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];let r=[];for(let o=t.parent;o;o=o.parent){let n=o.options.filter(i=>!i.hidden);r.push(...n)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(t){return t._argsDescription&&t.registeredArguments.forEach(r=>{r.description=r.description||t._argsDescription[r.name()]||""}),t.registeredArguments.find(r=>r.description)?t.registeredArguments:[]}subcommandTerm(t){let r=t.registeredArguments.map(o=>zg(o)).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,r){return r.visibleCommands(t).reduce((o,n)=>Math.max(o,this.displayWidth(r.styleSubcommandTerm(r.subcommandTerm(n)))),0)}longestOptionTermLength(t,r){return r.visibleOptions(t).reduce((o,n)=>Math.max(o,this.displayWidth(r.styleOptionTerm(r.optionTerm(n)))),0)}longestGlobalOptionTermLength(t,r){return r.visibleGlobalOptions(t).reduce((o,n)=>Math.max(o,this.displayWidth(r.styleOptionTerm(r.optionTerm(n)))),0)}longestArgumentTermLength(t,r){return r.visibleArguments(t).reduce((o,n)=>Math.max(o,this.displayWidth(r.styleArgumentTerm(r.argumentTerm(n)))),0)}commandUsage(t){let r=t._name;t._aliases[0]&&(r=r+"|"+t._aliases[0]);let o="";for(let n=t.parent;n;n=n.parent)o=n.name()+" "+o;return o+r+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(o=>JSON.stringify(o)).join(", ")}`),t.defaultValue!==void 0&&(t.required||t.optional||t.isBoolean()&&typeof t.defaultValue=="boolean")&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),t.presetArg!==void 0&&t.optional&&r.push(`preset: ${JSON.stringify(t.presetArg)}`),t.envVar!==void 0&&r.push(`env: ${t.envVar}`),r.length>0){let o=`(${r.join(", ")})`;return t.description?`${t.description} ${o}`:o}return t.description}argumentDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(o=>JSON.stringify(o)).join(", ")}`),t.defaultValue!==void 0&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),r.length>0){let o=`(${r.join(", ")})`;return t.description?`${t.description} ${o}`:o}return t.description}formatItemList(t,r,o){return r.length===0?[]:[o.styleTitle(t),...r,""]}groupItems(t,r,o){let n=new Map;return t.forEach(i=>{let a=o(i);n.has(a)||n.set(a,[])}),r.forEach(i=>{let a=o(i);n.has(a)||n.set(a,[]),n.get(a).push(i)}),n}formatHelp(t,r){let o=r.padWidth(t,r),n=r.helpWidth??80;function i(f,p){return r.formatItem(f,o,p,r)}let a=[`${r.styleTitle("Usage:")} ${r.styleUsage(r.commandUsage(t))}`,""],s=r.commandDescription(t);s.length>0&&(a=a.concat([r.boxWrap(r.styleCommandDescription(s),n),""]));let c=r.visibleArguments(t).map(f=>i(r.styleArgumentTerm(r.argumentTerm(f)),r.styleArgumentDescription(r.argumentDescription(f))));if(a=a.concat(this.formatItemList("Arguments:",c,r)),this.groupItems(t.options,r.visibleOptions(t),f=>f.helpGroupHeading??"Options:").forEach((f,p)=>{let _=f.map(b=>i(r.styleOptionTerm(r.optionTerm(b)),r.styleOptionDescription(r.optionDescription(b))));a=a.concat(this.formatItemList(p,_,r))}),r.showGlobalOptions){let f=r.visibleGlobalOptions(t).map(p=>i(r.styleOptionTerm(r.optionTerm(p)),r.styleOptionDescription(r.optionDescription(p))));a=a.concat(this.formatItemList("Global Options:",f,r))}return this.groupItems(t.commands,r.visibleCommands(t),f=>f.helpGroup()||"Commands:").forEach((f,p)=>{let _=f.map(b=>i(r.styleSubcommandTerm(r.subcommandTerm(b)),r.styleSubcommandDescription(r.subcommandDescription(b))));a=a.concat(this.formatItemList(p,_,r))}),a.join(`
3
+ `)}displayWidth(t){return dd(t).length}styleTitle(t){return t}styleUsage(t){return t.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r==="[command]"?this.styleSubcommandText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleCommandText(r)).join(" ")}styleCommandDescription(t){return this.styleDescriptionText(t)}styleOptionDescription(t){return this.styleDescriptionText(t)}styleSubcommandDescription(t){return this.styleDescriptionText(t)}styleArgumentDescription(t){return this.styleDescriptionText(t)}styleDescriptionText(t){return t}styleOptionTerm(t){return this.styleOptionText(t)}styleSubcommandTerm(t){return t.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleSubcommandText(r)).join(" ")}styleArgumentTerm(t){return this.styleArgumentText(t)}styleOptionText(t){return t}styleArgumentText(t){return t}styleSubcommandText(t){return t}styleCommandText(t){return t}padWidth(t,r){return Math.max(r.longestOptionTermLength(t,r),r.longestGlobalOptionTermLength(t,r),r.longestSubcommandTermLength(t,r),r.longestArgumentTermLength(t,r))}preformatted(t){return/\n[^\S\r\n]/.test(t)}formatItem(t,r,o,n){let a=" ".repeat(2);if(!o)return a+t;let s=t.padEnd(r+t.length-n.displayWidth(t)),c=2,l=(this.helpWidth??80)-r-c-2,f;return l<this.minWidthToWrap||n.preformatted(o)?f=o:f=n.boxWrap(o,l).replace(/\n/g,`
4
4
  `+" ".repeat(r+c)),a+s+" ".repeat(c)+f.replace(/\n/g,`
5
5
  ${a}`)}boxWrap(t,r){if(r<this.minWidthToWrap)return t;let o=t.split(/\r\n|\n/),n=/[\s]*[^\s]+/g,i=[];return o.forEach(a=>{let s=a.match(n);if(s===null){i.push("");return}let c=[s.shift()],u=this.displayWidth(c[0]);s.forEach(l=>{let f=this.displayWidth(l);if(u+f<=r){c.push(l),u+=f;return}i.push(c.join(""));let p=l.trimStart();c=[p],u=this.displayWidth(p)}),i.push(c.join(""))}),i.join(`
6
- `)}};function ld(e){let t=/\x1b\[\d*(;\d*)*m/g;return e.replace(t,"")}mo.Help=po;mo.stripColor=ld});var _o=W(vo=>{"use strict";var{InvalidArgumentError:Og}=Kt(),ho=class{constructor(t,r){this.flags=t,this.description=r||"",this.required=t.includes("<"),this.optional=t.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(t),this.mandatory=!1;let o=zg(t);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,this.helpGroupHeading=void 0}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}preset(t){return this.presetArg=t,this}conflicts(t){return this.conflictsWith=this.conflictsWith.concat(t),this}implies(t){let r=t;return typeof t=="string"&&(r={[t]:!0}),this.implied=Object.assign(this.implied||{},r),this}env(t){return this.envVar=t,this}argParser(t){return this.parseArg=t,this}makeOptionMandatory(t=!0){return this.mandatory=!!t,this}hideHelp(t=!0){return this.hidden=!!t,this}_collectValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:(r.push(t),r)}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,o)=>{if(!this.argChoices.includes(r))throw new Og(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(r,o):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?dd(this.name().replace(/^no-/,"")):dd(this.name())}helpGroup(t){return this.helpGroupHeading=t,this}is(t){return this.short===t||this.long===t}isBoolean(){return!this.required&&!this.optional&&!this.negate}},go=class{constructor(t){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,t.forEach(r=>{r.negate?this.negativeOptions.set(r.attributeName(),r):this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,o)=>{this.positiveOptions.has(o)&&this.dualOptions.add(o)})}valueFromOption(t,r){let o=r.attributeName();if(!this.dualOptions.has(o))return!0;let n=this.negativeOptions.get(o).presetArg,i=n!==void 0?n:!1;return r.negate===(i===t)}};function dd(e){return e.split("-").reduce((t,r)=>t+r[0].toUpperCase()+r.slice(1))}function zg(e){let t,r,o=/^-[^-]$/,n=/^--[^-]/,i=e.split(/[ |,]+/).concat("guard");if(o.test(i[0])&&(t=i.shift()),n.test(i[0])&&(r=i.shift()),!t&&o.test(i[0])&&(t=i.shift()),!t&&n.test(i[0])&&(t=r,r=i.shift()),i[0].startsWith("-")){let a=i[0],s=`option creation failed due to '${a}' in option flags '${e}'`;throw/^-[^-][^-]/.test(a)?new Error(`${s}
6
+ `)}};function dd(e){let t=/\x1b\[\d*(;\d*)*m/g;return e.replace(t,"")}mo.Help=po;mo.stripColor=dd});var _o=W(vo=>{"use strict";var{InvalidArgumentError:Eg}=Kt(),ho=class{constructor(t,r){this.flags=t,this.description=r||"",this.required=t.includes("<"),this.optional=t.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(t),this.mandatory=!1;let o=Dg(t);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,this.helpGroupHeading=void 0}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}preset(t){return this.presetArg=t,this}conflicts(t){return this.conflictsWith=this.conflictsWith.concat(t),this}implies(t){let r=t;return typeof t=="string"&&(r={[t]:!0}),this.implied=Object.assign(this.implied||{},r),this}env(t){return this.envVar=t,this}argParser(t){return this.parseArg=t,this}makeOptionMandatory(t=!0){return this.mandatory=!!t,this}hideHelp(t=!0){return this.hidden=!!t,this}_collectValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:(r.push(t),r)}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,o)=>{if(!this.argChoices.includes(r))throw new Eg(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(r,o):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?pd(this.name().replace(/^no-/,"")):pd(this.name())}helpGroup(t){return this.helpGroupHeading=t,this}is(t){return this.short===t||this.long===t}isBoolean(){return!this.required&&!this.optional&&!this.negate}},go=class{constructor(t){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,t.forEach(r=>{r.negate?this.negativeOptions.set(r.attributeName(),r):this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,o)=>{this.positiveOptions.has(o)&&this.dualOptions.add(o)})}valueFromOption(t,r){let o=r.attributeName();if(!this.dualOptions.has(o))return!0;let n=this.negativeOptions.get(o).presetArg,i=n!==void 0?n:!1;return r.negate===(i===t)}};function pd(e){return e.split("-").reduce((t,r)=>t+r[0].toUpperCase()+r.slice(1))}function Dg(e){let t,r,o=/^-[^-]$/,n=/^--[^-]/,i=e.split(/[ |,]+/).concat("guard");if(o.test(i[0])&&(t=i.shift()),n.test(i[0])&&(r=i.shift()),!t&&o.test(i[0])&&(t=i.shift()),!t&&n.test(i[0])&&(t=r,r=i.shift()),i[0].startsWith("-")){let a=i[0],s=`option creation failed due to '${a}' in option flags '${e}'`;throw/^-[^-][^-]/.test(a)?new Error(`${s}
7
7
  - a short flag is a single dash and a single character
8
8
  - either use a single dash and a single character (for a short flag)
9
9
  - or use a double dash for a long option (and can have two, like '--ws, --workspace')`):o.test(a)?new Error(`${s}
10
10
  - too many short flags`):n.test(a)?new Error(`${s}
11
11
  - too many long flags`):new Error(`${s}
12
- - unrecognised flag format`)}if(t===void 0&&r===void 0)throw new Error(`option creation failed due to no flags found in '${e}'.`);return{shortFlag:t,longFlag:r}}vo.Option=ho;vo.DualOptions=go});var md=W(pd=>{"use strict";function Eg(e,t){if(Math.abs(e.length-t.length)>3)return Math.max(e.length,t.length);let r=[];for(let o=0;o<=e.length;o++)r[o]=[o];for(let o=0;o<=t.length;o++)r[0][o]=o;for(let o=1;o<=t.length;o++)for(let n=1;n<=e.length;n++){let i=1;e[n-1]===t[o-1]?i=0:i=1,r[n][o]=Math.min(r[n-1][o]+1,r[n][o-1]+1,r[n-1][o-1]+i),n>1&&o>1&&e[n-1]===t[o-2]&&e[n-2]===t[o-1]&&(r[n][o]=Math.min(r[n][o],r[n-2][o-2]+1))}return r[e.length][t.length]}function Dg(e,t){if(!t||t.length===0)return"";t=Array.from(new Set(t));let r=e.startsWith("--");r&&(e=e.slice(2),t=t.map(a=>a.slice(2)));let o=[],n=3,i=.4;return t.forEach(a=>{if(a.length<=1)return;let s=Eg(e,a),c=Math.max(e.length,a.length);(c-s)/c>i&&(s<n?(n=s,o=[a]):s===n&&o.push(a))}),o.sort((a,s)=>a.localeCompare(s)),r&&(o=o.map(a=>`--${a}`)),o.length>1?`
12
+ - unrecognised flag format`)}if(t===void 0&&r===void 0)throw new Error(`option creation failed due to no flags found in '${e}'.`);return{shortFlag:t,longFlag:r}}vo.Option=ho;vo.DualOptions=go});var fd=W(md=>{"use strict";function Tg(e,t){if(Math.abs(e.length-t.length)>3)return Math.max(e.length,t.length);let r=[];for(let o=0;o<=e.length;o++)r[o]=[o];for(let o=0;o<=t.length;o++)r[0][o]=o;for(let o=1;o<=t.length;o++)for(let n=1;n<=e.length;n++){let i=1;e[n-1]===t[o-1]?i=0:i=1,r[n][o]=Math.min(r[n-1][o]+1,r[n][o-1]+1,r[n-1][o-1]+i),n>1&&o>1&&e[n-1]===t[o-2]&&e[n-2]===t[o-1]&&(r[n][o]=Math.min(r[n][o],r[n-2][o-2]+1))}return r[e.length][t.length]}function Pg(e,t){if(!t||t.length===0)return"";t=Array.from(new Set(t));let r=e.startsWith("--");r&&(e=e.slice(2),t=t.map(a=>a.slice(2)));let o=[],n=3,i=.4;return t.forEach(a=>{if(a.length<=1)return;let s=Tg(e,a),c=Math.max(e.length,a.length);(c-s)/c>i&&(s<n?(n=s,o=[a]):s===n&&o.push(a))}),o.sort((a,s)=>a.localeCompare(s)),r&&(o=o.map(a=>`--${a}`)),o.length>1?`
13
13
  (Did you mean one of ${o.join(", ")}?)`:o.length===1?`
14
- (Did you mean ${o[0]}?)`:""}pd.suggestSimilar=Dg});var vd=W(So=>{"use strict";var Tg=require("events").EventEmitter,yo=require("child_process"),ze=require("path"),Wn=require("fs"),N=require("process"),{Argument:Pg,humanReadableArgName:Ag}=Jn(),{CommanderError:$o}=Kt(),{Help:Cg,stripColor:jg}=fo(),{Option:fd,DualOptions:Ng}=_o(),{suggestSimilar:hd}=md(),xo=class e extends Tg{constructor(t){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=t||"",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:r=>N.stdout.write(r),writeErr:r=>N.stderr.write(r),outputError:(r,o)=>o(r),getOutHelpWidth:()=>N.stdout.isTTY?N.stdout.columns:void 0,getErrHelpWidth:()=>N.stderr.isTTY?N.stderr.columns:void 0,getOutHasColors:()=>bo()??(N.stdout.isTTY&&N.stdout.hasColors?.()),getErrHasColors:()=>bo()??(N.stderr.isTTY&&N.stderr.hasColors?.()),stripColor:r=>jg(r)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(t){return this._outputConfiguration=t._outputConfiguration,this._helpOption=t._helpOption,this._helpCommand=t._helpCommand,this._helpConfiguration=t._helpConfiguration,this._exitCallback=t._exitCallback,this._storeOptionsAsProperties=t._storeOptionsAsProperties,this._combineFlagAndOptionalValue=t._combineFlagAndOptionalValue,this._allowExcessArguments=t._allowExcessArguments,this._enablePositionalOptions=t._enablePositionalOptions,this._showHelpAfterError=t._showHelpAfterError,this._showSuggestionAfterError=t._showSuggestionAfterError,this}_getCommandAndAncestors(){let t=[];for(let r=this;r;r=r.parent)t.push(r);return t}command(t,r,o){let n=r,i=o;typeof n=="object"&&n!==null&&(i=n,n=null),i=i||{};let[,a,s]=t.match(/([^ ]+) *(.*)/),c=this.createCommand(a);return n&&(c.description(n),c._executableHandler=!0),i.isDefault&&(this._defaultCommandName=c._name),c._hidden=!!(i.noHelp||i.hidden),c._executableFile=i.executableFile||null,s&&c.arguments(s),this._registerCommand(c),c.parent=this,c.copyInheritedSettings(this),n?this:c}createCommand(t){return new e(t)}createHelp(){return Object.assign(new Cg,this.configureHelp())}configureHelp(t){return t===void 0?this._helpConfiguration:(this._helpConfiguration=t,this)}configureOutput(t){return t===void 0?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...t},this)}showHelpAfterError(t=!0){return typeof t!="string"&&(t=!!t),this._showHelpAfterError=t,this}showSuggestionAfterError(t=!0){return this._showSuggestionAfterError=!!t,this}addCommand(t,r){if(!t._name)throw new Error(`Command passed to .addCommand() must have a name
15
- - specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=t._name),(r.noHelp||r.hidden)&&(t._hidden=!0),this._registerCommand(t),t.parent=this,t._checkForBrokenPassThrough(),this}createArgument(t,r){return new Pg(t,r)}argument(t,r,o,n){let i=this.createArgument(t,r);return typeof o=="function"?i.default(n).argParser(o):i.default(o),this.addArgument(i),this}arguments(t){return t.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(t){let r=this.registeredArguments.slice(-1)[0];if(r?.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(t.required&&t.defaultValue!==void 0&&t.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${t.name()}'`);return this.registeredArguments.push(t),this}helpCommand(t,r){if(typeof t=="boolean")return this._addImplicitHelpCommand=t,t&&this._defaultCommandGroup&&this._initCommandGroup(this._getHelpCommand()),this;let o=t??"help [command]",[,n,i]=o.match(/([^ ]+) *(.*)/),a=r??"display help for command",s=this.createCommand(n);return s.helpOption(!1),i&&s.arguments(i),a&&s.description(a),this._addImplicitHelpCommand=!0,this._helpCommand=s,(t||r)&&this._initCommandGroup(s),this}addHelpCommand(t,r){return typeof t!="object"?(this.helpCommand(t,r),this):(this._addImplicitHelpCommand=!0,this._helpCommand=t,this._initCommandGroup(t),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(t,r){let o=["preSubcommand","preAction","postAction"];if(!o.includes(t))throw new Error(`Unexpected value for event passed to hook : '${t}'.
16
- Expecting one of '${o.join("', '")}'`);return this._lifeCycleHooks[t]?this._lifeCycleHooks[t].push(r):this._lifeCycleHooks[t]=[r],this}exitOverride(t){return t?this._exitCallback=t:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(t,r,o){this._exitCallback&&this._exitCallback(new $o(t,r,o)),N.exit(t)}action(t){let r=o=>{let n=this.registeredArguments.length,i=o.slice(0,n);return this._storeOptionsAsProperties?i[n]=this:i[n]=this.opts(),i.push(this),t.apply(this,i)};return this._actionHandler=r,this}createOption(t,r){return new fd(t,r)}_callParseArg(t,r,o,n){try{return t.parseArg(r,o)}catch(i){if(i.code==="commander.invalidArgument"){let a=`${n} ${i.message}`;this.error(a,{exitCode:i.exitCode,code:i.code})}throw i}}_registerOption(t){let r=t.short&&this._findOption(t.short)||t.long&&this._findOption(t.long);if(r){let o=t.long&&this._findOption(t.long)?t.long:t.short;throw new Error(`Cannot add option '${t.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${o}'
17
- - already used by option '${r.flags}'`)}this._initOptionGroup(t),this.options.push(t)}_registerCommand(t){let r=n=>[n.name()].concat(n.aliases()),o=r(t).find(n=>this._findCommand(n));if(o){let n=r(this._findCommand(o)).join("|"),i=r(t).join("|");throw new Error(`cannot add command '${i}' as already have command '${n}'`)}this._initCommandGroup(t),this.commands.push(t)}addOption(t){this._registerOption(t);let r=t.name(),o=t.attributeName();if(t.negate){let i=t.long.replace(/^--no-/,"--");this._findOption(i)||this.setOptionValueWithSource(o,t.defaultValue===void 0?!0:t.defaultValue,"default")}else t.defaultValue!==void 0&&this.setOptionValueWithSource(o,t.defaultValue,"default");let n=(i,a,s)=>{i==null&&t.presetArg!==void 0&&(i=t.presetArg);let c=this.getOptionValue(o);i!==null&&t.parseArg?i=this._callParseArg(t,i,c,a):i!==null&&t.variadic&&(i=t._collectValue(i,c)),i==null&&(t.negate?i=!1:t.isBoolean()||t.optional?i=!0:i=""),this.setOptionValueWithSource(o,i,s)};return this.on("option:"+r,i=>{let a=`error: option '${t.flags}' argument '${i}' is invalid.`;n(i,a,"cli")}),t.envVar&&this.on("optionEnv:"+r,i=>{let a=`error: option '${t.flags}' value '${i}' from env '${t.envVar}' is invalid.`;n(i,a,"env")}),this}_optionEx(t,r,o,n,i){if(typeof r=="object"&&r instanceof fd)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let a=this.createOption(r,o);if(a.makeOptionMandatory(!!t.mandatory),typeof n=="function")a.default(i).argParser(n);else if(n instanceof RegExp){let s=n;n=(c,u)=>{let l=s.exec(c);return l?l[0]:u},a.default(i).argParser(n)}else a.default(n);return this.addOption(a)}option(t,r,o,n){return this._optionEx({},t,r,o,n)}requiredOption(t,r,o,n){return this._optionEx({mandatory:!0},t,r,o,n)}combineFlagAndOptionalValue(t=!0){return this._combineFlagAndOptionalValue=!!t,this}allowUnknownOption(t=!0){return this._allowUnknownOption=!!t,this}allowExcessArguments(t=!0){return this._allowExcessArguments=!!t,this}enablePositionalOptions(t=!0){return this._enablePositionalOptions=!!t,this}passThroughOptions(t=!0){return this._passThroughOptions=!!t,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(t=!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=!!t,this}getOptionValue(t){return this._storeOptionsAsProperties?this[t]:this._optionValues[t]}setOptionValue(t,r){return this.setOptionValueWithSource(t,r,void 0)}setOptionValueWithSource(t,r,o){return this._storeOptionsAsProperties?this[t]=r:this._optionValues[t]=r,this._optionValueSources[t]=o,this}getOptionValueSource(t){return this._optionValueSources[t]}getOptionValueSourceWithGlobals(t){let r;return this._getCommandAndAncestors().forEach(o=>{o.getOptionValueSource(t)!==void 0&&(r=o.getOptionValueSource(t))}),r}_prepareUserArgs(t,r){if(t!==void 0&&!Array.isArray(t))throw new Error("first parameter to parse must be array or undefined");if(r=r||{},t===void 0&&r.from===void 0){N.versions?.electron&&(r.from="electron");let n=N.execArgv??[];(n.includes("-e")||n.includes("--eval")||n.includes("-p")||n.includes("--print"))&&(r.from="eval")}t===void 0&&(t=N.argv),this.rawArgs=t.slice();let o;switch(r.from){case void 0:case"node":this._scriptPath=t[1],o=t.slice(2);break;case"electron":N.defaultApp?(this._scriptPath=t[1],o=t.slice(2)):o=t.slice(1);break;case"user":o=t.slice(0);break;case"eval":o=t.slice(1);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",o}parse(t,r){this._prepareForParse();let o=this._prepareUserArgs(t,r);return this._parseCommand([],o),this}async parseAsync(t,r){this._prepareForParse();let o=this._prepareUserArgs(t,r);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.
14
+ (Did you mean ${o[0]}?)`:""}md.suggestSimilar=Pg});var _d=W(So=>{"use strict";var Ag=require("events").EventEmitter,yo=require("child_process"),ze=require("path"),Wn=require("fs"),N=require("process"),{Argument:Cg,humanReadableArgName:jg}=Jn(),{CommanderError:$o}=Kt(),{Help:Ng,stripColor:Ug}=fo(),{Option:hd,DualOptions:Rg}=_o(),{suggestSimilar:gd}=fd(),xo=class e extends Ag{constructor(t){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=t||"",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:r=>N.stdout.write(r),writeErr:r=>N.stderr.write(r),outputError:(r,o)=>o(r),getOutHelpWidth:()=>N.stdout.isTTY?N.stdout.columns:void 0,getErrHelpWidth:()=>N.stderr.isTTY?N.stderr.columns:void 0,getOutHasColors:()=>bo()??(N.stdout.isTTY&&N.stdout.hasColors?.()),getErrHasColors:()=>bo()??(N.stderr.isTTY&&N.stderr.hasColors?.()),stripColor:r=>Ug(r)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(t){return this._outputConfiguration=t._outputConfiguration,this._helpOption=t._helpOption,this._helpCommand=t._helpCommand,this._helpConfiguration=t._helpConfiguration,this._exitCallback=t._exitCallback,this._storeOptionsAsProperties=t._storeOptionsAsProperties,this._combineFlagAndOptionalValue=t._combineFlagAndOptionalValue,this._allowExcessArguments=t._allowExcessArguments,this._enablePositionalOptions=t._enablePositionalOptions,this._showHelpAfterError=t._showHelpAfterError,this._showSuggestionAfterError=t._showSuggestionAfterError,this}_getCommandAndAncestors(){let t=[];for(let r=this;r;r=r.parent)t.push(r);return t}command(t,r,o){let n=r,i=o;typeof n=="object"&&n!==null&&(i=n,n=null),i=i||{};let[,a,s]=t.match(/([^ ]+) *(.*)/),c=this.createCommand(a);return n&&(c.description(n),c._executableHandler=!0),i.isDefault&&(this._defaultCommandName=c._name),c._hidden=!!(i.noHelp||i.hidden),c._executableFile=i.executableFile||null,s&&c.arguments(s),this._registerCommand(c),c.parent=this,c.copyInheritedSettings(this),n?this:c}createCommand(t){return new e(t)}createHelp(){return Object.assign(new Ng,this.configureHelp())}configureHelp(t){return t===void 0?this._helpConfiguration:(this._helpConfiguration=t,this)}configureOutput(t){return t===void 0?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...t},this)}showHelpAfterError(t=!0){return typeof t!="string"&&(t=!!t),this._showHelpAfterError=t,this}showSuggestionAfterError(t=!0){return this._showSuggestionAfterError=!!t,this}addCommand(t,r){if(!t._name)throw new Error(`Command passed to .addCommand() must have a name
15
+ - specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=t._name),(r.noHelp||r.hidden)&&(t._hidden=!0),this._registerCommand(t),t.parent=this,t._checkForBrokenPassThrough(),this}createArgument(t,r){return new Cg(t,r)}argument(t,r,o,n){let i=this.createArgument(t,r);return typeof o=="function"?i.default(n).argParser(o):i.default(o),this.addArgument(i),this}arguments(t){return t.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(t){let r=this.registeredArguments.slice(-1)[0];if(r?.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(t.required&&t.defaultValue!==void 0&&t.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${t.name()}'`);return this.registeredArguments.push(t),this}helpCommand(t,r){if(typeof t=="boolean")return this._addImplicitHelpCommand=t,t&&this._defaultCommandGroup&&this._initCommandGroup(this._getHelpCommand()),this;let o=t??"help [command]",[,n,i]=o.match(/([^ ]+) *(.*)/),a=r??"display help for command",s=this.createCommand(n);return s.helpOption(!1),i&&s.arguments(i),a&&s.description(a),this._addImplicitHelpCommand=!0,this._helpCommand=s,(t||r)&&this._initCommandGroup(s),this}addHelpCommand(t,r){return typeof t!="object"?(this.helpCommand(t,r),this):(this._addImplicitHelpCommand=!0,this._helpCommand=t,this._initCommandGroup(t),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(t,r){let o=["preSubcommand","preAction","postAction"];if(!o.includes(t))throw new Error(`Unexpected value for event passed to hook : '${t}'.
16
+ Expecting one of '${o.join("', '")}'`);return this._lifeCycleHooks[t]?this._lifeCycleHooks[t].push(r):this._lifeCycleHooks[t]=[r],this}exitOverride(t){return t?this._exitCallback=t:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(t,r,o){this._exitCallback&&this._exitCallback(new $o(t,r,o)),N.exit(t)}action(t){let r=o=>{let n=this.registeredArguments.length,i=o.slice(0,n);return this._storeOptionsAsProperties?i[n]=this:i[n]=this.opts(),i.push(this),t.apply(this,i)};return this._actionHandler=r,this}createOption(t,r){return new hd(t,r)}_callParseArg(t,r,o,n){try{return t.parseArg(r,o)}catch(i){if(i.code==="commander.invalidArgument"){let a=`${n} ${i.message}`;this.error(a,{exitCode:i.exitCode,code:i.code})}throw i}}_registerOption(t){let r=t.short&&this._findOption(t.short)||t.long&&this._findOption(t.long);if(r){let o=t.long&&this._findOption(t.long)?t.long:t.short;throw new Error(`Cannot add option '${t.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${o}'
17
+ - already used by option '${r.flags}'`)}this._initOptionGroup(t),this.options.push(t)}_registerCommand(t){let r=n=>[n.name()].concat(n.aliases()),o=r(t).find(n=>this._findCommand(n));if(o){let n=r(this._findCommand(o)).join("|"),i=r(t).join("|");throw new Error(`cannot add command '${i}' as already have command '${n}'`)}this._initCommandGroup(t),this.commands.push(t)}addOption(t){this._registerOption(t);let r=t.name(),o=t.attributeName();if(t.negate){let i=t.long.replace(/^--no-/,"--");this._findOption(i)||this.setOptionValueWithSource(o,t.defaultValue===void 0?!0:t.defaultValue,"default")}else t.defaultValue!==void 0&&this.setOptionValueWithSource(o,t.defaultValue,"default");let n=(i,a,s)=>{i==null&&t.presetArg!==void 0&&(i=t.presetArg);let c=this.getOptionValue(o);i!==null&&t.parseArg?i=this._callParseArg(t,i,c,a):i!==null&&t.variadic&&(i=t._collectValue(i,c)),i==null&&(t.negate?i=!1:t.isBoolean()||t.optional?i=!0:i=""),this.setOptionValueWithSource(o,i,s)};return this.on("option:"+r,i=>{let a=`error: option '${t.flags}' argument '${i}' is invalid.`;n(i,a,"cli")}),t.envVar&&this.on("optionEnv:"+r,i=>{let a=`error: option '${t.flags}' value '${i}' from env '${t.envVar}' is invalid.`;n(i,a,"env")}),this}_optionEx(t,r,o,n,i){if(typeof r=="object"&&r instanceof hd)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let a=this.createOption(r,o);if(a.makeOptionMandatory(!!t.mandatory),typeof n=="function")a.default(i).argParser(n);else if(n instanceof RegExp){let s=n;n=(c,u)=>{let l=s.exec(c);return l?l[0]:u},a.default(i).argParser(n)}else a.default(n);return this.addOption(a)}option(t,r,o,n){return this._optionEx({},t,r,o,n)}requiredOption(t,r,o,n){return this._optionEx({mandatory:!0},t,r,o,n)}combineFlagAndOptionalValue(t=!0){return this._combineFlagAndOptionalValue=!!t,this}allowUnknownOption(t=!0){return this._allowUnknownOption=!!t,this}allowExcessArguments(t=!0){return this._allowExcessArguments=!!t,this}enablePositionalOptions(t=!0){return this._enablePositionalOptions=!!t,this}passThroughOptions(t=!0){return this._passThroughOptions=!!t,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(t=!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=!!t,this}getOptionValue(t){return this._storeOptionsAsProperties?this[t]:this._optionValues[t]}setOptionValue(t,r){return this.setOptionValueWithSource(t,r,void 0)}setOptionValueWithSource(t,r,o){return this._storeOptionsAsProperties?this[t]=r:this._optionValues[t]=r,this._optionValueSources[t]=o,this}getOptionValueSource(t){return this._optionValueSources[t]}getOptionValueSourceWithGlobals(t){let r;return this._getCommandAndAncestors().forEach(o=>{o.getOptionValueSource(t)!==void 0&&(r=o.getOptionValueSource(t))}),r}_prepareUserArgs(t,r){if(t!==void 0&&!Array.isArray(t))throw new Error("first parameter to parse must be array or undefined");if(r=r||{},t===void 0&&r.from===void 0){N.versions?.electron&&(r.from="electron");let n=N.execArgv??[];(n.includes("-e")||n.includes("--eval")||n.includes("-p")||n.includes("--print"))&&(r.from="eval")}t===void 0&&(t=N.argv),this.rawArgs=t.slice();let o;switch(r.from){case void 0:case"node":this._scriptPath=t[1],o=t.slice(2);break;case"electron":N.defaultApp?(this._scriptPath=t[1],o=t.slice(2)):o=t.slice(1);break;case"user":o=t.slice(0);break;case"eval":o=t.slice(1);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",o}parse(t,r){this._prepareForParse();let o=this._prepareUserArgs(t,r);return this._parseCommand([],o),this}async parseAsync(t,r){this._prepareForParse();let o=this._prepareUserArgs(t,r);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.
18
18
  - 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(t,r,o){if(Wn.existsSync(t))return;let n=r?`searched for local subcommand relative to directory '${r}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",i=`'${t}' does not exist
19
19
  - if '${o}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
20
20
  - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
21
- - ${n}`;throw new Error(i)}_executeSubCommand(t,r){r=r.slice();let o=!1,n=[".js",".ts",".tsx",".mjs",".cjs"];function i(l,f){let p=ze.resolve(l,f);if(Wn.existsSync(p))return p;if(n.includes(ze.extname(f)))return;let _=n.find(b=>Wn.existsSync(`${p}${b}`));if(_)return`${p}${_}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let a=t._executableFile||`${this._name}-${t._name}`,s=this._executableDir||"";if(this._scriptPath){let l;try{l=Wn.realpathSync(this._scriptPath)}catch{l=this._scriptPath}s=ze.resolve(ze.dirname(l),s)}if(s){let l=i(s,a);if(!l&&!t._executableFile&&this._scriptPath){let f=ze.basename(this._scriptPath,ze.extname(this._scriptPath));f!==this._name&&(l=i(s,`${f}-${t._name}`))}a=l||a}o=n.includes(ze.extname(a));let c;N.platform!=="win32"?o?(r.unshift(a),r=gd(N.execArgv).concat(r),c=yo.spawn(N.argv[0],r,{stdio:"inherit"})):c=yo.spawn(a,r,{stdio:"inherit"}):(this._checkForMissingExecutable(a,s,t._name),r.unshift(a),r=gd(N.execArgv).concat(r),c=yo.spawn(N.execPath,r,{stdio:"inherit"})),c.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(f=>{N.on(f,()=>{c.killed===!1&&c.exitCode===null&&c.kill(f)})});let u=this._exitCallback;c.on("close",l=>{l=l??1,u?u(new $o(l,"commander.executeSubCommandAsync","(close)")):N.exit(l)}),c.on("error",l=>{if(l.code==="ENOENT")this._checkForMissingExecutable(a,s,t._name);else if(l.code==="EACCES")throw new Error(`'${a}' not executable`);if(!u)N.exit(1);else{let f=new $o(1,"commander.executeSubCommandAsync","(error)");f.nestedError=l,u(f)}}),this.runningCommand=c}_dispatchSubcommand(t,r,o){let n=this._findCommand(t);n||this.help({error:!0}),n._prepareForParse();let i;return i=this._chainOrCallSubCommandHook(i,n,"preSubcommand"),i=this._chainOrCall(i,()=>{if(n._executableHandler)this._executeSubCommand(n,r.concat(o));else return n._parseCommand(r,o)}),i}_dispatchHelpCommand(t){t||this.help();let r=this._findCommand(t);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(t,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((t,r)=>{t.required&&this.args[r]==null&&this.missingArgument(t.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let t=(o,n,i)=>{let a=n;if(n!==null&&o.parseArg){let s=`error: command-argument value '${n}' is invalid for argument '${o.name()}'.`;a=this._callParseArg(o,n,i,s)}return a};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((o,n)=>{let i=o.defaultValue;o.variadic?n<this.args.length?(i=this.args.slice(n),o.parseArg&&(i=i.reduce((a,s)=>t(o,s,a),o.defaultValue))):i===void 0&&(i=[]):n<this.args.length&&(i=this.args[n],o.parseArg&&(i=t(o,i,o.defaultValue))),r[n]=i}),this.processedArgs=r}_chainOrCall(t,r){return t?.then&&typeof t.then=="function"?t.then(()=>r()):r()}_chainOrCallHooks(t,r){let o=t,n=[];return this._getCommandAndAncestors().reverse().filter(i=>i._lifeCycleHooks[r]!==void 0).forEach(i=>{i._lifeCycleHooks[r].forEach(a=>{n.push({hookedCommand:i,callback:a})})}),r==="postAction"&&n.reverse(),n.forEach(i=>{o=this._chainOrCall(o,()=>i.callback(i.hookedCommand,this))}),o}_chainOrCallSubCommandHook(t,r,o){let n=t;return this._lifeCycleHooks[o]!==void 0&&this._lifeCycleHooks[o].forEach(i=>{n=this._chainOrCall(n,()=>i(this,r))}),n}_parseCommand(t,r){let o=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),t=t.concat(o.operands),r=o.unknown,this.args=t.concat(r),t&&this._findCommand(t[0]))return this._dispatchSubcommand(t[0],t.slice(1),r);if(this._getHelpCommand()&&t[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(t[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(r),this._dispatchSubcommand(this._defaultCommandName,t,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(o.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let n=()=>{o.unknown.length>0&&this.unknownOption(o.unknown[0])},i=`command:${this.name()}`;if(this._actionHandler){n(),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,t,r)})),a=this._chainOrCallHooks(a,"postAction"),a}if(this.parent?.listenerCount(i))n(),this._processArguments(),this.parent.emit(i,t,r);else if(t.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",t,r);this.listenerCount("command:*")?this.emit("command:*",t,r):this.commands.length?this.unknownCommand():(n(),this._processArguments())}else this.commands.length?(n(),this.help({error:!0})):(n(),this._processArguments())}_findCommand(t){if(t)return this.commands.find(r=>r._name===t||r._aliases.includes(t))}_findOption(t){return this.options.find(r=>r.is(t))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(t=>{t.options.forEach(r=>{r.mandatory&&t.getOptionValue(r.attributeName())===void 0&&t.missingMandatoryOptionValue(r)})})}_checkForConflictingLocalOptions(){let t=this.options.filter(o=>{let n=o.attributeName();return this.getOptionValue(n)===void 0?!1:this.getOptionValueSource(n)!=="default"});t.filter(o=>o.conflictsWith.length>0).forEach(o=>{let n=t.find(i=>o.conflictsWith.includes(i.attributeName()));n&&this._conflictingOption(o,n)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(t=>{t._checkForConflictingLocalOptions()})}parseOptions(t){let r=[],o=[],n=r;function i(l){return l.length>1&&l[0]==="-"}let a=l=>/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(l)?!this._getCommandAndAncestors().some(f=>f.options.map(p=>p.short).some(p=>/^-\d$/.test(p))):!1,s=null,c=null,u=0;for(;u<t.length||c;){let l=c??t[u++];if(c=null,l==="--"){n===o&&n.push(l),n.push(...t.slice(u));break}if(s&&(!i(l)||a(l))){this.emit(`option:${s.name()}`,l);continue}if(s=null,i(l)){let f=this._findOption(l);if(f){if(f.required){let p=t[u++];p===void 0&&this.optionMissingArgument(f),this.emit(`option:${f.name()}`,p)}else if(f.optional){let p=null;u<t.length&&(!i(t[u])||a(t[u]))&&(p=t[u++]),this.emit(`option:${f.name()}`,p)}else this.emit(`option:${f.name()}`);s=f.variadic?f:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let f=this._findOption(`-${l[1]}`);if(f){f.required||f.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${f.name()}`,l.slice(2)):(this.emit(`option:${f.name()}`),c=`-${l.slice(2)}`);continue}}if(/^--[^=]+=/.test(l)){let f=l.indexOf("="),p=this._findOption(l.slice(0,f));if(p&&(p.required||p.optional)){this.emit(`option:${p.name()}`,l.slice(f+1));continue}}if(n===r&&i(l)&&!(this.commands.length===0&&a(l))&&(n=o),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&o.length===0){if(this._findCommand(l)){r.push(l),o.push(...t.slice(u));break}else if(this._getHelpCommand()&&l===this._getHelpCommand().name()){r.push(l,...t.slice(u));break}else if(this._defaultCommandName){o.push(l,...t.slice(u));break}}if(this._passThroughOptions){n.push(l,...t.slice(u));break}n.push(l)}return{operands:r,unknown:o}}opts(){if(this._storeOptionsAsProperties){let t={},r=this.options.length;for(let o=0;o<r;o++){let n=this.options[o].attributeName();t[n]=n===this._versionOptionName?this._version:this[n]}return t}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((t,r)=>Object.assign(t,r.opts()),{})}error(t,r){this._outputConfiguration.outputError(`${t}
21
+ - ${n}`;throw new Error(i)}_executeSubCommand(t,r){r=r.slice();let o=!1,n=[".js",".ts",".tsx",".mjs",".cjs"];function i(l,f){let p=ze.resolve(l,f);if(Wn.existsSync(p))return p;if(n.includes(ze.extname(f)))return;let _=n.find(b=>Wn.existsSync(`${p}${b}`));if(_)return`${p}${_}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let a=t._executableFile||`${this._name}-${t._name}`,s=this._executableDir||"";if(this._scriptPath){let l;try{l=Wn.realpathSync(this._scriptPath)}catch{l=this._scriptPath}s=ze.resolve(ze.dirname(l),s)}if(s){let l=i(s,a);if(!l&&!t._executableFile&&this._scriptPath){let f=ze.basename(this._scriptPath,ze.extname(this._scriptPath));f!==this._name&&(l=i(s,`${f}-${t._name}`))}a=l||a}o=n.includes(ze.extname(a));let c;N.platform!=="win32"?o?(r.unshift(a),r=vd(N.execArgv).concat(r),c=yo.spawn(N.argv[0],r,{stdio:"inherit"})):c=yo.spawn(a,r,{stdio:"inherit"}):(this._checkForMissingExecutable(a,s,t._name),r.unshift(a),r=vd(N.execArgv).concat(r),c=yo.spawn(N.execPath,r,{stdio:"inherit"})),c.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(f=>{N.on(f,()=>{c.killed===!1&&c.exitCode===null&&c.kill(f)})});let u=this._exitCallback;c.on("close",l=>{l=l??1,u?u(new $o(l,"commander.executeSubCommandAsync","(close)")):N.exit(l)}),c.on("error",l=>{if(l.code==="ENOENT")this._checkForMissingExecutable(a,s,t._name);else if(l.code==="EACCES")throw new Error(`'${a}' not executable`);if(!u)N.exit(1);else{let f=new $o(1,"commander.executeSubCommandAsync","(error)");f.nestedError=l,u(f)}}),this.runningCommand=c}_dispatchSubcommand(t,r,o){let n=this._findCommand(t);n||this.help({error:!0}),n._prepareForParse();let i;return i=this._chainOrCallSubCommandHook(i,n,"preSubcommand"),i=this._chainOrCall(i,()=>{if(n._executableHandler)this._executeSubCommand(n,r.concat(o));else return n._parseCommand(r,o)}),i}_dispatchHelpCommand(t){t||this.help();let r=this._findCommand(t);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(t,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((t,r)=>{t.required&&this.args[r]==null&&this.missingArgument(t.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let t=(o,n,i)=>{let a=n;if(n!==null&&o.parseArg){let s=`error: command-argument value '${n}' is invalid for argument '${o.name()}'.`;a=this._callParseArg(o,n,i,s)}return a};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((o,n)=>{let i=o.defaultValue;o.variadic?n<this.args.length?(i=this.args.slice(n),o.parseArg&&(i=i.reduce((a,s)=>t(o,s,a),o.defaultValue))):i===void 0&&(i=[]):n<this.args.length&&(i=this.args[n],o.parseArg&&(i=t(o,i,o.defaultValue))),r[n]=i}),this.processedArgs=r}_chainOrCall(t,r){return t?.then&&typeof t.then=="function"?t.then(()=>r()):r()}_chainOrCallHooks(t,r){let o=t,n=[];return this._getCommandAndAncestors().reverse().filter(i=>i._lifeCycleHooks[r]!==void 0).forEach(i=>{i._lifeCycleHooks[r].forEach(a=>{n.push({hookedCommand:i,callback:a})})}),r==="postAction"&&n.reverse(),n.forEach(i=>{o=this._chainOrCall(o,()=>i.callback(i.hookedCommand,this))}),o}_chainOrCallSubCommandHook(t,r,o){let n=t;return this._lifeCycleHooks[o]!==void 0&&this._lifeCycleHooks[o].forEach(i=>{n=this._chainOrCall(n,()=>i(this,r))}),n}_parseCommand(t,r){let o=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),t=t.concat(o.operands),r=o.unknown,this.args=t.concat(r),t&&this._findCommand(t[0]))return this._dispatchSubcommand(t[0],t.slice(1),r);if(this._getHelpCommand()&&t[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(t[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(r),this._dispatchSubcommand(this._defaultCommandName,t,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(o.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let n=()=>{o.unknown.length>0&&this.unknownOption(o.unknown[0])},i=`command:${this.name()}`;if(this._actionHandler){n(),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,t,r)})),a=this._chainOrCallHooks(a,"postAction"),a}if(this.parent?.listenerCount(i))n(),this._processArguments(),this.parent.emit(i,t,r);else if(t.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",t,r);this.listenerCount("command:*")?this.emit("command:*",t,r):this.commands.length?this.unknownCommand():(n(),this._processArguments())}else this.commands.length?(n(),this.help({error:!0})):(n(),this._processArguments())}_findCommand(t){if(t)return this.commands.find(r=>r._name===t||r._aliases.includes(t))}_findOption(t){return this.options.find(r=>r.is(t))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(t=>{t.options.forEach(r=>{r.mandatory&&t.getOptionValue(r.attributeName())===void 0&&t.missingMandatoryOptionValue(r)})})}_checkForConflictingLocalOptions(){let t=this.options.filter(o=>{let n=o.attributeName();return this.getOptionValue(n)===void 0?!1:this.getOptionValueSource(n)!=="default"});t.filter(o=>o.conflictsWith.length>0).forEach(o=>{let n=t.find(i=>o.conflictsWith.includes(i.attributeName()));n&&this._conflictingOption(o,n)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(t=>{t._checkForConflictingLocalOptions()})}parseOptions(t){let r=[],o=[],n=r;function i(l){return l.length>1&&l[0]==="-"}let a=l=>/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(l)?!this._getCommandAndAncestors().some(f=>f.options.map(p=>p.short).some(p=>/^-\d$/.test(p))):!1,s=null,c=null,u=0;for(;u<t.length||c;){let l=c??t[u++];if(c=null,l==="--"){n===o&&n.push(l),n.push(...t.slice(u));break}if(s&&(!i(l)||a(l))){this.emit(`option:${s.name()}`,l);continue}if(s=null,i(l)){let f=this._findOption(l);if(f){if(f.required){let p=t[u++];p===void 0&&this.optionMissingArgument(f),this.emit(`option:${f.name()}`,p)}else if(f.optional){let p=null;u<t.length&&(!i(t[u])||a(t[u]))&&(p=t[u++]),this.emit(`option:${f.name()}`,p)}else this.emit(`option:${f.name()}`);s=f.variadic?f:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let f=this._findOption(`-${l[1]}`);if(f){f.required||f.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${f.name()}`,l.slice(2)):(this.emit(`option:${f.name()}`),c=`-${l.slice(2)}`);continue}}if(/^--[^=]+=/.test(l)){let f=l.indexOf("="),p=this._findOption(l.slice(0,f));if(p&&(p.required||p.optional)){this.emit(`option:${p.name()}`,l.slice(f+1));continue}}if(n===r&&i(l)&&!(this.commands.length===0&&a(l))&&(n=o),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&o.length===0){if(this._findCommand(l)){r.push(l),o.push(...t.slice(u));break}else if(this._getHelpCommand()&&l===this._getHelpCommand().name()){r.push(l,...t.slice(u));break}else if(this._defaultCommandName){o.push(l,...t.slice(u));break}}if(this._passThroughOptions){n.push(l,...t.slice(u));break}n.push(l)}return{operands:r,unknown:o}}opts(){if(this._storeOptionsAsProperties){let t={},r=this.options.length;for(let o=0;o<r;o++){let n=this.options[o].attributeName();t[n]=n===this._versionOptionName?this._version:this[n]}return t}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((t,r)=>Object.assign(t,r.opts()),{})}error(t,r){this._outputConfiguration.outputError(`${t}
22
22
  `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
23
23
  `):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
24
- `),this.outputHelp({error:!0}));let o=r||{},n=o.exitCode||1,i=o.code||"commander.error";this._exit(n,i,t)}_parseOptionsEnv(){this.options.forEach(t=>{if(t.envVar&&t.envVar in N.env){let r=t.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(t.required||t.optional?this.emit(`optionEnv:${t.name()}`,N.env[t.envVar]):this.emit(`optionEnv:${t.name()}`))}})}_parseOptionsImplied(){let t=new Ng(this.options),r=o=>this.getOptionValue(o)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(o));this.options.filter(o=>o.implied!==void 0&&r(o.attributeName())&&t.valueFromOption(this.getOptionValue(o.attributeName()),o)).forEach(o=>{Object.keys(o.implied).filter(n=>!r(n)).forEach(n=>{this.setOptionValueWithSource(n,o.implied[n],"implied")})})}missingArgument(t){let r=`error: missing required argument '${t}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(t){let r=`error: option '${t.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(t){let r=`error: required option '${t.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(t,r){let o=a=>{let s=a.attributeName(),c=this.getOptionValue(s),u=this.options.find(f=>f.negate&&s===f.attributeName()),l=this.options.find(f=>!f.negate&&s===f.attributeName());return u&&(u.presetArg===void 0&&c===!1||u.presetArg!==void 0&&c===u.presetArg)?u:l||a},n=a=>{let s=o(a),c=s.attributeName();return this.getOptionValueSource(c)==="env"?`environment variable '${s.envVar}'`:`option '${s.flags}'`},i=`error: ${n(t)} cannot be used with ${n(r)}`;this.error(i,{code:"commander.conflictingOption"})}unknownOption(t){if(this._allowUnknownOption)return;let r="";if(t.startsWith("--")&&this._showSuggestionAfterError){let n=[],i=this;do{let a=i.createHelp().visibleOptions(i).filter(s=>s.long).map(s=>s.long);n=n.concat(a),i=i.parent}while(i&&!i._enablePositionalOptions);r=hd(t,n)}let o=`error: unknown option '${t}'${r}`;this.error(o,{code:"commander.unknownOption"})}_excessArguments(t){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,o=r===1?"":"s",i=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${o} but got ${t.length}.`;this.error(i,{code:"commander.excessArguments"})}unknownCommand(){let t=this.args[0],r="";if(this._showSuggestionAfterError){let n=[];this.createHelp().visibleCommands(this).forEach(i=>{n.push(i.name()),i.alias()&&n.push(i.alias())}),r=hd(t,n)}let o=`error: unknown command '${t}'${r}`;this.error(o,{code:"commander.unknownCommand"})}version(t,r,o){if(t===void 0)return this._version;this._version=t,r=r||"-V, --version",o=o||"output the version number";let n=this.createOption(r,o);return this._versionOptionName=n.attributeName(),this._registerOption(n),this.on("option:"+n.name(),()=>{this._outputConfiguration.writeOut(`${t}
25
- `),this._exit(0,"commander.version",t)}),this}description(t,r){return t===void 0&&r===void 0?this._description:(this._description=t,r&&(this._argsDescription=r),this)}summary(t){return t===void 0?this._summary:(this._summary=t,this)}alias(t){if(t===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),t===r._name)throw new Error("Command alias can't be the same as its name");let o=this.parent?._findCommand(t);if(o){let n=[o.name()].concat(o.aliases()).join("|");throw new Error(`cannot add alias '${t}' to command '${this.name()}' as already have command '${n}'`)}return r._aliases.push(t),this}aliases(t){return t===void 0?this._aliases:(t.forEach(r=>this.alias(r)),this)}usage(t){if(t===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(o=>Ag(o));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=t,this}name(t){return t===void 0?this._name:(this._name=t,this)}helpGroup(t){return t===void 0?this._helpGroupHeading??"":(this._helpGroupHeading=t,this)}commandsGroup(t){return t===void 0?this._defaultCommandGroup??"":(this._defaultCommandGroup=t,this)}optionsGroup(t){return t===void 0?this._defaultOptionGroup??"":(this._defaultOptionGroup=t,this)}_initOptionGroup(t){this._defaultOptionGroup&&!t.helpGroupHeading&&t.helpGroup(this._defaultOptionGroup)}_initCommandGroup(t){this._defaultCommandGroup&&!t.helpGroup()&&t.helpGroup(this._defaultCommandGroup)}nameFromFilename(t){return this._name=ze.basename(t,ze.extname(t)),this}executableDir(t){return t===void 0?this._executableDir:(this._executableDir=t,this)}helpInformation(t){let r=this.createHelp(),o=this._getOutputContext(t);r.prepareContext({error:o.error,helpWidth:o.helpWidth,outputHasColors:o.hasColors});let n=r.formatHelp(this,r);return o.hasColors?n:this._outputConfiguration.stripColor(n)}_getOutputContext(t){t=t||{};let r=!!t.error,o,n,i;return r?(o=s=>this._outputConfiguration.writeErr(s),n=this._outputConfiguration.getErrHasColors(),i=this._outputConfiguration.getErrHelpWidth()):(o=s=>this._outputConfiguration.writeOut(s),n=this._outputConfiguration.getOutHasColors(),i=this._outputConfiguration.getOutHelpWidth()),{error:r,write:s=>(n||(s=this._outputConfiguration.stripColor(s)),o(s)),hasColors:n,helpWidth:i}}outputHelp(t){let r;typeof t=="function"&&(r=t,t=void 0);let o=this._getOutputContext(t),n={error:o.error,write:o.write,command:this};this._getCommandAndAncestors().reverse().forEach(a=>a.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let i=this.helpInformation({error:o.error});if(r&&(i=r(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",n),this._getCommandAndAncestors().forEach(a=>a.emit("afterAllHelp",n))}helpOption(t,r){return typeof t=="boolean"?(t?(this._helpOption===null&&(this._helpOption=void 0),this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,this):(this._helpOption=this.createOption(t??"-h, --help",r??"display help for command"),(t||r)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(t){return this._helpOption=t,this._initOptionGroup(t),this}help(t){this.outputHelp(t);let r=Number(N.exitCode??0);r===0&&t&&typeof t!="function"&&t.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(t,r){let o=["beforeAll","before","after","afterAll"];if(!o.includes(t))throw new Error(`Unexpected value for position to addHelpText.
24
+ `),this.outputHelp({error:!0}));let o=r||{},n=o.exitCode||1,i=o.code||"commander.error";this._exit(n,i,t)}_parseOptionsEnv(){this.options.forEach(t=>{if(t.envVar&&t.envVar in N.env){let r=t.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(t.required||t.optional?this.emit(`optionEnv:${t.name()}`,N.env[t.envVar]):this.emit(`optionEnv:${t.name()}`))}})}_parseOptionsImplied(){let t=new Rg(this.options),r=o=>this.getOptionValue(o)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(o));this.options.filter(o=>o.implied!==void 0&&r(o.attributeName())&&t.valueFromOption(this.getOptionValue(o.attributeName()),o)).forEach(o=>{Object.keys(o.implied).filter(n=>!r(n)).forEach(n=>{this.setOptionValueWithSource(n,o.implied[n],"implied")})})}missingArgument(t){let r=`error: missing required argument '${t}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(t){let r=`error: option '${t.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(t){let r=`error: required option '${t.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(t,r){let o=a=>{let s=a.attributeName(),c=this.getOptionValue(s),u=this.options.find(f=>f.negate&&s===f.attributeName()),l=this.options.find(f=>!f.negate&&s===f.attributeName());return u&&(u.presetArg===void 0&&c===!1||u.presetArg!==void 0&&c===u.presetArg)?u:l||a},n=a=>{let s=o(a),c=s.attributeName();return this.getOptionValueSource(c)==="env"?`environment variable '${s.envVar}'`:`option '${s.flags}'`},i=`error: ${n(t)} cannot be used with ${n(r)}`;this.error(i,{code:"commander.conflictingOption"})}unknownOption(t){if(this._allowUnknownOption)return;let r="";if(t.startsWith("--")&&this._showSuggestionAfterError){let n=[],i=this;do{let a=i.createHelp().visibleOptions(i).filter(s=>s.long).map(s=>s.long);n=n.concat(a),i=i.parent}while(i&&!i._enablePositionalOptions);r=gd(t,n)}let o=`error: unknown option '${t}'${r}`;this.error(o,{code:"commander.unknownOption"})}_excessArguments(t){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,o=r===1?"":"s",i=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${o} but got ${t.length}.`;this.error(i,{code:"commander.excessArguments"})}unknownCommand(){let t=this.args[0],r="";if(this._showSuggestionAfterError){let n=[];this.createHelp().visibleCommands(this).forEach(i=>{n.push(i.name()),i.alias()&&n.push(i.alias())}),r=gd(t,n)}let o=`error: unknown command '${t}'${r}`;this.error(o,{code:"commander.unknownCommand"})}version(t,r,o){if(t===void 0)return this._version;this._version=t,r=r||"-V, --version",o=o||"output the version number";let n=this.createOption(r,o);return this._versionOptionName=n.attributeName(),this._registerOption(n),this.on("option:"+n.name(),()=>{this._outputConfiguration.writeOut(`${t}
25
+ `),this._exit(0,"commander.version",t)}),this}description(t,r){return t===void 0&&r===void 0?this._description:(this._description=t,r&&(this._argsDescription=r),this)}summary(t){return t===void 0?this._summary:(this._summary=t,this)}alias(t){if(t===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),t===r._name)throw new Error("Command alias can't be the same as its name");let o=this.parent?._findCommand(t);if(o){let n=[o.name()].concat(o.aliases()).join("|");throw new Error(`cannot add alias '${t}' to command '${this.name()}' as already have command '${n}'`)}return r._aliases.push(t),this}aliases(t){return t===void 0?this._aliases:(t.forEach(r=>this.alias(r)),this)}usage(t){if(t===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(o=>jg(o));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=t,this}name(t){return t===void 0?this._name:(this._name=t,this)}helpGroup(t){return t===void 0?this._helpGroupHeading??"":(this._helpGroupHeading=t,this)}commandsGroup(t){return t===void 0?this._defaultCommandGroup??"":(this._defaultCommandGroup=t,this)}optionsGroup(t){return t===void 0?this._defaultOptionGroup??"":(this._defaultOptionGroup=t,this)}_initOptionGroup(t){this._defaultOptionGroup&&!t.helpGroupHeading&&t.helpGroup(this._defaultOptionGroup)}_initCommandGroup(t){this._defaultCommandGroup&&!t.helpGroup()&&t.helpGroup(this._defaultCommandGroup)}nameFromFilename(t){return this._name=ze.basename(t,ze.extname(t)),this}executableDir(t){return t===void 0?this._executableDir:(this._executableDir=t,this)}helpInformation(t){let r=this.createHelp(),o=this._getOutputContext(t);r.prepareContext({error:o.error,helpWidth:o.helpWidth,outputHasColors:o.hasColors});let n=r.formatHelp(this,r);return o.hasColors?n:this._outputConfiguration.stripColor(n)}_getOutputContext(t){t=t||{};let r=!!t.error,o,n,i;return r?(o=s=>this._outputConfiguration.writeErr(s),n=this._outputConfiguration.getErrHasColors(),i=this._outputConfiguration.getErrHelpWidth()):(o=s=>this._outputConfiguration.writeOut(s),n=this._outputConfiguration.getOutHasColors(),i=this._outputConfiguration.getOutHelpWidth()),{error:r,write:s=>(n||(s=this._outputConfiguration.stripColor(s)),o(s)),hasColors:n,helpWidth:i}}outputHelp(t){let r;typeof t=="function"&&(r=t,t=void 0);let o=this._getOutputContext(t),n={error:o.error,write:o.write,command:this};this._getCommandAndAncestors().reverse().forEach(a=>a.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let i=this.helpInformation({error:o.error});if(r&&(i=r(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",n),this._getCommandAndAncestors().forEach(a=>a.emit("afterAllHelp",n))}helpOption(t,r){return typeof t=="boolean"?(t?(this._helpOption===null&&(this._helpOption=void 0),this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,this):(this._helpOption=this.createOption(t??"-h, --help",r??"display help for command"),(t||r)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(t){return this._helpOption=t,this._initOptionGroup(t),this}help(t){this.outputHelp(t);let r=Number(N.exitCode??0);r===0&&t&&typeof t!="function"&&t.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(t,r){let o=["beforeAll","before","after","afterAll"];if(!o.includes(t))throw new Error(`Unexpected value for position to addHelpText.
26
26
  Expecting one of '${o.join("', '")}'`);let n=`${t}Help`;return this.on(n,i=>{let a;typeof r=="function"?a=r({error:i.error,command:i.command}):a=r,a&&i.write(`${a}
27
- `)}),this}_outputHelpIfRequested(t){let r=this._getHelpOption();r&&t.find(n=>r.is(n))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function gd(e){return e.map(t=>{if(!t.startsWith("--inspect"))return t;let r,o="127.0.0.1",n="9229",i;return(i=t.match(/^(--inspect(-brk)?)$/))!==null?r=i[1]:(i=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=i[1],/^\d+$/.test(i[3])?n=i[3]:o=i[3]):(i=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=i[1],o=i[3],n=i[4]),r&&n!=="0"?`${r}=${o}:${parseInt(n)+1}`:t})}function bo(){if(N.env.NO_COLOR||N.env.FORCE_COLOR==="0"||N.env.FORCE_COLOR==="false")return!1;if(N.env.FORCE_COLOR||N.env.CLICOLOR_FORCE!==void 0)return!0}So.Command=xo;So.useColor=bo});var xd=W(me=>{"use strict";var{Argument:_d}=Jn(),{Command:ko}=vd(),{CommanderError:Ug,InvalidArgumentError:yd}=Kt(),{Help:Rg}=fo(),{Option:$d}=_o();me.program=new ko;me.createCommand=e=>new ko(e);me.createOption=(e,t)=>new $d(e,t);me.createArgument=(e,t)=>new _d(e,t);me.Command=ko;me.Option=$d;me.Argument=_d;me.Help=Rg;me.CommanderError=Ug;me.InvalidArgumentError=yd;me.InvalidOptionArgumentError=yd});function Id(e){if(!e||typeof e!="string")return;let t=e.trim().toLowerCase();return Object.values(zo).includes(t)?t:void 0}function Od(e){if(e==null)return;if(typeof e!="string")throw k.validation("Idempotency key must be a string.");let t=e.trim();if(!t)throw k.validation("Idempotency key must not be empty.");if(t.length>lt.MAX_LENGTH)throw k.validation(`Idempotency key must be at most ${lt.MAX_LENGTH} characters.`);return t}function Mg(e){let t=e.code;return t==="ERR_INVALID_URL"?!1:typeof t=="string"?!0:e instanceof TypeError?!/\burl\b/i.test(e.message):!1}function ce(e){return e!==null&&typeof e=="object"&&"name"in e&&e.name==="ShipError"&&"status"in e}function Vg(e){let t=e.replace(/\\/g,"/").split("/").pop()??"",r=t.lastIndexOf(".");return r<=0||r===t.length-1?null:t.slice(r+1).toLowerCase()}function zd(e,t){let r=Vg(e);return r===null?!1:Array.isArray(t)?t.includes(r):t.has(r)}function Ed(e){return Gg.test(e)}function Do(e){return e.replace(/\\/g,"/").split("/").filter(Boolean).some(r=>Eo.has(r))}function Hg(e){return e.startsWith(Qt.PREFIX)?Ne.API_KEY:e.startsWith(en.PREFIX)?Ne.DEPLOY_TOKEN:e.startsWith(Dd.PREFIX)?Ne.OAUTH:Ne.OPAQUE}function Pd(e){let t=e.charCodeAt(0)===65279?e.slice(1):e,r;try{r=JSON.parse(t)}catch(o){throw k.config(`invalid JSON format in config: ${o.message}`,{filePath:Ee})}if(r===null||typeof r!="object"||Array.isArray(r))throw k.config(`${Ee} must contain a JSON object`,{filePath:Ee})}function To(e,t,r){if(!e.startsWith(t.PREFIX))throw k.validation(`${r} must start with "${t.PREFIX}"`);if(e.length!==t.TOTAL_LENGTH)throw k.validation(`${r} must be ${t.TOTAL_LENGTH} characters total (${t.PREFIX} + ${t.HEX_LENGTH} hex chars)`);let o=e.slice(t.PREFIX.length);if(!new RegExp(`^[a-f0-9]{${t.HEX_LENGTH}}$`,"i").test(o))throw k.validation(`${r} must contain ${t.HEX_LENGTH} hexadecimal characters after "${t.PREFIX}" prefix`)}function Jg(e){To(e,Qt,"API key")}function Wg(e){To(e,en,"Deploy token")}function qg(e){To(e,Dd,"OAuth access token")}function Ye(e){switch(Hg(e)){case Ne.API_KEY:Jg(e);return;case Ne.DEPLOY_TOKEN:Wg(e);return;case Ne.OAUTH:qg(e);return;case Ne.OPAQUE:if(!e)throw k.validation("Token must be a non-empty string")}}function Ad(e){if(!e||e.length>Xt.MAX_LENGTH||!Xt.PATTERN.test(e))throw k.validation(`Caller must be 1-${Xt.MAX_LENGTH} characters: letters, digits, dots, underscores, or hyphens`)}function Qn(e){try{let t=new URL(e);if(!["http:","https:"].includes(t.protocol))throw k.validation("API URL must use http:// or https:// protocol");if(t.pathname!=="/"&&t.pathname!=="")throw k.validation("API URL must not contain a path");if(t.search||t.hash)throw k.validation("API URL must not contain query parameters or fragments")}catch(t){throw ce(t)?t:k.validation("API URL must be a valid URL")}}function Po(e){if(e!=null){if(typeof e!="number"||!Number.isFinite(e))throw k.validation("TTL must be a number of seconds");if(!Number.isInteger(e))throw k.validation("TTL must be a whole number of seconds");if(e<Kn.MIN_SECONDS||e>Kn.MAX_SECONDS)throw k.validation(`TTL must be between ${Kn.MIN_SECONDS} and ${Kn.MAX_SECONDS} seconds`);return e}}function Rd(e){if(e==null||e==="")return;if(typeof e!="string")throw k.validation("Build command must be a string");let t=e.trim();if(t.length===0||t.length>Yt.COMMAND_MAX_LENGTH)throw k.validation(`Build command must be between 1 and ${Yt.COMMAND_MAX_LENGTH} characters`);if(/[\x00-\x1f\x7f]/.test(t))throw k.validation("Build command must be a single line");return t}function Ld(e){if(e==null||e==="")return;if(typeof e!="string")throw k.validation("Output folder must be a string");let t=e.trim().replace(/\/+$/,"");if(t.length===0||t.length>Yt.OUTPUT_DIR_MAX_LENGTH)throw k.validation(`Output folder must be between 1 and ${Yt.OUTPUT_DIR_MAX_LENGTH} characters`);if(!Yt.OUTPUT_DIR_PATTERN.test(t)||t.split("/").some(r=>r===".."||r==="."))throw k.validation("Output folder must be a relative path inside the project, like dist or dist/site");return t}function Ao(e){if(e==null)return;if(typeof e!="string")throw k.validation("Password must be a string");let t=e.trim();if(t.length<Xn.MIN_LENGTH||t.length>Xn.MAX_LENGTH)throw k.validation(`Password must be between ${Xn.MIN_LENGTH} and ${Xn.MAX_LENGTH} characters`);return t}var wd,zo,lt,Z,se,P,Lg,Io,Fg,Zg,k,Bg,Ub,Gg,Eo,Oo,Qt,en,Dd,Xt,Ne,Ee,Td,Yn,Kn,Cd,tn,jd,Nd,Rb,Ue,Ud,Yt,Xn,M=Y(()=>{"use strict";wd={PENDING:"pending",SUCCESS:"success",FAILED:"failed",DELETING:"deleting"},zo={WEB:"web",SDK:"sdk",CLI:"cli",MCP:"mcp",GIT:"git",N8N:"n8n",GPT:"gpt",VSC:"vsc",CLD:"cld",CRS:"crs",GMN:"gmn",API:"api"},lt={HEADER:"Idempotency-Key",MAX_LENGTH:256,WINDOW_SECONDS:1440*60};Z={DEPLOYMENTS:"/deployments",DEPLOYMENT:e=>`/deployments/${e}`,DEPLOYMENT_CONFIG:e=>`/deployments/${e}/config`,DOMAINS:"/domains",DOMAIN:e=>`/domains/${e}`,DOMAIN_VERIFY:e=>`/domains/${e}/verify`,DOMAIN_DNS:e=>`/domains/${e}/dns`,DOMAIN_RECORDS:e=>`/domains/${e}/records`,DOMAIN_SHARE:e=>`/domains/${e}/share`,DOMAIN_PROPAGATION:e=>`/domains/${e}/propagation`,DOMAINS_VALIDATE:"/domains/validate",TOKENS:"/tokens",TOKEN:e=>`/tokens/${e}`,ACCOUNT:"/account",ACCOUNT_KEY:"/account/key",ACCOUNT_CLAIM:"/account/claim",ACTIVITIES:"/activities",LABELS:"/labels",LIMITS:"/limits",PLANS:"/plans",PING:"/ping",SETUP:"/setup",SPA_CHECK:"/spa-check",UPLOAD:"/upload"},se={FILES:"files[]",CHECKSUMS:"checksums",LABELS:"labels",VIA:"via",PASSWORD:"password",TTL:"ttl",BUILD:"build",PRERENDER:"prerender",SPA:"spa",BUILD_COMMAND:"buildCommand",OUTPUT_DIR:"outputDir",CAPTCHA:"captcha"},P={Validation:"validation_failed",NotFound:"not_found",Forbidden:"forbidden",RateLimit:"rate_limit_exceeded",Authentication:"authentication_failed",Business:"business_logic_error",Api:"internal_server_error",Maintenance:"maintenance",Build:"build_failed",Network:"network_error",Timeout:"timeout_error",Cancelled:"operation_cancelled",File:"file_error",Config:"config_error"},Lg=new Set([P.Network,P.Timeout,P.Cancelled,P.File,P.Config]),Io={client:new Set([P.Build,P.Business,P.Cancelled,P.Config,P.File,P.Forbidden,P.NotFound,P.RateLimit,P.Validation]),network:new Set([P.Network,P.Timeout]),auth:new Set([P.Authentication])},Fg=new Set(Object.values(P).filter(e=>!Lg.has(e))),Zg=200;k=class e extends Error{type;status;details;constructor(t,r,o,n){super(r),this.type=t,this.status=o,this.details=n,this.name="ShipError"}toResponse(){let t=this.details,r=this.type===P.Authentication&&t?.internal?void 0:this.details;return{error:this.type,message:this.message,status:this.status,details:r}}static async fromHttpResponse(t,r){let o,n,i;try{if(t.headers.get("content-type")?.includes("application/json")){let u=await t.json();if(u&&typeof u=="object"){let l=u;typeof l.message=="string"?o=l.message:typeof l.error=="string"&&(o=l.error),n=l.details,typeof l.error=="string"&&Fg.has(l.error)&&(i=l.error)}}else{let u=(await t.text()).trim();u&&!u.startsWith("<")&&u.length<=Zg&&(o=u)}}catch{}let a=t.headers.get("retry-after");if(a!==null){let c=a.trim(),u=/^\d+$/.test(c)?Number(c):Math.ceil((Date.parse(c)-Date.now())/1e3);if(Number.isFinite(u)&&u>=0){let l=n&&typeof n=="object"?n:{};l.retryAfter===void 0&&(n={...l,retryAfter:u})}}o=o||`${r||"Request"} failed with status ${t.status}`;let s=i??(t.status===401?P.Authentication:t.status===403?P.Forbidden:t.status===429?P.RateLimit:P.Api);return new e(s,o,t.status,n)}static fromFetchError(t,r){if(ce(t))return t;let o=r||"Request",n=t?.name;return n==="AbortError"?e.cancelled(`${o} was cancelled`):n==="TimeoutError"?e.timeout(`${o} timed out`,{cause:t}):t instanceof Error?Mg(t)?e.network(`${o} failed: ${t.message}`,{cause:t}):new e(P.Api,`${o} failed: ${t.message}`):new e(P.Api,`${o} failed: Unknown error`)}static validation(t,r){return new e(P.Validation,t,400,r)}static notFound(t,r){let o=r?`${t} ${r} not found`:`${t} not found`;return new e(P.NotFound,o,404)}static forbidden(t,r){return new e(P.Forbidden,t,403,r)}static rateLimit(t="Too many requests",r){return new e(P.RateLimit,t,429,r)}static authentication(t="Authentication required",r){return new e(P.Authentication,t,401,r)}static business(t,r=400,o){return new e(P.Business,t,r,o)}static network(t,r){return new e(P.Network,t,void 0,r)}static timeout(t,r){return new e(P.Timeout,t,void 0,r)}static cancelled(t,r){return new e(P.Cancelled,t,void 0,r)}static file(t,r){return new e(P.File,t,void 0,r)}static config(t,r){return new e(P.Config,t,void 0,r)}static api(t,r=500,o){return new e(P.Api,t,r,o)}static maintenance(t,r){return new e(P.Maintenance,t,503,r)}static build(t,r){return new e(P.Build,t,422,r)}isClientError(){return Io.client.has(this.type)?!0:this.status!==void 0&&this.status>=400&&this.status<500}isNetworkError(){return Io.network.has(this.type)}isAuthError(){return Io.auth.has(this.type)}isType(t){return this.type===t}};Bg=["html","htm","xhtml","xml","txt","md","markdown","pdf","csv","json","jsonc","webmanifest","map","toml","yaml","yml","rss","atom","css","scss","sass","less","js","mjs","cjs","jsx","ts","tsx","wasm","vue","svelte","png","jpg","jpeg","gif","webp","avif","svg","ico","bmp","tif","tiff","heic","heif","woff","woff2","ttf","otf","eot","mp3","wav","ogg","oga","opus","m4a","aac","flac","weba","mp4","webm","ogv","mov","m4v","avi","glb","gltf","usdz","vtt","srt","zip"],Ub=Bg.map(e=>`.${e}`).join(","),Gg=/[\x00-\x1f\x7f#?%\\<>"]/;Eo=new Set(["node_modules","package.json"]);Oo={SESSION:"session",API_KEY:"apiKey",TOKEN:"token",AGENT:"agent",OAUTH:"oauth",SYSTEM:"system"},Qt={PREFIX:"ship-",HEX_LENGTH:32,TOTAL_LENGTH:37,HINT_LENGTH:4},en={PREFIX:"deploy-",HEX_LENGTH:32,TOTAL_LENGTH:39},Dd={PREFIX:"oauth-",HEX_LENGTH:32,TOTAL_LENGTH:38},Xt={HEADER:"X-Caller",MAX_LENGTH:128,PATTERN:/^[a-zA-Z0-9._-]+$/},Ne={API_KEY:Oo.API_KEY,DEPLOY_TOKEN:Oo.TOKEN,OAUTH:Oo.OAUTH,OPAQUE:"opaque"};Ee="ship.json",Td={rewrites:[{source:"/(.*)",destination:"/index.html"}]},Yn={INDEX_FILE:"index.html",MAX_INDEX_BYTES:100*1024};Kn={MIN_SECONDS:1,MAX_SECONDS:365*24*60*60};Cd="https://api.shipstatic.com",tn={TOKEN:"SHIP_TOKEN",API_URL:"SHIP_API_URL"},jd="SHIP_VIA",Nd="https://my.shipstatic.com/api-key",Rb=4320*60,Ue={MIN_LENGTH:3,MAX_LENGTH:25,MAX_COUNT:10,SEPARATORS:"._-"},Ud=/^[a-z0-9]+(?:[._-][a-z0-9]+)*$/,Yt={COMMAND_MAX_LENGTH:200,OUTPUT_DIR_MAX_LENGTH:100,OUTPUT_DIR_PATTERN:/^[A-Za-z0-9._-]+(\/[A-Za-z0-9._-]+)*$/};Xn={MIN_LENGTH:6,MAX_LENGTH:128}});var De={};pe(De,{bgBlack:()=>dv,bgBlue:()=>hv,bgBlueBright:()=>Dv,bgCyan:()=>vv,bgCyanBright:()=>Pv,bgGray:()=>yv,bgGreen:()=>mv,bgGreenBright:()=>zv,bgMagenta:()=>gv,bgMagentaBright:()=>Tv,bgRed:()=>pv,bgRedBright:()=>Ov,bgWhite:()=>_v,bgWhiteBright:()=>Av,bgYellow:()=>fv,bgYellowBright:()=>Ev,black:()=>av,blue:()=>nr,blueBright:()=>Sv,bold:()=>Co,cyan:()=>cv,cyanBright:()=>wv,dim:()=>Re,gray:()=>lv,green:()=>rn,greenBright:()=>xv,hidden:()=>xe,inverse:()=>nn,italic:()=>Yg,magenta:()=>sv,magentaBright:()=>kv,overline:()=>iv,red:()=>er,redBright:()=>$v,reset:()=>Xg,strikethrough:()=>ov,underline:()=>Qg,underlineBlack:()=>Cv,underlineBlue:()=>Rv,underlineBlueBright:()=>Hv,underlineCurly:()=>tv,underlineCyan:()=>Fv,underlineCyanBright:()=>Wv,underlineDashed:()=>rv,underlineDotted:()=>nv,underlineDouble:()=>ev,underlineGray:()=>Mv,underlineGreen:()=>Nv,underlineGreenBright:()=>Bv,underlineMagenta:()=>Lv,underlineMagentaBright:()=>Jv,underlineRed:()=>jv,underlineRedBright:()=>Vv,underlineWhite:()=>Zv,underlineWhiteBright:()=>qv,underlineYellow:()=>Uv,underlineYellowBright:()=>Gv,white:()=>uv,whiteBright:()=>Iv,yellow:()=>tr,yellowBright:()=>bv});var Fd,Kg,T,Xg,Co,Re,Yg,Qg,ev,tv,nv,rv,iv,nn,xe,ov,av,er,rn,tr,nr,sv,cv,uv,lv,dv,pv,mv,fv,hv,gv,vv,_v,yv,$v,xv,bv,Sv,kv,wv,Iv,Ov,zv,Ev,Dv,Tv,Pv,Av,Cv,jv,Nv,Uv,Rv,Lv,Fv,Zv,Mv,Vv,Bv,Gv,Hv,Jv,Wv,qv,jo=Y(()=>{"use strict";Fd=re(require("tty"),1),Kg=Fd.default?.WriteStream?.prototype?.hasColors?.()??!1,T=(e,t)=>{if(!Kg)return n=>n;let r=`\x1B[${e}m`,o=`\x1B[${t}m`;return n=>{let i=n+"",a=i.indexOf(o);if(a===-1)return r+i+o;let s=r,c=0,l=(t===22?o:"")+r;for(;a!==-1;)s+=i.slice(c,a)+l,c=a+o.length,a=i.indexOf(o,c);return s+=i.slice(c)+o,s}},Xg=T(0,0),Co=T(1,22),Re=T(2,22),Yg=T(3,23),Qg=T(4,24),ev=T("4:2",24),tv=T("4:3",24),nv=T("4:4",24),rv=T("4:5",24),iv=T(53,55),nn=T(7,27),xe=T(8,28),ov=T(9,29),av=T(30,39),er=T(31,39),rn=T(32,39),tr=T(33,39),nr=T(34,39),sv=T(35,39),cv=T(36,39),uv=T(37,39),lv=T(90,39),dv=T(40,49),pv=T(41,49),mv=T(42,49),fv=T(43,49),hv=T(44,49),gv=T(45,49),vv=T(46,49),_v=T(47,49),yv=T(100,49),$v=T(91,39),xv=T(92,39),bv=T(93,39),Sv=T(94,39),kv=T(95,39),wv=T(96,39),Iv=T(97,39),Ov=T(101,49),zv=T(102,49),Ev=T(103,49),Dv=T(104,49),Tv=T(105,49),Pv=T(106,49),Av=T(107,49),Cv=T("58;5;0",59),jv=T("58;5;1",59),Nv=T("58;5;2",59),Uv=T("58;5;3",59),Rv=T("58;5;4",59),Lv=T("58;5;5",59),Fv=T("58;5;6",59),Zv=T("58;5;7",59),Mv=T("58;5;8",59),Vv=T("58;5;9",59),Bv=T("58;5;10",59),Gv=T("58;5;11",59),Hv=T("58;5;12",59),Jv=T("58;5;13",59),Wv=T("58;5;14",59),qv=T("58;5;15",59)});var on=Y(()=>{"use strict";jo();jo()});var Gd=W((Vb,Bd)=>{"use strict";Bd.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var Jd=W((Bb,Hd)=>{"use strict";var t_=Gd();Hd.exports=e=>typeof e=="string"?e.replace(t_(),""):e});var Wd=W((Gb,or)=>{"use strict";var n_=(function(){"use strict";function e(a,s,c,u){var l;typeof s=="object"&&(c=s.depth,u=s.prototype,l=s.filter,s=s.circular);var f=[],p=[],_=typeof Buffer<"u";typeof s>"u"&&(s=!0),typeof c>"u"&&(c=1/0);function b(E,D){if(E===null)return null;if(D==0)return E;var x,$;if(typeof E!="object")return E;if(e.__isArray(E))x=[];else if(e.__isRegExp(E))x=new RegExp(E.source,i(E)),E.lastIndex&&(x.lastIndex=E.lastIndex);else if(e.__isDate(E))x=new Date(E.getTime());else{if(_&&Buffer.isBuffer(E))return Buffer.allocUnsafe?x=Buffer.allocUnsafe(E.length):x=new Buffer(E.length),E.copy(x),x;typeof u>"u"?($=Object.getPrototypeOf(E),x=Object.create($)):(x=Object.create(u),$=u)}if(s){var m=f.indexOf(E);if(m!=-1)return p[m];f.push(E),p.push(x)}for(var d in E){var h;$&&(h=Object.getOwnPropertyDescriptor($,d)),!(h&&h.set==null)&&(x[d]=b(E[d],D-1))}return x}return b(a,c)}e.clonePrototype=function(s){if(s===null)return null;var c=function(){};return c.prototype=s,new c};function t(a){return Object.prototype.toString.call(a)}e.__objToStr=t;function r(a){return typeof a=="object"&&t(a)==="[object Date]"}e.__isDate=r;function o(a){return typeof a=="object"&&t(a)==="[object Array]"}e.__isArray=o;function n(a){return typeof a=="object"&&t(a)==="[object RegExp]"}e.__isRegExp=n;function i(a){var s="";return a.global&&(s+="g"),a.ignoreCase&&(s+="i"),a.multiline&&(s+="m"),s}return e.__getRegExpFlags=i,e})();typeof or=="object"&&or.exports&&(or.exports=n_)});var Kd=W((Hb,qd)=>{"use strict";var r_=Wd();qd.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=r_(t[r]))}),e}});var Yd=W((Jb,Xd)=>{"use strict";Xd.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var np=W((Wb,Lo)=>{"use strict";var i_=Kd(),sn=Yd(),ep={nul:0,control:0};Lo.exports=function(t){return tp(t,ep)};Lo.exports.config=function(e){return e=i_(e||{},ep),function(r){return tp(r,e)}};function tp(e,t){if(typeof e!="string")return Qd(e,t);for(var r=0,o=0;o<e.length;o++){var n=Qd(e.charCodeAt(o),t);if(n<0)return-1;r+=n}return r}function Qd(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:o_(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function o_(e){var t=0,r=sn.length-1,o;if(e<sn[0][0]||e>sn[r][1])return!1;for(;r>=t;)if(o=Math.floor((t+r)/2),e>sn[o][1])t=o+1;else if(e<sn[o][0])r=o-1;else return!0;return!1}});var Fo=W((qb,rp)=>{"use strict";var a_=Jd(),s_=np();rp.exports=function(e){return s_(a_(e))}});var ip=W((Kb,Qe)=>{"use strict";var Te=Fo();function ar(e,t){return Array.apply(null,{length:t+1}).join(e).slice(0,t)}function c_(e,t,r){e=e??"",e=String(e);var o=t-Te(e);return o<=0?e:e+ar(r||" ",o)}function u_(e,t,r){e=e??"",e=String(e);var o=t-Te(e);if(o<=0)return e;var n=Math.floor(o/2),i=o-n;return ar(r||" ",n)+e+ar(r||" ",i)}function l_(e,t,r){e=e??"",e=String(e);var o=t-Te(e);return o<=0?e:ar(r||" ",o)+e}function d_(e,t){function r(o,n){return o.trim().split(" ").reduce(function(i,a){var s=i[i.length-1];return s&&Te(s.join(" "))+Te(a)<n?i[i.length-1].push(a):i.push([a]),i},[]).map(function(i){return i.join(" ")})}return e.split(`
28
- `).map(function(o){return r(o,t)}).reduce(function(o,n){return o.concat(n)},[])}function p_(e,t,r){e=e.trim();for(var o=[],n=e.split(" "),i="",a=Te(r);i||n.length;){if(i){var s=i;i=""}else var s=n.shift();if(Te(s)>t){for(var c=0,u=0,l=t-a;c<s.length;){var f=Te(s.charAt(c));if(f+u>l)break;u+=f,++c}i=s.slice(c),s=s.slice(0,c),s+=r}o.push(s)}return o.join(" ")}function m_(e,t){if(e=e??"",e=String(e),t==1/0)return e;for(var r=0,o=0;r<e.length;){var n=Te(e.charAt(r));if(n+o>t)break;o+=n,++r}return e.slice(0,r)}Qe.exports.padRight=c_;Qe.exports.padCenter=u_;Qe.exports.padLeft=l_;Qe.exports.splitIntoLines=d_;Qe.exports.splitLongWords=p_;Qe.exports.truncateString=m_});var up=W((Xb,cp)=>{"use strict";var Zo=Fo(),dt=ip(),f_=dt.padRight,h_=dt.padCenter,g_=dt.padLeft,op=dt.splitIntoLines,v_=dt.splitLongWords,__=dt.truncateString,sp=function(t){return t.toUpperCase()},y_=function(t,r,o){return t},$_=Object.freeze({maxWidth:1/0,minWidth:0,columnSplitter:" ",truncate:!1,truncateMarker:"\u2026",preserveNewLines:!1,paddingChr:" ",showHeaders:!0,headingTransform:sp,dataTransform:y_});cp.exports=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.config||{};delete t.config;var o=t.maxLineWidth||1/0;o==="auto"&&(o=process.stdout.columns||1/0),delete t.maxLineWidth,t=ap({},$_,t),t.config=t.config||Object.create(null),t.spacing=t.spacing||`
29
- `,t.preserveNewLines=!!t.preserveNewLines,t.showHeaders=!!t.showHeaders,t.columns=t.columns||t.include;var n=t.columns||[];e=k_(e,n),n.length||e.forEach(function(c){for(var u in c)n.indexOf(u)===-1&&n.push(u)});var i=n.reduce(function(c,u){var l=Object.create(t);return c[u]=ap(l,r[u]),c},Object.create(null));n.forEach(function(c){var u=i[c];u.name=c,u.maxWidth=Math.ceil(u.maxWidth),u.minWidth=Math.ceil(u.minWidth),u.truncate=!!u.truncate,u.align=u.align||"left"}),e=e.map(function(c){var u=Object.create(null);return n.forEach(function(l){u[l]=c[l]!=null?c[l]:"",u[l]=""+u[l],i[l].preserveNewLines?u[l]=u[l].replace(/[^\S\n]/gmi," "):u[l]=u[l].replace(/\s/gmi," ")}),u}),n.forEach(function(c){var u=i[c];e=e.map(function(l,f){var p=Object.create(u);l[c]=u.dataTransform(l[c],p,f);var _=Object.keys(p);if(_.indexOf("name")!==-1){if(u.headingTransform!==sp)return;u.headingTransform=function(b){return b}}return _.forEach(function(b){return u[b]=p[b]}),l})});var a={};t.showHeaders&&(n.forEach(function(c){var u=i[c];if(!u.showHeaders){a[c]="";return}a[c]=u.headingTransform(u.name)}),e.unshift(a)),n.forEach(function(c){var u=i[c];u.width=e.map(function(l){return l[c]}).reduce(function(l,f){return l>=u.maxWidth?l:Math.max(l,Math.min(u.maxWidth,Math.max(u.minWidth,Zo(f))))},0)}),n.forEach(function(c){var u=i[c];e=e.map(function(l){return l[c]=v_(l[c],u.width,u.truncateMarker),l})}),n.forEach(function(c){var u=i[c];e=e.map(function(l,f){var p=l[c];if(l[c]=op(p,u.width),u.truncate&&l[c].length>1){l[c]=op(p,u.width-Zo(u.truncateMarker));var _=l[c][0];S_(_,u.truncateMarker)||(l[c][0]+=u.truncateMarker),l[c]=l[c].slice(0,1)}return l})}),n.forEach(function(c){var u=i[c];u.width=e.map(function(l){return l[c].reduce(function(f,p){return f>=u.maxWidth?f:Math.max(f,Math.min(u.maxWidth,Math.max(u.minWidth,Zo(p))))},0)}).reduce(function(l,f){return l>=u.maxWidth?l:Math.max(l,Math.min(u.maxWidth,Math.max(u.minWidth,f)))},0)});var s=x_(e,i,n,t.paddingChr);return s.reduce(function(c,u){return c.concat(u.reduce(function(l,f){return l.concat(f.join(t.columnSplitter))},[]))},[]).map(function(c){return __(c,o)}).join(t.spacing)};function x_(e,t,r,o){return e.map(function(n){var i=[],a=0;r.forEach(function(u){a=Math.max(a,n[u].length)});for(var s=function(l){i[l]=i[l]||[],r.forEach(function(f){var p=t[f],_=n[f][l]||"";p.align==="right"?i[l].push(g_(_,p.width,o)):p.align==="center"||p.align==="centre"?i[l].push(h_(_,p.width,o)):i[l].push(f_(_,p.width,o))})},c=0;c<a;c++)s(c);return i})}function ap(){return Object.assign?Object.assign.apply(Object,arguments):b_.apply(void 0,arguments)}function b_(e,t){"use strict";if(e==null)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),o=!1,n,i=1;i<arguments.length;i++){var a=arguments[i];if(a!=null){for(var s=Object.keys(Object(a)),c=0,u=s.length;c<u;c++){var l=s[c];try{var f=Object.getOwnPropertyDescriptor(a,l);f!==void 0&&f.enumerable&&(r[l]=a[l])}catch(p){o||(o=!0,n=p)}}if(o)throw n}}return r}function S_(e,t,r){r=r||e.length,r=r-t.length;var o=e.lastIndexOf(t);return o!==-1&&o===r}function k_(e,t){if(Array.isArray(e))return e;var r=[];for(var o in e){var n={};n[t[0]||"key"]=o,n[t[1]||"value"]=e[o],r.push(n)}return r}});function bx(){return typeof process<"u"&&process.versions&&process.versions.node?"node":typeof window<"u"||typeof self<"u"?"browser":"unknown"}function Wt(){return bh||bx()}var bh,Hi=Y(()=>{"use strict";bh=null});var Oh=W((wh,Ih)=>{"use strict";(function(e){if(typeof wh=="object")Ih.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t;try{t=window}catch{t=self}t.SparkMD5=e()}})(function(e){"use strict";var t=function(x,$){return x+$&4294967295},r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function o(x,$,m,d,h,g){return $=t(t($,x),t(d,g)),t($<<h|$>>>32-h,m)}function n(x,$){var m=x[0],d=x[1],h=x[2],g=x[3];m+=(d&h|~d&g)+$[0]-680876936|0,m=(m<<7|m>>>25)+d|0,g+=(m&d|~m&h)+$[1]-389564586|0,g=(g<<12|g>>>20)+m|0,h+=(g&m|~g&d)+$[2]+606105819|0,h=(h<<17|h>>>15)+g|0,d+=(h&g|~h&m)+$[3]-1044525330|0,d=(d<<22|d>>>10)+h|0,m+=(d&h|~d&g)+$[4]-176418897|0,m=(m<<7|m>>>25)+d|0,g+=(m&d|~m&h)+$[5]+1200080426|0,g=(g<<12|g>>>20)+m|0,h+=(g&m|~g&d)+$[6]-1473231341|0,h=(h<<17|h>>>15)+g|0,d+=(h&g|~h&m)+$[7]-45705983|0,d=(d<<22|d>>>10)+h|0,m+=(d&h|~d&g)+$[8]+1770035416|0,m=(m<<7|m>>>25)+d|0,g+=(m&d|~m&h)+$[9]-1958414417|0,g=(g<<12|g>>>20)+m|0,h+=(g&m|~g&d)+$[10]-42063|0,h=(h<<17|h>>>15)+g|0,d+=(h&g|~h&m)+$[11]-1990404162|0,d=(d<<22|d>>>10)+h|0,m+=(d&h|~d&g)+$[12]+1804603682|0,m=(m<<7|m>>>25)+d|0,g+=(m&d|~m&h)+$[13]-40341101|0,g=(g<<12|g>>>20)+m|0,h+=(g&m|~g&d)+$[14]-1502002290|0,h=(h<<17|h>>>15)+g|0,d+=(h&g|~h&m)+$[15]+1236535329|0,d=(d<<22|d>>>10)+h|0,m+=(d&g|h&~g)+$[1]-165796510|0,m=(m<<5|m>>>27)+d|0,g+=(m&h|d&~h)+$[6]-1069501632|0,g=(g<<9|g>>>23)+m|0,h+=(g&d|m&~d)+$[11]+643717713|0,h=(h<<14|h>>>18)+g|0,d+=(h&m|g&~m)+$[0]-373897302|0,d=(d<<20|d>>>12)+h|0,m+=(d&g|h&~g)+$[5]-701558691|0,m=(m<<5|m>>>27)+d|0,g+=(m&h|d&~h)+$[10]+38016083|0,g=(g<<9|g>>>23)+m|0,h+=(g&d|m&~d)+$[15]-660478335|0,h=(h<<14|h>>>18)+g|0,d+=(h&m|g&~m)+$[4]-405537848|0,d=(d<<20|d>>>12)+h|0,m+=(d&g|h&~g)+$[9]+568446438|0,m=(m<<5|m>>>27)+d|0,g+=(m&h|d&~h)+$[14]-1019803690|0,g=(g<<9|g>>>23)+m|0,h+=(g&d|m&~d)+$[3]-187363961|0,h=(h<<14|h>>>18)+g|0,d+=(h&m|g&~m)+$[8]+1163531501|0,d=(d<<20|d>>>12)+h|0,m+=(d&g|h&~g)+$[13]-1444681467|0,m=(m<<5|m>>>27)+d|0,g+=(m&h|d&~h)+$[2]-51403784|0,g=(g<<9|g>>>23)+m|0,h+=(g&d|m&~d)+$[7]+1735328473|0,h=(h<<14|h>>>18)+g|0,d+=(h&m|g&~m)+$[12]-1926607734|0,d=(d<<20|d>>>12)+h|0,m+=(d^h^g)+$[5]-378558|0,m=(m<<4|m>>>28)+d|0,g+=(m^d^h)+$[8]-2022574463|0,g=(g<<11|g>>>21)+m|0,h+=(g^m^d)+$[11]+1839030562|0,h=(h<<16|h>>>16)+g|0,d+=(h^g^m)+$[14]-35309556|0,d=(d<<23|d>>>9)+h|0,m+=(d^h^g)+$[1]-1530992060|0,m=(m<<4|m>>>28)+d|0,g+=(m^d^h)+$[4]+1272893353|0,g=(g<<11|g>>>21)+m|0,h+=(g^m^d)+$[7]-155497632|0,h=(h<<16|h>>>16)+g|0,d+=(h^g^m)+$[10]-1094730640|0,d=(d<<23|d>>>9)+h|0,m+=(d^h^g)+$[13]+681279174|0,m=(m<<4|m>>>28)+d|0,g+=(m^d^h)+$[0]-358537222|0,g=(g<<11|g>>>21)+m|0,h+=(g^m^d)+$[3]-722521979|0,h=(h<<16|h>>>16)+g|0,d+=(h^g^m)+$[6]+76029189|0,d=(d<<23|d>>>9)+h|0,m+=(d^h^g)+$[9]-640364487|0,m=(m<<4|m>>>28)+d|0,g+=(m^d^h)+$[12]-421815835|0,g=(g<<11|g>>>21)+m|0,h+=(g^m^d)+$[15]+530742520|0,h=(h<<16|h>>>16)+g|0,d+=(h^g^m)+$[2]-995338651|0,d=(d<<23|d>>>9)+h|0,m+=(h^(d|~g))+$[0]-198630844|0,m=(m<<6|m>>>26)+d|0,g+=(d^(m|~h))+$[7]+1126891415|0,g=(g<<10|g>>>22)+m|0,h+=(m^(g|~d))+$[14]-1416354905|0,h=(h<<15|h>>>17)+g|0,d+=(g^(h|~m))+$[5]-57434055|0,d=(d<<21|d>>>11)+h|0,m+=(h^(d|~g))+$[12]+1700485571|0,m=(m<<6|m>>>26)+d|0,g+=(d^(m|~h))+$[3]-1894986606|0,g=(g<<10|g>>>22)+m|0,h+=(m^(g|~d))+$[10]-1051523|0,h=(h<<15|h>>>17)+g|0,d+=(g^(h|~m))+$[1]-2054922799|0,d=(d<<21|d>>>11)+h|0,m+=(h^(d|~g))+$[8]+1873313359|0,m=(m<<6|m>>>26)+d|0,g+=(d^(m|~h))+$[15]-30611744|0,g=(g<<10|g>>>22)+m|0,h+=(m^(g|~d))+$[6]-1560198380|0,h=(h<<15|h>>>17)+g|0,d+=(g^(h|~m))+$[13]+1309151649|0,d=(d<<21|d>>>11)+h|0,m+=(h^(d|~g))+$[4]-145523070|0,m=(m<<6|m>>>26)+d|0,g+=(d^(m|~h))+$[11]-1120210379|0,g=(g<<10|g>>>22)+m|0,h+=(m^(g|~d))+$[2]+718787259|0,h=(h<<15|h>>>17)+g|0,d+=(g^(h|~m))+$[9]-343485551|0,d=(d<<21|d>>>11)+h|0,x[0]=m+x[0]|0,x[1]=d+x[1]|0,x[2]=h+x[2]|0,x[3]=g+x[3]|0}function i(x){var $=[],m;for(m=0;m<64;m+=4)$[m>>2]=x.charCodeAt(m)+(x.charCodeAt(m+1)<<8)+(x.charCodeAt(m+2)<<16)+(x.charCodeAt(m+3)<<24);return $}function a(x){var $=[],m;for(m=0;m<64;m+=4)$[m>>2]=x[m]+(x[m+1]<<8)+(x[m+2]<<16)+(x[m+3]<<24);return $}function s(x){var $=x.length,m=[1732584193,-271733879,-1732584194,271733878],d,h,g,H,ve,je;for(d=64;d<=$;d+=64)n(m,i(x.substring(d-64,d)));for(x=x.substring(d-64),h=x.length,g=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],d=0;d<h;d+=1)g[d>>2]|=x.charCodeAt(d)<<(d%4<<3);if(g[d>>2]|=128<<(d%4<<3),d>55)for(n(m,g),d=0;d<16;d+=1)g[d]=0;return H=$*8,H=H.toString(16).match(/(.*?)(.{0,8})$/),ve=parseInt(H[2],16),je=parseInt(H[1],16)||0,g[14]=ve,g[15]=je,n(m,g),m}function c(x){var $=x.length,m=[1732584193,-271733879,-1732584194,271733878],d,h,g,H,ve,je;for(d=64;d<=$;d+=64)n(m,a(x.subarray(d-64,d)));for(x=d-64<$?x.subarray(d-64):new Uint8Array(0),h=x.length,g=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],d=0;d<h;d+=1)g[d>>2]|=x[d]<<(d%4<<3);if(g[d>>2]|=128<<(d%4<<3),d>55)for(n(m,g),d=0;d<16;d+=1)g[d]=0;return H=$*8,H=H.toString(16).match(/(.*?)(.{0,8})$/),ve=parseInt(H[2],16),je=parseInt(H[1],16)||0,g[14]=ve,g[15]=je,n(m,g),m}function u(x){var $="",m;for(m=0;m<4;m+=1)$+=r[x>>m*8+4&15]+r[x>>m*8&15];return $}function l(x){var $;for($=0;$<x.length;$+=1)x[$]=u(x[$]);return x.join("")}l(s("hello"))!=="5d41402abc4b2a76b9719d911017c592"&&(t=function(x,$){var m=(x&65535)+($&65535),d=(x>>16)+($>>16)+(m>>16);return d<<16|m&65535}),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&(function(){function x($,m){return $=$|0||0,$<0?Math.max($+m,0):Math.min($,m)}ArrayBuffer.prototype.slice=function($,m){var d=this.byteLength,h=x($,d),g=d,H,ve,je,ud;return m!==e&&(g=x(m,d)),h>g?new ArrayBuffer(0):(H=g-h,ve=new ArrayBuffer(H),je=new Uint8Array(ve),ud=new Uint8Array(this,h,H),je.set(ud),ve)}})();function f(x){return/[\u0080-\uFFFF]/.test(x)&&(x=unescape(encodeURIComponent(x))),x}function p(x,$){var m=x.length,d=new ArrayBuffer(m),h=new Uint8Array(d),g;for(g=0;g<m;g+=1)h[g]=x.charCodeAt(g);return $?h:d}function _(x){return String.fromCharCode.apply(null,new Uint8Array(x))}function b(x,$,m){var d=new Uint8Array(x.byteLength+$.byteLength);return d.set(new Uint8Array(x)),d.set(new Uint8Array($),x.byteLength),m?d:d.buffer}function E(x){var $=[],m=x.length,d;for(d=0;d<m-1;d+=2)$.push(parseInt(x.substr(d,2),16));return String.fromCharCode.apply(String,$)}function D(){this.reset()}return D.prototype.append=function(x){return this.appendBinary(f(x)),this},D.prototype.appendBinary=function(x){this._buff+=x,this._length+=x.length;var $=this._buff.length,m;for(m=64;m<=$;m+=64)n(this._hash,i(this._buff.substring(m-64,m)));return this._buff=this._buff.substring(m-64),this},D.prototype.end=function(x){var $=this._buff,m=$.length,d,h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],g;for(d=0;d<m;d+=1)h[d>>2]|=$.charCodeAt(d)<<(d%4<<3);return this._finish(h,m),g=l(this._hash),x&&(g=E(g)),this.reset(),g},D.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},D.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},D.prototype.setState=function(x){return this._buff=x.buff,this._length=x.length,this._hash=x.hash,this},D.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},D.prototype._finish=function(x,$){var m=$,d,h,g;if(x[m>>2]|=128<<(m%4<<3),m>55)for(n(this._hash,x),m=0;m<16;m+=1)x[m]=0;d=this._length*8,d=d.toString(16).match(/(.*?)(.{0,8})$/),h=parseInt(d[2],16),g=parseInt(d[1],16)||0,x[14]=h,x[15]=g,n(this._hash,x)},D.hash=function(x,$){return D.hashBinary(f(x),$)},D.hashBinary=function(x,$){var m=s(x),d=l(m);return $?E(d):d},D.ArrayBuffer=function(){this.reset()},D.ArrayBuffer.prototype.append=function(x){var $=b(this._buff.buffer,x,!0),m=$.length,d;for(this._length+=x.byteLength,d=64;d<=m;d+=64)n(this._hash,a($.subarray(d-64,d)));return this._buff=d-64<m?new Uint8Array($.buffer.slice(d-64)):new Uint8Array(0),this},D.ArrayBuffer.prototype.end=function(x){var $=this._buff,m=$.length,d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],h,g;for(h=0;h<m;h+=1)d[h>>2]|=$[h]<<(h%4<<3);return this._finish(d,m),g=l(this._hash),x&&(g=E(g)),this.reset(),g},D.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},D.ArrayBuffer.prototype.getState=function(){var x=D.prototype.getState.call(this);return x.buff=_(x.buff),x},D.ArrayBuffer.prototype.setState=function(x){return x.buff=p(x.buff,!0),D.prototype.setState.call(this,x)},D.ArrayBuffer.prototype.destroy=D.prototype.destroy,D.ArrayBuffer.prototype._finish=D.prototype._finish,D.ArrayBuffer.hash=function(x,$){var m=c(new Uint8Array(x)),d=l(m);return $?E(d):d},D})});async function Ax(e){let t=(await Promise.resolve().then(()=>re(Oh(),1))).default,r=new t.ArrayBuffer,o=2097152;for(let n=0;n<e.size;n+=o){let i=Math.min(n+o,e.size);r.append(await e.slice(n,i).arrayBuffer())}return{md5:r.end()}}async function Cx(e){let{createHash:t}=await import("crypto"),r=t("md5");return r.update(e),{md5:r.digest("hex")}}async function jx(e){let{createHash:t}=await import("crypto"),{createReadStream:r}=await import("fs");return new Promise((o,n)=>{let i=t("md5"),a=r(e);a.on("error",s=>n(k.file(`Failed to read file for MD5: ${s.message}`,{filePath:e}))),a.on("data",s=>i.update(s)),a.on("end",()=>o({md5:i.digest("hex")}))})}async function qi(e){if(e instanceof Blob)return Ax(e);if(typeof Buffer<"u"&&Buffer.isBuffer(e))return Cx(e);if(typeof e=="string")return jx(e);throw k.business("Invalid input for MD5 calculation")}var Kl=Y(()=>{"use strict";M()});function Ch(e){if(!e||e.length===0)return"";let t=e.filter(i=>i&&typeof i=="string").map(i=>i.replace(/\\/g,"/"));if(t.length===0)return"";if(t.length===1)return t[0];let r=t.map(i=>i.split("/").filter(Boolean)),o=[],n=Math.min(...r.map(i=>i.length));for(let i=0;i<n;i++){let a=r[0][i];if(r.every(s=>s[i]===a))o.push(a);else break}return o.join("/")}function Yi(e){return e.replace(/\\/g,"/").replace(/\/+/g,"/").replace(/^\/+/,"")}var Yl=Y(()=>{"use strict"});function jh(e,t={}){if(t.flatten===!1)return e.map(o=>({path:Yi(o),name:Ql(o)}));let r=Lx(e);return e.map(o=>{let n=Yi(o);if(r){let i=r.endsWith("/")?r:`${r}/`;n.startsWith(i)&&(n=n.substring(i.length))}return n||(n=Ql(o)),{path:n,name:Ql(o)}})}function Lx(e){if(!e.length)return"";let r=e.map(i=>Yi(i)).map(i=>i.split("/")),o=[],n=Math.min(...r.map(i=>i.length));for(let i=0;i<n-1;i++){let a=r[0][i];if(r.every(s=>s[i]===a))o.push(a);else break}return o.join("/")}function Ql(e){return e.split(/[/\\]/).pop()||e}var Nh=Y(()=>{"use strict";Yl()});function Uh(e,t){return Fx.find(r=>r.broken(e,t))}var Fx,Rh=Y(()=>{"use strict";M();Lh();Fx=[{name:"name",broken:({path:e})=>!ed(e).valid,sentence:({path:e})=>ed(e).reason??"Invalid file name"},{name:"extension",broken:({path:e},t)=>zd(e,t.blockedExtensions??[]),sentence:({path:e})=>`File extension not allowed: "${e}"`},{name:"fileSize",broken:({size:e},t)=>e>t.maxFileSize,sentence:({path:e},t)=>`File "${e}" too large. Maximum ${Qi(t.maxFileSize)} allowed`},{name:"totalSize",broken:({totalSize:e},t)=>e>t.maxTotalSize,sentence:({totalSize:e},t)=>`Total upload size too large. ${Qi(e)} exceeds maximum of ${Qi(t.maxTotalSize)}`}]});function Qi(e,t=1){if(e===0)return"0 Bytes";let r=1024,o=["Bytes","KB","MB","GB"],n=Math.floor(Math.log(e)/Math.log(r));return`${parseFloat((e/r**n).toFixed(t))} ${o[n]}`}function ed(e){if(Ed(e))return{valid:!1,reason:"File name contains unsafe characters"};if(e.startsWith(" ")||e.endsWith(" "))return{valid:!1,reason:"File name cannot start/end with spaces"};if(e.endsWith("."))return{valid:!1,reason:"File name cannot end with dots"};let t=/^(CON|PRN|AUX|NUL|COM[1-9]|LPT[1-9])(\.|$)/i,r=e.split("/").pop()||e;return t.test(r)?{valid:!1,reason:"File name uses a reserved system name"}:e.includes("..")?{valid:!1,reason:"File name contains path traversal pattern"}:{valid:!0}}var Lh=Y(()=>{"use strict";M()});function Fh(e){return Mx.test(e)}var Zx,Mx,Zh=Y(()=>{"use strict";Zx=["^npm-debug\\.log$","^\\..*\\.swp$","^\\.DS_Store$","^\\.AppleDouble$","^\\.LSOverride$","^Icon\\r$","^\\._.*","^\\.Spotlight-V100(?:$|\\/)","\\.Trashes","^__MACOSX$","~$","^Thumbs\\.db$","^ehthumbs\\.db$","^[Dd]esktop\\.ini$","@eaDir$"],Mx=new RegExp(Zx.join("|"))});function Mh(e,t){if(!e||e.length===0)return[];if(!t?.allowUnbuilt&&e.find(o=>o&&Do(o)))throw k.business("Unbuilt project detected \u2014 deploy your build output (dist/, build/, out/), not the project folder");return e.filter(r=>{if(!r)return!1;let o=r.replace(/\\/g,"/").split("/").filter(Boolean);if(o.length===0)return!0;let n=o[o.length-1];if(Fh(n))return!1;for(let a of o)if(a!==".well-known"&&(a.startsWith(".")||a.length>255))return!1;let i=o.slice(0,-1);for(let a of i)if(Vx.some(s=>a.toLowerCase()===s.toLowerCase()))return!1;return!0})}var Vx,Vh=Y(()=>{"use strict";M();Zh();Vx=["__MACOSX",".Trashes",".fseventsd",".Spotlight-V100"]});function Bh(e,t){if(e.includes("\0")||e.includes("/../")||e.startsWith("../")||e.endsWith("/.."))throw k.business(`Security error: Unsafe file path "${e}" for file: ${t}`)}function Gh(e,t){let r=Uh(e,t);if(r)throw k.business(r.sentence(e,t))}var Hh=Y(()=>{"use strict";M();Rh()});async function Jh(e,t={},r){let o=!!(t.build||t.prerender),n=jh(e.map(l=>l.path),{flatten:t.pathDetect!==!1}).map(l=>l.path),i=new Set(Mh(n,{allowUnbuilt:o})),a=e.map((l,f)=>({source:l,deployPath:n[f]})).filter(({deployPath:l})=>i.has(l));if(a.length===0)return[];let s=o?null:Bx(r),c=[],u=0;for(let{source:l,deployPath:f}of a){if(s&&Bh(f,l.origin),l.size===0)continue;s&&(u+=l.size,Gh({path:f,size:l.size,totalSize:u},s));let p=await l.read(),{md5:_}=await qi(p);c.push({path:f,content:p,size:l.size,md5:_})}if(s&&c.length>s.maxFilesCount)throw k.business(`Too many files to deploy. Maximum allowed is ${s.maxFilesCount} files.`);return c}function Bx(e){if(!e)throw k.config("Platform limits not provided. Deploy-mode validation requires the limits argument \u2014 pass `ship.getLimits()` result.");return e}var Wh=Y(()=>{"use strict";M();Nh();Vh();Kl();Hh()});var Kh={};pe(Kh,{processFilesForNode:()=>Jx});function qh(e,t=new Set){let r=[],o=ge.realpathSync(e);if(t.has(o))return r;t.add(o);for(let n of ge.readdirSync(e)){let i=de.join(e,n),a=ge.statSync(i);a.isDirectory()?r.push(...qh(i,t)):a.isFile()&&r.push({absPath:i,size:a.size})}return r}async function Gx(e){try{return ge.readFileSync(e)}catch(t){let r=t instanceof Error?t.message:String(t);throw k.file(`Failed to read file "${e}": ${r}`,{filePath:e})}}function Hx(e){for(let t of e){let r=de.resolve(t);try{if(ge.statSync(r).isDirectory()){let o=ge.readdirSync(r).find(n=>Eo.has(n));if(o)throw k.business(`"${o}" detected \u2014 deploy your build output (dist/, build/, out/), not the project folder`)}}catch(o){if(ce(o))throw o}}}async function Jx(e,t={},r){if(Wt()!=="node")throw k.business("processFilesForNode can only be called in Node.js environment.");Hx(e);let o=e.flatMap(s=>{let c=de.resolve(s);try{let u=ge.statSync(c);return u.isDirectory()?qh(c):[{absPath:c,size:u.size}]}catch{throw k.file(`Path does not exist: ${s}`,{filePath:s})}}),n=new Map(o.map(s=>[s.absPath,s.size])),i=Ch(e.map(s=>de.resolve(s)).map(s=>{try{return ge.statSync(s).isDirectory()?s:de.dirname(s)}catch{return de.dirname(s)}})),a=[...n].map(([s,c])=>({path:Wx(s,i),origin:s,size:c,read:()=>Gx(s)}));return Jh(a,t,r)}function Wx(e,t){if(t&&t.length>0){let r=de.relative(t,e);if(r&&typeof r=="string"&&!r.startsWith(".."))return r.replace(/\\/g,"/")}return de.basename(e)}var ge,de,Xh=Y(()=>{"use strict";ge=re(require("fs"),1),de=re(require("path"),1);M();Wh();Hi();Yl()});var lg={};pe(lg,{default:()=>ug});function ug(e){return new ad(e)}var J,cg,Bn,id,sb,cb,ub,lb,sg,db,pb,mb,od,ad,dg=Y(()=>{"use strict";J=re(require("process"),1),cg=require("util");on();Bn=J.default.platform!=="win32"||!!J.default.env.WT_SESSION||J.default.env.TERM_PROGRAM==="vscode",id=e=>!!(e.isTTY&&J.default.env.TERM!=="dumb"&&!("CI"in J.default.env)),sb=De.blue(Bn?"\u2139":"i"),cb=De.green(Bn?"\u2714":"\u221A"),ub=De.yellow(Bn?"\u26A0":"\u203C"),lb=De.red(Bn?"\u2716":"\xD7"),sg={frames:Bn?["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]:["-","\\","|","/"],interval:80},db="\x1B[?2026h",pb="\x1B[?2026l",mb=/][\s\S]*?(?:|\\)/g,od=new Set,ad=class{#m;#f;#u=-1;#l;#h;#n;#e;#d;#o=0;#a;#t;#_=0;#g=!1;#s=new Map;#v=!1;#r=!1;constructor(t={}){let r=t.spinner??sg;if(!Array.isArray(r.frames)||r.frames.length===0||r.frames.some(o=>typeof o!="string"))throw new Error("The `spinner.frames` option must be a non-empty array of strings");if(r.interval!==void 0&&!(Number.isInteger(r.interval)&&r.interval>0))throw new Error("The `spinner.interval` option must be a positive integer");this.#m=r.frames,this.#f=r.interval??sg.interval,this.#h=t.handleSignals??!0,this.#n=t.text??"",this.#e=t.stream??J.default.stderr,this.#d=t.color??"cyan",this.#t=id(this.#e),this.#a=this.#T.bind(this)}#y(t){this.#v=!0;try{return t()}finally{this.#v=!1}}#$(t,r){if(t==null)return"";if(typeof t=="string")return t;if(Buffer.isBuffer(t)||ArrayBuffer.isView(t)){let o=typeof r=="string"&&r!==""&&r!=="buffer"?r:"utf8";return Buffer.from(t).toString(o)}return String(t)}#x(t){if(!this.#t)return t();try{return this.#i(db),t()}finally{this.#i(pb)}}#b(t){if(!t||this.#s.has(t)||typeof t.write!="function"||od.has(t))return;let r=t.write,o=(...n)=>this.#w(t,r,n);this.#s.set(t,{originalWrite:r,hookedWrite:o}),od.add(t),t.write=o}#S(){if(!this.#t||this.#s.size>0)return;let t=new Set([this.#e]);(this.#e===J.default.stdout||this.#e===J.default.stderr)&&(id(J.default.stdout)&&t.add(J.default.stdout),id(J.default.stderr)&&t.add(J.default.stderr));for(let r of t)this.#b(r)}#k(){for(let[t,r]of this.#s)t.write===r.hookedWrite&&(t.write=r.originalWrite),od.delete(t);this.#s.clear()}#w(t,r,o){let[n,i,a]=o,s=i,c=a;if(typeof s=="function"&&(c=s,s=void 0),this.#v||!this.isSpinning)return r.call(t,n,s,c);this.#o>0&&this.clear();let u=this.#$(n,s),l=u.at(-1)===`
27
+ `)}),this}_outputHelpIfRequested(t){let r=this._getHelpOption();r&&t.find(n=>r.is(n))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function vd(e){return e.map(t=>{if(!t.startsWith("--inspect"))return t;let r,o="127.0.0.1",n="9229",i;return(i=t.match(/^(--inspect(-brk)?)$/))!==null?r=i[1]:(i=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=i[1],/^\d+$/.test(i[3])?n=i[3]:o=i[3]):(i=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=i[1],o=i[3],n=i[4]),r&&n!=="0"?`${r}=${o}:${parseInt(n)+1}`:t})}function bo(){if(N.env.NO_COLOR||N.env.FORCE_COLOR==="0"||N.env.FORCE_COLOR==="false")return!1;if(N.env.FORCE_COLOR||N.env.CLICOLOR_FORCE!==void 0)return!0}So.Command=xo;So.useColor=bo});var bd=W(me=>{"use strict";var{Argument:yd}=Jn(),{Command:ko}=_d(),{CommanderError:Lg,InvalidArgumentError:$d}=Kt(),{Help:Fg}=fo(),{Option:xd}=_o();me.program=new ko;me.createCommand=e=>new ko(e);me.createOption=(e,t)=>new xd(e,t);me.createArgument=(e,t)=>new yd(e,t);me.Command=ko;me.Option=xd;me.Argument=yd;me.Help=Fg;me.CommanderError=Lg;me.InvalidArgumentError=$d;me.InvalidOptionArgumentError=$d});function Od(e){if(!e||typeof e!="string")return;let t=e.trim().toLowerCase();return Object.values(zo).includes(t)?t:void 0}function zd(e){if(e==null)return;if(typeof e!="string")throw k.validation("Idempotency key must be a string.");let t=e.trim();if(!t)throw k.validation("Idempotency key must not be empty.");if(t.length>lt.MAX_LENGTH)throw k.validation(`Idempotency key must be at most ${lt.MAX_LENGTH} characters.`);return t}function Bg(e){let t=e.code;return t==="ERR_INVALID_URL"?!1:typeof t=="string"?!0:e instanceof TypeError?!/\burl\b/i.test(e.message):!1}function ce(e){return e!==null&&typeof e=="object"&&"name"in e&&e.name==="ShipError"&&"status"in e}function Gg(e){let t=e.replace(/\\/g,"/").split("/").pop()??"",r=t.lastIndexOf(".");return r<=0||r===t.length-1?null:t.slice(r+1).toLowerCase()}function Ed(e,t){let r=Gg(e);return r===null?!1:Array.isArray(t)?t.includes(r):t.has(r)}function Dd(e){return Jg.test(e)}function Do(e){return e.replace(/\\/g,"/").split("/").filter(Boolean).some(r=>Eo.has(r))}function Wg(e){return e.startsWith(Qt.PREFIX)?Ne.API_KEY:e.startsWith(en.PREFIX)?Ne.DEPLOY_TOKEN:e.startsWith(Td.PREFIX)?Ne.OAUTH:Ne.OPAQUE}function Ad(e){let t=e.charCodeAt(0)===65279?e.slice(1):e,r;try{r=JSON.parse(t)}catch(o){throw k.config(`invalid JSON format in config: ${o.message}`,{filePath:Ee})}if(r===null||typeof r!="object"||Array.isArray(r))throw k.config(`${Ee} must contain a JSON object`,{filePath:Ee})}function To(e,t,r){if(!e.startsWith(t.PREFIX))throw k.validation(`${r} must start with "${t.PREFIX}"`);if(e.length!==t.TOTAL_LENGTH)throw k.validation(`${r} must be ${t.TOTAL_LENGTH} characters total (${t.PREFIX} + ${t.HEX_LENGTH} hex chars)`);let o=e.slice(t.PREFIX.length);if(!new RegExp(`^[a-f0-9]{${t.HEX_LENGTH}}$`,"i").test(o))throw k.validation(`${r} must contain ${t.HEX_LENGTH} hexadecimal characters after "${t.PREFIX}" prefix`)}function qg(e){To(e,Qt,"API key")}function Kg(e){To(e,en,"Deploy token")}function Xg(e){To(e,Td,"OAuth access token")}function Ye(e){switch(Wg(e)){case Ne.API_KEY:qg(e);return;case Ne.DEPLOY_TOKEN:Kg(e);return;case Ne.OAUTH:Xg(e);return;case Ne.OPAQUE:if(!e)throw k.validation("Token must be a non-empty string")}}function Cd(e){if(!e||e.length>Xt.MAX_LENGTH||!Xt.PATTERN.test(e))throw k.validation(`Caller must be 1-${Xt.MAX_LENGTH} characters: letters, digits, dots, underscores, or hyphens`)}function Qn(e){try{let t=new URL(e);if(!["http:","https:"].includes(t.protocol))throw k.validation("API URL must use http:// or https:// protocol");if(t.pathname!=="/"&&t.pathname!=="")throw k.validation("API URL must not contain a path");if(t.search||t.hash)throw k.validation("API URL must not contain query parameters or fragments")}catch(t){throw ce(t)?t:k.validation("API URL must be a valid URL")}}function Po(e){if(e!=null){if(typeof e!="number"||!Number.isFinite(e))throw k.validation("TTL must be a number of seconds");if(!Number.isInteger(e))throw k.validation("TTL must be a whole number of seconds");if(e<Kn.MIN_SECONDS||e>Kn.MAX_SECONDS)throw k.validation(`TTL must be between ${Kn.MIN_SECONDS} and ${Kn.MAX_SECONDS} seconds`);return e}}function Ld(e){if(e==null||e==="")return;if(typeof e!="string")throw k.validation("Build command must be a string");let t=e.trim();if(t.length===0||t.length>Yt.COMMAND_MAX_LENGTH)throw k.validation(`Build command must be between 1 and ${Yt.COMMAND_MAX_LENGTH} characters`);if(/[\x00-\x1f\x7f]/.test(t))throw k.validation("Build command must be a single line");return t}function Fd(e){if(e==null||e==="")return;if(typeof e!="string")throw k.validation("Output folder must be a string");let t=e.trim().replace(/\/+$/,"");if(t.length===0||t.length>Yt.OUTPUT_DIR_MAX_LENGTH)throw k.validation(`Output folder must be between 1 and ${Yt.OUTPUT_DIR_MAX_LENGTH} characters`);if(!Yt.OUTPUT_DIR_PATTERN.test(t)||t.split("/").some(r=>r===".."||r==="."))throw k.validation("Output folder must be a relative path inside the project, like dist or dist/site");return t}function Ao(e){if(e==null)return;if(typeof e!="string")throw k.validation("Password must be a string");let t=e.trim();if(t.length<Xn.MIN_LENGTH||t.length>Xn.MAX_LENGTH)throw k.validation(`Password must be between ${Xn.MIN_LENGTH} and ${Xn.MAX_LENGTH} characters`);return t}var Id,zo,lt,Z,se,P,Zg,Io,Mg,Vg,k,Hg,Fb,Jg,Eo,Oo,Qt,en,Td,Xt,Ne,Ee,Pd,Yn,Kn,jd,tn,Nd,Ud,Zb,Ue,Rd,Yt,Xn,M=Y(()=>{"use strict";Id={PENDING:"pending",SUCCESS:"success",FAILED:"failed",DELETING:"deleting"},zo={WEB:"web",SDK:"sdk",CLI:"cli",MCP:"mcp",GIT:"git",N8N:"n8n",GPT:"gpt",VSC:"vsc",CLD:"cld",CRS:"crs",GMN:"gmn",API:"api"},lt={HEADER:"Idempotency-Key",MAX_LENGTH:256,WINDOW_SECONDS:1440*60};Z={DEPLOYMENTS:"/deployments",DEPLOYMENT:e=>`/deployments/${e}`,DEPLOYMENT_CONFIG:e=>`/deployments/${e}/config`,DOMAINS:"/domains",DOMAIN:e=>`/domains/${e}`,DOMAIN_VERIFY:e=>`/domains/${e}/verify`,DOMAIN_DNS:e=>`/domains/${e}/dns`,DOMAIN_RECORDS:e=>`/domains/${e}/records`,DOMAIN_SHARE:e=>`/domains/${e}/share`,DOMAIN_PROPAGATION:e=>`/domains/${e}/propagation`,DOMAINS_VALIDATE:"/domains/validate",TOKENS:"/tokens",TOKEN:e=>`/tokens/${e}`,ACCOUNT:"/account",ACCOUNT_KEY:"/account/key",ACCOUNT_CLAIM:"/account/claim",ACTIVITIES:"/activities",LABELS:"/labels",LIMITS:"/limits",PLANS:"/plans",PING:"/ping",SETUP:"/setup",SPA_CHECK:"/spa-check",UPLOAD:"/upload"},se={FILES:"files[]",CHECKSUMS:"checksums",LABELS:"labels",VIA:"via",PASSWORD:"password",TTL:"ttl",BUILD:"build",PRERENDER:"prerender",SPA:"spa",BUILD_COMMAND:"buildCommand",OUTPUT_DIR:"outputDir",CAPTCHA:"captcha"},P={Validation:"validation_failed",NotFound:"not_found",Forbidden:"forbidden",RateLimit:"rate_limit_exceeded",Authentication:"authentication_failed",Business:"business_logic_error",Api:"internal_server_error",Maintenance:"maintenance",Build:"build_failed",Network:"network_error",Timeout:"timeout_error",Cancelled:"operation_cancelled",File:"file_error",Config:"config_error"},Zg=new Set([P.Network,P.Timeout,P.Cancelled,P.File,P.Config]),Io={client:new Set([P.Build,P.Business,P.Cancelled,P.Config,P.File,P.Forbidden,P.NotFound,P.RateLimit,P.Validation]),network:new Set([P.Network,P.Timeout]),auth:new Set([P.Authentication])},Mg=new Set(Object.values(P).filter(e=>!Zg.has(e))),Vg=200;k=class e extends Error{type;status;details;constructor(t,r,o,n){super(r),this.type=t,this.status=o,this.details=n,this.name="ShipError"}toResponse(){let t=this.details,r=this.type===P.Authentication&&t?.internal?void 0:this.details;return{error:this.type,message:this.message,status:this.status,details:r}}static async fromHttpResponse(t,r){let o,n,i;try{if(t.headers.get("content-type")?.includes("application/json")){let u=await t.json();if(u&&typeof u=="object"){let l=u;typeof l.message=="string"?o=l.message:typeof l.error=="string"&&(o=l.error),n=l.details,typeof l.error=="string"&&Mg.has(l.error)&&(i=l.error)}}else{let u=(await t.text()).trim();u&&!u.startsWith("<")&&u.length<=Vg&&(o=u)}}catch{}let a=t.headers.get("retry-after");if(a!==null){let c=a.trim(),u=/^\d+$/.test(c)?Number(c):Math.ceil((Date.parse(c)-Date.now())/1e3);if(Number.isFinite(u)&&u>=0){let l=n&&typeof n=="object"?n:{};l.retryAfter===void 0&&(n={...l,retryAfter:u})}}o=o||`${r||"Request"} failed with status ${t.status}`;let s=i??(t.status===401?P.Authentication:t.status===403?P.Forbidden:t.status===429?P.RateLimit:P.Api);return new e(s,o,t.status,n)}static fromFetchError(t,r){if(ce(t))return t;let o=r||"Request",n=t?.name;return n==="AbortError"?e.cancelled(`${o} was cancelled`):n==="TimeoutError"?e.timeout(`${o} timed out`,{cause:t}):t instanceof Error?Bg(t)?e.network(`${o} failed: ${t.message}`,{cause:t}):new e(P.Api,`${o} failed: ${t.message}`):new e(P.Api,`${o} failed: Unknown error`)}static validation(t,r){return new e(P.Validation,t,400,r)}static notFound(t,r){let o=r?`${t} ${r} not found`:`${t} not found`;return new e(P.NotFound,o,404)}static forbidden(t,r){return new e(P.Forbidden,t,403,r)}static rateLimit(t="Too many requests",r){return new e(P.RateLimit,t,429,r)}static authentication(t="Authentication required",r){return new e(P.Authentication,t,401,r)}static business(t,r=400,o){return new e(P.Business,t,r,o)}static network(t,r){return new e(P.Network,t,void 0,r)}static timeout(t,r){return new e(P.Timeout,t,void 0,r)}static cancelled(t,r){return new e(P.Cancelled,t,void 0,r)}static file(t,r){return new e(P.File,t,void 0,r)}static config(t,r){return new e(P.Config,t,void 0,r)}static api(t,r=500,o){return new e(P.Api,t,r,o)}static maintenance(t,r){return new e(P.Maintenance,t,503,r)}static build(t,r){return new e(P.Build,t,422,r)}isClientError(){return Io.client.has(this.type)?!0:this.status!==void 0&&this.status>=400&&this.status<500}isNetworkError(){return Io.network.has(this.type)}isAuthError(){return Io.auth.has(this.type)}isType(t){return this.type===t}};Hg=["html","htm","xhtml","xml","txt","md","markdown","pdf","csv","json","jsonc","webmanifest","map","toml","yaml","yml","rss","atom","css","scss","sass","less","js","mjs","cjs","jsx","ts","tsx","wasm","vue","svelte","png","jpg","jpeg","gif","webp","avif","svg","ico","bmp","tif","tiff","heic","heif","woff","woff2","ttf","otf","eot","mp3","wav","ogg","oga","opus","m4a","aac","flac","weba","mp4","webm","ogv","mov","m4v","avi","glb","gltf","usdz","vtt","srt","zip"],Fb=Hg.map(e=>`.${e}`).join(","),Jg=/[\x00-\x1f\x7f#?%\\<>"]/;Eo=new Set(["node_modules","package.json"]);Oo={SESSION:"session",API_KEY:"apiKey",TOKEN:"token",AGENT:"agent",OAUTH:"oauth",SYSTEM:"system"},Qt={PREFIX:"ship-",HEX_LENGTH:32,TOTAL_LENGTH:37,HINT_LENGTH:4},en={PREFIX:"deploy-",HEX_LENGTH:32,TOTAL_LENGTH:39},Td={PREFIX:"oauth-",HEX_LENGTH:32,TOTAL_LENGTH:38},Xt={HEADER:"X-Caller",MAX_LENGTH:128,PATTERN:/^[a-zA-Z0-9._-]+$/},Ne={API_KEY:Oo.API_KEY,DEPLOY_TOKEN:Oo.TOKEN,OAUTH:Oo.OAUTH,OPAQUE:"opaque"};Ee="ship.json",Pd={rewrites:[{source:"/(.*)",destination:"/index.html"}]},Yn={INDEX_FILE:"index.html",MAX_INDEX_BYTES:100*1024};Kn={MIN_SECONDS:1,MAX_SECONDS:365*24*60*60};jd="https://api.shipstatic.com",tn={TOKEN:"SHIP_TOKEN",API_URL:"SHIP_API_URL"},Nd="SHIP_VIA",Ud="https://my.shipstatic.com/api-key",Zb=4320*60,Ue={MIN_LENGTH:3,MAX_LENGTH:25,MAX_COUNT:10,SEPARATORS:"._-"},Rd=/^[a-z0-9]+(?:[._-][a-z0-9]+)*$/,Yt={COMMAND_MAX_LENGTH:200,OUTPUT_DIR_MAX_LENGTH:100,OUTPUT_DIR_PATTERN:/^[A-Za-z0-9._-]+(\/[A-Za-z0-9._-]+)*$/};Xn={MIN_LENGTH:6,MAX_LENGTH:128}});var De={};pe(De,{bgBlack:()=>mv,bgBlue:()=>vv,bgBlueBright:()=>Pv,bgCyan:()=>yv,bgCyanBright:()=>Cv,bgGray:()=>xv,bgGreen:()=>hv,bgGreenBright:()=>Dv,bgMagenta:()=>_v,bgMagentaBright:()=>Av,bgRed:()=>fv,bgRedBright:()=>Ev,bgWhite:()=>$v,bgWhiteBright:()=>jv,bgYellow:()=>gv,bgYellowBright:()=>Tv,black:()=>cv,blue:()=>nr,blueBright:()=>wv,bold:()=>Co,cyan:()=>lv,cyanBright:()=>Ov,dim:()=>Re,gray:()=>pv,green:()=>rn,greenBright:()=>Sv,hidden:()=>xe,inverse:()=>nn,italic:()=>ev,magenta:()=>uv,magentaBright:()=>Iv,overline:()=>av,red:()=>er,redBright:()=>bv,reset:()=>Qg,strikethrough:()=>sv,underline:()=>tv,underlineBlack:()=>Nv,underlineBlue:()=>Fv,underlineBlueBright:()=>Wv,underlineCurly:()=>rv,underlineCyan:()=>Mv,underlineCyanBright:()=>Kv,underlineDashed:()=>ov,underlineDotted:()=>iv,underlineDouble:()=>nv,underlineGray:()=>Bv,underlineGreen:()=>Rv,underlineGreenBright:()=>Hv,underlineMagenta:()=>Zv,underlineMagentaBright:()=>qv,underlineRed:()=>Uv,underlineRedBright:()=>Gv,underlineWhite:()=>Vv,underlineWhiteBright:()=>Xv,underlineYellow:()=>Lv,underlineYellowBright:()=>Jv,white:()=>dv,whiteBright:()=>zv,yellow:()=>tr,yellowBright:()=>kv});var Zd,Yg,T,Qg,Co,Re,ev,tv,nv,rv,iv,ov,av,nn,xe,sv,cv,er,rn,tr,nr,uv,lv,dv,pv,mv,fv,hv,gv,vv,_v,yv,$v,xv,bv,Sv,kv,wv,Iv,Ov,zv,Ev,Dv,Tv,Pv,Av,Cv,jv,Nv,Uv,Rv,Lv,Fv,Zv,Mv,Vv,Bv,Gv,Hv,Jv,Wv,qv,Kv,Xv,jo=Y(()=>{"use strict";Zd=re(require("tty"),1),Yg=Zd.default?.WriteStream?.prototype?.hasColors?.()??!1,T=(e,t)=>{if(!Yg)return n=>n;let r=`\x1B[${e}m`,o=`\x1B[${t}m`;return n=>{let i=n+"",a=i.indexOf(o);if(a===-1)return r+i+o;let s=r,c=0,l=(t===22?o:"")+r;for(;a!==-1;)s+=i.slice(c,a)+l,c=a+o.length,a=i.indexOf(o,c);return s+=i.slice(c)+o,s}},Qg=T(0,0),Co=T(1,22),Re=T(2,22),ev=T(3,23),tv=T(4,24),nv=T("4:2",24),rv=T("4:3",24),iv=T("4:4",24),ov=T("4:5",24),av=T(53,55),nn=T(7,27),xe=T(8,28),sv=T(9,29),cv=T(30,39),er=T(31,39),rn=T(32,39),tr=T(33,39),nr=T(34,39),uv=T(35,39),lv=T(36,39),dv=T(37,39),pv=T(90,39),mv=T(40,49),fv=T(41,49),hv=T(42,49),gv=T(43,49),vv=T(44,49),_v=T(45,49),yv=T(46,49),$v=T(47,49),xv=T(100,49),bv=T(91,39),Sv=T(92,39),kv=T(93,39),wv=T(94,39),Iv=T(95,39),Ov=T(96,39),zv=T(97,39),Ev=T(101,49),Dv=T(102,49),Tv=T(103,49),Pv=T(104,49),Av=T(105,49),Cv=T(106,49),jv=T(107,49),Nv=T("58;5;0",59),Uv=T("58;5;1",59),Rv=T("58;5;2",59),Lv=T("58;5;3",59),Fv=T("58;5;4",59),Zv=T("58;5;5",59),Mv=T("58;5;6",59),Vv=T("58;5;7",59),Bv=T("58;5;8",59),Gv=T("58;5;9",59),Hv=T("58;5;10",59),Jv=T("58;5;11",59),Wv=T("58;5;12",59),qv=T("58;5;13",59),Kv=T("58;5;14",59),Xv=T("58;5;15",59)});var on=Y(()=>{"use strict";jo();jo()});var Hd=W((Hb,Gd)=>{"use strict";Gd.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var Wd=W((Jb,Jd)=>{"use strict";var r_=Hd();Jd.exports=e=>typeof e=="string"?e.replace(r_(),""):e});var qd=W((Wb,or)=>{"use strict";var i_=(function(){"use strict";function e(a,s,c,u){var l;typeof s=="object"&&(c=s.depth,u=s.prototype,l=s.filter,s=s.circular);var f=[],p=[],_=typeof Buffer<"u";typeof s>"u"&&(s=!0),typeof c>"u"&&(c=1/0);function b(E,D){if(E===null)return null;if(D==0)return E;var x,$;if(typeof E!="object")return E;if(e.__isArray(E))x=[];else if(e.__isRegExp(E))x=new RegExp(E.source,i(E)),E.lastIndex&&(x.lastIndex=E.lastIndex);else if(e.__isDate(E))x=new Date(E.getTime());else{if(_&&Buffer.isBuffer(E))return Buffer.allocUnsafe?x=Buffer.allocUnsafe(E.length):x=new Buffer(E.length),E.copy(x),x;typeof u>"u"?($=Object.getPrototypeOf(E),x=Object.create($)):(x=Object.create(u),$=u)}if(s){var m=f.indexOf(E);if(m!=-1)return p[m];f.push(E),p.push(x)}for(var d in E){var h;$&&(h=Object.getOwnPropertyDescriptor($,d)),!(h&&h.set==null)&&(x[d]=b(E[d],D-1))}return x}return b(a,c)}e.clonePrototype=function(s){if(s===null)return null;var c=function(){};return c.prototype=s,new c};function t(a){return Object.prototype.toString.call(a)}e.__objToStr=t;function r(a){return typeof a=="object"&&t(a)==="[object Date]"}e.__isDate=r;function o(a){return typeof a=="object"&&t(a)==="[object Array]"}e.__isArray=o;function n(a){return typeof a=="object"&&t(a)==="[object RegExp]"}e.__isRegExp=n;function i(a){var s="";return a.global&&(s+="g"),a.ignoreCase&&(s+="i"),a.multiline&&(s+="m"),s}return e.__getRegExpFlags=i,e})();typeof or=="object"&&or.exports&&(or.exports=i_)});var Xd=W((qb,Kd)=>{"use strict";var o_=qd();Kd.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=o_(t[r]))}),e}});var Qd=W((Kb,Yd)=>{"use strict";Yd.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var rp=W((Xb,Lo)=>{"use strict";var a_=Xd(),sn=Qd(),tp={nul:0,control:0};Lo.exports=function(t){return np(t,tp)};Lo.exports.config=function(e){return e=a_(e||{},tp),function(r){return np(r,e)}};function np(e,t){if(typeof e!="string")return ep(e,t);for(var r=0,o=0;o<e.length;o++){var n=ep(e.charCodeAt(o),t);if(n<0)return-1;r+=n}return r}function ep(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:s_(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function s_(e){var t=0,r=sn.length-1,o;if(e<sn[0][0]||e>sn[r][1])return!1;for(;r>=t;)if(o=Math.floor((t+r)/2),e>sn[o][1])t=o+1;else if(e<sn[o][0])r=o-1;else return!0;return!1}});var Fo=W((Yb,ip)=>{"use strict";var c_=Wd(),u_=rp();ip.exports=function(e){return u_(c_(e))}});var op=W((Qb,Qe)=>{"use strict";var Te=Fo();function ar(e,t){return Array.apply(null,{length:t+1}).join(e).slice(0,t)}function l_(e,t,r){e=e??"",e=String(e);var o=t-Te(e);return o<=0?e:e+ar(r||" ",o)}function d_(e,t,r){e=e??"",e=String(e);var o=t-Te(e);if(o<=0)return e;var n=Math.floor(o/2),i=o-n;return ar(r||" ",n)+e+ar(r||" ",i)}function p_(e,t,r){e=e??"",e=String(e);var o=t-Te(e);return o<=0?e:ar(r||" ",o)+e}function m_(e,t){function r(o,n){return o.trim().split(" ").reduce(function(i,a){var s=i[i.length-1];return s&&Te(s.join(" "))+Te(a)<n?i[i.length-1].push(a):i.push([a]),i},[]).map(function(i){return i.join(" ")})}return e.split(`
28
+ `).map(function(o){return r(o,t)}).reduce(function(o,n){return o.concat(n)},[])}function f_(e,t,r){e=e.trim();for(var o=[],n=e.split(" "),i="",a=Te(r);i||n.length;){if(i){var s=i;i=""}else var s=n.shift();if(Te(s)>t){for(var c=0,u=0,l=t-a;c<s.length;){var f=Te(s.charAt(c));if(f+u>l)break;u+=f,++c}i=s.slice(c),s=s.slice(0,c),s+=r}o.push(s)}return o.join(" ")}function h_(e,t){if(e=e??"",e=String(e),t==1/0)return e;for(var r=0,o=0;r<e.length;){var n=Te(e.charAt(r));if(n+o>t)break;o+=n,++r}return e.slice(0,r)}Qe.exports.padRight=l_;Qe.exports.padCenter=d_;Qe.exports.padLeft=p_;Qe.exports.splitIntoLines=m_;Qe.exports.splitLongWords=f_;Qe.exports.truncateString=h_});var lp=W((e0,up)=>{"use strict";var Zo=Fo(),dt=op(),g_=dt.padRight,v_=dt.padCenter,__=dt.padLeft,ap=dt.splitIntoLines,y_=dt.splitLongWords,$_=dt.truncateString,cp=function(t){return t.toUpperCase()},x_=function(t,r,o){return t},b_=Object.freeze({maxWidth:1/0,minWidth:0,columnSplitter:" ",truncate:!1,truncateMarker:"\u2026",preserveNewLines:!1,paddingChr:" ",showHeaders:!0,headingTransform:cp,dataTransform:x_});up.exports=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.config||{};delete t.config;var o=t.maxLineWidth||1/0;o==="auto"&&(o=process.stdout.columns||1/0),delete t.maxLineWidth,t=sp({},b_,t),t.config=t.config||Object.create(null),t.spacing=t.spacing||`
29
+ `,t.preserveNewLines=!!t.preserveNewLines,t.showHeaders=!!t.showHeaders,t.columns=t.columns||t.include;var n=t.columns||[];e=I_(e,n),n.length||e.forEach(function(c){for(var u in c)n.indexOf(u)===-1&&n.push(u)});var i=n.reduce(function(c,u){var l=Object.create(t);return c[u]=sp(l,r[u]),c},Object.create(null));n.forEach(function(c){var u=i[c];u.name=c,u.maxWidth=Math.ceil(u.maxWidth),u.minWidth=Math.ceil(u.minWidth),u.truncate=!!u.truncate,u.align=u.align||"left"}),e=e.map(function(c){var u=Object.create(null);return n.forEach(function(l){u[l]=c[l]!=null?c[l]:"",u[l]=""+u[l],i[l].preserveNewLines?u[l]=u[l].replace(/[^\S\n]/gmi," "):u[l]=u[l].replace(/\s/gmi," ")}),u}),n.forEach(function(c){var u=i[c];e=e.map(function(l,f){var p=Object.create(u);l[c]=u.dataTransform(l[c],p,f);var _=Object.keys(p);if(_.indexOf("name")!==-1){if(u.headingTransform!==cp)return;u.headingTransform=function(b){return b}}return _.forEach(function(b){return u[b]=p[b]}),l})});var a={};t.showHeaders&&(n.forEach(function(c){var u=i[c];if(!u.showHeaders){a[c]="";return}a[c]=u.headingTransform(u.name)}),e.unshift(a)),n.forEach(function(c){var u=i[c];u.width=e.map(function(l){return l[c]}).reduce(function(l,f){return l>=u.maxWidth?l:Math.max(l,Math.min(u.maxWidth,Math.max(u.minWidth,Zo(f))))},0)}),n.forEach(function(c){var u=i[c];e=e.map(function(l){return l[c]=y_(l[c],u.width,u.truncateMarker),l})}),n.forEach(function(c){var u=i[c];e=e.map(function(l,f){var p=l[c];if(l[c]=ap(p,u.width),u.truncate&&l[c].length>1){l[c]=ap(p,u.width-Zo(u.truncateMarker));var _=l[c][0];w_(_,u.truncateMarker)||(l[c][0]+=u.truncateMarker),l[c]=l[c].slice(0,1)}return l})}),n.forEach(function(c){var u=i[c];u.width=e.map(function(l){return l[c].reduce(function(f,p){return f>=u.maxWidth?f:Math.max(f,Math.min(u.maxWidth,Math.max(u.minWidth,Zo(p))))},0)}).reduce(function(l,f){return l>=u.maxWidth?l:Math.max(l,Math.min(u.maxWidth,Math.max(u.minWidth,f)))},0)});var s=S_(e,i,n,t.paddingChr);return s.reduce(function(c,u){return c.concat(u.reduce(function(l,f){return l.concat(f.join(t.columnSplitter))},[]))},[]).map(function(c){return $_(c,o)}).join(t.spacing)};function S_(e,t,r,o){return e.map(function(n){var i=[],a=0;r.forEach(function(u){a=Math.max(a,n[u].length)});for(var s=function(l){i[l]=i[l]||[],r.forEach(function(f){var p=t[f],_=n[f][l]||"";p.align==="right"?i[l].push(__(_,p.width,o)):p.align==="center"||p.align==="centre"?i[l].push(v_(_,p.width,o)):i[l].push(g_(_,p.width,o))})},c=0;c<a;c++)s(c);return i})}function sp(){return Object.assign?Object.assign.apply(Object,arguments):k_.apply(void 0,arguments)}function k_(e,t){"use strict";if(e==null)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),o=!1,n,i=1;i<arguments.length;i++){var a=arguments[i];if(a!=null){for(var s=Object.keys(Object(a)),c=0,u=s.length;c<u;c++){var l=s[c];try{var f=Object.getOwnPropertyDescriptor(a,l);f!==void 0&&f.enumerable&&(r[l]=a[l])}catch(p){o||(o=!0,n=p)}}if(o)throw n}}return r}function w_(e,t,r){r=r||e.length,r=r-t.length;var o=e.lastIndexOf(t);return o!==-1&&o===r}function I_(e,t){if(Array.isArray(e))return e;var r=[];for(var o in e){var n={};n[t[0]||"key"]=o,n[t[1]||"value"]=e[o],r.push(n)}return r}});function kx(){return typeof process<"u"&&process.versions&&process.versions.node?"node":typeof window<"u"||typeof self<"u"?"browser":"unknown"}function Wt(){return Sh||kx()}var Sh,Hi=Y(()=>{"use strict";Sh=null});var zh=W((Ih,Oh)=>{"use strict";(function(e){if(typeof Ih=="object")Oh.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t;try{t=window}catch{t=self}t.SparkMD5=e()}})(function(e){"use strict";var t=function(x,$){return x+$&4294967295},r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function o(x,$,m,d,h,g){return $=t(t($,x),t(d,g)),t($<<h|$>>>32-h,m)}function n(x,$){var m=x[0],d=x[1],h=x[2],g=x[3];m+=(d&h|~d&g)+$[0]-680876936|0,m=(m<<7|m>>>25)+d|0,g+=(m&d|~m&h)+$[1]-389564586|0,g=(g<<12|g>>>20)+m|0,h+=(g&m|~g&d)+$[2]+606105819|0,h=(h<<17|h>>>15)+g|0,d+=(h&g|~h&m)+$[3]-1044525330|0,d=(d<<22|d>>>10)+h|0,m+=(d&h|~d&g)+$[4]-176418897|0,m=(m<<7|m>>>25)+d|0,g+=(m&d|~m&h)+$[5]+1200080426|0,g=(g<<12|g>>>20)+m|0,h+=(g&m|~g&d)+$[6]-1473231341|0,h=(h<<17|h>>>15)+g|0,d+=(h&g|~h&m)+$[7]-45705983|0,d=(d<<22|d>>>10)+h|0,m+=(d&h|~d&g)+$[8]+1770035416|0,m=(m<<7|m>>>25)+d|0,g+=(m&d|~m&h)+$[9]-1958414417|0,g=(g<<12|g>>>20)+m|0,h+=(g&m|~g&d)+$[10]-42063|0,h=(h<<17|h>>>15)+g|0,d+=(h&g|~h&m)+$[11]-1990404162|0,d=(d<<22|d>>>10)+h|0,m+=(d&h|~d&g)+$[12]+1804603682|0,m=(m<<7|m>>>25)+d|0,g+=(m&d|~m&h)+$[13]-40341101|0,g=(g<<12|g>>>20)+m|0,h+=(g&m|~g&d)+$[14]-1502002290|0,h=(h<<17|h>>>15)+g|0,d+=(h&g|~h&m)+$[15]+1236535329|0,d=(d<<22|d>>>10)+h|0,m+=(d&g|h&~g)+$[1]-165796510|0,m=(m<<5|m>>>27)+d|0,g+=(m&h|d&~h)+$[6]-1069501632|0,g=(g<<9|g>>>23)+m|0,h+=(g&d|m&~d)+$[11]+643717713|0,h=(h<<14|h>>>18)+g|0,d+=(h&m|g&~m)+$[0]-373897302|0,d=(d<<20|d>>>12)+h|0,m+=(d&g|h&~g)+$[5]-701558691|0,m=(m<<5|m>>>27)+d|0,g+=(m&h|d&~h)+$[10]+38016083|0,g=(g<<9|g>>>23)+m|0,h+=(g&d|m&~d)+$[15]-660478335|0,h=(h<<14|h>>>18)+g|0,d+=(h&m|g&~m)+$[4]-405537848|0,d=(d<<20|d>>>12)+h|0,m+=(d&g|h&~g)+$[9]+568446438|0,m=(m<<5|m>>>27)+d|0,g+=(m&h|d&~h)+$[14]-1019803690|0,g=(g<<9|g>>>23)+m|0,h+=(g&d|m&~d)+$[3]-187363961|0,h=(h<<14|h>>>18)+g|0,d+=(h&m|g&~m)+$[8]+1163531501|0,d=(d<<20|d>>>12)+h|0,m+=(d&g|h&~g)+$[13]-1444681467|0,m=(m<<5|m>>>27)+d|0,g+=(m&h|d&~h)+$[2]-51403784|0,g=(g<<9|g>>>23)+m|0,h+=(g&d|m&~d)+$[7]+1735328473|0,h=(h<<14|h>>>18)+g|0,d+=(h&m|g&~m)+$[12]-1926607734|0,d=(d<<20|d>>>12)+h|0,m+=(d^h^g)+$[5]-378558|0,m=(m<<4|m>>>28)+d|0,g+=(m^d^h)+$[8]-2022574463|0,g=(g<<11|g>>>21)+m|0,h+=(g^m^d)+$[11]+1839030562|0,h=(h<<16|h>>>16)+g|0,d+=(h^g^m)+$[14]-35309556|0,d=(d<<23|d>>>9)+h|0,m+=(d^h^g)+$[1]-1530992060|0,m=(m<<4|m>>>28)+d|0,g+=(m^d^h)+$[4]+1272893353|0,g=(g<<11|g>>>21)+m|0,h+=(g^m^d)+$[7]-155497632|0,h=(h<<16|h>>>16)+g|0,d+=(h^g^m)+$[10]-1094730640|0,d=(d<<23|d>>>9)+h|0,m+=(d^h^g)+$[13]+681279174|0,m=(m<<4|m>>>28)+d|0,g+=(m^d^h)+$[0]-358537222|0,g=(g<<11|g>>>21)+m|0,h+=(g^m^d)+$[3]-722521979|0,h=(h<<16|h>>>16)+g|0,d+=(h^g^m)+$[6]+76029189|0,d=(d<<23|d>>>9)+h|0,m+=(d^h^g)+$[9]-640364487|0,m=(m<<4|m>>>28)+d|0,g+=(m^d^h)+$[12]-421815835|0,g=(g<<11|g>>>21)+m|0,h+=(g^m^d)+$[15]+530742520|0,h=(h<<16|h>>>16)+g|0,d+=(h^g^m)+$[2]-995338651|0,d=(d<<23|d>>>9)+h|0,m+=(h^(d|~g))+$[0]-198630844|0,m=(m<<6|m>>>26)+d|0,g+=(d^(m|~h))+$[7]+1126891415|0,g=(g<<10|g>>>22)+m|0,h+=(m^(g|~d))+$[14]-1416354905|0,h=(h<<15|h>>>17)+g|0,d+=(g^(h|~m))+$[5]-57434055|0,d=(d<<21|d>>>11)+h|0,m+=(h^(d|~g))+$[12]+1700485571|0,m=(m<<6|m>>>26)+d|0,g+=(d^(m|~h))+$[3]-1894986606|0,g=(g<<10|g>>>22)+m|0,h+=(m^(g|~d))+$[10]-1051523|0,h=(h<<15|h>>>17)+g|0,d+=(g^(h|~m))+$[1]-2054922799|0,d=(d<<21|d>>>11)+h|0,m+=(h^(d|~g))+$[8]+1873313359|0,m=(m<<6|m>>>26)+d|0,g+=(d^(m|~h))+$[15]-30611744|0,g=(g<<10|g>>>22)+m|0,h+=(m^(g|~d))+$[6]-1560198380|0,h=(h<<15|h>>>17)+g|0,d+=(g^(h|~m))+$[13]+1309151649|0,d=(d<<21|d>>>11)+h|0,m+=(h^(d|~g))+$[4]-145523070|0,m=(m<<6|m>>>26)+d|0,g+=(d^(m|~h))+$[11]-1120210379|0,g=(g<<10|g>>>22)+m|0,h+=(m^(g|~d))+$[2]+718787259|0,h=(h<<15|h>>>17)+g|0,d+=(g^(h|~m))+$[9]-343485551|0,d=(d<<21|d>>>11)+h|0,x[0]=m+x[0]|0,x[1]=d+x[1]|0,x[2]=h+x[2]|0,x[3]=g+x[3]|0}function i(x){var $=[],m;for(m=0;m<64;m+=4)$[m>>2]=x.charCodeAt(m)+(x.charCodeAt(m+1)<<8)+(x.charCodeAt(m+2)<<16)+(x.charCodeAt(m+3)<<24);return $}function a(x){var $=[],m;for(m=0;m<64;m+=4)$[m>>2]=x[m]+(x[m+1]<<8)+(x[m+2]<<16)+(x[m+3]<<24);return $}function s(x){var $=x.length,m=[1732584193,-271733879,-1732584194,271733878],d,h,g,H,ve,je;for(d=64;d<=$;d+=64)n(m,i(x.substring(d-64,d)));for(x=x.substring(d-64),h=x.length,g=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],d=0;d<h;d+=1)g[d>>2]|=x.charCodeAt(d)<<(d%4<<3);if(g[d>>2]|=128<<(d%4<<3),d>55)for(n(m,g),d=0;d<16;d+=1)g[d]=0;return H=$*8,H=H.toString(16).match(/(.*?)(.{0,8})$/),ve=parseInt(H[2],16),je=parseInt(H[1],16)||0,g[14]=ve,g[15]=je,n(m,g),m}function c(x){var $=x.length,m=[1732584193,-271733879,-1732584194,271733878],d,h,g,H,ve,je;for(d=64;d<=$;d+=64)n(m,a(x.subarray(d-64,d)));for(x=d-64<$?x.subarray(d-64):new Uint8Array(0),h=x.length,g=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],d=0;d<h;d+=1)g[d>>2]|=x[d]<<(d%4<<3);if(g[d>>2]|=128<<(d%4<<3),d>55)for(n(m,g),d=0;d<16;d+=1)g[d]=0;return H=$*8,H=H.toString(16).match(/(.*?)(.{0,8})$/),ve=parseInt(H[2],16),je=parseInt(H[1],16)||0,g[14]=ve,g[15]=je,n(m,g),m}function u(x){var $="",m;for(m=0;m<4;m+=1)$+=r[x>>m*8+4&15]+r[x>>m*8&15];return $}function l(x){var $;for($=0;$<x.length;$+=1)x[$]=u(x[$]);return x.join("")}l(s("hello"))!=="5d41402abc4b2a76b9719d911017c592"&&(t=function(x,$){var m=(x&65535)+($&65535),d=(x>>16)+($>>16)+(m>>16);return d<<16|m&65535}),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&(function(){function x($,m){return $=$|0||0,$<0?Math.max($+m,0):Math.min($,m)}ArrayBuffer.prototype.slice=function($,m){var d=this.byteLength,h=x($,d),g=d,H,ve,je,ld;return m!==e&&(g=x(m,d)),h>g?new ArrayBuffer(0):(H=g-h,ve=new ArrayBuffer(H),je=new Uint8Array(ve),ld=new Uint8Array(this,h,H),je.set(ld),ve)}})();function f(x){return/[\u0080-\uFFFF]/.test(x)&&(x=unescape(encodeURIComponent(x))),x}function p(x,$){var m=x.length,d=new ArrayBuffer(m),h=new Uint8Array(d),g;for(g=0;g<m;g+=1)h[g]=x.charCodeAt(g);return $?h:d}function _(x){return String.fromCharCode.apply(null,new Uint8Array(x))}function b(x,$,m){var d=new Uint8Array(x.byteLength+$.byteLength);return d.set(new Uint8Array(x)),d.set(new Uint8Array($),x.byteLength),m?d:d.buffer}function E(x){var $=[],m=x.length,d;for(d=0;d<m-1;d+=2)$.push(parseInt(x.substr(d,2),16));return String.fromCharCode.apply(String,$)}function D(){this.reset()}return D.prototype.append=function(x){return this.appendBinary(f(x)),this},D.prototype.appendBinary=function(x){this._buff+=x,this._length+=x.length;var $=this._buff.length,m;for(m=64;m<=$;m+=64)n(this._hash,i(this._buff.substring(m-64,m)));return this._buff=this._buff.substring(m-64),this},D.prototype.end=function(x){var $=this._buff,m=$.length,d,h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],g;for(d=0;d<m;d+=1)h[d>>2]|=$.charCodeAt(d)<<(d%4<<3);return this._finish(h,m),g=l(this._hash),x&&(g=E(g)),this.reset(),g},D.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},D.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},D.prototype.setState=function(x){return this._buff=x.buff,this._length=x.length,this._hash=x.hash,this},D.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},D.prototype._finish=function(x,$){var m=$,d,h,g;if(x[m>>2]|=128<<(m%4<<3),m>55)for(n(this._hash,x),m=0;m<16;m+=1)x[m]=0;d=this._length*8,d=d.toString(16).match(/(.*?)(.{0,8})$/),h=parseInt(d[2],16),g=parseInt(d[1],16)||0,x[14]=h,x[15]=g,n(this._hash,x)},D.hash=function(x,$){return D.hashBinary(f(x),$)},D.hashBinary=function(x,$){var m=s(x),d=l(m);return $?E(d):d},D.ArrayBuffer=function(){this.reset()},D.ArrayBuffer.prototype.append=function(x){var $=b(this._buff.buffer,x,!0),m=$.length,d;for(this._length+=x.byteLength,d=64;d<=m;d+=64)n(this._hash,a($.subarray(d-64,d)));return this._buff=d-64<m?new Uint8Array($.buffer.slice(d-64)):new Uint8Array(0),this},D.ArrayBuffer.prototype.end=function(x){var $=this._buff,m=$.length,d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],h,g;for(h=0;h<m;h+=1)d[h>>2]|=$[h]<<(h%4<<3);return this._finish(d,m),g=l(this._hash),x&&(g=E(g)),this.reset(),g},D.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},D.ArrayBuffer.prototype.getState=function(){var x=D.prototype.getState.call(this);return x.buff=_(x.buff),x},D.ArrayBuffer.prototype.setState=function(x){return x.buff=p(x.buff,!0),D.prototype.setState.call(this,x)},D.ArrayBuffer.prototype.destroy=D.prototype.destroy,D.ArrayBuffer.prototype._finish=D.prototype._finish,D.ArrayBuffer.hash=function(x,$){var m=c(new Uint8Array(x)),d=l(m);return $?E(d):d},D})});async function jx(e){let t=(await Promise.resolve().then(()=>re(zh(),1))).default,r=new t.ArrayBuffer,o=2097152;for(let n=0;n<e.size;n+=o){let i=Math.min(n+o,e.size);r.append(await e.slice(n,i).arrayBuffer())}return{md5:r.end()}}async function Nx(e){let{createHash:t}=await import("crypto"),r=t("md5");return r.update(e),{md5:r.digest("hex")}}async function Ux(e){let{createHash:t}=await import("crypto"),{createReadStream:r}=await import("fs");return new Promise((o,n)=>{let i=t("md5"),a=r(e);a.on("error",s=>n(k.file(`Failed to read file for MD5: ${s.message}`,{filePath:e}))),a.on("data",s=>i.update(s)),a.on("end",()=>o({md5:i.digest("hex")}))})}async function qi(e){if(e instanceof Blob)return jx(e);if(typeof Buffer<"u"&&Buffer.isBuffer(e))return Nx(e);if(typeof e=="string")return Ux(e);throw k.business("Invalid input for MD5 calculation")}var Kl=Y(()=>{"use strict";M()});function jh(e){if(!e||e.length===0)return"";let t=e.filter(i=>i&&typeof i=="string").map(i=>i.replace(/\\/g,"/"));if(t.length===0)return"";if(t.length===1)return t[0];let r=t.map(i=>i.split("/").filter(Boolean)),o=[],n=Math.min(...r.map(i=>i.length));for(let i=0;i<n;i++){let a=r[0][i];if(r.every(s=>s[i]===a))o.push(a);else break}return o.join("/")}function Yi(e){return e.replace(/\\/g,"/").replace(/\/+/g,"/").replace(/^\/+/,"")}var Yl=Y(()=>{"use strict"});function Nh(e,t={}){if(t.flatten===!1)return e.map(o=>({path:Yi(o),name:Ql(o)}));let r=Zx(e);return e.map(o=>{let n=Yi(o);if(r){let i=r.endsWith("/")?r:`${r}/`;n.startsWith(i)&&(n=n.substring(i.length))}return n||(n=Ql(o)),{path:n,name:Ql(o)}})}function Zx(e){if(!e.length)return"";let r=e.map(i=>Yi(i)).map(i=>i.split("/")),o=[],n=Math.min(...r.map(i=>i.length));for(let i=0;i<n-1;i++){let a=r[0][i];if(r.every(s=>s[i]===a))o.push(a);else break}return o.join("/")}function Ql(e){return e.split(/[/\\]/).pop()||e}var Uh=Y(()=>{"use strict";Yl()});function Rh(e,t){return Mx.find(r=>r.broken(e,t))}var Mx,Lh=Y(()=>{"use strict";M();Fh();Mx=[{name:"name",broken:({path:e})=>!ed(e).valid,sentence:({path:e})=>ed(e).reason??"Invalid file name"},{name:"extension",broken:({path:e},t)=>Ed(e,t.blockedExtensions??[]),sentence:({path:e})=>`File extension not allowed: "${e}"`},{name:"fileSize",broken:({size:e},t)=>e>t.maxFileSize,sentence:({path:e},t)=>`File "${e}" too large. Maximum ${Qi(t.maxFileSize)} allowed`},{name:"totalSize",broken:({totalSize:e},t)=>e>t.maxTotalSize,sentence:({totalSize:e},t)=>`Total upload size too large. ${Qi(e)} exceeds maximum of ${Qi(t.maxTotalSize)}`}]});function Qi(e,t=1){if(e===0)return"0 Bytes";let r=1024,o=["Bytes","KB","MB","GB"],n=Math.floor(Math.log(e)/Math.log(r));return`${parseFloat((e/r**n).toFixed(t))} ${o[n]}`}function ed(e){if(Dd(e))return{valid:!1,reason:"File name contains unsafe characters"};if(e.startsWith(" ")||e.endsWith(" "))return{valid:!1,reason:"File name cannot start/end with spaces"};if(e.endsWith("."))return{valid:!1,reason:"File name cannot end with dots"};let t=/^(CON|PRN|AUX|NUL|COM[1-9]|LPT[1-9])(\.|$)/i,r=e.split("/").pop()||e;return t.test(r)?{valid:!1,reason:"File name uses a reserved system name"}:e.includes("..")?{valid:!1,reason:"File name contains path traversal pattern"}:{valid:!0}}var Fh=Y(()=>{"use strict";M()});function Zh(e){return Bx.test(e)}var Vx,Bx,Mh=Y(()=>{"use strict";Vx=["^npm-debug\\.log$","^\\..*\\.swp$","^\\.DS_Store$","^\\.AppleDouble$","^\\.LSOverride$","^Icon\\r$","^\\._.*","^\\.Spotlight-V100(?:$|\\/)","\\.Trashes","^__MACOSX$","~$","^Thumbs\\.db$","^ehthumbs\\.db$","^[Dd]esktop\\.ini$","@eaDir$"],Bx=new RegExp(Vx.join("|"))});function Vh(e,t){if(!e||e.length===0)return[];if(!t?.allowUnbuilt&&e.find(o=>o&&Do(o)))throw k.business("Unbuilt project detected \u2014 deploy your build output (dist/, build/, out/), not the project folder");return e.filter(r=>{if(!r)return!1;let o=r.replace(/\\/g,"/").split("/").filter(Boolean);if(o.length===0)return!0;let n=o[o.length-1];if(Zh(n))return!1;for(let a of o)if(a!==".well-known"&&(a.startsWith(".")||a.length>255))return!1;let i=o.slice(0,-1);for(let a of i)if(Gx.some(s=>a.toLowerCase()===s.toLowerCase()))return!1;return!0})}var Gx,Bh=Y(()=>{"use strict";M();Mh();Gx=["__MACOSX",".Trashes",".fseventsd",".Spotlight-V100"]});function Gh(e,t){if(e.includes("\0")||e.includes("/../")||e.startsWith("../")||e.endsWith("/.."))throw k.business(`Security error: Unsafe file path "${e}" for file: ${t}`)}function Hh(e,t){let r=Rh(e,t);if(r)throw k.business(r.sentence(e,t))}var Jh=Y(()=>{"use strict";M();Lh()});async function Wh(e,t={},r){let o=!!(t.build||t.prerender),n=Nh(e.map(l=>l.path),{flatten:t.pathDetect!==!1}).map(l=>l.path),i=new Set(Vh(n,{allowUnbuilt:o})),a=e.map((l,f)=>({source:l,deployPath:n[f]})).filter(({deployPath:l})=>i.has(l));if(a.length===0)return[];let s=o?null:Hx(r),c=[],u=0;for(let{source:l,deployPath:f}of a){if(s&&Gh(f,l.origin),l.size===0)continue;s&&(u+=l.size,Hh({path:f,size:l.size,totalSize:u},s));let p=await l.read(),{md5:_}=await qi(p);c.push({path:f,content:p,size:l.size,md5:_})}if(s&&c.length>s.maxFilesCount)throw k.business(`Too many files to deploy. Maximum allowed is ${s.maxFilesCount} files.`);return c}function Hx(e){if(!e)throw k.config("Platform limits not provided. Deploy-mode validation requires the limits argument \u2014 pass `ship.getLimits()` result.");return e}var qh=Y(()=>{"use strict";M();Uh();Bh();Kl();Jh()});var Xh={};pe(Xh,{processFilesForNode:()=>qx});function Kh(e,t=new Set){let r=[],o=ge.realpathSync(e);if(t.has(o))return r;t.add(o);for(let n of ge.readdirSync(e)){let i=de.join(e,n),a=ge.statSync(i);a.isDirectory()?r.push(...Kh(i,t)):a.isFile()&&r.push({absPath:i,size:a.size})}return r}async function Jx(e){try{return ge.readFileSync(e)}catch(t){let r=t instanceof Error?t.message:String(t);throw k.file(`Failed to read file "${e}": ${r}`,{filePath:e})}}function Wx(e){for(let t of e){let r=de.resolve(t);try{if(ge.statSync(r).isDirectory()){let o=ge.readdirSync(r).find(n=>Eo.has(n));if(o)throw k.business(`"${o}" detected \u2014 deploy your build output (dist/, build/, out/), not the project folder`)}}catch(o){if(ce(o))throw o}}}async function qx(e,t={},r){if(Wt()!=="node")throw k.business("processFilesForNode can only be called in Node.js environment.");Wx(e);let o=e.flatMap(s=>{let c=de.resolve(s);try{let u=ge.statSync(c);return u.isDirectory()?Kh(c):[{absPath:c,size:u.size}]}catch{throw k.file(`Path does not exist: ${s}`,{filePath:s})}}),n=new Map(o.map(s=>[s.absPath,s.size])),i=jh(e.map(s=>de.resolve(s)).map(s=>{try{return ge.statSync(s).isDirectory()?s:de.dirname(s)}catch{return de.dirname(s)}})),a=[...n].map(([s,c])=>({path:Kx(s,i),origin:s,size:c,read:()=>Jx(s)}));return Wh(a,t,r)}function Kx(e,t){if(t&&t.length>0){let r=de.relative(t,e);if(r&&typeof r=="string"&&!r.startsWith(".."))return r.replace(/\\/g,"/")}return de.basename(e)}var ge,de,Yh=Y(()=>{"use strict";ge=re(require("fs"),1),de=re(require("path"),1);M();qh();Hi();Yl()});var pg={};pe(pg,{default:()=>dg});function dg(e){return new sd(e)}var J,lg,Bn,od,lb,db,pb,mb,ug,fb,hb,gb,ad,sd,mg=Y(()=>{"use strict";J=re(require("process"),1),lg=require("util");on();Bn=J.default.platform!=="win32"||!!J.default.env.WT_SESSION||J.default.env.TERM_PROGRAM==="vscode",od=e=>!!(e.isTTY&&J.default.env.TERM!=="dumb"&&!("CI"in J.default.env)),lb=De.blue(Bn?"\u2139":"i"),db=De.green(Bn?"\u2714":"\u221A"),pb=De.yellow(Bn?"\u26A0":"\u203C"),mb=De.red(Bn?"\u2716":"\xD7"),ug={frames:Bn?["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]:["-","\\","|","/"],interval:80},fb="\x1B[?2026h",hb="\x1B[?2026l",gb=/][\s\S]*?(?:|\\)/g,ad=new Set,sd=class{#m;#f;#u=-1;#l;#h;#n;#e;#d;#o=0;#a;#t;#_=0;#g=!1;#s=new Map;#v=!1;#r=!1;constructor(t={}){let r=t.spinner??ug;if(!Array.isArray(r.frames)||r.frames.length===0||r.frames.some(o=>typeof o!="string"))throw new Error("The `spinner.frames` option must be a non-empty array of strings");if(r.interval!==void 0&&!(Number.isInteger(r.interval)&&r.interval>0))throw new Error("The `spinner.interval` option must be a positive integer");this.#m=r.frames,this.#f=r.interval??ug.interval,this.#h=t.handleSignals??!0,this.#n=t.text??"",this.#e=t.stream??J.default.stderr,this.#d=t.color??"cyan",this.#t=od(this.#e),this.#a=this.#T.bind(this)}#y(t){this.#v=!0;try{return t()}finally{this.#v=!1}}#$(t,r){if(t==null)return"";if(typeof t=="string")return t;if(Buffer.isBuffer(t)||ArrayBuffer.isView(t)){let o=typeof r=="string"&&r!==""&&r!=="buffer"?r:"utf8";return Buffer.from(t).toString(o)}return String(t)}#x(t){if(!this.#t)return t();try{return this.#i(fb),t()}finally{this.#i(hb)}}#b(t){if(!t||this.#s.has(t)||typeof t.write!="function"||ad.has(t))return;let r=t.write,o=(...n)=>this.#w(t,r,n);this.#s.set(t,{originalWrite:r,hookedWrite:o}),ad.add(t),t.write=o}#S(){if(!this.#t||this.#s.size>0)return;let t=new Set([this.#e]);(this.#e===J.default.stdout||this.#e===J.default.stderr)&&(od(J.default.stdout)&&t.add(J.default.stdout),od(J.default.stderr)&&t.add(J.default.stderr));for(let r of t)this.#b(r)}#k(){for(let[t,r]of this.#s)t.write===r.hookedWrite&&(t.write=r.originalWrite),ad.delete(t);this.#s.clear()}#w(t,r,o){let[n,i,a]=o,s=i,c=a;if(typeof s=="function"&&(c=s,s=void 0),this.#v||!this.isSpinning)return r.call(t,n,s,c);this.#o>0&&this.clear();let u=this.#$(n,s),l=u.at(-1)===`
30
30
  `,f=r.call(t,n,s,c);return l?this.#r=!1:u!==""&&(this.#r=!0),this.isSpinning&&!this.#r&&this.#c(),f}start(t){return t&&(this.#n=t),this.isSpinning?this:(this.#g=!0,this.#O(),this.#S(),this.#c(),this.#E(),this.#t&&(this.#l=setInterval(()=>{this.#c()},this.#f)),this)}stop(t){if(!this.isSpinning)return this;let r=this.#r;if(this.#g=!1,this.#l&&(clearInterval(this.#l),this.#l=void 0),this.#r=!1,this.#k(),this.#z(),this.clear(),this.#D(),t){let o=r?`
31
31
  `:"";this.#e.write(`${o}${t}
32
- `)}return this}#p(t,r){return this.stop(`${t} ${r??this.#n}`)}success(t){return this.#p(cb,t)}error(t){return this.#p(lb,t)}warning(t){return this.#p(ub,t)}info(t){return this.#p(sb,t)}get isSpinning(){return this.#g}get text(){return this.#n}set text(t){this.#n=t??"",this.#c()}get color(){return this.#d}set color(t){this.#d=t,this.#c()}clear(){return this.#t?this.#o===0?this:(this.#y(()=>{this.#e.cursorTo(0);for(let t=0;t<this.#o;t++)t>0&&this.#e.moveCursor(0,-1),this.#e.clearLine(1)}),this.#o=0,this):this}#c(){if(this.#r)return;let t=this.#t,r=Date.now();(this.#u===-1||r-this.#_>=this.#f)&&(this.#u=++this.#u%this.#m.length,this.#_=r);let o=De[this.#d]??De.cyan,n=this.#m[this.#u],i=`${o(n)} ${this.#n}`;this.#t||(i+=`
33
- `),t?this.#x(()=>{this.clear(),this.#i(i)}):this.#i(i),this.#t&&(this.#o=this.#I(i))}#i(t){this.#y(()=>{this.#e.write(t)})}#I(t){let r=this.#e.columns||80,o=(0,cg.stripVTControlCharacters)(t.replaceAll(mb,"")).split(`
34
- `),n=0;for(let i of o)n+=Math.max(1,Math.ceil(i.length/r));return n}#O(){this.#t&&this.#i("\x1B[?25l")}#z(){this.#t&&this.#i("\x1B[?25h")}#E(){this.#h&&(J.default.once("SIGINT",this.#a),J.default.once("SIGTERM",this.#a))}#D(){this.#h&&(J.default.off("SIGINT",this.#a),J.default.off("SIGTERM",this.#a))}#T(t){this.isSpinning&&this.stop();let r=t==="SIGINT"?130:t==="SIGTERM"?143:1;J.default.exit(r)}}});var bd=re(xd(),1),{program:Eb,createCommand:Db,createArgument:Tb,createOption:Pb,CommanderError:qn,InvalidArgumentError:wo,InvalidOptionArgumentError:Ab,Command:Sd,Argument:Cb,Option:jb,Help:kd}=bd.default;var ut=require("fs"),cd=re(require("path"),1);M();on();var B=re(require("fs"),1),Bo=re(require("os"),1),Ze=re(require("path"),1);M();var fe=e=>e.commands.filter(t=>t.name()!=="help"),an=e=>fe(e).filter(t=>fe(t).length>0),Kv=e=>e.registeredArguments.some(t=>/^(path|file|dir)/i.test(t.name())),Xv=e=>e.options.filter(t=>/<(file|path|dir)\w*>/i.test(t.flags)).map(t=>t.long??""),Zd=e=>e.options.flatMap(t=>[t.long,t.short].filter(Boolean).map(r=>({flag:r,description:t.description}))),No=e=>an(e).flatMap(t=>fe(t).filter(r=>r.options.length>0).map(r=>({path:`${t.name()} ${r.name()}`,cmd:r}))),Md=e=>e.options.flatMap(t=>[t.long,t.short].filter(Boolean).map(r=>({flag:r,description:t.description}))),Uo=e=>[...an(e).flatMap(t=>fe(t).filter(Kv).map(r=>r.name())),...Xv(e)],Ro=e=>`${e} ship shell completion \u2014 GENERATED from the command tree.
32
+ `)}return this}#p(t,r){return this.stop(`${t} ${r??this.#n}`)}success(t){return this.#p(db,t)}error(t){return this.#p(mb,t)}warning(t){return this.#p(pb,t)}info(t){return this.#p(lb,t)}get isSpinning(){return this.#g}get text(){return this.#n}set text(t){this.#n=t??"",this.#c()}get color(){return this.#d}set color(t){this.#d=t,this.#c()}clear(){return this.#t?this.#o===0?this:(this.#y(()=>{this.#e.cursorTo(0);for(let t=0;t<this.#o;t++)t>0&&this.#e.moveCursor(0,-1),this.#e.clearLine(1)}),this.#o=0,this):this}#c(){if(this.#r)return;let t=this.#t,r=Date.now();(this.#u===-1||r-this.#_>=this.#f)&&(this.#u=++this.#u%this.#m.length,this.#_=r);let o=De[this.#d]??De.cyan,n=this.#m[this.#u],i=`${o(n)} ${this.#n}`;this.#t||(i+=`
33
+ `),t?this.#x(()=>{this.clear(),this.#i(i)}):this.#i(i),this.#t&&(this.#o=this.#I(i))}#i(t){this.#y(()=>{this.#e.write(t)})}#I(t){let r=this.#e.columns||80,o=(0,lg.stripVTControlCharacters)(t.replaceAll(gb,"")).split(`
34
+ `),n=0;for(let i of o)n+=Math.max(1,Math.ceil(i.length/r));return n}#O(){this.#t&&this.#i("\x1B[?25l")}#z(){this.#t&&this.#i("\x1B[?25h")}#E(){this.#h&&(J.default.once("SIGINT",this.#a),J.default.once("SIGTERM",this.#a))}#D(){this.#h&&(J.default.off("SIGINT",this.#a),J.default.off("SIGTERM",this.#a))}#T(t){this.isSpinning&&this.stop();let r=t==="SIGINT"?130:t==="SIGTERM"?143:1;J.default.exit(r)}}});var Sd=re(bd(),1),{program:Pb,createCommand:Ab,createArgument:Cb,createOption:jb,CommanderError:qn,InvalidArgumentError:wo,InvalidOptionArgumentError:Nb,Command:kd,Argument:Ub,Option:Rb,Help:wd}=Sd.default;var ut=require("fs"),ud=re(require("path"),1);M();on();var B=re(require("fs"),1),Bo=re(require("os"),1),Ze=re(require("path"),1);M();var fe=e=>e.commands.filter(t=>t.name()!=="help"),an=e=>fe(e).filter(t=>fe(t).length>0),Yv=e=>e.registeredArguments.some(t=>/^(path|file|dir)/i.test(t.name())),Qv=e=>e.options.filter(t=>/<(file|path|dir)\w*>/i.test(t.flags)).map(t=>t.long??""),Md=e=>e.options.flatMap(t=>[t.long,t.short].filter(Boolean).map(r=>({flag:r,description:t.description}))),No=e=>an(e).flatMap(t=>fe(t).filter(r=>r.options.length>0).map(r=>({path:`${t.name()} ${r.name()}`,cmd:r}))),Vd=e=>e.options.flatMap(t=>[t.long,t.short].filter(Boolean).map(r=>({flag:r,description:t.description}))),Uo=e=>[...an(e).flatMap(t=>fe(t).filter(Yv).map(r=>r.name())),...Qv(e)],Ro=e=>`${e} ship shell completion \u2014 GENERATED from the command tree.
35
35
  ${e} Do not edit: rendered by src/node/cli/completions.ts at install time,
36
36
  ${e} so this file always matches the binary that wrote it.
37
- `;function Yv(e){let t=an(e).map(o=>` "${o.name()}")
37
+ `;function e_(e){let t=an(e).map(o=>` "${o.name()}")
38
38
  if [[ \${COMP_CWORD} -eq 2 ]]; then
39
39
  COMPREPLY=( $(compgen -W "${fe(o).map(n=>n.name()).join(" ")}" -- "\${current_word}") )
40
40
  return
@@ -64,10 +64,10 @@ ${t}
64
64
  if [[ "$current_word" == -* ]]; then
65
65
  local local_flags=""
66
66
  case "\${COMP_WORDS[1]} \${COMP_WORDS[2]}" in
67
- ${No(e).map(({path:o,cmd:n})=>` "${o}") local_flags="${Zd(n).map(i=>i.flag).join(" ")}" ;;`).join(`
67
+ ${No(e).map(({path:o,cmd:n})=>` "${o}") local_flags="${Md(n).map(i=>i.flag).join(" ")}" ;;`).join(`
68
68
  `)}
69
69
  esac
70
- COMPREPLY=( $(compgen -W "${Md(e).map(o=>o.flag).join(" ")} \${local_flags}" -- "\${current_word}") )
70
+ COMPREPLY=( $(compgen -W "${Vd(e).map(o=>o.flag).join(" ")} \${local_flags}" -- "\${current_word}") )
71
71
  return
72
72
  fi
73
73
 
@@ -80,7 +80,7 @@ ${No(e).map(({path:o,cmd:n})=>` "${o}") local_flags="${Zd(n).map(i=>i.flag)
80
80
  }
81
81
 
82
82
  complete -F _ship_completions ship
83
- `}var rr=(e,t)=>`"${e}:${t.replace(/:/g,"\\:").replace(/"/g,'\\"')}"`;function Qv(e){let t=an(e).map(o=>` "${o.name()}")
83
+ `}var rr=(e,t)=>`"${e}:${t.replace(/:/g,"\\:").replace(/"/g,'\\"')}"`;function t_(e){let t=an(e).map(o=>` "${o.name()}")
84
84
  if [[ $CURRENT -eq 3 ]]; then
85
85
  completions=(${fe(o).map(n=>rr(n.name(),n.description())).join(" ")})
86
86
  _describe '${o.name()} commands' completions
@@ -117,9 +117,9 @@ ${t}
117
117
  fi
118
118
 
119
119
  if [[ "$current_word" == -* ]]; then
120
- completions=(${Md(e).map(o=>rr(o.flag,o.description)).join(" ")})
120
+ completions=(${Vd(e).map(o=>rr(o.flag,o.description)).join(" ")})
121
121
  case "\${words[2]} \${words[3]}" in
122
- ${No(e).map(({path:o,cmd:n})=>` "${o}") completions+=(${Zd(n).map(i=>rr(i.flag,i.description)).join(" ")}) ;;`).join(`
122
+ ${No(e).map(({path:o,cmd:n})=>` "${o}") completions+=(${Md(n).map(i=>rr(i.flag,i.description)).join(" ")}) ;;`).join(`
123
123
  `)}
124
124
  esac
125
125
  _describe 'options' completions
@@ -139,10 +139,10 @@ ${No(e).map(({path:o,cmd:n})=>` "${o}") completions+=(${Zd(n).map(i=>rr(i
139
139
  compdef _ship ship
140
140
  fi
141
141
  fi
142
- `}var ir=e=>e.replace(/\\/g,"\\\\").replace(/'/g,"\\'");function e_(e){let t=[];t.push("# Top-level commands");for(let o of fe(e))t.push(`complete -c ship -f -n '__fish_use_subcommand' -a '${o.name()}' -d '${ir(o.description())}'`);t.push("","# Global options");for(let o of e.options){let n=o.long?.replace(/^--/,"");if(!n)continue;let i=/<(file|path|dir)\w*>/i.test(o.flags)?" -r":o.required||o.optional?" -x":"";t.push(`complete -c ship -l ${n} -d '${ir(o.description)}'${i}`)}for(let o of an(e)){t.push("",`# ${o.name()} subcommands`);for(let n of fe(o))t.push(`complete -c ship -f -n '__fish_seen_subcommand_from ${o.name()}' -a '${n.name()}' -d '${ir(n.description())}'`)}for(let{path:o,cmd:n}of No(e)){let[i,a]=o.split(" ");t.push("",`# ${o} options`);for(let s of n.options){let c=s.long?.replace(/^--/,"");if(!c)continue;let u=s.required||s.optional?" -x":"";t.push(`complete -c ship -l ${c} -d '${ir(s.description)}'${u} -n '__fish_seen_subcommand_from ${i}; and __fish_seen_subcommand_from ${a}'`)}}let r=Uo(e);return t.push("","# Native file completion where a filesystem argument is expected","function __ship_needs_file"," set -l cmd (commandline -opc)"," if test (count $cmd) -ge 2"," set -l prev $cmd[-1]",` if contains -- "$prev" ${r.map(o=>`'${o}'`).join(" ")}`," return 0"," end"," end"," return 1","end","complete -c ship -F -n '__ship_needs_file'"),`${Ro("#")}
142
+ `}var ir=e=>e.replace(/\\/g,"\\\\").replace(/'/g,"\\'");function n_(e){let t=[];t.push("# Top-level commands");for(let o of fe(e))t.push(`complete -c ship -f -n '__fish_use_subcommand' -a '${o.name()}' -d '${ir(o.description())}'`);t.push("","# Global options");for(let o of e.options){let n=o.long?.replace(/^--/,"");if(!n)continue;let i=/<(file|path|dir)\w*>/i.test(o.flags)?" -r":o.required||o.optional?" -x":"";t.push(`complete -c ship -l ${n} -d '${ir(o.description)}'${i}`)}for(let o of an(e)){t.push("",`# ${o.name()} subcommands`);for(let n of fe(o))t.push(`complete -c ship -f -n '__fish_seen_subcommand_from ${o.name()}' -a '${n.name()}' -d '${ir(n.description())}'`)}for(let{path:o,cmd:n}of No(e)){let[i,a]=o.split(" ");t.push("",`# ${o} options`);for(let s of n.options){let c=s.long?.replace(/^--/,"");if(!c)continue;let u=s.required||s.optional?" -x":"";t.push(`complete -c ship -l ${c} -d '${ir(s.description)}'${u} -n '__fish_seen_subcommand_from ${i}; and __fish_seen_subcommand_from ${a}'`)}}let r=Uo(e);return t.push("","# Native file completion where a filesystem argument is expected","function __ship_needs_file"," set -l cmd (commandline -opc)"," if test (count $cmd) -ge 2"," set -l prev $cmd[-1]",` if contains -- "$prev" ${r.map(o=>`'${o}'`).join(" ")}`," return 0"," end"," end"," return 1","end","complete -c ship -F -n '__ship_needs_file'"),`${Ro("#")}
143
143
  ${t.join(`
144
144
  `)}
145
- `}function Vd(e,t){switch(t){case"bash":return Yv(e);case"zsh":return Qv(e);case"fish":return e_(e)}}var Mo=re(up(),1);on();var lp=["isCreate","claim"],q=(e,t,r)=>r?t:e(t),w_=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),I_=e=>/^[A-Z][a-z]/.test(e)?e.charAt(0).toLowerCase()+e.slice(1):e,pt=e=>I_(e).replace(/\.$/,""),be=(e,t,r)=>{console.log(t?`${JSON.stringify({success:e},null,2)}
145
+ `}function Bd(e,t){switch(t){case"bash":return e_(e);case"zsh":return t_(e);case"fish":return n_(e)}}var Mo=re(lp(),1);on();var dp=["isCreate","claim"],q=(e,t,r)=>r?t:e(t),O_=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),z_=e=>/^[A-Z][a-z]/.test(e)?e.charAt(0).toLowerCase()+e.slice(1):e,pt=e=>z_(e).replace(/\.$/,""),be=(e,t,r)=>{console.log(t?`${JSON.stringify({success:e},null,2)}
146
146
  `:`${q(rn,pt(e),r)}
147
147
  `)},mt=(e,t,r)=>{if(t)console.log(`${JSON.stringify({warning:e},null,2)}
148
148
  `);else{let o=q(i=>nn(tr(i)),`${q(xe,"[",r)}warning${q(xe,"]",r)}`,r),n=q(tr,pt(e),r);console.log(`${o} ${n}
@@ -150,21 +150,21 @@ ${t.join(`
150
150
  `);else{let o=q(i=>nn(nr(i)),`${q(xe,"[",r)}info${q(xe,"]",r)}`,r),n=q(nr,pt(e),r);console.log(`${o} ${n}
151
151
  `)}};function ft(e,t,r){if(t&&typeof e!="string"){console.error(`${JSON.stringify(e.toResponse(),null,2)}
152
152
  `);return}let o=q(a=>nn(er(a)),`${q(xe,"[",r)}error${q(xe,"]",r)}`,r),n=typeof e=="string"?e:e.message,i=q(er,pt(n),r);console.error(`${o} ${i}
153
- `)}var O_=(e,t="details",r)=>{if(e==null||e===0)return"-";let o=new Date(e*1e3).toISOString().replace(/\.\d{3}Z$/,"Z");return t==="table"?o.replace(/T/,q(xe,"T",r)).replace(/Z$/,q(xe,"Z",r)):o},Vo=(e,t,r="details",o)=>{if(t===null||Array.isArray(t)&&t.length===0)return"-";if(typeof t=="number"&&(e==="created"||e==="activated"||e==="expires"||e==="linked"||e==="used"))return O_(t,r,o);if(e==="size"&&typeof t=="number"){let n=t/1048576;return n>=1?`${n.toFixed(1)}Mb`:`${(t/1024).toFixed(1)}Kb`}if(e==="config"||e==="password"){if(typeof t=="boolean")return t?"yes":"no";if(typeof t=="number")return t===1?"yes":"no"}if(w_(t)){let n=Object.entries(t);return n.length===0?"-":n.map(([i,a])=>`${i}=${Vo(i,a,r,o)}`).join(", ")}return String(t)},cn=(e,t,r,o)=>{if(!e||e.length===0)return"";let n=e[0],i=t||Object.keys(n).filter(c=>n[c]!==void 0&&!lp.includes(c)),a=e.map(c=>{let u=c,l={};return i.forEach(f=>{f in u&&u[f]!==void 0&&(l[f]=Vo(f,u[f],"table",r))}),l});return`${(0,Mo.default)(a,{columnSplitter:" ",columns:i,config:i.reduce((c,u)=>(c[u]={headingTransform:l=>q(Re,o?.[l]||l,r)},c),{})}).split(`
153
+ `)}var E_=(e,t="details",r)=>{if(e==null||e===0)return"-";let o=new Date(e*1e3).toISOString().replace(/\.\d{3}Z$/,"Z");return t==="table"?o.replace(/T/,q(xe,"T",r)).replace(/Z$/,q(xe,"Z",r)):o},Vo=(e,t,r="details",o)=>{if(t===null||Array.isArray(t)&&t.length===0)return"-";if(typeof t=="number"&&(e==="created"||e==="activated"||e==="expires"||e==="linked"||e==="used"))return E_(t,r,o);if(e==="size"&&typeof t=="number"){let n=t/1048576;return n>=1?`${n.toFixed(1)}Mb`:`${(t/1024).toFixed(1)}Kb`}if(e==="config"||e==="password"){if(typeof t=="boolean")return t?"yes":"no";if(typeof t=="number")return t===1?"yes":"no"}if(O_(t)){let n=Object.entries(t);return n.length===0?"-":n.map(([i,a])=>`${i}=${Vo(i,a,r,o)}`).join(", ")}return String(t)},cn=(e,t,r,o)=>{if(!e||e.length===0)return"";let n=e[0],i=t||Object.keys(n).filter(c=>n[c]!==void 0&&!dp.includes(c)),a=e.map(c=>{let u=c,l={};return i.forEach(f=>{f in u&&u[f]!==void 0&&(l[f]=Vo(f,u[f],"table",r))}),l});return`${(0,Mo.default)(a,{columnSplitter:" ",columns:i,config:i.reduce((c,u)=>(c[u]={headingTransform:l=>q(Re,o?.[l]||l,r)},c),{})}).split(`
154
154
  `).map(c=>c.replace(/\s+$/,"")).join(`
155
155
  `)}
156
- `},Fe=(e,t)=>{let r=Object.entries(e).filter(([i,a])=>lp.includes(i)?!1:a!==void 0);if(r.length===0)return"";let o=r.map(([i,a])=>({property:`${i}:`,value:Vo(i,a,"details",t)}));return`${(0,Mo.default)(o,{columnSplitter:" ",showHeaders:!1,config:{property:{dataTransform:i=>q(Re,i,t)}}})}
157
- `};function dp(){let e=process.env.SHELL||"";return e.includes("bash")?"bash":e.includes("zsh")?"zsh":e.includes("fish")?"fish":null}function pp(e,t){switch(e){case"bash":return{completionFile:Ze.join(t,".ship_completion.bash"),profileFile:Ze.join(t,".bash_profile")};case"zsh":return{completionFile:Ze.join(t,".ship_completion.zsh"),profileFile:Ze.join(t,".zshrc")};case"fish":return{completionFile:Ze.join(t,".config/fish/completions/ship.fish"),profileFile:null}}}function mp(e,t={}){let{json:r,noColor:o}=t,n=dp(),i=Bo.homedir();if(!n)throw k.config(`unsupported shell: ${process.env.SHELL}. supported: bash, zsh, fish`);let a=pp(n,i),s=Vd(e,n);try{if(n==="fish"){let u=Ze.dirname(a.completionFile);B.existsSync(u)||B.mkdirSync(u,{recursive:!0}),B.writeFileSync(a.completionFile,s),be("fish completion installed successfully",r,o),Le("please restart your shell to apply the changes",r,o);return}B.writeFileSync(a.completionFile,s);let c=`# ship
156
+ `},Fe=(e,t)=>{let r=Object.entries(e).filter(([i,a])=>dp.includes(i)?!1:a!==void 0);if(r.length===0)return"";let o=r.map(([i,a])=>({property:`${i}:`,value:Vo(i,a,"details",t)}));return`${(0,Mo.default)(o,{columnSplitter:" ",showHeaders:!1,config:{property:{dataTransform:i=>q(Re,i,t)}}})}
157
+ `};function pp(){let e=process.env.SHELL||"";return e.includes("bash")?"bash":e.includes("zsh")?"zsh":e.includes("fish")?"fish":null}function mp(e,t){switch(e){case"bash":return{completionFile:Ze.join(t,".ship_completion.bash"),profileFile:Ze.join(t,".bash_profile")};case"zsh":return{completionFile:Ze.join(t,".ship_completion.zsh"),profileFile:Ze.join(t,".zshrc")};case"fish":return{completionFile:Ze.join(t,".config/fish/completions/ship.fish"),profileFile:null}}}function fp(e,t={}){let{json:r,noColor:o}=t,n=pp(),i=Bo.homedir();if(!n)throw k.config(`unsupported shell: ${process.env.SHELL}. supported: bash, zsh, fish`);let a=mp(n,i),s=Bd(e,n);try{if(n==="fish"){let u=Ze.dirname(a.completionFile);B.existsSync(u)||B.mkdirSync(u,{recursive:!0}),B.writeFileSync(a.completionFile,s),be("fish completion installed successfully",r,o),Le("please restart your shell to apply the changes",r,o);return}B.writeFileSync(a.completionFile,s);let c=`# ship
158
158
  source '${a.completionFile}'
159
159
  # ship end
160
160
  `;if(a.profileFile){if(B.existsSync(a.profileFile)){let u=B.readFileSync(a.profileFile,"utf-8");if(!u.includes("# ship")||!u.includes("# ship end")){let l=u.length>0&&!u.endsWith(`
161
161
  `)?`
162
- `:"";B.appendFileSync(a.profileFile,l+c)}}else B.writeFileSync(a.profileFile,c);be(`completion script installed for ${n}`,r,o),mt(`run "source ${a.profileFile}" or restart your shell`,r,o)}}catch(c){if(ce(c))throw c;let u=c instanceof Error?c.message:String(c);throw k.file(`could not install completion script: ${u}`)}}function fp(e={}){let{json:t,noColor:r}=e,o=dp(),n=Bo.homedir();if(!o)throw k.config(`unsupported shell: ${process.env.SHELL}. supported: bash, zsh, fish`);let i=pp(o,n);try{if(o==="fish"){B.existsSync(i.completionFile)?(B.unlinkSync(i.completionFile),be("fish completion uninstalled successfully",t,r)):mt("fish completion was not installed",t,r),Le("please restart your shell to apply the changes",t,r);return}if(B.existsSync(i.completionFile)&&B.unlinkSync(i.completionFile),!i.profileFile)return;if(!B.existsSync(i.profileFile))throw k.config("profile file not found");let s=B.readFileSync(i.profileFile,"utf-8").split(`
162
+ `:"";B.appendFileSync(a.profileFile,l+c)}}else B.writeFileSync(a.profileFile,c);be(`completion script installed for ${n}`,r,o),mt(`run "source ${a.profileFile}" or restart your shell`,r,o)}}catch(c){if(ce(c))throw c;let u=c instanceof Error?c.message:String(c);throw k.file(`could not install completion script: ${u}`)}}function hp(e={}){let{json:t,noColor:r}=e,o=pp(),n=Bo.homedir();if(!o)throw k.config(`unsupported shell: ${process.env.SHELL}. supported: bash, zsh, fish`);let i=mp(o,n);try{if(o==="fish"){B.existsSync(i.completionFile)?(B.unlinkSync(i.completionFile),be("fish completion uninstalled successfully",t,r)):mt("fish completion was not installed",t,r),Le("please restart your shell to apply the changes",t,r);return}if(B.existsSync(i.completionFile)&&B.unlinkSync(i.completionFile),!i.profileFile)return;if(!B.existsSync(i.profileFile))throw k.config("profile file not found");let s=B.readFileSync(i.profileFile,"utf-8").split(`
163
163
  `),c=[],u=0,l=!1;for(;u<s.length;)if(s[u].trim()==="# ship"){for(l=!0,u++;u<s.length&&s[u].trim()!=="# ship end";)u++;u<s.length&&u++}else c.push(s[u]),u++;if(l)B.writeFileSync(i.profileFile,c.join(`
164
- `)),be(`completion script uninstalled for ${o}`,t,r),mt(`run "source ${i.profileFile}" or restart your shell`,t,r);else throw k.config("completion was not found in profile")}catch(a){if(ce(a))throw a;let s=a instanceof Error?a.message:String(a);throw k.file(`could not uninstall completion script: ${s}`)}}var Jt=require("fs"),_h=require("os"),yh=require("path"),$h=require("readline/promises");M();on();var $e={};pe($e,{$brand:()=>Ho,$input:()=>mc,$output:()=>pc,NEVER:()=>Go,TimePrecision:()=>vc,ZodAny:()=>al,ZodArray:()=>ll,ZodBase64:()=>Ai,ZodBase64URL:()=>Ci,ZodBigInt:()=>Gt,ZodBigIntFormat:()=>Ui,ZodBoolean:()=>Bt,ZodCIDRv4:()=>Ti,ZodCIDRv6:()=>Pi,ZodCUID:()=>ki,ZodCUID2:()=>wi,ZodCatch:()=>Pl,ZodCodec:()=>Fn,ZodCustom:()=>Zn,ZodCustomStringFormat:()=>Mt,ZodDate:()=>jn,ZodDefault:()=>Il,ZodDiscriminatedUnion:()=>pl,ZodE164:()=>ji,ZodEmail:()=>xi,ZodEmoji:()=>bi,ZodEnum:()=>Ft,ZodError:()=>ix,ZodExactOptional:()=>Sl,ZodFile:()=>xl,ZodFirstPartyTypeKind:()=>Gl,ZodFunction:()=>Ml,ZodGUID:()=>Dn,ZodIPv4:()=>Ei,ZodIPv6:()=>Di,ZodISODate:()=>hi,ZodISODateTime:()=>fi,ZodISODuration:()=>vi,ZodISOTime:()=>gi,ZodIntersection:()=>ml,ZodIssueCode:()=>ax,ZodJWT:()=>Ni,ZodKSUID:()=>zi,ZodLazy:()=>Ll,ZodLiteral:()=>$l,ZodMAC:()=>Qu,ZodMap:()=>_l,ZodNaN:()=>Cl,ZodNanoID:()=>Si,ZodNever:()=>cl,ZodNonOptional:()=>Vi,ZodNull:()=>il,ZodNullable:()=>wl,ZodNumber:()=>Vt,ZodNumberFormat:()=>ct,ZodObject:()=>Un,ZodOptional:()=>Mi,ZodPipe:()=>Ln,ZodPrefault:()=>zl,ZodPreprocess:()=>jl,ZodPromise:()=>Zl,ZodReadonly:()=>Nl,ZodRealError:()=>ae,ZodRecord:()=>Lt,ZodSet:()=>yl,ZodString:()=>Zt,ZodStringFormat:()=>L,ZodSuccess:()=>Tl,ZodSymbol:()=>nl,ZodTemplateLiteral:()=>Rl,ZodTransform:()=>bl,ZodTuple:()=>hl,ZodType:()=>C,ZodULID:()=>Ii,ZodURL:()=>Cn,ZodUUID:()=>Ie,ZodUndefined:()=>rl,ZodUnion:()=>Rn,ZodUnknown:()=>sl,ZodVoid:()=>ul,ZodXID:()=>Oi,ZodXor:()=>dl,_ZodString:()=>$i,_default:()=>Ol,_function:()=>rh,any:()=>Cf,array:()=>Nn,base64:()=>vf,base64url:()=>_f,bigint:()=>Ef,boolean:()=>tl,catch:()=>Al,check:()=>ih,cidrv4:()=>hf,cidrv6:()=>gf,clone:()=>Q,codec:()=>Qf,coerce:()=>Hl,config:()=>V,core:()=>Ce,cuid:()=>sf,cuid2:()=>cf,custom:()=>oh,date:()=>Nf,decode:()=>Hu,decodeAsync:()=>Wu,describe:()=>ah,discriminatedUnion:()=>Mf,e164:()=>yf,email:()=>Km,emoji:()=>of,encode:()=>Gu,encodeAsync:()=>Ju,endsWith:()=>Et,enum:()=>Fi,exactOptional:()=>kl,file:()=>qf,flattenError:()=>gn,float32:()=>wf,float64:()=>If,formatError:()=>vn,fromJSONSchema:()=>mh,function:()=>rh,getErrorMap:()=>cx,globalRegistry:()=>K,gt:()=>ke,gte:()=>te,guid:()=>Xm,hash:()=>kf,hex:()=>Sf,hostname:()=>bf,httpUrl:()=>rf,includes:()=>Ot,instanceof:()=>ch,int:()=>_i,int32:()=>Of,int64:()=>Df,intersection:()=>fl,invertCodec:()=>eh,ipv4:()=>pf,ipv6:()=>ff,iso:()=>Rt,json:()=>lh,jwt:()=>$f,keyof:()=>Uf,ksuid:()=>df,lazy:()=>Fl,length:()=>at,literal:()=>Wf,locales:()=>wn,looseObject:()=>Ff,looseRecord:()=>Bf,lowercase:()=>wt,lt:()=>Se,lte:()=>le,mac:()=>mf,map:()=>Gf,maxLength:()=>ot,maxSize:()=>We,meta:()=>sh,mime:()=>Dt,minLength:()=>Ae,minSize:()=>we,multipleOf:()=>Je,nan:()=>Yf,nanoid:()=>af,nativeEnum:()=>Jf,negative:()=>ii,never:()=>Ri,nonnegative:()=>ai,nonoptional:()=>Dl,nonpositive:()=>oi,normalize:()=>Tt,null:()=>ol,nullable:()=>Pn,nullish:()=>Kf,number:()=>el,object:()=>Rf,optional:()=>Tn,overwrite:()=>ye,parse:()=>Zu,parseAsync:()=>Mu,partialRecord:()=>Vf,pipe:()=>yi,positive:()=>ri,prefault:()=>El,preprocess:()=>dh,prettifyError:()=>oa,promise:()=>nh,property:()=>si,readonly:()=>Ul,record:()=>vl,refine:()=>Vl,regex:()=>kt,regexes:()=>ue,registry:()=>Nr,safeDecode:()=>Ku,safeDecodeAsync:()=>Yu,safeEncode:()=>qu,safeEncodeAsync:()=>Xu,safeParse:()=>Vu,safeParseAsync:()=>Bu,set:()=>Hf,setErrorMap:()=>sx,size:()=>it,slugify:()=>jt,startsWith:()=>zt,strictObject:()=>Lf,string:()=>En,stringFormat:()=>xf,stringbool:()=>uh,success:()=>Xf,superRefine:()=>Bl,symbol:()=>Pf,templateLiteral:()=>th,toJSONSchema:()=>di,toLowerCase:()=>At,toUpperCase:()=>Ct,transform:()=>Zi,treeifyError:()=>ia,trim:()=>Pt,tuple:()=>gl,uint32:()=>zf,uint64:()=>Tf,ulid:()=>uf,undefined:()=>Af,union:()=>Li,unknown:()=>st,uppercase:()=>It,url:()=>nf,util:()=>I,uuid:()=>Ym,uuidv4:()=>Qm,uuidv6:()=>ef,uuidv7:()=>tf,void:()=>jf,xid:()=>lf,xor:()=>Zf});var Ce={};pe(Ce,{$ZodAny:()=>Cs,$ZodArray:()=>Ls,$ZodAsyncError:()=>_e,$ZodBase64:()=>ks,$ZodBase64URL:()=>ws,$ZodBigInt:()=>zr,$ZodBigIntFormat:()=>Ds,$ZodBoolean:()=>xn,$ZodCIDRv4:()=>xs,$ZodCIDRv6:()=>bs,$ZodCUID:()=>us,$ZodCUID2:()=>ls,$ZodCatch:()=>rc,$ZodCheck:()=>F,$ZodCheckBigIntFormat:()=>La,$ZodCheckEndsWith:()=>Xa,$ZodCheckGreaterThan:()=>br,$ZodCheckIncludes:()=>qa,$ZodCheckLengthEquals:()=>Ga,$ZodCheckLessThan:()=>xr,$ZodCheckLowerCase:()=>Ja,$ZodCheckMaxLength:()=>Va,$ZodCheckMaxSize:()=>Fa,$ZodCheckMimeType:()=>Qa,$ZodCheckMinLength:()=>Ba,$ZodCheckMinSize:()=>Za,$ZodCheckMultipleOf:()=>Ua,$ZodCheckNumberFormat:()=>Ra,$ZodCheckOverwrite:()=>es,$ZodCheckProperty:()=>Ya,$ZodCheckRegex:()=>Ha,$ZodCheckSizeEquals:()=>Ma,$ZodCheckStartsWith:()=>Ka,$ZodCheckStringFormat:()=>bt,$ZodCheckUpperCase:()=>Wa,$ZodCodec:()=>Sn,$ZodCustom:()=>dc,$ZodCustomStringFormat:()=>zs,$ZodDate:()=>Rs,$ZodDefault:()=>Qs,$ZodDiscriminatedUnion:()=>Ms,$ZodE164:()=>Is,$ZodEmail:()=>os,$ZodEmoji:()=>ss,$ZodEncodeError:()=>Me,$ZodEnum:()=>Js,$ZodError:()=>hn,$ZodExactOptional:()=>Xs,$ZodFile:()=>qs,$ZodFunction:()=>cc,$ZodGUID:()=>rs,$ZodIPv4:()=>_s,$ZodIPv6:()=>ys,$ZodISODate:()=>hs,$ZodISODateTime:()=>fs,$ZodISODuration:()=>vs,$ZodISOTime:()=>gs,$ZodIntersection:()=>Vs,$ZodJWT:()=>Os,$ZodKSUID:()=>ms,$ZodLazy:()=>lc,$ZodLiteral:()=>Ws,$ZodMAC:()=>$s,$ZodMap:()=>Gs,$ZodNaN:()=>ic,$ZodNanoID:()=>cs,$ZodNever:()=>Ns,$ZodNonOptional:()=>tc,$ZodNull:()=>As,$ZodNullable:()=>Ys,$ZodNumber:()=>Or,$ZodNumberFormat:()=>Es,$ZodObject:()=>Gp,$ZodObjectJIT:()=>Fs,$ZodOptional:()=>Dr,$ZodPipe:()=>Tr,$ZodPrefault:()=>ec,$ZodPreprocess:()=>oc,$ZodPromise:()=>uc,$ZodReadonly:()=>ac,$ZodRealError:()=>oe,$ZodRecord:()=>Bs,$ZodRegistry:()=>jr,$ZodSet:()=>Hs,$ZodString:()=>rt,$ZodStringFormat:()=>R,$ZodSuccess:()=>nc,$ZodSymbol:()=>Ts,$ZodTemplateLiteral:()=>sc,$ZodTransform:()=>Ks,$ZodTuple:()=>Er,$ZodType:()=>A,$ZodULID:()=>ds,$ZodURL:()=>as,$ZodUUID:()=>is,$ZodUndefined:()=>Ps,$ZodUnion:()=>bn,$ZodUnknown:()=>js,$ZodVoid:()=>Us,$ZodXID:()=>ps,$ZodXor:()=>Zs,$brand:()=>Ho,$constructor:()=>v,$input:()=>mc,$output:()=>pc,Doc:()=>$n,JSONSchema:()=>Jm,JSONSchemaGenerator:()=>pi,NEVER:()=>Go,TimePrecision:()=>vc,_any:()=>Rc,_array:()=>Gc,_base64:()=>Qr,_base64url:()=>ei,_bigint:()=>Tc,_boolean:()=>Ec,_catch:()=>K$,_check:()=>Hm,_cidrv4:()=>Xr,_cidrv6:()=>Yr,_coercedBigint:()=>Pc,_coercedBoolean:()=>Dc,_coercedDate:()=>Vc,_coercedNumber:()=>Sc,_coercedString:()=>hc,_cuid:()=>Br,_cuid2:()=>Gr,_custom:()=>Jc,_date:()=>Mc,_decode:()=>pr,_decodeAsync:()=>fr,_default:()=>J$,_discriminatedUnion:()=>j$,_e164:()=>ti,_email:()=>Ur,_emoji:()=>Mr,_encode:()=>dr,_encodeAsync:()=>mr,_endsWith:()=>Et,_enum:()=>Z$,_file:()=>Hc,_float32:()=>wc,_float64:()=>Ic,_gt:()=>ke,_gte:()=>te,_guid:()=>In,_includes:()=>Ot,_int:()=>kc,_int32:()=>Oc,_int64:()=>Ac,_intersection:()=>N$,_ipv4:()=>qr,_ipv6:()=>Kr,_isoDate:()=>yc,_isoDateTime:()=>_c,_isoDuration:()=>xc,_isoTime:()=>$c,_jwt:()=>ni,_ksuid:()=>Wr,_lazy:()=>ex,_length:()=>at,_literal:()=>V$,_lowercase:()=>wt,_lt:()=>Se,_lte:()=>le,_mac:()=>gc,_map:()=>L$,_max:()=>le,_maxLength:()=>ot,_maxSize:()=>We,_mime:()=>Dt,_min:()=>te,_minLength:()=>Ae,_minSize:()=>we,_multipleOf:()=>Je,_nan:()=>Bc,_nanoid:()=>Vr,_nativeEnum:()=>M$,_negative:()=>ii,_never:()=>Fc,_nonnegative:()=>ai,_nonoptional:()=>W$,_nonpositive:()=>oi,_normalize:()=>Tt,_null:()=>Uc,_nullable:()=>H$,_number:()=>bc,_optional:()=>G$,_overwrite:()=>ye,_parse:()=>_t,_parseAsync:()=>yt,_pipe:()=>X$,_positive:()=>ri,_promise:()=>tx,_property:()=>si,_readonly:()=>Y$,_record:()=>R$,_refine:()=>Wc,_regex:()=>kt,_safeDecode:()=>gr,_safeDecodeAsync:()=>_r,_safeEncode:()=>hr,_safeEncodeAsync:()=>vr,_safeParse:()=>$t,_safeParseAsync:()=>xt,_set:()=>F$,_size:()=>it,_slugify:()=>jt,_startsWith:()=>zt,_string:()=>fc,_stringFormat:()=>Nt,_stringbool:()=>Yc,_success:()=>q$,_superRefine:()=>qc,_symbol:()=>jc,_templateLiteral:()=>Q$,_toLowerCase:()=>At,_toUpperCase:()=>Ct,_transform:()=>B$,_trim:()=>Pt,_tuple:()=>U$,_uint32:()=>zc,_uint64:()=>Cc,_ulid:()=>Hr,_undefined:()=>Nc,_union:()=>A$,_unknown:()=>Lc,_uppercase:()=>It,_url:()=>On,_uuid:()=>Rr,_uuidv4:()=>Lr,_uuidv6:()=>Fr,_uuidv7:()=>Zr,_void:()=>Zc,_xid:()=>Jr,_xor:()=>C$,clone:()=>Q,config:()=>V,createStandardJSONSchemaMethod:()=>Ut,createToJSONSchemaMethod:()=>Qc,decode:()=>ty,decodeAsync:()=>ry,describe:()=>Kc,encode:()=>ey,encodeAsync:()=>ny,extractDefs:()=>Ke,finalize:()=>Xe,flattenError:()=>gn,formatError:()=>vn,globalConfig:()=>et,globalRegistry:()=>K,initializeContext:()=>qe,isValidBase64:()=>Ss,isValidBase64URL:()=>Zp,isValidJWT:()=>Mp,locales:()=>wn,meta:()=>Xc,parse:()=>ur,parseAsync:()=>lr,prettifyError:()=>oa,process:()=>U,regexes:()=>ue,registry:()=>Nr,safeDecode:()=>oy,safeDecodeAsync:()=>sy,safeEncode:()=>iy,safeEncodeAsync:()=>ay,safeParse:()=>aa,safeParseAsync:()=>sa,toDotPath:()=>$p,toJSONSchema:()=>di,treeifyError:()=>ia,util:()=>I,version:()=>ts});var hp,Go=Object.freeze({status:"aborted"});function v(e,t,r){function o(s,c){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,c);let u=a.prototype,l=Object.keys(u);for(let f=0;f<l.length;f++){let p=l[f];p in s||(s[p]=u[p].bind(s))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function a(s){var c;let u=r?.Parent?new i:this;o(u,s),(c=u._zod).deferred??(c.deferred=[]);for(let l of u._zod.deferred)l();return u}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var Ho=Symbol("zod_brand"),_e=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Me=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(hp=globalThis).__zod_globalConfig??(hp.__zod_globalConfig={});var et=globalThis.__zod_globalConfig;function V(e){return e&&Object.assign(et,e),et}var I={};pe(I,{BIGINT_FORMAT_RANGES:()=>na,Class:()=>Wo,NUMBER_FORMAT_RANGES:()=>ta,aborted:()=>He,allowsEval:()=>Xo,assert:()=>P_,assertEqual:()=>z_,assertIs:()=>D_,assertNever:()=>T_,assertNotEqual:()=>E_,assignProp:()=>Be,base64ToUint8Array:()=>vp,base64urlToUint8Array:()=>q_,cached:()=>gt,captureStackTrace:()=>cr,cleanEnum:()=>W_,cleanRegex:()=>dn,clone:()=>Q,cloneDef:()=>C_,createTransparentProxy:()=>F_,defineLazy:()=>j,esc:()=>sr,escapeRegex:()=>he,explicitlyAborted:()=>ra,extend:()=>V_,finalizeIssue:()=>ee,floatSafeRemainder:()=>qo,getElementAtPath:()=>j_,getEnumValues:()=>ln,getLengthableOrigin:()=>fn,getParsedType:()=>L_,getSizableOrigin:()=>mn,hexToUint8Array:()=>X_,isObject:()=>tt,isPlainObject:()=>Ge,issue:()=>vt,joinValues:()=>y,jsonStringifyReplacer:()=>ht,merge:()=>G_,mergeDefs:()=>Pe,normalizeParams:()=>O,nullish:()=>Ve,numKeys:()=>R_,objectClone:()=>A_,omit:()=>M_,optionalKeys:()=>ea,parsedType:()=>w,partial:()=>H_,pick:()=>Z_,prefixIssues:()=>ie,primitiveTypes:()=>Qo,promiseAllObject:()=>N_,propertyKeyTypes:()=>pn,randomString:()=>U_,required:()=>J_,safeExtend:()=>B_,shallowClone:()=>Yo,slugify:()=>Ko,stringifyPrimitive:()=>S,uint8ArrayToBase64:()=>_p,uint8ArrayToBase64url:()=>K_,uint8ArrayToHex:()=>Y_,unwrapMessage:()=>un});function z_(e){return e}function E_(e){return e}function D_(e){}function T_(e){throw new Error("Unexpected value in exhaustive check")}function P_(e){}function ln(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function y(e,t="|"){return e.map(r=>S(r)).join(t)}function ht(e,t){return typeof t=="bigint"?t.toString():t}function gt(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Ve(e){return e==null}function dn(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function qo(e,t){let r=e/t,o=Math.round(r),n=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-o)<n?0:r-o}var gp=Symbol("evaluating");function j(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==gp)return o===void 0&&(o=gp,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function A_(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Be(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Pe(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function C_(e){return Pe(e._zod.def)}function j_(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function N_(e){let t=Object.keys(e),r=t.map(o=>e[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<t.length;i++)n[t[i]]=o[i];return n})}function U_(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function sr(e){return JSON.stringify(e)}function Ko(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var cr="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function tt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Xo=gt(()=>{if(et.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Ge(e){if(tt(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(tt(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Yo(e){return Ge(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function R_(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var L_=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},pn=new Set(["string","number","symbol"]),Qo=new Set(["string","number","bigint","boolean","symbol","undefined"]);function he(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Q(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function O(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function F_(e){let t;return new Proxy({},{get(r,o,n){return t??(t=e()),Reflect.get(t,o,n)},set(r,o,n,i){return t??(t=e()),Reflect.set(t,o,n,i)},has(r,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(r,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(r,o,n){return t??(t=e()),Reflect.defineProperty(t,o,n)}})}function S(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function ea(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var ta={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]},na={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Z_(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=Pe(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=r.shape[s])}return Be(this,"shape",a),a},checks:[]});return Q(e,i)}function M_(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=Pe(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return Be(this,"shape",a),a},checks:[]});return Q(e,i)}function V_(e,t){if(!Ge(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Pe(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return Be(this,"shape",i),i}});return Q(e,n)}function B_(e,t){if(!Ge(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Pe(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Be(this,"shape",o),o}});return Q(e,r)}function G_(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=Pe(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return Be(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Q(e,r)}function H_(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=Pe(t._zod.def,{get shape(){let s=t._zod.def.shape,c={...s};if(r)for(let u in r){if(!(u in s))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(c[u]=e?new e({type:"optional",innerType:s[u]}):s[u])}else for(let u in s)c[u]=e?new e({type:"optional",innerType:s[u]}):s[u];return Be(this,"shape",c),c},checks:[]});return Q(t,a)}function J_(e,t,r){let o=Pe(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(let a in n)i[a]=new e({type:"nonoptional",innerType:n[a]});return Be(this,"shape",i),i}});return Q(t,o)}function He(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function ra(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function ie(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function un(e){return typeof e=="string"?e:e?.message}function ee(e,t,r){let o=e.message?e.message:un(e.inst?._zod.def?.error?.(e))??un(t?.error?.(e))??un(r.customError?.(e))??un(r.localeError?.(e))??"Invalid input",{inst:n,continue:i,input:a,...s}=e;return s.path??(s.path=[]),s.message=o,t?.reportInput&&(s.input=a),s}function mn(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function fn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function w(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function vt(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function W_(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function vp(e){let t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}function _p(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function q_(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return vp(t+r)}function K_(e){return _p(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function X_(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)r[o/2]=Number.parseInt(t.slice(o,o+2),16);return r}function Y_(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Wo=class{constructor(...t){}};var yp=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,ht,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},hn=v("$ZodError",yp),oe=v("$ZodError",yp,{Parent:Error});function gn(e,t=r=>r.message){let r={},o=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):o.push(t(n));return{formErrors:o,fieldErrors:r}}function vn(e,t=r=>r.message){let r={_errors:[]},o=(n,i=[])=>{for(let a of n.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)r._errors.push(t(a));else{let c=r,u=0;for(;u<s.length;){let l=s[u];u===s.length-1?(c[l]=c[l]||{_errors:[]},c[l]._errors.push(t(a))):c[l]=c[l]||{_errors:[]},c=c[l],u++}}}};return o(e),r}function ia(e,t=r=>r.message){let r={errors:[]},o=(n,i=[])=>{var a,s;for(let c of n.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(u=>o({issues:u},[...i,...c.path]));else if(c.code==="invalid_key")o({issues:c.issues},[...i,...c.path]);else if(c.code==="invalid_element")o({issues:c.issues},[...i,...c.path]);else{let u=[...i,...c.path];if(u.length===0){r.errors.push(t(c));continue}let l=r,f=0;for(;f<u.length;){let p=u[f],_=f===u.length-1;typeof p=="string"?(l.properties??(l.properties={}),(a=l.properties)[p]??(a[p]={errors:[]}),l=l.properties[p]):(l.items??(l.items=[]),(s=l.items)[p]??(s[p]={errors:[]}),l=l.items[p]),_&&l.errors.push(t(c)),f++}}};return o(e),r}function $p(e){let t=[],r=e.map(o=>typeof o=="object"?o.key:o);for(let o of r)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}function oa(e){let t=[],r=[...e.issues].sort((o,n)=>(o.path??[]).length-(n.path??[]).length);for(let o of r)t.push(`\u2716 ${o.message}`),o.path?.length&&t.push(` \u2192 at ${$p(o.path)}`);return t.join(`
165
- `)}var _t=e=>(t,r,o,n)=>{let i=o?{...o,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new _e;if(a.issues.length){let s=new(n?.Err??e)(a.issues.map(c=>ee(c,i,V())));throw cr(s,n?.callee),s}return a.value},ur=_t(oe),yt=e=>async(t,r,o,n)=>{let i=o?{...o,async:!0}:{async:!0},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(n?.Err??e)(a.issues.map(c=>ee(c,i,V())));throw cr(s,n?.callee),s}return a.value},lr=yt(oe),$t=e=>(t,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new _e;return i.issues.length?{success:!1,error:new(e??hn)(i.issues.map(a=>ee(a,n,V())))}:{success:!0,data:i.value}},aa=$t(oe),xt=e=>async(t,r,o)=>{let n=o?{...o,async:!0}:{async:!0},i=t._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>ee(a,n,V())))}:{success:!0,data:i.value}},sa=xt(oe),dr=e=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return _t(e)(t,r,n)},ey=dr(oe),pr=e=>(t,r,o)=>_t(e)(t,r,o),ty=pr(oe),mr=e=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return yt(e)(t,r,n)},ny=mr(oe),fr=e=>async(t,r,o)=>yt(e)(t,r,o),ry=fr(oe),hr=e=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return $t(e)(t,r,n)},iy=hr(oe),gr=e=>(t,r,o)=>$t(e)(t,r,o),oy=gr(oe),vr=e=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return xt(e)(t,r,n)},ay=vr(oe),_r=e=>async(t,r,o)=>xt(e)(t,r,o),sy=_r(oe);var ue={};pe(ue,{base64:()=>Sa,base64url:()=>yr,bigint:()=>Da,boolean:()=>Pa,browserEmail:()=>hy,cidrv4:()=>xa,cidrv6:()=>ba,cuid:()=>ca,cuid2:()=>ua,date:()=>Ia,datetime:()=>za,domain:()=>_y,duration:()=>fa,e164:()=>wa,email:()=>ga,emoji:()=>va,extendedDuration:()=>cy,guid:()=>ha,hex:()=>yy,hostname:()=>vy,html5Email:()=>py,httpProtocol:()=>ka,idnEmail:()=>fy,integer:()=>Ta,ipv4:()=>_a,ipv6:()=>ya,ksuid:()=>pa,lowercase:()=>ja,mac:()=>$a,md5_base64:()=>xy,md5_base64url:()=>by,md5_hex:()=>$y,nanoid:()=>ma,null:()=>Aa,number:()=>$r,rfc5322Email:()=>my,sha1_base64:()=>ky,sha1_base64url:()=>wy,sha1_hex:()=>Sy,sha256_base64:()=>Oy,sha256_base64url:()=>zy,sha256_hex:()=>Iy,sha384_base64:()=>Dy,sha384_base64url:()=>Ty,sha384_hex:()=>Ey,sha512_base64:()=>Ay,sha512_base64url:()=>Cy,sha512_hex:()=>Py,string:()=>Ea,time:()=>Oa,ulid:()=>la,undefined:()=>Ca,unicodeEmail:()=>xp,uppercase:()=>Na,uuid:()=>nt,uuid4:()=>uy,uuid6:()=>ly,uuid7:()=>dy,xid:()=>da});var ca=/^[cC][0-9a-z]{6,}$/,ua=/^[0-9a-z]+$/,la=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,da=/^[0-9a-vA-V]{20}$/,pa=/^[A-Za-z0-9]{27}$/,ma=/^[a-zA-Z0-9_-]{21}$/,fa=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,cy=/^[-+]?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)?)??$/,ha=/^([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})$/,nt=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[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)$/,uy=nt(4),ly=nt(6),dy=nt(7),ga=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,py=/^[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])?)*$/,my=/^(([^<>()\[\]\\.,;:\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,}))$/,xp=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,fy=xp,hy=/^[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])?)*$/,gy="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function va(){return new RegExp(gy,"u")}var _a=/^(?:(?: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])$/,ya=/^(([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}|:))$/,$a=e=>{let t=he(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},xa=/^((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])$/,ba=/^(([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])$/,Sa=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,yr=/^[A-Za-z0-9_-]*$/,vy=/^(?=.{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])?)*\.?$/,_y=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,ka=/^https?$/,wa=/^\+[1-9]\d{6,14}$/,bp="(?:(?:\\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])))",Ia=new RegExp(`^${bp}$`);function Sp(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Oa(e){return new RegExp(`^${Sp(e)}$`)}function za(e){let t=Sp({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${t}(?:${r.join("|")})`;return new RegExp(`^${bp}T(?:${o})$`)}var Ea=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Da=/^-?\d+n?$/,Ta=/^-?\d+$/,$r=/^-?\d+(?:\.\d+)?$/,Pa=/^(?:true|false)$/i,Aa=/^null$/i;var Ca=/^undefined$/i;var ja=/^[^A-Z]*$/,Na=/^[^a-z]*$/,yy=/^[0-9a-fA-F]*$/;function _n(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function yn(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var $y=/^[0-9a-fA-F]{32}$/,xy=_n(22,"=="),by=yn(22),Sy=/^[0-9a-fA-F]{40}$/,ky=_n(27,"="),wy=yn(27),Iy=/^[0-9a-fA-F]{64}$/,Oy=_n(43,"="),zy=yn(43),Ey=/^[0-9a-fA-F]{96}$/,Dy=_n(64,""),Ty=yn(64),Py=/^[0-9a-fA-F]{128}$/,Ay=_n(86,"=="),Cy=yn(86);var F=v("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),wp={number:"number",bigint:"bigint",object:"date"},xr=v("$ZodCheckLessThan",(e,t)=>{F.init(e,t);let r=wp[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),br=v("$ZodCheckGreaterThan",(e,t)=>{F.init(e,t);let r=wp[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ua=v("$ZodCheckMultipleOf",(e,t)=>{F.init(e,t),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):qo(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),Ra=v("$ZodCheckNumberFormat",(e,t)=>{F.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=ta[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=n,s.maximum=i,r&&(s.pattern=Ta)}),e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});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:e,origin:o,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}s<n&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>i&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),La=v("$ZodCheckBigIntFormat",(e,t)=>{F.init(e,t);let[r,o]=na[t.format];e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,i.minimum=r,i.maximum=o}),e._zod.check=n=>{let i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Fa=v("$ZodCheckMaxSize",(e,t)=>{var r;F.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ve(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;n.size<=t.maximum||o.issues.push({origin:mn(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Za=v("$ZodCheckMinSize",(e,t)=>{var r;F.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ve(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;n.size>=t.minimum||o.issues.push({origin:mn(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Ma=v("$ZodCheckSizeEquals",(e,t)=>{var r;F.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ve(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=o=>{let n=o.value,i=n.size;if(i===t.size)return;let a=i>t.size;o.issues.push({origin:mn(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Va=v("$ZodCheckMaxLength",(e,t)=>{var r;F.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ve(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;if(n.length<=t.maximum)return;let a=fn(n);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Ba=v("$ZodCheckMinLength",(e,t)=>{var r;F.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ve(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;if(n.length>=t.minimum)return;let a=fn(n);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Ga=v("$ZodCheckLengthEquals",(e,t)=>{var r;F.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ve(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=o=>{let n=o.value,i=n.length;if(i===t.length)return;let a=fn(n),s=i>t.length;o.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),bt=v("$ZodCheckStringFormat",(e,t)=>{var r,o;F.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),Ha=v("$ZodCheckRegex",(e,t)=>{bt.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Ja=v("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=ja),bt.init(e,t)}),Wa=v("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Na),bt.init(e,t)}),qa=v("$ZodCheckIncludes",(e,t)=>{F.init(e,t);let r=he(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Ka=v("$ZodCheckStartsWith",(e,t)=>{F.init(e,t);let r=new RegExp(`^${he(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),Xa=v("$ZodCheckEndsWith",(e,t)=>{F.init(e,t);let r=new RegExp(`.*${he(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function kp(e,t,r){e.issues.length&&t.issues.push(...ie(r,e.issues))}var Ya=v("$ZodCheckProperty",(e,t)=>{F.init(e,t),e._zod.check=r=>{let o=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>kp(n,r,t.property));kp(o,r,t.property)}}),Qa=v("$ZodCheckMimeType",(e,t)=>{F.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),es=v("$ZodCheckOverwrite",(e,t)=>{F.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var $n=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let o=t.split(`
164
+ `)),be(`completion script uninstalled for ${o}`,t,r),mt(`run "source ${i.profileFile}" or restart your shell`,t,r);else throw k.config("completion was not found in profile")}catch(a){if(ce(a))throw a;let s=a instanceof Error?a.message:String(a);throw k.file(`could not uninstall completion script: ${s}`)}}var Jt=require("fs"),yh=require("os"),$h=require("path"),xh=require("readline/promises");M();on();var $e={};pe($e,{$brand:()=>Ho,$input:()=>mc,$output:()=>pc,NEVER:()=>Go,TimePrecision:()=>vc,ZodAny:()=>al,ZodArray:()=>ll,ZodBase64:()=>Ai,ZodBase64URL:()=>Ci,ZodBigInt:()=>Gt,ZodBigIntFormat:()=>Ui,ZodBoolean:()=>Bt,ZodCIDRv4:()=>Ti,ZodCIDRv6:()=>Pi,ZodCUID:()=>ki,ZodCUID2:()=>wi,ZodCatch:()=>Pl,ZodCodec:()=>Fn,ZodCustom:()=>Zn,ZodCustomStringFormat:()=>Mt,ZodDate:()=>jn,ZodDefault:()=>Il,ZodDiscriminatedUnion:()=>pl,ZodE164:()=>ji,ZodEmail:()=>xi,ZodEmoji:()=>bi,ZodEnum:()=>Ft,ZodError:()=>ax,ZodExactOptional:()=>Sl,ZodFile:()=>xl,ZodFirstPartyTypeKind:()=>Gl,ZodFunction:()=>Ml,ZodGUID:()=>Dn,ZodIPv4:()=>Ei,ZodIPv6:()=>Di,ZodISODate:()=>hi,ZodISODateTime:()=>fi,ZodISODuration:()=>vi,ZodISOTime:()=>gi,ZodIntersection:()=>ml,ZodIssueCode:()=>cx,ZodJWT:()=>Ni,ZodKSUID:()=>zi,ZodLazy:()=>Ll,ZodLiteral:()=>$l,ZodMAC:()=>Qu,ZodMap:()=>_l,ZodNaN:()=>Cl,ZodNanoID:()=>Si,ZodNever:()=>cl,ZodNonOptional:()=>Vi,ZodNull:()=>il,ZodNullable:()=>wl,ZodNumber:()=>Vt,ZodNumberFormat:()=>ct,ZodObject:()=>Un,ZodOptional:()=>Mi,ZodPipe:()=>Ln,ZodPrefault:()=>zl,ZodPreprocess:()=>jl,ZodPromise:()=>Zl,ZodReadonly:()=>Nl,ZodRealError:()=>ae,ZodRecord:()=>Lt,ZodSet:()=>yl,ZodString:()=>Zt,ZodStringFormat:()=>L,ZodSuccess:()=>Tl,ZodSymbol:()=>nl,ZodTemplateLiteral:()=>Rl,ZodTransform:()=>bl,ZodTuple:()=>hl,ZodType:()=>C,ZodULID:()=>Ii,ZodURL:()=>Cn,ZodUUID:()=>Ie,ZodUndefined:()=>rl,ZodUnion:()=>Rn,ZodUnknown:()=>sl,ZodVoid:()=>ul,ZodXID:()=>Oi,ZodXor:()=>dl,_ZodString:()=>$i,_default:()=>Ol,_function:()=>ih,any:()=>jf,array:()=>Nn,base64:()=>_f,base64url:()=>yf,bigint:()=>Df,boolean:()=>tl,catch:()=>Al,check:()=>oh,cidrv4:()=>gf,cidrv6:()=>vf,clone:()=>Q,codec:()=>eh,coerce:()=>Hl,config:()=>V,core:()=>Ce,cuid:()=>cf,cuid2:()=>uf,custom:()=>ah,date:()=>Uf,decode:()=>Hu,decodeAsync:()=>Wu,describe:()=>sh,discriminatedUnion:()=>Vf,e164:()=>$f,email:()=>Xm,emoji:()=>af,encode:()=>Gu,encodeAsync:()=>Ju,endsWith:()=>Et,enum:()=>Fi,exactOptional:()=>kl,file:()=>Kf,flattenError:()=>gn,float32:()=>If,float64:()=>Of,formatError:()=>vn,fromJSONSchema:()=>fh,function:()=>ih,getErrorMap:()=>lx,globalRegistry:()=>K,gt:()=>ke,gte:()=>te,guid:()=>Ym,hash:()=>wf,hex:()=>kf,hostname:()=>Sf,httpUrl:()=>of,includes:()=>Ot,instanceof:()=>uh,int:()=>_i,int32:()=>zf,int64:()=>Tf,intersection:()=>fl,invertCodec:()=>th,ipv4:()=>mf,ipv6:()=>hf,iso:()=>Rt,json:()=>dh,jwt:()=>xf,keyof:()=>Rf,ksuid:()=>pf,lazy:()=>Fl,length:()=>at,literal:()=>qf,locales:()=>wn,looseObject:()=>Zf,looseRecord:()=>Gf,lowercase:()=>wt,lt:()=>Se,lte:()=>le,mac:()=>ff,map:()=>Hf,maxLength:()=>ot,maxSize:()=>We,meta:()=>ch,mime:()=>Dt,minLength:()=>Ae,minSize:()=>we,multipleOf:()=>Je,nan:()=>Qf,nanoid:()=>sf,nativeEnum:()=>Wf,negative:()=>ii,never:()=>Ri,nonnegative:()=>ai,nonoptional:()=>Dl,nonpositive:()=>oi,normalize:()=>Tt,null:()=>ol,nullable:()=>Pn,nullish:()=>Xf,number:()=>el,object:()=>Lf,optional:()=>Tn,overwrite:()=>ye,parse:()=>Zu,parseAsync:()=>Mu,partialRecord:()=>Bf,pipe:()=>yi,positive:()=>ri,prefault:()=>El,preprocess:()=>ph,prettifyError:()=>oa,promise:()=>rh,property:()=>si,readonly:()=>Ul,record:()=>vl,refine:()=>Vl,regex:()=>kt,regexes:()=>ue,registry:()=>Nr,safeDecode:()=>Ku,safeDecodeAsync:()=>Yu,safeEncode:()=>qu,safeEncodeAsync:()=>Xu,safeParse:()=>Vu,safeParseAsync:()=>Bu,set:()=>Jf,setErrorMap:()=>ux,size:()=>it,slugify:()=>jt,startsWith:()=>zt,strictObject:()=>Ff,string:()=>En,stringFormat:()=>bf,stringbool:()=>lh,success:()=>Yf,superRefine:()=>Bl,symbol:()=>Af,templateLiteral:()=>nh,toJSONSchema:()=>di,toLowerCase:()=>At,toUpperCase:()=>Ct,transform:()=>Zi,treeifyError:()=>ia,trim:()=>Pt,tuple:()=>gl,uint32:()=>Ef,uint64:()=>Pf,ulid:()=>lf,undefined:()=>Cf,union:()=>Li,unknown:()=>st,uppercase:()=>It,url:()=>rf,util:()=>I,uuid:()=>Qm,uuidv4:()=>ef,uuidv6:()=>tf,uuidv7:()=>nf,void:()=>Nf,xid:()=>df,xor:()=>Mf});var Ce={};pe(Ce,{$ZodAny:()=>Cs,$ZodArray:()=>Ls,$ZodAsyncError:()=>_e,$ZodBase64:()=>ks,$ZodBase64URL:()=>ws,$ZodBigInt:()=>zr,$ZodBigIntFormat:()=>Ds,$ZodBoolean:()=>xn,$ZodCIDRv4:()=>xs,$ZodCIDRv6:()=>bs,$ZodCUID:()=>us,$ZodCUID2:()=>ls,$ZodCatch:()=>rc,$ZodCheck:()=>F,$ZodCheckBigIntFormat:()=>La,$ZodCheckEndsWith:()=>Xa,$ZodCheckGreaterThan:()=>br,$ZodCheckIncludes:()=>qa,$ZodCheckLengthEquals:()=>Ga,$ZodCheckLessThan:()=>xr,$ZodCheckLowerCase:()=>Ja,$ZodCheckMaxLength:()=>Va,$ZodCheckMaxSize:()=>Fa,$ZodCheckMimeType:()=>Qa,$ZodCheckMinLength:()=>Ba,$ZodCheckMinSize:()=>Za,$ZodCheckMultipleOf:()=>Ua,$ZodCheckNumberFormat:()=>Ra,$ZodCheckOverwrite:()=>es,$ZodCheckProperty:()=>Ya,$ZodCheckRegex:()=>Ha,$ZodCheckSizeEquals:()=>Ma,$ZodCheckStartsWith:()=>Ka,$ZodCheckStringFormat:()=>bt,$ZodCheckUpperCase:()=>Wa,$ZodCodec:()=>Sn,$ZodCustom:()=>dc,$ZodCustomStringFormat:()=>zs,$ZodDate:()=>Rs,$ZodDefault:()=>Qs,$ZodDiscriminatedUnion:()=>Ms,$ZodE164:()=>Is,$ZodEmail:()=>os,$ZodEmoji:()=>ss,$ZodEncodeError:()=>Me,$ZodEnum:()=>Js,$ZodError:()=>hn,$ZodExactOptional:()=>Xs,$ZodFile:()=>qs,$ZodFunction:()=>cc,$ZodGUID:()=>rs,$ZodIPv4:()=>_s,$ZodIPv6:()=>ys,$ZodISODate:()=>hs,$ZodISODateTime:()=>fs,$ZodISODuration:()=>vs,$ZodISOTime:()=>gs,$ZodIntersection:()=>Vs,$ZodJWT:()=>Os,$ZodKSUID:()=>ms,$ZodLazy:()=>lc,$ZodLiteral:()=>Ws,$ZodMAC:()=>$s,$ZodMap:()=>Gs,$ZodNaN:()=>ic,$ZodNanoID:()=>cs,$ZodNever:()=>Ns,$ZodNonOptional:()=>tc,$ZodNull:()=>As,$ZodNullable:()=>Ys,$ZodNumber:()=>Or,$ZodNumberFormat:()=>Es,$ZodObject:()=>Hp,$ZodObjectJIT:()=>Fs,$ZodOptional:()=>Dr,$ZodPipe:()=>Tr,$ZodPrefault:()=>ec,$ZodPreprocess:()=>oc,$ZodPromise:()=>uc,$ZodReadonly:()=>ac,$ZodRealError:()=>oe,$ZodRecord:()=>Bs,$ZodRegistry:()=>jr,$ZodSet:()=>Hs,$ZodString:()=>rt,$ZodStringFormat:()=>R,$ZodSuccess:()=>nc,$ZodSymbol:()=>Ts,$ZodTemplateLiteral:()=>sc,$ZodTransform:()=>Ks,$ZodTuple:()=>Er,$ZodType:()=>A,$ZodULID:()=>ds,$ZodURL:()=>as,$ZodUUID:()=>is,$ZodUndefined:()=>Ps,$ZodUnion:()=>bn,$ZodUnknown:()=>js,$ZodVoid:()=>Us,$ZodXID:()=>ps,$ZodXor:()=>Zs,$brand:()=>Ho,$constructor:()=>v,$input:()=>mc,$output:()=>pc,Doc:()=>$n,JSONSchema:()=>Wm,JSONSchemaGenerator:()=>pi,NEVER:()=>Go,TimePrecision:()=>vc,_any:()=>Rc,_array:()=>Gc,_base64:()=>Qr,_base64url:()=>ei,_bigint:()=>Tc,_boolean:()=>Ec,_catch:()=>Y$,_check:()=>Jm,_cidrv4:()=>Xr,_cidrv6:()=>Yr,_coercedBigint:()=>Pc,_coercedBoolean:()=>Dc,_coercedDate:()=>Vc,_coercedNumber:()=>Sc,_coercedString:()=>hc,_cuid:()=>Br,_cuid2:()=>Gr,_custom:()=>Jc,_date:()=>Mc,_decode:()=>pr,_decodeAsync:()=>fr,_default:()=>q$,_discriminatedUnion:()=>U$,_e164:()=>ti,_email:()=>Ur,_emoji:()=>Mr,_encode:()=>dr,_encodeAsync:()=>mr,_endsWith:()=>Et,_enum:()=>V$,_file:()=>Hc,_float32:()=>wc,_float64:()=>Ic,_gt:()=>ke,_gte:()=>te,_guid:()=>In,_includes:()=>Ot,_int:()=>kc,_int32:()=>Oc,_int64:()=>Ac,_intersection:()=>R$,_ipv4:()=>qr,_ipv6:()=>Kr,_isoDate:()=>yc,_isoDateTime:()=>_c,_isoDuration:()=>xc,_isoTime:()=>$c,_jwt:()=>ni,_ksuid:()=>Wr,_lazy:()=>nx,_length:()=>at,_literal:()=>G$,_lowercase:()=>wt,_lt:()=>Se,_lte:()=>le,_mac:()=>gc,_map:()=>Z$,_max:()=>le,_maxLength:()=>ot,_maxSize:()=>We,_mime:()=>Dt,_min:()=>te,_minLength:()=>Ae,_minSize:()=>we,_multipleOf:()=>Je,_nan:()=>Bc,_nanoid:()=>Vr,_nativeEnum:()=>B$,_negative:()=>ii,_never:()=>Fc,_nonnegative:()=>ai,_nonoptional:()=>K$,_nonpositive:()=>oi,_normalize:()=>Tt,_null:()=>Uc,_nullable:()=>W$,_number:()=>bc,_optional:()=>J$,_overwrite:()=>ye,_parse:()=>_t,_parseAsync:()=>yt,_pipe:()=>Q$,_positive:()=>ri,_promise:()=>rx,_property:()=>si,_readonly:()=>ex,_record:()=>F$,_refine:()=>Wc,_regex:()=>kt,_safeDecode:()=>gr,_safeDecodeAsync:()=>_r,_safeEncode:()=>hr,_safeEncodeAsync:()=>vr,_safeParse:()=>$t,_safeParseAsync:()=>xt,_set:()=>M$,_size:()=>it,_slugify:()=>jt,_startsWith:()=>zt,_string:()=>fc,_stringFormat:()=>Nt,_stringbool:()=>Yc,_success:()=>X$,_superRefine:()=>qc,_symbol:()=>jc,_templateLiteral:()=>tx,_toLowerCase:()=>At,_toUpperCase:()=>Ct,_transform:()=>H$,_trim:()=>Pt,_tuple:()=>L$,_uint32:()=>zc,_uint64:()=>Cc,_ulid:()=>Hr,_undefined:()=>Nc,_union:()=>j$,_unknown:()=>Lc,_uppercase:()=>It,_url:()=>On,_uuid:()=>Rr,_uuidv4:()=>Lr,_uuidv6:()=>Fr,_uuidv7:()=>Zr,_void:()=>Zc,_xid:()=>Jr,_xor:()=>N$,clone:()=>Q,config:()=>V,createStandardJSONSchemaMethod:()=>Ut,createToJSONSchemaMethod:()=>Qc,decode:()=>ry,decodeAsync:()=>oy,describe:()=>Kc,encode:()=>ny,encodeAsync:()=>iy,extractDefs:()=>Ke,finalize:()=>Xe,flattenError:()=>gn,formatError:()=>vn,globalConfig:()=>et,globalRegistry:()=>K,initializeContext:()=>qe,isValidBase64:()=>Ss,isValidBase64URL:()=>Mp,isValidJWT:()=>Vp,locales:()=>wn,meta:()=>Xc,parse:()=>ur,parseAsync:()=>lr,prettifyError:()=>oa,process:()=>U,regexes:()=>ue,registry:()=>Nr,safeDecode:()=>sy,safeDecodeAsync:()=>uy,safeEncode:()=>ay,safeEncodeAsync:()=>cy,safeParse:()=>aa,safeParseAsync:()=>sa,toDotPath:()=>xp,toJSONSchema:()=>di,treeifyError:()=>ia,util:()=>I,version:()=>ts});var gp,Go=Object.freeze({status:"aborted"});function v(e,t,r){function o(s,c){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,c);let u=a.prototype,l=Object.keys(u);for(let f=0;f<l.length;f++){let p=l[f];p in s||(s[p]=u[p].bind(s))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function a(s){var c;let u=r?.Parent?new i:this;o(u,s),(c=u._zod).deferred??(c.deferred=[]);for(let l of u._zod.deferred)l();return u}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var Ho=Symbol("zod_brand"),_e=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Me=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(gp=globalThis).__zod_globalConfig??(gp.__zod_globalConfig={});var et=globalThis.__zod_globalConfig;function V(e){return e&&Object.assign(et,e),et}var I={};pe(I,{BIGINT_FORMAT_RANGES:()=>na,Class:()=>Wo,NUMBER_FORMAT_RANGES:()=>ta,aborted:()=>He,allowsEval:()=>Xo,assert:()=>C_,assertEqual:()=>D_,assertIs:()=>P_,assertNever:()=>A_,assertNotEqual:()=>T_,assignProp:()=>Be,base64ToUint8Array:()=>_p,base64urlToUint8Array:()=>X_,cached:()=>gt,captureStackTrace:()=>cr,cleanEnum:()=>K_,cleanRegex:()=>dn,clone:()=>Q,cloneDef:()=>N_,createTransparentProxy:()=>M_,defineLazy:()=>j,esc:()=>sr,escapeRegex:()=>he,explicitlyAborted:()=>ra,extend:()=>G_,finalizeIssue:()=>ee,floatSafeRemainder:()=>qo,getElementAtPath:()=>U_,getEnumValues:()=>ln,getLengthableOrigin:()=>fn,getParsedType:()=>Z_,getSizableOrigin:()=>mn,hexToUint8Array:()=>Q_,isObject:()=>tt,isPlainObject:()=>Ge,issue:()=>vt,joinValues:()=>y,jsonStringifyReplacer:()=>ht,merge:()=>J_,mergeDefs:()=>Pe,normalizeParams:()=>O,nullish:()=>Ve,numKeys:()=>F_,objectClone:()=>j_,omit:()=>B_,optionalKeys:()=>ea,parsedType:()=>w,partial:()=>W_,pick:()=>V_,prefixIssues:()=>ie,primitiveTypes:()=>Qo,promiseAllObject:()=>R_,propertyKeyTypes:()=>pn,randomString:()=>L_,required:()=>q_,safeExtend:()=>H_,shallowClone:()=>Yo,slugify:()=>Ko,stringifyPrimitive:()=>S,uint8ArrayToBase64:()=>yp,uint8ArrayToBase64url:()=>Y_,uint8ArrayToHex:()=>ey,unwrapMessage:()=>un});function D_(e){return e}function T_(e){return e}function P_(e){}function A_(e){throw new Error("Unexpected value in exhaustive check")}function C_(e){}function ln(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function y(e,t="|"){return e.map(r=>S(r)).join(t)}function ht(e,t){return typeof t=="bigint"?t.toString():t}function gt(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Ve(e){return e==null}function dn(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function qo(e,t){let r=e/t,o=Math.round(r),n=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-o)<n?0:r-o}var vp=Symbol("evaluating");function j(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==vp)return o===void 0&&(o=vp,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function j_(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Be(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Pe(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function N_(e){return Pe(e._zod.def)}function U_(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function R_(e){let t=Object.keys(e),r=t.map(o=>e[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<t.length;i++)n[t[i]]=o[i];return n})}function L_(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function sr(e){return JSON.stringify(e)}function Ko(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var cr="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function tt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Xo=gt(()=>{if(et.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Ge(e){if(tt(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(tt(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Yo(e){return Ge(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function F_(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var Z_=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},pn=new Set(["string","number","symbol"]),Qo=new Set(["string","number","bigint","boolean","symbol","undefined"]);function he(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Q(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function O(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function M_(e){let t;return new Proxy({},{get(r,o,n){return t??(t=e()),Reflect.get(t,o,n)},set(r,o,n,i){return t??(t=e()),Reflect.set(t,o,n,i)},has(r,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(r,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(r,o,n){return t??(t=e()),Reflect.defineProperty(t,o,n)}})}function S(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function ea(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var ta={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]},na={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function V_(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=Pe(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=r.shape[s])}return Be(this,"shape",a),a},checks:[]});return Q(e,i)}function B_(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=Pe(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return Be(this,"shape",a),a},checks:[]});return Q(e,i)}function G_(e,t){if(!Ge(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Pe(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return Be(this,"shape",i),i}});return Q(e,n)}function H_(e,t){if(!Ge(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Pe(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Be(this,"shape",o),o}});return Q(e,r)}function J_(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=Pe(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return Be(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Q(e,r)}function W_(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=Pe(t._zod.def,{get shape(){let s=t._zod.def.shape,c={...s};if(r)for(let u in r){if(!(u in s))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(c[u]=e?new e({type:"optional",innerType:s[u]}):s[u])}else for(let u in s)c[u]=e?new e({type:"optional",innerType:s[u]}):s[u];return Be(this,"shape",c),c},checks:[]});return Q(t,a)}function q_(e,t,r){let o=Pe(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(let a in n)i[a]=new e({type:"nonoptional",innerType:n[a]});return Be(this,"shape",i),i}});return Q(t,o)}function He(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function ra(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function ie(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function un(e){return typeof e=="string"?e:e?.message}function ee(e,t,r){let o=e.message?e.message:un(e.inst?._zod.def?.error?.(e))??un(t?.error?.(e))??un(r.customError?.(e))??un(r.localeError?.(e))??"Invalid input",{inst:n,continue:i,input:a,...s}=e;return s.path??(s.path=[]),s.message=o,t?.reportInput&&(s.input=a),s}function mn(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function fn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function w(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function vt(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function K_(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function _p(e){let t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}function yp(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function X_(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return _p(t+r)}function Y_(e){return yp(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Q_(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)r[o/2]=Number.parseInt(t.slice(o,o+2),16);return r}function ey(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Wo=class{constructor(...t){}};var $p=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,ht,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},hn=v("$ZodError",$p),oe=v("$ZodError",$p,{Parent:Error});function gn(e,t=r=>r.message){let r={},o=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):o.push(t(n));return{formErrors:o,fieldErrors:r}}function vn(e,t=r=>r.message){let r={_errors:[]},o=(n,i=[])=>{for(let a of n.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)r._errors.push(t(a));else{let c=r,u=0;for(;u<s.length;){let l=s[u];u===s.length-1?(c[l]=c[l]||{_errors:[]},c[l]._errors.push(t(a))):c[l]=c[l]||{_errors:[]},c=c[l],u++}}}};return o(e),r}function ia(e,t=r=>r.message){let r={errors:[]},o=(n,i=[])=>{var a,s;for(let c of n.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(u=>o({issues:u},[...i,...c.path]));else if(c.code==="invalid_key")o({issues:c.issues},[...i,...c.path]);else if(c.code==="invalid_element")o({issues:c.issues},[...i,...c.path]);else{let u=[...i,...c.path];if(u.length===0){r.errors.push(t(c));continue}let l=r,f=0;for(;f<u.length;){let p=u[f],_=f===u.length-1;typeof p=="string"?(l.properties??(l.properties={}),(a=l.properties)[p]??(a[p]={errors:[]}),l=l.properties[p]):(l.items??(l.items=[]),(s=l.items)[p]??(s[p]={errors:[]}),l=l.items[p]),_&&l.errors.push(t(c)),f++}}};return o(e),r}function xp(e){let t=[],r=e.map(o=>typeof o=="object"?o.key:o);for(let o of r)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}function oa(e){let t=[],r=[...e.issues].sort((o,n)=>(o.path??[]).length-(n.path??[]).length);for(let o of r)t.push(`\u2716 ${o.message}`),o.path?.length&&t.push(` \u2192 at ${xp(o.path)}`);return t.join(`
165
+ `)}var _t=e=>(t,r,o,n)=>{let i=o?{...o,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new _e;if(a.issues.length){let s=new(n?.Err??e)(a.issues.map(c=>ee(c,i,V())));throw cr(s,n?.callee),s}return a.value},ur=_t(oe),yt=e=>async(t,r,o,n)=>{let i=o?{...o,async:!0}:{async:!0},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(n?.Err??e)(a.issues.map(c=>ee(c,i,V())));throw cr(s,n?.callee),s}return a.value},lr=yt(oe),$t=e=>(t,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new _e;return i.issues.length?{success:!1,error:new(e??hn)(i.issues.map(a=>ee(a,n,V())))}:{success:!0,data:i.value}},aa=$t(oe),xt=e=>async(t,r,o)=>{let n=o?{...o,async:!0}:{async:!0},i=t._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>ee(a,n,V())))}:{success:!0,data:i.value}},sa=xt(oe),dr=e=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return _t(e)(t,r,n)},ny=dr(oe),pr=e=>(t,r,o)=>_t(e)(t,r,o),ry=pr(oe),mr=e=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return yt(e)(t,r,n)},iy=mr(oe),fr=e=>async(t,r,o)=>yt(e)(t,r,o),oy=fr(oe),hr=e=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return $t(e)(t,r,n)},ay=hr(oe),gr=e=>(t,r,o)=>$t(e)(t,r,o),sy=gr(oe),vr=e=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return xt(e)(t,r,n)},cy=vr(oe),_r=e=>async(t,r,o)=>xt(e)(t,r,o),uy=_r(oe);var ue={};pe(ue,{base64:()=>Sa,base64url:()=>yr,bigint:()=>Da,boolean:()=>Pa,browserEmail:()=>vy,cidrv4:()=>xa,cidrv6:()=>ba,cuid:()=>ca,cuid2:()=>ua,date:()=>Ia,datetime:()=>za,domain:()=>$y,duration:()=>fa,e164:()=>wa,email:()=>ga,emoji:()=>va,extendedDuration:()=>ly,guid:()=>ha,hex:()=>xy,hostname:()=>yy,html5Email:()=>fy,httpProtocol:()=>ka,idnEmail:()=>gy,integer:()=>Ta,ipv4:()=>_a,ipv6:()=>ya,ksuid:()=>pa,lowercase:()=>ja,mac:()=>$a,md5_base64:()=>Sy,md5_base64url:()=>ky,md5_hex:()=>by,nanoid:()=>ma,null:()=>Aa,number:()=>$r,rfc5322Email:()=>hy,sha1_base64:()=>Iy,sha1_base64url:()=>Oy,sha1_hex:()=>wy,sha256_base64:()=>Ey,sha256_base64url:()=>Dy,sha256_hex:()=>zy,sha384_base64:()=>Py,sha384_base64url:()=>Ay,sha384_hex:()=>Ty,sha512_base64:()=>jy,sha512_base64url:()=>Ny,sha512_hex:()=>Cy,string:()=>Ea,time:()=>Oa,ulid:()=>la,undefined:()=>Ca,unicodeEmail:()=>bp,uppercase:()=>Na,uuid:()=>nt,uuid4:()=>dy,uuid6:()=>py,uuid7:()=>my,xid:()=>da});var ca=/^[cC][0-9a-z]{6,}$/,ua=/^[0-9a-z]+$/,la=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,da=/^[0-9a-vA-V]{20}$/,pa=/^[A-Za-z0-9]{27}$/,ma=/^[a-zA-Z0-9_-]{21}$/,fa=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ly=/^[-+]?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)?)??$/,ha=/^([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})$/,nt=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[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)$/,dy=nt(4),py=nt(6),my=nt(7),ga=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,fy=/^[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])?)*$/,hy=/^(([^<>()\[\]\\.,;:\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,}))$/,bp=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,gy=bp,vy=/^[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])?)*$/,_y="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function va(){return new RegExp(_y,"u")}var _a=/^(?:(?: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])$/,ya=/^(([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}|:))$/,$a=e=>{let t=he(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},xa=/^((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])$/,ba=/^(([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])$/,Sa=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,yr=/^[A-Za-z0-9_-]*$/,yy=/^(?=.{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])?)*\.?$/,$y=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,ka=/^https?$/,wa=/^\+[1-9]\d{6,14}$/,Sp="(?:(?:\\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])))",Ia=new RegExp(`^${Sp}$`);function kp(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Oa(e){return new RegExp(`^${kp(e)}$`)}function za(e){let t=kp({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${t}(?:${r.join("|")})`;return new RegExp(`^${Sp}T(?:${o})$`)}var Ea=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Da=/^-?\d+n?$/,Ta=/^-?\d+$/,$r=/^-?\d+(?:\.\d+)?$/,Pa=/^(?:true|false)$/i,Aa=/^null$/i;var Ca=/^undefined$/i;var ja=/^[^A-Z]*$/,Na=/^[^a-z]*$/,xy=/^[0-9a-fA-F]*$/;function _n(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function yn(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var by=/^[0-9a-fA-F]{32}$/,Sy=_n(22,"=="),ky=yn(22),wy=/^[0-9a-fA-F]{40}$/,Iy=_n(27,"="),Oy=yn(27),zy=/^[0-9a-fA-F]{64}$/,Ey=_n(43,"="),Dy=yn(43),Ty=/^[0-9a-fA-F]{96}$/,Py=_n(64,""),Ay=yn(64),Cy=/^[0-9a-fA-F]{128}$/,jy=_n(86,"=="),Ny=yn(86);var F=v("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),Ip={number:"number",bigint:"bigint",object:"date"},xr=v("$ZodCheckLessThan",(e,t)=>{F.init(e,t);let r=Ip[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),br=v("$ZodCheckGreaterThan",(e,t)=>{F.init(e,t);let r=Ip[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ua=v("$ZodCheckMultipleOf",(e,t)=>{F.init(e,t),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):qo(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),Ra=v("$ZodCheckNumberFormat",(e,t)=>{F.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=ta[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=n,s.maximum=i,r&&(s.pattern=Ta)}),e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});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:e,origin:o,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}s<n&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>i&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),La=v("$ZodCheckBigIntFormat",(e,t)=>{F.init(e,t);let[r,o]=na[t.format];e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,i.minimum=r,i.maximum=o}),e._zod.check=n=>{let i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Fa=v("$ZodCheckMaxSize",(e,t)=>{var r;F.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ve(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;n.size<=t.maximum||o.issues.push({origin:mn(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Za=v("$ZodCheckMinSize",(e,t)=>{var r;F.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ve(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;n.size>=t.minimum||o.issues.push({origin:mn(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Ma=v("$ZodCheckSizeEquals",(e,t)=>{var r;F.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ve(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=o=>{let n=o.value,i=n.size;if(i===t.size)return;let a=i>t.size;o.issues.push({origin:mn(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Va=v("$ZodCheckMaxLength",(e,t)=>{var r;F.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ve(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;if(n.length<=t.maximum)return;let a=fn(n);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Ba=v("$ZodCheckMinLength",(e,t)=>{var r;F.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ve(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;if(n.length>=t.minimum)return;let a=fn(n);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Ga=v("$ZodCheckLengthEquals",(e,t)=>{var r;F.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ve(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=o=>{let n=o.value,i=n.length;if(i===t.length)return;let a=fn(n),s=i>t.length;o.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),bt=v("$ZodCheckStringFormat",(e,t)=>{var r,o;F.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),Ha=v("$ZodCheckRegex",(e,t)=>{bt.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Ja=v("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=ja),bt.init(e,t)}),Wa=v("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Na),bt.init(e,t)}),qa=v("$ZodCheckIncludes",(e,t)=>{F.init(e,t);let r=he(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Ka=v("$ZodCheckStartsWith",(e,t)=>{F.init(e,t);let r=new RegExp(`^${he(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),Xa=v("$ZodCheckEndsWith",(e,t)=>{F.init(e,t);let r=new RegExp(`.*${he(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function wp(e,t,r){e.issues.length&&t.issues.push(...ie(r,e.issues))}var Ya=v("$ZodCheckProperty",(e,t)=>{F.init(e,t),e._zod.check=r=>{let o=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>wp(n,r,t.property));wp(o,r,t.property)}}),Qa=v("$ZodCheckMimeType",(e,t)=>{F.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),es=v("$ZodCheckOverwrite",(e,t)=>{F.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var $n=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let o=t.split(`
166
166
  `).filter(a=>a),n=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...r,n.join(`
167
- `))}};var ts={major:4,minor:4,patch:3};var A=v("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ts;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let n of o)for(let i of n._zod.onattach)i(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(a,s,c)=>{let u=He(a),l;for(let f of s){if(f._zod.def.when){if(ra(a)||!f._zod.def.when(a))continue}else if(u)continue;let p=a.issues.length,_=f._zod.check(a);if(_ instanceof Promise&&c?.async===!1)throw new _e;if(l||_ instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await _,a.issues.length!==p&&(u||(u=He(a,p)))});else{if(a.issues.length===p)continue;u||(u=He(a,p))}}return l?l.then(()=>a):a},i=(a,s,c)=>{if(He(a))return a.aborted=!0,a;let u=n(s,o,c);if(u instanceof Promise){if(c.async===!1)throw new _e;return u.then(l=>e._zod.parse(l,c))}return e._zod.parse(u,c)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let u=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(l=>i(l,a,s)):i(u,a,s)}let c=e._zod.parse(a,s);if(c instanceof Promise){if(s.async===!1)throw new _e;return c.then(u=>n(u,o,s))}return n(c,o,s)}}j(e,"~standard",()=>({validate:n=>{try{let i=aa(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return sa(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),rt=v("$ZodString",(e,t)=>{A.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Ea(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),R=v("$ZodStringFormat",(e,t)=>{bt.init(e,t),rt.init(e,t)}),rs=v("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=ha),R.init(e,t)}),is=v("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=nt(o))}else t.pattern??(t.pattern=nt());R.init(e,t)}),os=v("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=ga),R.init(e,t)}),as=v("$ZodURL",(e,t)=>{R.init(e,t),e._zod.check=r=>{try{let o=r.value.trim();if(!t.normalize&&t.protocol?.source===ka.source&&!/^https?:\/\//i.test(o)){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}let n=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),ss=v("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=va()),R.init(e,t)}),cs=v("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=ma),R.init(e,t)}),us=v("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=ca),R.init(e,t)}),ls=v("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=ua),R.init(e,t)}),ds=v("$ZodULID",(e,t)=>{t.pattern??(t.pattern=la),R.init(e,t)}),ps=v("$ZodXID",(e,t)=>{t.pattern??(t.pattern=da),R.init(e,t)}),ms=v("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=pa),R.init(e,t)}),fs=v("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=za(t)),R.init(e,t)}),hs=v("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Ia),R.init(e,t)}),gs=v("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Oa(t)),R.init(e,t)}),vs=v("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=fa),R.init(e,t)}),_s=v("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=_a),R.init(e,t),e._zod.bag.format="ipv4"}),ys=v("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=ya),R.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),$s=v("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=$a(t.delimiter)),R.init(e,t),e._zod.bag.format="mac"}),xs=v("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=xa),R.init(e,t)}),bs=v("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=ba),R.init(e,t),e._zod.check=r=>{let o=r.value.split("/");try{if(o.length!==2)throw new Error;let[n,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://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Ss(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var ks=v("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Sa),R.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Ss(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function Zp(e){if(!yr.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Ss(r)}var ws=v("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=yr),R.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{Zp(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Is=v("$ZodE164",(e,t)=>{t.pattern??(t.pattern=wa),R.init(e,t)});function Mp(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var Os=v("$ZodJWT",(e,t)=>{R.init(e,t),e._zod.check=r=>{Mp(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),zs=v("$ZodCustomStringFormat",(e,t)=>{R.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),Or=v("$ZodNumber",(e,t)=>{A.init(e,t),e._zod.pattern=e._zod.bag.pattern??$r,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let i=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...i?{received:i}:{}}),r}}),Es=v("$ZodNumberFormat",(e,t)=>{Ra.init(e,t),Or.init(e,t)}),xn=v("$ZodBoolean",(e,t)=>{A.init(e,t),e._zod.pattern=Pa,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),zr=v("$ZodBigInt",(e,t)=>{A.init(e,t),e._zod.pattern=Da,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),Ds=v("$ZodBigIntFormat",(e,t)=>{La.init(e,t),zr.init(e,t)}),Ts=v("$ZodSymbol",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),Ps=v("$ZodUndefined",(e,t)=>{A.init(e,t),e._zod.pattern=Ca,e._zod.values=new Set([void 0]),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),As=v("$ZodNull",(e,t)=>{A.init(e,t),e._zod.pattern=Aa,e._zod.values=new Set([null]),e._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),Cs=v("$ZodAny",(e,t)=>{A.init(e,t),e._zod.parse=r=>r}),js=v("$ZodUnknown",(e,t)=>{A.init(e,t),e._zod.parse=r=>r}),Ns=v("$ZodNever",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),Us=v("$ZodVoid",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),Rs=v("$ZodDate",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:e}),r}});function Op(e,t,r){e.issues.length&&t.issues.push(...ie(r,e.issues)),t.value[r]=e.value}var Ls=v("$ZodArray",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let i=[];for(let a=0;a<n.length;a++){let s=n[a],c=t.element._zod.run({value:s,issues:[]},o);c instanceof Promise?i.push(c.then(u=>Op(u,r,a))):Op(c,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function Ir(e,t,r,o,n,i){let a=r in o;if(e.issues.length){if(n&&i&&!a)return;t.issues.push(...ie(r,e.issues))}if(!a&&!n){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?a&&(t.value[r]=void 0):t.value[r]=e.value}function Vp(e){let t=Object.keys(e.shape);for(let o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let r=ea(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function Bp(e,t,r,o,n,i){let a=[],s=n.keySet,c=n.catchall._zod,u=c.def.type,l=c.optin==="optional",f=c.optout==="optional";for(let p in t){if(p==="__proto__"||s.has(p))continue;if(u==="never"){a.push(p);continue}let _=c.run({value:t[p],issues:[]},o);_ instanceof Promise?e.push(_.then(b=>Ir(b,r,p,t,l,f))):Ir(_,r,p,t,l,f)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}var Gp=v("$ZodObject",(e,t)=>{if(A.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let c={...s};return Object.defineProperty(t,"shape",{value:c}),c}})}let o=gt(()=>Vp(t));j(e._zod,"propValues",()=>{let s=t.shape,c={};for(let u in s){let l=s[u]._zod;if(l.values){c[u]??(c[u]=new Set);for(let f of l.values)c[u].add(f)}}return c});let n=tt,i=t.catchall,a;e._zod.parse=(s,c)=>{a??(a=o.value);let u=s.value;if(!n(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),s;s.value={};let l=[],f=a.shape;for(let p of a.keys){let _=f[p],b=_._zod.optin==="optional",E=_._zod.optout==="optional",D=_._zod.run({value:u[p],issues:[]},c);D instanceof Promise?l.push(D.then(x=>Ir(x,s,p,u,b,E))):Ir(D,s,p,u,b,E)}return i?Bp(l,u,s,c,o.value,e):l.length?Promise.all(l).then(()=>s):s}}),Fs=v("$ZodObjectJIT",(e,t)=>{Gp.init(e,t);let r=e._zod.parse,o=gt(()=>Vp(t)),n=p=>{let _=new $n(["shape","payload","ctx"]),b=o.value,E=m=>{let d=sr(m);return`shape[${d}]._zod.run({ value: input[${d}], issues: [] }, ctx)`};_.write("const input = payload.value;");let D=Object.create(null),x=0;for(let m of b.keys)D[m]=`key_${x++}`;_.write("const newResult = {};");for(let m of b.keys){let d=D[m],h=sr(m),g=p[m],H=g?._zod?.optin==="optional",ve=g?._zod?.optout==="optional";_.write(`const ${d} = ${E(m)};`),H&&ve?_.write(`
167
+ `))}};var ts={major:4,minor:4,patch:3};var A=v("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ts;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let n of o)for(let i of n._zod.onattach)i(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(a,s,c)=>{let u=He(a),l;for(let f of s){if(f._zod.def.when){if(ra(a)||!f._zod.def.when(a))continue}else if(u)continue;let p=a.issues.length,_=f._zod.check(a);if(_ instanceof Promise&&c?.async===!1)throw new _e;if(l||_ instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await _,a.issues.length!==p&&(u||(u=He(a,p)))});else{if(a.issues.length===p)continue;u||(u=He(a,p))}}return l?l.then(()=>a):a},i=(a,s,c)=>{if(He(a))return a.aborted=!0,a;let u=n(s,o,c);if(u instanceof Promise){if(c.async===!1)throw new _e;return u.then(l=>e._zod.parse(l,c))}return e._zod.parse(u,c)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let u=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(l=>i(l,a,s)):i(u,a,s)}let c=e._zod.parse(a,s);if(c instanceof Promise){if(s.async===!1)throw new _e;return c.then(u=>n(u,o,s))}return n(c,o,s)}}j(e,"~standard",()=>({validate:n=>{try{let i=aa(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return sa(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),rt=v("$ZodString",(e,t)=>{A.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Ea(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),R=v("$ZodStringFormat",(e,t)=>{bt.init(e,t),rt.init(e,t)}),rs=v("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=ha),R.init(e,t)}),is=v("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=nt(o))}else t.pattern??(t.pattern=nt());R.init(e,t)}),os=v("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=ga),R.init(e,t)}),as=v("$ZodURL",(e,t)=>{R.init(e,t),e._zod.check=r=>{try{let o=r.value.trim();if(!t.normalize&&t.protocol?.source===ka.source&&!/^https?:\/\//i.test(o)){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}let n=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),ss=v("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=va()),R.init(e,t)}),cs=v("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=ma),R.init(e,t)}),us=v("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=ca),R.init(e,t)}),ls=v("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=ua),R.init(e,t)}),ds=v("$ZodULID",(e,t)=>{t.pattern??(t.pattern=la),R.init(e,t)}),ps=v("$ZodXID",(e,t)=>{t.pattern??(t.pattern=da),R.init(e,t)}),ms=v("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=pa),R.init(e,t)}),fs=v("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=za(t)),R.init(e,t)}),hs=v("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Ia),R.init(e,t)}),gs=v("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Oa(t)),R.init(e,t)}),vs=v("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=fa),R.init(e,t)}),_s=v("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=_a),R.init(e,t),e._zod.bag.format="ipv4"}),ys=v("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=ya),R.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),$s=v("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=$a(t.delimiter)),R.init(e,t),e._zod.bag.format="mac"}),xs=v("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=xa),R.init(e,t)}),bs=v("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=ba),R.init(e,t),e._zod.check=r=>{let o=r.value.split("/");try{if(o.length!==2)throw new Error;let[n,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://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Ss(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var ks=v("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Sa),R.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Ss(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function Mp(e){if(!yr.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Ss(r)}var ws=v("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=yr),R.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{Mp(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Is=v("$ZodE164",(e,t)=>{t.pattern??(t.pattern=wa),R.init(e,t)});function Vp(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var Os=v("$ZodJWT",(e,t)=>{R.init(e,t),e._zod.check=r=>{Vp(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),zs=v("$ZodCustomStringFormat",(e,t)=>{R.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),Or=v("$ZodNumber",(e,t)=>{A.init(e,t),e._zod.pattern=e._zod.bag.pattern??$r,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let i=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...i?{received:i}:{}}),r}}),Es=v("$ZodNumberFormat",(e,t)=>{Ra.init(e,t),Or.init(e,t)}),xn=v("$ZodBoolean",(e,t)=>{A.init(e,t),e._zod.pattern=Pa,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),zr=v("$ZodBigInt",(e,t)=>{A.init(e,t),e._zod.pattern=Da,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),Ds=v("$ZodBigIntFormat",(e,t)=>{La.init(e,t),zr.init(e,t)}),Ts=v("$ZodSymbol",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),Ps=v("$ZodUndefined",(e,t)=>{A.init(e,t),e._zod.pattern=Ca,e._zod.values=new Set([void 0]),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),As=v("$ZodNull",(e,t)=>{A.init(e,t),e._zod.pattern=Aa,e._zod.values=new Set([null]),e._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),Cs=v("$ZodAny",(e,t)=>{A.init(e,t),e._zod.parse=r=>r}),js=v("$ZodUnknown",(e,t)=>{A.init(e,t),e._zod.parse=r=>r}),Ns=v("$ZodNever",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),Us=v("$ZodVoid",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),Rs=v("$ZodDate",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:e}),r}});function zp(e,t,r){e.issues.length&&t.issues.push(...ie(r,e.issues)),t.value[r]=e.value}var Ls=v("$ZodArray",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let i=[];for(let a=0;a<n.length;a++){let s=n[a],c=t.element._zod.run({value:s,issues:[]},o);c instanceof Promise?i.push(c.then(u=>zp(u,r,a))):zp(c,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function Ir(e,t,r,o,n,i){let a=r in o;if(e.issues.length){if(n&&i&&!a)return;t.issues.push(...ie(r,e.issues))}if(!a&&!n){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?a&&(t.value[r]=void 0):t.value[r]=e.value}function Bp(e){let t=Object.keys(e.shape);for(let o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let r=ea(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function Gp(e,t,r,o,n,i){let a=[],s=n.keySet,c=n.catchall._zod,u=c.def.type,l=c.optin==="optional",f=c.optout==="optional";for(let p in t){if(p==="__proto__"||s.has(p))continue;if(u==="never"){a.push(p);continue}let _=c.run({value:t[p],issues:[]},o);_ instanceof Promise?e.push(_.then(b=>Ir(b,r,p,t,l,f))):Ir(_,r,p,t,l,f)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}var Hp=v("$ZodObject",(e,t)=>{if(A.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let c={...s};return Object.defineProperty(t,"shape",{value:c}),c}})}let o=gt(()=>Bp(t));j(e._zod,"propValues",()=>{let s=t.shape,c={};for(let u in s){let l=s[u]._zod;if(l.values){c[u]??(c[u]=new Set);for(let f of l.values)c[u].add(f)}}return c});let n=tt,i=t.catchall,a;e._zod.parse=(s,c)=>{a??(a=o.value);let u=s.value;if(!n(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),s;s.value={};let l=[],f=a.shape;for(let p of a.keys){let _=f[p],b=_._zod.optin==="optional",E=_._zod.optout==="optional",D=_._zod.run({value:u[p],issues:[]},c);D instanceof Promise?l.push(D.then(x=>Ir(x,s,p,u,b,E))):Ir(D,s,p,u,b,E)}return i?Gp(l,u,s,c,o.value,e):l.length?Promise.all(l).then(()=>s):s}}),Fs=v("$ZodObjectJIT",(e,t)=>{Hp.init(e,t);let r=e._zod.parse,o=gt(()=>Bp(t)),n=p=>{let _=new $n(["shape","payload","ctx"]),b=o.value,E=m=>{let d=sr(m);return`shape[${d}]._zod.run({ value: input[${d}], issues: [] }, ctx)`};_.write("const input = payload.value;");let D=Object.create(null),x=0;for(let m of b.keys)D[m]=`key_${x++}`;_.write("const newResult = {};");for(let m of b.keys){let d=D[m],h=sr(m),g=p[m],H=g?._zod?.optin==="optional",ve=g?._zod?.optout==="optional";_.write(`const ${d} = ${E(m)};`),H&&ve?_.write(`
168
168
  if (${d}.issues.length) {
169
169
  if (${h} in input) {
170
170
  payload.issues = payload.issues.concat(${d}.issues.map(iss => ({
@@ -223,15 +223,15 @@ source '${a.completionFile}'
223
223
  }
224
224
  }
225
225
 
226
- `)}_.write("payload.value = newResult;"),_.write("return payload;");let $=_.compile();return(m,d)=>$(p,m,d)},i,a=tt,s=!et.jitless,u=s&&Xo.value,l=t.catchall,f;e._zod.parse=(p,_)=>{f??(f=o.value);let b=p.value;return a(b)?s&&u&&_?.async===!1&&_.jitless!==!0?(i||(i=n(t.shape)),p=i(p,_),l?Bp([],b,p,_,f,e):p):r(p,_):(p.issues.push({expected:"object",code:"invalid_type",input:b,inst:e}),p)}});function zp(e,t,r,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let n=e.filter(i=>!He(i));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>ee(a,o,V())))}),t)}var bn=v("$ZodUnion",(e,t)=>{A.init(e,t),j(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),j(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),j(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),j(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){let o=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${o.map(n=>dn(n.source)).join("|")})$`)}});let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,n)=>{if(r)return r(o,n);let i=!1,a=[];for(let s of t.options){let c=s._zod.run({value:o.value,issues:[]},n);if(c instanceof Promise)a.push(c),i=!0;else{if(c.issues.length===0)return c;a.push(c)}}return i?Promise.all(a).then(s=>zp(s,o,e,n)):zp(a,o,e,n)}});function Ep(e,t,r,o){let n=e.filter(i=>i.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>ee(a,o,V())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var Zs=v("$ZodXor",(e,t)=>{bn.init(e,t),t.inclusive=!1;let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,n)=>{if(r)return r(o,n);let i=!1,a=[];for(let s of t.options){let c=s._zod.run({value:o.value,issues:[]},n);c instanceof Promise?(a.push(c),i=!0):a.push(c)}return i?Promise.all(a).then(s=>Ep(s,o,e,n)):Ep(a,o,e,n)}}),Ms=v("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,bn.init(e,t);let r=e._zod.parse;j(e._zod,"propValues",()=>{let n={};for(let i of t.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[s,c]of Object.entries(a)){n[s]||(n[s]=new Set);for(let u of c)n[s].add(u)}}return n});let o=gt(()=>{let n=t.options,i=new Map;for(let a of n){let s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let c of s){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,a)}}return i});e._zod.parse=(n,i)=>{let a=n.value;if(!tt(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let s=o.value.get(a?.[t.discriminator]);return s?s._zod.run(n,i):t.unionFallback||i.direction==="backward"?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:a,path:[t.discriminator],inst:e}),n)}}),Vs=v("$ZodIntersection",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>{let n=r.value,i=t.left._zod.run({value:n,issues:[]},o),a=t.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([c,u])=>Dp(r,c,u)):Dp(r,i,a)}});function ns(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ge(e)&&Ge(t)){let r=Object.keys(t),o=Object.keys(e).filter(i=>r.indexOf(i)!==-1),n={...e,...t};for(let i of o){let a=ns(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n[i]=a.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<e.length;o++){let n=e[o],i=t[o],a=ns(n,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Dp(e,t,r){let o=new Map,n;for(let s of t.issues)if(s.code==="unrecognized_keys"){n??(n=s);for(let c of s.keys)o.has(c)||o.set(c,{}),o.get(c).l=!0}else e.issues.push(s);for(let s of r.issues)if(s.code==="unrecognized_keys")for(let c of s.keys)o.has(c)||o.set(c,{}),o.get(c).r=!0;else e.issues.push(s);let i=[...o].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(i.length&&n&&e.issues.push({...n,keys:i}),He(e))return e;let a=ns(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var Er=v("$ZodTuple",(e,t)=>{A.init(e,t);let r=t.items;e._zod.parse=(o,n)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let a=[],s=Tp(r,"optin"),c=Tp(r,"optout");if(!t.rest){if(i.length<s)return o.issues.push({code:"too_small",minimum:s,inclusive:!0,input:i,inst:e,origin:"array"}),o;i.length>r.length&&o.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:i,inst:e,origin:"array"})}let u=new Array(r.length);for(let l=0;l<r.length;l++){let f=r[l]._zod.run({value:i[l],issues:[]},n);f instanceof Promise?a.push(f.then(p=>{u[l]=p})):u[l]=f}if(t.rest){let l=r.length-1,f=i.slice(r.length);for(let p of f){l++;let _=t.rest._zod.run({value:p,issues:[]},n);_ instanceof Promise?a.push(_.then(b=>Pp(b,o,l))):Pp(_,o,l)}}return a.length?Promise.all(a).then(()=>Ap(u,o,r,i,c)):Ap(u,o,r,i,c)}});function Tp(e,t){for(let r=e.length-1;r>=0;r--)if(e[r]._zod[t]!=="optional")return r+1;return 0}function Pp(e,t,r){e.issues.length&&t.issues.push(...ie(r,e.issues)),t.value[r]=e.value}function Ap(e,t,r,o,n){for(let i=0;i<r.length;i++){let a=e[i],s=i<o.length;if(a.issues.length){if(!s&&i>=n){t.value.length=i;break}t.issues.push(...ie(i,a.issues))}t.value[i]=a.value}for(let i=t.value.length-1;i>=o.length&&(r[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}var Bs=v("$ZodRecord",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Ge(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let i=[],a=t.keyType._zod.values;if(a){r.value={};let s=new Set;for(let u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){s.add(typeof u=="number"?u.toString():u);let l=t.keyType._zod.run({value:u,issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(_=>ee(_,o,V())),input:u,path:[u],inst:e});continue}let f=l.value,p=t.valueType._zod.run({value:n[u],issues:[]},o);p instanceof Promise?i.push(p.then(_=>{_.issues.length&&r.issues.push(...ie(u,_.issues)),r.value[f]=_.value})):(p.issues.length&&r.issues.push(...ie(u,p.issues)),r.value[f]=p.value)}let c;for(let u in n)s.has(u)||(c=c??[],c.push(u));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:c})}else{r.value={};for(let s of Reflect.ownKeys(n)){if(s==="__proto__"||!Object.prototype.propertyIsEnumerable.call(n,s))continue;let c=t.keyType._zod.run({value:s,issues:[]},o);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&$r.test(s)&&c.issues.length){let f=t.keyType._zod.run({value:Number(s),issues:[]},o);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");f.issues.length===0&&(c=f)}if(c.issues.length){t.mode==="loose"?r.value[s]=n[s]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(f=>ee(f,o,V())),input:s,path:[s],inst:e});continue}let l=t.valueType._zod.run({value:n[s],issues:[]},o);l instanceof Promise?i.push(l.then(f=>{f.issues.length&&r.issues.push(...ie(s,f.issues)),r.value[c.value]=f.value})):(l.issues.length&&r.issues.push(...ie(s,l.issues)),r.value[c.value]=l.value)}}return i.length?Promise.all(i).then(()=>r):r}}),Gs=v("$ZodMap",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let i=[];r.value=new Map;for(let[a,s]of n){let c=t.keyType._zod.run({value:a,issues:[]},o),u=t.valueType._zod.run({value:s,issues:[]},o);c instanceof Promise||u instanceof Promise?i.push(Promise.all([c,u]).then(([l,f])=>{Cp(l,f,r,a,n,e,o)})):Cp(c,u,r,a,n,e,o)}return i.length?Promise.all(i).then(()=>r):r}});function Cp(e,t,r,o,n,i,a){e.issues.length&&(pn.has(typeof o)?r.issues.push(...ie(o,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:e.issues.map(s=>ee(s,a,V()))})),t.issues.length&&(pn.has(typeof o)?r.issues.push(...ie(o,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:t.issues.map(s=>ee(s,a,V()))})),r.value.set(e.value,t.value)}var Hs=v("$ZodSet",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let a of n){let s=t.valueType._zod.run({value:a,issues:[]},o);s instanceof Promise?i.push(s.then(c=>jp(c,r))):jp(s,r)}return i.length?Promise.all(i).then(()=>r):r}});function jp(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Js=v("$ZodEnum",(e,t)=>{A.init(e,t);let r=ln(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(n=>pn.has(typeof n)).map(n=>typeof n=="string"?he(n):n.toString()).join("|")})$`),e._zod.parse=(n,i)=>{let a=n.value;return o.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n}}),Ws=v("$ZodLiteral",(e,t)=>{if(A.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?he(o):o?he(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,n)=>{let i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),qs=v("$ZodFile",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),Ks=v("$ZodTransform",(e,t)=>{A.init(e,t),e._zod.optin="optional",e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Me(e.constructor.name);let n=t.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r.fallback=!0,r));if(n instanceof Promise)throw new _e;return r.value=n,r.fallback=!0,r}});function Np(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var Dr=v("$ZodOptional",(e,t)=>{A.init(e,t),e._zod.optin="optional",e._zod.optout="optional",j(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),j(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${dn(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(t.innerType._zod.optin==="optional"){let n=r.value,i=t.innerType._zod.run(r,o);return i instanceof Promise?i.then(a=>Np(a,n)):Np(i,n)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),Xs=v("$ZodExactOptional",(e,t)=>{Dr.init(e,t),j(e._zod,"values",()=>t.innerType._zod.values),j(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),Ys=v("$ZodNullable",(e,t)=>{A.init(e,t),j(e._zod,"optin",()=>t.innerType._zod.optin),j(e._zod,"optout",()=>t.innerType._zod.optout),j(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${dn(r.source)}|null)$`):void 0}),j(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:t.innerType._zod.run(r,o)}),Qs=v("$ZodDefault",(e,t)=>{A.init(e,t),e._zod.optin="optional",j(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>Up(i,t)):Up(n,t)}});function Up(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var ec=v("$ZodPrefault",(e,t)=>{A.init(e,t),e._zod.optin="optional",j(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,o))}),tc=v("$ZodNonOptional",(e,t)=>{A.init(e,t),j(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,o)=>{let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>Rp(i,e)):Rp(n,e)}});function Rp(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var nc=v("$ZodSuccess",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Me("ZodSuccess");let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),rc=v("$ZodCatch",(e,t)=>{A.init(e,t),e._zod.optin="optional",j(e._zod,"optout",()=>t.innerType._zod.optout),j(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>ee(a,o,V()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(i=>ee(i,o,V()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),ic=v("$ZodNaN",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),Tr=v("$ZodPipe",(e,t)=>{A.init(e,t),j(e._zod,"values",()=>t.in._zod.values),j(e._zod,"optin",()=>t.in._zod.optin),j(e._zod,"optout",()=>t.out._zod.optout),j(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>Sr(a,t.in,o)):Sr(i,t.in,o)}let n=t.in._zod.run(r,o);return n instanceof Promise?n.then(i=>Sr(i,t.out,o)):Sr(n,t.out,o)}});function Sr(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}var Sn=v("$ZodCodec",(e,t)=>{A.init(e,t),j(e._zod,"values",()=>t.in._zod.values),j(e._zod,"optin",()=>t.in._zod.optin),j(e._zod,"optout",()=>t.out._zod.optout),j(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if((o.direction||"forward")==="forward"){let i=t.in._zod.run(r,o);return i instanceof Promise?i.then(a=>kr(a,t,o)):kr(i,t,o)}else{let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>kr(a,t,o)):kr(i,t,o)}}});function kr(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(i=>wr(e,i,t.out,r)):wr(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(i=>wr(e,i,t.in,r)):wr(e,n,t.in,r)}}function wr(e,t,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},o)}var oc=v("$ZodPreprocess",(e,t)=>{Tr.init(e,t)}),ac=v("$ZodReadonly",(e,t)=>{A.init(e,t),j(e._zod,"propValues",()=>t.innerType._zod.propValues),j(e._zod,"values",()=>t.innerType._zod.values),j(e._zod,"optin",()=>t.innerType?._zod?.optin),j(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(Lp):Lp(n)}});function Lp(e){return e.value=Object.freeze(e.value),e}var sc=v("$ZodTemplateLiteral",(e,t)=>{A.init(e,t);let r=[];for(let o of t.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 n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(i,a))}else if(o===null||Qo.has(typeof o))r.push(he(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),cc=v("$ZodFunction",(e,t)=>(A.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...o){let n=e._def.input?ur(e._def.input,o):o,i=Reflect.apply(r,this,n);return e._def.output?ur(e._def.output,i):i}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let n=e._def.input?await lr(e._def.input,o):o,i=await Reflect.apply(r,this,n);return e._def.output?await lr(e._def.output,i):i}},e._zod.parse=(r,o)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let o=e.constructor;return Array.isArray(r[0])?new o({type:"function",input:new Er({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new o({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:r})},e)),uc=v("$ZodPromise",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),lc=v("$ZodLazy",(e,t)=>{A.init(e,t),j(e._zod,"innerType",()=>{let r=t;return r._cachedInner||(r._cachedInner=t.getter()),r._cachedInner}),j(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),j(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),j(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),j(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),dc=v("$ZodCustom",(e,t)=>{F.init(e,t),A.init(e,t),e._zod.parse=(r,o)=>r,e._zod.check=r=>{let o=r.value,n=t.fn(o);if(n instanceof Promise)return n.then(i=>Fp(i,r,o,e));Fp(n,r,o,e)}});function Fp(e,t,r,o){if(!e){let n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),t.issues.push(vt(n))}}var wn={};pe(wn,{ar:()=>Hp,az:()=>Jp,be:()=>qp,bg:()=>Kp,ca:()=>Xp,cs:()=>Yp,da:()=>Qp,de:()=>em,el:()=>tm,en:()=>Pr,eo:()=>nm,es:()=>rm,fa:()=>im,fi:()=>om,fr:()=>am,frCA:()=>sm,he:()=>cm,hr:()=>um,hu:()=>lm,hy:()=>pm,id:()=>mm,is:()=>fm,it:()=>hm,ja:()=>gm,ka:()=>vm,kh:()=>_m,km:()=>Ar,ko:()=>ym,lt:()=>xm,mk:()=>bm,ms:()=>Sm,nl:()=>km,no:()=>wm,ota:()=>Im,pl:()=>zm,ps:()=>Om,pt:()=>Em,ro:()=>Dm,ru:()=>Pm,sl:()=>Am,sv:()=>Cm,ta:()=>jm,th:()=>Nm,tr:()=>Um,ua:()=>Rm,uk:()=>Cr,ur:()=>Lm,uz:()=>Fm,vi:()=>Zm,yo:()=>Bm,zhCN:()=>Mm,zhTW:()=>Vm});var Ny=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 n.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 ${S(n.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: ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.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 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;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 "${n.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}`:`${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${y(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.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 ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function Hp(){return{localeError:Ny()}}var Uy=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${s}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${S(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${y(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function Jp(){return{localeError:Uy()}}function Wp(e,t,r,o){let n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}var Ry=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.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 n.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 ${S(n.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 ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),c=Wp(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 ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${n.maximum.toString()} ${c}`}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 ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),c=Wp(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 ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${n.minimum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${y(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.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 ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function qp(){return{localeError:Ry()}}var Ly=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.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 n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${S(n.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 ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.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 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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} ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${y(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.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 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function Kp(){return{localeError:Ly()}}var Fy=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${s}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${S(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${y(n.values," o ")}`;case"too_big":{let i=n.inclusive?"com a m\xE0xim":"menys de",a=t(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${i} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${i} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}};function Xp(){return{localeError:Fy()}}var Zy=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${s}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${S(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${y(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}};function Yp(){return{localeError:Zy()}}var My=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${s}`:`Ugyldigt input: forventede ${i}, fik ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${S(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),s=o[n.origin]??n.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${i} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),s=o[n.origin]??n.origin;return a?`For lille: forventede ${s} ${a.verb} ${i} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${y(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}};function Qp(){return{localeError:My()}}var Vy=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${s}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${S(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ist`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ist`}case"invalid_format":{let i=n;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: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${y(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}};function em(){return{localeError:Vy()}}var By=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return typeof n.expected=="string"&&/^[A-Z]/.test(n.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 ${n.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 n.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 ${S(n.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 ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${n.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 ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${n.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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: ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${n.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${n.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${y(n.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${n.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 ${n.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function tm(){return{localeError:By()}}var Gy=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return`Invalid input: expected ${i}, received ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${S(n.values[0])}`:`Invalid option: expected one of ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`Invalid discriminator value. Expected ${n.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function Pr(){return{localeError:Gy()}}var Hy=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${s}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${S(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${i}${n.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function nm(){return{localeError:Hy()}}var Jy=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${S(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),s=o[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),s=o[n.origin]??n.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${i}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function rm(){return{localeError:Jy()}}var Wy=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.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 n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${S(n.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 ${y(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=n;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`:`${r[i.format]??n.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 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${y(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.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 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function im(){return{localeError:Wy()}}var qy=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${s}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${S(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${y(n.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 om(){return{localeError:qy()}}var Ky=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${s} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${S(n.values[0])} attendu`:`Option invalide : une valeur parmi ${y(n.values,"|")} attendue`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Trop grand : ${o[n.origin]??"valeur"} doit ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${o[n.origin]??"valeur"} doit \xEAtre ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Trop petit : ${o[n.origin]??"valeur"} doit ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${o[n.origin]??"valeur"} doit \xEAtre ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${y(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function am(){return{localeError:Ky()}}var Xy=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${s}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${S(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u2264":"<",a=t(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${i}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u2265":">",a=t(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${y(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function sm(){return{localeError:Xy()}}var Yy=()=>{let e={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"}},t={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"}},r=u=>u?e[u]:void 0,o=u=>{let l=r(u);return l?l.label:u??e.unknown.label},n=u=>`\u05D4${o(u)}`,i=u=>(r(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=u=>u?t[u]??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"}},c={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{let l=u.expected,f=c[l??""]??o(l),p=w(u.input),_=c[p]??e[p]?.label??p;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${_}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${f}, \u05D4\u05EA\u05E7\u05D1\u05DC ${_}`}case"invalid_value":{if(u.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 ${S(u.values[0])}`;let l=u.values.map(_=>S(_));if(u.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 ${l[0]} \u05D0\u05D5 ${l[1]}`;let f=l[l.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 ${l.slice(0,-1).join(", ")} \u05D0\u05D5 ${f}`}case"too_big":{let l=a(u.origin),f=n(u.origin??"value");if(u.origin==="string")return`${l?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${l?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let b=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${b}`}if(u.origin==="array"||u.origin==="set"){let b=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",E=u.inclusive?`${u.maximum} ${l?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${l?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} ${b} \u05DC\u05D4\u05DB\u05D9\u05DC ${E}`.trim()}let p=u.inclusive?"<=":"<",_=i(u.origin??"value");return l?.unit?`${l.longLabel} \u05DE\u05D3\u05D9: ${f} ${_} ${p}${u.maximum.toString()} ${l.unit}`:`${l?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${f} ${_} ${p}${u.maximum.toString()}`}case"too_small":{let l=a(u.origin),f=n(u.origin??"value");if(u.origin==="string")return`${l?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${l?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let b=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${b}`}if(u.origin==="array"||u.origin==="set"){let b=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let D=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${b} \u05DC\u05D4\u05DB\u05D9\u05DC ${D}`}let E=u.inclusive?`${u.minimum} ${l?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${l?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${b} \u05DC\u05D4\u05DB\u05D9\u05DC ${E}`.trim()}let p=u.inclusive?">=":">",_=i(u.origin??"value");return l?.unit?`${l.shortLabel} \u05DE\u05D3\u05D9: ${f} ${_} ${p}${u.minimum.toString()} ${l.unit}`:`${l?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${f} ${_} ${p}${u.minimum.toString()}`}case"invalid_format":{let l=u;if(l.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${l.prefix}"`;if(l.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${l.suffix}"`;if(l.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${l.includes}"`;if(l.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 ${l.pattern}`;let f=s[l.format],p=f?.label??l.format,b=(f?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${p} \u05DC\u05D0 ${b}`}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 ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${y(u.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${n(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function cm(){return{localeError:Yy()}}var Qy=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${n.expected}, a primljeno je ${s}`:`Neispravan unos: o\u010Dekuje se ${i}, a primljeno je ${s}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${S(n.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),s=o[n.origin]??n.origin;return a?`Preveliko: o\u010Dekivano da ${s??"vrijednost"} ima ${i}${n.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${s??"vrijednost"} bude ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),s=o[n.origin]??n.origin;return a?`Premalo: o\u010Dekivano da ${s} ima ${i}${n.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${s} bude ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${n.divisor}`;case"unrecognized_keys":return`Neprepoznat${n.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${y(n.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${o[n.origin]??n.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[n.origin]??n.origin}`;default:return"Neispravan unos"}}};function um(){return{localeError:Qy()}}var e$=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${S(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${n.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${i}${n.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function lm(){return{localeError:e$()}}function dm(e,t,r){return Math.abs(e)===1?t:r}function St(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}var t$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 n.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 ${S(n.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 ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),c=dm(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 ${St(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.maximum.toString()} ${c}`}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 ${St(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),c=dm(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 ${St(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.minimum.toString()} ${c}`}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 ${St(n.origin)} \u056C\u056B\u0576\u056B ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.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 ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${y(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${St(n.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 ${St(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function pm(){return{localeError:t$()}}var n$=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${i}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${S(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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}`:`${r[i.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function mm(){return{localeError:n$()}}var r$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${S(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${i}${n.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${i}${n.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${y(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}};function fm(){return{localeError:r$()}}var i$=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${s}`:`Input non valido: atteso ${i}, ricevuto ${s}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${S(n.values[0])}`:`Opzione non valida: atteso uno tra ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${i}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${i}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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: ${r[i.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${y(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function hm(){return{localeError:i$()}}var o$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.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 n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${S(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${y(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(n.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${a.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(n.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${a.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=n;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${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.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${n.keys.length>1?"\u7FA4":""}: ${y(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function gm(){return{localeError:o$()}}var a$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 n.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 ${S(n.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 ${y(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${i}${n.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 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.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 ${n.origin} ${a.verb} ${i}${n.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 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.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 ${n.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${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${y(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.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 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function vm(){return{localeError:a$()}}var s$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 n.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 ${S(n.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 ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${y(n.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 ${n.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 ${n.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 Ar(){return{localeError:s$()}}function _m(){return Ar()}var c$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.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 n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${S(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${y(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),c=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${c} ${i}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${i}${a}`}case"too_small":{let i=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),c=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${c} ${i}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${i}${a}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${y(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function ym(){return{localeError:c$()}}var kn=e=>e.charAt(0).toUpperCase()+e.slice(1);function $m(e){let t=Math.abs(e),r=t%10,o=t%100;return o>=11&&o<=19||r===0?"many":r===1?"one":"few"}var u$=()=>{let e={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 t(n,i,a,s){let c=e[n]??null;return c===null?c:{unit:c.unit[i],verb:c.verb[s][a?"inclusive":"notInclusive"]}}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${i}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${S(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${y(n.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[n.origin]??n.origin,a=t(n.origin,$m(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${kn(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${kn(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let i=o[n.origin]??n.origin,a=t(n.origin,$m(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${kn(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${kn(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.minimum.toString()} ${a?.unit}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${y(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[n.origin]??n.origin;return`${kn(i??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function xm(){return{localeError:u$()}}var l$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.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 n.values.length===1?`Invalid input: expected ${S(n.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 ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.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 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`${n.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"}: ${y(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.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 ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function bm(){return{localeError:l$()}}var d$=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${s}`:`Input tidak sah: dijangka ${i}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${S(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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}`:`${r[i.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${y(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function Sm(){return{localeError:d$()}}var p$=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${i}, ontving ${s}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${S(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),s=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} is`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),s=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} is`}case"invalid_format":{let i=n;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: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function km(){return{localeError:p$()}}var m$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${s}`:`Ugyldig input: forventet ${i}, fikk ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${S(n.values[0])}`:`Ugyldig valg: forventet en av ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${y(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function wm(){return{localeError:m$()}}var f$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${S(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function Im(){return{localeError:f$()}}var h$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.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 n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${S(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${y(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=n;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`:`${r[i.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${y(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.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 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function Om(){return{localeError:h$()}}var g$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${s}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${S(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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) ${r[i.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function zm(){return{localeError:g$()}}var v$=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${S(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${i}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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}`:`${r[i.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}};function Em(){return{localeError:v$()}}var _$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${i}, primit ${s}`}case"invalid_value":return n.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${S(n.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} s\u0103 fie ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Prea mic: a\u0219teptat ca ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${n.origin} s\u0103 fie ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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: ${r[i.format]??n.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${n.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${y(n.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${n.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${n.origin}`;default:return"Intrare invalid\u0103"}}};function Dm(){return{localeError:_$()}}function Tm(e,t,r,o){let n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}var y$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.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 n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${S(n.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 ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),c=Tm(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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.maximum.toString()} ${c}`}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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),c=Tm(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 ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.minimum.toString()} ${c}`}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 ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${y(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.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 ${n.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 Pm(){return{localeError:y$()}}var $$=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${s}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${S(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${i}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${i}${n.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${y(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function Am(){return{localeError:$$()}}var x$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${s}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${S(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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) ${r[i.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${y(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function Cm(){return{localeError:x$()}}var b$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 n.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 ${S(n.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 ${y(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.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 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.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 ${n.origin} ${i}${n.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 ${n.origin} ${i}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.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${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${y(n.keys,", ")}`;case"invalid_key":return`${n.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`${n.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 jm(){return{localeError:b$()}}var S$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${S(n.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 ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;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: ${r[i.format]??n.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 ${n.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: ${y(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.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 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function Nm(){return{localeError:S$()}}var k$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${S(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${y(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function Um(){return{localeError:k$()}}var w$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 n.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 ${S(n.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 ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${i}${n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.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 ${n.origin} ${a.verb} ${i}${n.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 ${n.origin} \u0431\u0443\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${y(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.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 ${n.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 Cr(){return{localeError:w$()}}function Rm(){return Cr()}var I$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.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 n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${S(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${y(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${n.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: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${i}${n.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${i}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.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${n.keys.length>1?"\u0632":""}: ${y(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function Lm(){return{localeError:I$()}}var O$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${s}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${S(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${y(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function Fm(){return{localeError:O$()}}var z$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.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 n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${S(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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}`:`${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${y(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.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 ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function Zm(){return{localeError:z$()}}var E$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.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 n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${S(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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${r[i.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${y(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function Mm(){return{localeError:E$()}}var D$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.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 n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${S(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${y(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function Vm(){return{localeError:D$()}}var T$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.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 n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${S(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${a.verb} ${i}${n.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.maximum}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${a.verb} ${i}${n.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.minimum}`}case"invalid_format":{let i=n;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: ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${y(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.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 ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function Bm(){return{localeError:T$()}}var Gm,pc=Symbol("ZodOutput"),mc=Symbol("ZodInput"),jr=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let o=r[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let o={...this.get(r)??{}};delete o.id;let n={...o,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Nr(){return new jr}(Gm=globalThis).__zod_globalRegistry??(Gm.__zod_globalRegistry=Nr());var K=globalThis.__zod_globalRegistry;function fc(e,t){return new e({type:"string",...O(t)})}function hc(e,t){return new e({type:"string",coerce:!0,...O(t)})}function Ur(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...O(t)})}function In(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...O(t)})}function Rr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...O(t)})}function Lr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...O(t)})}function Fr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...O(t)})}function Zr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...O(t)})}function On(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...O(t)})}function Mr(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...O(t)})}function Vr(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...O(t)})}function Br(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...O(t)})}function Gr(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...O(t)})}function Hr(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...O(t)})}function Jr(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...O(t)})}function Wr(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...O(t)})}function qr(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...O(t)})}function Kr(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...O(t)})}function gc(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...O(t)})}function Xr(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...O(t)})}function Yr(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...O(t)})}function Qr(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...O(t)})}function ei(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...O(t)})}function ti(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...O(t)})}function ni(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...O(t)})}var vc={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function _c(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...O(t)})}function yc(e,t){return new e({type:"string",format:"date",check:"string_format",...O(t)})}function $c(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...O(t)})}function xc(e,t){return new e({type:"string",format:"duration",check:"string_format",...O(t)})}function bc(e,t){return new e({type:"number",checks:[],...O(t)})}function Sc(e,t){return new e({type:"number",coerce:!0,checks:[],...O(t)})}function kc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...O(t)})}function wc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...O(t)})}function Ic(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...O(t)})}function Oc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...O(t)})}function zc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...O(t)})}function Ec(e,t){return new e({type:"boolean",...O(t)})}function Dc(e,t){return new e({type:"boolean",coerce:!0,...O(t)})}function Tc(e,t){return new e({type:"bigint",...O(t)})}function Pc(e,t){return new e({type:"bigint",coerce:!0,...O(t)})}function Ac(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...O(t)})}function Cc(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...O(t)})}function jc(e,t){return new e({type:"symbol",...O(t)})}function Nc(e,t){return new e({type:"undefined",...O(t)})}function Uc(e,t){return new e({type:"null",...O(t)})}function Rc(e){return new e({type:"any"})}function Lc(e){return new e({type:"unknown"})}function Fc(e,t){return new e({type:"never",...O(t)})}function Zc(e,t){return new e({type:"void",...O(t)})}function Mc(e,t){return new e({type:"date",...O(t)})}function Vc(e,t){return new e({type:"date",coerce:!0,...O(t)})}function Bc(e,t){return new e({type:"nan",...O(t)})}function Se(e,t){return new xr({check:"less_than",...O(t),value:e,inclusive:!1})}function le(e,t){return new xr({check:"less_than",...O(t),value:e,inclusive:!0})}function ke(e,t){return new br({check:"greater_than",...O(t),value:e,inclusive:!1})}function te(e,t){return new br({check:"greater_than",...O(t),value:e,inclusive:!0})}function ri(e){return ke(0,e)}function ii(e){return Se(0,e)}function oi(e){return le(0,e)}function ai(e){return te(0,e)}function Je(e,t){return new Ua({check:"multiple_of",...O(t),value:e})}function We(e,t){return new Fa({check:"max_size",...O(t),maximum:e})}function we(e,t){return new Za({check:"min_size",...O(t),minimum:e})}function it(e,t){return new Ma({check:"size_equals",...O(t),size:e})}function ot(e,t){return new Va({check:"max_length",...O(t),maximum:e})}function Ae(e,t){return new Ba({check:"min_length",...O(t),minimum:e})}function at(e,t){return new Ga({check:"length_equals",...O(t),length:e})}function kt(e,t){return new Ha({check:"string_format",format:"regex",...O(t),pattern:e})}function wt(e){return new Ja({check:"string_format",format:"lowercase",...O(e)})}function It(e){return new Wa({check:"string_format",format:"uppercase",...O(e)})}function Ot(e,t){return new qa({check:"string_format",format:"includes",...O(t),includes:e})}function zt(e,t){return new Ka({check:"string_format",format:"starts_with",...O(t),prefix:e})}function Et(e,t){return new Xa({check:"string_format",format:"ends_with",...O(t),suffix:e})}function si(e,t,r){return new Ya({check:"property",property:e,schema:t,...O(r)})}function Dt(e,t){return new Qa({check:"mime_type",mime:e,...O(t)})}function ye(e){return new es({check:"overwrite",tx:e})}function Tt(e){return ye(t=>t.normalize(e))}function Pt(){return ye(e=>e.trim())}function At(){return ye(e=>e.toLowerCase())}function Ct(){return ye(e=>e.toUpperCase())}function jt(){return ye(e=>Ko(e))}function Gc(e,t,r){return new e({type:"array",element:t,...O(r)})}function A$(e,t,r){return new e({type:"union",options:t,...O(r)})}function C$(e,t,r){return new e({type:"union",options:t,inclusive:!1,...O(r)})}function j$(e,t,r,o){return new e({type:"union",options:r,discriminator:t,...O(o)})}function N$(e,t,r){return new e({type:"intersection",left:t,right:r})}function U$(e,t,r,o){let n=r instanceof A,i=n?o:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...O(i)})}function R$(e,t,r,o){return new e({type:"record",keyType:t,valueType:r,...O(o)})}function L$(e,t,r,o){return new e({type:"map",keyType:t,valueType:r,...O(o)})}function F$(e,t,r){return new e({type:"set",valueType:t,...O(r)})}function Z$(e,t,r){let o=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:o,...O(r)})}function M$(e,t,r){return new e({type:"enum",entries:t,...O(r)})}function V$(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...O(r)})}function Hc(e,t){return new e({type:"file",...O(t)})}function B$(e,t){return new e({type:"transform",transform:t})}function G$(e,t){return new e({type:"optional",innerType:t})}function H$(e,t){return new e({type:"nullable",innerType:t})}function J$(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():Yo(r)}})}function W$(e,t,r){return new e({type:"nonoptional",innerType:t,...O(r)})}function q$(e,t){return new e({type:"success",innerType:t})}function K$(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function X$(e,t,r){return new e({type:"pipe",in:t,out:r})}function Y$(e,t){return new e({type:"readonly",innerType:t})}function Q$(e,t,r){return new e({type:"template_literal",parts:t,...O(r)})}function ex(e,t){return new e({type:"lazy",getter:t})}function tx(e,t){return new e({type:"promise",innerType:t})}function Jc(e,t,r){let o=O(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function Wc(e,t,r){return new e({type:"custom",check:"custom",fn:t,...O(r)})}function qc(e,t){let r=Hm(o=>(o.addIssue=n=>{if(typeof n=="string")o.issues.push(vt(n,o.value,r._zod.def));else{let i=n;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=r),i.continue??(i.continue=!r._zod.def.abort),o.issues.push(vt(i))}},e(o.value,o)),t);return r}function Hm(e,t){let r=new F({check:"custom",...O(t)});return r._zod.check=e,r}function Kc(e){let t=new F({check:"describe"});return t._zod.onattach=[r=>{let o=K.get(r)??{};K.add(r,{...o,description:e})}],t._zod.check=()=>{},t}function Xc(e){let t=new F({check:"meta"});return t._zod.onattach=[r=>{let o=K.get(r)??{};K.add(r,{...o,...e})}],t._zod.check=()=>{},t}function Yc(e,t){let r=O(t),o=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(_=>typeof _=="string"?_.toLowerCase():_),n=n.map(_=>typeof _=="string"?_.toLowerCase():_));let i=new Set(o),a=new Set(n),s=e.Codec??Sn,c=e.Boolean??xn,u=e.String??rt,l=new u({type:"string",error:r.error}),f=new c({type:"boolean",error:r.error}),p=new s({type:"pipe",in:l,out:f,transform:((_,b)=>{let E=_;return r.case!=="sensitive"&&(E=E.toLowerCase()),i.has(E)?!0:a.has(E)?!1:(b.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:b.value,inst:p,continue:!1}),{})}),reverseTransform:((_,b)=>_===!0?o[0]||"true":n[0]||"false"),error:r.error});return p}function Nt(e,t,r,o={}){let n=O(o),i={...O(o),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(i.pattern=r),new e(i)}function qe(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??K,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function U(e,t,r={path:[],schemaPath:[]}){var o;let n=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let l={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,l);else{let p=a.schema,_=t.processors[n.type];if(!_)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);_(e,t,p,l)}let f=e._zod.parent;f&&(a.ref||(a.ref=f),U(f,t,l),t.seen.get(f).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&ne(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function Ke(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let c=o.get(s);if(c&&c!==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 n=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let f=e.external.registry.get(a[0])?.id,p=e.external.uri??(b=>b);if(f)return{ref:p(f)};let _=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=_,{defId:_,ref:`${p("__shared")}#/${s}/${_}`}}if(a[1]===r)return{ref:"#"};let u=`#/${s}/`,l=a[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:u+l}},i=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:c,defId:u}=n(a);s.def={...s.schema},u&&(s.defId=u);let l=s.schema;for(let f in l)delete l[f];l.$ref=c};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
226
+ `)}_.write("payload.value = newResult;"),_.write("return payload;");let $=_.compile();return(m,d)=>$(p,m,d)},i,a=tt,s=!et.jitless,u=s&&Xo.value,l=t.catchall,f;e._zod.parse=(p,_)=>{f??(f=o.value);let b=p.value;return a(b)?s&&u&&_?.async===!1&&_.jitless!==!0?(i||(i=n(t.shape)),p=i(p,_),l?Gp([],b,p,_,f,e):p):r(p,_):(p.issues.push({expected:"object",code:"invalid_type",input:b,inst:e}),p)}});function Ep(e,t,r,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let n=e.filter(i=>!He(i));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>ee(a,o,V())))}),t)}var bn=v("$ZodUnion",(e,t)=>{A.init(e,t),j(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),j(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),j(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),j(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){let o=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${o.map(n=>dn(n.source)).join("|")})$`)}});let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,n)=>{if(r)return r(o,n);let i=!1,a=[];for(let s of t.options){let c=s._zod.run({value:o.value,issues:[]},n);if(c instanceof Promise)a.push(c),i=!0;else{if(c.issues.length===0)return c;a.push(c)}}return i?Promise.all(a).then(s=>Ep(s,o,e,n)):Ep(a,o,e,n)}});function Dp(e,t,r,o){let n=e.filter(i=>i.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>ee(a,o,V())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var Zs=v("$ZodXor",(e,t)=>{bn.init(e,t),t.inclusive=!1;let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,n)=>{if(r)return r(o,n);let i=!1,a=[];for(let s of t.options){let c=s._zod.run({value:o.value,issues:[]},n);c instanceof Promise?(a.push(c),i=!0):a.push(c)}return i?Promise.all(a).then(s=>Dp(s,o,e,n)):Dp(a,o,e,n)}}),Ms=v("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,bn.init(e,t);let r=e._zod.parse;j(e._zod,"propValues",()=>{let n={};for(let i of t.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[s,c]of Object.entries(a)){n[s]||(n[s]=new Set);for(let u of c)n[s].add(u)}}return n});let o=gt(()=>{let n=t.options,i=new Map;for(let a of n){let s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let c of s){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,a)}}return i});e._zod.parse=(n,i)=>{let a=n.value;if(!tt(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let s=o.value.get(a?.[t.discriminator]);return s?s._zod.run(n,i):t.unionFallback||i.direction==="backward"?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:a,path:[t.discriminator],inst:e}),n)}}),Vs=v("$ZodIntersection",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>{let n=r.value,i=t.left._zod.run({value:n,issues:[]},o),a=t.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([c,u])=>Tp(r,c,u)):Tp(r,i,a)}});function ns(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ge(e)&&Ge(t)){let r=Object.keys(t),o=Object.keys(e).filter(i=>r.indexOf(i)!==-1),n={...e,...t};for(let i of o){let a=ns(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n[i]=a.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<e.length;o++){let n=e[o],i=t[o],a=ns(n,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Tp(e,t,r){let o=new Map,n;for(let s of t.issues)if(s.code==="unrecognized_keys"){n??(n=s);for(let c of s.keys)o.has(c)||o.set(c,{}),o.get(c).l=!0}else e.issues.push(s);for(let s of r.issues)if(s.code==="unrecognized_keys")for(let c of s.keys)o.has(c)||o.set(c,{}),o.get(c).r=!0;else e.issues.push(s);let i=[...o].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(i.length&&n&&e.issues.push({...n,keys:i}),He(e))return e;let a=ns(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var Er=v("$ZodTuple",(e,t)=>{A.init(e,t);let r=t.items;e._zod.parse=(o,n)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let a=[],s=Pp(r,"optin"),c=Pp(r,"optout");if(!t.rest){if(i.length<s)return o.issues.push({code:"too_small",minimum:s,inclusive:!0,input:i,inst:e,origin:"array"}),o;i.length>r.length&&o.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:i,inst:e,origin:"array"})}let u=new Array(r.length);for(let l=0;l<r.length;l++){let f=r[l]._zod.run({value:i[l],issues:[]},n);f instanceof Promise?a.push(f.then(p=>{u[l]=p})):u[l]=f}if(t.rest){let l=r.length-1,f=i.slice(r.length);for(let p of f){l++;let _=t.rest._zod.run({value:p,issues:[]},n);_ instanceof Promise?a.push(_.then(b=>Ap(b,o,l))):Ap(_,o,l)}}return a.length?Promise.all(a).then(()=>Cp(u,o,r,i,c)):Cp(u,o,r,i,c)}});function Pp(e,t){for(let r=e.length-1;r>=0;r--)if(e[r]._zod[t]!=="optional")return r+1;return 0}function Ap(e,t,r){e.issues.length&&t.issues.push(...ie(r,e.issues)),t.value[r]=e.value}function Cp(e,t,r,o,n){for(let i=0;i<r.length;i++){let a=e[i],s=i<o.length;if(a.issues.length){if(!s&&i>=n){t.value.length=i;break}t.issues.push(...ie(i,a.issues))}t.value[i]=a.value}for(let i=t.value.length-1;i>=o.length&&(r[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}var Bs=v("$ZodRecord",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Ge(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let i=[],a=t.keyType._zod.values;if(a){r.value={};let s=new Set;for(let u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){s.add(typeof u=="number"?u.toString():u);let l=t.keyType._zod.run({value:u,issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(_=>ee(_,o,V())),input:u,path:[u],inst:e});continue}let f=l.value,p=t.valueType._zod.run({value:n[u],issues:[]},o);p instanceof Promise?i.push(p.then(_=>{_.issues.length&&r.issues.push(...ie(u,_.issues)),r.value[f]=_.value})):(p.issues.length&&r.issues.push(...ie(u,p.issues)),r.value[f]=p.value)}let c;for(let u in n)s.has(u)||(c=c??[],c.push(u));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:c})}else{r.value={};for(let s of Reflect.ownKeys(n)){if(s==="__proto__"||!Object.prototype.propertyIsEnumerable.call(n,s))continue;let c=t.keyType._zod.run({value:s,issues:[]},o);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&$r.test(s)&&c.issues.length){let f=t.keyType._zod.run({value:Number(s),issues:[]},o);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");f.issues.length===0&&(c=f)}if(c.issues.length){t.mode==="loose"?r.value[s]=n[s]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(f=>ee(f,o,V())),input:s,path:[s],inst:e});continue}let l=t.valueType._zod.run({value:n[s],issues:[]},o);l instanceof Promise?i.push(l.then(f=>{f.issues.length&&r.issues.push(...ie(s,f.issues)),r.value[c.value]=f.value})):(l.issues.length&&r.issues.push(...ie(s,l.issues)),r.value[c.value]=l.value)}}return i.length?Promise.all(i).then(()=>r):r}}),Gs=v("$ZodMap",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let i=[];r.value=new Map;for(let[a,s]of n){let c=t.keyType._zod.run({value:a,issues:[]},o),u=t.valueType._zod.run({value:s,issues:[]},o);c instanceof Promise||u instanceof Promise?i.push(Promise.all([c,u]).then(([l,f])=>{jp(l,f,r,a,n,e,o)})):jp(c,u,r,a,n,e,o)}return i.length?Promise.all(i).then(()=>r):r}});function jp(e,t,r,o,n,i,a){e.issues.length&&(pn.has(typeof o)?r.issues.push(...ie(o,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:e.issues.map(s=>ee(s,a,V()))})),t.issues.length&&(pn.has(typeof o)?r.issues.push(...ie(o,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:t.issues.map(s=>ee(s,a,V()))})),r.value.set(e.value,t.value)}var Hs=v("$ZodSet",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let a of n){let s=t.valueType._zod.run({value:a,issues:[]},o);s instanceof Promise?i.push(s.then(c=>Np(c,r))):Np(s,r)}return i.length?Promise.all(i).then(()=>r):r}});function Np(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Js=v("$ZodEnum",(e,t)=>{A.init(e,t);let r=ln(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(n=>pn.has(typeof n)).map(n=>typeof n=="string"?he(n):n.toString()).join("|")})$`),e._zod.parse=(n,i)=>{let a=n.value;return o.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n}}),Ws=v("$ZodLiteral",(e,t)=>{if(A.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?he(o):o?he(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,n)=>{let i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),qs=v("$ZodFile",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),Ks=v("$ZodTransform",(e,t)=>{A.init(e,t),e._zod.optin="optional",e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Me(e.constructor.name);let n=t.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r.fallback=!0,r));if(n instanceof Promise)throw new _e;return r.value=n,r.fallback=!0,r}});function Up(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var Dr=v("$ZodOptional",(e,t)=>{A.init(e,t),e._zod.optin="optional",e._zod.optout="optional",j(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),j(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${dn(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(t.innerType._zod.optin==="optional"){let n=r.value,i=t.innerType._zod.run(r,o);return i instanceof Promise?i.then(a=>Up(a,n)):Up(i,n)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),Xs=v("$ZodExactOptional",(e,t)=>{Dr.init(e,t),j(e._zod,"values",()=>t.innerType._zod.values),j(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),Ys=v("$ZodNullable",(e,t)=>{A.init(e,t),j(e._zod,"optin",()=>t.innerType._zod.optin),j(e._zod,"optout",()=>t.innerType._zod.optout),j(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${dn(r.source)}|null)$`):void 0}),j(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:t.innerType._zod.run(r,o)}),Qs=v("$ZodDefault",(e,t)=>{A.init(e,t),e._zod.optin="optional",j(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>Rp(i,t)):Rp(n,t)}});function Rp(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var ec=v("$ZodPrefault",(e,t)=>{A.init(e,t),e._zod.optin="optional",j(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,o))}),tc=v("$ZodNonOptional",(e,t)=>{A.init(e,t),j(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,o)=>{let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>Lp(i,e)):Lp(n,e)}});function Lp(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var nc=v("$ZodSuccess",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Me("ZodSuccess");let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),rc=v("$ZodCatch",(e,t)=>{A.init(e,t),e._zod.optin="optional",j(e._zod,"optout",()=>t.innerType._zod.optout),j(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>ee(a,o,V()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(i=>ee(i,o,V()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),ic=v("$ZodNaN",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),Tr=v("$ZodPipe",(e,t)=>{A.init(e,t),j(e._zod,"values",()=>t.in._zod.values),j(e._zod,"optin",()=>t.in._zod.optin),j(e._zod,"optout",()=>t.out._zod.optout),j(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>Sr(a,t.in,o)):Sr(i,t.in,o)}let n=t.in._zod.run(r,o);return n instanceof Promise?n.then(i=>Sr(i,t.out,o)):Sr(n,t.out,o)}});function Sr(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}var Sn=v("$ZodCodec",(e,t)=>{A.init(e,t),j(e._zod,"values",()=>t.in._zod.values),j(e._zod,"optin",()=>t.in._zod.optin),j(e._zod,"optout",()=>t.out._zod.optout),j(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if((o.direction||"forward")==="forward"){let i=t.in._zod.run(r,o);return i instanceof Promise?i.then(a=>kr(a,t,o)):kr(i,t,o)}else{let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>kr(a,t,o)):kr(i,t,o)}}});function kr(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(i=>wr(e,i,t.out,r)):wr(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(i=>wr(e,i,t.in,r)):wr(e,n,t.in,r)}}function wr(e,t,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},o)}var oc=v("$ZodPreprocess",(e,t)=>{Tr.init(e,t)}),ac=v("$ZodReadonly",(e,t)=>{A.init(e,t),j(e._zod,"propValues",()=>t.innerType._zod.propValues),j(e._zod,"values",()=>t.innerType._zod.values),j(e._zod,"optin",()=>t.innerType?._zod?.optin),j(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(Fp):Fp(n)}});function Fp(e){return e.value=Object.freeze(e.value),e}var sc=v("$ZodTemplateLiteral",(e,t)=>{A.init(e,t);let r=[];for(let o of t.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 n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(i,a))}else if(o===null||Qo.has(typeof o))r.push(he(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),cc=v("$ZodFunction",(e,t)=>(A.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...o){let n=e._def.input?ur(e._def.input,o):o,i=Reflect.apply(r,this,n);return e._def.output?ur(e._def.output,i):i}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let n=e._def.input?await lr(e._def.input,o):o,i=await Reflect.apply(r,this,n);return e._def.output?await lr(e._def.output,i):i}},e._zod.parse=(r,o)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let o=e.constructor;return Array.isArray(r[0])?new o({type:"function",input:new Er({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new o({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:r})},e)),uc=v("$ZodPromise",(e,t)=>{A.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),lc=v("$ZodLazy",(e,t)=>{A.init(e,t),j(e._zod,"innerType",()=>{let r=t;return r._cachedInner||(r._cachedInner=t.getter()),r._cachedInner}),j(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),j(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),j(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),j(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),dc=v("$ZodCustom",(e,t)=>{F.init(e,t),A.init(e,t),e._zod.parse=(r,o)=>r,e._zod.check=r=>{let o=r.value,n=t.fn(o);if(n instanceof Promise)return n.then(i=>Zp(i,r,o,e));Zp(n,r,o,e)}});function Zp(e,t,r,o){if(!e){let n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),t.issues.push(vt(n))}}var wn={};pe(wn,{ar:()=>Jp,az:()=>Wp,be:()=>Kp,bg:()=>Xp,ca:()=>Yp,cs:()=>Qp,da:()=>em,de:()=>tm,el:()=>nm,en:()=>Pr,eo:()=>rm,es:()=>im,fa:()=>om,fi:()=>am,fr:()=>sm,frCA:()=>cm,he:()=>um,hr:()=>lm,hu:()=>dm,hy:()=>mm,id:()=>fm,is:()=>hm,it:()=>gm,ja:()=>vm,ka:()=>_m,kh:()=>ym,km:()=>Ar,ko:()=>$m,lt:()=>bm,mk:()=>Sm,ms:()=>km,nl:()=>wm,no:()=>Im,ota:()=>Om,pl:()=>Em,ps:()=>zm,pt:()=>Dm,ro:()=>Tm,ru:()=>Am,sl:()=>Cm,sv:()=>jm,ta:()=>Nm,th:()=>Um,tr:()=>Rm,ua:()=>Lm,uk:()=>Cr,ur:()=>Fm,uz:()=>Zm,vi:()=>Mm,yo:()=>Gm,zhCN:()=>Vm,zhTW:()=>Bm});var Ry=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 n.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 ${S(n.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: ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.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 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;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 "${n.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}`:`${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${y(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.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 ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function Jp(){return{localeError:Ry()}}var Ly=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${s}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${S(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${y(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function Wp(){return{localeError:Ly()}}function qp(e,t,r,o){let n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}var Fy=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.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 n.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 ${S(n.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 ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),c=qp(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 ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${n.maximum.toString()} ${c}`}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 ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),c=qp(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 ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${n.minimum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${y(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.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 ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function Kp(){return{localeError:Fy()}}var Zy=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.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 n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${S(n.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 ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.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 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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} ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${y(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.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 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function Xp(){return{localeError:Zy()}}var My=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${s}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${S(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${y(n.values," o ")}`;case"too_big":{let i=n.inclusive?"com a m\xE0xim":"menys de",a=t(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${i} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${i} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}};function Yp(){return{localeError:My()}}var Vy=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${s}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${S(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${y(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}};function Qp(){return{localeError:Vy()}}var By=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${s}`:`Ugyldigt input: forventede ${i}, fik ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${S(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),s=o[n.origin]??n.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${i} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),s=o[n.origin]??n.origin;return a?`For lille: forventede ${s} ${a.verb} ${i} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${y(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}};function em(){return{localeError:By()}}var Gy=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${s}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${S(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ist`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ist`}case"invalid_format":{let i=n;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: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${y(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}};function tm(){return{localeError:Gy()}}var Hy=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return typeof n.expected=="string"&&/^[A-Z]/.test(n.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 ${n.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 n.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 ${S(n.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 ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${n.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 ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${n.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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: ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${n.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${n.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${y(n.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${n.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 ${n.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function nm(){return{localeError:Hy()}}var Jy=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return`Invalid input: expected ${i}, received ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${S(n.values[0])}`:`Invalid option: expected one of ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`Invalid discriminator value. Expected ${n.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function Pr(){return{localeError:Jy()}}var Wy=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${s}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${S(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${i}${n.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function rm(){return{localeError:Wy()}}var qy=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${S(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),s=o[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),s=o[n.origin]??n.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${i}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function im(){return{localeError:qy()}}var Ky=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.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 n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${S(n.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 ${y(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=n;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`:`${r[i.format]??n.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 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${y(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.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 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function om(){return{localeError:Ky()}}var Xy=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${s}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${S(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${y(n.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 am(){return{localeError:Xy()}}var Yy=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${s} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${S(n.values[0])} attendu`:`Option invalide : une valeur parmi ${y(n.values,"|")} attendue`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Trop grand : ${o[n.origin]??"valeur"} doit ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${o[n.origin]??"valeur"} doit \xEAtre ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Trop petit : ${o[n.origin]??"valeur"} doit ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${o[n.origin]??"valeur"} doit \xEAtre ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${y(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function sm(){return{localeError:Yy()}}var Qy=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${s}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${S(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u2264":"<",a=t(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${i}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u2265":">",a=t(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${y(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function cm(){return{localeError:Qy()}}var e$=()=>{let e={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"}},t={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"}},r=u=>u?e[u]:void 0,o=u=>{let l=r(u);return l?l.label:u??e.unknown.label},n=u=>`\u05D4${o(u)}`,i=u=>(r(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=u=>u?t[u]??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"}},c={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{let l=u.expected,f=c[l??""]??o(l),p=w(u.input),_=c[p]??e[p]?.label??p;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${_}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${f}, \u05D4\u05EA\u05E7\u05D1\u05DC ${_}`}case"invalid_value":{if(u.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 ${S(u.values[0])}`;let l=u.values.map(_=>S(_));if(u.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 ${l[0]} \u05D0\u05D5 ${l[1]}`;let f=l[l.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 ${l.slice(0,-1).join(", ")} \u05D0\u05D5 ${f}`}case"too_big":{let l=a(u.origin),f=n(u.origin??"value");if(u.origin==="string")return`${l?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${l?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let b=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${b}`}if(u.origin==="array"||u.origin==="set"){let b=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",E=u.inclusive?`${u.maximum} ${l?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${l?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} ${b} \u05DC\u05D4\u05DB\u05D9\u05DC ${E}`.trim()}let p=u.inclusive?"<=":"<",_=i(u.origin??"value");return l?.unit?`${l.longLabel} \u05DE\u05D3\u05D9: ${f} ${_} ${p}${u.maximum.toString()} ${l.unit}`:`${l?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${f} ${_} ${p}${u.maximum.toString()}`}case"too_small":{let l=a(u.origin),f=n(u.origin??"value");if(u.origin==="string")return`${l?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${l?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let b=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${b}`}if(u.origin==="array"||u.origin==="set"){let b=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let D=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${b} \u05DC\u05D4\u05DB\u05D9\u05DC ${D}`}let E=u.inclusive?`${u.minimum} ${l?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${l?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${b} \u05DC\u05D4\u05DB\u05D9\u05DC ${E}`.trim()}let p=u.inclusive?">=":">",_=i(u.origin??"value");return l?.unit?`${l.shortLabel} \u05DE\u05D3\u05D9: ${f} ${_} ${p}${u.minimum.toString()} ${l.unit}`:`${l?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${f} ${_} ${p}${u.minimum.toString()}`}case"invalid_format":{let l=u;if(l.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${l.prefix}"`;if(l.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${l.suffix}"`;if(l.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${l.includes}"`;if(l.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 ${l.pattern}`;let f=s[l.format],p=f?.label??l.format,b=(f?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${p} \u05DC\u05D0 ${b}`}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 ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${y(u.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${n(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function um(){return{localeError:e$()}}var t$=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${n.expected}, a primljeno je ${s}`:`Neispravan unos: o\u010Dekuje se ${i}, a primljeno je ${s}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${S(n.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),s=o[n.origin]??n.origin;return a?`Preveliko: o\u010Dekivano da ${s??"vrijednost"} ima ${i}${n.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${s??"vrijednost"} bude ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),s=o[n.origin]??n.origin;return a?`Premalo: o\u010Dekivano da ${s} ima ${i}${n.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${s} bude ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${n.divisor}`;case"unrecognized_keys":return`Neprepoznat${n.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${y(n.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${o[n.origin]??n.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[n.origin]??n.origin}`;default:return"Neispravan unos"}}};function lm(){return{localeError:t$()}}var n$=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${S(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${n.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${i}${n.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function dm(){return{localeError:n$()}}function pm(e,t,r){return Math.abs(e)===1?t:r}function St(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}var r$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 n.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 ${S(n.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 ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),c=pm(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 ${St(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.maximum.toString()} ${c}`}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 ${St(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),c=pm(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 ${St(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.minimum.toString()} ${c}`}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 ${St(n.origin)} \u056C\u056B\u0576\u056B ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.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 ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${y(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${St(n.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 ${St(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function mm(){return{localeError:r$()}}var i$=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${i}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${S(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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}`:`${r[i.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function fm(){return{localeError:i$()}}var o$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${S(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${i}${n.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${i}${n.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${y(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}};function hm(){return{localeError:o$()}}var a$=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${s}`:`Input non valido: atteso ${i}, ricevuto ${s}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${S(n.values[0])}`:`Opzione non valida: atteso uno tra ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${i}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${i}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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: ${r[i.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${y(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function gm(){return{localeError:a$()}}var s$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.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 n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${S(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${y(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(n.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${a.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(n.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${a.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=n;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${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.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${n.keys.length>1?"\u7FA4":""}: ${y(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function vm(){return{localeError:s$()}}var c$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 n.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 ${S(n.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 ${y(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${i}${n.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 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.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 ${n.origin} ${a.verb} ${i}${n.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 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.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 ${n.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${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${y(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.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 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function _m(){return{localeError:c$()}}var u$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 n.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 ${S(n.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 ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${y(n.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 ${n.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 ${n.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 Ar(){return{localeError:u$()}}function ym(){return Ar()}var l$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.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 n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${S(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${y(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),c=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${c} ${i}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${i}${a}`}case"too_small":{let i=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),c=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${c} ${i}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${i}${a}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${y(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function $m(){return{localeError:l$()}}var kn=e=>e.charAt(0).toUpperCase()+e.slice(1);function xm(e){let t=Math.abs(e),r=t%10,o=t%100;return o>=11&&o<=19||r===0?"many":r===1?"one":"few"}var d$=()=>{let e={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 t(n,i,a,s){let c=e[n]??null;return c===null?c:{unit:c.unit[i],verb:c.verb[s][a?"inclusive":"notInclusive"]}}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${i}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${S(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${y(n.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[n.origin]??n.origin,a=t(n.origin,xm(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${kn(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${kn(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let i=o[n.origin]??n.origin,a=t(n.origin,xm(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${kn(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${kn(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.minimum.toString()} ${a?.unit}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${y(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[n.origin]??n.origin;return`${kn(i??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function bm(){return{localeError:d$()}}var p$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.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 n.values.length===1?`Invalid input: expected ${S(n.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 ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.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 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`${n.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"}: ${y(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.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 ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function Sm(){return{localeError:p$()}}var m$=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${s}`:`Input tidak sah: dijangka ${i}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${S(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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}`:`${r[i.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${y(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function km(){return{localeError:m$()}}var f$=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${i}, ontving ${s}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${S(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),s=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} is`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),s=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} is`}case"invalid_format":{let i=n;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: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function wm(){return{localeError:f$()}}var h$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${s}`:`Ugyldig input: forventet ${i}, fikk ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${S(n.values[0])}`:`Ugyldig valg: forventet en av ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${y(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function Im(){return{localeError:h$()}}var g$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${S(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function Om(){return{localeError:g$()}}var v$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.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 n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${S(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${y(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=n;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`:`${r[i.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${y(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.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 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function zm(){return{localeError:v$()}}var _$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${s}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${S(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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) ${r[i.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function Em(){return{localeError:_$()}}var y$=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${S(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${i}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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}`:`${r[i.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${y(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}};function Dm(){return{localeError:y$()}}var $$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${i}, primit ${s}`}case"invalid_value":return n.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${S(n.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} s\u0103 fie ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Prea mic: a\u0219teptat ca ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${n.origin} s\u0103 fie ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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: ${r[i.format]??n.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${n.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${y(n.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${n.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${n.origin}`;default:return"Intrare invalid\u0103"}}};function Tm(){return{localeError:$$()}}function Pm(e,t,r,o){let n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}var x$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.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 n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${S(n.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 ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),c=Pm(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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.maximum.toString()} ${c}`}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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),c=Pm(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 ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.minimum.toString()} ${c}`}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 ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${y(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.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 ${n.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 Am(){return{localeError:x$()}}var b$=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${s}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${S(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${i}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${i}${n.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${y(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function Cm(){return{localeError:b$()}}var S$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${s}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${S(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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) ${r[i.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${y(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function jm(){return{localeError:S$()}}var k$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 n.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 ${S(n.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 ${y(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.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 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.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 ${n.origin} ${i}${n.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 ${n.origin} ${i}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.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${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${y(n.keys,", ")}`;case"invalid_key":return`${n.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`${n.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 Nm(){return{localeError:k$()}}var w$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${S(n.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 ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;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: ${r[i.format]??n.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 ${n.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: ${y(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.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 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function Um(){return{localeError:w$()}}var I$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${S(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${y(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function Rm(){return{localeError:I$()}}var O$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 n.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 ${S(n.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 ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${i}${n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.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 ${n.origin} ${a.verb} ${i}${n.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 ${n.origin} \u0431\u0443\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${y(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.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 ${n.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 Cr(){return{localeError:O$()}}function Lm(){return Cr()}var z$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.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 n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${S(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${y(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${n.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: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${i}${n.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${i}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.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${n.keys.length>1?"\u0632":""}: ${y(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function Fm(){return{localeError:z$()}}var E$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${s}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${S(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${y(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function Zm(){return{localeError:E$()}}var D$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.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 n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${S(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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}`:`${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${y(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.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 ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function Mm(){return{localeError:D$()}}var T$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.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 n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${S(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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${r[i.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${y(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function Vm(){return{localeError:T$()}}var P$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.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 n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${S(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${y(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function Bm(){return{localeError:P$()}}var A$=()=>{let e={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 t(n){return e[n]??null}let r={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=w(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.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 n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${S(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${y(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${a.verb} ${i}${n.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.maximum}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${a.verb} ${i}${n.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.minimum}`}case"invalid_format":{let i=n;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: ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${y(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.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 ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function Gm(){return{localeError:A$()}}var Hm,pc=Symbol("ZodOutput"),mc=Symbol("ZodInput"),jr=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let o=r[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let o={...this.get(r)??{}};delete o.id;let n={...o,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Nr(){return new jr}(Hm=globalThis).__zod_globalRegistry??(Hm.__zod_globalRegistry=Nr());var K=globalThis.__zod_globalRegistry;function fc(e,t){return new e({type:"string",...O(t)})}function hc(e,t){return new e({type:"string",coerce:!0,...O(t)})}function Ur(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...O(t)})}function In(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...O(t)})}function Rr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...O(t)})}function Lr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...O(t)})}function Fr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...O(t)})}function Zr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...O(t)})}function On(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...O(t)})}function Mr(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...O(t)})}function Vr(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...O(t)})}function Br(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...O(t)})}function Gr(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...O(t)})}function Hr(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...O(t)})}function Jr(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...O(t)})}function Wr(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...O(t)})}function qr(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...O(t)})}function Kr(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...O(t)})}function gc(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...O(t)})}function Xr(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...O(t)})}function Yr(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...O(t)})}function Qr(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...O(t)})}function ei(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...O(t)})}function ti(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...O(t)})}function ni(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...O(t)})}var vc={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function _c(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...O(t)})}function yc(e,t){return new e({type:"string",format:"date",check:"string_format",...O(t)})}function $c(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...O(t)})}function xc(e,t){return new e({type:"string",format:"duration",check:"string_format",...O(t)})}function bc(e,t){return new e({type:"number",checks:[],...O(t)})}function Sc(e,t){return new e({type:"number",coerce:!0,checks:[],...O(t)})}function kc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...O(t)})}function wc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...O(t)})}function Ic(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...O(t)})}function Oc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...O(t)})}function zc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...O(t)})}function Ec(e,t){return new e({type:"boolean",...O(t)})}function Dc(e,t){return new e({type:"boolean",coerce:!0,...O(t)})}function Tc(e,t){return new e({type:"bigint",...O(t)})}function Pc(e,t){return new e({type:"bigint",coerce:!0,...O(t)})}function Ac(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...O(t)})}function Cc(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...O(t)})}function jc(e,t){return new e({type:"symbol",...O(t)})}function Nc(e,t){return new e({type:"undefined",...O(t)})}function Uc(e,t){return new e({type:"null",...O(t)})}function Rc(e){return new e({type:"any"})}function Lc(e){return new e({type:"unknown"})}function Fc(e,t){return new e({type:"never",...O(t)})}function Zc(e,t){return new e({type:"void",...O(t)})}function Mc(e,t){return new e({type:"date",...O(t)})}function Vc(e,t){return new e({type:"date",coerce:!0,...O(t)})}function Bc(e,t){return new e({type:"nan",...O(t)})}function Se(e,t){return new xr({check:"less_than",...O(t),value:e,inclusive:!1})}function le(e,t){return new xr({check:"less_than",...O(t),value:e,inclusive:!0})}function ke(e,t){return new br({check:"greater_than",...O(t),value:e,inclusive:!1})}function te(e,t){return new br({check:"greater_than",...O(t),value:e,inclusive:!0})}function ri(e){return ke(0,e)}function ii(e){return Se(0,e)}function oi(e){return le(0,e)}function ai(e){return te(0,e)}function Je(e,t){return new Ua({check:"multiple_of",...O(t),value:e})}function We(e,t){return new Fa({check:"max_size",...O(t),maximum:e})}function we(e,t){return new Za({check:"min_size",...O(t),minimum:e})}function it(e,t){return new Ma({check:"size_equals",...O(t),size:e})}function ot(e,t){return new Va({check:"max_length",...O(t),maximum:e})}function Ae(e,t){return new Ba({check:"min_length",...O(t),minimum:e})}function at(e,t){return new Ga({check:"length_equals",...O(t),length:e})}function kt(e,t){return new Ha({check:"string_format",format:"regex",...O(t),pattern:e})}function wt(e){return new Ja({check:"string_format",format:"lowercase",...O(e)})}function It(e){return new Wa({check:"string_format",format:"uppercase",...O(e)})}function Ot(e,t){return new qa({check:"string_format",format:"includes",...O(t),includes:e})}function zt(e,t){return new Ka({check:"string_format",format:"starts_with",...O(t),prefix:e})}function Et(e,t){return new Xa({check:"string_format",format:"ends_with",...O(t),suffix:e})}function si(e,t,r){return new Ya({check:"property",property:e,schema:t,...O(r)})}function Dt(e,t){return new Qa({check:"mime_type",mime:e,...O(t)})}function ye(e){return new es({check:"overwrite",tx:e})}function Tt(e){return ye(t=>t.normalize(e))}function Pt(){return ye(e=>e.trim())}function At(){return ye(e=>e.toLowerCase())}function Ct(){return ye(e=>e.toUpperCase())}function jt(){return ye(e=>Ko(e))}function Gc(e,t,r){return new e({type:"array",element:t,...O(r)})}function j$(e,t,r){return new e({type:"union",options:t,...O(r)})}function N$(e,t,r){return new e({type:"union",options:t,inclusive:!1,...O(r)})}function U$(e,t,r,o){return new e({type:"union",options:r,discriminator:t,...O(o)})}function R$(e,t,r){return new e({type:"intersection",left:t,right:r})}function L$(e,t,r,o){let n=r instanceof A,i=n?o:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...O(i)})}function F$(e,t,r,o){return new e({type:"record",keyType:t,valueType:r,...O(o)})}function Z$(e,t,r,o){return new e({type:"map",keyType:t,valueType:r,...O(o)})}function M$(e,t,r){return new e({type:"set",valueType:t,...O(r)})}function V$(e,t,r){let o=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:o,...O(r)})}function B$(e,t,r){return new e({type:"enum",entries:t,...O(r)})}function G$(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...O(r)})}function Hc(e,t){return new e({type:"file",...O(t)})}function H$(e,t){return new e({type:"transform",transform:t})}function J$(e,t){return new e({type:"optional",innerType:t})}function W$(e,t){return new e({type:"nullable",innerType:t})}function q$(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():Yo(r)}})}function K$(e,t,r){return new e({type:"nonoptional",innerType:t,...O(r)})}function X$(e,t){return new e({type:"success",innerType:t})}function Y$(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function Q$(e,t,r){return new e({type:"pipe",in:t,out:r})}function ex(e,t){return new e({type:"readonly",innerType:t})}function tx(e,t,r){return new e({type:"template_literal",parts:t,...O(r)})}function nx(e,t){return new e({type:"lazy",getter:t})}function rx(e,t){return new e({type:"promise",innerType:t})}function Jc(e,t,r){let o=O(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function Wc(e,t,r){return new e({type:"custom",check:"custom",fn:t,...O(r)})}function qc(e,t){let r=Jm(o=>(o.addIssue=n=>{if(typeof n=="string")o.issues.push(vt(n,o.value,r._zod.def));else{let i=n;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=r),i.continue??(i.continue=!r._zod.def.abort),o.issues.push(vt(i))}},e(o.value,o)),t);return r}function Jm(e,t){let r=new F({check:"custom",...O(t)});return r._zod.check=e,r}function Kc(e){let t=new F({check:"describe"});return t._zod.onattach=[r=>{let o=K.get(r)??{};K.add(r,{...o,description:e})}],t._zod.check=()=>{},t}function Xc(e){let t=new F({check:"meta"});return t._zod.onattach=[r=>{let o=K.get(r)??{};K.add(r,{...o,...e})}],t._zod.check=()=>{},t}function Yc(e,t){let r=O(t),o=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(_=>typeof _=="string"?_.toLowerCase():_),n=n.map(_=>typeof _=="string"?_.toLowerCase():_));let i=new Set(o),a=new Set(n),s=e.Codec??Sn,c=e.Boolean??xn,u=e.String??rt,l=new u({type:"string",error:r.error}),f=new c({type:"boolean",error:r.error}),p=new s({type:"pipe",in:l,out:f,transform:((_,b)=>{let E=_;return r.case!=="sensitive"&&(E=E.toLowerCase()),i.has(E)?!0:a.has(E)?!1:(b.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:b.value,inst:p,continue:!1}),{})}),reverseTransform:((_,b)=>_===!0?o[0]||"true":n[0]||"false"),error:r.error});return p}function Nt(e,t,r,o={}){let n=O(o),i={...O(o),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(i.pattern=r),new e(i)}function qe(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??K,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function U(e,t,r={path:[],schemaPath:[]}){var o;let n=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let l={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,l);else{let p=a.schema,_=t.processors[n.type];if(!_)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);_(e,t,p,l)}let f=e._zod.parent;f&&(a.ref||(a.ref=f),U(f,t,l),t.seen.get(f).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&ne(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function Ke(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let c=o.get(s);if(c&&c!==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 n=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let f=e.external.registry.get(a[0])?.id,p=e.external.uri??(b=>b);if(f)return{ref:p(f)};let _=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=_,{defId:_,ref:`${p("__shared")}#/${s}/${_}`}}if(a[1]===r)return{ref:"#"};let u=`#/${s}/`,l=a[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:u+l}},i=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:c,defId:u}=n(a);s.def={...s.schema},u&&(s.defId=u);let l=s.schema;for(let f in l)delete l[f];l.$ref=c};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
227
227
 
228
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){i(a);continue}if(e.external){let u=e.external.registry.get(a[0])?.id;if(t!==a[0]&&u){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(s.cycle){i(a);continue}if(s.count>1&&e.reused==="ref"){i(a);continue}}}function Xe(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=s=>{let c=e.seen.get(s);if(c.ref===null)return;let u=c.def??c.schema,l={...u},f=c.ref;if(c.ref=null,f){o(f);let _=e.seen.get(f),b=_.schema;if(b.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(b)):Object.assign(u,b),Object.assign(u,l),s._zod.parent===f)for(let D in u)D==="$ref"||D==="allOf"||D in l||delete u[D];if(b.$ref&&_.def)for(let D in u)D==="$ref"||D==="allOf"||D in _.def&&JSON.stringify(u[D])===JSON.stringify(_.def[D])&&delete u[D]}let p=s._zod.parent;if(p&&p!==f){o(p);let _=e.seen.get(p);if(_?.schema.$ref&&(u.$ref=_.schema.$ref,_.def))for(let b in u)b==="$ref"||b==="allOf"||b in _.def&&JSON.stringify(u[b])===JSON.stringify(_.def[b])&&delete u[b]}e.override({zodSchema:s,jsonSchema:u,path:c.path??[]})};for(let s of[...e.seen.entries()].reverse())o(s[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(s)}Object.assign(n,r.def??r.schema);let i=e.metadataRegistry.get(t)?.id;i!==void 0&&n.id===i&&delete n.id;let a=e.external?.defs??{};for(let s of e.seen.entries()){let c=s[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,a[c.defId]=c.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?n.$defs=a:n.definitions=a);try{let s=JSON.parse(JSON.stringify(n));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:Ut(t,"input",e.processors),output:Ut(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function ne(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return ne(o.element,r);if(o.type==="set")return ne(o.valueType,r);if(o.type==="lazy")return ne(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return ne(o.innerType,r);if(o.type==="intersection")return ne(o.left,r)||ne(o.right,r);if(o.type==="record"||o.type==="map")return ne(o.keyType,r)||ne(o.valueType,r);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:ne(o.in,r)||ne(o.out,r);if(o.type==="object"){for(let n in o.shape)if(ne(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(ne(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(ne(n,r))return!0;return!!(o.rest&&ne(o.rest,r))}return!1}var Qc=(e,t={})=>r=>{let o=qe({...r,processors:t});return U(e,o),Ke(o,e),Xe(o,e)},Ut=(e,t,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},a=qe({...n??{},target:i,io:t,processors:r});return U(e,a),Ke(a,e),Xe(a,e)};var nx={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},eu=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:a,format:s,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof a=="number"&&(n.maxLength=a),s&&(n.format=nx[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),u&&(n.contentEncoding=u),c&&c.size>0){let l=[...c];l.length===1?n.pattern=l[0].source:l.length>1&&(n.allOf=[...l.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},tu=(e,t,r,o)=>{let n=r,{minimum:i,maximum:a,format:s,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:l}=e._zod.bag;typeof s=="string"&&s.includes("int")?n.type="integer":n.type="number";let f=typeof l=="number"&&l>=(i??Number.NEGATIVE_INFINITY),p=typeof u=="number"&&u<=(a??Number.POSITIVE_INFINITY),_=t.target==="draft-04"||t.target==="openapi-3.0";f?_?(n.minimum=l,n.exclusiveMinimum=!0):n.exclusiveMinimum=l:typeof i=="number"&&(n.minimum=i),p?_?(n.maximum=u,n.exclusiveMaximum=!0):n.exclusiveMaximum=u:typeof a=="number"&&(n.maximum=a),typeof c=="number"&&(n.multipleOf=c)},nu=(e,t,r,o)=>{r.type="boolean"},ru=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},iu=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},ou=(e,t,r,o)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},au=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},su=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},cu=(e,t,r,o)=>{r.not={}},uu=(e,t,r,o)=>{},lu=(e,t,r,o)=>{},du=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},pu=(e,t,r,o)=>{let n=e._zod.def,i=ln(n.entries);i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),r.enum=i},mu=(e,t,r,o)=>{let n=e._zod.def,i=[];for(let a of n.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.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];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),i.every(a=>typeof a=="boolean")&&(r.type="boolean"),i.every(a=>a===null)&&(r.type="null"),r.enum=i},fu=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},hu=(e,t,r,o)=>{let n=r,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},gu=(e,t,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:c}=e._zod.bag;a!==void 0&&(i.minLength=a),s!==void 0&&(i.maxLength=s),c?c.length===1?(i.contentMediaType=c[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(n,i)},vu=(e,t,r,o)=>{r.type="boolean"},_u=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},yu=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},$u=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},xu=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},bu=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Su=(e,t,r,o)=>{let n=r,i=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(n.minItems=a),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=U(i.element,t,{...o,path:[...o.path,"items"]})},ku=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object",n.properties={};let a=i.shape;for(let u in a)n.properties[u]=U(a[u],t,{...o,path:[...o.path,"properties",u]});let s=new Set(Object.keys(a)),c=new Set([...s].filter(u=>{let l=i.shape[u]._zod;return t.io==="input"?l.optin===void 0:l.optout===void 0}));c.size>0&&(n.required=Array.from(c)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=U(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},ui=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,a=n.options.map((s,c)=>U(s,t,{...o,path:[...o.path,i?"oneOf":"anyOf",c]}));i?r.oneOf=a:r.anyOf=a},wu=(e,t,r,o)=>{let n=e._zod.def,i=U(n.left,t,{...o,path:[...o.path,"allOf",0]}),a=U(n.right,t,{...o,path:[...o.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,c=[...s(i)?i.allOf:[i],...s(a)?a.allOf:[a]];r.allOf=c},Iu=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=i.items.map((p,_)=>U(p,t,{...o,path:[...o.path,a,_]})),u=i.rest?U(i.rest,t,{...o,path:[...o.path,s,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=c,u&&(n.items=u)):t.target==="openapi-3.0"?(n.items={anyOf:c},u&&n.items.anyOf.push(u),n.minItems=c.length,u||(n.maxItems=c.length)):(n.items=c,u&&(n.additionalItems=u));let{minimum:l,maximum:f}=e._zod.bag;typeof l=="number"&&(n.minItems=l),typeof f=="number"&&(n.maxItems=f)},Ou=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let a=i.keyType,c=a._zod.bag?.patterns;if(i.mode==="loose"&&c&&c.size>0){let l=U(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let f of c)n.patternProperties[f.source]=l}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=U(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=U(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let u=a._zod.values;if(u){let l=[...u].filter(f=>typeof f=="string"||typeof f=="number");l.length>0&&(n.required=l)}},zu=(e,t,r,o)=>{let n=e._zod.def,i=U(n.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},Eu=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Du=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},Tu=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},Pu=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},Au=(e,t,r,o)=>{let n=e._zod.def,i=n.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?i?n.out:n.in:n.out;U(a,t,o);let s=t.seen.get(e);s.ref=a},Cu=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.readOnly=!0},ju=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},li=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Nu=(e,t,r,o)=>{let n=e._zod.innerType;U(n,t,o);let i=t.seen.get(e);i.ref=n},ci={string:eu,number:tu,boolean:nu,bigint:ru,symbol:iu,null:ou,undefined:au,void:su,never:cu,any:uu,unknown:lu,date:du,enum:pu,literal:mu,nan:fu,template_literal:hu,file:gu,success:vu,custom:_u,function:yu,transform:$u,map:xu,set:bu,array:Su,object:ku,union:ui,intersection:wu,tuple:Iu,record:Ou,nullable:zu,nonoptional:Eu,default:Du,prefault:Tu,catch:Pu,pipe:Au,readonly:Cu,promise:ju,optional:li,lazy:Nu};function di(e,t){if("_idmap"in e){let o=e,n=qe({...t,processors:ci}),i={};for(let c of o._idmap.entries()){let[u,l]=c;U(l,n)}let a={},s={registry:o,uri:t?.uri,defs:i};n.external=s;for(let c of o._idmap.entries()){let[u,l]=c;Ke(n,l),a[u]=Xe(n,l)}if(Object.keys(i).length>0){let c=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:i}}return{schemas:a}}let r=qe({...t,processors:ci});return U(e,r),Ke(r,e),Xe(r,e)}var pi=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(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=qe({processors:ci,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return U(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),Ke(this.ctx,t);let o=Xe(this.ctx,t),{"~standard":n,...i}=o;return i}};var Jm={};var zn={};pe(zn,{ZodAny:()=>al,ZodArray:()=>ll,ZodBase64:()=>Ai,ZodBase64URL:()=>Ci,ZodBigInt:()=>Gt,ZodBigIntFormat:()=>Ui,ZodBoolean:()=>Bt,ZodCIDRv4:()=>Ti,ZodCIDRv6:()=>Pi,ZodCUID:()=>ki,ZodCUID2:()=>wi,ZodCatch:()=>Pl,ZodCodec:()=>Fn,ZodCustom:()=>Zn,ZodCustomStringFormat:()=>Mt,ZodDate:()=>jn,ZodDefault:()=>Il,ZodDiscriminatedUnion:()=>pl,ZodE164:()=>ji,ZodEmail:()=>xi,ZodEmoji:()=>bi,ZodEnum:()=>Ft,ZodExactOptional:()=>Sl,ZodFile:()=>xl,ZodFunction:()=>Ml,ZodGUID:()=>Dn,ZodIPv4:()=>Ei,ZodIPv6:()=>Di,ZodIntersection:()=>ml,ZodJWT:()=>Ni,ZodKSUID:()=>zi,ZodLazy:()=>Ll,ZodLiteral:()=>$l,ZodMAC:()=>Qu,ZodMap:()=>_l,ZodNaN:()=>Cl,ZodNanoID:()=>Si,ZodNever:()=>cl,ZodNonOptional:()=>Vi,ZodNull:()=>il,ZodNullable:()=>wl,ZodNumber:()=>Vt,ZodNumberFormat:()=>ct,ZodObject:()=>Un,ZodOptional:()=>Mi,ZodPipe:()=>Ln,ZodPrefault:()=>zl,ZodPreprocess:()=>jl,ZodPromise:()=>Zl,ZodReadonly:()=>Nl,ZodRecord:()=>Lt,ZodSet:()=>yl,ZodString:()=>Zt,ZodStringFormat:()=>L,ZodSuccess:()=>Tl,ZodSymbol:()=>nl,ZodTemplateLiteral:()=>Rl,ZodTransform:()=>bl,ZodTuple:()=>hl,ZodType:()=>C,ZodULID:()=>Ii,ZodURL:()=>Cn,ZodUUID:()=>Ie,ZodUndefined:()=>rl,ZodUnion:()=>Rn,ZodUnknown:()=>sl,ZodVoid:()=>ul,ZodXID:()=>Oi,ZodXor:()=>dl,_ZodString:()=>$i,_default:()=>Ol,_function:()=>rh,any:()=>Cf,array:()=>Nn,base64:()=>vf,base64url:()=>_f,bigint:()=>Ef,boolean:()=>tl,catch:()=>Al,check:()=>ih,cidrv4:()=>hf,cidrv6:()=>gf,codec:()=>Qf,cuid:()=>sf,cuid2:()=>cf,custom:()=>oh,date:()=>Nf,describe:()=>ah,discriminatedUnion:()=>Mf,e164:()=>yf,email:()=>Km,emoji:()=>of,enum:()=>Fi,exactOptional:()=>kl,file:()=>qf,float32:()=>wf,float64:()=>If,function:()=>rh,guid:()=>Xm,hash:()=>kf,hex:()=>Sf,hostname:()=>bf,httpUrl:()=>rf,instanceof:()=>ch,int:()=>_i,int32:()=>Of,int64:()=>Df,intersection:()=>fl,invertCodec:()=>eh,ipv4:()=>pf,ipv6:()=>ff,json:()=>lh,jwt:()=>$f,keyof:()=>Uf,ksuid:()=>df,lazy:()=>Fl,literal:()=>Wf,looseObject:()=>Ff,looseRecord:()=>Bf,mac:()=>mf,map:()=>Gf,meta:()=>sh,nan:()=>Yf,nanoid:()=>af,nativeEnum:()=>Jf,never:()=>Ri,nonoptional:()=>Dl,null:()=>ol,nullable:()=>Pn,nullish:()=>Kf,number:()=>el,object:()=>Rf,optional:()=>Tn,partialRecord:()=>Vf,pipe:()=>yi,prefault:()=>El,preprocess:()=>dh,promise:()=>nh,readonly:()=>Ul,record:()=>vl,refine:()=>Vl,set:()=>Hf,strictObject:()=>Lf,string:()=>En,stringFormat:()=>xf,stringbool:()=>uh,success:()=>Xf,superRefine:()=>Bl,symbol:()=>Pf,templateLiteral:()=>th,transform:()=>Zi,tuple:()=>gl,uint32:()=>zf,uint64:()=>Tf,ulid:()=>uf,undefined:()=>Af,union:()=>Li,unknown:()=>st,url:()=>nf,uuid:()=>Ym,uuidv4:()=>Qm,uuidv6:()=>ef,uuidv7:()=>tf,void:()=>jf,xid:()=>lf,xor:()=>Zf});var mi={};pe(mi,{endsWith:()=>Et,gt:()=>ke,gte:()=>te,includes:()=>Ot,length:()=>at,lowercase:()=>wt,lt:()=>Se,lte:()=>le,maxLength:()=>ot,maxSize:()=>We,mime:()=>Dt,minLength:()=>Ae,minSize:()=>we,multipleOf:()=>Je,negative:()=>ii,nonnegative:()=>ai,nonpositive:()=>oi,normalize:()=>Tt,overwrite:()=>ye,positive:()=>ri,property:()=>si,regex:()=>kt,size:()=>it,slugify:()=>jt,startsWith:()=>zt,toLowerCase:()=>At,toUpperCase:()=>Ct,trim:()=>Pt,uppercase:()=>It});var Rt={};pe(Rt,{ZodISODate:()=>hi,ZodISODateTime:()=>fi,ZodISODuration:()=>vi,ZodISOTime:()=>gi,date:()=>Ru,datetime:()=>Uu,duration:()=>Fu,time:()=>Lu});var fi=v("ZodISODateTime",(e,t)=>{fs.init(e,t),L.init(e,t)});function Uu(e){return _c(fi,e)}var hi=v("ZodISODate",(e,t)=>{hs.init(e,t),L.init(e,t)});function Ru(e){return yc(hi,e)}var gi=v("ZodISOTime",(e,t)=>{gs.init(e,t),L.init(e,t)});function Lu(e){return $c(gi,e)}var vi=v("ZodISODuration",(e,t)=>{vs.init(e,t),L.init(e,t)});function Fu(e){return xc(vi,e)}var Wm=(e,t)=>{hn.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>vn(e,r)},flatten:{value:r=>gn(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,ht,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,ht,2)}},isEmpty:{get(){return e.issues.length===0}}})},ix=v("ZodError",Wm),ae=v("ZodError",Wm,{Parent:Error});var Zu=_t(ae),Mu=yt(ae),Vu=$t(ae),Bu=xt(ae),Gu=dr(ae),Hu=pr(ae),Ju=mr(ae),Wu=fr(ae),qu=hr(ae),Ku=gr(ae),Xu=vr(ae),Yu=_r(ae);var qm=new WeakMap;function An(e,t,r){let o=Object.getPrototypeOf(e),n=qm.get(o);if(n||(n=new Set,qm.set(o,n)),!n.has(t)){n.add(t);for(let i in r){let a=r[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 C=v("ZodType",(e,t)=>(A.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Ut(e,"input"),output:Ut(e,"output")}}),e.toJSONSchema=Qc(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(r,o)=>Zu(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>Vu(e,r,o),e.parseAsync=async(r,o)=>Mu(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>Bu(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>Gu(e,r,o),e.decode=(r,o)=>Hu(e,r,o),e.encodeAsync=async(r,o)=>Ju(e,r,o),e.decodeAsync=async(r,o)=>Wu(e,r,o),e.safeEncode=(r,o)=>qu(e,r,o),e.safeDecode=(r,o)=>Ku(e,r,o),e.safeEncodeAsync=async(r,o)=>Xu(e,r,o),e.safeDecodeAsync=async(r,o)=>Yu(e,r,o),An(e,"ZodType",{check(...r){let o=this.def;return this.clone(I.mergeDefs(o,{checks:[...o.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,o){return Q(this,r,o)},brand(){return this},register(r,o){return r.add(this,o),this},refine(r,o){return this.check(Vl(r,o))},superRefine(r,o){return this.check(Bl(r,o))},overwrite(r){return this.check(ye(r))},optional(){return Tn(this)},exactOptional(){return kl(this)},nullable(){return Pn(this)},nullish(){return Tn(Pn(this))},nonoptional(r){return Dl(this,r)},array(){return Nn(this)},or(r){return Li([this,r])},and(r){return fl(this,r)},transform(r){return yi(this,Zi(r))},default(r){return Ol(this,r)},prefault(r){return El(this,r)},catch(r){return Al(this,r)},pipe(r){return yi(this,r)},readonly(){return Ul(this)},describe(r){let o=this.clone();return K.add(o,{description:r}),o},meta(...r){if(r.length===0)return K.get(this);let o=this.clone();return K.add(o,r[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(e,"description",{get(){return K.get(e)?.description},configurable:!0}),e)),$i=v("_ZodString",(e,t)=>{rt.init(e,t),C.init(e,t),e._zod.processJSONSchema=(o,n,i)=>eu(e,o,n,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,An(e,"_ZodString",{regex(...o){return this.check(kt(...o))},includes(...o){return this.check(Ot(...o))},startsWith(...o){return this.check(zt(...o))},endsWith(...o){return this.check(Et(...o))},min(...o){return this.check(Ae(...o))},max(...o){return this.check(ot(...o))},length(...o){return this.check(at(...o))},nonempty(...o){return this.check(Ae(1,...o))},lowercase(o){return this.check(wt(o))},uppercase(o){return this.check(It(o))},trim(){return this.check(Pt())},normalize(...o){return this.check(Tt(...o))},toLowerCase(){return this.check(At())},toUpperCase(){return this.check(Ct())},slugify(){return this.check(jt())}})}),Zt=v("ZodString",(e,t)=>{rt.init(e,t),$i.init(e,t),e.email=r=>e.check(Ur(xi,r)),e.url=r=>e.check(On(Cn,r)),e.jwt=r=>e.check(ni(Ni,r)),e.emoji=r=>e.check(Mr(bi,r)),e.guid=r=>e.check(In(Dn,r)),e.uuid=r=>e.check(Rr(Ie,r)),e.uuidv4=r=>e.check(Lr(Ie,r)),e.uuidv6=r=>e.check(Fr(Ie,r)),e.uuidv7=r=>e.check(Zr(Ie,r)),e.nanoid=r=>e.check(Vr(Si,r)),e.guid=r=>e.check(In(Dn,r)),e.cuid=r=>e.check(Br(ki,r)),e.cuid2=r=>e.check(Gr(wi,r)),e.ulid=r=>e.check(Hr(Ii,r)),e.base64=r=>e.check(Qr(Ai,r)),e.base64url=r=>e.check(ei(Ci,r)),e.xid=r=>e.check(Jr(Oi,r)),e.ksuid=r=>e.check(Wr(zi,r)),e.ipv4=r=>e.check(qr(Ei,r)),e.ipv6=r=>e.check(Kr(Di,r)),e.cidrv4=r=>e.check(Xr(Ti,r)),e.cidrv6=r=>e.check(Yr(Pi,r)),e.e164=r=>e.check(ti(ji,r)),e.datetime=r=>e.check(Uu(r)),e.date=r=>e.check(Ru(r)),e.time=r=>e.check(Lu(r)),e.duration=r=>e.check(Fu(r))});function En(e){return fc(Zt,e)}var L=v("ZodStringFormat",(e,t)=>{R.init(e,t),$i.init(e,t)}),xi=v("ZodEmail",(e,t)=>{os.init(e,t),L.init(e,t)});function Km(e){return Ur(xi,e)}var Dn=v("ZodGUID",(e,t)=>{rs.init(e,t),L.init(e,t)});function Xm(e){return In(Dn,e)}var Ie=v("ZodUUID",(e,t)=>{is.init(e,t),L.init(e,t)});function Ym(e){return Rr(Ie,e)}function Qm(e){return Lr(Ie,e)}function ef(e){return Fr(Ie,e)}function tf(e){return Zr(Ie,e)}var Cn=v("ZodURL",(e,t)=>{as.init(e,t),L.init(e,t)});function nf(e){return On(Cn,e)}function rf(e){return On(Cn,{protocol:ue.httpProtocol,hostname:ue.domain,...I.normalizeParams(e)})}var bi=v("ZodEmoji",(e,t)=>{ss.init(e,t),L.init(e,t)});function of(e){return Mr(bi,e)}var Si=v("ZodNanoID",(e,t)=>{cs.init(e,t),L.init(e,t)});function af(e){return Vr(Si,e)}var ki=v("ZodCUID",(e,t)=>{us.init(e,t),L.init(e,t)});function sf(e){return Br(ki,e)}var wi=v("ZodCUID2",(e,t)=>{ls.init(e,t),L.init(e,t)});function cf(e){return Gr(wi,e)}var Ii=v("ZodULID",(e,t)=>{ds.init(e,t),L.init(e,t)});function uf(e){return Hr(Ii,e)}var Oi=v("ZodXID",(e,t)=>{ps.init(e,t),L.init(e,t)});function lf(e){return Jr(Oi,e)}var zi=v("ZodKSUID",(e,t)=>{ms.init(e,t),L.init(e,t)});function df(e){return Wr(zi,e)}var Ei=v("ZodIPv4",(e,t)=>{_s.init(e,t),L.init(e,t)});function pf(e){return qr(Ei,e)}var Qu=v("ZodMAC",(e,t)=>{$s.init(e,t),L.init(e,t)});function mf(e){return gc(Qu,e)}var Di=v("ZodIPv6",(e,t)=>{ys.init(e,t),L.init(e,t)});function ff(e){return Kr(Di,e)}var Ti=v("ZodCIDRv4",(e,t)=>{xs.init(e,t),L.init(e,t)});function hf(e){return Xr(Ti,e)}var Pi=v("ZodCIDRv6",(e,t)=>{bs.init(e,t),L.init(e,t)});function gf(e){return Yr(Pi,e)}var Ai=v("ZodBase64",(e,t)=>{ks.init(e,t),L.init(e,t)});function vf(e){return Qr(Ai,e)}var Ci=v("ZodBase64URL",(e,t)=>{ws.init(e,t),L.init(e,t)});function _f(e){return ei(Ci,e)}var ji=v("ZodE164",(e,t)=>{Is.init(e,t),L.init(e,t)});function yf(e){return ti(ji,e)}var Ni=v("ZodJWT",(e,t)=>{Os.init(e,t),L.init(e,t)});function $f(e){return ni(Ni,e)}var Mt=v("ZodCustomStringFormat",(e,t)=>{zs.init(e,t),L.init(e,t)});function xf(e,t,r={}){return Nt(Mt,e,t,r)}function bf(e){return Nt(Mt,"hostname",ue.hostname,e)}function Sf(e){return Nt(Mt,"hex",ue.hex,e)}function kf(e,t){let r=t?.enc??"hex",o=`${e}_${r}`,n=ue[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return Nt(Mt,o,n,t)}var Vt=v("ZodNumber",(e,t)=>{Or.init(e,t),C.init(e,t),e._zod.processJSONSchema=(o,n,i)=>tu(e,o,n,i),An(e,"ZodNumber",{gt(o,n){return this.check(ke(o,n))},gte(o,n){return this.check(te(o,n))},min(o,n){return this.check(te(o,n))},lt(o,n){return this.check(Se(o,n))},lte(o,n){return this.check(le(o,n))},max(o,n){return this.check(le(o,n))},int(o){return this.check(_i(o))},safe(o){return this.check(_i(o))},positive(o){return this.check(ke(0,o))},nonnegative(o){return this.check(te(0,o))},negative(o){return this.check(Se(0,o))},nonpositive(o){return this.check(le(0,o))},multipleOf(o,n){return this.check(Je(o,n))},step(o,n){return this.check(Je(o,n))},finite(){return this}});let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function el(e){return bc(Vt,e)}var ct=v("ZodNumberFormat",(e,t)=>{Es.init(e,t),Vt.init(e,t)});function _i(e){return kc(ct,e)}function wf(e){return wc(ct,e)}function If(e){return Ic(ct,e)}function Of(e){return Oc(ct,e)}function zf(e){return zc(ct,e)}var Bt=v("ZodBoolean",(e,t)=>{xn.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>nu(e,r,o,n)});function tl(e){return Ec(Bt,e)}var Gt=v("ZodBigInt",(e,t)=>{zr.init(e,t),C.init(e,t),e._zod.processJSONSchema=(o,n,i)=>ru(e,o,n,i),e.gte=(o,n)=>e.check(te(o,n)),e.min=(o,n)=>e.check(te(o,n)),e.gt=(o,n)=>e.check(ke(o,n)),e.gte=(o,n)=>e.check(te(o,n)),e.min=(o,n)=>e.check(te(o,n)),e.lt=(o,n)=>e.check(Se(o,n)),e.lte=(o,n)=>e.check(le(o,n)),e.max=(o,n)=>e.check(le(o,n)),e.positive=o=>e.check(ke(BigInt(0),o)),e.negative=o=>e.check(Se(BigInt(0),o)),e.nonpositive=o=>e.check(le(BigInt(0),o)),e.nonnegative=o=>e.check(te(BigInt(0),o)),e.multipleOf=(o,n)=>e.check(Je(o,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function Ef(e){return Tc(Gt,e)}var Ui=v("ZodBigIntFormat",(e,t)=>{Ds.init(e,t),Gt.init(e,t)});function Df(e){return Ac(Ui,e)}function Tf(e){return Cc(Ui,e)}var nl=v("ZodSymbol",(e,t)=>{Ts.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>iu(e,r,o,n)});function Pf(e){return jc(nl,e)}var rl=v("ZodUndefined",(e,t)=>{Ps.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>au(e,r,o,n)});function Af(e){return Nc(rl,e)}var il=v("ZodNull",(e,t)=>{As.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ou(e,r,o,n)});function ol(e){return Uc(il,e)}var al=v("ZodAny",(e,t)=>{Cs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>uu(e,r,o,n)});function Cf(){return Rc(al)}var sl=v("ZodUnknown",(e,t)=>{js.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>lu(e,r,o,n)});function st(){return Lc(sl)}var cl=v("ZodNever",(e,t)=>{Ns.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>cu(e,r,o,n)});function Ri(e){return Fc(cl,e)}var ul=v("ZodVoid",(e,t)=>{Us.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>su(e,r,o,n)});function jf(e){return Zc(ul,e)}var jn=v("ZodDate",(e,t)=>{Rs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(o,n,i)=>du(e,o,n,i),e.min=(o,n)=>e.check(te(o,n)),e.max=(o,n)=>e.check(le(o,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function Nf(e){return Mc(jn,e)}var ll=v("ZodArray",(e,t)=>{Ls.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Su(e,r,o,n),e.element=t.element,An(e,"ZodArray",{min(r,o){return this.check(Ae(r,o))},nonempty(r){return this.check(Ae(1,r))},max(r,o){return this.check(ot(r,o))},length(r,o){return this.check(at(r,o))},unwrap(){return this.element}})});function Nn(e,t){return Gc(ll,e,t)}function Uf(e){let t=e._zod.def.shape;return Fi(Object.keys(t))}var Un=v("ZodObject",(e,t)=>{Fs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ku(e,r,o,n),I.defineLazy(e,"shape",()=>t.shape),An(e,"ZodObject",{keyof(){return Fi(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:st()})},loose(){return this.clone({...this._zod.def,catchall:st()})},strict(){return this.clone({...this._zod.def,catchall:Ri()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return I.extend(this,r)},safeExtend(r){return I.safeExtend(this,r)},merge(r){return I.merge(this,r)},pick(r){return I.pick(this,r)},omit(r){return I.omit(this,r)},partial(...r){return I.partial(Mi,this,r[0])},required(...r){return I.required(Vi,this,r[0])}})});function Rf(e,t){let r={type:"object",shape:e??{},...I.normalizeParams(t)};return new Un(r)}function Lf(e,t){return new Un({type:"object",shape:e,catchall:Ri(),...I.normalizeParams(t)})}function Ff(e,t){return new Un({type:"object",shape:e,catchall:st(),...I.normalizeParams(t)})}var Rn=v("ZodUnion",(e,t)=>{bn.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ui(e,r,o,n),e.options=t.options});function Li(e,t){return new Rn({type:"union",options:e,...I.normalizeParams(t)})}var dl=v("ZodXor",(e,t)=>{Rn.init(e,t),Zs.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ui(e,r,o,n),e.options=t.options});function Zf(e,t){return new dl({type:"union",options:e,inclusive:!1,...I.normalizeParams(t)})}var pl=v("ZodDiscriminatedUnion",(e,t)=>{Rn.init(e,t),Ms.init(e,t)});function Mf(e,t,r){return new pl({type:"union",options:t,discriminator:e,...I.normalizeParams(r)})}var ml=v("ZodIntersection",(e,t)=>{Vs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>wu(e,r,o,n)});function fl(e,t){return new ml({type:"intersection",left:e,right:t})}var hl=v("ZodTuple",(e,t)=>{Er.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Iu(e,r,o,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function gl(e,t,r){let o=t instanceof A,n=o?r:t,i=o?t:null;return new hl({type:"tuple",items:e,rest:i,...I.normalizeParams(n)})}var Lt=v("ZodRecord",(e,t)=>{Bs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ou(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function vl(e,t,r){return!t||!t._zod?new Lt({type:"record",keyType:En(),valueType:e,...I.normalizeParams(t)}):new Lt({type:"record",keyType:e,valueType:t,...I.normalizeParams(r)})}function Vf(e,t,r){let o=Q(e);return o._zod.values=void 0,new Lt({type:"record",keyType:o,valueType:t,...I.normalizeParams(r)})}function Bf(e,t,r){return new Lt({type:"record",keyType:e,valueType:t,mode:"loose",...I.normalizeParams(r)})}var _l=v("ZodMap",(e,t)=>{Gs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>xu(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(we(...r)),e.nonempty=r=>e.check(we(1,r)),e.max=(...r)=>e.check(We(...r)),e.size=(...r)=>e.check(it(...r))});function Gf(e,t,r){return new _l({type:"map",keyType:e,valueType:t,...I.normalizeParams(r)})}var yl=v("ZodSet",(e,t)=>{Hs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>bu(e,r,o,n),e.min=(...r)=>e.check(we(...r)),e.nonempty=r=>e.check(we(1,r)),e.max=(...r)=>e.check(We(...r)),e.size=(...r)=>e.check(it(...r))});function Hf(e,t){return new yl({type:"set",valueType:e,...I.normalizeParams(t)})}var Ft=v("ZodEnum",(e,t)=>{Js.init(e,t),C.init(e,t),e._zod.processJSONSchema=(o,n,i)=>pu(e,o,n,i),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(o,n)=>{let i={};for(let a of o)if(r.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Ft({...t,checks:[],...I.normalizeParams(n),entries:i})},e.exclude=(o,n)=>{let i={...t.entries};for(let a of o)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new Ft({...t,checks:[],...I.normalizeParams(n),entries:i})}});function Fi(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Ft({type:"enum",entries:r,...I.normalizeParams(t)})}function Jf(e,t){return new Ft({type:"enum",entries:e,...I.normalizeParams(t)})}var $l=v("ZodLiteral",(e,t)=>{Ws.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>mu(e,r,o,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Wf(e,t){return new $l({type:"literal",values:Array.isArray(e)?e:[e],...I.normalizeParams(t)})}var xl=v("ZodFile",(e,t)=>{qs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>gu(e,r,o,n),e.min=(r,o)=>e.check(we(r,o)),e.max=(r,o)=>e.check(We(r,o)),e.mime=(r,o)=>e.check(Dt(Array.isArray(r)?r:[r],o))});function qf(e){return Hc(xl,e)}var bl=v("ZodTransform",(e,t)=>{Ks.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>$u(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Me(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(I.issue(i,r.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(I.issue(a))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r.fallback=!0,r)):(r.value=n,r.fallback=!0,r)}});function Zi(e){return new bl({type:"transform",transform:e})}var Mi=v("ZodOptional",(e,t)=>{Dr.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>li(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Tn(e){return new Mi({type:"optional",innerType:e})}var Sl=v("ZodExactOptional",(e,t)=>{Xs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>li(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function kl(e){return new Sl({type:"optional",innerType:e})}var wl=v("ZodNullable",(e,t)=>{Ys.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>zu(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Pn(e){return new wl({type:"nullable",innerType:e})}function Kf(e){return Tn(Pn(e))}var Il=v("ZodDefault",(e,t)=>{Qs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Du(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Ol(e,t){return new Il({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():I.shallowClone(t)}})}var zl=v("ZodPrefault",(e,t)=>{ec.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Tu(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function El(e,t){return new zl({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():I.shallowClone(t)}})}var Vi=v("ZodNonOptional",(e,t)=>{tc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Eu(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Dl(e,t){return new Vi({type:"nonoptional",innerType:e,...I.normalizeParams(t)})}var Tl=v("ZodSuccess",(e,t)=>{nc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>vu(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Xf(e){return new Tl({type:"success",innerType:e})}var Pl=v("ZodCatch",(e,t)=>{rc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Pu(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Al(e,t){return new Pl({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Cl=v("ZodNaN",(e,t)=>{ic.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>fu(e,r,o,n)});function Yf(e){return Bc(Cl,e)}var Ln=v("ZodPipe",(e,t)=>{Tr.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Au(e,r,o,n),e.in=t.in,e.out=t.out});function yi(e,t){return new Ln({type:"pipe",in:e,out:t})}var Fn=v("ZodCodec",(e,t)=>{Ln.init(e,t),Sn.init(e,t)});function Qf(e,t,r){return new Fn({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function eh(e){let t=e._zod.def;return new Fn({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var jl=v("ZodPreprocess",(e,t)=>{Ln.init(e,t),oc.init(e,t)}),Nl=v("ZodReadonly",(e,t)=>{ac.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Cu(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Ul(e){return new Nl({type:"readonly",innerType:e})}var Rl=v("ZodTemplateLiteral",(e,t)=>{sc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>hu(e,r,o,n)});function th(e,t){return new Rl({type:"template_literal",parts:e,...I.normalizeParams(t)})}var Ll=v("ZodLazy",(e,t)=>{lc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Nu(e,r,o,n),e.unwrap=()=>e._zod.def.getter()});function Fl(e){return new Ll({type:"lazy",getter:e})}var Zl=v("ZodPromise",(e,t)=>{uc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ju(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function nh(e){return new Zl({type:"promise",innerType:e})}var Ml=v("ZodFunction",(e,t)=>{cc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>yu(e,r,o,n)});function rh(e){return new Ml({type:"function",input:Array.isArray(e?.input)?gl(e?.input):e?.input??Nn(st()),output:e?.output??st()})}var Zn=v("ZodCustom",(e,t)=>{dc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>_u(e,r,o,n)});function ih(e){let t=new F({check:"custom"});return t._zod.check=e,t}function oh(e,t){return Jc(Zn,e??(()=>!0),t)}function Vl(e,t={}){return Wc(Zn,e,t)}function Bl(e,t){return qc(e,t)}var ah=Kc,sh=Xc;function ch(e,t={}){let r=new Zn({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...I.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:r,path:[...r._zod.def.path??[]]})},r}var uh=(...e)=>Yc({Codec:Fn,Boolean:Bt,String:Zt},...e);function lh(e){let t=Fl(()=>Li([En(e),el(),tl(),ol(),Nn(t),vl(En(),t)]));return t}function dh(e,t){return new jl({type:"pipe",in:Zi(e),out:t})}var ax={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 sx(e){V({customError:e})}function cx(){return V().customError}var Gl;Gl||(Gl={});var z={...zn,...mi,iso:Rt},ux=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 lx(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function dx(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===o){let n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function ph(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return z.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return z.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let i=dx(n,t),a=X(i,t);return t.refs.set(n,a),t.processing.delete(n),a}if(e.enum!==void 0){let n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return z.null();if(n.length===0)return z.never();if(n.length===1)return z.literal(n[0]);if(n.every(a=>typeof a=="string"))return z.enum(n);let i=n.map(a=>z.literal(a));return i.length<2?i[0]:z.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return z.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(i=>{let a={...e,type:i};return ph(a,t)});return n.length===0?z.never():n.length===1?n[0]:z.union(n)}if(!r)return z.any();let o;switch(r){case"string":{let n=z.string();if(e.format){let i=e.format;i==="email"?n=n.check(z.email()):i==="uri"||i==="uri-reference"?n=n.check(z.url()):i==="uuid"||i==="guid"?n=n.check(z.uuid()):i==="date-time"?n=n.check(z.iso.datetime()):i==="date"?n=n.check(z.iso.date()):i==="time"?n=n.check(z.iso.time()):i==="duration"?n=n.check(z.iso.duration()):i==="ipv4"?n=n.check(z.ipv4()):i==="ipv6"?n=n.check(z.ipv6()):i==="mac"?n=n.check(z.mac()):i==="cidr"?n=n.check(z.cidrv4()):i==="cidr-v6"?n=n.check(z.cidrv6()):i==="base64"?n=n.check(z.base64()):i==="base64url"?n=n.check(z.base64url()):i==="e164"?n=n.check(z.e164()):i==="jwt"?n=n.check(z.jwt()):i==="emoji"?n=n.check(z.emoji()):i==="nanoid"?n=n.check(z.nanoid()):i==="cuid"?n=n.check(z.cuid()):i==="cuid2"?n=n.check(z.cuid2()):i==="ulid"?n=n.check(z.ulid()):i==="xid"?n=n.check(z.xid()):i==="ksuid"&&(n=n.check(z.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),o=n;break}case"number":case"integer":{let n=r==="integer"?z.number().int():z.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),o=n;break}case"boolean":{o=z.boolean();break}case"null":{o=z.null();break}case"object":{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[c,u]of Object.entries(i)){let l=X(u,t);n[c]=a.has(c)?l:l.optional()}if(e.propertyNames){let c=X(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?X(e.additionalProperties,t):z.any();if(Object.keys(n).length===0){o=z.record(c,u);break}let l=z.object(n).passthrough(),f=z.looseRecord(c,u);o=z.intersection(l,f);break}if(e.patternProperties){let c=e.patternProperties,u=Object.keys(c),l=[];for(let p of u){let _=X(c[p],t),b=z.string().regex(new RegExp(p));l.push(z.looseRecord(b,_))}let f=[];if(Object.keys(n).length>0&&f.push(z.object(n).passthrough()),f.push(...l),f.length===0)o=z.object({}).passthrough();else if(f.length===1)o=f[0];else{let p=z.intersection(f[0],f[1]);for(let _=2;_<f.length;_++)p=z.intersection(p,f[_]);o=p}break}let s=z.object(n);e.additionalProperties===!1?o=s.strict():typeof e.additionalProperties=="object"?o=s.catchall(X(e.additionalProperties,t)):o=s.passthrough();break}case"array":{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=n.map(c=>X(c,t)),s=i&&typeof i=="object"&&!Array.isArray(i)?X(i,t):void 0;s?o=z.tuple(a).rest(s):o=z.tuple(a),typeof e.minItems=="number"&&(o=o.check(z.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(z.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=i.map(c=>X(c,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?X(e.additionalItems,t):void 0;s?o=z.tuple(a).rest(s):o=z.tuple(a),typeof e.minItems=="number"&&(o=o.check(z.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(z.maxLength(e.maxItems)))}else if(i!==void 0){let a=X(i,t),s=z.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),o=s}else o=z.array(z.any());break}default:throw new Error(`Unsupported type: ${r}`)}return o}function X(e,t){if(typeof e=="boolean")return e?z.any():z.never();let r=ph(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(u=>X(u,t)),c=z.union(s);r=o?z.intersection(r,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(u=>X(u,t)),c=z.xor(s);r=o?z.intersection(r,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=o?r:z.any();else{let s=o?r:X(e.allOf[0],t),c=o?0:1;for(let u=c;u<e.allOf.length;u++)s=z.intersection(s,X(e.allOf[u],t));r=s}e.nullable===!0&&t.version==="openapi-3.0"&&(r=z.nullable(r)),e.readOnly===!0&&(r=z.readonly(r)),e.default!==void 0&&(r=r.default(e.default));let n={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of i)s in e&&(n[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(n[s]=e[s]);for(let s of Object.keys(e))ux.has(s)||(n[s]=e[s]);return Object.keys(n).length>0&&t.registry.add(r,n),e.description&&(r=r.describe(e.description)),r}function mh(e,t){if(typeof e=="boolean")return e?z.any():z.never();let r;try{r=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=lx(r,t?.defaultTarget),n=r.$defs||r.definitions||{},i={version:o,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:t?.registry??K};return X(r,i)}var Hl={};pe(Hl,{bigint:()=>hx,boolean:()=>fx,date:()=>gx,number:()=>mx,string:()=>px});function px(e){return hc(Zt,e)}function mx(e){return Sc(Vt,e)}function fx(e){return Dc(Bt,e)}function hx(e){return Pc(Gt,e)}function gx(e){return Vc(jn,e)}V(Pr());var Ht={apiUrl:$e.string().url().optional(),token:$e.string().min(1).optional()};var Gi=require("fs"),gh=require("os"),vh=require("path");M();var vx=$e.object(Ht).strict(),_x=()=>(0,vh.join)((0,gh.homedir)(),".shiprc"),fh=e=>e instanceof Error?e.message:String(e);function Bi(e){let t;try{t=(0,Gi.readFileSync)(e,"utf-8")}catch(o){throw k.config(`Failed to read ship config (${e}): ${fh(o)}`)}if(!t.trim())return{};let r;try{r=JSON.parse(t)}catch(o){throw k.config(`Invalid config in ${e}: ${fh(o)}`)}if(r===null||typeof r!="object"||Array.isArray(r))throw k.config(`Invalid config in ${e}: expected a JSON object`);return r}function hh(e,t){try{return vx.parse(e)}catch(r){if(r instanceof $e.ZodError){let o=r.issues[0];if(o.code==="unrecognized_keys"){let i=o.keys.filter(a=>a==="apiKey"||a==="deployToken");if(i.length>0){let a=i.map(s=>`"${s}"`).join(" and ");throw k.config(`Invalid config in ${t}: ${a} ${i.length>1?"are":"is"} no longer supported \u2014 the key is now "token". Run \`ship config\` to rewrite it.`)}}let n=o.path.length>0?` at ${o.path.join(".")}`:"";throw k.config(`Invalid config in ${t}${n}: ${o.message}`)}throw k.config(`Invalid config in ${t}`)}}function Jl(e){let t=e||void 0;if(t)return hh(Bi(t),t);let r=_x();return(0,Gi.existsSync)(r)?hh(Bi(r),r):{}}var Wl=Object.keys(Ht),yx=()=>(0,yh.join)((0,_h.homedir)(),".shiprc"),ql=Qt.HINT_LENGTH;function $x(e){let r=(e.startsWith(en.PREFIX)?en.PREFIX:Qt.PREFIX).length+ql;return e.length<r+ql+1?"...":`${e.slice(0,r)}...${e.slice(-ql)}`}function xx(e){if(!(0,Jt.existsSync)(e))return{};try{return Bi(e)}catch(t){throw ce(t)?k.config(`${t.message} \u2014 the file was left unchanged`):t}}async function xh(e={}){let{noColor:t}=e,r=e.configFile||yx(),o=p=>t?p:Re(p),n=p=>t?p:rn(p),i=xx(r),a=typeof i.token=="string"?i.token:void 0,s=Object.keys(i).filter(p=>!Wl.includes(p)),c=(0,$h.createInterface)({input:process.stdin,output:process.stdout});console.log(""),console.log(` ${o("Create a free API key at")} ${Nd}`),console.log("");let u=a?` Token (${o($x(a))}): `:" Token: ",l;try{l=(await c.question(u)).trim()}finally{c.close()}l&&Ye(l);let f={};for(let p of Wl)i[p]!==void 0&&(f[p]=i[p]);l&&(f.token=l),s.length>0&&mt(`dropped ${s.map(p=>`"${p}"`).join(", ")} \u2014 a ship config holds only ${Wl.join(" and ")}`,!1,t),(0,Jt.writeFileSync)(r,`${JSON.stringify(f,null,2)}
228
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){i(a);continue}if(e.external){let u=e.external.registry.get(a[0])?.id;if(t!==a[0]&&u){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(s.cycle){i(a);continue}if(s.count>1&&e.reused==="ref"){i(a);continue}}}function Xe(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=s=>{let c=e.seen.get(s);if(c.ref===null)return;let u=c.def??c.schema,l={...u},f=c.ref;if(c.ref=null,f){o(f);let _=e.seen.get(f),b=_.schema;if(b.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(b)):Object.assign(u,b),Object.assign(u,l),s._zod.parent===f)for(let D in u)D==="$ref"||D==="allOf"||D in l||delete u[D];if(b.$ref&&_.def)for(let D in u)D==="$ref"||D==="allOf"||D in _.def&&JSON.stringify(u[D])===JSON.stringify(_.def[D])&&delete u[D]}let p=s._zod.parent;if(p&&p!==f){o(p);let _=e.seen.get(p);if(_?.schema.$ref&&(u.$ref=_.schema.$ref,_.def))for(let b in u)b==="$ref"||b==="allOf"||b in _.def&&JSON.stringify(u[b])===JSON.stringify(_.def[b])&&delete u[b]}e.override({zodSchema:s,jsonSchema:u,path:c.path??[]})};for(let s of[...e.seen.entries()].reverse())o(s[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(s)}Object.assign(n,r.def??r.schema);let i=e.metadataRegistry.get(t)?.id;i!==void 0&&n.id===i&&delete n.id;let a=e.external?.defs??{};for(let s of e.seen.entries()){let c=s[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,a[c.defId]=c.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?n.$defs=a:n.definitions=a);try{let s=JSON.parse(JSON.stringify(n));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:Ut(t,"input",e.processors),output:Ut(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function ne(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return ne(o.element,r);if(o.type==="set")return ne(o.valueType,r);if(o.type==="lazy")return ne(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return ne(o.innerType,r);if(o.type==="intersection")return ne(o.left,r)||ne(o.right,r);if(o.type==="record"||o.type==="map")return ne(o.keyType,r)||ne(o.valueType,r);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:ne(o.in,r)||ne(o.out,r);if(o.type==="object"){for(let n in o.shape)if(ne(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(ne(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(ne(n,r))return!0;return!!(o.rest&&ne(o.rest,r))}return!1}var Qc=(e,t={})=>r=>{let o=qe({...r,processors:t});return U(e,o),Ke(o,e),Xe(o,e)},Ut=(e,t,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},a=qe({...n??{},target:i,io:t,processors:r});return U(e,a),Ke(a,e),Xe(a,e)};var ix={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},eu=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:a,format:s,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof a=="number"&&(n.maxLength=a),s&&(n.format=ix[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),u&&(n.contentEncoding=u),c&&c.size>0){let l=[...c];l.length===1?n.pattern=l[0].source:l.length>1&&(n.allOf=[...l.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},tu=(e,t,r,o)=>{let n=r,{minimum:i,maximum:a,format:s,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:l}=e._zod.bag;typeof s=="string"&&s.includes("int")?n.type="integer":n.type="number";let f=typeof l=="number"&&l>=(i??Number.NEGATIVE_INFINITY),p=typeof u=="number"&&u<=(a??Number.POSITIVE_INFINITY),_=t.target==="draft-04"||t.target==="openapi-3.0";f?_?(n.minimum=l,n.exclusiveMinimum=!0):n.exclusiveMinimum=l:typeof i=="number"&&(n.minimum=i),p?_?(n.maximum=u,n.exclusiveMaximum=!0):n.exclusiveMaximum=u:typeof a=="number"&&(n.maximum=a),typeof c=="number"&&(n.multipleOf=c)},nu=(e,t,r,o)=>{r.type="boolean"},ru=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},iu=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},ou=(e,t,r,o)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},au=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},su=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},cu=(e,t,r,o)=>{r.not={}},uu=(e,t,r,o)=>{},lu=(e,t,r,o)=>{},du=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},pu=(e,t,r,o)=>{let n=e._zod.def,i=ln(n.entries);i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),r.enum=i},mu=(e,t,r,o)=>{let n=e._zod.def,i=[];for(let a of n.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.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];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),i.every(a=>typeof a=="boolean")&&(r.type="boolean"),i.every(a=>a===null)&&(r.type="null"),r.enum=i},fu=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},hu=(e,t,r,o)=>{let n=r,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},gu=(e,t,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:c}=e._zod.bag;a!==void 0&&(i.minLength=a),s!==void 0&&(i.maxLength=s),c?c.length===1?(i.contentMediaType=c[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(n,i)},vu=(e,t,r,o)=>{r.type="boolean"},_u=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},yu=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},$u=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},xu=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},bu=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Su=(e,t,r,o)=>{let n=r,i=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(n.minItems=a),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=U(i.element,t,{...o,path:[...o.path,"items"]})},ku=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object",n.properties={};let a=i.shape;for(let u in a)n.properties[u]=U(a[u],t,{...o,path:[...o.path,"properties",u]});let s=new Set(Object.keys(a)),c=new Set([...s].filter(u=>{let l=i.shape[u]._zod;return t.io==="input"?l.optin===void 0:l.optout===void 0}));c.size>0&&(n.required=Array.from(c)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=U(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},ui=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,a=n.options.map((s,c)=>U(s,t,{...o,path:[...o.path,i?"oneOf":"anyOf",c]}));i?r.oneOf=a:r.anyOf=a},wu=(e,t,r,o)=>{let n=e._zod.def,i=U(n.left,t,{...o,path:[...o.path,"allOf",0]}),a=U(n.right,t,{...o,path:[...o.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,c=[...s(i)?i.allOf:[i],...s(a)?a.allOf:[a]];r.allOf=c},Iu=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=i.items.map((p,_)=>U(p,t,{...o,path:[...o.path,a,_]})),u=i.rest?U(i.rest,t,{...o,path:[...o.path,s,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=c,u&&(n.items=u)):t.target==="openapi-3.0"?(n.items={anyOf:c},u&&n.items.anyOf.push(u),n.minItems=c.length,u||(n.maxItems=c.length)):(n.items=c,u&&(n.additionalItems=u));let{minimum:l,maximum:f}=e._zod.bag;typeof l=="number"&&(n.minItems=l),typeof f=="number"&&(n.maxItems=f)},Ou=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let a=i.keyType,c=a._zod.bag?.patterns;if(i.mode==="loose"&&c&&c.size>0){let l=U(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let f of c)n.patternProperties[f.source]=l}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=U(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=U(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let u=a._zod.values;if(u){let l=[...u].filter(f=>typeof f=="string"||typeof f=="number");l.length>0&&(n.required=l)}},zu=(e,t,r,o)=>{let n=e._zod.def,i=U(n.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},Eu=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Du=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},Tu=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},Pu=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},Au=(e,t,r,o)=>{let n=e._zod.def,i=n.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?i?n.out:n.in:n.out;U(a,t,o);let s=t.seen.get(e);s.ref=a},Cu=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.readOnly=!0},ju=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},li=(e,t,r,o)=>{let n=e._zod.def;U(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Nu=(e,t,r,o)=>{let n=e._zod.innerType;U(n,t,o);let i=t.seen.get(e);i.ref=n},ci={string:eu,number:tu,boolean:nu,bigint:ru,symbol:iu,null:ou,undefined:au,void:su,never:cu,any:uu,unknown:lu,date:du,enum:pu,literal:mu,nan:fu,template_literal:hu,file:gu,success:vu,custom:_u,function:yu,transform:$u,map:xu,set:bu,array:Su,object:ku,union:ui,intersection:wu,tuple:Iu,record:Ou,nullable:zu,nonoptional:Eu,default:Du,prefault:Tu,catch:Pu,pipe:Au,readonly:Cu,promise:ju,optional:li,lazy:Nu};function di(e,t){if("_idmap"in e){let o=e,n=qe({...t,processors:ci}),i={};for(let c of o._idmap.entries()){let[u,l]=c;U(l,n)}let a={},s={registry:o,uri:t?.uri,defs:i};n.external=s;for(let c of o._idmap.entries()){let[u,l]=c;Ke(n,l),a[u]=Xe(n,l)}if(Object.keys(i).length>0){let c=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:i}}return{schemas:a}}let r=qe({...t,processors:ci});return U(e,r),Ke(r,e),Xe(r,e)}var pi=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(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=qe({processors:ci,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return U(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),Ke(this.ctx,t);let o=Xe(this.ctx,t),{"~standard":n,...i}=o;return i}};var Wm={};var zn={};pe(zn,{ZodAny:()=>al,ZodArray:()=>ll,ZodBase64:()=>Ai,ZodBase64URL:()=>Ci,ZodBigInt:()=>Gt,ZodBigIntFormat:()=>Ui,ZodBoolean:()=>Bt,ZodCIDRv4:()=>Ti,ZodCIDRv6:()=>Pi,ZodCUID:()=>ki,ZodCUID2:()=>wi,ZodCatch:()=>Pl,ZodCodec:()=>Fn,ZodCustom:()=>Zn,ZodCustomStringFormat:()=>Mt,ZodDate:()=>jn,ZodDefault:()=>Il,ZodDiscriminatedUnion:()=>pl,ZodE164:()=>ji,ZodEmail:()=>xi,ZodEmoji:()=>bi,ZodEnum:()=>Ft,ZodExactOptional:()=>Sl,ZodFile:()=>xl,ZodFunction:()=>Ml,ZodGUID:()=>Dn,ZodIPv4:()=>Ei,ZodIPv6:()=>Di,ZodIntersection:()=>ml,ZodJWT:()=>Ni,ZodKSUID:()=>zi,ZodLazy:()=>Ll,ZodLiteral:()=>$l,ZodMAC:()=>Qu,ZodMap:()=>_l,ZodNaN:()=>Cl,ZodNanoID:()=>Si,ZodNever:()=>cl,ZodNonOptional:()=>Vi,ZodNull:()=>il,ZodNullable:()=>wl,ZodNumber:()=>Vt,ZodNumberFormat:()=>ct,ZodObject:()=>Un,ZodOptional:()=>Mi,ZodPipe:()=>Ln,ZodPrefault:()=>zl,ZodPreprocess:()=>jl,ZodPromise:()=>Zl,ZodReadonly:()=>Nl,ZodRecord:()=>Lt,ZodSet:()=>yl,ZodString:()=>Zt,ZodStringFormat:()=>L,ZodSuccess:()=>Tl,ZodSymbol:()=>nl,ZodTemplateLiteral:()=>Rl,ZodTransform:()=>bl,ZodTuple:()=>hl,ZodType:()=>C,ZodULID:()=>Ii,ZodURL:()=>Cn,ZodUUID:()=>Ie,ZodUndefined:()=>rl,ZodUnion:()=>Rn,ZodUnknown:()=>sl,ZodVoid:()=>ul,ZodXID:()=>Oi,ZodXor:()=>dl,_ZodString:()=>$i,_default:()=>Ol,_function:()=>ih,any:()=>jf,array:()=>Nn,base64:()=>_f,base64url:()=>yf,bigint:()=>Df,boolean:()=>tl,catch:()=>Al,check:()=>oh,cidrv4:()=>gf,cidrv6:()=>vf,codec:()=>eh,cuid:()=>cf,cuid2:()=>uf,custom:()=>ah,date:()=>Uf,describe:()=>sh,discriminatedUnion:()=>Vf,e164:()=>$f,email:()=>Xm,emoji:()=>af,enum:()=>Fi,exactOptional:()=>kl,file:()=>Kf,float32:()=>If,float64:()=>Of,function:()=>ih,guid:()=>Ym,hash:()=>wf,hex:()=>kf,hostname:()=>Sf,httpUrl:()=>of,instanceof:()=>uh,int:()=>_i,int32:()=>zf,int64:()=>Tf,intersection:()=>fl,invertCodec:()=>th,ipv4:()=>mf,ipv6:()=>hf,json:()=>dh,jwt:()=>xf,keyof:()=>Rf,ksuid:()=>pf,lazy:()=>Fl,literal:()=>qf,looseObject:()=>Zf,looseRecord:()=>Gf,mac:()=>ff,map:()=>Hf,meta:()=>ch,nan:()=>Qf,nanoid:()=>sf,nativeEnum:()=>Wf,never:()=>Ri,nonoptional:()=>Dl,null:()=>ol,nullable:()=>Pn,nullish:()=>Xf,number:()=>el,object:()=>Lf,optional:()=>Tn,partialRecord:()=>Bf,pipe:()=>yi,prefault:()=>El,preprocess:()=>ph,promise:()=>rh,readonly:()=>Ul,record:()=>vl,refine:()=>Vl,set:()=>Jf,strictObject:()=>Ff,string:()=>En,stringFormat:()=>bf,stringbool:()=>lh,success:()=>Yf,superRefine:()=>Bl,symbol:()=>Af,templateLiteral:()=>nh,transform:()=>Zi,tuple:()=>gl,uint32:()=>Ef,uint64:()=>Pf,ulid:()=>lf,undefined:()=>Cf,union:()=>Li,unknown:()=>st,url:()=>rf,uuid:()=>Qm,uuidv4:()=>ef,uuidv6:()=>tf,uuidv7:()=>nf,void:()=>Nf,xid:()=>df,xor:()=>Mf});var mi={};pe(mi,{endsWith:()=>Et,gt:()=>ke,gte:()=>te,includes:()=>Ot,length:()=>at,lowercase:()=>wt,lt:()=>Se,lte:()=>le,maxLength:()=>ot,maxSize:()=>We,mime:()=>Dt,minLength:()=>Ae,minSize:()=>we,multipleOf:()=>Je,negative:()=>ii,nonnegative:()=>ai,nonpositive:()=>oi,normalize:()=>Tt,overwrite:()=>ye,positive:()=>ri,property:()=>si,regex:()=>kt,size:()=>it,slugify:()=>jt,startsWith:()=>zt,toLowerCase:()=>At,toUpperCase:()=>Ct,trim:()=>Pt,uppercase:()=>It});var Rt={};pe(Rt,{ZodISODate:()=>hi,ZodISODateTime:()=>fi,ZodISODuration:()=>vi,ZodISOTime:()=>gi,date:()=>Ru,datetime:()=>Uu,duration:()=>Fu,time:()=>Lu});var fi=v("ZodISODateTime",(e,t)=>{fs.init(e,t),L.init(e,t)});function Uu(e){return _c(fi,e)}var hi=v("ZodISODate",(e,t)=>{hs.init(e,t),L.init(e,t)});function Ru(e){return yc(hi,e)}var gi=v("ZodISOTime",(e,t)=>{gs.init(e,t),L.init(e,t)});function Lu(e){return $c(gi,e)}var vi=v("ZodISODuration",(e,t)=>{vs.init(e,t),L.init(e,t)});function Fu(e){return xc(vi,e)}var qm=(e,t)=>{hn.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>vn(e,r)},flatten:{value:r=>gn(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,ht,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,ht,2)}},isEmpty:{get(){return e.issues.length===0}}})},ax=v("ZodError",qm),ae=v("ZodError",qm,{Parent:Error});var Zu=_t(ae),Mu=yt(ae),Vu=$t(ae),Bu=xt(ae),Gu=dr(ae),Hu=pr(ae),Ju=mr(ae),Wu=fr(ae),qu=hr(ae),Ku=gr(ae),Xu=vr(ae),Yu=_r(ae);var Km=new WeakMap;function An(e,t,r){let o=Object.getPrototypeOf(e),n=Km.get(o);if(n||(n=new Set,Km.set(o,n)),!n.has(t)){n.add(t);for(let i in r){let a=r[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 C=v("ZodType",(e,t)=>(A.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Ut(e,"input"),output:Ut(e,"output")}}),e.toJSONSchema=Qc(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(r,o)=>Zu(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>Vu(e,r,o),e.parseAsync=async(r,o)=>Mu(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>Bu(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>Gu(e,r,o),e.decode=(r,o)=>Hu(e,r,o),e.encodeAsync=async(r,o)=>Ju(e,r,o),e.decodeAsync=async(r,o)=>Wu(e,r,o),e.safeEncode=(r,o)=>qu(e,r,o),e.safeDecode=(r,o)=>Ku(e,r,o),e.safeEncodeAsync=async(r,o)=>Xu(e,r,o),e.safeDecodeAsync=async(r,o)=>Yu(e,r,o),An(e,"ZodType",{check(...r){let o=this.def;return this.clone(I.mergeDefs(o,{checks:[...o.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,o){return Q(this,r,o)},brand(){return this},register(r,o){return r.add(this,o),this},refine(r,o){return this.check(Vl(r,o))},superRefine(r,o){return this.check(Bl(r,o))},overwrite(r){return this.check(ye(r))},optional(){return Tn(this)},exactOptional(){return kl(this)},nullable(){return Pn(this)},nullish(){return Tn(Pn(this))},nonoptional(r){return Dl(this,r)},array(){return Nn(this)},or(r){return Li([this,r])},and(r){return fl(this,r)},transform(r){return yi(this,Zi(r))},default(r){return Ol(this,r)},prefault(r){return El(this,r)},catch(r){return Al(this,r)},pipe(r){return yi(this,r)},readonly(){return Ul(this)},describe(r){let o=this.clone();return K.add(o,{description:r}),o},meta(...r){if(r.length===0)return K.get(this);let o=this.clone();return K.add(o,r[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(e,"description",{get(){return K.get(e)?.description},configurable:!0}),e)),$i=v("_ZodString",(e,t)=>{rt.init(e,t),C.init(e,t),e._zod.processJSONSchema=(o,n,i)=>eu(e,o,n,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,An(e,"_ZodString",{regex(...o){return this.check(kt(...o))},includes(...o){return this.check(Ot(...o))},startsWith(...o){return this.check(zt(...o))},endsWith(...o){return this.check(Et(...o))},min(...o){return this.check(Ae(...o))},max(...o){return this.check(ot(...o))},length(...o){return this.check(at(...o))},nonempty(...o){return this.check(Ae(1,...o))},lowercase(o){return this.check(wt(o))},uppercase(o){return this.check(It(o))},trim(){return this.check(Pt())},normalize(...o){return this.check(Tt(...o))},toLowerCase(){return this.check(At())},toUpperCase(){return this.check(Ct())},slugify(){return this.check(jt())}})}),Zt=v("ZodString",(e,t)=>{rt.init(e,t),$i.init(e,t),e.email=r=>e.check(Ur(xi,r)),e.url=r=>e.check(On(Cn,r)),e.jwt=r=>e.check(ni(Ni,r)),e.emoji=r=>e.check(Mr(bi,r)),e.guid=r=>e.check(In(Dn,r)),e.uuid=r=>e.check(Rr(Ie,r)),e.uuidv4=r=>e.check(Lr(Ie,r)),e.uuidv6=r=>e.check(Fr(Ie,r)),e.uuidv7=r=>e.check(Zr(Ie,r)),e.nanoid=r=>e.check(Vr(Si,r)),e.guid=r=>e.check(In(Dn,r)),e.cuid=r=>e.check(Br(ki,r)),e.cuid2=r=>e.check(Gr(wi,r)),e.ulid=r=>e.check(Hr(Ii,r)),e.base64=r=>e.check(Qr(Ai,r)),e.base64url=r=>e.check(ei(Ci,r)),e.xid=r=>e.check(Jr(Oi,r)),e.ksuid=r=>e.check(Wr(zi,r)),e.ipv4=r=>e.check(qr(Ei,r)),e.ipv6=r=>e.check(Kr(Di,r)),e.cidrv4=r=>e.check(Xr(Ti,r)),e.cidrv6=r=>e.check(Yr(Pi,r)),e.e164=r=>e.check(ti(ji,r)),e.datetime=r=>e.check(Uu(r)),e.date=r=>e.check(Ru(r)),e.time=r=>e.check(Lu(r)),e.duration=r=>e.check(Fu(r))});function En(e){return fc(Zt,e)}var L=v("ZodStringFormat",(e,t)=>{R.init(e,t),$i.init(e,t)}),xi=v("ZodEmail",(e,t)=>{os.init(e,t),L.init(e,t)});function Xm(e){return Ur(xi,e)}var Dn=v("ZodGUID",(e,t)=>{rs.init(e,t),L.init(e,t)});function Ym(e){return In(Dn,e)}var Ie=v("ZodUUID",(e,t)=>{is.init(e,t),L.init(e,t)});function Qm(e){return Rr(Ie,e)}function ef(e){return Lr(Ie,e)}function tf(e){return Fr(Ie,e)}function nf(e){return Zr(Ie,e)}var Cn=v("ZodURL",(e,t)=>{as.init(e,t),L.init(e,t)});function rf(e){return On(Cn,e)}function of(e){return On(Cn,{protocol:ue.httpProtocol,hostname:ue.domain,...I.normalizeParams(e)})}var bi=v("ZodEmoji",(e,t)=>{ss.init(e,t),L.init(e,t)});function af(e){return Mr(bi,e)}var Si=v("ZodNanoID",(e,t)=>{cs.init(e,t),L.init(e,t)});function sf(e){return Vr(Si,e)}var ki=v("ZodCUID",(e,t)=>{us.init(e,t),L.init(e,t)});function cf(e){return Br(ki,e)}var wi=v("ZodCUID2",(e,t)=>{ls.init(e,t),L.init(e,t)});function uf(e){return Gr(wi,e)}var Ii=v("ZodULID",(e,t)=>{ds.init(e,t),L.init(e,t)});function lf(e){return Hr(Ii,e)}var Oi=v("ZodXID",(e,t)=>{ps.init(e,t),L.init(e,t)});function df(e){return Jr(Oi,e)}var zi=v("ZodKSUID",(e,t)=>{ms.init(e,t),L.init(e,t)});function pf(e){return Wr(zi,e)}var Ei=v("ZodIPv4",(e,t)=>{_s.init(e,t),L.init(e,t)});function mf(e){return qr(Ei,e)}var Qu=v("ZodMAC",(e,t)=>{$s.init(e,t),L.init(e,t)});function ff(e){return gc(Qu,e)}var Di=v("ZodIPv6",(e,t)=>{ys.init(e,t),L.init(e,t)});function hf(e){return Kr(Di,e)}var Ti=v("ZodCIDRv4",(e,t)=>{xs.init(e,t),L.init(e,t)});function gf(e){return Xr(Ti,e)}var Pi=v("ZodCIDRv6",(e,t)=>{bs.init(e,t),L.init(e,t)});function vf(e){return Yr(Pi,e)}var Ai=v("ZodBase64",(e,t)=>{ks.init(e,t),L.init(e,t)});function _f(e){return Qr(Ai,e)}var Ci=v("ZodBase64URL",(e,t)=>{ws.init(e,t),L.init(e,t)});function yf(e){return ei(Ci,e)}var ji=v("ZodE164",(e,t)=>{Is.init(e,t),L.init(e,t)});function $f(e){return ti(ji,e)}var Ni=v("ZodJWT",(e,t)=>{Os.init(e,t),L.init(e,t)});function xf(e){return ni(Ni,e)}var Mt=v("ZodCustomStringFormat",(e,t)=>{zs.init(e,t),L.init(e,t)});function bf(e,t,r={}){return Nt(Mt,e,t,r)}function Sf(e){return Nt(Mt,"hostname",ue.hostname,e)}function kf(e){return Nt(Mt,"hex",ue.hex,e)}function wf(e,t){let r=t?.enc??"hex",o=`${e}_${r}`,n=ue[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return Nt(Mt,o,n,t)}var Vt=v("ZodNumber",(e,t)=>{Or.init(e,t),C.init(e,t),e._zod.processJSONSchema=(o,n,i)=>tu(e,o,n,i),An(e,"ZodNumber",{gt(o,n){return this.check(ke(o,n))},gte(o,n){return this.check(te(o,n))},min(o,n){return this.check(te(o,n))},lt(o,n){return this.check(Se(o,n))},lte(o,n){return this.check(le(o,n))},max(o,n){return this.check(le(o,n))},int(o){return this.check(_i(o))},safe(o){return this.check(_i(o))},positive(o){return this.check(ke(0,o))},nonnegative(o){return this.check(te(0,o))},negative(o){return this.check(Se(0,o))},nonpositive(o){return this.check(le(0,o))},multipleOf(o,n){return this.check(Je(o,n))},step(o,n){return this.check(Je(o,n))},finite(){return this}});let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function el(e){return bc(Vt,e)}var ct=v("ZodNumberFormat",(e,t)=>{Es.init(e,t),Vt.init(e,t)});function _i(e){return kc(ct,e)}function If(e){return wc(ct,e)}function Of(e){return Ic(ct,e)}function zf(e){return Oc(ct,e)}function Ef(e){return zc(ct,e)}var Bt=v("ZodBoolean",(e,t)=>{xn.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>nu(e,r,o,n)});function tl(e){return Ec(Bt,e)}var Gt=v("ZodBigInt",(e,t)=>{zr.init(e,t),C.init(e,t),e._zod.processJSONSchema=(o,n,i)=>ru(e,o,n,i),e.gte=(o,n)=>e.check(te(o,n)),e.min=(o,n)=>e.check(te(o,n)),e.gt=(o,n)=>e.check(ke(o,n)),e.gte=(o,n)=>e.check(te(o,n)),e.min=(o,n)=>e.check(te(o,n)),e.lt=(o,n)=>e.check(Se(o,n)),e.lte=(o,n)=>e.check(le(o,n)),e.max=(o,n)=>e.check(le(o,n)),e.positive=o=>e.check(ke(BigInt(0),o)),e.negative=o=>e.check(Se(BigInt(0),o)),e.nonpositive=o=>e.check(le(BigInt(0),o)),e.nonnegative=o=>e.check(te(BigInt(0),o)),e.multipleOf=(o,n)=>e.check(Je(o,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function Df(e){return Tc(Gt,e)}var Ui=v("ZodBigIntFormat",(e,t)=>{Ds.init(e,t),Gt.init(e,t)});function Tf(e){return Ac(Ui,e)}function Pf(e){return Cc(Ui,e)}var nl=v("ZodSymbol",(e,t)=>{Ts.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>iu(e,r,o,n)});function Af(e){return jc(nl,e)}var rl=v("ZodUndefined",(e,t)=>{Ps.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>au(e,r,o,n)});function Cf(e){return Nc(rl,e)}var il=v("ZodNull",(e,t)=>{As.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ou(e,r,o,n)});function ol(e){return Uc(il,e)}var al=v("ZodAny",(e,t)=>{Cs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>uu(e,r,o,n)});function jf(){return Rc(al)}var sl=v("ZodUnknown",(e,t)=>{js.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>lu(e,r,o,n)});function st(){return Lc(sl)}var cl=v("ZodNever",(e,t)=>{Ns.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>cu(e,r,o,n)});function Ri(e){return Fc(cl,e)}var ul=v("ZodVoid",(e,t)=>{Us.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>su(e,r,o,n)});function Nf(e){return Zc(ul,e)}var jn=v("ZodDate",(e,t)=>{Rs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(o,n,i)=>du(e,o,n,i),e.min=(o,n)=>e.check(te(o,n)),e.max=(o,n)=>e.check(le(o,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function Uf(e){return Mc(jn,e)}var ll=v("ZodArray",(e,t)=>{Ls.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Su(e,r,o,n),e.element=t.element,An(e,"ZodArray",{min(r,o){return this.check(Ae(r,o))},nonempty(r){return this.check(Ae(1,r))},max(r,o){return this.check(ot(r,o))},length(r,o){return this.check(at(r,o))},unwrap(){return this.element}})});function Nn(e,t){return Gc(ll,e,t)}function Rf(e){let t=e._zod.def.shape;return Fi(Object.keys(t))}var Un=v("ZodObject",(e,t)=>{Fs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ku(e,r,o,n),I.defineLazy(e,"shape",()=>t.shape),An(e,"ZodObject",{keyof(){return Fi(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:st()})},loose(){return this.clone({...this._zod.def,catchall:st()})},strict(){return this.clone({...this._zod.def,catchall:Ri()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return I.extend(this,r)},safeExtend(r){return I.safeExtend(this,r)},merge(r){return I.merge(this,r)},pick(r){return I.pick(this,r)},omit(r){return I.omit(this,r)},partial(...r){return I.partial(Mi,this,r[0])},required(...r){return I.required(Vi,this,r[0])}})});function Lf(e,t){let r={type:"object",shape:e??{},...I.normalizeParams(t)};return new Un(r)}function Ff(e,t){return new Un({type:"object",shape:e,catchall:Ri(),...I.normalizeParams(t)})}function Zf(e,t){return new Un({type:"object",shape:e,catchall:st(),...I.normalizeParams(t)})}var Rn=v("ZodUnion",(e,t)=>{bn.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ui(e,r,o,n),e.options=t.options});function Li(e,t){return new Rn({type:"union",options:e,...I.normalizeParams(t)})}var dl=v("ZodXor",(e,t)=>{Rn.init(e,t),Zs.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ui(e,r,o,n),e.options=t.options});function Mf(e,t){return new dl({type:"union",options:e,inclusive:!1,...I.normalizeParams(t)})}var pl=v("ZodDiscriminatedUnion",(e,t)=>{Rn.init(e,t),Ms.init(e,t)});function Vf(e,t,r){return new pl({type:"union",options:t,discriminator:e,...I.normalizeParams(r)})}var ml=v("ZodIntersection",(e,t)=>{Vs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>wu(e,r,o,n)});function fl(e,t){return new ml({type:"intersection",left:e,right:t})}var hl=v("ZodTuple",(e,t)=>{Er.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Iu(e,r,o,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function gl(e,t,r){let o=t instanceof A,n=o?r:t,i=o?t:null;return new hl({type:"tuple",items:e,rest:i,...I.normalizeParams(n)})}var Lt=v("ZodRecord",(e,t)=>{Bs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ou(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function vl(e,t,r){return!t||!t._zod?new Lt({type:"record",keyType:En(),valueType:e,...I.normalizeParams(t)}):new Lt({type:"record",keyType:e,valueType:t,...I.normalizeParams(r)})}function Bf(e,t,r){let o=Q(e);return o._zod.values=void 0,new Lt({type:"record",keyType:o,valueType:t,...I.normalizeParams(r)})}function Gf(e,t,r){return new Lt({type:"record",keyType:e,valueType:t,mode:"loose",...I.normalizeParams(r)})}var _l=v("ZodMap",(e,t)=>{Gs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>xu(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(we(...r)),e.nonempty=r=>e.check(we(1,r)),e.max=(...r)=>e.check(We(...r)),e.size=(...r)=>e.check(it(...r))});function Hf(e,t,r){return new _l({type:"map",keyType:e,valueType:t,...I.normalizeParams(r)})}var yl=v("ZodSet",(e,t)=>{Hs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>bu(e,r,o,n),e.min=(...r)=>e.check(we(...r)),e.nonempty=r=>e.check(we(1,r)),e.max=(...r)=>e.check(We(...r)),e.size=(...r)=>e.check(it(...r))});function Jf(e,t){return new yl({type:"set",valueType:e,...I.normalizeParams(t)})}var Ft=v("ZodEnum",(e,t)=>{Js.init(e,t),C.init(e,t),e._zod.processJSONSchema=(o,n,i)=>pu(e,o,n,i),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(o,n)=>{let i={};for(let a of o)if(r.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Ft({...t,checks:[],...I.normalizeParams(n),entries:i})},e.exclude=(o,n)=>{let i={...t.entries};for(let a of o)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new Ft({...t,checks:[],...I.normalizeParams(n),entries:i})}});function Fi(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Ft({type:"enum",entries:r,...I.normalizeParams(t)})}function Wf(e,t){return new Ft({type:"enum",entries:e,...I.normalizeParams(t)})}var $l=v("ZodLiteral",(e,t)=>{Ws.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>mu(e,r,o,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function qf(e,t){return new $l({type:"literal",values:Array.isArray(e)?e:[e],...I.normalizeParams(t)})}var xl=v("ZodFile",(e,t)=>{qs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>gu(e,r,o,n),e.min=(r,o)=>e.check(we(r,o)),e.max=(r,o)=>e.check(We(r,o)),e.mime=(r,o)=>e.check(Dt(Array.isArray(r)?r:[r],o))});function Kf(e){return Hc(xl,e)}var bl=v("ZodTransform",(e,t)=>{Ks.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>$u(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Me(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(I.issue(i,r.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(I.issue(a))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r.fallback=!0,r)):(r.value=n,r.fallback=!0,r)}});function Zi(e){return new bl({type:"transform",transform:e})}var Mi=v("ZodOptional",(e,t)=>{Dr.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>li(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Tn(e){return new Mi({type:"optional",innerType:e})}var Sl=v("ZodExactOptional",(e,t)=>{Xs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>li(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function kl(e){return new Sl({type:"optional",innerType:e})}var wl=v("ZodNullable",(e,t)=>{Ys.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>zu(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Pn(e){return new wl({type:"nullable",innerType:e})}function Xf(e){return Tn(Pn(e))}var Il=v("ZodDefault",(e,t)=>{Qs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Du(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Ol(e,t){return new Il({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():I.shallowClone(t)}})}var zl=v("ZodPrefault",(e,t)=>{ec.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Tu(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function El(e,t){return new zl({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():I.shallowClone(t)}})}var Vi=v("ZodNonOptional",(e,t)=>{tc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Eu(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Dl(e,t){return new Vi({type:"nonoptional",innerType:e,...I.normalizeParams(t)})}var Tl=v("ZodSuccess",(e,t)=>{nc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>vu(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Yf(e){return new Tl({type:"success",innerType:e})}var Pl=v("ZodCatch",(e,t)=>{rc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Pu(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Al(e,t){return new Pl({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Cl=v("ZodNaN",(e,t)=>{ic.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>fu(e,r,o,n)});function Qf(e){return Bc(Cl,e)}var Ln=v("ZodPipe",(e,t)=>{Tr.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Au(e,r,o,n),e.in=t.in,e.out=t.out});function yi(e,t){return new Ln({type:"pipe",in:e,out:t})}var Fn=v("ZodCodec",(e,t)=>{Ln.init(e,t),Sn.init(e,t)});function eh(e,t,r){return new Fn({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function th(e){let t=e._zod.def;return new Fn({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var jl=v("ZodPreprocess",(e,t)=>{Ln.init(e,t),oc.init(e,t)}),Nl=v("ZodReadonly",(e,t)=>{ac.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Cu(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Ul(e){return new Nl({type:"readonly",innerType:e})}var Rl=v("ZodTemplateLiteral",(e,t)=>{sc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>hu(e,r,o,n)});function nh(e,t){return new Rl({type:"template_literal",parts:e,...I.normalizeParams(t)})}var Ll=v("ZodLazy",(e,t)=>{lc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Nu(e,r,o,n),e.unwrap=()=>e._zod.def.getter()});function Fl(e){return new Ll({type:"lazy",getter:e})}var Zl=v("ZodPromise",(e,t)=>{uc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ju(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function rh(e){return new Zl({type:"promise",innerType:e})}var Ml=v("ZodFunction",(e,t)=>{cc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>yu(e,r,o,n)});function ih(e){return new Ml({type:"function",input:Array.isArray(e?.input)?gl(e?.input):e?.input??Nn(st()),output:e?.output??st()})}var Zn=v("ZodCustom",(e,t)=>{dc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(r,o,n)=>_u(e,r,o,n)});function oh(e){let t=new F({check:"custom"});return t._zod.check=e,t}function ah(e,t){return Jc(Zn,e??(()=>!0),t)}function Vl(e,t={}){return Wc(Zn,e,t)}function Bl(e,t){return qc(e,t)}var sh=Kc,ch=Xc;function uh(e,t={}){let r=new Zn({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...I.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:r,path:[...r._zod.def.path??[]]})},r}var lh=(...e)=>Yc({Codec:Fn,Boolean:Bt,String:Zt},...e);function dh(e){let t=Fl(()=>Li([En(e),el(),tl(),ol(),Nn(t),vl(En(),t)]));return t}function ph(e,t){return new jl({type:"pipe",in:Zi(e),out:t})}var cx={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 ux(e){V({customError:e})}function lx(){return V().customError}var Gl;Gl||(Gl={});var z={...zn,...mi,iso:Rt},dx=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 px(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function mx(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===o){let n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function mh(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return z.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return z.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let i=mx(n,t),a=X(i,t);return t.refs.set(n,a),t.processing.delete(n),a}if(e.enum!==void 0){let n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return z.null();if(n.length===0)return z.never();if(n.length===1)return z.literal(n[0]);if(n.every(a=>typeof a=="string"))return z.enum(n);let i=n.map(a=>z.literal(a));return i.length<2?i[0]:z.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return z.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(i=>{let a={...e,type:i};return mh(a,t)});return n.length===0?z.never():n.length===1?n[0]:z.union(n)}if(!r)return z.any();let o;switch(r){case"string":{let n=z.string();if(e.format){let i=e.format;i==="email"?n=n.check(z.email()):i==="uri"||i==="uri-reference"?n=n.check(z.url()):i==="uuid"||i==="guid"?n=n.check(z.uuid()):i==="date-time"?n=n.check(z.iso.datetime()):i==="date"?n=n.check(z.iso.date()):i==="time"?n=n.check(z.iso.time()):i==="duration"?n=n.check(z.iso.duration()):i==="ipv4"?n=n.check(z.ipv4()):i==="ipv6"?n=n.check(z.ipv6()):i==="mac"?n=n.check(z.mac()):i==="cidr"?n=n.check(z.cidrv4()):i==="cidr-v6"?n=n.check(z.cidrv6()):i==="base64"?n=n.check(z.base64()):i==="base64url"?n=n.check(z.base64url()):i==="e164"?n=n.check(z.e164()):i==="jwt"?n=n.check(z.jwt()):i==="emoji"?n=n.check(z.emoji()):i==="nanoid"?n=n.check(z.nanoid()):i==="cuid"?n=n.check(z.cuid()):i==="cuid2"?n=n.check(z.cuid2()):i==="ulid"?n=n.check(z.ulid()):i==="xid"?n=n.check(z.xid()):i==="ksuid"&&(n=n.check(z.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),o=n;break}case"number":case"integer":{let n=r==="integer"?z.number().int():z.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),o=n;break}case"boolean":{o=z.boolean();break}case"null":{o=z.null();break}case"object":{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[c,u]of Object.entries(i)){let l=X(u,t);n[c]=a.has(c)?l:l.optional()}if(e.propertyNames){let c=X(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?X(e.additionalProperties,t):z.any();if(Object.keys(n).length===0){o=z.record(c,u);break}let l=z.object(n).passthrough(),f=z.looseRecord(c,u);o=z.intersection(l,f);break}if(e.patternProperties){let c=e.patternProperties,u=Object.keys(c),l=[];for(let p of u){let _=X(c[p],t),b=z.string().regex(new RegExp(p));l.push(z.looseRecord(b,_))}let f=[];if(Object.keys(n).length>0&&f.push(z.object(n).passthrough()),f.push(...l),f.length===0)o=z.object({}).passthrough();else if(f.length===1)o=f[0];else{let p=z.intersection(f[0],f[1]);for(let _=2;_<f.length;_++)p=z.intersection(p,f[_]);o=p}break}let s=z.object(n);e.additionalProperties===!1?o=s.strict():typeof e.additionalProperties=="object"?o=s.catchall(X(e.additionalProperties,t)):o=s.passthrough();break}case"array":{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=n.map(c=>X(c,t)),s=i&&typeof i=="object"&&!Array.isArray(i)?X(i,t):void 0;s?o=z.tuple(a).rest(s):o=z.tuple(a),typeof e.minItems=="number"&&(o=o.check(z.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(z.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=i.map(c=>X(c,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?X(e.additionalItems,t):void 0;s?o=z.tuple(a).rest(s):o=z.tuple(a),typeof e.minItems=="number"&&(o=o.check(z.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(z.maxLength(e.maxItems)))}else if(i!==void 0){let a=X(i,t),s=z.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),o=s}else o=z.array(z.any());break}default:throw new Error(`Unsupported type: ${r}`)}return o}function X(e,t){if(typeof e=="boolean")return e?z.any():z.never();let r=mh(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(u=>X(u,t)),c=z.union(s);r=o?z.intersection(r,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(u=>X(u,t)),c=z.xor(s);r=o?z.intersection(r,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=o?r:z.any();else{let s=o?r:X(e.allOf[0],t),c=o?0:1;for(let u=c;u<e.allOf.length;u++)s=z.intersection(s,X(e.allOf[u],t));r=s}e.nullable===!0&&t.version==="openapi-3.0"&&(r=z.nullable(r)),e.readOnly===!0&&(r=z.readonly(r)),e.default!==void 0&&(r=r.default(e.default));let n={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of i)s in e&&(n[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(n[s]=e[s]);for(let s of Object.keys(e))dx.has(s)||(n[s]=e[s]);return Object.keys(n).length>0&&t.registry.add(r,n),e.description&&(r=r.describe(e.description)),r}function fh(e,t){if(typeof e=="boolean")return e?z.any():z.never();let r;try{r=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=px(r,t?.defaultTarget),n=r.$defs||r.definitions||{},i={version:o,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:t?.registry??K};return X(r,i)}var Hl={};pe(Hl,{bigint:()=>vx,boolean:()=>gx,date:()=>_x,number:()=>hx,string:()=>fx});function fx(e){return hc(Zt,e)}function hx(e){return Sc(Vt,e)}function gx(e){return Dc(Bt,e)}function vx(e){return Pc(Gt,e)}function _x(e){return Vc(jn,e)}V(Pr());var Ht={apiUrl:$e.string().url().optional(),token:$e.string().min(1).optional()};var Gi=require("fs"),vh=require("os"),_h=require("path");M();var yx=$e.object(Ht).strict(),$x=()=>(0,_h.join)((0,vh.homedir)(),".shiprc"),hh=e=>e instanceof Error?e.message:String(e);function Bi(e){let t;try{t=(0,Gi.readFileSync)(e,"utf-8")}catch(o){throw k.config(`Failed to read ship config (${e}): ${hh(o)}`)}if(!t.trim())return{};let r;try{r=JSON.parse(t)}catch(o){throw k.config(`Invalid config in ${e}: ${hh(o)}`)}if(r===null||typeof r!="object"||Array.isArray(r))throw k.config(`Invalid config in ${e}: expected a JSON object`);return r}function gh(e,t){try{return yx.parse(e)}catch(r){if(r instanceof $e.ZodError){let o=r.issues[0];if(o.code==="unrecognized_keys"){let i=o.keys.filter(a=>a==="apiKey"||a==="deployToken");if(i.length>0){let a=i.map(s=>`"${s}"`).join(" and ");throw k.config(`Invalid config in ${t}: ${a} ${i.length>1?"are":"is"} no longer supported \u2014 the key is now "token". Run \`ship config\` to rewrite it.`)}}let n=o.path.length>0?` at ${o.path.join(".")}`:"";throw k.config(`Invalid config in ${t}${n}: ${o.message}`)}throw k.config(`Invalid config in ${t}`)}}function Jl(e){let t=e||void 0;if(t)return gh(Bi(t),t);let r=$x();return(0,Gi.existsSync)(r)?gh(Bi(r),r):{}}var Wl=Object.keys(Ht),xx=()=>(0,$h.join)((0,yh.homedir)(),".shiprc"),ql=Qt.HINT_LENGTH;function bx(e){let r=(e.startsWith(en.PREFIX)?en.PREFIX:Qt.PREFIX).length+ql;return e.length<r+ql+1?"...":`${e.slice(0,r)}...${e.slice(-ql)}`}function Sx(e){if(!(0,Jt.existsSync)(e))return{};try{return Bi(e)}catch(t){throw ce(t)?k.config(`${t.message} \u2014 the file was left unchanged`):t}}async function bh(e={}){let{noColor:t}=e,r=e.configFile||xx(),o=p=>t?p:Re(p),n=p=>t?p:rn(p),i=Sx(r),a=typeof i.token=="string"?i.token:void 0,s=Object.keys(i).filter(p=>!Wl.includes(p)),c=(0,xh.createInterface)({input:process.stdin,output:process.stdout});console.log(""),console.log(` ${o("Create a free API key at")} ${Ud}`),console.log("");let u=a?` Token (${o(bx(a))}): `:" Token: ",l;try{l=(await c.question(u)).trim()}finally{c.close()}l&&Ye(l);let f={};for(let p of Wl)i[p]!==void 0&&(f[p]=i[p]);l&&(f.token=l),s.length>0&&mt(`dropped ${s.map(p=>`"${p}"`).join(", ")} \u2014 a ship config holds only ${Wl.join(" and ")}`,!1,t),(0,Jt.writeFileSync)(r,`${JSON.stringify(f,null,2)}
229
229
  `,{mode:384}),(0,Jt.chmodSync)(r,384),console.log(`
230
230
  ${n("saved to")} ${o(r)}
231
- `)}M();M();Hi();var Sx=$e.object(Ht).strict(),kx={apiUrl:tn.API_URL,token:tn.TOKEN};function Mn(){if(Wt()!=="node")return{};let e={apiUrl:process.env[tn.API_URL]||void 0,token:process.env[tn.TOKEN]||void 0};try{return Sx.parse(e)}catch(t){if(t instanceof $e.ZodError){let r=t.issues[0],o=r.path[0],n=(o&&kx[o])??"SHIP environment configuration";throw k.config(`Invalid ${n}: ${r.message}`)}throw k.config("Invalid environment configuration")}}M();M();M();var Ji=class{constructor(){this.handlers=new Map}on(t,r){this.handlers.has(t)||this.handlers.set(t,new Set),this.handlers.get(t)?.add(r)}off(t,r){let o=this.handlers.get(t);o&&(o.delete(r),o.size===0&&this.handlers.delete(t))}emit(t,...r){let o=this.handlers.get(t);if(!o)return;let n=Array.from(o);for(let i of n)try{i(...r)}catch(a){o.delete(i),t!=="error"&&setTimeout(()=>{let s=a instanceof Error?a:new Error(String(a));this.emit("error",s,String(t))},0)}}};var wx=3e4,Ix=2,Ox=300,zx=2e3,Ex=new Set([500,502,503,504]);function Dx(e,t){return new Promise((r,o)=>{if(t?.aborted){o(t.reason);return}let n=()=>{clearTimeout(a),t?.removeEventListener("abort",i)},i=()=>{n(),o(t?.reason)},a=setTimeout(()=>{n(),r()},e);t?.addEventListener("abort",i)})}var Sh=3e5,Tx=3e5,Px=Sh+Tx,Wi=class extends Ji{constructor(r){super();this.globalHeaders={};this.apiUrl=r.apiUrl||Cd,this.getAuthHeadersCallback=r.getAuthHeaders,this.session=r.session??!1,this.caller=r.caller,this.timeout=r.timeout??wx,this.maxRetries=Math.max(0,r.maxRetries??Ix),this.fetch=r.fetch??globalThis.fetch.bind(globalThis),this.deploy={endpoint:r.deployEndpoint||Z.DEPLOYMENTS,timeout:r.timeout??Sh,buildTimeout:r.timeout??Px}}setGlobalHeaders(r){this.globalHeaders=r}async executeRequest(r,o,n,i=this.timeout){for(let a=0;;a++)try{return await this.attemptOnce(r,o,n,i)}catch(s){let c=k.fromFetchError(s,n);if(a>=this.maxRetries||!this.isRetryable(c,o))throw this.emit("error",c,r),c;this.emit("retry",c,r,a+1);let u=Math.min(zx,Ox*2**a);try{await Dx(Math.random()*u,o.signal)}catch(l){let f=k.fromFetchError(l,n);throw this.emit("error",f,r),f}}}isRetryable(r,o){if(o.signal?.aborted||r.isType(P.Maintenance)||r.isType(P.Cancelled)||!(r.isNetworkError()||r.status!==void 0&&Ex.has(r.status)))return!1;let i=(o.method??"GET").toUpperCase();return i==="GET"||i==="HEAD"?!0:i==="PUT"||i==="DELETE"?!1:this.hasIdempotencyKey(o.headers)}hasIdempotencyKey(r){if(!r)return!1;let o=lt.HEADER.toLowerCase();return Object.keys(r).some(n=>n.toLowerCase()===o)}async attemptOnce(r,o,n,i=this.timeout){let a=()=>{};try{let s=await this.mergeHeaders(o.headers),c=this.createTimeoutSignal(o.signal,i);a=c.cleanup;let u={...o,headers:s,credentials:this.session&&!s.Authorization?"include":void 0,signal:c.signal};this.emit("request",r,u);let l=await this.fetch(r,u);if(a(),!l.ok)throw await k.fromHttpResponse(l,n);return this.emit("response",this.safeClone(l),r),{data:await this.parseResponse(this.safeClone(l)),status:l.status}}catch(s){throw a(),k.fromFetchError(s,n)}}async request(r,o,n,i){let{data:a}=await this.executeRequest(`${this.apiUrl}${r}`,o,n,i);return a}async requestWithStatus(r,o,n){return this.executeRequest(`${this.apiUrl}${r}`,o,n)}async mergeHeaders(r={}){return{...this.globalHeaders,...this.caller?{[Xt.HEADER]:this.caller}:{},...await this.getAuthHeadersCallback(),...r}}createTimeoutSignal(r,o=this.timeout){let n=new AbortController,i=setTimeout(()=>n.abort(new DOMException(`Timed out after ${o}ms`,"TimeoutError")),o),a=r?()=>n.abort(r.reason):void 0;return r&&a&&(r.addEventListener("abort",a),r.aborted&&n.abort(r.reason)),{signal:n.signal,cleanup:()=>{clearTimeout(i),r&&a&&r.removeEventListener("abort",a)}}}safeClone(r){try{return r.clone()}catch{return r}}async parseResponse(r){if(!(r.headers.get("Content-Length")==="0"||r.status===204))return r.json()}};M();M();async function kh(e,t={}){let{labels:r,via:o,password:n,ttl:i,flags:a,captcha:s}=t,c=new FormData,u=[];for(let l of e){if(typeof l.content=="string"||l.content===null||l.content===void 0)throw k.file(`Unsupported file.content type: ${l.path}`,{filePath:l.path});if(!l.md5)throw k.file(`File missing md5 checksum: ${l.path}`,{filePath:l.path});c.append(se.FILES,new File([l.content],l.path,{type:"application/octet-stream"})),u.push(l.md5)}return c.append(se.CHECKSUMS,JSON.stringify(u)),r&&r.length>0&&c.append(se.LABELS,JSON.stringify(r)),o&&c.append(se.VIA,o),n&&c.append(se.PASSWORD,n),i!==void 0&&c.append(se.TTL,String(i)),a?.build&&c.append(se.BUILD,"true"),a?.prerender&&c.append(se.PRERENDER,"true"),a?.spa&&c.append(se.SPA,"true"),a?.buildCommand&&c.append(se.BUILD_COMMAND,a.buildCommand),a?.outputDir&&c.append(se.OUTPUT_DIR,a.outputDir),s&&c.append(se.CAPTCHA,s),c}M();Kl();async function Nx(){let e=JSON.stringify(Td,null,2),t;typeof Buffer<"u"?t=Buffer.from(e,"utf-8"):t=new Blob([e],{type:"application/json"});let{md5:r}=await qi(t);return{path:Ee,content:t,size:e.length,md5:r}}async function Ux(e,t){let r=e.find(a=>a.path===Yn.INDEX_FILE||a.path===`/${Yn.INDEX_FILE}`);if(!r||r.size>Yn.MAX_INDEX_BYTES)return!1;let o;if(typeof Buffer<"u"&&Buffer.isBuffer(r.content))o=r.content.toString("utf-8");else if(typeof Blob<"u"&&r.content instanceof Blob)o=await r.content.text();else if(typeof File<"u"&&r.content instanceof File)o=await r.content.text();else return!1;let n={files:e.map(a=>a.path),index:o};return(await t.request(Z.SPA_CHECK,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)},"SPA check")).isSPA}async function zh(e,t,r){if(r.spaDetect===!1||r.spa||r.build||r.prerender||e.some(o=>o.path===Ee))return e;try{if(await Ux(e,t)){let n=await Nx();return[...e,n]}}catch{}return e}M();M();function Vn(e){if(e==null)return;if(e.length===0)return e;if(e.length>Ue.MAX_COUNT)throw k.validation(`Maximum ${Ue.MAX_COUNT} labels allowed`);let t=e.map((o,n)=>{if(typeof o!="string")throw k.validation(`Label at index ${n} must be a string`);let i=o.trim().toLowerCase();if(i.length<Ue.MIN_LENGTH)throw k.validation(`Labels must be at least ${Ue.MIN_LENGTH} characters long`);if(i.length>Ue.MAX_LENGTH)throw k.validation(`Labels must be no more than ${Ue.MAX_LENGTH} characters long`);if(!Ud.test(i))throw k.validation(`Labels must start and end with alphanumeric characters, with optional separators (${Ue.SEPARATORS}) between segments`);return i}),r=[...new Set(t)];if(r.length!==t.length)throw k.validation("Duplicate labels are not allowed");return r}async function Eh(e){let t=e.find(n=>n.path===Ee||n.path===`/${Ee}`);if(!t)return;let r=t.content,o=typeof r.text=="function"?await r.text():t.content.toString("utf8");Pd(o)}var Ki={"Content-Type":"application/json"},Rx="sdk";function Xl(e){let t=new URLSearchParams;e?.limit!==void 0&&t.set("limit",String(e.limit)),e?.cursor!==void 0&&t.set("cursor",e.cursor);let r=t.toString();return r?`?${r}`:""}function Dh(e){let{getApi:t,processInput:r}=e;return{upload:async(o,n={})=>{if(!r)throw k.config("processInput function is not provided.");let i=t(),a=await r(o,n),s=await zh(a,i,n);if(!s.length)throw k.business("No files to deploy");for(let E of s)if(!E.md5)throw k.file(`MD5 checksum missing for file: ${E.path}`,{filePath:E.path});Ao(n.password);let c=Po(n.ttl),u=Od(n.idempotencyKey),l=Vn(n.labels);await Eh(s);let f=Rd(n.buildCommand),p=Ld(n.outputDir),_=n.build||n.prerender||n.spa?{build:n.build,prerender:n.prerender,spa:n.spa,buildCommand:f,outputDir:p}:void 0,b=await kh(s,{labels:l,via:n.via??Rx,password:n.password,ttl:c,flags:_,captcha:n.captcha});return i.request(i.deploy.endpoint,{method:"POST",body:b,...u?{headers:{[lt.HEADER]:u}}:{},signal:n.signal||null},"Deploy",n.build||n.prerender?i.deploy.buildTimeout:i.deploy.timeout)},list:async o=>t().request(`${Z.DEPLOYMENTS}${Xl(o)}`,{method:"GET"},"List deployments"),get:async o=>t().request(Z.DEPLOYMENT(encodeURIComponent(o)),{method:"GET"},"Get deployment"),set:async(o,n)=>t().request(Z.DEPLOYMENT(encodeURIComponent(o)),{method:"PATCH",headers:Ki,body:JSON.stringify({labels:Vn(n.labels)})},"Update deployment labels"),delete:async o=>t().request(Z.DEPLOYMENT(encodeURIComponent(o)),{method:"DELETE"},"Delete deployment")}}function Th(e){let{getApi:t}=e;return{set:async(r,o={})=>{let n=Vn(o.labels),i={};o.deployment&&(i.deployment=o.deployment),n!==void 0&&(i.labels=n);let{data:a,status:s}=await t().requestWithStatus(Z.DOMAIN(encodeURIComponent(r)),{method:"PUT",headers:Ki,body:JSON.stringify(i)},"Set domain");return{...a,isCreate:s===201}},list:async r=>t().request(`${Z.DOMAINS}${Xl(r)}`,{method:"GET"},"List domains"),get:async r=>t().request(Z.DOMAIN(encodeURIComponent(r)),{method:"GET"},"Get domain"),delete:async r=>t().request(Z.DOMAIN(encodeURIComponent(r)),{method:"DELETE"},"Delete domain"),verify:async r=>t().request(Z.DOMAIN_VERIFY(encodeURIComponent(r)),{method:"POST"},"Verify domain"),validate:async r=>t().request(Z.DOMAINS_VALIDATE,{method:"POST",headers:Ki,body:JSON.stringify({domain:r})},"Validate domain"),dns:async r=>t().request(Z.DOMAIN_DNS(encodeURIComponent(r)),{method:"GET"},"Get domain DNS"),records:async r=>t().request(Z.DOMAIN_RECORDS(encodeURIComponent(r)),{method:"GET"},"Get domain records"),share:async r=>t().request(Z.DOMAIN_SHARE(encodeURIComponent(r)),{method:"GET"},"Get domain share")}}function Ph(e){let{getApi:t}=e;return{get:async()=>t().request(Z.ACCOUNT,{method:"GET"},"Get account")}}function Ah(e){let{getApi:t}=e;return{create:async(r={})=>{let o=Po(r.ttl),n=Vn(r.labels),i={};return o!==void 0&&(i.ttl=o),n!==void 0&&(i.labels=n),t().request(Z.TOKENS,{method:"POST",headers:Ki,body:JSON.stringify(i)},"Create token")},list:async r=>t().request(`${Z.TOKENS}${Xl(r)}`,{method:"GET"},"List tokens"),get:async r=>t().request(Z.TOKEN(encodeURIComponent(r)),{method:"GET"},"Get token"),delete:async r=>t().request(Z.TOKEN(encodeURIComponent(r)),{method:"DELETE"},"Delete token")}}var Xi=class{constructor(t={}){this.initPromise=null;this.platformLimits=null;this.credential=null;if(t={...t,apiUrl:t.apiUrl||void 0,token:t.token||void 0,caller:t.caller||void 0},this.clientOptions=t,t.caller!==void 0&&Ad(t.caller),t.token&&t.session)throw k.config("Provide either `token` or `session`, not both.");typeof t.token=="string"?(Ye(t.token),this.credential=t.token):t.token&&(this.credential=t.token),this.http=new Wi({...t,getAuthHeaders:()=>this.getAuthHeaders()});let r={getApi:()=>this.http};this.deployments=Dh({...r,processInput:async(o,n)=>(await this.ensureInitialized(),this.processInput(o,n))}),this.domains=Th(r),this.account=Ph(r),this.tokens=Ah(r)}async ensureInitialized(){return this.initPromise||(this.initPromise=this.fetchPlatformLimits()),this.initPromise}async fetchPlatformLimits(){try{this.platformLimits=await this.http.request(Z.LIMITS,{method:"GET"},"Get limits")}catch(t){throw this.initPromise=null,t}}async ping(){return this.http.request(Z.PING,{method:"GET"},"Ping")}async deploy(t,r){return this.deployments.upload(t,r)}async whoami(){return this.account.get()}async getLimits(){return this.platformLimits?this.platformLimits:(await this.ensureInitialized(),this.platformLimits)}on(t,r){this.http.on(t,r)}off(t,r){this.http.off(t,r)}setHeaders(t){this.http.setGlobalHeaders(t)}clearHeaders(){this.http.setGlobalHeaders({})}setToken(t){if(this.clientOptions.session)throw k.config("Provide either `token` or `session`, not both.");if(typeof t=="string"){if(!t)throw k.business("Invalid token provided. Token must be a non-empty string.");Ye(t),this.credential=t;return}if(typeof t!="function")throw k.business("Invalid token provided. Token must be a non-empty string or a provider function.");this.credential=t}async getAuthHeaders(){if(this.credential===null)return{};let t=typeof this.credential=="function"?await this.credential():this.credential;if(!t)throw k.authentication("Token provider returned no token.");if(typeof t!="string")throw k.authentication("Token provider returned a non-string value.");return{Authorization:`Bearer ${t}`}}};Hi();var eo=class extends Xi{constructor(t={}){if(Wt()!=="node")throw k.business("Node.js Ship class can only be used in Node.js environment.");let r=Mn();super({...t,apiUrl:t.apiUrl||r.apiUrl,token:t.token||(t.session?void 0:r.token)})}async deploy(t,r){return super.deploy(t,r)}async processInput(t,r){let o=typeof t=="string"?[t]:t;if(!Array.isArray(o)||!o.every(i=>typeof i=="string"))throw k.business("Invalid input type for Node.js environment. Expected string or string[].");if(o.length===0)throw k.business("No files to deploy.");let{processFilesForNode:n}=await Promise.resolve().then(()=>(Xh(),Kh));return n(o,r,this.platformLimits??void 0)}};function Yh(e,t,r){return{apiUrl:e.apiUrl||t.apiUrl||r.apiUrl,token:e.token||t.token||r.token}}function Qh(e={}){let t=Yh(e,Mn(),Jl(e.config));return t.apiUrl&&Qn(t.apiUrl),new eo(t)}function to(e){let t={};try{t=Jl(e.config)}catch{}let r=Yh(e,Mn(),t).token;return typeof r=="string"?r:void 0}M();function eg(e){return ce(e)?e:e instanceof Error?k.business(e.message):k.business(String(e??"Unknown error"))}var no="pass --token, set SHIP_TOKEN, or run ship config";function tg(e,t){return e.isAuthError()?t?.token?"authentication failed: invalid or expired token":`authentication required: ${no}`:e.isType(P.Timeout)?e.message:e.isNetworkError()?"network error: could not reach the API. check your internet connection":e.isType(P.Maintenance)?`${e.message.replace(/\.$/,"")} \u2014 check https://status.shipstatic.com`:e.isClientError()?e.message:`${e.message.replace(/\.$/,"")} \u2014 try again, or check https://status.shipstatic.com`}M();function td(e,t){return e[t]}var qx={[wd.DELETING]:"served until cleanup completes"},Kx={upload:"uploaded",create:"created",delete:"deleted",verify:"verification queued"};function ig(e,t){let{operation:r,resource:o}=t;if(!o||e===null||typeof e!="object")return null;let n=r==="set"?td(e,"isCreate")?"created":"updated":Kx[r];if(!n)return null;let i=td(e,o);if(typeof i!="string")return null;let a=td(e,"status"),s=typeof a=="string"?qx[a]:void 0;return`${i} ${o} ${s?`${a} \u2014 ${s}`:n}`}function og(e,t,r){if(r.json||r.quiet)return;let o=ig(e,t);o&&be(o,!1,r.noColor)}function Xx(e,t){let{noColor:r}=t;if(e.deployments.length===0){console.log("no deployments found"),console.log();return}let o=["deployment","labels","files","size","created","via"];console.log(cn(e.deployments,o,r)),rd(e.cursor,r)}function rd(e,t){e&&Le(`more results available \u2014 rerun with --cursor ${e}`,!1,t)}function Yx(e,t){let{noColor:r}=t;if(e.domains.length===0){console.log("no domains found"),console.log();return}let o=["domain","deployment","labels","linked","links","created"];console.log(cn(e.domains,o,r)),rd(e.cursor,r)}function ng(e,t){let{noColor:r}=t,{_dnsRecords:o,_shareUrl:n,isCreate:i,...a}=e;o&&o.length>0&&(console.log(),Le("DNS records to configure:",!1,r),o.forEach(s=>{console.log(` ${s.type}: ${s.name} \u2192 ${s.value}`)})),n&&(console.log(),Le(`Setup instructions: ${n}`,!1,r)),console.log(Fe(a,r))}function nd(e,t){let{noColor:r}=t;console.log(Fe(e,r));let o=e.claim;if(o){let n=e.expires?Math.round((e.expires-e.created)/86400):null;console.log(`IMPORTANT: this deployment${n?` expires in ${n} day${n!==1?"s":""}`:" will expire"}, claim it to keep permanently:
231
+ `)}M();M();Hi();var wx=$e.object(Ht).strict(),Ix={apiUrl:tn.API_URL,token:tn.TOKEN};function Mn(){if(Wt()!=="node")return{};let e={apiUrl:process.env[tn.API_URL]||void 0,token:process.env[tn.TOKEN]||void 0};try{return wx.parse(e)}catch(t){if(t instanceof $e.ZodError){let r=t.issues[0],o=r.path[0],n=(o&&Ix[o])??"SHIP environment configuration";throw k.config(`Invalid ${n}: ${r.message}`)}throw k.config("Invalid environment configuration")}}M();M();M();var Ji=class{constructor(){this.handlers=new Map}on(t,r){this.handlers.has(t)||this.handlers.set(t,new Set),this.handlers.get(t)?.add(r)}off(t,r){let o=this.handlers.get(t);o&&(o.delete(r),o.size===0&&this.handlers.delete(t))}emit(t,...r){let o=this.handlers.get(t);if(!o)return;let n=Array.from(o);for(let i of n)try{i(...r)}catch(a){o.delete(i),t!=="error"&&setTimeout(()=>{let s=a instanceof Error?a:new Error(String(a));this.emit("error",s,String(t))},0)}}};var Ox=3e4,zx=2,Ex=300,Dx=2e3,Tx=new Set([500,502,503,504]);function Px(e,t){return new Promise((r,o)=>{if(t?.aborted){o(t.reason);return}let n=()=>{clearTimeout(a),t?.removeEventListener("abort",i)},i=()=>{n(),o(t?.reason)},a=setTimeout(()=>{n(),r()},e);t?.addEventListener("abort",i)})}var kh=3e5,Ax=3e5,Cx=kh+Ax,Wi=class extends Ji{constructor(r){super();this.globalHeaders={};this.apiUrl=r.apiUrl||jd,this.getAuthHeadersCallback=r.getAuthHeaders,this.session=r.session??!1,this.caller=r.caller,this.timeout=r.timeout??Ox,this.maxRetries=Math.max(0,r.maxRetries??zx),this.fetch=r.fetch??globalThis.fetch.bind(globalThis),this.deploy={endpoint:r.deployEndpoint||Z.DEPLOYMENTS,timeout:r.timeout??kh,buildTimeout:r.timeout??Cx}}setGlobalHeaders(r){this.globalHeaders=r}async executeRequest(r,o,n,i=this.timeout){for(let a=0;;a++)try{return await this.attemptOnce(r,o,n,i)}catch(s){let c=k.fromFetchError(s,n);if(a>=this.maxRetries||!this.isRetryable(c,o))throw this.emit("error",c,r),c;this.emit("retry",c,r,a+1);let u=Math.min(Dx,Ex*2**a);try{await Px(Math.random()*u,o.signal)}catch(l){let f=k.fromFetchError(l,n);throw this.emit("error",f,r),f}}}isRetryable(r,o){if(o.signal?.aborted||r.isType(P.Maintenance)||r.isType(P.Cancelled)||!(r.isNetworkError()||r.status!==void 0&&Tx.has(r.status)))return!1;let i=(o.method??"GET").toUpperCase();return i==="GET"||i==="HEAD"?!0:i==="PUT"||i==="DELETE"?!1:this.hasIdempotencyKey(o.headers)}hasIdempotencyKey(r){if(!r)return!1;let o=lt.HEADER.toLowerCase();return Object.keys(r).some(n=>n.toLowerCase()===o)}async attemptOnce(r,o,n,i=this.timeout){let a=()=>{};try{let s=await this.mergeHeaders(o.headers),c=this.createTimeoutSignal(o.signal,i);a=c.cleanup;let u={...o,headers:s,credentials:this.session&&!s.Authorization?"include":void 0,signal:c.signal};this.emit("request",r,u);let l=await this.fetch(r,u);if(a(),!l.ok)throw await k.fromHttpResponse(l,n);return this.emit("response",this.safeClone(l),r),{data:await this.parseResponse(this.safeClone(l)),status:l.status}}catch(s){throw a(),k.fromFetchError(s,n)}}async request(r,o,n,i){let{data:a}=await this.executeRequest(`${this.apiUrl}${r}`,o,n,i);return a}async requestWithStatus(r,o,n){return this.executeRequest(`${this.apiUrl}${r}`,o,n)}async mergeHeaders(r={}){return{...this.globalHeaders,...this.caller?{[Xt.HEADER]:this.caller}:{},...await this.getAuthHeadersCallback(),...r}}createTimeoutSignal(r,o=this.timeout){let n=new AbortController,i=setTimeout(()=>n.abort(new DOMException(`Timed out after ${o}ms`,"TimeoutError")),o),a=r?()=>n.abort(r.reason):void 0;return r&&a&&(r.addEventListener("abort",a),r.aborted&&n.abort(r.reason)),{signal:n.signal,cleanup:()=>{clearTimeout(i),r&&a&&r.removeEventListener("abort",a)}}}safeClone(r){try{return r.clone()}catch{return r}}async parseResponse(r){if(!(r.headers.get("Content-Length")==="0"||r.status===204))return r.json()}};M();M();async function wh(e,t={}){let{labels:r,via:o,password:n,ttl:i,flags:a,captcha:s}=t,c=new FormData,u=[];for(let l of e){if(typeof l.content=="string"||l.content===null||l.content===void 0)throw k.file(`Unsupported file.content type: ${l.path}`,{filePath:l.path});if(!l.md5)throw k.file(`File missing md5 checksum: ${l.path}`,{filePath:l.path});c.append(se.FILES,new File([l.content],l.path,{type:"application/octet-stream"})),u.push(l.md5)}return c.append(se.CHECKSUMS,JSON.stringify(u)),r&&r.length>0&&c.append(se.LABELS,JSON.stringify(r)),o&&c.append(se.VIA,o),n&&c.append(se.PASSWORD,n),i!==void 0&&c.append(se.TTL,String(i)),a?.build&&c.append(se.BUILD,"true"),a?.prerender&&c.append(se.PRERENDER,"true"),a?.spa&&c.append(se.SPA,"true"),a?.buildCommand&&c.append(se.BUILD_COMMAND,a.buildCommand),a?.outputDir&&c.append(se.OUTPUT_DIR,a.outputDir),s&&c.append(se.CAPTCHA,s),c}M();Kl();async function Rx(){let e=JSON.stringify(Pd,null,2),t;typeof Buffer<"u"?t=Buffer.from(e,"utf-8"):t=new Blob([e],{type:"application/json"});let{md5:r}=await qi(t);return{path:Ee,content:t,size:e.length,md5:r}}async function Lx(e,t){let r=e.find(a=>a.path===Yn.INDEX_FILE||a.path===`/${Yn.INDEX_FILE}`);if(!r||r.size>Yn.MAX_INDEX_BYTES)return!1;let o;if(typeof Buffer<"u"&&Buffer.isBuffer(r.content))o=r.content.toString("utf-8");else if(typeof Blob<"u"&&r.content instanceof Blob)o=await r.content.text();else if(typeof File<"u"&&r.content instanceof File)o=await r.content.text();else return!1;let n={files:e.map(a=>a.path),index:o};return(await t.request(Z.SPA_CHECK,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)},"SPA check")).isSPA}async function Eh(e,t,r){if(r.spaDetect===!1||r.spa||r.build||r.prerender||e.some(o=>o.path===Ee))return e;try{if(await Lx(e,t)){let n=await Rx();return[...e,n]}}catch{}return e}M();M();function Vn(e){if(e==null)return;if(e.length===0)return e;if(e.length>Ue.MAX_COUNT)throw k.validation(`Maximum ${Ue.MAX_COUNT} labels allowed`);let t=e.map((o,n)=>{if(typeof o!="string")throw k.validation(`Label at index ${n} must be a string`);let i=o.trim().toLowerCase();if(i.length<Ue.MIN_LENGTH)throw k.validation(`Labels must be at least ${Ue.MIN_LENGTH} characters long`);if(i.length>Ue.MAX_LENGTH)throw k.validation(`Labels must be no more than ${Ue.MAX_LENGTH} characters long`);if(!Rd.test(i))throw k.validation(`Labels must start and end with alphanumeric characters, with optional separators (${Ue.SEPARATORS}) between segments`);return i}),r=[...new Set(t)];if(r.length!==t.length)throw k.validation("Duplicate labels are not allowed");return r}async function Dh(e){let t=e.find(n=>n.path===Ee||n.path===`/${Ee}`);if(!t)return;let r=t.content,o=typeof r.text=="function"?await r.text():t.content.toString("utf8");Ad(o)}var Ki={"Content-Type":"application/json"},Fx="sdk";function Xl(e){let t=new URLSearchParams;e?.limit!==void 0&&t.set("limit",String(e.limit)),e?.cursor!==void 0&&t.set("cursor",e.cursor);let r=t.toString();return r?`?${r}`:""}function Th(e){let{getApi:t,processInput:r}=e;return{upload:async(o,n={})=>{if(!r)throw k.config("processInput function is not provided.");let i=t(),a=await r(o,n),s=await Eh(a,i,n);if(!s.length)throw k.business("No files to deploy");for(let E of s)if(!E.md5)throw k.file(`MD5 checksum missing for file: ${E.path}`,{filePath:E.path});Ao(n.password);let c=Po(n.ttl),u=zd(n.idempotencyKey),l=Vn(n.labels);await Dh(s);let f=Ld(n.buildCommand),p=Fd(n.outputDir),_=n.build||n.prerender||n.spa?{build:n.build,prerender:n.prerender,spa:n.spa,buildCommand:f,outputDir:p}:void 0,b=await wh(s,{labels:l,via:n.via??Fx,password:n.password,ttl:c,flags:_,captcha:n.captcha});return i.request(i.deploy.endpoint,{method:"POST",body:b,...u?{headers:{[lt.HEADER]:u}}:{},signal:n.signal||null},"Deploy",n.build||n.prerender?i.deploy.buildTimeout:i.deploy.timeout)},list:async o=>t().request(`${Z.DEPLOYMENTS}${Xl(o)}`,{method:"GET"},"List deployments"),get:async o=>t().request(Z.DEPLOYMENT(encodeURIComponent(o)),{method:"GET"},"Get deployment"),set:async(o,n)=>t().request(Z.DEPLOYMENT(encodeURIComponent(o)),{method:"PATCH",headers:Ki,body:JSON.stringify({labels:Vn(n.labels)})},"Update deployment labels"),delete:async o=>t().request(Z.DEPLOYMENT(encodeURIComponent(o)),{method:"DELETE"},"Delete deployment")}}function Ph(e){let{getApi:t}=e;return{set:async(r,o={})=>{let n=Vn(o.labels),i={};o.deployment&&(i.deployment=o.deployment),n!==void 0&&(i.labels=n);let{data:a,status:s}=await t().requestWithStatus(Z.DOMAIN(encodeURIComponent(r)),{method:"PUT",headers:Ki,body:JSON.stringify(i)},"Set domain");return{...a,isCreate:s===201}},list:async r=>t().request(`${Z.DOMAINS}${Xl(r)}`,{method:"GET"},"List domains"),get:async r=>t().request(Z.DOMAIN(encodeURIComponent(r)),{method:"GET"},"Get domain"),delete:async r=>t().request(Z.DOMAIN(encodeURIComponent(r)),{method:"DELETE"},"Delete domain"),verify:async r=>t().request(Z.DOMAIN_VERIFY(encodeURIComponent(r)),{method:"POST"},"Verify domain"),validate:async r=>t().request(Z.DOMAINS_VALIDATE,{method:"POST",headers:Ki,body:JSON.stringify({domain:r})},"Validate domain"),dns:async r=>t().request(Z.DOMAIN_DNS(encodeURIComponent(r)),{method:"GET"},"Get domain DNS"),records:async r=>t().request(Z.DOMAIN_RECORDS(encodeURIComponent(r)),{method:"GET"},"Get domain records"),share:async r=>t().request(Z.DOMAIN_SHARE(encodeURIComponent(r)),{method:"GET"},"Get domain share")}}function Ah(e){let{getApi:t}=e;return{get:async()=>t().request(Z.ACCOUNT,{method:"GET"},"Get account")}}function Ch(e){let{getApi:t}=e;return{create:async(r={})=>{let o=Po(r.ttl),n=Vn(r.labels),i={};return o!==void 0&&(i.ttl=o),n!==void 0&&(i.labels=n),t().request(Z.TOKENS,{method:"POST",headers:Ki,body:JSON.stringify(i)},"Create token")},list:async r=>t().request(`${Z.TOKENS}${Xl(r)}`,{method:"GET"},"List tokens"),get:async r=>t().request(Z.TOKEN(encodeURIComponent(r)),{method:"GET"},"Get token"),delete:async r=>t().request(Z.TOKEN(encodeURIComponent(r)),{method:"DELETE"},"Delete token")}}var Xi=class{constructor(t={}){this.initPromise=null;this.platformLimits=null;this.credential=null;if(t={...t,apiUrl:t.apiUrl||void 0,token:t.token||void 0,caller:t.caller||void 0},this.clientOptions=t,t.caller!==void 0&&Cd(t.caller),t.token&&t.session)throw k.config("Provide either `token` or `session`, not both.");typeof t.token=="string"?(Ye(t.token),this.credential=t.token):t.token&&(this.credential=t.token),this.http=new Wi({...t,getAuthHeaders:()=>this.getAuthHeaders()});let r={getApi:()=>this.http};this.deployments=Th({...r,processInput:async(o,n)=>(await this.ensureInitialized(),this.processInput(o,n))}),this.domains=Ph(r),this.account=Ah(r),this.tokens=Ch(r)}async ensureInitialized(){return this.initPromise||(this.initPromise=this.fetchPlatformLimits()),this.initPromise}async fetchPlatformLimits(){try{this.platformLimits=await this.http.request(Z.LIMITS,{method:"GET"},"Get limits")}catch(t){throw this.initPromise=null,t}}async ping(){return this.http.request(Z.PING,{method:"GET"},"Ping")}async deploy(t,r){return this.deployments.upload(t,r)}async whoami(){return this.account.get()}async getLimits(){return this.platformLimits?this.platformLimits:(await this.ensureInitialized(),this.platformLimits)}on(t,r){this.http.on(t,r)}off(t,r){this.http.off(t,r)}setHeaders(t){this.http.setGlobalHeaders(t)}clearHeaders(){this.http.setGlobalHeaders({})}setToken(t){if(this.clientOptions.session)throw k.config("Provide either `token` or `session`, not both.");if(typeof t=="string"){if(!t)throw k.business("Invalid token provided. Token must be a non-empty string.");Ye(t),this.credential=t;return}if(typeof t!="function")throw k.business("Invalid token provided. Token must be a non-empty string or a provider function.");this.credential=t}async getAuthHeaders(){if(this.credential===null)return{};let t=typeof this.credential=="function"?await this.credential():this.credential;if(!t)throw k.authentication("Token provider returned no token.");if(typeof t!="string")throw k.authentication("Token provider returned a non-string value.");return{Authorization:`Bearer ${t}`}}};Hi();var eo=class extends Xi{constructor(t={}){if(Wt()!=="node")throw k.business("Node.js Ship class can only be used in Node.js environment.");let r=Mn();super({...t,apiUrl:t.apiUrl||r.apiUrl,token:t.token||(t.session?void 0:r.token)})}async deploy(t,r){return super.deploy(t,r)}async processInput(t,r){let o=typeof t=="string"?[t]:t;if(!Array.isArray(o)||!o.every(i=>typeof i=="string"))throw k.business("Invalid input type for Node.js environment. Expected string or string[].");if(o.length===0)throw k.business("No files to deploy.");let{processFilesForNode:n}=await Promise.resolve().then(()=>(Yh(),Xh));return n(o,r,this.platformLimits??void 0)}};function Qh(e,t,r){return{apiUrl:e.apiUrl||t.apiUrl||r.apiUrl,token:e.token||t.token||r.token}}function eg(e={}){let t=Qh(e,Mn(),Jl(e.config));return t.apiUrl&&Qn(t.apiUrl),new eo(t)}function to(e){let t={};try{t=Jl(e.config)}catch{}let r=Qh(e,Mn(),t).token;return typeof r=="string"?r:void 0}M();function tg(e){return ce(e)?e:e instanceof Error?k.business(e.message):k.business(String(e??"Unknown error"))}var no="pass --token, set SHIP_TOKEN, or run ship config";function ng(e,t){return e.isAuthError()?t?.token?"authentication failed: invalid or expired token":`authentication required: ${no}`:e.isType(P.Timeout)?e.message:e.isNetworkError()?"network error: could not reach the API. check your internet connection":e.isType(P.Maintenance)?`${e.message.replace(/\.$/,"")} \u2014 check https://status.shipstatic.com`:e.isClientError()?e.message:`${e.message.replace(/\.$/,"")} \u2014 try again, or check https://status.shipstatic.com`}M();function Xx(e){let t=Math.round(e/60);if(!(t>=1))return"less than a minute";if(t<120)return td(t,"minute");let r=Math.round(e/3600);return r<48?td(r,"hour"):td(Math.round(e/86400),"day")}function rg(e,t=Date.now()/1e3){let r=e-t;return r>0?Xx(r):null}function td(e,t){return`${e} ${t}${e===1?"":"s"}`}function nd(e,t){return e[t]}var Yx={[Id.DELETING]:"served until cleanup completes"},Qx={upload:"uploaded",create:"created",delete:"deleted",verify:"verification queued"};function ag(e,t){let{operation:r,resource:o}=t;if(!o||e===null||typeof e!="object")return null;let n=r==="set"?nd(e,"isCreate")?"created":"updated":Qx[r];if(!n)return null;let i=nd(e,o);if(typeof i!="string")return null;let a=nd(e,"status"),s=typeof a=="string"?Yx[a]:void 0;return`${i} ${o} ${s?`${a} \u2014 ${s}`:n}`}function sg(e,t,r){if(r.json||r.quiet)return;let o=ag(e,t);o&&be(o,!1,r.noColor)}function eb(e,t){let{noColor:r}=t;if(e.deployments.length===0){console.log("no deployments found"),console.log();return}let o=["deployment","labels","files","size","created","via"];console.log(cn(e.deployments,o,r)),id(e.cursor,r)}function id(e,t){e&&Le(`more results available \u2014 rerun with --cursor ${e}`,!1,t)}function tb(e,t){let{noColor:r}=t;if(e.domains.length===0){console.log("no domains found"),console.log();return}let o=["domain","deployment","labels","linked","links","created"];console.log(cn(e.domains,o,r)),id(e.cursor,r)}function ig(e,t){let{noColor:r}=t,{_dnsRecords:o,_shareUrl:n,isCreate:i,...a}=e;o&&o.length>0&&(console.log(),Le("DNS records to configure:",!1,r),o.forEach(s=>{console.log(` ${s.type}: ${s.name} \u2192 ${s.value}`)})),n&&(console.log(),Le(`Setup instructions: ${n}`,!1,r)),console.log(Fe(a,r))}function rd(e,t){let{noColor:r}=t;console.log(Fe(e,r));let o=e.claim;if(o){let n=e.expires?rg(e.expires):null;console.log(`IMPORTANT: this deployment ${n?`expires in ${n}`:"will expire"}, claim it to keep permanently:
232
232
  ${o}
233
- `),Le("configure a free API key with 'ship config' to deploy to your own account",!1,r)}}function Qx(e,t){let{noColor:r}=t;console.log(Fe(e,r))}function eb(e,t){let{noColor:r}=t;if(e.valid){if(be(`${e.normalized??"domain"} domain is valid`,!1,r),console.log(),e.available!==null){let o=e.available?r?"available":"available \u2713":"already taken";console.log(` availability: ${o}`)}console.log()}else console.log(`${pt(e.reason??"domain is invalid")}
234
- `)}function tb(e,t){let{noColor:r}=t;if(e.records.length===0){console.log("no records found"),console.log();return}let o=["type","name","value"];console.log(cn(e.records,o,r))}function nb(e,t){let{noColor:r}=t,o=e.dns?.provider?.name||null;console.log(Fe({domain:e.domain,provider:o},r))}function rb(e,t){let{noColor:r}=t;console.log(Fe(e,r))}function ib(e,t){let{noColor:r}=t;if(e.tokens.length===0){console.log("no tokens found"),console.log();return}let o=["token","labels","created","expires"];console.log(cn(e.tokens,o,r)),rd(e.cursor,r)}function rg(e,t){let{noColor:r}=t;console.log(Fe(e,r))}var G=e=>e,ob=e=>e.resource?`${e.resource}.${e.operation}`:e.operation,ab={"deployment.list":G({quiet:e=>e.deployments.map(t=>t.deployment),text:Xx}),"deployment.upload":G({quiet:e=>[e.deployment],text:nd}),"deployment.get":G({quiet:e=>[e.deployment],text:nd}),"deployment.set":G({quiet:e=>[e.deployment],text:nd}),"deployment.delete":G({quiet:e=>[e.deployment],text:()=>{}}),"domain.list":G({quiet:e=>e.domains.map(t=>t.domain),text:Yx}),"domain.get":G({quiet:e=>[e.domain],text:ng}),"domain.set":G({quiet:e=>[e.domain],text:ng}),"domain.validate":G({quiet:e=>e.valid&&e.normalized?[e.normalized]:[],text:eb}),"domain.verify":G({quiet:e=>[e.domain],text:()=>{}}),"domain.records":G({quiet:e=>e.records.map(t=>`${t.type} ${t.name} ${t.value}`),text:tb}),"domain.dns":G({quiet:e=>e.dns?.provider?.name?[e.dns.provider.name]:[],text:nb}),"domain.share":G({quiet:e=>[e.url],text:rb}),"domain.delete":G({quiet:e=>[e.domain],text:()=>{}}),"token.list":G({quiet:e=>e.tokens.map(t=>t.token),text:ib}),"token.create":G({quiet:e=>[e.secret],text:rg}),"token.get":G({quiet:e=>[e.token],text:rg}),"token.delete":G({quiet:e=>[e.token],text:()=>{}}),"account.get":G({quiet:e=>[e.email],text:Qx}),ping:G({quiet:()=>[],text:(e,t)=>be("api reachable",!1,t.noColor)})};function ag(e,t,r){let{json:o,quiet:n,noColor:i}=r,a=ab[ob(t)];if(n){for(let c of a?.quiet(e)??[])console.log(c);return}if(o&&e!==null&&typeof e=="object"){let c={...e};delete c._dnsRecords,delete c._shareUrl,delete c.isCreate,console.log(JSON.stringify(c,null,2)),console.log();return}let s=ig(e,t);s&&be(s,!1,i),a?a.text(e,r):e!==null&&typeof e=="object"&&console.log(Fe(e,i))}function fb(){let e=[cd.resolve(__dirname,"../package.json"),cd.resolve(__dirname,"../../package.json")];for(let t of e)try{return JSON.parse((0,ut.readFileSync)(t,"utf-8"))}catch{}return{version:"0.0.0"}}var hb=fb();function gb(e){let t=i=>e?i:Co(i),r=i=>e?i:Re(i),o=i=>e?"":`${i} `;return`${t("USAGE")}
233
+ `),Le("configure a free API key with 'ship config' to deploy to your own account",!1,r)}}function nb(e,t){let{noColor:r}=t;console.log(Fe(e,r))}function rb(e,t){let{noColor:r}=t;if(e.valid){if(be(`${e.normalized??"domain"} domain is valid`,!1,r),console.log(),e.available!==null){let o=e.available?r?"available":"available \u2713":"already taken";console.log(` availability: ${o}`)}console.log()}else console.log(`${pt(e.reason??"domain is invalid")}
234
+ `)}function ib(e,t){let{noColor:r}=t;if(e.records.length===0){console.log("no records found"),console.log();return}let o=["type","name","value"];console.log(cn(e.records,o,r))}function ob(e,t){let{noColor:r}=t,o=e.dns?.provider?.name||null;console.log(Fe({domain:e.domain,provider:o},r))}function ab(e,t){let{noColor:r}=t;console.log(Fe(e,r))}function sb(e,t){let{noColor:r}=t;if(e.tokens.length===0){console.log("no tokens found"),console.log();return}let o=["token","labels","created","expires"];console.log(cn(e.tokens,o,r)),id(e.cursor,r)}function og(e,t){let{noColor:r}=t;console.log(Fe(e,r))}var G=e=>e,cb=e=>e.resource?`${e.resource}.${e.operation}`:e.operation,ub={"deployment.list":G({quiet:e=>e.deployments.map(t=>t.deployment),text:eb}),"deployment.upload":G({quiet:e=>[e.deployment],text:rd}),"deployment.get":G({quiet:e=>[e.deployment],text:rd}),"deployment.set":G({quiet:e=>[e.deployment],text:rd}),"deployment.delete":G({quiet:e=>[e.deployment],text:()=>{}}),"domain.list":G({quiet:e=>e.domains.map(t=>t.domain),text:tb}),"domain.get":G({quiet:e=>[e.domain],text:ig}),"domain.set":G({quiet:e=>[e.domain],text:ig}),"domain.validate":G({quiet:e=>e.valid&&e.normalized?[e.normalized]:[],text:rb}),"domain.verify":G({quiet:e=>[e.domain],text:()=>{}}),"domain.records":G({quiet:e=>e.records.map(t=>`${t.type} ${t.name} ${t.value}`),text:ib}),"domain.dns":G({quiet:e=>e.dns?.provider?.name?[e.dns.provider.name]:[],text:ob}),"domain.share":G({quiet:e=>[e.url],text:ab}),"domain.delete":G({quiet:e=>[e.domain],text:()=>{}}),"token.list":G({quiet:e=>e.tokens.map(t=>t.token),text:sb}),"token.create":G({quiet:e=>[e.secret],text:og}),"token.get":G({quiet:e=>[e.token],text:og}),"token.delete":G({quiet:e=>[e.token],text:()=>{}}),"account.get":G({quiet:e=>[e.email],text:nb}),ping:G({quiet:()=>[],text:(e,t)=>be("api reachable",!1,t.noColor)})};function cg(e,t,r){let{json:o,quiet:n,noColor:i}=r,a=ub[cb(t)];if(n){for(let c of a?.quiet(e)??[])console.log(c);return}if(o&&e!==null&&typeof e=="object"){let c={...e};delete c._dnsRecords,delete c._shareUrl,delete c.isCreate,console.log(JSON.stringify(c,null,2)),console.log();return}let s=ag(e,t);s&&be(s,!1,i),a?a.text(e,r):e!==null&&typeof e=="object"&&console.log(Fe(e,i))}function vb(){let e=[ud.resolve(__dirname,"../package.json"),ud.resolve(__dirname,"../../package.json")];for(let t of e)try{return JSON.parse((0,ut.readFileSync)(t,"utf-8"))}catch{}return{version:"0.0.0"}}var _b=vb();function yb(e){let t=i=>e?i:Co(i),r=i=>e?i:Re(i),o=i=>e?"":`${i} `;return`${t("USAGE")}
235
235
  ship <path> ${o("\u{1F680}")}Deploy static sites with simplicity
236
236
 
237
237
  ${t("COMMANDS")}
@@ -288,7 +288,7 @@ ${t("EXAMPLES")}
288
288
  ship ./dist -q | ship domains set www.example.com
289
289
 
290
290
  ${r("Please report any issues to https://github.com/shipstatic/ship/issues")}
291
- `}var qt=e=>new k(P.Validation,e);function ro(e,t=[]){return t.concat([e])}function sd(e){let t=Number.parseInt(e,10);if(Number.isNaN(t))throw new wo("Not a number.");return t}var vb={s:1,m:60,h:3600,d:1440*60};function pg(e){let t=/^(\d+)([smhd])?$/.exec(e.trim().toLowerCase());if(!t)throw new wo("Expected seconds or a duration like 90s, 30m, 1h, 7d.");return Number.parseInt(t[1],10)*(t[2]?vb[t[2]]:1)}function io(e){let t=e.label;if(!t?.length)return;let r=t.filter(o=>o!=="");return r.length?r:[]}function _b(e){return e.password??(process.env.SHIP_PASSWORD||void 0)}function oo(e){return e.ttl}var yb=new Set(["--token","--config","--api-url","--json","--quiet","--no-color","--version"]);function hg(e){let t=[];for(let r=e;r?.parent;r=r.parent)t.unshift(r.name());return t.length||t.push(...e.registeredArguments.map(r=>`<${r.name()}>`)),t.join(" ")}function gg(e,t){return[...e.options.some(r=>r.long===t)?[hg(e)]:[],...e.commands.flatMap(r=>gg(r,t))]}function $b(e,t){if(t!==e)for(let r of e.options){let o=r.long;if(!o||yb.has(o)||e.getOptionValueSource(r.attributeName())!=="cli"||t.options.some(i=>i.long===o))continue;let n=gg(e,o).map(i=>`ship ${i}`);throw qt(`option '${o}' does not apply to 'ship ${hg(t)}'${n.length?` \u2014 it belongs to ${n.join(", ")}`:""}`)}}function Oe(e){let t=e.optsWithGlobals();t.color===!1&&(t.noColor=!0);let r=!!process.env.FORCE_COLOR&&process.env.FORCE_COLOR!=="0";return!t.noColor&&!r&&(!process.stdout.isTTY||process.env.NO_COLOR!==void 0)&&(t.noColor=!0),t}function Gn(){let e=Oe(this),t=fe(this).map(o=>o.name()),r=this.args.find(o=>!t.includes(o));r&&ft(qt(`unknown command '${r}'`),e.json,e.noColor),e.json||console.log(`usage: ship ${this.name()} <${t.join("|")}>
292
- `),process.exitCode=1}async function mg(e,t,r){if(!(0,ut.existsSync)(t))throw k.file(`${t} path does not exist`,{filePath:t});let o=(0,ut.statSync)(t);if(!o.isDirectory()&&!o.isFile())throw k.file(`${t} path must be a file or directory`,{filePath:t});let n={via:Id(process.env[jd])??zo.CLI},i=io(r);i!==void 0&&(n.labels=i);let a=process.env.SHIP_IDEMPOTENCY_KEY||void 0;a!==void 0&&(n.idempotencyKey=a);let s=_b(r);s!==void 0&&(n.password=s);let c=oo(r);c!==void 0&&(n.ttl=c),r.pathDetect!==void 0&&(n.pathDetect=r.pathDetect),r.spaDetect!==void 0&&(n.spaDetect=r.spaDetect);let u=new AbortController;n.signal=u.signal;let l=null;if(process.stdout.isTTY&&!r.json&&!r.quiet&&!r.noColor){let{default:p}=await Promise.resolve().then(()=>(dg(),lg));l=p({text:"uploading\u2026"}).start()}let f=()=>{u.abort(),l&&l.stop(),process.exit(130)};process.on("SIGINT",f);try{return await e.deployments.upload(t,n)}finally{process.removeListener("SIGINT",f),l&&l.stop()}}async function fg(e,t,r){let o=await e.domains.set(t,r);if(o.isCreate&&t.includes("."))try{let[n,i]=await Promise.all([e.domains.records(t),e.domains.share(t)]);return{...o,_dnsRecords:n.records,_shareUrl:i.url}}catch{}return o}function vg(){let e=new Sd;e.exitOverride(p=>{if(p.code==="commander.help"||p.code==="commander.version"||p.exitCode===0)throw p;let _=Oe(e),b=p.message||"unknown command error";throw b=b.replace(/^error: /,"").replace(/\n.*/,"").replace(/\.$/,"").toLowerCase(),ft(qt(b),_.json,_.noColor),_.json||e.outputHelp(),p}).configureOutput({writeErr:p=>{p.startsWith("error:")||process.stderr.write(p)},writeOut:p=>process.stdout.write(p)});function t(p){let _=Oe(e),b=eg(p);if(_.json)ft(b,!0,_.noColor);else{let E=tg(b,{token:b.isAuthError()?to(e.opts()):void 0});ft(E,!1,_.noColor),b.type===P.Validation&&E.includes("unknown command")&&e.outputHelp()}process.exitCode=1}function r(p,_){return async function(...b){let E=Oe(this);try{let{config:D,apiUrl:x,token:$}=e.opts(),m=Qh({config:D,apiUrl:x,token:$}),d=await p(m,E,...b);ag(d,_,{json:E.json,quiet:E.quiet,noColor:E.noColor})}catch(D){t(D)}}}e.name("ship").description("\u{1F680} Deploy static sites with simplicity").version(hb.version,"-V, --version","Show version information").option("--token <token>","Any ship token: API key (ship-\u2026) or deploy token (deploy-\u2026)").option("--config <file>","Custom config file path").option("--api-url <url>","API URL (for development)").option("--json","Output results in JSON format").option("-q, --quiet","Output only the resource identifier").option("--no-color","Disable colored output").helpOption("-h, --help","Display help for command").helpCommand("help [command]","Display help for command").configureHelp({formatHelp:(p,_)=>p.parent===null?`${gb(Oe(p).noColor)}
293
- `:kd.prototype.formatHelp.call(_,p,_)}).allowExcessArguments(),e.hook("preAction",(p,_)=>{let b=Oe(p);try{$b(e,_),b.token&&typeof b.token=="string"&&Ye(b.token),b.apiUrl&&typeof b.apiUrl=="string"&&Qn(b.apiUrl)}catch(E){throw ce(E)?(ft(E,b.json,b.noColor),new qn(1,"ship.invalidOption",E.message)):E}}),e.command("ping").description("Check API connectivity").action(r((p,_)=>p.ping(),{operation:"ping"})),e.command("whoami").description("Get current account information").action(r((p,_)=>p.whoami(),{operation:"get",resource:"account"}));let o=r((p,_,b)=>{if(oo(_)!==void 0&&!to(e.opts()))throw k.config(`--ttl sets an expiry, which needs a token: ${no}`);return mg(p,b,_)},{operation:"upload",resource:"deployment"}),n=p=>r(async(_,b,E)=>{if(!to(e.opts()))throw k.config(`--domain links a domain, which needs a token: ${no}`);if(oo(b)!==void 0)throw qt("--ttl and --domain cannot be combined: a domain cannot point at a deployment that expires.");let D=await mg(_,E,b);return og(D,{operation:"upload",resource:"deployment"},b),fg(_,p,{deployment:D.deployment})},{operation:"set",resource:"domain"});function i(p){let{domain:_}=Oe(this);return(_?n(_):o).call(this,p)}let a=p=>p.option("--domain <domain>","Serve this deployment at a domain (needs a token)").option("--label <label>","Label to add (can be repeated)",ro,[]).option("--password <password>","Password-protect this deployment").option("--ttl <duration>","Expire after this long \u2014 3600, 1h, 7d (needs a token)",pg).option("--no-path-detect","Disable automatic path optimization and flattening").option("--no-spa-detect","Disable automatic SPA detection and configuration"),s=e.command("deployments").description("Manage deployments").enablePositionalOptions().action(Gn);s.command("list").description("List deployments (one page \u2014 see --limit and --cursor)").option("--limit <count>","Maximum number of results per page",sd).option("--cursor <cursor>","Continue from a previous page's cursor").action(r((p,_,b)=>p.deployments.list(b),{operation:"list",resource:"deployment"})),a(s.command("upload <path>").description("Upload deployment from file or directory").passThroughOptions()).action(i),s.command("get <deployment>").description("Show deployment information").action(r((p,_,b)=>p.deployments.get(b),{operation:"get",resource:"deployment"})),s.command("set <deployment>").description("Set deployment labels").passThroughOptions().option("--label <label>","Label to set (can be repeated)",ro,[]).action(r(async(p,_,b)=>p.deployments.set(b,{labels:io(_)||[]}),{operation:"set",resource:"deployment"})),s.command("delete <deployment>").description("Delete deployment permanently").action(r((p,_,b)=>p.deployments.delete(b),{operation:"delete",resource:"deployment"}));let c=e.command("domains").description("Manage domains").enablePositionalOptions().action(Gn);c.command("list").description("List domains (one page \u2014 see --limit and --cursor)").option("--limit <count>","Maximum number of results per page",sd).option("--cursor <cursor>","Continue from a previous page's cursor").action(r((p,_,b)=>p.domains.list(b),{operation:"list",resource:"domain"})),c.command("get <name>").description("Show domain information").action(r((p,_,b)=>p.domains.get(b),{operation:"get",resource:"domain"})),c.command("validate <name>").description("Check if domain name is valid and available").action(r(async(p,_,b)=>{let E=await p.domains.validate(b);return E.valid||(process.exitCode=1),E},{operation:"validate",resource:"domain"})),c.command("verify <name>").description("Trigger DNS verification for external domain").action(r((p,_,b)=>p.domains.verify(b),{operation:"verify",resource:"domain"})),c.command("records <name>").description("Show required DNS records for domain setup").action(r((p,_,b)=>p.domains.records(b),{operation:"records",resource:"domain"})),c.command("dns <name>").description("Look up DNS provider for a domain").action(r((p,_,b)=>p.domains.dns(b),{operation:"dns",resource:"domain"})),c.command("share <name>").description("Get shareable DNS setup link").action(r((p,_,b)=>p.domains.share(b),{operation:"share",resource:"domain"})),c.command("set <name> [deployment]").description("Create domain, link to deployment, or update labels").passThroughOptions().option("--label <label>","Label to set (can be repeated)",ro,[]).action(r(async(p,_,b,E)=>{!E&&!process.stdin.isTTY&&(E=await new Promise($=>{let m="";process.stdin.on("data",d=>m+=d),process.stdin.on("end",()=>$(m.trim()||void 0))}));let D=io(_),x={};return E&&(x.deployment=E),D!==void 0&&(x.labels=D),fg(p,b,x)},{operation:"set",resource:"domain"})),c.command("delete <name>").description("Delete domain permanently").action(r((p,_,b)=>p.domains.delete(b),{operation:"delete",resource:"domain"}));let u=e.command("tokens").description("Manage deploy tokens").enablePositionalOptions().action(Gn);u.command("list").description("List deploy tokens (one page \u2014 see --limit and --cursor)").option("--limit <count>","Maximum number of results per page",sd).option("--cursor <cursor>","Continue from a previous page's cursor").action(r((p,_,b)=>p.tokens.list(b),{operation:"list",resource:"token"})),u.command("create").description("Create a new deploy token").option("--ttl <duration>","Expire after this long \u2014 3600, 1h, 7d",pg).option("--label <label>","Label to set (can be repeated)",ro,[]).action(r((p,_)=>{let b={},E=oo(_);E!==void 0&&(b.ttl=E);let D=io(_);return D!==void 0&&(b.labels=D),p.tokens.create(b)},{operation:"create",resource:"token"})),u.command("get <token>").description("Show one deploy token").action(r((p,_,b)=>p.tokens.get(b),{operation:"get",resource:"token"})),u.command("delete <token>").description("Delete token permanently").action(r((p,_,b)=>p.tokens.delete(b),{operation:"delete",resource:"token"})),e.command("account").description("Manage account").action(Gn).command("get").description("Show account information").action(r((p,_)=>p.whoami(),{operation:"get",resource:"account"}));let f=e.command("completion").description("Setup shell completion").action(Gn);return f.command("install").description("Install shell completion script").action(()=>{let p=Oe(e);try{mp(e,{json:p.json,noColor:p.noColor})}catch(_){t(_)}}),f.command("uninstall").description("Uninstall shell completion script").action(()=>{let p=Oe(e);try{fp({json:p.json,noColor:p.noColor})}catch(_){t(_)}}),e.command("config").description("Save your token").action(async()=>{let p=Oe(e);try{if(p.json)throw qt("ship config is interactive \u2014 run it without --json (it shows the token already saved)");await xh({noColor:p.noColor,configFile:p.config})}catch(_){t(_)}}),a(e.argument("[path]","Path to deploy")).action(async function(p){if(!p){this.outputHelp();return}if(!(0,ut.existsSync)(p)&&!p.includes("/")&&!p.includes("\\")&&!p.includes(".")&&!p.startsWith("~")){t(qt(`unknown command '${p}'`));return}return i.call(this,p)}),e}vg().parseAsync(process.argv).catch(e=>{if(e instanceof qn){process.exitCode=e.exitCode;return}throw e});
291
+ `}var qt=e=>new k(P.Validation,e);function ro(e,t=[]){return t.concat([e])}function cd(e){let t=Number.parseInt(e,10);if(Number.isNaN(t))throw new wo("Not a number.");return t}var $b={s:1,m:60,h:3600,d:1440*60};function fg(e){let t=/^(\d+)([smhd])?$/.exec(e.trim().toLowerCase());if(!t)throw new wo("Expected seconds or a duration like 90s, 30m, 1h, 7d.");return Number.parseInt(t[1],10)*(t[2]?$b[t[2]]:1)}function io(e){let t=e.label;if(!t?.length)return;let r=t.filter(o=>o!=="");return r.length?r:[]}function xb(e){return e.password??(process.env.SHIP_PASSWORD||void 0)}function oo(e){return e.ttl}var bb=new Set(["--token","--config","--api-url","--json","--quiet","--no-color","--version"]);function vg(e){let t=[];for(let r=e;r?.parent;r=r.parent)t.unshift(r.name());return t.length||t.push(...e.registeredArguments.map(r=>`<${r.name()}>`)),t.join(" ")}function _g(e,t){return[...e.options.some(r=>r.long===t)?[vg(e)]:[],...e.commands.flatMap(r=>_g(r,t))]}function Sb(e,t){if(t!==e)for(let r of e.options){let o=r.long;if(!o||bb.has(o)||e.getOptionValueSource(r.attributeName())!=="cli"||t.options.some(i=>i.long===o))continue;let n=_g(e,o).map(i=>`ship ${i}`);throw qt(`option '${o}' does not apply to 'ship ${vg(t)}'${n.length?` \u2014 it belongs to ${n.join(", ")}`:""}`)}}function Oe(e){let t=e.optsWithGlobals();t.color===!1&&(t.noColor=!0);let r=!!process.env.FORCE_COLOR&&process.env.FORCE_COLOR!=="0";return!t.noColor&&!r&&(!process.stdout.isTTY||process.env.NO_COLOR!==void 0)&&(t.noColor=!0),t}function Gn(){let e=Oe(this),t=fe(this).map(o=>o.name()),r=this.args.find(o=>!t.includes(o));r&&ft(qt(`unknown command '${r}'`),e.json,e.noColor),e.json||console.log(`usage: ship ${this.name()} <${t.join("|")}>
292
+ `),process.exitCode=1}async function hg(e,t,r){if(!(0,ut.existsSync)(t))throw k.file(`${t} path does not exist`,{filePath:t});let o=(0,ut.statSync)(t);if(!o.isDirectory()&&!o.isFile())throw k.file(`${t} path must be a file or directory`,{filePath:t});let n={via:Od(process.env[Nd])??zo.CLI},i=io(r);i!==void 0&&(n.labels=i);let a=process.env.SHIP_IDEMPOTENCY_KEY||void 0;a!==void 0&&(n.idempotencyKey=a);let s=xb(r);s!==void 0&&(n.password=s);let c=oo(r);c!==void 0&&(n.ttl=c),r.pathDetect!==void 0&&(n.pathDetect=r.pathDetect),r.spaDetect!==void 0&&(n.spaDetect=r.spaDetect);let u=new AbortController;n.signal=u.signal;let l=null;if(process.stdout.isTTY&&!r.json&&!r.quiet&&!r.noColor){let{default:p}=await Promise.resolve().then(()=>(mg(),pg));l=p({text:"uploading\u2026"}).start()}let f=()=>{u.abort(),l&&l.stop(),process.exit(130)};process.on("SIGINT",f);try{return await e.deployments.upload(t,n)}finally{process.removeListener("SIGINT",f),l&&l.stop()}}async function gg(e,t,r){let o=await e.domains.set(t,r);if(o.isCreate&&t.includes("."))try{let[n,i]=await Promise.all([e.domains.records(t),e.domains.share(t)]);return{...o,_dnsRecords:n.records,_shareUrl:i.url}}catch{}return o}function yg(){let e=new kd;e.exitOverride(p=>{if(p.code==="commander.help"||p.code==="commander.version"||p.exitCode===0)throw p;let _=Oe(e),b=p.message||"unknown command error";throw b=b.replace(/^error: /,"").replace(/\n.*/,"").replace(/\.$/,"").toLowerCase(),ft(qt(b),_.json,_.noColor),_.json||e.outputHelp(),p}).configureOutput({writeErr:p=>{p.startsWith("error:")||process.stderr.write(p)},writeOut:p=>process.stdout.write(p)});function t(p){let _=Oe(e),b=tg(p);if(_.json)ft(b,!0,_.noColor);else{let E=ng(b,{token:b.isAuthError()?to(e.opts()):void 0});ft(E,!1,_.noColor),b.type===P.Validation&&E.includes("unknown command")&&e.outputHelp()}process.exitCode=1}function r(p,_){return async function(...b){let E=Oe(this);try{let{config:D,apiUrl:x,token:$}=e.opts(),m=eg({config:D,apiUrl:x,token:$}),d=await p(m,E,...b);cg(d,_,{json:E.json,quiet:E.quiet,noColor:E.noColor})}catch(D){t(D)}}}e.name("ship").description("\u{1F680} Deploy static sites with simplicity").version(_b.version,"-V, --version","Show version information").option("--token <token>","Any ship token: API key (ship-\u2026) or deploy token (deploy-\u2026)").option("--config <file>","Custom config file path").option("--api-url <url>","API URL (for development)").option("--json","Output results in JSON format").option("-q, --quiet","Output only the resource identifier").option("--no-color","Disable colored output").helpOption("-h, --help","Display help for command").helpCommand("help [command]","Display help for command").configureHelp({formatHelp:(p,_)=>p.parent===null?`${yb(Oe(p).noColor)}
293
+ `:wd.prototype.formatHelp.call(_,p,_)}).allowExcessArguments(),e.hook("preAction",(p,_)=>{let b=Oe(p);try{Sb(e,_),b.token&&typeof b.token=="string"&&Ye(b.token),b.apiUrl&&typeof b.apiUrl=="string"&&Qn(b.apiUrl)}catch(E){throw ce(E)?(ft(E,b.json,b.noColor),new qn(1,"ship.invalidOption",E.message)):E}}),e.command("ping").description("Check API connectivity").action(r((p,_)=>p.ping(),{operation:"ping"})),e.command("whoami").description("Get current account information").action(r((p,_)=>p.whoami(),{operation:"get",resource:"account"}));let o=r((p,_,b)=>{if(oo(_)!==void 0&&!to(e.opts()))throw k.config(`--ttl sets an expiry, which needs a token: ${no}`);return hg(p,b,_)},{operation:"upload",resource:"deployment"}),n=p=>r(async(_,b,E)=>{if(!to(e.opts()))throw k.config(`--domain links a domain, which needs a token: ${no}`);if(oo(b)!==void 0)throw qt("--ttl and --domain cannot be combined: a domain cannot point at a deployment that expires.");let D=await hg(_,E,b);return sg(D,{operation:"upload",resource:"deployment"},b),gg(_,p,{deployment:D.deployment})},{operation:"set",resource:"domain"});function i(p){let{domain:_}=Oe(this);return(_?n(_):o).call(this,p)}let a=p=>p.option("--domain <domain>","Serve this deployment at a domain (needs a token)").option("--label <label>","Label to add (can be repeated)",ro,[]).option("--password <password>","Password-protect this deployment").option("--ttl <duration>","Expire after this long \u2014 3600, 1h, 7d (needs a token)",fg).option("--no-path-detect","Disable automatic path optimization and flattening").option("--no-spa-detect","Disable automatic SPA detection and configuration"),s=e.command("deployments").description("Manage deployments").enablePositionalOptions().action(Gn);s.command("list").description("List deployments (one page \u2014 see --limit and --cursor)").option("--limit <count>","Maximum number of results per page",cd).option("--cursor <cursor>","Continue from a previous page's cursor").action(r((p,_,b)=>p.deployments.list(b),{operation:"list",resource:"deployment"})),a(s.command("upload <path>").description("Upload deployment from file or directory").passThroughOptions()).action(i),s.command("get <deployment>").description("Show deployment information").action(r((p,_,b)=>p.deployments.get(b),{operation:"get",resource:"deployment"})),s.command("set <deployment>").description("Set deployment labels").passThroughOptions().option("--label <label>","Label to set (can be repeated)",ro,[]).action(r(async(p,_,b)=>p.deployments.set(b,{labels:io(_)||[]}),{operation:"set",resource:"deployment"})),s.command("delete <deployment>").description("Delete deployment permanently").action(r((p,_,b)=>p.deployments.delete(b),{operation:"delete",resource:"deployment"}));let c=e.command("domains").description("Manage domains").enablePositionalOptions().action(Gn);c.command("list").description("List domains (one page \u2014 see --limit and --cursor)").option("--limit <count>","Maximum number of results per page",cd).option("--cursor <cursor>","Continue from a previous page's cursor").action(r((p,_,b)=>p.domains.list(b),{operation:"list",resource:"domain"})),c.command("get <name>").description("Show domain information").action(r((p,_,b)=>p.domains.get(b),{operation:"get",resource:"domain"})),c.command("validate <name>").description("Check if domain name is valid and available").action(r(async(p,_,b)=>{let E=await p.domains.validate(b);return E.valid||(process.exitCode=1),E},{operation:"validate",resource:"domain"})),c.command("verify <name>").description("Trigger DNS verification for external domain").action(r((p,_,b)=>p.domains.verify(b),{operation:"verify",resource:"domain"})),c.command("records <name>").description("Show required DNS records for domain setup").action(r((p,_,b)=>p.domains.records(b),{operation:"records",resource:"domain"})),c.command("dns <name>").description("Look up DNS provider for a domain").action(r((p,_,b)=>p.domains.dns(b),{operation:"dns",resource:"domain"})),c.command("share <name>").description("Get shareable DNS setup link").action(r((p,_,b)=>p.domains.share(b),{operation:"share",resource:"domain"})),c.command("set <name> [deployment]").description("Create domain, link to deployment, or update labels").passThroughOptions().option("--label <label>","Label to set (can be repeated)",ro,[]).action(r(async(p,_,b,E)=>{!E&&!process.stdin.isTTY&&(E=await new Promise($=>{let m="";process.stdin.on("data",d=>m+=d),process.stdin.on("end",()=>$(m.trim()||void 0))}));let D=io(_),x={};return E&&(x.deployment=E),D!==void 0&&(x.labels=D),gg(p,b,x)},{operation:"set",resource:"domain"})),c.command("delete <name>").description("Delete domain permanently").action(r((p,_,b)=>p.domains.delete(b),{operation:"delete",resource:"domain"}));let u=e.command("tokens").description("Manage deploy tokens").enablePositionalOptions().action(Gn);u.command("list").description("List deploy tokens (one page \u2014 see --limit and --cursor)").option("--limit <count>","Maximum number of results per page",cd).option("--cursor <cursor>","Continue from a previous page's cursor").action(r((p,_,b)=>p.tokens.list(b),{operation:"list",resource:"token"})),u.command("create").description("Create a new deploy token").option("--ttl <duration>","Expire after this long \u2014 3600, 1h, 7d",fg).option("--label <label>","Label to set (can be repeated)",ro,[]).action(r((p,_)=>{let b={},E=oo(_);E!==void 0&&(b.ttl=E);let D=io(_);return D!==void 0&&(b.labels=D),p.tokens.create(b)},{operation:"create",resource:"token"})),u.command("get <token>").description("Show one deploy token").action(r((p,_,b)=>p.tokens.get(b),{operation:"get",resource:"token"})),u.command("delete <token>").description("Delete token permanently").action(r((p,_,b)=>p.tokens.delete(b),{operation:"delete",resource:"token"})),e.command("account").description("Manage account").action(Gn).command("get").description("Show account information").action(r((p,_)=>p.whoami(),{operation:"get",resource:"account"}));let f=e.command("completion").description("Setup shell completion").action(Gn);return f.command("install").description("Install shell completion script").action(()=>{let p=Oe(e);try{fp(e,{json:p.json,noColor:p.noColor})}catch(_){t(_)}}),f.command("uninstall").description("Uninstall shell completion script").action(()=>{let p=Oe(e);try{hp({json:p.json,noColor:p.noColor})}catch(_){t(_)}}),e.command("config").description("Save your token").action(async()=>{let p=Oe(e);try{if(p.json)throw qt("ship config is interactive \u2014 run it without --json (it shows the token already saved)");await bh({noColor:p.noColor,configFile:p.config})}catch(_){t(_)}}),a(e.argument("[path]","Path to deploy")).action(async function(p){if(!p){this.outputHelp();return}if(!(0,ut.existsSync)(p)&&!p.includes("/")&&!p.includes("\\")&&!p.includes(".")&&!p.startsWith("~")){t(qt(`unknown command '${p}'`));return}return i.call(this,p)}),e}yg().parseAsync(process.argv).catch(e=>{if(e instanceof qn){process.exitCode=e.exitCode;return}throw e});
294
294
  //# sourceMappingURL=cli.cjs.map