buildkeel 0.7.0 → 0.7.2

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.
Files changed (158) hide show
  1. package/README.md +33 -4
  2. package/antigravity/agents/bk-break-it-pro.md +25 -0
  3. package/antigravity/agents/bk-designer-pro.md +20 -0
  4. package/antigravity/agents/bk-edge-cases-pro.md +31 -0
  5. package/antigravity/agents/bk-final-quality-reviewer-pro.md +47 -0
  6. package/antigravity/agents/bk-final-spec-reviewer-pro.md +37 -0
  7. package/antigravity/agents/bk-implementer-pro.md +40 -0
  8. package/antigravity/agents/bk-note-checker-pro.md +26 -0
  9. package/antigravity/agents/bk-quality-reviewer-pro.md +47 -0
  10. package/antigravity/agents/bk-readiness-reader-pro.md +28 -0
  11. package/antigravity/agents/bk-spec-reviewer-pro.md +37 -0
  12. package/antigravity/dist/hooks/main.js +208 -143
  13. package/antigravity/dist/server/main.js +653 -595
  14. package/antigravity/package.json +1 -1
  15. package/antigravity/plugin.json +1 -1
  16. package/antigravity/rules/buildkeel.md +1 -1
  17. package/antigravity/skills/bk-build/SKILL.md +3 -3
  18. package/antigravity/skills/bk-done/SKILL.md +1 -1
  19. package/antigravity/skills/bk-init/SKILL.md +4 -0
  20. package/antigravity/skills/bk-models/SKILL.md +16 -0
  21. package/antigravity/skills/bk-review/SKILL.md +1 -1
  22. package/cli.mjs +151 -142
  23. package/cursor/.cursor-plugin/plugin.json +16 -0
  24. package/cursor/LICENSE +49 -0
  25. package/cursor/THIRD-PARTY-NOTICES +231 -0
  26. package/cursor/agents/bk-break-it.md +17 -0
  27. package/cursor/agents/bk-designer.md +12 -0
  28. package/cursor/agents/bk-edge-cases.md +23 -0
  29. package/cursor/agents/bk-final-quality-reviewer.md +39 -0
  30. package/cursor/agents/bk-final-spec-reviewer.md +29 -0
  31. package/cursor/agents/bk-implementer.md +32 -0
  32. package/cursor/agents/bk-note-checker.md +18 -0
  33. package/cursor/agents/bk-quality-reviewer.md +39 -0
  34. package/cursor/agents/bk-readiness-reader.md +20 -0
  35. package/cursor/agents/bk-spec-reviewer.md +29 -0
  36. package/cursor/agents/index.json +99 -0
  37. package/cursor/bin/bk-launch +34 -0
  38. package/cursor/bin/bk-launch.cmd +36 -0
  39. package/cursor/bin/bk-start.cjs +28 -0
  40. package/cursor/dist/hooks/main.js +232 -0
  41. package/cursor/dist/server/main.js +834 -0
  42. package/cursor/hooks/hooks.json +36 -0
  43. package/cursor/mcp.json +24 -0
  44. package/cursor/package.json +8 -0
  45. package/cursor/practices/P-01.md +7 -0
  46. package/cursor/practices/P-02.md +7 -0
  47. package/cursor/practices/P-03.md +7 -0
  48. package/cursor/practices/P-04.md +7 -0
  49. package/cursor/practices/P-05.md +7 -0
  50. package/cursor/practices/P-06.md +7 -0
  51. package/cursor/practices/P-07.md +7 -0
  52. package/cursor/practices/P-08.md +7 -0
  53. package/cursor/practices/P-09.md +7 -0
  54. package/cursor/practices/P-10.md +7 -0
  55. package/cursor/practices/P-11.md +7 -0
  56. package/cursor/practices/P-12.md +7 -0
  57. package/cursor/practices/P-13.md +7 -0
  58. package/cursor/practices/P-14.md +7 -0
  59. package/cursor/practices/P-15.md +7 -0
  60. package/cursor/project/commands/bk-approve.md +50 -0
  61. package/cursor/project/commands/bk-build.md +248 -0
  62. package/cursor/project/commands/bk-capture.md +207 -0
  63. package/cursor/project/commands/bk-done.md +112 -0
  64. package/cursor/project/commands/bk-impact.md +48 -0
  65. package/cursor/project/commands/bk-init.md +92 -0
  66. package/cursor/project/commands/bk-migrate.md +71 -0
  67. package/cursor/project/commands/bk-models.md +9 -0
  68. package/cursor/project/commands/bk-new.md +121 -0
  69. package/cursor/project/commands/bk-onboard.md +134 -0
  70. package/cursor/project/commands/bk-pause.md +49 -0
  71. package/cursor/project/commands/bk-resume.md +28 -0
  72. package/cursor/project/commands/bk-review.md +49 -0
  73. package/cursor/project/commands/bk-settings.md +11 -0
  74. package/cursor/project/commands/bk-stats.md +33 -0
  75. package/cursor/project/commands/bk-status.md +11 -0
  76. package/cursor/project/rules/buildkeel.mdc +80 -0
  77. package/cursor/skills/buildkeel/SKILL.md +80 -0
  78. package/cursor/templates/adhoc.md +15 -0
  79. package/cursor/templates/adr.md +31 -0
  80. package/cursor/templates/defect.md +35 -0
  81. package/cursor/templates/design.md +49 -0
  82. package/cursor/templates/epic.md +31 -0
  83. package/cursor/templates/idea.md +35 -0
  84. package/cursor/templates/spec-driven/capability.md +28 -0
  85. package/cursor/templates/spec-driven/proposal.md +41 -0
  86. package/cursor/templates/spec-driven/spec-change.md +43 -0
  87. package/cursor/templates/spec-driven/tasks.md +25 -0
  88. package/cursor/templates/story.md +31 -0
  89. package/cursor/templates/task.md +43 -0
  90. package/cursor/templates/test-plan.md +29 -0
  91. package/cursor/templates/thread.md +41 -0
  92. package/package.json +17 -3
  93. package/pi/LICENSE +49 -0
  94. package/pi/THIRD-PARTY-NOTICES +231 -0
  95. package/pi/agents/bk-break-it.md +17 -0
  96. package/pi/agents/bk-designer.md +12 -0
  97. package/pi/agents/bk-edge-cases.md +23 -0
  98. package/pi/agents/bk-final-quality-reviewer.md +39 -0
  99. package/pi/agents/bk-final-spec-reviewer.md +29 -0
  100. package/pi/agents/bk-implementer.md +32 -0
  101. package/pi/agents/bk-note-checker.md +18 -0
  102. package/pi/agents/bk-quality-reviewer.md +39 -0
  103. package/pi/agents/bk-readiness-reader.md +20 -0
  104. package/pi/agents/bk-spec-reviewer.md +29 -0
  105. package/pi/agents/index.json +135 -0
  106. package/pi/bin/bk-launch +34 -0
  107. package/pi/bin/bk-launch.cmd +36 -0
  108. package/pi/bin/bk-start.cjs +28 -0
  109. package/pi/dist/hooks/main.js +232 -0
  110. package/pi/dist/server/main.js +834 -0
  111. package/pi/extension.js +241 -0
  112. package/pi/package.json +8 -0
  113. package/pi/practices/P-01.md +7 -0
  114. package/pi/practices/P-02.md +7 -0
  115. package/pi/practices/P-03.md +7 -0
  116. package/pi/practices/P-04.md +7 -0
  117. package/pi/practices/P-05.md +7 -0
  118. package/pi/practices/P-06.md +7 -0
  119. package/pi/practices/P-07.md +7 -0
  120. package/pi/practices/P-08.md +7 -0
  121. package/pi/practices/P-09.md +7 -0
  122. package/pi/practices/P-10.md +7 -0
  123. package/pi/practices/P-11.md +7 -0
  124. package/pi/practices/P-12.md +7 -0
  125. package/pi/practices/P-13.md +7 -0
  126. package/pi/practices/P-14.md +7 -0
  127. package/pi/practices/P-15.md +7 -0
  128. package/pi/prompts/bk-approve.md +53 -0
  129. package/pi/prompts/bk-build.md +251 -0
  130. package/pi/prompts/bk-capture.md +210 -0
  131. package/pi/prompts/bk-done.md +115 -0
  132. package/pi/prompts/bk-impact.md +51 -0
  133. package/pi/prompts/bk-init.md +95 -0
  134. package/pi/prompts/bk-migrate.md +73 -0
  135. package/pi/prompts/bk-models.md +11 -0
  136. package/pi/prompts/bk-new.md +124 -0
  137. package/pi/prompts/bk-onboard.md +137 -0
  138. package/pi/prompts/bk-pause.md +52 -0
  139. package/pi/prompts/bk-resume.md +31 -0
  140. package/pi/prompts/bk-review.md +52 -0
  141. package/pi/prompts/bk-settings.md +13 -0
  142. package/pi/prompts/bk-stats.md +36 -0
  143. package/pi/prompts/bk-status.md +13 -0
  144. package/pi/skills/buildkeel/SKILL.md +68 -0
  145. package/pi/templates/adhoc.md +15 -0
  146. package/pi/templates/adr.md +31 -0
  147. package/pi/templates/defect.md +35 -0
  148. package/pi/templates/design.md +49 -0
  149. package/pi/templates/epic.md +31 -0
  150. package/pi/templates/idea.md +35 -0
  151. package/pi/templates/spec-driven/capability.md +28 -0
  152. package/pi/templates/spec-driven/proposal.md +41 -0
  153. package/pi/templates/spec-driven/spec-change.md +43 -0
  154. package/pi/templates/spec-driven/tasks.md +25 -0
  155. package/pi/templates/story.md +31 -0
  156. package/pi/templates/task.md +43 -0
  157. package/pi/templates/test-plan.md +29 -0
  158. package/pi/templates/thread.md +41 -0
@@ -0,0 +1,241 @@
1
+ import { createRequire as __bkCreateRequire } from 'node:module'; const require = __bkCreateRequire(import.meta.url);
2
+ var qw=Object.create;var ec=Object.defineProperty;var Vw=Object.getOwnPropertyDescriptor;var Kw=Object.getOwnPropertyNames;var Jw=Object.getPrototypeOf,Hw=Object.prototype.hasOwnProperty;var Li=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var N=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},Ke=(e,t)=>{for(var r in t)ec(e,r,{get:t[r],enumerable:!0})},Ww=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Kw(t))!Hw.call(e,n)&&n!==r&&ec(e,n,{get:()=>t[n],enumerable:!(i=Vw(t,n))||i.enumerable});return e};var nt=(e,t,r)=>(r=e!=null?qw(Jw(e)):{},Ww(t||!e||!e.__esModule?ec(r,"default",{value:e,enumerable:!0}):r,e));var Z=N(ie=>{"use strict";var tc=Symbol.for("yaml.alias"),Eg=Symbol.for("yaml.document"),Ri=Symbol.for("yaml.map"),Cg=Symbol.for("yaml.pair"),nc=Symbol.for("yaml.scalar"),Zi=Symbol.for("yaml.seq"),Je=Symbol.for("yaml.node.type"),Gw=e=>!!e&&typeof e=="object"&&e[Je]===tc,Yw=e=>!!e&&typeof e=="object"&&e[Je]===Eg,Xw=e=>!!e&&typeof e=="object"&&e[Je]===Ri,Qw=e=>!!e&&typeof e=="object"&&e[Je]===Cg,Ug=e=>!!e&&typeof e=="object"&&e[Je]===nc,eS=e=>!!e&&typeof e=="object"&&e[Je]===Zi;function Lg(e){if(e&&typeof e=="object")switch(e[Je]){case Ri:case Zi:return!0}return!1}function tS(e){if(e&&typeof e=="object")switch(e[Je]){case tc:case Ri:case nc:case Zi:return!0}return!1}var nS=e=>(Ug(e)||Lg(e))&&!!e.anchor;ie.ALIAS=tc;ie.DOC=Eg;ie.MAP=Ri;ie.NODE_TYPE=Je;ie.PAIR=Cg;ie.SCALAR=nc;ie.SEQ=Zi;ie.hasAnchor=nS;ie.isAlias=Gw;ie.isCollection=Lg;ie.isDocument=Yw;ie.isMap=Xw;ie.isNode=tS;ie.isPair=Qw;ie.isScalar=Ug;ie.isSeq=eS});var tr=N(rc=>{"use strict";var ee=Z(),ge=Symbol("break visit"),Rg=Symbol("skip children"),Re=Symbol("remove node");function Mi(e,t){let r=Zg(t);ee.isDocument(e)?nn(null,e.contents,r,Object.freeze([e]))===Re&&(e.contents=null):nn(null,e,r,Object.freeze([]))}Mi.BREAK=ge;Mi.SKIP=Rg;Mi.REMOVE=Re;function nn(e,t,r,i){let n=Mg(e,t,r,i);if(ee.isNode(n)||ee.isPair(n))return Fg(e,i,n),nn(e,n,r,i);if(typeof n!="symbol"){if(ee.isCollection(t)){i=Object.freeze(i.concat(t));for(let o=0;o<t.items.length;++o){let s=nn(o,t.items[o],r,i);if(typeof s=="number")o=s-1;else{if(s===ge)return ge;s===Re&&(t.items.splice(o,1),o-=1)}}}else if(ee.isPair(t)){i=Object.freeze(i.concat(t));let o=nn("key",t.key,r,i);if(o===ge)return ge;o===Re&&(t.key=null);let s=nn("value",t.value,r,i);if(s===ge)return ge;s===Re&&(t.value=null)}}return n}async function Fi(e,t){let r=Zg(t);ee.isDocument(e)?await rn(null,e.contents,r,Object.freeze([e]))===Re&&(e.contents=null):await rn(null,e,r,Object.freeze([]))}Fi.BREAK=ge;Fi.SKIP=Rg;Fi.REMOVE=Re;async function rn(e,t,r,i){let n=await Mg(e,t,r,i);if(ee.isNode(n)||ee.isPair(n))return Fg(e,i,n),rn(e,n,r,i);if(typeof n!="symbol"){if(ee.isCollection(t)){i=Object.freeze(i.concat(t));for(let o=0;o<t.items.length;++o){let s=await rn(o,t.items[o],r,i);if(typeof s=="number")o=s-1;else{if(s===ge)return ge;s===Re&&(t.items.splice(o,1),o-=1)}}}else if(ee.isPair(t)){i=Object.freeze(i.concat(t));let o=await rn("key",t.key,r,i);if(o===ge)return ge;o===Re&&(t.key=null);let s=await rn("value",t.value,r,i);if(s===ge)return ge;s===Re&&(t.value=null)}}return n}function Zg(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Mg(e,t,r,i){if(typeof r=="function")return r(e,t,i);if(ee.isMap(t))return r.Map?.(e,t,i);if(ee.isSeq(t))return r.Seq?.(e,t,i);if(ee.isPair(t))return r.Pair?.(e,t,i);if(ee.isScalar(t))return r.Scalar?.(e,t,i);if(ee.isAlias(t))return r.Alias?.(e,t,i)}function Fg(e,t,r){let i=t[t.length-1];if(ee.isCollection(i))i.items[e]=r;else if(ee.isPair(i))e==="key"?i.key=r:i.value=r;else if(ee.isDocument(i))i.contents=r;else{let n=ee.isAlias(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${n} parent`)}}rc.visit=Mi;rc.visitAsync=Fi});var ic=N(qg=>{"use strict";var Bg=Z(),rS=tr(),iS={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},oS=e=>e.replace(/[!,[\]{}]/g,t=>iS[t]),nr=class e{constructor(t,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,r)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,r){this.atNextDocument&&(this.yaml={explicit:e.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},e.defaultTags),this.atNextDocument=!1);let i=t.trim().split(/[ \t]+/),n=i.shift();switch(n){case"%TAG":{if(i.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;let[o,s]=i;return this.tags[o]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;let[o]=i;if(o==="1.1"||o==="1.2")return this.yaml.version=o,!0;{let s=/^\d+\.\d+$/.test(o);return r(6,`Unsupported YAML version ${o}`,s),!1}}default:return r(0,`Unknown directive ${n}`,!0),!1}}tagName(t,r){if(t==="!")return"!";if(t[0]!=="!")return r(`Not a valid tag: ${t}`),null;if(t[1]==="<"){let s=t.slice(2,-1);return s==="!"||s==="!!"?(r(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&r("Verbatim tags must end with a >"),s)}let[,i,n]=t.match(/^(.*!)([^!]*)$/s);n||r(`The ${t} tag has no suffix`);let o=this.tags[i];if(o)try{return o+decodeURIComponent(n)}catch(s){return r(String(s)),null}return i==="!"?t:(r(`Could not resolve tag: ${t}`),null)}tagString(t){for(let[r,i]of Object.entries(this.tags))if(t.startsWith(i))return r+oS(t.substring(i.length));return t[0]==="!"?t:`!<${t}>`}toString(t){let r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags),n;if(t&&i.length>0&&Bg.isNode(t.contents)){let o={};rS.visit(t.contents,(s,a)=>{Bg.isNode(a)&&a.tag&&(o[a.tag]=!0)}),n=Object.keys(o)}else n=[];for(let[o,s]of i)o==="!!"&&s==="tag:yaml.org,2002:"||(!t||n.some(a=>a.startsWith(s)))&&r.push(`%TAG ${o} ${s}`);return r.join(`
3
+ `)}};nr.defaultYaml={explicit:!1,version:"1.2"};nr.defaultTags={"!!":"tag:yaml.org,2002:"};qg.Directives=nr});var Bi=N(rr=>{"use strict";var Vg=Z(),sS=tr();function aS(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let r=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(r)}return!0}function Kg(e){let t=new Set;return sS.visit(e,{Value(r,i){i.anchor&&t.add(i.anchor)}}),t}function Jg(e,t){for(let r=1;;++r){let i=`${e}${r}`;if(!t.has(i))return i}}function cS(e,t){let r=[],i=new Map,n=null;return{onAnchor:o=>{r.push(o),n??(n=Kg(e));let s=Jg(t,n);return n.add(s),s},setAnchors:()=>{for(let o of r){let s=i.get(o);if(typeof s=="object"&&s.anchor&&(Vg.isScalar(s.node)||Vg.isCollection(s.node)))s.node.anchor=s.anchor;else{let a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=o,a}}},sourceObjects:i}}rr.anchorIsValid=aS;rr.anchorNames=Kg;rr.createNodeAnchors=cS;rr.findNewAnchor=Jg});var oc=N(Hg=>{"use strict";function ir(e,t,r,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let n=0,o=i.length;n<o;++n){let s=i[n],a=ir(e,i,String(n),s);a===void 0?delete i[n]:a!==s&&(i[n]=a)}else if(i instanceof Map)for(let n of Array.from(i.keys())){let o=i.get(n),s=ir(e,i,n,o);s===void 0?i.delete(n):s!==o&&i.set(n,s)}else if(i instanceof Set)for(let n of Array.from(i)){let o=ir(e,i,n,n);o===void 0?i.delete(n):o!==n&&(i.delete(n),i.add(o))}else for(let[n,o]of Object.entries(i)){let s=ir(e,i,n,o);s===void 0?delete i[n]:s!==o&&(i[n]=s)}return e.call(t,r,i)}Hg.applyReviver=ir});var rt=N(Gg=>{"use strict";var uS=Z();function Wg(e,t,r){if(Array.isArray(e))return e.map((i,n)=>Wg(i,String(n),r));if(e&&typeof e.toJSON=="function"){if(!r||!uS.hasAnchor(e))return e.toJSON(t,r);let i={aliasCount:0,count:1,res:void 0};r.anchors.set(e,i),r.onCreate=o=>{i.res=o,delete r.onCreate};let n=e.toJSON(t,r);return r.onCreate&&r.onCreate(n),n}return typeof e=="bigint"&&!r?.keep?Number(e):e}Gg.toJS=Wg});var qi=N(Xg=>{"use strict";var lS=oc(),Yg=Z(),dS=rt(),sc=class{constructor(t){Object.defineProperty(this,Yg.NODE_TYPE,{value:t})}clone(){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:r,maxAliasCount:i,onAnchor:n,reviver:o}={}){if(!Yg.isDocument(t))throw new TypeError("A document argument is required");let s={anchors:new Map,doc:t,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},a=dS.toJS(this,"",s);if(typeof n=="function")for(let{count:c,res:u}of s.anchors.values())n(u,c);return typeof o=="function"?lS.applyReviver(o,{"":a},"",a):a}};Xg.NodeBase=sc});var or=N(Qg=>{"use strict";var fS=Bi(),pS=tr(),on=Z(),mS=qi(),gS=rt(),ac=class extends mS.NodeBase{constructor(t){super(on.ALIAS),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,r){if(r?.maxAliasCount===0)throw new ReferenceError("Alias resolution is disabled");let i;r?.aliasResolveCache?i=r.aliasResolveCache:(i=[],pS.visit(t,{Node:(o,s)=>{(on.isAlias(s)||on.hasAnchor(s))&&i.push(s)}}),r&&(r.aliasResolveCache=i));let n;for(let o of i){if(o===this)break;o.anchor===this.source&&(n=o)}if(n&&r){let{anchors:o,doc:s,maxAliasCount:a}=r,c=o.get(n);if(c||(gS.toJS(n,null,r),c=o.get(n)),c?.res===void 0){let u="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(u)}if(a>=0&&(c.count+=1,c.aliasCount===0&&(c.aliasCount=Vi(s,n,o)),c.count*c.aliasCount>a)){let u="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(u)}}return n}toJSON(t,r){if(!r)return{source:this.source};let i=this.resolve(r.doc,r);if(!i){let n=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(n)}return r.anchors.get(i).res}toString(t,r,i){let n=`*${this.source}`;if(t){if(fS.anchorIsValid(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){let o=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(o)}if(t.implicitKey)return`${n} `}return n}};function Vi(e,t,r){if(on.isAlias(t)){let i=t.resolve(e),n=r&&i&&r.get(i);return n?n.count*n.aliasCount:0}else if(on.isCollection(t)){let i=0;for(let n of t.items){let o=Vi(e,n,r);o>i&&(i=o)}return i}else if(on.isPair(t)){let i=Vi(e,t.key,r),n=Vi(e,t.value,r);return Math.max(i,n)}return 1}Qg.Alias=ac});var Q=N(cc=>{"use strict";var hS=Z(),vS=qi(),yS=rt(),$S=e=>!e||typeof e!="function"&&typeof e!="object",it=class extends vS.NodeBase{constructor(t){super(hS.SCALAR),this.value=t}toJSON(t,r){return r?.keep?this.value:yS.toJS(this.value,t,r)}toString(){return String(this.value)}};it.BLOCK_FOLDED="BLOCK_FOLDED";it.BLOCK_LITERAL="BLOCK_LITERAL";it.PLAIN="PLAIN";it.QUOTE_DOUBLE="QUOTE_DOUBLE";it.QUOTE_SINGLE="QUOTE_SINGLE";cc.Scalar=it;cc.isScalarValue=$S});var sr=N(th=>{"use strict";var bS=or(),At=Z(),eh=Q(),kS="tag:yaml.org,2002:";function _S(e,t,r){if(t){let i=r.filter(o=>o.tag===t),n=i.find(o=>!o.format)??i[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find(i=>i.identify?.(e)&&!i.format)}function wS(e,t,r){if(At.isDocument(e)&&(e=e.contents),At.isNode(e))return e;if(At.isPair(e)){let d=r.schema[At.MAP].createNode?.(r.schema,null,r);return d.items.push(e),d}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:i,onAnchor:n,onTagObj:o,schema:s,sourceObjects:a}=r,c;if(i&&e&&typeof e=="object"){if(c=a.get(e),c)return c.anchor??(c.anchor=n(e)),new bS.Alias(c.anchor);c={anchor:null,node:null},a.set(e,c)}t?.startsWith("!!")&&(t=kS+t.slice(2));let u=_S(e,t,s.tags);if(!u){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){let d=new eh.Scalar(e);return c&&(c.node=d),d}u=e instanceof Map?s[At.MAP]:Symbol.iterator in Object(e)?s[At.SEQ]:s[At.MAP]}o&&(o(u),delete r.onTagObj);let l=u?.createNode?u.createNode(r.schema,e,r):typeof u?.nodeClass?.from=="function"?u.nodeClass.from(r.schema,e,r):new eh.Scalar(e);return t?l.tag=t:u.default||(l.tag=u.tag),c&&(c.node=l),l}th.createNode=wS});var Ji=N(Ki=>{"use strict";var SS=sr(),Ze=Z(),xS=qi();function uc(e,t,r){let i=r;for(let n=t.length-1;n>=0;--n){let o=t[n];if(typeof o=="number"&&Number.isInteger(o)&&o>=0){let s=[];s[o]=i,i=s}else i=new Map([[o,i]])}return SS.createNode(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}var nh=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done,lc=class extends xS.NodeBase{constructor(t,r){super(t),Object.defineProperty(this,"schema",{value:r,configurable:!0,enumerable:!1,writable:!0})}clone(t){let r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(r.schema=t),r.items=r.items.map(i=>Ze.isNode(i)||Ze.isPair(i)?i.clone(t):i),this.range&&(r.range=this.range.slice()),r}addIn(t,r){if(nh(t))this.add(r);else{let[i,...n]=t,o=this.get(i,!0);if(Ze.isCollection(o))o.addIn(n,r);else if(o===void 0&&this.schema)this.set(i,uc(this.schema,n,r));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${n}`)}}deleteIn(t){let[r,...i]=t;if(i.length===0)return this.delete(r);let n=this.get(r,!0);if(Ze.isCollection(n))return n.deleteIn(i);throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}getIn(t,r){let[i,...n]=t,o=this.get(i,!0);return n.length===0?!r&&Ze.isScalar(o)?o.value:o:Ze.isCollection(o)?o.getIn(n,r):void 0}hasAllNullValues(t){return this.items.every(r=>{if(!Ze.isPair(r))return!1;let i=r.value;return i==null||t&&Ze.isScalar(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(t){let[r,...i]=t;if(i.length===0)return this.has(r);let n=this.get(r,!0);return Ze.isCollection(n)?n.hasIn(i):!1}setIn(t,r){let[i,...n]=t;if(n.length===0)this.set(i,r);else{let o=this.get(i,!0);if(Ze.isCollection(o))o.setIn(n,r);else if(o===void 0&&this.schema)this.set(i,uc(this.schema,n,r));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${n}`)}}};Ki.Collection=lc;Ki.collectionFromPath=uc;Ki.isEmptyPath=nh});var ar=N(Hi=>{"use strict";var IS=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function dc(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var OS=(e,t,r)=>e.endsWith(`
4
+ `)?dc(r,t):r.includes(`
5
+ `)?`
6
+ `+dc(r,t):(e.endsWith(" ")?"":" ")+r;Hi.indentComment=dc;Hi.lineComment=OS;Hi.stringifyComment=IS});var ih=N(cr=>{"use strict";var AS="flow",fc="block",Wi="quoted";function NS(e,t,r="flow",{indentAtStart:i,lineWidth:n=80,minContentWidth:o=20,onFold:s,onOverflow:a}={}){if(!n||n<0)return e;n<o&&(o=0);let c=Math.max(1+o,1+n-t.length);if(e.length<=c)return e;let u=[],l={},d=n-t.length;typeof i=="number"&&(i>n-Math.max(2,o)?u.push(0):d=n-i);let f,p,g=!1,m=-1,y=-1,w=-1;r===fc&&(m=rh(e,m,t.length),m!==-1&&(d=m+c));for(let S;S=e[m+=1];){if(r===Wi&&S==="\\"){switch(y=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}w=m}if(S===`
7
+ `)r===fc&&(m=rh(e,m,t.length)),d=m+t.length+c,f=void 0;else{if(S===" "&&p&&p!==" "&&p!==`
8
+ `&&p!==" "){let I=e[m+1];I&&I!==" "&&I!==`
9
+ `&&I!==" "&&(f=m)}if(m>=d)if(f)u.push(f),d=f+c,f=void 0;else if(r===Wi){for(;p===" "||p===" ";)p=S,S=e[m+=1],g=!0;let I=m>w+1?m-2:y-1;if(l[I])return e;u.push(I),l[I]=!0,d=I+c,f=void 0}else g=!0}p=S}if(g&&a&&a(),u.length===0)return e;s&&s();let k=e.slice(0,u[0]);for(let S=0;S<u.length;++S){let I=u[S],z=u[S+1]||e.length;I===0?k=`
10
+ ${t}${e.slice(0,z)}`:(r===Wi&&l[I]&&(k+=`${e[I]}\\`),k+=`
11
+ ${t}${e.slice(I+1,z)}`)}return k}function rh(e,t,r){let i=t,n=t+1,o=e[n];for(;o===" "||o===" ";)if(t<n+r)o=e[++t];else{do o=e[++t];while(o&&o!==`
12
+ `);i=t,n=t+1,o=e[n]}return i}cr.FOLD_BLOCK=fc;cr.FOLD_FLOW=AS;cr.FOLD_QUOTED=Wi;cr.foldFlowLines=NS});var lr=N(oh=>{"use strict";var De=Q(),ot=ih(),Yi=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Xi=e=>/^(%|---|\.\.\.)/m.test(e);function zS(e,t,r){if(!t||t<0)return!1;let i=t-r,n=e.length;if(n<=i)return!1;for(let o=0,s=0;o<n;++o)if(e[o]===`
13
+ `){if(o-s>i)return!0;if(s=o+1,n-s<=i)return!1}return!0}function ur(e,t){let r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;let{implicitKey:i}=t,n=t.options.doubleQuotedMinMultiLineLength,o=t.indent||(Xi(e)?" ":""),s="",a=0;for(let c=0,u=r[c];u;u=r[++c])if(u===" "&&r[c+1]==="\\"&&r[c+2]==="n"&&(s+=r.slice(a,c)+"\\ ",c+=1,a=c,u="\\"),u==="\\")switch(r[c+1]){case"u":{s+=r.slice(a,c);let l=r.substr(c+2,4);switch(l){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:l.substr(0,2)==="00"?s+="\\x"+l.substr(2):s+=r.substr(c,6)}c+=5,a=c+1}break;case"n":if(i||r[c+2]==='"'||r.length<n)c+=1;else{for(s+=r.slice(a,c)+`
14
+
15
+ `;r[c+2]==="\\"&&r[c+3]==="n"&&r[c+4]!=='"';)s+=`
16
+ `,c+=2;s+=o,r[c+2]===" "&&(s+="\\"),c+=1,a=c+1}break;default:c+=1}return s=a?s+r.slice(a):r,i?s:ot.foldFlowLines(s,o,ot.FOLD_QUOTED,Yi(t,!1))}function pc(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
17
+ `)||/[ \t]\n|\n[ \t]/.test(e))return ur(e,t);let r=t.indent||(Xi(e)?" ":""),i="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
18
+ ${r}`)+"'";return t.implicitKey?i:ot.foldFlowLines(i,r,ot.FOLD_FLOW,Yi(t,!1))}function sn(e,t){let{singleQuote:r}=t.options,i;if(r===!1)i=ur;else{let n=e.includes('"'),o=e.includes("'");n&&!o?i=pc:o&&!n?i=ur:i=r?pc:ur}return i(e,t)}var mc;try{mc=new RegExp(`(^|(?<!
19
+ ))
20
+ +(?!
21
+ |$)`,"g")}catch{mc=/\n+(?!\n|$)/g}function Gi({comment:e,type:t,value:r},i,n,o){let{blockQuote:s,commentString:a,lineWidth:c}=i.options;if(!s||/\n[\t ]+$/.test(r))return sn(r,i);let u=i.indent||(i.forceBlockIndent||Xi(r)?" ":""),l=s==="literal"?!0:s==="folded"||t===De.Scalar.BLOCK_FOLDED?!1:t===De.Scalar.BLOCK_LITERAL?!0:!zS(r,c,u.length);if(!r)return l?`|
22
+ `:`>
23
+ `;let d,f;for(f=r.length;f>0;--f){let z=r[f-1];if(z!==`
24
+ `&&z!==" "&&z!==" ")break}let p=r.substring(f),g=p.indexOf(`
25
+ `);g===-1?d="-":r===p||g!==p.length-1?(d="+",o&&o()):d="",p&&(r=r.slice(0,-p.length),p[p.length-1]===`
26
+ `&&(p=p.slice(0,-1)),p=p.replace(mc,`$&${u}`));let m=!1,y,w=-1;for(y=0;y<r.length;++y){let z=r[y];if(z===" ")m=!0;else if(z===`
27
+ `)w=y;else break}let k=r.substring(0,w<y?w+1:y);k&&(r=r.substring(k.length),k=k.replace(/\n+/g,`$&${u}`));let I=(m?u?"2":"1":"")+d;if(e&&(I+=" "+a(e.replace(/ ?[\r\n]+/g," ")),n&&n()),!l){let z=r.replace(/\n+/g,`
28
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${u}`),O=!1,C=Yi(i,!0);s!=="folded"&&t!==De.Scalar.BLOCK_FOLDED&&(C.onOverflow=()=>{O=!0});let P=ot.foldFlowLines(`${k}${z}${p}`,u,ot.FOLD_BLOCK,C);if(!O)return`>${I}
29
+ ${u}${P}`}return r=r.replace(/\n+/g,`$&${u}`),`|${I}
30
+ ${u}${k}${r}${p}`}function PS(e,t,r,i){let{type:n,value:o}=e,{actualString:s,implicitKey:a,indent:c,indentStep:u,inFlow:l}=t;if(a&&o.includes(`
31
+ `)||l&&/[[\]{},]/.test(o))return sn(o,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return a||l||!o.includes(`
32
+ `)?sn(o,t):Gi(e,t,r,i);if(!a&&!l&&n!==De.Scalar.PLAIN&&o.includes(`
33
+ `))return Gi(e,t,r,i);if(Xi(o)){if(c==="")return t.forceBlockIndent=!0,Gi(e,t,r,i);if(a&&c===u)return sn(o,t)}let d=o.replace(/\n+/g,`$&
34
+ ${c}`);if(s){let f=m=>m.default&&m.tag!=="tag:yaml.org,2002:str"&&m.test?.test(d),{compat:p,tags:g}=t.doc.schema;if(g.some(f)||p?.some(f))return sn(o,t)}return a?d:ot.foldFlowLines(d,c,ot.FOLD_FLOW,Yi(t,!1))}function DS(e,t,r,i){let{implicitKey:n,inFlow:o}=t,s=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)}),{type:a}=e;a!==De.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(a=De.Scalar.QUOTE_DOUBLE);let c=l=>{switch(l){case De.Scalar.BLOCK_FOLDED:case De.Scalar.BLOCK_LITERAL:return n||o?sn(s.value,t):Gi(s,t,r,i);case De.Scalar.QUOTE_DOUBLE:return ur(s.value,t);case De.Scalar.QUOTE_SINGLE:return pc(s.value,t);case De.Scalar.PLAIN:return PS(s,t,r,i);default:return null}},u=c(a);if(u===null){let{defaultKeyType:l,defaultStringType:d}=t.options,f=n&&l||d;if(u=c(f),u===null)throw new Error(`Unsupported default string type ${f}`)}return u}oh.stringifyString=DS});var dr=N(gc=>{"use strict";var TS=Bi(),st=Z(),jS=ar(),ES=lr();function CS(e,t){let r=Object.assign({blockQuote:!0,commentString:jS.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t),i;switch(r.collectionStyle){case"block":i=!1;break;case"flow":i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:i,options:r}}function US(e,t){if(t.tag){let n=e.filter(o=>o.tag===t.tag);if(n.length>0)return n.find(o=>o.format===t.format)??n[0]}let r,i;if(st.isScalar(t)){i=t.value;let n=e.filter(o=>o.identify?.(i));if(n.length>1){let o=n.filter(s=>s.test);o.length>0&&(n=o)}r=n.find(o=>o.format===t.format)??n.find(o=>!o.format)}else i=t,r=e.find(n=>n.nodeClass&&i instanceof n.nodeClass);if(!r){let n=i?.constructor?.name??(i===null?"null":typeof i);throw new Error(`Tag not resolved for ${n} value`)}return r}function LS(e,t,{anchors:r,doc:i}){if(!i.directives)return"";let n=[],o=(st.isScalar(e)||st.isCollection(e))&&e.anchor;o&&TS.anchorIsValid(o)&&(r.add(o),n.push(`&${o}`));let s=e.tag??(t.default?null:t.tag);return s&&n.push(i.directives.tagString(s)),n.join(" ")}function RS(e,t,r,i){if(st.isPair(e))return e.toString(t,r,i);if(st.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let n,o=st.isNode(e)?e:t.doc.createNode(e,{onTagObj:c=>n=c});n??(n=US(t.doc.schema.tags,o));let s=LS(o,n,t);s.length>0&&(t.indentAtStart=(t.indentAtStart??0)+s.length+1);let a=typeof n.stringify=="function"?n.stringify(o,t,r,i):st.isScalar(o)?ES.stringifyString(o,t,r,i):o.toString(t,r,i);return s?st.isScalar(o)||a[0]==="{"||a[0]==="["?`${s} ${a}`:`${s}
35
+ ${t.indent}${a}`:a}gc.createStringifyContext=CS;gc.stringify=RS});var uh=N(ch=>{"use strict";var He=Z(),sh=Q(),ah=dr(),fr=ar();function ZS({key:e,value:t},r,i,n){let{allNullValues:o,doc:s,indent:a,indentStep:c,options:{commentString:u,indentSeq:l,simpleKeys:d}}=r,f=He.isNode(e)&&e.comment||null;if(d){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(He.isCollection(e)||!He.isNode(e)&&typeof e=="object"){let C="With simple keys, collection cannot be used as a key value";throw new Error(C)}}let p=!d&&(!e||f&&t==null&&!r.inFlow||He.isCollection(e)||(He.isScalar(e)?e.type===sh.Scalar.BLOCK_FOLDED||e.type===sh.Scalar.BLOCK_LITERAL:typeof e=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!p&&(d||!o),indent:a+c});let g=!1,m=!1,y=ah.stringify(e,r,()=>g=!0,()=>m=!0);if(!p&&!r.inFlow&&y.length>1024){if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(r.inFlow){if(o||t==null)return g&&i&&i(),y===""?"?":p?`? ${y}`:y}else if(o&&!d||t==null&&p)return y=`? ${y}`,f&&!g?y+=fr.lineComment(y,r.indent,u(f)):m&&n&&n(),y;g&&(f=null),p?(f&&(y+=fr.lineComment(y,r.indent,u(f))),y=`? ${y}
36
+ ${a}:`):(y=`${y}:`,f&&(y+=fr.lineComment(y,r.indent,u(f))));let w,k,S;He.isNode(t)?(w=!!t.spaceBefore,k=t.commentBefore,S=t.comment):(w=!1,k=null,S=null,t&&typeof t=="object"&&(t=s.createNode(t))),r.implicitKey=!1,!p&&!f&&He.isScalar(t)&&(r.indentAtStart=y.length+1),m=!1,!l&&c.length>=2&&!r.inFlow&&!p&&He.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor&&(r.indent=r.indent.substring(2));let I=!1,z=ah.stringify(t,r,()=>I=!0,()=>m=!0),O=" ";if(f||w||k){if(O=w?`
37
+ `:"",k){let C=u(k);O+=`
38
+ ${fr.indentComment(C,r.indent)}`}z===""&&!r.inFlow?O===`
39
+ `&&S&&(O=`
40
+
41
+ `):O+=`
42
+ ${r.indent}`}else if(!p&&He.isCollection(t)){let C=z[0],P=z.indexOf(`
43
+ `),G=P!==-1,Ie=r.inFlow??t.flow??t.items.length===0;if(G||!Ie){let Ve=!1;if(G&&(C==="&"||C==="!")){let X=z.indexOf(" ");C==="&"&&X!==-1&&X<P&&z[X+1]==="!"&&(X=z.indexOf(" ",X+1)),(X===-1||P<X)&&(Ve=!0)}Ve||(O=`
44
+ ${r.indent}`)}}else(z===""||z[0]===`
45
+ `)&&(O="");return y+=O+z,r.inFlow?I&&i&&i():S&&!I?y+=fr.lineComment(y,r.indent,u(S)):m&&n&&n(),y}ch.stringifyPair=ZS});var vc=N(hc=>{"use strict";var lh=Li("process");function MS(e,...t){e==="debug"&&console.log(...t)}function FS(e,t){(e==="debug"||e==="warn")&&(typeof lh.emitWarning=="function"?lh.emitWarning(t):console.warn(t))}hc.debug=MS;hc.warn=FS});var ro=N(no=>{"use strict";var to=Z(),dh=Q(),Qi="<<",eo={identify:e=>e===Qi||typeof e=="symbol"&&e.description===Qi,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new dh.Scalar(Symbol(Qi)),{addToJSMap:fh}),stringify:()=>Qi},BS=(e,t)=>(eo.identify(t)||to.isScalar(t)&&(!t.type||t.type===dh.Scalar.PLAIN)&&eo.identify(t.value))&&e?.doc.schema.tags.some(r=>r.tag===eo.tag&&r.default);function fh(e,t,r){let i=ph(e,r);if(to.isSeq(i))for(let n of i.items)yc(e,t,n);else if(Array.isArray(i))for(let n of i)yc(e,t,n);else yc(e,t,i)}function yc(e,t,r){let i=ph(e,r);if(!to.isMap(i))throw new Error("Merge sources must be maps or map aliases");let n=i.toJSON(null,e,Map);for(let[o,s]of n)t instanceof Map?t.has(o)||t.set(o,s):t instanceof Set?t.add(o):Object.prototype.hasOwnProperty.call(t,o)||Object.defineProperty(t,o,{value:s,writable:!0,enumerable:!0,configurable:!0});return t}function ph(e,t){return e&&to.isAlias(t)?t.resolve(e.doc,e):t}no.addMergeToJSMap=fh;no.isMergeKey=BS;no.merge=eo});var bc=N(hh=>{"use strict";var qS=vc(),mh=ro(),VS=dr(),gh=Z(),$c=rt();function KS(e,t,{key:r,value:i}){if(gh.isNode(r)&&r.addToJSMap)r.addToJSMap(e,t,i);else if(mh.isMergeKey(e,r))mh.addMergeToJSMap(e,t,i);else{let n=$c.toJS(r,"",e);if(t instanceof Map)t.set(n,$c.toJS(i,n,e));else if(t instanceof Set)t.add(n);else{let o=JS(r,n,e),s=$c.toJS(i,o,e);o in t?Object.defineProperty(t,o,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[o]=s}}return t}function JS(e,t,r){if(t===null)return"";if(typeof t!="object")return String(t);if(gh.isNode(e)&&r?.doc){let i=VS.createStringifyContext(r.doc,{});i.anchors=new Set;for(let o of r.anchors.keys())i.anchors.add(o.anchor);i.inFlow=!0,i.inStringifyKey=!0;let n=e.toString(i);if(!r.mapKeyWarned){let o=JSON.stringify(n);o.length>40&&(o=o.substring(0,36)+'..."'),qS.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${o}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return n}return JSON.stringify(t)}hh.addPairToJSMap=KS});var at=N(kc=>{"use strict";var vh=sr(),HS=uh(),WS=bc(),io=Z();function GS(e,t,r){let i=vh.createNode(e,void 0,r),n=vh.createNode(t,void 0,r);return new oo(i,n)}var oo=class e{constructor(t,r=null){Object.defineProperty(this,io.NODE_TYPE,{value:io.PAIR}),this.key=t,this.value=r}clone(t){let{key:r,value:i}=this;return io.isNode(r)&&(r=r.clone(t)),io.isNode(i)&&(i=i.clone(t)),new e(r,i)}toJSON(t,r){let i=r?.mapAsMap?new Map:{};return WS.addPairToJSMap(r,i,this)}toString(t,r,i){return t?.doc?HS.stringifyPair(this,t,r,i):JSON.stringify(this)}};kc.Pair=oo;kc.createPair=GS});var _c=N($h=>{"use strict";var Nt=Z(),yh=dr(),so=ar();function YS(e,t,r){return(t.inFlow??e.flow?QS:XS)(e,t,r)}function XS({comment:e,items:t},r,{blockItemPrefix:i,flowChars:n,itemIndent:o,onChompKeep:s,onComment:a}){let{indent:c,options:{commentString:u}}=r,l=Object.assign({},r,{indent:o,type:null}),d=!1,f=[];for(let g=0;g<t.length;++g){let m=t[g],y=null;if(Nt.isNode(m))!d&&m.spaceBefore&&f.push(""),ao(r,f,m.commentBefore,d),m.comment&&(y=m.comment);else if(Nt.isPair(m)){let k=Nt.isNode(m.key)?m.key:null;k&&(!d&&k.spaceBefore&&f.push(""),ao(r,f,k.commentBefore,d))}d=!1;let w=yh.stringify(m,l,()=>y=null,()=>d=!0);y&&(w+=so.lineComment(w,o,u(y))),d&&y&&(d=!1),f.push(i+w)}let p;if(f.length===0)p=n.start+n.end;else{p=f[0];for(let g=1;g<f.length;++g){let m=f[g];p+=m?`
46
+ ${c}${m}`:`
47
+ `}}return e?(p+=`
48
+ `+so.indentComment(u(e),c),a&&a()):d&&s&&s(),p}function QS({items:e},t,{flowChars:r,itemIndent:i}){let{indent:n,indentStep:o,flowCollectionPadding:s,options:{commentString:a}}=t;i+=o;let c=Object.assign({},t,{indent:i,inFlow:!0,type:null}),u=!1,l=0,d=[];for(let g=0;g<e.length;++g){let m=e[g],y=null;if(Nt.isNode(m))m.spaceBefore&&d.push(""),ao(t,d,m.commentBefore,!1),m.comment&&(y=m.comment);else if(Nt.isPair(m)){let k=Nt.isNode(m.key)?m.key:null;k&&(k.spaceBefore&&d.push(""),ao(t,d,k.commentBefore,!1),k.comment&&(u=!0));let S=Nt.isNode(m.value)?m.value:null;S?(S.comment&&(y=S.comment),S.commentBefore&&(u=!0)):m.value==null&&k?.comment&&(y=k.comment)}y&&(u=!0);let w=yh.stringify(m,c,()=>y=null);u||(u=d.length>l||w.includes(`
49
+ `)),g<e.length-1?w+=",":t.options.trailingComma&&(t.options.lineWidth>0&&(u||(u=d.reduce((k,S)=>k+S.length+2,2)+(w.length+2)>t.options.lineWidth)),u&&(w+=",")),y&&(w+=so.lineComment(w,i,a(y))),d.push(w),l=d.length}let{start:f,end:p}=r;if(d.length===0)return f+p;if(!u){let g=d.reduce((m,y)=>m+y.length+2,2);u=t.options.lineWidth>0&&g>t.options.lineWidth}if(u){let g=f;for(let m of d)g+=m?`
50
+ ${o}${n}${m}`:`
51
+ `;return`${g}
52
+ ${n}${p}`}else return`${f}${s}${d.join(" ")}${s}${p}`}function ao({indent:e,options:{commentString:t}},r,i,n){if(i&&n&&(i=i.replace(/^\n+/,"")),i){let o=so.indentComment(t(i),e);r.push(o.trimStart())}}$h.stringifyCollection=YS});var ut=N(Sc=>{"use strict";var ex=_c(),tx=bc(),nx=Ji(),ct=Z(),co=at(),rx=Q();function pr(e,t){let r=ct.isScalar(t)?t.value:t;for(let i of e)if(ct.isPair(i)&&(i.key===t||i.key===r||ct.isScalar(i.key)&&i.key.value===r))return i}var wc=class extends nx.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(ct.MAP,t),this.items=[]}static from(t,r,i){let{keepUndefined:n,replacer:o}=i,s=new this(t),a=(c,u)=>{if(typeof o=="function")u=o.call(r,c,u);else if(Array.isArray(o)&&!o.includes(c))return;(u!==void 0||n)&&s.items.push(co.createPair(c,u,i))};if(r instanceof Map)for(let[c,u]of r)a(c,u);else if(r&&typeof r=="object")for(let c of Object.keys(r))a(c,r[c]);return typeof t.sortMapEntries=="function"&&s.items.sort(t.sortMapEntries),s}add(t,r){let i;ct.isPair(t)?i=t:!t||typeof t!="object"||!("key"in t)?i=new co.Pair(t,t?.value):i=new co.Pair(t.key,t.value);let n=pr(this.items,i.key),o=this.schema?.sortMapEntries;if(n){if(!r)throw new Error(`Key ${i.key} already set`);ct.isScalar(n.value)&&rx.isScalarValue(i.value)?n.value.value=i.value:n.value=i.value}else if(o){let s=this.items.findIndex(a=>o(i,a)<0);s===-1?this.items.push(i):this.items.splice(s,0,i)}else this.items.push(i)}delete(t){let r=pr(this.items,t);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(t,r){let n=pr(this.items,t)?.value;return(!r&&ct.isScalar(n)?n.value:n)??void 0}has(t){return!!pr(this.items,t)}set(t,r){this.add(new co.Pair(t,r),!0)}toJSON(t,r,i){let n=i?new i:r?.mapAsMap?new Map:{};r?.onCreate&&r.onCreate(n);for(let o of this.items)tx.addPairToJSMap(r,n,o);return n}toString(t,r,i){if(!t)return JSON.stringify(this);for(let n of this.items)if(!ct.isPair(n))throw new Error(`Map items must all be pairs; found ${JSON.stringify(n)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),ex.stringifyCollection(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:i,onComment:r})}};Sc.YAMLMap=wc;Sc.findPair=pr});var an=N(kh=>{"use strict";var ix=Z(),bh=ut(),ox={collection:"map",default:!0,nodeClass:bh.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){return ix.isMap(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,r)=>bh.YAMLMap.from(e,t,r)};kh.map=ox});var lt=N(_h=>{"use strict";var sx=sr(),ax=_c(),cx=Ji(),lo=Z(),ux=Q(),lx=rt(),xc=class extends cx.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(lo.SEQ,t),this.items=[]}add(t){this.items.push(t)}delete(t){let r=uo(t);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(t,r){let i=uo(t);if(typeof i!="number")return;let n=this.items[i];return!r&&lo.isScalar(n)?n.value:n}has(t){let r=uo(t);return typeof r=="number"&&r<this.items.length}set(t,r){let i=uo(t);if(typeof i!="number")throw new Error(`Expected a valid index, not ${t}.`);let n=this.items[i];lo.isScalar(n)&&ux.isScalarValue(r)?n.value=r:this.items[i]=r}toJSON(t,r){let i=[];r?.onCreate&&r.onCreate(i);let n=0;for(let o of this.items)i.push(lx.toJS(o,String(n++),r));return i}toString(t,r,i){return t?ax.stringifyCollection(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:i,onComment:r}):JSON.stringify(this)}static from(t,r,i){let{replacer:n}=i,o=new this(t);if(r&&Symbol.iterator in Object(r)){let s=0;for(let a of r){if(typeof n=="function"){let c=r instanceof Set?a:String(s++);a=n.call(r,c,a)}o.items.push(sx.createNode(a,void 0,i))}}return o}};function uo(e){let t=lo.isScalar(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}_h.YAMLSeq=xc});var cn=N(Sh=>{"use strict";var dx=Z(),wh=lt(),fx={collection:"seq",default:!0,nodeClass:wh.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){return dx.isSeq(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,r)=>wh.YAMLSeq.from(e,t,r)};Sh.seq=fx});var mr=N(xh=>{"use strict";var px=lr(),mx={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,i){return t=Object.assign({actualString:!0},t),px.stringifyString(e,t,r,i)}};xh.string=mx});var fo=N(Ah=>{"use strict";var Ih=Q(),Oh={identify:e=>e==null,createNode:()=>new Ih.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Ih.Scalar(null),stringify:({source:e},t)=>typeof e=="string"&&Oh.test.test(e)?e:t.options.nullStr};Ah.nullTag=Oh});var Ic=N(zh=>{"use strict";var gx=Q(),Nh={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new gx.Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&Nh.test.test(e)){let i=e[0]==="t"||e[0]==="T";if(t===i)return e}return t?r.options.trueStr:r.options.falseStr}};zh.boolTag=Nh});var un=N(Ph=>{"use strict";function hx({format:e,minFractionDigits:t,tag:r,value:i}){if(typeof i=="bigint")return String(i);let n=typeof i=="number"?i:Number(i);if(!isFinite(n))return isNaN(n)?".nan":n<0?"-.inf":".inf";let o=Object.is(i,-0)?"-0":JSON.stringify(i);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^-?\d/.test(o)&&!o.includes("e")){let s=o.indexOf(".");s<0&&(s=o.length,o+=".");let a=t-(o.length-s-1);for(;a-- >0;)o+="0"}return o}Ph.stringifyNumber=hx});var Ac=N(po=>{"use strict";var vx=Q(),Oc=un(),yx={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Oc.stringifyNumber},$x={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():Oc.stringifyNumber(e)}},bx={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new vx.Scalar(parseFloat(e)),r=e.indexOf(".");return r!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-r-1),t},stringify:Oc.stringifyNumber};po.float=bx;po.floatExp=$x;po.floatNaN=yx});var zc=N(go=>{"use strict";var Dh=un(),mo=e=>typeof e=="bigint"||Number.isInteger(e),Nc=(e,t,r,{intAsBigInt:i})=>i?BigInt(e):parseInt(e.substring(t),r);function Th(e,t,r){let{value:i}=e;return mo(i)&&i>=0?r+i.toString(t):Dh.stringifyNumber(e)}var kx={identify:e=>mo(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>Nc(e,2,8,r),stringify:e=>Th(e,8,"0o")},_x={identify:mo,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>Nc(e,0,10,r),stringify:Dh.stringifyNumber},wx={identify:e=>mo(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>Nc(e,2,16,r),stringify:e=>Th(e,16,"0x")};go.int=_x;go.intHex=wx;go.intOct=kx});var Eh=N(jh=>{"use strict";var Sx=an(),xx=fo(),Ix=cn(),Ox=mr(),Ax=Ic(),Pc=Ac(),Dc=zc(),Nx=[Sx.map,Ix.seq,Ox.string,xx.nullTag,Ax.boolTag,Dc.intOct,Dc.int,Dc.intHex,Pc.floatNaN,Pc.floatExp,Pc.float];jh.schema=Nx});var Lh=N(Uh=>{"use strict";var zx=Q(),Px=an(),Dx=cn();function Ch(e){return typeof e=="bigint"||Number.isInteger(e)}var ho=({value:e})=>JSON.stringify(e),Tx=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:ho},{identify:e=>e==null,createNode:()=>new zx.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:ho},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:ho},{identify:Ch,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>Ch(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:ho}],jx={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},Ex=[Px.map,Dx.seq].concat(Tx,jx);Uh.schema=Ex});var jc=N(Rh=>{"use strict";var gr=Li("buffer"),Tc=Q(),Cx=lr(),Ux={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof gr.Buffer=="function")return gr.Buffer.from(e,"base64");if(typeof atob=="function"){let r=atob(e.replace(/[\n\r]/g,"")),i=new Uint8Array(r.length);for(let n=0;n<r.length;++n)i[n]=r.charCodeAt(n);return i}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:r},i,n,o){if(!r)return"";let s=r,a;if(typeof gr.Buffer=="function")a=s instanceof gr.Buffer?s.toString("base64"):gr.Buffer.from(s.buffer).toString("base64");else if(typeof btoa=="function"){let c="";for(let u=0;u<s.length;++u)c+=String.fromCharCode(s[u]);a=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=Tc.Scalar.BLOCK_LITERAL),t!==Tc.Scalar.QUOTE_DOUBLE){let c=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),u=Math.ceil(a.length/c),l=new Array(u);for(let d=0,f=0;d<u;++d,f+=c)l[d]=a.substr(f,c);a=l.join(t===Tc.Scalar.BLOCK_LITERAL?`
53
+ `:" ")}return Cx.stringifyString({comment:e,type:t,value:a},i,n,o)}};Rh.binary=Ux});var $o=N(yo=>{"use strict";var vo=Z(),Ec=at(),Lx=Q(),Rx=lt();function Zh(e,t){if(vo.isSeq(e))for(let r=0;r<e.items.length;++r){let i=e.items[r];if(!vo.isPair(i)){if(vo.isMap(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");let n=i.items[0]||new Ec.Pair(new Lx.Scalar(null));if(i.commentBefore&&(n.key.commentBefore=n.key.commentBefore?`${i.commentBefore}
54
+ ${n.key.commentBefore}`:i.commentBefore),i.comment){let o=n.value??n.key;o.comment=o.comment?`${i.comment}
55
+ ${o.comment}`:i.comment}i=n}e.items[r]=vo.isPair(i)?i:new Ec.Pair(i)}}else t("Expected a sequence for this tag");return e}function Mh(e,t,r){let{replacer:i}=r,n=new Rx.YAMLSeq(e);n.tag="tag:yaml.org,2002:pairs";let o=0;if(t&&Symbol.iterator in Object(t))for(let s of t){typeof i=="function"&&(s=i.call(t,String(o++),s));let a,c;if(Array.isArray(s))if(s.length===2)a=s[0],c=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){let u=Object.keys(s);if(u.length===1)a=u[0],c=s[a];else throw new TypeError(`Expected tuple with one key, not ${u.length} keys`)}else a=s;n.items.push(Ec.createPair(a,c,r))}return n}var Zx={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Zh,createNode:Mh};yo.createPairs=Mh;yo.pairs=Zx;yo.resolvePairs=Zh});var Lc=N(Uc=>{"use strict";var Fh=Z(),Cc=rt(),hr=ut(),Mx=lt(),Bh=$o(),zt=class e extends Mx.YAMLSeq{constructor(){super(),this.add=hr.YAMLMap.prototype.add.bind(this),this.delete=hr.YAMLMap.prototype.delete.bind(this),this.get=hr.YAMLMap.prototype.get.bind(this),this.has=hr.YAMLMap.prototype.has.bind(this),this.set=hr.YAMLMap.prototype.set.bind(this),this.tag=e.tag}toJSON(t,r){if(!r)return super.toJSON(t);let i=new Map;r?.onCreate&&r.onCreate(i);for(let n of this.items){let o,s;if(Fh.isPair(n)?(o=Cc.toJS(n.key,"",r),s=Cc.toJS(n.value,o,r)):o=Cc.toJS(n,"",r),i.has(o))throw new Error("Ordered maps must not include duplicate keys");i.set(o,s)}return i}static from(t,r,i){let n=Bh.createPairs(t,r,i),o=new this;return o.items=n.items,o}};zt.tag="tag:yaml.org,2002:omap";var Fx={collection:"seq",identify:e=>e instanceof Map,nodeClass:zt,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let r=Bh.resolvePairs(e,t),i=[];for(let{key:n}of r.items)Fh.isScalar(n)&&(i.includes(n.value)?t(`Ordered maps must not include duplicate keys: ${n.value}`):i.push(n.value));return Object.assign(new zt,r)},createNode:(e,t,r)=>zt.from(e,t,r)};Uc.YAMLOMap=zt;Uc.omap=Fx});var Hh=N(Rc=>{"use strict";var qh=Q();function Vh({value:e,source:t},r){return t&&(e?Kh:Jh).test.test(t)?t:e?r.options.trueStr:r.options.falseStr}var Kh={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new qh.Scalar(!0),stringify:Vh},Jh={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new qh.Scalar(!1),stringify:Vh};Rc.falseTag=Jh;Rc.trueTag=Kh});var Wh=N(bo=>{"use strict";var Bx=Q(),Zc=un(),qx={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Zc.stringifyNumber},Vx={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():Zc.stringifyNumber(e)}},Kx={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new Bx.Scalar(parseFloat(e.replace(/_/g,""))),r=e.indexOf(".");if(r!==-1){let i=e.substring(r+1).replace(/_/g,"");i[i.length-1]==="0"&&(t.minFractionDigits=i.length)}return t},stringify:Zc.stringifyNumber};bo.float=Kx;bo.floatExp=Vx;bo.floatNaN=qx});var Yh=N(yr=>{"use strict";var Gh=un(),vr=e=>typeof e=="bigint"||Number.isInteger(e);function ko(e,t,r,{intAsBigInt:i}){let n=e[0];if((n==="-"||n==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),i){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let s=BigInt(e);return n==="-"?BigInt(-1)*s:s}let o=parseInt(e,r);return n==="-"?-1*o:o}function Mc(e,t,r){let{value:i}=e;if(vr(i)){let n=i.toString(t);return i<0?"-"+r+n.substr(1):r+n}return Gh.stringifyNumber(e)}var Jx={identify:vr,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>ko(e,2,2,r),stringify:e=>Mc(e,2,"0b")},Hx={identify:vr,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>ko(e,1,8,r),stringify:e=>Mc(e,8,"0")},Wx={identify:vr,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>ko(e,0,10,r),stringify:Gh.stringifyNumber},Gx={identify:vr,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>ko(e,2,16,r),stringify:e=>Mc(e,16,"0x")};yr.int=Wx;yr.intBin=Jx;yr.intHex=Gx;yr.intOct=Hx});var Bc=N(Fc=>{"use strict";var So=Z(),_o=at(),wo=ut(),Pt=class e extends wo.YAMLMap{constructor(t){super(t),this.tag=e.tag}add(t){let r;So.isPair(t)?r=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?r=new _o.Pair(t.key,null):r=new _o.Pair(t,null),wo.findPair(this.items,r.key)||this.items.push(r)}get(t,r){let i=wo.findPair(this.items,t);return!r&&So.isPair(i)?So.isScalar(i.key)?i.key.value:i.key:i}set(t,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);let i=wo.findPair(this.items,t);i&&!r?this.items.splice(this.items.indexOf(i),1):!i&&r&&this.items.push(new _o.Pair(t))}toJSON(t,r){return super.toJSON(t,r,Set)}toString(t,r,i){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),r,i);throw new Error("Set items must all have null values")}static from(t,r,i){let{replacer:n}=i,o=new this(t);if(r&&Symbol.iterator in Object(r))for(let s of r)typeof n=="function"&&(s=n.call(r,s,s)),o.items.push(_o.createPair(s,null,i));return o}};Pt.tag="tag:yaml.org,2002:set";var Yx={collection:"map",identify:e=>e instanceof Set,nodeClass:Pt,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>Pt.from(e,t,r),resolve(e,t){if(So.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new Pt,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};Fc.YAMLSet=Pt;Fc.set=Yx});var Vc=N(xo=>{"use strict";var Xx=un();function qc(e,t){let r=e[0],i=r==="-"||r==="+"?e.substring(1):e,n=s=>t?BigInt(s):Number(s),o=i.replace(/_/g,"").split(":").reduce((s,a)=>s*n(60)+n(a),n(0));return r==="-"?n(-1)*o:o}function Xh(e){let{value:t}=e,r=s=>s;if(typeof t=="bigint")r=s=>BigInt(s);else if(isNaN(t)||!isFinite(t))return Xx.stringifyNumber(e);let i="";t<0&&(i="-",t*=r(-1));let n=r(60),o=[t%n];return t<60?o.unshift(0):(t=(t-o[0])/n,o.unshift(t%n),t>=60&&(t=(t-o[0])/n,o.unshift(t))),i+o.map(s=>String(s).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var Qx={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>qc(e,r),stringify:Xh},eI={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>qc(e,!1),stringify:Xh},Qh={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(Qh.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,r,i,n,o,s,a]=t.map(Number),c=t[7]?Number((t[7]+"00").substr(1,3)):0,u=Date.UTC(r,i-1,n,o||0,s||0,a||0,c),l=t[8];if(l&&l!=="Z"){let d=qc(l,!1);Math.abs(d)<30&&(d*=60),u-=6e4*d}return new Date(u)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};xo.floatTime=eI;xo.intTime=Qx;xo.timestamp=Qh});var nv=N(tv=>{"use strict";var tI=an(),nI=fo(),rI=cn(),iI=mr(),oI=jc(),ev=Hh(),Kc=Wh(),Io=Yh(),sI=ro(),aI=Lc(),cI=$o(),uI=Bc(),Jc=Vc(),lI=[tI.map,rI.seq,iI.string,nI.nullTag,ev.trueTag,ev.falseTag,Io.intBin,Io.intOct,Io.int,Io.intHex,Kc.floatNaN,Kc.floatExp,Kc.float,oI.binary,sI.merge,aI.omap,cI.pairs,uI.set,Jc.intTime,Jc.floatTime,Jc.timestamp];tv.schema=lI});var fv=N(Gc=>{"use strict";var sv=an(),dI=fo(),av=cn(),fI=mr(),pI=Ic(),Hc=Ac(),Wc=zc(),mI=Eh(),gI=Lh(),cv=jc(),$r=ro(),uv=Lc(),lv=$o(),rv=nv(),dv=Bc(),Oo=Vc(),iv=new Map([["core",mI.schema],["failsafe",[sv.map,av.seq,fI.string]],["json",gI.schema],["yaml11",rv.schema],["yaml-1.1",rv.schema]]),ov={binary:cv.binary,bool:pI.boolTag,float:Hc.float,floatExp:Hc.floatExp,floatNaN:Hc.floatNaN,floatTime:Oo.floatTime,int:Wc.int,intHex:Wc.intHex,intOct:Wc.intOct,intTime:Oo.intTime,map:sv.map,merge:$r.merge,null:dI.nullTag,omap:uv.omap,pairs:lv.pairs,seq:av.seq,set:dv.set,timestamp:Oo.timestamp},hI={"tag:yaml.org,2002:binary":cv.binary,"tag:yaml.org,2002:merge":$r.merge,"tag:yaml.org,2002:omap":uv.omap,"tag:yaml.org,2002:pairs":lv.pairs,"tag:yaml.org,2002:set":dv.set,"tag:yaml.org,2002:timestamp":Oo.timestamp};function vI(e,t,r){let i=iv.get(t);if(i&&!e)return r&&!i.includes($r.merge)?i.concat($r.merge):i.slice();let n=i;if(!n)if(Array.isArray(e))n=[];else{let o=Array.from(iv.keys()).filter(s=>s!=="yaml11").map(s=>JSON.stringify(s)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${o} or define customTags array`)}if(Array.isArray(e))for(let o of e)n=n.concat(o);else typeof e=="function"&&(n=e(n.slice()));return r&&(n=n.concat($r.merge)),n.reduce((o,s)=>{let a=typeof s=="string"?ov[s]:s;if(!a){let c=JSON.stringify(s),u=Object.keys(ov).map(l=>JSON.stringify(l)).join(", ");throw new Error(`Unknown custom tag ${c}; use one of ${u}`)}return o.includes(a)||o.push(a),o},[])}Gc.coreKnownTags=hI;Gc.getTags=vI});var Qc=N(pv=>{"use strict";var Yc=Z(),yI=an(),$I=cn(),bI=mr(),Ao=fv(),kI=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0,Xc=class e{constructor({compat:t,customTags:r,merge:i,resolveKnownTags:n,schema:o,sortMapEntries:s,toStringDefaults:a}){this.compat=Array.isArray(t)?Ao.getTags(t,"compat"):t?Ao.getTags(null,t):null,this.name=typeof o=="string"&&o||"core",this.knownTags=n?Ao.coreKnownTags:{},this.tags=Ao.getTags(r,this.name,i),this.toStringOptions=a??null,Object.defineProperty(this,Yc.MAP,{value:yI.map}),Object.defineProperty(this,Yc.SCALAR,{value:bI.string}),Object.defineProperty(this,Yc.SEQ,{value:$I.seq}),this.sortMapEntries=typeof s=="function"?s:s===!0?kI:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};pv.Schema=Xc});var gv=N(mv=>{"use strict";var _I=Z(),eu=dr(),br=ar();function wI(e,t){let r=[],i=t.directives===!0;if(t.directives!==!1&&e.directives){let c=e.directives.toString(e);c?(r.push(c),i=!0):e.directives.docStart&&(i=!0)}i&&r.push("---");let n=eu.createStringifyContext(e,t),{commentString:o}=n.options;if(e.commentBefore){r.length!==1&&r.unshift("");let c=o(e.commentBefore);r.unshift(br.indentComment(c,""))}let s=!1,a=null;if(e.contents){if(_I.isNode(e.contents)){if(e.contents.spaceBefore&&i&&r.push(""),e.contents.commentBefore){let l=o(e.contents.commentBefore);r.push(br.indentComment(l,""))}n.forceBlockIndent=!!e.comment,a=e.contents.comment}let c=a?void 0:()=>s=!0,u=eu.stringify(e.contents,n,()=>a=null,c);a&&(u+=br.lineComment(u,"",o(a))),(u[0]==="|"||u[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${u}`:r.push(u)}else r.push(eu.stringify(e.contents,n));if(e.directives?.docEnd)if(e.comment){let c=o(e.comment);c.includes(`
56
+ `)?(r.push("..."),r.push(br.indentComment(c,""))):r.push(`... ${c}`)}else r.push("...");else{let c=e.comment;c&&s&&(c=c.replace(/^\n+/,"")),c&&((!s||a)&&r[r.length-1]!==""&&r.push(""),r.push(br.indentComment(o(c),"")))}return r.join(`
57
+ `)+`
58
+ `}mv.stringifyDocument=wI});var kr=N(hv=>{"use strict";var SI=or(),ln=Ji(),Oe=Z(),xI=at(),II=rt(),OI=Qc(),AI=gv(),tu=Bi(),NI=oc(),zI=sr(),nu=ic(),ru=class e{constructor(t,r,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Oe.NODE_TYPE,{value:Oe.DOC});let n=null;typeof r=="function"||Array.isArray(r)?n=r:i===void 0&&r&&(i=r,r=void 0);let o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},i);this.options=o;let{version:s}=o;i?._directives?(this.directives=i._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new nu.Directives({version:s}),this.setSchema(s,i),this.contents=t===void 0?null:this.createNode(t,n,i)}clone(){let t=Object.create(e.prototype,{[Oe.NODE_TYPE]:{value:Oe.DOC}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=Oe.isNode(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){dn(this.contents)&&this.contents.add(t)}addIn(t,r){dn(this.contents)&&this.contents.addIn(t,r)}createAlias(t,r){if(!t.anchor){let i=tu.anchorNames(this);t.anchor=!r||i.has(r)?tu.findNewAnchor(r||"a",i):r}return new SI.Alias(t.anchor)}createNode(t,r,i){let n;if(typeof r=="function")t=r.call({"":t},"",t),n=r;else if(Array.isArray(r)){let y=k=>typeof k=="number"||k instanceof String||k instanceof Number,w=r.filter(y).map(String);w.length>0&&(r=r.concat(w)),n=r}else i===void 0&&r&&(i=r,r=void 0);let{aliasDuplicateObjects:o,anchorPrefix:s,flow:a,keepUndefined:c,onTagObj:u,tag:l}=i??{},{onAnchor:d,setAnchors:f,sourceObjects:p}=tu.createNodeAnchors(this,s||"a"),g={aliasDuplicateObjects:o??!0,keepUndefined:c??!1,onAnchor:d,onTagObj:u,replacer:n,schema:this.schema,sourceObjects:p},m=zI.createNode(t,l,g);return a&&Oe.isCollection(m)&&(m.flow=!0),f(),m}createPair(t,r,i={}){let n=this.createNode(t,null,i),o=this.createNode(r,null,i);return new xI.Pair(n,o)}delete(t){return dn(this.contents)?this.contents.delete(t):!1}deleteIn(t){return ln.isEmptyPath(t)?this.contents==null?!1:(this.contents=null,!0):dn(this.contents)?this.contents.deleteIn(t):!1}get(t,r){return Oe.isCollection(this.contents)?this.contents.get(t,r):void 0}getIn(t,r){return ln.isEmptyPath(t)?!r&&Oe.isScalar(this.contents)?this.contents.value:this.contents:Oe.isCollection(this.contents)?this.contents.getIn(t,r):void 0}has(t){return Oe.isCollection(this.contents)?this.contents.has(t):!1}hasIn(t){return ln.isEmptyPath(t)?this.contents!==void 0:Oe.isCollection(this.contents)?this.contents.hasIn(t):!1}set(t,r){this.contents==null?this.contents=ln.collectionFromPath(this.schema,[t],r):dn(this.contents)&&this.contents.set(t,r)}setIn(t,r){ln.isEmptyPath(t)?this.contents=r:this.contents==null?this.contents=ln.collectionFromPath(this.schema,Array.from(t),r):dn(this.contents)&&this.contents.setIn(t,r)}setSchema(t,r={}){typeof t=="number"&&(t=String(t));let i;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new nu.Directives({version:"1.1"}),i={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new nu.Directives({version:t}),i={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,i=null;break;default:{let n=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${n}`)}}if(r.schema instanceof Object)this.schema=r.schema;else if(i)this.schema=new OI.Schema(Object.assign(i,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:r,mapAsMap:i,maxAliasCount:n,onAnchor:o,reviver:s}={}){let a={anchors:new Map,doc:this,keep:!t,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},c=II.toJS(this.contents,r??"",a);if(typeof o=="function")for(let{count:u,res:l}of a.anchors.values())o(l,u);return typeof s=="function"?NI.applyReviver(s,{"":c},"",c):c}toJSON(t,r){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:r})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){let r=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return AI.stringifyDocument(this,t)}};function dn(e){if(Oe.isCollection(e))return!0;throw new Error("Expected a YAML collection as document contents")}hv.Document=ru});var Sr=N(wr=>{"use strict";var _r=class extends Error{constructor(t,r,i,n){super(),this.name=t,this.code=i,this.message=n,this.pos=r}},iu=class extends _r{constructor(t,r,i){super("YAMLParseError",t,r,i)}},ou=class extends _r{constructor(t,r,i){super("YAMLWarning",t,r,i)}},PI=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(a=>t.linePos(a));let{line:i,col:n}=r.linePos[0];r.message+=` at line ${i}, column ${n}`;let o=n-1,s=e.substring(t.lineStarts[i-1],t.lineStarts[i]).replace(/[\n\r]+$/,"");if(o>=60&&s.length>80){let a=Math.min(o-39,s.length-79);s="\u2026"+s.substring(a),o-=a-1}if(s.length>80&&(s=s.substring(0,79)+"\u2026"),i>1&&/^ *$/.test(s.substring(0,o))){let a=e.substring(t.lineStarts[i-2],t.lineStarts[i-1]);a.length>80&&(a=a.substring(0,79)+`\u2026
59
+ `),s=a+s}if(/[^ ]/.test(s)){let a=1,c=r.linePos[1];c?.line===i&&c.col>n&&(a=Math.max(1,Math.min(c.col-n,80-o)));let u=" ".repeat(o)+"^".repeat(a);r.message+=`:
60
+
61
+ ${s}
62
+ ${u}
63
+ `}};wr.YAMLError=_r;wr.YAMLParseError=iu;wr.YAMLWarning=ou;wr.prettifyError=PI});var xr=N(vv=>{"use strict";function DI(e,{flow:t,indicator:r,next:i,offset:n,onError:o,parentIndent:s,startOnNewline:a}){let c=!1,u=a,l=a,d="",f="",p=!1,g=!1,m=null,y=null,w=null,k=null,S=null,I=null,z=null;for(let P of e)switch(g&&(P.type!=="space"&&P.type!=="newline"&&P.type!=="comma"&&o(P.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g=!1),m&&(u&&P.type!=="comment"&&P.type!=="newline"&&o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),m=null),P.type){case"space":!t&&(r!=="doc-start"||i?.type!=="flow-collection")&&P.source.includes(" ")&&(m=P),l=!0;break;case"comment":{l||o(P,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let G=P.source.substring(1)||" ";d?d+=f+G:d=G,f="",u=!1;break}case"newline":u?d?d+=P.source:(!I||r!=="seq-item-ind")&&(c=!0):f+=P.source,u=!0,p=!0,(y||w)&&(k=P),l=!0;break;case"anchor":y&&o(P,"MULTIPLE_ANCHORS","A node can have at most one anchor"),P.source.endsWith(":")&&o(P.offset+P.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),y=P,z??(z=P.offset),u=!1,l=!1,g=!0;break;case"tag":{w&&o(P,"MULTIPLE_TAGS","A node can have at most one tag"),w=P,z??(z=P.offset),u=!1,l=!1,g=!0;break}case r:(y||w)&&o(P,"BAD_PROP_ORDER",`Anchors and tags must be after the ${P.source} indicator`),I&&o(P,"UNEXPECTED_TOKEN",`Unexpected ${P.source} in ${t??"collection"}`),I=P,u=r==="seq-item-ind"||r==="explicit-key-ind",l=!1;break;case"comma":if(t){S&&o(P,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),S=P,u=!1,l=!1;break}default:o(P,"UNEXPECTED_TOKEN",`Unexpected ${P.type} token`),u=!1,l=!1}let O=e[e.length-1],C=O?O.offset+O.source.length:n;return g&&i&&i.type!=="space"&&i.type!=="newline"&&i.type!=="comma"&&(i.type!=="scalar"||i.source!=="")&&o(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m&&(u&&m.indent<=s||i?.type==="block-map"||i?.type==="block-seq")&&o(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:S,found:I,spaceBefore:c,comment:d,hasNewline:p,anchor:y,tag:w,newlineAfterProp:k,end:C,start:z??C}}vv.resolveProps=DI});var No=N(yv=>{"use strict";function su(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
64
+ `))return!0;if(e.end){for(let t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(let t of e.items){for(let r of t.start)if(r.type==="newline")return!0;if(t.sep){for(let r of t.sep)if(r.type==="newline")return!0}if(su(t.key)||su(t.value))return!0}return!1;default:return!0}}yv.containsNewline=su});var au=N($v=>{"use strict";var TI=No();function jI(e,t,r){if(t?.type==="flow-collection"){let i=t.end[0];i.indent===e&&(i.source==="]"||i.source==="}")&&TI.containsNewline(t)&&r(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}$v.flowIndentCheck=jI});var cu=N(kv=>{"use strict";var bv=Z();function EI(e,t,r){let{uniqueKeys:i}=e.options;if(i===!1)return!1;let n=typeof i=="function"?i:(o,s)=>o===s||bv.isScalar(o)&&bv.isScalar(s)&&o.value===s.value;return t.some(o=>n(o.key,r))}kv.mapIncludes=EI});var Ov=N(Iv=>{"use strict";var _v=at(),CI=ut(),wv=xr(),UI=No(),Sv=au(),LI=cu(),xv="All mapping items must start at the same column";function RI({composeNode:e,composeEmptyNode:t},r,i,n,o){let s=o?.nodeClass??CI.YAMLMap,a=new s(r.schema);r.atRoot&&(r.atRoot=!1);let c=i.offset,u=null;for(let l of i.items){let{start:d,key:f,sep:p,value:g}=l,m=wv.resolveProps(d,{indicator:"explicit-key-ind",next:f??p?.[0],offset:c,onError:n,parentIndent:i.indent,startOnNewline:!0}),y=!m.found;if(y){if(f&&(f.type==="block-seq"?n(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in f&&f.indent!==i.indent&&n(c,"BAD_INDENT",xv)),!m.anchor&&!m.tag&&!p){u=m.end,m.comment&&(a.comment?a.comment+=`
65
+ `+m.comment:a.comment=m.comment);continue}(m.newlineAfterProp||UI.containsNewline(f))&&n(f??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else m.found?.indent!==i.indent&&n(c,"BAD_INDENT",xv);r.atKey=!0;let w=m.end,k=f?e(r,f,m,n):t(r,w,d,null,m,n);r.schema.compat&&Sv.flowIndentCheck(i.indent,f,n),r.atKey=!1,LI.mapIncludes(r,a.items,k)&&n(w,"DUPLICATE_KEY","Map keys must be unique");let S=wv.resolveProps(p??[],{indicator:"map-value-ind",next:g,offset:k.range[2],onError:n,parentIndent:i.indent,startOnNewline:!f||f.type==="block-scalar"});if(c=S.end,S.found){y&&(g?.type==="block-map"&&!S.hasNewline&&n(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&m.start<S.found.offset-1024&&n(k.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let I=g?e(r,g,S,n):t(r,c,p,null,S,n);r.schema.compat&&Sv.flowIndentCheck(i.indent,g,n),c=I.range[2];let z=new _v.Pair(k,I);r.options.keepSourceTokens&&(z.srcToken=l),a.items.push(z)}else{y&&n(k.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),S.comment&&(k.comment?k.comment+=`
66
+ `+S.comment:k.comment=S.comment);let I=new _v.Pair(k);r.options.keepSourceTokens&&(I.srcToken=l),a.items.push(I)}}return u&&u<c&&n(u,"IMPOSSIBLE","Map comment with trailing content"),a.range=[i.offset,c,u??c],a}Iv.resolveBlockMap=RI});var Nv=N(Av=>{"use strict";var ZI=lt(),MI=xr(),FI=au();function BI({composeNode:e,composeEmptyNode:t},r,i,n,o){let s=o?.nodeClass??ZI.YAMLSeq,a=new s(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let c=i.offset,u=null;for(let{start:l,value:d}of i.items){let f=MI.resolveProps(l,{indicator:"seq-item-ind",next:d,offset:c,onError:n,parentIndent:i.indent,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||d)d?.type==="block-seq"?n(f.end,"BAD_INDENT","All sequence items must start at the same column"):n(c,"MISSING_CHAR","Sequence item without - indicator");else{u=f.end,f.comment&&(a.comment=f.comment);continue}let p=d?e(r,d,f,n):t(r,f.end,l,null,f,n);r.schema.compat&&FI.flowIndentCheck(i.indent,d,n),c=p.range[2],a.items.push(p)}return a.range=[i.offset,c,u??c],a}Av.resolveBlockSeq=BI});var fn=N(zv=>{"use strict";function qI(e,t,r,i){let n="";if(e){let o=!1,s="";for(let a of e){let{source:c,type:u}=a;switch(u){case"space":o=!0;break;case"comment":{r&&!o&&i(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let l=c.substring(1)||" ";n?n+=s+l:n=l,s="";break}case"newline":n&&(s+=c),o=!0;break;default:i(a,"UNEXPECTED_TOKEN",`Unexpected ${u} at node end`)}t+=c.length}}return{comment:n,offset:t}}zv.resolveEnd=qI});var jv=N(Tv=>{"use strict";var VI=Z(),KI=at(),Pv=ut(),JI=lt(),HI=fn(),Dv=xr(),WI=No(),GI=cu(),uu="Block collections are not allowed within flow collections",lu=e=>e&&(e.type==="block-map"||e.type==="block-seq");function YI({composeNode:e,composeEmptyNode:t},r,i,n,o){let s=i.start.source==="{",a=s?"flow map":"flow sequence",c=o?.nodeClass??(s?Pv.YAMLMap:JI.YAMLSeq),u=new c(r.schema);u.flow=!0;let l=r.atRoot;l&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let d=i.offset+i.start.source.length;for(let y=0;y<i.items.length;++y){let w=i.items[y],{start:k,key:S,sep:I,value:z}=w,O=Dv.resolveProps(k,{flow:a,indicator:"explicit-key-ind",next:S??I?.[0],offset:d,onError:n,parentIndent:i.indent,startOnNewline:!1});if(!O.found){if(!O.anchor&&!O.tag&&!I&&!z){y===0&&O.comma?n(O.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):y<i.items.length-1&&n(O.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),O.comment&&(u.comment?u.comment+=`
67
+ `+O.comment:u.comment=O.comment),d=O.end;continue}!s&&r.options.strict&&WI.containsNewline(S)&&n(S,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(y===0)O.comma&&n(O.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(O.comma||n(O.start,"MISSING_CHAR",`Missing , between ${a} items`),O.comment){let C="";e:for(let P of k)switch(P.type){case"comma":case"space":break;case"comment":C=P.source.substring(1);break e;default:break e}if(C){let P=u.items[u.items.length-1];VI.isPair(P)&&(P=P.value??P.key),P.comment?P.comment+=`
68
+ `+C:P.comment=C,O.comment=O.comment.substring(C.length+1)}}if(!s&&!I&&!O.found){let C=z?e(r,z,O,n):t(r,O.end,I,null,O,n);u.items.push(C),d=C.range[2],lu(z)&&n(C.range,"BLOCK_IN_FLOW",uu)}else{r.atKey=!0;let C=O.end,P=S?e(r,S,O,n):t(r,C,k,null,O,n);lu(S)&&n(P.range,"BLOCK_IN_FLOW",uu),r.atKey=!1;let G=Dv.resolveProps(I??[],{flow:a,indicator:"map-value-ind",next:z,offset:P.range[2],onError:n,parentIndent:i.indent,startOnNewline:!1});if(G.found){if(!s&&!O.found&&r.options.strict){if(I)for(let X of I){if(X===G.found)break;if(X.type==="newline"){n(X,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}O.start<G.found.offset-1024&&n(G.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else z&&("source"in z&&z.source?.[0]===":"?n(z,"MISSING_CHAR",`Missing space after : in ${a}`):n(G.start,"MISSING_CHAR",`Missing , or : between ${a} items`));let Ie=z?e(r,z,G,n):G.found?t(r,G.end,I,null,G,n):null;Ie?lu(z)&&n(Ie.range,"BLOCK_IN_FLOW",uu):G.comment&&(P.comment?P.comment+=`
69
+ `+G.comment:P.comment=G.comment);let Ve=new KI.Pair(P,Ie);if(r.options.keepSourceTokens&&(Ve.srcToken=w),s){let X=u;GI.mapIncludes(r,X.items,P)&&n(C,"DUPLICATE_KEY","Map keys must be unique"),X.items.push(Ve)}else{let X=new Pv.YAMLMap(r.schema);X.flow=!0,X.items.push(Ve);let Ui=(Ie??P).range;X.range=[P.range[0],Ui[1],Ui[2]],u.items.push(X)}d=Ie?Ie.range[2]:G.end}}let f=s?"}":"]",[p,...g]=i.end,m=d;if(p?.source===f)m=p.offset+p.source.length;else{let y=a[0].toUpperCase()+a.substring(1),w=l?`${y} must end with a ${f}`:`${y} in block collection must be sufficiently indented and end with a ${f}`;n(d,l?"MISSING_CHAR":"BAD_INDENT",w),p&&p.source.length!==1&&g.unshift(p)}if(g.length>0){let y=HI.resolveEnd(g,m,r.options.strict,n);y.comment&&(u.comment?u.comment+=`
70
+ `+y.comment:u.comment=y.comment),u.range=[i.offset,m,y.offset]}else u.range=[i.offset,m,m];return u}Tv.resolveFlowCollection=YI});var Cv=N(Ev=>{"use strict";var XI=Z(),QI=Q(),eO=ut(),tO=lt(),nO=Ov(),rO=Nv(),iO=jv();function du(e,t,r,i,n,o){let s=r.type==="block-map"?nO.resolveBlockMap(e,t,r,i,o):r.type==="block-seq"?rO.resolveBlockSeq(e,t,r,i,o):iO.resolveFlowCollection(e,t,r,i,o),a=s.constructor;return n==="!"||n===a.tagName?(s.tag=a.tagName,s):(n&&(s.tag=n),s)}function oO(e,t,r,i,n){let o=i.tag,s=o?t.directives.tagName(o.source,f=>n(o,"TAG_RESOLVE_FAILED",f)):null;if(r.type==="block-seq"){let{anchor:f,newlineAfterProp:p}=i,g=f&&o?f.offset>o.offset?f:o:f??o;g&&(!p||p.offset<g.offset)&&n(g,"MISSING_CHAR","Missing newline after block sequence props")}let a=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!o||!s||s==="!"||s===eO.YAMLMap.tagName&&a==="map"||s===tO.YAMLSeq.tagName&&a==="seq")return du(e,t,r,n,s);let c=t.schema.tags.find(f=>f.tag===s&&f.collection===a);if(!c){let f=t.schema.knownTags[s];if(f?.collection===a)t.schema.tags.push(Object.assign({},f,{default:!1})),c=f;else return f?n(o,"BAD_COLLECTION_TYPE",`${f.tag} used for ${a} collection, but expects ${f.collection??"scalar"}`,!0):n(o,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),du(e,t,r,n,s)}let u=du(e,t,r,n,s,c),l=c.resolve?.(u,f=>n(o,"TAG_RESOLVE_FAILED",f),t.options)??u,d=XI.isNode(l)?l:new QI.Scalar(l);return d.range=u.range,d.tag=s,c?.format&&(d.format=c.format),d}Ev.composeCollection=oO});var pu=N(Uv=>{"use strict";var fu=Q();function sO(e,t,r){let i=t.offset,n=aO(t,e.options.strict,r);if(!n)return{value:"",type:null,comment:"",range:[i,i,i]};let o=n.mode===">"?fu.Scalar.BLOCK_FOLDED:fu.Scalar.BLOCK_LITERAL,s=t.source?cO(t.source):[],a=s.length;for(let m=s.length-1;m>=0;--m){let y=s[m][1];if(y===""||y==="\r")a=m;else break}if(a===0){let m=n.chomp==="+"&&s.length>0?`
71
+ `.repeat(Math.max(1,s.length-1)):"",y=i+n.length;return t.source&&(y+=t.source.length),{value:m,type:o,comment:n.comment,range:[i,y,y]}}let c=t.indent+n.indent,u=t.offset+n.length,l=0;for(let m=0;m<a;++m){let[y,w]=s[m];if(w===""||w==="\r")n.indent===0&&y.length>c&&(c=y.length);else{y.length<c&&r(u+y.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),n.indent===0&&(c=y.length),l=m,c===0&&!e.atRoot&&r(u,"BAD_INDENT","Block scalar values in collections must be indented");break}u+=y.length+w.length+1}for(let m=s.length-1;m>=a;--m)s[m][0].length>c&&(a=m+1);let d="",f="",p=!1;for(let m=0;m<l;++m)d+=s[m][0].slice(c)+`
72
+ `;for(let m=l;m<a;++m){let[y,w]=s[m];u+=y.length+w.length+1;let k=w[w.length-1]==="\r";if(k&&(w=w.slice(0,-1)),w&&y.length<c){let I=`Block scalar lines must not be less indented than their ${n.indent?"explicit indentation indicator":"first line"}`;r(u-w.length-(k?2:1),"BAD_INDENT",I),y=""}o===fu.Scalar.BLOCK_LITERAL?(d+=f+y.slice(c)+w,f=`
73
+ `):y.length>c||w[0]===" "?(f===" "?f=`
74
+ `:!p&&f===`
75
+ `&&(f=`
76
+
77
+ `),d+=f+y.slice(c)+w,f=`
78
+ `,p=!0):w===""?f===`
79
+ `?d+=`
80
+ `:f=`
81
+ `:(d+=f+w,f=" ",p=!1)}switch(n.chomp){case"-":break;case"+":for(let m=a;m<s.length;++m)d+=`
82
+ `+s[m][0].slice(c);d[d.length-1]!==`
83
+ `&&(d+=`
84
+ `);break;default:d+=`
85
+ `}let g=i+n.length+t.source.length;return{value:d,type:o,comment:n.comment,range:[i,g,g]}}function aO({offset:e,props:t},r,i){if(t[0].type!=="block-scalar-header")return i(t[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:n}=t[0],o=n[0],s=0,a="",c=-1;for(let f=1;f<n.length;++f){let p=n[f];if(!a&&(p==="-"||p==="+"))a=p;else{let g=Number(p);!s&&g?s=g:c===-1&&(c=e+f)}}c!==-1&&i(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${n}`);let u=!1,l="",d=n.length;for(let f=1;f<t.length;++f){let p=t[f];switch(p.type){case"space":u=!0;case"newline":d+=p.source.length;break;case"comment":r&&!u&&i(p,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),d+=p.source.length,l=p.source.substring(1);break;case"error":i(p,"UNEXPECTED_TOKEN",p.message),d+=p.source.length;break;default:{let g=`Unexpected token in block scalar header: ${p.type}`;i(p,"UNEXPECTED_TOKEN",g);let m=p.source;m&&typeof m=="string"&&(d+=m.length)}}}return{mode:o,indent:s,chomp:a,comment:l,length:d}}function cO(e){let t=e.split(/\n( *)/),r=t[0],i=r.match(/^( *)/),o=[i?.[1]?[i[1],r.slice(i[1].length)]:["",r]];for(let s=1;s<t.length;s+=2)o.push([t[s],t[s+1]]);return o}Uv.resolveBlockScalar=sO});var gu=N(Rv=>{"use strict";var mu=Q(),uO=fn();function lO(e,t,r){let{offset:i,type:n,source:o,end:s}=e,a,c,u=(f,p,g)=>r(i+f,p,g);switch(n){case"scalar":a=mu.Scalar.PLAIN,c=dO(o,u);break;case"single-quoted-scalar":a=mu.Scalar.QUOTE_SINGLE,c=fO(o,u);break;case"double-quoted-scalar":a=mu.Scalar.QUOTE_DOUBLE,c=pO(o,u);break;default:return r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${n}`),{value:"",type:null,comment:"",range:[i,i+o.length,i+o.length]}}let l=i+o.length,d=uO.resolveEnd(s,l,t,r);return{value:c,type:a,comment:d.comment,range:[i,l,d.offset]}}function dO(e,t){let r="";switch(e[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}return r&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),Lv(e)}function fO(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Lv(e.slice(1,-1)).replace(/''/g,"'")}function Lv(e){let t=/(.*?)\r?\n/sy,r=t.exec(e);if(!r)return e;let i,n;try{i=new RegExp("(?<![ ])[ ]+$"),n=new RegExp("^[ ]+|(?<![ ])[ ]+$","g")}catch{i=/[ \t]+$/,n=/^[ \t]+|[ \t]+$/g}let o=r[1].replace(i,""),s=" ",a=t.lastIndex;for(;r=t.exec(e);){let u=r[1].replace(n,"");u===""?s===`
86
+ `?o+=s:s=`
87
+ `:(o+=s+u,s=" "),a=t.lastIndex}let c=/[ \t]*(.*)/sy;return c.lastIndex=a,r=c.exec(e),o+s+(r?.[1]??"")}function pO(e,t){let r="";for(let i=1;i<e.length-1;++i){let n=e[i];if(!(n==="\r"&&e[i+1]===`
88
+ `))if(n===`
89
+ `){let{fold:o,offset:s}=mO(e,i);r+=o,i=s}else if(n==="\\"){let o=e[++i],s=gO[o];if(s)r+=s;else if(o===`
90
+ `)for(o=e[i+1];o===" "||o===" ";)o=e[++i+1];else if(o==="\r"&&e[i+1]===`
91
+ `)for(o=e[++i+1];o===" "||o===" ";)o=e[++i+1];else if(o==="x"||o==="u"||o==="U"){let a=o==="x"?2:o==="u"?4:8;r+=hO(e,i+1,a,t),i+=a}else{let a=e.substr(i-1,2);t(i-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),r+=a}}else if(n===" "||n===" "){let o=i,s=e[i+1];for(;s===" "||s===" ";)s=e[++i+1];s!==`
92
+ `&&!(s==="\r"&&e[i+2]===`
93
+ `)&&(r+=i>o?e.slice(o,i+1):n)}else r+=n}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),r}function mO(e,t){let r="",i=e[t+1];for(;(i===" "||i===" "||i===`
94
+ `||i==="\r")&&!(i==="\r"&&e[t+2]!==`
95
+ `);)i===`
96
+ `&&(r+=`
97
+ `),t+=1,i=e[t+1];return r||(r=" "),{fold:r,offset:t}}var gO={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
98
+ `,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function hO(e,t,r,i){let n=e.substr(t,r),s=n.length===r&&/^[0-9a-fA-F]+$/.test(n)?parseInt(n,16):NaN;try{return String.fromCodePoint(s)}catch{let a=e.substr(t-2,r+2);return i(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}}Rv.resolveFlowScalar=lO});var Fv=N(Mv=>{"use strict";var Dt=Z(),Zv=Q(),vO=pu(),yO=gu();function $O(e,t,r,i){let{value:n,type:o,comment:s,range:a}=t.type==="block-scalar"?vO.resolveBlockScalar(e,t,i):yO.resolveFlowScalar(t,e.options.strict,i),c=r?e.directives.tagName(r.source,d=>i(r,"TAG_RESOLVE_FAILED",d)):null,u;e.options.stringKeys&&e.atKey?u=e.schema[Dt.SCALAR]:c?u=bO(e.schema,n,c,r,i):t.type==="scalar"?u=kO(e,n,t,i):u=e.schema[Dt.SCALAR];let l;try{let d=u.resolve(n,f=>i(r??t,"TAG_RESOLVE_FAILED",f),e.options);l=Dt.isScalar(d)?d:new Zv.Scalar(d)}catch(d){let f=d instanceof Error?d.message:String(d);i(r??t,"TAG_RESOLVE_FAILED",f),l=new Zv.Scalar(n)}return l.range=a,l.source=n,o&&(l.type=o),c&&(l.tag=c),u.format&&(l.format=u.format),s&&(l.comment=s),l}function bO(e,t,r,i,n){if(r==="!")return e[Dt.SCALAR];let o=[];for(let a of e.tags)if(!a.collection&&a.tag===r)if(a.default&&a.test)o.push(a);else return a;for(let a of o)if(a.test?.test(t))return a;let s=e.knownTags[r];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(n(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),e[Dt.SCALAR])}function kO({atKey:e,directives:t,schema:r},i,n,o){let s=r.tags.find(a=>(a.default===!0||e&&a.default==="key")&&a.test?.test(i))||r[Dt.SCALAR];if(r.compat){let a=r.compat.find(c=>c.default&&c.test?.test(i))??r[Dt.SCALAR];if(s.tag!==a.tag){let c=t.tagString(s.tag),u=t.tagString(a.tag),l=`Value may be parsed as either ${c} or ${u}`;o(n,"TAG_RESOLVE_FAILED",l,!0)}}return s}Mv.composeScalar=$O});var qv=N(Bv=>{"use strict";function _O(e,t,r){if(t){r??(r=t.length);for(let i=r-1;i>=0;--i){let n=t[i];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++i];n?.type==="space";)e+=n.source.length,n=t[++i];break}}return e}Bv.emptyScalarPosition=_O});var Jv=N(vu=>{"use strict";var wO=or(),SO=Z(),xO=Cv(),Vv=Fv(),IO=fn(),OO=qv(),AO={composeNode:Kv,composeEmptyNode:hu};function Kv(e,t,r,i){let n=e.atKey,{spaceBefore:o,comment:s,anchor:a,tag:c}=r,u,l=!0;switch(t.type){case"alias":u=NO(e,t,i),(a||c)&&i(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":u=Vv.composeScalar(e,t,c,i),a&&(u.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{u=xO.composeCollection(AO,e,t,r,i),a&&(u.anchor=a.source.substring(1))}catch(d){let f=d instanceof Error?d.message:String(d);i(t,"RESOURCE_EXHAUSTION",f)}break;default:{let d=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;i(t,"UNEXPECTED_TOKEN",d),l=!1}}return u??(u=hu(e,t.offset,void 0,null,r,i)),a&&u.anchor===""&&i(a,"BAD_ALIAS","Anchor cannot be an empty string"),n&&e.options.stringKeys&&(!SO.isScalar(u)||typeof u.value!="string"||u.tag&&u.tag!=="tag:yaml.org,2002:str")&&i(c??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),o&&(u.spaceBefore=!0),s&&(t.type==="scalar"&&t.source===""?u.comment=s:u.commentBefore=s),e.options.keepSourceTokens&&l&&(u.srcToken=t),u}function hu(e,t,r,i,{spaceBefore:n,comment:o,anchor:s,tag:a,end:c},u){let l={type:"scalar",offset:OO.emptyScalarPosition(t,r,i),indent:-1,source:""},d=Vv.composeScalar(e,l,a,u);return s&&(d.anchor=s.source.substring(1),d.anchor===""&&u(s,"BAD_ALIAS","Anchor cannot be an empty string")),n&&(d.spaceBefore=!0),o&&(d.comment=o,d.range[2]=c),d}function NO({options:e},{offset:t,source:r,end:i},n){let o=new wO.Alias(r.substring(1));o.source===""&&n(t,"BAD_ALIAS","Alias cannot be an empty string"),o.source.endsWith(":")&&n(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let s=t+r.length,a=IO.resolveEnd(i,s,e.strict,n);return o.range=[t,s,a.offset],a.comment&&(o.comment=a.comment),o}vu.composeEmptyNode=hu;vu.composeNode=Kv});var Gv=N(Wv=>{"use strict";var zO=kr(),Hv=Jv(),PO=fn(),DO=xr();function TO(e,t,{offset:r,start:i,value:n,end:o},s){let a=Object.assign({_directives:t},e),c=new zO.Document(void 0,a),u={atKey:!1,atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},l=DO.resolveProps(i,{indicator:"doc-start",next:n??o?.[0],offset:r,onError:s,parentIndent:0,startOnNewline:!0});l.found&&(c.directives.docStart=!0,n&&(n.type==="block-map"||n.type==="block-seq")&&!l.hasNewline&&s(l.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=n?Hv.composeNode(u,n,l,s):Hv.composeEmptyNode(u,l.end,i,null,l,s);let d=c.contents.range[2],f=PO.resolveEnd(o,d,!1,s);return f.comment&&(c.comment=f.comment),c.range=[r,d,f.offset],c}Wv.composeDoc=TO});var $u=N(Qv=>{"use strict";var jO=Li("process"),EO=ic(),CO=kr(),Ir=Sr(),Yv=Z(),UO=Gv(),LO=fn();function Or(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:r}=e;return[t,t+(typeof r=="string"?r.length:1)]}function Xv(e){let t="",r=!1,i=!1;for(let n=0;n<e.length;++n){let o=e[n];switch(o[0]){case"#":t+=(t===""?"":i?`
99
+
100
+ `:`
101
+ `)+(o.substring(1)||" "),r=!0,i=!1;break;case"%":e[n+1]?.[0]!=="#"&&(n+=1),r=!1;break;default:r||(i=!0),r=!1}}return{comment:t,afterEmptyLine:i}}var yu=class{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(r,i,n,o)=>{let s=Or(r);o?this.warnings.push(new Ir.YAMLWarning(s,i,n)):this.errors.push(new Ir.YAMLParseError(s,i,n))},this.directives=new EO.Directives({version:t.version||"1.2"}),this.options=t}decorate(t,r){let{comment:i,afterEmptyLine:n}=Xv(this.prelude);if(i){let o=t.contents;if(r)t.comment=t.comment?`${t.comment}
102
+ ${i}`:i;else if(n||t.directives.docStart||!o)t.commentBefore=i;else if(Yv.isCollection(o)&&!o.flow&&o.items.length>0){let s=o.items[0];Yv.isPair(s)&&(s=s.key);let a=s.commentBefore;s.commentBefore=a?`${i}
103
+ ${a}`:i}else{let s=o.commentBefore;o.commentBefore=s?`${i}
104
+ ${s}`:i}}if(r){for(let o=0;o<this.errors.length;++o)t.errors.push(this.errors[o]);for(let o=0;o<this.warnings.length;++o)t.warnings.push(this.warnings[o])}else t.errors=this.errors,t.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Xv(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,r=!1,i=-1){for(let n of t)yield*this.next(n);yield*this.end(r,i)}*next(t){switch(jO.env.LOG_STREAM&&console.dir(t,{depth:null}),t.type){case"directive":this.directives.add(t.source,(r,i,n)=>{let o=Or(t);o[0]+=r,this.onError(o,"BAD_DIRECTIVE",i,n)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{let r=UO.composeDoc(this.options,this.directives,t,this.onError);this.atDirectives&&!r.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(r,!1),this.doc&&(yield this.doc),this.doc=r,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{let r=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,i=new Ir.YAMLParseError(Or(t),"UNEXPECTED_TOKEN",r);this.atDirectives||!this.doc?this.errors.push(i):this.doc.errors.push(i);break}case"doc-end":{if(!this.doc){let i="Unexpected doc-end without preceding document";this.errors.push(new Ir.YAMLParseError(Or(t),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;let r=LO.resolveEnd(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),r.comment){let i=this.doc.comment;this.doc.comment=i?`${i}
105
+ ${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new Ir.YAMLParseError(Or(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,r=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){let i=Object.assign({_directives:this.directives},this.options),n=new CO.Document(void 0,i);this.atDirectives&&this.onError(r,"MISSING_CHAR","Missing directives-end indicator line"),n.range=[0,r,r],this.decorate(n,!1),yield n}}};Qv.Composer=yu});var ny=N(zo=>{"use strict";var RO=pu(),ZO=gu(),MO=Sr(),ey=lr();function FO(e,t=!0,r){if(e){let i=(n,o,s)=>{let a=typeof n=="number"?n:Array.isArray(n)?n[0]:n.offset;if(r)r(a,o,s);else throw new MO.YAMLParseError([a,a+1],o,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return ZO.resolveFlowScalar(e,t,i);case"block-scalar":return RO.resolveBlockScalar({options:{strict:t}},e,i)}}return null}function BO(e,t){let{implicitKey:r=!1,indent:i,inFlow:n=!1,offset:o=-1,type:s="PLAIN"}=t,a=ey.stringifyString({type:s,value:e},{implicitKey:r,indent:i>0?" ".repeat(i):"",inFlow:n,options:{blockQuote:!0,lineWidth:-1}}),c=t.end??[{type:"newline",offset:-1,indent:i,source:`
106
+ `}];switch(a[0]){case"|":case">":{let u=a.indexOf(`
107
+ `),l=a.substring(0,u),d=a.substring(u+1)+`
108
+ `,f=[{type:"block-scalar-header",offset:o,indent:i,source:l}];return ty(f,c)||f.push({type:"newline",offset:-1,indent:i,source:`
109
+ `}),{type:"block-scalar",offset:o,indent:i,props:f,source:d}}case'"':return{type:"double-quoted-scalar",offset:o,indent:i,source:a,end:c};case"'":return{type:"single-quoted-scalar",offset:o,indent:i,source:a,end:c};default:return{type:"scalar",offset:o,indent:i,source:a,end:c}}}function qO(e,t,r={}){let{afterKey:i=!1,implicitKey:n=!1,inFlow:o=!1,type:s}=r,a="indent"in e?e.indent:null;if(i&&typeof a=="number"&&(a+=2),!s)switch(e.type){case"single-quoted-scalar":s="QUOTE_SINGLE";break;case"double-quoted-scalar":s="QUOTE_DOUBLE";break;case"block-scalar":{let u=e.props[0];if(u.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s=u.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:s="PLAIN"}let c=ey.stringifyString({type:s,value:t},{implicitKey:n||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case"|":case">":VO(e,c);break;case'"':bu(e,c,"double-quoted-scalar");break;case"'":bu(e,c,"single-quoted-scalar");break;default:bu(e,c,"scalar")}}function VO(e,t){let r=t.indexOf(`
110
+ `),i=t.substring(0,r),n=t.substring(r+1)+`
111
+ `;if(e.type==="block-scalar"){let o=e.props[0];if(o.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o.source=i,e.source=n}else{let{offset:o}=e,s="indent"in e?e.indent:-1,a=[{type:"block-scalar-header",offset:o,indent:s,source:i}];ty(a,"end"in e?e.end:void 0)||a.push({type:"newline",offset:-1,indent:s,source:`
112
+ `});for(let c of Object.keys(e))c!=="type"&&c!=="offset"&&delete e[c];Object.assign(e,{type:"block-scalar",indent:s,props:a,source:n})}}function ty(e,t){if(t)for(let r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":return e.push(r),!0}return!1}function bu(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r,e.source=t;break;case"block-scalar":{let i=e.props.slice(1),n=t.length;e.props[0].type==="block-scalar-header"&&(n-=e.props[0].source.length);for(let o of i)o.offset+=n;delete e.props,Object.assign(e,{type:r,source:t,end:i});break}case"block-map":case"block-seq":{let n={type:"newline",offset:e.offset+t.length,indent:e.indent,source:`
113
+ `};delete e.items,Object.assign(e,{type:r,source:t,end:[n]});break}default:{let i="indent"in e?e.indent:-1,n="end"in e&&Array.isArray(e.end)?e.end.filter(o=>o.type==="space"||o.type==="comment"||o.type==="newline"):[];for(let o of Object.keys(e))o!=="type"&&o!=="offset"&&delete e[o];Object.assign(e,{type:r,indent:i,source:t,end:n})}}}zo.createScalarToken=BO;zo.resolveAsScalar=FO;zo.setScalarValue=qO});var iy=N(ry=>{"use strict";var KO=e=>"type"in e?Do(e):Po(e);function Do(e){switch(e.type){case"block-scalar":{let t="";for(let r of e.props)t+=Do(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(let r of e.items)t+=Po(r);return t}case"flow-collection":{let t=e.start.source;for(let r of e.items)t+=Po(r);for(let r of e.end)t+=r.source;return t}case"document":{let t=Po(e);if(e.end)for(let r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(let r of e.end)t+=r.source;return t}}}function Po({start:e,key:t,sep:r,value:i}){let n="";for(let o of e)n+=o.source;if(t&&(n+=Do(t)),r)for(let o of r)n+=o.source;return i&&(n+=Do(i)),n}ry.stringify=KO});var cy=N(ay=>{"use strict";var ku=Symbol("break visit"),JO=Symbol("skip children"),oy=Symbol("remove item");function Tt(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),sy(Object.freeze([]),e,t)}Tt.BREAK=ku;Tt.SKIP=JO;Tt.REMOVE=oy;Tt.itemAtPath=(e,t)=>{let r=e;for(let[i,n]of t){let o=r?.[i];if(o&&"items"in o)r=o.items[n];else return}return r};Tt.parentCollection=(e,t)=>{let r=Tt.itemAtPath(e,t.slice(0,-1)),i=t[t.length-1][0],n=r?.[i];if(n&&"items"in n)return n;throw new Error("Parent collection not found")};function sy(e,t,r){let i=r(t,e);if(typeof i=="symbol")return i;for(let n of["key","value"]){let o=t[n];if(o&&"items"in o){for(let s=0;s<o.items.length;++s){let a=sy(Object.freeze(e.concat([[n,s]])),o.items[s],r);if(typeof a=="number")s=a-1;else{if(a===ku)return ku;a===oy&&(o.items.splice(s,1),s-=1)}}typeof i=="function"&&n==="key"&&(i=i(t,e))}}return typeof i=="function"?i(t,e):i}ay.visit=Tt});var To=N(he=>{"use strict";var _u=ny(),HO=iy(),WO=cy(),wu="\uFEFF",Su="",xu="",Iu="",GO=e=>!!e&&"items"in e,YO=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function XO(e){switch(e){case wu:return"<BOM>";case Su:return"<DOC>";case xu:return"<FLOW_END>";case Iu:return"<SCALAR>";default:return JSON.stringify(e)}}function QO(e){switch(e){case wu:return"byte-order-mark";case Su:return"doc-mode";case xu:return"flow-error-end";case Iu:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
114
+ `:case`\r
115
+ `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}he.createScalarToken=_u.createScalarToken;he.resolveAsScalar=_u.resolveAsScalar;he.setScalarValue=_u.setScalarValue;he.stringify=HO.stringify;he.visit=WO.visit;he.BOM=wu;he.DOCUMENT=Su;he.FLOW_END=xu;he.SCALAR=Iu;he.isCollection=GO;he.isScalar=YO;he.prettyToken=XO;he.tokenType=QO});var Nu=N(ly=>{"use strict";var Ar=To();function Te(e){switch(e){case void 0:case" ":case`
116
+ `:case"\r":case" ":return!0;default:return!1}}var uy=new Set("0123456789ABCDEFabcdef"),eA=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),jo=new Set(",[]{}"),tA=new Set(` ,[]{}
117
+ \r `),Ou=e=>!e||tA.has(e),Au=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,r=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!r;let i=this.next??"stream";for(;i&&(r||this.hasChars(1));)i=yield*this.parseNext(i)}atLineEnd(){let t=this.pos,r=this.buffer[t];for(;r===" "||r===" ";)r=this.buffer[++t];return!r||r==="#"||r===`
118
+ `?!0:r==="\r"?this.buffer[t+1]===`
119
+ `:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let r=this.buffer[t];if(this.indentNext>0){let i=0;for(;r===" ";)r=this.buffer[++i+t];if(r==="\r"){let n=this.buffer[i+t+1];if(n===`
120
+ `||!n&&!this.atEnd)return t+i+1}return r===`
121
+ `||i>=this.indentNext||!r&&!this.atEnd?t+i:-1}if(r==="-"||r==="."){let i=this.buffer.substr(t,3);if((i==="---"||i==="...")&&Te(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
122
+ `,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===Ar.BOM&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let r=t.length,i=t.indexOf("#");for(;i!==-1;){let o=t[i-1];if(o===" "||o===" "){r=i-1;break}else i=t.indexOf("#",i+1)}for(;;){let o=t[r-1];if(o===" "||o===" ")r-=1;else break}let n=(yield*this.pushCount(r))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-n),this.pushNewline(),"stream"}if(this.atLineEnd()){let r=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-r),yield*this.pushNewline(),"stream"}return yield Ar.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let r=this.peek(3);if((r==="---"||r==="...")&&Te(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,r==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Te(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[t,r]=this.peek(2);if(!r&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Te(r)){let i=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=i,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let t=this.getLine();if(t===null)return this.setNext("doc");let r=yield*this.pushIndicators();switch(t[r]){case"#":yield*this.pushCount(t.length-r);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Ou),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return r+=yield*this.parseBlockScalarHeader(),r+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-r),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,r,i=-1;do t=yield*this.pushNewline(),t>0?(r=yield*this.pushSpaces(!1),this.indentValue=i=r):r=0,r+=yield*this.pushSpaces(!0);while(t+r>0);let n=this.getLine();if(n===null)return this.setNext("flow");if((i!==-1&&i<this.indentNext&&n[0]!=="#"||i===0&&(n.startsWith("---")||n.startsWith("..."))&&Te(n[3]))&&!(i===this.indentNext-1&&this.flowLevel===1&&(n[0]==="]"||n[0]==="}")))return this.flowLevel=0,yield Ar.FLOW_END,yield*this.parseLineStart();let o=0;for(;n[o]===",";)o+=yield*this.pushCount(1),o+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(o+=yield*this.pushIndicators(),n[o]){case void 0:return"flow";case"#":return yield*this.pushCount(n.length-o),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Ou),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let s=this.charAt(1);if(this.flowKey||Te(s)||s===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let t=this.charAt(0),r=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;r!==-1&&this.buffer[r+1]==="'";)r=this.buffer.indexOf("'",r+2);else for(;r!==-1;){let o=0;for(;this.buffer[r-1-o]==="\\";)o+=1;if(o%2===0)break;r=this.buffer.indexOf('"',r+1)}let i=this.buffer.substring(0,r),n=i.indexOf(`
123
+ `,this.pos);if(n!==-1){for(;n!==-1;){let o=this.continueScalar(n+1);if(o===-1)break;n=i.indexOf(`
124
+ `,o)}n!==-1&&(r=n-(i[n-1]==="\r"?2:1))}if(r===-1){if(!this.atEnd)return this.setNext("quoted-scalar");r=this.buffer.length}return yield*this.pushToIndex(r+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){let r=this.buffer[++t];if(r==="+")this.blockScalarKeep=!0;else if(r>"0"&&r<="9")this.blockScalarIndent=Number(r)-1;else if(r!=="-")break}return yield*this.pushUntil(r=>Te(r)||r==="#")}*parseBlockScalar(){let t=this.pos-1,r=0,i;e:for(let o=this.pos;i=this.buffer[o];++o)switch(i){case" ":r+=1;break;case`
125
+ `:t=o,r=0;break;case"\r":{let s=this.buffer[o+1];if(!s&&!this.atEnd)return this.setNext("block-scalar");if(s===`
126
+ `)break}default:break e}if(!i&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=r:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let o=this.continueScalar(t+1);if(o===-1)break;t=this.buffer.indexOf(`
127
+ `,o)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let n=t+1;for(i=this.buffer[n];i===" ";)i=this.buffer[++n];if(i===" "){for(;i===" "||i===" "||i==="\r"||i===`
128
+ `;)i=this.buffer[++n];t=n-1}else if(!this.blockScalarKeep)do{let o=t-1,s=this.buffer[o];s==="\r"&&(s=this.buffer[--o]);let a=o;for(;s===" ";)s=this.buffer[--o];if(s===`
129
+ `&&o>=this.pos&&o+1+r>a)t=o;else break}while(!0);return yield Ar.SCALAR,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let t=this.flowLevel>0,r=this.pos-1,i=this.pos-1,n;for(;n=this.buffer[++i];)if(n===":"){let o=this.buffer[i+1];if(Te(o)||t&&jo.has(o))break;r=i}else if(Te(n)){let o=this.buffer[i+1];if(n==="\r"&&(o===`
130
+ `?(i+=1,n=`
131
+ `,o=this.buffer[i+1]):r=i),o==="#"||t&&jo.has(o))break;if(n===`
132
+ `){let s=this.continueScalar(i+1);if(s===-1)break;i=Math.max(i,s-2)}}else{if(t&&jo.has(n))break;r=i}return!n&&!this.atEnd?this.setNext("plain-scalar"):(yield Ar.SCALAR,yield*this.pushToIndex(r+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,r){let i=this.buffer.slice(this.pos,t);return i?(yield i,this.pos+=i.length,i.length):(r&&(yield""),0)}*pushIndicators(){let t=0;e:for(;;){switch(this.charAt(0)){case"!":t+=yield*this.pushTag(),t+=yield*this.pushSpaces(!0);continue e;case"&":t+=yield*this.pushUntil(Ou),t+=yield*this.pushSpaces(!0);continue e;case"-":case"?":case":":{let r=this.flowLevel>0,i=this.charAt(1);if(Te(i)||r&&jo.has(i)){r?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,t+=yield*this.pushCount(1),t+=yield*this.pushSpaces(!0);continue e}}}break e}return t}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,r=this.buffer[t];for(;!Te(r)&&r!==">";)r=this.buffer[++t];return yield*this.pushToIndex(r===">"?t+1:t,!1)}else{let t=this.pos+1,r=this.buffer[t];for(;r;)if(eA.has(r))r=this.buffer[++t];else if(r==="%"&&uy.has(this.buffer[t+1])&&uy.has(this.buffer[t+2]))r=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){let t=this.buffer[this.pos];return t===`
133
+ `?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
134
+ `?yield*this.pushCount(2):0}*pushSpaces(t){let r=this.pos-1,i;do i=this.buffer[++r];while(i===" "||t&&i===" ");let n=r-this.pos;return n>0&&(yield this.buffer.substr(this.pos,n),this.pos=r),n}*pushUntil(t){let r=this.pos,i=this.buffer[r];for(;!t(i);)i=this.buffer[++r];return yield*this.pushToIndex(r,!1)}};ly.Lexer=Au});var Pu=N(dy=>{"use strict";var zu=class{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let r=0,i=this.lineStarts.length;for(;r<i;){let o=r+i>>1;this.lineStarts[o]<t?r=o+1:i=o}if(this.lineStarts[r]===t)return{line:r+1,col:1};if(r===0)return{line:0,col:t};let n=this.lineStarts[r-1];return{line:r,col:t-n+1}}}};dy.LineCounter=zu});var Tu=N(hy=>{"use strict";var nA=Li("process"),fy=To(),rA=Nu();function dt(e,t){for(let r=0;r<e.length;++r)if(e[r].type===t)return!0;return!1}function py(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function gy(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Eo(e){switch(e.type){case"document":return e.start;case"block-map":{let t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function pn(e){if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function Co(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let r=0;r<t.length;++r)e.push(t[r])}function my(e){if(e.start.type==="flow-seq-start")for(let t of e.items)t.sep&&!t.value&&!dt(t.start,"explicit-key-ind")&&!dt(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,gy(t.value)?t.value.end?Co(t.value.end,t.sep):t.value.end=t.sep:Co(t.start,t.sep),delete t.sep)}var Du=class{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new rA.Lexer,this.onNewLine=t}*parse(t,r=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let i of this.lexer.lex(t,r))yield*this.next(i);r||(yield*this.end())}*next(t){if(this.source=t,nA.env.LOG_TOKENS&&console.log("|",fy.prettyToken(t)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}let r=fy.tokenType(t);if(r)if(r==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=r,yield*this.step(),r){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{let i=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:i,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let t=this.peek(1);if(this.type==="doc-end"&&t?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){let r=t??this.stack.pop();if(!r)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield r;else{let i=this.peek(1);switch(r.type==="block-scalar"?r.indent="indent"in i?i.indent:0:r.type==="flow-collection"&&i.type==="document"&&(r.indent=0),r.type==="flow-collection"&&my(r),i.type){case"document":i.value=r;break;case"block-scalar":i.props.push(r);break;case"block-map":{let n=i.items[i.items.length-1];if(n.value){i.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=r;else{Object.assign(n,{key:r,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case"block-seq":{let n=i.items[i.items.length-1];n.value?i.items.push({start:[],value:r}):n.value=r;break}case"flow-collection":{let n=i.items[i.items.length-1];!n||n.value?i.items.push({start:[],key:r,sep:[]}):n.sep?n.value=r:Object.assign(n,{key:r,sep:[]});return}default:yield*this.pop(),yield*this.pop(r)}if((i.type==="document"||i.type==="block-map"||i.type==="block-seq")&&(r.type==="block-map"||r.type==="block-seq")){let n=r.items[r.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&py(n.start)===-1&&(r.indent===0||n.start.every(o=>o.type!=="comment"||o.indent<r.indent))&&(i.type==="document"?i.end=n.start:i.items.push({start:n.start}),r.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{py(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}let r=this.startBlockValue(t);r?this.stack.push(r):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){let r=Eo(this.peek(2)),i=pn(r),n;t.end?(n=t.end,n.push(this.sourceToken),delete t.end):n=[this.sourceToken];let o={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let r=this.source.indexOf(`
135
+ `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
136
+ `,r)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){let r=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,r.value){let i="end"in r.value?r.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else if(r.sep)r.sep.push(this.sourceToken);else{if(this.atIndentedComment(r.start,t.indent)){let n=t.items[t.items.length-2]?.value?.end;if(Array.isArray(n)){Co(n,r.start),n.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return}if(this.indent>=t.indent){let i=!this.onKeyLine&&this.indent===t.indent,n=i&&(r.sep||r.explicitKey)&&this.type!=="seq-item-ind",o=[];if(n&&r.sep&&!r.value){let s=[];for(let a=0;a<r.sep.length;++a){let c=r.sep[a];switch(c.type){case"newline":s.push(a);break;case"space":break;case"comment":c.indent>t.indent&&(s.length=0);break;default:s.length=0}}s.length>=2&&(o=r.sep.splice(s[1]))}switch(this.type){case"anchor":case"tag":n||r.value?(o.push(this.sourceToken),t.items.push({start:o}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!r.explicitKey?(r.start.push(this.sourceToken),r.explicitKey=!0):n||r.value?(o.push(this.sourceToken),t.items.push({start:o,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(r.explicitKey)if(r.sep)if(r.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(dt(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]});else if(gy(r.key)&&!dt(r.sep,"newline")){let s=pn(r.start),a=r.key,c=r.sep;c.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:a,sep:c}]})}else o.length>0?r.sep=r.sep.concat(o,this.sourceToken):r.sep.push(this.sourceToken);else if(dt(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{let s=pn(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||n?t.items.push({start:o,key:null,sep:[this.sourceToken]}):dt(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let s=this.flowScalar(this.type);n||r.value?(t.items.push({start:o,key:s,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(s):(Object.assign(r,{key:s,sep:[]}),this.onKeyLine=!0);return}default:{let s=this.startBlockValue(t);if(s){if(s.type==="block-seq"){if(!r.explicitKey&&r.sep&&!dt(r.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else i&&t.items.push({start:o});this.stack.push(s);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){let r=t.items[t.items.length-1];switch(this.type){case"newline":if(r.value){let i="end"in r.value?r.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,t.indent)){let n=t.items[t.items.length-2]?.value?.end;if(Array.isArray(n)){Co(n,r.start),n.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=t.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;r.value||dt(r.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return}if(this.indent>t.indent){let i=this.startBlockValue(t);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){let r=t.items[t.items.length-1];if(this.type==="flow-error-end"){let i;do yield*this.pop(),i=this.peek(1);while(i?.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!r||r.sep?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!r||r.value?t.items.push({start:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);!r||r.value?t.items.push({start:[],key:n,sep:[]}):r.sep?this.stack.push(n):Object.assign(r,{key:n,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}let i=this.startBlockValue(t);i?this.stack.push(i):(yield*this.pop(),yield*this.step())}else{let i=this.peek(2);if(i.type==="block-map"&&(this.type==="map-value-ind"&&i.indent===t.indent||this.type==="newline"&&!i.items[i.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&i.type!=="flow-collection"){let n=Eo(i),o=pn(n);my(t);let s=t.end.splice(1,t.end.length);s.push(this.sourceToken);let a={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:o,key:t,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let r=this.source.indexOf(`
137
+ `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
138
+ `,r)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let r=Eo(t),i=pn(r);return i.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let r=Eo(t),i=pn(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,r){return this.type!=="comment"||this.indent<=r?!1:t.every(i=>i.type==="newline"||i.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};hy.Parser=Du});var ky=N(zr=>{"use strict";var vy=$u(),iA=kr(),Nr=Sr(),oA=vc(),sA=Z(),aA=Pu(),yy=Tu();function $y(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new aA.LineCounter||null,prettyErrors:t}}function cA(e,t={}){let{lineCounter:r,prettyErrors:i}=$y(t),n=new yy.Parser(r?.addNewLine),o=new vy.Composer(t),s=Array.from(o.compose(n.parse(e)));if(i&&r)for(let a of s)a.errors.forEach(Nr.prettifyError(e,r)),a.warnings.forEach(Nr.prettifyError(e,r));return s.length>0?s:Object.assign([],{empty:!0},o.streamInfo())}function by(e,t={}){let{lineCounter:r,prettyErrors:i}=$y(t),n=new yy.Parser(r?.addNewLine),o=new vy.Composer(t),s=null;for(let a of o.compose(n.parse(e),!0,e.length))if(!s)s=a;else if(s.options.logLevel!=="silent"){s.errors.push(new Nr.YAMLParseError(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&r&&(s.errors.forEach(Nr.prettifyError(e,r)),s.warnings.forEach(Nr.prettifyError(e,r))),s}function uA(e,t,r){let i;typeof t=="function"?i=t:r===void 0&&t&&typeof t=="object"&&(r=t);let n=by(e,r);if(!n)return null;if(n.warnings.forEach(o=>oA.warn(n.options.logLevel,o)),n.errors.length>0){if(n.options.logLevel!=="silent")throw n.errors[0];n.errors=[]}return n.toJS(Object.assign({reviver:i},r))}function lA(e,t,r){let i=null;if(typeof t=="function"||Array.isArray(t)?i=t:r===void 0&&t&&(r=t),typeof r=="string"&&(r=r.length),typeof r=="number"){let n=Math.round(r);r=n<1?void 0:n>8?{indent:8}:{indent:n}}if(e===void 0){let{keepUndefined:n}=r??t??{};if(!n)return}return sA.isDocument(e)&&!i?e.toString(r):new iA.Document(e,i,r).toString(r)}zr.parse=uA;zr.parseAllDocuments=cA;zr.parseDocument=by;zr.stringify=lA});var We=N(M=>{"use strict";var dA=$u(),fA=kr(),pA=Qc(),ju=Sr(),mA=or(),ft=Z(),gA=at(),hA=Q(),vA=ut(),yA=lt(),$A=To(),bA=Nu(),kA=Pu(),_A=Tu(),Uo=ky(),_y=tr();M.Composer=dA.Composer;M.Document=fA.Document;M.Schema=pA.Schema;M.YAMLError=ju.YAMLError;M.YAMLParseError=ju.YAMLParseError;M.YAMLWarning=ju.YAMLWarning;M.Alias=mA.Alias;M.isAlias=ft.isAlias;M.isCollection=ft.isCollection;M.isDocument=ft.isDocument;M.isMap=ft.isMap;M.isNode=ft.isNode;M.isPair=ft.isPair;M.isScalar=ft.isScalar;M.isSeq=ft.isSeq;M.Pair=gA.Pair;M.Scalar=hA.Scalar;M.YAMLMap=vA.YAMLMap;M.YAMLSeq=yA.YAMLSeq;M.CST=$A;M.Lexer=bA.Lexer;M.LineCounter=kA.LineCounter;M.Parser=_A.Parser;M.parse=Uo.parse;M.parseAllDocuments=Uo.parseAllDocuments;M.parseDocument=Uo.parseDocument;M.stringify=Uo.stringify;M.visit=_y.visit;M.visitAsync=_y.visitAsync});import{spawn as TE}from"node:child_process";import{randomUUID as jE}from"node:crypto";import{readFileSync as EE}from"node:fs";import{dirname as CE,join as Ei}from"node:path";import{fileURLToPath as UE}from"node:url";var vD=nt(We(),1);var j={};Ke(j,{$brand:()=>Hu,$input:()=>kf,$output:()=>bf,INVALID:()=>le,NEVER:()=>Ju,TimePrecision:()=>Tf,ZodAny:()=>bm,ZodArray:()=>Sm,ZodBase64:()=>Ta,ZodBase64URL:()=>ja,ZodBigInt:()=>Yn,ZodBigIntFormat:()=>Ua,ZodBoolean:()=>Gn,ZodCIDRv4:()=>Pa,ZodCIDRv6:()=>Da,ZodCUID:()=>Sa,ZodCUID2:()=>xa,ZodCatch:()=>Vm,ZodCodec:()=>xi,ZodCompileAsyncError:()=>Ee,ZodCompileUnsupportedError:()=>R,ZodCreditCard:()=>fm,ZodCustom:()=>Ii,ZodCustomStringFormat:()=>Gt,ZodDate:()=>$i,ZodDefault:()=>Rm,ZodDiscriminatedUnion:()=>Im,ZodE164:()=>Ea,ZodEmail:()=>ba,ZodEmoji:()=>_a,ZodEnum:()=>Jn,ZodError:()=>M0,ZodExactOptional:()=>Ma,ZodFile:()=>Em,ZodFirstPartyTypeKind:()=>og,ZodFunction:()=>tg,ZodGUID:()=>ka,ZodIBAN:()=>pm,ZodIPv4:()=>Na,ZodIPv6:()=>za,ZodISODate:()=>wt,ZodISODateTime:()=>_t,ZodISODuration:()=>xt,ZodISOTime:()=>St,ZodInstanceOf:()=>ig,ZodIntersection:()=>Om,ZodIssueCode:()=>q0,ZodJWT:()=>Ca,ZodKSUID:()=>Aa,ZodLazy:()=>Xm,ZodLiteral:()=>jm,ZodMAC:()=>dm,ZodMap:()=>Dm,ZodNaN:()=>Jm,ZodNanoID:()=>wa,ZodNever:()=>_m,ZodNonOptional:()=>Fa,ZodNull:()=>ym,ZodNullable:()=>Lm,ZodNumber:()=>Wn,ZodNumberFormat:()=>Yt,ZodObject:()=>ki,ZodOptional:()=>wi,ZodPipe:()=>Si,ZodPrefault:()=>Mm,ZodPreprocess:()=>Hm,ZodPromise:()=>eg,ZodReadonly:()=>Wm,ZodRealError:()=>ke,ZodRecord:()=>Kn,ZodSet:()=>Tm,ZodString:()=>Hn,ZodStringFormat:()=>V,ZodSuccess:()=>qm,ZodSymbol:()=>hm,ZodTemplateLiteral:()=>Ym,ZodTransform:()=>Cm,ZodTuple:()=>Nm,ZodType:()=>U,ZodULID:()=>Ia,ZodURL:()=>yi,ZodUUID:()=>qe,ZodUndefined:()=>vm,ZodUnion:()=>_i,ZodUnknown:()=>km,ZodVoid:()=>wm,ZodXID:()=>Oa,ZodXor:()=>xm,_ZodString:()=>$a,_default:()=>Zm,_function:()=>n_,any:()=>Tk,array:()=>bi,base64:()=>pk,base64url:()=>mk,bigint:()=>Ak,boolean:()=>gm,catch:()=>Km,check:()=>r_,cidrv4:()=>dk,cidrv6:()=>fk,clone:()=>F,codec:()=>Xk,coerce:()=>ag,compile:()=>xf,config:()=>Y,core:()=>et,creditCard:()=>hk,cuid:()=>rk,cuid2:()=>ik,currencyCode:()=>_k,custom:()=>i_,date:()=>Ek,decode:()=>im,decodeAsync:()=>sm,deepPartial:()=>v_,describe:()=>o_,discriminatedUnion:()=>Mk,e164:()=>gk,email:()=>Jb,emoji:()=>tk,encode:()=>rm,encodeAsync:()=>om,endsWith:()=>En,enum:()=>Ra,exactOptional:()=>Um,file:()=>Hk,flattenError:()=>Mr,float32:()=>Sk,float64:()=>xk,formatError:()=>Fr,fromJSONSchema:()=>g_,function:()=>n_,getDiscriminatedOption:()=>Jd,getErrorMap:()=>K0,globalRegistry:()=>se,gt:()=>Fe,gte:()=>Se,guid:()=>Hb,hash:()=>wk,hex:()=>kk,hostname:()=>bk,httpUrl:()=>ek,iban:()=>vk,includes:()=>Tn,input:()=>$_,instanceof:()=>a_,int:()=>va,int32:()=>Ik,int64:()=>Nk,intersection:()=>Am,invertCodec:()=>Qk,ipv4:()=>ck,ipv6:()=>lk,iso:()=>Oi,json:()=>u_,jwt:()=>yk,keyof:()=>Ck,ksuid:()=>ak,lazy:()=>Qm,length:()=>Vt,literal:()=>Jk,locales:()=>ci,looseObject:()=>Rk,looseRecord:()=>Bk,lowercase:()=>Pn,lt:()=>Me,lte:()=>we,mac:()=>uk,map:()=>qk,maxLength:()=>qt,maxSize:()=>yt,memoizer:()=>si,meta:()=>s_,mime:()=>Un,minLength:()=>Qe,minSize:()=>Be,multipleOf:()=>vt,nan:()=>Yk,nanoid:()=>nk,nativeEnum:()=>Kk,negative:()=>sa,never:()=>La,nonnegative:()=>ca,nonoptional:()=>Bm,nonpositive:()=>aa,normalize:()=>Ln,null:()=>$m,nullable:()=>vi,nullish:()=>Wk,number:()=>mm,object:()=>Uk,optional:()=>Ht,output:()=>b_,overwrite:()=>Ce,parse:()=>Qp,parseAsync:()=>em,partialRecord:()=>Fk,pipe:()=>ya,positive:()=>oa,prefault:()=>Fm,preprocess:()=>l_,prettifyError:()=>Qu,promise:()=>t_,properties:()=>Cn,property:()=>ua,readonly:()=>Gm,record:()=>Pm,refine:()=>ng,regex:()=>zn,regexes:()=>ze,registry:()=>js,safeDecode:()=>cm,safeDecodeAsync:()=>lm,safeEncode:()=>am,safeEncodeAsync:()=>um,safeParse:()=>tm,safeParseAsync:()=>nm,set:()=>Vk,setErrorMap:()=>V0,size:()=>Bt,slugify:()=>Fn,startsWith:()=>jn,strictObject:()=>Lk,string:()=>hi,stringFormat:()=>$k,stringbool:()=>c_,success:()=>Gk,superRefine:()=>rg,symbol:()=>Pk,templateLiteral:()=>e_,toJSONSchema:()=>pa,toLowerCase:()=>Zn,toUpperCase:()=>Mn,toZod:()=>Pr,transform:()=>Za,treeifyError:()=>Xu,trim:()=>Rn,tuple:()=>zm,uint32:()=>Ok,uint64:()=>zk,ulid:()=>ok,undefined:()=>Dk,union:()=>Xn,unknown:()=>Jt,uppercase:()=>Dn,url:()=>Qb,util:()=>$,uuid:()=>Wb,uuidv4:()=>Gb,uuidv6:()=>Yb,uuidv7:()=>Xb,validate:()=>Br,validateAsync:()=>qr,void:()=>jk,withParser:()=>Es,xid:()=>sk,xor:()=>Zk});var et={};Ke(et,{$ZodAny:()=>Ld,$ZodArray:()=>qd,$ZodAsyncError:()=>$e,$ZodBase64:()=>Id,$ZodBase64URL:()=>Od,$ZodBigInt:()=>bs,$ZodBigIntFormat:()=>jd,$ZodBoolean:()=>ei,$ZodCIDRv4:()=>Sd,$ZodCIDRv6:()=>xd,$ZodCUID:()=>fd,$ZodCUID2:()=>pd,$ZodCatch:()=>lf,$ZodCheck:()=>K,$ZodCheckBigIntFormat:()=>Rl,$ZodCheckEndsWith:()=>Yl,$ZodCheckGreaterThan:()=>is,$ZodCheckIncludes:()=>Wl,$ZodCheckLengthEquals:()=>Vl,$ZodCheckLessThan:()=>rs,$ZodCheckLowerCase:()=>Jl,$ZodCheckMaxLength:()=>Bl,$ZodCheckMaxSize:()=>Zl,$ZodCheckMimeType:()=>ed,$ZodCheckMinLength:()=>ql,$ZodCheckMinSize:()=>Ml,$ZodCheckMultipleOf:()=>Ul,$ZodCheckNumberFormat:()=>Ll,$ZodCheckOverwrite:()=>td,$ZodCheckProperties:()=>Ql,$ZodCheckProperty:()=>Xl,$ZodCheckRegex:()=>Kl,$ZodCheckSizeEquals:()=>Fl,$ZodCheckStartsWith:()=>Gl,$ZodCheckStringFormat:()=>xn,$ZodCheckUpperCase:()=>Hl,$ZodCodec:()=>ni,$ZodCreditCard:()=>Nd,$ZodCustom:()=>vf,$ZodCustomStringFormat:()=>Dd,$ZodCyclicError:()=>Os,$ZodDate:()=>Fd,$ZodDefault:()=>sf,$ZodDiscriminatedUnion:()=>Hd,$ZodE164:()=>Ad,$ZodEmail:()=>sd,$ZodEmoji:()=>ld,$ZodEncodeError:()=>gt,$ZodEnum:()=>Qd,$ZodError:()=>Yu,$ZodExactOptional:()=>rf,$ZodFile:()=>tf,$ZodFunction:()=>gf,$ZodGUID:()=>id,$ZodIBAN:()=>zd,$ZodIPv4:()=>kd,$ZodIPv6:()=>_d,$ZodISODate:()=>yd,$ZodISODateTime:()=>vd,$ZodISODuration:()=>bd,$ZodISOTime:()=>$d,$ZodIntersection:()=>Wd,$ZodJWT:()=>Pd,$ZodKSUID:()=>hd,$ZodLazy:()=>ri,$ZodLiteral:()=>ef,$ZodMAC:()=>wd,$ZodMap:()=>Yd,$ZodNaN:()=>df,$ZodNanoID:()=>dd,$ZodNever:()=>Zd,$ZodNonOptional:()=>cf,$ZodNull:()=>Ud,$ZodNullable:()=>of,$ZodNumber:()=>$s,$ZodNumberFormat:()=>Td,$ZodObject:()=>r$,$ZodObjectJIT:()=>Vd,$ZodOptional:()=>_s,$ZodPipe:()=>ws,$ZodPrefault:()=>af,$ZodPreprocess:()=>ff,$ZodPromise:()=>hf,$ZodReadonly:()=>pf,$ZodRealError:()=>be,$ZodRecord:()=>Gd,$ZodRegistry:()=>Ts,$ZodSet:()=>Xd,$ZodString:()=>Rt,$ZodStringFormat:()=>B,$ZodSuccess:()=>uf,$ZodSymbol:()=>Ed,$ZodTemplateLiteral:()=>mf,$ZodTransform:()=>nf,$ZodTuple:()=>ks,$ZodType:()=>E,$ZodULID:()=>md,$ZodURL:()=>ud,$ZodUUID:()=>od,$ZodUndefined:()=>Cd,$ZodUnion:()=>ti,$ZodUnknown:()=>Rd,$ZodVoid:()=>Md,$ZodXID:()=>gd,$ZodXor:()=>Kd,$brand:()=>Hu,$constructor:()=>h,$input:()=>kf,$output:()=>bf,Doc:()=>Lt,INVALID:()=>le,JSONSchema:()=>qb,JSONSchemaGenerator:()=>ma,NEVER:()=>Ju,TimePrecision:()=>Tf,URL_BAD_FORMAT:()=>ad,URL_UNPARSEABLE:()=>Wr,ZodCompileAsyncError:()=>Ee,ZodCompileUnsupportedError:()=>R,_any:()=>Gf,_array:()=>rp,_base64:()=>ta,_base64url:()=>na,_bigint:()=>Bf,_boolean:()=>Mf,_catch:()=>N0,_check:()=>Ab,_cidrv4:()=>Qs,_cidrv6:()=>ea,_coercedBigint:()=>qf,_coercedBoolean:()=>Ff,_coercedDate:()=>tp,_coercedNumber:()=>Ef,_coercedString:()=>Nf,_creditCard:()=>Pf,_cuid:()=>Ks,_cuid2:()=>Js,_custom:()=>op,_date:()=>ep,_decode:()=>Ko,_decodeAsync:()=>Ho,_default:()=>I0,_discriminatedUnion:()=>m0,_e164:()=>ra,_email:()=>Ls,_emoji:()=>qs,_encode:()=>Vo,_encodeAsync:()=>Jo,_endsWith:()=>En,_enum:()=>b0,_file:()=>ip,_float32:()=>Uf,_float64:()=>Lf,_gt:()=>Fe,_gte:()=>Se,_guid:()=>Rs,_iban:()=>Df,_includes:()=>Tn,_int:()=>Cf,_int32:()=>Rf,_int64:()=>Vf,_intersection:()=>g0,_ipv4:()=>Ys,_ipv6:()=>Xs,_isoDate:()=>di,_isoDateTime:()=>li,_isoDuration:()=>pi,_isoTime:()=>fi,_jwt:()=>ia,_ksuid:()=>Gs,_lazy:()=>T0,_length:()=>Vt,_literal:()=>_0,_lowercase:()=>Pn,_lt:()=>Me,_lte:()=>we,_mac:()=>zf,_map:()=>y0,_max:()=>we,_maxLength:()=>qt,_maxSize:()=>yt,_mime:()=>Un,_min:()=>Se,_minLength:()=>Qe,_minSize:()=>Be,_multipleOf:()=>vt,_nan:()=>np,_nanoid:()=>Vs,_nativeEnum:()=>k0,_negative:()=>sa,_never:()=>Xf,_nonnegative:()=>ca,_nonoptional:()=>O0,_nonpositive:()=>aa,_normalize:()=>Ln,_null:()=>Wf,_nullable:()=>x0,_number:()=>jf,_optional:()=>S0,_overwrite:()=>Ce,_parse:()=>kn,_parseAsync:()=>_n,_pipe:()=>z0,_positive:()=>oa,_promise:()=>j0,_properties:()=>Cn,_property:()=>ua,_readonly:()=>P0,_record:()=>v0,_refine:()=>sp,_regex:()=>zn,_safeDecode:()=>Go,_safeDecodeAsync:()=>Xo,_safeEncode:()=>Wo,_safeEncodeAsync:()=>Yo,_safeParse:()=>wn,_safeParseAsync:()=>Sn,_set:()=>$0,_size:()=>Bt,_slugify:()=>Fn,_startsWith:()=>jn,_string:()=>Af,_stringFormat:()=>Kt,_stringbool:()=>lp,_success:()=>A0,_superRefine:()=>ap,_symbol:()=>Jf,_templateLiteral:()=>D0,_toLowerCase:()=>Zn,_toUpperCase:()=>Mn,_transform:()=>w0,_trim:()=>Rn,_tuple:()=>h0,_uint32:()=>Zf,_uint64:()=>Kf,_ulid:()=>Hs,_undefined:()=>Hf,_union:()=>f0,_unknown:()=>Yf,_uppercase:()=>Dn,_url:()=>ui,_uuid:()=>Zs,_uuidv4:()=>Ms,_uuidv6:()=>Fs,_uuidv7:()=>Bs,_void:()=>Qf,_xid:()=>Ws,_xor:()=>p0,base64Charset:()=>ms,base64urlCharset:()=>Qr,canParseURL:()=>cd,clone:()=>F,compile:()=>xf,compileFn:()=>Cs,config:()=>Y,createStandardJSONSchemaMethod:()=>Bn,createToJSONSchemaMethod:()=>fp,decode:()=>pN,decodeAsync:()=>gN,describe:()=>cp,encode:()=>fN,encodeAsync:()=>mN,extractDefs:()=>bt,finalize:()=>kt,flattenError:()=>Mr,formatError:()=>Fr,getDiscriminatedOption:()=>Jd,globalConfig:()=>re,globalRegistry:()=>se,handleUnrepresentable:()=>te,initializeContext:()=>$t,isBackEdge:()=>Ns,isRecursiveSchema:()=>As,isValidBase64:()=>Xr,isValidBase64URL:()=>gs,isValidCIDRv6:()=>ps,isValidCreditCard:()=>hs,isValidIBAN:()=>vs,isValidIPv6:()=>Yr,isValidJWT:()=>ys,locales:()=>ci,memoizer:()=>si,mergeValues:()=>In,meta:()=>up,parse:()=>Bo,parseAsync:()=>qo,parseURLObject:()=>e$,prettifyError:()=>Qu,process:()=>q,processSchema:()=>q,regexes:()=>ze,registry:()=>js,safeDecode:()=>vN,safeDecodeAsync:()=>$N,safeEncode:()=>hN,safeEncodeAsync:()=>yN,safeParse:()=>aN,safeParseAsync:()=>cN,standardProps:()=>us,stripTabAndNewline:()=>Gr,toDotPath:()=>Ty,toJSONSchema:()=>pa,toZod:()=>Pr,treeifyError:()=>Xu,urlHostnameOk:()=>ds,urlProtocolOk:()=>fs,util:()=>$,validate:()=>Br,validateAsync:()=>qr,validateURL:()=>ls,version:()=>nd,withParser:()=>Es});var $={};Ke($,{BIGINT_FORMAT_RANGES:()=>Cr,CONSTANT_CATCH:()=>Mo,Class:()=>Uu,NUMBER_FORMAT_RANGES:()=>Er,aborted:()=>ue,allowsEval:()=>Zu,assert:()=>OA,assertEqual:()=>wA,assertIs:()=>xA,assertNever:()=>IA,assertNotEqual:()=>SA,assignProp:()=>oe,attachSchema:()=>Ur,base64ToUint8Array:()=>Oy,base64urlToUint8Array:()=>KA,cached:()=>vn,captureStackTrace:()=>Ro,cleanEnum:()=>VA,cleanRegex:()=>Ye,clone:()=>F,cloneDef:()=>zA,codePointLength:()=>Ct,constantCatch:()=>Vu,createTransparentProxy:()=>CA,defineLazy:()=>Lu,defineLazyInternal:()=>L,derived:()=>GA,esc:()=>ce,escapeRegex:()=>Ne,explicitlyAborted:()=>Bu,extend:()=>RA,finalizeIssue:()=>ye,floatSafeRemainder:()=>Dr,getElementAtPath:()=>PA,getEnumValues:()=>gn,getLengthableOrigin:()=>Rr,getParsedType:()=>EA,getSizableOrigin:()=>Lr,hexToUint8Array:()=>HA,hide:()=>Zr,installLazyProp:()=>eN,isObject:()=>Et,isPlainObject:()=>Ae,issue:()=>bn,joinValues:()=>v,jsonStringifyReplacer:()=>hn,members:()=>qu,merge:()=>MA,mergeDefs:()=>je,normalizeParams:()=>x,nullish:()=>Lo,numKeys:()=>jA,objectClone:()=>AA,omit:()=>LA,optionalKeys:()=>Fu,own:()=>mt,parsedType:()=>_,partial:()=>FA,pick:()=>UA,prefixIssues:()=>ve,primitiveTypes:()=>Mu,promiseAllObject:()=>DA,propertyKeyTypes:()=>jr,randomString:()=>TA,rawShape:()=>yn,required:()=>BA,safeExtend:()=>ZA,shallowClone:()=>Tr,sizeCaps:()=>$n,slugify:()=>Ru,stringifyPrimitive:()=>b,toZod:()=>Pr,uint8ArrayToBase64:()=>Ay,uint8ArrayToBase64url:()=>JA,uint8ArrayToHex:()=>WA,unwrapMessage:()=>mn});function wA(e){return e}function SA(e){return e}function Pr(){return e=>e}function xA(e){}function IA(e){throw new Error("Unexpected value in exhaustive check")}function OA(e){}function gn(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,n])=>t.indexOf(+i)===-1).map(([i,n])=>n)}function v(e,t="|"){return e.map(r=>b(r)).join(t)}function hn(e,t){return typeof t=="bigint"?t.toString():t}var Cu=class{constructor(t){this._getter=t,this._value=void 0}get value(){let t=this._getter;return t!==void 0&&(this._value=t(),this._getter=void 0),this._value}};function vn(e){return new Cu(e)}function Lo(e){return e==null}function Ye(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Dr(e,t){let r=e/t,i=Math.round(r),n=4*Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-i)<n?0:r-i}var wy=Symbol("evaluating");function Lu(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==wy)return i===void 0&&(i=wy,i=r()),i},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function AA(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function oe(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function yn(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function Ge(e){return yn(e._zod.def)??e._zod.def.shape}function Sy(e,t,r){Object.defineProperty(e,t,{get(){let i=r();return oe(this,t,i),i},enumerable:!0,configurable:!0})}function xy(e,t,r){t in e?oe(e,t,r):e[t]=r}function jt(e,t,r,i){let n=Ge(t);for(let o of r){let s=Object.getOwnPropertyDescriptor(n,o);s.enumerable&&(s.get?Sy(e,o,()=>{let a=t._zod.def.shape[o];return i?i(a,o):a}):xy(e,o,i?i(s.value,o):s.value))}}function NA(e,t){for(let r of Reflect.ownKeys(t)){let i=Object.getOwnPropertyDescriptor(t,r);i.enumerable&&(i.get?Sy(e,r,()=>t[r]):xy(e,r,i.value))}}function je(...e){let t={};for(let r of e){let i=Object.getOwnPropertyDescriptors(r);Object.assign(t,i)}return Object.defineProperties({},t)}function zA(e){return je(e._zod.def)}function PA(e,t){return t?t.reduce((r,i)=>r?.[i],e):e}function DA(e){let t=Object.keys(e),r=t.map(i=>e[i]);return Promise.all(r).then(i=>{let n={};for(let o=0;o<t.length;o++)n[t[o]]=i[o];return n})}function TA(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r}function ce(e){return JSON.stringify(e)}function Ru(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Ro="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Et(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Zu=vn(()=>{if(re.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Ae(e){if(Et(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Et(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Tr(e){return Ae(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function jA(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var EA=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}`)}},jr=new Set(["string","number","symbol"]),Mu=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ne(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function F(e,t,r){let i=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(i._zod.parent=e),i}function x(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 CA(e){let t;return new Proxy({},{get(r,i,n){return t??(t=e()),Reflect.get(t,i,n)},set(r,i,n,o){return t??(t=e()),Reflect.set(t,i,n,o)},has(r,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(r,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(r,i,n){return t??(t=e()),Reflect.defineProperty(t,i,n)}})}function b(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Fu(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var Er={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]},Cr={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function UA(e,t){let r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o={};return jt(o,e,Zo(e,t)),F(e,je(r,{shape:o,checks:[]}))}function Zo(e,t){let r=Ge(e),i=[];for(let n of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(r,n)?.enumerable)throw new Error(`Unrecognized key: "${String(n)}"`);t[n]&&i.push(n)}return i}function LA(e,t){let r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=new Set(Zo(e,t)),s={};return jt(s,e,Reflect.ownKeys(Ge(e)).filter(a=>!o.has(a))),F(e,je(r,{shape:s,checks:[]}))}function RA(e,t){if(!Ae(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let n=Ge(e);for(let o of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,o)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return F(e,je(e._zod.def,{shape:Iy(e,t)}))}function Iy(e,t){let r={};return jt(r,e,Reflect.ownKeys(Ge(e))),NA(r,t),r}function ZA(e,t){if(!Ae(t))throw new Error("Invalid input to safeExtend: expected a plain object");return F(e,je(e._zod.def,{shape:Iy(e,t)}))}function MA(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r={};jt(r,e,Reflect.ownKeys(Ge(e))),jt(r,t,Reflect.ownKeys(Ge(t)));let i=je(e._zod.def,{shape:r,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return F(e,i)}function FA(e,t,r,i="partial"){let o=t._zod.def.checks;if(o&&o.length>0)throw new Error(`.${i}() cannot be used on object schemas containing refinements`);let a=r?new Set(Zo(t,r)):void 0,c={};return jt(c,t,Reflect.ownKeys(Ge(t)),e&&((u,l)=>a&&!a.has(l)?u:new e({type:"optional",innerType:u}))),F(t,je(t._zod.def,{shape:c,checks:[]}))}function BA(e,t,r){let i=r?new Set(Zo(t,r)):void 0,n={};return jt(n,t,Reflect.ownKeys(Ge(t)),(o,s)=>i&&!i.has(s)?o:new e({type:"nonoptional",innerType:o})),F(t,je(t._zod.def,{shape:n}))}function ue(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 Bu(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 ve(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function mn(e){return typeof e=="string"?e:e?.message}function $n(e){let t=[];for(let r of e??[]){let i=r._zod.def;if(!/_(length|size)$|_equals$/.test(i.check))break;let n=i.maximum??i.length??i.size;n>=0&&t.push([n,r])}return t}function Ur(e,t,r){var i;for(let n=t;n<e.length;n++)(i=e[n]).schema??(i.schema=r)}function ye(e,t,r){var i;let n=e.inst?._zod?.traits;n?.has("$ZodType")&&(n.has("$ZodCheck")?(i=e).schema??(i.schema=e.inst):e.schema=e.inst);let o=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,s=e.message?e.message:mn(e.inst?._zod.def?.error?.(e))??mn(o?.(e))??mn(t?.error?.(e))??mn(r.customError?.(e))??mn(r.localeError?.(e))??"Invalid input",a={};for(let c of Object.keys(e))c==="inst"||c==="schema"||c==="continue"||c==="input"||c==="__proto__"||(a[c]=e[c]);return a.path??(a.path=[]),a.message=s,t?.reportInput&&(a.input=e.input),a}function Lr(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}var qA=/[\uD800-\uDBFF]/;function Ct(e){let t=e.length;if(!qA.test(e))return t;let r=t;for(let i=0;i<t-1;i++)(e.charCodeAt(i)&64512)===55296&&(e.charCodeAt(i+1)&64512)===56320&&(r--,i++);return r}function Rr(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function _(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 bn(...e){let[t,r,i]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:i}:{...t}}function VA(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function Oy(e){let t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r}function Ay(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function KA(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return Oy(t+r)}function JA(e){return Ay(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function HA(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 i=0;i<t.length;i+=2)r[i/2]=Number.parseInt(t.slice(i,i+2),16);return r}function WA(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Uu=class{constructor(...t){}};function qu(e,t){for(let r in t){let i=Object.getOwnPropertyDescriptor(t,r);i.get?Object.defineProperty(e,r,{...i,enumerable:!1}):YA(e,r,i.value)}}function mt(e,t,r,i=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:i,value:r}),r}function Zr(e,t,r){return mt(e,t,r,!1)}function GA(e,t){for(let r in e){let i=e[r];Object.defineProperty(t,r,{configurable:!0,enumerable:!0,get(){return mt(this,r,i(this))},set(n){mt(this,r,n)}})}return t}function YA(e,t,r){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?r:mt(this,t,r.bind(this))},set(i){mt(this,t,i)}})}function XA(e,t){let r=Object.getPrototypeOf(e);return t in r?void 0:r}var Eu,pt=!1,QA={configurable:!0,get(){pt=!0}};function L(e,t,r){let i=Object.getPrototypeOf(e._zod);if(t in i&&Eu!==e._zod){Eu=void 0;return}Eu=e._zod,Object.defineProperty(i,t,{configurable:!0,get(){Object.defineProperty(this,t,QA);let n=pt;pt=!1;try{let o=r(this);return pt?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:o}),pt=pt||n,o}catch(o){throw delete this[t],pt=pt||n,o}},set(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})}function eN(e,t,r,i){let n=XA(e,t);n&&Object.defineProperty(n,t,{configurable:!0,get(){let o={configurable:!0,writable:!0,enumerable:i,value:void 0};return Object.defineProperty(this,t,o),o.value=r(this),Object.defineProperty(this,t,o),o.value},set(o){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:i,value:o})}})}var Mo="~constantCatch";function Vu(e){let t=()=>e;return t[Mo]=!0,t}var Ny,Ju=Object.freeze({status:"aborted"}),Ku={value:void 0,enumerable:!1},zy="captureStackTrace"in Error?Error:null;function tN(e){let t=zy;if(t){let r=t.stackTraceLimit;if(typeof r=="number"){try{t.stackTraceLimit=0}catch{return zy=null,new e}try{return new e}finally{t.stackTraceLimit=r}}}return new e}function h(e,t,r,i){let n={};function o(f){this.def=f,this.constr=d,this.traits=new Set}o.prototype=n;let s=r,a=s&&new WeakSet;function c(f,p){if(f._zod){if(f._zod.traits.has(e))return}else{Ku.value=new o(p);try{Object.defineProperty(f,"_zod",Ku)}finally{Ku.value=void 0}}if(f._zod.traits.add(e),t(f,p),a){let m=Object.getPrototypeOf(f),y=f._zod.constr.prototype,w=m;for(;w&&w!==y;)w=Object.getPrototypeOf(w);let k=w??m;a.has(k)||(a.add(k),qu(k,s))}let g=d.prototype;for(let m in g)Object.prototype.hasOwnProperty.call(g,m)&&(m in f||(f[m]=g[m].bind(f)))}let u=i?.Parent??Object;class l extends u{}Object.defineProperty(l,"name",{value:e});function d(f){let p=i?.Parent?tN(l):this;c(p,f);let g=p._zod.deferred;if(g){for(let y of g)y();p._zod.deferred=void 0}let m=globalThis.__zod_globalConfig?.postProcessor;return m&&m(p),p}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:f=>i?.Parent&&f instanceof i.Parent?!0:f?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var Hu=Symbol("zod_brand"),$e=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},gt=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(Ny=globalThis).__zod_globalConfig??(Ny.__zod_globalConfig={});var re=globalThis.__zod_globalConfig;function Y(e){return e&&Object.assign(re,e),re}function nN(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,hn,2)),e.message}function rN(e){this._zod.message=e}var iN={get:nN,set:rN,enumerable:!0,configurable:!0},Gu={value:void 0,enumerable:!1},Py=new WeakSet([Object.prototype,Error.prototype]),Dy=(e,t)=>{e.name="$ZodError",Gu.value=t,Object.defineProperty(e,"issues",Gu),Gu.value=void 0,Object.defineProperty(e,"message",iN);let r=Object.getPrototypeOf(e);Py.has(r)||(Py.add(r),Object.defineProperty(r,"toString",{configurable:!0,enumerable:!1,get(){let i=()=>this.message;return Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0})}}))},Yu=h("$ZodError",Dy),be=h("$ZodError",Dy,void 0,{Parent:Error});function oN(e,t,r){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:r(),writable:!0,enumerable:!0,configurable:!0}):e[t]=r()),e[t]}function Mr(e,t=r=>r.message){let r={},i=[];for(let n of e.issues)n.path.length>0?oN(r,n.path[0],()=>[]).push(t(n)):i.push(t(n));return{formErrors:i,fieldErrors:r}}function Fr(e,t=r=>r.message){let r={_errors:[]},i=(n,o=[])=>{for(let s of n.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>i({issues:a},[...o,...s.path]));else if(s.code==="invalid_key")i({issues:s.issues},[...o,...s.path]);else if(s.code==="invalid_element")i({issues:s.issues},[...o,...s.path]);else{let a=[...o,...s.path];if(a.length===0)r._errors.push(t(s));else{let c=r,u=0;for(;u<a.length;){let l=a[u],d=u===a.length-1;if(l==="_errors"){d&&c._errors.push(t(s)),u++;continue}Object.prototype.hasOwnProperty.call(c,l)||Object.defineProperty(c,l,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let f=c[l];d&&f._errors.push(t(s)),c=f,u++}}}};return i(e),r}function Xu(e,t=r=>r.message){let r={errors:[]},i=(n,o=[])=>{var s;for(let a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(c=>i({issues:c},[...o,...a.path]));else if(a.code==="invalid_key")i({issues:a.issues},[...o,...a.path]);else if(a.code==="invalid_element")i({issues:a.issues},[...o,...a.path]);else{let c=[...o,...a.path];if(c.length===0){r.errors.push(t(a));continue}let u=r,l=0;for(;l<c.length;){let d=c[l],f=l===c.length-1;typeof d=="string"?(u.properties??(u.properties={}),Object.prototype.hasOwnProperty.call(u.properties,d)||Object.defineProperty(u.properties,d,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),u=u.properties[d]):(u.items??(u.items=[]),(s=u.items)[d]??(s[d]={errors:[]}),u=u.items[d]),f&&u.errors.push(t(a)),l++}}};return i(e),r}function Ty(e){let t=[],r=e.map(i=>typeof i=="object"?i.key:i);for(let i of r)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function Qu(e){let t=[],r=[...e.issues].sort((i,n)=>(i.path??[]).length-(n.path??[]).length);for(let i of r)t.push(`\u2716 ${i.message}`),i.path?.length&&t.push(` \u2192 at ${Ty(i.path)}`);return t.join(`
139
+ `)}function Fo(e,t){return{callee:t?.callee??e,Err:t?.Err}}var kn=e=>{let t=(r,i,n,o)=>{let s=n?{...n,async:!1}:{async:!1},a=r._zod.run({value:i,issues:[]},s);if(a instanceof Promise)throw new $e;if(a.issues.length){let c=new(o?.Err??e)(a.issues.map(u=>ye(u,s,Y())));throw Ro(c,o?.callee??t),c}return a.value};return t},Bo=kn(be),_n=e=>{let t=async(r,i,n,o)=>{let s=n?{...n,async:!0}:{async:!0},a=r._zod.run({value:i,issues:[]},s);if(a instanceof Promise&&(a=await a),a.issues.length){let c=new(o?.Err??e)(a.issues.map(u=>ye(u,s,Y())));throw Ro(c,o?.callee??t),c}return a.value};return t},qo=_n(be),wn=e=>(t,r,i)=>{let n=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new $e;return o.issues.length?jy(e,o.issues,n):{success:!0,data:o.value}},aN=wn(be);function jy(e,t,r){let i;return{success:!1,get error(){return i||(i=new e(t.map(n=>ye(n,r,Y()))),t=void 0,r=void 0),i},set error(n){i=n,t=void 0,r=void 0}}}var Sn=e=>async(t,r,i)=>{let n=i?{...i,async:!0}:{async:!0},o=t._zod.run({value:r,issues:[]},n);return o instanceof Promise&&(o=await o),o.issues.length?jy(e,o.issues,n):{success:!0,data:o.value}},cN=Sn(be),uN=Symbol.for("zod.compile.invalid"),lN=Symbol.for("zod.compile.fallback"),Br=((e,t,r)=>{let i=e._zod.bag.validator;if(i!==void 0){if(i(t)!==uN)return!0;if(i.definite===!0&&r===void 0)return!1}return dN(e,t,r)});function dN(e,t,r){let i=r?{...r,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},n=e._zod.bag.fallbackRun,o;if(n?(i[lN]=!0,o=n({value:t,issues:[]},i)):o=e._zod.run({value:t,issues:[]},i),o instanceof Promise)throw new $e;return o.issues.length===0}var qr=async(e,t,r)=>{let i=r?{...r,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},n=e._zod.run({value:t,issues:[]},i);return n instanceof Promise&&(n=await n),n.issues.length===0},Vo=e=>{let t=kn(e),r=(i,n,o,s)=>{let a=o?{...o,direction:"backward"}:{direction:"backward"};return t(i,n,a,Fo(r,s))};return r},fN=Vo(be),Ko=e=>{let t=kn(e),r=(i,n,o,s)=>t(i,n,o,Fo(r,s));return r},pN=Ko(be),Jo=e=>{let t=_n(e),r=async(i,n,o,s)=>{let a=o?{...o,direction:"backward"}:{direction:"backward"};return await t(i,n,a,Fo(r,s))};return r},mN=Jo(be),Ho=e=>{let t=_n(e),r=async(i,n,o,s)=>await t(i,n,o,Fo(r,s));return r},gN=Ho(be),Wo=e=>(t,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return wn(e)(t,r,n)},hN=Wo(be),Go=e=>(t,r,i)=>wn(e)(t,r,i),vN=Go(be),Yo=e=>async(t,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return Sn(e)(t,r,n)},yN=Yo(be),Xo=e=>async(t,r,i)=>Sn(e)(t,r,i),$N=Xo(be);var ze={};Ke(ze,{anyString:()=>Il,base64:()=>vl,base64url:()=>yl,bigint:()=>Al,boolean:()=>Nl,browserEmail:()=>ON,cidrv4:()=>gl,cidrv6:()=>hl,creditCard:()=>Qo,cuid:()=>tl,cuid2:()=>nl,currencyCode:()=>_l,date:()=>wl,datetime:()=>xl,domain:()=>bl,duration:()=>cl,e164:()=>kl,email:()=>ll,emoji:()=>dl,extendedDuration:()=>bN,guid:()=>ul,hex:()=>jl,hostname:()=>$l,html5Email:()=>SN,httpProtocol:()=>Vr,iban:()=>es,idnEmail:()=>IN,integer:()=>Kr,ipv4:()=>fl,ipv6:()=>pl,ksuid:()=>ol,lowercase:()=>Dl,mac:()=>ml,md5_base64:()=>PN,md5_base64url:()=>DN,md5_hex:()=>zN,nanoid:()=>sl,nanoidOfLength:()=>al,null:()=>zl,number:()=>Xe,rfc5322Email:()=>xN,sha1_base64:()=>jN,sha1_base64url:()=>EN,sha1_hex:()=>TN,sha256_base64:()=>UN,sha256_base64url:()=>LN,sha256_hex:()=>CN,sha384_base64:()=>ZN,sha384_base64url:()=>MN,sha384_hex:()=>RN,sha512_base64:()=>BN,sha512_base64url:()=>qN,sha512_hex:()=>FN,string:()=>Ol,time:()=>Sl,ulid:()=>rl,undefined:()=>Pl,unicodeEmail:()=>Ey,uppercase:()=>Tl,uuid:()=>Ut,uuid4:()=>kN,uuid6:()=>_N,uuid7:()=>wN,xid:()=>il});var tl=/^[cC][0-9a-z]{6,}$/,nl=/^[0-9a-z]+$/,rl=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,il=/^[0-9a-vA-V]{20}$/,ol=/^[A-Za-z0-9]{27}$/,sl=/^[a-zA-Z0-9_-]{21}$/;function al(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var cl=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,bN=/^[-+]?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)?)??$/,ul=/^([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})$/,Ut=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)$/,kN=Ut(4),_N=Ut(6),wN=Ut(7),ll=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,SN=/^[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])?)*$/,xN=/^(([^<>()\[\]\\.,;:\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,}))$/,Ey=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,IN=Ey,ON=/^[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])?)*$/,AN="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function dl(){return new RegExp(AN,"u")}var fl=/^(?:(?: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])$/,pl=/^(([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}|:))$/,ml=e=>{let t=Ne(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},gl=/^((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])$/,hl=/^(([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}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,vl=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,yl=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,$l=/^(?=.{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])?)*\.?$/,bl=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,Vr=/^https?$/,kl=/^\+[1-9]\d{6,14}$/,Qo=/^\d(?:[ -]?\d){11,18}$/,_l=/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,es=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/,Cy="(?:(?:\\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])))";function NN(e){return new RegExp(`^${e}$`)}var wl=NN(Cy);function el(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}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Sl(e){return new RegExp(`^${el(e)}$`)}function xl(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let r=`${el({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,i=e.local?`${r}|${el({precision:e.precision})}`:r;return new RegExp(`^${Cy}T(?:${i})$`)}var Il=/^[\s\S]{0,}$/,Ol=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Al=/^-?\d+n?$/,Kr=/^-?\d+$/,Xe=/^-?\d+(?:\.\d+)?$/,Nl=/^(?:true|false)$/i,zl=/^null$/i;var Pl=/^undefined$/i;var Dl=/^[^A-Z]*$/,Tl=/^[^a-z]*$/,jl=/^[0-9a-fA-F]*$/;function Jr(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Hr(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var zN=/^[0-9a-fA-F]{32}$/,PN=Jr(22,"=="),DN=Hr(22),TN=/^[0-9a-fA-F]{40}$/,jN=Jr(27,"="),EN=Hr(27),CN=/^[0-9a-fA-F]{64}$/,UN=Jr(43,"="),LN=Hr(43),RN=/^[0-9a-fA-F]{96}$/,ZN=Jr(64,""),MN=Hr(64),FN=/^[0-9a-fA-F]{128}$/,BN=Jr(86,"=="),qN=Hr(86);var K=h("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),El=e=>{let t=e.value;return!Lo(t)&&t.size!==void 0},Cl=e=>{let t=e.value;return!Lo(t)&&t.length!==void 0},ts={number:"number",bigint:"bigint",object:"date"},rs=h("$ZodCheckLessThan",(e,t)=>{K.init(e,t);let r=ts[typeof t.value];e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:ts[typeof i.value]??r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),is=h("$ZodCheckGreaterThan",(e,t)=>{K.init(e,t);let r=ts[typeof t.value];e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:ts[typeof i.value]??r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ul=h("$ZodCheckMultipleOf",(e,t)=>{K.init(e,t),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"?t.value!==BigInt(0)&&r.value%t.value===BigInt(0):Dr(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})}}),Ll=h("$ZodCheckNumberFormat",(e,t)=>{K.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),i=r?"int":"number",[n,o]=Er[t.format];e._zod.check=s=>{let a=s.value;if(r){if(!Number.isInteger(a)){s.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?s.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):s.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}a<n&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),a>o&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Rl=h("$ZodCheckBigIntFormat",(e,t)=>{K.init(e,t);let[r,i]=Cr[t.format];e._zod.check=n=>{let o=n.value;o<r&&n.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),o>i&&n.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Zl=h("$ZodCheckMaxSize",(e,t)=>{var r;K.init(e,t),(r=e._zod.def).when??(r.when=El),e._zod.check=i=>{let n=i.value;n.size<=t.maximum||i.issues.push({origin:Lr(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Ml=h("$ZodCheckMinSize",(e,t)=>{var r;K.init(e,t),(r=e._zod.def).when??(r.when=El),e._zod.check=i=>{let n=i.value;n.size>=t.minimum||i.issues.push({origin:Lr(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Fl=h("$ZodCheckSizeEquals",(e,t)=>{var r;K.init(e,t),(r=e._zod.def).when??(r.when=El),e._zod.check=i=>{let n=i.value,o=n.size;if(o===t.size)return;let s=o>t.size;i.issues.push({origin:Lr(n),...s?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Bl=h("$ZodCheckMaxLength",(e,t)=>{var r;K.init(e,t),(r=e._zod.def).when??(r.when=Cl),e._zod.check=i=>{let n=i.value,o=n.length;if((typeof n=="string"&&o>t.maximum?Ct(n):o)<=t.maximum)return;let a=Rr(n);i.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),ql=h("$ZodCheckMinLength",(e,t)=>{var r;K.init(e,t),(r=e._zod.def).when??(r.when=Cl),e._zod.check=i=>{let n=i.value,o=n.length;if((typeof n=="string"&&o>=t.minimum&&o<t.minimum*2?Ct(n):o)>=t.minimum)return;let a=Rr(n);i.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Vl=h("$ZodCheckLengthEquals",(e,t)=>{var r;K.init(e,t),(r=e._zod.def).when??(r.when=Cl),e._zod.check=i=>{let n=i.value,o=n.length,s=typeof n=="string"&&o>=t.length&&o<=t.length*2?Ct(n):o;if(s===t.length)return;let a=Rr(n),c=s>t.length;i.issues.push({origin:a,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),xn=h("$ZodCheckStringFormat",(e,t)=>{var r,i;K.init(e,t),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})}):(i=e._zod).check??(i.check=()=>{})}),Kl=h("$ZodCheckRegex",(e,t)=>{xn.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})}}),Jl=h("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Dl),xn.init(e,t)}),Hl=h("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Tl),xn.init(e,t)}),Wl=h("$ZodCheckIncludes",(e,t)=>{K.init(e,t);let r=Ne(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position},}${r}`:r);t.pattern=i,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})}}),Gl=h("$ZodCheckStartsWith",(e,t)=>{K.init(e,t);let r=new RegExp(`^${Ne(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),Yl=h("$ZodCheckEndsWith",(e,t)=>{K.init(e,t);let r=new RegExp(`.*${Ne(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function ns(e,t,r){e.issues.length&&t.issues.push(...ve(r,e.issues))}var Xl=h("$ZodCheckProperty",(e,t)=>{K.init(e,t),e._zod.check=r=>{let i=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(n=>ns(n,r,t.property));ns(i,r,t.property)}}),Ql=h("$ZodCheckProperties",(e,t)=>{K.init(e,t),Zr(e,Symbol.iterator,function*(){yield e});let r;e._zod.check=i=>{if(i.value==null){i.issues.push({expected:"object",code:"invalid_type",input:i.value,inst:e});return}r??(r=Reflect.ownKeys(t.shape).map(s=>[s,t.shape[s]]));let n=i.value,o;for(let[s,a]of r){let c=a._zod.run({value:n[s],issues:[]},{});c instanceof Promise?(o??(o=[]),o.push(c.then(u=>ns(u,i,s)))):ns(c,i,s)}if(o)return Promise.all(o).then(()=>{})}}),ed=h("$ZodCheckMimeType",(e,t)=>{K.init(e,t);let r=new Set(t.mime);e._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),td=h("$ZodCheckOverwrite",(e,t)=>{K.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var Lt=class{constructor(t=[],r={}){this.content=[],this.indent=0,this.args=t,this.closed=r}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let i=t.split(`
140
+ `).filter(s=>s),n=Math.min(...i.map(s=>s.length-s.trimStart().length)),o=i.map(s=>s.slice(n)).map(s=>" ".repeat(this.indent*2)+s);for(let s of o)this.content.push(s)}compile(){let t=Function,r=this?.content??[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
141
+ ${r.join(`
142
+ `)}
143
+ };`)(...Object.values(this.closed))}};var nd={major:4,minor:6,patch:7};var E=h("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=nd;let i=e._zod.def.checks,n=e._zod.traits.has("$ZodCheck")?[e,...i??[]]:i?.length?[...i]:[];for(let o of n)for(let s of o._zod.onattach)s(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let o=(a,c,u)=>{if(a.memo)return a;let l=ue(a),d;for(let f of c){if(f._zod.def.when){if(Bu(a)||!f._zod.def.when(a))continue}else if(l)continue;let p=a.issues.length,g=f._zod.check(a);if(g instanceof Promise&&u?.async===!1)throw new $e;if(d||g instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await g,a.issues.length!==p&&(Ur(a.issues,p,e),l||(l=ue(a,p)))});else{if(a.issues.length===p)continue;Ur(a.issues,p,e),l||(l=ue(a,p))}}return d?d.then(()=>a):a},s=(a,c,u)=>{if(ue(a))return a.aborted=!0,a;let l=o(c,n,u);if(l instanceof Promise){if(u.async===!1)throw new $e;return l.then(d=>e._zod.parse(d,u))}return e._zod.parse(l,u)};e._zod.run=(a,c)=>{if(c.skipChecks)return e._zod.parse(a,c);if(c.direction==="backward"){let l=e._zod.parse({value:a.value,issues:[]},{...c,skipChecks:!0});return l instanceof Promise?l.then(d=>s(d,a,c)):s(l,a,c)}let u=e._zod.parse(a,c);if(u instanceof Promise){if(c.async===!1)throw new $e;return u.then(l=>o(l,n,c))}return o(u,n,c)}}},{get"~standard"(){return Zr(this,"~standard",us(this))},set"~standard"(e){mt(this,"~standard",e)}}),Qy=(e,t)=>e.issues.length?{issues:e.issues.map(r=>ye(r,t,Y()))}:{value:e.value};async function VN(e,t){let r={async:!0};return Qy(await e._zod.run({value:t,issues:[]},r),r)}function us(e){return{validate:t=>{let r={async:!1};try{let i=e._zod.run({value:t,issues:[]},r);if(!(i instanceof Promise))return Qy(i,r)}catch{}return VN(e,t)},vendor:"zod",version:1}}var Rt=h("$ZodString",(e,t)=>{E.init(e,t),e._zod.pattern=t.pattern??Il,e._zod.parse=(r,i)=>{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}}),B=h("$ZodStringFormat",(e,t)=>{xn.init(e,t),Rt.init(e,t)}),id=h("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=ul),B.init(e,t)}),od=h("$ZodUUID",(e,t)=>{if(t.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Ut(i))}else t.pattern??(t.pattern=Ut());B.init(e,t)}),sd=h("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=ll),B.init(e,t)}),ad=1,Wr=2;function cd(e){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function ls(e,t){return!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t)?cd(e)||Wr:e$(e,t)}function e$(e,t){if(!t.normalize&&t.protocol?.source===Vr.source&&!/^https?:\/\//i.test(e))return ad;try{if(typeof URL<"u"){let r=URL;if(typeof r.parse=="function")return r.parse(e)??Wr}return new URL(e)}catch{return Wr}}var KN=/[\t\n\r]/g;function Gr(e){return e.replace(KN,"")}function ds(e,t){return t.lastIndex=0,t.test(e.hostname)}function fs(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var ud=h("$ZodURL",(e,t)=>{B.init(e,t),e._zod.check=r=>{try{let i=r.value.trim(),n=ls(i,t);if(n===ad){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}if(n===Wr){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort});return}if(n===!0){r.value=Gr(i);return}t.hostname&&!ds(n,t.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&&!fs(n,t.protocol)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort}),r.value=t.normalize?n.href:Gr(i);return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),ld=h("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=dl()),B.init(e,t)}),dd=h("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?sl:al(t.length)),B.init(e,t)}),fd=h("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=tl),B.init(e,t)}),pd=h("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=nl),B.init(e,t)}),md=h("$ZodULID",(e,t)=>{t.pattern??(t.pattern=rl),B.init(e,t)}),gd=h("$ZodXID",(e,t)=>{t.pattern??(t.pattern=il),B.init(e,t)}),hd=h("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=ol),B.init(e,t)}),vd=h("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=xl(t)),B.init(e,t)}),yd=h("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=wl),B.init(e,t)}),$d=h("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Sl(t)),B.init(e,t)}),bd=h("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=cl),B.init(e,t)}),kd=h("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=fl),B.init(e,t)}),JN=/^[0-9a-fA-F:.]+$/;function Yr(e){return JN.test(e)?cd(`http://[${e}]`):!1}var _d=h("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=pl),B.init(e,t),e._zod.check=r=>{Yr(r.value)||r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}),wd=h("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=ml(t.delimiter)),B.init(e,t)}),Sd=h("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=gl),B.init(e,t)});function ps(e){let t=e.split("/");if(t.length!==2)return!1;let[r,i]=t;if(!i)return!1;let n=Number(i);return`${n}`!==i||n<0||n>128?!1:Yr(r)}var xd=h("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=hl),B.init(e,t),e._zod.check=r=>{ps(r.value)||r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}});function Xr(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var ms=/^[0-9a-zA-Z+/]*={0,2}$/,Id=h("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=ms),B.init(e,t),e._zod.check=r=>{Xr(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}}),Qr=/^[A-Za-z0-9_-]*$/;function gs(e){if(!Qr.test(e))return!1;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Xr(r)}var Od=h("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Qr),B.init(e,t),e._zod.check=r=>{gs(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Ad=h("$ZodE164",(e,t)=>{t.pattern??(t.pattern=kl),B.init(e,t)}),HN=/[- ]/g;function WN(e){let t=e.length,r=1,i=0;for(;t;){let n=e.charCodeAt(--t)-48;r^=1,i+=r?[0,2,4,6,8,1,3,5,7,9][n]:n}return i%10===0}function hs(e){return Qo.test(e)?WN(e.replace(HN,"")):!1}var Nd=h("$ZodCreditCard",(e,t)=>{t.pattern??(t.pattern=Qo),B.init(e,t),e._zod.check=r=>{hs(r.value)||r.issues.push({code:"invalid_format",format:"credit_card",input:r.value,inst:e,continue:!t.abort})}});function GN(e){let t=0,r=e.length;for(let i=4;i<r;i++){let n=e.charCodeAt(i);t=(n>=65?t*100+(n-55):t*10+(n-48))%97}for(let i=0;i<4;i++){let n=e.charCodeAt(i);t=(n>=65?t*100+(n-55):t*10+(n-48))%97}return t===1}function vs(e){return es.test(e)?GN(e):!1}var zd=h("$ZodIBAN",(e,t)=>{t.pattern??(t.pattern=es),B.init(e,t),e._zod.check=r=>{vs(r.value)||r.issues.push({code:"invalid_format",format:"iban",input:r.value,inst:e,continue:!t.abort})}});function ys(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[i]=r;if(!i)return!1;let n=JSON.parse(atob(i));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var Pd=h("$ZodJWT",(e,t)=>{B.init(e,t),e._zod.check=r=>{ys(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Dd=h("$ZodCustomStringFormat",(e,t)=>{B.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})}}),$s=h("$ZodNumber",(e,t)=>{E.init(e,t),e._zod.pattern=Xe,e._zod.parse=(r,i)=>{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 o=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:String(n):void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...o?{received:o}:{}}),r}}),Td=h("$ZodNumberFormat",(e,t)=>{Ll.init(e,t),$s.init(e,t)}),ei=h("$ZodBoolean",(e,t)=>{E.init(e,t),e._zod.pattern=Nl,e._zod.parse=(r,i)=>{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}}),bs=h("$ZodBigInt",(e,t)=>{E.init(e,t),e._zod.pattern=Al,e._zod.parse=(r,i)=>{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}}),jd=h("$ZodBigIntFormat",(e,t)=>{Rl.init(e,t),bs.init(e,t)}),Ed=h("$ZodSymbol",(e,t)=>{E.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),Cd=h("$ZodUndefined",(e,t)=>{E.init(e,t),e._zod.pattern=Pl,e._zod.values=new Set([void 0]),e._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),Ud=h("$ZodNull",(e,t)=>{E.init(e,t),e._zod.pattern=zl,e._zod.values=new Set([null]),e._zod.parse=(r,i)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),Ld=h("$ZodAny",(e,t)=>{E.init(e,t),e._zod.parse=r=>r}),Rd=h("$ZodUnknown",(e,t)=>{E.init(e,t),e._zod.parse=r=>r}),Zd=h("$ZodNever",(e,t)=>{E.init(e,t),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),Md=h("$ZodVoid",(e,t)=>{E.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),Fd=h("$ZodDate",(e,t)=>{E.init(e,t),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,o=n instanceof Date;return o&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...o?{received:"Invalid Date"}:{},inst:e}),r}});function Bd(e,t){let r=$n(e._zod.def.checks);if(!r.length)return;let i=Math.min(...r.map(o=>o[0])),n=e._zod.parse;e._zod.parse=(o,s)=>{let a=t(o.value);if(a>i&&!s?.skipChecks&&s?.direction!=="backward"){for(let[c,u]of $n(e._zod.def.checks))if(a>c&&u._zod.def.when(o)){let l=o.issues.length;return u._zod.check(o),o.issues[l].continue=!1,Ur(o.issues,l,e),o}}return n(o,s)}}var YN=e=>Array.isArray(e)?e.length:-1,XN=e=>e instanceof Map?e.size:-1,QN=e=>e instanceof Set?e.size:-1;function Ly(e,t,r){e.issues.length&&t.issues.push(...ve(r,e.issues)),t.value[r]=e.value}var qd=h("$ZodArray",(e,t)=>{E.init(e,t);let r=re.memoizer;r?.attach(e),e._zod.parse=(i,n)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),i;i.value=r?r.alloc(e,i,Array(o.length),n):Array(o.length);let s=[],a=n?.abortEarly;for(let c=0;c<o.length;c++){let u=o[c],l=t.element._zod.run({value:u,issues:[]},n);if(l instanceof Promise)s.push(l.then(d=>Ly(d,i,c)));else if(Ly(l,i,c),a&&l.issues.length!==0&&ue(l))break}return s.length?Promise.all(s).then(()=>i):i},Bd(e,YN)});function cs(e,t,r,i,n,o){let s=r in i,a=o==="optional";if(!(!s&&a&&n==="optional")){if(e.issues.length){if(n!==void 0&&a&&!s)return;t.issues.push(...ve(r,e.issues))}if(!s&&n===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?(s||n==="defaulted"&&!a)&&(t.value[r]=void 0):t.value[r]=e.value}}var ez=[];function t$(e){let t=Object.keys(e.shape),r=Object.getOwnPropertySymbols(e.shape),i=r.length?r:ez,n=i.length?[...t,...i]:t;for(let s of n)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(s)}": expected a Zod schema`);let o=Fu(e.shape);return{...e,allKeys:n,symbolKeys:i,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(o)}}function n$(e,t,r,i,n,o,s){let a=[],c=n.keySet,u=n.catchall._zod,l=u.def.type,d=u.optin,f=u.optout,p=0;for(let g in t){if(s&&r.issues.length!==p){if(ue(r,p))break;p=r.issues.length}if(c.has(g))continue;if(g==="__proto__"){l==="never"&&a.push(g);continue}if(l==="never"){a.push(g);continue}let m=u.run({value:t[g],issues:[]},i);m instanceof Promise?e.push(m.then(y=>cs(y,r,g,t,d,f))):cs(m,r,g,t,d,f)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o,continue:!0}),e.length?Promise.all(e).then(()=>r):r}var r$=h("$ZodObject",(e,t)=>{E.init(e,t);let r=Object.getOwnPropertyDescriptor(t,"shape"),i=r?.get?r.get.raw:t.shape??{};if(i){let u=()=>{let l={...i};return Object.defineProperty(t,"shape",{value:l}),u.raw=l,l};u.raw=i,Object.defineProperty(t,"shape",{get:u})}let n=vn(()=>t$(t));L(e,"propValues",u=>{let l=u.def.shape,d={};for(let f in l){let p=l[f]._zod;if(p.values){Object.prototype.hasOwnProperty.call(d,f)||oe(d,f,new Set);for(let g of p.values)d[f].add(g);p.optin!==void 0&&d[f].add(void 0)}}return d});let o=Et,s=t.catchall,a,c=re.memoizer;c?.attach(e),e._zod.parse=(u,l)=>{a??(a=n.value);let d=u.value;if(!o(d))return u.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),u;u.value=c?c.alloc(e,u,{},l):{};let f=[],p=a.shape,g=l?.abortEarly,m=u.issues.length;for(let y of a.allKeys){if(g&&u.issues.length!==m){if(ue(u,m))break;m=u.issues.length}if(y==="__proto__")continue;let w=p[y],k=w._zod.optin,S=w._zod.optout,I=w._zod.run({value:d[y],issues:[]},l);I instanceof Promise?f.push(I.then(z=>cs(z,u,y,d,k,S))):cs(I,u,y,d,k,S)}return s?n$(f,d,u,l,n.value,e,g===!0):f.length?Promise.all(f).then(()=>u):u}}),Vd=h("$ZodObjectJIT",(e,t)=>{r$.init(e,t);let r=e._zod.parse,i=vn(()=>t$(t)),n=re.memoizer,o=p=>{let g=i.value,m=g.symbolKeys,y=new Lt(["payload","ctx"],{shape:p,inst:e,memo:n,syms:m}),w=z=>`shape[${z}]._zod.run({ value: input[${z}], issues: [] }, ctx)`,k=(z,O)=>`
144
+ let ${z}_ab = false;
145
+ for (let i = 0; i < ${z}.issues.length; i++) {
146
+ const iss = ${z}.issues[i];
147
+ iss.path = iss.path ? [${O}, ...iss.path] : [${O}];
148
+ payload.issues.push(iss);
149
+ if (iss.continue !== true) ${z}_ab = true;
150
+ }
151
+ if (${z}_ab && ctx && ctx.abortEarly) {
152
+ payload.value = newResult;
153
+ return payload;
154
+ }`;y.write("const input = payload.value;");let S=Object.create(null),I=0;for(let z of g.allKeys)S[z]=`key_${I++}`;y.write(n?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let z of g.allKeys){if(z==="__proto__")continue;let O=S[z],C=typeof z=="symbol"?`syms[${m.indexOf(z)}]`:ce(z),P=`${C} in input`,G=p[z],Ie=G?._zod?.optin,Ve=Ie!==void 0,X=G?._zod?.optout==="optional";if(y.write(`const ${O} = ${w(C)};`),Ve&&X){let Ui=Ie==="optional"?`${O}_present`:`${O}.value !== undefined || ${O}_present`;y.write(`
155
+ const ${O}_present = ${P};
156
+ if (!${O}.issues.length || ${O}_present) {
157
+ if (${O}.issues.length) {${k(O,C)}
158
+ }
159
+
160
+ if (${Ui}) {
161
+ newResult[${C}] = ${O}.value;
162
+ }
163
+ }
164
+
165
+ `)}else Ve?(y.write(`
166
+ if (${O}.issues.length) {${k(O,C)}
167
+ }
168
+ `),Ie==="defaulted"?y.write(`newResult[${C}] = ${O}.value;`):y.write(`
169
+ if (${O}.value !== undefined || ${P}) {
170
+ newResult[${C}] = ${O}.value;
171
+ }
172
+ `)):y.write(`
173
+ const ${O}_present = ${P};
174
+ if (${O}.issues.length) {${k(O,C)}
175
+ }
176
+ if (!${O}_present && !${O}.issues.length) {
177
+ payload.issues.push({
178
+ code: "invalid_type",
179
+ expected: "nonoptional",
180
+ input: undefined,
181
+ path: [${C}]
182
+ });
183
+ if (ctx && ctx.abortEarly) {
184
+ payload.value = newResult;
185
+ return payload;
186
+ }
187
+ }
188
+
189
+ if (${O}_present) {
190
+ newResult[${C}] = ${O}.value;
191
+ }
192
+
193
+ `)}return y.write("payload.value = newResult;"),y.write("return payload;"),y.compile()},s,a=Et,c=!re.jitless,l=c&&Zu.value,d=t.catchall,f;e._zod.parse=(p,g)=>{f??(f=i.value);let m=p.value;return a(m)?c&&l&&g?.async===!1&&g.jitless!==!0?(s||(s=o(t.shape)),p=s(p,g),d?n$([],m,p,g,f,e,g?.abortEarly===!0):p):r(p,g):(p.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),p)}});function Ry(e,t,r,i){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let n=e.filter(o=>!ue(o));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(o=>o.issues.map(s=>ye(s,i,Y())))}),t)}var ti=h("$ZodUnion",(e,t)=>{E.init(e,t),L(e,"optin",i=>i.def.options.some(n=>n._zod.optin==="defaulted")?"defaulted":i.def.options.some(n=>n._zod.optin!==void 0)?"optional":void 0),L(e,"optout",i=>i.def.options.some(n=>n._zod.optout==="optional")?"optional":void 0),L(e,"values",i=>{if(i.def.options.every(n=>n._zod.values))return new Set(i.def.options.flatMap(n=>Array.from(n._zod.values)))}),L(e,"pattern",i=>{if(i.def.options.every(n=>n._zod.pattern)){let n=i.def.options.map(o=>o._zod.pattern);return new RegExp(`^(${n.map(o=>Ye(o.source)).join("|")})$`)}});let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,n)=>{if(r)return r(i,n);let o=!1,s=[];for(let a of t.options){let c=a._zod.run({value:i.value,issues:[]},n);if(c instanceof Promise)s.push(c),o=!0;else{if(c.issues.length===0)return c;s.push(c)}}return o?Promise.all(s).then(a=>Ry(a,i,e,n)):Ry(s,i,e,n)}});function Zy(e,t,r,i){let n=[];for(let o=0;o<e.length;o++)e[o].issues.length===0&&n.push(o);return n.length===1?(t.value=e[n[0]].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(s=>ye(s,i,Y())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1,matches:n}),t)}var Kd=h("$ZodXor",(e,t)=>{ti.init(e,t),t.inclusive=!1;let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,n)=>{if(r)return r(i,n);let o=!1,s=[];for(let a of t.options){let c=a._zod.run({value:i.value,issues:[]},n);c instanceof Promise?(s.push(c),o=!0):s.push(c)}return o?Promise.all(s).then(a=>Zy(a,i,e,n)):Zy(s,i,e,n)}});function Jd(e,t){let r=e._zod,i=r.bag.optionsMap;i||(i=i$(r.def),r.bag.optionsMap=i);let n=i.get(t);if(n===null)throw new Error(`Ambiguous discriminator value "${String(t)}"`);return n}function i$(e){let t=new Map;for(let r of e.options){let i=r._zod.propValues?.[e.discriminator];if(!i||i.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(r)}"`);for(let n of i)if(t.has(n)){if(n!==void 0)throw new Error(`Duplicate discriminator value "${String(n)}"`);t.set(n,null)}else t.set(n,r)}return t}var Hd=h("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,ti.init(e,t);let r=e._zod.parse;L(e,"propValues",n=>{let o={},s=0;for(let a of n.def.options){let c=a._zod.propValues;if(!c||Object.keys(c).length===0)throw new Error(`Invalid discriminated union option at index "${n.def.options.indexOf(a)}"`);c[n.def.discriminator]?.has(void 0)&&s++;for(let[u,l]of Object.entries(c)){Object.prototype.hasOwnProperty.call(o,u)||oe(o,u,new Set);for(let d of l)o[u].add(d)}}return!n.def.unionFallback&&s>1&&o[n.def.discriminator]?.delete(void 0),o}),t.options.forEach((n,o)=>{let s=yn(n._zod.def);if(s&&!Object.prototype.hasOwnProperty.call(s,t.discriminator))throw new Error(`Invalid discriminated union option at index "${o}"`)});let i=vn(()=>i$(t));e._zod.parse=(n,o)=>{let s=n.value;if(!Et(s))return n.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),n;let a=s?.[t.discriminator],c=i.value.get(a);return c&&(a!==void 0||o.direction!=="backward")?c._zod.run(n,o):t.unionFallback||o.direction==="backward"?r(n,o):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(i.value.keys()).filter(u=>i.value.get(u)!==null),input:s,path:[t.discriminator],inst:e}),n)}}),Wd=h("$ZodIntersection",(e,t)=>{E.init(e,t),e._zod.parse=(r,i)=>{let n=r.value,o=t.left._zod.run({value:n,issues:[]},i),s=t.right._zod.run({value:n,issues:[]},i);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([c,u])=>My(r,c,u)):My(r,o,s)}});function In(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(Ae(e)&&Ae(t)){let r=Object.keys(t),i=Object.keys(e).filter(o=>r.indexOf(o)!==-1),n={...e,...t};Object.prototype.hasOwnProperty.call(n,"__proto__")&&delete n.__proto__;for(let o of i){if(o==="__proto__")continue;let s=In(e[o],t[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};n[o]=s.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 i=0;i<e.length;i++){let n=e[i],o=t[i],s=In(n,o);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function My(e,t,r){let i=new Map,n,o=new Map,s=(u,l)=>{let d;if(u.code==="unrecognized_keys"&&!u.path?.length)n??(n=u),d=u.keys;else if(u.code==="invalid_key"&&u.origin==="record"&&u.path?.length===1){let f=String(u.path[0]);o.has(f)||o.set(f,u),d=[f]}else return!1;for(let f of d)i.has(f)||i.set(f,{}),i.get(f)[l]=!0;return!0};for(let u of t.issues)s(u,"l")||e.issues.push(u);for(let u of r.issues)s(u,"r")||e.issues.push(u);let a=[...i].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(a.length){let u=n?a.filter(l=>n.keys.includes(l)):[];u.length&&e.issues.push({...n,keys:u});for(let l of a)!u.includes(l)&&o.has(l)&&e.issues.push(o.get(l))}let c=In(t.value,r.value);if(!c.valid){if(ue(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var ks=h("$ZodTuple",(e,t)=>{E.init(e,t);let r=t.items,i=re.memoizer;i?.attach(e),e._zod.parse=(n,o)=>{let s=n.value;if(!Array.isArray(s))return n.issues.push({input:s,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=i?i.alloc(e,n,[],o):[];let a=[],c=Fy(r,"optin"),u=Fy(r,"optout");if(!t.rest){if(s.length<c)return n.issues.push({code:"too_small",minimum:c,inclusive:!0,input:s,inst:e,origin:"array"}),n;s.length>r.length&&n.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:s,inst:e,origin:"array"})}let l=new Array(r.length),d=t.rest?o?.abortEarly:void 0,f=!1;for(let p=0;p<r.length;p++){let g=r[p]._zod.run({value:s[p],issues:[]},o);g instanceof Promise?a.push(g.then(m=>{l[p]=m})):(l[p]=g,d&&!f&&g.issues.length&&(f=ue(g)))}if(t.rest&&!f){let p=r.length-1,g=s.slice(r.length),m=n.issues.length;for(let y of g){if(d&&n.issues.length!==m){if(ue(n,m))break;m=n.issues.length}p++;let w=t.rest._zod.run({value:y,issues:[]},o);w instanceof Promise?a.push(w.then(k=>By(k,n,p))):By(w,n,p)}}return a.length?Promise.all(a).then(()=>qy(l,n,r,s,u)):qy(l,n,r,s,u)}});function Fy(e,t){for(let r=e.length-1;r>=0;r--)if(!(t==="optin"?e[r]._zod.optin!==void 0:e[r]._zod.optout==="optional"))return r+1;return 0}function By(e,t,r){e.issues.length&&t.issues.push(...ve(r,e.issues)),t.value[r]=e.value}function qy(e,t,r,i,n){for(let o=0;o<r.length;o++){let s=e[o],a=o<i.length;if(!a&&o>=n&&r[o]._zod.optin==="optional"){t.value.length=o;break}if(s.issues.length){if(!a&&o>=n){t.value.length=o;break}t.issues.push(...ve(o,s.issues))}t.value[o]=s.value}for(let o=t.value.length-1;o>=i.length&&(r[o]._zod.optout==="optional"&&t.value[o]===void 0);o--)t.value.length=o;return t}var Gd=h("$ZodRecord",(e,t)=>{E.init(e,t);let r=re.memoizer;r?.attach(e),e._zod.parse=(i,n)=>{let o=i.value;if(!Ae(o))return i.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),i;let s=[],a=t.keyType._zod.values;if(a&&!t.partial){i.value=r?r.alloc(e,i,{},n):{};let c=new Set;for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){if(c.add(typeof l=="number"?l.toString():l),l==="__proto__")continue;let d=t.keyType._zod.run({value:l,issues:[]},n);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){i.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(g=>ye(g,n,Y())),input:l,path:[l],inst:e});continue}let f=d.value;if(f==="__proto__")continue;let p=t.valueType._zod.run({value:o[l],issues:[]},n);p instanceof Promise?s.push(p.then(g=>{g.issues.length&&i.issues.push(...ve(l,g.issues)),i.value[f]=g.value})):(p.issues.length&&i.issues.push(...ve(l,p.issues)),i.value[f]=p.value)}let u;for(let l in o)if(!c.has(l))if(t.mode==="loose"){if(l==="__proto__")continue;i.value[l]=o[l]}else u=u??[],u.push(l);u&&u.length>0&&i.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:u,continue:!0})}else{i.value=r?r.alloc(e,i,{},n):{};let c;for(let u of Reflect.ownKeys(o)){if(u==="__proto__"||!Object.prototype.propertyIsEnumerable.call(o,u))continue;let l=t.keyType._zod.run({value:u,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&Xe.test(u)&&l.issues.length){let g=t.keyType._zod.run({value:Number(u),issues:[]},n);if(g instanceof Promise)throw new Error("Async schemas not supported in object keys currently");g.issues.length===0&&(l=g)}if(l.issues.length){t.mode==="loose"?i.value[u]=o[u]:a?(c=c??[],c.push(u)):i.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(g=>ye(g,n,Y())),input:u,path:[u],inst:e});continue}let f=l.value;if(f==="__proto__")continue;let p=t.valueType._zod.run({value:o[u],issues:[]},n);p instanceof Promise?s.push(p.then(g=>{g.issues.length&&i.issues.push(...ve(u,g.issues)),i.value[f]=g.value})):(p.issues.length&&i.issues.push(...ve(u,p.issues)),i.value[f]=p.value)}c&&c.length>0&&i.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:c,continue:!0})}return s.length?Promise.all(s).then(()=>i):i}}),Yd=h("$ZodMap",(e,t)=>{E.init(e,t);let r=re.memoizer;r?.attach(e),e._zod.parse=(i,n)=>{let o=i.value;if(!(o instanceof Map))return i.issues.push({expected:"map",code:"invalid_type",input:o,inst:e}),i;let s=[];i.value=r?r.alloc(e,i,new Map,n):new Map;let a=n?.abortEarly,c=i.issues.length;for(let[u,l]of o){if(a&&i.issues.length!==c){if(ue(i,c))break;c=i.issues.length}let d=t.keyType._zod.run({value:u,issues:[]},n),f=t.valueType._zod.run({value:l,issues:[]},n);d instanceof Promise||f instanceof Promise?s.push(Promise.all([d,f]).then(([p,g])=>{Vy(p,g,i,u,o,e,n)})):Vy(d,f,i,u,o,e,n)}return s.length?Promise.all(s).then(()=>i):i},Bd(e,XN)});function Vy(e,t,r,i,n,o,s){e.issues.length&&(jr.has(typeof i)?r.issues.push(...ve(i,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:o,issues:e.issues.map(a=>ye(a,s,Y()))})),t.issues.length&&(jr.has(typeof i)?r.issues.push(...ve(i,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:o,key:i,issues:t.issues.map(a=>ye(a,s,Y()))})),r.value.set(e.value,t.value)}var Xd=h("$ZodSet",(e,t)=>{E.init(e,t);let r=re.memoizer;r?.attach(e),e._zod.parse=(i,n)=>{let o=i.value;if(!(o instanceof Set))return i.issues.push({input:o,inst:e,expected:"set",code:"invalid_type"}),i;let s=[];i.value=r?r.alloc(e,i,new Set,n):new Set;let a=n?.abortEarly,c=i.issues.length;for(let u of o){if(a&&i.issues.length!==c){if(ue(i,c))break;c=i.issues.length}let l=t.valueType._zod.run({value:u,issues:[]},n);l instanceof Promise?s.push(l.then(d=>Ky(d,i))):Ky(l,i)}return s.length?Promise.all(s).then(()=>i):i},Bd(e,QN)});function Ky(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Qd=h("$ZodEnum",(e,t)=>{E.init(e,t);let r=gn(t.entries),i=new Set(r);e._zod.values=i,L(e,"pattern",n=>{let o=gn(n.def.entries).filter(s=>jr.has(typeof s));return new RegExp(o.length?`^(${o.map(s=>Ne(s.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(n,o)=>{let s=n.value;return i.has(s)||n.issues.push({code:"invalid_value",values:r,input:s,inst:e}),n}}),ef=h("$ZodLiteral",(e,t)=>{E.init(e,t);let r=new Set(t.values);e._zod.values=r,L(e,"pattern",i=>{let n=i.def.values;return new RegExp(n.length?`^(${n.map(o=>typeof o=="string"?Ne(o):o?Ne(o.toString()):String(o)).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(i,n)=>{let o=i.value;return r.has(o)||i.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),i}}),tf=h("$ZodFile",(e,t)=>{E.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),nf=h("$ZodTransform",(e,t)=>{E.init(e,t),e._zod.optin="optional",re.memoizer?.guard(e),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new gt(e.constructor.name);let n=t.transform(r.value,r);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(s=>(r.value=s,r));if(n instanceof Promise)throw new $e;return r.value=n,r}});function Jy(e,t){return e.value=t.issues.length?void 0:t.value,e}var _s=h("$ZodOptional",(e,t)=>{E.init(e,t),L(e,"optin",r=>r.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",L(e,"values",r=>{let i=r.def.innerType._zod.values;return i?new Set([...i,void 0]):void 0}),L(e,"pattern",r=>{let i=r.def.innerType._zod.pattern;return i?new RegExp(`^(${Ye(i.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(r.value===void 0){if(t.innerType._zod.optin!=="defaulted")return r;let n=t.innerType._zod.run({value:r.value,issues:[]},i);return n instanceof Promise?n.then(o=>Jy(r,o)):Jy(r,n)}return t.innerType._zod.run(r,i)}}),rf=h("$ZodExactOptional",(e,t)=>{_s.init(e,t),L(e,"values",r=>r.def.innerType._zod.values),L(e,"pattern",r=>r.def.innerType._zod.pattern),e._zod.parse=(r,i)=>t.innerType._zod.run(r,i)}),of=h("$ZodNullable",(e,t)=>{E.init(e,t),L(e,"optin",r=>r.def.innerType._zod.optin),L(e,"optout",r=>r.def.innerType._zod.optout),L(e,"pattern",r=>{let i=r.def.innerType._zod.pattern;return i?new RegExp(`^(${Ye(i.source)}|null)$`):void 0}),L(e,"values",r=>r.def.innerType._zod.values?new Set([...r.def.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i)}),sf=h("$ZodDefault",(e,t)=>{E.init(e,t),e._zod.optin="defaulted",L(e,"values",r=>r.def.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>Hy(o,t)):Hy(n,t)}});function Hy(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var af=h("$ZodPrefault",(e,t)=>{E.init(e,t),e._zod.optin="defaulted",L(e,"values",r=>r.def.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,i))}),cf=h("$ZodNonOptional",(e,t)=>{E.init(e,t),L(e,"values",r=>{let i=r.def.innerType._zod.values;return i?new Set([...i].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,i)=>{let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>Wy(o,e)):Wy(n,e)}});function Wy(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 uf=h("$ZodSuccess",(e,t)=>{E.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new gt("ZodSuccess");let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.issues.length===0,r)):(r.value=n.issues.length===0,r)}});function Gy(e,t,r,i){return t.issues.length?(e.value=r.catchValue({...t,value:e.value,error:{issues:t.issues.map(n=>ye(n,i,Y()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var lf=h("$ZodCatch",(e,t)=>{E.init(e,t),L(e,"optin",r=>r.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),L(e,"optout",r=>r.def.innerType._zod.optout),L(e,"values",r=>r.def.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);let n=t.innerType._zod.run({value:r.value,issues:[]},i);return n instanceof Promise?n.then(o=>Gy(r,o,t,i)):Gy(r,n,t,i)}}),df=h("$ZodNaN",(e,t)=>{E.init(e,t),e._zod.parse=(r,i)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),ws=h("$ZodPipe",(e,t)=>{E.init(e,t),L(e,"values",r=>r.def.in._zod.values),L(e,"optin",r=>r.def.in._zod.optin),L(e,"optout",r=>r.def.out._zod.optout),L(e,"propValues",r=>r.def.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){let o=t.out._zod.run(r,i);return o instanceof Promise?o.then(s=>os(s,t.in,i)):os(o,t.in,i)}let n=t.in._zod.run(r,i);return n instanceof Promise?n.then(o=>os(o,t.out,i)):os(n,t.out,i)}});function os(e,t,r){return e.issues.some(i=>i.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var ni=h("$ZodCodec",(e,t)=>{E.init(e,t),L(e,"values",r=>r.def.in._zod.values),L(e,"optin",r=>r.def.in._zod.optin),L(e,"optout",r=>r.def.out._zod.optout),L(e,"propValues",r=>r.def.in._zod.propValues),e._zod.parse=(r,i)=>{if((i.direction||"forward")==="forward"){let o=t.in._zod.run(r,i);return o instanceof Promise?o.then(s=>ss(s,t,i)):ss(o,t,i)}else{let o=t.out._zod.run(r,i);return o instanceof Promise?o.then(s=>ss(s,t,i)):ss(o,t,i)}}});function ss(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(o=>as(e,o,t.out,r)):as(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(o=>as(e,o,t.in,r)):as(e,n,t.in,r)}}function as(e,t,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},i)}var ff=h("$ZodPreprocess",(e,t)=>{ws.init(e,t)}),pf=h("$ZodReadonly",(e,t)=>{E.init(e,t),L(e,"propValues",r=>r.def.innerType._zod.propValues),L(e,"values",r=>r.def.innerType._zod.values),L(e,"optin",r=>r.def.innerType?._zod?.optin),L(e,"optout",r=>r.def.innerType?._zod?.optout),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(Yy):Yy(n)}});function Yy(e){return e.memo||(e.value=Object.freeze(e.value)),e}function tz(e){let t=e._zod.def,r=t.pattern,i=!!t.format?.includes("int"),n,o;for(let a of t.checks??[]){let c=a._zod.def;c.pattern&&(r=c.pattern),i||(i=!!c.format?.includes("int"));let u=c.minimum??c.length,l=c.maximum??c.length;u!==void 0&&(n===void 0||u>n)&&(n=u),l!==void 0&&(o===void 0||l<o)&&(o=l)}if(r)return r.source;if(n!==void 0&&o!==void 0&&n>o)return"(?!)";if(n!==void 0||o!==void 0)return Ol({minimum:n,maximum:o}).source;let s=e._zod.pattern;return(i&&s===Xe?Kr:s)?.source}function rd(e){let t=e._zod.def,r=e._zod.pattern?.source,i=t.innerType??e._zod.innerType;if(i){let n=i._zod.pattern?.source,o=rd(i);return r&&n&&o&&o!==n?r.replace(Ye(n),()=>Ye(o)):r}if(t.options){let n=t.options.map(rd);if(n.every(Boolean))return`^(${n.map(o=>Ye(o)).join("|")})$`}return tz(e)}var mf=h("$ZodTemplateLiteral",(e,t)=>{E.init(e,t);let r=[];for(let i of t.parts)if(typeof i=="object"&&i!==null){let n=rd(i);if(!n)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);r.push(Ye(n))}else if(i===null||Mu.has(typeof i))r.push(Ne(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(i,n)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"string",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i)}),gf=h("$ZodFunction",(e,t)=>(E.init(e,t),Object.defineProperty(e,"_def",{value:t}),e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return Object.defineProperty(function(...i){let n=e._def.input?Bo(e._def.input,i):i,o=Reflect.apply(r,this,n);return e._def.output?Bo(e._def.output,o):o},"_zod",{value:e._zod,enumerable:!1})},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...i){let n=e._def.input?await qo(e._def.input,i):i,o=await Reflect.apply(r,this,n);return e._def.output?await qo(e._def.output,o):o},"_zod",{value:e._zod,enumerable:!1})},e._zod.parse=(r,i)=>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 i=e.constructor;return Array.isArray(r[0])?new i({type:"function",input:new ks({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new i({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let i=e.constructor;return new i({type:"function",input:e._def.input,output:r})},e)),hf=h("$ZodPromise",(e,t)=>{E.init(e,t),e._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},i))}),ri=h("$ZodLazy",(e,t)=>{E.init(e,t),Lu(e._zod,"innerType",()=>{let r=t;return r._cachedInner||(r._cachedInner=t.getter()),r._cachedInner}),L(e,"pattern",r=>r.innerType?._zod?.pattern),L(e,"propValues",r=>r.innerType?._zod?.propValues),L(e,"optin",r=>r.innerType?._zod?.optin??void 0),L(e,"optout",r=>r.innerType?._zod?.optout??void 0),e._zod.parse=(r,i)=>e._zod.innerType._zod.run(r,i)}),vf=h("$ZodCustom",(e,t)=>{K.init(e,t),E.init(e,t),e._zod.parse=(r,i)=>r,e._zod.check=r=>{let i=r.value,n=t.fn(i);if(n instanceof Promise)return n.then(o=>Xy(o,r,i,e));Xy(n,r,i,e)}});function Xy(e,t,r,i){if(!e){let n={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(n.params=i._zod.def.params),t.issues.push(bn(n))}}var Os=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},$f="~memo",s$=[];function a$(e){return e!==null&&typeof e=="object"}function yf(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}var c$=new WeakMap,On=0,Is=1,ii=2;function oi(e,t,r){let i=c$.get(e);if(i!==void 0)return i?ii:On;if(t.has(e))return ii;t.add(e);let n=On,o=l=>{if(n!==ii&&l?._zod){let d=oi(l,t,r);d>n&&(n=d)}},s=(l,d)=>{let f=On;for(let p of Reflect.ownKeys(l)){let g=Object.getOwnPropertyDescriptor(l,p);if(d&&!g.enumerable)continue;let m=g.get?Is:g.value?._zod?oi(g.value,t,r):On;m>f&&(f=m)}return f},a=l=>{l>n&&(n=l)},c=e._zod.def,u=c.type;switch(u){case"object":{let l=yn(c);a(l?s(l,!0):Is),o(c.catchall);break}case"array":o(c.element);break;case"tuple":for(let l of c.items)o(l);o(c.rest);break;case"record":case"map":o(c.keyType),o(c.valueType);break;case"set":o(c.valueType);break;case"union":for(let l of c.options)o(l);break;case"intersection":o(c.left),o(c.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":o(c.innerType);break;case"pipe":o(c.in),o(c.out);break;case"function":o(c.input),o(c.output);break;case"lazy":{let l=c._cachedInner??(r?e._zod.innerType:void 0);a(l?oi(l,t,!1):Is);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let l in c){let d=Object.getOwnPropertyDescriptor(c,l);if(!d||d.get)continue;let f=d.value;if(!(!f||typeof f!="object")){if(f._zod)o(f);else if(Array.isArray(f))for(let p of f)o(p)}}}return t.delete(e),nz(e,n)}function nz(e,t){return t!==Is&&c$.set(e,t===ii),t}function As(e){return oi(e,new Set,!0)!==On}function rz(e,t){let r=e.buckets.get(t);return r||(r=new WeakMap,e.buckets.set(t,r)),r}var Ss,xs=[],iz={alloc(e,t,r){let i=Ss;if(!i)return r;Ss=void 0;let n={value:r,issues:null};return i.set(t.value,n),xs.push(n),r},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let r=e._zod.parse,i=(n,o)=>{if(o.direction!=="backward"&&Ns(o,n.value))throw new Os;return r(n,o)};e._zod.parse=i,e._zod.run===r&&(e._zod.run=i)})},attach(e){var t;let r,i=!1,n,o;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let s=e._zod.parse,a=(c,u)=>{if(r===void 0){let w=oi(e,new Set,!1);if(w===On)return e._zod.parse=s,e._zod.run===a&&(e._zod.run=s),s(c,u);w===ii||i?r=!0:i=!0}let l=c.value;if(!a$(l))return s(c,u);let d=u[$f];d||(d={buckets:new WeakMap,backEdges:void 0},u[$f]=d);let f;n===u?f=o:(f=rz(d,e),n=u,o=f);let p=f.get(l);if(p)return c.value=p.value,p.issues?p.issues.length&&c.issues.push(...yf(p.issues)):(c.memo=!0,d.backEdges??(d.backEdges=new WeakSet),d.backEdges.add(p.value)),c;Ss=f;let g=xs.length,m=s(c,u);Ss=void 0;let y=xs.length>g?xs.pop():void 0;return m instanceof Promise?m.then(w=>(y&&(y.issues=w.issues.length?yf(w.issues):s$),w)):(y&&(y.issues=m.issues.length?yf(m.issues):s$),m)};e._zod.parse=a,e._zod.run===s&&(e._zod.run=a)})}};function si(){return iz}function Ns(e,t){let r=e[$f]?.backEdges;return r!==void 0&&a$(t)&&r.has(t)}var ci={};Ke(ci,{ar:()=>u$,az:()=>l$,be:()=>f$,bg:()=>p$,bn:()=>m$,ca:()=>g$,ckb:()=>h$,cs:()=>v$,da:()=>y$,de:()=>$$,el:()=>b$,en:()=>zs,eo:()=>k$,es:()=>_$,fa:()=>w$,fi:()=>S$,fr:()=>x$,frCA:()=>I$,gu:()=>O$,he:()=>A$,hi:()=>N$,hr:()=>z$,hu:()=>P$,hy:()=>T$,id:()=>j$,is:()=>E$,it:()=>C$,ja:()=>U$,ka:()=>L$,kh:()=>R$,km:()=>Ps,kn:()=>Z$,ko:()=>M$,lt:()=>B$,mk:()=>q$,ms:()=>V$,ne:()=>K$,nl:()=>J$,nn:()=>H$,no:()=>W$,ota:()=>G$,pl:()=>X$,ps:()=>Y$,pt:()=>Q$,ptBR:()=>eb,ro:()=>tb,ru:()=>rb,sk:()=>ib,sl:()=>ob,sv:()=>sb,ta:()=>ab,tg:()=>cb,th:()=>ub,tk:()=>lb,tr:()=>db,ua:()=>fb,uk:()=>Ds,ur:()=>pb,uz:()=>mb,vi:()=>gb,yo:()=>yb,zhCN:()=>hb,zhTW:()=>vb});var oz=()=>{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"},map:{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",mac:"\u0639\u0646\u0648\u0627\u0646 MAC",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",credit_card:"\u0631\u0642\u0645 \u0628\u0637\u0627\u0642\u0629 \u0627\u0644\u0627\u0626\u062A\u0645\u0627\u0646",currency_code:"\u0631\u0645\u0632 \u0627\u0644\u0639\u0645\u0644\u0629",iban:"IBAN",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;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 ${a}`:`\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 ${o}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${a}`}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 ${b(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: ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?` \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"} ${o} ${n.maximum.toString()} ${s.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"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\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 ${o} ${n.minimum.toString()} ${s.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 ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.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}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`${r[o.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":""}: ${v(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 u$(){return{localeError:oz()}}var sz=()=>{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"},map:{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",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",credit_card:"kredit kart\u0131 n\xF6mr\u0259si",currency_code:"valyuta kodu",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${a}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${a}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${b(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()} ${s.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()} ${s.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[o.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":""}: ${v(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 l$(){return{localeError:sz()}}function d$(e,t,r,i){let n=Math.abs(e),o=n%10,s=n%100;return s>=11&&s<=19?i:o===1?t:o>=2&&o<=4?r:i}var az=()=>{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"},map:{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",mac:"MAC \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",credit_card:"\u043D\u0443\u043C\u0430\u0440 \u043A\u0440\u044D\u0434\u044B\u0442\u043D\u0430\u0439 \u043A\u0430\u0440\u0442\u044B",currency_code:"\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u044B",iban:"IBAN",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},i={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;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 ${a}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${a}`}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 ${b(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 ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);if(s){let a=Number(n.maximum),c=d$(a,s.unit.one,s.unit.few,s.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 ${s.verb} ${o}${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 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);if(s){let a=Number(n.minimum),c=d$(a,s.unit.one,s.unit.few,s.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 ${s.verb} ${o}${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 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[o.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"}: ${v(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 f$(){return{localeError:az()}}var cz=()=>{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"},map:{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",mac:"MAC \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",credit_card:"\u043D\u043E\u043C\u0435\u0440 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u0430 \u043A\u0430\u0440\u0442\u0430",currency_code:"\u043A\u043E\u0434 \u043D\u0430 \u0432\u0430\u043B\u0443\u0442\u0430",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;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 ${a}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${a}`}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 ${b(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 ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\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 ${o}${n.maximum.toString()} ${s.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 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\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 ${o}${n.minimum.toString()} ${s.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 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;if(o.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 "${o.prefix}"`;if(o.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 "${o.suffix}"`;if(o.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 "${o.includes}"`;if(o.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 ${o.pattern}`;let s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${s} ${r[o.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":""}: ${v(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 p$(){return{localeError:cz()}}var uz=()=>{let e={string:{unit:"\u0985\u0995\u09CD\u09B7\u09B0",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},file:{unit:"\u09AC\u09BE\u0987\u099F",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},array:{unit:"\u0986\u0987\u099F\u09C7\u09AE",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},set:{unit:"\u0986\u0987\u099F\u09C7\u09AE",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},map:{unit:"\u098F\u09A8\u09CD\u099F\u09CD\u09B0\u09BF",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"}};function t(n){return e[n]??null}let r={regex:"\u0987\u09A8\u09AA\u09C1\u099F",email:"\u0987\u09AE\u09C7\u0987\u09B2 \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",url:"URL",emoji:"\u0987\u09AE\u09CB\u099C\u09BF",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u09A4\u09BE\u09B0\u09BF\u0996 \u0993 \u09B8\u09AE\u09AF\u09BC",date:"ISO \u09A4\u09BE\u09B0\u09BF\u0996",time:"ISO \u09B8\u09AE\u09AF\u09BC",duration:"ISO \u09B8\u09AE\u09AF\u09BC\u0995\u09BE\u09B2",ipv4:"IPv4 \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",ipv6:"IPv6 \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",mac:"MAC \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",cidrv4:"IPv4 \u09B0\u09C7\u099E\u09CD\u099C",cidrv6:"IPv6 \u09B0\u09C7\u099E\u09CD\u099C",base64:"base64-\u098F\u09A8\u0995\u09CB\u09A1\u09C7\u09A1 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982",base64url:"base64url-\u098F\u09A8\u0995\u09CB\u09A1\u09C7\u09A1 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982",json_string:"JSON \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982",e164:"E.164 \u09A8\u09AE\u09CD\u09AC\u09B0",credit_card:"\u0995\u09CD\u09B0\u09C7\u09A1\u09BF\u099F \u0995\u09BE\u09B0\u09CD\u09A1 \u09A8\u09AE\u09CD\u09AC\u09B0",currency_code:"\u09AE\u09C1\u09A6\u09CD\u09B0\u09BE \u0995\u09CB\u09A1",iban:"IBAN",jwt:"JWT",template_literal:"\u0987\u09A8\u09AA\u09C1\u099F"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return`\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F: \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${o}, \u09AA\u09CD\u09B0\u09BE\u09AA\u09CD\u09A4 ${a}`}case"invalid_value":return n.values.length===1?`\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F: \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${b(n.values[0])}`:`\u0985\u09AC\u09C8\u09A7 \u0985\u09AA\u09B6\u09A8: ${v(n.values," | ")} \u098F\u09B0 \u09AE\u09A7\u09CD\u09AF\u09C7 \u098F\u0995\u099F\u09BF \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0985\u09A8\u09C7\u0995 \u09AC\u09A1\u09BC: ${n.origin??"\u09AE\u09BE\u09A8"} ${o}${n.maximum.toString()} ${s.unit??"\u098F\u09B2\u09BF\u09AE\u09C7\u09A8\u09CD\u099F"} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:`\u0985\u09A8\u09C7\u0995 \u09AC\u09A1\u09BC: ${n.origin??"\u09AE\u09BE\u09A8"} ${o}${n.maximum.toString()} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u0985\u09A8\u09C7\u0995 \u099B\u09CB\u099F: ${n.origin} ${o}${n.minimum.toString()} ${s.unit} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:`\u0985\u09A8\u09C7\u0995 \u099B\u09CB\u099F: ${n.origin} ${o}${n.minimum.toString()} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: "${o.prefix}" \u09A6\u09BF\u09AF\u09BC\u09C7 \u09B6\u09C1\u09B0\u09C1 \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:o.format==="ends_with"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: "${o.suffix}" \u09A6\u09BF\u09AF\u09BC\u09C7 \u09B6\u09C7\u09B7 \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:o.format==="includes"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: "${o.includes}" \u0985\u09A8\u09CD\u09A4\u09B0\u09CD\u09AD\u09C1\u0995\u09CD\u09A4 \u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7`:o.format==="regex"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: ${o.pattern} \u09AA\u09CD\u09AF\u09BE\u099F\u09BE\u09B0\u09CD\u09A8 \u09AE\u09BF\u09B2\u09A4\u09C7 \u09B9\u09AC\u09C7`:`\u0985\u09AC\u09C8\u09A7 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0985\u09AC\u09C8\u09A7 \u09A8\u09AE\u09CD\u09AC\u09B0: ${n.divisor} \u098F\u09B0 \u0997\u09C1\u09A3\u09BF\u09A4\u0995 \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`;case"unrecognized_keys":return`\u0985\u099A\u09C7\u09A8\u09BE \u0995\u09C0${n.keys.length>1?"\u0997\u09C1\u09B2\u09CB":""}: ${v(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u098F \u0985\u09AC\u09C8\u09A7 \u0995\u09C0`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\u0985\u09AC\u09C8\u09A7 \u09A1\u09BF\u09B8\u0995\u09CD\u09B0\u09BF\u09AE\u09BF\u09A8\u09C7\u099F\u09B0 \u09AE\u09BE\u09A8\u0964 \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${n.options.map(s=>`'${s}'`).join(" | ")}`:"\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F";case"invalid_element":return`${n.origin} \u098F \u0985\u09AC\u09C8\u09A7 \u09AE\u09BE\u09A8`;default:return"\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F"}}};function m$(){return{localeError:uz()}}var lz=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"},map:{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",mac:"adre\xE7a MAC",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",credit_card:"n\xFAmero de targeta de cr\xE8dit",currency_code:"codi de moneda",iban:"IBAN",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${a}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${a}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${b(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${v(n.values," o ")}`;case"too_big":{let o=n.inclusive?"com a m\xE0xim":"menys de",s=t(n.origin);return s?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${o} ${n.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"com a m\xEDnim":"m\xE9s de",s=t(n.origin);return s?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${o} ${n.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${r[o.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":""}: ${v(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 g$(){return{localeError:lz()}}var dz=()=>{let e={string:{unit:"\u067E\u06CC\u062A",verb:"\u0628\u06CE\u062A"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u0628\u06CE\u062A"},array:{unit:"\u062F\u0627\u0646\u06D5",verb:"\u0628\u06CE\u062A"},set:{unit:"\u062F\u0627\u0646\u06D5",verb:"\u0628\u06CE\u062A"},map:{unit:"\u062F\u0627\u0646\u06D5",verb:"\u0628\u06CE\u062A"}};function t(n){return e[n]??null}let r={regex:"regex",email:"\u0626\u06CC\u0645\u06D5\u06CC\u06B5",url:"\u0628\u06D5\u0633\u062A\u06D5\u0631 (URL)",emoji:"\u0626\u06CC\u0645\u06C6\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0695\u06CE\u06A9\u06D5\u0648\u062A \u0648 \u06A9\u0627\u062A",date:"\u0695\u06CE\u06A9\u06D5\u0648\u062A",time:"\u06A9\u0627\u062A",duration:"\u0645\u0627\u0648\u06D5",ipv4:"\u0646\u0627\u0648\u0646\u06CC\u0634\u0627\u0646\u06CC IPv4",ipv6:"\u0646\u0627\u0648\u0646\u06CC\u0634\u0627\u0646\u06CC IPv6",mac:"\u0646\u0627\u0648\u0646\u06CC\u0634\u0627\u0646\u06CC MAC",cidrv4:"\u0645\u06D5\u0648\u062F\u0627\u06CC IPv4",cidrv6:"\u0645\u06D5\u0648\u062F\u0627\u06CC IPv6",base64:"\u062F\u06D5\u0642\u06CC base64",base64url:"\u062F\u06D5\u0642\u06CC base64url",json_string:"\u062F\u06D5\u0642\u06CC JSON",e164:"\u0698\u0645\u0627\u0631\u06D5\u06CC E.164",credit_card:"\u0698\u0645\u0627\u0631\u06D5\u06CC \u06A9\u0627\u0631\u062A\u06CC \u06A9\u0631\u06CE\u062F\u06CC\u062A",currency_code:"\u06A9\u06C6\u062F\u06CC \u062F\u0631\u0627\u0648",iban:"IBAN",jwt:"JWT",template_literal:"\u062A\u06CE\u06A9\u0631\u062F\u06D5"},i={nan:"NaN",string:"\u0646\u0648\u0648\u0633\u06CC\u0646",number:"\u0698\u0645\u0627\u0631\u06D5",boolean:"boolean",array:"array",object:"object",date:"\u0695\u06CE\u06A9\u06D5\u0648\u062A",integer:"\u0698\u0645\u0627\u0631\u06D5",float:"\u0698\u0645\u0627\u0631\u06D5",null:"null",undefined:"undefined",function:"function",symbol:"symbol",unknown:"unknown",promise:"promise",void:"void",never:"never",map:"map",set:"set"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s,c=["\u0627","\u0648","\u06C6","\u0648\u0648","\u06D5","\u06CC","\u06CE"].some(l=>a.endsWith(l))?"\u06CC\u06D5":"\u06D5",u=/^[a-zA-Z]+$/.test(a);return s==="null"||s==="undefined"?"\u062F\u0627\u0648\u0627\u06A9\u0631\u0627\u0648\u06D5":`\u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 ${o} \u0628\u06CE\u062A\u060C \u0628\u06D5\u06B5\u0627\u0645 ${a}${u?"":c}`}case"invalid_value":return n.values.length===1?`\u0628\u06D5\u0647\u0627\u06A9\u06D5 \u0646\u0627\u062F\u0631\u0648\u0648\u0633\u062A\u06D5: \u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 ${b(n.values[0])} \u0628\u06CE\u062A`:`\u0647\u06D5\u06B5\u0628\u0698\u0627\u0631\u062F\u06D5\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 \u06CC\u06D5\u06A9\u06CE\u06A9 \u0628\u06CE\u062A \u0644\u06D5 ${v(n.values,"|")}`;case"too_big":{let o=t(n.origin);return o?`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u0632\u06C6\u0631\u06D5\u0648\u06D5 ${n.maximum.toString()} ${o.unit} ${o.verb}`:`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u0632\u06C6\u0631\u06D5\u0648\u06D5 ${n.maximum.toString()} \u0628\u06CE\u062A`}case"too_small":{let o=t(n.origin);return o?`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u06A9\u06D5\u0645\u06D5\u0648\u06D5 ${n.minimum.toString()} ${o.unit} ${o.verb}`:`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u06A9\u06D5\u0645\u06D5\u0648\u06D5 ${n.minimum.toString()} \u0628\u06CE\u062A`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u062F\u06D5\u0633\u062A\u067E\u06CE\u0628\u06A9\u0627\u062A \u0628\u06D5 "${o.prefix}"`:o.format==="ends_with"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u06A9\u06C6\u062A\u0627\u06CC\u06CC\u0628\u06CE\u062A \u0628\u06D5 "${o.suffix}"`:o.format==="includes"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 "${o.includes}" \u0644\u06D5\u062E\u06C6\u0628\u06AF\u0631\u06CE\u062A`:o.format==="regex"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0644\u06D5\u06AF\u06D5\u06B5 \u067E\u0627\u062A\u06CE\u0631\u0646\u06CC ${o.pattern} \u0628\u06AF\u0648\u0646\u062C\u06CE\u062A`:`\u0628\u06D5\u0647\u0627\u06CC ${r[o.format]??n.format} \u0646\u0627\u062F\u0631\u0648\u0633\u062A\u06D5`}case"not_multiple_of":return`\u0698\u0645\u0627\u0631\u06D5\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u062F\u06D5\u0628\u06CE\u062A \u0686\u06D5\u0646\u062F \u0647\u06CE\u0646\u062F\u06D5 \u0628\u06CE\u062A \u0628\u06C6 ${n.divisor}`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u0644\u06CC \u0646\u06D5\u0646\u0627\u0633\u0631\u0627\u0648: ${v(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u0644\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A \u0644\u06D5 ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\u0628\u06D5\u0647\u0627\u06CC \u0646\u06D5\u0646\u0627\u0633\u0631\u0627\u0648 \u0647\u06D5\u06CC\u06D5. \u0628\u06D5\u0647\u0627\u06CC \u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648: ${n.options.map(s=>`'${s}'`).join(" | ")}`:"\u06CC\u06D5\u06A9\u06AF\u0631\u062A\u0646\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A";case"invalid_element":return`${n.origin} \u0628\u06D5\u0647\u0627\u06A9\u06D5 \u0646\u0627\u062F\u0631\u0648\u0633\u062A\u06D5`;default:return"\u062A\u06CE\u06A9\u0631\u062F\u06D5\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A"}}};function h$(){return{localeError:dz()}}var fz=()=>{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"},map:{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",mac:"MAC 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",credit_card:"\u010D\xEDslo kreditn\xED karty",currency_code:"k\xF3d m\u011Bny",iban:"IBAN",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${a}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${a}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${b(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.maximum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.minimum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${r[o.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: ${v(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 v$(){return{localeError:fz()}}var pz=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"},map:{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-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kreditkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={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 o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${a}`:`Ugyldigt input: forventede ${o}, fik ${a}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${b(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin),a=i[n.origin]??n.origin;return s?`For stor: forventede ${a??"value"} ${s.verb} ${o} ${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${a??"value"} havde ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin),a=i[n.origin]??n.origin;return s?`For lille: forventede ${a} ${s.verb} ${o} ${n.minimum.toString()} ${s.unit}`:`For lille: forventede ${a} havde ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.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"}: ${v(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 y$(){return{localeError:pz()}}var mz=()=>{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"},map:{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",mac:"MAC-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",credit_card:"Kreditkartennummer",currency_code:"W\xE4hrungscode",iban:"IBAN",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${a}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${a}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${b(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ist`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ist`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${r[o.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"}: ${v(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 $$(){return{localeError:mz()}}var gz=()=>{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",credit_card:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u03C0\u03B9\u03C3\u03C4\u03C9\u03C4\u03B9\u03BA\u03AE\u03C2 \u03BA\u03AC\u03C1\u03C4\u03B1\u03C2",currency_code:"\u03BA\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2 \u03BD\u03BF\u03BC\u03AF\u03C3\u03BC\u03B1\u03C4\u03BF\u03C2",iban:"IBAN",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;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 ${a}`:`\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 ${o}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${a}`}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 ${b(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 ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\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 ${o}${n.maximum.toString()} ${s.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 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\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 ${o}${n.minimum.toString()} ${s.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 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${r[o.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"}: ${v(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 b$(){return{localeError:gz()}}var hz=()=>{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(o){return e[o]??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",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};function n(o,s){return o==="number"&&typeof s=="number"&&!Number.isFinite(s)?String(s):i[o]??o}return o=>{switch(o.code){case"invalid_type":{let s=n(o.expected),a=_(o.input),c=n(a,o.input);return`Invalid input: expected ${s}, received ${c}`}case"invalid_value":return o.values.length===1?`Invalid input: expected ${b(o.values[0])}`:`Invalid option: expected one of ${v(o.values,"|")}`;case"too_big":{let s=o.exact?"exactly ":o.inclusive?"<=":"<",a=t(o.origin);return a?`Too big: expected ${o.origin??"value"} to have ${s}${o.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${o.origin??"value"} to be ${s}${o.maximum.toString()}`}case"too_small":{let s=o.exact?"exactly ":o.inclusive?">=":">",a=t(o.origin);return a?`Too small: expected ${o.origin} to have ${s}${o.minimum.toString()} ${a.unit}`:`Too small: expected ${o.origin} to be ${s}${o.minimum.toString()}`}case"invalid_format":{let s=o;return s.format==="starts_with"?`Invalid string: must start with "${s.prefix}"`:s.format==="ends_with"?`Invalid string: must end with "${s.suffix}"`:s.format==="includes"?`Invalid string: must include "${s.includes}"`:s.format==="regex"?`Invalid string: must match pattern ${s.pattern}`:`Invalid ${r[s.format]??o.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${o.divisor}`;case"unrecognized_keys":return`Unrecognized key${o.keys.length>1?"s":""}: ${v(o.keys,", ")}`;case"invalid_key":return`Invalid key in ${o.origin}`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`Invalid discriminator value. Expected ${o.options.map(a=>`'${a}'`).join(" | ")}`:o.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${o.origin}`;default:return"Invalid input"}}};function zs(){return{localeError:hz()}}var vz=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"},map:{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",mac:"MAC-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",credit_card:"kreditkarta numero",currency_code:"valuta kodo",iban:"IBAN",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${a}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${a}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${b(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${o}${n.minimum.toString()} ${s.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${r[o.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":""}: ${v(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 k$(){return{localeError:vz()}}var yz=()=>{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",mac:"direcci\xF3n MAC",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",credit_card:"n\xFAmero de tarjeta de cr\xE9dito",currency_code:"c\xF3digo de moneda",iban:"IBAN",jwt:"JWT",template_literal:"entrada"},i={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 o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${a}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${a}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${b(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin),a=i[n.origin]??n.origin;return s?`Demasiado grande: se esperaba que ${a??"valor"} tuviera ${o}${n.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${a??"valor"} fuera ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin),a=i[n.origin]??n.origin;return s?`Demasiado peque\xF1o: se esperaba que ${a} tuviera ${o}${n.minimum.toString()} ${s.unit}`:`Demasiado peque\xF1o: se esperaba que ${a} fuera ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${r[o.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":""}: ${v(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function _$(){return{localeError:yz()}}var $z=()=>{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"},map:{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",mac:"MAC \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",credit_card:"\u0634\u0645\u0627\u0631\u0647 \u06A9\u0627\u0631\u062A \u0627\u0639\u062A\u0628\u0627\u0631\u06CC",currency_code:"\u06A9\u062F \u0627\u0631\u0632",iban:"IBAN",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;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 ${a} \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 ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${a} \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 ${b(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 ${v(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${s.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 ${o}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${s.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[o.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: ${v(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 w$(){return{localeError:$z()}}var bz=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},map:{unit:"alkiota",subject:"kuvauksen"},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",mac:"MAC-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",credit_card:"luottokortin numero",currency_code:"valuuttakoodi",iban:"IBAN",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${a}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${a}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${b(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Liian suuri: ${s.subject} t\xE4ytyy olla ${o}${n.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Liian pieni: ${s.subject} t\xE4ytyy olla ${o}${n.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${r[o.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"}: ${v(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 S$(){return{localeError:bz()}}var kz=()=>{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:"expression r\xE9guli\xE8re",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",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne de caract\xE8res encod\xE9e en base64",base64url:"cha\xEEne de caract\xE8res encod\xE9e en base64url",json_string:"cha\xEEne de caract\xE8res JSON",e164:"num\xE9ro au format E.164",credit_card:"num\xE9ro de carte de cr\xE9dit",currency_code:"code de devise",iban:"IBAN",jwt:"JWT",template_literal:"entr\xE9e"},i={string:"cha\xEEne de caract\xE8res",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:"record",map:"map",set:"ensemble",file:"fichier",nonoptional:"non optionnel",nan:"NaN",function:"fonction"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instance de ${n.expected} attendu, ${a} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${a} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${b(n.values[0])} attendu`:`Option invalide : une valeur parmi ${v(n.values,"|")} attendue`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Trop grand : ${i[n.origin]??"valeur"} doit ${s.verb} ${o}${n.maximum.toString()} ${s.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${i[n.origin]??"valeur"} doit \xEAtre ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Trop petit : ${i[n.origin]??"valeur"} doit ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`Trop petit : ${i[n.origin]??"valeur"} doit \xEAtre ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cha\xEEne de caract\xE8res invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne de caract\xE8res invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne de caract\xE8res invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne de caract\xE8res invalide : doit correspondre au motif ${o.pattern}`:`${r[o.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":""} : ${v(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 x$(){return{localeError:kz()}}var _z=()=>{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"},map:{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",mac:"adresse MAC",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",credit_card:"num\xE9ro de carte de cr\xE9dit",currency_code:"code de devise",iban:"IBAN",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${a}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${a}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${b(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u2264":"<",s=t(n.origin);return s?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${o}${n.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u2265":">",s=t(n.origin);return s?`Trop petit : attendu que ${n.origin} ait ${o}${n.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${n.origin} soit ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${r[o.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":""} : ${v(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 I$(){return{localeError:_z()}}var wz=()=>{let e={string:{unit:"\u0A85\u0A95\u0ACD\u0AB7\u0AB0",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},file:{unit:"\u0AAC\u0ABE\u0AAF\u0A9F",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},array:{unit:"\u0A86\u0A87\u0A9F\u0AAE",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},set:{unit:"\u0A86\u0A87\u0A9F\u0AAE",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},map:{unit:"\u0A8F\u0AA8\u0ACD\u0A9F\u0ACD\u0AB0\u0AC0",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"}};function t(n){return e[n]??null}let r={regex:"\u0A87\u0AA8\u0AAA\u0AC1\u0A9F",email:"\u0A88\u0AAE\u0AC7\u0A87\u0AB2 \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",url:"URL",emoji:"\u0A87\u0AAE\u0ACB\u0A9C\u0AC0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0AA4\u0ABE\u0AB0\u0AC0\u0A96 \u0A85\u0AA8\u0AC7 \u0AB8\u0AAE\u0AAF",date:"ISO \u0AA4\u0ABE\u0AB0\u0AC0\u0A96",time:"ISO \u0AB8\u0AAE\u0AAF",duration:"ISO \u0A85\u0AB5\u0AA7\u0ABF",ipv4:"IPv4 \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",ipv6:"IPv6 \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",mac:"MAC \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",cidrv4:"IPv4 \u0AB6\u0ACD\u0AB0\u0AC7\u0AA3\u0AC0",cidrv6:"IPv6 \u0AB6\u0ACD\u0AB0\u0AC7\u0AA3\u0AC0",base64:"base64-\u0A8F\u0AA8\u0ACD\u0A95\u0ACB\u0AA1\u0AC7\u0AA1 \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97",base64url:"base64url-\u0A8F\u0AA8\u0ACD\u0A95\u0ACB\u0AA1\u0AC7\u0AA1 \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97",json_string:"JSON \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97",e164:"E.164 \u0AA8\u0A82\u0AAC\u0AB0",credit_card:"\u0A95\u0ACD\u0AB0\u0AC7\u0AA1\u0ABF\u0A9F \u0A95\u0ABE\u0AB0\u0ACD\u0AA1 \u0AA8\u0A82\u0AAC\u0AB0",currency_code:"\u0A9A\u0AB2\u0AA3 \u0A95\u0ACB\u0AA1",iban:"IBAN",jwt:"JWT",template_literal:"\u0A87\u0AA8\u0AAA\u0AC1\u0A9F"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F: \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${o}, \u0AAA\u0ACD\u0AB0\u0ABE\u0AAA\u0ACD\u0AA4 ${a}`}case"invalid_value":return n.values.length===1?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F: \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${b(n.values[0])}`:`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB5\u0ABF\u0A95\u0AB2\u0ACD\u0AAA: ${v(n.values," | ")} \u0AAE\u0ABE\u0AA7\u0ACD\u0AAF\u0AAE\u0AA5\u0AC0 \u0A8F\u0A95 \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0A96\u0AC2\u0AAC \u0AAE\u0ACB\u0A9F\u0AC1\u0A82: ${n.origin??"\u0AAE\u0AC2\u0AB2\u0ACD\u0AAF"} ${o}${n.maximum.toString()} ${s.unit??"\u0A8F\u0AB2\u0ABF\u0AAE\u0AC7\u0AA8\u0ACD\u0A9F"} \u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F`:`\u0A96\u0AC2\u0AAC \u0AAE\u0ACB\u0A9F\u0AC1\u0A82: ${n.origin??"\u0AAE\u0AC2\u0AB2\u0ACD\u0AAF"} ${o}${n.maximum.toString()} \u0AB9\u0ACB\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u0A96\u0AC2\u0AAC \u0AA8\u0ABE\u0AA8\u0AC1\u0A82: ${n.origin} ${o}${n.minimum.toString()} ${s.unit} \u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F`:`\u0A96\u0AC2\u0AAC \u0AA8\u0ABE\u0AA8\u0AC1\u0A82: ${n.origin} ${o}${n.minimum.toString()} \u0AB9\u0ACB\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: "${o.prefix}" \u0AA5\u0AC0 \u0AB6\u0AB0\u0AC2 \u0AA5\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:o.format==="ends_with"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: "${o.suffix}" \u0AAA\u0AB0 \u0AB8\u0AAE\u0ABE\u0AAA\u0ACD\u0AA4 \u0AA5\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:o.format==="includes"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: "${o.includes}" \u0AB6\u0ABE\u0AAE\u0AC7\u0AB2 \u0AB9\u0ACB\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:o.format==="regex"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: \u0AAA\u0AC7\u0A9F\u0AB0\u0ACD\u0AA8 ${o.pattern} \u0AB8\u0ABE\u0AA5\u0AC7 \u0AAE\u0AC7\u0AB3 \u0A96\u0ABE\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AA8\u0A82\u0AAC\u0AB0: ${n.divisor} \u0AA8\u0ACB \u0A97\u0AC1\u0AA3\u0ABE\u0A82\u0A95 \u0AB9\u0ACB\u0AB5\u0ACB \u0A9C\u0ACB\u0A88\u0A8F`;case"unrecognized_keys":return`\u0A93\u0AB3\u0A96\u0AC0 \u0AB6\u0A95\u0ABE\u0AA4\u0ABE \u0AA8\u0AB9\u0AC0\u0A82 \u0AA4\u0AC7 \u0A95\u0AC0${n.keys.length>1?"\u0A93":""}: ${v(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0AAE\u0ABE\u0A82 \u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A95\u0AC0`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AA1\u0ABF\u0AB8\u0ACD\u0A95\u0ACD\u0AB0\u0ABF\u0AAE\u0ABF\u0AA8\u0AC7\u0A9F\u0AB0 \u0AAE\u0AC2\u0AB2\u0ACD\u0AAF. \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${n.options.map(s=>`'${s}'`).join(" | ")}`:"\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F";case"invalid_element":return`${n.origin} \u0AAE\u0ABE\u0A82 \u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AAE\u0AC2\u0AB2\u0ACD\u0AAF`;default:return"\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F"}}};function O$(){return{localeError:wz()}}var Sz=()=>{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,i=u=>{let l=r(u);return l?l.label:u??e.unknown.label},n=u=>`\u05D4${i(u)}`,o=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",s=u=>u?t[u]??null:null,a={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"},uuidv4:{label:"UUIDv4",gender:"m"},uuidv6:{label:"UUIDv6",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"},mac:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA MAC",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"},credit_card:{label:"\u05DE\u05E1\u05E4\u05E8 \u05DB\u05E8\u05D8\u05D9\u05E1 \u05D0\u05E9\u05E8\u05D0\u05D9",gender:"m"},currency_code:{label:"\u05E7\u05D5\u05D3 \u05DE\u05D8\u05D1\u05E2",gender:"m"},iban:{label:"IBAN",gender:"m"},jwt:{label:"JWT",gender:"m"},template_literal:{label:"\u05E7\u05DC\u05D8",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,d=c[l??""]??i(l),f=_(u.input),p=c[f]??e[f]?.label??f;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 ${p}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`}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 ${b(u.values[0])}`;let l=u.values.map(p=>b(p));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 d=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 ${d}`}case"too_big":{let l=s(u.origin),d=n(u.origin??"value");if(u.origin==="string")return`${l?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \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 g=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: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(u.origin==="array"||u.origin==="set"){let g=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",m=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: ${d} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${m}`.trim()}let f=u.inclusive?"<=":"<",p=o(u.origin??"value");return l?.unit?`${l.longLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${u.maximum.toString()} ${l.unit}`:`${l?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${u.maximum.toString()}`}case"too_small":{let l=s(u.origin),d=n(u.origin??"value");if(u.origin==="string")return`${l?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \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 g=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: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(u.origin==="array"||u.origin==="set"){let g=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let y=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${y}`}let m=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: ${d} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${m}`.trim()}let f=u.inclusive?">=":">",p=o(u.origin??"value");return l?.unit?`${l.shortLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${u.minimum.toString()} ${l.unit}`:`${l?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${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 d=a[l.format],f=d?.label??l.format,g=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${f} \u05DC\u05D0 ${g}`}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"}: ${v(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 A$(){return{localeError:Sz()}}var xz=()=>{let e={string:{unit:"\u0905\u0915\u094D\u0937\u0930",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},file:{unit:"\u092C\u093E\u0907\u091F\u094D\u0938",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},array:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},set:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},map:{unit:"\u092A\u094D\u0930\u0935\u093F\u0937\u094D\u091F\u093F\u092F\u093E\u0901",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"}};function t(n){return e[n]??null}let r={regex:"\u0907\u0928\u092A\u0941\u091F",email:"\u0908\u092E\u0947\u0932 \u092A\u0924\u093E",url:"URL",emoji:"\u0907\u092E\u094B\u091C\u0940",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0924\u093F\u0925\u093F \u0914\u0930 \u0938\u092E\u092F",date:"ISO \u0924\u093F\u0925\u093F",time:"ISO \u0938\u092E\u092F",duration:"ISO \u0905\u0935\u0927\u093F",ipv4:"IPv4 \u092A\u0924\u093E",ipv6:"IPv6 \u092A\u0924\u093E",mac:"MAC \u092A\u0924\u093E",cidrv4:"IPv4 \u0936\u094D\u0930\u0947\u0923\u0940",cidrv6:"IPv6 \u0936\u094D\u0930\u0947\u0923\u0940",base64:"Base64-\u090F\u0928\u094D\u0915\u094B\u0921\u0947\u0921 \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917",base64url:"Base64URL-\u090F\u0928\u094D\u0915\u094B\u0921\u0947\u0921 \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917",json_string:"JSON \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917",e164:"E.164 \u0938\u0902\u0916\u094D\u092F\u093E",credit_card:"\u0915\u094D\u0930\u0947\u0921\u093F\u091F \u0915\u093E\u0930\u094D\u0921 \u0938\u0902\u0916\u094D\u092F\u093E",currency_code:"\u092E\u0941\u0926\u094D\u0930\u093E \u0915\u094B\u0921",iban:"IBAN",jwt:"JWT",template_literal:"\u0907\u0928\u092A\u0941\u091F"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${o}, \u092A\u094D\u0930\u093E\u092A\u094D\u0924 ${a}`}case"invalid_value":return n.values.length===1?`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${b(n.values[0])}`:`\u0905\u092E\u093E\u0928\u094D\u092F \u0935\u093F\u0915\u0932\u094D\u092A: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u092E\u093E\u0928\u094B\u0902 \u092E\u0947\u0902 \u0938\u0947 \u090F\u0915 ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u092C\u0939\u0941\u0924 \u092C\u0921\u093C\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${n.origin??"\u092E\u093E\u0928"} \u092E\u0947\u0902 ${o}${n.maximum} ${s.unit} \u0939\u094B\u0902`:`\u092C\u0939\u0941\u0924 \u092C\u0921\u093C\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${n.origin??"\u092E\u093E\u0928"} ${o}${n.maximum} \u0939\u094B`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u092C\u0939\u0941\u0924 \u091B\u094B\u091F\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${n.origin} \u092E\u0947\u0902 ${o}${n.minimum} ${s.unit} \u0939\u094B\u0902`:`\u092C\u0939\u0941\u0924 \u091B\u094B\u091F\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${n.origin} ${o}${n.minimum} \u0939\u094B`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: "${o.prefix}" \u0938\u0947 \u0936\u0941\u0930\u0942 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:o.format==="ends_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: "${o.suffix}" \u092A\u0930 \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:o.format==="includes"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: \u0907\u0938\u092E\u0947\u0902 "${o.includes}" \u0936\u093E\u092E\u093F\u0932 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:o.format==="regex"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: \u092A\u0948\u091F\u0930\u094D\u0928 ${o.pattern} \u0938\u0947 \u092E\u0947\u0932 \u0916\u093E\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:`\u0905\u092E\u093E\u0928\u094D\u092F ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u0902\u0916\u094D\u092F\u093E: \u092F\u0939 ${n.divisor} \u0915\u093E \u0917\u0941\u0923\u091C \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`;case"unrecognized_keys":return`\u0905\u092A\u0930\u093F\u091A\u093F\u0924 \u0915\u0941\u0902\u091C\u0940${n.keys.length>1?"\u092F\u093E\u0901":""}: ${v(n.keys,", ")}`;case"invalid_key":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0915\u0941\u0902\u091C\u0940: ${n.origin} \u092E\u0947\u0902`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\u0905\u092E\u093E\u0928\u094D\u092F \u0921\u093F\u0938\u094D\u0915\u094D\u0930\u093F\u092E\u093F\u0928\u0947\u091F\u0930 \u092E\u093E\u0928: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${n.options.map(s=>`'${s}'`).join(" | ")}`:"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F";case"invalid_element":return`\u0905\u092E\u093E\u0928\u094D\u092F \u092E\u093E\u0928: ${n.origin} \u092E\u0947\u0902`;default:return"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F"}}};function N$(){return{localeError:xz()}}var Iz=()=>{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",mac:"MAC adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",credit_card:"broj kreditne kartice",currency_code:"kod valute",iban:"IBAN",jwt:"JWT",template_literal:"unos"},i={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 o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${n.expected}, a primljeno je ${a}`:`Neispravan unos: o\u010Dekuje se ${o}, a primljeno je ${a}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${b(n.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin),a=i[n.origin]??n.origin;return s?`Preveliko: o\u010Dekivano da ${a??"vrijednost"} ima ${o}${n.maximum.toString()} ${s.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${a??"vrijednost"} bude ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin),a=i[n.origin]??n.origin;return s?`Premalo: o\u010Dekivano da ${a} ima ${o}${n.minimum.toString()} ${s.unit}`:`Premalo: o\u010Dekivano da ${a} bude ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${o.prefix}"`:o.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${o.suffix}"`:o.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${o.includes}"`:o.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${o.pattern}`:`Neispravna ${r[o.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"}: ${v(n.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${i[n.origin]??n.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${i[n.origin]??n.origin}`;default:return"Neispravan unos"}}};function z$(){return{localeError:Iz()}}var Oz=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"},map:{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",mac:"MAC 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",credit_card:"hitelk\xE1rtyasz\xE1m",currency_code:"p\xE9nznemk\xF3d",iban:"IBAN",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${a}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${a}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${b(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${n.maximum.toString()} ${s.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${o}${n.minimum.toString()} ${s.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[o.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":""}: ${v(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 P$(){return{localeError:Oz()}}function D$(e,t,r){return Math.abs(e)===1?t:r}function An(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 Az=()=>{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"},map:{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",mac:"MAC \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",credit_card:"\u056F\u0580\u0565\u0564\u056B\u057F \u0584\u0561\u0580\u057F\u056B \u0570\u0561\u0574\u0561\u0580",currency_code:"\u0561\u0580\u056A\u0578\u0582\u0575\u0569\u056B \u056F\u0578\u0564",iban:"IBAN",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},i={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;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 ${a}`:`\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 ${o}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${a}`}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 ${b(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 ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);if(s){let a=Number(n.maximum),c=D$(a,s.unit.one,s.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 ${An(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${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 ${An(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);if(s){let a=Number(n.minimum),c=D$(a,s.unit.one,s.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 ${An(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${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 ${An(n.origin)} \u056C\u056B\u0576\u056B ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.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 ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[o.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":""}. ${v(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${An(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 ${An(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function T$(){return{localeError:Az()}}var Nz=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"},map:{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",mac:"alamat MAC",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",credit_card:"nomor kartu kredit",currency_code:"kode mata uang",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${a}`:`Input tidak valid: diharapkan ${o}, diterima ${a}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${b(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${o}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Terlalu kecil: diharapkan ${n.origin} memiliki ${o}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${r[o.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":""}: ${v(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 j$(){return{localeError:Nz()}}var zz=()=>{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"},map:{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",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",credit_card:"kreditkortan\xFAmer",currency_code:"gjaldmi\xF0ilsk\xF3\xF0i",iban:"IBAN",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${a} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${a} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${b(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${o}${n.maximum.toString()} ${s.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${o}${n.minimum.toString()} ${s.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${r[o.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"}: ${v(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 E$(){return{localeError:zz()}}var Pz=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"},map:{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",mac:"indirizzo MAC",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",credit_card:"numero di carta di credito",currency_code:"codice valuta",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${a}`:`Input non valido: atteso ${o}, ricevuto ${a}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${b(n.values[0])}`:`Opzione non valida: atteso uno tra ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Troppo grande: ${n.origin??"valore"} deve avere ${o}${n.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Troppo piccolo: ${n.origin} deve avere ${o}${n.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${n.origin} deve essere ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Input non valido: ${r[o.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"}: ${v(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 C$(){return{localeError:Pz()}}var Dz=()=>{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"},map:{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",mac:"MAC\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",credit_card:"\u30AF\u30EC\u30B8\u30C3\u30C8\u30AB\u30FC\u30C9\u756A\u53F7",currency_code:"\u901A\u8CA8\u30B3\u30FC\u30C9",iban:"IBAN",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},i={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${a}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${a}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${b(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${v(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",s=t(n.origin);return s?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${s.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",s=t(n.origin);return s?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${s.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[o.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":""}: ${v(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 U$(){return{localeError:Dz()}}var Tz=()=>{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"},map:{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",mac:"MAC \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",credit_card:"\u10E1\u10D0\u10D9\u10E0\u10D4\u10D3\u10D8\u10E2\u10DD \u10D1\u10D0\u10E0\u10D0\u10D7\u10D8\u10E1 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",currency_code:"\u10D5\u10D0\u10DA\u10E3\u10E2\u10D8\u10E1 \u10D9\u10DD\u10D3\u10D8",iban:"IBAN",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},i={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 o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;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 ${a}`:`\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 ${o}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${a}`}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 ${b(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 ${v(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\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"} ${s.verb} ${o}${n.maximum.toString()} ${s.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 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\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} ${s.verb} ${o}${n.minimum.toString()} ${s.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 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.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 "${o.prefix}"-\u10D8\u10D7`:o.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 "${o.suffix}"-\u10D8\u10D7`:o.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 "${o.includes}"-\u10E1`:o.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 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[o.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"}: ${v(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 L$(){return{localeError:Tz()}}var jz=()=>{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"},map:{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",mac:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 MAC",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",credit_card:"\u179B\u17C1\u1781\u1794\u17D0\u178E\u17D2\u178E\u17A5\u178E\u1791\u17B6\u1793",currency_code:"\u1780\u17BC\u178A\u179A\u17BC\u1794\u17B7\u1799\u1794\u17D0\u178E\u17D2\u178E",iban:"IBAN",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},i={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 o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;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 ${a}`:`\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 ${o} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${a}`}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 ${b(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 ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()} ${s.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"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()} ${s.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[o.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 ${v(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 Ps(){return{localeError:jz()}}function R$(){return Ps()}var Ez=()=>{let e={string:{unit:"\u0C85\u0C95\u0CCD\u0CB7\u0CB0\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},file:{unit:"\u0CAC\u0CC8\u0C9F\u0CCD\u200C\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},array:{unit:"\u0CB5\u0CB8\u0CCD\u0CA4\u0CC1\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},set:{unit:"\u0CB5\u0CB8\u0CCD\u0CA4\u0CC1\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},map:{unit:"entries",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"}};function t(n){return e[n]??null}let r={regex:"\u0C87\u0CA8\u0CCD\u0CAA\u0CC1\u0C9F\u0CCD",email:"email \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",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 \u0CA6\u0CBF\u0CA8\u0CBE\u0C82\u0C95\u0CA6 \u0CB8\u0CAE\u0CAF",date:"ISO \u0CA6\u0CBF\u0CA8\u0CBE\u0C82\u0C95",time:"ISO \u0CB8\u0CAE\u0CAF",duration:"ISO \u0C85\u0CB5\u0CA7\u0CBF",ipv4:"IPv4 \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",ipv6:"IPv6 \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",mac:"MAC \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",cidrv4:"IPv4 \u0CB5\u0CCD\u0CAF\u0CBE\u0CAA\u0CCD\u0CA4\u0CBF\u0CAF",cidrv6:"IPv6 \u0CB5\u0CCD\u0CAF\u0CBE\u0CAA\u0CCD\u0CA4\u0CBF\u0CAF",base64:"base64-encoded\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD",base64url:"base64url-encoded\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD",json_string:"JSON\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD",e164:"E.164 \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6",credit_card:"\u0C95\u0CCD\u0CB0\u0CC6\u0CA1\u0CBF\u0C9F\u0CCD \u0C95\u0CBE\u0CB0\u0CCD\u0CA1\u0CCD \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6",currency_code:"\u0C95\u0CB0\u0CC6\u0CA8\u0CCD\u0CB8\u0CBF \u0C95\u0CCB\u0CA1\u0CCD",iban:"IBAN",jwt:"JWT",template_literal:"\u0C87\u0CA8\u0CCD\u0CAA\u0CC1\u0C9F\u0CCD"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${o}, \u0CB8\u0CCD\u0CB5\u0CC0\u0C95\u0CB0\u0CBF\u0CB8\u0CBF\u0CA6\u0CA8\u0CC1 ${a}`}case"invalid_value":return n.values.length===1?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${b(n.values[0])}`:`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C86\u0CAF\u0CCD\u0C95\u0CC6: \u0C87\u0CB5\u0CC1\u0C97\u0CB3\u0CB2\u0CCD\u0CB2\u0CBF \u0C92\u0C82\u0CA6\u0CA8\u0CCD\u0CA8\u0CC1 \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0CA6\u0CCA\u0CA1\u0CCD\u0CA1\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${n.origin??"value"} \u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1 ${o}${n.maximum.toString()} ${s.unit??"\u0C85\u0C82\u0CB6\u0C97\u0CB3\u0CC1"}`:`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0CA6\u0CCA\u0CA1\u0CCD\u0CA1\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${n.origin??"value"} \u0C8E\u0C82\u0CA6\u0CC1 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0C9A\u0CBF\u0C95\u0CCD\u0C95\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${n.origin} \u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1 ${o}${n.minimum.toString()} ${s.unit}`:`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0C9A\u0CBF\u0C95\u0CCD\u0C95\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${n.origin} \u0C8E\u0C82\u0CA6\u0CC1 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0C87\u0CA6\u0CB0\u0CCA\u0C82\u0CA6\u0CBF\u0C97\u0CC6 \u0CAA\u0CCD\u0CB0\u0CBE\u0CB0\u0C82\u0CAD\u0CBF\u0CB8\u0CAC\u0CC7\u0C95\u0CC1 "${o.prefix}"`:o.format==="ends_with"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0C87\u0CA6\u0CB0\u0CCA\u0C82\u0CA6\u0CBF\u0C97\u0CC6 \u0C95\u0CCA\u0CA8\u0CC6\u0C97\u0CCA\u0CB3\u0CCD\u0CB3\u0CAC\u0CC7\u0C95\u0CC1 "${o.suffix}"`:o.format==="includes"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0C92\u0CB3\u0C97\u0CCA\u0C82\u0CA1\u0CBF\u0CB0\u0CAC\u0CC7\u0C95\u0CC1 "${o.includes}"`:o.format==="regex"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0CAE\u0CBE\u0CA6\u0CB0\u0CBF\u0C97\u0CC6 \u0CB9\u0CCA\u0C82\u0CA6\u0CBF\u0C95\u0CC6\u0CAF\u0CBE\u0C97\u0CAC\u0CC7\u0C95\u0CC1 ${o.pattern}`:`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6: \u0CAC\u0CB9\u0CC1\u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6\u0CAF\u0CBE\u0C97\u0CBF\u0CB0\u0CAC\u0CC7\u0C95\u0CC1 ${n.divisor}`;case"unrecognized_keys":return`\u0C97\u0CC1\u0CB0\u0CC1\u0CA4\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CA6 \u0C95\u0CC0 ${n.keys.length>1?"s":""}: ${v(n.keys,", ")}`;case"invalid_key":return`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0C95\u0CC0 \u0C87\u0CA8\u0CCD ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CA4\u0CBE\u0CB0\u0CA4\u0CAE\u0CCD\u0CAF \u0CAE\u0CCC\u0CB2\u0CCD\u0CAF. \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${n.options.map(s=>`'${s}'`).join(" | ")}`:"\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD";case"invalid_element":return`\u0CB0\u0CB2\u0CCD\u0CB2\u0CBF \u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CAE\u0CCC\u0CB2\u0CCD\u0CAF ${n.origin}`;default:return"\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD"}}};function Z$(){return{localeError:Ez()}}var Cz=()=>{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"},map:{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",mac:"MAC \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",credit_card:"\uC2E0\uC6A9\uCE74\uB4DC \uBC88\uD638",currency_code:"\uD1B5\uD654 \uCF54\uB4DC",iban:"IBAN",jwt:"JWT",template_literal:"\uC785\uB825"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${b(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${v(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",s=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=t(n.origin),c=a?.unit??"\uC694\uC18C";return a?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${c} ${o}${s}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${o}${s}`}case"too_small":{let o=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",s=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=t(n.origin),c=a?.unit??"\uC694\uC18C";return a?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${c} ${o}${s}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${o}${s}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[o.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: ${v(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:Cz()}}var ai=e=>e.charAt(0).toUpperCase()+e.slice(1);function F$(e){let t=Math.abs(e),r=t%10,i=t%100;return i>=11&&i<=19||r===0?"many":r===1?"one":"few"}var Uz=()=>{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,o,s,a){let c=e[n]??null;return c===null?c:{unit:c.unit[o],verb:c.verb[a][s?"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",mac:"MAC 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",credit_card:"kredito kortel\u0117s numeris",currency_code:"valiutos kodas",iban:"IBAN",jwt:"JWT",template_literal:"\u012Fvestis"},i={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 o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${a}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${a}, o tik\u0117tasi - ${o}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${b(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${v(n.values,"|")} pasirinkim\u0173`;case"too_big":{let o=i[n.origin]??n.origin,s=t(n.origin,F$(Number(n.maximum)),n.inclusive??!1,"smaller");if(s?.verb)return`${ai(o??n.origin??"reik\u0161m\u0117")} ${s.verb} ${n.maximum.toString()} ${s.unit??"element\u0173"}`;let a=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${ai(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${a} ${n.maximum.toString()} ${s?.unit}`}case"too_small":{let o=i[n.origin]??n.origin,s=t(n.origin,F$(Number(n.minimum)),n.inclusive??!1,"bigger");if(s?.verb)return`${ai(o??n.origin??"reik\u0161m\u0117")} ${s.verb} ${n.minimum.toString()} ${s.unit??"element\u0173"}`;let a=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${ai(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${a} ${n.minimum.toString()} ${s?.unit}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${r[o.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"}: ${v(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=i[n.origin]??n.origin;return`${ai(o??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function B$(){return{localeError:Uz()}}var Lz=()=>{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"},map:{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",mac:"MAC \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",credit_card:"\u0431\u0440\u043E\u0458 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u0430 \u043A\u0430\u0440\u0442\u0438\u0447\u043A\u0430",currency_code:"\u043A\u043E\u0434 \u043D\u0430 \u0432\u0430\u043B\u0443\u0442\u0430",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},i={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;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 ${a}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${a}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${b(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 ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\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 ${o}${n.maximum.toString()} ${s.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 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\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 ${o}${n.minimum.toString()} ${s.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 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`Invalid ${r[o.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"}: ${v(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 q$(){return{localeError:Lz()}}var Rz=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"},map:{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",mac:"alamat MAC",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",credit_card:"nombor kad kredit",currency_code:"kod mata wang",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${a}`:`Input tidak sah: dijangka ${o}, diterima ${a}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${b(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Terlalu besar: dijangka ${n.origin??"nilai"} ${s.verb} ${o}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Terlalu kecil: dijangka ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${r[o.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${v(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 V$(){return{localeError:Rz()}}var Zz=()=>{let e={string:{unit:"\u0905\u0915\u094D\u0937\u0930",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},file:{unit:"\u092C\u093E\u0907\u091F",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},array:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},set:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},map:{unit:"\u092A\u094D\u0930\u0935\u093F\u0937\u094D\u091F\u093F",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"}};function t(n){return e[n]??null}let r={regex:"\u0907\u0928\u092A\u0941\u091F",email:"\u0907\u092E\u0947\u0932 \u0920\u0947\u0917\u093E\u0928\u093E",url:"URL",emoji:"\u0907\u092E\u094B\u091C\u0940",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u092E\u093F\u0924\u093F \u0930 \u0938\u092E\u092F",date:"ISO \u092E\u093F\u0924\u093F",time:"ISO \u0938\u092E\u092F",duration:"ISO \u0905\u0935\u0927\u093F",ipv4:"IPv4 \u0920\u0947\u0917\u093E\u0928\u093E",ipv6:"IPv6 \u0920\u0947\u0917\u093E\u0928\u093E",mac:"MAC \u0920\u0947\u0917\u093E\u0928\u093E",cidrv4:"IPv4 \u0926\u093E\u092F\u0930\u093E",cidrv6:"IPv6 \u0926\u093E\u092F\u0930\u093E",base64:"base64-\u0907\u0928\u094D\u0915\u094B\u0921 \u0917\u0930\u093F\u090F\u0915\u094B \u0938\u094D\u091F\u094D\u0930\u093F\u0919",base64url:"base64url-\u0907\u0928\u094D\u0915\u094B\u0921 \u0917\u0930\u093F\u090F\u0915\u094B \u0938\u094D\u091F\u094D\u0930\u093F\u0919",json_string:"JSON \u0938\u094D\u091F\u094D\u0930\u093F\u0919",e164:"E.164 \u0928\u092E\u094D\u092C\u0930",credit_card:"\u0915\u094D\u0930\u0947\u0921\u093F\u091F \u0915\u093E\u0930\u094D\u0921 \u0928\u092E\u094D\u092C\u0930",currency_code:"\u092E\u0941\u0926\u094D\u0930\u093E \u0915\u094B\u0921",iban:"IBAN",jwt:"JWT",template_literal:"\u0907\u0928\u092A\u0941\u091F"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${o}, \u092A\u094D\u0930\u093E\u092A\u094D\u0924 ${a}`}case"invalid_value":return n.values.length===1?`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${b(n.values[0])}`:`\u0905\u092E\u093E\u0928\u094D\u092F \u0935\u093F\u0915\u0932\u094D\u092A: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u092E\u093E\u0928\u0939\u0930\u0942 \u092E\u0927\u094D\u092F\u0947 \u090F\u0915 ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0927\u0947\u0930\u0948 \u0920\u0942\u0932\u094B: ${n.origin??"\u092E\u093E\u0928"} \u092E\u093E ${o}${n.maximum.toString()} ${s.unit} ${s.verb}`:`\u0927\u0947\u0930\u0948 \u0920\u0942\u0932\u094B: ${n.origin??"\u092E\u093E\u0928"} ${o}${n.maximum.toString()} \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u0927\u0947\u0930\u0948 \u0938\u093E\u0928\u094B: ${n.origin} \u092E\u093E ${o}${n.minimum.toString()} ${s.unit} ${s.verb}`:`\u0927\u0947\u0930\u0948 \u0938\u093E\u0928\u094B: ${n.origin} ${o}${n.minimum.toString()} \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: "${o.prefix}" \u092C\u093E\u091F \u0938\u0941\u0930\u0941 \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`:o.format==="ends_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: "${o.suffix}" \u092E\u093E \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`:o.format==="includes"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: "${o.includes}" \u0938\u092E\u093E\u0935\u0947\u0936 \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`:o.format==="regex"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: \u0922\u093E\u0901\u091A\u093E ${o.pattern} \u0938\u0901\u0917 \u092E\u0947\u0932 \u0916\u093E\u0928\u0941\u092A\u0930\u094D\u091B`:`\u0905\u092E\u093E\u0928\u094D\u092F ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u0902\u0916\u094D\u092F\u093E: ${n.divisor} \u0915\u094B \u0917\u0941\u0923\u091C \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`;case"unrecognized_keys":return`\u0905\u092A\u0930\u093F\u091A\u093F\u0924 \u0915\u0941\u091E\u094D\u091C\u0940${n.keys.length>1?"\u0939\u0930\u0942":""}: ${v(n.keys,", ")}`;case"invalid_key":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0915\u0941\u091E\u094D\u091C\u0940: ${n.origin} \u092E\u093E`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\u0905\u092E\u093E\u0928\u094D\u092F \u0921\u093F\u0938\u094D\u0915\u094D\u0930\u093F\u092E\u093F\u0928\u0947\u091F\u0930 \u092E\u093E\u0928: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${n.options.map(s=>`'${s}'`).join(" | ")}`:"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F";case"invalid_element":return`\u0905\u092E\u093E\u0928\u094D\u092F \u092E\u093E\u0928: ${n.origin} \u092E\u093E`;default:return"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F"}}};function K$(){return{localeError:Zz()}}var Mz=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"},map:{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",mac:"MAC-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",credit_card:"creditcardnummer",currency_code:"valutacode",iban:"IBAN",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${a}`:`Ongeldige invoer: verwacht ${o}, ontving ${a}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${b(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin),a=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return s?`Te ${a}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${a}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} is`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin),a=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return s?`Te ${a}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${a}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} is`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${r[o.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":""}: ${v(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 J$(){return{localeError:Mz()}}var Fz=()=>{let e={string:{unit:"teikn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"element",verb:"\xE5 innehalde"},set:{unit:"element",verb:"\xE5 innehalde"},map:{unit:"element",verb:"\xE5 innehalde"}};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-varigheit",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkoda streng",base64url:"base64url-enkoda streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tal",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventa instanceof ${n.expected}, fekk ${a}`:`Ugyldig input: forventa ${o}, fekk ${a}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventa ${b(n.values[0])}`:`Ugyldig val: forventa eitt av ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`For stor(t): forventa ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()} ${s.unit??"element"}`:`For stor(t): forventa ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`For lite(n): forventa ${n.origin} til \xE5 ha ${o}${n.minimum.toString()} ${s.unit}`:`For lite(n): forventa ${n.origin} til \xE5 ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 slutte med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 innehalde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.format]??n.format}`}case"not_multiple_of":return`Ugyldig tal: m\xE5 vere eit multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjende n\xF8klar":"Ukjend n\xF8kkel"}: ${v(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 H$(){return{localeError:Fz()}}var Bz=()=>{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"},map:{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-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${a}`:`Ugyldig input: forventet ${o}, fikk ${a}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${b(n.values[0])}`:`Ugyldig valg: forventet en av ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.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"}: ${v(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 W$(){return{localeError:Bz()}}var qz=()=>{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"},map:{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",mac:"MAC 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",credit_card:"i'tib\xE2r kart\u0131 numaras\u0131",currency_code:"para birimi kodu",iban:"IBAN",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${a}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${a}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${b(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} ${s.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} ${s.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=n;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[o.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":""}: ${v(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 G$(){return{localeError:qz()}}var Vz=()=>{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"},map:{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",mac:"\u062F MAC \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",credit_card:"\u062F \u06A9\u0631\u06CC\u0689\u06CC\u067C \u06A9\u0627\u0631\u062A \u0634\u0645\u06CC\u0631\u0647",currency_code:"\u062F \u0627\u0633\u0639\u0627\u0631\u0648 \u06A9\u0648\u0689",iban:"IBAN",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;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 ${a} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${a} \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 ${b(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${v(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${s.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 ${o}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${s.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[o.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"}: ${v(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 Y$(){return{localeError:Vz()}}var Kz=()=>{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"},map:{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",mac:"adres MAC",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",credit_card:"numer karty kredytowej",currency_code:"kod waluty",iban:"IBAN",jwt:"JWT",template_literal:"wej\u015Bcie"},i={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${a}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${a}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${b(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.maximum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.minimum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[o.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":""}: ${v(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 X$(){return{localeError:Kz()}}var Jz=()=>{let e={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function t(s){return e[s]??null}let r={regex:"a entrada",email:"o endere\xE7o de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a dura\xE7\xE3o ISO",ipv4:"o endere\xE7o IPv4",ipv6:"o endere\xE7o IPv6",mac:"o endere\xE7o MAC",cidrv4:"o intervalo de endere\xE7os IPv4",cidrv6:"o intervalo de endere\xE7os IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o n\xFAmero E.164",credit_card:"o n\xFAmero de cart\xE3o de cr\xE9dito",currency_code:"o c\xF3digo de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},i={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},n={string:{name:"texto",articles:i.masculine},number:{name:"n\xFAmero",articles:i.masculine},int:{name:"n\xFAmero inteiro",articles:i.masculine},boolean:{name:"valor booleano",articles:i.masculine},bigint:{name:"n\xFAmero bigint",articles:i.masculine},symbol:{name:"s\xEDmbolo",articles:i.masculine},undefined:{name:'valor "undefined"',articles:i.masculine},null:{name:'valor "nulo"',articles:i.masculine},never:{name:'valor "never"',articles:i.masculine},void:{name:'valor "void"',articles:i.masculine},date:{name:"data",articles:i.feminine},array:{name:"vetor",articles:i.masculine},object:{name:"objeto",articles:i.masculine},tuple:{name:"tuplo",articles:i.masculine},record:{name:"registo",articles:i.masculine},map:{name:"mapa",articles:i.masculine},set:{name:"conjunto",articles:i.masculine},file:{name:"ficheiro",articles:i.masculine},nonoptional:{name:"valor n\xE3o opcional",articles:i.masculine},nan:{name:'valor "NaN"',articles:i.masculine},function:{name:"fun\xE7\xE3o",articles:i.feminine}};function o(s,a){let c=n[s]??{name:`valor "${s}"`,articles:i.masculine};return`${c.articles[a]} ${c.name}`}return s=>{switch(s.code){case"invalid_type":{let a=o(s.expected,"indefinite"),c=_(s.input),u=o(c,"indefinite");return`Entrada inv\xE1lida: esperava ${a}, recebeu ${u}`}case"invalid_value":return s.values.length===1?`Entrada inv\xE1lida: esperava ${b(s.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperava uma das seguintes op\xE7\xF5es: ${v(s.values,"|")}`;case"too_big":{let a=s.inclusive?"<=":"<",c=t(s.origin);return c?`Demasiado grande: esperava que ${o(s.origin,"definite")} tivesse ${a} ${s.maximum.toString()} ${c.unit??"elementos"}`:`Demasiado grande: esperava que ${o(s.origin,"definite")} fosse ${a} ${s.maximum.toString()}`}case"too_small":{let a=s.inclusive?">=":">",c=t(s.origin);return c?`Demasiado pequeno: esperava que ${o(s.origin,"definite")} tivesse ${a} ${s.minimum.toString()} ${c.unit??"elementos"}`:`Demasiado pequeno: esperava que ${o(s.origin,"definite")} fosse ${a} ${s.minimum.toString()}`}case"invalid_format":{let a=s;return a.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar por "${a.prefix}"`:a.format==="ends_with"?`Texto inv\xE1lido: deve terminar em "${a.suffix}"`:a.format==="includes"?`Texto inv\xE1lido: deve incluir "${a.includes}"`:a.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${a.pattern}`:`Formato d${r[a.format]??s.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${s.divisor}`;case"unrecognized_keys":{let a=s.keys.length>1?"s":"";return`Chave${a} inv\xE1lida${a}: ${v(s.keys,", ")}`}case"invalid_key":return`Entrada inv\xE1lida n${o(s.origin,"definite")}`;case"invalid_union":return s.options&&Array.isArray(s.options)&&s.options.length>0?`Valor de discrimina\xE7\xE3o inv\xE1lido. Esperava ${s.options.map(c=>`'${c}'`).join(" | ")}`:"Entrada inv\xE1lida";case"invalid_element":return`Entrada inv\xE1lida n${o(s.origin,"definite")}`;default:return"Entrada inv\xE1lida"}}};function Q$(){return{localeError:Jz()}}var Hz=()=>{let e={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function t(s){return e[s]??null}let r={regex:"a entrada",email:"o endere\xE7o de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a dura\xE7\xE3o ISO",ipv4:"o endere\xE7o IPv4",ipv6:"o endere\xE7o IPv6",mac:"o endere\xE7o MAC",cidrv4:"a faixa de endere\xE7os IPv4",cidrv6:"a faixa de endere\xE7os IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o n\xFAmero E.164",credit_card:"o n\xFAmero de cart\xE3o de cr\xE9dito",currency_code:"o c\xF3digo de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},i={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},n={string:{name:"texto",articles:i.masculine},number:{name:"n\xFAmero",articles:i.masculine},int:{name:"n\xFAmero inteiro",articles:i.masculine},boolean:{name:"valor booleano",articles:i.masculine},bigint:{name:"n\xFAmero bigint",articles:i.masculine},symbol:{name:"s\xEDmbolo",articles:i.masculine},undefined:{name:'valor "undefined"',articles:i.masculine},null:{name:'valor "nulo"',articles:i.masculine},never:{name:'valor "never"',articles:i.masculine},void:{name:'valor "void"',articles:i.masculine},date:{name:"data",articles:i.feminine},array:{name:"vetor",articles:i.masculine},object:{name:"objeto",articles:i.masculine},tuple:{name:"tupla",articles:i.feminine},record:{name:"registro",articles:i.masculine},map:{name:"mapa",articles:i.masculine},set:{name:"conjunto",articles:i.masculine},file:{name:"arquivo",articles:i.masculine},nonoptional:{name:"valor n\xE3o opcional",articles:i.masculine},nan:{name:'valor "NaN"',articles:i.masculine},function:{name:"fun\xE7\xE3o",articles:i.feminine}};function o(s,a){let c=n[s]??{name:`valor "${s}"`,articles:i.masculine};return`${c.articles[a]} ${c.name}`}return s=>{switch(s.code){case"invalid_type":{let a=o(s.expected,"indefinite"),c=_(s.input),u=o(c,"indefinite");return`Entrada inv\xE1lida: esperava ${a}, recebeu ${u}`}case"invalid_value":return s.values.length===1?`Entrada inv\xE1lida: esperava ${b(s.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperava uma das seguintes op\xE7\xF5es: ${v(s.values,"|")}`;case"too_big":{let a=s.inclusive?"<=":"<",c=t(s.origin);return c?`Grande demais: esperava que ${o(s.origin,"definite")} tivesse ${a} ${s.maximum.toString()} ${c.unit??"elementos"}`:`Grande demais: esperava que ${o(s.origin,"definite")} fosse ${a} ${s.maximum.toString()}`}case"too_small":{let a=s.inclusive?">=":">",c=t(s.origin);return c?`Pequeno demais: esperava que ${o(s.origin,"definite")} tivesse ${a} ${s.minimum.toString()} ${c.unit??"elementos"}`:`Pequeno demais: esperava que ${o(s.origin,"definite")} fosse ${a} ${s.minimum.toString()}`}case"invalid_format":{let a=s;return a.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${a.prefix}"`:a.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${a.suffix}"`:a.format==="includes"?`Texto inv\xE1lido: deve incluir "${a.includes}"`:a.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${a.pattern}`:`Formato d${r[a.format]??s.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${s.divisor}`;case"unrecognized_keys":{let a=s.keys.length>1?"s":"";return`Chave${a} inv\xE1lida${a}: ${v(s.keys,", ")}`}case"invalid_key":return`Entrada inv\xE1lida n${o(s.origin,"definite")}`;case"invalid_union":return s.options&&Array.isArray(s.options)&&s.options.length>0?`Valor de discrimina\xE7\xE3o inv\xE1lido. Esperava ${s.options.map(c=>`'${c}'`).join(" | ")}`:"Entrada inv\xE1lida";case"invalid_element":return`Entrada inv\xE1lida n${o(s.origin,"definite")}`;default:return"Entrada inv\xE1lida"}}};function eb(){return{localeError:Hz()}}var Wz=()=>{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",credit_card:"num\u0103r de card de credit",currency_code:"cod valutar",iban:"IBAN",jwt:"JWT",template_literal:"intrare"},i={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 o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return`Intrare invalid\u0103: a\u0219teptat ${o}, primit ${a}`}case"invalid_value":return n.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${b(n.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} ${s.verb} ${o}${n.maximum.toString()} ${s.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} s\u0103 fie ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Prea mic: a\u0219teptat ca ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`Prea mic: a\u0219teptat ca ${n.origin} s\u0103 fie ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${o.prefix}"`:o.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${o.suffix}"`:o.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${o.includes}"`:o.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${o.pattern}`:`Format invalid: ${r[o.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: ${v(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 tb(){return{localeError:Wz()}}function nb(e,t,r,i){let n=Math.abs(e),o=n%10,s=n%100;return s>=11&&s<=19?i:o===1?t:o>=2&&o<=4?r:i}var Gz=()=>{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"},map:{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",mac:"MAC \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",credit_card:"\u043D\u043E\u043C\u0435\u0440 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u043E\u0439 \u043A\u0430\u0440\u0442\u044B",currency_code:"\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u044B",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;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 ${a}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${a}`}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 ${b(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 ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);if(s){let a=Number(n.maximum),c=nb(a,s.unit.one,s.unit.few,s.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 ${o}${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 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);if(s){let a=Number(n.minimum),c=nb(a,s.unit.one,s.unit.few,s.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 ${o}${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 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[o.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":""}: ${v(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 rb(){return{localeError:Gz()}}var Yz=()=>{let e={string:{unit:"znakov",verb:"ma\u0165"},file:{unit:"bajtov",verb:"ma\u0165"},array:{unit:"prvkov",verb:"ma\u0165"},set:{unit:"prvkov",verb:"ma\u0165"},map:{unit:"polo\u017Eiek",verb:"ma\u0165"}};function t(n){return e[n]??null}let r={regex:"regul\xE1rny 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:"d\xE1tum a \u010Das vo form\xE1te ISO",date:"d\xE1tum vo form\xE1te ISO",time:"\u010Das vo form\xE1te ISO",duration:"doba trvania ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"re\u0165azec zak\xF3dovan\xFD vo form\xE1te base64",base64url:"re\u0165azec zak\xF3dovan\xFD vo form\xE1te base64url",json_string:"re\u0165azec vo form\xE1te JSON",e164:"\u010D\xEDslo E.164",credit_card:"\u010D\xEDslo kreditnej karty",currency_code:"k\xF3d meny",iban:"IBAN",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\u010D\xEDslo",string:"re\u0165azec",function:"funkcia",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 instanceof ${n.expected}, obdr\u017Ean\xE9 ${a}`:`Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 ${o}, obdr\u017Ean\xE9 ${a}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 ${b(n.values[0])}`:`Neplatn\xFD vstup: o\u010Dak\xE1van\xE1 jedna z hodn\xF4t ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Hodnota je pr\xEDli\u0161 ve\u013Ek\xE1: ${n.origin??"hodnota"} mus\xED ma\u0165 ${o}${n.maximum.toString()} ${s.unit??"prvkov"}`:`Hodnota je pr\xEDli\u0161 ve\u013Ek\xE1: ${n.origin??"hodnota"} mus\xED by\u0165 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Hodnota je pr\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED ma\u0165 ${o}${n.minimum.toString()} ${s.unit??"prvkov"}`:`Hodnota je pr\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED by\u0165 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neplatn\xFD re\u0165azec: mus\xED za\u010D\xEDna\u0165 na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD re\u0165azec: mus\xED kon\u010Di\u0165 na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD re\u0165azec: mus\xED obsahova\u0165 "${o.includes}"`:o.format==="regex"?`Neplatn\xFD re\u0165azec: mus\xED zodpoveda\u0165 vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${r[o.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED by\u0165 n\xE1sobkom ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1me kl\xFA\u010De: ${v(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xFA\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 ib(){return{localeError:Yz()}}var Xz=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"},map:{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",mac:"MAC naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",credit_card:"\u0161tevilka kreditne kartice",currency_code:"koda valute",iban:"IBAN",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${a}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${a}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${b(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${o}${n.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${o}${n.minimum.toString()} ${s.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${r[o.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"}: ${v(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 ob(){return{localeError:Xz()}}var Qz=()=>{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"},map:{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-adress",ipv6:"IPv6-adress",mac:"MAC-adress",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",credit_card:"kreditkortsnummer",currency_code:"valutakod",iban:"IBAN",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${a}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${a}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${b(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()} ${s.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()} ${s.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${r[o.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"}: ${v(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 sb(){return{localeError:Qz()}}var eP=()=>{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"},map:{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",mac:"MAC \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",credit_card:"\u0B95\u0B9F\u0BA9\u0BCD \u0B85\u0B9F\u0BCD\u0B9F\u0BC8 \u0B8E\u0BA3\u0BCD",currency_code:"\u0BA8\u0BBE\u0BA3\u0BAF\u0B95\u0BCD \u0B95\u0BC1\u0BB1\u0BBF\u0BAF\u0BC0\u0B9F\u0BC1",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={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 o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;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 ${a}`:`\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 ${o}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a}`}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 ${b(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 ${v(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\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"} ${o}${n.maximum.toString()} ${s.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"} ${o}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\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} ${o}${n.minimum.toString()} ${s.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} ${o}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.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[o.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":""}: ${v(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 ab(){return{localeError:eP()}}var tP=()=>{let e={string:{unit:"\u0430\u043B\u043E\u043C\u0430\u0442",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},file:{unit:"\u0431\u0430\u0439\u0442",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},array:{unit:"\u0443\u043D\u0441\u0443\u0440",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},set:{unit:"\u0443\u043D\u0441\u0443\u0440",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},map:{unit:"\u0441\u0430\u0431\u0442",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0443\u0440\u0443\u0434",email:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 email",url:"URL",emoji:"\u044D\u043C\u043E\u04B7\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0441\u0430\u043D\u0430\u0432\u0443 \u0432\u0430\u049B\u0442\u0438 ISO",date:"\u0441\u0430\u043D\u0430\u0438 ISO",time:"\u0432\u0430\u049B\u0442\u0438 ISO",duration:"\u0434\u0430\u0432\u043E\u043C\u043D\u043E\u043A\u0438\u0438 ISO",ipv4:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 IPv4",ipv6:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 IPv6",mac:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 MAC",cidrv4:"\u043C\u0430\u04B3\u0434\u0443\u0434\u0430\u0438 IPv4",cidrv6:"\u043C\u0430\u04B3\u0434\u0443\u0434\u0430\u0438 IPv6",base64:"\u0441\u0430\u0442\u0440\u0438 \u0434\u0430\u0440 \u0444\u043E\u0440\u043C\u0430\u0442\u0438 base64",base64url:"\u0441\u0430\u0442\u0440\u0438 \u0434\u0430\u0440 \u0444\u043E\u0440\u043C\u0430\u0442\u0438 base64url",json_string:"\u0441\u0430\u0442\u0440\u0438 JSON",e164:"\u0440\u0430\u049B\u0430\u043C\u0438 E.164",credit_card:"\u0440\u0430\u049B\u0430\u043C\u0438 \u043A\u043E\u0440\u0442\u0438 \u043A\u0440\u0435\u0434\u0438\u0442\u04E3",currency_code:"\u0440\u0430\u043C\u0437\u0438 \u0430\u0441\u044A\u043E\u0440",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u0443\u0440\u0443\u0434"},i={nan:"NaN",number:"\u0440\u0430\u049B\u0430\u043C",string:"\u0441\u0430\u0442\u0440",array:"\u043C\u0430\u0441\u0441\u0438\u0432",object:"\u043E\u0431\u044A\u0435\u043A\u0442",date:"\u0441\u0430\u043D\u0430"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return`\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: ${o} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442, ${a} \u0433\u0438\u0440\u0438\u0444\u0442\u0430 \u0448\u0443\u0434`}case"invalid_value":return n.values.length===1?`\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: ${b(n.values[0])} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`:`\u0418\u043D\u0442\u0438\u0445\u043E\u0431\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u044F\u043A\u0435 \u0430\u0437 ${v(n.values,"|")} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0425\u0435\u043B\u0435 \u043A\u0430\u043B\u043E\u043D: ${n.origin??"\u049B\u0438\u043C\u0430\u0442"} \u0431\u043E\u044F\u0434 ${o}${n.maximum.toString()} ${s.unit} ${s.verb}`:`\u0425\u0435\u043B\u0435 \u043A\u0430\u043B\u043E\u043D: ${n.origin??"\u049B\u0438\u043C\u0430\u0442"} \u0431\u043E\u044F\u0434 ${o}${n.maximum.toString()} \u0431\u043E\u0448\u0430\u0434`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u0425\u0435\u043B\u0435 \u0445\u0443\u0440\u0434: ${n.origin} \u0431\u043E\u044F\u0434 ${o}${n.minimum.toString()} ${s.unit} ${s.verb}`:`\u0425\u0435\u043B\u0435 \u0445\u0443\u0440\u0434: ${n.origin} \u0431\u043E\u044F\u0434 ${o}${n.minimum.toString()} \u0431\u043E\u0448\u0430\u0434`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u043E "${o.prefix}" \u043E\u0493\u043E\u0437 \u0448\u0430\u0432\u0430\u0434`:o.format==="ends_with"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u043E "${o.suffix}" \u0430\u043D\u04B7\u043E\u043C \u0451\u0431\u0430\u0434`:o.format==="includes"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 "${o.includes}"-\u0440\u043E \u0434\u0430\u0440 \u0431\u0430\u0440 \u0433\u0438\u0440\u0430\u0434`:o.format==="regex"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u0430 \u043D\u0430\u043C\u0443\u043D\u0430\u0438 ${o.pattern} \u043C\u0443\u0432\u043E\u0444\u0438\u049B\u0430\u0442 \u043A\u0443\u043D\u0430\u0434`:`${r[o.format]??n.format}-\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442`}case"not_multiple_of":return`\u0420\u0430\u049B\u0430\u043C\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u0430 ${n.divisor} \u0431\u0435 \u0431\u0430\u049B\u0438\u044F \u0442\u0430\u049B\u0441\u0438\u043C \u0448\u0430\u0432\u0430\u0434`;case"unrecognized_keys":return`\u041A\u0430\u043B\u0438\u0434${n.keys.length>1?"\u04B3\u043E\u0438":"\u0438"} \u043D\u043E\u043C\u0430\u044A\u043B\u0443\u043C: ${v(n.keys,", ")}`;case"invalid_key":return`\u041A\u0430\u043B\u0438\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442 \u0434\u0430\u0440 ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\u049A\u0438\u043C\u0430\u0442\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442\u0438 \u0434\u0438\u0441\u043A\u0440\u0438\u043C\u0438\u043D\u0430\u0442\u043E\u0440: ${n.options.map(s=>`'${s}'`).join(" | ")} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`:"\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442";case"invalid_element":return`\u049A\u0438\u043C\u0430\u0442\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442 \u0434\u0430\u0440 ${n.origin}`;default:return"\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442"}}};function cb(){return{localeError:tP()}}var nP=()=>{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"},map:{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",mac:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 MAC",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)",credit_card:"\u0E2B\u0E21\u0E32\u0E22\u0E40\u0E25\u0E02\u0E1A\u0E31\u0E15\u0E23\u0E40\u0E04\u0E23\u0E14\u0E34\u0E15",currency_code:"\u0E23\u0E2B\u0E31\u0E2A\u0E2A\u0E01\u0E38\u0E25\u0E40\u0E07\u0E34\u0E19",iban:"IBAN",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},i={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 o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;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 ${a}`:`\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 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${a}`}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 ${b(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 ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",s=t(n.origin);return s?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()} ${s.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${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",s=t(n.origin);return s?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()} ${s.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.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 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[o.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: ${v(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 ub(){return{localeError:nP()}}var rP=()=>{let e={string:{unit:"simwol",verb:"bolmaly"},file:{unit:"ba\xFDt",verb:"bolmaly"},array:{unit:"elementler",verb:"bolmaly"},set:{unit:"elementler",verb:"bolmaly"},map:{unit:"elementler",verb:"bolmaly"}};function t(n){return e[n]??null}let r={regex:"giri\u015F",email:"e-po\xE7ta salgysy",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 sene we wagt",date:"ISO sene",time:"ISO wagt",duration:"ISO wagt aralygy",ipv4:"IPv4 salgysy",ipv6:"IPv6 salgysy",mac:"MAC salgysy",cidrv4:"IPv4 aralygy",cidrv6:"IPv6 aralygy",base64:"base64 bilen \u015Fifrlenen setir",base64url:"base64url bilen \u015Fifrlenen setir",json_string:"JSON setiri",e164:"E.164 nomeri",credit_card:"kredit kartyny\u0148 nomeri",currency_code:"wal\xFDuta kody",iban:"IBAN",jwt:"JWT",template_literal:"\u015Fablon"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return`N\xE4dogry baha: gara\u015Fylan ${o} \xFDerine ${a} alyndy`}case"invalid_value":return n.values.length===1?`N\xE4dogry baha: ${b(n.values[0])} bolmaly`:`N\xE4dogry sa\xFDlaw: a\u015Fakdakylardan biri bolmaly: ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Has uly: gara\u015Fyl\xFDan ${n.origin??"baha"} ${o} ${n.maximum.toString()} ${s.unit??"element"}`:`Has uly: gara\u015Fyl\xFDan ${n.origin??"baha"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Has ki\xE7i: gara\u015Fyl\xFDan ${n.origin} ${o} ${n.minimum.toString()} ${s.unit}`:`Has ki\xE7i: gara\u015Fyl\xFDan ${n.origin} ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`N\xE4dogry setir: "${o.prefix}" bilen ba\u015Flamaly`:o.format==="ends_with"?`N\xE4dogry setir: "${o.suffix}" bilen gutarmaly`:o.format==="includes"?`N\xE4dogry setir: "${o.includes}" saklamaly`:o.format==="regex"?`N\xE4dogry setir: ${o.pattern} nusga la\xFDyk bolmaly`:`N\xE4dogry ${r[o.format]??n.format}`}case"not_multiple_of":return`N\xE4dogry san: ${n.divisor} bilen galyndysyz b\xF6l\xFCnmeli`;case"unrecognized_keys":return`Tanalma\xFDan a\xE7ar${n.keys.length>1?"lar":""}: ${v(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde n\xE4dogry a\xE7ar`;case"invalid_union":return"N\xE4dogry baha";case"invalid_element":return`${n.origin} i\xE7inde n\xE4dogry baha`;default:return"N\xE4dogry baha"}}};function lb(){return{localeError:rP()}}var iP=()=>{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"},map:{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",mac:"MAC 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",credit_card:"kredi kart\u0131 numaras\u0131",currency_code:"para birimi kodu",iban:"IBAN",jwt:"JWT",template_literal:"\u015Eablon dizesi"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${a}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${a}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${b(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()} ${s.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()} ${s.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[o.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":""}: ${v(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 db(){return{localeError:iP()}}var oP=()=>{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"},map:{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",mac:"\u0430\u0434\u0440\u0435\u0441\u0430 MAC",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",credit_card:"\u043D\u043E\u043C\u0435\u0440 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u043E\u0457 \u043A\u0430\u0440\u0442\u043A\u0438",currency_code:"\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u0438",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;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 ${a}`:`\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 ${o}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${a}`}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 ${b(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 ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\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"} ${s.verb} ${o}${n.maximum.toString()} ${s.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 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\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} ${s.verb} ${o}${n.minimum.toString()} ${s.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 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[o.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":""}: ${v(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 Ds(){return{localeError:oP()}}function fb(){return Ds()}var sP=()=>{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"},map:{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",mac:"\u0627\u06CC\u0645 \u0627\u06D2 \u0633\u06CC \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",credit_card:"\u06A9\u0631\u06CC\u0688\u0679 \u06A9\u0627\u0631\u0688 \u0646\u0645\u0628\u0631",currency_code:"\u06A9\u0631\u0646\u0633\u06CC \u06A9\u0648\u0688",iban:"IBAN",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},i={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;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 ${a} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${a} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${b(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${v(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${n.maximum.toString()} ${s.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 ${o}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${o}${n.minimum.toString()} ${s.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 ${o}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[o.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":""}: ${v(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 pb(){return{localeError:sP()}}var aP=()=>{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",credit_card:"kredit karta raqami",currency_code:"valyuta kodi",iban:"IBAN",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${a}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${a}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${b(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[o.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":""}: ${v(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 mb(){return{localeError:aP()}}var cP=()=>{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"},map:{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",mac:"\u0111\u1ECBa ch\u1EC9 MAC",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",credit_card:"s\u1ED1 th\u1EBB t\xEDn d\u1EE5ng",currency_code:"m\xE3 ti\u1EC1n t\u1EC7",iban:"IBAN",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},i={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;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 ${a}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${a}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${b(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 ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${s.verb} ${o}${n.maximum.toString()} ${s.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${r[o.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: ${v(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 gb(){return{localeError:cP()}}var uP=()=>{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"},map:{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",mac:"MAC\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",credit_card:"\u4FE1\u7528\u5361\u53F7",currency_code:"\u8D27\u5E01\u4EE3\u7801",iban:"IBAN",jwt:"JWT",template_literal:"\u8F93\u5165"},i={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${b(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()} ${s.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()} ${s.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${r[o.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): ${v(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 hb(){return{localeError:uP()}}var lP=()=>{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"},map:{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",mac:"MAC \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",credit_card:"\u4FE1\u7528\u5361\u865F",currency_code:"\u8CA8\u5E63\u4EE3\u78BC",iban:"IBAN",jwt:"JWT",template_literal:"\u8F38\u5165"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${a}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${a}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${b(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()} ${s.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()} ${s.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${r[o.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${v(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 vb(){return{localeError:lP()}}var dP=()=>{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"},map:{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",mac:"\xE0d\xEDr\u1EB9\u0301s\xEC MAC",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",credit_card:"n\u1ECDmba kaadi gbese",currency_code:"koodu ow\xF3",iban:"IBAN",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},i={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=_(n.input),a=i[s]??s;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 ${a}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${a}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${b(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${v(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=t(n.origin);return s?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${s.verb} ${o}${n.maximum} ${s.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.maximum}`}case"too_small":{let o=n.inclusive?">=":">",s=t(n.origin);return s?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${s.verb} ${o}${n.minimum} ${s.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.minimum}`}case"invalid_format":{let o=n;return o.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 "${o.prefix}"`:o.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${o.suffix}"`:o.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${o.includes}"`:o.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${o.pattern}`:`A\u1E63\xEC\u1E63e: ${r[o.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: ${v(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 yb(){return{localeError:dP()}}var $b,bf=Symbol("ZodOutput"),kf=Symbol("ZodInput"),Ts=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let i=r[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.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 i={...this.get(r)??{}};delete i.id;let n={...i,...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 js(){return new Ts}($b=globalThis).__zod_globalRegistry??($b.__zod_globalRegistry=js());var se=globalThis.__zod_globalRegistry;var le=Symbol.for("zod.compile.invalid"),bb=Symbol.for("zod.compile.fallback"),Ee=class extends Error{constructor(t="z.compile does not support async refinements, transforms, or checks"){super(t),this.name="ZodCompileAsyncError"}},R=class extends Error{constructor(t,r=!0){super(`z.compile does not support ${t}; this schema must use the runtime parser`),this.name="ZodCompileUnsupportedError",this.islandable=r}};function pP(e,t){try{return Cs(e,{assertOnly:!0})}catch{return t}}function xf(e,t){try{let r=Cs(e),i=Es(e,r);return i._zod.bag.validator=pP(e,r),i}catch(r){if(t?.strict)throw r;return e}}function Es(e,t){if(As(e))throw new R("a schema whose subtree contains a reference cycle");let r=F(e),i=e._zod.run,n=i.__originalRun??i,o=(s,a)=>{if(a?.async||a?.direction==="backward"||a?.skipChecks||a?.[bb]||a&&Ns(a,s.value))return n(s,a);let c=t(s.value);return c!==le?(s.value=c,s):(a&&(a[bb]=!0),n(s,a))};return o.__originalRun=n,r._zod.bag.fallbackRun=n,r._zod.bag.validator=t,r._zod.run=o,i.__originalRun||mP(r,e,t),r}function mP(e,t,r){let i=e,n=t;if(typeof n.safeParse=="function"){let o=n.safeParse;i.safeParse=(s,a)=>{let c=r(s);return c!==le?{success:!0,data:c}:o(s,a)}}if(typeof n.parse=="function"){let o=n.parse;i.parse=(s,a)=>{let c=r(s);return c!==le?c:o(s,a)}}}function Cs(e,t){let r=!0;try{r=As(e)}catch{}if(r)throw new R("a schema whose subtree contains a reference cycle");let i={constants:new Map,constantCounter:0,varCounter:0,definite:!0},n=new Lt(["input"]),o=W(n,i,e,"input",!t?.assertOnly);n.write(o===null?"return true;":`return ${o};`);let s=["INVALID",...i.constants.keys()],a=[le,...i.constants.values()],c=n.content.join(`
194
+ `),u=t?.debug?s.length>0?`// Constants: ${s.join(", ")}
195
+ ${c}`:c:"",l=Function,d=`return (input) => {
196
+ ${c}
197
+ }`,f;try{f=new l(...s,d)(...a)}catch(p){throw new R(`this schema (generated code failed to evaluate: ${p.message})`)}return t?.debug&&(f.code=u),f.definite=i.definite,f}function T(e,t){for(let[i,n]of e.constants)if(n===t)return i;let r=`c${e.constantCounter++}`;return e.constants.set(r,t),r}function Mt(e,t){return e.definite=!1,T(e,t)}function D(e){return`v${e.varCounter++}`}function gP(e,t){let r=e._zod.run({value:t,issues:[]},{});if(r&&typeof r.then=="function")return le;let i=r;return i.issues.length===0?i.value:le}function ae(e,t,r,i,n=!0){let o=e.content.length,s=t.constants.size,a=t.constantCounter,c=t.varCounter;try{return W(e,t,r,i,n)}catch(u){if(!(u instanceof R)||!u.islandable)throw u;if(e.content.length=o,t.constants.size>s){let l=Array.from(t.constants.keys()).slice(s);for(let d of l)t.constants.delete(d)}return t.constantCounter=a,t.varCounter=c,hP(e,t,r,i)}}function hP(e,t,r,i){t.definite=!1;let n=T(t,r),o=T(t,gP),s=D(t);return e.write(`const ${s} = ${o}(${n}, ${i});`),e.write(`if (${s} === INVALID) return INVALID;`),s}var vP=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);function yP(e,t,r,i){let n=r._zod.def.checks;if(!n||n.length===0)return i;let o=i;for(let s of n){let a=s._zod.def;if(a.when&&!vP.has(a.check))throw new R('check with a custom "when" condition');switch(a.check){case"greater_than":$P(e,t,a,o);break;case"less_than":bP(e,t,a,o);break;case"multiple_of":kP(e,t,a,o);break;case"number_format":Ib(e,a,o);break;case"min_length":{let c=ht(a.minimum,"min_length"),u=_f(e,t,o,`${o}.length >= ${c} && ${o}.length < ${a.minimum*2}`);e.write(`if (${u} < ${c}) return INVALID;`);break}case"max_length":{let c=ht(a.maximum,"max_length"),u=_f(e,t,o,`${o}.length > ${c}`);e.write(`if (${u} > ${c}) return INVALID;`);break}case"length_equals":{let c=ht(a.length,"length_equals"),u=_f(e,t,o,`${o}.length >= ${c} && ${o}.length <= ${a.length*2}`);e.write(`if (${u} !== ${c}) return INVALID;`);break}case"min_size":e.write(`if (${o}.size < ${ht(a.minimum,"min_size")}) return INVALID;`);break;case"max_size":e.write(`if (${o}.size > ${ht(a.maximum,"max_size")}) return INVALID;`);break;case"size_equals":e.write(`if (${o}.size !== ${ht(a.size,"size_equals")}) return INVALID;`);break;case"string_format":o=Ob(e,t,a,o);break;case"custom":o=OP(e,t,s,o);break;case"bigint_format":_P(e,a,o);break;case"mime_type":wP(e,t,a,o);break;case"property":xP(e,t,a,o);break;case"properties":SP(e,t,a,o);break;case"overwrite":{let c=D(t);IP(e,t,s,o,c),o=c;break}default:throw new R(`check type ${a.check}`)}}return o}function _f(e,t,r,i){let n=T(t,Ct),o=D(t);return e.write(`const ${o} = typeof ${r} === "string" && ${i} ? ${n}(${r}) : ${r}.length;`),o}function ht(e,t){if(typeof e!="number"||!Number.isFinite(e))throw new R(`${t} bound of type ${typeof e}`);return`${e}`}function xb(e,t){if(typeof t=="bigint")return`${t}n`;if(typeof t=="number"){if(Number.isNaN(t))throw new R("comparison check with NaN bound");return`${t}`}if(t instanceof Date){if(Number.isNaN(t.getTime()))throw new R("comparison check with Invalid Date bound");return T(e,t)}throw new R(`comparison check bound of type ${typeof t}`)}function $P(e,t,r,i){let n=r.inclusive?"<":"<=";e.write(`if (${i} ${n} ${xb(t,r.value)}) return INVALID;`)}function bP(e,t,r,i){let n=r.inclusive?">":">=";e.write(`if (${i} ${n} ${xb(t,r.value)}) return INVALID;`)}function kP(e,t,r,i){if(typeof r.value=="bigint"){if(r.value===BigInt(0))throw new R("multiple_of check with a zero divisor");e.write(`if (${i} % ${r.value}n !== 0n) return INVALID;`)}else{let n=T(t,Dr);e.write(`if (${n}(${i}, ${ht(r.value,"multiple_of")}) !== 0) return INVALID;`)}}function Ib(e,t,r){let i=t.format;switch(i){case"safeint":e.write(`if (!Number.isSafeInteger(${r})) return INVALID;`);break;case"int32":e.write(`if (!Number.isInteger(${r}) || ${r} < -2147483648 || ${r} > 2147483647) return INVALID;`);break;case"uint32":e.write(`if (!Number.isInteger(${r}) || ${r} < 0 || ${r} > 4294967295) return INVALID;`);break;case"float32":e.write(`if (!Number.isFinite(${r}) || ${r} < -3.4028234663852886e38 || ${r} > 3.4028234663852886e38) return INVALID;`);break;case"float64":e.write(`if (!Number.isFinite(${r})) return INVALID;`);break;default:throw new R(`number format ${i}`)}}function _P(e,t,r){let i=t.format;if(i)switch(i){case"int64":e.write(`if (${r} < -9223372036854775808n || ${r} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${r} < 0n || ${r} > 18446744073709551615n) return INVALID;`);break;default:throw new R(`bigint format ${i}`)}}function wP(e,t,r,i){let n=r.mime;if(n&&n.length>0){let o=T(t,new Set(n));e.write(`if (!${o}.has(${i}.type)) return INVALID;`)}}function SP(e,t,r,i){if(r.when)throw new R('check with a custom "when" condition');e.write(`if (${i} == null) return INVALID;`);let n=r.shape;for(let o of Reflect.ownKeys(n)){let s=typeof o=="symbol"?T(t,o):ce(o),a=D(t);e.write(`const ${a} = ${i}[${s}];`),ae(e,t,n[o],a,!1)}}function xP(e,t,r,i){let n=`${i}[${JSON.stringify(r.property)}]`;W(e,t,r.schema,n)}function IP(e,t,r,i,n){let o=r._zod.def.tx;if(!o)throw new R("overwrite check without a transform function");if(Ft(o))throw new Ee("z.compile: async overwrite transforms are not supported");let s=T(t,o);e.write(`const ${n} = ${s}(${i});`)}function wf(){throw new $e}function If(e){this.issues.push(e)}function OP(e,t,r,i){let n=r._zod.def;if(n.fn){if(Ft(n.fn))throw new Ee("z.compile: async .refine() predicates are not supported");let o=Mt(t,n.fn),s=T(t,wf),a=D(t);return e.write(`const ${a} = ${o}(${i});`),e.write(`if (${a} instanceof Promise) ${s}();`),e.write(`if (!${a}) return INVALID;`),i}if(r._zod.check){if(Ft(r._zod.check))throw new Ee("z.compile: async .superRefine() / check functions are not supported");let o=r._zod.check,a=Mt(t,u=>{let l={value:u,issues:[],addIssue:If};return o(l)instanceof Promise&&wf(),l.issues.length===0?l.value:le}),c=D(t);return e.write(`const ${c} = ${a}(${i});`),e.write(`if (${c} === INVALID) return INVALID;`),c}throw new R("custom check without a predicate or check function")}var AP=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"]);function Ob(e,t,r,i,n=!0){let o=r.format;if(o==="base64"){let u=T(t,Xr);return e.write(`if (!${u}(${i})) return INVALID;`),i}if(o==="base64url"){let u=T(t,gs);return e.write(`if (!${u}(${i})) return INVALID;`),i}if(o==="jwt"){let u=T(t,ys),l=T(t,r.alg??null);return e.write(`if (!${u}(${i}, ${l})) return INVALID;`),i}if(o==="ipv6"){let u=T(t,Yr);return e.write(`if (!${u}(${i})) return INVALID;`),i}if(o==="cidrv6"){let u=T(t,ps);return e.write(`if (!${u}(${i})) return INVALID;`),i}if(o==="credit_card"){let u=T(t,hs);return e.write(`if (!${u}(${i})) return INVALID;`),i}if(o==="iban"){let u=T(t,vs);return e.write(`if (!${u}(${i})) return INVALID;`),i}let s=r;if(o==="url"||o==="httpurl"||s.normalize||s.hostname!==void 0||s.protocol!==void 0){let u=T(t,ls),l=T(t,r),d=D(t),f=D(t);if(e.write(`const ${d} = ${i}.trim();`),e.write(`const ${f} = ${u}(${d}, ${l});`),e.write(`if (typeof ${f} === "number") return INVALID;`),s.hostname!==void 0){let m=T(t,ds);e.write(`if (!${m}(${f}, ${l}.hostname)) return INVALID;`)}if(s.protocol!==void 0){let m=T(t,fs);e.write(`if (!${m}(${f}, ${l}.protocol)) return INVALID;`)}if(!n)return null;let p=D(t),g=s.normalize?`${f}.href`:`${T(t,Gr)}(${d})`;return e.write(`const ${p} = ${g};`),p}let a=r.fn;if(a){if(Ft(a))throw new R(`async string format ${o}`);let u=T(t,a);return e.write(`if (!${u}(${i})) return INVALID;`),i}if(AP.has(o)&&r.pattern){let u=T(t,r.pattern);return e.write(`${u}.lastIndex = 0;`),e.write(`if (!${u}.test(${i})) return INVALID;`),i}let c=r.format;switch(c){case"regex":throw new R("regex format without a pattern");case"lowercase":e.write(`if (${i} !== ${i}.toLowerCase()) return INVALID;`);break;case"uppercase":e.write(`if (${i} !== ${i}.toUpperCase()) return INVALID;`);break;case"includes":e.write(`if (!${i}.includes(${ce(r.includes)})) return INVALID;`);break;case"starts_with":{let u=r.prefix;e.write(`if (${i}.slice(0, ${u.length}) !== ${ce(u)}) return INVALID;`);break}case"ends_with":{let u=r.suffix;e.write(`if (${i}.slice(-${u.length}) !== ${ce(u)}) return INVALID;`);break}default:throw new R(`string format ${c}`)}return i}function W(e,t,r,i,n=!0){let o=r._zod.def,s=o.type;if(o.coerce)throw new R(`coercion (z.coerce.${s}())`);let a=n||!!o.checks?.length,c;switch(s){case"string":c=NP(e,t,r,i,a);break;case"number":c=zP(e,r,i);break;case"boolean":c=PP(e,i);break;case"bigint":c=DP(e,r,i);break;case"symbol":c=TP(e,i);break;case"undefined":c=jP(e,i);break;case"null":c=EP(e,i);break;case"any":case"unknown":c=i;break;case"never":e.write("return INVALID;"),c=i;break;case"void":c=CP(e,i);break;case"nan":c=UP(e,i);break;case"date":c=LP(e,i);break;case"object":c=RP(e,t,r,i,a);break;case"optional":c=ZP(e,t,r,i,a);break;case"nullable":c=BP(e,t,r,i,a);break;case"array":c=qP(e,t,r,i,a);break;case"literal":c=VP(e,t,r,i);break;case"enum":c=KP(e,t,r,i);break;case"readonly":{let u=_b(e,t,r,i),l=D(t);e.write(`const ${l} = Object.freeze(${u});`),c=l;break}case"success":_b(e,t,r,i),c="true";break;case"default":case"prefault":c=JP(e,t,r,i);break;case"nonoptional":c=HP(e,t,r,i);break;case"tuple":c=WP(e,t,r,i);break;case"union":c=GP(e,t,r,i);break;case"intersection":c=QP(e,t,r,i);break;case"record":c=e0(e,t,r,i);break;case"map":c=n0(e,t,r,i);break;case"set":c=r0(e,t,r,i);break;case"file":c=i0(e,i);break;case"template_literal":c=o0(e,t,r,i);break;case"lazy":c=s0(e,t,r,i);break;case"pipe":c=a0(e,t,r,i);break;case"custom":c=c0(e,t,r,i);break;case"transform":c=d0(e,t,r,i);break;case"catch":c=l0(e,t,r,i);break;default:throw new R(`schema type ${s}`)}return c===null?null:yP(e,t,r,c)}function NP(e,t,r,i,n=!0){e.write(`if (typeof ${i} !== "string") return INVALID;`);let o=r._zod.def;return o.format===void 0?i:Ob(e,t,o,i,n)}function zP(e,t,r){e.write(`if (typeof ${r} !== "number" || !Number.isFinite(${r})) return INVALID;`);let i=t._zod.def;return i.check==="number_format"&&i.format&&Ib(e,{format:i.format},r),r}function PP(e,t){return e.write(`if (typeof ${t} !== "boolean") return INVALID;`),t}function DP(e,t,r){e.write(`if (typeof ${r} !== "bigint") return INVALID;`);let i=t._zod.def;if(i.format)switch(i.format){case"int64":e.write(`if (${r} < -9223372036854775808n || ${r} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${r} < 0n || ${r} > 18446744073709551615n) return INVALID;`);break}return r}function TP(e,t){return e.write(`if (typeof ${t} !== "symbol") return INVALID;`),t}function jP(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function EP(e,t){return e.write(`if (${t} !== null) return INVALID;`),t}function CP(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function UP(e,t){return e.write(`if (typeof ${t} !== "number" || !Number.isNaN(${t})) return INVALID;`),t}function LP(e,t){return e.write(`if (!(${t} instanceof Date) || Number.isNaN(${t}.getTime())) return INVALID;`),t}function RP(e,t,r,i,n=!0){let o=r._zod.def;e.write(`if (typeof ${i} !== "object" || ${i} === null || Array.isArray(${i})) return INVALID;`);let s=o.shape,a=Object.keys(s),c=Object.getOwnPropertySymbols(s),u=c.length?[...a,...c]:a,l=k=>typeof k=="symbol"?T(t,k):ce(k),d=k=>typeof k=="symbol"?`[${l(k)}]`:ce(k),f=s;if(a.includes("__proto__"))throw new R('object shape key "__proto__"');let p=new Map;for(let k of u){let S=f[k],I=l(k),z=D(t);if(e.write(`const ${z} = ${i}[${I}];`),S._zod.optin!==void 0){let O=D(t);e.write(`let ${O} = (() => {`),e.indented(C=>{let P=ae(C,t,S,z);C.write(`return ${P};`)}),e.write("})();"),S._zod.optout==="optional"?(e.write(`if (${O} === INVALID) {`),e.indented(C=>{C.write(`if (${I} in ${i}) return INVALID;`),C.write(`${O} = undefined;`)}),e.write("}")):e.write(`if (${O} === INVALID) return INVALID;`),p.set(k,O)}else{FP(S)&&e.write(`if (!(${I} in ${i})) return INVALID;`);let O=ae(e,t,S,z,n);O!==null&&p.set(k,O)}}let g=o.catchall,m="none";if(g){let k=g._zod.def.type;if(k==="never"){let S=a.map(I=>`k !== ${ce(I)}`).join(" && ")||"true";e.write(`for (const k in ${i}) {`),e.indented(I=>{I.write(`if (${S}) return INVALID;`)}),e.write("}")}else(k==="unknown"||k==="any")&&!g._zod.def.checks?.length?m="passthrough":m="schema"}let y=D(t),w=u.some(k=>kb(f[k])||Sf(f[k]));if(!n){if(m==="schema"){let k=a.length>0?T(t,new Set(a)):null;e.write(`for (const k in ${i}) {`),e.indented(S=>{S.write('if (k === "__proto__") continue;'),k&&S.write(`if (${k}.has(k)) continue;`);let I=D(t);S.write(`const ${I} = ${i}[k];`),ae(S,t,g,I,!1)}),e.write("}")}return null}if(w){e.write(`const ${y} = {};`);for(let k of u){let S=l(k),I=p.get(k);Sf(f[k])?e.write(`if (${S} in ${i}) ${y}[${S}] = ${I};`):kb(f[k])?e.write(`if (${I} !== undefined || ${S} in ${i}) ${y}[${S}] = ${I};`):e.write(`${y}[${S}] = ${I};`)}}else{let k=u.map(S=>`${d(S)}: ${p.get(S)}`).join(", ");e.write(`const ${y} = { ${k} };`)}if(m!=="none"){let k=a.length>0?T(t,new Set(a)):null;e.write(`for (const k in ${i}) {`),e.indented(S=>{if(S.write('if (k === "__proto__") continue;'),k&&S.write(`if (${k}.has(k)) continue;`),m==="passthrough")S.write(`${y}[k] = ${i}[k];`);else{let I=D(t);S.write(`const ${I} = ${i}[k];`);let z=ae(S,t,g,I);S.write(`${y}[k] = ${z};`)}}),e.write("}")}return y}function ZP(e,t,r,i,n=!0){let o=r._zod.def;if(MP(r))return W(e,t,o.innerType,i,n);if(o.innerType._zod.optin==="defaulted"){let a=D(t),c=D(t);return e.write(`let ${a};`),e.write(`if (${i} === undefined) {`),e.indented(u=>{u.write(`const ${c} = (() => {`),u.indented(l=>{let d=W(l,t,o.innerType,i);l.write(`return ${d};`)}),u.write("})();"),u.write(`if (${c} !== INVALID) ${a} = ${c};`)}),e.write("} else {"),e.indented(u=>{let l=W(u,t,o.innerType,i);u.write(`${a} = ${l};`)}),e.write("}"),a}let s=n?D(t):null;return s&&e.write(`let ${s};`),e.write(`if (${i} !== undefined) {`),e.indented(a=>{let c=W(a,t,o.innerType,i,n);s&&c!==null&&a.write(`${s} = ${c};`)}),e.write("}"),s}function MP(e){return e._zod.traits?.has("$ZodExactOptional")===!0}function FP(e){return e._zod.optin===void 0&&Zt(e)}function Zt(e){if(e._zod.def.coerce)return!0;let t=e._zod.def;switch(t.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return t.innerType?Zt(t.innerType):!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return t.innerType?Zt(t.innerType):!0;case"catch":return!0;case"union":return t.options?t.options.some(Zt):!0;case"intersection":return!t.left||!t.right?!0:Zt(t.left)&&Zt(t.right);case"pipe":return t.in?Zt(t.in):!0;default:return!0}}function Sf(e){return e._zod.optin==="optional"&&e._zod.optout==="optional"}function kb(e){return(e._zod.optin!=="defaulted"||e._zod.optout==="optional")&&Nn(e)}function Nn(e){let t=e._zod.def;switch(t.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return t.innerType?Nn(t.innerType):!0;case"union":return t.options?t.options.some(Nn):!0;case"intersection":return!t.left||!t.right||Nn(t.left)||Nn(t.right);case"pipe":return t.out?Nn(t.out):!0;default:return!0}}function BP(e,t,r,i,n=!0){let o=r._zod.def,s=n?D(t):null;return s&&e.write(`let ${s} = null;`),e.write(`if (${i} !== null) {`),e.indented(a=>{let c=W(a,t,o.innerType,i,n);s&&c!==null&&a.write(`${s} = ${c};`)}),e.write("}"),s}function Of(e,t,r){for(let[i,n]of $n(t._zod.def.checks))e.write(`if (${r} > ${ht(i,n._zod.def.check)}) return INVALID;`)}function qP(e,t,r,i,n=!0){let o=r._zod.def;e.write(`if (!Array.isArray(${i})) return INVALID;`),Of(e,r,`${i}.length`);let s=n?D(t):null,a=D(t),c=D(t);return s&&e.write(`const ${s} = new Array(${i}.length);`),e.write(`for (let ${a} = 0; ${a} < ${i}.length; ${a}++) {`),e.indented(u=>{u.write(`const ${c} = ${i}[${a}];`);let l=ae(u,t,o.element,c,n);s&&l!==null&&u.write(`${s}[${a}] = ${l};`)}),e.write("}"),s}function VP(e,t,r,i){let o=r._zod.def.values;if(o.length!==1){let a=T(t,new Set(o));return e.write(`if (!${a}.has(${i})) return INVALID;`),i}let s=o[0];if(typeof s=="number"&&Number.isNaN(s)){let a=T(t,new Set(o));return e.write(`if (!${a}.has(${i})) return INVALID;`),i}if(typeof s=="string")e.write(`if (${i} !== ${ce(s)}) return INVALID;`);else if(typeof s=="number"||typeof s=="boolean")e.write(`if (${i} !== ${s}) return INVALID;`);else if(s===null)e.write(`if (${i} !== null) return INVALID;`);else if(s===void 0)e.write(`if (${i} !== undefined) return INVALID;`);else if(typeof s=="bigint")e.write(`if (${i} !== ${s}n) return INVALID;`);else throw new R(`literal type ${typeof s}`);return i}function KP(e,t,r,i){let n=r._zod.values;if(!n)throw new R("enum schema without enumerated values");let o=T(t,n);return e.write(`if (!${o}.has(${i})) return INVALID;`),i}function _b(e,t,r,i){let n=r._zod.def;return W(e,t,n.innerType,i)}function JP(e,t,r,i){let n=r._zod.def,s=Object.getOwnPropertyDescriptor(r._zod.def,"defaultValue")?()=>r._zod.def.defaultValue:void 0;if(r._zod.def.type==="prefault"){if(!s)return W(e,t,n.innerType,i);let c=T(t,s),u=D(t);return e.write(`let ${u} = ${i};`),e.write(`if (${i} === undefined) ${u} = ${c}();`),W(e,t,n.innerType,u)}let a=D(t);if(s){let c=T(t,s),u=T(t,Tr);e.write(`let ${a};`),e.write(`if (${i} === undefined) {`),e.indented(l=>{l.write(`${a} = ${u}(${c}());`)}),e.write("} else {"),e.indented(l=>{let d=W(l,t,n.innerType,i);l.write(`${a} = ${d} === undefined ? ${u}(${c}()) : ${d};`)}),e.write("}")}else e.write(`let ${a};`),e.write(`if (${i} !== undefined) {`),e.indented(c=>{let u=W(c,t,n.innerType,i);c.write(`${a} = ${u};`)}),e.write("}");return a}function HP(e,t,r,i){let n=r._zod.def,o=W(e,t,n.innerType,i),s=D(t);return e.write(`const ${s} = ${o};`),e.write(`if (${s} === undefined) return INVALID;`),s}function WP(e,t,r,i){let n=r._zod.def,o=n.items,s=n.rest;e.write(`if (!Array.isArray(${i})) return INVALID;`);let a=wb(o,"optin"),c=wb(o,"optout");s?e.write(`if (${i}.length < ${a}) return INVALID;`):e.write(`if (${i}.length < ${a} || ${i}.length > ${o.length}) return INVALID;`);let u=D(t);e.write(`const ${u} = [];`);for(let l=0;l<o.length;l++){let d=o[l];if(l>=c)e.write(`if (${u}.length === ${l}) {`),e.indented(f=>{f.write(`if (${l} < ${i}.length) {`),f.indented(p=>{let g=D(t);p.write(`const ${g} = ${i}[${l}];`);let m=ae(p,t,d,g);p.write(`${u}[${l}] = ${m};`)}),f.write("} else {"),f.indented(p=>{if(Sf(d)){p.write(`${u}.length = ${l};`);return}let g=D(t),m=D(t);p.write(`const ${g} = undefined;`),p.write(`const ${m} = (() => {`),p.indented(y=>{let w=ae(y,t,d,g);y.write(`return ${w};`)}),p.write("})();"),p.write(`if (${m} === INVALID || ${m} === undefined) ${u}.length = ${l};`),p.write(`else ${u}[${l}] = ${m};`)}),f.write("}")}),e.write("}");else{let f=D(t);e.write(`const ${f} = ${i}[${l}];`);let p=ae(e,t,d,f);e.write(`${u}[${l}] = ${p};`)}}if(s){let l=D(t),d=D(t);e.write(`for (let ${l} = ${o.length}; ${l} < ${i}.length; ${l}++) {`),e.indented(f=>{f.write(`const ${d} = ${i}[${l}];`);let p=ae(f,t,s,d);f.write(`${u}[${l}] = ${p};`)}),e.write("}")}return u}function wb(e,t){for(let r=e.length-1;r>=0;r--)if(!(t==="optin"?e[r]._zod.optin!==void 0:e[r]._zod.optout==="optional"))return r+1;return 0}function GP(e,t,r,i){let n=r._zod.def,o=n.options;if(n.discriminator)return YP(e,t,n,i);if(n.inclusive===!1)throw new R("exclusive unions (z.xor)");if(o.length===0)return e.write("return INVALID;"),i;if(o.length===1)return W(e,t,o[0],i);if(o.every(c=>c._zod.def.type==="literal"&&!c._zod.def.checks?.length)){let c=new Set(o.flatMap(l=>l._zod.def.values)),u=T(t,c);return e.write(`if (!${u}.has(${i})) return INVALID;`),i}let a=D(t);e.write(`let ${a};`);for(let c=0;c<o.length;c++){let u=o[c];c===0?e.write(`${a} = (() => {`):e.write(`if (${a} === INVALID) ${a} = (() => {`),e.indented(l=>{let d=W(l,t,u,i);l.write(`return ${d};`)}),e.write("})();")}return e.write(`if (${a} === INVALID) return INVALID;`),a}function YP(e,t,r,i){if(r.unionFallback)throw new R("discriminated union with unionFallback");if(r.options.length===0)return e.write("return INVALID;"),i;let n=D(t),o=D(t);e.write(`const ${n} = ${i}?.[${ce(r.discriminator)}];`),e.write(`let ${o};`);let s=!0,a=new Set;for(let c of r.options){let u=c._zod.propValues?.[r.discriminator];if(!u||u.size===0)throw new R("discriminated union option without static discriminator values");for(let f of u){if(a.has(f))throw new R(`duplicate discriminator value ${String(f)}`);a.add(f)}let l=Array.from(u,f=>XP(t,n,f)),d=s?"if":"else if";e.write(`${d} (${l.join(" || ")}) {`),e.indented(f=>{let p=W(f,t,c,i);f.write(`${o} = ${p};`)}),e.write("}"),s=!1}return e.write("else { return INVALID; }"),o}function XP(e,t,r){if(typeof r=="string")return`${t} === ${ce(r)}`;if(typeof r=="number")return Number.isNaN(r)?`Number.isNaN(${t})`:`${t} === ${r}`;if(typeof r=="boolean")return`${t} === ${r}`;if(r===null)return`${t} === null`;if(r===void 0)return`${t} === undefined`;if(typeof r=="bigint")return`${t} === ${r}n`;if(typeof r=="symbol"){let i=T(e,r);return`${t} === ${i}`}throw new R(`literal discriminator value ${String(r)}`)}function QP(e,t,r,i){let n=r._zod.def;t.definite=!1;let o=ae(e,t,n.left,i),s=ae(e,t,n.right,i),a=T(t,In),c=D(t);return e.write(`const ${c} = ${a}(${o}, ${s});`),e.write(`if (!${c}.valid) return INVALID;`),`${c}.data`}function e0(e,t,r,i){let n=r._zod.def,o=T(t,Ae);e.write(`if (!${o}(${i})) return INVALID;`);let s=D(t),a=D(t),c=D(t);e.write(`const ${s} = {};`);let u=n,l=u.partial?void 0:n.keyType._zod.values;if(l){let p=[];for(let m of l){if(!(typeof m=="string"||typeof m=="number"||typeof m=="symbol"))throw new R(`record key value ${String(m)}`);let y=typeof m=="number"?m.toString():m;if(y==="__proto__")throw new R('record key "__proto__"');p.push(y);let w=T(t,m),k=W(e,t,n.keyType,w),S=D(t);e.write(`const ${S} = ${i}[${t0(t,y)}];`);let I=ae(e,t,n.valueType,S);e.write(`${s}[${k}] = ${I};`)}let g=T(t,new Set(p));return e.write(`for (const ${a} in ${i}) {`),e.indented(m=>{m.write(`if (${g}.has(${a})) continue;`),u.mode==="loose"?m.write(`if (${a} !== "__proto__") ${s}[${a}] = ${i}[${a}];`):m.write("return INVALID;")}),e.write("}"),s}let d=n.keyType._zod.def;if(!(d.type==="string"&&d.format===void 0&&!d.coerce&&(d.checks?.length??0)===0)){let p=n.mode==="loose",g=Cs(n.keyType);g.definite===!1&&(t.definite=!1);let m=T(t,g),y=T(t,Xe),w=D(t);return Sb(e,t,i,a,k=>{k.write(`let ${w} = ${m}(${a});`),k.write(`if (${w} === INVALID && typeof ${a} === "string" && ${y}.test(${a})) ${w} = ${m}(Number(${a}));`),p?k.write(`if (${w} === INVALID) { ${s}[${a}] = ${i}[${a}]; continue; }`):k.write(`if (${w} === INVALID) return INVALID;`),k.write(`if (${w} === "__proto__") continue;`);let S=D(t);k.write(`const ${S} = ${i}[${a}];`);let I=ae(k,t,n.valueType,S);k.write(`${s}[${w}] = ${I};`)}),s}return Sb(e,t,i,a,p=>{p.write(`const ${c} = ${i}[${a}];`);let g=ae(p,t,n.valueType,c);p.write(`${s}[${a}] = ${g};`)},"return INVALID;"),s}function Sb(e,t,r,i,n,o){let s=T(t,Object.prototype.propertyIsEnumerable),a=D(t),c=D(t),u=D(t);e.write(`const ${a} = Object.getOwnPropertySymbols(${r});`),e.write(`const ${c} = Object.getOwnPropertyNames(${r});`),e.write(`for (let ${u} = 0; ${u} < ${c}.length; ${u}++) {`),e.indented(l=>{l.write(`const ${i} = ${c}[${u}];`),l.write(`if (${i} === "__proto__" || !${s}.call(${r}, ${i})) continue;`),n(l)}),e.write("}"),e.write(`for (let ${u} = 0; ${u} < ${a}.length; ${u}++) {`),e.indented(l=>{l.write(`const ${i} = ${a}[${u}];`),l.write(`if (!${s}.call(${r}, ${i})) continue;`),o?l.write(o):n(l)}),e.write("}")}function t0(e,t){return typeof t=="string"?ce(t):T(e,t)}function n0(e,t,r,i){let n=r._zod.def;e.write(`if (!(${i} instanceof Map)) return INVALID;`),Of(e,r,`${i}.size`);let o=D(t),s=D(t),a=D(t);return e.write(`const ${o} = new Map();`),e.write(`for (const [${s}, ${a}] of ${i}) {`),e.indented(c=>{let u=W(c,t,n.keyType,s),l=W(c,t,n.valueType,a);c.write(`${o}.set(${u}, ${l});`)}),e.write("}"),o}function r0(e,t,r,i){let n=r._zod.def;e.write(`if (!(${i} instanceof Set)) return INVALID;`),Of(e,r,`${i}.size`);let o=D(t),s=D(t);return e.write(`const ${o} = new Set();`),e.write(`for (const ${s} of ${i}) {`),e.indented(a=>{let c=W(a,t,n.valueType,s);a.write(`${o}.add(${c});`)}),e.write("}"),o}function i0(e,t){return e.write(`if (!(${t} instanceof File)) return INVALID;`),t}function o0(e,t,r,i){e.write(`if (typeof ${i} !== "string") return INVALID;`);let n=r._zod.pattern;if(n){let o=T(t,n);e.write(`${o}.lastIndex = 0;`),e.write(`if (!${o}.test(${i})) return INVALID;`)}return i}function s0(e,t,r,i){let n=r._zod.def,o=Mt(t,n.getter),s=T(t,{parser:null});e.write(`if (!${s}.parser) {`),e.indented(c=>{c.write(`const inner = ${o}();`),c.write(`${s}.parser = function(input) {`),c.indented(u=>{u.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),u.write("return result.issues.length === 0 ? result.value : INVALID;")}),c.write("};")}),e.write("}");let a=D(t);return e.write(`const ${a} = ${s}.parser(${i});`),e.write(`if (${a} === INVALID) return INVALID;`),a}function a0(e,t,r,i){let n=r._zod.def,o=W(e,t,n.in,i);if(n.transform){if(Ft(n.transform))throw new Ee("z.compile: async transforms in pipes are not supported");let s=n.transform,c=Mt(t,l=>{let d={value:l,issues:[],addIssue:If},f=s(l,d);return f instanceof Promise?le:d.issues.length===0?f:le}),u=D(t);return e.write(`const ${u} = ${c}(${o});`),e.write(`if (${u} === INVALID) return INVALID;`),W(e,t,n.out,u)}else return W(e,t,n.out,o)}function Ft(e){return typeof e=="function"&&(e.constructor.name==="AsyncFunction"||e[Symbol.toStringTag]==="AsyncFunction")}function c0(e,t,r,i){let n=r._zod.def;if(n.fn){if(Ft(n.fn))throw new Ee("z.compile: async custom predicates are not supported");let o=Mt(t,n.fn),s=T(t,wf),a=D(t);e.write(`const ${a} = ${o}(${i});`),e.write(`if (${a} instanceof Promise) ${s}();`),e.write(`if (!${a}) return INVALID;`)}else throw new R("custom schema without a predicate function");return i}function u0(e,t,r){let i=e._zod.run({value:r,issues:[]},{});if(i&&typeof i.then=="function")return le;let n=i;return n.issues.length===0?n.value:t()}function l0(e,t,r,i){let n=r._zod.def;if(!n.catchValue[Mo])throw new R("catch with a callback (only a constant catch value compiles)",!1);let o=D(t);e.write(`let ${o} = (() => {`),e.indented(u=>{let l=ae(u,t,n.innerType,i);u.write(`return ${l};`)}),e.write("})();");let s=T(t,n.innerType),a=Mt(t,n.catchValue),c=T(t,u0);return e.write(`if (${o} === INVALID) {`),e.indented(u=>{u.write(`${o} = ${c}(${s}, ${a}, ${i});`),u.write(`if (${o} === INVALID) return INVALID;`)}),e.write("}"),o}function d0(e,t,r,i){let n=r._zod.def;if(n.transform){if(Ft(n.transform))throw new Ee("z.compile: async transforms are not supported");let o=n.transform,a=Mt(t,u=>{let l={value:u,issues:[],addIssue:If},d=o(u,l);return d instanceof Promise?le:l.issues.length===0?d:le}),c=D(t);return e.write(`const ${c} = ${a}(${i});`),e.write(`if (${c} === INVALID) return INVALID;`),c}return i}function Us(e){return e.checks&&(e.checks=[...e.checks]),e}function Af(e,t){return new e(Us({type:"string",...x(t)}))}function Nf(e,t){return new e(Us({type:"string",coerce:!0,...x(t)}))}function Ls(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...x(t)})}function Rs(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...x(t)})}function Zs(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...x(t)})}function Ms(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...x(t)})}function Fs(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...x(t)})}function Bs(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...x(t)})}function ui(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...x(t)})}function qs(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...x(t)})}function Vs(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...x(t)})}function Ks(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...x(t)})}function Js(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...x(t)})}function Hs(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...x(t)})}function Ws(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...x(t)})}function Gs(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...x(t)})}function Ys(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...x(t)})}function Xs(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...x(t)})}function zf(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...x(t)})}function Qs(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...x(t)})}function ea(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...x(t)})}function ta(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...x(t)})}function na(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...x(t)})}function ra(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...x(t)})}function Pf(e,t){return new e({type:"string",format:"credit_card",check:"string_format",abort:!1,...x(t)})}function Df(e,t){return new e({type:"string",format:"iban",check:"string_format",abort:!1,...x(t)})}function ia(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...x(t)})}var Tf={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function li(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...x(t)})}function di(e,t){return new e({type:"string",format:"date",check:"string_format",...x(t)})}function fi(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...x(t)})}function pi(e,t){return new e({type:"string",format:"duration",check:"string_format",...x(t)})}function jf(e,t){return new e(Us({type:"number",checks:[],...x(t)}))}function Ef(e,t){return new e(Us({type:"number",coerce:!0,checks:[],...x(t)}))}function Cf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...x(t)})}function Uf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...x(t)})}function Lf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...x(t)})}function Rf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...x(t)})}function Zf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...x(t)})}function Mf(e,t){return new e({type:"boolean",...x(t)})}function Ff(e,t){return new e({type:"boolean",coerce:!0,...x(t)})}function Bf(e,t){return new e({type:"bigint",...x(t)})}function qf(e,t){return new e({type:"bigint",coerce:!0,...x(t)})}function Vf(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...x(t)})}function Kf(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...x(t)})}function Jf(e,t){return new e({type:"symbol",...x(t)})}function Hf(e,t){return new e({type:"undefined",...x(t)})}function Wf(e,t){return new e({type:"null",...x(t)})}function Gf(e){return new e({type:"any"})}function Yf(e){return new e({type:"unknown"})}function Xf(e,t){return new e({type:"never",...x(t)})}function Qf(e,t){return new e({type:"void",...x(t)})}function ep(e,t){return new e({type:"date",...x(t)})}function tp(e,t){return new e({type:"date",coerce:!0,...x(t)})}function np(e,t){return new e({type:"nan",...x(t)})}function Me(e,t){return new rs({check:"less_than",...x(t),value:e,inclusive:!1})}function we(e,t){return new rs({check:"less_than",...x(t),value:e,inclusive:!0})}function Fe(e,t){return new is({check:"greater_than",...x(t),value:e,inclusive:!1})}function Se(e,t){return new is({check:"greater_than",...x(t),value:e,inclusive:!0})}function oa(e){return Fe(0,e)}function sa(e){return Me(0,e)}function aa(e){return we(0,e)}function ca(e){return Se(0,e)}function vt(e,t){return new Ul({check:"multiple_of",...x(t),value:e})}function yt(e,t){return new Zl({check:"max_size",...x(t),maximum:e})}function Be(e,t){return new Ml({check:"min_size",...x(t),minimum:e})}function Bt(e,t){return new Fl({check:"size_equals",...x(t),size:e})}function qt(e,t){return new Bl({check:"max_length",...x(t),maximum:e})}function Qe(e,t){return new ql({check:"min_length",...x(t),minimum:e})}function Vt(e,t){return new Vl({check:"length_equals",...x(t),length:e})}function zn(e,t){return new Kl({check:"string_format",format:"regex",...x(t),pattern:e})}function Pn(e){return new Jl({check:"string_format",format:"lowercase",...x(e)})}function Dn(e){return new Hl({check:"string_format",format:"uppercase",...x(e)})}function Tn(e,t){return new Wl({check:"string_format",format:"includes",...x(t),includes:e})}function jn(e,t){return new Gl({check:"string_format",format:"starts_with",...x(t),prefix:e})}function En(e,t){return new Yl({check:"string_format",format:"ends_with",...x(t),suffix:e})}function ua(e,t,r){return new Xl({check:"property",property:e,schema:t,...x(r)})}function Cn(e,t){return new Ql({check:"properties",shape:e,...x(t)})}function Un(e,t){return new ed({check:"mime_type",mime:e,...x(t)})}function Ce(e){return new td({check:"overwrite",tx:e})}function Ln(e){return Ce(t=>t.normalize(e))}function Rn(){return Ce(e=>e.trim())}function Zn(){return Ce(e=>e.toLowerCase())}function Mn(){return Ce(e=>e.toUpperCase())}function Fn(){return Ce(e=>Ru(e))}function rp(e,t,r){return new e({type:"array",element:t,...x(r)})}function f0(e,t,r){return new e({type:"union",options:t,...x(r)})}function p0(e,t,r){return new e({type:"union",options:t,inclusive:!1,...x(r)})}function m0(e,t,r,i){return new e({type:"union",options:r,discriminator:t,...x(i)})}function g0(e,t,r){return new e({type:"intersection",left:t,right:r})}function h0(e,t,r,i){let n=r instanceof E,o=n?i:r,s=n?r:null;return new e({type:"tuple",items:t,rest:s,...x(o)})}function v0(e,t,r,i){return new e({type:"record",keyType:t,valueType:r,...x(i)})}function y0(e,t,r,i){return new e({type:"map",keyType:t,valueType:r,...x(i)})}function $0(e,t,r){return new e({type:"set",valueType:t,...x(r)})}function b0(e,t,r){let i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:i,...x(r)})}function k0(e,t,r){return new e({type:"enum",entries:t,...x(r)})}function _0(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...x(r)})}function ip(e,t){return new e({type:"file",...x(t)})}function w0(e,t){return new e({type:"transform",transform:t})}function S0(e,t){return new e({type:"optional",innerType:t})}function x0(e,t){return new e({type:"nullable",innerType:t})}function I0(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():Tr(r)}})}function O0(e,t,r){return new e({type:"nonoptional",innerType:t,...x(r)})}function A0(e,t){return new e({type:"success",innerType:t})}function N0(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:Vu(r)})}function z0(e,t,r){return new e({type:"pipe",in:t,out:r})}function P0(e,t){return new e({type:"readonly",innerType:t})}function D0(e,t,r){return new e({type:"template_literal",parts:t,...x(r)})}function T0(e,t){return new e({type:"lazy",getter:t})}function j0(e,t){return new e({type:"promise",innerType:t})}function op(e,t,r){let i=x(r);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function sp(e,t,r){return new e({type:"custom",check:"custom",fn:t,...x(r)})}function ap(e,t){let r=Ab(i=>(i.addIssue=n=>{if(typeof n=="string")i.issues.push(bn(n,i.value,r._zod.def));else{let o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),"input"in o||(o.input=i.value),o.inst??(o.inst=r),o.continue??(o.continue=!r._zod.def.abort),i.issues.push(bn(o))}},e(i.value,i)),t);return r}function Ab(e,t){let r=new K({check:"custom",...x(t)});return r._zod.check=e,r}function cp(e){let t=new K({check:"describe"});return t._zod.onattach=[r=>{let i=se.get(r)??{};se.add(r,{...i,description:e})}],t._zod.check=()=>{},t}function up(e){let t=new K({check:"meta"});return t._zod.onattach=[r=>{let i=se.get(r)??{};se.add(r,{...i,...e})}],t._zod.check=()=>{},t}function lp(e,t){let r=x(t),i=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(i=i.map(p=>typeof p=="string"?p.toLowerCase():p),n=n.map(p=>typeof p=="string"?p.toLowerCase():p));let o=new Set(i),s=new Set(n),a=e.Codec??ni,c=e.Boolean??ei,u=e.String??Rt,l=new u({type:"string",error:r.error}),d=new c({type:"boolean",error:r.error}),f=new a({type:"pipe",in:l,out:d,transform:((p,g)=>{let m=p;return r.case!=="sensitive"&&(m=m.toLowerCase()),o.has(m)?!0:s.has(m)?!1:(g.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...s],input:g.value,inst:f,continue:!1}),{})}),reverseTransform:((p,g)=>p===!0?i[0]||"true":n[0]||"false"),error:r.error});return f._zod.bag.truthy=i,f._zod.bag.falsy=n,f._zod.bag.case=r.case??"insensitive",f}function Kt(e,t,r,i={}){let n=x(i),o={check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:a=>r.test(a),...n};return r instanceof RegExp&&(o.pattern=r),new e(o)}function mi(e,...t){for(let r of t)for(let i of Reflect.ownKeys(r))Object.prototype.propertyIsEnumerable.call(r,i)&&oe(e,i,r[i]);return e}function $t(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??se,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function te(e,t,r,i,n){let o=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:i.path,message:n}):t.unrepresentable;if(o==="any")return!1;if(o===void 0||o==="throw")throw new Error(n);return Object.assign(r,o),!0}function q(e,t,r={path:[],schemaPath:[]}){var i;let n=e._zod.def,o=t.seen.get(e);if(o)return o.count++,r.schemaPath.includes(e)&&(o.cycle=r.path),o.schema;let s={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,s),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{let l={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,l);else{let f=s.schema,p=t.processors[n.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);p(e,t,f,l)}let d=e._zod.parent;d&&(s.ref||(s.ref=d),q(d,t,l),t.seen.get(d).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&mi(s.schema,c),t.io==="input"&&de(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&"_prefault"in s.schema&&((i=s.schema).default??(i.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function Nb(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function bt(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let i=new Map;for(let s of e.seen.entries()){let a=e.metadataRegistry.get(s[0])?.id;if(a){let c=i.get(a);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(a,s[0])}}let n=s=>{let a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(s[0])?.id,f=e.external.uri??(g=>g);if(d)return{ref:f(d)};let p=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=p,{defId:p,ref:`${f("__shared")}#/${a}/${Nb(p)}`}}let c="#",u=`${c}/${a}/`;if(s[1]===r&&!s[1].schema.id)return{ref:c};let l=s[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:u+Nb(l)}},o=s=>{if(s[1].schema.$ref)return;let a=s[1],{ref:c,defId:u}=n(s);a.def={...a.schema},u&&(a.defId=u);let l=a.schema;for(let d in l)delete l[d];l.$ref=c};if(e.cycles==="throw")for(let s of e.seen.entries()){let a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
198
+
199
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of e.seen.entries()){let a=s[1];if(t===s[0]){o(s);continue}if(e.external){let u=e.external.registry.get(s[0])?.id;if(t!==s[0]&&u){o(s);continue}}if(e.metadataRegistry.get(s[0])?.id){o(s);continue}if(a.cycle){o(s);continue}a.count>1&&e.reused==="ref"&&o(s)}e.external&&(e.sharedDefsExtractedFor=e.external)}function Db(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let r=[];for(let i of t){if(!i||typeof i!="object")return;Db(i);let n=Object.keys(i);if(n.length!==1||n[0]!=="type")return;let o=i.type;for(let s of Array.isArray(o)?o:[o]){if(typeof s!="string")return;r.includes(s)||r.push(s)}}delete e.anyOf,e.type=r.length===1?r[0]:r}var Tb=new Set(["type","properties","required","additionalProperties"]),zb=["oneOf","anyOf"];function Pb(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function dp(e){let t=[];for(let o of e){if(typeof o!="object"||o.type!=="object")return null;for(let s in o)if(!Tb.has(s))return null;t.push(o)}let r={},i=new Set;for(let o of t){for(let s in o.properties){if(Object.prototype.hasOwnProperty.call(r,s))continue;let a=[];for(let u of t){let l=u.properties?.[s]??Pb(u);l!=null&&(a.some(d=>JSON.stringify(d)===JSON.stringify(l))||a.push(l))}let c=a.length===1?a[0]:dp(a)??{allOf:a};oe(r,s,c)}for(let s of o.required??[])i.add(s)}let n={type:"object",properties:r};if(i.size&&(n.required=[...i]),t.every(o=>o.additionalProperties===!1))n.additionalProperties=!1;else{let o=[];for(let s of t){let a=Pb(s);a&&!o.some(c=>JSON.stringify(c)===JSON.stringify(a))&&o.push(a)}o.length===1?n.additionalProperties=o[0]:o.length>1&&(n.additionalProperties={allOf:o})}return n}function E0(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let n of Tb)if(n in e)return;let r=t.filter(n=>zb.some(o=>Array.isArray(n[o]))),i=null;if(!r.length)i=dp(t);else{let n=r[0],o=zb.find(c=>Array.isArray(n[c]));if(Object.keys(n).length!==1)return;let s=t.filter(c=>c!==n),a=n[o].map(c=>dp([...s,c]));if(a.some(c=>!c))return;i={[o]:a}}i&&(delete e.allOf,mi(e,i))}function kt(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=a=>{let c=e.seen.get(a);if(c.ref===null)return;let u=c.def??c.schema,l={...u},d=c.ref;if(c.ref=null,d){i(d);let p=e.seen.get(d),g=p.schema;if(g.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(g)):mi(u,g),mi(u,l),a._zod.parent===d)for(let y in u)y==="$ref"||y==="allOf"||y in l||delete u[y];if(g.$ref&&p.def)for(let y in u)y==="$ref"||y==="allOf"||y in p.def&&JSON.stringify(u[y])===JSON.stringify(p.def[y])&&delete u[y]}let f=a._zod.parent;if(f&&f!==d){i(f);let p=e.seen.get(f);if(p?.schema.$ref&&(u.$ref=p.schema.$ref,p.def))for(let g in u)g==="$ref"||g==="allOf"||g in p.def&&JSON.stringify(u[g])===JSON.stringify(p.def[g])&&delete u[g]}e.override({zodSchema:a,jsonSchema:u,path:c.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let a of[...e.seen.entries()].reverse())i(a[0]);if(e.target!=="openapi-3.0")for(let a of e.seen.entries())Db(a[1].def??a[1].schema);for(let a of e.deferred)a();if(e.intersections.length){let a=new Map;for(let c of e.seen.values())for(let u of[c.schema,c.def]){let l=u?.allOf;if(!Array.isArray(l))continue;let d=a.get(l);d?d.push(u):a.set(l,[u])}for(let c of e.intersections)for(let u of a.get(c)??[])E0(u)}}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 a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(a)}mi(n,r.defId?r.schema:r.def??r.schema);let o=e.metadataRegistry.get(t)?.id;o!==void 0&&n.id===o&&delete n.id;let s=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let a of e.seen.entries()){let c=a[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,oe(s,c.defId,c.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?n.$defs=s:n.definitions=s);try{let a=JSON.parse(JSON.stringify(n));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:Bn(t,"input",e.processors),output:Bn(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function de(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return de(i.element,r);if(i.type==="set")return de(i.valueType,r);if(i.type==="lazy")return de(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault"||i.type==="catch")return de(i.innerType,r);if(i.type==="intersection")return de(i.left,r)||de(i.right,r);if(i.type==="record"||i.type==="map")return de(i.keyType,r)||de(i.valueType,r);if(i.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:de(i.in,r)||de(i.out,r);if(i.type==="object"){for(let n in i.shape)if(de(i.shape[n],r))return!0;return!1}if(i.type==="union"){for(let n of i.options)if(de(n,r))return!0;return!1}if(i.type==="tuple"){for(let n of i.items)if(de(n,r))return!0;return!!(i.rest&&de(i.rest,r))}return!1}var fp=(e,t={})=>r=>{let i=$t({...r,processors:t});return q(e,i),bt(i,e),kt(i,e)},Bn=(e,t,r={})=>i=>{let{libraryOptions:n,target:o}=i??{},s=$t({...n??{},target:o,io:t,processors:r});return q(e,s),bt(s,e),kt(s,e)};var qn=(e,t,r)=>{(e[t]===void 0||r>e[t])&&(e[t]=r)},Vn=(e,t,r)=>{(e[t]===void 0||r<e[t])&&(e[t]=r)},jb=(e,t)=>{qn(e,"minimum",t),Vn(e,"maximum",t)},Lb=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},Rb=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},Zb=(e,t)=>{e.mime=e.mime?e.mime.filter(r=>t.includes(r)):[...t]},Mb=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},Eb=(e,t)=>qn(e,"minimum",t.minimum),Cb=(e,t)=>Vn(e,"maximum",t.maximum),Ub=e=>(t,r)=>{Mb(t,r.format);let[i,n]=e[r.format];qn(t,"minimum",i),Vn(t,"maximum",n)},C0={greater_than:(e,t)=>qn(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>Vn(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>Lb(e,t.value),number_format:Ub(Er),bigint_format:Ub(Cr),min_length:Eb,max_length:Cb,length_equals:(e,t)=>jb(e,t.length),min_size:Eb,max_size:Cb,size_equals:(e,t)=>jb(e,t.size),string_format:(e,t)=>{Mb(e,t.format),t.pattern&&Rb(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>Zb(e,t.mime)};function ne(e){let t={},r=e._zod.def,i=e._zod.traits.has("$ZodCheck")?[e,...r.checks??[]]:r.checks??[];for(let o of i)C0[o._zod.def.check]?.(t,o._zod.def);let n=e._zod.bag;n.minimum!==void 0&&qn(t,"minimum",n.minimum),n.exclusiveMinimum!==void 0&&qn(t,"exclusiveMinimum",n.exclusiveMinimum),n.maximum!==void 0&&Vn(t,"maximum",n.maximum),n.exclusiveMaximum!==void 0&&Vn(t,"exclusiveMaximum",n.exclusiveMaximum),n.multipleOf!==void 0&&Lb(t,n.multipleOf),n.format!==void 0&&(t.format??(t.format=n.format),n.format.includes("int")&&(t.isInt=!0)),n.mime&&Zb(t,n.mime);for(let o of n.patterns??[])Rb(t,o);return t}var U0={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},L0=new Map([[ms,vl],[Qr,yl]]),Fb=e=>L0.get(e)??e,gp=(e,t,r,i)=>{let n=r;n.type="string";let{minimum:o,maximum:s,format:a,patterns:c,contentEncoding:u,laxFormat:l}=ne(e);if(typeof o=="number"&&(n.minLength=o),typeof s=="number"&&(n.maxLength=s),a&&(n.format=U0[a]??a,n.format===""&&delete n.format,(a==="time"||l)&&delete n.format),u&&(n.contentEncoding=u),c&&c.size>0){let d=[...c].map(Fb);d.length===1?n.pattern=d[0].source:d.length>1&&(n.allOf=[...d.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},hp=(e,t,r,i)=>{let n=r,{minimum:o,maximum:s,multipleOf:a,exclusiveMaximum:c,exclusiveMinimum:u,isInt:l}=ne(e);n.type=l?"integer":"number";let d=typeof u=="number"&&u>=(o??Number.NEGATIVE_INFINITY),f=typeof c=="number"&&c<=(s??Number.POSITIVE_INFINITY),p=t.target==="draft-04"||t.target==="openapi-3.0";if(d?p?(n.minimum=u,n.exclusiveMinimum=!0):n.exclusiveMinimum=u:typeof o=="number"&&(n.minimum=o),f?p?(n.maximum=c,n.exclusiveMaximum=!0):n.exclusiveMaximum=c:typeof s=="number"&&(n.maximum=s),a){let g=new Set;for(let w of a)Number.isFinite(w)&&w!==0?g.add(Math.abs(w)):te(e,t,n,i,`A multipleOf divisor of ${w} cannot be represented in JSON Schema`);let[m,...y]=g;m!==void 0&&(n.multipleOf=m),y.length&&(n.allOf=[...n.allOf??[],...y.map(w=>({multipleOf:w}))])}},vp=(e,t,r,i)=>{r.type="boolean"},yp=(e,t,r,i)=>{te(e,t,r,i,"BigInt cannot be represented in JSON Schema")},$p=(e,t,r,i)=>{te(e,t,r,i,"Symbols cannot be represented in JSON Schema")},bp=(e,t,r,i)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},kp=(e,t,r,i)=>{te(e,t,r,i,"Undefined cannot be represented in JSON Schema")},_p=(e,t,r,i)=>{te(e,t,r,i,"Void cannot be represented in JSON Schema")},wp=(e,t,r,i)=>{r.not={}},Sp=(e,t,r,i)=>{},xp=(e,t,r,i)=>{},Ip=(e,t,r,i)=>{te(e,t,r,i,"Date cannot be represented in JSON Schema")},Op=(e,t,r,i)=>{let n=e._zod.def,o=gn(n.entries);if(o.length===0){r.not={};return}o.every(s=>typeof s=="number")&&(r.type="number"),o.every(s=>typeof s=="string")&&(r.type="string"),r.enum=o},Ap=(e,t,r,i)=>{let n=e._zod.def;if(n.values.length===0){r.not={};return}let o=[];for(let s of n.values)if(s===void 0){if(te(e,t,r,i,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof s=="bigint"){if(te(e,t,r,i,"BigInt literals cannot be represented in JSON Schema"))return;o.push(Number(s))}else o.push(s);if(o.length!==0)if(o.length===1){let s=o[0];r.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[s]:r.const=s}else o.every(s=>typeof s=="number")&&(r.type="number"),o.every(s=>typeof s=="string")&&(r.type="string"),o.every(s=>typeof s=="boolean")&&(r.type="boolean"),o.every(s=>s===null)&&(r.type="null"),r.enum=o},Np=(e,t,r,i)=>{te(e,t,r,i,"NaN cannot be represented in JSON Schema")},zp=(e,t,r,i)=>{let n=r,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=o.source},Pp=(e,t,r,i)=>{let n=r;n.type="string",n.format="binary",n.contentEncoding="binary";let{minimum:o,maximum:s,mime:a}=ne(e);o!==void 0&&(n.minLength=o),s!==void 0&&(n.maxLength=s),a&&(a.length===0?n.not={}:a.length===1?n.contentMediaType=a[0]:n.anyOf=a.map(c=>({contentMediaType:c})))},Dp=(e,t,r,i)=>{r.type="boolean"},Tp=(e,t,r,i)=>{te(e,t,r,i,"Custom types cannot be represented in JSON Schema")},jp=(e,t,r,i)=>{te(e,t,r,i,"Function types cannot be represented in JSON Schema")},Ep=(e,t,r,i)=>{te(e,t,r,i,"Transforms cannot be represented in JSON Schema")},Cp=(e,t,r,i)=>{te(e,t,r,i,"Map cannot be represented in JSON Schema")},Up=(e,t,r,i)=>{te(e,t,r,i,"Set cannot be represented in JSON Schema")},Lp=(e,t,r,i)=>{let n=r,o=e._zod.def,{minimum:s,maximum:a}=ne(e);typeof s=="number"&&(n.minItems=s),typeof a=="number"&&(n.maxItems=a),n.type="array",n.items=q(o.element,t,{...i,path:[...i.path,"items"]})};function gi(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?gi(t.out):t.type==="catch"?gi(t.innerType):e._zod.optin}var Rp=(e,t,r,i)=>{let n=r,o=e._zod.def,s=o.shape;if(Object.getOwnPropertySymbols(s).length&&te(e,t,n,i,"Symbol keys cannot be represented in JSON Schema"))return;n.type="object",n.properties={};for(let u in s)oe(n.properties,u,q(s[u],t,{...i,path:[...i.path,"properties",u]}));let c=[];for(let u of Object.keys(s)){let l=o.shape[u];(t.io==="input"?gi(l)===void 0:l._zod.optout===void 0)&&c.push(u)}c.length>0&&(n.required=c),o.catchall?._zod.def.type==="never"?n.additionalProperties=!1:o.catchall?o.catchall&&(n.additionalProperties=q(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},da=(e,t,r,i)=>{let n=e._zod.def,o=n.inclusive===!1,s=n.options.map((a,c)=>q(a,t,{...i,path:[...i.path,o?"oneOf":"anyOf",c]}));o?r.oneOf=s:r.anyOf=s},Zp=(e,t,r,i)=>{let n=e._zod.def,o=q(n.left,t,{...i,path:[...i.path,"allOf",0]}),s=q(n.right,t,{...i,path:[...i.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,c=[...a(o)?o.allOf:[o],...a(s)?s.allOf:[s]];r.allOf=c,t.intersections.push(c)},Mp=(e,t,r,i)=>{let n=r,o=e._zod.def;n.type="array";let s=t.target==="draft-2020-12"?"prefixItems":"items",a=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=o.items.map((m,y)=>q(m,t,{...i,path:[...i.path,s,y]})),u=o.rest?q(o.rest,t,{...i,path:[...i.path,a,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null,l=o.items.length;for(;l>0;){let m=o.items[l-1];if(!(t.io==="input"?gi(m)!==void 0:m._zod.optout==="optional"))break;l--}let d=o.items.length,f=!o.rest;t.target==="draft-2020-12"?(n.prefixItems=c,f?n.items=!1:u&&(n.items=u),l>0&&(n.minItems=l),f&&(n.maxItems=d)):t.target==="openapi-3.0"?(n.items={anyOf:c},u&&n.items.anyOf.push(u),l>0&&(n.minItems=l),f&&(n.maxItems=d)):(n.items=c,f?n.additionalItems=!1:u&&(n.additionalItems=u),l>0&&(n.minItems=l),f&&(n.maxItems=d));let{minimum:p,maximum:g}=ne(e);typeof p=="number"&&(n.minItems=p),typeof g=="number"&&(n.maxItems=g)};function pp(e,t,r){if(t.$ref){if(r.has(t))return t;r.add(t);let g=e.get(t)?.def;if(!g)return t;let m=pp(e,g,r);return m===g?t:m}for(let g of["anyOf","oneOf"]){let m=t[g];if(!Array.isArray(m))continue;let y=m.map(w=>pp(e,w,r));y.some((w,k)=>w!==m[k])&&(t={...t,[g]:y})}let i=Array.isArray(t.type)?t.type:[t.type],n=!i.includes("string")&&i.some(g=>g==="number"||g==="integer"),o=t.enum??(t.const!==void 0?[t.const]:void 0);if(!n&&!o?.some(g=>typeof g=="number"))return t;let{minimum:s,maximum:a,exclusiveMinimum:c,exclusiveMaximum:u,multipleOf:l,format:d,id:f,...p}=t;return p.enum?p.enum=p.enum.map(g=>typeof g=="number"?String(g):g):typeof p.const=="number"&&(p.const=String(p.const)),n&&(p.type="string",o||(p.pattern=(i.includes("number")?Xe:Kr).source)),p}var mp=new WeakMap;function R0(e){let t=new Map;for(let i of e.seen.values())i.def&&!t.has(i.schema)&&t.set(i.schema,i);let r=new Map;for(let i of mp.get(e)??[]){let n=e.seen.get(i),o=(n?.def??n?.schema)?.propertyNames;if(!o||o===!0||r.has(o))continue;let s=pp(t,o,new Set);s!==o&&r.set(o,s)}if(r.size)for(let i of e.seen.values())for(let n of[i.schema,i.def]){let o=n&&r.get(n.propertyNames);o&&(n.propertyNames=o)}}var Fp=(e,t,r,i)=>{let n=r,o=e._zod.def;n.type="object";let s=o.keyType,a=ne(s).patterns;if(o.mode==="loose"&&a&&a.size>0){let l=q(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});n.patternProperties={};for(let d of a)oe(n.patternProperties,Fb(d).source,l)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){n.propertyNames=q(o.keyType,t,{...i,path:[...i.path,"propertyNames"]});let l=mp.get(t);l||(l=[],mp.set(t,l),t.deferred.push(()=>R0(t))),l.push(e)}n.additionalProperties=q(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]})}let c=s._zod.values,u=t.io==="input"&&gi(o.valueType)!==void 0;if(c&&!o.partial&&!u){let l=[...c].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(n.required=l.map(String))}},Bp=(e,t,r,i)=>{let n=e._zod.def,o=q(n.innerType,t,i),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=n.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},qp=(e,t,r,i)=>{let n=e._zod.def;q(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},Vp=Symbol();function Bb(e,t,r,i,n){let o=!1,s=JSON.stringify(e,(a,c)=>typeof c!="bigint"?c:(o=!0,null));return o?(te(t,r,i,n,"BigInt defaults cannot be represented in JSON Schema"),Vp):JSON.parse(s)}var Kp=(e,t,r,i)=>{let n=e._zod.def;q(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType;let s=Bb(n.defaultValue,e,t,r,i);s!==Vp&&(r.default=s)},Jp=(e,t,r,i)=>{let n=e._zod.def;q(n.innerType,t,i);let o=t.seen.get(e);if(o.ref=n.innerType,t.io!=="input")return;let s=Bb(n.defaultValue,e,t,r,i);s!==Vp&&(r._prefault=s)},Hp=(e,t,r,i)=>{let n=e._zod.def;q(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType;let s;try{s=n.catchValue(void 0)}catch{te(e,t,r,i,"Dynamic catch values are not supported in JSON Schema");return}r.default=s},Wp=(e,t,r,i)=>{let n=e._zod.def,o=n.in._zod.traits.has("$ZodTransform"),s=t.io==="input"?o?n.out:n.in:n.out;q(s,t,i);let a=t.seen.get(e);a.ref=s},Gp=(e,t,r,i)=>{let n=e._zod.def;q(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType,r.readOnly=!0},Yp=(e,t,r,i)=>{let n=e._zod.def;q(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},fa=(e,t,r,i)=>{let n=e._zod.def;q(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},Xp=(e,t,r,i)=>{let n=e._zod.innerType;q(n,t,i);let o=t.seen.get(e);o.ref=n},la={string:gp,number:hp,boolean:vp,bigint:yp,symbol:$p,null:bp,undefined:kp,void:_p,never:wp,any:Sp,unknown:xp,date:Ip,enum:Op,literal:Ap,nan:Np,template_literal:zp,file:Pp,success:Dp,custom:Tp,function:jp,transform:Ep,map:Cp,set:Up,array:Lp,object:Rp,union:da,intersection:Zp,tuple:Mp,record:Fp,nullable:Bp,nonoptional:qp,default:Kp,prefault:Jp,catch:Hp,pipe:Wp,readonly:Gp,promise:Yp,optional:fa,lazy:Xp};function pa(e,t){if("_idmap"in e){let i=e,n=$t({...t,processors:la}),o={};for(let c of i._idmap.entries()){let[u,l]=c;q(l,n)}let s={},a={registry:i,uri:t?.uri,defs:o};n.external=a;for(let c of i._idmap.entries()){let[u,l]=c;bt(n,l),oe(s,u,kt(n,l))}if(Object.keys(o).length>0){let c=n.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[c]:o}}return{schemas:s}}let r=$t({...t,processors:la});return q(e,r),bt(r,e),kt(r,e)}var ma=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=$t({processors:la,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 q(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)),this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,bt(this.ctx,t);let i=kt(this.ctx,t),{"~standard":n,...o}=i;return o}};var qb={};var Qn={};Ke(Qn,{ZodAny:()=>bm,ZodArray:()=>Sm,ZodBase64:()=>Ta,ZodBase64URL:()=>ja,ZodBigInt:()=>Yn,ZodBigIntFormat:()=>Ua,ZodBoolean:()=>Gn,ZodCIDRv4:()=>Pa,ZodCIDRv6:()=>Da,ZodCUID:()=>Sa,ZodCUID2:()=>xa,ZodCatch:()=>Vm,ZodCodec:()=>xi,ZodCreditCard:()=>fm,ZodCustom:()=>Ii,ZodCustomStringFormat:()=>Gt,ZodDate:()=>$i,ZodDefault:()=>Rm,ZodDiscriminatedUnion:()=>Im,ZodE164:()=>Ea,ZodEmail:()=>ba,ZodEmoji:()=>_a,ZodEnum:()=>Jn,ZodExactOptional:()=>Ma,ZodFile:()=>Em,ZodFunction:()=>tg,ZodGUID:()=>ka,ZodIBAN:()=>pm,ZodIPv4:()=>Na,ZodIPv6:()=>za,ZodISODate:()=>wt,ZodISODateTime:()=>_t,ZodISODuration:()=>xt,ZodISOTime:()=>St,ZodInstanceOf:()=>ig,ZodIntersection:()=>Om,ZodJWT:()=>Ca,ZodKSUID:()=>Aa,ZodLazy:()=>Xm,ZodLiteral:()=>jm,ZodMAC:()=>dm,ZodMap:()=>Dm,ZodNaN:()=>Jm,ZodNanoID:()=>wa,ZodNever:()=>_m,ZodNonOptional:()=>Fa,ZodNull:()=>ym,ZodNullable:()=>Lm,ZodNumber:()=>Wn,ZodNumberFormat:()=>Yt,ZodObject:()=>ki,ZodOptional:()=>wi,ZodPipe:()=>Si,ZodPrefault:()=>Mm,ZodPreprocess:()=>Hm,ZodPromise:()=>eg,ZodReadonly:()=>Wm,ZodRecord:()=>Kn,ZodSet:()=>Tm,ZodString:()=>Hn,ZodStringFormat:()=>V,ZodSuccess:()=>qm,ZodSymbol:()=>hm,ZodTemplateLiteral:()=>Ym,ZodTransform:()=>Cm,ZodTuple:()=>Nm,ZodType:()=>U,ZodULID:()=>Ia,ZodURL:()=>yi,ZodUUID:()=>qe,ZodUndefined:()=>vm,ZodUnion:()=>_i,ZodUnknown:()=>km,ZodVoid:()=>wm,ZodXID:()=>Oa,ZodXor:()=>xm,_ZodString:()=>$a,_default:()=>Zm,_function:()=>n_,any:()=>Tk,array:()=>bi,base64:()=>pk,base64url:()=>mk,bigint:()=>Ak,boolean:()=>gm,catch:()=>Km,check:()=>r_,cidrv4:()=>dk,cidrv6:()=>fk,codec:()=>Xk,creditCard:()=>hk,cuid:()=>rk,cuid2:()=>ik,currencyCode:()=>_k,custom:()=>i_,date:()=>Ek,describe:()=>o_,discriminatedUnion:()=>Mk,e164:()=>gk,email:()=>Jb,emoji:()=>tk,enum:()=>Ra,exactOptional:()=>Um,file:()=>Hk,float32:()=>Sk,float64:()=>xk,function:()=>n_,guid:()=>Hb,hash:()=>wk,hex:()=>kk,hostname:()=>bk,httpUrl:()=>ek,iban:()=>vk,instanceof:()=>a_,int:()=>va,int32:()=>Ik,int64:()=>Nk,intersection:()=>Am,invertCodec:()=>Qk,ipv4:()=>ck,ipv6:()=>lk,json:()=>u_,jwt:()=>yk,keyof:()=>Ck,ksuid:()=>ak,lazy:()=>Qm,literal:()=>Jk,looseObject:()=>Rk,looseRecord:()=>Bk,mac:()=>uk,map:()=>qk,meta:()=>s_,nan:()=>Yk,nanoid:()=>nk,nativeEnum:()=>Kk,never:()=>La,nonoptional:()=>Bm,null:()=>$m,nullable:()=>vi,nullish:()=>Wk,number:()=>mm,object:()=>Uk,optional:()=>Ht,partialRecord:()=>Fk,pipe:()=>ya,prefault:()=>Fm,preprocess:()=>l_,promise:()=>t_,readonly:()=>Gm,record:()=>Pm,refine:()=>ng,set:()=>Vk,strictObject:()=>Lk,string:()=>hi,stringFormat:()=>$k,stringbool:()=>c_,success:()=>Gk,superRefine:()=>rg,symbol:()=>Pk,templateLiteral:()=>e_,transform:()=>Za,tuple:()=>zm,uint32:()=>Ok,uint64:()=>zk,ulid:()=>ok,undefined:()=>Dk,union:()=>Xn,unknown:()=>Jt,url:()=>Qb,uuid:()=>Wb,uuidv4:()=>Gb,uuidv6:()=>Yb,uuidv7:()=>Xb,void:()=>jk,xid:()=>sk,xor:()=>Zk});var ga={};Ke(ga,{endsWith:()=>En,gt:()=>Fe,gte:()=>Se,includes:()=>Tn,length:()=>Vt,lowercase:()=>Pn,lt:()=>Me,lte:()=>we,maxLength:()=>qt,maxSize:()=>yt,mime:()=>Un,minLength:()=>Qe,minSize:()=>Be,multipleOf:()=>vt,negative:()=>sa,nonnegative:()=>ca,nonpositive:()=>aa,normalize:()=>Ln,overwrite:()=>Ce,positive:()=>oa,properties:()=>Cn,property:()=>ua,regex:()=>zn,size:()=>Bt,slugify:()=>Fn,startsWith:()=>jn,toLowerCase:()=>Zn,toUpperCase:()=>Mn,trim:()=>Rn,uppercase:()=>Dn});var Vb=new WeakSet([Object.prototype,Error.prototype]);function ha(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let i=r(this);return Object.defineProperty(this,t,{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,t,{value:i,configurable:!0,writable:!0})}})}var Kb=(e,t)=>{Yu.init(e,t),e.name="ZodError";let r=Object.getPrototypeOf(e);Vb.has(r)||(Vb.add(r),ha(r,"format",i=>n=>Fr(i,n)),ha(r,"flatten",i=>n=>Mr(i,n)),ha(r,"addIssue",i=>n=>{i.issues.push(n),i.message=JSON.stringify(i.issues,hn,2)}),ha(r,"addIssues",i=>n=>{i.issues.push(...n),i.message=JSON.stringify(i.issues,hn,2)}),Object.defineProperty(r,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},M0=h("ZodError",Kb),ke=h("ZodError",Kb,void 0,{Parent:Error});var Qp=kn(ke),em=_n(ke),tm=wn(ke),nm=Sn(ke),rm=Vo(ke),im=Ko(ke),om=Jo(ke),sm=Ho(ke),am=Wo(ke),cm=Go(ke),um=Yo(ke),lm=Xo(ke);function B0(){re.localeError||Y(zs())}function Wt(){re.memoizer||Y({memoizer:si()})}var U=h("ZodType",(e,t)=>(B0(),E.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone($.mergeDefs(t,{checks:[...t.checks??[],...e.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return F(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(ng(e,t))},superRefine(e,t){return this.check(rg(e,t))},overwrite(e){return this.check(Ce(e))},optional(){return Ht(this)},exactOptional(){return Um(this)},nullable(){return vi(this)},nullish(){return Ht(vi(this))},nonoptional(e){return Bm(this,e)},array(){return bi(this)},or(e){return Xn([this,e])},and(e){return Am(this,e)},transform(e){return ya(this,Za(e))},default(e){return Zm(this,e)},prefault(e){return Fm(this,e)},catch(e){return Km(this,e)},pipe(e){return ya(this,e)},readonly(){return Gm(this)},describe(e){let t=this.clone();return se.add(t,{description:e}),t},meta(...e){if(e.length===0)return se.get(this);let t=this.clone();return se.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return $.hide(this,"~standard",{...us(this),jsonSchema:{input:Bn(this,"input"),output:Bn(this,"output")}})},set"~standard"(e){$.own(this,"~standard",e)},parse:function e(t,r){return Qp(this,t,r,{callee:e})},parseAsync:async function e(t,r){return await em(this,t,r,{callee:e})},safeParse(e,t){return tm(this,e,t)},async safeParseAsync(e,t){return nm(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){$.own(this,"spa",e)},validate(e,t){return Br(this,e,t)},validateAsync(e,t){return qr(this,e,t)},encode:function e(t,r){return rm(this,t,r,{callee:e})},decode:function e(t,r){return im(this,t,r,{callee:e})},encodeAsync:async function e(t,r){return await om(this,t,r,{callee:e})},decodeAsync:async function e(t,r){return await sm(this,t,r,{callee:e})},safeEncode(e,t){return am(this,e,t)},safeDecode(e,t){return cm(this,e,t)},async safeEncodeAsync(e,t){return um(this,e,t)},async safeDecodeAsync(e,t){return lm(this,e,t)},toJSONSchema(e){return fp(this,{})(e)},get description(){return se.get(this)?.description},get _def(){return this._zod.def}}),$a=h("_ZodString",(e,t)=>{Rt.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>gp(e,r,i,n)},$.derived({format:e=>ne(e).format??null,minLength:e=>ne(e).minimum??null,maxLength:e=>ne(e).maximum??null},{regex(...e){return this.check(zn(...e))},includes(...e){return this.check(Tn(...e))},startsWith(...e){return this.check(jn(...e))},endsWith(...e){return this.check(En(...e))},min(...e){return this.check(Qe(...e))},max(...e){return this.check(qt(...e))},length(...e){return this.check(Vt(...e))},nonempty(...e){return this.check(Qe(1,...e))},lowercase(e){return this.check(Pn(e))},uppercase(e){return this.check(Dn(e))},trim(){return this.check(Rn())},normalize(...e){return this.check(Ln(...e))},toLowerCase(){return this.check(Zn())},toUpperCase(){return this.check(Mn())},slugify(){return this.check(Fn())}})),Hn=h("ZodString",(e,t)=>{Rt.init(e,t),$a.init(e,t)},{email(e){return this.check(Ls(ba,e))},url(e){return this.check(ui(yi,e))},jwt(e){return this.check(ia(Ca,e))},emoji(e){return this.check(qs(_a,e))},guid(e){return this.check(Rs(ka,e))},uuid(e){return this.check(Zs(qe,e))},uuidv4(e){return this.check(Ms(qe,e))},uuidv6(e){return this.check(Fs(qe,e))},uuidv7(e){return this.check(Bs(qe,e))},nanoid(e){return this.check(Vs(wa,e))},cuid(e){return this.check(Ks(Sa,e))},cuid2(e){return this.check(Js(xa,e))},ulid(e){return this.check(Hs(Ia,e))},base64(e){return this.check(ta(Ta,e))},base64url(e){return this.check(na(ja,e))},xid(e){return this.check(Ws(Oa,e))},ksuid(e){return this.check(Gs(Aa,e))},ipv4(e){return this.check(Ys(Na,e))},ipv6(e){return this.check(Xs(za,e))},cidrv4(e){return this.check(Qs(Pa,e))},cidrv6(e){return this.check(ea(Da,e))},e164(e){return this.check(ra(Ea,e))},datetime(e){return this.check(li(_t,e))},date(e){return this.check(di(wt,e))},time(e){return this.check(fi(St,e))},duration(e){return this.check(pi(xt,e))}});function hi(e){return Af(Hn,e)}var V=h("ZodStringFormat",(e,t)=>{B.init(e,t),$a.init(e,t)}),_t=h("ZodISODateTime",(e,t)=>{vd.init(e,t),V.init(e,t)}),wt=h("ZodISODate",(e,t)=>{yd.init(e,t),V.init(e,t)}),St=h("ZodISOTime",(e,t)=>{$d.init(e,t),V.init(e,t)}),xt=h("ZodISODuration",(e,t)=>{bd.init(e,t),V.init(e,t)}),ba=h("ZodEmail",(e,t)=>{sd.init(e,t),V.init(e,t)});function Jb(e){return Ls(ba,e)}var ka=h("ZodGUID",(e,t)=>{id.init(e,t),V.init(e,t)});function Hb(e){return Rs(ka,e)}var qe=h("ZodUUID",(e,t)=>{od.init(e,t),V.init(e,t)});function Wb(e){return Zs(qe,e)}function Gb(e){return Ms(qe,e)}function Yb(e){return Fs(qe,e)}function Xb(e){return Bs(qe,e)}var yi=h("ZodURL",(e,t)=>{ud.init(e,t),V.init(e,t)});function Qb(e){return ui(yi,e)}function ek(e){return ui(yi,{protocol:Vr,hostname:bl,...$.normalizeParams(e)})}var _a=h("ZodEmoji",(e,t)=>{ld.init(e,t),V.init(e,t)});function tk(e){return qs(_a,e)}var wa=h("ZodNanoID",(e,t)=>{dd.init(e,t),V.init(e,t)});function nk(e){return Vs(wa,e)}var Sa=h("ZodCUID",(e,t)=>{fd.init(e,t),V.init(e,t)});function rk(e){return Ks(Sa,e)}var xa=h("ZodCUID2",(e,t)=>{pd.init(e,t),V.init(e,t)});function ik(e){return Js(xa,e)}var Ia=h("ZodULID",(e,t)=>{md.init(e,t),V.init(e,t)});function ok(e){return Hs(Ia,e)}var Oa=h("ZodXID",(e,t)=>{gd.init(e,t),V.init(e,t)});function sk(e){return Ws(Oa,e)}var Aa=h("ZodKSUID",(e,t)=>{hd.init(e,t),V.init(e,t)});function ak(e){return Gs(Aa,e)}var Na=h("ZodIPv4",(e,t)=>{kd.init(e,t),V.init(e,t)});function ck(e){return Ys(Na,e)}var dm=h("ZodMAC",(e,t)=>{wd.init(e,t),V.init(e,t)});function uk(e){return zf(dm,e)}var za=h("ZodIPv6",(e,t)=>{_d.init(e,t),V.init(e,t)});function lk(e){return Xs(za,e)}var Pa=h("ZodCIDRv4",(e,t)=>{Sd.init(e,t),V.init(e,t)});function dk(e){return Qs(Pa,e)}var Da=h("ZodCIDRv6",(e,t)=>{xd.init(e,t),V.init(e,t)});function fk(e){return ea(Da,e)}var Ta=h("ZodBase64",(e,t)=>{Id.init(e,t),V.init(e,t)});function pk(e){return ta(Ta,e)}var ja=h("ZodBase64URL",(e,t)=>{Od.init(e,t),V.init(e,t)});function mk(e){return na(ja,e)}var Ea=h("ZodE164",(e,t)=>{Ad.init(e,t),V.init(e,t)});function gk(e){return ra(Ea,e)}var fm=h("ZodCreditCard",(e,t)=>{Nd.init(e,t),V.init(e,t)});function hk(e){return Pf(fm,e)}var pm=h("ZodIBAN",(e,t)=>{zd.init(e,t),V.init(e,t)});function vk(e){return Df(pm,e)}var Ca=h("ZodJWT",(e,t)=>{Pd.init(e,t),V.init(e,t)});function yk(e){return ia(Ca,e)}var Gt=h("ZodCustomStringFormat",(e,t)=>{Dd.init(e,t),V.init(e,t)});function $k(e,t,r={}){return Kt(Gt,e,t,r)}function bk(e){return Kt(Gt,"hostname",$l,e)}function kk(e){return Kt(Gt,"hex",jl,e)}function _k(e){return Kt(Gt,"currency_code",_l,e)}function wk(e,t){let r=t?.enc??"hex",i=`${e}_${r}`,n=ze[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return Kt(Gt,i,n,t)}var Wn=h("ZodNumber",(e,t)=>{$s.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>hp(e,r,i,n),e.isFinite=!0},$.derived({minValue:e=>{let{minimum:t,exclusiveMinimum:r}=ne(e);return Math.max(t??Number.NEGATIVE_INFINITY,r??Number.NEGATIVE_INFINITY)},maxValue:e=>{let{maximum:t,exclusiveMaximum:r}=ne(e);return Math.min(t??Number.POSITIVE_INFINITY,r??Number.POSITIVE_INFINITY)},isInt:e=>{let{isInt:t,multipleOf:r}=ne(e);return!!t||!!r?.some(Number.isSafeInteger)},format:e=>ne(e).format??null},{gt(e,t){return this.check(Fe(e,t))},gte(e,t){return this.check(Se(e,t))},min(e,t){return this.check(Se(e,t))},lt(e,t){return this.check(Me(e,t))},lte(e,t){return this.check(we(e,t))},max(e,t){return this.check(we(e,t))},int(e){return this.check(va(e))},safe(e){return this.check(va(e))},positive(e){return this.check(Fe(0,e))},nonnegative(e){return this.check(Se(0,e))},negative(e){return this.check(Me(0,e))},nonpositive(e){return this.check(we(0,e))},multipleOf(e,t){return this.check(vt(e,t))},step(e,t){return this.check(vt(e,t))},finite(){return this}}));function mm(e){return jf(Wn,e)}var Yt=h("ZodNumberFormat",(e,t)=>{Td.init(e,t),Wn.init(e,t)});function va(e){return Cf(Yt,e)}function Sk(e){return Uf(Yt,e)}function xk(e){return Lf(Yt,e)}function Ik(e){return Rf(Yt,e)}function Ok(e){return Zf(Yt,e)}var Gn=h("ZodBoolean",(e,t)=>{ei.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>vp(e,r,i,n)});function gm(e){return Mf(Gn,e)}var Yn=h("ZodBigInt",(e,t)=>{bs.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>yp(e,r,i,n)},$.derived({minValue:e=>ne(e).minimum??null,maxValue:e=>ne(e).maximum??null,format:e=>ne(e).format??null},{gte(e,t){return this.check(Se(e,t))},min(e,t){return this.check(Se(e,t))},gt(e,t){return this.check(Fe(e,t))},lt(e,t){return this.check(Me(e,t))},lte(e,t){return this.check(we(e,t))},max(e,t){return this.check(we(e,t))},positive(e){return this.check(Fe(BigInt(0),e))},negative(e){return this.check(Me(BigInt(0),e))},nonpositive(e){return this.check(we(BigInt(0),e))},nonnegative(e){return this.check(Se(BigInt(0),e))},multipleOf(e,t){return this.check(vt(e,t))}}));function Ak(e){return Bf(Yn,e)}var Ua=h("ZodBigIntFormat",(e,t)=>{jd.init(e,t),Yn.init(e,t)});function Nk(e){return Vf(Ua,e)}function zk(e){return Kf(Ua,e)}var hm=h("ZodSymbol",(e,t)=>{Ed.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>$p(e,r,i,n)});function Pk(e){return Jf(hm,e)}var vm=h("ZodUndefined",(e,t)=>{Cd.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>kp(e,r,i,n)});function Dk(e){return Hf(vm,e)}var ym=h("ZodNull",(e,t)=>{Ud.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>bp(e,r,i,n)});function $m(e){return Wf(ym,e)}var bm=h("ZodAny",(e,t)=>{Ld.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Sp(e,r,i,n)});function Tk(){return Gf(bm)}var km=h("ZodUnknown",(e,t)=>{Rd.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>xp(e,r,i,n)});function Jt(){return Yf(km)}var _m=h("ZodNever",(e,t)=>{Zd.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>wp(e,r,i,n)});function La(e){return Xf(_m,e)}var wm=h("ZodVoid",(e,t)=>{Md.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>_p(e,r,i,n)});function jk(e){return Qf(wm,e)}var $i=h("ZodDate",(e,t)=>{Fd.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ip(e,r,i,n),e.min=(r,i)=>e.check(Se(r,i)),e.max=(r,i)=>e.check(we(r,i))},$.derived({minDate:e=>{let{minimum:t}=ne(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=ne(e);return t?new Date(t):null}},{}));function Ek(e){return ep($i,e)}var Sm=h("ZodArray",(e,t)=>{Wt(),qd.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Lp(e,r,i,n),e.element=t.element},{min(e,t){return this.check(Qe(e,t))},nonempty(e){return this.check(Qe(1,e))},max(e,t){return this.check(qt(e,t))},length(e,t){return this.check(Vt(e,t))},unwrap(){return this.element}});function bi(e,t){return rp(Sm,e,t)}function Ck(e){let t=e._zod.def.shape;return Ra(Object.keys(t))}var ki=h("ZodObject",(e,t)=>{Wt(),Vd.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Rp(e,r,i,n),$.installLazyProp(e,"shape",r=>r._zod.def.shape,!1)},{keyof(){return Ra(Object.keys(this._zod.def.shape))},catchall(e){return this.clone($.mergeDefs(this._zod.def,{catchall:e}))},passthrough(){return this.clone($.mergeDefs(this._zod.def,{catchall:Jt()}))},loose(){return this.clone($.mergeDefs(this._zod.def,{catchall:Jt()}))},strict(){return this.clone($.mergeDefs(this._zod.def,{catchall:La()}))},strip(){return this.clone($.mergeDefs(this._zod.def,{catchall:void 0}))},extend(e){return $.extend(this,e)},safeExtend(e){return $.safeExtend(this,e)},merge(e){return $.merge(this,e)},pick(e){return $.pick(this,e)},omit(e){return $.omit(this,e)},partial(...e){return $.partial(wi,this,e[0])},exactPartial(...e){return $.partial(Ma,this,e[0],"exactPartial")},required(...e){return $.required(Fa,this,e[0])}});function Uk(e,t){let r={type:"object",shape:e??{},...$.normalizeParams(t)};return new ki(r)}function Lk(e,t){return new ki({type:"object",shape:e,catchall:La(),...$.normalizeParams(t)})}function Rk(e,t){return new ki({type:"object",shape:e,catchall:Jt(),...$.normalizeParams(t)})}var _i=h("ZodUnion",(e,t)=>{ti.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>da(e,r,i,n),e.options=t.options});function Xn(e,t){return new _i({type:"union",options:e,...$.normalizeParams(t)})}var xm=h("ZodXor",(e,t)=>{_i.init(e,t),Kd.init(e,t),e._zod.processJSONSchema=(r,i,n)=>da(e,r,i,n),e.options=t.options});function Zk(e,t){return new xm({type:"union",options:e,inclusive:!1,...$.normalizeParams(t)})}var Im=h("ZodDiscriminatedUnion",(e,t)=>{_i.init(e,t),Hd.init(e,t)});function Mk(e,t,r){return new Im({type:"union",options:t,discriminator:e,...$.normalizeParams(r)})}var Om=h("ZodIntersection",(e,t)=>{Wd.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Zp(e,r,i,n)});function Am(e,t){return new Om({type:"intersection",left:e,right:t})}var Nm=h("ZodTuple",(e,t)=>{Wt(),ks.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Mp(e,r,i,n)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(t=>new wi({type:"optional",innerType:t}))})}});function zm(e,t,r){let i=t instanceof E,n=i?r:t,o=i?t:null;return new Nm({type:"tuple",items:e,rest:o,...$.normalizeParams(n)})}var Kn=h("ZodRecord",(e,t)=>{Wt(),Gd.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Fp(e,r,i,n),e.keyType=t.keyType,e.valueType=t.valueType});function Pm(e,t,r){return!t||!t._zod?new Kn({type:"record",keyType:hi(),valueType:e,...$.normalizeParams(t)}):new Kn({type:"record",keyType:e,valueType:t,...$.normalizeParams(r)})}function Fk(e,t,r){return new Kn({type:"record",keyType:e,valueType:t,...$.normalizeParams(r),partial:!0})}function Bk(e,t,r){return new Kn({type:"record",keyType:e,valueType:t,mode:"loose",...$.normalizeParams(r)})}var Dm=h("ZodMap",(e,t)=>{Wt(),Yd.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Cp(e,r,i,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(Be(...r)),e.nonempty=r=>e.check(Be(1,r)),e.max=(...r)=>e.check(yt(...r)),e.size=(...r)=>e.check(Bt(...r))});function qk(e,t,r){return new Dm({type:"map",keyType:e,valueType:t,...$.normalizeParams(r)})}var Tm=h("ZodSet",(e,t)=>{Wt(),Xd.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Up(e,r,i,n),e.min=(...r)=>e.check(Be(...r)),e.nonempty=r=>e.check(Be(1,r)),e.max=(...r)=>e.check(yt(...r)),e.size=(...r)=>e.check(Bt(...r))});function Vk(e,t){return new Tm({type:"set",valueType:e,...$.normalizeParams(t)})}var Jn=h("ZodEnum",(e,t)=>{Qd.init(e,t),U.init(e,t),e._zod.processJSONSchema=(i,n,o)=>Op(e,i,n,o),e.enum=t.entries,e.options=[...e._zod.values];let r=new Set(Object.keys(t.entries));e.extract=(i,n)=>{let o={};for(let s of i)if(r.has(s))o[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Jn({...t,checks:[],...$.normalizeParams(n),entries:o})},e.exclude=(i,n)=>{let o={...t.entries};for(let s of i)if(r.has(s))delete o[s];else throw new Error(`Key ${s} not found in enum`);return new Jn({...t,checks:[],...$.normalizeParams(n),entries:o})}});function Ra(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Jn({type:"enum",entries:r,...$.normalizeParams(t)})}function Kk(e,t){return new Jn({type:"enum",entries:e,...$.normalizeParams(t)})}var jm=h("ZodLiteral",(e,t)=>{ef.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ap(e,r,i,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 Jk(e,t){return new jm({type:"literal",values:Array.isArray(e)?e:[e],...$.normalizeParams(t)})}var Em=h("ZodFile",(e,t)=>{tf.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Pp(e,r,i,n),e.min=(r,i)=>e.check(Be(r,i)),e.max=(r,i)=>e.check(yt(r,i)),e.mime=(r,i)=>e.check(Un(Array.isArray(r)?r:[r],i))});function Hk(e){return ip(Em,e)}var Cm=h("ZodTransform",(e,t)=>{Wt(),nf.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ep(e,r,i,n),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new gt(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push($.issue(o,r.value,t));else{let s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),"input"in s||(s.input=r.value),s.inst??(s.inst=e),r.issues.push($.issue(s))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(o=>(r.value=o,r)):(r.value=n,r)}});function Za(e){return new Cm({type:"transform",transform:e})}var wi=h("ZodOptional",(e,t)=>{_s.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>fa(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Ht(e){return new wi({type:"optional",innerType:e})}var Ma=h("ZodExactOptional",(e,t)=>{rf.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>fa(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Um(e){return new Ma({type:"optional",innerType:e})}var Lm=h("ZodNullable",(e,t)=>{of.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Bp(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function vi(e){return new Lm({type:"nullable",innerType:e})}function Wk(e){return Ht(vi(e))}var Rm=h("ZodDefault",(e,t)=>{sf.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Kp(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Zm(e,t){return new Rm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():$.shallowClone(t)}})}var Mm=h("ZodPrefault",(e,t)=>{af.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Jp(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Fm(e,t){return new Mm({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():$.shallowClone(t)}})}var Fa=h("ZodNonOptional",(e,t)=>{cf.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>qp(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Bm(e,t){return new Fa({type:"nonoptional",innerType:e,...$.normalizeParams(t)})}var qm=h("ZodSuccess",(e,t)=>{uf.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Dp(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Gk(e){return new qm({type:"success",innerType:e})}var Vm=h("ZodCatch",(e,t)=>{lf.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Hp(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Km(e,t){return new Vm({type:"catch",innerType:e,catchValue:typeof t=="function"?t:$.constantCatch(t)})}var Jm=h("ZodNaN",(e,t)=>{df.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Np(e,r,i,n)});function Yk(e){return np(Jm,e)}var Si=h("ZodPipe",(e,t)=>{ws.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Wp(e,r,i,n),e.in=t.in,e.out=t.out});function ya(e,t){return new Si({type:"pipe",in:e,out:t})}var xi=h("ZodCodec",(e,t)=>{Si.init(e,t),ni.init(e,t)});function Xk(e,t,r){return new xi({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function Qk(e){let t=e._zod.def;return new xi({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var Hm=h("ZodPreprocess",(e,t)=>{Si.init(e,t),ff.init(e,t)}),Wm=h("ZodReadonly",(e,t)=>{pf.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Gp(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Gm(e){return new Wm({type:"readonly",innerType:e})}var Ym=h("ZodTemplateLiteral",(e,t)=>{mf.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>zp(e,r,i,n)});function e_(e,t){return new Ym({type:"template_literal",parts:e,...$.normalizeParams(t)})}var Xm=h("ZodLazy",(e,t)=>{ri.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Xp(e,r,i,n),e.unwrap=()=>e._zod.def.getter()});function Qm(e){return new Xm({type:"lazy",getter:e})}var eg=h("ZodPromise",(e,t)=>{hf.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Yp(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function t_(e){return new eg({type:"promise",innerType:e})}var tg=h("ZodFunction",(e,t)=>{gf.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>jp(e,r,i,n)});function n_(e){return new tg({type:"function",input:Array.isArray(e?.input)?zm(e?.input):e?.input??bi(Jt()),output:e?.output??Jt()})}var Ii=h("ZodCustom",(e,t)=>{vf.init(e,t),U.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Tp(e,r,i,n)});function r_(e){let t=new K({check:"custom"});return t._zod.check=e,t}function i_(e,t){return op(Ii,e??(()=>!0),t)}function ng(e,t={}){return sp(Ii,e,t)}function rg(e,t){return ap(e,t)}var o_=cp,s_=up,ig=h("ZodInstanceOf",(e,t)=>{Ii.init(e,t)},{properties(e,t){return this.check(Cn(e,t))}});function a_(e,t={}){let r=new ig({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...$.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:r,path:[...r._zod.def.path??[]]})},r}var c_=(...e)=>lp({Codec:xi,Boolean:Gn,String:Hn},...e);function u_(e){let t=Qm(()=>Xn([hi(e),mm(),gm(),$m(),bi(t),Pm(hi(),t)]));return t}function l_(e,t){return new Hm({type:"pipe",in:Za(e),out:t})}var q0={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 V0(e){Y({customError:e})}function K0(){return Y().customError}var og;og||(og={});var Oi={};Ke(Oi,{ZodISODate:()=>wt,ZodISODateTime:()=>_t,ZodISODuration:()=>xt,ZodISOTime:()=>St,date:()=>H0,datetime:()=>J0,duration:()=>G0,time:()=>W0});function J0(e){return li(_t,e)}function H0(e){return di(wt,e)}function W0(e){return fi(St,e)}function G0(e){return pi(xt,e)}var A={...Qn,...ga,iso:Oi},Y0=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 X0(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 d_(e,t){return e.map((r,i)=>i<t?r:r.optional())}function Q0(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function eD(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 i=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===i){let n=r[1]===void 0?void 0:Q0(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 tD(e,t){return A.transform(i=>i).check(i=>{let n=i.value;if(typeof n!="object"||n===null||Array.isArray(n))return;let o=Object.getOwnPropertyNames(n);if(t.minProperties!==void 0&&o.length<t.minProperties&&i.issues.push({origin:"object",code:"too_small",minimum:t.minProperties,inclusive:!0,message:`Too small: expected object to have >=${t.minProperties} properties`,input:n,inst:e,continue:!0}),t.maxProperties!==void 0&&o.length>t.maxProperties&&i.issues.push({origin:"object",code:"too_big",maximum:t.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${t.maxProperties} properties`,input:n,inst:e,continue:!0}),t.keySchema)for(let s of o){let a=t.keySchema.safeParse(s);a.success||i.issues.push({code:"invalid_key",origin:"record",issues:a.error.issues,input:s,path:[s],continue:!0})}}).pipe(e)}function sg(e,t){if(e===null)return"z";let r=typeof e;if(r!=="object"){if(r==="number"&&Number.isNaN(e))return null;let i=String(e);return`${r[0]}${i.length}:${i}`}if(t.has(e))return null;t.add(e);try{if(Array.isArray(e)){let o=[];for(let s of e){let a=sg(s,t);if(a===null)return null;o.push(a)}return`a${o.length}:[${o.join(",")}]`}let i=Object.keys(e).sort(),n=[];for(let o of i){let s=sg(e[o],t);if(s===null)return null;n.push(`${o.length}:${o}=${s}`)}return`o${n.length}:{${n.join(",")}}`}finally{t.delete(e)}}var nD=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),rD=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);function Ai(e){return typeof e!="object"||e===null?!1:Array.isArray(e)?e.some(Ai):typeof e.$ref=="string"?!0:Object.entries(e).some(([t,r])=>nD.has(t)?Ai(r):!rD.has(t)||typeof r!="object"||r===null?!1:Object.values(r).some(Ai))}function f_(e){return e===1?"element":"elements"}function iD(e,t){return A.transform(i=>i).check(i=>{let n=i.value;if(Array.isArray(n)){if(t.uniqueItems===!0){let o=new Map;for(let s=0;s<n.length;s++){let a=sg(n[s],new Set);if(a===null)continue;let c=o.get(a);if(c===void 0){o.set(a,s);continue}i.issues.push({code:"custom",message:`Array items must be unique: element at index ${s} duplicates the one at index ${c}`,input:n,path:[s],continue:!0})}}if(t.containsSchema){let o=t.minContains??1,s=t.maxContains!==void 0?t.maxContains+1:Number.POSITIVE_INFINITY,a=0;for(let c of n)if(t.containsSchema.safeParse(c).success&&++a>=s)break;a<o&&i.issues.push({code:"custom",message:`Array must contain at least ${o} matching ${f_(o)}; found ${a}`,input:n,continue:!0}),t.maxContains!==void 0&&a>t.maxContains&&i.issues.push({code:"custom",message:`Array must contain at most ${t.maxContains} matching ${f_(t.maxContains)}`,input:n,continue:!0})}}}).pipe(e)}function p_(e,t){if(e!==!1)return e===void 0||e===!0?A.any():fe(e,t)}var oD=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/;function m_(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return A.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 A.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let o=eD(n,t),s=fe(o,t);return t.refs.set(n,s),t.processing.delete(n),s}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 A.null();if(n.length===0)return A.never();if(n.length===1)return A.literal(n[0]);if(n.every(s=>typeof s=="string"))return A.enum(n);let o=n.map(s=>A.literal(s));return o.length<2?o[0]:A.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return A.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(o=>{let s={...e,type:o};return m_(s,t)});return n.length===0?A.never():n.length===1?n[0]:A.union(n)}if(!r)return A.any();let i;switch(r){case"string":{let n=A.string();if(e.format){let o=e.format;o==="email"?n=n.check(A.email()):o==="uri"||o==="uri-reference"?n=n.check(A.url()):o==="uuid"||o==="guid"?n=n.check(A.uuid()):o==="date-time"?n=n.check(A.iso.datetime({offset:!0})):o==="date"?n=n.check(A.iso.date()):o==="time"?n=n.check(A.regex(oD)):o==="duration"?n=n.check(A.iso.duration()):o==="hostname"?n=n.check(A.hostname()):o==="ipv4"?n=n.check(A.ipv4()):o==="ipv6"?n=n.check(A.ipv6()):o==="mac"?n=n.check(A.mac()):o==="cidr"?n=n.check(A.cidrv4()):o==="cidr-v6"?n=n.check(A.cidrv6()):o==="base64"?n=n.check(A.base64()):o==="base64url"?n=n.check(A.base64url()):o==="e164"?n=n.check(A.e164()):o==="credit_card"?n=n.check(A.creditCard()):o==="iban"?n=n.check(A.iban()):o==="jwt"?n=n.check(A.jwt()):o==="emoji"?n=n.check(A.emoji()):o==="nanoid"?n=n.check(A.nanoid()):o==="cuid"?n=n.check(A.cuid()):o==="cuid2"?n=n.check(A.cuid2()):o==="ulid"?n=n.check(A.ulid()):o==="xid"?n=n.check(A.xid()):o==="ksuid"&&(n=n.check(A.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))),i=n;break}case"number":case"integer":{let n=r==="integer"?A.number().int():A.number();typeof e.minimum=="number"&&e.exclusiveMinimum!==!0&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&e.exclusiveMaximum!==!0&&(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)),i=n;break}case"boolean":{i=A.boolean();break}case"null":{i=A.null();break}case"object":{let n={},o=e.properties||{},s=new Set(e.required||[]),a=typeof e.additionalProperties=="object"?fe(e.additionalProperties,t):void 0;for(let[d,f]of Object.entries(o)){let p=fe(f,t);oe(n,d,s.has(d)?p:p.optional())}if(e.patternProperties){let d=e.patternProperties,f=Object.keys(d),p=[];for(let m of f){let y=fe(d[m],t),w=A.string().regex(new RegExp(m));p.push(A.looseRecord(w,y))}let g=[];if(Object.keys(n).length>0&&g.push(A.object(n).passthrough()),g.push(...p),g.length===0)i=A.object({}).passthrough();else if(g.length===1)i=g[0];else{let m=A.intersection(g[0],g[1]);for(let y=2;y<g.length;y++)m=A.intersection(m,g[y]);i=m}if(e.additionalProperties===!1){let m=Object.keys(n),y=f.map(k=>new RegExp(k)),w=i;i=i.check(k=>{if(!Ae(k.value))return;let S=[];for(let I of Object.keys(k.value))m.includes(I)||y.some(z=>z.test(I))||S.push(I);S.length&&k.issues.push({code:"unrecognized_keys",keys:S,input:k.value,inst:w})})}}else{let d=A.object(n);e.additionalProperties===!1?i=d.strict():a?i=d.catchall(a):i=d.passthrough()}let c=e.propertyNames!==void 0&&e.propertyNames!==!0,u=typeof e.minProperties=="number"?e.minProperties:void 0,l=typeof e.maxProperties=="number"?e.maxProperties:void 0;if(c||u!==void 0||l!==void 0){let d;if(c){let f=typeof e.propertyNames=="object"&&e.propertyNames.type===void 0?{type:"string",...e.propertyNames}:e.propertyNames;d=fe(f,t)}i=tD(i,{keySchema:d,minProperties:u,maxProperties:l})}break}case"array":{let n=e.prefixItems,o=e.items;if(n&&Array.isArray(n)){let s=typeof e.minItems=="number"?e.minItems:0,a=n.map(d=>fe(d,t)),c=d_(a,s),u=Array.isArray(o)?void 0:p_(o,t),l=A.tuple(c);i=u?l.rest(u):l,typeof e.minItems=="number"&&(i=i.check(A.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(A.maxLength(e.maxItems)))}else if(Array.isArray(o)){let s=typeof e.minItems=="number"?e.minItems:0,a=o.map(d=>fe(d,t)),c=d_(a,s),u=p_(e.additionalItems,t),l=A.tuple(c);i=u?l.rest(u):l,typeof e.minItems=="number"&&(i=i.check(A.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(A.maxLength(e.maxItems)))}else if(o!==void 0){let s=fe(o,t),a=A.array(s);typeof e.minItems=="number"&&(a=a.min(e.minItems)),typeof e.maxItems=="number"&&(a=a.max(e.maxItems)),i=a}else i=A.array(A.any());(e.uniqueItems===!0||e.contains!==void 0)&&(i=iD(i,{uniqueItems:e.uniqueItems===!0,containsSchema:e.contains!==void 0?fe(e.contains,t):void 0,minContains:typeof e.minContains=="number"?e.minContains:void 0,maxContains:typeof e.maxContains=="number"?e.maxContains:void 0}));break}default:throw new Error(`Unsupported type: ${r}`)}return i}function fe(e,t){if(typeof e=="boolean")return e?A.any():A.never();let r=m_(e,t),i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let a=e.anyOf.map(u=>fe(u,t)),c=A.union(a);r=i?A.intersection(r,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let a=e.oneOf.map(u=>fe(u,t)),c=A.xor(a);r=i?A.intersection(r,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=i?r:A.any();else{let a=i?r:fe(e.allOf[0],t),c=i?0:1;for(let u=c;u<e.allOf.length;u++)a=A.intersection(a,fe(e.allOf[u],t));r=a}e.nullable===!0&&t.version==="openapi-3.0"&&(r=A.nullable(r)),e.readOnly===!0&&(r=A.readonly(r)),e.default!==void 0&&(r=r.default(e.default));let n={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let a of o)a in e&&(n[a]=e[a]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let a of s)a in e&&(n[a]=e[a]);if(e.type==="object"&&e.$ref===void 0){e.propertyNames!==void 0&&!Ai(e.propertyNames)&&(n.propertyNames=e.propertyNames);for(let a of["minProperties","maxProperties"])e[a]!==void 0&&(n[a]=e[a])}if(e.type==="array"&&e.$ref===void 0){e.contains!==void 0&&!Ai(e.contains)&&(n.contains=e.contains);for(let a of["uniqueItems","minContains","maxContains"])e[a]!==void 0&&(n[a]=e[a])}for(let a of Object.keys(e))Y0.has(a)||oe(n,a,e[a]);return Object.keys(n).length>0&&t.registry.add(r,n),e.description&&(r=r.describe(e.description)),r}function g_(e,t){if(typeof e=="boolean")return e?A.any():A.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 i=X0(r,t?.defaultTarget),n=r.$defs||r.definitions||{},o={version:i,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:t?.registry??se};return fe(r,o)}var h_=Symbol("z.visit/resolving");function Ni(e,t){let r=typeof t=="function"?t:(s,a)=>{let c=t[s._zod.def.type];return c?c(s,a):s},i=new Map;function n(s){let a=i.get(s);if(a===h_)return new ri({type:"lazy",getter:()=>i.get(s)});if(a!==void 0)return a;i.set(s,h_);let c=o(s),u=r(c,c!==s);return i.set(s,u),u}function o(s){let a=s._zod.def,c=a.type;switch(c){case"object":{let u=a.shape,l=Object.keys(u),d=!1,f={};for(let g of l){let m=n(u[g]);m!==u[g]&&(d=!0),f[g]=m}let p=a.catchall;return a.catchall&&(p=n(a.catchall),p!==a.catchall&&(d=!0)),d?F(s,{...a,shape:f,catchall:p}):s}case"array":{let u=n(a.element);return u===a.element?s:F(s,{...a,element:u})}case"tuple":{let u=a.items,l=!1,d=[];for(let p of u){let g=n(p);g!==p&&(l=!0),d.push(g)}let f=a.rest;return a.rest&&(f=n(a.rest),f!==a.rest&&(l=!0)),l?F(s,{...a,items:d,rest:f}):s}case"record":case"map":{let u=n(a.keyType),l=n(a.valueType);return u===a.keyType&&l===a.valueType?s:F(s,{...a,keyType:u,valueType:l})}case"set":{let u=n(a.valueType);return u===a.valueType?s:F(s,{...a,valueType:u})}case"union":{let u=a.options,l=!1,d=[];for(let f of u){let p=n(f);p!==f&&(l=!0),d.push(p)}return l?F(s,{...a,options:d}):s}case"intersection":{let u=n(a.left),l=n(a.right);return u===a.left&&l===a.right?s:F(s,{...a,left:u,right:l})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{let u=n(a.innerType);return u===a.innerType?s:F(s,{...a,innerType:u})}case"pipe":{let u=n(a.in),l=n(a.out);return u===a.in&&l===a.out?s:F(s,{...a,in:u,out:l})}case"function":{let u=n(a.input),l=n(a.output);return u===a.input&&l===a.output?s:F(s,{...a,input:u,output:l})}case"lazy":{let u=a.getter,{_cachedInner:l,...d}=a;return F(s,{...d,getter:()=>n(u())})}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":return s;default:return s}}return n(e)}function v_(e){return Ni(e,{object:t=>t.partial(),union:t=>{let r=t._zod.def;return r.discriminator===void 0?t:Xn(r.options)}})}function sD(e,t){if(!t?.length)return e;let r=e._zod.def;return F(e,je(r,{checks:[...r.checks??[],...t]}),{parent:!0})}function y_(e){return sD(e.out,e.checks)}function aD(e){return e.in._zod.traits.has("$ZodTransform")?y_(e):e.in}function $_(e){return Ni(e,{pipe:t=>aD(t._zod.def),default:(t,r)=>r?Ht(t._zod.def.innerType):t,catch:(t,r)=>r?t._zod.def.innerType:t})}function b_(e){return Ni(e,{pipe:t=>y_(t._zod.def),prefault:(t,r)=>r?t._zod.def.innerType:t})}var ag={};Ke(ag,{bigint:()=>dD,boolean:()=>lD,date:()=>fD,number:()=>uD,string:()=>cD});function cD(e){return Nf(Hn,e)}function uD(e){return Ef(Wn,e)}function lD(e){return Ff(Gn,e)}function dD(e){return qf(Yn,e)}function fD(e){return tp($i,e)}var cg=nt(We(),1);var ug=["claude-code","antigravity","pi","codex","cursor"];function Ue(e,t){return t[e]}function H(e,t){return Ue(e,{"claude-code":`/bk:${t}`,antigravity:`/bk-${t}`,pi:`/bk-${t}`,codex:`$bk:${t}`,cursor:`/bk-${t}`})}var mD=e=>Ue(e,{"claude-code":"Claude",antigravity:"the agent",pi:"the agent",codex:"the agent",cursor:"the agent"}),gD=e=>Ue(e,{"claude-code":null,antigravity:null,pi:null,codex:"BuildKeel's `ask` tool (`mcp__buildkeel__ask`)",cursor:null});function lg(e,t){let r=mD(t),i=gD(t),n=e.replace(/\{\{bk:([a-z][a-z-]*)\}\}/g,(o,s)=>H(t,s)).replaceAll("{{agent}}",r).replaceAll("{{Agent}}",r.charAt(0).toUpperCase()+r.slice(1));return i?n.replace(/\b[Yy]our tool for asking a question with choices(?:,? if you have one)?/g,i):n}var c6=j.object({name:j.string().regex(/^[a-z][a-z-]*$/),description:j.string().min(1),"argument-hint":j.string().default("")});var dg=["settings","status","stats","pause","capture","new","build","review","resume","impact","onboard"];function __(e){let t=dg.map(i=>`bk-${i}.md`).join(", "),r=["approve","done","init","migrate","models"].map(i=>H("pi",i)).join(", ");return[`BuildKeel's commands are files in ${e}, one per command, such as bk-status.md for ${H("pi","status")}. When the user asks in their own words for one of these commands, first read that command's file with your read tool, every time, even if you think you know what it does, and then follow it exactly, with the user's words as its arguments: ${t}. Never call a BuildKeel tool for a command before you have read its file in this conversation.`,`The other BuildKeel commands (${r}) start only when the user types them: when asked in words, tell the user to type the command.`,"Your tool for asking a question with choices is bk_ask, when you have it. Your tool for starting agents is bk_agent: start BuildKeel's agents with it, by the names and with the model and thinking level that BuildKeel's settings view gives."].join(`
200
+
201
+ `)}import{isAbsolute as kD,resolve as _D}from"node:path";var wD=["edit","write"],SD=["bash","powershell"],xD={startup:"startup",new:"startup",reload:"resume",resume:"resume",fork:"resume"},w_={parse(e){let t=e??{},r=t.cwd??process.cwd(),i=t.session?{conversation:t.session}:{},n=t.contextWindow?{contextWindow:t.contextWindow}:{};switch(t.event){case"session_start":return{kind:"session-start",cwd:r,reason:xD[t.reason??"startup"]??"startup",...i,transcript:t.sessionFile??null,...n};case"session_compact":return{kind:"session-start",cwd:r,reason:"compact",...i,transcript:t.sessionFile??null,...n};case"input":return{kind:"message",cwd:r,...i,...n};case"tool_call":case"tool_result":{let o=t.toolName??"",s=t.event==="tool_call";if(SD.includes(o)){let u=t.input?.command;return typeof u!="string"?{kind:"ignored"}:s?{kind:"before-shell",cwd:r,tool:o,command:u}:{kind:"after-shell",cwd:r,tool:o,command:u}}if(!wD.includes(o))return{kind:"ignored"};let a=t.input?.path;if(typeof a!="string")return{kind:"ignored"};let c=[kD(a)?a:_D(r,a)];return s?{kind:"before-edit",cwd:r,tool:o,files:c,...i}:t.isError?{kind:"ignored"}:{kind:"after-edit",cwd:r,tool:o,files:c}}default:return{kind:"ignored"}}},render(e,t){return t.kind==="ignored"||!e.block&&!e.context?{stdout:"",exitCode:0}:{stdout:JSON.stringify(e),exitCode:0}},failed:()=>({stdout:"",exitCode:1})};import{existsSync as sE}from"node:fs";import{dirname as aE,join as cE,resolve as uE}from"node:path";import{existsSync as Xt,readFileSync as S_,statSync as ID}from"node:fs";import{dirname as OD,isAbsolute as x_,join as tt,resolve as fg}from"node:path";var I_=".buildkeel.yaml",O_="buildkeel.yaml",xe=".buildkeel",AD="buildkeel";function Ba(e){let t=tt(e,".git");if(!Xt(t))return null;try{if(ID(t).isDirectory())return t;let r=/^gitdir:\s*(.+)$/m.exec(S_(t,"utf8"))?.[1]?.trim();return r?x_(r)?r:fg(e,r):null}catch{return null}}function A_(e){let t=Ba(e);if(!t)return null;try{let r=tt(t,"commondir");if(!Xt(r))return t;let i=S_(r,"utf8").trim();return x_(i)?i:fg(t,i)}catch{return t}}function ND(e){if(Xt(tt(e,I_)))return!1;let t=A_(e);return t!==null&&Xt(tt(t,O_))}function pe(e){if(ND(e)){let t=Ba(e);if(t)return tt(t,AD)}return tt(e,xe)}function qa(e){let t=fg(e);for(;;){if(Xt(tt(t,I_)))return t;if(Xt(tt(t,".git"))){let i=A_(t);return i!==null&&Xt(tt(i,O_))?t:null}let r=OD(t);if(r===t)return null;t=r}}import{existsSync as N_,readdirSync as zD,readFileSync as z_}from"node:fs";import{basename as PD,dirname as DD,join as Va,relative as TD}from"node:path";function jD(e){let t=Ba(e);if(!t||!N_(Va(t,"config")))return null;let r=z_(Va(t,"config"),"utf8"),i=/\[remote "origin"\][^[]*?\n\s*url\s*=\s*(.+?)\s*$/m.exec(r)?.[1]??null;return i===null?null:i.replace(/^"(.*)"$/,"$1").replaceAll("\\\\","\\")}function ED(e,t){let r=i=>{let n=i.replace(/^["']|["']$/g,"").replaceAll("\\","/").replace(/(?<!^[a-z][a-z0-9+.-]+:)\/{2,}/gi,"/").replace(/\/+$/,"");return process.platform==="win32"?n.toLowerCase():n};return r(e)===r(t)}var CD=200;function P_(e){let t=DD(e),r=jD(e),i=PD(e),n;try{n=zD(t).slice(0,CD)}catch{return null}for(let o of n){let s=Va(t,o,"buildkeel.yaml");if(o===i||!N_(s))continue;let a;try{a=z_(s,"utf8")}catch{continue}if(!/^repos:/m.test(a))continue;let c=[...a.matchAll(/^\s*-?\s*name:\s*["']?([^"'\n]+?)["']?\s*$/gm)].map(l=>l[1]),u=[...a.matchAll(/^\s*-?\s*remote:\s*["']?([^"'\n]+?)["']?\s*$/gm)].map(l=>l[1]);if(r&&u.some(l=>l!==void 0&&ED(l,r))||c.includes(i))return Va(t,o)}return null}var D_=(e,t)=>TD(e,t).split("\\").join("/");import{existsSync as S6,readFileSync as UD,writeFileSync as x6}from"node:fs";import{join as pg}from"node:path";var T_="break-",LD="hook-cache.json",RD="context.md",j_=e=>pg(pe(e),RD),ZD="context-short.md",E_=e=>pg(pe(e),ZD);function MD(e){return pg(pe(e),LD)}function C_(e){try{let t=JSON.parse(UD(MD(e),"utf8"));return t?.version===1?t:null}catch{return null}}var O6=`${xe}/`;import{appendFileSync as FT,closeSync as BT,fstatSync as qT,mkdirSync as VT,openSync as KT,readFileSync as JT,readSync as HT,renameSync as WT,rmSync as GT,statSync as YT}from"node:fs";import{join as XT}from"node:path";import{closeSync as FD,existsSync as BD,fstatSync as qD,mkdirSync as VD,openSync as KD,readdirSync as JD,readFileSync as HD,readSync as WD,renameSync as GD,writeFileSync as YD}from"node:fs";import{homedir as XD}from"node:os";import{join as er}from"node:path";var QD="conversations",eT=(e,t)=>`${e.replace(/[^A-Za-z0-9_-]/g,"_").slice(0,100)}.${t}`,U_=e=>er(pe(e),QD),zi=(e,t,r)=>er(U_(e),eT(t,r));function Qt(e){try{let t=JSON.parse(HD(e,"utf8"));return t.version===1?t:null}catch{return null}}function Pi(e,t){VD(er(e,".."),{recursive:!0});let r=`${e}.${process.pid}.tmp`;YD(r,`${JSON.stringify(t,null,2)}
202
+ `),GD(r,e)}function mg(e,t,r,i=new Date,n,o){let s=zi(e,t,"json"),a=Qt(s)??{version:1,startedAt:i.toISOString()},c={...a,conversation:t,...r?{transcriptPath:r}:{},lastSeen:i.toISOString(),...n!==void 0?{activeUnit:n}:{},...o?{contextWindow:o}:{}};JSON.stringify(c)!==JSON.stringify(a)&&Pi(s,c)}function L_(e,t,r=new Date){let i=zi(e,t,"json"),n=Qt(i)??{version:1,startedAt:r.toISOString(),conversation:t};Pi(i,{...n,compactions:(n.compactions??0)+1,lastSeen:r.toISOString()})}function gg(e){let t=U_(e);return BD(t)?JD(t).filter(r=>r.endsWith(".json")).flatMap(r=>{let i=Qt(er(t,r));return i?[{...i,file:er(t,r)}]:[]}).sort((r,i)=>(i.lastSeen??i.startedAt).localeCompare(r.lastSeen??r.startedAt)):[]}var Di=e=>e==="~"||e.startsWith("~/")?er(XD(),e.slice(1)):e;function Ka(e){let t;try{t=KD(Di(e),"r")}catch{return[]}try{let r=Buffer.alloc(qD(t).size),i=r.length>0?WD(t,r,0,r.length,0):0;return r.subarray(0,i).toString("utf8").split(`
203
+ `).filter(n=>n.trim())}catch{return[]}finally{FD(t)}}function tT(e){let t=[];for(let r of e){let i;try{i=JSON.parse(r)}catch{continue}if(i.type==="USER_INPUT"&&typeof i.content=="string"){let a=/<USER_REQUEST>([\s\S]*?)<\/USER_REQUEST>/.exec(i.content)?.[1]??i.content;t.push({text:a.trim(),...typeof i.created_at=="string"?{at:i.created_at}:{}});continue}if(i.type!=="user"||i.isMeta===!0)continue;let n=i.message,o=typeof i.timestamp=="string"?{at:i.timestamp}:{};if(typeof n?.content=="string"){t.push({text:n.content,...o});continue}if(!Array.isArray(n?.content))continue;let s=[];for(let a of n.content)if(a.type==="text"&&typeof a.text=="string")s.push(a.text);else if(a.type==="tool_result"){let c=typeof a.content=="string"?a.content:Array.isArray(a.content)?a.content.map(u=>typeof u.text=="string"?u.text:"").join(`
204
+ `):"";/^User has answered your questions?/.test(c)&&s.push(c)}s.length>0&&t.push({text:s.join(`
205
+ `),...o})}return t}function R_(e){let t=Qt(e);t&&Pi(e,{...t,recoveryOffered:!0})}function hg(e,t){let r=tT(Ka(e));return t?r.filter(i=>i.at===void 0||i.at>t):r}import{randomBytes as nT}from"node:crypto";import{dirname as rT,join as iT}from"node:path";var Z_=e=>iT(rT(e),`.${nT(6).toString("hex")}.bk-tmp`);import{existsSync as oT,readFileSync as sT}from"node:fs";import{dirname as M_,join as F_}from"node:path";import{fileURLToPath as aT}from"node:url";function cT(e=aT(import.meta.url)){let t=M_(e);for(;;){if(oT(F_(t,"package.json")))return t;let r=M_(t);if(r===t)throw new Error(`No package.json above ${e}`);t=r}}function B_(){return JSON.parse(sT(F_(cT(),"package.json"),"utf8")).version??"0.0.0"}import{mkdirSync as hT,readFileSync as vT,renameSync as yT,writeFileSync as $T}from"node:fs";import{join as H_}from"node:path";var q_=nt(We(),1);import{readFileSync as uT,statSync as lT}from"node:fs";import{homedir as dT}from"node:os";import{join as yg,resolve as fT}from"node:path";var $g="settings.yaml",me={codeEdits:"code-edits",updateCheck:"update-check"},vg="BUILDKEEL_NO_UPDATE_CHECK";function _e(e=process.env){return e.BUILDKEEL_HOME?fT(e.BUILDKEEL_HOME):yg(dT(),".buildkeel")}function pT(e){return e==="spec-driven"?"warn":"hold"}var V_=e=>e==="hold"||e==="warn"?e:void 0,mT=e=>e===!0||e==="on"?!0:e===!1||e==="off"?!1:void 0;function gT(e=_e()){let t;try{t=uT(yg(e,$g),"utf8")}catch{return{problems:[]}}let r;try{r=(0,q_.parse)(t)}catch(c){return{problems:[{path:"",message:`cannot be read: ${c instanceof Error?c.message.split(`
206
+ `)[0]:String(c)}`}]}}if(r==null)return{problems:[]};if(typeof r!="object"||Array.isArray(r))return{problems:[{path:"",message:`must hold ${Object.values(me).join(" and ")}`}]};let i=r,n=[],o=Object.values(me);for(let c of Object.keys(i))!o.includes(c)&&c!=="agents"&&n.push({path:c,message:`is not a personal switch. They are ${o.join(" and ")}`});let s=V_(i[me.codeEdits]);i[me.codeEdits]!==void 0&&!s&&n.push({path:me.codeEdits,message:"must be hold or warn"});let a=mT(i[me.updateCheck]);return i[me.updateCheck]!==void 0&&a===void 0&&n.push({path:me.updateCheck,message:"must be on or off"}),{...s?{codeEdits:s}:{},...a===void 0?{}:{updateCheck:a},problems:n}}function K_(e){let t=e&&typeof e=="object"&&!Array.isArray(e)?e.personal:void 0;if(t==null)return{problems:[]};if(typeof t!="object"||Array.isArray(t))return{problems:[{path:"personal",message:`must be a section holding ${me.codeEdits}`}]};let r=t,i=[];for(let o of Object.keys(r))o===me.updateCheck?i.push({path:`personal.${o}`,message:"cannot be locked: the version check is each person's own choice"}):o!==me.codeEdits&&i.push({path:`personal.${o}`,message:`is not a personal switch a team can lock. It can lock ${me.codeEdits}`});let n=V_(r[me.codeEdits]);return r[me.codeEdits]!==void 0&&!n&&i.push({path:`personal.${me.codeEdits}`,message:"must be hold or warn"}),{...n?{codeEdits:n}:{},problems:i}}function en(e,t,r=_e(),i=process.env){let n=gT(r),o=K_(t),s=o.codeEdits?{value:o.codeEdits,from:"team"}:n.codeEdits?{value:n.codeEdits,from:"you"}:{value:pT(e),from:"default"},c=i[vg]!==void 0&&i[vg]!==""&&i[vg]!=="0"?{value:!1,from:"environment"}:n.updateCheck===void 0?{value:!0,from:"default"}:{value:n.updateCheck,from:"you"};return{codeEdits:s,updateCheck:c}}function J_(e=_e()){try{return lT(yg(e,$g)).mtimeMs}catch{return 0}}var W_="update-check.json",W6=1440*60*1e3;function bT(e=_e()){try{let t=JSON.parse(vT(H_(e,W_),"utf8"));return typeof t.checkedAt=="string"?t:null}catch{return null}}function kT(e,t){try{hT(e,{recursive:!0});let r=H_(e,W_),i=`${r}.${process.pid}.tmp`;$T(i,`${JSON.stringify(t,null,2)}
207
+ `),yT(i,r)}catch{}}function _T(e,t){let r=o=>/^\d+\.\d+\.\d+$/.test(o)?o.split(".").map(Number):null,i=r(e),n=r(t);if(!i||!n)return!1;for(let o=0;o<3;o++)if(i[o]!==n[o])return i[o]>n[o];return!1}function wT(e){return Ue(e,{"claude-code":"/plugin update bk@buildkeel",antigravity:"npx buildkeel@latest update --antigravity",pi:"pi update npm:buildkeel",codex:"codex plugin marketplace upgrade buildkeel",cursor:"npx buildkeel@latest update --cursor"})}function G_(e,t,r=_e(),i=process.env){if(!en(void 0,{},r,i).updateCheck.value)return null;let n=bT(r);return!n?.latest||!_T(n.latest,e)||n.shown===n.latest?null:(kT(r,{...n,shown:n.latest}),`BuildKeel ${n.latest} is available (this is ${e}). Tell the user in one line, with the command to update: ${wT(t)}.${ST(t)} Turn this notice off with update-check: off in ~/.buildkeel/settings.yaml.`)}function ST(e){return Ue(e,{"claude-code":"",antigravity:"",pi:"",codex:" Then say to open /hooks and trust BuildKeel's hooks again: Codex asks after every update, and skips them until then.",cursor:""})}import{existsSync as xT,readFileSync as IT,rmSync as OT}from"node:fs";import{join as AT}from"node:path";var NT="migrated.json",zT=e=>AT(pe(e),NT);function Y_(e,t){let r=zT(e);if(!xT(r))return null;let i;try{i=JSON.parse(IT(r,"utf8"))}catch{i={from:4,to:5,renamed:0,reason:"its outcome could not be read"}}return OT(r,{force:!0}),PT(i,t)}function PT(e,t){let{from:r,to:i}=e;if(e.reason!==void 0||e.commit===void 0)return`BuildKeel could not move this spec tree from format ${r} to format ${i}: ${e.reason??"the step did not finish"}. The tree stays in format ${r}, read-only, until ${H(t,"migrate")} retries it. Tell the user in one line.`;let n=e.renamed===0?"":` ${e.renamed} runs/ folder${e.renamed===1?"":"s"} of open work became test-runs/;`;return`BuildKeel moved this spec tree from format ${r} to format ${i}, the one this version uses:${n} the analytics files were added with their merge rule, and finished work was left as it is. Committed on its own as "migrate: format ${r} to ${i}" (${e.commit.slice(0,7)}), pushed with the tree's other commits. Anyone still on an older BuildKeel needs to update to change the tree. Tell the user in one line.`}import{readFileSync as LT}from"node:fs";var DT=nt(We(),1);var bg={type:"test-plan",dir:"test-plan",file:"plan.md",idSuffix:"-TP"},kg={type:"design",dir:"design",file:"design.md",idSuffix:"-DD"},oR=[{type:bg.type,dir:bg.dir,file:bg.file,suffix:"TP"},{type:kg.type,dir:kg.dir,file:kg.file,suffix:"DD"}];var X_={notes:"notes",pauses:"pauses",testRuns:"test-runs",reviews:"reviews",answers:"answers",switches:"switches",handoffs:"handoffs",executions:"executions",asBuilt:"as-built"},Q_=["runs"],sR=[...Object.values(X_),...Q_],aR=["versions","approvals","completions","repins",...Object.values(X_),...Q_];function ew(e){return/^([A-Z][A-Z0-9]*-[A-Za-z0-9]+)(?:-|$)/.exec(e)?.[1]??null}var Ja=(e,t)=>t?`${e} "${t}"`:e;var TT=3;function Ha(e,t,r,i){if(t.activeUnit||t.threads==="off")return null;let n=gg(e).find(a=>a.conversation!==i&&a.transcriptPath);if(!n?.transcriptPath||n.recoveryOffered||n.activeUnit)return null;let o=hg(n.transcriptPath,n.savedAt);return o.length<TT?null:(R_(n.file),`The previous conversation in this repository on this machine (started ${(n.startedAt??"").slice(0,10)}, ${o.length} messages from the user) ended with no unit, and was not paused or captured. Offer once, in one line, to recover it as a thread with ${H(r,"pause")}, built from its whole transcript at ${n.transcriptPath}, which stays on this machine. If the user declines or says nothing of it, do not offer again.`)}function Wa(e,t,r,i,n){if(t.activeUnit||!n)return null;let o=gg(e).find(s=>s.conversation===i);return hg(n,o?.savedAt).length===0?null:`This conversation was compacted, and the exploration in it is not saved. If the user pauses with ${H(r,"pause")}, build the thread from the whole transcript at ${n}, not from the summary.`}var tw=nt(We(),1);import{readFileSync as jT,statSync as ET}from"node:fs";import{join as CT}from"node:path";var UT="buildkeel.yaml";function Ga(e,t=_e()){let r=CT(e.specRoot,UT),i=Date.parse(e.updatedAt),n=0;try{n=ET(r).mtimeMs}catch{}if(n<=i&&J_(t)<=i)return e;let o;try{o=(0,tw.parse)(jT(r,"utf8"))}catch{return e}let s=o?.process,a=en(e.mode,s,t).codeEdits.value;if(n<=i)return{...e,codeEdits:a};let c=(d,f)=>{let p=s&&typeof s=="object"?s[d]:void 0;return p&&typeof p=="object"?p[f]:void 0},u=d=>d!==!1&&d!=="off",l=c("continuity","threads");return{...e,threads:l===!1?"off":l==="off"||l==="auto"?l:"ask",exploring:u(c("planning","exploring")),spikes:u(c("planning","spikes")),codeEdits:a}}function _g(e,t){let r=e.exploring!==!1,i=[{key:"setup",text:"BuildKeel is set up in this repository. Until the user runs a BuildKeel command, or you are about to change a file, converse as you would without it, and leave BuildKeel's artifacts, IDs and commands out of it. "+(r?"Be a thinking partner: check facts in the code and docs before asking; for an idea or a design choice, play back your understanding, lay out two or three options with their trade-offs, risks and pitfalls, then ask one question in prose and say why it matters. ":"Check facts in the code and docs before asking. ")+"Recommend only when the evidence supports it, and say what it rests on; never assume the user's intent, priorities or constraints, and ask when only they know. When you look something up, say what you found and give the sources. "+(r?"Keep what was decided apart from what is still open, and the user's own words apart from your proposals. ":"")+`Take the space the reasoning needs; do not cut it short or push toward a conclusion or a plan. Use your question tool only for a closed choice between comparable options, and let several answers be picked when more than one can apply. Until the user signals the discussion has reached a point, end your replies without mentioning BuildKeel, the spec tree or its artifacts, and without offering to draft, record, plan or build anything; settling the last open question is not that signal, so wait for the user to say it. When they signal it, such as with "sounds good" or "I think that's it", ask once, in prose, whether there is more to explore or they are ready to capture it with ${H(t,"capture")}; if they keep talking or say no, do not offer again until something new is settled. Never start it yourself. When the user says words such as "let's stop here" or "I'm switching machines", pause as ${H(t,"pause")} does.`,fingerprint:r?"":"no-exploring"}];if(e.activeUnit){let n=e.activeBranch?` on branch ${e.activeBranch}`:"";i.push({key:"unit",text:`Active unit: ${Ja(e.activeUnit,e.activeTitle)}${n}.`,fingerprint:`${e.activeUnit}${n}`})}else e.spike?i.push({key:"unit",text:`No active unit in this working tree: the spike "${e.spike.name}" is under way on ${e.spike.branch} since ${e.spike.since}, untracked, throwaway work whose commits carry no unit line. End it with the BuildKeel manage tool (action spike, end true) to offer its findings as working notes.`,fingerprint:`spike:${e.spike.branch}`}):e.untrackedSince?i.push({key:"unit",text:`No active unit in this working tree: the user chose to work without one here since ${e.untrackedSince}, so changes made now belong to no unit. Starting a unit with ${H(t,"build")} <ID> ends this.`,fingerprint:`untracked:${e.untrackedSince}`}):e.untrackedFiles?i.push({key:"unit",text:`No active unit in this working tree: the user chose to change ${e.untrackedFiles.paths.join(", ")} without one since ${e.untrackedFiles.since}, so those changes belong to no unit; edits elsewhere are treated as usual. Starting a unit with ${H(t,"build")} <ID> ends this.`,fingerprint:`untracked-files:${e.untrackedFiles.since}:${e.untrackedFiles.paths.join(",")}`}):i.push({key:"unit",text:"No unit is active in this working tree.",fingerprint:""});if(e.paused&&e.paused.length>0){let n=(e.pausedCount??e.paused.length)-e.paused.length,o=e.paused.map(s=>`${s.id}${s.title?` "${s.title}"`:""} (paused by ${s.by} on ${s.at.slice(0,10)}${s.next?`; next: ${s.next}`:""})`);i.push({key:"paused",text:`Paused work in this spec tree: ${o.join("; ")}${n>0?`; and ${n} more`:""}. Offer it once, in one line, when the user's first message does not take the conversation elsewhere: ${H(t,"resume")} with its ID resumes it. Do not offer it again in this conversation.`,fingerprint:e.paused.map(s=>`${s.id}@${s.at}`).join(",")})}if(e.publishWaiting&&e.publishWaiting.count>0){let{shown:n,count:o}=e.publishWaiting;i.push({key:"publish",text:`Waiting to publish to the team's other tools: ${n.join("; ")}${o>n.length?`; and ${o-n.length} more`:""}. Offer once, in one line, to send ${o===1?"it":"them"}, when the user's first message does not take the conversation elsewhere; on a yes, query view publish prepares ${o===1?"it":"them"}. Do not offer it again in this conversation.`,fingerprint:`publish:${o}:${n.join(",")}`})}if(e.freshness?.status==="behind"&&i.push({key:"behind",text:"The spec tree was behind its remote at the last fetch, so work paused on another machine may not be here yet. Only when the user turns to work (resuming, building, or asking what is paused), offer once, in one line, to pull it first; do not raise it otherwise.",fingerprint:"behind"}),e.keptOut&&i.push({key:"traces",text:'BuildKeel is kept out of this repository: in commit messages, branch names, pull requests, code, comments and files here, name the work only by its ID, such as "Refs: TK-001", and never write "BuildKeel", "bk/" or a BuildKeel command. The plan and its records live in the spec repository.'+(e.localDir?` Write test reports under ${e.localDir}, not .buildkeel/, such as ${e.localDir}/junit.xml.`:""),fingerprint:"kept-out"}),i.push(RT(e)),i.push({key:"knowledge",text:'When the user states a rule for how the team designs, tests or reviews code, such as "from now on we always...", it is a team practice: offer it in full, saved with save_draft type practice once the user agrees, never in your own memory. When a decision is hard to reverse, surprising without its context, and chosen over a real alternative, offer an ADR for it in one line; draft it with save_draft type adr only if the user agrees.'+(e.spikes===!1?"":` When the user asks for a spike, throwaway work to find something out, such as "let's spike the SMS provider", start it with manage action spike and a short name before writing any file, even a scratch one, and end it with manage action spike and end: true when they say so.`),fingerprint:e.spikes===!1?"no-spikes":""}),i.push({key:"rules",text:"Read and change the spec tree only through the BuildKeel tools, never by editing its files.",fingerprint:""}),i.push({key:"review",text:"Before you save anything to the spec tree, show what changes, in full, in your reply, and ask in plain text. Agreement saves it; anything else is feedback: discuss it, then list each point with how it was addressed, show the final version, and save only once the user agrees. When work would change a document the user agreed, say which, what and why, and take it through the same review. Never add, change or remove a requirement, criterion, scenario or task on your own initiative. Check a reported problem against the spec and its code first: propose, as your reading, a defect, a change in behavior, a gap or code no spec covers; record nothing until the user confirms. If agreed behavior looks wrong while building, stop and ask, naming the requirement, criterion or scenario and why; never build something else or edit the spec without the answer. Kept, build it as agreed; changed, update the spec first, then the code."+(e.mode==="spec-driven"?" Report each tick in a line; do not ask about ticks. Tick with save_draft tick, change one requirement with save_draft requirement, and read one file of a change with query file, rather than resending or rereading whole files.":""),fingerprint:e.mode==="spec-driven"?"spec-driven":""}),e.mode==="spec-driven")i.push({key:"stages",text:"This spec tree is Spec-driven: its capability specs say how the system behaves now, and each change says how it will change; nothing in it is approved. Before discussing how the system behaves, look up the capability specs with the BuildKeel query tool. Each BuildKeel command follows its part for a Spec-driven tree.",fingerprint:"spec-driven"},{key:"consistency",text:"When you edit one file of an open change (its proposal, a spec change, its design or its tasks), check the others against the edit, in any direction, and name the follow-on edits in the same reply; then take each through the review, one edit at a time, with what changes and why. Never edit code as part of this.",fingerprint:"spec-driven"},{key:"build",text:(e.keptOut?`While a change is open, commit each task's work as it is done, writing its unit line as "Refs: <change ID> task <number>" in a commit that does exactly that one task, and tick each task once its verification passes. `:`While a change is open, commit each task's work as it is done, adding "BuildKeel-Task: <number>" to a commit that does exactly that one task, and tick each task once its verification passes. `)+`Name a change with its title, never by its ID alone, such as CH-001 "Download historical market data". When the user asks in words to build a change's tasks, start ${H(t,"build")} for it, saying so in a line (D139); if they say to build here without it, build the tasks by the same rules, and if they say not now, build nothing. A specific edit they ask for needs no build. While building, stop and ask when a test fails and you cannot fix it, or a requirement is unclear. Before adding a requirement to a change with more than half its tasks ticked, ask once whether it belongs in that change or a new one, and draft nothing until they answer.`,fingerprint:`spec-driven|${t}`},{key:"tests",text:"Put the ID of the scenario a test checks in square brackets in the test's name, one ID per bracket.",fingerprint:"spec-driven"}),e.guide==="on"&&i.push({key:"guide",text:"This person chose to be guided through their first change: at each step of it, from drafting to finishing, add one or two plain lines on what just happened and what comes next, as BuildKeel's tool results say. If they ask you to stop explaining, turn it off with the BuildKeel manage tool (action guide, guide off).",fingerprint:"on"});else if(e.stages){let n=(e.stageExamples??[]).map(s=>`\`${s}\``),o=n.length>1?`${n.slice(0,-1).join(", ")} or ${n.at(-1)}`:n[0]??"";i.push({key:"stages",text:`This spec tree's stages, as the team names them: ${e.stages}. Use these names with the user, in each command's help, questions and output; BuildKeel's tools accept them as types, and the usual names too.`+(o?` Examples of what to draft, in the team's words: ${o}; use these in place of a command's usual examples.`:""),fingerprint:`${e.stages}|${n.join(",")}`})}return i}var nw=25;function RT(e){let t=e.glossary??[],r=t.slice(0,nw).map(o=>`${o.term} (${o.definition}${o.avoid.length>0?`; not: ${o.avoid.join(", ")}`:""})`),i=t.slice(nw).map(o=>o.term);return{key:"terms",text:"Hold to precise words: when the user uses a term against the glossary, or against how the code uses it, say so and ask which meaning is meant, before anything else; when a term is vague or means two things, propose one precise term for each, with a concrete example at the boundary if it helps; once a term is settled, offer its glossary entry in full, saved with save_draft type glossary only once the user agrees."+(t.length>0?` The team's glossary: ${r.join("; ")}${i.length>0?`; and ${i.join(", ")} (query view glossary)`:""}.`:""),fingerprint:t.map(o=>`${o.term}:${o.definition}:${o.avoid.join(",")}`).join("|")}}var ZT=8e3;function iw(e,t){try{return lg(LT(e,"utf8").trimEnd(),t)}catch{return null}}function MT(e,t,r){return t.activeUnit?iw(j_(e),r):null}function Ya(e,t,r,i,n=[]){let o=rw(MT(e,t,r),t,r,i,n);if(o.length<=ZT||!t.activeUnit)return o;let s=iw(E_(e),r);return s?rw(s,t,r,i,n):o}function rw(e,t,r,i,n){let o=["BuildKeel:"];for(let s of _g(t,r)){let a=s.key==="unit"&&t.activeUnit?e?i?" Its context is loaded again below.":" Its context follows.":" BuildKeel has no context for it; call the BuildKeel get_context tool to see why.":"";o.push(`- ${s.text}${a}`)}return o.push(...n.map(s=>`- ${s}`)),e&&o.push("",e),o.join(`
208
+ `)}var ow=({event:e,codeRoot:t,cache:r,host:i})=>{if(e.kind!=="session-start")return null;let n=Ga(r),o=e.reason==="compact"?[Wa(t,n,i,e.conversation,e.transcript)]:e.reason==="resume"?[]:[wg(t,i),Ha(t,n,i,e.conversation),Sg(i)];return{context:Ya(t,n,i,e.reason==="compact",o.filter(s=>s!==null))}};function wg(e,t){try{return Y_(e,t)}catch{return null}}function Sg(e){try{return G_(B_(),e)}catch{return null}}var QT=(e,t)=>zi(e,t,"json"),aw=(e,t)=>zi(e,t,"notices");function cw(e,t,r){let i=aw(e,t);VT(XT(i,".."),{recursive:!0}),FT(i,`${JSON.stringify(r)}
209
+ `)}function uw(e,t){let r=aw(e,t),i=Z_(r),n;try{WT(r,i),n=JT(i,"utf8")}catch{return[]}finally{GT(i,{force:!0})}return n.split(`
210
+ `).filter(Boolean).flatMap(o=>{try{return[String(JSON.parse(o))]}catch{return[]}})}var lw=({event:e,codeRoot:t})=>{let r=e.kind==="after-edit"||e.kind==="after-shell"||e.kind==="after-tool"?e.collect:void 0;if(!r)return null;let i=uw(t,r);return i.length>0?{context:i.join(`
211
+
212
+ `)}:null},ej=e=>{let t=Qt(e);return t?.reported&&t.transcript?t:null},sw=Pi;function tj(e,t){let r;try{r=KT(Di(e),"r")}catch{return{ok:!1,offset:t,checkpoint:null}}try{let i=qT(r).size,n=i<t?0:t,o=Buffer.alloc(i-n),s=o.length>0?HT(r,o,0,o.length,n):0,a=o.subarray(0,s).lastIndexOf(10);if(a<0)return{ok:!0,offset:n,checkpoint:null};let c=!0,u=null;for(let l of o.subarray(0,a).toString("utf8").split(`
213
+ `))if(l.trim())try{let d=JSON.parse(l);typeof d.step_index!="number"||typeof d.type!="string"?c=!1:d.type==="CHECKPOINT"&&(u=Math.max(u??-1,d.step_index))}catch{c=!1}return{ok:c,offset:n+a+1,checkpoint:u}}catch{return{ok:!1,offset:t,checkpoint:null}}finally{BT(r)}}function nj(e){if(!e)return 0;try{return YT(Di(e)).size}catch{return 0}}var dw=e=>{if(e.event.kind!=="prompt")return null;let t=uw(e.codeRoot,e.event.conversation),i=[rj(e)?.context,...t].filter(Boolean).join(`
214
+
215
+ `);return i?{context:i}:null},rj=({event:e,codeRoot:t,cache:r,host:i})=>{if(e.kind!=="prompt")return null;let n=Ga(r),o=QT(t,e.conversation),s=_g(n,i),a=Object.fromEntries(s.map(p=>[p.key,p.fingerprint])),c=ej(o);if(!c){let p=new Date().toISOString(),g=Qt(o),m={...g,version:1,startedAt:g?.startedAt??p,conversation:e.conversation,...e.transcript?{transcriptPath:e.transcript}:{},lastSeen:p,activeUnit:n.activeUnit,reported:a,transcript:{offset:nj(e.transcript),checkpoint:null}};sw(o,m);let y=Ha(t,n,i,e.conversation),w=Sg(i),k=wg(t,i);return{context:Ya(t,n,i,!1,[k,y,w].filter(S=>S!==null))}}let u=e.transcript?tj(e.transcript,c.transcript.offset):{ok:!1,offset:c.transcript.offset,checkpoint:null},l=u.checkpoint!==null&&(c.transcript.checkpoint===null||u.checkpoint>c.transcript.checkpoint),d={...c,conversation:e.conversation,...e.transcript?{transcriptPath:e.transcript}:{},...e.newMessage?{lastSeen:new Date().toISOString(),activeUnit:n.activeUnit}:{},transcript:{offset:u.offset,checkpoint:l?u.checkpoint:c.transcript.checkpoint}},f=null;if(l){let p=Wa(t,n,i,e.conversation,e.transcript);f=Ya(t,n,i,!0,p?[p]:[]),d.reported=a}else if(e.newMessage){let p=s.filter(g=>g.key!=="behind"&&c.reported[g.key]!==g.fingerprint).map(g=>`- ${g.text}`);if(!u.ok&&n.activeUnit){let g=`- Active unit: ${n.activeUnit}. If its requirements and test cases are no longer in view, call the BuildKeel get_context tool.`,m=p.findIndex(y=>y.startsWith("- Active unit:"));m>=0?p[m]=`${p[m]} If its requirements and test cases are no longer in view, call the BuildKeel get_context tool.`:p.unshift(g)}p.length>0&&(f=["BuildKeel:",...p].join(`
216
+ `)),d.reported=a}return JSON.stringify(d)!==JSON.stringify(c)&&sw(o,d),f?{context:f}:null},fw=({event:e,codeRoot:t,cache:r})=>{if(e.kind==="message"&&e.conversation&&e.contextWindow){try{mg(t,e.conversation,null,new Date,void 0,e.contextWindow)}catch{}return null}if(e.kind!=="session-start"||!e.conversation)return null;try{e.reason==="compact"&&e.deferTo&&L_(t,e.conversation),mg(t,e.conversation,e.transcript??null,new Date,r.activeUnit,e.contextWindow??void 0)}catch{}return null};import{appendFileSync as mj,mkdirSync as gj}from"node:fs";import{dirname as hj,join as vj,resolve as yj}from"node:path";import{existsSync as ij,realpathSync as pw}from"node:fs";import{basename as bw,dirname as mw,isAbsolute as oj,join as sj,relative as kw,resolve as gw,sep as aj}from"node:path";var xg={versions:"the frozen copy",approvals:"an approval record",completions:"a completion record",repins:"a re-pin decision record",notes:"a record of working notes",pauses:"a pause record",runs:"a test-run summary","test-runs":"a test-run summary",executions:"an execution record",reviews:"a record of review findings",answers:"the answer to a review finding"},cj={glossary:"a version of a glossary entry",practices:"a version of a practice",adrs:"an architecture decision record",threads:"a record of a thread","code-notes":"a version of a note on the code",patterns:"a record of a declined pattern"},uj={"test-plan":"TP",design:"DD"},lj=()=>process.platform==="win32"||process.platform==="darwin",J=e=>lj()?e.toLowerCase():e;function It(e,t){let r=hw(e,t);if(r!==null)return r;try{let i=t;for(;!ij(i)&&mw(i)!==i;)i=mw(i);let n=sj(pw(i),kw(i,t));return hw(pw(e),n)}catch{return null}}var tn=(e,t)=>It(e,t);function hw(e,t){let r=kw(e,t);return r===""||r.startsWith("..")||oj(r)?null:r.split(aj).join("/")}var vw="Make the change you want through a new change, drafted with the BuildKeel save_draft tool (type change): finishing it writes the next versions.",dj="It is kept, read-only, as the history of how the system came to be before this spec tree moved to Full SDLC. Change behavior through the team's stages, as a new version of the artifact it became.";function yw(e,t){if(e.conversion!=="finished")return fj(e,t);if(J(t)===J("onboarding/conversion.yaml"))return`BuildKeel: ${t} records how this spec tree moved to Full SDLC, and where each scenario went. It was finished when the tree switched, and is never edited.`;let[r]=t.split("/").map(J);return r!==J("capabilities")&&r!==J("changes")?null:`BuildKeel: ${t} is part of the capability specs and changes this spec tree had before it moved to Full SDLC. ${dj}`}function fj(e,t){let r=t.split("/"),[i,,n]=r.map(J);if(i===J("capabilities")&&r.length>=3){let a=/^v(0|[1-9][0-9]*)\.(md|yaml)$/.exec(bw(t)),c=a?`${r[1]} v${a[1]}`:r[1]??"",u=a?.[2]==="yaml"?`the record of ${c}`:a?`${c}, a capability spec version`:`part of capability ${c}`;return`BuildKeel: ${t} is ${u}, written when a change was archived. Capability specs are never edited directly. ${vw}`}if(i!==J("changes")||r.length<3)return null;let o=ew((r[1]??"").toUpperCase()),s=o??r[1]??"";return r.length===3&&n===J("discarded.yaml")?`BuildKeel: ${t} is the discard record of ${s}. BuildKeel writes it once when a change is discarded, and it is never edited.`:r.length===3&&n===J("archive.yaml")?`BuildKeel: ${t} is the archive record of ${s}, written once when it was archived. It is never edited.`:r.length===4&&n!==void 0&&Object.hasOwn(xg,n)?`BuildKeel: ${t} is ${xg[n]} of ${s}. BuildKeel writes these records once and they are never edited, by hand or by the agent.`:o&&(e.archivedChanges??[]).some(a=>J(a)===J(o))?`BuildKeel: ${t} belongs to ${s}, which is archived: its files are its record and are never edited. ${vw}`:null}function Ti(e,t){let r=tn(e.specRoot,t);if(r===null)return null;if(/^defects\/[^/]+\/closed\.yaml$/.test(J(r)))return`BuildKeel: ${r} is the closing record of ${r.split("/")[1]}. BuildKeel writes it once when the defect is closed, and it is never edited. A defect that returns is a new defect.`;let i=cj[J(r.split("/")[0]??"")];return i&&r.includes("/")?`BuildKeel: ${r} is ${i}. BuildKeel writes these records through its tools, a new file for each change, and they are never edited, by hand or by the agent: save the change with the BuildKeel save_draft tool.`:e.mode==="spec-driven"?yw(e,r)??(e.conversion?$w(e,r):null):(e.conversion==="finished"?yw(e,r):null)??$w(e,r)}function $w(e,t){let r=t.split("/"),i=e.documents??uj,n=r.length>=4&&r[2]!==void 0&&Object.hasOwn(i,r[2])?i[r[2]]:void 0,o=n!==void 0,s=r[o?3:2],a=`${r[1]??""}${o?`-${n}`:""}`,c=o?5:4;if(s&&r.length===c&&e.lockedDirs.map(J).includes(J(s))){if(J(s)==="versions"){let d=/^v(0|[1-9][0-9]*)\.md$/.exec(bw(t))?.[1],f=d?`${a} v${d}`:a;return`BuildKeel: ${t} is the frozen copy of ${f}, which is approved and cannot be changed. To change ${a}, call the BuildKeel save_draft tool with id ${a} and the whole changed file: that opens the next version as a draft, and the approved version stays in force until the new one is approved.`}let l=xg[s.toLowerCase()]??"a record";return`BuildKeel: ${t} is ${l} of ${a}. BuildKeel writes these records once and they are never edited, by hand or by the agent.`+(J(s)==="approvals"?" To approve a new version, use the BuildKeel approve tool.":"")}if((e.lockedSources??[]).find(l=>J(t).startsWith(`${J(l)}/`))){let l=`${r[1]??""}${o?`-${n}`:""}`;return`BuildKeel: ${t} is a source kept with ${l} v0, frozen when version 0 was approved: sources stay exactly as they were read. To change what ${l} says, call the BuildKeel save_draft tool with id ${l} and the whole changed file: that opens its next version as a draft.`}return e.lockedFiles.some(l=>J(l)===J(t))?`BuildKeel: ${t} is the working file of ${a}, which is approved and has no new version open, so it is not edited directly. To change ${a}, call the BuildKeel save_draft tool with id ${a} and the whole changed file: that opens the next version as a draft, and the approved version stays in force until the new one is approved.`:null}function pj(e,t,r){let i=It(t,r);return i===null?null:(e.copy??[]).some(o=>o.endsWith("/")?J(i).startsWith(J(o)):J(i)===J(o))?`BuildKeel: ${i} is the read-only copy of the spec tree's glossary, practices or ADRs, which BuildKeel writes. Change the glossary, a practice or an ADR through BuildKeel (save_draft with type glossary, practice or adr), and the copy is written again.`:null}var _w=({event:e,cache:t,codeRoot:r})=>{if(e.kind!=="before-edit"&&e.kind!=="after-edit")return null;let i=t.lockMode??"block";if(!(i==="block"?e.kind==="before-edit":i==="warn"&&e.kind==="after-edit"))return null;let o=e.files.map(s=>Ti(t,gw(e.cwd,s))??pj(t,r,gw(e.cwd,s))).filter(s=>s!==null);return o.length===0?null:e.kind==="before-edit"?{block:[...new Set(o)].join(`
217
+
218
+ `)}:{context:o.map(s=>`BuildKeel: this tree's lock gate is set to warn, so the edit went ahead. ${s.replace(/^BuildKeel: /,"")} Validation and the status overview report the change. Tell the user, and undo it unless they asked for it.`).join(`
219
+
220
+ `)}};var Ig=(e,t)=>vj(pe(e),"journal",`${t}.jsonl`),ww=({event:e,codeRoot:t,cache:r})=>{if(e.kind!=="after-edit"||!r.activeUnit)return null;let i=new Date().toISOString(),n=[];for(let s of e.files){let a=yj(e.cwd,s);if(Ti(r,a)||tn(r.specRoot,a)!==null)continue;let c=It(t,a);if(c===null||c===xe||c.startsWith(`${xe}/`))continue;let u={at:i,tool:e.tool,file:c};n.push(JSON.stringify(u))}if(n.length===0)return null;let o=Ig(t,r.activeUnit);return gj(hj(o),{recursive:!0}),mj(o,`${n.join(`
221
+ `)}
222
+ `),null};var $j=/\bgit(?:\s+-{1,2}[^\s;&|]+(?:\s+(?!push\b)[^\s;&|-][^\s;&|]*)?)*\s+push\b|\bgh\s+pr\s+(?:create|merge)\b/,bj=e=>$j.test(e),Sw=({event:e,cache:t,host:r})=>{if(e.kind!=="before-shell"&&e.kind!=="after-shell"||!t.activeUnit||!bj(e.command))return null;let i=e.kind==="after-shell"?` The command \`${e.command}\` has run.`:" The command goes ahead.";return{context:`BuildKeel: ${Ja(t.activeUnit,t.activeTitle)} is not finished: tell the user to run ${H(r,"done")} before merging.${i}`}};import{mkdirSync as kj,writeFileSync as _j}from"node:fs";import{join as wj}from"node:path";var Sj="last-message",xw=({event:e,codeRoot:t})=>{if(!(e.kind==="message"||e.kind==="prompt"&&e.newMessage))return null;try{kj(pe(t),{recursive:!0}),_j(wj(pe(t),Sj),`${new Date().toISOString()}
223
+ `)}catch{}return null};var Iw=nt(We(),1);import{spawnSync as xj}from"node:child_process";import{existsSync as Ij,mkdirSync as Oj,readFileSync as Aj,writeFileSync as Nj}from"node:fs";import{join as Og,resolve as zj}from"node:path";var Ow=({event:e,codeRoot:t,cache:r,host:i})=>{if(e.kind!=="before-edit"||r.activeUnit||r.untrackedSince||Uj(t))return null;let n=e.files.flatMap(l=>{let d=zj(e.cwd,l);if(tn(r.specRoot,d)!==null)return[];let f=It(t,d);return f===null||f===xe||f.startsWith(`${xe}/`)?[]:[f]});if(n.length===0||r.merging&&n.every(l=>r.merging?.files.includes(l)))return null;let o=r.untrackedFiles?.paths??[],s=n.filter(l=>!o.some(d=>Tj(l,d)));if(s.length===0)return null;let a=Rj(r)==="warn";if(a&&e.conversation&&Ej(t,e.conversation))return null;let c=jj(t,s),u=s.filter(l=>!c.has(l));return u.length===0?null:a?(e.conversation&&Cj(t,e.conversation),{context:Dj(u,r,i)}):{block:Pj(u,r,i)}};function Aw(e,t,r=""){return`capture what you discussed, which the user starts by running ${H(t,"capture")} or by asking for it, turning it into ${e.mode==="spec-driven"?"a change to build":"the artifacts the team's process needs, to approve and then build"}; start the unit it belongs to with ${H(t,"build")} <ID>; ${r}record it as an ad-hoc unit, with a short title you propose (create it with the BuildKeel save_draft tool, type adhoc, then start it with start_work)`}function Pj(e,t,r){return`BuildKeel: there is no active unit in this working tree, so a change to ${e.join(", ")} would belong to no unit of work. Before changing it, ask the user how to go on, recommending the choice that fits: ${Aw(t,r)}; or go ahead without a unit, which only the user can choose, either for just these files (offer this first: call the BuildKeel manage tool with action untracked, scope files and files ${JSON.stringify(e)}, or the folders the user names) or for the whole working tree (action untracked, scope tree). Make the change once one of these is done.`}function Dj(e,t,r){return`BuildKeel: no unit is active in this working tree, so this change to ${e.join(", ")} belongs to no unit of work, and its commits will be listed by the status overview as having no unit. It goes ahead, as this person's code-edits setting is warn. Tell the user once, in a line, and offer to give the work a unit: ${Aw(t,r,"or ")}. This is said once in this conversation; later edits go ahead without it.`}function Tj(e,t){let r=t.replaceAll("\\","/").replace(/^\.\//,"").replace(/\/+$/,"");return r===""||r==="."||e===r||e.startsWith(`${r}/`)}function jj(e,t){try{let r=xj("git",["check-ignore","--stdin"],{cwd:e,input:`${t.join(`
224
+ `)}
225
+ `,encoding:"utf8",timeout:1e3,windowsHide:!0});return r.status!==0||r.error?new Set:new Set(r.stdout.split(/\r?\n/).filter(Boolean).map(i=>i.replaceAll("\\","/")))}catch{return new Set}}var Nw=(e,t)=>Og(pe(e),"conversations",`${t.replace(/[^A-Za-z0-9._-]/g,"_")}.no-unit-warned`);function Ej(e,t){return Ij(Nw(e,t))}function Cj(e,t){try{let r=Nw(e,t);Oj(Og(r,".."),{recursive:!0}),Nj(r,`${new Date().toISOString()}
226
+ `)}catch{}}var Uj=e=>{let t=e.replaceAll("\\","/").replace(/\/$/,"").split("/");return(t.at(-3)===xe||t.at(-3)==="buildkeel"&&t.at(-4)===".git")&&t.at(-2)==="worktrees"&&(t.at(-1)??"").startsWith(T_)},Lj="buildkeel.yaml";function Rj(e){let t;try{t=(0,Iw.parse)(Aj(Og(e.specRoot,Lj),"utf8"))?.process}catch{return e.codeEdits??en(e.mode,void 0).codeEdits.value}return en(e.mode,t).codeEdits.value}import{readFileSync as Zj}from"node:fs";import{resolve as Mj}from"node:path";function Ag(e,t){return t.some(r=>r.endsWith("/")?e.startsWith(r):e===r||e.startsWith(`${r}/`))}function Ng(e){let t=e.split("/"),r=t.at(-1)??"";return t.slice(0,-1).some(i=>["test","tests","__tests__","spec"].includes(i))||/[._-](test|spec)\.[^.]+$/.test(r)||/^test_.*\.py$/.test(r)}var zg=8;function Fj(e,t){try{let r=Zj(Ig(e,t),"utf8").split(`
227
+ `).filter(Boolean);return new Set(r.map(i=>JSON.parse(i).file))}catch{return new Set}}var zw=({event:e,codeRoot:t,cache:r})=>{if(e.kind!=="after-edit"||!r.activeUnit||r.scope.length===0)return null;let i=Fj(t,r.activeUnit),n=[];for(let a of e.files){let c=Mj(e.cwd,a);if(Ti(r,c)||tn(r.specRoot,c)!==null)continue;let u=It(t,c);u===null||u===xe||u.startsWith(`${xe}/`)||!Ag(u,r.scope)&&!Ng(u)&&!i.has(u)&&!n.includes(u)&&n.push(u)}if(n.length===0)return null;let o=r.activeUnit,s=r.scope.slice(0,zg).join(", ")+(r.scope.length>zg?`, and ${r.scope.length-zg} more`:"");return{context:`BuildKeel: ${n.join(", ")} ${n.length===1?"is":"are"} outside the areas ${o} relates to so far (${s}): its scope and its story's, and what its own work and the other work on its story changed. If the change belongs to ${o}, carry on and tell the user it widens what ${o} touches. If it belongs to other work, stop and ask the user which unit it belongs to.`}};var Pg=["implementer","spec-reviewer","quality-reviewer","final-spec-reviewer","final-quality-reviewer","break-it","readiness-readers","edge-cases","designers","note-checker"];var Pe="inherit",qj=["final-spec-reviewer","final-quality-reviewer"],Vj={standard:{"claude-code":{model:"sonnet",effort:"medium"},antigravity:{model:"flash",effort:Pe},pi:{model:Pe,effort:"medium"},codex:{model:Pe,effort:"medium"},cursor:{model:Pe,effort:Pe}},principal:{"claude-code":{model:"opus",effort:"high"},antigravity:{model:Pe,effort:Pe},pi:{model:Pe,effort:"high"},codex:{model:Pe,effort:"high"},cursor:{model:Pe,effort:Pe}}},NZ={exploring:!0,designOptions:{mode:"ask",designers:2},readiness:{mode:"ask",readers:1},edgeCases:"auto",buildReadyTasks:!0,planCheck:!0,spikes:!0,build:"fresh-agents",parallel:1,tdd:"reported",coverage:!0,mutation:null,reviews:{specCompliance:!0,codeQuality:!0,breakIt:!0,eachTask:!0},agents:{tiers:Vj,roles:Object.fromEntries(Pg.map(e=>[e,e==="implementer"?Pe:qj.includes(e)?"principal":"standard"])),handoff:{tier:"principal",after:2},teamSet:[]},threads:"ask",headsUp:!0,learningLoop:!0,testPaths:[]};var Le=j.union([j.enum(["on","off"]),j.boolean()],{error:"must be on or off"}).transform(e=>e===!0||e==="on"),Qa=j.union([j.enum(["off","ask","auto"]),j.literal(!1)],{error:"must be off, ask or auto"}).transform(e=>e===!1?"off":e),Xa=(e,t)=>{let r=t===void 0?`must be a whole number from ${e}`:`must be a whole number from ${e} to ${t}`,i=j.number({error:r}).int(r).min(e,r);return t===void 0?i:i.max(t,r)},Pw=(e,t)=>j.union([Qa.transform(r=>({mode:r,count:void 0})),j.strictObject({mode:Qa.optional(),[e]:t.optional()}).transform(r=>({mode:r.mode,count:r[e]}))],{error:`must be off, ask or auto, or { mode: off | ask | auto, ${e}: <a number> }`}),Kj=j.union([j.literal("off"),j.literal(!1),j.strictObject({command:j.string().min(1,"must not be empty")})],{error:`must be off, or { command: "<the command that runs the team's mutation tool>" }`}),Jj=j.strictObject({model:j.string().min(1).optional(),effort:j.string().min(1).optional()}),Hj=j.strictObject(Object.fromEntries(ug.map(e=>[e,Jj.optional()]))),Wj=j.strictObject({tier:j.string().min(1,"must name a tier, or none").optional(),after:Xa(1).optional()},{error:"must be { tier: <a tier, or none>, after: <failed fix rounds> }"}),Dw={exploring:{path:["planning","exploring"],schema:Le,applies:"both"},designOptions:{path:["planning","design-options"],schema:Pw("designers",Xa(1)),applies:"both"},readiness:{path:["planning","readiness"],schema:Pw("readers",Xa(1,3)),applies:"both"},edgeCases:{path:["planning","edge-cases"],schema:Qa,applies:"both"},buildReadyTasks:{path:["planning","build-ready-tasks"],schema:Le,applies:"both"},planCheck:{path:["planning","plan-check"],schema:Le,applies:"both"},spikes:{path:["planning","spikes"],schema:Le,applies:"both"},build:{path:["runs","build"],schema:j.enum(["fresh-agents","here"],{error:"must be fresh-agents or here"}),applies:"both"},parallel:{path:["runs","parallel"],schema:Xa(1),applies:"full-sdlc"},tdd:{path:["checks","tdd"],schema:j.union([j.enum(["reported","off"]),j.literal(!1)],{error:"must be reported or off"}).transform(e=>e===!1?"off":e),applies:"spec-driven"},coverage:{path:["checks","coverage"],schema:Le,applies:"both"},mutation:{path:["checks","mutation"],schema:Kj,applies:"both"},specCompliance:{path:["reviews","spec-compliance"],schema:Le,applies:"both"},codeQuality:{path:["reviews","code-quality"],schema:Le,applies:"both"},breakIt:{path:["reviews","break-it"],schema:Le,applies:"both"},eachTask:{path:["reviews","each-task"],schema:Le,applies:"both"},tiers:{path:["agents","tiers"],schema:j.record(j.string().regex(/^[a-z][a-z0-9-]*$/,"must be a lower-case name, such as fast"),Hj),applies:"both"},roles:{path:["agents","roles"],schema:j.record(j.string(),j.string().min(1)),applies:"both"},handoff:{path:["agents","handoff"],schema:Wj,applies:"both"},threads:{path:["continuity","threads"],schema:Qa,applies:"both"},headsUp:{path:["continuity","heads-up"],schema:Le,applies:"both"},learningLoop:{path:["continuity","learning-loop"],schema:Le,applies:"both"},testPaths:{path:["tests","paths"],schema:j.array(j.string().min(1,"must not be empty"),{error:"must be a list of file patterns"}),applies:"both"}},Gj={};for(let e of Object.values(Dw))(Gj[e.path[0]]??=[]).push(e.path[1]);var zZ=Object.keys(Dw);var PZ=j.string().min(1,"must not be empty").refine(e=>!/^([/\\]|[A-Za-z]:)/.test(e)&&!e.split(/[/\\]/).includes(".."),"must be a path inside the repository");var Tw=[{name:"implementer",role:"implementer",access:"edit",tools:["query","get_context","get_template","test_results","validate"]},{name:"spec-reviewer",role:"spec-reviewer",access:"read",tools:["query","get_context"]},{name:"quality-reviewer",role:"quality-reviewer",access:"read",tools:["query","get_context"]},{name:"final-spec-reviewer",role:"final-spec-reviewer",access:"read",tools:["query","get_context"]},{name:"final-quality-reviewer",role:"final-quality-reviewer",access:"read",tools:["query","get_context"]},{name:"break-it",role:"break-it",access:"worktree",tools:["query","get_context","test_results"]},{name:"readiness-reader",role:"readiness-readers",access:"read",tools:["query","get_context","get_template"]},{name:"edge-cases",role:"edge-cases",access:"read",tools:["query","get_context","get_template"]},{name:"designer",role:"designers",access:"read",tools:["query","get_context","get_template"]},{name:"note-checker",role:"note-checker",access:"read",tools:["query","get_context"]}];var Xj=new Set(["ls","cat","head","tail","wc","grep","egrep","fgrep","rg","find","diff","pwd","cd","echo","printf","sed","sort","nl","cut","tr","jq","tree","file","stat","du","which","basename","dirname","realpath","true"]),Qj=new Set(["diff","log","show","status","blame","grep","ls-files","ls-tree","rev-parse","describe","shortlog","cat-file","merge-base","name-rev","rev-list","branch","worktree","help","version"]);function eE(e){let t=[],r="",i=null,n=null,o=()=>{r.trim()&&t.push(r.trim()),r=""};for(let s=0;s<e.length;s+=1){let a=e[s]??"",c=e[s+1]??"";if(i==="'"){a==="'"&&(i=null),r+=a;continue}if(a==="\\"){r+=a+c,s+=1;continue}if((a==="$"&&c==="("||a==="`")&&(n??="it runs a command inside it"),i==='"'){a==='"'&&(i=null),r+=a;continue}if(a==="'"||a==='"'){i=a,r+=a;continue}if(a===">"){let u=e.slice(s+1).replace(/^>/,"").trimStart();/^(&[12]\b|\/dev\/null\b)/.test(u)||(n??="it writes into a file"),r+=a;continue}if(a===";"||a===`
228
+ `||a==="|"||a==="&"){if(a==="&"&&(e[s-1]===">"||c===">")){r+=a;continue}o(),(a==="|"||a==="&")&&c===a&&(s+=1);continue}r+=a}return o(),{commands:t,refused:n}}function tE(e){let t=[],r=/'([^']*)'|"((?:\\.|[^"\\])*)"|((?:\\.|[^\s'"])+)/g,i="",n=-1;for(let o of e.matchAll(r)){let s=o.index??0;n!==-1&&s>n&&(t.push(i),i=""),i+=o[1]??o[2]??(o[3]??"").replace(/\\(.)/g,"$1"),n=s+o[0].length}return n!==-1&&t.push(i),t}var nE=/^(-a|-r|-v|-vv|-l|--list|--all|--remotes|--show-current|--verbose|--no-color|--color(=.*)?|--(no-)?contains(=.*)?|--(no-)?merged(=.*)?|--format=.*|--sort=.*|--points-at(=.*)?)$/;function rE(e){let t=tE(e),r=0;for(;r<t.length&&/^[A-Za-z_][A-Za-z0-9_]*=/.test(t[r]??"");)r+=1;let[i="",...n]=t.slice(r);if(i==="")return null;let o=i.replace(/^.*\//,"");return o==="git"?iE(n):Xj.has(o)?o==="find"&&n.some(s=>/^-(exec|execdir|ok|okdir|delete|fprint|fprint0|fprintf|fls)$/.test(s))?"find with that action changes files or runs a command":o==="sed"&&n.some(s=>/^(-[a-zA-Z]*i|--in-place)/.test(s))?"sed -i changes the file":o==="sed"&&n.some(s=>/(^|[;}\s/])[wWe](\s|$)/.test(s))?"that sed script writes a file or runs a command":o==="sort"&&n.some(s=>/^(-[a-zA-Z]*o|--output)/.test(s))?"sort -o writes a file":null:`${o} is not one of the commands that only read`}function iE(e){let t=0;for(;t<e.length&&(e[t]??"").startsWith("-");){let n=e[t]??"";if(n==="-c"||n.startsWith("--config-env")||n.startsWith("--exec-path"))return"git -c can make git run a command";t+=n==="-C"||n==="--git-dir"||n==="--work-tree"?2:1}let r=e[t]??"",i=e.slice(t+1);return r===""?null:Qj.has(r)?i.some(n=>/^--(output|ext-diff|textconv)(=|$)/.test(n)||n==="--open-files-in-pager"||n==="-O")?`git ${r} with that option writes a file or runs a program`:r==="branch"&&!i.every(n=>nE.test(n))?"git branch only lists here":r==="worktree"&&i[0]!=="list"?"git worktree only lists here":null:`git ${r} is not one of git's commands that only read`}function jw(e){let{commands:t,refused:r}=eE(e);if(r)return{command:e.trim(),why:r};for(let i of t){let n=rE(i);if(n)return{command:i,why:n}}return null}var Dg=e=>Tw.find(t=>`bk-${t.name}`===e)??null;function oE(e,t){let r=Dg(e);return!r||r.tools.includes(t)?null:`This BuildKeel ${r.name} agent can't call ${t}: it calls only ${r.tools.join(", ")}`}var Ew=({event:e})=>{if(e.kind==="agent-tool"){let t=oE(e.agent,e.tool);return t?{block:t}:null}if(e.kind==="before-edit"&&e.agent){let t=Dg(e.agent);return!t||t.access!=="read"?null:{block:`This BuildKeel ${t.name} agent can't edit`}}if(e.kind==="before-shell"&&e.agent){let t=Dg(e.agent);if(!t||t.access!=="read")return null;let r=jw(e.command);return r?{block:`This BuildKeel ${t.name} agent only reads, so it can't run \`${r.command}\`: ${r.why}. Use the read tools, or commands that only read, such as git diff, git log, git show, ls, cat or grep`}:null}return null};function Cw(e,t,r="claude-code"){if(e.kind==="ignored")return{};let i=fE(e)??qa(e.cwd);if(!i)return e.kind==="session-start"&&e.reason==="startup"?lE(e.cwd,r):{};let n=C_(i);if(!n)return{};let o=t.map(c=>c({event:e,codeRoot:i,cache:n,host:r})).filter(c=>c!==null),s=o.find(c=>c.block)?.block,a=o.map(c=>c.context).filter(Boolean).join(`
229
+
230
+ `);return a&&(e.kind==="after-edit"||e.kind==="after-shell"||e.kind==="before-edit"||e.kind==="session-start")&&e.deferTo?(cw(i,e.deferTo,a),s?{block:s}:{}):{...s?{block:s}:{},...a?{context:a}:{}}}function lE(e,t){let r=dE(e),i=r?P_(r):null;return!r||!i?{}:{context:`BuildKeel is not set up in this clone, and the spec repository beside it, ${D_(r,i)}, registers this repository: the team keeps BuildKeel out of the repository, so each clone is pointed at it once. Offer once, in one line, to point this clone at it with ${H(t,"init")}: it keeps BuildKeel out of this clone too.`}}function dE(e){let t=uE(e);for(;;){if(sE(cE(t,".git")))return t;let r=aE(t);if(r===t)return null;t=r}}function fE(e){if(e.kind!=="before-edit"&&e.kind!=="after-edit")return null;let t=e.files[0],r=t?/^(.*[\\/](?:\.buildkeel|\.git[\\/]buildkeel)[\\/]worktrees[\\/][^\\/]+)[\\/]/.exec(t)?.[1]:void 0;return r?qa(r):null}var Uw=[lw,Ew,_w,Ow,zw,ww,fw,ow,dw,Sw,xw];import{basename as tF,dirname as nF,isAbsolute as rF,join as DE,relative as iF,sep as oF}from"node:path";import{homedir as pE}from"node:os";import{isAbsolute as aM,join as mE,resolve as gE}from"node:path";var Lw=nt(We(),1);function Tg(e=process.env){return e.BUILDKEEL_HOME?gE(e.BUILDKEEL_HOME):mE(pE(),".buildkeel")}var dM=j.object({specs:j.record(j.string(),j.string().min(1)).default({}),repos:j.record(j.string(),j.string().min(1)).default({})});import{mkdirSync as _E,readFileSync as NM,writeFileSync as wE}from"node:fs";import{dirname as SE,join as xE}from"node:path";var bE=nt(We(),1);var kE=[...Pg,"handoff"];var IE=(e,t=_e())=>xE(t,"models",`${e}.json`);function Rw(e,t,r=_e(),i=new Date){let n=IE(e,r);_E(SE(n),{recursive:!0}),wE(n,`${JSON.stringify({at:i.toISOString(),models:[...new Set(t)].sort()},null,2)}
231
+ `)}var Zw=(e,t=_e(),r=new Date)=>Rw("pi",e,t,r);var OE=["Write","Delete"],AE="Shell",NE=[...OE,AE].join("|");var zE="bk",PE="buildkeel",Mw=`plugin-${zE}-${PE}`,BM=`Mcp(${Mw}:*)`;var Fw=(e=process.env)=>DE(Tg(e),"pi-agents");var Ci=CE(UE(import.meta.url)),jg="BUILDKEEL_PI_AGENT";function LE(e){return e?{exposure:"direct"}:{exposure:"direct",toolExposure:{manage:"deferred",save_draft:"deferred"}}}function RE(e){let t=process.platform==="win32"?Ei(Ci,"bin","bk-launch.cmd"):Ei(Ci,"bin","bk-launch");try{e.registerMcpServer("buildkeel",{command:t,args:["server","--host","pi","--root",process.cwd()],...LE(!!process.env[jg]),description:"BuildKeel: the spec tree, units of work, approvals and the record"})}catch{}ZE(e),e.registerTool(FE()),e.registerTool(BE())}function ji(e,t,r){try{let i=w_.parse(e,[]);return Cw(i,Uw,"pi")}catch(i){return!r.said&&t.hasUI&&t.ui.notify(`BuildKeel's check failed, so the action went ahead: ${i instanceof Error?i.message:String(i)}`,"warning"),r.said=!0,{}}}function ZE(e){let t={said:!1},r=[],i=new Map,n=s=>({cwd:s.cwd,session:s.sessionManager.getSessionId(),sessionFile:s.sessionManager.getSessionFile()??null,contextWindow:s.model?.contextWindow??null}),o=!!process.env[jg];e.on("session_start",(s,a)=>{if(a.hasUI||e.setActiveTools(e.getActiveTools().filter(u=>u!=="bk_ask")),o){e.setActiveTools(e.getActiveTools().filter(u=>u!=="bk_agent"));return}ME(a);let c=ji({...n(a),event:"session_start",reason:typeof s.reason=="string"?s.reason:"startup"},a,t);c.context&&r.push(c.context)}),e.on("session_compact",(s,a)=>{if(o)return;let c=ji({...n(a),event:"session_compact"},a,t);c.context&&r.push(c.context)}),e.on("input",(s,a)=>(!o&&s.source!=="extension"&&ji({...n(a),event:"input"},a,t),{action:"continue"})),e.on("before_agent_start",s=>{let a=s.systemPromptOptions;if(a?.sections&&(a.sections.buildkeel=__(Ei(Ci,"prompts"))),r.length===0)return;let c=r.join(`
232
+
233
+ `);return r=[],{message:{customType:"buildkeel",content:c,display:!1}}}),e.on("tool_call",(s,a)=>{let c=ji({...n(a),event:"tool_call",toolName:String(s.toolName),input:s.input??{}},a,t);if(c.block)return{block:!0,reason:c.block};c.context&&i.set(String(s.toolCallId),[c.context])}),e.on("tool_result",(s,a)=>{let c=String(s.toolCallId),u=i.get(c)??[];i.delete(c);let l=ji({...n(a),event:"tool_result",toolName:String(s.toolName),input:s.input??{},isError:s.isError===!0},a,t);return l.context&&u.push(l.context),u.length===0?void 0:{content:[...Array.isArray(s.content)?s.content:[],{type:"text",text:`
234
+ [BuildKeel]
235
+ ${u.join(`
236
+
237
+ `)}`}]}})}function ME(e){try{let t=e.scopedModels?.map(n=>`${n.model.provider}/${n.model.id}`)??[],r=e.modelRegistry?.getAvailable().map(n=>`${n.provider}/${n.id}`)??[],i=t.length>0?t:r;i.length>0&&Zw(i)}catch{}}var Ot=(e,t=!1)=>({content:[{type:"text",text:e}],...t?{isError:t}:{}});function FE(){return{name:"bk_ask",label:"Ask",description:"Ask the user one question with choices, and get their answer. Put the recommended choice first: Enter takes it. The user can also answer in their own words. Use it for quick choices; show anything the user needs to read in your reply first.",promptSnippet:"Ask the user one question with choices",parameters:{type:"object",properties:{question:{type:"string",description:"The question, complete on its own."},choices:{type:"array",minItems:2,description:"The choices, the recommended one first. Two to four, or more for a pick from a list, such as models.",items:{type:"object",properties:{label:{type:"string"},description:{type:"string"}},required:["label"]}}},required:["question","choices"]},async execute(e,t,r,i,n){if(!n.hasUI)return Ot("There is no screen to ask on: ask the user in plain text instead.",!0);let o=t.choices??[],s="Other\u2026",a=o.map(u=>u.description?`${u.label} \u2014 ${u.description}`:u.label),c=await n.ui.select(String(t.question),[...a,s]);if(c===void 0)return Ot("The user dismissed the question without answering.");if(c===s){let u=await n.ui.input(String(t.question));return u===void 0||u.trim()===""?Ot("The user dismissed the question without answering."):Ot(`The user answered in their own words: ${u}`)}return Ot(`The user chose: ${o[a.indexOf(c)]?.label??c}`)}}}function Bw(){return JSON.parse(EE(Ei(Ci,"agents","index.json"),"utf8"))}function BE(){return{name:"bk_agent",label:"BuildKeel agent",description:"Start one of BuildKeel's agents, by the name BuildKeel's settings view gives (such as bk-spec-reviewer), with its task, and get its report and its ID. Pass the model and thinking level the settings view gives, if any. Several started in one reply run at the same time.",promptSnippet:"Start one of BuildKeel's agents",parameters:{type:"object",properties:{agent:{type:"string",description:"The agent's name, such as bk-spec-reviewer."},task:{type:"string",description:"Everything the agent is given: its task and the folder or view it works from."},model:{type:"string",description:"provider/model, when the settings view gives one; otherwise the session's model."},thinking:{type:"string",description:"The thinking level, when the settings view gives one; otherwise the session's."},folder:{type:"string",description:"The folder it works in, such as break-it's worktree; otherwise the session's folder."}},required:["agent","task"]},async execute(e,t,r,i,n){let o=String(t.agent),s=Bw()[o];if(!s)return Ot(`BuildKeel has no agent named ${o}. Its agents are ${Object.keys(Bw()).join(", ")}.`,!0);let a=typeof t.model=="string"&&t.model?t.model:n.model?`${n.model.provider}/${n.model.id}`:null,c=typeof t.thinking=="string"&&t.thinking?t.thinking:n.thinkingLevel??null,u=jE(),l=["--mode","json","-p","--session-dir",Fw(),"--session-id",u,"--append-system-prompt",Ei(Ci,"agents",s.file),"--tools",s.tools.join(","),...a?["--model",c?`${a}:${c}`:a]:c?["--thinking",c]:[],String(t.task)],d=await VE(l,typeof t.folder=="string"&&t.folder?t.folder:n.cwd,r??n.signal);return d.ok?Ot(`${d.report}
238
+
239
+ Agent ID: ${u}`):Ot(`${o} failed: ${d.error}. Agent ID: ${u}`,!0)}}}function qE(){let e=process.argv[1];return e&&/\.(c?m?js|ts)$|[\\/]pi$/.test(e)?{command:process.execPath,prefix:[e]}:{command:process.execPath,prefix:[]}}function VE(e,t,r,i=qE()){let{command:n,prefix:o}=i;return new Promise(s=>{let a=TE(n,[...o,...e],{cwd:t,stdio:["ignore","pipe","pipe"],env:{...process.env,[jg]:"1"}}),c="",u="";a.stdout.on("data",d=>c+=d.toString("utf8")),a.stderr.on("data",d=>u+=d.toString("utf8"));let l=()=>a.kill();r?.addEventListener("abort",l,{once:!0}),a.on("error",d=>s({ok:!1,error:d.message})),a.on("close",d=>{if(r?.removeEventListener("abort",l),r?.aborted)return s({ok:!1,error:"stopped"});let f=null;for(let g of c.split(`
240
+ `))if(g.trim())try{let m=JSON.parse(g);m.type==="message_end"&&m.message?.role==="assistant"&&(f=m.message)}catch{}let p=f?.content?.filter(g=>g.type==="text").map(g=>g.text??"").join("").trim()??"";if(d!==0||!f||f.stopReason==="error"||f.stopReason==="aborted")return s({ok:!1,error:f?.errorMessage??(u.trim().split(`
241
+ `).at(-1)||`the run ended with code ${d}`)});s({ok:!0,report:p||"(the agent gave no report)"})})})}export{BE as agentTool,FE as askTool,RE as default,qE as piCommandLine,VE as runAgent,LE as toolExposure};