@kyun.si/codex-hongguo 0.0.0-stage → 0.0.21

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 (136) hide show
  1. package/.codex-plugin/plugin.json +19 -0
  2. package/.mcp.json +11 -0
  3. package/LICENSE +21 -0
  4. package/README.en.md +131 -0
  5. package/README.md +129 -2
  6. package/bin/codex-hongguo.mjs +3 -0
  7. package/bin/run-node +29 -0
  8. package/bin/run-node.exe +0 -0
  9. package/dist/cli/main.mjs +8 -0
  10. package/dist/hooks/write.mjs +46 -0
  11. package/dist/server/index.mjs +147 -0
  12. package/dist/setup/check.mjs +47 -0
  13. package/dist/ui/player.html +2067 -0
  14. package/dist/vendor/openhongguo/GO_LICENSE +27 -0
  15. package/dist/vendor/openhongguo/LICENSE +202 -0
  16. package/dist/vendor/openhongguo/README.md +283 -0
  17. package/dist/vendor/openhongguo/dist/openhongguo.wasm +0 -0
  18. package/dist/vendor/openhongguo/dist/wasm_exec.js +575 -0
  19. package/dist/vendor/openhongguo/index.d.ts +212 -0
  20. package/dist/vendor/openhongguo/index.js +297 -0
  21. package/dist/vendor/openhongguo/package.json +46 -0
  22. package/dist/vendor/openhongguo/types.d.ts +887 -0
  23. package/docs/images/codex-hongguo-catalog.png +0 -0
  24. package/docs/images/codex-hongguo-player.png +0 -0
  25. package/hooks/hooks.json +40 -0
  26. package/licenses/@babel-runtime-LICENSE +22 -0
  27. package/licenses/@hono-node-server-LICENSE +21 -0
  28. package/licenses/@modelcontextprotocol-ext-apps-LICENSE +216 -0
  29. package/licenses/@modelcontextprotocol-sdk-LICENSE +21 -0
  30. package/licenses/@standard-schema-spec-LICENSE +21 -0
  31. package/licenses/@videojs-vhs-utils-LICENSE +19 -0
  32. package/licenses/@xmldom-xmldom-LICENSE +8 -0
  33. package/licenses/PROJECT-NOTICE.txt +1 -0
  34. package/licenses/accepts-LICENSE +23 -0
  35. package/licenses/ajv-LICENSE +22 -0
  36. package/licenses/ajv-formats-LICENSE +21 -0
  37. package/licenses/body-parser-LICENSE +23 -0
  38. package/licenses/body-parser-content-type-LICENSE +22 -0
  39. package/licenses/bytes-LICENSE +23 -0
  40. package/licenses/call-bind-apply-helpers-LICENSE +21 -0
  41. package/licenses/call-bound-LICENSE +21 -0
  42. package/licenses/content-disposition-LICENSE +22 -0
  43. package/licenses/content-type-LICENSE +22 -0
  44. package/licenses/cookie-LICENSE +24 -0
  45. package/licenses/cookie-signature-LICENSE +22 -0
  46. package/licenses/cors-LICENSE +22 -0
  47. package/licenses/cross-spawn-LICENSE +21 -0
  48. package/licenses/debug-LICENSE +20 -0
  49. package/licenses/depd-LICENSE +22 -0
  50. package/licenses/dom-walk-LICENCE +19 -0
  51. package/licenses/dunder-proto-LICENSE +21 -0
  52. package/licenses/ee-first-LICENSE +22 -0
  53. package/licenses/encodeurl-LICENSE +22 -0
  54. package/licenses/es-define-property-LICENSE +21 -0
  55. package/licenses/es-errors-LICENSE +21 -0
  56. package/licenses/es-object-atoms-LICENSE +21 -0
  57. package/licenses/escape-html-LICENSE +24 -0
  58. package/licenses/etag-LICENSE +22 -0
  59. package/licenses/eventsource-LICENSE +22 -0
  60. package/licenses/eventsource-parser-LICENSE +21 -0
  61. package/licenses/express-LICENSE +24 -0
  62. package/licenses/express-content-type-LICENSE +22 -0
  63. package/licenses/express-rate-limit-license +21 -0
  64. package/licenses/fast-deep-equal-LICENSE +21 -0
  65. package/licenses/fast-uri-LICENSE +30 -0
  66. package/licenses/finalhandler-LICENSE +22 -0
  67. package/licenses/forwarded-LICENSE +22 -0
  68. package/licenses/fresh-LICENSE +23 -0
  69. package/licenses/function-bind-LICENSE +20 -0
  70. package/licenses/get-intrinsic-LICENSE +21 -0
  71. package/licenses/get-proto-LICENSE +21 -0
  72. package/licenses/global-LICENSE +19 -0
  73. package/licenses/gopd-LICENSE +21 -0
  74. package/licenses/has-symbols-LICENSE +21 -0
  75. package/licenses/hasown-LICENSE +21 -0
  76. package/licenses/hls.js-LICENSE +28 -0
  77. package/licenses/hono-LICENSE +21 -0
  78. package/licenses/http-errors-LICENSE +23 -0
  79. package/licenses/iconv-lite-LICENSE +21 -0
  80. package/licenses/inherits-LICENSE +16 -0
  81. package/licenses/ip-address-LICENSE +19 -0
  82. package/licenses/ipaddr.js-LICENSE +19 -0
  83. package/licenses/is-promise-LICENSE +19 -0
  84. package/licenses/isexe-LICENSE +15 -0
  85. package/licenses/jose-LICENSE.md +21 -0
  86. package/licenses/json-schema-traverse-LICENSE +21 -0
  87. package/licenses/json-schema-typed-LICENSE.md +57 -0
  88. package/licenses/m3u8-parser-LICENSE +13 -0
  89. package/licenses/math-intrinsics-LICENSE +21 -0
  90. package/licenses/media-typer-LICENSE +22 -0
  91. package/licenses/merge-descriptors-license +11 -0
  92. package/licenses/mime-db-LICENSE +23 -0
  93. package/licenses/mime-types-LICENSE +23 -0
  94. package/licenses/min-document-LICENCE +19 -0
  95. package/licenses/mpd-parser-LICENSE +13 -0
  96. package/licenses/ms-license.md +21 -0
  97. package/licenses/negotiator-LICENSE +24 -0
  98. package/licenses/negotiator-content-type-LICENSE +22 -0
  99. package/licenses/object-assign-license +21 -0
  100. package/licenses/object-inspect-LICENSE +21 -0
  101. package/licenses/on-finished-LICENSE +23 -0
  102. package/licenses/once-LICENSE +15 -0
  103. package/licenses/openhongguo-LICENSE +202 -0
  104. package/licenses/parseurl-LICENSE +24 -0
  105. package/licenses/path-key-license +9 -0
  106. package/licenses/path-to-regexp-LICENSE +21 -0
  107. package/licenses/pkce-challenge-LICENSE +21 -0
  108. package/licenses/process-LICENSE +22 -0
  109. package/licenses/proxy-addr-LICENSE +22 -0
  110. package/licenses/qs-LICENSE.md +29 -0
  111. package/licenses/range-parser-LICENSE +23 -0
  112. package/licenses/raw-body-LICENSE +22 -0
  113. package/licenses/require-from-string-license +21 -0
  114. package/licenses/router-LICENSE +23 -0
  115. package/licenses/safer-buffer-LICENSE +21 -0
  116. package/licenses/send-LICENSE +23 -0
  117. package/licenses/serve-static-LICENSE +25 -0
  118. package/licenses/setprototypeof-LICENSE +13 -0
  119. package/licenses/shebang-command-license +9 -0
  120. package/licenses/shebang-regex-license +9 -0
  121. package/licenses/side-channel-LICENSE +21 -0
  122. package/licenses/side-channel-list-LICENSE +21 -0
  123. package/licenses/side-channel-map-LICENSE +21 -0
  124. package/licenses/side-channel-weakmap-LICENSE +21 -0
  125. package/licenses/statuses-LICENSE +23 -0
  126. package/licenses/toidentifier-LICENSE +21 -0
  127. package/licenses/type-is-LICENSE +23 -0
  128. package/licenses/type-is-content-type-LICENSE +22 -0
  129. package/licenses/unpipe-LICENSE +22 -0
  130. package/licenses/vary-LICENSE +22 -0
  131. package/licenses/which-LICENSE +15 -0
  132. package/licenses/wrappy-LICENSE +15 -0
  133. package/licenses/zod-LICENSE +21 -0
  134. package/licenses/zod-to-json-schema-LICENSE +15 -0
  135. package/package.json +37 -4
  136. package/skills/hongguo-setup/SKILL.md +16 -0
@@ -0,0 +1,147 @@
1
+ import {createRequire as __cr} from 'node:module';const require=__cr(import.meta.url);
2
+ var GA=Object.create;var pm=Object.defineProperty;var JA=Object.getOwnPropertyDescriptor;var XA=Object.getOwnPropertyNames;var KA=Object.getPrototypeOf,WA=Object.prototype.hasOwnProperty;var Jr=(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 E=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},Tr=(e,t)=>{for(var r in t)pm(e,r,{get:t[r],enumerable:!0})},YA=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of XA(t))!WA.call(e,n)&&n!==r&&pm(e,n,{get:()=>t[n],enumerable:!(i=JA(t,n))||i.enumerable});return e};var ga=(e,t,r)=>(r=e!=null?GA(KA(e)):{},YA(t||!e||!e.__esModule?pm(r,"default",{value:e,enumerable:!0}):r,e));var nu=E(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.regexpCode=ge.getEsmExportName=ge.getProperty=ge.safeStringify=ge.stringify=ge.strConcat=ge.addCodeArg=ge.str=ge._=ge.nil=ge._Code=ge.Name=ge.IDENTIFIER=ge._CodeOrName=void 0;var tu=class{};ge._CodeOrName=tu;ge.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Yn=class extends tu{constructor(t){if(super(),!ge.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};ge.Name=Yn;var Jt=class extends tu{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,i)=>`${r}${i}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,i)=>(i instanceof Yn&&(r[i.str]=(r[i.str]||0)+1),r),{})}};ge._Code=Jt;ge.nil=new Jt("");function Bk(e,...t){let r=[e[0]],i=0;for(;i<t.length;)jy(r,t[i]),r.push(e[++i]);return new Jt(r)}ge._=Bk;var Ry=new Jt("+");function Hk(e,...t){let r=[ru(e[0])],i=0;for(;i<t.length;)r.push(Ry),jy(r,t[i]),r.push(Ry,ru(e[++i]));return RR(r),new Jt(r)}ge.str=Hk;function jy(e,t){t instanceof Jt?e.push(...t._items):t instanceof Yn?e.push(t):e.push(MR(t))}ge.addCodeArg=jy;function RR(e){let t=1;for(;t<e.length-1;){if(e[t]===Ry){let r=jR(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function jR(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Yn||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof Yn))return`"${e}${t.slice(1)}`}function UR(e,t){return t.emptyStr()?e:e.emptyStr()?t:Hk`${e}${t}`}ge.strConcat=UR;function MR(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ru(Array.isArray(e)?e.join(","):e)}function LR(e){return new Jt(ru(e))}ge.stringify=LR;function ru(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}ge.safeStringify=ru;function ZR(e){return typeof e=="string"&&ge.IDENTIFIER.test(e)?new Jt(`.${e}`):Bk`[${e}]`}ge.getProperty=ZR;function FR(e){if(typeof e=="string"&&ge.IDENTIFIER.test(e))return new Jt(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}ge.getEsmExportName=FR;function qR(e){return new Jt(e.toString())}ge.regexpCode=qR});var Ly=E(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.ValueScope=kt.ValueScopeName=kt.Scope=kt.varKinds=kt.UsedValueState=void 0;var St=nu(),Uy=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},qf;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(qf||(kt.UsedValueState=qf={}));kt.varKinds={const:new St.Name("const"),let:new St.Name("let"),var:new St.Name("var")};var Vf=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof St.Name?t:this.name(t)}name(t){return new St.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,i;if(!((i=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||i===void 0)&&i.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};kt.Scope=Vf;var Bf=class extends St.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:i}){this.value=t,this.scopePath=(0,St._)`.${new St.Name(r)}[${i}]`}};kt.ValueScopeName=Bf;var VR=(0,St._)`\n`,My=class extends Vf{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?VR:St.nil}}get(){return this._scope}name(t){return new Bf(t,this._newName(t))}value(t,r){var i;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let n=this.toName(t),{prefix:o}=n,a=(i=r.key)!==null&&i!==void 0?i:r.ref,s=this._values[o];if(s){let l=s.get(a);if(l)return l}else s=this._values[o]=new Map;s.set(a,n);let u=this._scope[o]||(this._scope[o]=[]),c=u.length;return u[c]=r.ref,n.setValue(r,{property:o,itemIndex:c}),n}getValue(t,r){let i=this._values[t];if(i)return i.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,i=>{if(i.scopePath===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return(0,St._)`${t}${i.scopePath}`})}scopeCode(t=this._values,r,i){return this._reduceValues(t,n=>{if(n.value===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return n.value.code},r,i)}_reduceValues(t,r,i={},n){let o=St.nil;for(let a in t){let s=t[a];if(!s)continue;let u=i[a]=i[a]||new Map;s.forEach(c=>{if(u.has(c))return;u.set(c,qf.Started);let l=r(c);if(l){let d=this.opts.es5?kt.varKinds.var:kt.varKinds.const;o=(0,St._)`${o}${d} ${c} = ${l};${this.opts._n}`}else if(l=n?.(c))o=(0,St._)`${o}${l}${this.opts._n}`;else throw new Uy(c);u.set(c,qf.Completed)})}return o}};kt.ValueScope=My});var te=E(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.or=ie.and=ie.not=ie.CodeGen=ie.operators=ie.varKinds=ie.ValueScopeName=ie.ValueScope=ie.Scope=ie.Name=ie.regexpCode=ie.stringify=ie.getProperty=ie.nil=ie.strConcat=ie.str=ie._=void 0;var le=nu(),ar=Ly(),vn=nu();Object.defineProperty(ie,"_",{enumerable:!0,get:function(){return vn._}});Object.defineProperty(ie,"str",{enumerable:!0,get:function(){return vn.str}});Object.defineProperty(ie,"strConcat",{enumerable:!0,get:function(){return vn.strConcat}});Object.defineProperty(ie,"nil",{enumerable:!0,get:function(){return vn.nil}});Object.defineProperty(ie,"getProperty",{enumerable:!0,get:function(){return vn.getProperty}});Object.defineProperty(ie,"stringify",{enumerable:!0,get:function(){return vn.stringify}});Object.defineProperty(ie,"regexpCode",{enumerable:!0,get:function(){return vn.regexpCode}});Object.defineProperty(ie,"Name",{enumerable:!0,get:function(){return vn.Name}});var Xf=Ly();Object.defineProperty(ie,"Scope",{enumerable:!0,get:function(){return Xf.Scope}});Object.defineProperty(ie,"ValueScope",{enumerable:!0,get:function(){return Xf.ValueScope}});Object.defineProperty(ie,"ValueScopeName",{enumerable:!0,get:function(){return Xf.ValueScopeName}});Object.defineProperty(ie,"varKinds",{enumerable:!0,get:function(){return Xf.varKinds}});ie.operators={GT:new le._Code(">"),GTE:new le._Code(">="),LT:new le._Code("<"),LTE:new le._Code("<="),EQ:new le._Code("==="),NEQ:new le._Code("!=="),NOT:new le._Code("!"),OR:new le._Code("||"),AND:new le._Code("&&"),ADD:new le._Code("+")};var jr=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},Zy=class extends jr{constructor(t,r,i){super(),this.varKind=t,this.name=r,this.rhs=i}render({es5:t,_n:r}){let i=t?ar.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${i} ${this.name}${n};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=Po(this.rhs,t,r)),this}get names(){return this.rhs instanceof le._CodeOrName?this.rhs.names:{}}},Hf=class extends jr{constructor(t,r,i){super(),this.lhs=t,this.rhs=r,this.sideEffects=i}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof le.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Po(this.rhs,t,r),this}get names(){let t=this.lhs instanceof le.Name?{}:{...this.lhs.names};return Jf(t,this.rhs)}},Fy=class extends Hf{constructor(t,r,i,n){super(t,i,n),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},qy=class extends jr{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},Vy=class extends jr{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},By=class extends jr{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},Hy=class extends jr{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=Po(this.code,t,r),this}get names(){return this.code instanceof le._CodeOrName?this.code.names:{}}},iu=class extends jr{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,i)=>r+i.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let i=t[r].optimizeNodes();Array.isArray(i)?t.splice(r,1,...i):i?t[r]=i:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:i}=this,n=i.length;for(;n--;){let o=i[n];o.optimizeNames(t,r)||(BR(t,o.names),i.splice(n,1))}return i.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>ti(t,r.names),{})}},Ur=class extends iu{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Gy=class extends iu{},zo=class extends Ur{};zo.kind="else";var Qn=class e extends Ur{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let i=r.optimizeNodes();r=this.else=Array.isArray(i)?new zo(i):i}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(Gk(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var i;if(this.else=(i=this.else)===null||i===void 0?void 0:i.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=Po(this.condition,t,r),this}get names(){let t=super.names;return Jf(t,this.condition),this.else&&ti(t,this.else.names),t}};Qn.kind="if";var ei=class extends Ur{};ei.kind="for";var Jy=class extends ei{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=Po(this.iteration,t,r),this}get names(){return ti(super.names,this.iteration.names)}},Xy=class extends ei{constructor(t,r,i,n){super(),this.varKind=t,this.name=r,this.from=i,this.to=n}render(t){let r=t.es5?ar.varKinds.var:this.varKind,{name:i,from:n,to:o}=this;return`for(${r} ${i}=${n}; ${i}<${o}; ${i}++)`+super.render(t)}get names(){let t=Jf(super.names,this.from);return Jf(t,this.to)}},Gf=class extends ei{constructor(t,r,i,n){super(),this.loop=t,this.varKind=r,this.name=i,this.iterable=n}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=Po(this.iterable,t,r),this}get names(){return ti(super.names,this.iterable.names)}},ou=class extends Ur{constructor(t,r,i){super(),this.name=t,this.args=r,this.async=i}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};ou.kind="func";var au=class extends iu{render(t){return"return "+super.render(t)}};au.kind="return";var Ky=class extends Ur{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var i,n;return super.optimizeNames(t,r),(i=this.catch)===null||i===void 0||i.optimizeNames(t,r),(n=this.finally)===null||n===void 0||n.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&ti(t,this.catch.names),this.finally&&ti(t,this.finally.names),t}},su=class extends Ur{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};su.kind="catch";var uu=class extends Ur{render(t){return"finally"+super.render(t)}};uu.kind="finally";var Wy=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
3
+ `:""},this._extScope=t,this._scope=new ar.Scope({parent:t}),this._nodes=[new Gy]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let i=this._extScope.value(t,r);return(this._values[i.prefix]||(this._values[i.prefix]=new Set)).add(i),i}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,i,n){let o=this._scope.toName(r);return i!==void 0&&n&&(this._constants[o.str]=i),this._leafNode(new Zy(t,o,i)),o}const(t,r,i){return this._def(ar.varKinds.const,t,r,i)}let(t,r,i){return this._def(ar.varKinds.let,t,r,i)}var(t,r,i){return this._def(ar.varKinds.var,t,r,i)}assign(t,r,i){return this._leafNode(new Hf(t,r,i))}add(t,r){return this._leafNode(new Fy(t,ie.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==le.nil&&this._leafNode(new Hy(t)),this}object(...t){let r=["{"];for(let[i,n]of t)r.length>1&&r.push(","),r.push(i),(i!==n||this.opts.es5)&&(r.push(":"),(0,le.addCodeArg)(r,n));return r.push("}"),new le._Code(r)}if(t,r,i){if(this._blockNode(new Qn(t)),r&&i)this.code(r).else().code(i).endIf();else if(r)this.code(r).endIf();else if(i)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new Qn(t))}else(){return this._elseNode(new zo)}endIf(){return this._endBlockNode(Qn,zo)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Jy(t),r)}forRange(t,r,i,n,o=this.opts.es5?ar.varKinds.var:ar.varKinds.let){let a=this._scope.toName(t);return this._for(new Xy(o,a,r,i),()=>n(a))}forOf(t,r,i,n=ar.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let a=r instanceof le.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,le._)`${a}.length`,s=>{this.var(o,(0,le._)`${a}[${s}]`),i(o)})}return this._for(new Gf("of",n,o,r),()=>i(o))}forIn(t,r,i,n=this.opts.es5?ar.varKinds.var:ar.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,le._)`Object.keys(${r})`,i);let o=this._scope.toName(t);return this._for(new Gf("in",n,o,r),()=>i(o))}endFor(){return this._endBlockNode(ei)}label(t){return this._leafNode(new qy(t))}break(t){return this._leafNode(new Vy(t))}return(t){let r=new au;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(au)}try(t,r,i){if(!r&&!i)throw new Error('CodeGen: "try" without "catch" and "finally"');let n=new Ky;if(this._blockNode(n),this.code(t),r){let o=this.name("e");this._currNode=n.catch=new su(o),r(o)}return i&&(this._currNode=n.finally=new uu,this.code(i)),this._endBlockNode(su,uu)}throw(t){return this._leafNode(new By(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let i=this._nodes.length-r;if(i<0||t!==void 0&&i!==t)throw new Error(`CodeGen: wrong number of nodes: ${i} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=le.nil,i,n){return this._blockNode(new ou(t,r,i)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(ou)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let i=this._currNode;if(i instanceof t||r&&i instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof Qn))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};ie.CodeGen=Wy;function ti(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function Jf(e,t){return t instanceof le._CodeOrName?ti(e,t.names):e}function Po(e,t,r){if(e instanceof le.Name)return i(e);if(!n(e))return e;return new le._Code(e._items.reduce((o,a)=>(a instanceof le.Name&&(a=i(a)),a instanceof le._Code?o.push(...a._items):o.push(a),o),[]));function i(o){let a=r[o.str];return a===void 0||t[o.str]!==1?o:(delete t[o.str],a)}function n(o){return o instanceof le._Code&&o._items.some(a=>a instanceof le.Name&&t[a.str]===1&&r[a.str]!==void 0)}}function BR(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function Gk(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,le._)`!${Yy(e)}`}ie.not=Gk;var HR=Jk(ie.operators.AND);function GR(...e){return e.reduce(HR)}ie.and=GR;var JR=Jk(ie.operators.OR);function XR(...e){return e.reduce(JR)}ie.or=XR;function Jk(e){return(t,r)=>t===le.nil?r:r===le.nil?t:(0,le._)`${Yy(t)} ${e} ${Yy(r)}`}function Yy(e){return e instanceof le.Name?e:(0,le._)`(${e})`}});var de=E(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.checkStrictMode=ae.getErrorPath=ae.Type=ae.useFunc=ae.setEvaluated=ae.evaluatedPropsToName=ae.mergeEvaluated=ae.eachItem=ae.unescapeJsonPointer=ae.escapeJsonPointer=ae.escapeFragment=ae.unescapeFragment=ae.schemaRefOrVal=ae.schemaHasRulesButRef=ae.schemaHasRules=ae.checkUnknownRules=ae.alwaysValidSchema=ae.toHash=void 0;var Te=te(),KR=nu();function WR(e){let t={};for(let r of e)t[r]=!0;return t}ae.toHash=WR;function YR(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Wk(e,t),!Yk(t,e.self.RULES.all))}ae.alwaysValidSchema=YR;function Wk(e,t=e.schema){let{opts:r,self:i}=e;if(!r.strictSchema||typeof t=="boolean")return;let n=i.RULES.keywords;for(let o in t)n[o]||t2(e,`unknown keyword: "${o}"`)}ae.checkUnknownRules=Wk;function Yk(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}ae.schemaHasRules=Yk;function QR(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}ae.schemaHasRulesButRef=QR;function e4({topSchemaRef:e,schemaPath:t},r,i,n){if(!n){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Te._)`${r}`}return(0,Te._)`${e}${t}${(0,Te.getProperty)(i)}`}ae.schemaRefOrVal=e4;function t4(e){return Qk(decodeURIComponent(e))}ae.unescapeFragment=t4;function r4(e){return encodeURIComponent(e_(e))}ae.escapeFragment=r4;function e_(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}ae.escapeJsonPointer=e_;function Qk(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}ae.unescapeJsonPointer=Qk;function n4(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}ae.eachItem=n4;function Xk({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:i}){return(n,o,a,s)=>{let u=a===void 0?o:a instanceof Te.Name?(o instanceof Te.Name?e(n,o,a):t(n,o,a),a):o instanceof Te.Name?(t(n,a,o),o):r(o,a);return s===Te.Name&&!(u instanceof Te.Name)?i(n,u):u}}ae.mergeEvaluated={props:Xk({mergeNames:(e,t,r)=>e.if((0,Te._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Te._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Te._)`${r} || {}`).code((0,Te._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Te._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Te._)`${r} || {}`),t_(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:e2}),items:Xk({mergeNames:(e,t,r)=>e.if((0,Te._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Te._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Te._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Te._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function e2(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Te._)`{}`);return t!==void 0&&t_(e,r,t),r}ae.evaluatedPropsToName=e2;function t_(e,t,r){Object.keys(r).forEach(i=>e.assign((0,Te._)`${t}${(0,Te.getProperty)(i)}`,!0))}ae.setEvaluated=t_;var Kk={};function i4(e,t){return e.scopeValue("func",{ref:t,code:Kk[t.code]||(Kk[t.code]=new KR._Code(t.code))})}ae.useFunc=i4;var Qy;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Qy||(ae.Type=Qy={}));function o4(e,t,r){if(e instanceof Te.Name){let i=t===Qy.Num;return r?i?(0,Te._)`"[" + ${e} + "]"`:(0,Te._)`"['" + ${e} + "']"`:i?(0,Te._)`"/" + ${e}`:(0,Te._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Te.getProperty)(e).toString():"/"+e_(e)}ae.getErrorPath=o4;function t2(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}ae.checkStrictMode=t2});var Mr=E(r_=>{"use strict";Object.defineProperty(r_,"__esModule",{value:!0});var it=te(),a4={data:new it.Name("data"),valCxt:new it.Name("valCxt"),instancePath:new it.Name("instancePath"),parentData:new it.Name("parentData"),parentDataProperty:new it.Name("parentDataProperty"),rootData:new it.Name("rootData"),dynamicAnchors:new it.Name("dynamicAnchors"),vErrors:new it.Name("vErrors"),errors:new it.Name("errors"),this:new it.Name("this"),self:new it.Name("self"),scope:new it.Name("scope"),json:new it.Name("json"),jsonPos:new it.Name("jsonPos"),jsonLen:new it.Name("jsonLen"),jsonPart:new it.Name("jsonPart")};r_.default=a4});var cu=E(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.extendErrors=ot.resetErrorsCount=ot.reportExtraError=ot.reportError=ot.keyword$DataError=ot.keywordError=void 0;var fe=te(),Kf=de(),gt=Mr();ot.keywordError={message:({keyword:e})=>(0,fe.str)`must pass "${e}" keyword validation`};ot.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,fe.str)`"${e}" keyword must be ${t} ($data)`:(0,fe.str)`"${e}" keyword is invalid ($data)`};function s4(e,t=ot.keywordError,r,i){let{it:n}=e,{gen:o,compositeRule:a,allErrors:s}=n,u=i2(e,t,r);i??(a||s)?r2(o,u):n2(n,(0,fe._)`[${u}]`)}ot.reportError=s4;function u4(e,t=ot.keywordError,r){let{it:i}=e,{gen:n,compositeRule:o,allErrors:a}=i,s=i2(e,t,r);r2(n,s),o||a||n2(i,gt.default.vErrors)}ot.reportExtraError=u4;function c4(e,t){e.assign(gt.default.errors,t),e.if((0,fe._)`${gt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,fe._)`${gt.default.vErrors}.length`,t),()=>e.assign(gt.default.vErrors,null)))}ot.resetErrorsCount=c4;function l4({gen:e,keyword:t,schemaValue:r,data:i,errsCount:n,it:o}){if(n===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",n,gt.default.errors,s=>{e.const(a,(0,fe._)`${gt.default.vErrors}[${s}]`),e.if((0,fe._)`${a}.instancePath === undefined`,()=>e.assign((0,fe._)`${a}.instancePath`,(0,fe.strConcat)(gt.default.instancePath,o.errorPath))),e.assign((0,fe._)`${a}.schemaPath`,(0,fe.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,fe._)`${a}.schema`,r),e.assign((0,fe._)`${a}.data`,i))})}ot.extendErrors=l4;function r2(e,t){let r=e.const("err",t);e.if((0,fe._)`${gt.default.vErrors} === null`,()=>e.assign(gt.default.vErrors,(0,fe._)`[${r}]`),(0,fe._)`${gt.default.vErrors}.push(${r})`),e.code((0,fe._)`${gt.default.errors}++`)}function n2(e,t){let{gen:r,validateName:i,schemaEnv:n}=e;n.$async?r.throw((0,fe._)`new ${e.ValidationError}(${t})`):(r.assign((0,fe._)`${i}.errors`,t),r.return(!1))}var ri={keyword:new fe.Name("keyword"),schemaPath:new fe.Name("schemaPath"),params:new fe.Name("params"),propertyName:new fe.Name("propertyName"),message:new fe.Name("message"),schema:new fe.Name("schema"),parentSchema:new fe.Name("parentSchema")};function i2(e,t,r){let{createErrors:i}=e.it;return i===!1?(0,fe._)`{}`:d4(e,t,r)}function d4(e,t,r={}){let{gen:i,it:n}=e,o=[f4(n,r),p4(e,r)];return m4(e,t,o),i.object(...o)}function f4({errorPath:e},{instancePath:t}){let r=t?(0,fe.str)`${e}${(0,Kf.getErrorPath)(t,Kf.Type.Str)}`:e;return[gt.default.instancePath,(0,fe.strConcat)(gt.default.instancePath,r)]}function p4({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:i}){let n=i?t:(0,fe.str)`${t}/${e}`;return r&&(n=(0,fe.str)`${n}${(0,Kf.getErrorPath)(r,Kf.Type.Str)}`),[ri.schemaPath,n]}function m4(e,{params:t,message:r},i){let{keyword:n,data:o,schemaValue:a,it:s}=e,{opts:u,propertyName:c,topSchemaRef:l,schemaPath:d}=s;i.push([ri.keyword,n],[ri.params,typeof t=="function"?t(e):t||(0,fe._)`{}`]),u.messages&&i.push([ri.message,typeof r=="function"?r(e):r]),u.verbose&&i.push([ri.schema,a],[ri.parentSchema,(0,fe._)`${l}${d}`],[gt.default.data,o]),c&&i.push([ri.propertyName,c])}});var a2=E(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.boolOrEmptySchema=Oo.topBoolOrEmptySchema=void 0;var h4=cu(),g4=te(),v4=Mr(),y4={message:"boolean schema is false"};function _4(e){let{gen:t,schema:r,validateName:i}=e;r===!1?o2(e,!1):typeof r=="object"&&r.$async===!0?t.return(v4.default.data):(t.assign((0,g4._)`${i}.errors`,null),t.return(!0))}Oo.topBoolOrEmptySchema=_4;function b4(e,t){let{gen:r,schema:i}=e;i===!1?(r.var(t,!1),o2(e)):r.var(t,!0)}Oo.boolOrEmptySchema=b4;function o2(e,t){let{gen:r,data:i}=e,n={gen:r,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,h4.reportError)(n,y4,void 0,t)}});var n_=E(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.getRules=Co.isJSONType=void 0;var $4=["string","number","integer","boolean","null","object","array"],w4=new Set($4);function x4(e){return typeof e=="string"&&w4.has(e)}Co.isJSONType=x4;function S4(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Co.getRules=S4});var i_=E(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.shouldUseRule=yn.shouldUseGroup=yn.schemaHasRulesForType=void 0;function k4({schema:e,self:t},r){let i=t.RULES.types[r];return i&&i!==!0&&s2(e,i)}yn.schemaHasRulesForType=k4;function s2(e,t){return t.rules.some(r=>u2(e,r))}yn.shouldUseGroup=s2;function u2(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(i=>e[i]!==void 0))}yn.shouldUseRule=u2});var lu=E(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.reportTypeError=at.checkDataTypes=at.checkDataType=at.coerceAndCheckDataType=at.getJSONTypes=at.getSchemaTypes=at.DataType=void 0;var I4=n_(),E4=i_(),T4=cu(),ee=te(),c2=de(),Ro;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Ro||(at.DataType=Ro={}));function D4(e){let t=l2(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}at.getSchemaTypes=D4;function l2(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(I4.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}at.getJSONTypes=l2;function A4(e,t){let{gen:r,data:i,opts:n}=e,o=N4(t,n.coerceTypes),a=t.length>0&&!(o.length===0&&t.length===1&&(0,E4.schemaHasRulesForType)(e,t[0]));if(a){let s=a_(t,i,n.strictNumbers,Ro.Wrong);r.if(s,()=>{o.length?z4(e,t,o):s_(e)})}return a}at.coerceAndCheckDataType=A4;var d2=new Set(["string","number","integer","boolean","null"]);function N4(e,t){return t?e.filter(r=>d2.has(r)||t==="array"&&r==="array"):[]}function z4(e,t,r){let{gen:i,data:n,opts:o}=e,a=i.let("dataType",(0,ee._)`typeof ${n}`),s=i.let("coerced",(0,ee._)`undefined`);o.coerceTypes==="array"&&i.if((0,ee._)`${a} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>i.assign(n,(0,ee._)`${n}[0]`).assign(a,(0,ee._)`typeof ${n}`).if(a_(t,n,o.strictNumbers),()=>i.assign(s,n))),i.if((0,ee._)`${s} !== undefined`);for(let c of r)(d2.has(c)||c==="array"&&o.coerceTypes==="array")&&u(c);i.else(),s_(e),i.endIf(),i.if((0,ee._)`${s} !== undefined`,()=>{i.assign(n,s),P4(e,s)});function u(c){switch(c){case"string":i.elseIf((0,ee._)`${a} == "number" || ${a} == "boolean"`).assign(s,(0,ee._)`"" + ${n}`).elseIf((0,ee._)`${n} === null`).assign(s,(0,ee._)`""`);return;case"number":i.elseIf((0,ee._)`${a} == "boolean" || ${n} === null
4
+ || (${a} == "string" && ${n} && ${n} == +${n})`).assign(s,(0,ee._)`+${n}`);return;case"integer":i.elseIf((0,ee._)`${a} === "boolean" || ${n} === null
5
+ || (${a} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(s,(0,ee._)`+${n}`);return;case"boolean":i.elseIf((0,ee._)`${n} === "false" || ${n} === 0 || ${n} === null`).assign(s,!1).elseIf((0,ee._)`${n} === "true" || ${n} === 1`).assign(s,!0);return;case"null":i.elseIf((0,ee._)`${n} === "" || ${n} === 0 || ${n} === false`),i.assign(s,null);return;case"array":i.elseIf((0,ee._)`${a} === "string" || ${a} === "number"
6
+ || ${a} === "boolean" || ${n} === null`).assign(s,(0,ee._)`[${n}]`)}}}function P4({gen:e,parentData:t,parentDataProperty:r},i){e.if((0,ee._)`${t} !== undefined`,()=>e.assign((0,ee._)`${t}[${r}]`,i))}function o_(e,t,r,i=Ro.Correct){let n=i===Ro.Correct?ee.operators.EQ:ee.operators.NEQ,o;switch(e){case"null":return(0,ee._)`${t} ${n} null`;case"array":o=(0,ee._)`Array.isArray(${t})`;break;case"object":o=(0,ee._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a((0,ee._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return(0,ee._)`typeof ${t} ${n} ${e}`}return i===Ro.Correct?o:(0,ee.not)(o);function a(s=ee.nil){return(0,ee.and)((0,ee._)`typeof ${t} == "number"`,s,r?(0,ee._)`isFinite(${t})`:ee.nil)}}at.checkDataType=o_;function a_(e,t,r,i){if(e.length===1)return o_(e[0],t,r,i);let n,o=(0,c2.toHash)(e);if(o.array&&o.object){let a=(0,ee._)`typeof ${t} != "object"`;n=o.null?a:(0,ee._)`!${t} || ${a}`,delete o.null,delete o.array,delete o.object}else n=ee.nil;o.number&&delete o.integer;for(let a in o)n=(0,ee.and)(n,o_(a,t,r,i));return n}at.checkDataTypes=a_;var O4={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,ee._)`{type: ${e}}`:(0,ee._)`{type: ${t}}`};function s_(e){let t=C4(e);(0,T4.reportError)(t,O4)}at.reportTypeError=s_;function C4(e){let{gen:t,data:r,schema:i}=e,n=(0,c2.schemaRefOrVal)(e,i,"type");return{gen:t,keyword:"type",data:r,schema:i.type,schemaCode:n,schemaValue:n,parentSchema:i,params:{},it:e}}});var p2=E(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});Wf.assignDefaults=void 0;var jo=te(),R4=de();function j4(e,t){let{properties:r,items:i}=e.schema;if(t==="object"&&r)for(let n in r)f2(e,n,r[n].default);else t==="array"&&Array.isArray(i)&&i.forEach((n,o)=>f2(e,o,n.default))}Wf.assignDefaults=j4;function f2(e,t,r){let{gen:i,compositeRule:n,data:o,opts:a}=e;if(r===void 0)return;let s=(0,jo._)`${o}${(0,jo.getProperty)(t)}`;if(n){(0,R4.checkStrictMode)(e,`default is ignored for: ${s}`);return}let u=(0,jo._)`${s} === undefined`;a.useDefaults==="empty"&&(u=(0,jo._)`${u} || ${s} === null || ${s} === ""`),i.if(u,(0,jo._)`${s} = ${(0,jo.stringify)(r)}`)}});var Xt=E(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.validateUnion=Ee.validateArray=Ee.usePattern=Ee.callValidateCode=Ee.schemaProperties=Ee.allSchemaProperties=Ee.noPropertyInData=Ee.propertyInData=Ee.isOwnProperty=Ee.hasPropFunc=Ee.reportMissingProp=Ee.checkMissingProp=Ee.checkReportMissingProp=void 0;var De=te(),u_=de(),_n=Mr(),U4=de();function M4(e,t){let{gen:r,data:i,it:n}=e;r.if(l_(r,i,t,n.opts.ownProperties),()=>{e.setParams({missingProperty:(0,De._)`${t}`},!0),e.error()})}Ee.checkReportMissingProp=M4;function L4({gen:e,data:t,it:{opts:r}},i,n){return(0,De.or)(...i.map(o=>(0,De.and)(l_(e,t,o,r.ownProperties),(0,De._)`${n} = ${o}`)))}Ee.checkMissingProp=L4;function Z4(e,t){e.setParams({missingProperty:t},!0),e.error()}Ee.reportMissingProp=Z4;function m2(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,De._)`Object.prototype.hasOwnProperty`})}Ee.hasPropFunc=m2;function c_(e,t,r){return(0,De._)`${m2(e)}.call(${t}, ${r})`}Ee.isOwnProperty=c_;function F4(e,t,r,i){let n=(0,De._)`${t}${(0,De.getProperty)(r)} !== undefined`;return i?(0,De._)`${n} && ${c_(e,t,r)}`:n}Ee.propertyInData=F4;function l_(e,t,r,i){let n=(0,De._)`${t}${(0,De.getProperty)(r)} === undefined`;return i?(0,De.or)(n,(0,De.not)(c_(e,t,r))):n}Ee.noPropertyInData=l_;function h2(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Ee.allSchemaProperties=h2;function q4(e,t){return h2(t).filter(r=>!(0,u_.alwaysValidSchema)(e,t[r]))}Ee.schemaProperties=q4;function V4({schemaCode:e,data:t,it:{gen:r,topSchemaRef:i,schemaPath:n,errorPath:o},it:a},s,u,c){let l=c?(0,De._)`${e}, ${t}, ${i}${n}`:t,d=[[_n.default.instancePath,(0,De.strConcat)(_n.default.instancePath,o)],[_n.default.parentData,a.parentData],[_n.default.parentDataProperty,a.parentDataProperty],[_n.default.rootData,_n.default.rootData]];a.opts.dynamicRef&&d.push([_n.default.dynamicAnchors,_n.default.dynamicAnchors]);let m=(0,De._)`${l}, ${r.object(...d)}`;return u!==De.nil?(0,De._)`${s}.call(${u}, ${m})`:(0,De._)`${s}(${m})`}Ee.callValidateCode=V4;var B4=(0,De._)`new RegExp`;function H4({gen:e,it:{opts:t}},r){let i=t.unicodeRegExp?"u":"",{regExp:n}=t.code,o=n(r,i);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,De._)`${n.code==="new RegExp"?B4:(0,U4.useFunc)(e,n)}(${r}, ${i})`})}Ee.usePattern=H4;function G4(e){let{gen:t,data:r,keyword:i,it:n}=e,o=t.name("valid");if(n.allErrors){let s=t.let("valid",!0);return a(()=>t.assign(s,!1)),s}return t.var(o,!0),a(()=>t.break()),o;function a(s){let u=t.const("len",(0,De._)`${r}.length`);t.forRange("i",0,u,c=>{e.subschema({keyword:i,dataProp:c,dataPropType:u_.Type.Num},o),t.if((0,De.not)(o),s)})}}Ee.validateArray=G4;function J4(e){let{gen:t,schema:r,keyword:i,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,u_.alwaysValidSchema)(n,u))&&!n.opts.unevaluated)return;let a=t.let("valid",!1),s=t.name("_valid");t.block(()=>r.forEach((u,c)=>{let l=e.subschema({keyword:i,schemaProp:c,compositeRule:!0},s);t.assign(a,(0,De._)`${a} || ${s}`),e.mergeValidEvaluated(l,s)||t.if((0,De.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}Ee.validateUnion=J4});var y2=E($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.validateKeywordUsage=$r.validSchemaType=$r.funcKeywordCode=$r.macroKeywordCode=void 0;var vt=te(),ni=Mr(),X4=Xt(),K4=cu();function W4(e,t){let{gen:r,keyword:i,schema:n,parentSchema:o,it:a}=e,s=t.macro.call(a.self,n,o,a),u=v2(r,i,s);a.opts.validateSchema!==!1&&a.self.validateSchema(s,!0);let c=r.name("valid");e.subschema({schema:s,schemaPath:vt.nil,errSchemaPath:`${a.errSchemaPath}/${i}`,topSchemaRef:u,compositeRule:!0},c),e.pass(c,()=>e.error(!0))}$r.macroKeywordCode=W4;function Y4(e,t){var r;let{gen:i,keyword:n,schema:o,parentSchema:a,$data:s,it:u}=e;ej(u,t);let c=!s&&t.compile?t.compile.call(u.self,o,a,u):t.validate,l=v2(i,n,c),d=i.let("valid");e.block$data(d,m),e.ok((r=t.valid)!==null&&r!==void 0?r:d);function m(){if(t.errors===!1)f(),t.modifying&&g2(e),g(()=>e.error());else{let b=t.async?p():h();t.modifying&&g2(e),g(()=>Q4(e,b))}}function p(){let b=i.let("ruleErrs",null);return i.try(()=>f((0,vt._)`await `),v=>i.assign(d,!1).if((0,vt._)`${v} instanceof ${u.ValidationError}`,()=>i.assign(b,(0,vt._)`${v}.errors`),()=>i.throw(v))),b}function h(){let b=(0,vt._)`${l}.errors`;return i.assign(b,null),f(vt.nil),b}function f(b=t.async?(0,vt._)`await `:vt.nil){let v=u.opts.passContext?ni.default.this:ni.default.self,y=!("compile"in t&&!s||t.schema===!1);i.assign(d,(0,vt._)`${b}${(0,X4.callValidateCode)(e,l,v,y)}`,t.modifying)}function g(b){var v;i.if((0,vt.not)((v=t.valid)!==null&&v!==void 0?v:d),b)}}$r.funcKeywordCode=Y4;function g2(e){let{gen:t,data:r,it:i}=e;t.if(i.parentData,()=>t.assign(r,(0,vt._)`${i.parentData}[${i.parentDataProperty}]`))}function Q4(e,t){let{gen:r}=e;r.if((0,vt._)`Array.isArray(${t})`,()=>{r.assign(ni.default.vErrors,(0,vt._)`${ni.default.vErrors} === null ? ${t} : ${ni.default.vErrors}.concat(${t})`).assign(ni.default.errors,(0,vt._)`${ni.default.vErrors}.length`),(0,K4.extendErrors)(e)},()=>e.error())}function ej({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function v2(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,vt.stringify)(r)})}function tj(e,t,r=!1){return!t.length||t.some(i=>i==="array"?Array.isArray(e):i==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==i||r&&typeof e>"u")}$r.validSchemaType=tj;function rj({schema:e,opts:t,self:r,errSchemaPath:i},n,o){if(Array.isArray(n.keyword)?!n.keyword.includes(o):n.keyword!==o)throw new Error("ajv implementation error");let a=n.dependencies;if(a?.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(n.validateSchema&&!n.validateSchema(e[o])){let u=`keyword "${o}" value is invalid at path "${i}": `+r.errorsText(n.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}$r.validateKeywordUsage=rj});var b2=E(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.extendSubschemaMode=bn.extendSubschemaData=bn.getSubschema=void 0;var wr=te(),_2=de();function nj(e,{keyword:t,schemaProp:r,schema:i,schemaPath:n,errSchemaPath:o,topSchemaRef:a}){if(t!==void 0&&i!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let s=e.schema[t];return r===void 0?{schema:s,schemaPath:(0,wr._)`${e.schemaPath}${(0,wr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[r],schemaPath:(0,wr._)`${e.schemaPath}${(0,wr.getProperty)(t)}${(0,wr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,_2.escapeFragment)(r)}`}}if(i!==void 0){if(n===void 0||o===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:n,topSchemaRef:a,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}bn.getSubschema=nj;function ij(e,t,{dataProp:r,dataPropType:i,data:n,dataTypes:o,propertyName:a}){if(n!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:s}=t;if(r!==void 0){let{errorPath:c,dataPathArr:l,opts:d}=t,m=s.let("data",(0,wr._)`${t.data}${(0,wr.getProperty)(r)}`,!0);u(m),e.errorPath=(0,wr.str)`${c}${(0,_2.getErrorPath)(r,i,d.jsPropertySyntax)}`,e.parentDataProperty=(0,wr._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(n!==void 0){let c=n instanceof wr.Name?n:s.let("data",n,!0);u(c),a!==void 0&&(e.propertyName=a)}o&&(e.dataTypes=o);function u(c){e.data=c,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,c]}}bn.extendSubschemaData=ij;function oj(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:i,createErrors:n,allErrors:o}){i!==void 0&&(e.compositeRule=i),n!==void 0&&(e.createErrors=n),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}bn.extendSubschemaMode=oj});var d_=E((FG,$2)=>{"use strict";$2.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var i,n,o;if(Array.isArray(t)){if(i=t.length,i!=r.length)return!1;for(n=i;n--!==0;)if(!e(t[n],r[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),i=o.length,i!==Object.keys(r).length)return!1;for(n=i;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[n]))return!1;for(n=i;n--!==0;){var a=o[n];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r}});var x2=E((qG,w2)=>{"use strict";var $n=w2.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var i=typeof r=="function"?r:r.pre||function(){},n=r.post||function(){};Yf(t,i,n,e,"",e)};$n.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};$n.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};$n.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};$n.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Yf(e,t,r,i,n,o,a,s,u,c){if(i&&typeof i=="object"&&!Array.isArray(i)){t(i,n,o,a,s,u,c);for(var l in i){var d=i[l];if(Array.isArray(d)){if(l in $n.arrayKeywords)for(var m=0;m<d.length;m++)Yf(e,t,r,d[m],n+"/"+l+"/"+m,o,n,l,i,m)}else if(l in $n.propsKeywords){if(d&&typeof d=="object")for(var p in d)Yf(e,t,r,d[p],n+"/"+l+"/"+aj(p),o,n,l,i,p)}else(l in $n.keywords||e.allKeys&&!(l in $n.skipKeywords))&&Yf(e,t,r,d,n+"/"+l,o,n,l,i)}r(i,n,o,a,s,u,c)}}function aj(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var du=E(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.getSchemaRefs=It.resolveUrl=It.normalizeId=It._getFullPath=It.getFullPath=It.inlineRef=void 0;var sj=de(),uj=d_(),cj=x2(),lj=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function dj(e,t=!0){return typeof e=="boolean"?!0:t===!0?!f_(e):t?S2(e)<=t:!1}It.inlineRef=dj;var fj=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function f_(e){for(let t in e){if(fj.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(f_)||typeof r=="object"&&f_(r))return!0}return!1}function S2(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!lj.has(r)&&(typeof e[r]=="object"&&(0,sj.eachItem)(e[r],i=>t+=S2(i)),t===1/0))return 1/0}return t}function k2(e,t="",r){r!==!1&&(t=Uo(t));let i=e.parse(t);return I2(e,i)}It.getFullPath=k2;function I2(e,t){return e.serialize(t).split("#")[0]+"#"}It._getFullPath=I2;var pj=/#\/?$/;function Uo(e){return e?e.replace(pj,""):""}It.normalizeId=Uo;function mj(e,t,r){return r=Uo(r),e.resolve(t,r)}It.resolveUrl=mj;var hj=/^[a-z_][-a-z0-9._]*$/i;function gj(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:i}=this.opts,n=Uo(e[r]||t),o={"":n},a=k2(i,n,!1),s={},u=new Set;return cj(e,{allKeys:!0},(d,m,p,h)=>{if(h===void 0)return;let f=a+m,g=o[h];typeof d[r]=="string"&&(g=b.call(this,d[r])),v.call(this,d.$anchor),v.call(this,d.$dynamicAnchor),o[m]=g;function b(y){let I=this.opts.uriResolver.resolve;if(y=Uo(g?I(g,y):y),u.has(y))throw l(y);u.add(y);let T=this.refs[y];return typeof T=="string"&&(T=this.refs[T]),typeof T=="object"?c(d,T.schema,y):y!==Uo(f)&&(y[0]==="#"?(c(d,s[y],y),s[y]=d):this.refs[y]=f),y}function v(y){if(typeof y=="string"){if(!hj.test(y))throw new Error(`invalid anchor "${y}"`);b.call(this,`#${y}`)}}}),s;function c(d,m,p){if(m!==void 0&&!uj(d,m))throw l(p)}function l(d){return new Error(`reference "${d}" resolves to more than one schema`)}}It.getSchemaRefs=gj});var mu=E(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.getData=wn.KeywordCxt=wn.validateFunctionCode=void 0;var N2=a2(),E2=lu(),m_=i_(),Qf=lu(),vj=p2(),pu=y2(),p_=b2(),F=te(),K=Mr(),yj=du(),Lr=de(),fu=cu();function _j(e){if(O2(e)&&(C2(e),P2(e))){wj(e);return}z2(e,()=>(0,N2.topBoolOrEmptySchema)(e))}wn.validateFunctionCode=_j;function z2({gen:e,validateName:t,schema:r,schemaEnv:i,opts:n},o){n.code.es5?e.func(t,(0,F._)`${K.default.data}, ${K.default.valCxt}`,i.$async,()=>{e.code((0,F._)`"use strict"; ${T2(r,n)}`),$j(e,n),e.code(o)}):e.func(t,(0,F._)`${K.default.data}, ${bj(n)}`,i.$async,()=>e.code(T2(r,n)).code(o))}function bj(e){return(0,F._)`{${K.default.instancePath}="", ${K.default.parentData}, ${K.default.parentDataProperty}, ${K.default.rootData}=${K.default.data}${e.dynamicRef?(0,F._)`, ${K.default.dynamicAnchors}={}`:F.nil}}={}`}function $j(e,t){e.if(K.default.valCxt,()=>{e.var(K.default.instancePath,(0,F._)`${K.default.valCxt}.${K.default.instancePath}`),e.var(K.default.parentData,(0,F._)`${K.default.valCxt}.${K.default.parentData}`),e.var(K.default.parentDataProperty,(0,F._)`${K.default.valCxt}.${K.default.parentDataProperty}`),e.var(K.default.rootData,(0,F._)`${K.default.valCxt}.${K.default.rootData}`),t.dynamicRef&&e.var(K.default.dynamicAnchors,(0,F._)`${K.default.valCxt}.${K.default.dynamicAnchors}`)},()=>{e.var(K.default.instancePath,(0,F._)`""`),e.var(K.default.parentData,(0,F._)`undefined`),e.var(K.default.parentDataProperty,(0,F._)`undefined`),e.var(K.default.rootData,K.default.data),t.dynamicRef&&e.var(K.default.dynamicAnchors,(0,F._)`{}`)})}function wj(e){let{schema:t,opts:r,gen:i}=e;z2(e,()=>{r.$comment&&t.$comment&&j2(e),Ej(e),i.let(K.default.vErrors,null),i.let(K.default.errors,0),r.unevaluated&&xj(e),R2(e),Aj(e)})}function xj(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,F._)`${r}.evaluated`),t.if((0,F._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,F._)`${e.evaluated}.props`,(0,F._)`undefined`)),t.if((0,F._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,F._)`${e.evaluated}.items`,(0,F._)`undefined`))}function T2(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,F._)`/*# sourceURL=${r} */`:F.nil}function Sj(e,t){if(O2(e)&&(C2(e),P2(e))){kj(e,t);return}(0,N2.boolOrEmptySchema)(e,t)}function P2({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function O2(e){return typeof e.schema!="boolean"}function kj(e,t){let{schema:r,gen:i,opts:n}=e;n.$comment&&r.$comment&&j2(e),Tj(e),Dj(e);let o=i.const("_errs",K.default.errors);R2(e,o),i.var(t,(0,F._)`${o} === ${K.default.errors}`)}function C2(e){(0,Lr.checkUnknownRules)(e),Ij(e)}function R2(e,t){if(e.opts.jtd)return D2(e,[],!1,t);let r=(0,E2.getSchemaTypes)(e.schema),i=(0,E2.coerceAndCheckDataType)(e,r);D2(e,r,!i,t)}function Ij(e){let{schema:t,errSchemaPath:r,opts:i,self:n}=e;t.$ref&&i.ignoreKeywordsWithRef&&(0,Lr.schemaHasRulesButRef)(t,n.RULES)&&n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function Ej(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Lr.checkStrictMode)(e,"default is ignored in the schema root")}function Tj(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,yj.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function Dj(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function j2({gen:e,schemaEnv:t,schema:r,errSchemaPath:i,opts:n}){let o=r.$comment;if(n.$comment===!0)e.code((0,F._)`${K.default.self}.logger.log(${o})`);else if(typeof n.$comment=="function"){let a=(0,F.str)`${i}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,F._)`${K.default.self}.opts.$comment(${o}, ${a}, ${s}.schema)`)}}function Aj(e){let{gen:t,schemaEnv:r,validateName:i,ValidationError:n,opts:o}=e;r.$async?t.if((0,F._)`${K.default.errors} === 0`,()=>t.return(K.default.data),()=>t.throw((0,F._)`new ${n}(${K.default.vErrors})`)):(t.assign((0,F._)`${i}.errors`,K.default.vErrors),o.unevaluated&&Nj(e),t.return((0,F._)`${K.default.errors} === 0`))}function Nj({gen:e,evaluated:t,props:r,items:i}){r instanceof F.Name&&e.assign((0,F._)`${t}.props`,r),i instanceof F.Name&&e.assign((0,F._)`${t}.items`,i)}function D2(e,t,r,i){let{gen:n,schema:o,data:a,allErrors:s,opts:u,self:c}=e,{RULES:l}=c;if(o.$ref&&(u.ignoreKeywordsWithRef||!(0,Lr.schemaHasRulesButRef)(o,l))){n.block(()=>M2(e,"$ref",l.all.$ref.definition));return}u.jtd||zj(e,t),n.block(()=>{for(let m of l.rules)d(m);d(l.post)});function d(m){(0,m_.shouldUseGroup)(o,m)&&(m.type?(n.if((0,Qf.checkDataType)(m.type,a,u.strictNumbers)),A2(e,m),t.length===1&&t[0]===m.type&&r&&(n.else(),(0,Qf.reportTypeError)(e)),n.endIf()):A2(e,m),s||n.if((0,F._)`${K.default.errors} === ${i||0}`))}}function A2(e,t){let{gen:r,schema:i,opts:{useDefaults:n}}=e;n&&(0,vj.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,m_.shouldUseRule)(i,o)&&M2(e,o.keyword,o.definition,t.type)})}function zj(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Pj(e,t),e.opts.allowUnionTypes||Oj(e,t),Cj(e,e.dataTypes))}function Pj(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{U2(e.dataTypes,r)||h_(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),jj(e,t)}}function Oj(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&h_(e,"use allowUnionTypes to allow union type keyword")}function Cj(e,t){let r=e.self.RULES.all;for(let i in r){let n=r[i];if(typeof n=="object"&&(0,m_.shouldUseRule)(e.schema,n)){let{type:o}=n.definition;o.length&&!o.some(a=>Rj(t,a))&&h_(e,`missing type "${o.join(",")}" for keyword "${i}"`)}}}function Rj(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function U2(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function jj(e,t){let r=[];for(let i of e.dataTypes)U2(t,i)?r.push(i):t.includes("integer")&&i==="number"&&r.push("integer");e.dataTypes=r}function h_(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Lr.checkStrictMode)(e,t,e.opts.strictTypes)}var ep=class{constructor(t,r,i){if((0,pu.validateKeywordUsage)(t,r,i),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=i,this.data=t.data,this.schema=t.schema[i],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Lr.schemaRefOrVal)(t,this.schema,i,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",L2(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,pu.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${i} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",K.default.errors))}result(t,r,i){this.failResult((0,F.not)(t),r,i)}failResult(t,r,i){this.gen.if(t),i?i():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,F.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,F._)`${r} !== undefined && (${(0,F.or)(this.invalid$data(),t)})`)}error(t,r,i){if(r){this.setParams(r),this._error(t,i),this.setParams({});return}this._error(t,i)}_error(t,r){(t?fu.reportExtraError:fu.reportError)(this,this.def.error,r)}$dataError(){(0,fu.reportError)(this,this.def.$dataError||fu.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,fu.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,i=F.nil){this.gen.block(()=>{this.check$data(t,i),r()})}check$data(t=F.nil,r=F.nil){if(!this.$data)return;let{gen:i,schemaCode:n,schemaType:o,def:a}=this;i.if((0,F.or)((0,F._)`${n} === undefined`,r)),t!==F.nil&&i.assign(t,!0),(o.length||a.validateSchema)&&(i.elseIf(this.invalid$data()),this.$dataError(),t!==F.nil&&i.assign(t,!1)),i.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:i,def:n,it:o}=this;return(0,F.or)(a(),s());function a(){if(i.length){if(!(r instanceof F.Name))throw new Error("ajv implementation error");let u=Array.isArray(i)?i:[i];return(0,F._)`${(0,Qf.checkDataTypes)(u,r,o.opts.strictNumbers,Qf.DataType.Wrong)}`}return F.nil}function s(){if(n.validateSchema){let u=t.scopeValue("validate$data",{ref:n.validateSchema});return(0,F._)`!${u}(${r})`}return F.nil}}subschema(t,r){let i=(0,p_.getSubschema)(this.it,t);(0,p_.extendSubschemaData)(i,this.it,t),(0,p_.extendSubschemaMode)(i,t);let n={...this.it,...i,items:void 0,props:void 0};return Sj(n,r),n}mergeEvaluated(t,r){let{it:i,gen:n}=this;i.opts.unevaluated&&(i.props!==!0&&t.props!==void 0&&(i.props=Lr.mergeEvaluated.props(n,t.props,i.props,r)),i.items!==!0&&t.items!==void 0&&(i.items=Lr.mergeEvaluated.items(n,t.items,i.items,r)))}mergeValidEvaluated(t,r){let{it:i,gen:n}=this;if(i.opts.unevaluated&&(i.props!==!0||i.items!==!0))return n.if(r,()=>this.mergeEvaluated(t,F.Name)),!0}};wn.KeywordCxt=ep;function M2(e,t,r,i){let n=new ep(e,r,t);"code"in r?r.code(n,i):n.$data&&r.validate?(0,pu.funcKeywordCode)(n,r):"macro"in r?(0,pu.macroKeywordCode)(n,r):(r.compile||r.validate)&&(0,pu.funcKeywordCode)(n,r)}var Uj=/^\/(?:[^~]|~0|~1)*$/,Mj=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function L2(e,{dataLevel:t,dataNames:r,dataPathArr:i}){let n,o;if(e==="")return K.default.rootData;if(e[0]==="/"){if(!Uj.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);n=e,o=K.default.rootData}else{let c=Mj.exec(e);if(!c)throw new Error(`Invalid JSON-pointer: ${e}`);let l=+c[1];if(n=c[2],n==="#"){if(l>=t)throw new Error(u("property/index",l));return i[t-l]}if(l>t)throw new Error(u("data",l));if(o=r[t-l],!n)return o}let a=o,s=n.split("/");for(let c of s)c&&(o=(0,F._)`${o}${(0,F.getProperty)((0,Lr.unescapeJsonPointer)(c))}`,a=(0,F._)`${a} && ${o}`);return a;function u(c,l){return`Cannot access ${c} ${l} levels up, current level is ${t}`}}wn.getData=L2});var tp=E(v_=>{"use strict";Object.defineProperty(v_,"__esModule",{value:!0});var g_=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};v_.default=g_});var hu=E(b_=>{"use strict";Object.defineProperty(b_,"__esModule",{value:!0});var y_=du(),__=class extends Error{constructor(t,r,i,n){super(n||`can't resolve reference ${i} from id ${r}`),this.missingRef=(0,y_.resolveUrl)(t,r,i),this.missingSchema=(0,y_.normalizeId)((0,y_.getFullPath)(t,this.missingRef))}};b_.default=__});var np=E(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.resolveSchema=Kt.getCompilingSchema=Kt.resolveRef=Kt.compileSchema=Kt.SchemaEnv=void 0;var sr=te(),Lj=tp(),ii=Mr(),ur=du(),Z2=de(),Zj=mu(),Mo=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let i;typeof t.schema=="object"&&(i=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,ur.normalizeId)(i?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=i?.$async,this.refs={}}};Kt.SchemaEnv=Mo;function w_(e){let t=F2.call(this,e);if(t)return t;let r=(0,ur.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:i,lines:n}=this.opts.code,{ownProperties:o}=this.opts,a=new sr.CodeGen(this.scope,{es5:i,lines:n,ownProperties:o}),s;e.$async&&(s=a.scopeValue("Error",{ref:Lj.default,code:(0,sr._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let c={gen:a,allErrors:this.opts.allErrors,data:ii.default.data,parentData:ii.default.parentData,parentDataProperty:ii.default.parentDataProperty,dataNames:[ii.default.data],dataPathArr:[sr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,sr.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:sr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,sr._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(e),(0,Zj.validateFunctionCode)(c),a.optimize(this.opts.code.optimize);let d=a.toString();l=`${a.scopeRefs(ii.default.scope)}return ${d}`,this.opts.code.process&&(l=this.opts.code.process(l,e));let p=new Function(`${ii.default.self}`,`${ii.default.scope}`,l)(this,this.scope.get());if(this.scope.value(u,{ref:p}),p.errors=null,p.schema=e.schema,p.schemaEnv=e,e.$async&&(p.$async=!0),this.opts.code.source===!0&&(p.source={validateName:u,validateCode:d,scopeValues:a._values}),this.opts.unevaluated){let{props:h,items:f}=c;p.evaluated={props:h instanceof sr.Name?void 0:h,items:f instanceof sr.Name?void 0:f,dynamicProps:h instanceof sr.Name,dynamicItems:f instanceof sr.Name},p.source&&(p.source.evaluated=(0,sr.stringify)(p.evaluated))}return e.validate=p,e}catch(d){throw delete e.validate,delete e.validateName,l&&this.logger.error("Error compiling schema, function code:",l),d}finally{this._compilations.delete(e)}}Kt.compileSchema=w_;function Fj(e,t,r){var i;r=(0,ur.resolveUrl)(this.opts.uriResolver,t,r);let n=e.refs[r];if(n)return n;let o=Bj.call(this,e,r);if(o===void 0){let a=(i=e.localRefs)===null||i===void 0?void 0:i[r],{schemaId:s}=this.opts;a&&(o=new Mo({schema:a,schemaId:s,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=qj.call(this,o)}Kt.resolveRef=Fj;function qj(e){return(0,ur.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:w_.call(this,e)}function F2(e){for(let t of this._compilations)if(Vj(t,e))return t}Kt.getCompilingSchema=F2;function Vj(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function Bj(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||rp.call(this,e,t)}function rp(e,t){let r=this.opts.uriResolver.parse(t),i=(0,ur._getFullPath)(this.opts.uriResolver,r),n=(0,ur.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&i===n)return $_.call(this,r,e);let o=(0,ur.normalizeId)(i),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let s=rp.call(this,e,a);return typeof s?.schema!="object"?void 0:$_.call(this,r,s)}if(typeof a?.schema=="object"){if(a.validate||w_.call(this,a),o===(0,ur.normalizeId)(t)){let{schema:s}=a,{schemaId:u}=this.opts,c=s[u];return c&&(n=(0,ur.resolveUrl)(this.opts.uriResolver,n,c)),new Mo({schema:s,schemaId:u,root:e,baseId:n})}return $_.call(this,r,a)}}Kt.resolveSchema=rp;var Hj=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function $_(e,{baseId:t,schema:r,root:i}){var n;if(((n=e.fragment)===null||n===void 0?void 0:n[0])!=="/")return;for(let s of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let u=r[(0,Z2.unescapeFragment)(s)];if(u===void 0)return;r=u;let c=typeof r=="object"&&r[this.opts.schemaId];!Hj.has(s)&&c&&(t=(0,ur.resolveUrl)(this.opts.uriResolver,t,c))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,Z2.schemaHasRulesButRef)(r,this.RULES)){let s=(0,ur.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=rp.call(this,i,s)}let{schemaId:a}=this.opts;if(o=o||new Mo({schema:r,schemaId:a,root:i,baseId:t}),o.schema!==o.root.schema)return o}});var q2=E((XG,Gj)=>{Gj.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var T_=E((KG,W2)=>{"use strict";var Jj=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),S_=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),Xj=RegExp.prototype.test.bind(/^\d*$/u),oi=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),k_=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),B2=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u),I_=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u),Kj=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u),Et=new Array(256);{let e="0123456789ABCDEF";for(let t=0;t<256;t++)Et[t]="%"+e[t>>4]+e[t&15]}function st(e){return e<2048?Et[192|e>>6]+Et[128|e&63]:e<65536?Et[224|e>>12]+Et[128|e>>6&63]+Et[128|e&63]:Et[240|e>>18]+Et[128|e>>12&63]+Et[128|e>>6&63]+Et[128|e&63]}function Wj(e){let t="",r=0,i=0;for(i=0;i<e.length;i++)if(r=e[i].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[i];break}for(i+=1;i<e.length;i++){if(r=e[i].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[i]}return t}var Yj=RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/),Qj=RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/),e6=RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/),t6=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function r6(e){if(e.length===0)return!1;for(let t=0;t<e.length;t++)if(!e6(e[t])){if(e[t]==="%"&&t+2<e.length&&oi(e.slice(t+1,t+3))){t+=2;continue}return!1}return!0}function V2(e){let t=-1,r=0,i=-1,n=0;for(let s=0;s<e.length;s++)e[s]==="0"?(i===-1&&(i=s),n++,n>r&&(r=n,t=i)):(i=-1,n=0);if(r<2)return e.join(":");let o=e.slice(0,t).join(":"),a=e.slice(t+r).join(":");return o+"::"+a}function n6(e){let t=e.indexOf("::");if(t!==-1&&e.indexOf("::",t+1)!==-1)return;let r=t===-1?e.split(":"):e.slice(0,t).split(":"),i=t===-1?[]:e.slice(t+2).split(":");t!==-1&&(r.length===1&&r[0]===""&&(r.length=0),i.length===1&&i[0]===""&&(i.length=0));let n=r.concat(i),o=0;for(let s=0;s<n.length;s++){let u=n[s];if(u==="")return;if(u.indexOf(".")!==-1){if(s!==n.length-1||t!==-1&&i.length===0||!S_(u))return;o+=2;continue}if(!Yj(u))return;n[s]=parseInt(u,16).toString(16),o++}if(t===-1)return o!==8?void 0:V2(n);if(o>=8)return;let a=n.slice(0,r.length);for(let s=o;s<8;s++)a.push("0");for(let s=r.length;s<n.length;s++)a.push(n[s]);return V2(a)}function x_(e){let t=e[0]==="["&&e[e.length-1]==="]";if((e[0]==="["||e[e.length-1]==="]")&&!t)return{host:e,isIPV6:!1,error:!0};let i=t?e.slice(1,-1):e;if(t&&Qj(i))return i=i.toLowerCase(),{host:`[${i}]`,escapedHost:i,isIPV6:!1,isIPVFuture:!0};if(i6(i,":")<2)return{host:e,isIPV6:!1,error:t};let n="",o=i.indexOf("%");if(o!==-1){let s=i.slice(o,o+3).toLowerCase()==="%25"?3:1;if(n=i.slice(o+s),!r6(n))return{host:e,isIPV6:!1,error:!0};i=i.slice(0,o)}let a=n6(i);return a===void 0?{host:e,isIPV6:!1,error:!0}:{host:a+(n?"%"+n:""),escapedHost:a+(n?"%25"+n:""),isIPV6:!0}}function i6(e,t){let r=0;for(let i=0;i<e.length;i++)e[i]===t&&r++;return r}function H2(e){let t=e,r=[],i=-1,n=0;for(;n=t.length;){if(n===1){if(t===".")break;if(t==="/"){r.push("/");break}else{r.push(t);break}}else if(n===2){if(t[0]==="."){if(t[1]===".")break;if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&(t[1]==="."||t[1]==="/")){r.push("/");break}}else if(n===3&&t==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(t[0]==="."){if(t[1]==="."){if(t[2]==="/"){t=t.slice(3);continue}}else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&t[1]==="."){if(t[2]==="/"){t=t.slice(2);continue}else if(t[2]==="."&&t[3]==="/"){t=t.slice(3),r.length!==0&&r.pop();continue}}if((i=t.indexOf("/",1))===-1){r.push(t);break}else r.push(t.slice(0,i)),t=t.slice(i)}return r.join("")}function o6(e){if(e===""||e[0]==="/")return H2(e);let t=e.split("/"),r=t.length-1,i=[],n=!1;for(let o=0;o<=r;o++){let a=t[o];a==="."||a===".."?(a===".."&&(i.length!==0&&i[i.length-1]!==".."?i.pop():i.push("..")),n=o===r):i.push(a)}return n&&i[i.length-1]!==".."&&i.push(""),(i.length===0||i[0]===""||i[0].includes(":"))&&i.unshift("."),i.join("/")}var a6={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},s6=/[@/?#:]/g,u6=/[@/?#]/g;function G2(e,t){let r=t?u6:s6;return r.lastIndex=0,e.replace(r,i=>a6[i])}function J2(e,t=!1){if(e.indexOf("%")===-1)return e;let r="";for(let i=0;i<e.length;i++){if(e[i]==="%"&&i+2<e.length){let n=e.slice(i+1,i+3);if(oi(n)){let o=n.toUpperCase(),a=String.fromCharCode(parseInt(o,16));t&&k_(a)?r+=a:r+="%"+o,i+=2;continue}}r+=e[i]}return r}function c6(e){let t="";for(let r=0;r<e.length;r++){let i=e[r];if(i==="%"&&r+2<e.length){let n=e.slice(r+1,r+3);if(oi(n)){let o=n.toUpperCase(),a=String.fromCharCode(parseInt(o,16));a!=="."&&k_(a)?t+=a:t+="%"+o,r+=2;continue}}if(B2(i))t+=i;else{let n=e.charCodeAt(r);if(n<128)t+=K2(n)?i:Et[n];else if(n<55296||n>57343)t+=st(n);else if(n<=56319&&r+1<e.length){let o=e.charCodeAt(r+1);o>=56320&&o<=57343?(t+=st(65536+(n-55296<<10)+(o-56320)),r++):t+=st(65533)}else t+=st(65533)}}return t}function l6(e,t=!1){let r="",i=t&&e[0]!=="/";for(let n=0;n<e.length;n++){let o=e[n];if(o==="%"&&n+2<e.length){let a=e.slice(n+1,n+3);if(oi(a)){r+="%"+a.toUpperCase(),n+=2;continue}}if(o==="/"&&(i=!1),B2(o)&&(o!==":"||!i))r+=o;else{let a=e.charCodeAt(n);if(a<128)r+=Et[a];else if(a<55296||a>57343)r+=st(a);else if(a<=56319&&n+1<e.length){let s=e.charCodeAt(n+1);s>=56320&&s<=57343?(r+=st(65536+(a-55296<<10)+(s-56320)),n++):r+=st(65533)}else r+=st(65533)}}return r}function E_(e,t){let r="";for(let i=0;i<e.length;i++){let n=e[i];if(n==="%"&&i+2<e.length){let o=e.slice(i+1,i+3);if(oi(o)){r+="%"+o.toUpperCase(),i+=2;continue}}if(t(n))r+=n;else{let o=e.charCodeAt(i);if(o<128)r+=Et[o];else if(o<55296||o>57343)r+=st(o);else if(o<=56319&&i+1<e.length){let a=e.charCodeAt(i+1);a>=56320&&a<=57343?(r+=st(65536+(o-55296<<10)+(a-56320)),i++):r+=st(65533)}else r+=st(65533)}}return r}function X2(e){return E_(e,Kj)}function d6(e){return E_(e,I_)}function f6(e){return E_(e,I_)}function K2(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||e===42||e===43||e===45||e===46||e===47||e===64||e===95}function p6(e){let t="";for(let r=0;r<e.length;r++){let i=e[r];if(i==="%"&&r+2<e.length){let n=e.slice(r+1,r+3);if(oi(n)){let o=n.toUpperCase(),a=String.fromCharCode(parseInt(o,16));k_(a)?t+=a:t+="%"+o,r+=2;continue}}if(I_(i))t+=i;else{let n=e.charCodeAt(r);if(n<128)t+=K2(n)?i:Et[n];else if(n<55296||n>57343)t+=st(n);else if(n<=56319&&r+1<e.length){let o=e.charCodeAt(r+1);o>=56320&&o<=57343?(t+=st(65536+(n-55296<<10)+(o-56320)),r++):t+=st(65533)}else t+=st(65533)}}return t}function m6(e){let t="";for(let r=0;r<e.length;r++){if(e[r]==="%"&&r+2<e.length){let i=e.slice(r+1,r+3);if(oi(i)){t+="%"+i.toUpperCase(),r+=2;continue}}t+=escape(e[r])}return t}function h6(e){let t=[];if(e.userinfo!==void 0&&(t.push(X2(e.userinfo)),t.push("@")),e.host!==void 0){let r=e.host;if(!S_(r)){let i=x_(r);i.isIPV6!==!0&&i.isIPVFuture!==!0&&(r=J2(r,!0),i=x_(r)),i.isIPV6===!0||i.isIPVFuture===!0?r=`[${i.escapedHost}]`:r=G2(r,!1)}t.push(r)}if(typeof e.port=="number"||typeof e.port=="string"){let r=String(e.port);if(!Xj(r))throw new TypeError("URI port is malformed.");t.push(":"),t.push(r)}return t.length?t.join(""):void 0}W2.exports={nonSimpleDomain:t6,recomposeAuthority:h6,reescapeHostDelimiters:G2,normalizePercentEncoding:J2,normalizePathEncoding:c6,serializePathEncoding:l6,normalizeQueryFragmentEncoding:p6,encodeUserinfo:X2,encodeQuery:d6,encodeFragment:f6,escapePreservingEscapes:m6,removeDotSegments:H2,removeDotSegmentsRelative:o6,isIPv4:S_,isUUID:Jj,normalizeIPv6:x_,stringArrayToHexStripped:Wj}});var rI=E((WG,tI)=>{"use strict";var{isUUID:g6}=T_(),v6=/^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu,y6=["http","https","ws","wss","urn","urn:uuid"];function _6(e){return y6.indexOf(e)!==-1}function D_(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}function Y2(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function Q2(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function b6(e){return e.secure=D_(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function $6(e){if((e.port===(D_(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let t=e.resourceName.indexOf("?"),r=t===-1?e.resourceName:e.resourceName.slice(0,t);e.path=r&&r!=="/"?r:void 0,e.query=t===-1?void 0:e.resourceName.slice(t+1),e.resourceName=void 0}return e.fragment=void 0,e}function w6(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(v6);if(r&&r[0]===e.path){let i=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let n=`${i}:${t.nid||e.nid}`,o=A_(n);e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function x6(e,t){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=t.scheme||e.scheme||"urn",i=e.nid.toLowerCase(),n=`${r}:${t.nid||i}`,o=A_(n);o&&(e=o.serialize(e,t));let a=e,s=e.nss;return a.path=`${i||t.nid}:${s}`,t.skipEscape=!0,a}function S6(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!g6(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function k6(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var eI={scheme:"http",domainHost:!0,parse:Y2,serialize:Q2},I6={scheme:"https",domainHost:eI.domainHost,parse:Y2,serialize:Q2},ip={scheme:"ws",domainHost:!0,parse:b6,serialize:$6},E6={scheme:"wss",domainHost:ip.domainHost,parse:ip.parse,serialize:ip.serialize},T6={scheme:"urn",parse:w6,serialize:x6,skipNormalize:!0},D6={scheme:"urn:uuid",parse:S6,serialize:k6,skipNormalize:!0},op={http:eI,https:I6,ws:ip,wss:E6,urn:T6,"urn:uuid":D6};Object.setPrototypeOf(op,null);function A_(e){return e&&(op[e]||op[e.toLowerCase()])||void 0}tI.exports={wsIsSecure:D_,SCHEMES:op,isValidSchemeName:_6,getSchemeHandler:A_}});var vI=E((YG,lp)=>{"use strict";var{normalizeIPv6:sI,removeDotSegments:vu,removeDotSegmentsRelative:uI,recomposeAuthority:A6,normalizePercentEncoding:N_,normalizePathEncoding:N6,serializePathEncoding:nI,normalizeQueryFragmentEncoding:iI,encodeQuery:z6,encodeFragment:P6,reescapeHostDelimiters:O6,isIPv4:cI,nonSimpleDomain:C6}=T_(),{SCHEMES:lI,getSchemeHandler:z_}=rI(),dI=/^[A-Za-z][A-Za-z0-9+.-]*$/u,fI="URI scheme is malformed.",ap="URI host is malformed.",R6=/[\0-\x20"#/:<>?@[\\\]^`{|}\x7F]/u;function oI(e){let t=String(e);if(!dI.test(t))throw new TypeError(fI);return t}function j6(e,t){return typeof e=="string"?e=H6(e,t):typeof e=="object"&&(e=up(ai(e,t),t)),e}function U6(e,t,r){let i=r?Object.assign({scheme:"null"},r):{scheme:"null"},{parsed:n,malformedAuthorityOrPort:o,malformedPercentEncoding:a,malformedSchemeSpecific:s,malformedHost:u,malformedScheme:c}=sp(e,i),{parsed:l,malformedAuthorityOrPort:d,malformedPercentEncoding:m,malformedSchemeSpecific:p,malformedHost:h,malformedScheme:f}=sp(t,i);if(o||d||a||m||s||p||u||h||c||f)throw new Error(n.error||l.error||"URI is malformed.");let g=pI(n,l,i,!0),b=z_(r&&r.scheme||g.scheme),v=g.host,y=v!==void 0&&v!==""&&(cI(v)||sI(v).isIPV6);if(hI(g,r||{},b,y))throw new Error(ap);mI(g,r||{},b,y);let I=v&&v.indexOf("%")!==-1&&!new RegExp("\\P{ASCII}","u").test(v);if(g.error&&!I)throw new Error(g.error);return i.skipEscape=!0,ai(g,i)}function pI(e,t,r,i){let n={};if(i||(e=up(ai(e,r),r),t=up(ai(t,r),r)),r=r||{},!r.tolerant&&t.scheme)n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=vu(t.path||""),n.query=t.query;else{if(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=vu(t.path||""),n.query=t.query;else{if(!t.path)n.path=e.path,t.query!==void 0?n.query=t.query:n.query=e.query;else{if(t.path[0]==="/")n.path=vu(t.path);else{let o=e.userinfo!==void 0||e.host!==void 0||e.port!==void 0;o&&!e.path?n.path="/"+t.path:e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path,n.path=e.scheme===void 0&&!o&&n.path[0]!=="/"?uI(n.path):vu(n.path)}n.query=t.query}n.userinfo=e.userinfo,n.host=e.host,n.port=e.port}n.scheme=e.scheme}return n.fragment=t.fragment,n}function M6(e,t,r){let i=aI(e,r),n=aI(t,r);return i!==void 0&&n!==void 0&&i===n}function ai(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},i=Object.assign({},t),n=[];r.scheme&&(r.scheme=oI(r.scheme));let o=z_(i.scheme||r.scheme);o&&o.serialize&&o.serialize(r,i);let a=r.userinfo!==void 0||r.host!==void 0||r.port!==void 0,s=(r.scheme===void 0||i.reference==="suffix")&&!a,u=!i.skipEscape&&s;r.path!==void 0&&(i.skipEscape?r.path=N_(r.path):r.path=nI(r.path,u)),i.reference!=="suffix"&&r.scheme&&(r.scheme=oI(r.scheme),n.push(r.scheme,":"));let c=A6(r);if(c!==void 0&&(i.reference!=="suffix"&&n.push("//"),n.push(c),r.path&&r.path[0]!=="/"&&n.push("/")),r.path!==void 0){let l=r.path;!i.absolutePath&&(!o||!o.absolutePath)&&(l=s&&l[0]!=="/"?uI(l):vu(l)),s&&(l=nI(l,!0)),c===void 0&&l[0]==="/"&&l[1]==="/"&&(l="/%2F"+l.slice(2)),n.push(l)}return r.query!==void 0&&n.push("?",z6(r.query)),r.fragment!==void 0&&n.push("#",P6(r.fragment)),n.join("")}var L6=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,Z6=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,F6=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function q6(e,t){if(t[2]!==void 0&&e.path&&e.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof e.port=="number"&&(e.port<0||e.port>65535))return"URI port is malformed."}function gu(e){if(e===void 0)return!1;let t=e.indexOf("%");for(;t!==-1;){if(t+2>=e.length||!/^[\da-f]{2}$/iu.test(e.slice(t+1,t+3)))return!0;t=e.indexOf("%",t+3)}return!1}function cp(e){return e[0]==="["&&e[e.length-1]==="]"}function V6(e){let t=e[4];return gu(e[3])||t!==void 0&&!cp(t)&&gu(t)||gu(e[6])||gu(e[7])||gu(e[8])}function mI(e,t,r,i){if(hI(e,t,r,i))return e.error=e.error||ap,!0;if(!t.unicodeSupport&&(!r||!r.unicodeSupport)&&e.host&&!cp(e.host)&&(t.domainHost||r&&r.domainHost)&&i===!1&&C6(e.host)){let n;try{n=new URL("http://"+e.host)}catch(o){return e.error=e.error||"Host's domain name can not be converted to ASCII: "+o,!0}if(!B6(n))return e.error=e.error||ap,!0;e.host=n.hostname}return!1}function hI(e,t,r,i){return!!(e.host&&i===!1&&!cp(e.host)&&(t.domainHost||r&&r.domainHost)&&R6.test(e.host))}function B6(e){return e.username===""&&e.password===""&&e.port===""&&e.pathname==="/"&&e.search===""&&e.hash===""&&e.hostname!==""}function sp(e,t){let r=Object.assign({},t),i={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},n=!1,o=!1,a=!1,s=!1,u=!1,c=!1,l=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);let d=e.match(Z6);d!==null&&d[1].indexOf("\\")!==-1&&(i.error="URI authority must not contain a literal backslash.",n=!0);let m=e.match(F6);if(m!==null){let h=m[1],f=h.replace(/[\t\n\r]/g,"");f.length>=2&&(f.slice(0,2)!=="//"?(i.error=i.error||"URI authority must not contain a literal backslash.",n=!0):h.length!==f.length&&(i.error=i.error||"URI authority introducer must not contain whitespace.",n=!0))}let p=e.match(L6);if(p){i.scheme=p[1],i.userinfo=p[3],i.host=p[4],i.port=parseInt(p[5],10),i.path=p[6]||"",i.query=p[7],i.fragment=p[8],i.scheme!==void 0&&(dI.test(i.scheme)?i.scheme=i.scheme.toLowerCase():(i.error=i.error||fI,c=!0)),o=V6(p),o&&(i.error=i.error||"URI contains malformed percent-encoding."),isNaN(i.port)&&(i.port=p[5]);let h=q6(i,p);if(h!==void 0&&(i.error=i.error||h,n=!0),i.host)if(cI(i.host)===!1){let b=cp(i.host),v=i.host.indexOf("[")!==-1||i.host.indexOf("]")!==-1,y=sI(i.host);l=y.isIPV6||y.isIPVFuture===!0,u=v&&(!b||y.error===!0),i.host=l?y.host:y.host.toLowerCase(),u&&(i.error=i.error||ap,n=!0)}else l=!0;i.scheme===void 0&&i.userinfo===void 0&&i.host===void 0&&i.port===void 0&&i.query===void 0&&!i.path?i.reference="same-document":i.scheme===void 0?i.reference="relative":i.fragment===void 0?i.reference="absolute":i.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==i.reference&&(i.error=i.error||"URI is not a "+r.reference+" reference.");let f=z_(r.scheme||i.scheme);if(u||(s=mI(i,r,f,l)),e.indexOf("%")!==-1&&i.host!==void 0&&!u){let g=l?i.host:N_(i.host,!0);l||(g=N_(g.toLowerCase())),i.host=l||r.scheme!=="null"?O6(g,l):g}(!f||f&&!f.skipNormalize)&&(i.path&&(i.path=N6(i.path)),i.query&&(i.query=iI(i.query)),i.fragment&&(i.fragment=iI(i.fragment))),f&&f.parse&&(f.parse(i,r),f===lI.urn&&i.nid===void 0&&(a=!0))}else i.error=i.error||"URI can not be parsed.";return{parsed:i,malformedAuthorityOrPort:n,malformedPercentEncoding:o,malformedSchemeSpecific:a,malformedHost:s,malformedScheme:c}}function up(e,t){return sp(e,t).parsed}function H6(e,t){return gI(e,t).normalized}function gI(e,t){let{parsed:r,malformedAuthorityOrPort:i,malformedPercentEncoding:n,malformedSchemeSpecific:o,malformedHost:a,malformedScheme:s}=sp(e,t);return{normalized:i||n||o||a||s?e:ai(r,t),malformedAuthorityOrPort:i,malformedPercentEncoding:n,malformedSchemeSpecific:o,malformedHost:a,malformedScheme:s}}function aI(e,t){if(typeof e!="string"&&typeof e!="object")return;let r;try{r=typeof e=="string"?e:ai(e,t)}catch{return}let{normalized:i,malformedAuthorityOrPort:n,malformedPercentEncoding:o,malformedSchemeSpecific:a,malformedHost:s,malformedScheme:u}=gI(r,t);return n||o||a||s||u?void 0:i}var P_={SCHEMES:lI,normalize:j6,resolve:U6,resolveComponent:pI,equal:M6,serialize:ai,parse:up};lp.exports=P_;lp.exports.default=P_;lp.exports.fastUri=P_});var _I=E(O_=>{"use strict";Object.defineProperty(O_,"__esModule",{value:!0});var yI=vI();yI.code='require("ajv/dist/runtime/uri").default';O_.default=yI});var EI=E(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.CodeGen=Qe.Name=Qe.nil=Qe.stringify=Qe.str=Qe._=Qe.KeywordCxt=void 0;var G6=mu();Object.defineProperty(Qe,"KeywordCxt",{enumerable:!0,get:function(){return G6.KeywordCxt}});var Lo=te();Object.defineProperty(Qe,"_",{enumerable:!0,get:function(){return Lo._}});Object.defineProperty(Qe,"str",{enumerable:!0,get:function(){return Lo.str}});Object.defineProperty(Qe,"stringify",{enumerable:!0,get:function(){return Lo.stringify}});Object.defineProperty(Qe,"nil",{enumerable:!0,get:function(){return Lo.nil}});Object.defineProperty(Qe,"Name",{enumerable:!0,get:function(){return Lo.Name}});Object.defineProperty(Qe,"CodeGen",{enumerable:!0,get:function(){return Lo.CodeGen}});var J6=tp(),SI=hu(),X6=n_(),yu=np(),K6=te(),_u=du(),dp=lu(),R_=de(),bI=q2(),W6=_I(),kI=(e,t)=>new RegExp(e,t);kI.code="new RegExp";var Y6=["removeAdditional","useDefaults","coerceTypes"],Q6=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),eU={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},tU={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},$I=200;function rU(e){var t,r,i,n,o,a,s,u,c,l,d,m,p,h,f,g,b,v,y,I,T,z,B,Fe,se;let tt=e.strict,be=(t=e.code)===null||t===void 0?void 0:t.optimize,pr=be===!0||be===void 0?1:be||0,fi=(i=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&i!==void 0?i:kI,ha=(n=e.uriResolver)!==null&&n!==void 0?n:W6.default;return{strictSchema:(a=(o=e.strictSchema)!==null&&o!==void 0?o:tt)!==null&&a!==void 0?a:!0,strictNumbers:(u=(s=e.strictNumbers)!==null&&s!==void 0?s:tt)!==null&&u!==void 0?u:!0,strictTypes:(l=(c=e.strictTypes)!==null&&c!==void 0?c:tt)!==null&&l!==void 0?l:"log",strictTuples:(m=(d=e.strictTuples)!==null&&d!==void 0?d:tt)!==null&&m!==void 0?m:"log",strictRequired:(h=(p=e.strictRequired)!==null&&p!==void 0?p:tt)!==null&&h!==void 0?h:!1,code:e.code?{...e.code,optimize:pr,regExp:fi}:{optimize:pr,regExp:fi},loopRequired:(f=e.loopRequired)!==null&&f!==void 0?f:$I,loopEnum:(g=e.loopEnum)!==null&&g!==void 0?g:$I,meta:(b=e.meta)!==null&&b!==void 0?b:!0,messages:(v=e.messages)!==null&&v!==void 0?v:!0,inlineRefs:(y=e.inlineRefs)!==null&&y!==void 0?y:!0,schemaId:(I=e.schemaId)!==null&&I!==void 0?I:"$id",addUsedSchema:(T=e.addUsedSchema)!==null&&T!==void 0?T:!0,validateSchema:(z=e.validateSchema)!==null&&z!==void 0?z:!0,validateFormats:(B=e.validateFormats)!==null&&B!==void 0?B:!0,unicodeRegExp:(Fe=e.unicodeRegExp)!==null&&Fe!==void 0?Fe:!0,int32range:(se=e.int32range)!==null&&se!==void 0?se:!0,uriResolver:ha}}var bu=class{constructor(t={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...rU(t)};let{es5:r,lines:i}=this.opts.code;this.scope=new K6.ValueScope({scope:{},prefixes:Q6,es5:r,lines:i}),this.logger=uU(t.logger);let n=t.validateFormats;t.validateFormats=!1,this.RULES=(0,X6.getRules)(),wI.call(this,eU,t,"NOT SUPPORTED"),wI.call(this,tU,t,"DEPRECATED","warn"),this._metaOpts=aU.call(this),t.formats&&iU.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&oU.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),nU.call(this),t.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:i}=this.opts,n=bI;i==="id"&&(n={...bI},n.id=n.$id,delete n.$id),r&&t&&this.addMetaSchema(n,n[i],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let i;if(typeof t=="string"){if(i=this.getSchema(t),!i)throw new Error(`no schema with key or ref "${t}"`)}else i=this.compile(t);let n=i(r);return"$async"in i||(this.errors=i.errors),n}compile(t,r){let i=this._addSchema(t,r);return i.validate||this._compileSchemaEnv(i)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:i}=this.opts;return n.call(this,t,r);async function n(l,d){await o.call(this,l.$schema);let m=this._addSchema(l,d);return m.validate||a.call(this,m)}async function o(l){l&&!this.getSchema(l)&&await n.call(this,{$ref:l},!0)}async function a(l){try{return this._compileSchemaEnv(l)}catch(d){if(!(d instanceof SI.default))throw d;return s.call(this,d),await u.call(this,d.missingSchema),a.call(this,l)}}function s({missingSchema:l,missingRef:d}){if(this.refs[l])throw new Error(`AnySchema ${l} is loaded but ${d} cannot be resolved`)}async function u(l){let d=await c.call(this,l);this.refs[l]||await o.call(this,d.$schema),this.refs[l]||this.addSchema(d,l,r)}async function c(l){let d=this._loading[l];if(d)return d;try{return await(this._loading[l]=i(l))}finally{delete this._loading[l]}}}addSchema(t,r,i,n=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,i,n);return this}let o;if(typeof t=="object"){let{schemaId:a}=this.opts;if(o=t[a],o!==void 0&&typeof o!="string")throw new Error(`schema ${a} must be string`)}return r=(0,_u.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(t,i,r,n,!0),this}addMetaSchema(t,r,i=this.opts.validateSchema){return this.addSchema(t,r,!0,i),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let i;if(i=t.$schema,i!==void 0&&typeof i!="string")throw new Error("$schema must be a string");if(i=i||this.opts.defaultMeta||this.defaultMeta(),!i)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let n=this.validate(i,t);if(!n&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return n}getSchema(t){let r;for(;typeof(r=xI.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:i}=this.opts,n=new yu.SchemaEnv({schema:{},schemaId:i});if(r=yu.resolveSchema.call(this,n,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=xI.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let i=t[this.opts.schemaId];return i&&(i=(0,_u.normalizeId)(i),delete this.schemas[i],delete this.refs[i]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let i;if(typeof t=="string")i=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=i);else if(typeof t=="object"&&r===void 0){if(r=t,i=r.keyword,Array.isArray(i)&&!i.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(lU.call(this,i,r),!r)return(0,R_.eachItem)(i,o=>C_.call(this,o)),this;fU.call(this,r);let n={...r,type:(0,dp.getJSONTypes)(r.type),schemaType:(0,dp.getJSONTypes)(r.schemaType)};return(0,R_.eachItem)(i,n.type.length===0?o=>C_.call(this,o,n):o=>n.type.forEach(a=>C_.call(this,o,n,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let i of r.rules){let n=i.rules.findIndex(o=>o.keyword===t);n>=0&&i.rules.splice(n,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:i="data"}={}){return!t||t.length===0?"No errors":t.map(n=>`${i}${n.instancePath} ${n.message}`).reduce((n,o)=>n+r+o)}$dataMetaSchema(t,r){let i=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let n of r){let o=n.split("/").slice(1),a=t;for(let s of o)a=a[s];for(let s in i){let u=i[s];if(typeof u!="object")continue;let{$data:c}=u.definition,l=a[s];c&&l&&(a[s]=II(l))}}return t}_removeAllSchemas(t,r){for(let i in t){let n=t[i];(!r||r.test(i))&&(typeof n=="string"?delete t[i]:n&&!n.meta&&(this._cache.delete(n.schema),delete t[i]))}}_addSchema(t,r,i,n=this.opts.validateSchema,o=this.opts.addUsedSchema){let a,{schemaId:s}=this.opts;if(typeof t=="object")a=t[s];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let u=this._cache.get(t);if(u!==void 0)return u;i=(0,_u.normalizeId)(a||i);let c=_u.getSchemaRefs.call(this,t,i);return u=new yu.SchemaEnv({schema:t,schemaId:s,meta:r,baseId:i,localRefs:c}),this._cache.set(u.schema,u),o&&!i.startsWith("#")&&(i&&this._checkUnique(i),this.refs[i]=u),n&&this.validateSchema(t,!0),u}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):yu.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{yu.compileSchema.call(this,t)}finally{this.opts=r}}};bu.ValidationError=J6.default;bu.MissingRefError=SI.default;Qe.default=bu;function wI(e,t,r,i="error"){for(let n in e){let o=n;o in t&&this.logger[i](`${r}: option ${n}. ${e[o]}`)}}function xI(e){return e=(0,_u.normalizeId)(e),this.schemas[e]||this.refs[e]}function nU(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function iU(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function oU(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function aU(){let e={...this.opts};for(let t of Y6)delete e[t];return e}var sU={log(){},warn(){},error(){}};function uU(e){if(e===!1)return sU;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var cU=/^[a-z_$][a-z0-9_$:-]*$/i;function lU(e,t){let{RULES:r}=this;if((0,R_.eachItem)(e,i=>{if(r.keywords[i])throw new Error(`Keyword ${i} is already defined`);if(!cU.test(i))throw new Error(`Keyword ${i} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function C_(e,t,r){var i;let n=t?.post;if(r&&n)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,a=n?o.post:o.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;let s={keyword:e,definition:{...t,type:(0,dp.getJSONTypes)(t.type),schemaType:(0,dp.getJSONTypes)(t.schemaType)}};t.before?dU.call(this,a,s,t.before):a.rules.push(s),o.all[e]=s,(i=t.implements)===null||i===void 0||i.forEach(u=>this.addKeyword(u))}function dU(e,t,r){let i=e.rules.findIndex(n=>n.keyword===r);i>=0?e.rules.splice(i,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function fU(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=II(t)),e.validateSchema=this.compile(t,!0))}var pU={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function II(e){return{anyOf:[e,pU]}}});var TI=E(j_=>{"use strict";Object.defineProperty(j_,"__esModule",{value:!0});var mU={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};j_.default=mU});var zI=E(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.callRef=si.getValidate=void 0;var hU=hu(),DI=Xt(),Tt=te(),Zo=Mr(),AI=np(),fp=de(),gU={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:i}=e,{baseId:n,schemaEnv:o,validateName:a,opts:s,self:u}=i,{root:c}=o;if((r==="#"||r==="#/")&&n===c.baseId)return d();let l=AI.resolveRef.call(u,c,n,r);if(l===void 0)throw new hU.default(i.opts.uriResolver,n,r);if(l instanceof AI.SchemaEnv)return m(l);return p(l);function d(){if(o===c)return pp(e,a,o,o.$async);let h=t.scopeValue("root",{ref:c});return pp(e,(0,Tt._)`${h}.validate`,c,c.$async)}function m(h){let f=NI(e,h);pp(e,f,h,h.$async)}function p(h){let f=t.scopeValue("schema",s.code.source===!0?{ref:h,code:(0,Tt.stringify)(h)}:{ref:h}),g=t.name("valid"),b=e.subschema({schema:h,dataTypes:[],schemaPath:Tt.nil,topSchemaRef:f,errSchemaPath:r},g);e.mergeEvaluated(b),e.ok(g)}}};function NI(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Tt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}si.getValidate=NI;function pp(e,t,r,i){let{gen:n,it:o}=e,{allErrors:a,schemaEnv:s,opts:u}=o,c=u.passContext?Zo.default.this:Tt.nil;i?l():d();function l(){if(!s.$async)throw new Error("async schema referenced by sync schema");let h=n.let("valid");n.try(()=>{n.code((0,Tt._)`await ${(0,DI.callValidateCode)(e,t,c)}`),p(t),a||n.assign(h,!0)},f=>{n.if((0,Tt._)`!(${f} instanceof ${o.ValidationError})`,()=>n.throw(f)),m(f),a||n.assign(h,!1)}),e.ok(h)}function d(){e.result((0,DI.callValidateCode)(e,t,c),()=>p(t),()=>m(t))}function m(h){let f=(0,Tt._)`${h}.errors`;n.assign(Zo.default.vErrors,(0,Tt._)`${Zo.default.vErrors} === null ? ${f} : ${Zo.default.vErrors}.concat(${f})`),n.assign(Zo.default.errors,(0,Tt._)`${Zo.default.vErrors}.length`)}function p(h){var f;if(!o.opts.unevaluated)return;let g=(f=r?.validate)===null||f===void 0?void 0:f.evaluated;if(o.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(o.props=fp.mergeEvaluated.props(n,g.props,o.props));else{let b=n.var("props",(0,Tt._)`${h}.evaluated.props`);o.props=fp.mergeEvaluated.props(n,b,o.props,Tt.Name)}if(o.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(o.items=fp.mergeEvaluated.items(n,g.items,o.items));else{let b=n.var("items",(0,Tt._)`${h}.evaluated.items`);o.items=fp.mergeEvaluated.items(n,b,o.items,Tt.Name)}}}si.callRef=pp;si.default=gU});var PI=E(U_=>{"use strict";Object.defineProperty(U_,"__esModule",{value:!0});var vU=TI(),yU=zI(),_U=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",vU.default,yU.default];U_.default=_U});var OI=E(M_=>{"use strict";Object.defineProperty(M_,"__esModule",{value:!0});var mp=te(),xn=mp.operators,hp={maximum:{okStr:"<=",ok:xn.LTE,fail:xn.GT},minimum:{okStr:">=",ok:xn.GTE,fail:xn.LT},exclusiveMaximum:{okStr:"<",ok:xn.LT,fail:xn.GTE},exclusiveMinimum:{okStr:">",ok:xn.GT,fail:xn.LTE}},bU={message:({keyword:e,schemaCode:t})=>(0,mp.str)`must be ${hp[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,mp._)`{comparison: ${hp[e].okStr}, limit: ${t}}`},$U={keyword:Object.keys(hp),type:"number",schemaType:"number",$data:!0,error:bU,code(e){let{keyword:t,data:r,schemaCode:i}=e;e.fail$data((0,mp._)`${r} ${hp[t].fail} ${i} || isNaN(${r})`)}};M_.default=$U});var CI=E(L_=>{"use strict";Object.defineProperty(L_,"__esModule",{value:!0});var $u=te(),wU={message:({schemaCode:e})=>(0,$u.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,$u._)`{multipleOf: ${e}}`},xU={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:wU,code(e){let{gen:t,data:r,schemaCode:i,it:n}=e,o=n.opts.multipleOfPrecision,a=t.let("res"),s=o?(0,$u._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,$u._)`${a} !== parseInt(${a})`;e.fail$data((0,$u._)`(${i} === 0 || (${a} = ${r}/${i}, ${s}))`)}};L_.default=xU});var jI=E(Z_=>{"use strict";Object.defineProperty(Z_,"__esModule",{value:!0});function RI(e){let t=e.length,r=0,i=0,n;for(;i<t;)r++,n=e.charCodeAt(i++),n>=55296&&n<=56319&&i<t&&(n=e.charCodeAt(i),(n&64512)===56320&&i++);return r}Z_.default=RI;RI.code='require("ajv/dist/runtime/ucs2length").default'});var UI=E(F_=>{"use strict";Object.defineProperty(F_,"__esModule",{value:!0});var ui=te(),SU=de(),kU=jI(),IU={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,ui.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,ui._)`{limit: ${e}}`},EU={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:IU,code(e){let{keyword:t,data:r,schemaCode:i,it:n}=e,o=t==="maxLength"?ui.operators.GT:ui.operators.LT,a=n.opts.unicode===!1?(0,ui._)`${r}.length`:(0,ui._)`${(0,SU.useFunc)(e.gen,kU.default)}(${r})`;e.fail$data((0,ui._)`${a} ${o} ${i}`)}};F_.default=EU});var MI=E(q_=>{"use strict";Object.defineProperty(q_,"__esModule",{value:!0});var TU=Xt(),DU=de(),Fo=te(),AU={message:({schemaCode:e})=>(0,Fo.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Fo._)`{pattern: ${e}}`},NU={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:AU,code(e){let{gen:t,data:r,$data:i,schema:n,schemaCode:o,it:a}=e,s=a.opts.unicodeRegExp?"u":"";if(i){let{regExp:u}=a.opts.code,c=u.code==="new RegExp"?(0,Fo._)`new RegExp`:(0,DU.useFunc)(t,u),l=t.let("valid");t.try(()=>t.assign(l,(0,Fo._)`${c}(${o}, ${s}).test(${r})`),()=>t.assign(l,!1)),e.fail$data((0,Fo._)`!${l}`)}else{let u=(0,TU.usePattern)(e,n);e.fail$data((0,Fo._)`!${u}.test(${r})`)}}};q_.default=NU});var LI=E(V_=>{"use strict";Object.defineProperty(V_,"__esModule",{value:!0});var wu=te(),zU={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,wu.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,wu._)`{limit: ${e}}`},PU={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:zU,code(e){let{keyword:t,data:r,schemaCode:i}=e,n=t==="maxProperties"?wu.operators.GT:wu.operators.LT;e.fail$data((0,wu._)`Object.keys(${r}).length ${n} ${i}`)}};V_.default=PU});var ZI=E(B_=>{"use strict";Object.defineProperty(B_,"__esModule",{value:!0});var xu=Xt(),Su=te(),OU=de(),CU={message:({params:{missingProperty:e}})=>(0,Su.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Su._)`{missingProperty: ${e}}`},RU={keyword:"required",type:"object",schemaType:"array",$data:!0,error:CU,code(e){let{gen:t,schema:r,schemaCode:i,data:n,$data:o,it:a}=e,{opts:s}=a;if(!o&&r.length===0)return;let u=r.length>=s.loopRequired;if(a.allErrors?c():l(),s.strictRequired){let p=e.parentSchema.properties,{definedProperties:h}=e.it;for(let f of r)if(p?.[f]===void 0&&!h.has(f)){let g=a.schemaEnv.baseId+a.errSchemaPath,b=`required property "${f}" is not defined at "${g}" (strictRequired)`;(0,OU.checkStrictMode)(a,b,a.opts.strictRequired)}}function c(){if(u||o)e.block$data(Su.nil,d);else for(let p of r)(0,xu.checkReportMissingProp)(e,p)}function l(){let p=t.let("missing");if(u||o){let h=t.let("valid",!0);e.block$data(h,()=>m(p,h)),e.ok(h)}else t.if((0,xu.checkMissingProp)(e,r,p)),(0,xu.reportMissingProp)(e,p),t.else()}function d(){t.forOf("prop",i,p=>{e.setParams({missingProperty:p}),t.if((0,xu.noPropertyInData)(t,n,p,s.ownProperties),()=>e.error())})}function m(p,h){e.setParams({missingProperty:p}),t.forOf(p,i,()=>{t.assign(h,(0,xu.propertyInData)(t,n,p,s.ownProperties)),t.if((0,Su.not)(h),()=>{e.error(),t.break()})},Su.nil)}}};B_.default=RU});var FI=E(H_=>{"use strict";Object.defineProperty(H_,"__esModule",{value:!0});var ku=te(),jU={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,ku.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,ku._)`{limit: ${e}}`},UU={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:jU,code(e){let{keyword:t,data:r,schemaCode:i}=e,n=t==="maxItems"?ku.operators.GT:ku.operators.LT;e.fail$data((0,ku._)`${r}.length ${n} ${i}`)}};H_.default=UU});var gp=E(G_=>{"use strict";Object.defineProperty(G_,"__esModule",{value:!0});var qI=d_();qI.code='require("ajv/dist/runtime/equal").default';G_.default=qI});var VI=E(X_=>{"use strict";Object.defineProperty(X_,"__esModule",{value:!0});var J_=lu(),et=te(),MU=de(),LU=gp(),ZU={message:({params:{i:e,j:t}})=>(0,et.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,et._)`{i: ${e}, j: ${t}}`},FU={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:ZU,code(e){let{gen:t,data:r,$data:i,schema:n,parentSchema:o,schemaCode:a,it:s}=e;if(!i&&!n)return;let u=t.let("valid"),c=o.items?(0,J_.getSchemaTypes)(o.items):[];e.block$data(u,l,(0,et._)`${a} === false`),e.ok(u);function l(){let h=t.let("i",(0,et._)`${r}.length`),f=t.let("j");e.setParams({i:h,j:f}),t.assign(u,!0),t.if((0,et._)`${h} > 1`,()=>(d()?m:p)(h,f))}function d(){return c.length>0&&!c.some(h=>h==="object"||h==="array")}function m(h,f){let g=t.name("item"),b=(0,J_.checkDataTypes)(c,g,s.opts.strictNumbers,J_.DataType.Wrong),v=t.const("indices",(0,et._)`{}`);t.for((0,et._)`;${h}--;`,()=>{t.let(g,(0,et._)`${r}[${h}]`),t.if(b,(0,et._)`continue`),c.length>1&&t.if((0,et._)`typeof ${g} == "string"`,(0,et._)`${g} += "_"`),t.if((0,et._)`typeof ${v}[${g}] == "number"`,()=>{t.assign(f,(0,et._)`${v}[${g}]`),e.error(),t.assign(u,!1).break()}).code((0,et._)`${v}[${g}] = ${h}`)})}function p(h,f){let g=(0,MU.useFunc)(t,LU.default),b=t.name("outer");t.label(b).for((0,et._)`;${h}--;`,()=>t.for((0,et._)`${f} = ${h}; ${f}--;`,()=>t.if((0,et._)`${g}(${r}[${h}], ${r}[${f}])`,()=>{e.error(),t.assign(u,!1).break(b)})))}}};X_.default=FU});var BI=E(W_=>{"use strict";Object.defineProperty(W_,"__esModule",{value:!0});var K_=te(),qU=de(),VU=gp(),BU={message:"must be equal to constant",params:({schemaCode:e})=>(0,K_._)`{allowedValue: ${e}}`},HU={keyword:"const",$data:!0,error:BU,code(e){let{gen:t,data:r,$data:i,schemaCode:n,schema:o}=e;i||o&&typeof o=="object"?e.fail$data((0,K_._)`!${(0,qU.useFunc)(t,VU.default)}(${r}, ${n})`):e.fail((0,K_._)`${o} !== ${r}`)}};W_.default=HU});var HI=E(Y_=>{"use strict";Object.defineProperty(Y_,"__esModule",{value:!0});var Iu=te(),GU=de(),JU=gp(),XU={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Iu._)`{allowedValues: ${e}}`},KU={keyword:"enum",schemaType:"array",$data:!0,error:XU,code(e){let{gen:t,data:r,$data:i,schema:n,schemaCode:o,it:a}=e;if(!i&&n.length===0)throw new Error("enum must have non-empty array");let s=n.length>=a.opts.loopEnum,u,c=()=>u??(u=(0,GU.useFunc)(t,JU.default)),l;if(s||i)l=t.let("valid"),e.block$data(l,d);else{if(!Array.isArray(n))throw new Error("ajv implementation error");let p=t.const("vSchema",o);l=(0,Iu.or)(...n.map((h,f)=>m(p,f)))}e.pass(l);function d(){t.assign(l,!1),t.forOf("v",o,p=>t.if((0,Iu._)`${c()}(${r}, ${p})`,()=>t.assign(l,!0).break()))}function m(p,h){let f=n[h];return typeof f=="object"&&f!==null?(0,Iu._)`${c()}(${r}, ${p}[${h}])`:(0,Iu._)`${r} === ${f}`}}};Y_.default=KU});var GI=E(Q_=>{"use strict";Object.defineProperty(Q_,"__esModule",{value:!0});var WU=OI(),YU=CI(),QU=UI(),eM=MI(),tM=LI(),rM=ZI(),nM=FI(),iM=VI(),oM=BI(),aM=HI(),sM=[WU.default,YU.default,QU.default,eM.default,tM.default,rM.default,nM.default,iM.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},oM.default,aM.default];Q_.default=sM});var tb=E(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.validateAdditionalItems=void 0;var ci=te(),eb=de(),uM={message:({params:{len:e}})=>(0,ci.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,ci._)`{limit: ${e}}`},cM={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:uM,code(e){let{parentSchema:t,it:r}=e,{items:i}=t;if(!Array.isArray(i)){(0,eb.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}JI(e,i)}};function JI(e,t){let{gen:r,schema:i,data:n,keyword:o,it:a}=e;a.items=!0;let s=r.const("len",(0,ci._)`${n}.length`);if(i===!1)e.setParams({len:t.length}),e.pass((0,ci._)`${s} <= ${t.length}`);else if(typeof i=="object"&&!(0,eb.alwaysValidSchema)(a,i)){let c=r.var("valid",(0,ci._)`${s} <= ${t.length}`);r.if((0,ci.not)(c),()=>u(c)),e.ok(c)}function u(c){r.forRange("i",t.length,s,l=>{e.subschema({keyword:o,dataProp:l,dataPropType:eb.Type.Num},c),a.allErrors||r.if((0,ci.not)(c),()=>r.break())})}}Eu.validateAdditionalItems=JI;Eu.default=cM});var rb=E(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.validateTuple=void 0;var XI=te(),vp=de(),lM=Xt(),dM={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return KI(e,"additionalItems",t);r.items=!0,!(0,vp.alwaysValidSchema)(r,t)&&e.ok((0,lM.validateArray)(e))}};function KI(e,t,r=e.schema){let{gen:i,parentSchema:n,data:o,keyword:a,it:s}=e;l(n),s.opts.unevaluated&&r.length&&s.items!==!0&&(s.items=vp.mergeEvaluated.items(i,r.length,s.items));let u=i.name("valid"),c=i.const("len",(0,XI._)`${o}.length`);r.forEach((d,m)=>{(0,vp.alwaysValidSchema)(s,d)||(i.if((0,XI._)`${c} > ${m}`,()=>e.subschema({keyword:a,schemaProp:m,dataProp:m},u)),e.ok(u))});function l(d){let{opts:m,errSchemaPath:p}=s,h=r.length,f=h===d.minItems&&(h===d.maxItems||d[t]===!1);if(m.strictTuples&&!f){let g=`"${a}" is ${h}-tuple, but minItems or maxItems/${t} are not specified or different at path "${p}"`;(0,vp.checkStrictMode)(s,g,m.strictTuples)}}}Tu.validateTuple=KI;Tu.default=dM});var WI=E(nb=>{"use strict";Object.defineProperty(nb,"__esModule",{value:!0});var fM=rb(),pM={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,fM.validateTuple)(e,"items")};nb.default=pM});var QI=E(ib=>{"use strict";Object.defineProperty(ib,"__esModule",{value:!0});var YI=te(),mM=de(),hM=Xt(),gM=tb(),vM={message:({params:{len:e}})=>(0,YI.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,YI._)`{limit: ${e}}`},yM={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:vM,code(e){let{schema:t,parentSchema:r,it:i}=e,{prefixItems:n}=r;i.items=!0,!(0,mM.alwaysValidSchema)(i,t)&&(n?(0,gM.validateAdditionalItems)(e,n):e.ok((0,hM.validateArray)(e)))}};ib.default=yM});var eE=E(ob=>{"use strict";Object.defineProperty(ob,"__esModule",{value:!0});var Wt=te(),yp=de(),_M={message:({params:{min:e,max:t}})=>t===void 0?(0,Wt.str)`must contain at least ${e} valid item(s)`:(0,Wt.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Wt._)`{minContains: ${e}}`:(0,Wt._)`{minContains: ${e}, maxContains: ${t}}`},bM={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:_M,code(e){let{gen:t,schema:r,parentSchema:i,data:n,it:o}=e,a,s,{minContains:u,maxContains:c}=i;o.opts.next?(a=u===void 0?1:u,s=c):a=1;let l=t.const("len",(0,Wt._)`${n}.length`);if(e.setParams({min:a,max:s}),s===void 0&&a===0){(0,yp.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&a>s){(0,yp.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,yp.alwaysValidSchema)(o,r)){let f=(0,Wt._)`${l} >= ${a}`;s!==void 0&&(f=(0,Wt._)`${f} && ${l} <= ${s}`),e.pass(f);return}o.items=!0;let d=t.name("valid");s===void 0&&a===1?p(d,()=>t.if(d,()=>t.break())):a===0?(t.let(d,!0),s!==void 0&&t.if((0,Wt._)`${n}.length > 0`,m)):(t.let(d,!1),m()),e.result(d,()=>e.reset());function m(){let f=t.name("_valid"),g=t.let("count",0);p(f,()=>t.if(f,()=>h(g)))}function p(f,g){t.forRange("i",0,l,b=>{e.subschema({keyword:"contains",dataProp:b,dataPropType:yp.Type.Num,compositeRule:!0},f),g()})}function h(f){t.code((0,Wt._)`${f}++`),s===void 0?t.if((0,Wt._)`${f} >= ${a}`,()=>t.assign(d,!0).break()):(t.if((0,Wt._)`${f} > ${s}`,()=>t.assign(d,!1).break()),a===1?t.assign(d,!0):t.if((0,Wt._)`${f} >= ${a}`,()=>t.assign(d,!0)))}}};ob.default=bM});var nE=E(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.validateSchemaDeps=xr.validatePropertyDeps=xr.error=void 0;var ab=te(),$M=de(),Du=Xt();xr.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let i=t===1?"property":"properties";return(0,ab.str)`must have ${i} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:i}})=>(0,ab._)`{property: ${e},
7
+ missingProperty: ${i},
8
+ depsCount: ${t},
9
+ deps: ${r}}`};var wM={keyword:"dependencies",type:"object",schemaType:"object",error:xr.error,code(e){let[t,r]=xM(e);tE(e,t),rE(e,r)}};function xM({schema:e}){let t={},r={};for(let i in e){if(i==="__proto__")continue;let n=Array.isArray(e[i])?t:r;n[i]=e[i]}return[t,r]}function tE(e,t=e.schema){let{gen:r,data:i,it:n}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let a in t){let s=t[a];if(s.length===0)continue;let u=(0,Du.propertyInData)(r,i,a,n.opts.ownProperties);e.setParams({property:a,depsCount:s.length,deps:s.join(", ")}),n.allErrors?r.if(u,()=>{for(let c of s)(0,Du.checkReportMissingProp)(e,c)}):(r.if((0,ab._)`${u} && (${(0,Du.checkMissingProp)(e,s,o)})`),(0,Du.reportMissingProp)(e,o),r.else())}}xr.validatePropertyDeps=tE;function rE(e,t=e.schema){let{gen:r,data:i,keyword:n,it:o}=e,a=r.name("valid");for(let s in t)(0,$M.alwaysValidSchema)(o,t[s])||(r.if((0,Du.propertyInData)(r,i,s,o.opts.ownProperties),()=>{let u=e.subschema({keyword:n,schemaProp:s},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}xr.validateSchemaDeps=rE;xr.default=wM});var oE=E(sb=>{"use strict";Object.defineProperty(sb,"__esModule",{value:!0});var iE=te(),SM=de(),kM={message:"property name must be valid",params:({params:e})=>(0,iE._)`{propertyName: ${e.propertyName}}`},IM={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:kM,code(e){let{gen:t,schema:r,data:i,it:n}=e;if((0,SM.alwaysValidSchema)(n,r))return;let o=t.name("valid");t.forIn("key",i,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},o),t.if((0,iE.not)(o),()=>{e.error(!0),n.allErrors||t.break()})}),e.ok(o)}};sb.default=IM});var cb=E(ub=>{"use strict";Object.defineProperty(ub,"__esModule",{value:!0});var _p=Xt(),cr=te(),EM=Mr(),bp=de(),TM={message:"must NOT have additional properties",params:({params:e})=>(0,cr._)`{additionalProperty: ${e.additionalProperty}}`},DM={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:TM,code(e){let{gen:t,schema:r,parentSchema:i,data:n,errsCount:o,it:a}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:s,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,bp.alwaysValidSchema)(a,r))return;let c=(0,_p.allSchemaProperties)(i.properties),l=(0,_p.allSchemaProperties)(i.patternProperties);d(),e.ok((0,cr._)`${o} === ${EM.default.errors}`);function d(){t.forIn("key",n,g=>{!c.length&&!l.length?h(g):t.if(m(g),()=>h(g))})}function m(g){let b;if(c.length>8){let v=(0,bp.schemaRefOrVal)(a,i.properties,"properties");b=(0,_p.isOwnProperty)(t,v,g)}else c.length?b=(0,cr.or)(...c.map(v=>(0,cr._)`${g} === ${v}`)):b=cr.nil;return l.length&&(b=(0,cr.or)(b,...l.map(v=>(0,cr._)`${(0,_p.usePattern)(e,v)}.test(${g})`))),(0,cr.not)(b)}function p(g){t.code((0,cr._)`delete ${n}[${g}]`)}function h(g){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){p(g);return}if(r===!1){e.setParams({additionalProperty:g}),e.error(),s||t.break();return}if(typeof r=="object"&&!(0,bp.alwaysValidSchema)(a,r)){let b=t.name("valid");u.removeAdditional==="failing"?(f(g,b,!1),t.if((0,cr.not)(b),()=>{e.reset(),p(g)})):(f(g,b),s||t.if((0,cr.not)(b),()=>t.break()))}}function f(g,b,v){let y={keyword:"additionalProperties",dataProp:g,dataPropType:bp.Type.Str};v===!1&&Object.assign(y,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(y,b)}}};ub.default=DM});var uE=E(db=>{"use strict";Object.defineProperty(db,"__esModule",{value:!0});var AM=mu(),aE=Xt(),lb=de(),sE=cb(),NM={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:i,data:n,it:o}=e;o.opts.removeAdditional==="all"&&i.additionalProperties===void 0&&sE.default.code(new AM.KeywordCxt(o,sE.default,"additionalProperties"));let a=(0,aE.allSchemaProperties)(r);for(let d of a)o.definedProperties.add(d);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=lb.mergeEvaluated.props(t,(0,lb.toHash)(a),o.props));let s=a.filter(d=>!(0,lb.alwaysValidSchema)(o,r[d]));if(s.length===0)return;let u=t.name("valid");for(let d of s)c(d)?l(d):(t.if((0,aE.propertyInData)(t,n,d,o.opts.ownProperties)),l(d),o.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(d),e.ok(u);function c(d){return o.opts.useDefaults&&!o.compositeRule&&r[d].default!==void 0}function l(d){e.subschema({keyword:"properties",schemaProp:d,dataProp:d},u)}}};db.default=NM});var fE=E(fb=>{"use strict";Object.defineProperty(fb,"__esModule",{value:!0});var cE=Xt(),$p=te(),lE=de(),dE=de(),zM={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:i,parentSchema:n,it:o}=e,{opts:a}=o,s=(0,cE.allSchemaProperties)(r),u=s.filter(f=>(0,lE.alwaysValidSchema)(o,r[f]));if(s.length===0||u.length===s.length&&(!o.opts.unevaluated||o.props===!0))return;let c=a.strictSchema&&!a.allowMatchingProperties&&n.properties,l=t.name("valid");o.props!==!0&&!(o.props instanceof $p.Name)&&(o.props=(0,dE.evaluatedPropsToName)(t,o.props));let{props:d}=o;m();function m(){for(let f of s)c&&p(f),o.allErrors?h(f):(t.var(l,!0),h(f),t.if(l))}function p(f){for(let g in c)new RegExp(f).test(g)&&(0,lE.checkStrictMode)(o,`property ${g} matches pattern ${f} (use allowMatchingProperties)`)}function h(f){t.forIn("key",i,g=>{t.if((0,$p._)`${(0,cE.usePattern)(e,f)}.test(${g})`,()=>{let b=u.includes(f);b||e.subschema({keyword:"patternProperties",schemaProp:f,dataProp:g,dataPropType:dE.Type.Str},l),o.opts.unevaluated&&d!==!0?t.assign((0,$p._)`${d}[${g}]`,!0):!b&&!o.allErrors&&t.if((0,$p.not)(l),()=>t.break())})})}}};fb.default=zM});var pE=E(pb=>{"use strict";Object.defineProperty(pb,"__esModule",{value:!0});var PM=de(),OM={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:i}=e;if((0,PM.alwaysValidSchema)(i,r)){e.fail();return}let n=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},n),e.failResult(n,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};pb.default=OM});var mE=E(mb=>{"use strict";Object.defineProperty(mb,"__esModule",{value:!0});var CM=Xt(),RM={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:CM.validateUnion,error:{message:"must match a schema in anyOf"}};mb.default=RM});var hE=E(hb=>{"use strict";Object.defineProperty(hb,"__esModule",{value:!0});var wp=te(),jM=de(),UM={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,wp._)`{passingSchemas: ${e.passing}}`},MM={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:UM,code(e){let{gen:t,schema:r,parentSchema:i,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(n.opts.discriminator&&i.discriminator)return;let o=r,a=t.let("valid",!1),s=t.let("passing",null),u=t.name("_valid");e.setParams({passing:s}),t.block(c),e.result(a,()=>e.reset(),()=>e.error(!0));function c(){o.forEach((l,d)=>{let m;(0,jM.alwaysValidSchema)(n,l)?t.var(u,!0):m=e.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},u),d>0&&t.if((0,wp._)`${u} && ${a}`).assign(a,!1).assign(s,(0,wp._)`[${s}, ${d}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(s,d),m&&e.mergeEvaluated(m,wp.Name)})})}}};hb.default=MM});var gE=E(gb=>{"use strict";Object.defineProperty(gb,"__esModule",{value:!0});var LM=de(),ZM={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let n=t.name("valid");r.forEach((o,a)=>{if((0,LM.alwaysValidSchema)(i,o))return;let s=e.subschema({keyword:"allOf",schemaProp:a},n);e.ok(n),e.mergeEvaluated(s)})}};gb.default=ZM});var _E=E(vb=>{"use strict";Object.defineProperty(vb,"__esModule",{value:!0});var xp=te(),yE=de(),FM={message:({params:e})=>(0,xp.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,xp._)`{failingKeyword: ${e.ifClause}}`},qM={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:FM,code(e){let{gen:t,parentSchema:r,it:i}=e;r.then===void 0&&r.else===void 0&&(0,yE.checkStrictMode)(i,'"if" without "then" and "else" is ignored');let n=vE(i,"then"),o=vE(i,"else");if(!n&&!o)return;let a=t.let("valid",!0),s=t.name("_valid");if(u(),e.reset(),n&&o){let l=t.let("ifClause");e.setParams({ifClause:l}),t.if(s,c("then",l),c("else",l))}else n?t.if(s,c("then")):t.if((0,xp.not)(s),c("else"));e.pass(a,()=>e.error(!0));function u(){let l=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(l)}function c(l,d){return()=>{let m=e.subschema({keyword:l},s);t.assign(a,s),e.mergeValidEvaluated(m,a),d?t.assign(d,(0,xp._)`${l}`):e.setParams({ifClause:l})}}}};function vE(e,t){let r=e.schema[t];return r!==void 0&&!(0,yE.alwaysValidSchema)(e,r)}vb.default=qM});var bE=E(yb=>{"use strict";Object.defineProperty(yb,"__esModule",{value:!0});var VM=de(),BM={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,VM.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};yb.default=BM});var $E=E(_b=>{"use strict";Object.defineProperty(_b,"__esModule",{value:!0});var HM=tb(),GM=WI(),JM=rb(),XM=QI(),KM=eE(),WM=nE(),YM=oE(),QM=cb(),eL=uE(),tL=fE(),rL=pE(),nL=mE(),iL=hE(),oL=gE(),aL=_E(),sL=bE();function uL(e=!1){let t=[rL.default,nL.default,iL.default,oL.default,aL.default,sL.default,YM.default,QM.default,WM.default,eL.default,tL.default];return e?t.push(GM.default,XM.default):t.push(HM.default,JM.default),t.push(KM.default),t}_b.default=uL});var wE=E(bb=>{"use strict";Object.defineProperty(bb,"__esModule",{value:!0});var je=te(),cL={message:({schemaCode:e})=>(0,je.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,je._)`{format: ${e}}`},lL={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:cL,code(e,t){let{gen:r,data:i,$data:n,schema:o,schemaCode:a,it:s}=e,{opts:u,errSchemaPath:c,schemaEnv:l,self:d}=s;if(!u.validateFormats)return;n?m():p();function m(){let h=r.scopeValue("formats",{ref:d.formats,code:u.code.formats}),f=r.const("fDef",(0,je._)`${h}[${a}]`),g=r.let("fType"),b=r.let("format");r.if((0,je._)`typeof ${f} == "object" && !(${f} instanceof RegExp)`,()=>r.assign(g,(0,je._)`${f}.type || "string"`).assign(b,(0,je._)`${f}.validate`),()=>r.assign(g,(0,je._)`"string"`).assign(b,f)),e.fail$data((0,je.or)(v(),y()));function v(){return u.strictSchema===!1?je.nil:(0,je._)`${a} && !${b}`}function y(){let I=l.$async?(0,je._)`(${f}.async ? await ${b}(${i}) : ${b}(${i}))`:(0,je._)`${b}(${i})`,T=(0,je._)`(typeof ${b} == "function" ? ${I} : ${b}.test(${i}))`;return(0,je._)`${b} && ${b} !== true && ${g} === ${t} && !${T}`}}function p(){let h=d.formats[o];if(!h){v();return}if(h===!0)return;let[f,g,b]=y(h);f===t&&e.pass(I());function v(){if(u.strictSchema===!1){d.logger.warn(T());return}throw new Error(T());function T(){return`unknown format "${o}" ignored in schema at path "${c}"`}}function y(T){let z=T instanceof RegExp?(0,je.regexpCode)(T):u.code.formats?(0,je._)`${u.code.formats}${(0,je.getProperty)(o)}`:void 0,B=r.scopeValue("formats",{key:o,ref:T,code:z});return typeof T=="object"&&!(T instanceof RegExp)?[T.type||"string",T.validate,(0,je._)`${B}.validate`]:["string",T,B]}function I(){if(typeof h=="object"&&!(h instanceof RegExp)&&h.async){if(!l.$async)throw new Error("async format in sync schema");return(0,je._)`await ${b}(${i})`}return typeof g=="function"?(0,je._)`${b}(${i})`:(0,je._)`${b}.test(${i})`}}}};bb.default=lL});var xE=E($b=>{"use strict";Object.defineProperty($b,"__esModule",{value:!0});var dL=wE(),fL=[dL.default];$b.default=fL});var SE=E(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.contentVocabulary=qo.metadataVocabulary=void 0;qo.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];qo.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var IE=E(wb=>{"use strict";Object.defineProperty(wb,"__esModule",{value:!0});var pL=PI(),mL=GI(),hL=$E(),gL=xE(),kE=SE(),vL=[pL.default,mL.default,(0,hL.default)(),gL.default,kE.metadataVocabulary,kE.contentVocabulary];wb.default=vL});var TE=E(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});Sp.DiscrError=void 0;var EE;(function(e){e.Tag="tag",e.Mapping="mapping"})(EE||(Sp.DiscrError=EE={}))});var AE=E(Sb=>{"use strict";Object.defineProperty(Sb,"__esModule",{value:!0});var Vo=te(),xb=TE(),DE=np(),yL=hu(),_L=de(),bL={message:({params:{discrError:e,tagName:t}})=>e===xb.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Vo._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},$L={keyword:"discriminator",type:"object",schemaType:"object",error:bL,code(e){let{gen:t,data:r,schema:i,parentSchema:n,it:o}=e,{oneOf:a}=n;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let s=i.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(i.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let u=t.let("valid",!1),c=t.const("tag",(0,Vo._)`${r}${(0,Vo.getProperty)(s)}`);t.if((0,Vo._)`typeof ${c} == "string"`,()=>l(),()=>e.error(!1,{discrError:xb.DiscrError.Tag,tag:c,tagName:s})),e.ok(u);function l(){let p=m();t.if(!1);for(let h in p)t.elseIf((0,Vo._)`${c} === ${h}`),t.assign(u,d(p[h]));t.else(),e.error(!1,{discrError:xb.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}function d(p){let h=t.name("valid"),f=e.subschema({keyword:"oneOf",schemaProp:p},h);return e.mergeEvaluated(f,Vo.Name),h}function m(){var p;let h={},f=b(n),g=!0;for(let I=0;I<a.length;I++){let T=a[I];if(T?.$ref&&!(0,_L.schemaHasRulesButRef)(T,o.self.RULES)){let B=T.$ref;if(T=DE.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,B),T instanceof DE.SchemaEnv&&(T=T.schema),T===void 0)throw new yL.default(o.opts.uriResolver,o.baseId,B)}let z=(p=T?.properties)===null||p===void 0?void 0:p[s];if(typeof z!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);g=g&&(f||b(T)),v(z,I)}if(!g)throw new Error(`discriminator: "${s}" must be required`);return h;function b({required:I}){return Array.isArray(I)&&I.includes(s)}function v(I,T){if(I.const)y(I.const,T);else if(I.enum)for(let z of I.enum)y(z,T);else throw new Error(`discriminator: "properties/${s}" must have "const" or "enum"`)}function y(I,T){if(typeof I!="string"||I in h)throw new Error(`discriminator: "${s}" values must be unique strings`);h[I]=T}}}};Sb.default=$L});var NE=E((LJ,wL)=>{wL.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var Ib=E((Ae,kb)=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.MissingRefError=Ae.ValidationError=Ae.CodeGen=Ae.Name=Ae.nil=Ae.stringify=Ae.str=Ae._=Ae.KeywordCxt=Ae.Ajv=void 0;var xL=EI(),SL=IE(),kL=AE(),zE=NE(),IL=["/properties"],kp="http://json-schema.org/draft-07/schema",Bo=class extends xL.default{_addVocabularies(){super._addVocabularies(),SL.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(kL.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(zE,IL):zE;this.addMetaSchema(t,kp,!1),this.refs["http://json-schema.org/schema"]=kp}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(kp)?kp:void 0)}};Ae.Ajv=Bo;kb.exports=Ae=Bo;kb.exports.Ajv=Bo;Object.defineProperty(Ae,"__esModule",{value:!0});Ae.default=Bo;var EL=mu();Object.defineProperty(Ae,"KeywordCxt",{enumerable:!0,get:function(){return EL.KeywordCxt}});var Ho=te();Object.defineProperty(Ae,"_",{enumerable:!0,get:function(){return Ho._}});Object.defineProperty(Ae,"str",{enumerable:!0,get:function(){return Ho.str}});Object.defineProperty(Ae,"stringify",{enumerable:!0,get:function(){return Ho.stringify}});Object.defineProperty(Ae,"nil",{enumerable:!0,get:function(){return Ho.nil}});Object.defineProperty(Ae,"Name",{enumerable:!0,get:function(){return Ho.Name}});Object.defineProperty(Ae,"CodeGen",{enumerable:!0,get:function(){return Ho.CodeGen}});var TL=tp();Object.defineProperty(Ae,"ValidationError",{enumerable:!0,get:function(){return TL.default}});var DL=hu();Object.defineProperty(Ae,"MissingRefError",{enumerable:!0,get:function(){return DL.default}})});var LE=E(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.formatNames=kr.fastFormats=kr.fullFormats=void 0;function Sr(e,t){return{validate:e,compare:t}}kr.fullFormats={date:Sr(RE,Ab),time:Sr(Tb(!0),Nb),"date-time":Sr(PE(!0),UE),"iso-time":Sr(Tb(),jE),"iso-date-time":Sr(PE(),ME),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:CL,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:FL,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:RL,int32:{type:"number",validate:ML},int64:{type:"number",validate:LL},float:{type:"number",validate:CE},double:{type:"number",validate:CE},password:!0,binary:!0};kr.fastFormats={...kr.fullFormats,date:Sr(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,Ab),time:Sr(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Nb),"date-time":Sr(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,UE),"iso-time":Sr(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,jE),"iso-date-time":Sr(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,ME),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};kr.formatNames=Object.keys(kr.fullFormats);function AL(e){return e%4===0&&(e%100!==0||e%400===0)}var NL=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,zL=[0,31,28,31,30,31,30,31,31,30,31,30,31];function RE(e){let t=NL.exec(e);if(!t)return!1;let r=+t[1],i=+t[2],n=+t[3];return i>=1&&i<=12&&n>=1&&n<=(i===2&&AL(r)?29:zL[i])}function Ab(e,t){if(e&&t)return e>t?1:e<t?-1:0}var Eb=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function Tb(e){return function(r){let i=Eb.exec(r);if(!i)return!1;let n=+i[1],o=+i[2],a=+i[3],s=i[4],u=i[5]==="-"?-1:1,c=+(i[6]||0),l=+(i[7]||0);if(c>23||l>59||e&&!s)return!1;if(n<=23&&o<=59&&a<60)return!0;let d=o-l*u,m=n-c*u-(d<0?1:0);return(m===23||m===-1)&&(d===59||d===-1)&&a<61}}function Nb(e,t){if(!(e&&t))return;let r=new Date("2020-01-01T"+e).valueOf(),i=new Date("2020-01-01T"+t).valueOf();if(r&&i)return r-i}function jE(e,t){if(!(e&&t))return;let r=Eb.exec(e),i=Eb.exec(t);if(r&&i)return e=r[1]+r[2]+r[3],t=i[1]+i[2]+i[3],e>t?1:e<t?-1:0}var Db=/t|\s/i;function PE(e){let t=Tb(e);return function(i){let n=i.split(Db);return n.length===2&&RE(n[0])&&t(n[1])}}function UE(e,t){if(!(e&&t))return;let r=new Date(e).valueOf(),i=new Date(t).valueOf();if(r&&i)return r-i}function ME(e,t){if(!(e&&t))return;let[r,i]=e.split(Db),[n,o]=t.split(Db),a=Ab(r,n);if(a!==void 0)return a||Nb(i,o)}var PL=/\/|:/,OL=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function CL(e){return PL.test(e)&&OL.test(e)}var OE=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function RL(e){return OE.lastIndex=0,OE.test(e)}var jL=-(2**31),UL=2**31-1;function ML(e){return Number.isInteger(e)&&e<=UL&&e>=jL}function LL(e){return Number.isInteger(e)}function CE(){return!0}var ZL=/[^\\]\\Z/;function FL(e){if(ZL.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var ZE=E(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.formatLimitDefinition=void 0;var qL=Ib(),lr=te(),Sn=lr.operators,Ip={formatMaximum:{okStr:"<=",ok:Sn.LTE,fail:Sn.GT},formatMinimum:{okStr:">=",ok:Sn.GTE,fail:Sn.LT},formatExclusiveMaximum:{okStr:"<",ok:Sn.LT,fail:Sn.GTE},formatExclusiveMinimum:{okStr:">",ok:Sn.GT,fail:Sn.LTE}},VL={message:({keyword:e,schemaCode:t})=>(0,lr.str)`should be ${Ip[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,lr._)`{comparison: ${Ip[e].okStr}, limit: ${t}}`};Go.formatLimitDefinition={keyword:Object.keys(Ip),type:"string",schemaType:"string",$data:!0,error:VL,code(e){let{gen:t,data:r,schemaCode:i,keyword:n,it:o}=e,{opts:a,self:s}=o;if(!a.validateFormats)return;let u=new qL.KeywordCxt(o,s.RULES.all.format.definition,"format");u.$data?c():l();function c(){let m=t.scopeValue("formats",{ref:s.formats,code:a.code.formats}),p=t.const("fmt",(0,lr._)`${m}[${u.schemaCode}]`);e.fail$data((0,lr.or)((0,lr._)`typeof ${p} != "object"`,(0,lr._)`${p} instanceof RegExp`,(0,lr._)`typeof ${p}.compare != "function"`,d(p)))}function l(){let m=u.schema,p=s.formats[m];if(!p||p===!0)return;if(typeof p!="object"||p instanceof RegExp||typeof p.compare!="function")throw new Error(`"${n}": format "${m}" does not define "compare" function`);let h=t.scopeValue("formats",{key:m,ref:p,code:a.code.formats?(0,lr._)`${a.code.formats}${(0,lr.getProperty)(m)}`:void 0});e.fail$data(d(h))}function d(m){return(0,lr._)`${m}.compare(${r}, ${i}) ${Ip[n].fail} 0`}},dependencies:["format"]};var BL=e=>(e.addKeyword(Go.formatLimitDefinition),e);Go.default=BL});var BE=E((Au,VE)=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});var Jo=LE(),HL=ZE(),zb=te(),FE=new zb.Name("fullFormats"),GL=new zb.Name("fastFormats"),Pb=(e,t={keywords:!0})=>{if(Array.isArray(t))return qE(e,t,Jo.fullFormats,FE),e;let[r,i]=t.mode==="fast"?[Jo.fastFormats,GL]:[Jo.fullFormats,FE],n=t.formats||Jo.formatNames;return qE(e,n,r,i),t.keywords&&(0,HL.default)(e),e};Pb.get=(e,t="full")=>{let i=(t==="fast"?Jo.fastFormats:Jo.fullFormats)[e];if(!i)throw new Error(`Unknown format "${e}"`);return i};function qE(e,t,r,i){var n,o;(n=(o=e.opts.code).formats)!==null&&n!==void 0||(o.formats=(0,zb._)`require("ajv-formats/dist/formats").${i}`);for(let a of t)e.addFormat(a,r[a])}VE.exports=Au=Pb;Object.defineProperty(Au,"__esModule",{value:!0});Au.default=Pb});var fT=E((zX,dT)=>{dT.exports=lT;lT.sync=p3;var uT=Jr("fs");function f3(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var i=0;i<r.length;i++){var n=r[i].toLowerCase();if(n&&e.substr(-n.length).toLowerCase()===n)return!0}return!1}function cT(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:f3(t,r)}function lT(e,t,r){uT.stat(e,function(i,n){r(i,i?!1:cT(n,e,t))})}function p3(e,t){return cT(uT.statSync(e),e,t)}});var vT=E((PX,gT)=>{gT.exports=mT;mT.sync=m3;var pT=Jr("fs");function mT(e,t,r){pT.stat(e,function(i,n){r(i,i?!1:hT(n,t))})}function m3(e,t){return hT(pT.statSync(e),t)}function hT(e,t){return e.isFile()&&h3(e,t)}function h3(e,t){var r=e.mode,i=e.uid,n=e.gid,o=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),a=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),s=parseInt("100",8),u=parseInt("010",8),c=parseInt("001",8),l=s|u,d=r&c||r&u&&n===a||r&s&&i===o||r&l&&o===0;return d}});var _T=E((CX,yT)=>{var OX=Jr("fs"),Up;process.platform==="win32"||global.TESTING_WINDOWS?Up=fT():Up=vT();yT.exports=Ub;Ub.sync=g3;function Ub(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(i,n){Ub(e,t||{},function(o,a){o?n(o):i(a)})})}Up(e,t||{},function(i,n){i&&(i.code==="EACCES"||t&&t.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function g3(e,t){try{return Up.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var IT=E((RX,kT)=>{var Xo=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",bT=Jr("path"),v3=Xo?";":":",$T=_T(),wT=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),xT=(e,t)=>{let r=t.colon||v3,i=e.match(/\//)||Xo&&e.match(/\\/)?[""]:[...Xo?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],n=Xo?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=Xo?n.split(r):[""];return Xo&&e.indexOf(".")!==-1&&o[0]!==""&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:n}},ST=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:i,pathExt:n,pathExtExe:o}=xT(e,t),a=[],s=c=>new Promise((l,d)=>{if(c===i.length)return t.all&&a.length?l(a):d(wT(e));let m=i[c],p=/^".*"$/.test(m)?m.slice(1,-1):m,h=bT.join(p,e),f=!p&&/^\.[\\\/]/.test(e)?e.slice(0,2)+h:h;l(u(f,c,0))}),u=(c,l,d)=>new Promise((m,p)=>{if(d===n.length)return m(s(l+1));let h=n[d];$T(c+h,{pathExt:o},(f,g)=>{if(!f&&g)if(t.all)a.push(c+h);else return m(c+h);return m(u(c,l,d+1))})});return r?s(0).then(c=>r(null,c),r):s(0)},y3=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=xT(e,t),o=[];for(let a=0;a<r.length;a++){let s=r[a],u=/^".*"$/.test(s)?s.slice(1,-1):s,c=bT.join(u,e),l=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c;for(let d=0;d<i.length;d++){let m=l+i[d];try{if($T.sync(m,{pathExt:n}))if(t.all)o.push(m);else return m}catch{}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw wT(e)};kT.exports=ST;ST.sync=y3});var TT=E((jX,Mb)=>{"use strict";var ET=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};Mb.exports=ET;Mb.exports.default=ET});var zT=E((UX,NT)=>{"use strict";var DT=Jr("path"),_3=IT(),b3=TT();function AT(e,t){let r=e.options.env||process.env,i=process.cwd(),n=e.options.cwd!=null,o=n&&process.chdir!==void 0&&!process.chdir.disabled;if(o)try{process.chdir(e.options.cwd)}catch{}let a;try{a=_3.sync(e.command,{path:r[b3({env:r})],pathExt:t?DT.delimiter:void 0})}catch{}finally{o&&process.chdir(i)}return a&&(a=DT.resolve(n?e.options.cwd:"",a)),a}function $3(e){return AT(e)||AT(e,!0)}NT.exports=$3});var PT=E((MX,Zb)=>{"use strict";var Lb=/([()\][%!^"`<>&|;, *?])/g;function w3(e){return e=e.replace(Lb,"^$1"),e}function x3(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(Lb,"^$1"),t&&(e=e.replace(Lb,"^$1")),e}Zb.exports.command=w3;Zb.exports.argument=x3});var CT=E((LX,OT)=>{"use strict";OT.exports=/^#!(.*)/});var jT=E((ZX,RT)=>{"use strict";var S3=CT();RT.exports=(e="")=>{let t=e.match(S3);if(!t)return null;let[r,i]=t[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var MT=E((FX,UT)=>{"use strict";var Fb=Jr("fs"),k3=jT();function I3(e){let r=Buffer.alloc(150),i;try{i=Fb.openSync(e,"r"),Fb.readSync(i,r,0,150,0),Fb.closeSync(i)}catch{}return k3(r.toString())}UT.exports=I3});var qT=E((qX,FT)=>{"use strict";var E3=Jr("path"),LT=zT(),ZT=PT(),T3=MT(),D3=process.platform==="win32",A3=/\.(?:com|exe)$/i,N3=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function z3(e){e.file=LT(e);let t=e.file&&T3(e.file);return t?(e.args.unshift(e.file),e.command=t,LT(e)):e.file}function P3(e){if(!D3)return e;let t=z3(e),r=!A3.test(t);if(e.options.forceShell||r){let i=N3.test(t);e.command=E3.normalize(e.command),e.command=ZT.command(e.command),e.args=e.args.map(o=>ZT.argument(o,i));let n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function O3(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let i={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?i:P3(i)}FT.exports=O3});var HT=E((VX,BT)=>{"use strict";var qb=process.platform==="win32";function Vb(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function C3(e,t){if(!qb)return;let r=e.emit;e.emit=function(i,n){if(i==="exit"){let o=VT(n,t);if(o)return r.call(e,"error",o)}return r.apply(e,arguments)}}function VT(e,t){return qb&&e===1&&!t.file?Vb(t.original,"spawn"):null}function R3(e,t){return qb&&e===1&&!t.file?Vb(t.original,"spawnSync"):null}BT.exports={hookChildProcess:C3,verifyENOENT:VT,verifyENOENTSync:R3,notFoundError:Vb}});var XT=E((BX,Ko)=>{"use strict";var GT=Jr("child_process"),Bb=qT(),Hb=HT();function JT(e,t,r){let i=Bb(e,t,r),n=GT.spawn(i.command,i.args,i.options);return Hb.hookChildProcess(n,i),n}function j3(e,t,r){let i=Bb(e,t,r),n=GT.spawnSync(i.command,i.args,i.options);return n.error=n.error||Hb.verifyENOENTSync(n.status,i),n}Ko.exports=JT;Ko.exports.spawn=JT;Ko.exports.sync=j3;Ko.exports._parse=Bb;Ko.exports._enoent=Hb});var oD=E((Ou,iD)=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.default=void 0;var sK=Ou.default=(function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(i,n){this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push(n)},t.off=function(i,n){if(!this.listeners[i])return!1;var o=this.listeners[i].indexOf(n);return this.listeners[i]=this.listeners[i].slice(0),this.listeners[i].splice(o,1),o>-1},t.trigger=function(i){var n=this.listeners[i];if(n)if(arguments.length===2)for(var o=n.length,a=0;a<o;++a)n[a].call(this,arguments[1]);else for(var s=Array.prototype.slice.call(arguments,1),u=n.length,c=0;c<u;++c)n[c].apply(this,s)},t.dispose=function(){this.listeners={}},t.pipe=function(i){this.on("data",function(n){i.push(n)})},e})();iD.exports=Ou.default});var aD=E((uK,Fr)=>{function Kb(){return Fr.exports=Kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Fr.exports.__esModule=!0,Fr.exports.default=Fr.exports,Kb.apply(null,arguments)}Fr.exports=Kb,Fr.exports.__esModule=!0,Fr.exports.default=Fr.exports});var Wb=E((cK,Cu)=>{function J3(e){return e&&e.__esModule?e:{default:e}}Cu.exports=J3,Cu.exports.__esModule=!0,Cu.exports.default=Cu.exports});var Zp=E((lK,sD)=>{var Ru;typeof window<"u"?Ru=window:typeof global<"u"?Ru=global:typeof self<"u"?Ru=self:Ru={};sD.exports=Ru});var Yb=E((Fp,cD)=>{"use strict";var X3=Wb();Object.defineProperty(Fp,"__esModule",{value:!0});Fp.default=W3;var uD=X3(Zp()),K3=function(t){return uD.default.atob?uD.default.atob(t):Buffer.from(t,"base64").toString("binary")};function W3(e){for(var t=K3(e),r=new Uint8Array(t.length),i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r}cD.exports=Fp.default});var dD=E(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});var Y3=oD(),Q3=aD(),eZ=Yb();function r$(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var n$=r$(Y3),qp=r$(Q3),tZ=r$(eZ),Vp=class extends n$.default{constructor(){super(),this.buffer=""}push(t){let r;for(this.buffer+=t,r=this.buffer.indexOf(`
10
+ `);r>-1;r=this.buffer.indexOf(`
11
+ `))this.trigger("data",this.buffer.substring(0,r)),this.buffer=this.buffer.substring(r+1)}},rZ=" ",Qb=function(e){let t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),r={};return t[1]&&(r.length=parseInt(t[1],10)),t[2]&&(r.offset=parseInt(t[2],10)),r},nZ=function(){let r="(?:"+"[^=]*"+")=(?:"+'"[^"]*"|[^,]*'+")";return new RegExp("(?:^|,)("+r+")")},yt=function(e){let t={};if(!e)return t;let r=e.split(nZ()),i=r.length,n;for(;i--;)r[i]!==""&&(n=/([^=]*)=(.*)/.exec(r[i]).slice(1),n[0]=n[0].replace(/^\s+|\s+$/g,""),n[1]=n[1].replace(/^\s+|\s+$/g,""),n[1]=n[1].replace(/^['"](.*)['"]$/g,"$1"),t[n[0]]=n[1]);return t},lD=e=>{let t=e.split("x"),r={};return t[0]&&(r.width=parseInt(t[0],10)),t[1]&&(r.height=parseInt(t[1],10)),r},Bp=class extends n$.default{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(t){let r,i;if(t=t.trim(),t.length===0)return;if(t[0]!=="#"){this.trigger("data",{type:"uri",uri:t});return}this.tagMappers.reduce((o,a)=>{let s=a(t);return s===t?o:o.concat([s])},[t]).forEach(o=>{for(let a=0;a<this.customParsers.length;a++)if(this.customParsers[a].call(this,o))return;if(o.indexOf("#EXT")!==0){this.trigger("data",{type:"comment",text:o.slice(1)});return}if(o=o.replace("\r",""),r=/^#EXTM3U/.exec(o),r){this.trigger("data",{type:"tag",tagType:"m3u"});return}if(r=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(o),r){i={type:"tag",tagType:"inf"},r[1]&&(i.duration=parseFloat(r[1])),r[2]&&(i.title=r[2]),this.trigger("data",i);return}if(r=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(o),r){i={type:"tag",tagType:"targetduration"},r[1]&&(i.duration=parseInt(r[1],10)),this.trigger("data",i);return}if(r=/^#EXT-X-VERSION:([0-9.]*)?/.exec(o),r){i={type:"tag",tagType:"version"},r[1]&&(i.version=parseInt(r[1],10)),this.trigger("data",i);return}if(r=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(o),r){i={type:"tag",tagType:"media-sequence"},r[1]&&(i.number=parseInt(r[1],10)),this.trigger("data",i);return}if(r=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(o),r){i={type:"tag",tagType:"discontinuity-sequence"},r[1]&&(i.number=parseInt(r[1],10)),this.trigger("data",i);return}if(r=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(o),r){i={type:"tag",tagType:"playlist-type"},r[1]&&(i.playlistType=r[1]),this.trigger("data",i);return}if(r=/^#EXT-X-BYTERANGE:(.*)?$/.exec(o),r){i=qp.default(Qb(r[1]),{type:"tag",tagType:"byterange"}),this.trigger("data",i);return}if(r=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(o),r){i={type:"tag",tagType:"allow-cache"},r[1]&&(i.allowed=!/NO/.test(r[1])),this.trigger("data",i);return}if(r=/^#EXT-X-MAP:(.*)$/.exec(o),r){if(i={type:"tag",tagType:"map"},r[1]){let a=yt(r[1]);a.URI&&(i.uri=a.URI),a.BYTERANGE&&(i.byterange=Qb(a.BYTERANGE))}this.trigger("data",i);return}if(r=/^#EXT-X-STREAM-INF:(.*)$/.exec(o),r){i={type:"tag",tagType:"stream-inf"},r[1]&&(i.attributes=yt(r[1]),i.attributes.RESOLUTION&&(i.attributes.RESOLUTION=lD(i.attributes.RESOLUTION)),i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes["FRAME-RATE"]&&(i.attributes["FRAME-RATE"]=parseFloat(i.attributes["FRAME-RATE"])),i.attributes["PROGRAM-ID"]&&(i.attributes["PROGRAM-ID"]=parseInt(i.attributes["PROGRAM-ID"],10))),this.trigger("data",i);return}if(r=/^#EXT-X-MEDIA:(.*)$/.exec(o),r){i={type:"tag",tagType:"media"},r[1]&&(i.attributes=yt(r[1])),this.trigger("data",i);return}if(r=/^#EXT-X-ENDLIST/.exec(o),r){this.trigger("data",{type:"tag",tagType:"endlist"});return}if(r=/^#EXT-X-DISCONTINUITY/.exec(o),r){this.trigger("data",{type:"tag",tagType:"discontinuity"});return}if(r=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(o),r){i={type:"tag",tagType:"program-date-time"},r[1]&&(i.dateTimeString=r[1],i.dateTimeObject=new Date(r[1])),this.trigger("data",i);return}if(r=/^#EXT-X-KEY:(.*)$/.exec(o),r){i={type:"tag",tagType:"key"},r[1]&&(i.attributes=yt(r[1]),i.attributes.IV&&(i.attributes.IV.substring(0,2).toLowerCase()==="0x"&&(i.attributes.IV=i.attributes.IV.substring(2)),i.attributes.IV=i.attributes.IV.match(/.{8}/g),i.attributes.IV[0]=parseInt(i.attributes.IV[0],16),i.attributes.IV[1]=parseInt(i.attributes.IV[1],16),i.attributes.IV[2]=parseInt(i.attributes.IV[2],16),i.attributes.IV[3]=parseInt(i.attributes.IV[3],16),i.attributes.IV=new Uint32Array(i.attributes.IV))),this.trigger("data",i);return}if(r=/^#EXT-X-START:(.*)$/.exec(o),r){i={type:"tag",tagType:"start"},r[1]&&(i.attributes=yt(r[1]),i.attributes["TIME-OFFSET"]=parseFloat(i.attributes["TIME-OFFSET"]),i.attributes.PRECISE=/YES/.test(i.attributes.PRECISE)),this.trigger("data",i);return}if(r=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(o),r){i={type:"tag",tagType:"cue-out-cont"},r[1]?i.data=r[1]:i.data="",this.trigger("data",i);return}if(r=/^#EXT-X-CUE-OUT:(.*)?$/.exec(o),r){i={type:"tag",tagType:"cue-out"},r[1]?i.data=r[1]:i.data="",this.trigger("data",i);return}if(r=/^#EXT-X-CUE-IN:?(.*)?$/.exec(o),r){i={type:"tag",tagType:"cue-in"},r[1]?i.data=r[1]:i.data="",this.trigger("data",i);return}if(r=/^#EXT-X-SKIP:(.*)$/.exec(o),r&&r[1]){i={type:"tag",tagType:"skip"},i.attributes=yt(r[1]),i.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(i.attributes["SKIPPED-SEGMENTS"]=parseInt(i.attributes["SKIPPED-SEGMENTS"],10)),i.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(i.attributes["RECENTLY-REMOVED-DATERANGES"]=i.attributes["RECENTLY-REMOVED-DATERANGES"].split(rZ)),this.trigger("data",i);return}if(r=/^#EXT-X-PART:(.*)$/.exec(o),r&&r[1]){i={type:"tag",tagType:"part"},i.attributes=yt(r[1]),["DURATION"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=parseFloat(i.attributes[a]))}),["INDEPENDENT","GAP"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=/YES/.test(i.attributes[a]))}),i.attributes.hasOwnProperty("BYTERANGE")&&(i.attributes.byterange=Qb(i.attributes.BYTERANGE)),this.trigger("data",i);return}if(r=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(o),r&&r[1]){i={type:"tag",tagType:"server-control"},i.attributes=yt(r[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=parseFloat(i.attributes[a]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=/YES/.test(i.attributes[a]))}),this.trigger("data",i);return}if(r=/^#EXT-X-PART-INF:(.*)$/.exec(o),r&&r[1]){i={type:"tag",tagType:"part-inf"},i.attributes=yt(r[1]),["PART-TARGET"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=parseFloat(i.attributes[a]))}),this.trigger("data",i);return}if(r=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(o),r&&r[1]){i={type:"tag",tagType:"preload-hint"},i.attributes=yt(r[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(a){if(i.attributes.hasOwnProperty(a)){i.attributes[a]=parseInt(i.attributes[a],10);let s=a==="BYTERANGE-LENGTH"?"length":"offset";i.attributes.byterange=i.attributes.byterange||{},i.attributes.byterange[s]=i.attributes[a],delete i.attributes[a]}}),this.trigger("data",i);return}if(r=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(o),r&&r[1]){i={type:"tag",tagType:"rendition-report"},i.attributes=yt(r[1]),["LAST-MSN","LAST-PART"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=parseInt(i.attributes[a],10))}),this.trigger("data",i);return}if(r=/^#EXT-X-DATERANGE:(.*)$/.exec(o),r&&r[1]){i={type:"tag",tagType:"daterange"},i.attributes=yt(r[1]),["ID","CLASS"].forEach(function(s){i.attributes.hasOwnProperty(s)&&(i.attributes[s]=String(i.attributes[s]))}),["START-DATE","END-DATE"].forEach(function(s){i.attributes.hasOwnProperty(s)&&(i.attributes[s]=new Date(i.attributes[s]))}),["DURATION","PLANNED-DURATION"].forEach(function(s){i.attributes.hasOwnProperty(s)&&(i.attributes[s]=parseFloat(i.attributes[s]))}),["END-ON-NEXT"].forEach(function(s){i.attributes.hasOwnProperty(s)&&(i.attributes[s]=/YES/i.test(i.attributes[s]))}),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach(function(s){i.attributes.hasOwnProperty(s)&&(i.attributes[s]=i.attributes[s].toString(16))});let a=/^X-([A-Z]+-)+[A-Z]+$/;for(let s in i.attributes){if(!a.test(s))continue;let u=/[0-9A-Fa-f]{6}/g.test(i.attributes[s]),c=/^\d+(\.\d+)?$/.test(i.attributes[s]);i.attributes[s]=u?i.attributes[s].toString(16):c?parseFloat(i.attributes[s]):String(i.attributes[s])}this.trigger("data",i);return}if(r=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(o),r){this.trigger("data",{type:"tag",tagType:"independent-segments"});return}if(r=/^#EXT-X-I-FRAMES-ONLY/.exec(o),r){this.trigger("data",{type:"tag",tagType:"i-frames-only"});return}if(r=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(o),r){i={type:"tag",tagType:"content-steering"},i.attributes=yt(r[1]),this.trigger("data",i);return}if(r=/^#EXT-X-I-FRAME-STREAM-INF:(.*)$/.exec(o),r){i={type:"tag",tagType:"i-frame-playlist"},i.attributes=yt(r[1]),i.attributes.URI&&(i.uri=i.attributes.URI),i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes.RESOLUTION&&(i.attributes.RESOLUTION=lD(i.attributes.RESOLUTION)),i.attributes["AVERAGE-BANDWIDTH"]&&(i.attributes["AVERAGE-BANDWIDTH"]=parseInt(i.attributes["AVERAGE-BANDWIDTH"],10)),i.attributes["FRAME-RATE"]&&(i.attributes["FRAME-RATE"]=parseFloat(i.attributes["FRAME-RATE"])),this.trigger("data",i);return}if(r=/^#EXT-X-DEFINE:(.*)$/.exec(o),r){i={type:"tag",tagType:"define"},i.attributes=yt(r[1]),this.trigger("data",i);return}this.trigger("data",{type:"tag",data:o.slice(4)})})}addParser({expression:t,customType:r,dataParser:i,segment:n}){typeof i!="function"&&(i=o=>o),this.customParsers.push(o=>{if(t.exec(o))return this.trigger("data",{type:"custom",data:i(o),customType:r,segment:n}),!0})}addTagMapper({expression:t,map:r}){let i=n=>t.test(n)?r(n):n;this.tagMappers.push(i)}},iZ=e=>e.toLowerCase().replace(/-(\w)/g,t=>t[1].toUpperCase()),Tn=function(e){let t={};return Object.keys(e).forEach(function(r){t[iZ(r)]=e[r]}),t},e$=function(e){let{serverControl:t,targetDuration:r,partTargetDuration:i}=e;if(!t)return;let n="#EXT-X-SERVER-CONTROL",o="holdBack",a="partHoldBack",s=r&&r*3,u=i&&i*2;r&&!t.hasOwnProperty(o)&&(t[o]=s,this.trigger("info",{message:`${n} defaulting HOLD-BACK to targetDuration * 3 (${s}).`})),s&&t[o]<s&&(this.trigger("warn",{message:`${n} clamping HOLD-BACK (${t[o]}) to targetDuration * 3 (${s})`}),t[o]=s),i&&!t.hasOwnProperty(a)&&(t[a]=i*3,this.trigger("info",{message:`${n} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${t[a]}).`})),i&&t[a]<u&&(this.trigger("warn",{message:`${n} clamping PART-HOLD-BACK (${t[a]}) to partTargetDuration * 2 (${u}).`}),t[a]=u)},t$=class extends n$.default{constructor(t={}){super(),this.lineStream=new Vp,this.parseStream=new Bp,this.lineStream.pipe(this.parseStream),this.mainDefinitions=t.mainDefinitions||{},this.params=new URL(t.uri,"https://a.com").searchParams,this.lastProgramDateTime=null;let r=this,i=[],n={},o,a,s=!1,u=function(){},c={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},l="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",d=0;this.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],iFramePlaylists:[],segments:[]};let m=0,p=0,h={};this.on("end",()=>{n.uri||!n.parts&&!n.preloadHints||(!n.map&&o&&(n.map=o),!n.key&&a&&(n.key=a),!n.timeline&&typeof d=="number"&&(n.timeline=d),this.manifest.preloadSegment=n)}),this.parseStream.on("data",function(f){let g,b;if(r.manifest.definitions){for(let v in r.manifest.definitions)if(f.uri&&(f.uri=f.uri.replace(`{$${v}}`,r.manifest.definitions[v])),f.attributes)for(let y in f.attributes)typeof f.attributes[y]=="string"&&(f.attributes[y]=f.attributes[y].replace(`{$${v}}`,r.manifest.definitions[v]))}({tag(){({version(){f.version&&(this.manifest.version=f.version)},"allow-cache"(){this.manifest.allowCache=f.allowed,"allowed"in f||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){let v={};"length"in f&&(n.byterange=v,v.length=f.length,"offset"in f||(f.offset=m)),"offset"in f&&(n.byterange=v,v.offset=f.offset),m=v.offset+v.length},endlist(){this.manifest.endList=!0},inf(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),f.title&&(n.title=f.title),f.duration>0&&(n.duration=f.duration),f.duration===0&&(n.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=i},key(){if(!f.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if(f.attributes.METHOD==="NONE"){a=null;return}if(!f.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}if(f.attributes.KEYFORMAT==="com.apple.streamingkeydelivery"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:f.attributes};return}if(f.attributes.KEYFORMAT==="com.microsoft.playready"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.microsoft.playready"]={uri:f.attributes.URI};return}if(f.attributes.KEYFORMAT===l){if(["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(f.attributes.METHOD)===-1){this.trigger("warn",{message:"invalid key method provided for Widevine"});return}if(f.attributes.METHOD==="SAMPLE-AES-CENC"&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),f.attributes.URI.substring(0,23)!=="data:text/plain;base64,"){this.trigger("warn",{message:"invalid key URI provided for Widevine"});return}if(!(f.attributes.KEYID&&f.attributes.KEYID.substring(0,2)==="0x")){this.trigger("warn",{message:"invalid key ID provided for Widevine"});return}this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:f.attributes.KEYFORMAT,keyId:f.attributes.KEYID.substring(2)},pssh:tZ.default(f.attributes.URI.split(",")[1])};return}f.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),a={method:f.attributes.METHOD||"AES-128",uri:f.attributes.URI},typeof f.attributes.IV<"u"&&(a.iv=f.attributes.IV)},"media-sequence"(){if(!isFinite(f.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+f.number});return}this.manifest.mediaSequence=f.number},"discontinuity-sequence"(){if(!isFinite(f.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+f.number});return}this.manifest.discontinuitySequence=f.number,d=f.number},"playlist-type"(){if(!/VOD|EVENT/.test(f.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+f.playlist});return}this.manifest.playlistType=f.playlistType},map(){o={},f.uri&&(o.uri=f.uri),f.byterange&&(o.byterange=f.byterange),a&&(o.key=a)},"stream-inf"(){if(this.manifest.playlists=i,this.manifest.mediaGroups=this.manifest.mediaGroups||c,!f.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}n.attributes||(n.attributes={}),qp.default(n.attributes,f.attributes)},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||c,!(f.attributes&&f.attributes.TYPE&&f.attributes["GROUP-ID"]&&f.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}let v=this.manifest.mediaGroups[f.attributes.TYPE];v[f.attributes["GROUP-ID"]]=v[f.attributes["GROUP-ID"]]||{},g=v[f.attributes["GROUP-ID"]],b={default:/yes/i.test(f.attributes.DEFAULT)},b.default?b.autoselect=!0:b.autoselect=/yes/i.test(f.attributes.AUTOSELECT),f.attributes.LANGUAGE&&(b.language=f.attributes.LANGUAGE),f.attributes.URI&&(b.uri=f.attributes.URI),f.attributes["INSTREAM-ID"]&&(b.instreamId=f.attributes["INSTREAM-ID"]),f.attributes.CHARACTERISTICS&&(b.characteristics=f.attributes.CHARACTERISTICS),f.attributes.FORCED&&(b.forced=/yes/i.test(f.attributes.FORCED)),g[f.attributes.NAME]=b},discontinuity(){d+=1,n.discontinuity=!0,this.manifest.discontinuityStarts.push(i.length)},"program-date-time"(){typeof this.manifest.dateTimeString>"u"&&(this.manifest.dateTimeString=f.dateTimeString,this.manifest.dateTimeObject=f.dateTimeObject),n.dateTimeString=f.dateTimeString,n.dateTimeObject=f.dateTimeObject;let{lastProgramDateTime:v}=this;this.lastProgramDateTime=new Date(f.dateTimeString).getTime(),v===null&&this.manifest.segments.reduceRight((y,I)=>(I.programDateTime=y-I.duration*1e3,I.programDateTime),this.lastProgramDateTime)},targetduration(){if(!isFinite(f.duration)||f.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+f.duration});return}this.manifest.targetDuration=f.duration,e$.call(this,this.manifest)},start(){if(!f.attributes||isNaN(f.attributes["TIME-OFFSET"])){this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});return}this.manifest.start={timeOffset:f.attributes["TIME-OFFSET"],precise:f.attributes.PRECISE}},"cue-out"(){n.cueOut=f.data},"cue-out-cont"(){n.cueOutCont=f.data},"cue-in"(){n.cueIn=f.data},skip(){this.manifest.skip=Tn(f.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",f.attributes,["SKIPPED-SEGMENTS"])},part(){s=!0;let v=this.manifest.segments.length,y=Tn(f.attributes);n.parts=n.parts||[],n.parts.push(y),y.byterange&&(y.byterange.hasOwnProperty("offset")||(y.byterange.offset=p),p=y.byterange.offset+y.byterange.length);let I=n.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${I} for segment #${v}`,f.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((T,z)=>{T.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${z} lacks required attribute(s): LAST-PART`})})},"server-control"(){let v=this.manifest.serverControl=Tn(f.attributes);v.hasOwnProperty("canBlockReload")||(v.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),e$.call(this,this.manifest),v.canSkipDateranges&&!v.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint"(){let v=this.manifest.segments.length,y=Tn(f.attributes),I=y.type&&y.type==="PART";n.preloadHints=n.preloadHints||[],n.preloadHints.push(y),y.byterange&&(y.byterange.hasOwnProperty("offset")||(y.byterange.offset=I?p:0,I&&(p=y.byterange.offset+y.byterange.length)));let T=n.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${T} for segment #${v}`,f.attributes,["TYPE","URI"]),!!y.type)for(let z=0;z<n.preloadHints.length-1;z++){let B=n.preloadHints[z];B.type&&B.type===y.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${T} for segment #${v} has the same TYPE ${y.type} as preload hint #${z}`})}},"rendition-report"(){let v=Tn(f.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(v);let y=this.manifest.renditionReports.length-1,I=["LAST-MSN","URI"];s&&I.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${y}`,f.attributes,I)},"part-inf"(){this.manifest.partInf=Tn(f.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",f.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),e$.call(this,this.manifest)},daterange(){this.manifest.dateRanges.push(Tn(f.attributes));let v=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_(`#EXT-X-DATERANGE #${v}`,f.attributes,["ID","START-DATE"]);let y=this.manifest.dateRanges[v];y.endDate&&y.startDate&&new Date(y.endDate)<new Date(y.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),y.duration&&y.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),y.plannedDuration&&y.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});let I=!!y.endOnNext;if(I&&!y.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must have a CLASS attribute"}),I&&(y.duration||y.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),y.duration&&y.endDate){let z=y.startDate.getTime()+y.duration*1e3;this.manifest.dateRanges[v].endDate=new Date(z)}if(!h[y.id])h[y.id]=y;else{for(let z in h[y.id])if(y[z]&&JSON.stringify(h[y.id][z])!==JSON.stringify(y[z])){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values"});break}let T=this.manifest.dateRanges.findIndex(z=>z.id===y.id);this.manifest.dateRanges[T]=qp.default(this.manifest.dateRanges[T],y),h[y.id]=qp.default(h[y.id],y),this.manifest.dateRanges.pop()}},"independent-segments"(){this.manifest.independentSegments=!0},"i-frames-only"(){this.manifest.iFramesOnly=!0,this.requiredCompatibilityversion(this.manifest.version,4)},"content-steering"(){this.manifest.contentSteering=Tn(f.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",f.attributes,["SERVER-URI"])},define(){this.manifest.definitions=this.manifest.definitions||{};let v=(y,I)=>{if(y in this.manifest.definitions){this.trigger("error",{message:`EXT-X-DEFINE: Duplicate name ${y}`});return}this.manifest.definitions[y]=I};if("QUERYPARAM"in f.attributes){if("NAME"in f.attributes||"IMPORT"in f.attributes){this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"});return}let y=this.params.get(f.attributes.QUERYPARAM);if(!y){this.trigger("error",{message:`EXT-X-DEFINE: No query param ${f.attributes.QUERYPARAM}`});return}v(f.attributes.QUERYPARAM,decodeURIComponent(y));return}if("NAME"in f.attributes){if("IMPORT"in f.attributes){this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"});return}if(!("VALUE"in f.attributes)||typeof f.attributes.VALUE!="string"){this.trigger("error",{message:`EXT-X-DEFINE: No value for ${f.attributes.NAME}`});return}v(f.attributes.NAME,f.attributes.VALUE);return}if("IMPORT"in f.attributes){if(!this.mainDefinitions[f.attributes.IMPORT]){this.trigger("error",{message:`EXT-X-DEFINE: No value ${f.attributes.IMPORT} to import, or IMPORT used on main playlist`});return}v(f.attributes.IMPORT,this.mainDefinitions[f.attributes.IMPORT]);return}this.trigger("error",{message:"EXT-X-DEFINE: No attribute"})},"i-frame-playlist"(){this.manifest.iFramePlaylists.push({attributes:f.attributes,uri:f.uri,timeline:d}),this.warnOnMissingAttributes_("#EXT-X-I-FRAME-STREAM-INF",f.attributes,["BANDWIDTH","URI"])}}[f.tagType]||u).call(r)},uri(){n.uri=f.uri,i.push(n),this.manifest.targetDuration&&!("duration"in n)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),n.duration=this.manifest.targetDuration),a&&(n.key=a),n.timeline=d,o&&(n.map=o),p=0,this.lastProgramDateTime!==null&&(n.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=n.duration*1e3),n={}},comment(){},custom(){f.segment?(n.custom=n.custom||{},n.custom[f.customType]=f.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[f.customType]=f.data)}})[f.type].call(r)})}requiredCompatibilityversion(t,r){(t<r||!t)&&this.trigger("warn",{message:`manifest must be at least version ${r}`})}warnOnMissingAttributes_(t,r,i){let n=[];i.forEach(function(o){r.hasOwnProperty(o)||n.push(o)}),n.length&&this.trigger("warn",{message:`${t} lacks required attribute(s): ${n.join(", ")}`})}push(t){this.lineStream.push(t)}end(){this.lineStream.push(`
12
+ `),this.manifest.dateRanges.length&&this.lastProgramDateTime===null&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}addParser(t){this.parseStream.addParser(t)}addTagMapper(t){this.parseStream.addTagMapper(t)}};ju.LineStream=Vp;ju.ParseStream=Bp;ju.Parser=t$});var mD=E((Mu,pD)=>{"use strict";var oZ=Wb();Object.defineProperty(Mu,"__esModule",{value:!0});Mu.default=void 0;var Uu=oZ(Zp()),fD="https://example.com",aZ=function(t,r){if(/^[a-z]+:/i.test(r))return r;/^data:/.test(t)&&(t=Uu.default.location&&Uu.default.location.href||"");var i=/^\/\//.test(t),n=!Uu.default.location&&!/\/\//i.test(t);t=new Uu.default.URL(t,Uu.default.location||fD);var o=new URL(r,t);return n?o.href.slice(fD.length):i?o.href.slice(o.protocol.length):o.href},fK=Mu.default=aZ;pD.exports=Mu.default});var hD=E(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});Hp.forEachMediaGroup=void 0;var pK=Hp.forEachMediaGroup=function(t,r,i){r.forEach(function(n){for(var o in t.mediaGroups[n])for(var a in t.mediaGroups[n][o]){var s=t.mediaGroups[n][o][a];i(s,n,o,a)}})}});var Wo=E(qr=>{"use strict";function sZ(e,t,r){if(r===void 0&&(r=Array.prototype),e&&typeof r.find=="function")return r.find.call(e,t);for(var i=0;i<e.length;i++)if(Object.prototype.hasOwnProperty.call(e,i)){var n=e[i];if(t.call(void 0,n,i,e))return n}}function o$(e,t){return t===void 0&&(t=Object),t&&typeof t.freeze=="function"?t.freeze(e):e}function uZ(e,t){if(e===null||typeof e!="object")throw new TypeError("target is not an object");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}var gD=o$({HTML:"text/html",isHTML:function(e){return e===gD.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),vD=o$({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===vD.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"}),Gp=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,i$=new RegExp("[\\-\\.0-9"+Gp.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),cZ=new RegExp("^"+Gp.source+i$.source+"*(?::"+Gp.source+i$.source+"*)?$");qr.assign=uZ;qr.find=sZ;qr.freeze=o$;qr.MIME_TYPE=gD;qr.NAMESPACE=vD;qr.nameStartChar=Gp;qr.nameChar=i$;qr.tagNamePattern=cZ});var v$=E(Gr=>{var a$=Wo(),Ir=a$.find,Zu=a$.NAMESPACE,Yo=a$.tagNamePattern;function lZ(e){return e!==""}function dZ(e){return e?e.split(/[\t\n\f\r ]+/).filter(lZ):[]}function fZ(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function yD(e){if(!e)return[];var t=dZ(e);return Object.keys(t.reduce(fZ,{}))}function pZ(e){return function(t){return e&&e.indexOf(t)!==-1}}function qu(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}function Nt(e,t){var r=e.prototype;if(!(r instanceof t)){let n=function(){};var i=n;n.prototype=t.prototype,n=new n,qu(r,n),e.prototype=r=n}r.constructor!=e&&(typeof e!="function"&&console.error("unknown Class:"+e),r.constructor=e)}var zt={},Yt=zt.ELEMENT_NODE=1,Qo=zt.ATTRIBUTE_NODE=2,Lu=zt.TEXT_NODE=3,ID=zt.CDATA_SECTION_NODE=4,ED=zt.ENTITY_REFERENCE_NODE=5,mZ=zt.ENTITY_NODE=6,s$=zt.PROCESSING_INSTRUCTION_NODE=7,u$=zt.COMMENT_NODE=8,TD=zt.DOCUMENT_NODE=9,DD=zt.DOCUMENT_TYPE_NODE=10,Vr=zt.DOCUMENT_FRAGMENT_NODE=11,hZ=zt.NOTATION_NODE=12,ut={},Be={},gK=ut.INDEX_SIZE_ERR=(Be[1]="Index size error",1),vK=ut.DOMSTRING_SIZE_ERR=(Be[2]="DOMString size error",2),At=ut.HIERARCHY_REQUEST_ERR=(Be[3]="Hierarchy request error",3),yK=ut.WRONG_DOCUMENT_ERR=(Be[4]="Wrong document",4),_D=ut.INVALID_CHARACTER_ERR=(Be[5]="Invalid character",5),_K=ut.NO_DATA_ALLOWED_ERR=(Be[6]="No data allowed",6),bK=ut.NO_MODIFICATION_ALLOWED_ERR=(Be[7]="No modification allowed",7),AD=ut.NOT_FOUND_ERR=(Be[8]="Not found",8),$K=ut.NOT_SUPPORTED_ERR=(Be[9]="Not supported",9),bD=ut.INUSE_ATTRIBUTE_ERR=(Be[10]="Attribute in use",10),dr=ut.INVALID_STATE_ERR=(Be[11]="Invalid state",11),wK=ut.SYNTAX_ERR=(Be[12]="Syntax error",12),xK=ut.INVALID_MODIFICATION_ERR=(Be[13]="Invalid modification",13),SK=ut.NAMESPACE_ERR=(Be[14]="Invalid namespace",14),kK=ut.INVALID_ACCESS_ERR=(Be[15]="Invalid access",15);function pe(e,t){if(t instanceof Error)var r=t;else r=this,Error.call(this,Be[e]),this.message=Be[e],Error.captureStackTrace&&Error.captureStackTrace(this,pe);return r.code=e,t&&(this.message=this.message+": "+t),r}pe.prototype=Error.prototype;qu(ut,pe);function Br(){}Br.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t,r){for(var i=!!r&&!!r.requireWellFormed,n=[],o=0;o<this.length;o++)g$(this[o],n,e,t,null,i);return n.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}};function ea(e,t){this._node=e,this._refresh=t,c$(this)}function c$(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var r=e._refresh(e._node);if(qD(e,"length",r.length),!e.$$length||r.length<e.$$length)for(var i=r.length;i in e;i++)Object.prototype.hasOwnProperty.call(e,i)&&delete e[i];qu(r,e),e._inc=t}}ea.prototype.item=function(e){return c$(this),this[e]||null};Nt(ea,Br);function Xp(){this._nameIndex=Object.create(null)}function ND(e,t){for(var r=e.length;r--;)if(e[r]===t)return r}function gZ(e,t){e._nameIndex[t.nodeName]=t}function zD(e,t){e._nameIndex[t.nodeName]===t&&delete e._nameIndex[t.nodeName]}function $D(e,t,r,i){if(i?(t[ND(t,i)]=r,zD(t,i)):t[t.length++]=r,gZ(t,r),e){r.ownerElement=e;var n=e.ownerDocument;n&&(i&&CD(n,e,i),vZ(n,e,r))}}function wD(e,t,r){var i=ND(t,r);if(i>=0){for(var n=t.length-1;i<n;)t[i]=t[++i];if(t.length=n,zD(t,r),e){var o=e.ownerDocument;o&&(CD(o,e,r),r.ownerElement=null)}}else throw new pe(AD,new Error(e.tagName+"@"+r))}Xp.prototype={length:0,item:Br.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var r=this[t];if(r.nodeName==e)return r}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new pe(bD);var r=this._nameIndex[e.nodeName];return $D(this._ownerElement,this,e,r),r},setNamedItemNS:function(e){var t=e.ownerElement,r;if(t&&t!=this._ownerElement)throw new pe(bD);return r=this.getNamedItemNS(e.namespaceURI,e.localName),$D(this._ownerElement,this,e,r),r},removeNamedItem:function(e){var t=this.getNamedItem(e);return wD(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var r=this.getNamedItemNS(e,t);return wD(this._ownerElement,this,r),r},getNamedItemNS:function(e,t){for(var r=this.length;r--;){var i=this[r];if(i.localName==t&&i.namespaceURI==e)return i}return null}};function PD(){}PD.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,r){var i=new Vu;if(i.implementation=this,i.childNodes=new Br,i.doctype=r||null,r&&i.appendChild(r),t){var n=i.createElementNS(e,t);i.appendChild(n)}return i},createDocumentType:function(e,t,r){var i=new em;return i.name=e,i.nodeName=e,i.publicId=t||"",i.systemId=r||"",i}};function ke(){}ke.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return Wp(this,e,t)},replaceChild:function(e,t){Wp(this,e,t,jD),t&&this.removeChild(t)},removeChild:function(e){return RD(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(e){return FD(this.ownerDocument||this,this,e)},normalize:function(){Ve(this,null,{enter:function(e){for(var t=e.firstChild;t;){var r=t.nextSibling;if(r!==null&&r.nodeType===Lu&&t.nodeType===Lu){for(var i=[],n=r;n!==null&&n.nodeType===Lu;)i.push(n.data),n=n.nextSibling;for(var o=t.nextSibling;o!==n;){var a=o.nextSibling;o.parentNode=null,o.previousSibling=null,o.nextSibling=null,o=a}t.nextSibling=n,n!==null?n.previousSibling=t:e.lastChild=t,t.appendData(i.join("")),Qp(e.ownerDocument,e),t=n}else t=r}return!0}})},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var r=t._nsMap;if(r){for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)&&r[i]===e)return i}t=t.nodeType==Qo?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var r=t._nsMap;if(r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];t=t.nodeType==Qo?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){var t=this.lookupPrefix(e);return t==null}};function OD(e){return e=="<"&&"&lt;"||e==">"&&"&gt;"||e=="&"&&"&amp;"||e=='"'&&"&quot;"||"&#"+e.charCodeAt()+";"}qu(zt,ke);qu(zt,ke.prototype);function Kp(e,t){return Ve(e,null,{enter:function(r){return t(r)?Ve.STOP:!0}})===Ve.STOP}function Ve(e,t,r){for(var i=[{node:e,context:t,phase:Ve.ENTER}];i.length>0;){var n=i.pop();if(n.phase===Ve.ENTER){var o=r.enter(n.node,n.context);if(o===Ve.STOP)return Ve.STOP;if(i.push({node:n.node,context:o,phase:Ve.EXIT}),o==null)continue;for(var a=n.node.lastChild;a;)i.push({node:a,context:o,phase:Ve.ENTER}),a=a.previousSibling}else r.exit&&r.exit(n.node,n.context)}}Ve.STOP=Symbol("walkDOM.STOP");Ve.ENTER=0;Ve.EXIT=1;function Vu(){this.ownerDocument=this}function vZ(e,t,r){e&&e._inc++;var i=r.namespaceURI;i===Zu.XMLNS&&(t._nsMap[r.prefix?r.localName:""]=r.value)}function CD(e,t,r,i){e&&e._inc++;var n=r.namespaceURI;n===Zu.XMLNS&&delete t._nsMap[r.prefix?r.localName:""]}function Qp(e,t,r){if(e&&e._inc){e._inc++;var i=t.childNodes;if(r)i[i.length++]=r;else{for(var n=t.firstChild,o=0;n;)i[o++]=n,n=n.nextSibling;i.length=o,delete i[i.length]}}}function RD(e,t){var r=t.previousSibling,i=t.nextSibling;return r?r.nextSibling=i:e.firstChild=i,i?i.previousSibling=r:e.lastChild=r,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,Qp(e.ownerDocument,e),t}function yZ(e){return e&&(e.nodeType===ke.DOCUMENT_NODE||e.nodeType===ke.DOCUMENT_FRAGMENT_NODE||e.nodeType===ke.ELEMENT_NODE)}function _Z(e){return e&&(Er(e)||l$(e)||Hr(e)||e.nodeType===ke.DOCUMENT_FRAGMENT_NODE||e.nodeType===ke.COMMENT_NODE||e.nodeType===ke.PROCESSING_INSTRUCTION_NODE)}function Hr(e){return e&&e.nodeType===ke.DOCUMENT_TYPE_NODE}function Er(e){return e&&e.nodeType===ke.ELEMENT_NODE}function l$(e){return e&&e.nodeType===ke.TEXT_NODE}function xD(e,t){var r=e.childNodes||[];if(Ir(r,Er)||Hr(t))return!1;var i=Ir(r,Hr);return!(t&&i&&r.indexOf(i)>r.indexOf(t))}function SD(e,t){var r=e.childNodes||[];function i(o){return Er(o)&&o!==t}if(Ir(r,i))return!1;var n=Ir(r,Hr);return!(t&&n&&r.indexOf(n)>r.indexOf(t))}function bZ(e,t,r){if(!yZ(e))throw new pe(At,"Unexpected parent node type "+e.nodeType);if(r&&r.parentNode!==e)throw new pe(AD,"child not in parent");if(!_Z(t)||Hr(t)&&e.nodeType!==ke.DOCUMENT_NODE)throw new pe(At,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function $Z(e,t,r){var i=e.childNodes||[],n=t.childNodes||[];if(t.nodeType===ke.DOCUMENT_FRAGMENT_NODE){var o=n.filter(Er);if(o.length>1||Ir(n,l$))throw new pe(At,"More than one element or text in fragment");if(o.length===1&&!xD(e,r))throw new pe(At,"Element in fragment can not be inserted before doctype")}if(Er(t)&&!xD(e,r))throw new pe(At,"Only one element can be added and only after doctype");if(Hr(t)){if(Ir(i,Hr))throw new pe(At,"Only one doctype is allowed");var a=Ir(i,Er);if(r&&i.indexOf(a)<i.indexOf(r))throw new pe(At,"Doctype can only be inserted before an element");if(!r&&a)throw new pe(At,"Doctype can not be appended since element is present")}}function jD(e,t,r){var i=e.childNodes||[],n=t.childNodes||[];if(t.nodeType===ke.DOCUMENT_FRAGMENT_NODE){var o=n.filter(Er);if(o.length>1||Ir(n,l$))throw new pe(At,"More than one element or text in fragment");if(o.length===1&&!SD(e,r))throw new pe(At,"Element in fragment can not be inserted before doctype")}if(Er(t)&&!SD(e,r))throw new pe(At,"Only one element can be added and only after doctype");if(Hr(t)){let u=function(c){return Hr(c)&&c!==r};var s=u;if(Ir(i,u))throw new pe(At,"Only one doctype is allowed");var a=Ir(i,Er);if(r&&i.indexOf(a)<i.indexOf(r))throw new pe(At,"Doctype can only be inserted before an element")}}function Wp(e,t,r,i){bZ(e,t,r),e.nodeType===ke.DOCUMENT_NODE&&(i||$Z)(e,t,r);var n=t.parentNode;if(n&&n.removeChild(t),t.nodeType===Vr){var o=t.firstChild;if(o==null)return t;var a=t.lastChild}else o=a=t;var s=r?r.previousSibling:e.lastChild;o.previousSibling=s,a.nextSibling=r,s?s.nextSibling=o:e.firstChild=o,r==null?e.lastChild=a:r.previousSibling=a;do{o.parentNode=e;var u=e.ownerDocument||e;Fu(o,u)}while(o!==a&&(o=o.nextSibling));return Qp(e.ownerDocument||e,e),t.nodeType==Vr&&(t.firstChild=t.lastChild=null),t}function Fu(e,t){if(e.ownerDocument!==t){if(e.ownerDocument=t,e.nodeType===Yt&&e.attributes)for(var r=0;r<e.attributes.length;r++){var i=e.attributes.item(r);i&&(i.ownerDocument=t)}for(var n=e.firstChild;n;)Fu(n,t),n=n.nextSibling}}function wZ(e,t){t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,Qp(e.ownerDocument,e,t);var r=e.ownerDocument||e;return Fu(t,r),t}Vu.prototype={nodeName:"#document",nodeType:TD,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==Vr){for(var r=e.firstChild;r;){var i=r.nextSibling;this.insertBefore(r,t),r=i}return e}return Wp(this,e,t),Fu(e,this),this.documentElement===null&&e.nodeType===Yt&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),RD(this,e)},replaceChild:function(e,t){Wp(this,e,t,jD),Fu(e,this),t&&this.removeChild(t),Er(e)&&(this.documentElement=e)},importNode:function(e,t){return xZ(this,e,t)},getElementById:function(e){var t=null;return Kp(this.documentElement,function(r){if(r.nodeType==Yt&&r.getAttribute("id")==e)return t=r,!0}),t},getElementsByClassName:function(e){var t=yD(e);return new ea(this,function(r){var i=[];return t.length>0&&Kp(r.documentElement,function(n){if(n!==r&&n.nodeType===Yt){var o=n.getAttribute("class");if(o){var a=e===o;if(!a){var s=yD(o);a=t.every(pZ(s))}a&&i.push(n)}}}),i})},createElement:function(e){var t=new li;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new Br;var r=t.attributes=new Xp;return r._ownerElement=t,t},createDocumentFragment:function(){var e=new tm;return e.ownerDocument=this,e.childNodes=new Br,e},createTextNode:function(e){var t=new d$;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new f$;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){if(e.indexOf("]]>")!==-1)throw new pe(_D,'data contains "]]>"');var t=new p$;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var r=new h$;return r.ownerDocument=this,r.tagName=r.nodeName=r.target=e,r.nodeValue=r.data=t,r},createAttribute:function(e){var t=new Yp;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){if(!Yo.test(e))throw new pe(_D,'not a valid xml name "'+e+'"');var t=new m$;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var r=new li,i=t.split(":"),n=r.attributes=new Xp;return r.childNodes=new Br,r.ownerDocument=this,r.nodeName=t,r.tagName=t,r.namespaceURI=e,i.length==2?(r.prefix=i[0],r.localName=i[1]):r.localName=t,n._ownerElement=r,r},createAttributeNS:function(e,t){var r=new Yp,i=t.split(":");return r.ownerDocument=this,r.nodeName=t,r.name=t,r.namespaceURI=e,r.specified=!0,i.length==2?(r.prefix=i[0],r.localName=i[1]):r.localName=t,r}};Nt(Vu,ke);function li(){this._nsMap={}}li.prototype={nodeType:Yt,hasAttribute:function(e){return this.getAttributeNode(e)!=null},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var r=this.ownerDocument.createAttribute(e);r.value=r.nodeValue=""+t,this.setAttributeNode(r)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===Vr?this.insertBefore(e,null):wZ(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);r&&this.removeAttributeNode(r)},hasAttributeNS:function(e,t){return this.getAttributeNodeNS(e,t)!=null},getAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);return r&&r.value||""},setAttributeNS:function(e,t,r){var i=this.ownerDocument.createAttributeNS(e,t);i.value=i.nodeValue=""+r,this.setAttributeNode(i)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new ea(this,function(t){var r=[];return Kp(t,function(i){i!==t&&i.nodeType==Yt&&(e==="*"||i.tagName==e)&&r.push(i)}),r})},getElementsByTagNameNS:function(e,t){return new ea(this,function(r){var i=[];return Kp(r,function(n){n!==r&&n.nodeType===Yt&&(e==="*"||n.namespaceURI===e)&&(t==="*"||n.localName==t)&&i.push(n)}),i})}};Vu.prototype.getElementsByTagName=li.prototype.getElementsByTagName;Vu.prototype.getElementsByTagNameNS=li.prototype.getElementsByTagNameNS;Nt(li,ke);function Yp(){}Yp.prototype.nodeType=Qo;Nt(Yp,ke);function Bu(){}Bu.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(Be[At])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,r){var i=this.data.substring(0,e),n=this.data.substring(e+t);r=i+r+n,this.nodeValue=this.data=r,this.length=r.length}};Nt(Bu,ke);function d$(){}d$.prototype={nodeName:"#text",nodeType:Lu,splitText:function(e){var t=this.data,r=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var i=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}};Nt(d$,Bu);function f$(){}f$.prototype={nodeName:"#comment",nodeType:u$};Nt(f$,Bu);function p$(){}p$.prototype={nodeName:"#cdata-section",nodeType:ID};Nt(p$,Bu);function em(){}em.prototype.nodeType=DD;Nt(em,ke);function UD(){}UD.prototype.nodeType=hZ;Nt(UD,ke);function MD(){}MD.prototype.nodeType=mZ;Nt(MD,ke);function m$(){}m$.prototype.nodeType=ED;Nt(m$,ke);function tm(){}tm.prototype.nodeName="#document-fragment";tm.prototype.nodeType=Vr;Nt(tm,ke);function h$(){}h$.prototype.nodeType=s$;Nt(h$,ke);function LD(){}LD.prototype.serializeToString=function(e,t,r,i){return ZD.call(e,t,r,i)};ke.prototype.toString=ZD;function ZD(e,t,r){var i=!!r&&!!r.requireWellFormed,n=[],o=this.nodeType==9&&this.documentElement||this,a=o.prefix,s=o.namespaceURI;if(s&&a==null){var a=o.lookupPrefix(s);if(a==null)var u=[{namespace:s,prefix:null}]}return g$(this,n,e,t,u,i),n.join("")}function kD(e,t,r){var i=e.prefix||"",n=e.namespaceURI;if(!n||i==="xml"&&n===Zu.XML||n===Zu.XMLNS)return!1;for(var o=r.length;o--;){var a=r[o];if(a.prefix===i)return a.namespace!==n}return!0}function Jp(e,t,r,i){if(i&&!Yo.test(t))throw new pe(dr,'The attribute name "'+t+'" is not a valid XML QName');e.push(" ",t,'="',r.replace(/[<>&"\t\n\r]/g,OD),'"')}function g$(e,t,r,i,n,o){n||(n=[]),Ve(e,{ns:n,isHTML:r},{enter:function(a,s){var u=s.ns,c=s.isHTML;if(i)if(a=i(a),a){if(typeof a=="string")return t.push(a),null}else return null;switch(a.nodeType){case Yt:var l=a.attributes,d=l.length,m=a.tagName;c=Zu.isHTML(a.namespaceURI)||c;var p=m;if(!c&&!a.prefix&&a.namespaceURI){for(var h,f=0;f<l.length;f++)if(l.item(f).name==="xmlns"){h=l.item(f).value;break}if(!h)for(var g=u.length-1;g>=0;g--){var b=u[g];if(b.prefix===""&&b.namespace===a.namespaceURI){h=b.namespace;break}}if(h!==a.namespaceURI)for(var g=u.length-1;g>=0;g--){var b=u[g];if(b.namespace===a.namespaceURI){b.prefix&&(p=b.prefix+":"+m);break}}}if(o&&!Yo.test(p))throw new pe(dr,'The element name "'+p+'" is not a valid XML QName');t.push("<",p);for(var v=u.slice(),y=0;y<d;y++){var I=l.item(y);I.prefix=="xmlns"?v.push({prefix:I.localName,namespace:I.value}):I.nodeName=="xmlns"&&v.push({prefix:"",namespace:I.value})}for(var y=0;y<d;y++){var I=l.item(y);if(kD(I,c,v)){var T=I.prefix||"",z=I.namespaceURI;Jp(t,T?"xmlns:"+T:"xmlns",z,o),v.push({prefix:T,namespace:z})}var B=i?i(I):I;B&&(typeof B=="string"?t.push(B):Jp(t,B.name,B.value,o))}if(m===p&&kD(a,c,v)){var Fe=a.prefix||"",z=a.namespaceURI;Jp(t,Fe?"xmlns:"+Fe:"xmlns",z,o),v.push({prefix:Fe,namespace:z})}var se=a.firstChild;if(se||c&&!/^(?:meta|link|img|br|hr|input)$/i.test(m)){if(t.push(">"),c&&/^script$/i.test(m)){for(;se;)se.data?t.push(se.data):g$(se,t,c,i,v.slice(),o),se=se.nextSibling;return t.push("</",m,">"),null}return{ns:v,isHTML:c,tag:p}}else return t.push("/>"),null;case TD:case Vr:return{ns:u.slice(),isHTML:c,tag:null};case Qo:return Jp(t,a.name,a.value,o),null;case Lu:return t.push(a.data.replace(/[<&>]/g,OD)),null;case ID:if(o&&a.data.indexOf("]]>")!==-1)throw new pe(dr,'The CDATASection data contains "]]>"');return t.push("<![CDATA[",a.data.replace(/]]>/g,"]]]]><![CDATA[>"),"]]>"),null;case u$:if(o&&a.data.indexOf("-->")!==-1)throw new pe(dr,'The comment node data contains "-->"');return t.push("<!--",a.data,"-->"),null;case DD:if(o){if(!Yo.test(a.name))throw new pe(dr,'The doctype name "'+a.name+'" is not a valid XML Name');if(a.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(a.publicId))throw new pe(dr,"DocumentType publicId is not a valid PubidLiteral");if(a.systemId&&!/^("[^"]*"|'[^']*')$/.test(a.systemId))throw new pe(dr,"DocumentType systemId is not a valid SystemLiteral");if(a.internalSubset&&a.internalSubset.indexOf("]>")!==-1)throw new pe(dr,'DocumentType internalSubset contains "]>"')}var tt=a.publicId,be=a.systemId;if(t.push("<!DOCTYPE ",a.name),tt)t.push(" PUBLIC ",tt),be&&be!="."&&t.push(" ",be),t.push(">");else if(be&&be!=".")t.push(" SYSTEM ",be,">");else{var pr=a.internalSubset;pr&&t.push(" [",pr,"]"),t.push(">")}return null;case s$:if(o){if(!Yo.test(a.target)||a.target.indexOf(":")!==-1||a.target.toLowerCase()==="xml")throw new pe(dr,'The processing instruction target "'+a.target+'" is not a valid XML NCName or is reserved');if(a.data.indexOf("?>")!==-1)throw new pe(dr,'The ProcessingInstruction data contains "?>"')}return t.push("<?",a.target," ",a.data,"?>"),null;case ED:if(o&&!Yo.test(a.nodeName))throw new pe(dr,'The entity reference name "'+a.nodeName+'" is not a valid XML Name');return t.push("&",a.nodeName,";"),null;default:return t.push("??",a.nodeName),null}},exit:function(a,s){s&&s.tag&&t.push("</",s.tag,">")}})}function xZ(e,t,r){var i;return Ve(t,null,{enter:function(n,o){var a=n.cloneNode(!1);a.ownerDocument=e,a.parentNode=null,o===null?i=a:o.appendChild(a);var s=n.nodeType===Qo||r;return s?a:null}}),i}function FD(e,t,r){var i;return Ve(t,null,{enter:function(n,o){var a=new n.constructor;for(var s in n)if(Object.prototype.hasOwnProperty.call(n,s)){var u=n[s];typeof u!="object"&&u!=a[s]&&(a[s]=u)}n.childNodes&&(a.childNodes=new Br),a.ownerDocument=e;var c=r;switch(a.nodeType){case Yt:var l=n.attributes,d=a.attributes=new Xp,m=l.length;d._ownerElement=a;for(var p=0;p<m;p++)a.setAttributeNode(FD(e,l.item(p),!0));break;case Qo:c=!0}return o!==null?o.appendChild(a):i=a,c?a:null}}),i}function qD(e,t,r){e[t]=r}try{Object.defineProperty&&(Object.defineProperty(ea.prototype,"length",{get:function(){return c$(this),this.$$length}}),Object.defineProperty(ke.prototype,"textContent",{get:function(){if(this.nodeType===Yt||this.nodeType===Vr){var e=[];return Ve(this,null,{enter:function(t){if(t.nodeType===Yt||t.nodeType===Vr)return!0;if(t.nodeType===s$||t.nodeType===u$)return null;e.push(t.nodeValue)}}),e.join("")}return this.nodeValue},set:function(e){switch(this.nodeType){case Yt:case Vr:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),qD=function(e,t,r){e["$$"+t]=r})}catch{}Gr.DocumentType=em;Gr.DOMException=pe;Gr.DOMImplementation=PD;Gr.Element=li;Gr.Node=ke;Gr.NodeList=Br;Gr.walkDOM=Ve;Gr.XMLSerializer=LD});var BD=E(Hu=>{"use strict";var VD=Wo().freeze;Hu.XML_ENTITIES=VD({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'});Hu.HTML_ENTITIES=VD({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
13
+ `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"});Hu.entityMap=Hu.HTML_ENTITIES});var KD=E(_$=>{var Xu=Wo().NAMESPACE,y$=Wo().tagNamePattern,ta=0,Dn=1,ra=2,Gu=3,na=4,ia=5,Ju=6,rm=7;function oa(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,oa)}oa.prototype=new Error;oa.prototype.name=oa.name;function JD(){}JD.prototype={parse:function(e,t,r){var i=this.domBuilder;i.startDocument(),TZ(t,t={}),SZ(e,t,r,i,this.errorHandler),i.endDocument()}};function SZ(e,t,r,i,n){function o(Ce){if(Ce>65535){Ce-=65536;var Zt=55296+(Ce>>10),HA=56320+(Ce&1023);return String.fromCharCode(Zt,HA)}else return String.fromCharCode(Ce)}function a(Ce){var Zt=Ce.slice(1,-1);return Object.hasOwnProperty.call(r,Zt)?r[Zt]:Zt.charAt(0)==="#"?o(parseInt(Zt.substr(1).replace("x","0x"))):(n.error("entity not found:"+Ce),Ce)}function s(Ce){if(Ce>f){var Zt=e.substring(f,Ce).replace(/&#?\w+;/g,a);m&&u(f),i.characters(Zt,0,Ce-f),f=Ce}}function u(Ce,Zt){for(;Ce>=l&&(Zt=d.exec(e));)c=Zt.index,l=c+Zt[0].length,m.lineNumber++;m.columnNumber=Ce-c+1}for(var c=0,l=0,d=/.*(?:\r\n?|\n)|.*$/g,m=i.locator,p=[{currentNSMap:t}],h={},f=0;;){try{var g=e.indexOf("<",f);if(g<0){if(!e.substr(f).match(/^\s*$/)){var b=i.doc,v=b.createTextNode(e.substr(f));b.appendChild(v),i.currentElement=v}return}switch(g>f&&s(g),e.charAt(g+1)){case"/":var be=e.indexOf(">",g+3),y=e.substring(g+2,be).replace(/^([\s\S]*?[^ \t\n\r])?[ \t\n\r]*$/,"$1"),I=p.pop();be<0?(y=e.substring(g+2).replace(/[\s<].*/,""),n.error("end tag name: "+y+" is not complete:"+I.tagName),be=g+1+y.length):y.match(/\s</)?(y=y.replace(/[\s<].*/,""),n.error("end tag name: "+y+" maybe not complete"),be=g+1+y.length):/[ \t\n\r]/.test(y)&&y$.test(y.split(/[ \t\n\r]/)[0])&&n.error('end tag name is followed by whitespace and trailing content: "'+y+'"');var T=I.localNSMap,z=I.tagName==y,B=z||I.tagName&&I.tagName.toLowerCase()==y.toLowerCase();if(B){if(i.endElement(I.uri,I.localName,y),T)for(var Fe in T)Object.prototype.hasOwnProperty.call(T,Fe)&&i.endPrefixMapping(Fe);z||n.fatalError("end tag name: "+y+" is not match the current start tagName:"+I.tagName)}else p.push(I);be++;break;case"?":m&&u(g),be=AZ(e,g,i);break;case"!":m&&u(g),be=DZ(e,g,i,n);break;default:m&&u(g);var se=new XD,tt=p[p.length-1].currentNSMap,be=kZ(e,g,se,tt,a,n),pr=se.length;if(!se.closed&&EZ(e,be,se.tagName,h)&&(se.closed=!0,r.nbsp||n.warning("unclosed xml attribute")),m&&pr){for(var fi=HD(m,{}),ha=0;ha<pr;ha++){var z$=se[ha];u(z$.offset),z$.locator=HD(m,{})}i.locator=fi,GD(se,i,tt)&&p.push(se),i.locator=m}else GD(se,i,tt)&&p.push(se);Xu.isHTML(se.uri)&&!se.closed?be=IZ(e,be,se.tagName,a,i):be++}}catch(Ce){if(Ce instanceof oa)throw Ce;n.error("element parse error: "+Ce),be=-1}be>f?f=be:s(Math.max(g,f)+1)}}function HD(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function kZ(e,t,r,i,n,o){function a(p,h,f){r.attributeNames.hasOwnProperty(p)&&o.fatalError("Attribute "+p+" redefined"),r.addValue(p,h.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,n),f)}for(var s,u,c=++t,l=ta;;){var d=e.charAt(c);if(l===ta&&d==="<")throw new Error("unexpected < in tag name: "+e.slice(t,c));switch(d){case"=":if(l===Dn)s=e.slice(t,c),l=Gu;else if(l===ra)l=Gu;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(l===Gu||l===Dn)if(l===Dn&&(o.warning('attribute value must after "="'),s=e.slice(t,c)),t=c+1,c=e.indexOf(d,t),c>0)u=e.slice(t,c),a(s,u,t-1),l=ia;else throw new Error("attribute value no end '"+d+"' match");else if(l==na)u=e.slice(t,c),a(s,u,t),o.warning('attribute "'+s+'" missed start quot('+d+")!!"),t=c+1,l=ia;else throw new Error('attribute value must after "="');break;case"/":switch(l){case ta:r.setTagName(e.slice(t,c));case ia:case Ju:case rm:l=rm,r.closed=!0;case na:case Dn:break;case ra:r.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),l==ta&&r.setTagName(e.slice(t,c)),c;case">":switch(l){case ta:r.setTagName(e.slice(t,c));case ia:case Ju:case rm:break;case na:case Dn:u=e.slice(t,c),u.slice(-1)==="/"&&(r.closed=!0,u=u.slice(0,-1));case ra:l===ra&&(u=s),l==na?(o.warning('attribute "'+u+'" missed quot(")!'),a(s,u,t)):((!Xu.isHTML(i[""])||!u.match(/^(?:disabled|checked|selected)$/i))&&o.warning('attribute "'+u+'" missed value!! "'+u+'" instead!!'),a(u,u,t));break;case Gu:throw new Error("attribute value missed!!")}return c;case"\x80":d=" ";default:if(d<=" ")switch(l){case ta:r.setTagName(e.slice(t,c)),l=Ju;break;case Dn:s=e.slice(t,c),l=ra;break;case na:var u=e.slice(t,c);o.warning('attribute "'+u+'" missed quot(")!!'),a(s,u,t);case ia:l=Ju;break}else switch(l){case ra:var m=r.tagName;(!Xu.isHTML(i[""])||!s.match(/^(?:disabled|checked|selected)$/i))&&o.warning('attribute "'+s+'" missed value!! "'+s+'" instead2!!'),a(s,s,t),t=c,l=Dn;break;case ia:o.warning('attribute space is required"'+s+'"!!');case Ju:l=Dn,t=c;break;case Gu:l=na,t=c;break;case rm:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function GD(e,t,r){for(var i=e.tagName,n=null,d=e.length;d--;){var o=e[d],a=o.qName,s=o.value,m=a.indexOf(":");if(m>0)var u=o.prefix=a.slice(0,m),c=a.slice(m+1),l=u==="xmlns"&&c;else c=a,u=null,l=a==="xmlns"&&"";o.localName=c,l!==!1&&(n==null&&(n={},r=Object.create(r)),r[l]=n[l]=s,o.uri=Xu.XMLNS,t.startPrefixMapping(l,s))}for(var d=e.length;d--;){o=e[d];var u=o.prefix;u&&(u==="xml"&&(o.uri=Xu.XML),u!=="xmlns"&&(o.uri=r[u||""]))}var m=i.indexOf(":");m>0?(u=e.prefix=i.slice(0,m),c=e.localName=i.slice(m+1)):(u=null,c=e.localName=i);var p=e.uri=r[u||""];if(t.startElement(p,c,i,e),e.closed){if(t.endElement(p,c,i),n)for(u in n)Object.prototype.hasOwnProperty.call(n,u)&&t.endPrefixMapping(u)}else return e.currentNSMap=r,e.localNSMap=n,!0}function IZ(e,t,r,i,n){if(/^(?:script|textarea)$/i.test(r)){var o=e.indexOf("</"+r+">",t),a=e.substring(t+1,o);if(/[&<]/.test(a))return/^script$/i.test(r)?(n.characters(a,0,a.length),o):(a=a.replace(/&#?\w+;/g,i),n.characters(a,0,a.length),o)}return t+1}function EZ(e,t,r,i){var n=i[r];return n==null&&(n=e.lastIndexOf("</"+r+">"),n<t&&(n=e.lastIndexOf("</"+r)),i[r]=n),n<t}function TZ(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}function DZ(e,t,r,i){var n=e.charAt(t+2);switch(n){case"-":if(e.charAt(t+3)==="-"){var o=e.indexOf("-->",t+4);return o>t?(r.comment(e,t+4,o-t-4),o+3):(i.error("Unclosed comment"),-1)}else return-1;default:if(e.substr(t+3,6)=="CDATA["){var o=e.indexOf("]]>",t+9);return r.startCDATA(),r.characters(e,t+9,o-t-9),r.endCDATA(),o+3}var a=NZ(e,t),s=a.length;if(s>1&&/!doctype/i.test(a[0][0])){var u=a[1][0],c=!1,l=!1;s>3&&(/^public$/i.test(a[2][0])?(c=a[3][0],l=s>4&&a[4][0]):/^system$/i.test(a[2][0])&&(l=a[3][0]));var d=a[s-1];return r.startDTD(u,c,l),r.endDTD(),d.index+d[0].length}}return-1}function AZ(e,t,r){var i=e.indexOf("?>",t);if(i){var n=e.substring(t,i).match(/^<\?(\S*)\s*([\s\S]*?)$/);if(n){var o=n[0].length;return r.processingInstruction(n[1],n[2]),i+2}else return-1}return-1}function XD(){this.attributeNames={}}XD.prototype={setTagName:function(e){if(!y$.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,r){if(!y$.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:r}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}};function NZ(e,t){var r,i=[],n=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(n.lastIndex=t,n.exec(e);r=n.exec(e);)if(i.push(r),r[1])return i}_$.XMLReader=JD;_$.ParseError=oa});var nA=E(im=>{var zZ=Wo(),PZ=v$(),WD=BD(),eA=KD(),OZ=PZ.DOMImplementation,YD=zZ.NAMESPACE,CZ=eA.ParseError,RZ=eA.XMLReader;function tA(e){return e.replace(/\r[\n\u0085]/g,`
14
+ `).replace(/[\r\u0085\u2028]/g,`
15
+ `)}function rA(e){this.options=e||{locator:{}}}rA.prototype.parseFromString=function(e,t){var r=this.options,i=new RZ,n=r.domBuilder||new Ku,o=r.errorHandler,a=r.locator,s=r.xmlns||{},u=/\/x?html?$/.test(t),c=u?WD.HTML_ENTITIES:WD.XML_ENTITIES;a&&n.setDocumentLocator(a),i.errorHandler=jZ(o,n,a),i.domBuilder=r.domBuilder||n,u&&(s[""]=YD.HTML),s.xml=s.xml||YD.XML;var l=r.normalizeLineEndings||tA;return e&&typeof e=="string"?i.parse(l(e),s,c):i.errorHandler.error("invalid doc source"),n.doc};function jZ(e,t,r){if(!e){if(t instanceof Ku)return t;e=t}var i={},n=e instanceof Function;r=r||{};function o(a){var s=e[a];!s&&n&&(s=e.length==2?function(u){e(a,u)}:e),i[a]=s&&function(u){s("[xmldom "+a+"] "+u+b$(r))}||function(){}}return o("warning"),o("error"),o("fatalError"),i}function Ku(){this.cdata=!1}function aa(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}Ku.prototype={startDocument:function(){this.doc=new OZ().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,r,i){var n=this.doc,o=n.createElementNS(e,r||t),a=i.length;nm(this,o),this.currentElement=o,this.locator&&aa(this.locator,o);for(var s=0;s<a;s++){var e=i.getURI(s),u=i.getValue(s),r=i.getQName(s),c=n.createAttributeNS(e,r);this.locator&&aa(i.getLocator(s),c),c.value=c.nodeValue=u,o.setAttributeNode(c)}},endElement:function(e,t,r){var i=this.currentElement,n=i.tagName;this.currentElement=i.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var r=this.doc.createProcessingInstruction(e,t);this.locator&&aa(this.locator,r),nm(this,r)},ignorableWhitespace:function(e,t,r){},characters:function(e,t,r){if(e=QD.apply(this,arguments),e){if(this.cdata)var i=this.doc.createCDATASection(e);else var i=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(e)&&this.doc.appendChild(i),this.locator&&aa(this.locator,i)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,r){e=QD.apply(this,arguments);var i=this.doc.createComment(e);this.locator&&aa(this.locator,i),nm(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,r){var i=this.doc.implementation;if(i&&i.createDocumentType){var n=i.createDocumentType(e,t,r);this.locator&&aa(this.locator,n),nm(this,n),this.doc.doctype=n}},warning:function(e){console.warn("[xmldom warning] "+e,b$(this.locator))},error:function(e){console.error("[xmldom error] "+e,b$(this.locator))},fatalError:function(e){throw new CZ(e,this.locator)}};function b$(e){if(e)return`
16
+ @`+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function QD(e,t,r){return typeof e=="string"?e.substr(t,r):e.length>=t+r||t?new java.lang.String(e,t,r)+"":e}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){Ku.prototype[e]=function(){return null}});function nm(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}im.__DOMHandler=Ku;im.normalizeLineEndings=tA;im.DOMParser=rA});var oA=E(om=>{var iA=v$();om.DOMImplementation=iA.DOMImplementation;om.XMLSerializer=iA.XMLSerializer;om.DOMParser=nA().DOMParser});var xA=E(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});var UZ=mD(),MZ=Zp(),LZ=hD(),ZZ=Yb(),FZ=oA();function w$(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var x$=w$(UZ),Pt=w$(MZ),qZ=w$(ZZ),VZ="1.4.1",aA=e=>!!e&&typeof e=="object",He=(...e)=>e.reduce((t,r)=>(typeof r!="object"||Object.keys(r).forEach(i=>{Array.isArray(t[i])&&Array.isArray(r[i])?t[i]=t[i].concat(r[i]):aA(t[i])&&aA(r[i])?t[i]=He(t[i],r[i]):t[i]=r[i]}),t),{}),pA=e=>Object.keys(e).map(t=>e[t]),BZ=(e,t)=>{let r=[];for(let i=e;i<t;i++)r.push(i);return r},ua=e=>e.reduce((t,r)=>t.concat(r),[]),mA=e=>{if(!e.length)return[];let t=[];for(let r=0;r<e.length;r++)t.push(e[r]);return t},HZ=(e,t)=>e.reduce((r,i,n)=>(i[t]&&r.push(n),r),[]),GZ=(e,t)=>pA(e.reduce((r,i)=>(i.forEach(n=>{r[t(n)]=n}),r),{})),ca={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",INVALID_NUMBER_OF_CONTENT_STEERING:"INVALID_NUMBER_OF_CONTENT_STEERING",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",MISSING_SEGMENT_INFORMATION:"MISSING_SEGMENT_INFORMATION",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"},Wu=({baseUrl:e="",source:t="",range:r="",indexRange:i=""})=>{let n={uri:t,resolvedUri:x$.default(e||"",t)};if(r||i){let a=(r||i).split("-"),s=Pt.default.BigInt?Pt.default.BigInt(a[0]):parseInt(a[0],10),u=Pt.default.BigInt?Pt.default.BigInt(a[1]):parseInt(a[1],10);s<Number.MAX_SAFE_INTEGER&&typeof s=="bigint"&&(s=Number(s)),u<Number.MAX_SAFE_INTEGER&&typeof u=="bigint"&&(u=Number(u));let c;typeof u=="bigint"||typeof s=="bigint"?c=Pt.default.BigInt(u)-Pt.default.BigInt(s)+Pt.default.BigInt(1):c=u-s+1,typeof c=="bigint"&&c<Number.MAX_SAFE_INTEGER&&(c=Number(c)),n.byterange={length:c,offset:s}}return n},JZ=e=>{let t;return typeof e.offset=="bigint"||typeof e.length=="bigint"?t=Pt.default.BigInt(e.offset)+Pt.default.BigInt(e.length)-Pt.default.BigInt(1):t=e.offset+e.length-1,`${e.offset}-${t}`},sA=e=>(e&&typeof e!="number"&&(e=parseInt(e,10)),isNaN(e)?null:e),XZ={static(e){let{duration:t,timescale:r=1,sourceDuration:i,periodDuration:n}=e,o=sA(e.endNumber),a=t/r;return typeof o=="number"?{start:0,end:o}:typeof n=="number"?{start:0,end:n/a}:{start:0,end:i/a}},dynamic(e){let{NOW:t,clientOffset:r,availabilityStartTime:i,timescale:n=1,duration:o,periodStart:a=0,minimumUpdatePeriod:s=0,timeShiftBufferDepth:u=1/0}=e,c=sA(e.endNumber),l=(t+r)/1e3,d=i+a,p=l+s-d,h=Math.ceil(p*n/o),f=Math.floor((l-d-u)*n/o),g=Math.floor((l-d)*n/o);return{start:Math.max(0,f),end:typeof c=="number"?c:Math.min(h,g)}}},KZ=e=>t=>{let{duration:r,timescale:i=1,periodStart:n,startNumber:o=1}=e;return{number:o+t,duration:r/i,timeline:n,time:t*r}},S$=e=>{let{type:t,duration:r,timescale:i=1,periodDuration:n,sourceDuration:o}=e,{start:a,end:s}=XZ[t](e),u=BZ(a,s).map(KZ(e));if(t==="static"){let c=u.length-1,l=typeof n=="number"?n:o;u[c].duration=l-r/i*c}return u},hA=e=>{let{baseUrl:t,initialization:r={},sourceDuration:i,indexRange:n="",periodStart:o,presentationTime:a,number:s=0,duration:u}=e;if(!t)throw new Error(ca.NO_BASE_URL);let c=Wu({baseUrl:t,source:r.sourceURL,range:r.range}),l=Wu({baseUrl:t,source:t,indexRange:n});if(l.map=c,u){let d=S$(e);d.length&&(l.duration=d[0].duration,l.timeline=d[0].timeline)}else i&&(l.duration=i,l.timeline=o);return l.presentationTime=a||o,l.number=s,[l]},gA=(e,t,r)=>{let i=e.sidx.map?e.sidx.map:null,n=e.sidx.duration,o=e.timeline||0,a=e.sidx.byterange,s=a.offset+a.length,u=t.timescale,c=t.references.filter(g=>g.referenceType!==1),l=[],d=e.endList?"static":"dynamic",m=e.sidx.timeline,p=m,h=e.mediaSequence||0,f;typeof t.firstOffset=="bigint"?f=Pt.default.BigInt(s)+t.firstOffset:f=s+t.firstOffset;for(let g=0;g<c.length;g++){let b=t.references[g],v=b.referencedSize,y=b.subsegmentDuration,I;typeof f=="bigint"?I=f+Pt.default.BigInt(v)-Pt.default.BigInt(1):I=f+v-1;let T=`${f}-${I}`,B=hA({baseUrl:r,timescale:u,timeline:o,periodStart:m,presentationTime:p,number:h,duration:y,sourceDuration:n,indexRange:T,type:d})[0];i&&(B.map=i),l.push(B),typeof f=="bigint"?f+=Pt.default.BigInt(v):f+=v,p+=y/u,h++}return e.segments=l,e},WZ=["AUDIO","SUBTITLES"],YZ=1/60,vA=e=>GZ(e,({timeline:t})=>t).sort((t,r)=>t.timeline>r.timeline?1:-1),QZ=(e,t)=>{for(let r=0;r<e.length;r++)if(e[r].attributes.NAME===t)return e[r];return null},uA=e=>{let t=[];return LZ.forEachMediaGroup(e,WZ,(r,i,n,o)=>{t=t.concat(r.playlists||[])}),t},cA=({playlist:e,mediaSequence:t})=>{e.mediaSequence=t,e.segments.forEach((r,i)=>{r.number=e.mediaSequence+i})},eF=({oldPlaylists:e,newPlaylists:t,timelineStarts:r})=>{t.forEach(i=>{i.discontinuitySequence=r.findIndex(function({timeline:u}){return u===i.timeline});let n=QZ(e,i.attributes.NAME);if(!n||i.sidx)return;let o=i.segments[0],a=n.segments.findIndex(function(u){return Math.abs(u.presentationTime-o.presentationTime)<YZ});if(a===-1){cA({playlist:i,mediaSequence:n.mediaSequence+n.segments.length}),i.segments[0].discontinuity=!0,i.discontinuityStarts.unshift(0),(!n.segments.length&&i.timeline>n.timeline||n.segments.length&&i.timeline>n.segments[n.segments.length-1].timeline)&&i.discontinuitySequence--;return}n.segments[a].discontinuity&&!o.discontinuity&&(o.discontinuity=!0,i.discontinuityStarts.unshift(0),i.discontinuitySequence--),cA({playlist:i,mediaSequence:n.segments[a].number})})},tF=({oldManifest:e,newManifest:t})=>{let r=e.playlists.concat(uA(e)),i=t.playlists.concat(uA(t));return t.timelineStarts=vA([e.timelineStarts,t.timelineStarts]),eF({oldPlaylists:r,newPlaylists:i,timelineStarts:t.timelineStarts}),t},yA=e=>e&&e.uri+"-"+JZ(e.byterange),$$=e=>{let t=e.reduce(function(i,n){return i[n.attributes.baseUrl]||(i[n.attributes.baseUrl]=[]),i[n.attributes.baseUrl].push(n),i},{}),r=[];return Object.values(t).forEach(i=>{let n=pA(i.reduce((o,a)=>{let s=a.attributes.id+(a.attributes.lang||"");return o[s]?(a.segments&&(a.segments[0]&&(a.segments[0].discontinuity=!0),o[s].segments.push(...a.segments)),a.attributes.contentProtection&&(o[s].attributes.contentProtection=a.attributes.contentProtection)):(o[s]=a,o[s].attributes.timelineStarts=[]),o[s].attributes.timelineStarts.push({start:a.attributes.periodStart,timeline:a.attributes.periodStart}),o},{}));r=r.concat(n)}),r.map(i=>(i.discontinuityStarts=HZ(i.segments||[],"discontinuity"),i))},k$=(e,t)=>{let r=yA(e.sidx),i=r&&t[r]&&t[r].sidx;return i&&gA(e,i,e.sidx.resolvedUri),e},rF=(e,t={})=>{if(!Object.keys(t).length)return e;for(let r in e)e[r]=k$(e[r],t);return e},nF=({attributes:e,segments:t,sidx:r,mediaSequence:i,discontinuitySequence:n,discontinuityStarts:o},a)=>{let s={attributes:{NAME:e.id,BANDWIDTH:e.bandwidth,CODECS:e.codecs,"PROGRAM-ID":1},uri:"",endList:e.type==="static",timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuitySequence:n,discontinuityStarts:o,timelineStarts:e.timelineStarts,mediaSequence:i,segments:t};return e.contentProtection&&(s.contentProtection=e.contentProtection),e.serviceLocation&&(s.attributes.serviceLocation=e.serviceLocation),r&&(s.sidx=r),a&&(s.attributes.AUDIO="audio",s.attributes.SUBTITLES="subs"),s},iF=({attributes:e,segments:t,mediaSequence:r,discontinuityStarts:i,discontinuitySequence:n})=>{typeof t>"u"&&(t=[{uri:e.baseUrl,timeline:e.periodStart,resolvedUri:e.baseUrl||"",duration:e.sourceDuration,number:0}],e.duration=e.sourceDuration);let o={NAME:e.id,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1};e.codecs&&(o.CODECS=e.codecs);let a={attributes:o,uri:"",endList:e.type==="static",timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,timelineStarts:e.timelineStarts,discontinuityStarts:i,discontinuitySequence:n,mediaSequence:r,segments:t};return e.serviceLocation&&(a.attributes.serviceLocation=e.serviceLocation),a},oF=(e,t={},r=!1)=>{let i,n=e.reduce((o,a)=>{let s=a.attributes.role&&a.attributes.role.value||"",u=a.attributes.lang||"",c=a.attributes.label||"main";if(u&&!a.attributes.label){let d=s?` (${s})`:"";c=`${a.attributes.lang}${d}`}o[c]||(o[c]={language:u,autoselect:!0,default:s==="main",playlists:[],uri:""});let l=k$(nF(a,r),t);return o[c].playlists.push(l),typeof i>"u"&&s==="main"&&(i=a,i.default=!0),o},{});if(!i){let o=Object.keys(n)[0];n[o].default=!0}return n},aF=(e,t={})=>e.reduce((r,i)=>{let n=i.attributes.label||i.attributes.lang||"text",o=i.attributes.lang||"und";return r[n]||(r[n]={language:o,default:!1,autoselect:!1,playlists:[],uri:""}),r[n].playlists.push(k$(iF(i),t)),r},{}),sF=e=>e.reduce((t,r)=>(r&&r.forEach(i=>{let{channel:n,language:o}=i;t[o]={autoselect:!1,default:!1,instreamId:n,language:o},i.hasOwnProperty("aspectRatio")&&(t[o].aspectRatio=i.aspectRatio),i.hasOwnProperty("easyReader")&&(t[o].easyReader=i.easyReader),i.hasOwnProperty("3D")&&(t[o]["3D"]=i["3D"])}),t),{}),uF=({attributes:e,segments:t,sidx:r,discontinuityStarts:i})=>{let n={attributes:{NAME:e.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:e.width,height:e.height},CODECS:e.codecs,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1},uri:"",endList:e.type==="static",timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuityStarts:i,timelineStarts:e.timelineStarts,segments:t};return e.frameRate&&(n.attributes["FRAME-RATE"]=e.frameRate),e.qualityRanking!==void 0&&(n.attributes.SCORE=1/(e.qualityRanking+1)),e.contentProtection&&(n.contentProtection=e.contentProtection),e.serviceLocation&&(n.attributes.serviceLocation=e.serviceLocation),r&&(n.sidx=r),n},cF=({attributes:e})=>e.mimeType==="video/mp4"||e.mimeType==="video/webm"||e.contentType==="video",lF=({attributes:e})=>e.mimeType==="audio/mp4"||e.mimeType==="audio/webm"||e.contentType==="audio",dF=({attributes:e})=>e.mimeType==="text/vtt"||e.contentType==="text",fF=(e,t)=>{e.forEach(r=>{r.mediaSequence=0,r.discontinuitySequence=t.findIndex(function({timeline:i}){return i===r.timeline}),r.segments&&r.segments.forEach((i,n)=>{i.number=n})})},lA=e=>e?Object.keys(e).reduce((t,r)=>{let i=e[r];return t.concat(i.playlists)},[]):[],_A=({dashPlaylists:e,locations:t,contentSteering:r,sidxMapping:i={},previousManifest:n,eventStream:o})=>{if(!e.length)return{};let{sourceDuration:a,type:s,suggestedPresentationDelay:u,minimumUpdatePeriod:c}=e[0].attributes,l=$$(e.filter(cF)).map(uF),d=$$(e.filter(lF)),m=$$(e.filter(dF)),p=e.map(I=>I.attributes.captionServices).filter(Boolean),h={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:"",duration:a,playlists:rF(l,i)};c>=0&&(h.minimumUpdatePeriod=c*1e3),t&&(h.locations=t),r&&(h.contentSteering=r),s==="dynamic"&&(h.suggestedPresentationDelay=u),o&&o.length>0&&(h.eventStream=o);let f=h.playlists.length===0,g=d.length?oF(d,i,f):null,b=m.length?aF(m,i):null,v=l.concat(lA(g),lA(b)),y=v.map(({timelineStarts:I})=>I);return h.timelineStarts=vA(y),fF(v,h.timelineStarts),g&&(h.mediaGroups.AUDIO.audio=g),b&&(h.mediaGroups.SUBTITLES.subs=b),p.length&&(h.mediaGroups["CLOSED-CAPTIONS"].cc=sF(p)),n?tF({oldManifest:n,newManifest:h}):h},pF=(e,t,r)=>{let{NOW:i,clientOffset:n,availabilityStartTime:o,timescale:a=1,periodStart:s=0,minimumUpdatePeriod:u=0}=e,c=(i+n)/1e3,l=o+s,m=c+u-l;return Math.ceil((m*a-t)/r)},bA=(e,t)=>{let{type:r,minimumUpdatePeriod:i=0,media:n="",sourceDuration:o,timescale:a=1,startNumber:s=1,periodStart:u}=e,c=[],l=-1;for(let d=0;d<t.length;d++){let m=t[d],p=m.d,h=m.r||0,f=m.t||0;l<0&&(l=f),f&&f>l&&(l=f);let g;if(h<0){let y=d+1;y===t.length?r==="dynamic"&&i>0&&n.indexOf("$Number$")>0?g=pF(e,l,p):g=(o*a-l)/p:g=(t[y].t-l)/p}else g=h+1;let b=s+c.length+g,v=s+c.length;for(;v<b;)c.push({number:v,duration:p/a,time:l,timeline:u}),l+=p,v++}return c},mF=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,hF=e=>(t,r,i,n)=>{if(t==="$$")return"$";if(typeof e[r]>"u")return t;let o=""+e[r];return r==="RepresentationID"||(i?n=parseInt(n,10):n=1,o.length>=n)?o:`${new Array(n-o.length+1).join("0")}${o}`},dA=(e,t)=>e.replace(mF,hF(t)),gF=(e,t)=>!e.duration&&!t?[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]:e.duration?S$(e):bA(e,t),vF=(e,t)=>{let r={RepresentationID:e.id,Bandwidth:e.bandwidth||0},{initialization:i={sourceURL:"",range:""}}=e,n=Wu({baseUrl:e.baseUrl,source:dA(i.sourceURL,r),range:i.range});return gF(e,t).map(a=>{r.Number=a.number,r.Time=a.time;let s=dA(e.media||"",r),u=e.timescale||1,c=e.presentationTimeOffset||0,l=e.periodStart+(a.time-c)/u;return{uri:s,timeline:a.timeline,duration:a.duration,resolvedUri:x$.default(e.baseUrl||"",s),map:n,number:a.number,presentationTime:l}})},yF=(e,t)=>{let{baseUrl:r,initialization:i={}}=e,n=Wu({baseUrl:r,source:i.sourceURL,range:i.range}),o=Wu({baseUrl:r,source:t.media,range:t.mediaRange});return o.map=n,o},_F=(e,t)=>{let{duration:r,segmentUrls:i=[],periodStart:n}=e;if(!r&&!t||r&&t)throw new Error(ca.SEGMENT_TIME_UNSPECIFIED);let o=i.map(u=>yF(e,u)),a;return r&&(a=S$(e)),t&&(a=bA(e,t)),a.map((u,c)=>{if(o[c]){let l=o[c],d=e.timescale||1,m=e.presentationTimeOffset||0;return l.timeline=u.timeline,l.duration=u.duration,l.number=u.number,l.presentationTime=n+(u.time-m)/d,l}}).filter(u=>u)},bF=({attributes:e,segmentInfo:t})=>{let r,i;t.template?(i=vF,r=He(e,t.template)):t.base?(i=hA,r=He(e,t.base)):t.list&&(i=_F,r=He(e,t.list));let n={attributes:e};if(!i)return n;let o=i(r,t.segmentTimeline);if(r.duration){let{duration:a,timescale:s=1}=r;r.duration=a/s}else o.length?r.duration=o.reduce((a,s)=>Math.max(a,Math.ceil(s.duration)),0):r.duration=0;return n.attributes=r,n.segments=o,t.base&&r.indexRange&&(n.sidx=o[0],n.segments=[]),n},$A=e=>e.map(bF),Pe=(e,t)=>mA(e.childNodes).filter(({tagName:r})=>r===t),Yu=e=>e.textContent.trim(),$F=e=>parseFloat(e.split("/").reduce((t,r)=>t/r)),sa=e=>{let s=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!s)return 0;let[u,c,l,d,m,p]=s.slice(1);return parseFloat(u||0)*31536e3+parseFloat(c||0)*2592e3+parseFloat(l||0)*86400+parseFloat(d||0)*3600+parseFloat(m||0)*60+parseFloat(p||0)},wF=e=>(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),Date.parse(e)),fA={mediaPresentationDuration(e){return sa(e)},availabilityStartTime(e){return wF(e)/1e3},minimumUpdatePeriod(e){return sa(e)},suggestedPresentationDelay(e){return sa(e)},type(e){return e},timeShiftBufferDepth(e){return sa(e)},start(e){return sa(e)},width(e){return parseInt(e,10)},height(e){return parseInt(e,10)},bandwidth(e){return parseInt(e,10)},frameRate(e){return $F(e)},startNumber(e){return parseInt(e,10)},timescale(e){return parseInt(e,10)},presentationTimeOffset(e){return parseInt(e,10)},duration(e){let t=parseInt(e,10);return isNaN(t)?sa(e):t},d(e){return parseInt(e,10)},t(e){return parseInt(e,10)},r(e){return parseInt(e,10)},presentationTime(e){return parseInt(e,10)},qualityRanking(e){return parseInt(e,10)},qualityranking(e){return parseInt(e,10)},DEFAULT(e){return e}},xF={qualityranking:"qualityRanking"},Ue=e=>e&&e.attributes?mA(e.attributes).reduce((t,r)=>{let i=fA[r.name]||fA.DEFAULT,n=xF[r.name]||r.name;return t[n]=i(r.value),t},{}):{},SF={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime","urn:mpeg:dash:mp4protection:2011":"mp4protection"},am=(e,t)=>t.length?ua(e.map(function(r){return t.map(function(i){let n=Yu(i),o=x$.default(r.baseUrl,n),a=He(Ue(i),{baseUrl:o});return o!==n&&!a.serviceLocation&&r.serviceLocation&&(a.serviceLocation=r.serviceLocation),a})})):e,I$=e=>{let t=Pe(e,"SegmentTemplate")[0],r=Pe(e,"SegmentList")[0],i=r&&Pe(r,"SegmentURL").map(d=>He({tag:"SegmentURL"},Ue(d))),n=Pe(e,"SegmentBase")[0],o=r||t,a=o&&Pe(o,"SegmentTimeline")[0],s=r||n||t,u=s&&Pe(s,"Initialization")[0],c=t&&Ue(t);c&&u?c.initialization=u&&Ue(u):c&&c.initialization&&(c.initialization={sourceURL:c.initialization});let l={template:c,segmentTimeline:a&&Pe(a,"S").map(d=>Ue(d)),list:r&&He(Ue(r),{segmentUrls:i,initialization:Ue(u)}),base:n&&He(Ue(n),{initialization:Ue(u)})};return Object.keys(l).forEach(d=>{l[d]||delete l[d]}),l},kF=(e,t,r)=>i=>{let n=Pe(i,"BaseURL"),o=am(t,n),a=He(e,Ue(i)),s=I$(i);return o.map(u=>({segmentInfo:He(r,s),attributes:He(a,u)}))},IF=e=>e.reduce((t,r)=>{let i=Ue(r);i.schemeIdUri&&(i.schemeIdUri=i.schemeIdUri.toLowerCase());let n=SF[i.schemeIdUri];if(n){t[n]={attributes:i};let o=Pe(r,"cenc:pssh")[0];if(o){let a=Yu(o);t[n].pssh=a&&qZ.default(a)}}return t},{}),EF=e=>{if(e.schemeIdUri==="urn:scte:dash:cc:cea-608:2015")return(typeof e.value!="string"?[]:e.value.split(";")).map(r=>{let i,n;return n=r,/^CC\d=/.test(r)?[i,n]=r.split("="):/^CC\d$/.test(r)&&(i=r),{channel:i,language:n}});if(e.schemeIdUri==="urn:scte:dash:cc:cea-708:2015")return(typeof e.value!="string"?[]:e.value.split(";")).map(r=>{let i={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(r)){let[n,o=""]=r.split("=");i.channel=n,i.language=r,o.split(",").forEach(a=>{let[s,u]=a.split(":");s==="lang"?i.language=u:s==="er"?i.easyReader=Number(u):s==="war"?i.aspectRatio=Number(u):s==="3D"&&(i["3D"]=Number(u))})}else i.language=r;return i.channel&&(i.channel="SERVICE"+i.channel),i})},TF=e=>ua(Pe(e.node,"EventStream").map(t=>{let r=Ue(t),i=r.schemeIdUri;return Pe(t,"Event").map(n=>{let o=Ue(n),a=o.presentationTime||0,s=r.timescale||1,u=o.duration||0,c=a/s+e.attributes.start;return{schemeIdUri:i,value:r.value,id:o.id,start:c,end:c+u/s,messageData:Yu(n)||o.messageData,contentEncoding:r.contentEncoding,presentationTimeOffset:r.presentationTimeOffset||0}})})),DF=(e,t,r)=>i=>{let n=Ue(i),o=am(t,Pe(i,"BaseURL")),a=Pe(i,"Role")[0],s={role:Ue(a)},u=He(e,n,s),c=Pe(i,"Accessibility")[0],l=EF(Ue(c));l&&(u=He(u,{captionServices:l}));let d=Pe(i,"Label")[0];if(d&&d.childNodes.length){let g=d.childNodes[0].nodeValue.trim();u=He(u,{label:g})}let m=IF(Pe(i,"ContentProtection"));Object.keys(m).length&&(u=He(u,{contentProtection:m}));let p=I$(i),h=Pe(i,"Representation"),f=He(r,p);return ua(h.map(kF(u,o,f)))},AF=(e,t)=>(r,i)=>{let n=am(t,Pe(r.node,"BaseURL")),o=He(e,{periodStart:r.attributes.start});typeof r.attributes.duration=="number"&&(o.periodDuration=r.attributes.duration);let a=Pe(r.node,"AdaptationSet"),s=I$(r.node);return ua(a.map(DF(o,n,s)))},NF=(e,t)=>{if(e.length>1&&t({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!e.length)return null;let r=He({serverURL:Yu(e[0])},Ue(e[0]));return r.queryBeforeStart=r.queryBeforeStart==="true",r},zF=({attributes:e,priorPeriodAttributes:t,mpdType:r})=>typeof e.start=="number"?e.start:t&&typeof t.start=="number"&&typeof t.duration=="number"?t.start+t.duration:!t&&r==="static"?0:null,wA=(e,t={})=>{let{manifestUri:r="",NOW:i=Date.now(),clientOffset:n=0,eventHandler:o=function(){}}=t,a=Pe(e,"Period");if(!a.length)throw new Error(ca.INVALID_NUMBER_OF_PERIOD);let s=Pe(e,"Location"),u=Ue(e),c=am([{baseUrl:r}],Pe(e,"BaseURL")),l=Pe(e,"ContentSteering");u.type=u.type||"static",u.sourceDuration=u.mediaPresentationDuration||0,u.NOW=i,u.clientOffset=n,s.length&&(u.locations=s.map(Yu));let d=[];return a.forEach((m,p)=>{let h=Ue(m),f=d[p-1];h.start=zF({attributes:h,priorPeriodAttributes:f?f.attributes:null,mpdType:u.type}),d.push({node:m,attributes:h})}),{locations:u.locations,contentSteeringInfo:NF(l,o),representationInfo:ua(d.map(AF(u,c))),eventStream:ua(d.map(TF))}},E$=e=>{if(e==="")throw new Error(ca.DASH_EMPTY_MANIFEST);let t=new FZ.DOMParser,r,i;try{r=t.parseFromString(e,"application/xml"),i=r&&r.documentElement.tagName==="MPD"?r.documentElement:null}catch{}if(!i||i&&i.getElementsByTagName("parsererror").length>0)throw new Error(ca.DASH_INVALID_XML);return i},PF=e=>{let t=Pe(e,"UTCTiming")[0];if(!t)return null;let r=Ue(t);switch(r.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":r.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":r.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":r.method="DIRECT",r.value=Date.parse(r.value);break;default:throw new Error(ca.UNSUPPORTED_UTC_TIMING_SCHEME)}return r},OF=VZ,CF=(e,t={})=>{let r=wA(E$(e),t),i=$A(r.representationInfo);return _A({dashPlaylists:i,locations:r.locations,contentSteering:r.contentSteeringInfo,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest,eventStream:r.eventStream})},RF=e=>PF(E$(e));fr.VERSION=OF;fr.addSidxSegmentsToPlaylist=gA;fr.generateSidxKey=yA;fr.inheritAttributes=wA;fr.parse=CF;fr.parseUTCTiming=RF;fr.stringToMpdXml=E$;fr.toM3u8=_A;fr.toPlaylists=$A});var ue;(function(e){e.assertEqual=n=>{};function t(n){}e.assertIs=t;function r(n){throw new Error}e.assertNever=r,e.arrayToEnum=n=>{let o={};for(let a of n)o[a]=a;return o},e.getValidEnumValues=n=>{let o=e.objectKeys(n).filter(s=>typeof n[n[s]]!="number"),a={};for(let s of o)a[s]=n[s];return e.objectValues(a)},e.objectValues=n=>e.objectKeys(n).map(function(o){return n[o]}),e.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{let o=[];for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&o.push(a);return o},e.find=(n,o)=>{for(let a of n)if(o(a))return a},e.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&Number.isFinite(n)&&Math.floor(n)===n;function i(n,o=" | "){return n.map(a=>typeof a=="string"?`'${a}'`:a).join(o)}e.joinValues=i,e.jsonStringifyReplacer=(n,o)=>typeof o=="bigint"?o.toString():o})(ue||(ue={}));var P$;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(P$||(P$={}));var R=ue.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Dr=e=>{switch(typeof e){case"undefined":return R.undefined;case"string":return R.string;case"number":return Number.isNaN(e)?R.nan:R.number;case"boolean":return R.boolean;case"function":return R.function;case"bigint":return R.bigint;case"symbol":return R.symbol;case"object":return Array.isArray(e)?R.array:e===null?R.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?R.promise:typeof Map<"u"&&e instanceof Map?R.map:typeof Set<"u"&&e instanceof Set?R.set:typeof Date<"u"&&e instanceof Date?R.date:R.object;default:return R.unknown}};var D=ue.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);var Ot=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){let r=t||function(o){return o.message},i={_errors:[]},n=o=>{for(let a of o.issues)if(a.code==="invalid_union")a.unionErrors.map(n);else if(a.code==="invalid_return_type")n(a.returnTypeError);else if(a.code==="invalid_arguments")n(a.argumentsError);else if(a.path.length===0)i._errors.push(r(a));else{let s=i,u=0;for(;u<a.path.length;){let c=a.path[u],l=u===a.path.length-1;if(c==="_errors"){l&&s._errors.push(r(a)),u++;continue}Object.prototype.hasOwnProperty.call(s,c)||(c==="__proto__"?Object.defineProperty(s,c,{value:{_errors:[]},writable:!0,enumerable:!0,configurable:!0}):s[c]={_errors:[]}),s=s[c],l&&s._errors.push(r(a)),u++}}};return n(this),i}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ue.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r=Object.create(null),i=[];for(let n of this.issues)if(n.path.length>0){let o=n.path[0];r[o]=r[o]||[],r[o].push(t(n))}else i.push(t(n));return{formErrors:i,fieldErrors:r}}get formErrors(){return this.flatten()}};Ot.create=e=>new Ot(e);var QA=(e,t)=>{let r;switch(e.code){case D.invalid_type:e.received===R.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case D.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,ue.jsonStringifyReplacer)}`;break;case D.unrecognized_keys:r=`Unrecognized key(s) in object: ${ue.joinValues(e.keys,", ")}`;break;case D.invalid_union:r="Invalid input";break;case D.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ue.joinValues(e.options)}`;break;case D.invalid_enum_value:r=`Invalid enum value. Expected ${ue.joinValues(e.options)}, received '${e.received}'`;break;case D.invalid_arguments:r="Invalid function arguments";break;case D.invalid_return_type:r="Invalid function return type";break;case D.invalid_date:r="Invalid date";break;case D.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:ue.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case D.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case D.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case D.custom:r="Invalid input";break;case D.invalid_intersection_types:r="Intersection results could not be merged";break;case D.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case D.not_finite:r="Number must be finite";break;default:r=t.defaultError,ue.assertNever(e)}return{message:r}},Xr=QA;var e1=Xr;function va(){return e1}var tc=e=>{let{data:t,path:r,errorMaps:i,issueData:n}=e,o=[...r,...n.path||[]],a={...n,path:o};if(n.message!==void 0)return{...n,path:o,message:n.message};let s="",u=i.filter(c=>!!c).slice().reverse();for(let c of u)s=c(a,{data:t,defaultError:s}).message;return{...n,path:o,message:s}};function P(e,t){let r=va(),i=tc({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Xr?void 0:Xr].filter(n=>!!n)});e.common.issues.push(i)}var rt=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let i=[];for(let n of r){if(n.status==="aborted")return H;n.status==="dirty"&&t.dirty(),i.push(n.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,r){let i=[];for(let n of r){let o=await n.key,a=await n.value;i.push({key:o,value:a})}return e.mergeObjectSync(t,i)}static mergeObjectSync(t,r){let i={};for(let n of r){let{key:o,value:a}=n;if(o.status==="aborted"||a.status==="aborted")return H;o.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof a.value<"u"||n.alwaysSet)&&(i[o.value]=a.value)}return{status:t.value,value:i}}},H=Object.freeze({status:"aborted"}),pi=e=>({status:"dirty",value:e}),ct=e=>({status:"valid",value:e}),mm=e=>e.status==="aborted",hm=e=>e.status==="dirty",An=e=>e.status==="valid",ya=e=>typeof Promise<"u"&&e instanceof Promise;var M;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(M||(M={}));var Ft=class{constructor(t,r,i,n){this._cachedPath=[],this.parent=t,this.data=r,this._path=i,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},O$=(e,t)=>{if(An(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Ot(e.common.issues);return this._error=r,this._error}}};function W(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:i,description:n}=e;if(t&&(r||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:n}:{errorMap:(a,s)=>{let{message:u}=e;return a.code==="invalid_enum_value"?{message:u??s.defaultError}:typeof s.data>"u"?{message:u??i??s.defaultError}:a.code!=="invalid_type"?{message:s.defaultError}:{message:u??r??s.defaultError}},description:n}}var re=class{get description(){return this._def.description}_getType(t){return Dr(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:Dr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new rt,ctx:{common:t.parent.common,data:t.data,parsedType:Dr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(ya(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let i=this.safeParse(t,r);if(i.success)return i.data;throw i.error}safeParse(t,r){let i={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Dr(t)},n=this._parseSync({data:t,path:i.path,parent:i});return O$(i,n)}"~validate"(t){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Dr(t)};if(!this["~standard"].async)try{let i=this._parseSync({data:t,path:[],parent:r});return An(i)?{value:i.value}:{issues:r.common.issues}}catch(i){i?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(i=>An(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(t,r){let i=await this.safeParseAsync(t,r);if(i.success)return i.data;throw i.error}async safeParseAsync(t,r){let i={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Dr(t)},n=this._parse({data:t,path:i.path,parent:i}),o=await(ya(n)?n:Promise.resolve(n));return O$(i,o)}refine(t,r){let i=n=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(n):r;return this._refinement((n,o)=>{let a=t(n),s=()=>o.addIssue({code:D.custom,...i(n)});return typeof Promise<"u"&&a instanceof Promise?a.then(u=>u?!0:(s(),!1)):a?!0:(s(),!1)})}refinement(t,r){return this._refinement((i,n)=>t(i)?!0:(n.addIssue(typeof r=="function"?r(i,n):r),!1))}_refinement(t){return new er({schema:this,typeName:N.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Qt.create(this,this._def)}nullable(){return zr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Wr.create(this)}promise(){return Nn.create(this,this._def)}or(t){return yi.create([this,t],this._def)}and(t){return _i.create(this,t,this._def)}transform(t){return new er({...W(this._def),schema:this,typeName:N.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new Si({...W(this._def),innerType:this,defaultValue:r,typeName:N.ZodDefault})}brand(){return new rc({typeName:N.ZodBranded,type:this,...W(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new ki({...W(this._def),innerType:this,catchValue:r,typeName:N.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return nc.create(this,t)}readonly(){return Ii.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},t1=/^c[^\s-]{8,}$/i,r1=/^[0-9a-z]+$/,n1=/^[0-9A-HJKMNP-TV-Z]{26}$/i,i1=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,o1=/^[a-z0-9_-]{21}$/i,a1=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,s1=/^[-+]?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)?)??$/,u1=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,c1="^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$",gm,l1=/^(?:(?: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])$/,d1=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,f1=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,p1=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,m1=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,h1=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,C$="((\\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])))",g1=new RegExp(`^${C$}$`);function R$(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function v1(e){return new RegExp(`^${R$(e)}$`)}function y1(e){let t=`${C$}T${R$(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function _1(e,t){return!!((t==="v4"||!t)&&l1.test(e)||(t==="v6"||!t)&&f1.test(e))}function b1(e,t){if(!a1.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let i=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),n=JSON.parse(atob(i));return!(typeof n!="object"||n===null||"typ"in n&&n?.typ!=="JWT"||!n.alg||t&&n.alg!==t)}catch{return!1}}function $1(e,t){return!!((t==="v4"||!t)&&d1.test(e)||(t==="v6"||!t)&&p1.test(e))}var hi=class e extends re{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==R.string){let o=this._getOrReturnCtx(t);return P(o,{code:D.invalid_type,expected:R.string,received:o.parsedType}),H}let i=new rt,n;for(let o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(n=this._getOrReturnCtx(t,n),P(n,{code:D.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="max")t.data.length>o.value&&(n=this._getOrReturnCtx(t,n),P(n,{code:D.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="length"){let a=t.data.length>o.value,s=t.data.length<o.value;(a||s)&&(n=this._getOrReturnCtx(t,n),a?P(n,{code:D.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):s&&P(n,{code:D.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),i.dirty())}else if(o.kind==="email")u1.test(t.data)||(n=this._getOrReturnCtx(t,n),P(n,{validation:"email",code:D.invalid_string,message:o.message}),i.dirty());else if(o.kind==="emoji")gm||(gm=new RegExp(c1,"u")),gm.test(t.data)||(n=this._getOrReturnCtx(t,n),P(n,{validation:"emoji",code:D.invalid_string,message:o.message}),i.dirty());else if(o.kind==="uuid")i1.test(t.data)||(n=this._getOrReturnCtx(t,n),P(n,{validation:"uuid",code:D.invalid_string,message:o.message}),i.dirty());else if(o.kind==="nanoid")o1.test(t.data)||(n=this._getOrReturnCtx(t,n),P(n,{validation:"nanoid",code:D.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid")t1.test(t.data)||(n=this._getOrReturnCtx(t,n),P(n,{validation:"cuid",code:D.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid2")r1.test(t.data)||(n=this._getOrReturnCtx(t,n),P(n,{validation:"cuid2",code:D.invalid_string,message:o.message}),i.dirty());else if(o.kind==="ulid")n1.test(t.data)||(n=this._getOrReturnCtx(t,n),P(n,{validation:"ulid",code:D.invalid_string,message:o.message}),i.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{n=this._getOrReturnCtx(t,n),P(n,{validation:"url",code:D.invalid_string,message:o.message}),i.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(n=this._getOrReturnCtx(t,n),P(n,{validation:"regex",code:D.invalid_string,message:o.message}),i.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(n=this._getOrReturnCtx(t,n),P(n,{code:D.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),i.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(n=this._getOrReturnCtx(t,n),P(n,{code:D.invalid_string,validation:{startsWith:o.value},message:o.message}),i.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(n=this._getOrReturnCtx(t,n),P(n,{code:D.invalid_string,validation:{endsWith:o.value},message:o.message}),i.dirty()):o.kind==="datetime"?y1(o).test(t.data)||(n=this._getOrReturnCtx(t,n),P(n,{code:D.invalid_string,validation:"datetime",message:o.message}),i.dirty()):o.kind==="date"?g1.test(t.data)||(n=this._getOrReturnCtx(t,n),P(n,{code:D.invalid_string,validation:"date",message:o.message}),i.dirty()):o.kind==="time"?v1(o).test(t.data)||(n=this._getOrReturnCtx(t,n),P(n,{code:D.invalid_string,validation:"time",message:o.message}),i.dirty()):o.kind==="duration"?s1.test(t.data)||(n=this._getOrReturnCtx(t,n),P(n,{validation:"duration",code:D.invalid_string,message:o.message}),i.dirty()):o.kind==="ip"?_1(t.data,o.version)||(n=this._getOrReturnCtx(t,n),P(n,{validation:"ip",code:D.invalid_string,message:o.message}),i.dirty()):o.kind==="jwt"?b1(t.data,o.alg)||(n=this._getOrReturnCtx(t,n),P(n,{validation:"jwt",code:D.invalid_string,message:o.message}),i.dirty()):o.kind==="cidr"?$1(t.data,o.version)||(n=this._getOrReturnCtx(t,n),P(n,{validation:"cidr",code:D.invalid_string,message:o.message}),i.dirty()):o.kind==="base64"?m1.test(t.data)||(n=this._getOrReturnCtx(t,n),P(n,{validation:"base64",code:D.invalid_string,message:o.message}),i.dirty()):o.kind==="base64url"?h1.test(t.data)||(n=this._getOrReturnCtx(t,n),P(n,{validation:"base64url",code:D.invalid_string,message:o.message}),i.dirty()):ue.assertNever(o);return{status:i.value,value:t.data}}_regex(t,r,i){return this.refinement(n=>t.test(n),{validation:r,code:D.invalid_string,...M.errToObj(i)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...M.errToObj(t)})}url(t){return this._addCheck({kind:"url",...M.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...M.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...M.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...M.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...M.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...M.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...M.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...M.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...M.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...M.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...M.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...M.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...M.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...M.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...M.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...M.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...M.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...M.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...M.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...M.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...M.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...M.errToObj(r)})}nonempty(t){return this.min(1,M.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};hi.create=e=>new hi({checks:[],typeName:N.ZodString,coerce:e?.coerce??!1,...W(e)});function w1(e,t){let r=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,n=r>i?r:i,o=Number.parseInt(e.toFixed(n).replace(".","")),a=Number.parseInt(t.toFixed(n).replace(".",""));return o%a/10**n}var _a=class e extends re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==R.number){let o=this._getOrReturnCtx(t);return P(o,{code:D.invalid_type,expected:R.number,received:o.parsedType}),H}let i,n=new rt;for(let o of this._def.checks)o.kind==="int"?ue.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),P(i,{code:D.invalid_type,expected:"integer",received:"float",message:o.message}),n.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),P(i,{code:D.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),P(i,{code:D.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()):o.kind==="multipleOf"?w1(t.data,o.value)!==0&&(i=this._getOrReturnCtx(t,i),P(i,{code:D.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),P(i,{code:D.not_finite,message:o.message}),n.dirty()):ue.assertNever(o);return{status:n.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,M.toString(r))}gt(t,r){return this.setLimit("min",t,!1,M.toString(r))}lte(t,r){return this.setLimit("max",t,!0,M.toString(r))}lt(t,r){return this.setLimit("max",t,!1,M.toString(r))}setLimit(t,r,i,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:M.toString(n)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:M.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:M.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:M.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:M.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:M.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:M.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:M.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:M.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:M.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ue.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(r===null||i.value>r)&&(r=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(r)&&Number.isFinite(t)}};_a.create=e=>new _a({checks:[],typeName:N.ZodNumber,coerce:e?.coerce||!1,...W(e)});var ba=class e extends re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==R.bigint)return this._getInvalidInput(t);let i,n=new rt;for(let o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(i=this._getOrReturnCtx(t,i),P(i,{code:D.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(i=this._getOrReturnCtx(t,i),P(i,{code:D.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),P(i,{code:D.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):ue.assertNever(o);return{status:n.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return P(r,{code:D.invalid_type,expected:R.bigint,received:r.parsedType}),H}gte(t,r){return this.setLimit("min",t,!0,M.toString(r))}gt(t,r){return this.setLimit("min",t,!1,M.toString(r))}lte(t,r){return this.setLimit("max",t,!0,M.toString(r))}lt(t,r){return this.setLimit("max",t,!1,M.toString(r))}setLimit(t,r,i,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:i,message:M.toString(n)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:M.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:M.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:M.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:M.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:M.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};ba.create=e=>new ba({checks:[],typeName:N.ZodBigInt,coerce:e?.coerce??!1,...W(e)});var $a=class extends re{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==R.boolean){let i=this._getOrReturnCtx(t);return P(i,{code:D.invalid_type,expected:R.boolean,received:i.parsedType}),H}return ct(t.data)}};$a.create=e=>new $a({typeName:N.ZodBoolean,coerce:e?.coerce||!1,...W(e)});var wa=class e extends re{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==R.date){let o=this._getOrReturnCtx(t);return P(o,{code:D.invalid_type,expected:R.date,received:o.parsedType}),H}if(Number.isNaN(t.data.getTime())){let o=this._getOrReturnCtx(t);return P(o,{code:D.invalid_date}),H}let i=new rt,n;for(let o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(n=this._getOrReturnCtx(t,n),P(n,{code:D.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),i.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(n=this._getOrReturnCtx(t,n),P(n,{code:D.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),i.dirty()):ue.assertNever(o);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:M.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:M.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};wa.create=e=>new wa({checks:[],coerce:e?.coerce||!1,typeName:N.ZodDate,...W(e)});var xa=class extends re{_parse(t){if(this._getType(t)!==R.symbol){let i=this._getOrReturnCtx(t);return P(i,{code:D.invalid_type,expected:R.symbol,received:i.parsedType}),H}return ct(t.data)}};xa.create=e=>new xa({typeName:N.ZodSymbol,...W(e)});var gi=class extends re{_parse(t){if(this._getType(t)!==R.undefined){let i=this._getOrReturnCtx(t);return P(i,{code:D.invalid_type,expected:R.undefined,received:i.parsedType}),H}return ct(t.data)}};gi.create=e=>new gi({typeName:N.ZodUndefined,...W(e)});var vi=class extends re{_parse(t){if(this._getType(t)!==R.null){let i=this._getOrReturnCtx(t);return P(i,{code:D.invalid_type,expected:R.null,received:i.parsedType}),H}return ct(t.data)}};vi.create=e=>new vi({typeName:N.ZodNull,...W(e)});var Sa=class extends re{constructor(){super(...arguments),this._any=!0}_parse(t){return ct(t.data)}};Sa.create=e=>new Sa({typeName:N.ZodAny,...W(e)});var Kr=class extends re{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ct(t.data)}};Kr.create=e=>new Kr({typeName:N.ZodUnknown,...W(e)});var mr=class extends re{_parse(t){let r=this._getOrReturnCtx(t);return P(r,{code:D.invalid_type,expected:R.never,received:r.parsedType}),H}};mr.create=e=>new mr({typeName:N.ZodNever,...W(e)});var ka=class extends re{_parse(t){if(this._getType(t)!==R.undefined){let i=this._getOrReturnCtx(t);return P(i,{code:D.invalid_type,expected:R.void,received:i.parsedType}),H}return ct(t.data)}};ka.create=e=>new ka({typeName:N.ZodVoid,...W(e)});var Wr=class e extends re{_parse(t){let{ctx:r,status:i}=this._processInputParams(t),n=this._def;if(r.parsedType!==R.array)return P(r,{code:D.invalid_type,expected:R.array,received:r.parsedType}),H;if(n.exactLength!==null){let a=r.data.length>n.exactLength.value,s=r.data.length<n.exactLength.value;(a||s)&&(P(r,{code:a?D.too_big:D.too_small,minimum:s?n.exactLength.value:void 0,maximum:a?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),i.dirty())}if(n.minLength!==null&&r.data.length<n.minLength.value&&(P(r,{code:D.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),i.dirty()),n.maxLength!==null&&r.data.length>n.maxLength.value&&(P(r,{code:D.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),i.dirty()),r.common.async)return Promise.all([...r.data].map((a,s)=>n.type._parseAsync(new Ft(r,a,r.path,s)))).then(a=>rt.mergeArray(i,a));let o=[...r.data].map((a,s)=>n.type._parseSync(new Ft(r,a,r.path,s)));return rt.mergeArray(i,o)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:M.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:M.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:M.toString(r)}})}nonempty(t){return this.min(1,t)}};Wr.create=(e,t)=>new Wr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:N.ZodArray,...W(t)});function mi(e){if(e instanceof Ct){let t={};for(let r in e.shape){let i=e.shape[r];t[r]=Qt.create(mi(i))}return new Ct({...e._def,shape:()=>t})}else return e instanceof Wr?new Wr({...e._def,type:mi(e.element)}):e instanceof Qt?Qt.create(mi(e.unwrap())):e instanceof zr?zr.create(mi(e.unwrap())):e instanceof Nr?Nr.create(e.items.map(t=>mi(t))):e}var Ct=class e extends re{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=ue.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==R.object){let c=this._getOrReturnCtx(t);return P(c,{code:D.invalid_type,expected:R.object,received:c.parsedType}),H}let{status:i,ctx:n}=this._processInputParams(t),{shape:o,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof mr&&this._def.unknownKeys==="strip"))for(let c in n.data)a.includes(c)||s.push(c);let u=[];for(let c of a){let l=o[c],d=n.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new Ft(n,d,n.path,c)),alwaysSet:c in n.data})}if(this._def.catchall instanceof mr){let c=this._def.unknownKeys;if(c==="passthrough")for(let l of s)u.push({key:{status:"valid",value:l},value:{status:"valid",value:n.data[l]}});else if(c==="strict")s.length>0&&(P(n,{code:D.unrecognized_keys,keys:s}),i.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let c=this._def.catchall;for(let l of s){let d=n.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new Ft(n,d,n.path,l)),alwaysSet:l in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let c=[];for(let l of u){let d=await l.key,m=await l.value;c.push({key:d,value:m,alwaysSet:l.alwaysSet})}return c}).then(c=>rt.mergeObjectSync(i,c)):rt.mergeObjectSync(i,u)}get shape(){return this._def.shape()}strict(t){return M.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,i)=>{let n=this._def.errorMap?.(r,i).message??i.defaultError;return r.code==="unrecognized_keys"?{message:M.errToObj(t).message??n}:{message:n}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:N.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};for(let i of ue.objectKeys(t))t[i]&&this.shape[i]&&(r[i]=this.shape[i]);return new e({...this._def,shape:()=>r})}omit(t){let r={};for(let i of ue.objectKeys(this.shape))t[i]||(r[i]=this.shape[i]);return new e({...this._def,shape:()=>r})}deepPartial(){return mi(this)}partial(t){let r={};for(let i of ue.objectKeys(this.shape)){let n=this.shape[i];t&&!t[i]?r[i]=n:r[i]=n.optional()}return new e({...this._def,shape:()=>r})}required(t){let r={};for(let i of ue.objectKeys(this.shape))if(t&&!t[i])r[i]=this.shape[i];else{let o=this.shape[i];for(;o instanceof Qt;)o=o._def.innerType;r[i]=o}return new e({...this._def,shape:()=>r})}keyof(){return j$(ue.objectKeys(this.shape))}};Ct.create=(e,t)=>new Ct({shape:()=>e,unknownKeys:"strip",catchall:mr.create(),typeName:N.ZodObject,...W(t)});Ct.strictCreate=(e,t)=>new Ct({shape:()=>e,unknownKeys:"strict",catchall:mr.create(),typeName:N.ZodObject,...W(t)});Ct.lazycreate=(e,t)=>new Ct({shape:e,unknownKeys:"strip",catchall:mr.create(),typeName:N.ZodObject,...W(t)});var yi=class extends re{_parse(t){let{ctx:r}=this._processInputParams(t),i=this._def.options;function n(o){for(let s of o)if(s.result.status==="valid")return s.result;for(let s of o)if(s.result.status==="dirty")return r.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(s=>new Ot(s.ctx.common.issues));return P(r,{code:D.invalid_union,unionErrors:a}),H}if(r.common.async)return Promise.all(i.map(async o=>{let a={...r,common:{...r.common,issues:[]},parent:null};return{result:await o._parseAsync({data:r.data,path:r.path,parent:a}),ctx:a}})).then(n);{let o,a=[];for(let u of i){let c={...r,common:{...r.common,issues:[]},parent:null},l=u._parseSync({data:r.data,path:r.path,parent:c});if(l.status==="valid")return l;l.status==="dirty"&&!o&&(o={result:l,ctx:c}),c.common.issues.length&&a.push(c.common.issues)}if(o)return r.common.issues.push(...o.ctx.common.issues),o.result;let s=a.map(u=>new Ot(u));return P(r,{code:D.invalid_union,unionErrors:s}),H}}get options(){return this._def.options}};yi.create=(e,t)=>new yi({options:e,typeName:N.ZodUnion,...W(t)});var Ar=e=>e instanceof bi?Ar(e.schema):e instanceof er?Ar(e.innerType()):e instanceof $i?[e.value]:e instanceof wi?e.options:e instanceof xi?ue.objectValues(e.enum):e instanceof Si?Ar(e._def.innerType):e instanceof gi?[void 0]:e instanceof vi?[null]:e instanceof Qt?[void 0,...Ar(e.unwrap())]:e instanceof zr?[null,...Ar(e.unwrap())]:e instanceof rc||e instanceof Ii?Ar(e.unwrap()):e instanceof ki?Ar(e._def.innerType):[],vm=class e extends re{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==R.object)return P(r,{code:D.invalid_type,expected:R.object,received:r.parsedType}),H;let i=this.discriminator,n=r.data[i],o=this.optionsMap.get(n);return o?r.common.async?o._parseAsync({data:r.data,path:r.path,parent:r}):o._parseSync({data:r.data,path:r.path,parent:r}):(P(r,{code:D.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),H)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,i){let n=new Map;for(let o of r){let a=Ar(o.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let s of a){if(n.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);n.set(s,o)}}return new e({typeName:N.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:n,...W(i)})}};function ym(e,t){let r=Dr(e),i=Dr(t);if(e===t)return{valid:!0,data:e};if(r===R.object&&i===R.object){let n=ue.objectKeys(t),o=ue.objectKeys(e).filter(s=>n.indexOf(s)!==-1),a={...e,...t};Object.prototype.hasOwnProperty.call(a,"__proto__")&&delete a.__proto__;for(let s of o){if(s==="__proto__")continue;let u=ym(e[s],t[s]);if(!u.valid)return{valid:!1};a[s]=u.data}return{valid:!0,data:a}}else if(r===R.array&&i===R.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let o=0;o<e.length;o++){let a=e[o],s=t[o],u=ym(a,s);if(!u.valid)return{valid:!1};n.push(u.data)}return{valid:!0,data:n}}else return r===R.date&&i===R.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var _i=class extends re{_parse(t){let{status:r,ctx:i}=this._processInputParams(t),n=(o,a)=>{if(mm(o)||mm(a))return H;let s=ym(o.value,a.value);return s.valid?((hm(o)||hm(a))&&r.dirty(),{status:r.value,value:s.data}):(P(i,{code:D.invalid_intersection_types}),H)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([o,a])=>n(o,a)):n(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};_i.create=(e,t,r)=>new _i({left:e,right:t,typeName:N.ZodIntersection,...W(r)});var Nr=class e extends re{_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==R.array)return P(i,{code:D.invalid_type,expected:R.array,received:i.parsedType}),H;if(i.data.length<this._def.items.length)return P(i,{code:D.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),H;!this._def.rest&&i.data.length>this._def.items.length&&(P(i,{code:D.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let o=[...i.data].map((a,s)=>{let u=this._def.items[s]||this._def.rest;return u?u._parse(new Ft(i,a,i.path,s)):null}).filter(a=>!!a);return i.common.async?Promise.all(o).then(a=>rt.mergeArray(r,a)):rt.mergeArray(r,o)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Nr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Nr({items:e,typeName:N.ZodTuple,rest:null,...W(t)})};var _m=class e extends re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==R.object)return P(i,{code:D.invalid_type,expected:R.object,received:i.parsedType}),H;let n=[],o=this._def.keyType,a=this._def.valueType;for(let s in i.data)n.push({key:o._parse(new Ft(i,s,i.path,s)),value:a._parse(new Ft(i,i.data[s],i.path,s)),alwaysSet:s in i.data});return i.common.async?rt.mergeObjectAsync(r,n):rt.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(t,r,i){return r instanceof re?new e({keyType:t,valueType:r,typeName:N.ZodRecord,...W(i)}):new e({keyType:hi.create(),valueType:t,typeName:N.ZodRecord,...W(r)})}},Ia=class extends re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==R.map)return P(i,{code:D.invalid_type,expected:R.map,received:i.parsedType}),H;let n=this._def.keyType,o=this._def.valueType,a=[...i.data.entries()].map(([s,u],c)=>({key:n._parse(new Ft(i,s,i.path,[c,"key"])),value:o._parse(new Ft(i,u,i.path,[c,"value"]))}));if(i.common.async){let s=new Map;return Promise.resolve().then(async()=>{for(let u of a){let c=await u.key,l=await u.value;if(c.status==="aborted"||l.status==="aborted")return H;(c.status==="dirty"||l.status==="dirty")&&r.dirty(),s.set(c.value,l.value)}return{status:r.value,value:s}})}else{let s=new Map;for(let u of a){let c=u.key,l=u.value;if(c.status==="aborted"||l.status==="aborted")return H;(c.status==="dirty"||l.status==="dirty")&&r.dirty(),s.set(c.value,l.value)}return{status:r.value,value:s}}}};Ia.create=(e,t,r)=>new Ia({valueType:t,keyType:e,typeName:N.ZodMap,...W(r)});var Ea=class e extends re{_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.parsedType!==R.set)return P(i,{code:D.invalid_type,expected:R.set,received:i.parsedType}),H;let n=this._def;n.minSize!==null&&i.data.size<n.minSize.value&&(P(i,{code:D.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),r.dirty()),n.maxSize!==null&&i.data.size>n.maxSize.value&&(P(i,{code:D.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),r.dirty());let o=this._def.valueType;function a(u){let c=new Set;for(let l of u){if(l.status==="aborted")return H;l.status==="dirty"&&r.dirty(),c.add(l.value)}return{status:r.value,value:c}}let s=[...i.data.values()].map((u,c)=>o._parse(new Ft(i,u,i.path,c)));return i.common.async?Promise.all(s).then(u=>a(u)):a(s)}min(t,r){return new e({...this._def,minSize:{value:t,message:M.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:M.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};Ea.create=(e,t)=>new Ea({valueType:e,minSize:null,maxSize:null,typeName:N.ZodSet,...W(t)});var bm=class e extends re{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==R.function)return P(r,{code:D.invalid_type,expected:R.function,received:r.parsedType}),H;function i(s,u){return tc({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,va(),Xr].filter(c=>!!c),issueData:{code:D.invalid_arguments,argumentsError:u}})}function n(s,u){return tc({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,va(),Xr].filter(c=>!!c),issueData:{code:D.invalid_return_type,returnTypeError:u}})}let o={errorMap:r.common.contextualErrorMap},a=r.data;if(this._def.returns instanceof Nn){let s=this;return ct(async function(...u){let c=new Ot([]),l=await s._def.args.parseAsync(u,o).catch(p=>{throw c.addIssue(i(u,p)),c}),d=await Reflect.apply(a,this,l);return await s._def.returns._def.type.parseAsync(d,o).catch(p=>{throw c.addIssue(n(d,p)),c})})}else{let s=this;return ct(function(...u){let c=s._def.args.safeParse(u,o);if(!c.success)throw new Ot([i(u,c.error)]);let l=Reflect.apply(a,this,c.data),d=s._def.returns.safeParse(l,o);if(!d.success)throw new Ot([n(l,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Nr.create(t).rest(Kr.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,i){return new e({args:t||Nr.create([]).rest(Kr.create()),returns:r||Kr.create(),typeName:N.ZodFunction,...W(i)})}},bi=class extends re{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};bi.create=(e,t)=>new bi({getter:e,typeName:N.ZodLazy,...W(t)});var $i=class extends re{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return P(r,{received:r.data,code:D.invalid_literal,expected:this._def.value}),H}return{status:"valid",value:t.data}}get value(){return this._def.value}};$i.create=(e,t)=>new $i({value:e,typeName:N.ZodLiteral,...W(t)});function j$(e,t){return new wi({values:e,typeName:N.ZodEnum,...W(t)})}var wi=class e extends re{_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),i=this._def.values;return P(r,{expected:ue.joinValues(i),received:r.parsedType,code:D.invalid_type}),H}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let r=this._getOrReturnCtx(t),i=this._def.values;return P(r,{received:r.data,code:D.invalid_enum_value,options:i}),H}return ct(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(i=>!t.includes(i)),{...this._def,...r})}};wi.create=j$;var xi=class extends re{_parse(t){let r=ue.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==R.string&&i.parsedType!==R.number){let n=ue.objectValues(r);return P(i,{expected:ue.joinValues(n),received:i.parsedType,code:D.invalid_type}),H}if(this._cache||(this._cache=new Set(ue.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let n=ue.objectValues(r);return P(i,{received:i.data,code:D.invalid_enum_value,options:n}),H}return ct(t.data)}get enum(){return this._def.values}};xi.create=(e,t)=>new xi({values:e,typeName:N.ZodNativeEnum,...W(t)});var Nn=class extends re{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==R.promise&&r.common.async===!1)return P(r,{code:D.invalid_type,expected:R.promise,received:r.parsedType}),H;let i=r.parsedType===R.promise?r.data:Promise.resolve(r.data);return ct(i.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Nn.create=(e,t)=>new Nn({type:e,typeName:N.ZodPromise,...W(t)});var er=class extends re{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===N.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:i}=this._processInputParams(t),n=this._def.effect||null,o={addIssue:a=>{P(i,a),a.fatal?r.abort():r.dirty()},get path(){return i.path}};if(o.addIssue=o.addIssue.bind(o),n.type==="preprocess"){let a=n.transform(i.data,o);if(i.common.async)return Promise.resolve(a).then(async s=>{if(r.value==="aborted")return H;let u=await this._def.schema._parseAsync({data:s,path:i.path,parent:i});return u.status==="aborted"?H:u.status==="dirty"?pi(u.value):r.value==="dirty"?pi(u.value):u});{if(r.value==="aborted")return H;let s=this._def.schema._parseSync({data:a,path:i.path,parent:i});return s.status==="aborted"?H:s.status==="dirty"?pi(s.value):r.value==="dirty"?pi(s.value):s}}if(n.type==="refinement"){let a=s=>{let u=n.refinement(s,o);if(i.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(i.common.async===!1){let s=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?H:(s.status==="dirty"&&r.dirty(),a(s.value),{status:r.value,value:s.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(s=>s.status==="aborted"?H:(s.status==="dirty"&&r.dirty(),a(s.value).then(()=>({status:r.value,value:s.value}))))}if(n.type==="transform")if(i.common.async===!1){let a=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!An(a))return H;let s=n.transform(a.value,o);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:s}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(a=>An(a)?Promise.resolve(n.transform(a.value,o)).then(s=>({status:r.value,value:s})):H);ue.assertNever(n)}};er.create=(e,t,r)=>new er({schema:e,typeName:N.ZodEffects,effect:t,...W(r)});er.createWithPreprocess=(e,t,r)=>new er({schema:t,effect:{type:"preprocess",transform:e},typeName:N.ZodEffects,...W(r)});var Qt=class extends re{_parse(t){return this._getType(t)===R.undefined?ct(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Qt.create=(e,t)=>new Qt({innerType:e,typeName:N.ZodOptional,...W(t)});var zr=class extends re{_parse(t){return this._getType(t)===R.null?ct(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};zr.create=(e,t)=>new zr({innerType:e,typeName:N.ZodNullable,...W(t)});var Si=class extends re{_parse(t){let{ctx:r}=this._processInputParams(t),i=r.data;return r.parsedType===R.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Si.create=(e,t)=>new Si({innerType:e,typeName:N.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...W(t)});var ki=class extends re{_parse(t){let{ctx:r}=this._processInputParams(t),i={...r,common:{...r.common,issues:[]}},n=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return ya(n)?n.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Ot(i.common.issues)},input:i.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new Ot(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};ki.create=(e,t)=>new ki({innerType:e,typeName:N.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...W(t)});var Ta=class extends re{_parse(t){if(this._getType(t)!==R.nan){let i=this._getOrReturnCtx(t);return P(i,{code:D.invalid_type,expected:R.nan,received:i.parsedType}),H}return{status:"valid",value:t.data}}};Ta.create=e=>new Ta({typeName:N.ZodNaN,...W(e)});var rc=class extends re{_parse(t){let{ctx:r}=this._processInputParams(t),i=r.data;return this._def.type._parse({data:i,path:r.path,parent:r})}unwrap(){return this._def.type}},nc=class e extends re{_parse(t){let{status:r,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{let o=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?H:o.status==="dirty"?(r.dirty(),pi(o.value)):this._def.out._parseAsync({data:o.value,path:i.path,parent:i})})();{let n=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return n.status==="aborted"?H:n.status==="dirty"?(r.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:i.path,parent:i})}}static create(t,r){return new e({in:t,out:r,typeName:N.ZodPipeline})}},Ii=class extends re{_parse(t){let r=this._def.innerType._parse(t),i=n=>(An(n)&&(n.value=Object.freeze(n.value)),n);return ya(r)?r.then(n=>i(n)):i(r)}unwrap(){return this._def.innerType}};Ii.create=(e,t)=>new Ii({innerType:e,typeName:N.ZodReadonly,...W(t)});var U9={object:Ct.lazycreate},N;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(N||(N={}));var M9=hi.create,L9=_a.create,Z9=Ta.create,F9=ba.create,q9=$a.create,V9=wa.create,B9=xa.create,H9=gi.create,G9=vi.create,J9=Sa.create,X9=Kr.create,K9=mr.create,W9=ka.create,Y9=Wr.create,U$=Ct.create,Q9=Ct.strictCreate,eq=yi.create,tq=vm.create,rq=_i.create,nq=Nr.create,iq=_m.create,oq=Ia.create,aq=Ea.create,sq=bm.create,uq=bi.create,cq=$i.create,lq=wi.create,dq=xi.create,fq=Nn.create,pq=er.create,mq=Qt.create,hq=zr.create,gq=er.createWithPreprocess,vq=nc.create;var nr={};Tr(nr,{$ZodAny:()=>dl,$ZodArray:()=>gl,$ZodAsyncError:()=>$t,$ZodBase64:()=>Xc,$ZodBase64URL:()=>Wc,$ZodBigInt:()=>Ka,$ZodBigIntFormat:()=>sl,$ZodBoolean:()=>Bi,$ZodCIDRv4:()=>Bc,$ZodCIDRv6:()=>Gc,$ZodCUID:()=>jc,$ZodCUID2:()=>Uc,$ZodCatch:()=>Ol,$ZodCheck:()=>$e,$ZodCheckBigIntFormat:()=>Ih,$ZodCheckEndsWith:()=>Uh,$ZodCheckGreaterThan:()=>wc,$ZodCheckIncludes:()=>Rh,$ZodCheckLengthEquals:()=>zh,$ZodCheckLessThan:()=>$c,$ZodCheckLowerCase:()=>Oh,$ZodCheckMaxLength:()=>Ah,$ZodCheckMaxSize:()=>Eh,$ZodCheckMimeType:()=>Zh,$ZodCheckMinLength:()=>Nh,$ZodCheckMinSize:()=>Th,$ZodCheckMultipleOf:()=>Sh,$ZodCheckNumberFormat:()=>kh,$ZodCheckOverwrite:()=>Fh,$ZodCheckProperties:()=>Lh,$ZodCheckProperty:()=>Mh,$ZodCheckRegex:()=>Ph,$ZodCheckSizeEquals:()=>Dh,$ZodCheckStartsWith:()=>jh,$ZodCheckStringFormat:()=>qi,$ZodCheckUpperCase:()=>Ch,$ZodCodec:()=>Gi,$ZodCreditCard:()=>el,$ZodCustom:()=>Ll,$ZodCustomStringFormat:()=>ol,$ZodCyclicError:()=>Vl,$ZodDate:()=>hl,$ZodDefault:()=>Al,$ZodDiscriminatedUnion:()=>_l,$ZodE164:()=>Yc,$ZodEmail:()=>Ac,$ZodEmoji:()=>Cc,$ZodEncodeError:()=>Qr,$ZodEnum:()=>Sl,$ZodError:()=>Um,$ZodExactOptional:()=>Tl,$ZodFile:()=>Il,$ZodFunction:()=>Ul,$ZodGUID:()=>Tc,$ZodIBAN:()=>rl,$ZodIPv4:()=>Fc,$ZodIPv6:()=>qc,$ZodISODate:()=>Jh,$ZodISODateTime:()=>Gh,$ZodISODuration:()=>Kh,$ZodISOTime:()=>Xh,$ZodIntersection:()=>bl,$ZodJWT:()=>il,$ZodKSUID:()=>Zc,$ZodLazy:()=>Ji,$ZodLiteral:()=>kl,$ZodMAC:()=>Vc,$ZodMap:()=>wl,$ZodNaN:()=>Cl,$ZodNanoID:()=>Rc,$ZodNever:()=>pl,$ZodNonOptional:()=>zl,$ZodNull:()=>ll,$ZodNullable:()=>Dl,$ZodNumber:()=>Xa,$ZodNumberFormat:()=>al,$ZodObject:()=>vl,$ZodObjectJIT:()=>Yh,$ZodOptional:()=>Ya,$ZodPipe:()=>Qa,$ZodPrefault:()=>Nl,$ZodPreprocess:()=>eg,$ZodPromise:()=>Ml,$ZodReadonly:()=>Rl,$ZodRealError:()=>wt,$ZodRecord:()=>$l,$ZodRegistry:()=>Kl,$ZodSet:()=>xl,$ZodString:()=>en,$ZodStringFormat:()=>ve,$ZodSuccess:()=>Pl,$ZodSymbol:()=>ul,$ZodTemplateLiteral:()=>jl,$ZodTransform:()=>El,$ZodTuple:()=>Wa,$ZodType:()=>X,$ZodULID:()=>Mc,$ZodURL:()=>Oc,$ZodUUID:()=>Dc,$ZodUndefined:()=>cl,$ZodUnion:()=>Hi,$ZodUnknown:()=>fl,$ZodVoid:()=>ml,$ZodXID:()=>Lc,$ZodXor:()=>yl,$brand:()=>Cm,$constructor:()=>_,$input:()=>ig,$output:()=>ng,Doc:()=>Un,INVALID:()=>ft,JSONSchema:()=>bx,JSONSchemaGenerator:()=>Md,NEVER:()=>Om,TimePrecision:()=>fg,URL_BAD_FORMAT:()=>Bh,URL_UNPARSEABLE:()=>Va,ZodCompileAsyncError:()=>tr,ZodCompileUnsupportedError:()=>oe,_any:()=>yd,_array:()=>vg,_base64:()=>$s,_base64url:()=>ws,_bigint:()=>fd,_boolean:()=>dd,_catch:()=>dO,_check:()=>ix,_cidrv4:()=>_s,_cidrv6:()=>bs,_coercedBigint:()=>hg,_coercedBoolean:()=>mg,_coercedDate:()=>gg,_coercedNumber:()=>pg,_coercedString:()=>dg,_creditCard:()=>nd,_cuid:()=>fs,_cuid2:()=>ps,_custom:()=>Ad,_date:()=>wd,_decode:()=>lc,_decodeAsync:()=>fc,_default:()=>uO,_discriminatedUnion:()=>KP,_e164:()=>xs,_email:()=>is,_emoji:()=>ls,_encode:()=>cc,_encodeAsync:()=>dc,_endsWith:()=>oo,_enum:()=>rO,_file:()=>Dd,_float32:()=>sd,_float64:()=>ud,_gt:()=>vr,_gte:()=>Ut,_guid:()=>os,_iban:()=>id,_includes:()=>no,_int:()=>ad,_int32:()=>cd,_int64:()=>pd,_intersection:()=>WP,_ipv4:()=>vs,_ipv6:()=>ys,_isoDate:()=>Is,_isoDateTime:()=>ks,_isoDuration:()=>Ts,_isoTime:()=>Es,_jwt:()=>Ss,_ksuid:()=>gs,_lazy:()=>hO,_length:()=>Vn,_literal:()=>iO,_lowercase:()=>to,_lt:()=>gr,_lte:()=>jt,_mac:()=>rd,_map:()=>eO,_max:()=>jt,_maxLength:()=>qn,_maxSize:()=>nn,_mime:()=>so,_min:()=>Ut,_minLength:()=>Rr,_minSize:()=>yr,_multipleOf:()=>rn,_nan:()=>xd,_nanoid:()=>ds,_nativeEnum:()=>nO,_negative:()=>kd,_never:()=>bd,_nonnegative:()=>Ed,_nonoptional:()=>cO,_nonpositive:()=>Id,_normalize:()=>uo,_null:()=>vd,_nullable:()=>sO,_number:()=>od,_optional:()=>aO,_overwrite:()=>rr,_parse:()=>Ci,_parseAsync:()=>Ri,_pipe:()=>fO,_positive:()=>Sd,_promise:()=>gO,_properties:()=>ao,_property:()=>Td,_readonly:()=>pO,_record:()=>QP,_refine:()=>Nd,_regex:()=>eo,_safeDecode:()=>mc,_safeDecodeAsync:()=>gc,_safeEncode:()=>pc,_safeEncodeAsync:()=>hc,_safeParse:()=>ji,_safeParseAsync:()=>Mi,_set:()=>tO,_size:()=>Fn,_slugify:()=>po,_startsWith:()=>io,_string:()=>td,_stringFormat:()=>on,_stringbool:()=>Cd,_success:()=>lO,_superRefine:()=>zd,_symbol:()=>hd,_templateLiteral:()=>mO,_toLowerCase:()=>lo,_toUpperCase:()=>fo,_transform:()=>oO,_trim:()=>co,_tuple:()=>YP,_uint32:()=>ld,_uint64:()=>md,_ulid:()=>ms,_undefined:()=>gd,_union:()=>JP,_unknown:()=>_d,_uppercase:()=>ro,_url:()=>Qi,_uuid:()=>as,_uuidv4:()=>ss,_uuidv6:()=>us,_uuidv7:()=>cs,_void:()=>$d,_xid:()=>hs,_xor:()=>XP,base64Charset:()=>Jc,base64urlCharset:()=>Ja,canParseURL:()=>Hh,clone:()=>me,compile:()=>ug,compileFn:()=>Ql,config:()=>Oe,createStandardJSONSchemaMethod:()=>mo,createToJSONSchemaMethod:()=>_g,decode:()=>o0,decodeAsync:()=>s0,describe:()=>Pd,encode:()=>i0,encodeAsync:()=>a0,extractDefs:()=>sn,finalize:()=>un,flattenError:()=>Ua,formatError:()=>Ma,getDiscriminatedOption:()=>Qh,globalConfig:()=>qe,globalRegistry:()=>Je,handleUnrepresentable:()=>Me,initializeContext:()=>an,isBackEdge:()=>Hl,isRecursiveSchema:()=>Bl,isValidBase64:()=>Ga,isValidBase64URL:()=>Kc,isValidCIDRv6:()=>Hc,isValidCreditCard:()=>Qc,isValidIBAN:()=>tl,isValidIPv6:()=>Ha,isValidJWT:()=>nl,locales:()=>Wi,memoizer:()=>rs,mergeValues:()=>Vi,meta:()=>Od,parse:()=>Cn,parseAsync:()=>Rn,parseURLObject:()=>N0,prettifyError:()=>Lm,process:()=>ye,processSchema:()=>ye,regexes:()=>Rt,registry:()=>Wl,safeDecode:()=>c0,safeDecodeAsync:()=>d0,safeEncode:()=>u0,safeEncodeAsync:()=>l0,safeParse:()=>Ui,safeParseAsync:()=>Li,standardProps:()=>Ec,stripTabAndNewline:()=>Ba,toDotPath:()=>r0,toJSONSchema:()=>Bn,toZod:()=>Da,treeifyError:()=>Mm,urlHostnameOk:()=>zc,urlProtocolOk:()=>Pc,util:()=>x,validate:()=>Zi,validateAsync:()=>Fi,validateURL:()=>Nc,version:()=>qh,withParser:()=>Yl});var x={};Tr(x,{BIGINT_FORMAT_RANGES:()=>Pa,CONSTANT_CATCH:()=>sc,Class:()=>xm,NUMBER_FORMAT_RANGES:()=>za,aborted:()=>dt,allowsEval:()=>Im,assert:()=>E1,assertEqual:()=>x1,assertIs:()=>k1,assertNever:()=>I1,assertNotEqual:()=>S1,assignProp:()=>Ge,attachSchema:()=>Oa,base64ToUint8Array:()=>K$,base64urlToUint8Array:()=>M1,cached:()=>Ai,captureStackTrace:()=>oc,cleanEnum:()=>U1,cleanRegex:()=>Or,clone:()=>me,cloneDef:()=>A1,codePointLength:()=>On,constantCatch:()=>zm,createTransparentProxy:()=>R1,defineLazy:()=>Sm,defineLazyInternal:()=>Q,derived:()=>q1,esc:()=>lt,escapeRegex:()=>Bt,explicitlyAborted:()=>Dm,extend:()=>V$,finalizeIssue:()=>bt,floatSafeRemainder:()=>Aa,getElementAtPath:()=>N1,getEnumValues:()=>Ti,getLengthableOrigin:()=>Ra,getParsedType:()=>C1,getSizableOrigin:()=>Ca,hexToUint8Array:()=>Z1,hide:()=>ja,installLazyProp:()=>Nm,isObject:()=>Pn,isPlainObject:()=>Vt,issue:()=>Oi,joinValues:()=>$,jsonStringifyReplacer:()=>Di,members:()=>Am,merge:()=>G$,mergeDefs:()=>qt,normalizeParams:()=>A,nullish:()=>ic,numKeys:()=>O1,objectClone:()=>T1,omit:()=>q$,optionalKeys:()=>Tm,own:()=>hr,parsedType:()=>k,partial:()=>J$,pick:()=>F$,prefixIssues:()=>_t,primitiveTypes:()=>Em,promiseAllObject:()=>z1,propertyKeyTypes:()=>Na,randomString:()=>P1,rawShape:()=>Ni,required:()=>X$,safeExtend:()=>H$,shallowClone:()=>zi,sizeCaps:()=>Pi,slugify:()=>km,stringifyPrimitive:()=>S,toZod:()=>Da,uint8ArrayToBase64:()=>W$,uint8ArrayToBase64url:()=>L1,uint8ArrayToHex:()=>F1,unwrapMessage:()=>Ei});function x1(e){return e}function S1(e){return e}function Da(){return e=>e}function k1(e){}function I1(e){throw new Error("Unexpected value in exhaustive check")}function E1(e){}function Ti(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 $(e,t="|"){return e.map(r=>S(r)).join(t)}function Di(e,t){return typeof t=="bigint"?t.toString():t}var wm=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 Ai(e){return new wm(e)}function ic(e){return e==null}function Or(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Aa(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 M$=Symbol("evaluating");function Sm(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==M$)return i===void 0&&(i=M$,i=r()),i},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function T1(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Ge(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Ni(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function Pr(e){return Ni(e._zod.def)??e._zod.def.shape}function L$(e,t,r){Object.defineProperty(e,t,{get(){let i=r();return Ge(this,t,i),i},enumerable:!0,configurable:!0})}function Z$(e,t,r){t in e?Ge(e,t,r):e[t]=r}function zn(e,t,r,i){let n=Pr(t);for(let o of r){let a=Object.getOwnPropertyDescriptor(n,o);a.enumerable&&(a.get?L$(e,o,()=>{let s=t._zod.def.shape[o];return i?i(s,o):s}):Z$(e,o,i?i(a.value,o):a.value))}}function D1(e,t){for(let r of Reflect.ownKeys(t)){let i=Object.getOwnPropertyDescriptor(t,r);i.enumerable&&(i.get?L$(e,r,()=>t[r]):Z$(e,r,i.value))}}function qt(...e){let t={};for(let r of e){let i=Object.getOwnPropertyDescriptors(r);Object.assign(t,i)}return Object.defineProperties({},t)}function A1(e){return qt(e._zod.def)}function N1(e,t){return t?t.reduce((r,i)=>r?.[i],e):e}function z1(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 P1(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r}function lt(e){return JSON.stringify(e)}function km(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var oc="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Pn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Im=Ai(()=>{if(qe.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Vt(e){if(Pn(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Pn(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function zi(e){return Vt(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function O1(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var C1=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}`)}},Na=new Set(["string","number","symbol"]),Em=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Bt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function me(e,t,r){let i=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(i._zod.parent=e),i}function A(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 R1(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 S(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Tm(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var za={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]},Pa={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function F$(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 zn(o,e,ac(e,t)),me(e,qt(r,{shape:o,checks:[]}))}function ac(e,t){let r=Pr(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 q$(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(ac(e,t)),a={};return zn(a,e,Reflect.ownKeys(Pr(e)).filter(s=>!o.has(s))),me(e,qt(r,{shape:a,checks:[]}))}function V$(e,t){if(!Vt(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=Pr(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 me(e,qt(e._zod.def,{shape:B$(e,t)}))}function B$(e,t){let r={};return zn(r,e,Reflect.ownKeys(Pr(e))),D1(r,t),r}function H$(e,t){if(!Vt(t))throw new Error("Invalid input to safeExtend: expected a plain object");return me(e,qt(e._zod.def,{shape:B$(e,t)}))}function G$(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={};zn(r,e,Reflect.ownKeys(Pr(e))),zn(r,t,Reflect.ownKeys(Pr(t)));let i=qt(e._zod.def,{shape:r,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return me(e,i)}function J$(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 s=r?new Set(ac(t,r)):void 0,u={};return zn(u,t,Reflect.ownKeys(Pr(t)),e&&((c,l)=>s&&!s.has(l)?c:new e({type:"optional",innerType:c}))),me(t,qt(t._zod.def,{shape:u,checks:[]}))}function X$(e,t,r){let i=r?new Set(ac(t,r)):void 0,n={};return zn(n,t,Reflect.ownKeys(Pr(t)),(o,a)=>i&&!i.has(a)?o:new e({type:"nonoptional",innerType:o})),me(t,qt(t._zod.def,{shape:n}))}function dt(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 Dm(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 _t(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function Ei(e){return typeof e=="string"?e:e?.message}function Pi(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 Oa(e,t,r){var i;for(let n=t;n<e.length;n++)(i=e[n]).schema??(i.schema=r)}function bt(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,a=e.message?e.message:Ei(e.inst?._zod.def?.error?.(e))??Ei(o?.(e))??Ei(t?.error?.(e))??Ei(r.customError?.(e))??Ei(r.localeError?.(e))??"Invalid input",s={};for(let u of Object.keys(e))u==="inst"||u==="schema"||u==="continue"||u==="input"||u==="__proto__"||(s[u]=e[u]);return s.path??(s.path=[]),s.message=a,t?.reportInput&&(s.input=e.input),s}function Ca(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}var j1=/[\uD800-\uDBFF]/;function On(e){let t=e.length;if(!j1.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 Ra(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function k(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 Oi(...e){let[t,r,i]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:i}:{...t}}function U1(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function K$(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 W$(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function M1(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return K$(t+r)}function L1(e){return W$(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Z1(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 F1(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var xm=class{constructor(...t){}};function Am(e,t){for(let r in t){let i=Object.getOwnPropertyDescriptor(t,r);i.get?Object.defineProperty(e,r,{...i,enumerable:!1}):V1(e,r,i.value)}}function hr(e,t,r,i=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:i,value:r}),r}function ja(e,t,r){return hr(e,t,r,!1)}function q1(e,t){for(let r in e){let i=e[r];Object.defineProperty(t,r,{configurable:!0,enumerable:!0,get(){return hr(this,r,i(this))},set(n){hr(this,r,n)}})}return t}function V1(e,t,r){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?r:hr(this,t,r.bind(this))},set(i){hr(this,t,i)}})}function B1(e,t){let r=Object.getPrototypeOf(e);return t in r?void 0:r}var $m,Yr=!1,H1={configurable:!0,get(){Yr=!0}};function Q(e,t,r){let i=Object.getPrototypeOf(e._zod);if(t in i&&$m!==e._zod){$m=void 0;return}$m=e._zod,Object.defineProperty(i,t,{configurable:!0,get(){Object.defineProperty(this,t,H1);let n=Yr;Yr=!1;try{let o=r(this);return Yr?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:o}),Yr=Yr||n,o}catch(o){throw delete this[t],Yr=Yr||n,o}},set(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})}function Nm(e,t,r,i){let n=B1(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 sc="~constantCatch";function zm(e){let t=()=>e;return t[sc]=!0,t}var Y$,Om=Object.freeze({status:"aborted"}),Pm={value:void 0,enumerable:!1},Q$="captureStackTrace"in Error?Error:null;function G1(e){let t=Q$;if(t){let r=t.stackTraceLimit;if(typeof r=="number"){try{t.stackTraceLimit=0}catch{return Q$=null,new e}try{return new e}finally{t.stackTraceLimit=r}}}return new e}function _(e,t,r,i){let n={};function o(m){this.def=m,this.constr=d,this.traits=new Set}o.prototype=n;let a=r,s=a&&new WeakSet;function u(m,p){if(m._zod){if(m._zod.traits.has(e))return}else{Pm.value=new o(p);try{Object.defineProperty(m,"_zod",Pm)}finally{Pm.value=void 0}}if(m._zod.traits.add(e),t(m,p),s){let f=Object.getPrototypeOf(m),g=m._zod.constr.prototype,b=f;for(;b&&b!==g;)b=Object.getPrototypeOf(b);let v=b??f;s.has(v)||(s.add(v),Am(v,a))}let h=d.prototype;for(let f in h)Object.prototype.hasOwnProperty.call(h,f)&&(f in m||(m[f]=h[f].bind(m)))}let c=i?.Parent??Object;class l extends c{}Object.defineProperty(l,"name",{value:e});function d(m){let p=i?.Parent?G1(l):this;u(p,m);let h=p._zod.deferred;if(h){for(let g of h)g();p._zod.deferred=void 0}let f=globalThis.__zod_globalConfig?.postProcessor;return f&&f(p),p}return Object.defineProperty(d,"init",{value:u}),Object.defineProperty(d,Symbol.hasInstance,{value:m=>i?.Parent&&m instanceof i.Parent?!0:m?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var Cm=Symbol("zod_brand"),$t=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Qr=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(Y$=globalThis).__zod_globalConfig??(Y$.__zod_globalConfig={});var qe=globalThis.__zod_globalConfig;function Oe(e){return e&&Object.assign(qe,e),qe}function J1(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Di,2)),e.message}function X1(e){this._zod.message=e}var K1={get:J1,set:X1,enumerable:!0,configurable:!0},jm={value:void 0,enumerable:!1},e0=new WeakSet([Object.prototype,Error.prototype]),t0=(e,t)=>{e.name="$ZodError",jm.value=t,Object.defineProperty(e,"issues",jm),jm.value=void 0,Object.defineProperty(e,"message",K1);let r=Object.getPrototypeOf(e);e0.has(r)||(e0.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})}}))},Um=_("$ZodError",t0),wt=_("$ZodError",t0,void 0,{Parent:Error});function W1(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 Ua(e,t=r=>r.message){let r={},i=[];for(let n of e.issues)n.path.length>0?W1(r,n.path[0],()=>[]).push(t(n)):i.push(t(n));return{formErrors:i,fieldErrors:r}}function Ma(e,t=r=>r.message){let r={_errors:[]},i=(n,o=[])=>{for(let a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>i({issues:s},[...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 s=[...o,...a.path];if(s.length===0)r._errors.push(t(a));else{let u=r,c=0;for(;c<s.length;){let l=s[c],d=c===s.length-1;if(l==="_errors"){d&&u._errors.push(t(a)),c++;continue}Object.prototype.hasOwnProperty.call(u,l)||Object.defineProperty(u,l,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let m=u[l];d&&m._errors.push(t(a)),u=m,c++}}}};return i(e),r}function Mm(e,t=r=>r.message){let r={errors:[]},i=(n,o=[])=>{var a;for(let s of n.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(u=>i({issues:u},[...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 u=[...o,...s.path];if(u.length===0){r.errors.push(t(s));continue}let c=r,l=0;for(;l<u.length;){let d=u[l],m=l===u.length-1;typeof d=="string"?(c.properties??(c.properties={}),Object.prototype.hasOwnProperty.call(c.properties,d)||Object.defineProperty(c.properties,d,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),c=c.properties[d]):(c.items??(c.items=[]),(a=c.items)[d]??(a[d]={errors:[]}),c=c.items[d]),m&&c.errors.push(t(s)),l++}}};return i(e),r}function r0(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 Lm(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 ${r0(i.path)}`);return t.join(`
17
+ `)}function uc(e,t){return{callee:t?.callee??e,Err:t?.Err}}var Ci=e=>{let t=(r,i,n,o)=>{let a=n?{...n,async:!1}:{async:!1},s=r._zod.run({value:i,issues:[]},a);if(s instanceof Promise)throw new $t;if(s.issues.length){let u=new(o?.Err??e)(s.issues.map(c=>bt(c,a,Oe())));throw oc(u,o?.callee??t),u}return s.value};return t},Cn=Ci(wt),Ri=e=>{let t=async(r,i,n,o)=>{let a=n?{...n,async:!0}:{async:!0},s=r._zod.run({value:i,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){let u=new(o?.Err??e)(s.issues.map(c=>bt(c,a,Oe())));throw oc(u,o?.callee??t),u}return s.value};return t},Rn=Ri(wt),ji=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 $t;return o.issues.length?n0(e,o.issues,n):{success:!0,data:o.value}},Ui=ji(wt);function n0(e,t,r){let i;return{success:!1,get error(){return i||(i=new e(t.map(n=>bt(n,r,Oe()))),t=void 0,r=void 0),i},set error(n){i=n,t=void 0,r=void 0}}}var Mi=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?n0(e,o.issues,n):{success:!0,data:o.value}},Li=Mi(wt),Q1=Symbol.for("zod.compile.invalid"),eN=Symbol.for("zod.compile.fallback"),Zi=((e,t,r)=>{let i=e._zod.bag.validator;if(i!==void 0){if(i(t)!==Q1)return!0;if(i.definite===!0&&r===void 0)return!1}return tN(e,t,r)});function tN(e,t,r){let i=r?{...r,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},n=e._zod.bag.fallbackRun,o;if(n?(i[eN]=!0,o=n({value:t,issues:[]},i)):o=e._zod.run({value:t,issues:[]},i),o instanceof Promise)throw new $t;return o.issues.length===0}var Fi=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},cc=e=>{let t=Ci(e),r=(i,n,o,a)=>{let s=o?{...o,direction:"backward"}:{direction:"backward"};return t(i,n,s,uc(r,a))};return r},i0=cc(wt),lc=e=>{let t=Ci(e),r=(i,n,o,a)=>t(i,n,o,uc(r,a));return r},o0=lc(wt),dc=e=>{let t=Ri(e),r=async(i,n,o,a)=>{let s=o?{...o,direction:"backward"}:{direction:"backward"};return await t(i,n,s,uc(r,a))};return r},a0=dc(wt),fc=e=>{let t=Ri(e),r=async(i,n,o,a)=>await t(i,n,o,uc(r,a));return r},s0=fc(wt),pc=e=>(t,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return ji(e)(t,r,n)},u0=pc(wt),mc=e=>(t,r,i)=>ji(e)(t,r,i),c0=mc(wt),hc=e=>async(t,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return Mi(e)(t,r,n)},l0=hc(wt),gc=e=>async(t,r,i)=>Mi(e)(t,r,i),d0=gc(wt);var Rt={};Tr(Rt,{anyString:()=>ph,base64:()=>ih,base64url:()=>oh,bigint:()=>hh,boolean:()=>gh,browserEmail:()=>cN,cidrv4:()=>rh,cidrv6:()=>nh,creditCard:()=>vc,cuid:()=>Fm,cuid2:()=>qm,currencyCode:()=>ch,date:()=>lh,datetime:()=>fh,domain:()=>sh,duration:()=>Xm,e164:()=>uh,email:()=>Wm,emoji:()=>Ym,extendedDuration:()=>rN,guid:()=>Km,hex:()=>$h,hostname:()=>ah,html5Email:()=>aN,httpProtocol:()=>La,iban:()=>yc,idnEmail:()=>uN,integer:()=>Za,ipv4:()=>Qm,ipv6:()=>eh,ksuid:()=>Hm,lowercase:()=>_h,mac:()=>th,md5_base64:()=>pN,md5_base64url:()=>mN,md5_hex:()=>fN,nanoid:()=>Gm,nanoidOfLength:()=>Jm,null:()=>vh,number:()=>Cr,rfc5322Email:()=>sN,sha1_base64:()=>gN,sha1_base64url:()=>vN,sha1_hex:()=>hN,sha256_base64:()=>_N,sha256_base64url:()=>bN,sha256_hex:()=>yN,sha384_base64:()=>wN,sha384_base64url:()=>xN,sha384_hex:()=>$N,sha512_base64:()=>kN,sha512_base64url:()=>IN,sha512_hex:()=>SN,string:()=>mh,time:()=>dh,ulid:()=>Vm,undefined:()=>yh,unicodeEmail:()=>f0,uppercase:()=>bh,uuid:()=>jn,uuid4:()=>nN,uuid6:()=>iN,uuid7:()=>oN,xid:()=>Bm});var Fm=/^[cC][0-9a-z]{6,}$/,qm=/^[0-9a-z]+$/,Vm=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Bm=/^[0-9a-vA-V]{20}$/,Hm=/^[A-Za-z0-9]{27}$/,Gm=/^[a-zA-Z0-9_-]{21}$/;function Jm(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Xm=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,rN=/^[-+]?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)?)??$/,Km=/^([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})$/,jn=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)$/,nN=jn(4),iN=jn(6),oN=jn(7),Wm=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,aN=/^[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])?)*$/,sN=/^(([^<>()\[\]\\.,;:\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,}))$/,f0=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,uN=f0,cN=/^[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])?)*$/,lN="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function Ym(){return new RegExp(lN,"u")}var Qm=/^(?:(?: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])$/,eh=/^(([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}|:))$/,th=e=>{let t=Bt(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},rh=/^((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])$/,nh=/^(([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])$/,ih=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,oh=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,ah=/^(?=.{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])?)*\.?$/,sh=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,La=/^https?$/,uh=/^\+[1-9]\d{6,14}$/,vc=/^\d(?:[ -]?\d){11,18}$/,ch=/^(?: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)$/,yc=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/,p0="(?:(?:\\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 dN(e){return new RegExp(`^${e}$`)}var lh=dN(p0);function Zm(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 dh(e){return new RegExp(`^${Zm(e)}$`)}function fh(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let r=`${Zm({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,i=e.local?`${r}|${Zm({precision:e.precision})}`:r;return new RegExp(`^${p0}T(?:${i})$`)}var ph=/^[\s\S]{0,}$/,mh=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},hh=/^-?\d+n?$/,Za=/^-?\d+$/,Cr=/^-?\d+(?:\.\d+)?$/,gh=/^(?:true|false)$/i,vh=/^null$/i;var yh=/^undefined$/i;var _h=/^[^A-Z]*$/,bh=/^[^a-z]*$/,$h=/^[0-9a-fA-F]*$/;function Fa(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function qa(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var fN=/^[0-9a-fA-F]{32}$/,pN=Fa(22,"=="),mN=qa(22),hN=/^[0-9a-fA-F]{40}$/,gN=Fa(27,"="),vN=qa(27),yN=/^[0-9a-fA-F]{64}$/,_N=Fa(43,"="),bN=qa(43),$N=/^[0-9a-fA-F]{96}$/,wN=Fa(64,""),xN=qa(64),SN=/^[0-9a-fA-F]{128}$/,kN=Fa(86,"=="),IN=qa(86);var $e=_("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),wh=e=>{let t=e.value;return!ic(t)&&t.size!==void 0},xh=e=>{let t=e.value;return!ic(t)&&t.length!==void 0},_c={number:"number",bigint:"bigint",object:"date"},$c=_("$ZodCheckLessThan",(e,t)=>{$e.init(e,t);let r=_c[typeof t.value];e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:_c[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})}}),wc=_("$ZodCheckGreaterThan",(e,t)=>{$e.init(e,t);let r=_c[typeof t.value];e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:_c[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})}}),Sh=_("$ZodCheckMultipleOf",(e,t)=>{$e.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):Aa(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})}}),kh=_("$ZodCheckNumberFormat",(e,t)=>{$e.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),i=r?"int":"number",[n,o]=za[t.format];e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}s<n&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Ih=_("$ZodCheckBigIntFormat",(e,t)=>{$e.init(e,t);let[r,i]=Pa[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})}}),Eh=_("$ZodCheckMaxSize",(e,t)=>{var r;$e.init(e,t),(r=e._zod.def).when??(r.when=wh),e._zod.check=i=>{let n=i.value;n.size<=t.maximum||i.issues.push({origin:Ca(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Th=_("$ZodCheckMinSize",(e,t)=>{var r;$e.init(e,t),(r=e._zod.def).when??(r.when=wh),e._zod.check=i=>{let n=i.value;n.size>=t.minimum||i.issues.push({origin:Ca(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Dh=_("$ZodCheckSizeEquals",(e,t)=>{var r;$e.init(e,t),(r=e._zod.def).when??(r.when=wh),e._zod.check=i=>{let n=i.value,o=n.size;if(o===t.size)return;let a=o>t.size;i.issues.push({origin:Ca(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Ah=_("$ZodCheckMaxLength",(e,t)=>{var r;$e.init(e,t),(r=e._zod.def).when??(r.when=xh),e._zod.check=i=>{let n=i.value,o=n.length;if((typeof n=="string"&&o>t.maximum?On(n):o)<=t.maximum)return;let s=Ra(n);i.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Nh=_("$ZodCheckMinLength",(e,t)=>{var r;$e.init(e,t),(r=e._zod.def).when??(r.when=xh),e._zod.check=i=>{let n=i.value,o=n.length;if((typeof n=="string"&&o>=t.minimum&&o<t.minimum*2?On(n):o)>=t.minimum)return;let s=Ra(n);i.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),zh=_("$ZodCheckLengthEquals",(e,t)=>{var r;$e.init(e,t),(r=e._zod.def).when??(r.when=xh),e._zod.check=i=>{let n=i.value,o=n.length,a=typeof n=="string"&&o>=t.length&&o<=t.length*2?On(n):o;if(a===t.length)return;let s=Ra(n),u=a>t.length;i.issues.push({origin:s,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),qi=_("$ZodCheckStringFormat",(e,t)=>{var r,i;$e.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=()=>{})}),Ph=_("$ZodCheckRegex",(e,t)=>{qi.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})}}),Oh=_("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=_h),qi.init(e,t)}),Ch=_("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=bh),qi.init(e,t)}),Rh=_("$ZodCheckIncludes",(e,t)=>{$e.init(e,t);let r=Bt(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})}}),jh=_("$ZodCheckStartsWith",(e,t)=>{$e.init(e,t);let r=new RegExp(`^${Bt(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})}}),Uh=_("$ZodCheckEndsWith",(e,t)=>{$e.init(e,t);let r=new RegExp(`.*${Bt(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 bc(e,t,r){e.issues.length&&t.issues.push(..._t(r,e.issues))}var Mh=_("$ZodCheckProperty",(e,t)=>{$e.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=>bc(n,r,t.property));bc(i,r,t.property)}}),Lh=_("$ZodCheckProperties",(e,t)=>{$e.init(e,t),ja(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(a=>[a,t.shape[a]]));let n=i.value,o;for(let[a,s]of r){let u=s._zod.run({value:n[a],issues:[]},{});u instanceof Promise?(o??(o=[]),o.push(u.then(c=>bc(c,i,a)))):bc(u,i,a)}if(o)return Promise.all(o).then(()=>{})}}),Zh=_("$ZodCheckMimeType",(e,t)=>{$e.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})}}),Fh=_("$ZodCheckOverwrite",(e,t)=>{$e.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var Un=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(`
18
+ `).filter(a=>a),n=Math.min(...i.map(a=>a.length-a.trimStart().length)),o=i.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(let a of o)this.content.push(a)}compile(){let t=Function,r=this?.content??[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
19
+ ${r.join(`
20
+ `)}
21
+ };`)(...Object.values(this.closed))}};var qh={major:4,minor:6,patch:7};var X=_("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=qh;let i=e._zod.def.checks,n=e._zod.traits.has("$ZodCheck")?[e,...i??[]]:i?.length?[...i]:[];for(let o of n)for(let a of o._zod.onattach)a(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let o=(s,u,c)=>{if(s.memo)return s;let l=dt(s),d;for(let m of u){if(m._zod.def.when){if(Dm(s)||!m._zod.def.when(s))continue}else if(l)continue;let p=s.issues.length,h=m._zod.check(s);if(h instanceof Promise&&c?.async===!1)throw new $t;if(d||h instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await h,s.issues.length!==p&&(Oa(s.issues,p,e),l||(l=dt(s,p)))});else{if(s.issues.length===p)continue;Oa(s.issues,p,e),l||(l=dt(s,p))}}return d?d.then(()=>s):s},a=(s,u,c)=>{if(dt(s))return s.aborted=!0,s;let l=o(u,n,c);if(l instanceof Promise){if(c.async===!1)throw new $t;return l.then(d=>e._zod.parse(d,c))}return e._zod.parse(l,c)};e._zod.run=(s,u)=>{if(u.skipChecks)return e._zod.parse(s,u);if(u.direction==="backward"){let l=e._zod.parse({value:s.value,issues:[]},{...u,skipChecks:!0});return l instanceof Promise?l.then(d=>a(d,s,u)):a(l,s,u)}let c=e._zod.parse(s,u);if(c instanceof Promise){if(u.async===!1)throw new $t;return c.then(l=>o(l,n,u))}return o(c,n,u)}}},{get"~standard"(){return ja(this,"~standard",Ec(this))},set"~standard"(e){hr(this,"~standard",e)}}),A0=(e,t)=>e.issues.length?{issues:e.issues.map(r=>bt(r,t,Oe()))}:{value:e.value};async function EN(e,t){let r={async:!0};return A0(await e._zod.run({value:t,issues:[]},r),r)}function Ec(e){return{validate:t=>{let r={async:!1};try{let i=e._zod.run({value:t,issues:[]},r);if(!(i instanceof Promise))return A0(i,r)}catch{}return EN(e,t)},vendor:"zod",version:1}}var en=_("$ZodString",(e,t)=>{X.init(e,t),e._zod.pattern=t.pattern??ph,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}}),ve=_("$ZodStringFormat",(e,t)=>{qi.init(e,t),en.init(e,t)}),Tc=_("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Km),ve.init(e,t)}),Dc=_("$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=jn(i))}else t.pattern??(t.pattern=jn());ve.init(e,t)}),Ac=_("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Wm),ve.init(e,t)}),Bh=1,Va=2;function Hh(e){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function Nc(e,t){return!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t)?Hh(e)||Va:N0(e,t)}function N0(e,t){if(!t.normalize&&t.protocol?.source===La.source&&!/^https?:\/\//i.test(e))return Bh;try{if(typeof URL<"u"){let r=URL;if(typeof r.parse=="function")return r.parse(e)??Va}return new URL(e)}catch{return Va}}var TN=/[\t\n\r]/g;function Ba(e){return e.replace(TN,"")}function zc(e,t){return t.lastIndex=0,t.test(e.hostname)}function Pc(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var Oc=_("$ZodURL",(e,t)=>{ve.init(e,t),e._zod.check=r=>{try{let i=r.value.trim(),n=Nc(i,t);if(n===Bh){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}if(n===Va){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort});return}if(n===!0){r.value=Ba(i);return}t.hostname&&!zc(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&&!Pc(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:Ba(i);return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),Cc=_("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Ym()),ve.init(e,t)}),Rc=_("$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?Gm:Jm(t.length)),ve.init(e,t)}),jc=_("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Fm),ve.init(e,t)}),Uc=_("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=qm),ve.init(e,t)}),Mc=_("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Vm),ve.init(e,t)}),Lc=_("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Bm),ve.init(e,t)}),Zc=_("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Hm),ve.init(e,t)}),Gh=_("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=fh(t)),ve.init(e,t)}),Jh=_("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=lh),ve.init(e,t)}),Xh=_("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=dh(t)),ve.init(e,t)}),Kh=_("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Xm),ve.init(e,t)}),Fc=_("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Qm),ve.init(e,t)}),DN=/^[0-9a-fA-F:.]+$/;function Ha(e){return DN.test(e)?Hh(`http://[${e}]`):!1}var qc=_("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=eh),ve.init(e,t),e._zod.check=r=>{Ha(r.value)||r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}),Vc=_("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=th(t.delimiter)),ve.init(e,t)}),Bc=_("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=rh),ve.init(e,t)});function Hc(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:Ha(r)}var Gc=_("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=nh),ve.init(e,t),e._zod.check=r=>{Hc(r.value)||r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}});function Ga(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Jc=/^[0-9a-zA-Z+/]*={0,2}$/,Xc=_("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Jc),ve.init(e,t),e._zod.check=r=>{Ga(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}}),Ja=/^[A-Za-z0-9_-]*$/;function Kc(e){if(!Ja.test(e))return!1;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Ga(r)}var Wc=_("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Ja),ve.init(e,t),e._zod.check=r=>{Kc(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Yc=_("$ZodE164",(e,t)=>{t.pattern??(t.pattern=uh),ve.init(e,t)}),AN=/[- ]/g;function NN(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 Qc(e){return vc.test(e)?NN(e.replace(AN,"")):!1}var el=_("$ZodCreditCard",(e,t)=>{t.pattern??(t.pattern=vc),ve.init(e,t),e._zod.check=r=>{Qc(r.value)||r.issues.push({code:"invalid_format",format:"credit_card",input:r.value,inst:e,continue:!t.abort})}});function zN(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 tl(e){return yc.test(e)?zN(e):!1}var rl=_("$ZodIBAN",(e,t)=>{t.pattern??(t.pattern=yc),ve.init(e,t),e._zod.check=r=>{tl(r.value)||r.issues.push({code:"invalid_format",format:"iban",input:r.value,inst:e,continue:!t.abort})}});function nl(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 il=_("$ZodJWT",(e,t)=>{ve.init(e,t),e._zod.check=r=>{nl(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),ol=_("$ZodCustomStringFormat",(e,t)=>{ve.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})}}),Xa=_("$ZodNumber",(e,t)=>{X.init(e,t),e._zod.pattern=Cr,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}}),al=_("$ZodNumberFormat",(e,t)=>{kh.init(e,t),Xa.init(e,t)}),Bi=_("$ZodBoolean",(e,t)=>{X.init(e,t),e._zod.pattern=gh,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}}),Ka=_("$ZodBigInt",(e,t)=>{X.init(e,t),e._zod.pattern=hh,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}}),sl=_("$ZodBigIntFormat",(e,t)=>{Ih.init(e,t),Ka.init(e,t)}),ul=_("$ZodSymbol",(e,t)=>{X.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}}),cl=_("$ZodUndefined",(e,t)=>{X.init(e,t),e._zod.pattern=yh,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}}),ll=_("$ZodNull",(e,t)=>{X.init(e,t),e._zod.pattern=vh,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}}),dl=_("$ZodAny",(e,t)=>{X.init(e,t),e._zod.parse=r=>r}),fl=_("$ZodUnknown",(e,t)=>{X.init(e,t),e._zod.parse=r=>r}),pl=_("$ZodNever",(e,t)=>{X.init(e,t),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),ml=_("$ZodVoid",(e,t)=>{X.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}}),hl=_("$ZodDate",(e,t)=>{X.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 Wh(e,t){let r=Pi(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,a)=>{let s=t(o.value);if(s>i&&!a?.skipChecks&&a?.direction!=="backward"){for(let[u,c]of Pi(e._zod.def.checks))if(s>u&&c._zod.def.when(o)){let l=o.issues.length;return c._zod.check(o),o.issues[l].continue=!1,Oa(o.issues,l,e),o}}return n(o,a)}}var PN=e=>Array.isArray(e)?e.length:-1,ON=e=>e instanceof Map?e.size:-1,CN=e=>e instanceof Set?e.size:-1;function h0(e,t,r){e.issues.length&&t.issues.push(..._t(r,e.issues)),t.value[r]=e.value}var gl=_("$ZodArray",(e,t)=>{X.init(e,t);let r=qe.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 a=[],s=n?.abortEarly;for(let u=0;u<o.length;u++){let c=o[u],l=t.element._zod.run({value:c,issues:[]},n);if(l instanceof Promise)a.push(l.then(d=>h0(d,i,u)));else if(h0(l,i,u),s&&l.issues.length!==0&&dt(l))break}return a.length?Promise.all(a).then(()=>i):i},Wh(e,PN)});function Ic(e,t,r,i,n,o){let a=r in i,s=o==="optional";if(!(!a&&s&&n==="optional")){if(e.issues.length){if(n!==void 0&&s&&!a)return;t.issues.push(..._t(r,e.issues))}if(!a&&n===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?(a||n==="defaulted"&&!s)&&(t.value[r]=void 0):t.value[r]=e.value}}var RN=[];function z0(e){let t=Object.keys(e.shape),r=Object.getOwnPropertySymbols(e.shape),i=r.length?r:RN,n=i.length?[...t,...i]:t;for(let a of n)if(!e.shape?.[a]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(a)}": expected a Zod schema`);let o=Tm(e.shape);return{...e,allKeys:n,symbolKeys:i,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(o)}}function P0(e,t,r,i,n,o,a){let s=[],u=n.keySet,c=n.catchall._zod,l=c.def.type,d=c.optin,m=c.optout,p=0;for(let h in t){if(a&&r.issues.length!==p){if(dt(r,p))break;p=r.issues.length}if(u.has(h))continue;if(h==="__proto__"){l==="never"&&s.push(h);continue}if(l==="never"){s.push(h);continue}let f=c.run({value:t[h],issues:[]},i);f instanceof Promise?e.push(f.then(g=>Ic(g,r,h,t,d,m))):Ic(f,r,h,t,d,m)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:o,continue:!0}),e.length?Promise.all(e).then(()=>r):r}var vl=_("$ZodObject",(e,t)=>{X.init(e,t);let r=Object.getOwnPropertyDescriptor(t,"shape"),i=r?.get?r.get.raw:t.shape??{};if(i){let c=()=>{let l={...i};return Object.defineProperty(t,"shape",{value:l}),c.raw=l,l};c.raw=i,Object.defineProperty(t,"shape",{get:c})}let n=Ai(()=>z0(t));Q(e,"propValues",c=>{let l=c.def.shape,d={};for(let m in l){let p=l[m]._zod;if(p.values){Object.prototype.hasOwnProperty.call(d,m)||Ge(d,m,new Set);for(let h of p.values)d[m].add(h);p.optin!==void 0&&d[m].add(void 0)}}return d});let o=Pn,a=t.catchall,s,u=qe.memoizer;u?.attach(e),e._zod.parse=(c,l)=>{s??(s=n.value);let d=c.value;if(!o(d))return c.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),c;c.value=u?u.alloc(e,c,{},l):{};let m=[],p=s.shape,h=l?.abortEarly,f=c.issues.length;for(let g of s.allKeys){if(h&&c.issues.length!==f){if(dt(c,f))break;f=c.issues.length}if(g==="__proto__")continue;let b=p[g],v=b._zod.optin,y=b._zod.optout,I=b._zod.run({value:d[g],issues:[]},l);I instanceof Promise?m.push(I.then(T=>Ic(T,c,g,d,v,y))):Ic(I,c,g,d,v,y)}return a?P0(m,d,c,l,n.value,e,h===!0):m.length?Promise.all(m).then(()=>c):c}}),Yh=_("$ZodObjectJIT",(e,t)=>{vl.init(e,t);let r=e._zod.parse,i=Ai(()=>z0(t)),n=qe.memoizer,o=p=>{let h=i.value,f=h.symbolKeys,g=new Un(["payload","ctx"],{shape:p,inst:e,memo:n,syms:f}),b=T=>`shape[${T}]._zod.run({ value: input[${T}], issues: [] }, ctx)`,v=(T,z)=>`
22
+ let ${T}_ab = false;
23
+ for (let i = 0; i < ${T}.issues.length; i++) {
24
+ const iss = ${T}.issues[i];
25
+ iss.path = iss.path ? [${z}, ...iss.path] : [${z}];
26
+ payload.issues.push(iss);
27
+ if (iss.continue !== true) ${T}_ab = true;
28
+ }
29
+ if (${T}_ab && ctx && ctx.abortEarly) {
30
+ payload.value = newResult;
31
+ return payload;
32
+ }`;g.write("const input = payload.value;");let y=Object.create(null),I=0;for(let T of h.allKeys)y[T]=`key_${I++}`;g.write(n?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let T of h.allKeys){if(T==="__proto__")continue;let z=y[T],B=typeof T=="symbol"?`syms[${f.indexOf(T)}]`:lt(T),Fe=`${B} in input`,se=p[T],tt=se?._zod?.optin,be=tt!==void 0,pr=se?._zod?.optout==="optional";if(g.write(`const ${z} = ${b(B)};`),be&&pr){let fi=tt==="optional"?`${z}_present`:`${z}.value !== undefined || ${z}_present`;g.write(`
33
+ const ${z}_present = ${Fe};
34
+ if (!${z}.issues.length || ${z}_present) {
35
+ if (${z}.issues.length) {${v(z,B)}
36
+ }
37
+
38
+ if (${fi}) {
39
+ newResult[${B}] = ${z}.value;
40
+ }
41
+ }
42
+
43
+ `)}else be?(g.write(`
44
+ if (${z}.issues.length) {${v(z,B)}
45
+ }
46
+ `),tt==="defaulted"?g.write(`newResult[${B}] = ${z}.value;`):g.write(`
47
+ if (${z}.value !== undefined || ${Fe}) {
48
+ newResult[${B}] = ${z}.value;
49
+ }
50
+ `)):g.write(`
51
+ const ${z}_present = ${Fe};
52
+ if (${z}.issues.length) {${v(z,B)}
53
+ }
54
+ if (!${z}_present && !${z}.issues.length) {
55
+ payload.issues.push({
56
+ code: "invalid_type",
57
+ expected: "nonoptional",
58
+ input: undefined,
59
+ path: [${B}]
60
+ });
61
+ if (ctx && ctx.abortEarly) {
62
+ payload.value = newResult;
63
+ return payload;
64
+ }
65
+ }
66
+
67
+ if (${z}_present) {
68
+ newResult[${B}] = ${z}.value;
69
+ }
70
+
71
+ `)}return g.write("payload.value = newResult;"),g.write("return payload;"),g.compile()},a,s=Pn,u=!qe.jitless,l=u&&Im.value,d=t.catchall,m;e._zod.parse=(p,h)=>{m??(m=i.value);let f=p.value;return s(f)?u&&l&&h?.async===!1&&h.jitless!==!0?(a||(a=o(t.shape)),p=a(p,h),d?P0([],f,p,h,m,e,h?.abortEarly===!0):p):r(p,h):(p.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),p)}});function g0(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=>!dt(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(a=>bt(a,i,Oe())))}),t)}var Hi=_("$ZodUnion",(e,t)=>{X.init(e,t),Q(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),Q(e,"optout",i=>i.def.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Q(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)))}),Q(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=>Or(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,a=[];for(let s of t.options){let u=s._zod.run({value:i.value,issues:[]},n);if(u instanceof Promise)a.push(u),o=!0;else{if(u.issues.length===0)return u;a.push(u)}}return o?Promise.all(a).then(s=>g0(s,i,e,n)):g0(a,i,e,n)}});function v0(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(a=>bt(a,i,Oe())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1,matches:n}),t)}var yl=_("$ZodXor",(e,t)=>{Hi.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,a=[];for(let s of t.options){let u=s._zod.run({value:i.value,issues:[]},n);u instanceof Promise?(a.push(u),o=!0):a.push(u)}return o?Promise.all(a).then(s=>v0(s,i,e,n)):v0(a,i,e,n)}});function Qh(e,t){let r=e._zod,i=r.bag.optionsMap;i||(i=O0(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 O0(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 _l=_("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Hi.init(e,t);let r=e._zod.parse;Q(e,"propValues",n=>{let o={},a=0;for(let s of n.def.options){let u=s._zod.propValues;if(!u||Object.keys(u).length===0)throw new Error(`Invalid discriminated union option at index "${n.def.options.indexOf(s)}"`);u[n.def.discriminator]?.has(void 0)&&a++;for(let[c,l]of Object.entries(u)){Object.prototype.hasOwnProperty.call(o,c)||Ge(o,c,new Set);for(let d of l)o[c].add(d)}}return!n.def.unionFallback&&a>1&&o[n.def.discriminator]?.delete(void 0),o}),t.options.forEach((n,o)=>{let a=Ni(n._zod.def);if(a&&!Object.prototype.hasOwnProperty.call(a,t.discriminator))throw new Error(`Invalid discriminated union option at index "${o}"`)});let i=Ai(()=>O0(t));e._zod.parse=(n,o)=>{let a=n.value;if(!Pn(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let s=a?.[t.discriminator],u=i.value.get(s);return u&&(s!==void 0||o.direction!=="backward")?u._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(c=>i.value.get(c)!==null),input:a,path:[t.discriminator],inst:e}),n)}}),bl=_("$ZodIntersection",(e,t)=>{X.init(e,t),e._zod.parse=(r,i)=>{let n=r.value,o=t.left._zod.run({value:n,issues:[]},i),a=t.right._zod.run({value:n,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([u,c])=>y0(r,u,c)):y0(r,o,a)}});function Vi(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(Vt(e)&&Vt(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 a=Vi(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n[o]=a.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<e.length;i++){let n=e[i],o=t[i],a=Vi(n,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function y0(e,t,r){let i=new Map,n,o=new Map,a=(c,l)=>{let d;if(c.code==="unrecognized_keys"&&!c.path?.length)n??(n=c),d=c.keys;else if(c.code==="invalid_key"&&c.origin==="record"&&c.path?.length===1){let m=String(c.path[0]);o.has(m)||o.set(m,c),d=[m]}else return!1;for(let m of d)i.has(m)||i.set(m,{}),i.get(m)[l]=!0;return!0};for(let c of t.issues)a(c,"l")||e.issues.push(c);for(let c of r.issues)a(c,"r")||e.issues.push(c);let s=[...i].filter(([,c])=>c.l&&c.r).map(([c])=>c);if(s.length){let c=n?s.filter(l=>n.keys.includes(l)):[];c.length&&e.issues.push({...n,keys:c});for(let l of s)!c.includes(l)&&o.has(l)&&e.issues.push(o.get(l))}let u=Vi(t.value,r.value);if(!u.valid){if(dt(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(u.mergeErrorPath)}`)}return e.value=u.data,e}var Wa=_("$ZodTuple",(e,t)=>{X.init(e,t);let r=t.items,i=qe.memoizer;i?.attach(e),e._zod.parse=(n,o)=>{let a=n.value;if(!Array.isArray(a))return n.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=i?i.alloc(e,n,[],o):[];let s=[],u=_0(r,"optin"),c=_0(r,"optout");if(!t.rest){if(a.length<u)return n.issues.push({code:"too_small",minimum:u,inclusive:!0,input:a,inst:e,origin:"array"}),n;a.length>r.length&&n.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:a,inst:e,origin:"array"})}let l=new Array(r.length),d=t.rest?o?.abortEarly:void 0,m=!1;for(let p=0;p<r.length;p++){let h=r[p]._zod.run({value:a[p],issues:[]},o);h instanceof Promise?s.push(h.then(f=>{l[p]=f})):(l[p]=h,d&&!m&&h.issues.length&&(m=dt(h)))}if(t.rest&&!m){let p=r.length-1,h=a.slice(r.length),f=n.issues.length;for(let g of h){if(d&&n.issues.length!==f){if(dt(n,f))break;f=n.issues.length}p++;let b=t.rest._zod.run({value:g,issues:[]},o);b instanceof Promise?s.push(b.then(v=>b0(v,n,p))):b0(b,n,p)}}return s.length?Promise.all(s).then(()=>$0(l,n,r,a,c)):$0(l,n,r,a,c)}});function _0(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 b0(e,t,r){e.issues.length&&t.issues.push(..._t(r,e.issues)),t.value[r]=e.value}function $0(e,t,r,i,n){for(let o=0;o<r.length;o++){let a=e[o],s=o<i.length;if(!s&&o>=n&&r[o]._zod.optin==="optional"){t.value.length=o;break}if(a.issues.length){if(!s&&o>=n){t.value.length=o;break}t.issues.push(..._t(o,a.issues))}t.value[o]=a.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 $l=_("$ZodRecord",(e,t)=>{X.init(e,t);let r=qe.memoizer;r?.attach(e),e._zod.parse=(i,n)=>{let o=i.value;if(!Vt(o))return i.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),i;let a=[],s=t.keyType._zod.values;if(s&&!t.partial){i.value=r?r.alloc(e,i,{},n):{};let u=new Set;for(let l of s)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){if(u.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(h=>bt(h,n,Oe())),input:l,path:[l],inst:e});continue}let m=d.value;if(m==="__proto__")continue;let p=t.valueType._zod.run({value:o[l],issues:[]},n);p instanceof Promise?a.push(p.then(h=>{h.issues.length&&i.issues.push(..._t(l,h.issues)),i.value[m]=h.value})):(p.issues.length&&i.issues.push(..._t(l,p.issues)),i.value[m]=p.value)}let c;for(let l in o)if(!u.has(l))if(t.mode==="loose"){if(l==="__proto__")continue;i.value[l]=o[l]}else c=c??[],c.push(l);c&&c.length>0&&i.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:c,continue:!0})}else{i.value=r?r.alloc(e,i,{},n):{};let u;for(let c of Reflect.ownKeys(o)){if(c==="__proto__"||!Object.prototype.propertyIsEnumerable.call(o,c))continue;let l=t.keyType._zod.run({value:c,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof c=="string"&&Cr.test(c)&&l.issues.length){let h=t.keyType._zod.run({value:Number(c),issues:[]},n);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(l=h)}if(l.issues.length){t.mode==="loose"?i.value[c]=o[c]:s?(u=u??[],u.push(c)):i.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(h=>bt(h,n,Oe())),input:c,path:[c],inst:e});continue}let m=l.value;if(m==="__proto__")continue;let p=t.valueType._zod.run({value:o[c],issues:[]},n);p instanceof Promise?a.push(p.then(h=>{h.issues.length&&i.issues.push(..._t(c,h.issues)),i.value[m]=h.value})):(p.issues.length&&i.issues.push(..._t(c,p.issues)),i.value[m]=p.value)}u&&u.length>0&&i.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:u,continue:!0})}return a.length?Promise.all(a).then(()=>i):i}}),wl=_("$ZodMap",(e,t)=>{X.init(e,t);let r=qe.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 a=[];i.value=r?r.alloc(e,i,new Map,n):new Map;let s=n?.abortEarly,u=i.issues.length;for(let[c,l]of o){if(s&&i.issues.length!==u){if(dt(i,u))break;u=i.issues.length}let d=t.keyType._zod.run({value:c,issues:[]},n),m=t.valueType._zod.run({value:l,issues:[]},n);d instanceof Promise||m instanceof Promise?a.push(Promise.all([d,m]).then(([p,h])=>{w0(p,h,i,c,o,e,n)})):w0(d,m,i,c,o,e,n)}return a.length?Promise.all(a).then(()=>i):i},Wh(e,ON)});function w0(e,t,r,i,n,o,a){e.issues.length&&(Na.has(typeof i)?r.issues.push(..._t(i,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:o,issues:e.issues.map(s=>bt(s,a,Oe()))})),t.issues.length&&(Na.has(typeof i)?r.issues.push(..._t(i,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:o,key:i,issues:t.issues.map(s=>bt(s,a,Oe()))})),r.value.set(e.value,t.value)}var xl=_("$ZodSet",(e,t)=>{X.init(e,t);let r=qe.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 a=[];i.value=r?r.alloc(e,i,new Set,n):new Set;let s=n?.abortEarly,u=i.issues.length;for(let c of o){if(s&&i.issues.length!==u){if(dt(i,u))break;u=i.issues.length}let l=t.valueType._zod.run({value:c,issues:[]},n);l instanceof Promise?a.push(l.then(d=>x0(d,i))):x0(l,i)}return a.length?Promise.all(a).then(()=>i):i},Wh(e,CN)});function x0(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Sl=_("$ZodEnum",(e,t)=>{X.init(e,t);let r=Ti(t.entries),i=new Set(r);e._zod.values=i,Q(e,"pattern",n=>{let o=Ti(n.def.entries).filter(a=>Na.has(typeof a));return new RegExp(o.length?`^(${o.map(a=>Bt(a.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(n,o)=>{let a=n.value;return i.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n}}),kl=_("$ZodLiteral",(e,t)=>{X.init(e,t);let r=new Set(t.values);e._zod.values=r,Q(e,"pattern",i=>{let n=i.def.values;return new RegExp(n.length?`^(${n.map(o=>typeof o=="string"?Bt(o):o?Bt(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}}),Il=_("$ZodFile",(e,t)=>{X.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}}),El=_("$ZodTransform",(e,t)=>{X.init(e,t),e._zod.optin="optional",qe.memoizer?.guard(e),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Qr(e.constructor.name);let n=t.transform(r.value,r);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r));if(n instanceof Promise)throw new $t;return r.value=n,r}});function S0(e,t){return e.value=t.issues.length?void 0:t.value,e}var Ya=_("$ZodOptional",(e,t)=>{X.init(e,t),Q(e,"optin",r=>r.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",Q(e,"values",r=>{let i=r.def.innerType._zod.values;return i?new Set([...i,void 0]):void 0}),Q(e,"pattern",r=>{let i=r.def.innerType._zod.pattern;return i?new RegExp(`^(${Or(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=>S0(r,o)):S0(r,n)}return t.innerType._zod.run(r,i)}}),Tl=_("$ZodExactOptional",(e,t)=>{Ya.init(e,t),Q(e,"values",r=>r.def.innerType._zod.values),Q(e,"pattern",r=>r.def.innerType._zod.pattern),e._zod.parse=(r,i)=>t.innerType._zod.run(r,i)}),Dl=_("$ZodNullable",(e,t)=>{X.init(e,t),Q(e,"optin",r=>r.def.innerType._zod.optin),Q(e,"optout",r=>r.def.innerType._zod.optout),Q(e,"pattern",r=>{let i=r.def.innerType._zod.pattern;return i?new RegExp(`^(${Or(i.source)}|null)$`):void 0}),Q(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)}),Al=_("$ZodDefault",(e,t)=>{X.init(e,t),e._zod.optin="defaulted",Q(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=>k0(o,t)):k0(n,t)}});function k0(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Nl=_("$ZodPrefault",(e,t)=>{X.init(e,t),e._zod.optin="defaulted",Q(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))}),zl=_("$ZodNonOptional",(e,t)=>{X.init(e,t),Q(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=>I0(o,e)):I0(n,e)}});function I0(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 Pl=_("$ZodSuccess",(e,t)=>{X.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Qr("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 E0(e,t,r,i){return t.issues.length?(e.value=r.catchValue({...t,value:e.value,error:{issues:t.issues.map(n=>bt(n,i,Oe()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var Ol=_("$ZodCatch",(e,t)=>{X.init(e,t),Q(e,"optin",r=>r.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),Q(e,"optout",r=>r.def.innerType._zod.optout),Q(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=>E0(r,o,t,i)):E0(r,n,t,i)}}),Cl=_("$ZodNaN",(e,t)=>{X.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)}),Qa=_("$ZodPipe",(e,t)=>{X.init(e,t),Q(e,"values",r=>r.def.in._zod.values),Q(e,"optin",r=>r.def.in._zod.optin),Q(e,"optout",r=>r.def.out._zod.optout),Q(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(a=>xc(a,t.in,i)):xc(o,t.in,i)}let n=t.in._zod.run(r,i);return n instanceof Promise?n.then(o=>xc(o,t.out,i)):xc(n,t.out,i)}});function xc(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 Gi=_("$ZodCodec",(e,t)=>{X.init(e,t),Q(e,"values",r=>r.def.in._zod.values),Q(e,"optin",r=>r.def.in._zod.optin),Q(e,"optout",r=>r.def.out._zod.optout),Q(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(a=>Sc(a,t,i)):Sc(o,t,i)}else{let o=t.out._zod.run(r,i);return o instanceof Promise?o.then(a=>Sc(a,t,i)):Sc(o,t,i)}}});function Sc(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=>kc(e,o,t.out,r)):kc(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(o=>kc(e,o,t.in,r)):kc(e,n,t.in,r)}}function kc(e,t,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},i)}var eg=_("$ZodPreprocess",(e,t)=>{Qa.init(e,t)}),Rl=_("$ZodReadonly",(e,t)=>{X.init(e,t),Q(e,"propValues",r=>r.def.innerType._zod.propValues),Q(e,"values",r=>r.def.innerType._zod.values),Q(e,"optin",r=>r.def.innerType?._zod?.optin),Q(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(T0):T0(n)}});function T0(e){return e.memo||(e.value=Object.freeze(e.value)),e}function jN(e){let t=e._zod.def,r=t.pattern,i=!!t.format?.includes("int"),n,o;for(let s of t.checks??[]){let u=s._zod.def;u.pattern&&(r=u.pattern),i||(i=!!u.format?.includes("int"));let c=u.minimum??u.length,l=u.maximum??u.length;c!==void 0&&(n===void 0||c>n)&&(n=c),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 mh({minimum:n,maximum:o}).source;let a=e._zod.pattern;return(i&&a===Cr?Za:a)?.source}function Vh(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=Vh(i);return r&&n&&o&&o!==n?r.replace(Or(n),()=>Or(o)):r}if(t.options){let n=t.options.map(Vh);if(n.every(Boolean))return`^(${n.map(o=>Or(o)).join("|")})$`}return jN(e)}var jl=_("$ZodTemplateLiteral",(e,t)=>{X.init(e,t);let r=[];for(let i of t.parts)if(typeof i=="object"&&i!==null){let n=Vh(i);if(!n)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);r.push(Or(n))}else if(i===null||Em.has(typeof i))r.push(Bt(`${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)}),Ul=_("$ZodFunction",(e,t)=>(X.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?Cn(e._def.input,i):i,o=Reflect.apply(r,this,n);return e._def.output?Cn(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 Rn(e._def.input,i):i,o=await Reflect.apply(r,this,n);return e._def.output?await Rn(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 Wa({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)),Ml=_("$ZodPromise",(e,t)=>{X.init(e,t),e._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},i))}),Ji=_("$ZodLazy",(e,t)=>{X.init(e,t),Sm(e._zod,"innerType",()=>{let r=t;return r._cachedInner||(r._cachedInner=t.getter()),r._cachedInner}),Q(e,"pattern",r=>r.innerType?._zod?.pattern),Q(e,"propValues",r=>r.innerType?._zod?.propValues),Q(e,"optin",r=>r.innerType?._zod?.optin??void 0),Q(e,"optout",r=>r.innerType?._zod?.optout??void 0),e._zod.parse=(r,i)=>e._zod.innerType._zod.run(r,i)}),Ll=_("$ZodCustom",(e,t)=>{$e.init(e,t),X.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=>D0(o,r,i,e));D0(n,r,i,e)}});function D0(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(Oi(n))}}var Vl=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},rg="~memo",R0=[];function j0(e){return e!==null&&typeof e=="object"}function tg(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}var U0=new WeakMap,Xi=0,ql=1,es=2;function ts(e,t,r){let i=U0.get(e);if(i!==void 0)return i?es:Xi;if(t.has(e))return es;t.add(e);let n=Xi,o=l=>{if(n!==es&&l?._zod){let d=ts(l,t,r);d>n&&(n=d)}},a=(l,d)=>{let m=Xi;for(let p of Reflect.ownKeys(l)){let h=Object.getOwnPropertyDescriptor(l,p);if(d&&!h.enumerable)continue;let f=h.get?ql:h.value?._zod?ts(h.value,t,r):Xi;f>m&&(m=f)}return m},s=l=>{l>n&&(n=l)},u=e._zod.def,c=u.type;switch(c){case"object":{let l=Ni(u);s(l?a(l,!0):ql),o(u.catchall);break}case"array":o(u.element);break;case"tuple":for(let l of u.items)o(l);o(u.rest);break;case"record":case"map":o(u.keyType),o(u.valueType);break;case"set":o(u.valueType);break;case"union":for(let l of u.options)o(l);break;case"intersection":o(u.left),o(u.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":o(u.innerType);break;case"pipe":o(u.in),o(u.out);break;case"function":o(u.input),o(u.output);break;case"lazy":{let l=u._cachedInner??(r?e._zod.innerType:void 0);s(l?ts(l,t,!1):ql);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 u){let d=Object.getOwnPropertyDescriptor(u,l);if(!d||d.get)continue;let m=d.value;if(!(!m||typeof m!="object")){if(m._zod)o(m);else if(Array.isArray(m))for(let p of m)o(p)}}}return t.delete(e),UN(e,n)}function UN(e,t){return t!==ql&&U0.set(e,t===es),t}function Bl(e){return ts(e,new Set,!0)!==Xi}function MN(e,t){let r=e.buckets.get(t);return r||(r=new WeakMap,e.buckets.set(t,r)),r}var Zl,Fl=[],LN={alloc(e,t,r){let i=Zl;if(!i)return r;Zl=void 0;let n={value:r,issues:null};return i.set(t.value,n),Fl.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"&&Hl(o,n.value))throw new Vl;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 a=e._zod.parse,s=(u,c)=>{if(r===void 0){let b=ts(e,new Set,!1);if(b===Xi)return e._zod.parse=a,e._zod.run===s&&(e._zod.run=a),a(u,c);b===es||i?r=!0:i=!0}let l=u.value;if(!j0(l))return a(u,c);let d=c[rg];d||(d={buckets:new WeakMap,backEdges:void 0},c[rg]=d);let m;n===c?m=o:(m=MN(d,e),n=c,o=m);let p=m.get(l);if(p)return u.value=p.value,p.issues?p.issues.length&&u.issues.push(...tg(p.issues)):(u.memo=!0,d.backEdges??(d.backEdges=new WeakSet),d.backEdges.add(p.value)),u;Zl=m;let h=Fl.length,f=a(u,c);Zl=void 0;let g=Fl.length>h?Fl.pop():void 0;return f instanceof Promise?f.then(b=>(g&&(g.issues=b.issues.length?tg(b.issues):R0),b)):(g&&(g.issues=f.issues.length?tg(f.issues):R0),f)};e._zod.parse=s,e._zod.run===a&&(e._zod.run=s)})}};function rs(){return LN}function Hl(e,t){let r=e[rg]?.backEdges;return r!==void 0&&j0(t)&&r.has(t)}var Wi={};Tr(Wi,{ar:()=>M0,az:()=>L0,be:()=>F0,bg:()=>q0,bn:()=>V0,ca:()=>B0,ckb:()=>H0,cs:()=>G0,da:()=>J0,de:()=>X0,el:()=>K0,en:()=>Gl,eo:()=>W0,es:()=>Y0,fa:()=>Q0,fi:()=>ew,fr:()=>tw,frCA:()=>rw,gu:()=>nw,he:()=>iw,hi:()=>ow,hr:()=>aw,hu:()=>sw,hy:()=>cw,id:()=>lw,is:()=>dw,it:()=>fw,ja:()=>pw,ka:()=>mw,kh:()=>hw,km:()=>Jl,kn:()=>gw,ko:()=>vw,lt:()=>_w,mk:()=>bw,ms:()=>$w,ne:()=>ww,nl:()=>xw,nn:()=>Sw,no:()=>kw,ota:()=>Iw,pl:()=>Tw,ps:()=>Ew,pt:()=>Dw,ptBR:()=>Aw,ro:()=>Nw,ru:()=>Pw,sk:()=>Ow,sl:()=>Cw,sv:()=>Rw,ta:()=>jw,tg:()=>Uw,th:()=>Mw,tk:()=>Lw,tr:()=>Zw,ua:()=>Fw,uk:()=>Xl,ur:()=>qw,uz:()=>Vw,vi:()=>Bw,yo:()=>Jw,zhCN:()=>Hw,zhTW:()=>Gw});var ZN=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${o}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`}case"invalid_value":return n.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${S(n.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${n.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${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":""}: ${$(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 M0(){return{localeError:ZN()}}var FN=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${s}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${S(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()} ${a.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?">=":">",a=t(n.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()} ${a.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":""}: ${$(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 L0(){return{localeError:FN()}}function Z0(e,t,r,i){let n=Math.abs(e),o=n%10,a=n%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?r:i}var qN=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${S(n.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),u=Z0(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${n.maximum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${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?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),u=Z0(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${n.minimum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${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"}: ${$(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 F0(){return{localeError:qN()}}var VN=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${S(n.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${n.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${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 a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${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":""}: ${$(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 q0(){return{localeError:VN()}}var BN=()=>{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,a=k(n.input),s=i[a]??a;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 ${s}`}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 ${S(n.values[0])}`:`\u0985\u09AC\u09C8\u09A7 \u0985\u09AA\u09B6\u09A8: ${$(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?"<=":"<",a=t(n.origin);return a?`\u0985\u09A8\u09C7\u0995 \u09AC\u09A1\u09BC: ${n.origin??"\u09AE\u09BE\u09A8"} ${o}${n.maximum.toString()} ${a.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?">=":">",a=t(n.origin);return a?`\u0985\u09A8\u09C7\u0995 \u099B\u09CB\u099F: ${n.origin} ${o}${n.minimum.toString()} ${a.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":""}: ${$(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(a=>`'${a}'`).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 V0(){return{localeError:BN()}}var HN=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${s}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${S(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${$(n.values," o ")}`;case"too_big":{let o=n.inclusive?"com a m\xE0xim":"menys de",a=t(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${o} ${n.maximum.toString()} ${a.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",a=t(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${o} ${n.minimum.toString()} ${a.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":""}: ${$(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 B0(){return{localeError:HN()}}var GN=()=>{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,a=k(n.input),s=i[a]??a,u=["\u0627","\u0648","\u06C6","\u0648\u0648","\u06D5","\u06CC","\u06CE"].some(l=>s.endsWith(l))?"\u06CC\u06D5":"\u06D5",c=/^[a-zA-Z]+$/.test(s);return a==="null"||a==="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 ${s}${c?"":u}`}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 ${S(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 ${$(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: ${$(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(a=>`'${a}'`).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 H0(){return{localeError:GN()}}var JN=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${s}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${S(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.maximum.toString()} ${a.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?">=":">",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.minimum.toString()} ${a.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: ${$(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 G0(){return{localeError:JN()}}var XN=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${s}`:`Ugyldigt input: forventede ${o}, fik ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${S(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),s=i[n.origin]??n.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${o} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin),s=i[n.origin]??n.origin;return a?`For lille: forventede ${s} ${a.verb} ${o} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} 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"}: ${$(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 J0(){return{localeError:XN()}}var KN=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${s}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${S(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ist`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ${a.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"}: ${$(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 X0(){return{localeError:KN()}}var WN=()=>{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,a=k(n.input),s=i[a]??a;return typeof n.expected=="string"&&/^[A-Z]/.test(n.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${n.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${o}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`}case"invalid_value":return n.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${S(n.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${n.maximum.toString()} ${a.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${n.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${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"}: ${$(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 K0(){return{localeError:WN()}}var YN=()=>{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,a){return o==="number"&&typeof a=="number"&&!Number.isFinite(a)?String(a):i[o]??o}return o=>{switch(o.code){case"invalid_type":{let a=n(o.expected),s=k(o.input),u=n(s,o.input);return`Invalid input: expected ${a}, received ${u}`}case"invalid_value":return o.values.length===1?`Invalid input: expected ${S(o.values[0])}`:`Invalid option: expected one of ${$(o.values,"|")}`;case"too_big":{let a=o.exact?"exactly ":o.inclusive?"<=":"<",s=t(o.origin);return s?`Too big: expected ${o.origin??"value"} to have ${a}${o.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${o.origin??"value"} to be ${a}${o.maximum.toString()}`}case"too_small":{let a=o.exact?"exactly ":o.inclusive?">=":">",s=t(o.origin);return s?`Too small: expected ${o.origin} to have ${a}${o.minimum.toString()} ${s.unit}`:`Too small: expected ${o.origin} to be ${a}${o.minimum.toString()}`}case"invalid_format":{let a=o;return a.format==="starts_with"?`Invalid string: must start with "${a.prefix}"`:a.format==="ends_with"?`Invalid string: must end with "${a.suffix}"`:a.format==="includes"?`Invalid string: must include "${a.includes}"`:a.format==="regex"?`Invalid string: must match pattern ${a.pattern}`:`Invalid ${r[a.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":""}: ${$(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(s=>`'${s}'`).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 Gl(){return{localeError:YN()}}var QN=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${s}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${S(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${o}${n.minimum.toString()} ${a.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":""}: ${$(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 W0(){return{localeError:QN()}}var ez=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${S(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${o}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${o}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} 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":""}: ${$(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 Y0(){return{localeError:ez()}}var tz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${S(n.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${$(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${a.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: ${$(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 Q0(){return{localeError:tz()}}var rz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${s}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${S(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${o}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${o}${n.minimum.toString()} ${a.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"}: ${$(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 ew(){return{localeError:rz()}}var nz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instance de ${n.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${s} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${S(n.values[0])} attendu`:`Option invalide : une valeur parmi ${$(n.values,"|")} attendue`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Trop grand : ${i[n.origin]??"valeur"} doit ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${i[n.origin]??"valeur"} doit \xEAtre ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Trop petit : ${i[n.origin]??"valeur"} doit ${a.verb} ${o}${n.minimum.toString()} ${a.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":""} : ${$(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 tw(){return{localeError:nz()}}var iz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${s}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${S(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u2264":"<",a=t(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${o}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u2265":">",a=t(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${o}${n.minimum.toString()} ${a.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":""} : ${$(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 rw(){return{localeError:iz()}}var oz=()=>{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,a=k(n.input),s=i[a]??a;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 ${s}`}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 ${S(n.values[0])}`:`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB5\u0ABF\u0A95\u0AB2\u0ACD\u0AAA: ${$(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?"<=":"<",a=t(n.origin);return a?`\u0A96\u0AC2\u0AAC \u0AAE\u0ACB\u0A9F\u0AC1\u0A82: ${n.origin??"\u0AAE\u0AC2\u0AB2\u0ACD\u0AAF"} ${o}${n.maximum.toString()} ${a.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?">=":">",a=t(n.origin);return a?`\u0A96\u0AC2\u0AAC \u0AA8\u0ABE\u0AA8\u0AC1\u0A82: ${n.origin} ${o}${n.minimum.toString()} ${a.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":""}: ${$(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(a=>`'${a}'`).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 nw(){return{localeError:oz()}}var az=()=>{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=c=>c?e[c]:void 0,i=c=>{let l=r(c);return l?l.label:c??e.unknown.label},n=c=>`\u05D4${i(c)}`,o=c=>(r(c)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=c=>c?t[c]??null:null,s={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},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"}},u={nan:"NaN"};return c=>{switch(c.code){case"invalid_type":{let l=c.expected,d=u[l??""]??i(l),m=k(c.input),p=u[m]??e[m]?.label??m;return/^[A-Z]/.test(c.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${c.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(c.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${S(c.values[0])}`;let l=c.values.map(p=>S(p));if(c.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=a(c.origin),d=n(c.origin??"value");if(c.origin==="string")return`${l?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${l?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){let h=c.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${c.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${h}`}if(c.origin==="array"||c.origin==="set"){let h=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",f=c.inclusive?`${c.maximum} ${l?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${l?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${h} \u05DC\u05D4\u05DB\u05D9\u05DC ${f}`.trim()}let m=c.inclusive?"<=":"<",p=o(c.origin??"value");return l?.unit?`${l.longLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${m}${c.maximum.toString()} ${l.unit}`:`${l?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${p} ${m}${c.maximum.toString()}`}case"too_small":{let l=a(c.origin),d=n(c.origin??"value");if(c.origin==="string")return`${l?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${l?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){let h=c.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${c.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${h}`}if(c.origin==="array"||c.origin==="set"){let h=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){let g=(c.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${h} \u05DC\u05D4\u05DB\u05D9\u05DC ${g}`}let f=c.inclusive?`${c.minimum} ${l?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${l?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${h} \u05DC\u05D4\u05DB\u05D9\u05DC ${f}`.trim()}let m=c.inclusive?">=":">",p=o(c.origin??"value");return l?.unit?`${l.shortLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${m}${c.minimum.toString()} ${l.unit}`:`${l?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${p} ${m}${c.minimum.toString()}`}case"invalid_format":{let l=c;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=s[l.format],m=d?.label??l.format,h=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${m} \u05DC\u05D0 ${h}`}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 ${c.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${c.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${c.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${$(c.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(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function iw(){return{localeError:az()}}var sz=()=>{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,a=k(n.input),s=i[a]??a;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 ${s}`}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 ${S(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 ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\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} ${a.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?">=":">",a=t(n.origin);return a?`\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} ${a.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":""}: ${$(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(a=>`'${a}'`).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 ow(){return{localeError:sz()}}var uz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${n.expected}, a primljeno je ${s}`:`Neispravan unos: o\u010Dekuje se ${o}, a primljeno je ${s}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${S(n.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Preveliko: o\u010Dekivano da ${s??"vrijednost"} ima ${o}${n.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${s??"vrijednost"} bude ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin),s=i[n.origin]??n.origin;return a?`Premalo: o\u010Dekivano da ${s} ima ${o}${n.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${s} 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"}: ${$(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 aw(){return{localeError:uz()}}var cz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${S(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${n.maximum.toString()} ${a.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?">=":">",a=t(n.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${o}${n.minimum.toString()} ${a.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":""}: ${$(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 sw(){return{localeError:cz()}}function uw(e,t,r){return Math.abs(e)===1?t:r}function Ki(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 lz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${n.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${o}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`}case"invalid_value":return n.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${S(n.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),u=uw(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Ki(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.maximum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Ki(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),u=uw(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Ki(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.minimum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Ki(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":""}. ${$(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Ki(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 ${Ki(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function cw(){return{localeError:lz()}}var dz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${S(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${o}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${o}${n.minimum.toString()} ${a.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":""}: ${$(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 lw(){return{localeError:dz()}}var fz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${S(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${o}${n.maximum.toString()} ${a.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?">=":">",a=t(n.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${o}${n.minimum.toString()} ${a.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"}: ${$(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 dw(){return{localeError:fz()}}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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${s}`:`Input non valido: atteso ${o}, ricevuto ${s}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${S(n.values[0])}`:`Opzione non valida: atteso uno tra ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${o}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${o}${n.minimum.toString()} ${a.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"}: ${$(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 fw(){return{localeError:pz()}}var mz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${S(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${$(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",a=t(n.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${a.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",a=t(n.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${a.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":""}: ${$(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 pw(){return{localeError:mz()}}var hz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`}case"invalid_value":return n.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${S(n.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${$(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${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"}: ${$(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 mw(){return{localeError:hz()}}var gz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`}case"invalid_value":return n.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${S(n.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()} ${a.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 ${$(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 Jl(){return{localeError:gz()}}function hw(){return Jl()}var vz=()=>{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,a=k(n.input),s=i[a]??a;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 ${s}`}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 ${S(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 ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\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()} ${a.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?">=":">",a=t(n.origin);return a?`\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()} ${a.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":""}: ${$(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(a=>`'${a}'`).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 gw(){return{localeError:vz()}}var yz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${S(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${$(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),u=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${u} ${o}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${o}${a}`}case"too_small":{let o=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),u=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${u} ${o}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${o}${a}`}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: ${$(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 vw(){return{localeError:yz()}}var ns=e=>e.charAt(0).toUpperCase()+e.slice(1);function yw(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 _z=()=>{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,a,s){let u=e[n]??null;return u===null?u:{unit:u.unit[o],verb:u.verb[s][a?"inclusive":"notInclusive"]}}let r={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${o}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${S(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${$(n.values,"|")} pasirinkim\u0173`;case"too_big":{let o=i[n.origin]??n.origin,a=t(n.origin,yw(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${ns(o??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${ns(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let o=i[n.origin]??n.origin,a=t(n.origin,yw(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${ns(o??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${ns(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.minimum.toString()} ${a?.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"}: ${$(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`${ns(o??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function _w(){return{localeError:_z()}}var bz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${S(n.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${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"}: ${$(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 bw(){return{localeError:bz()}}var $z=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${s}`:`Input tidak sah: dijangka ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${S(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.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: ${$(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 $w(){return{localeError:$z()}}var wz=()=>{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,a=k(n.input),s=i[a]??a;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 ${s}`}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 ${S(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 ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0927\u0947\u0930\u0948 \u0920\u0942\u0932\u094B: ${n.origin??"\u092E\u093E\u0928"} \u092E\u093E ${o}${n.maximum.toString()} ${a.unit} ${a.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?">=":">",a=t(n.origin);return a?`\u0927\u0947\u0930\u0948 \u0938\u093E\u0928\u094B: ${n.origin} \u092E\u093E ${o}${n.minimum.toString()} ${a.unit} ${a.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":""}: ${$(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(a=>`'${a}'`).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 ww(){return{localeError:wz()}}var xz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${o}, ontving ${s}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${S(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin),s=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} is`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin),s=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: 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":""}: ${$(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 xw(){return{localeError:xz()}}var Sz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventa instanceof ${n.expected}, fekk ${s}`:`Ugyldig input: forventa ${o}, fekk ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventa ${S(n.values[0])}`:`Ugyldig val: forventa eitt av ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`For stor(t): forventa ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()} ${a.unit??"element"}`:`For stor(t): forventa ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`For lite(n): forventa ${n.origin} til \xE5 ha ${o}${n.minimum.toString()} ${a.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"}: ${$(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 Sw(){return{localeError:Sz()}}var kz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${s}`:`Ugyldig input: forventet ${o}, fikk ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${S(n.values[0])}`:`Ugyldig valg: forventet en av ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()} ${a.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"}: ${$(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 kw(){return{localeError:kz()}}var Iz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${S(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} ${a.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?">=":">",a=t(n.origin);return a?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} ${a.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":""}: ${$(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 Iw(){return{localeError:Iz()}}var Ez=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${S(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${$(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${a.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"}: ${$(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 Ew(){return{localeError:Ez()}}var Tz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${s}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${S(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.maximum.toString()} ${a.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?">=":">",a=t(n.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.minimum.toString()} ${a.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":""}: ${$(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 Tw(){return{localeError:Tz()}}var Dz=()=>{let e={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function t(a){return e[a]??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(a,s){let u=n[a]??{name:`valor "${a}"`,articles:i.masculine};return`${u.articles[s]} ${u.name}`}return a=>{switch(a.code){case"invalid_type":{let s=o(a.expected,"indefinite"),u=k(a.input),c=o(u,"indefinite");return`Entrada inv\xE1lida: esperava ${s}, recebeu ${c}`}case"invalid_value":return a.values.length===1?`Entrada inv\xE1lida: esperava ${S(a.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperava uma das seguintes op\xE7\xF5es: ${$(a.values,"|")}`;case"too_big":{let s=a.inclusive?"<=":"<",u=t(a.origin);return u?`Demasiado grande: esperava que ${o(a.origin,"definite")} tivesse ${s} ${a.maximum.toString()} ${u.unit??"elementos"}`:`Demasiado grande: esperava que ${o(a.origin,"definite")} fosse ${s} ${a.maximum.toString()}`}case"too_small":{let s=a.inclusive?">=":">",u=t(a.origin);return u?`Demasiado pequeno: esperava que ${o(a.origin,"definite")} tivesse ${s} ${a.minimum.toString()} ${u.unit??"elementos"}`:`Demasiado pequeno: esperava que ${o(a.origin,"definite")} fosse ${s} ${a.minimum.toString()}`}case"invalid_format":{let s=a;return s.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar por "${s.prefix}"`:s.format==="ends_with"?`Texto inv\xE1lido: deve terminar em "${s.suffix}"`:s.format==="includes"?`Texto inv\xE1lido: deve incluir "${s.includes}"`:s.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${s.pattern}`:`Formato d${r[s.format]??a.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":{let s=a.keys.length>1?"s":"";return`Chave${s} inv\xE1lida${s}: ${$(a.keys,", ")}`}case"invalid_key":return`Entrada inv\xE1lida n${o(a.origin,"definite")}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Valor de discrimina\xE7\xE3o inv\xE1lido. Esperava ${a.options.map(u=>`'${u}'`).join(" | ")}`:"Entrada inv\xE1lida";case"invalid_element":return`Entrada inv\xE1lida n${o(a.origin,"definite")}`;default:return"Entrada inv\xE1lida"}}};function Dw(){return{localeError:Dz()}}var Az=()=>{let e={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function t(a){return e[a]??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(a,s){let u=n[a]??{name:`valor "${a}"`,articles:i.masculine};return`${u.articles[s]} ${u.name}`}return a=>{switch(a.code){case"invalid_type":{let s=o(a.expected,"indefinite"),u=k(a.input),c=o(u,"indefinite");return`Entrada inv\xE1lida: esperava ${s}, recebeu ${c}`}case"invalid_value":return a.values.length===1?`Entrada inv\xE1lida: esperava ${S(a.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperava uma das seguintes op\xE7\xF5es: ${$(a.values,"|")}`;case"too_big":{let s=a.inclusive?"<=":"<",u=t(a.origin);return u?`Grande demais: esperava que ${o(a.origin,"definite")} tivesse ${s} ${a.maximum.toString()} ${u.unit??"elementos"}`:`Grande demais: esperava que ${o(a.origin,"definite")} fosse ${s} ${a.maximum.toString()}`}case"too_small":{let s=a.inclusive?">=":">",u=t(a.origin);return u?`Pequeno demais: esperava que ${o(a.origin,"definite")} tivesse ${s} ${a.minimum.toString()} ${u.unit??"elementos"}`:`Pequeno demais: esperava que ${o(a.origin,"definite")} fosse ${s} ${a.minimum.toString()}`}case"invalid_format":{let s=a;return s.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${s.prefix}"`:s.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${s.suffix}"`:s.format==="includes"?`Texto inv\xE1lido: deve incluir "${s.includes}"`:s.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${s.pattern}`:`Formato d${r[s.format]??a.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":{let s=a.keys.length>1?"s":"";return`Chave${s} inv\xE1lida${s}: ${$(a.keys,", ")}`}case"invalid_key":return`Entrada inv\xE1lida n${o(a.origin,"definite")}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Valor de discrimina\xE7\xE3o inv\xE1lido. Esperava ${a.options.map(u=>`'${u}'`).join(" | ")}`:"Entrada inv\xE1lida";case"invalid_element":return`Entrada inv\xE1lida n${o(a.origin,"definite")}`;default:return"Entrada inv\xE1lida"}}};function Aw(){return{localeError:Az()}}var Nz=()=>{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,a=k(n.input),s=i[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${o}, primit ${s}`}case"invalid_value":return n.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${S(n.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} s\u0103 fie ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Prea mic: a\u0219teptat ca ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.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: ${$(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 Nw(){return{localeError:Nz()}}function zw(e,t,r,i){let n=Math.abs(e),o=n%10,a=n%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?r:i}var zz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${S(n.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),u=zw(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.maximum.toString()} ${u}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${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?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),u=zw(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.minimum.toString()} ${u}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${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":""}: ${$(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 Pw(){return{localeError:zz()}}var Pz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 instanceof ${n.expected}, obdr\u017Ean\xE9 ${s}`:`Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 ${o}, obdr\u017Ean\xE9 ${s}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 ${S(n.values[0])}`:`Neplatn\xFD vstup: o\u010Dak\xE1van\xE1 jedna z hodn\xF4t ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Hodnota je pr\xEDli\u0161 ve\u013Ek\xE1: ${n.origin??"hodnota"} mus\xED ma\u0165 ${o}${n.maximum.toString()} ${a.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?">=":">",a=t(n.origin);return a?`Hodnota je pr\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED ma\u0165 ${o}${n.minimum.toString()} ${a.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: ${$(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 Ow(){return{localeError:Pz()}}var Oz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${s}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${S(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${o}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${o}${n.minimum.toString()} ${a.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"}: ${$(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 Cw(){return{localeError:Oz()}}var Cz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${s}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${S(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()} ${a.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?">=":">",a=t(n.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()} ${a.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"}: ${$(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 Rw(){return{localeError:Cz()}}var Rz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`}case"invalid_value":return n.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${S(n.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${$(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${n.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${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?">=":">",a=t(n.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${o}${n.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${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":""}: ${$(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 jw(){return{localeError:Rz()}}var jz=()=>{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,a=k(n.input),s=i[a]??a;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, ${s} \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: ${S(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 ${$(n.values,"|")} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0425\u0435\u043B\u0435 \u043A\u0430\u043B\u043E\u043D: ${n.origin??"\u049B\u0438\u043C\u0430\u0442"} \u0431\u043E\u044F\u0434 ${o}${n.maximum.toString()} ${a.unit} ${a.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?">=":">",a=t(n.origin);return a?`\u0425\u0435\u043B\u0435 \u0445\u0443\u0440\u0434: ${n.origin} \u0431\u043E\u044F\u0434 ${o}${n.minimum.toString()} ${a.unit} ${a.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: ${$(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(a=>`'${a}'`).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 Uw(){return{localeError:jz()}}var Uz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${S(n.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${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",a=t(n.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${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: ${$(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 Mw(){return{localeError:Uz()}}var Mz=()=>{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,a=k(n.input),s=i[a]??a;return`N\xE4dogry baha: gara\u015Fylan ${o} \xFDerine ${s} alyndy`}case"invalid_value":return n.values.length===1?`N\xE4dogry baha: ${S(n.values[0])} bolmaly`:`N\xE4dogry sa\xFDlaw: a\u015Fakdakylardan biri bolmaly: ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Has uly: gara\u015Fyl\xFDan ${n.origin??"baha"} ${o} ${n.maximum.toString()} ${a.unit??"element"}`:`Has uly: gara\u015Fyl\xFDan ${n.origin??"baha"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Has ki\xE7i: gara\u015Fyl\xFDan ${n.origin} ${o} ${n.minimum.toString()} ${a.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":""}: ${$(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 Lw(){return{localeError:Mz()}}var Lz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${S(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()} ${a.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":""}: ${$(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 Zw(){return{localeError:Lz()}}var Zz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${o}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${S(n.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${o}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} \u0431\u0443\u0434\u0435 ${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":""}: ${$(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 Xl(){return{localeError:Zz()}}function Fw(){return Xl()}var Fz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${S(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${$(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?"<=":"<",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${o}${n.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${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":""}: ${$(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 qw(){return{localeError:Fz()}}var qz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${s}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${S(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",a=t(n.origin);return a?`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()} ${a.unit} ${a.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":""}: ${$(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 Vw(){return{localeError:qz()}}var Vz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${S(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${o}${n.maximum.toString()} ${a.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?">=":">",a=t(n.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${a.verb} ${o}${n.minimum.toString()} ${a.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: ${$(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 Bw(){return{localeError:Vz()}}var Bz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${S(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()} ${a.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?">=":">",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()} ${a.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): ${$(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 Hw(){return{localeError:Bz()}}var Hz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${S(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()} ${a.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?">=":">",a=t(n.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()} ${a.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${$(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 Gw(){return{localeError:Hz()}}var Gz=()=>{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,a=k(n.input),s=i[a]??a;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${S(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${$(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${a.verb} ${o}${n.maximum} ${a.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?">=":">",a=t(n.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${a.verb} ${o}${n.minimum} ${a.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: ${$(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 Jw(){return{localeError:Gz()}}var Xw,ng=Symbol("ZodOutput"),ig=Symbol("ZodInput"),Kl=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 Wl(){return new Kl}(Xw=globalThis).__zod_globalRegistry??(Xw.__zod_globalRegistry=Wl());var Je=globalThis.__zod_globalRegistry;var ft=Symbol.for("zod.compile.invalid"),Kw=Symbol.for("zod.compile.fallback"),tr=class extends Error{constructor(t="z.compile does not support async refinements, transforms, or checks"){super(t),this.name="ZodCompileAsyncError"}},oe=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 Xz(e,t){try{return Ql(e,{assertOnly:!0})}catch{return t}}function ug(e,t){try{let r=Ql(e),i=Yl(e,r);return i._zod.bag.validator=Xz(e,r),i}catch(r){if(t?.strict)throw r;return e}}function Yl(e,t){if(Bl(e))throw new oe("a schema whose subtree contains a reference cycle");let r=me(e),i=e._zod.run,n=i.__originalRun??i,o=(a,s)=>{if(s?.async||s?.direction==="backward"||s?.skipChecks||s?.[Kw]||s&&Hl(s,a.value))return n(a,s);let u=t(a.value);return u!==ft?(a.value=u,a):(s&&(s[Kw]=!0),n(a,s))};return o.__originalRun=n,r._zod.bag.fallbackRun=n,r._zod.bag.validator=t,r._zod.run=o,i.__originalRun||Kz(r,e,t),r}function Kz(e,t,r){let i=e,n=t;if(typeof n.safeParse=="function"){let o=n.safeParse;i.safeParse=(a,s)=>{let u=r(a);return u!==ft?{success:!0,data:u}:o(a,s)}}if(typeof n.parse=="function"){let o=n.parse;i.parse=(a,s)=>{let u=r(a);return u!==ft?u:o(a,s)}}}function Ql(e,t){let r=!0;try{r=Bl(e)}catch{}if(r)throw new oe("a schema whose subtree contains a reference cycle");let i={constants:new Map,constantCounter:0,varCounter:0,definite:!0},n=new Un(["input"]),o=Ne(n,i,e,"input",!t?.assertOnly);n.write(o===null?"return true;":`return ${o};`);let a=["INVALID",...i.constants.keys()],s=[ft,...i.constants.values()],u=n.content.join(`
72
+ `),c=t?.debug?a.length>0?`// Constants: ${a.join(", ")}
73
+ ${u}`:u:"",l=Function,d=`return (input) => {
74
+ ${u}
75
+ }`,m;try{m=new l(...a,d)(...s)}catch(p){throw new oe(`this schema (generated code failed to evaluate: ${p.message})`)}return t?.debug&&(m.code=c),m.definite=i.definite,m}function G(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 Ln(e,t){return e.definite=!1,G(e,t)}function V(e){return`v${e.varCounter++}`}function Wz(e,t){let r=e._zod.run({value:t,issues:[]},{});if(r&&typeof r.then=="function")return ft;let i=r;return i.issues.length===0?i.value:ft}function nt(e,t,r,i,n=!0){let o=e.content.length,a=t.constants.size,s=t.constantCounter,u=t.varCounter;try{return Ne(e,t,r,i,n)}catch(c){if(!(c instanceof oe)||!c.islandable)throw c;if(e.content.length=o,t.constants.size>a){let l=Array.from(t.constants.keys()).slice(a);for(let d of l)t.constants.delete(d)}return t.constantCounter=s,t.varCounter=u,Yz(e,t,r,i)}}function Yz(e,t,r,i){t.definite=!1;let n=G(t,r),o=G(t,Wz),a=V(t);return e.write(`const ${a} = ${o}(${n}, ${i});`),e.write(`if (${a} === INVALID) return INVALID;`),a}var Qz=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);function eP(e,t,r,i){let n=r._zod.def.checks;if(!n||n.length===0)return i;let o=i;for(let a of n){let s=a._zod.def;if(s.when&&!Qz.has(s.check))throw new oe('check with a custom "when" condition');switch(s.check){case"greater_than":tP(e,t,s,o);break;case"less_than":rP(e,t,s,o);break;case"multiple_of":nP(e,t,s,o);break;case"number_format":rx(e,s,o);break;case"min_length":{let u=tn(s.minimum,"min_length"),c=og(e,t,o,`${o}.length >= ${u} && ${o}.length < ${s.minimum*2}`);e.write(`if (${c} < ${u}) return INVALID;`);break}case"max_length":{let u=tn(s.maximum,"max_length"),c=og(e,t,o,`${o}.length > ${u}`);e.write(`if (${c} > ${u}) return INVALID;`);break}case"length_equals":{let u=tn(s.length,"length_equals"),c=og(e,t,o,`${o}.length >= ${u} && ${o}.length <= ${s.length*2}`);e.write(`if (${c} !== ${u}) return INVALID;`);break}case"min_size":e.write(`if (${o}.size < ${tn(s.minimum,"min_size")}) return INVALID;`);break;case"max_size":e.write(`if (${o}.size > ${tn(s.maximum,"max_size")}) return INVALID;`);break;case"size_equals":e.write(`if (${o}.size !== ${tn(s.size,"size_equals")}) return INVALID;`);break;case"string_format":o=nx(e,t,s,o);break;case"custom":o=cP(e,t,a,o);break;case"bigint_format":iP(e,s,o);break;case"mime_type":oP(e,t,s,o);break;case"property":sP(e,t,s,o);break;case"properties":aP(e,t,s,o);break;case"overwrite":{let u=V(t);uP(e,t,a,o,u),o=u;break}default:throw new oe(`check type ${s.check}`)}}return o}function og(e,t,r,i){let n=G(t,On),o=V(t);return e.write(`const ${o} = typeof ${r} === "string" && ${i} ? ${n}(${r}) : ${r}.length;`),o}function tn(e,t){if(typeof e!="number"||!Number.isFinite(e))throw new oe(`${t} bound of type ${typeof e}`);return`${e}`}function tx(e,t){if(typeof t=="bigint")return`${t}n`;if(typeof t=="number"){if(Number.isNaN(t))throw new oe("comparison check with NaN bound");return`${t}`}if(t instanceof Date){if(Number.isNaN(t.getTime()))throw new oe("comparison check with Invalid Date bound");return G(e,t)}throw new oe(`comparison check bound of type ${typeof t}`)}function tP(e,t,r,i){let n=r.inclusive?"<":"<=";e.write(`if (${i} ${n} ${tx(t,r.value)}) return INVALID;`)}function rP(e,t,r,i){let n=r.inclusive?">":">=";e.write(`if (${i} ${n} ${tx(t,r.value)}) return INVALID;`)}function nP(e,t,r,i){if(typeof r.value=="bigint"){if(r.value===BigInt(0))throw new oe("multiple_of check with a zero divisor");e.write(`if (${i} % ${r.value}n !== 0n) return INVALID;`)}else{let n=G(t,Aa);e.write(`if (${n}(${i}, ${tn(r.value,"multiple_of")}) !== 0) return INVALID;`)}}function rx(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 oe(`number format ${i}`)}}function iP(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 oe(`bigint format ${i}`)}}function oP(e,t,r,i){let n=r.mime;if(n&&n.length>0){let o=G(t,new Set(n));e.write(`if (!${o}.has(${i}.type)) return INVALID;`)}}function aP(e,t,r,i){if(r.when)throw new oe('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 a=typeof o=="symbol"?G(t,o):lt(o),s=V(t);e.write(`const ${s} = ${i}[${a}];`),nt(e,t,n[o],s,!1)}}function sP(e,t,r,i){let n=`${i}[${JSON.stringify(r.property)}]`;Ne(e,t,r.schema,n)}function uP(e,t,r,i,n){let o=r._zod.def.tx;if(!o)throw new oe("overwrite check without a transform function");if(Zn(o))throw new tr("z.compile: async overwrite transforms are not supported");let a=G(t,o);e.write(`const ${n} = ${a}(${i});`)}function ag(){throw new $t}function cg(e){this.issues.push(e)}function cP(e,t,r,i){let n=r._zod.def;if(n.fn){if(Zn(n.fn))throw new tr("z.compile: async .refine() predicates are not supported");let o=Ln(t,n.fn),a=G(t,ag),s=V(t);return e.write(`const ${s} = ${o}(${i});`),e.write(`if (${s} instanceof Promise) ${a}();`),e.write(`if (!${s}) return INVALID;`),i}if(r._zod.check){if(Zn(r._zod.check))throw new tr("z.compile: async .superRefine() / check functions are not supported");let o=r._zod.check,s=Ln(t,c=>{let l={value:c,issues:[],addIssue:cg};return o(l)instanceof Promise&&ag(),l.issues.length===0?l.value:ft}),u=V(t);return e.write(`const ${u} = ${s}(${i});`),e.write(`if (${u} === INVALID) return INVALID;`),u}throw new oe("custom check without a predicate or check function")}var lP=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 nx(e,t,r,i,n=!0){let o=r.format;if(o==="base64"){let c=G(t,Ga);return e.write(`if (!${c}(${i})) return INVALID;`),i}if(o==="base64url"){let c=G(t,Kc);return e.write(`if (!${c}(${i})) return INVALID;`),i}if(o==="jwt"){let c=G(t,nl),l=G(t,r.alg??null);return e.write(`if (!${c}(${i}, ${l})) return INVALID;`),i}if(o==="ipv6"){let c=G(t,Ha);return e.write(`if (!${c}(${i})) return INVALID;`),i}if(o==="cidrv6"){let c=G(t,Hc);return e.write(`if (!${c}(${i})) return INVALID;`),i}if(o==="credit_card"){let c=G(t,Qc);return e.write(`if (!${c}(${i})) return INVALID;`),i}if(o==="iban"){let c=G(t,tl);return e.write(`if (!${c}(${i})) return INVALID;`),i}let a=r;if(o==="url"||o==="httpurl"||a.normalize||a.hostname!==void 0||a.protocol!==void 0){let c=G(t,Nc),l=G(t,r),d=V(t),m=V(t);if(e.write(`const ${d} = ${i}.trim();`),e.write(`const ${m} = ${c}(${d}, ${l});`),e.write(`if (typeof ${m} === "number") return INVALID;`),a.hostname!==void 0){let f=G(t,zc);e.write(`if (!${f}(${m}, ${l}.hostname)) return INVALID;`)}if(a.protocol!==void 0){let f=G(t,Pc);e.write(`if (!${f}(${m}, ${l}.protocol)) return INVALID;`)}if(!n)return null;let p=V(t),h=a.normalize?`${m}.href`:`${G(t,Ba)}(${d})`;return e.write(`const ${p} = ${h};`),p}let s=r.fn;if(s){if(Zn(s))throw new oe(`async string format ${o}`);let c=G(t,s);return e.write(`if (!${c}(${i})) return INVALID;`),i}if(lP.has(o)&&r.pattern){let c=G(t,r.pattern);return e.write(`${c}.lastIndex = 0;`),e.write(`if (!${c}.test(${i})) return INVALID;`),i}let u=r.format;switch(u){case"regex":throw new oe("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(${lt(r.includes)})) return INVALID;`);break;case"starts_with":{let c=r.prefix;e.write(`if (${i}.slice(0, ${c.length}) !== ${lt(c)}) return INVALID;`);break}case"ends_with":{let c=r.suffix;e.write(`if (${i}.slice(-${c.length}) !== ${lt(c)}) return INVALID;`);break}default:throw new oe(`string format ${u}`)}return i}function Ne(e,t,r,i,n=!0){let o=r._zod.def,a=o.type;if(o.coerce)throw new oe(`coercion (z.coerce.${a}())`);let s=n||!!o.checks?.length,u;switch(a){case"string":u=dP(e,t,r,i,s);break;case"number":u=fP(e,r,i);break;case"boolean":u=pP(e,i);break;case"bigint":u=mP(e,r,i);break;case"symbol":u=hP(e,i);break;case"undefined":u=gP(e,i);break;case"null":u=vP(e,i);break;case"any":case"unknown":u=i;break;case"never":e.write("return INVALID;"),u=i;break;case"void":u=yP(e,i);break;case"nan":u=_P(e,i);break;case"date":u=bP(e,i);break;case"object":u=$P(e,t,r,i,s);break;case"optional":u=wP(e,t,r,i,s);break;case"nullable":u=kP(e,t,r,i,s);break;case"array":u=IP(e,t,r,i,s);break;case"literal":u=EP(e,t,r,i);break;case"enum":u=TP(e,t,r,i);break;case"readonly":{let c=Yw(e,t,r,i),l=V(t);e.write(`const ${l} = Object.freeze(${c});`),u=l;break}case"success":Yw(e,t,r,i),u="true";break;case"default":case"prefault":u=DP(e,t,r,i);break;case"nonoptional":u=AP(e,t,r,i);break;case"tuple":u=NP(e,t,r,i);break;case"union":u=zP(e,t,r,i);break;case"intersection":u=CP(e,t,r,i);break;case"record":u=RP(e,t,r,i);break;case"map":u=UP(e,t,r,i);break;case"set":u=MP(e,t,r,i);break;case"file":u=LP(e,i);break;case"template_literal":u=ZP(e,t,r,i);break;case"lazy":u=FP(e,t,r,i);break;case"pipe":u=qP(e,t,r,i);break;case"custom":u=VP(e,t,r,i);break;case"transform":u=GP(e,t,r,i);break;case"catch":u=HP(e,t,r,i);break;default:throw new oe(`schema type ${a}`)}return u===null?null:eP(e,t,r,u)}function dP(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:nx(e,t,o,i,n)}function fP(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&&rx(e,{format:i.format},r),r}function pP(e,t){return e.write(`if (typeof ${t} !== "boolean") return INVALID;`),t}function mP(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 hP(e,t){return e.write(`if (typeof ${t} !== "symbol") return INVALID;`),t}function gP(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function vP(e,t){return e.write(`if (${t} !== null) return INVALID;`),t}function yP(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function _P(e,t){return e.write(`if (typeof ${t} !== "number" || !Number.isNaN(${t})) return INVALID;`),t}function bP(e,t){return e.write(`if (!(${t} instanceof Date) || Number.isNaN(${t}.getTime())) return INVALID;`),t}function $P(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 a=o.shape,s=Object.keys(a),u=Object.getOwnPropertySymbols(a),c=u.length?[...s,...u]:s,l=v=>typeof v=="symbol"?G(t,v):lt(v),d=v=>typeof v=="symbol"?`[${l(v)}]`:lt(v),m=a;if(s.includes("__proto__"))throw new oe('object shape key "__proto__"');let p=new Map;for(let v of c){let y=m[v],I=l(v),T=V(t);if(e.write(`const ${T} = ${i}[${I}];`),y._zod.optin!==void 0){let z=V(t);e.write(`let ${z} = (() => {`),e.indented(B=>{let Fe=nt(B,t,y,T);B.write(`return ${Fe};`)}),e.write("})();"),y._zod.optout==="optional"?(e.write(`if (${z} === INVALID) {`),e.indented(B=>{B.write(`if (${I} in ${i}) return INVALID;`),B.write(`${z} = undefined;`)}),e.write("}")):e.write(`if (${z} === INVALID) return INVALID;`),p.set(v,z)}else{SP(y)&&e.write(`if (!(${I} in ${i})) return INVALID;`);let z=nt(e,t,y,T,n);z!==null&&p.set(v,z)}}let h=o.catchall,f="none";if(h){let v=h._zod.def.type;if(v==="never"){let y=s.map(I=>`k !== ${lt(I)}`).join(" && ")||"true";e.write(`for (const k in ${i}) {`),e.indented(I=>{I.write(`if (${y}) return INVALID;`)}),e.write("}")}else(v==="unknown"||v==="any")&&!h._zod.def.checks?.length?f="passthrough":f="schema"}let g=V(t),b=c.some(v=>Ww(m[v])||sg(m[v]));if(!n){if(f==="schema"){let v=s.length>0?G(t,new Set(s)):null;e.write(`for (const k in ${i}) {`),e.indented(y=>{y.write('if (k === "__proto__") continue;'),v&&y.write(`if (${v}.has(k)) continue;`);let I=V(t);y.write(`const ${I} = ${i}[k];`),nt(y,t,h,I,!1)}),e.write("}")}return null}if(b){e.write(`const ${g} = {};`);for(let v of c){let y=l(v),I=p.get(v);sg(m[v])?e.write(`if (${y} in ${i}) ${g}[${y}] = ${I};`):Ww(m[v])?e.write(`if (${I} !== undefined || ${y} in ${i}) ${g}[${y}] = ${I};`):e.write(`${g}[${y}] = ${I};`)}}else{let v=c.map(y=>`${d(y)}: ${p.get(y)}`).join(", ");e.write(`const ${g} = { ${v} };`)}if(f!=="none"){let v=s.length>0?G(t,new Set(s)):null;e.write(`for (const k in ${i}) {`),e.indented(y=>{if(y.write('if (k === "__proto__") continue;'),v&&y.write(`if (${v}.has(k)) continue;`),f==="passthrough")y.write(`${g}[k] = ${i}[k];`);else{let I=V(t);y.write(`const ${I} = ${i}[k];`);let T=nt(y,t,h,I);y.write(`${g}[k] = ${T};`)}}),e.write("}")}return g}function wP(e,t,r,i,n=!0){let o=r._zod.def;if(xP(r))return Ne(e,t,o.innerType,i,n);if(o.innerType._zod.optin==="defaulted"){let s=V(t),u=V(t);return e.write(`let ${s};`),e.write(`if (${i} === undefined) {`),e.indented(c=>{c.write(`const ${u} = (() => {`),c.indented(l=>{let d=Ne(l,t,o.innerType,i);l.write(`return ${d};`)}),c.write("})();"),c.write(`if (${u} !== INVALID) ${s} = ${u};`)}),e.write("} else {"),e.indented(c=>{let l=Ne(c,t,o.innerType,i);c.write(`${s} = ${l};`)}),e.write("}"),s}let a=n?V(t):null;return a&&e.write(`let ${a};`),e.write(`if (${i} !== undefined) {`),e.indented(s=>{let u=Ne(s,t,o.innerType,i,n);a&&u!==null&&s.write(`${a} = ${u};`)}),e.write("}"),a}function xP(e){return e._zod.traits?.has("$ZodExactOptional")===!0}function SP(e){return e._zod.optin===void 0&&Mn(e)}function Mn(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?Mn(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?Mn(t.innerType):!0;case"catch":return!0;case"union":return t.options?t.options.some(Mn):!0;case"intersection":return!t.left||!t.right?!0:Mn(t.left)&&Mn(t.right);case"pipe":return t.in?Mn(t.in):!0;default:return!0}}function sg(e){return e._zod.optin==="optional"&&e._zod.optout==="optional"}function Ww(e){return(e._zod.optin!=="defaulted"||e._zod.optout==="optional")&&Yi(e)}function Yi(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?Yi(t.innerType):!0;case"union":return t.options?t.options.some(Yi):!0;case"intersection":return!t.left||!t.right||Yi(t.left)||Yi(t.right);case"pipe":return t.out?Yi(t.out):!0;default:return!0}}function kP(e,t,r,i,n=!0){let o=r._zod.def,a=n?V(t):null;return a&&e.write(`let ${a} = null;`),e.write(`if (${i} !== null) {`),e.indented(s=>{let u=Ne(s,t,o.innerType,i,n);a&&u!==null&&s.write(`${a} = ${u};`)}),e.write("}"),a}function lg(e,t,r){for(let[i,n]of Pi(t._zod.def.checks))e.write(`if (${r} > ${tn(i,n._zod.def.check)}) return INVALID;`)}function IP(e,t,r,i,n=!0){let o=r._zod.def;e.write(`if (!Array.isArray(${i})) return INVALID;`),lg(e,r,`${i}.length`);let a=n?V(t):null,s=V(t),u=V(t);return a&&e.write(`const ${a} = new Array(${i}.length);`),e.write(`for (let ${s} = 0; ${s} < ${i}.length; ${s}++) {`),e.indented(c=>{c.write(`const ${u} = ${i}[${s}];`);let l=nt(c,t,o.element,u,n);a&&l!==null&&c.write(`${a}[${s}] = ${l};`)}),e.write("}"),a}function EP(e,t,r,i){let o=r._zod.def.values;if(o.length!==1){let s=G(t,new Set(o));return e.write(`if (!${s}.has(${i})) return INVALID;`),i}let a=o[0];if(typeof a=="number"&&Number.isNaN(a)){let s=G(t,new Set(o));return e.write(`if (!${s}.has(${i})) return INVALID;`),i}if(typeof a=="string")e.write(`if (${i} !== ${lt(a)}) return INVALID;`);else if(typeof a=="number"||typeof a=="boolean")e.write(`if (${i} !== ${a}) return INVALID;`);else if(a===null)e.write(`if (${i} !== null) return INVALID;`);else if(a===void 0)e.write(`if (${i} !== undefined) return INVALID;`);else if(typeof a=="bigint")e.write(`if (${i} !== ${a}n) return INVALID;`);else throw new oe(`literal type ${typeof a}`);return i}function TP(e,t,r,i){let n=r._zod.values;if(!n)throw new oe("enum schema without enumerated values");let o=G(t,n);return e.write(`if (!${o}.has(${i})) return INVALID;`),i}function Yw(e,t,r,i){let n=r._zod.def;return Ne(e,t,n.innerType,i)}function DP(e,t,r,i){let n=r._zod.def,a=Object.getOwnPropertyDescriptor(r._zod.def,"defaultValue")?()=>r._zod.def.defaultValue:void 0;if(r._zod.def.type==="prefault"){if(!a)return Ne(e,t,n.innerType,i);let u=G(t,a),c=V(t);return e.write(`let ${c} = ${i};`),e.write(`if (${i} === undefined) ${c} = ${u}();`),Ne(e,t,n.innerType,c)}let s=V(t);if(a){let u=G(t,a),c=G(t,zi);e.write(`let ${s};`),e.write(`if (${i} === undefined) {`),e.indented(l=>{l.write(`${s} = ${c}(${u}());`)}),e.write("} else {"),e.indented(l=>{let d=Ne(l,t,n.innerType,i);l.write(`${s} = ${d} === undefined ? ${c}(${u}()) : ${d};`)}),e.write("}")}else e.write(`let ${s};`),e.write(`if (${i} !== undefined) {`),e.indented(u=>{let c=Ne(u,t,n.innerType,i);u.write(`${s} = ${c};`)}),e.write("}");return s}function AP(e,t,r,i){let n=r._zod.def,o=Ne(e,t,n.innerType,i),a=V(t);return e.write(`const ${a} = ${o};`),e.write(`if (${a} === undefined) return INVALID;`),a}function NP(e,t,r,i){let n=r._zod.def,o=n.items,a=n.rest;e.write(`if (!Array.isArray(${i})) return INVALID;`);let s=Qw(o,"optin"),u=Qw(o,"optout");a?e.write(`if (${i}.length < ${s}) return INVALID;`):e.write(`if (${i}.length < ${s} || ${i}.length > ${o.length}) return INVALID;`);let c=V(t);e.write(`const ${c} = [];`);for(let l=0;l<o.length;l++){let d=o[l];if(l>=u)e.write(`if (${c}.length === ${l}) {`),e.indented(m=>{m.write(`if (${l} < ${i}.length) {`),m.indented(p=>{let h=V(t);p.write(`const ${h} = ${i}[${l}];`);let f=nt(p,t,d,h);p.write(`${c}[${l}] = ${f};`)}),m.write("} else {"),m.indented(p=>{if(sg(d)){p.write(`${c}.length = ${l};`);return}let h=V(t),f=V(t);p.write(`const ${h} = undefined;`),p.write(`const ${f} = (() => {`),p.indented(g=>{let b=nt(g,t,d,h);g.write(`return ${b};`)}),p.write("})();"),p.write(`if (${f} === INVALID || ${f} === undefined) ${c}.length = ${l};`),p.write(`else ${c}[${l}] = ${f};`)}),m.write("}")}),e.write("}");else{let m=V(t);e.write(`const ${m} = ${i}[${l}];`);let p=nt(e,t,d,m);e.write(`${c}[${l}] = ${p};`)}}if(a){let l=V(t),d=V(t);e.write(`for (let ${l} = ${o.length}; ${l} < ${i}.length; ${l}++) {`),e.indented(m=>{m.write(`const ${d} = ${i}[${l}];`);let p=nt(m,t,a,d);m.write(`${c}[${l}] = ${p};`)}),e.write("}")}return c}function Qw(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 zP(e,t,r,i){let n=r._zod.def,o=n.options;if(n.discriminator)return PP(e,t,n,i);if(n.inclusive===!1)throw new oe("exclusive unions (z.xor)");if(o.length===0)return e.write("return INVALID;"),i;if(o.length===1)return Ne(e,t,o[0],i);if(o.every(u=>u._zod.def.type==="literal"&&!u._zod.def.checks?.length)){let u=new Set(o.flatMap(l=>l._zod.def.values)),c=G(t,u);return e.write(`if (!${c}.has(${i})) return INVALID;`),i}let s=V(t);e.write(`let ${s};`);for(let u=0;u<o.length;u++){let c=o[u];u===0?e.write(`${s} = (() => {`):e.write(`if (${s} === INVALID) ${s} = (() => {`),e.indented(l=>{let d=Ne(l,t,c,i);l.write(`return ${d};`)}),e.write("})();")}return e.write(`if (${s} === INVALID) return INVALID;`),s}function PP(e,t,r,i){if(r.unionFallback)throw new oe("discriminated union with unionFallback");if(r.options.length===0)return e.write("return INVALID;"),i;let n=V(t),o=V(t);e.write(`const ${n} = ${i}?.[${lt(r.discriminator)}];`),e.write(`let ${o};`);let a=!0,s=new Set;for(let u of r.options){let c=u._zod.propValues?.[r.discriminator];if(!c||c.size===0)throw new oe("discriminated union option without static discriminator values");for(let m of c){if(s.has(m))throw new oe(`duplicate discriminator value ${String(m)}`);s.add(m)}let l=Array.from(c,m=>OP(t,n,m)),d=a?"if":"else if";e.write(`${d} (${l.join(" || ")}) {`),e.indented(m=>{let p=Ne(m,t,u,i);m.write(`${o} = ${p};`)}),e.write("}"),a=!1}return e.write("else { return INVALID; }"),o}function OP(e,t,r){if(typeof r=="string")return`${t} === ${lt(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=G(e,r);return`${t} === ${i}`}throw new oe(`literal discriminator value ${String(r)}`)}function CP(e,t,r,i){let n=r._zod.def;t.definite=!1;let o=nt(e,t,n.left,i),a=nt(e,t,n.right,i),s=G(t,Vi),u=V(t);return e.write(`const ${u} = ${s}(${o}, ${a});`),e.write(`if (!${u}.valid) return INVALID;`),`${u}.data`}function RP(e,t,r,i){let n=r._zod.def,o=G(t,Vt);e.write(`if (!${o}(${i})) return INVALID;`);let a=V(t),s=V(t),u=V(t);e.write(`const ${a} = {};`);let c=n,l=c.partial?void 0:n.keyType._zod.values;if(l){let p=[];for(let f of l){if(!(typeof f=="string"||typeof f=="number"||typeof f=="symbol"))throw new oe(`record key value ${String(f)}`);let g=typeof f=="number"?f.toString():f;if(g==="__proto__")throw new oe('record key "__proto__"');p.push(g);let b=G(t,f),v=Ne(e,t,n.keyType,b),y=V(t);e.write(`const ${y} = ${i}[${jP(t,g)}];`);let I=nt(e,t,n.valueType,y);e.write(`${a}[${v}] = ${I};`)}let h=G(t,new Set(p));return e.write(`for (const ${s} in ${i}) {`),e.indented(f=>{f.write(`if (${h}.has(${s})) continue;`),c.mode==="loose"?f.write(`if (${s} !== "__proto__") ${a}[${s}] = ${i}[${s}];`):f.write("return INVALID;")}),e.write("}"),a}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",h=Ql(n.keyType);h.definite===!1&&(t.definite=!1);let f=G(t,h),g=G(t,Cr),b=V(t);return ex(e,t,i,s,v=>{v.write(`let ${b} = ${f}(${s});`),v.write(`if (${b} === INVALID && typeof ${s} === "string" && ${g}.test(${s})) ${b} = ${f}(Number(${s}));`),p?v.write(`if (${b} === INVALID) { ${a}[${s}] = ${i}[${s}]; continue; }`):v.write(`if (${b} === INVALID) return INVALID;`),v.write(`if (${b} === "__proto__") continue;`);let y=V(t);v.write(`const ${y} = ${i}[${s}];`);let I=nt(v,t,n.valueType,y);v.write(`${a}[${b}] = ${I};`)}),a}return ex(e,t,i,s,p=>{p.write(`const ${u} = ${i}[${s}];`);let h=nt(p,t,n.valueType,u);p.write(`${a}[${s}] = ${h};`)},"return INVALID;"),a}function ex(e,t,r,i,n,o){let a=G(t,Object.prototype.propertyIsEnumerable),s=V(t),u=V(t),c=V(t);e.write(`const ${s} = Object.getOwnPropertySymbols(${r});`),e.write(`const ${u} = Object.getOwnPropertyNames(${r});`),e.write(`for (let ${c} = 0; ${c} < ${u}.length; ${c}++) {`),e.indented(l=>{l.write(`const ${i} = ${u}[${c}];`),l.write(`if (${i} === "__proto__" || !${a}.call(${r}, ${i})) continue;`),n(l)}),e.write("}"),e.write(`for (let ${c} = 0; ${c} < ${s}.length; ${c}++) {`),e.indented(l=>{l.write(`const ${i} = ${s}[${c}];`),l.write(`if (!${a}.call(${r}, ${i})) continue;`),o?l.write(o):n(l)}),e.write("}")}function jP(e,t){return typeof t=="string"?lt(t):G(e,t)}function UP(e,t,r,i){let n=r._zod.def;e.write(`if (!(${i} instanceof Map)) return INVALID;`),lg(e,r,`${i}.size`);let o=V(t),a=V(t),s=V(t);return e.write(`const ${o} = new Map();`),e.write(`for (const [${a}, ${s}] of ${i}) {`),e.indented(u=>{let c=Ne(u,t,n.keyType,a),l=Ne(u,t,n.valueType,s);u.write(`${o}.set(${c}, ${l});`)}),e.write("}"),o}function MP(e,t,r,i){let n=r._zod.def;e.write(`if (!(${i} instanceof Set)) return INVALID;`),lg(e,r,`${i}.size`);let o=V(t),a=V(t);return e.write(`const ${o} = new Set();`),e.write(`for (const ${a} of ${i}) {`),e.indented(s=>{let u=Ne(s,t,n.valueType,a);s.write(`${o}.add(${u});`)}),e.write("}"),o}function LP(e,t){return e.write(`if (!(${t} instanceof File)) return INVALID;`),t}function ZP(e,t,r,i){e.write(`if (typeof ${i} !== "string") return INVALID;`);let n=r._zod.pattern;if(n){let o=G(t,n);e.write(`${o}.lastIndex = 0;`),e.write(`if (!${o}.test(${i})) return INVALID;`)}return i}function FP(e,t,r,i){let n=r._zod.def,o=Ln(t,n.getter),a=G(t,{parser:null});e.write(`if (!${a}.parser) {`),e.indented(u=>{u.write(`const inner = ${o}();`),u.write(`${a}.parser = function(input) {`),u.indented(c=>{c.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),c.write("return result.issues.length === 0 ? result.value : INVALID;")}),u.write("};")}),e.write("}");let s=V(t);return e.write(`const ${s} = ${a}.parser(${i});`),e.write(`if (${s} === INVALID) return INVALID;`),s}function qP(e,t,r,i){let n=r._zod.def,o=Ne(e,t,n.in,i);if(n.transform){if(Zn(n.transform))throw new tr("z.compile: async transforms in pipes are not supported");let a=n.transform,u=Ln(t,l=>{let d={value:l,issues:[],addIssue:cg},m=a(l,d);return m instanceof Promise?ft:d.issues.length===0?m:ft}),c=V(t);return e.write(`const ${c} = ${u}(${o});`),e.write(`if (${c} === INVALID) return INVALID;`),Ne(e,t,n.out,c)}else return Ne(e,t,n.out,o)}function Zn(e){return typeof e=="function"&&(e.constructor.name==="AsyncFunction"||e[Symbol.toStringTag]==="AsyncFunction")}function VP(e,t,r,i){let n=r._zod.def;if(n.fn){if(Zn(n.fn))throw new tr("z.compile: async custom predicates are not supported");let o=Ln(t,n.fn),a=G(t,ag),s=V(t);e.write(`const ${s} = ${o}(${i});`),e.write(`if (${s} instanceof Promise) ${a}();`),e.write(`if (!${s}) return INVALID;`)}else throw new oe("custom schema without a predicate function");return i}function BP(e,t,r){let i=e._zod.run({value:r,issues:[]},{});if(i&&typeof i.then=="function")return ft;let n=i;return n.issues.length===0?n.value:t()}function HP(e,t,r,i){let n=r._zod.def;if(!n.catchValue[sc])throw new oe("catch with a callback (only a constant catch value compiles)",!1);let o=V(t);e.write(`let ${o} = (() => {`),e.indented(c=>{let l=nt(c,t,n.innerType,i);c.write(`return ${l};`)}),e.write("})();");let a=G(t,n.innerType),s=Ln(t,n.catchValue),u=G(t,BP);return e.write(`if (${o} === INVALID) {`),e.indented(c=>{c.write(`${o} = ${u}(${a}, ${s}, ${i});`),c.write(`if (${o} === INVALID) return INVALID;`)}),e.write("}"),o}function GP(e,t,r,i){let n=r._zod.def;if(n.transform){if(Zn(n.transform))throw new tr("z.compile: async transforms are not supported");let o=n.transform,s=Ln(t,c=>{let l={value:c,issues:[],addIssue:cg},d=o(c,l);return d instanceof Promise?ft:l.issues.length===0?d:ft}),u=V(t);return e.write(`const ${u} = ${s}(${i});`),e.write(`if (${u} === INVALID) return INVALID;`),u}return i}function ed(e){return e.checks&&(e.checks=[...e.checks]),e}function td(e,t){return new e(ed({type:"string",...A(t)}))}function dg(e,t){return new e(ed({type:"string",coerce:!0,...A(t)}))}function is(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...A(t)})}function os(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...A(t)})}function as(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...A(t)})}function ss(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...A(t)})}function us(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...A(t)})}function cs(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...A(t)})}function Qi(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...A(t)})}function ls(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...A(t)})}function ds(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...A(t)})}function fs(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...A(t)})}function ps(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...A(t)})}function ms(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...A(t)})}function hs(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...A(t)})}function gs(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...A(t)})}function vs(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...A(t)})}function ys(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...A(t)})}function rd(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...A(t)})}function _s(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...A(t)})}function bs(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...A(t)})}function $s(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...A(t)})}function ws(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...A(t)})}function xs(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...A(t)})}function nd(e,t){return new e({type:"string",format:"credit_card",check:"string_format",abort:!1,...A(t)})}function id(e,t){return new e({type:"string",format:"iban",check:"string_format",abort:!1,...A(t)})}function Ss(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...A(t)})}var fg={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function ks(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...A(t)})}function Is(e,t){return new e({type:"string",format:"date",check:"string_format",...A(t)})}function Es(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...A(t)})}function Ts(e,t){return new e({type:"string",format:"duration",check:"string_format",...A(t)})}function od(e,t){return new e(ed({type:"number",checks:[],...A(t)}))}function pg(e,t){return new e(ed({type:"number",coerce:!0,checks:[],...A(t)}))}function ad(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...A(t)})}function sd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...A(t)})}function ud(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...A(t)})}function cd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...A(t)})}function ld(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...A(t)})}function dd(e,t){return new e({type:"boolean",...A(t)})}function mg(e,t){return new e({type:"boolean",coerce:!0,...A(t)})}function fd(e,t){return new e({type:"bigint",...A(t)})}function hg(e,t){return new e({type:"bigint",coerce:!0,...A(t)})}function pd(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...A(t)})}function md(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...A(t)})}function hd(e,t){return new e({type:"symbol",...A(t)})}function gd(e,t){return new e({type:"undefined",...A(t)})}function vd(e,t){return new e({type:"null",...A(t)})}function yd(e){return new e({type:"any"})}function _d(e){return new e({type:"unknown"})}function bd(e,t){return new e({type:"never",...A(t)})}function $d(e,t){return new e({type:"void",...A(t)})}function wd(e,t){return new e({type:"date",...A(t)})}function gg(e,t){return new e({type:"date",coerce:!0,...A(t)})}function xd(e,t){return new e({type:"nan",...A(t)})}function gr(e,t){return new $c({check:"less_than",...A(t),value:e,inclusive:!1})}function jt(e,t){return new $c({check:"less_than",...A(t),value:e,inclusive:!0})}function vr(e,t){return new wc({check:"greater_than",...A(t),value:e,inclusive:!1})}function Ut(e,t){return new wc({check:"greater_than",...A(t),value:e,inclusive:!0})}function Sd(e){return vr(0,e)}function kd(e){return gr(0,e)}function Id(e){return jt(0,e)}function Ed(e){return Ut(0,e)}function rn(e,t){return new Sh({check:"multiple_of",...A(t),value:e})}function nn(e,t){return new Eh({check:"max_size",...A(t),maximum:e})}function yr(e,t){return new Th({check:"min_size",...A(t),minimum:e})}function Fn(e,t){return new Dh({check:"size_equals",...A(t),size:e})}function qn(e,t){return new Ah({check:"max_length",...A(t),maximum:e})}function Rr(e,t){return new Nh({check:"min_length",...A(t),minimum:e})}function Vn(e,t){return new zh({check:"length_equals",...A(t),length:e})}function eo(e,t){return new Ph({check:"string_format",format:"regex",...A(t),pattern:e})}function to(e){return new Oh({check:"string_format",format:"lowercase",...A(e)})}function ro(e){return new Ch({check:"string_format",format:"uppercase",...A(e)})}function no(e,t){return new Rh({check:"string_format",format:"includes",...A(t),includes:e})}function io(e,t){return new jh({check:"string_format",format:"starts_with",...A(t),prefix:e})}function oo(e,t){return new Uh({check:"string_format",format:"ends_with",...A(t),suffix:e})}function Td(e,t,r){return new Mh({check:"property",property:e,schema:t,...A(r)})}function ao(e,t){return new Lh({check:"properties",shape:e,...A(t)})}function so(e,t){return new Zh({check:"mime_type",mime:e,...A(t)})}function rr(e){return new Fh({check:"overwrite",tx:e})}function uo(e){return rr(t=>t.normalize(e))}function co(){return rr(e=>e.trim())}function lo(){return rr(e=>e.toLowerCase())}function fo(){return rr(e=>e.toUpperCase())}function po(){return rr(e=>km(e))}function vg(e,t,r){return new e({type:"array",element:t,...A(r)})}function JP(e,t,r){return new e({type:"union",options:t,...A(r)})}function XP(e,t,r){return new e({type:"union",options:t,inclusive:!1,...A(r)})}function KP(e,t,r,i){return new e({type:"union",options:r,discriminator:t,...A(i)})}function WP(e,t,r){return new e({type:"intersection",left:t,right:r})}function YP(e,t,r,i){let n=r instanceof X,o=n?i:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...A(o)})}function QP(e,t,r,i){return new e({type:"record",keyType:t,valueType:r,...A(i)})}function eO(e,t,r,i){return new e({type:"map",keyType:t,valueType:r,...A(i)})}function tO(e,t,r){return new e({type:"set",valueType:t,...A(r)})}function rO(e,t,r){let i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:i,...A(r)})}function nO(e,t,r){return new e({type:"enum",entries:t,...A(r)})}function iO(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...A(r)})}function Dd(e,t){return new e({type:"file",...A(t)})}function oO(e,t){return new e({type:"transform",transform:t})}function aO(e,t){return new e({type:"optional",innerType:t})}function sO(e,t){return new e({type:"nullable",innerType:t})}function uO(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():zi(r)}})}function cO(e,t,r){return new e({type:"nonoptional",innerType:t,...A(r)})}function lO(e,t){return new e({type:"success",innerType:t})}function dO(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:zm(r)})}function fO(e,t,r){return new e({type:"pipe",in:t,out:r})}function pO(e,t){return new e({type:"readonly",innerType:t})}function mO(e,t,r){return new e({type:"template_literal",parts:t,...A(r)})}function hO(e,t){return new e({type:"lazy",getter:t})}function gO(e,t){return new e({type:"promise",innerType:t})}function Ad(e,t,r){let i=A(r);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function Nd(e,t,r){return new e({type:"custom",check:"custom",fn:t,...A(r)})}function zd(e,t){let r=ix(i=>(i.addIssue=n=>{if(typeof n=="string")i.issues.push(Oi(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(Oi(o))}},e(i.value,i)),t);return r}function ix(e,t){let r=new $e({check:"custom",...A(t)});return r._zod.check=e,r}function Pd(e){let t=new $e({check:"describe"});return t._zod.onattach=[r=>{let i=Je.get(r)??{};Je.add(r,{...i,description:e})}],t._zod.check=()=>{},t}function Od(e){let t=new $e({check:"meta"});return t._zod.onattach=[r=>{let i=Je.get(r)??{};Je.add(r,{...i,...e})}],t._zod.check=()=>{},t}function Cd(e,t){let r=A(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),a=new Set(n),s=e.Codec??Gi,u=e.Boolean??Bi,c=e.String??en,l=new c({type:"string",error:r.error}),d=new u({type:"boolean",error:r.error}),m=new s({type:"pipe",in:l,out:d,transform:((p,h)=>{let f=p;return r.case!=="sensitive"&&(f=f.toLowerCase()),o.has(f)?!0:a.has(f)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:h.value,inst:m,continue:!1}),{})}),reverseTransform:((p,h)=>p===!0?i[0]||"true":n[0]||"false"),error:r.error});return m._zod.bag.truthy=i,m._zod.bag.falsy=n,m._zod.bag.case=r.case??"insensitive",m}function on(e,t,r,i={}){let n=A(i),o={check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(o.pattern=r),new e(o)}function Ds(e,...t){for(let r of t)for(let i of Reflect.ownKeys(r))Object.prototype.propertyIsEnumerable.call(r,i)&&Ge(e,i,r[i]);return e}function an(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??Je,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 Me(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 ye(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 a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let l={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,l);else{let m=a.schema,p=t.processors[n.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);p(e,t,m,l)}let d=e._zod.parent;d&&(a.ref||(a.ref=d),ye(d,t,l),t.seen.get(d).isParent=!0)}let u=t.metadataRegistry.get(e);return u&&Ds(a.schema,u),t.io==="input"&&pt(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function ox(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function sn(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 a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let u=i.get(s);if(u&&u!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(s,a[0])}}let n=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(a[0])?.id,m=e.external.uri??(h=>h);if(d)return{ref:m(d)};let p=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=p,{defId:p,ref:`${m("__shared")}#/${s}/${ox(p)}`}}let u="#",c=`${u}/${s}/`;if(a[1]===r&&!a[1].schema.id)return{ref:u};let l=a[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:c+ox(l)}},o=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:u,defId:c}=n(a);s.def={...s.schema},c&&(s.defId=c);let l=s.schema;for(let d in l)delete l[d];l.$ref=u};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
76
+
77
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){o(a);continue}if(e.external){let c=e.external.registry.get(a[0])?.id;if(t!==a[0]&&c){o(a);continue}}if(e.metadataRegistry.get(a[0])?.id){o(a);continue}if(s.cycle){o(a);continue}s.count>1&&e.reused==="ref"&&o(a)}e.external&&(e.sharedDefsExtractedFor=e.external)}function ux(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;ux(i);let n=Object.keys(i);if(n.length!==1||n[0]!=="type")return;let o=i.type;for(let a of Array.isArray(o)?o:[o]){if(typeof a!="string")return;r.includes(a)||r.push(a)}}delete e.anyOf,e.type=r.length===1?r[0]:r}var cx=new Set(["type","properties","required","additionalProperties"]),ax=["oneOf","anyOf"];function sx(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function yg(e){let t=[];for(let o of e){if(typeof o!="object"||o.type!=="object")return null;for(let a in o)if(!cx.has(a))return null;t.push(o)}let r={},i=new Set;for(let o of t){for(let a in o.properties){if(Object.prototype.hasOwnProperty.call(r,a))continue;let s=[];for(let c of t){let l=c.properties?.[a]??sx(c);l!=null&&(s.some(d=>JSON.stringify(d)===JSON.stringify(l))||s.push(l))}let u=s.length===1?s[0]:yg(s)??{allOf:s};Ge(r,a,u)}for(let a of o.required??[])i.add(a)}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 a of t){let s=sx(a);s&&!o.some(u=>JSON.stringify(u)===JSON.stringify(s))&&o.push(s)}o.length===1?n.additionalProperties=o[0]:o.length>1&&(n.additionalProperties={allOf:o})}return n}function vO(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let n of cx)if(n in e)return;let r=t.filter(n=>ax.some(o=>Array.isArray(n[o]))),i=null;if(!r.length)i=yg(t);else{let n=r[0],o=ax.find(u=>Array.isArray(n[u]));if(Object.keys(n).length!==1)return;let a=t.filter(u=>u!==n),s=n[o].map(u=>yg([...a,u]));if(s.some(u=>!u))return;i={[o]:s}}i&&(delete e.allOf,Ds(e,i))}function un(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=s=>{let u=e.seen.get(s);if(u.ref===null)return;let c=u.def??u.schema,l={...c},d=u.ref;if(u.ref=null,d){i(d);let p=e.seen.get(d),h=p.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(h)):Ds(c,h),Ds(c,l),s._zod.parent===d)for(let g in c)g==="$ref"||g==="allOf"||g in l||delete c[g];if(h.$ref&&p.def)for(let g in c)g==="$ref"||g==="allOf"||g in p.def&&JSON.stringify(c[g])===JSON.stringify(p.def[g])&&delete c[g]}let m=s._zod.parent;if(m&&m!==d){i(m);let p=e.seen.get(m);if(p?.schema.$ref&&(c.$ref=p.schema.$ref,p.def))for(let h in c)h==="$ref"||h==="allOf"||h in p.def&&JSON.stringify(c[h])===JSON.stringify(p.def[h])&&delete c[h]}e.override({zodSchema:s,jsonSchema:c,path:u.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let s of[...e.seen.entries()].reverse())i(s[0]);if(e.target!=="openapi-3.0")for(let s of e.seen.entries())ux(s[1].def??s[1].schema);for(let s of e.deferred)s();if(e.intersections.length){let s=new Map;for(let u of e.seen.values())for(let c of[u.schema,u.def]){let l=c?.allOf;if(!Array.isArray(l))continue;let d=s.get(l);d?d.push(c):s.set(l,[c])}for(let u of e.intersections)for(let c of s.get(u)??[])vO(c)}}let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(s)}Ds(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 a=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let s of e.seen.entries()){let u=s[1];u.def&&u.defId&&(u.def.id===u.defId&&delete u.def.id,Ge(a,u.defId,u.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?n.$defs=a:n.definitions=a);try{let s=JSON.parse(JSON.stringify(n));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:mo(t,"input",e.processors),output:mo(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function pt(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 pt(i.element,r);if(i.type==="set")return pt(i.valueType,r);if(i.type==="lazy")return pt(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 pt(i.innerType,r);if(i.type==="intersection")return pt(i.left,r)||pt(i.right,r);if(i.type==="record"||i.type==="map")return pt(i.keyType,r)||pt(i.valueType,r);if(i.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:pt(i.in,r)||pt(i.out,r);if(i.type==="object"){for(let n in i.shape)if(pt(i.shape[n],r))return!0;return!1}if(i.type==="union"){for(let n of i.options)if(pt(n,r))return!0;return!1}if(i.type==="tuple"){for(let n of i.items)if(pt(n,r))return!0;return!!(i.rest&&pt(i.rest,r))}return!1}var _g=(e,t={})=>r=>{let i=an({...r,processors:t});return ye(e,i),sn(i,e),un(i,e)},mo=(e,t,r={})=>i=>{let{libraryOptions:n,target:o}=i??{},a=an({...n??{},target:o,io:t,processors:r});return ye(e,a),sn(a,e),un(a,e)};var ho=(e,t,r)=>{(e[t]===void 0||r>e[t])&&(e[t]=r)},go=(e,t,r)=>{(e[t]===void 0||r<e[t])&&(e[t]=r)},lx=(e,t)=>{ho(e,"minimum",t),go(e,"maximum",t)},mx=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},hx=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},gx=(e,t)=>{e.mime=e.mime?e.mime.filter(r=>t.includes(r)):[...t]},vx=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},dx=(e,t)=>ho(e,"minimum",t.minimum),fx=(e,t)=>go(e,"maximum",t.maximum),px=e=>(t,r)=>{vx(t,r.format);let[i,n]=e[r.format];ho(t,"minimum",i),go(t,"maximum",n)},yO={greater_than:(e,t)=>ho(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>go(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>mx(e,t.value),number_format:px(za),bigint_format:px(Pa),min_length:dx,max_length:fx,length_equals:(e,t)=>lx(e,t.length),min_size:dx,max_size:fx,size_equals:(e,t)=>lx(e,t.size),string_format:(e,t)=>{vx(e,t.format),t.pattern&&hx(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)=>gx(e,t.mime)};function Le(e){let t={},r=e._zod.def,i=e._zod.traits.has("$ZodCheck")?[e,...r.checks??[]]:r.checks??[];for(let o of i)yO[o._zod.def.check]?.(t,o._zod.def);let n=e._zod.bag;n.minimum!==void 0&&ho(t,"minimum",n.minimum),n.exclusiveMinimum!==void 0&&ho(t,"exclusiveMinimum",n.exclusiveMinimum),n.maximum!==void 0&&go(t,"maximum",n.maximum),n.exclusiveMaximum!==void 0&&go(t,"exclusiveMaximum",n.exclusiveMaximum),n.multipleOf!==void 0&&mx(t,n.multipleOf),n.format!==void 0&&(t.format??(t.format=n.format),n.format.includes("int")&&(t.isInt=!0)),n.mime&&gx(t,n.mime);for(let o of n.patterns??[])hx(t,o);return t}var _O={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},bO=new Map([[Jc,ih],[Ja,oh]]),yx=e=>bO.get(e)??e,wg=(e,t,r,i)=>{let n=r;n.type="string";let{minimum:o,maximum:a,format:s,patterns:u,contentEncoding:c,laxFormat:l}=Le(e);if(typeof o=="number"&&(n.minLength=o),typeof a=="number"&&(n.maxLength=a),s&&(n.format=_O[s]??s,n.format===""&&delete n.format,(s==="time"||l)&&delete n.format),c&&(n.contentEncoding=c),u&&u.size>0){let d=[...u].map(yx);d.length===1?n.pattern=d[0].source:d.length>1&&(n.allOf=[...d.map(m=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},xg=(e,t,r,i)=>{let n=r,{minimum:o,maximum:a,multipleOf:s,exclusiveMaximum:u,exclusiveMinimum:c,isInt:l}=Le(e);n.type=l?"integer":"number";let d=typeof c=="number"&&c>=(o??Number.NEGATIVE_INFINITY),m=typeof u=="number"&&u<=(a??Number.POSITIVE_INFINITY),p=t.target==="draft-04"||t.target==="openapi-3.0";if(d?p?(n.minimum=c,n.exclusiveMinimum=!0):n.exclusiveMinimum=c:typeof o=="number"&&(n.minimum=o),m?p?(n.maximum=u,n.exclusiveMaximum=!0):n.exclusiveMaximum=u:typeof a=="number"&&(n.maximum=a),s){let h=new Set;for(let b of s)Number.isFinite(b)&&b!==0?h.add(Math.abs(b)):Me(e,t,n,i,`A multipleOf divisor of ${b} cannot be represented in JSON Schema`);let[f,...g]=h;f!==void 0&&(n.multipleOf=f),g.length&&(n.allOf=[...n.allOf??[],...g.map(b=>({multipleOf:b}))])}},Sg=(e,t,r,i)=>{r.type="boolean"},kg=(e,t,r,i)=>{Me(e,t,r,i,"BigInt cannot be represented in JSON Schema")},Ig=(e,t,r,i)=>{Me(e,t,r,i,"Symbols cannot be represented in JSON Schema")},Eg=(e,t,r,i)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Tg=(e,t,r,i)=>{Me(e,t,r,i,"Undefined cannot be represented in JSON Schema")},Dg=(e,t,r,i)=>{Me(e,t,r,i,"Void cannot be represented in JSON Schema")},Ag=(e,t,r,i)=>{r.not={}},Ng=(e,t,r,i)=>{},zg=(e,t,r,i)=>{},Pg=(e,t,r,i)=>{Me(e,t,r,i,"Date cannot be represented in JSON Schema")},Og=(e,t,r,i)=>{let n=e._zod.def,o=Ti(n.entries);if(o.length===0){r.not={};return}o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),r.enum=o},Cg=(e,t,r,i)=>{let n=e._zod.def;if(n.values.length===0){r.not={};return}let o=[];for(let a of n.values)if(a===void 0){if(Me(e,t,r,i,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof a=="bigint"){if(Me(e,t,r,i,"BigInt literals cannot be represented in JSON Schema"))return;o.push(Number(a))}else o.push(a);if(o.length!==0)if(o.length===1){let a=o[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),o.every(a=>typeof a=="boolean")&&(r.type="boolean"),o.every(a=>a===null)&&(r.type="null"),r.enum=o},Rg=(e,t,r,i)=>{Me(e,t,r,i,"NaN cannot be represented in JSON Schema")},jg=(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},Ug=(e,t,r,i)=>{let n=r;n.type="string",n.format="binary",n.contentEncoding="binary";let{minimum:o,maximum:a,mime:s}=Le(e);o!==void 0&&(n.minLength=o),a!==void 0&&(n.maxLength=a),s&&(s.length===0?n.not={}:s.length===1?n.contentMediaType=s[0]:n.anyOf=s.map(u=>({contentMediaType:u})))},Mg=(e,t,r,i)=>{r.type="boolean"},Lg=(e,t,r,i)=>{Me(e,t,r,i,"Custom types cannot be represented in JSON Schema")},Zg=(e,t,r,i)=>{Me(e,t,r,i,"Function types cannot be represented in JSON Schema")},Fg=(e,t,r,i)=>{Me(e,t,r,i,"Transforms cannot be represented in JSON Schema")},qg=(e,t,r,i)=>{Me(e,t,r,i,"Map cannot be represented in JSON Schema")},Vg=(e,t,r,i)=>{Me(e,t,r,i,"Set cannot be represented in JSON Schema")},Bg=(e,t,r,i)=>{let n=r,o=e._zod.def,{minimum:a,maximum:s}=Le(e);typeof a=="number"&&(n.minItems=a),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=ye(o.element,t,{...i,path:[...i.path,"items"]})};function As(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?As(t.out):t.type==="catch"?As(t.innerType):e._zod.optin}var Hg=(e,t,r,i)=>{let n=r,o=e._zod.def,a=o.shape;if(Object.getOwnPropertySymbols(a).length&&Me(e,t,n,i,"Symbol keys cannot be represented in JSON Schema"))return;n.type="object",n.properties={};for(let c in a)Ge(n.properties,c,ye(a[c],t,{...i,path:[...i.path,"properties",c]}));let u=[];for(let c of Object.keys(a)){let l=o.shape[c];(t.io==="input"?As(l)===void 0:l._zod.optout===void 0)&&u.push(c)}u.length>0&&(n.required=u),o.catchall?._zod.def.type==="never"?n.additionalProperties=!1:o.catchall?o.catchall&&(n.additionalProperties=ye(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},jd=(e,t,r,i)=>{let n=e._zod.def,o=n.inclusive===!1,a=n.options.map((s,u)=>ye(s,t,{...i,path:[...i.path,o?"oneOf":"anyOf",u]}));o?r.oneOf=a:r.anyOf=a},Gg=(e,t,r,i)=>{let n=e._zod.def,o=ye(n.left,t,{...i,path:[...i.path,"allOf",0]}),a=ye(n.right,t,{...i,path:[...i.path,"allOf",1]}),s=c=>"allOf"in c&&Object.keys(c).length===1,u=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];r.allOf=u,t.intersections.push(u)},Jg=(e,t,r,i)=>{let n=r,o=e._zod.def;n.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",u=o.items.map((f,g)=>ye(f,t,{...i,path:[...i.path,a,g]})),c=o.rest?ye(o.rest,t,{...i,path:[...i.path,s,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null,l=o.items.length;for(;l>0;){let f=o.items[l-1];if(!(t.io==="input"?As(f)!==void 0:f._zod.optout==="optional"))break;l--}let d=o.items.length,m=!o.rest;t.target==="draft-2020-12"?(n.prefixItems=u,m?n.items=!1:c&&(n.items=c),l>0&&(n.minItems=l),m&&(n.maxItems=d)):t.target==="openapi-3.0"?(n.items={anyOf:u},c&&n.items.anyOf.push(c),l>0&&(n.minItems=l),m&&(n.maxItems=d)):(n.items=u,m?n.additionalItems=!1:c&&(n.additionalItems=c),l>0&&(n.minItems=l),m&&(n.maxItems=d));let{minimum:p,maximum:h}=Le(e);typeof p=="number"&&(n.minItems=p),typeof h=="number"&&(n.maxItems=h)};function bg(e,t,r){if(t.$ref){if(r.has(t))return t;r.add(t);let h=e.get(t)?.def;if(!h)return t;let f=bg(e,h,r);return f===h?t:f}for(let h of["anyOf","oneOf"]){let f=t[h];if(!Array.isArray(f))continue;let g=f.map(b=>bg(e,b,r));g.some((b,v)=>b!==f[v])&&(t={...t,[h]:g})}let i=Array.isArray(t.type)?t.type:[t.type],n=!i.includes("string")&&i.some(h=>h==="number"||h==="integer"),o=t.enum??(t.const!==void 0?[t.const]:void 0);if(!n&&!o?.some(h=>typeof h=="number"))return t;let{minimum:a,maximum:s,exclusiveMinimum:u,exclusiveMaximum:c,multipleOf:l,format:d,id:m,...p}=t;return p.enum?p.enum=p.enum.map(h=>typeof h=="number"?String(h):h):typeof p.const=="number"&&(p.const=String(p.const)),n&&(p.type="string",o||(p.pattern=(i.includes("number")?Cr:Za).source)),p}var $g=new WeakMap;function $O(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 $g.get(e)??[]){let n=e.seen.get(i),o=(n?.def??n?.schema)?.propertyNames;if(!o||o===!0||r.has(o))continue;let a=bg(t,o,new Set);a!==o&&r.set(o,a)}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 Xg=(e,t,r,i)=>{let n=r,o=e._zod.def;n.type="object";let a=o.keyType,s=Le(a).patterns;if(o.mode==="loose"&&s&&s.size>0){let l=ye(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});n.patternProperties={};for(let d of s)Ge(n.patternProperties,yx(d).source,l)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){n.propertyNames=ye(o.keyType,t,{...i,path:[...i.path,"propertyNames"]});let l=$g.get(t);l||(l=[],$g.set(t,l),t.deferred.push(()=>$O(t))),l.push(e)}n.additionalProperties=ye(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]})}let u=a._zod.values,c=t.io==="input"&&As(o.valueType)!==void 0;if(u&&!o.partial&&!c){let l=[...u].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(n.required=l.map(String))}},Kg=(e,t,r,i)=>{let n=e._zod.def,o=ye(n.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},Wg=(e,t,r,i)=>{let n=e._zod.def;ye(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},Yg=Symbol();function _x(e,t,r,i,n){let o=!1,a=JSON.stringify(e,(s,u)=>typeof u!="bigint"?u:(o=!0,null));return o?(Me(t,r,i,n,"BigInt defaults cannot be represented in JSON Schema"),Yg):JSON.parse(a)}var Qg=(e,t,r,i)=>{let n=e._zod.def;ye(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType;let a=_x(n.defaultValue,e,t,r,i);a!==Yg&&(r.default=a)},ev=(e,t,r,i)=>{let n=e._zod.def;ye(n.innerType,t,i);let o=t.seen.get(e);if(o.ref=n.innerType,t.io!=="input")return;let a=_x(n.defaultValue,e,t,r,i);a!==Yg&&(r._prefault=a)},tv=(e,t,r,i)=>{let n=e._zod.def;ye(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{Me(e,t,r,i,"Dynamic catch values are not supported in JSON Schema");return}r.default=a},rv=(e,t,r,i)=>{let n=e._zod.def,o=n.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?o?n.out:n.in:n.out;ye(a,t,i);let s=t.seen.get(e);s.ref=a},nv=(e,t,r,i)=>{let n=e._zod.def;ye(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType,r.readOnly=!0},iv=(e,t,r,i)=>{let n=e._zod.def;ye(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},Ud=(e,t,r,i)=>{let n=e._zod.def;ye(n.innerType,t,i);let o=t.seen.get(e);o.ref=n.innerType},ov=(e,t,r,i)=>{let n=e._zod.innerType;ye(n,t,i);let o=t.seen.get(e);o.ref=n},Rd={string:wg,number:xg,boolean:Sg,bigint:kg,symbol:Ig,null:Eg,undefined:Tg,void:Dg,never:Ag,any:Ng,unknown:zg,date:Pg,enum:Og,literal:Cg,nan:Rg,template_literal:jg,file:Ug,success:Mg,custom:Lg,function:Zg,transform:Fg,map:qg,set:Vg,array:Bg,object:Hg,union:jd,intersection:Gg,tuple:Jg,record:Xg,nullable:Kg,nonoptional:Wg,default:Qg,prefault:ev,catch:tv,pipe:rv,readonly:nv,promise:iv,optional:Ud,lazy:ov};function Bn(e,t){if("_idmap"in e){let i=e,n=an({...t,processors:Rd}),o={};for(let u of i._idmap.entries()){let[c,l]=u;ye(l,n)}let a={},s={registry:i,uri:t?.uri,defs:o};n.external=s;for(let u of i._idmap.entries()){let[c,l]=u;sn(n,l),Ge(a,c,un(n,l))}if(Object.keys(o).length>0){let u=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[u]:o}}return{schemas:a}}let r=an({...t,processors:Rd});return ye(e,r),sn(r,e),un(r,e)}var Md=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=an({processors:Rd,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 ye(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,sn(this.ctx,t);let i=un(this.ctx,t),{"~standard":n,...o}=i;return o}};var bx={};var SO=_("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");X.init(e,t),e.def=t,e.type=t.type},{get with(){return this.check},set with(e){hr(this,"with",e)},parse(e,t){return Cn(this,e,t,{callee:this.parse})},parseAsync(e,t){return Rn(this,e,t,{callee:this.parseAsync})},safeParse(e,t){return Ui(this,e,t)},safeParseAsync(e,t){return Li(this,e,t)},check(...e){let t=this.def;return this.clone({...t,checks:[...t.checks??[],...e.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]},{parent:!0})},clone(e,t){return me(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},apply(e,...t){return t.length===0?e(this):e(this,...t)}});var kO=_("ZodMiniObject",(e,t)=>{vl.init(e,t),SO.init(e,t),Nm(e,"shape",r=>r._zod.def.shape,!1)});function av(e,t){let r={type:"object",shape:e??{},...A(t)};return new kO(r)}var $x=Symbol("z.visit/resolving");function Ns(e,t){let r=typeof t=="function"?t:(a,s)=>{let u=t[a._zod.def.type];return u?u(a,s):a},i=new Map;function n(a){let s=i.get(a);if(s===$x)return new Ji({type:"lazy",getter:()=>i.get(a)});if(s!==void 0)return s;i.set(a,$x);let u=o(a),c=r(u,u!==a);return i.set(a,c),c}function o(a){let s=a._zod.def,u=s.type;switch(u){case"object":{let c=s.shape,l=Object.keys(c),d=!1,m={};for(let h of l){let f=n(c[h]);f!==c[h]&&(d=!0),m[h]=f}let p=s.catchall;return s.catchall&&(p=n(s.catchall),p!==s.catchall&&(d=!0)),d?me(a,{...s,shape:m,catchall:p}):a}case"array":{let c=n(s.element);return c===s.element?a:me(a,{...s,element:c})}case"tuple":{let c=s.items,l=!1,d=[];for(let p of c){let h=n(p);h!==p&&(l=!0),d.push(h)}let m=s.rest;return s.rest&&(m=n(s.rest),m!==s.rest&&(l=!0)),l?me(a,{...s,items:d,rest:m}):a}case"record":case"map":{let c=n(s.keyType),l=n(s.valueType);return c===s.keyType&&l===s.valueType?a:me(a,{...s,keyType:c,valueType:l})}case"set":{let c=n(s.valueType);return c===s.valueType?a:me(a,{...s,valueType:c})}case"union":{let c=s.options,l=!1,d=[];for(let m of c){let p=n(m);p!==m&&(l=!0),d.push(p)}return l?me(a,{...s,options:d}):a}case"intersection":{let c=n(s.left),l=n(s.right);return c===s.left&&l===s.right?a:me(a,{...s,left:c,right:l})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{let c=n(s.innerType);return c===s.innerType?a:me(a,{...s,innerType:c})}case"pipe":{let c=n(s.in),l=n(s.out);return c===s.in&&l===s.out?a:me(a,{...s,in:c,out:l})}case"function":{let c=n(s.input),l=n(s.output);return c===s.input&&l===s.output?a:me(a,{...s,input:c,output:l})}case"lazy":{let c=s.getter,{_cachedInner:l,...d}=s;return me(a,{...d,getter:()=>n(c())})}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 a;default:return a}}return n(e)}function _r(e){return!!e._zod}function Hn(e){let t=Object.values(e);if(t.length===0)return av({});let r=t.every(_r),i=t.every(n=>!_r(n));if(r)return av(e);if(i)return U$(e);throw new Error("Mixed Zod versions detected in object shape.")}function cn(e,t){return _r(e)?Ui(e,t):e.safeParse(t)}async function Ld(e,t){return _r(e)?await Li(e,t):await e.safeParseAsync(t)}function ln(e){if(!e)return;let t;if(_r(e)?t=e._zod?.def?.shape:t=e.shape,!!t){if(typeof t=="function")try{return t()}catch{return}return t}}function vo(e){if(e){if(typeof e=="object"){let t=e,r=e;if(!t._def&&!r._zod){let i=Object.values(e);if(i.length>0&&i.every(n=>typeof n=="object"&&n!==null&&(n._def!==void 0||n._zod!==void 0||typeof n.parse=="function")))return Hn(e)}}if(_r(e)){let r=e._zod?.def;if(r&&(r.type==="object"||r.shape!==void 0))return e}else if(e.shape!==void 0)return e}}function EO(e){return e.length===0?"object root":e.reduce((t,r,i)=>i===0?String(r):typeof r=="number"?`${t}[${r}]`:`${t}.${r}`,"")}function Zd(e){if(e&&typeof e=="object"){if("issues"in e&&Array.isArray(e.issues)&&e.issues.length>0)return e.issues.map(t=>t.path?.length?`${t.message} at ${EO(t.path)}`:t.message).join(`
78
+ `);if("message"in e&&typeof e.message=="string")return e.message;try{return JSON.stringify(e)}catch{return String(e)}}return String(e)}function wx(e){return e.description}function xx(e){if(_r(e))return e._zod?.def?.type==="optional";let t=e;return typeof e.isOptional=="function"?e.isOptional():t._def?.typeName==="ZodOptional"}function yo(e){if(_r(e)){let o=e._zod?.def;if(o){if(o.value!==void 0)return o.value;if(Array.isArray(o.values)&&o.values.length>0)return o.values[0]}}let r=e._def;if(r){if(r.value!==void 0)return r.value;if(Array.isArray(r.values)&&r.values.length>0)return r.values[0]}let i=e.value;if(i!==void 0)return i}var q={};Tr(q,{$brand:()=>Cm,$input:()=>ig,$output:()=>ng,INVALID:()=>ft,NEVER:()=>Om,TimePrecision:()=>fg,ZodAny:()=>kv,ZodArray:()=>Dv,ZodBase64:()=>sf,ZodBase64URL:()=>uf,ZodBigInt:()=>So,ZodBigIntFormat:()=>df,ZodBoolean:()=>xo,ZodCIDRv4:()=>of,ZodCIDRv6:()=>af,ZodCUID:()=>Wd,ZodCUID2:()=>Yd,ZodCatch:()=>Jv,ZodCodec:()=>Ls,ZodCompileAsyncError:()=>tr,ZodCompileUnsupportedError:()=>oe,ZodCreditCard:()=>bv,ZodCustom:()=>Zs,ZodCustomStringFormat:()=>Jn,ZodDate:()=>Cs,ZodDefault:()=>Fv,ZodDiscriminatedUnion:()=>Nv,ZodE164:()=>cf,ZodEmail:()=>Gd,ZodEmoji:()=>Xd,ZodEnum:()=>bo,ZodError:()=>TO,ZodExactOptional:()=>mf,ZodFile:()=>Uv,ZodFirstPartyTypeKind:()=>uy,ZodFunction:()=>iy,ZodGUID:()=>Jd,ZodIBAN:()=>$v,ZodIPv4:()=>rf,ZodIPv6:()=>nf,ZodISODate:()=>fn,ZodISODateTime:()=>dn,ZodISODuration:()=>mn,ZodISOTime:()=>pn,ZodInstanceOf:()=>sy,ZodIntersection:()=>zv,ZodIssueCode:()=>NO,ZodJWT:()=>lf,ZodKSUID:()=>tf,ZodLazy:()=>ty,ZodLiteral:()=>jv,ZodMAC:()=>_v,ZodMap:()=>Cv,ZodNaN:()=>Kv,ZodNanoID:()=>Kd,ZodNever:()=>Ev,ZodNonOptional:()=>hf,ZodNull:()=>Sv,ZodNullable:()=>Zv,ZodNumber:()=>wo,ZodNumberFormat:()=>Xn,ZodObject:()=>Rs,ZodOptional:()=>Kn,ZodPipe:()=>Ms,ZodPrefault:()=>Vv,ZodPreprocess:()=>Wv,ZodPromise:()=>ny,ZodReadonly:()=>Yv,ZodRealError:()=>xt,ZodRecord:()=>_o,ZodSet:()=>Rv,ZodString:()=>$o,ZodStringFormat:()=>xe,ZodSuccess:()=>Gv,ZodSymbol:()=>wv,ZodTemplateLiteral:()=>ey,ZodTransform:()=>Mv,ZodTuple:()=>Pv,ZodType:()=>Y,ZodULID:()=>Qd,ZodURL:()=>Ps,ZodUUID:()=>br,ZodUndefined:()=>xv,ZodUnion:()=>js,ZodUnknown:()=>Iv,ZodVoid:()=>Tv,ZodXID:()=>ef,ZodXor:()=>Av,_ZodString:()=>Hd,_default:()=>qv,_function:()=>NS,any:()=>fS,array:()=>ne,base64:()=>Hx,base64url:()=>Gx,bigint:()=>sS,boolean:()=>Re,catch:()=>Xv,check:()=>zS,cidrv4:()=>Vx,cidrv6:()=>Bx,clone:()=>me,codec:()=>ES,coerce:()=>ly,compile:()=>ug,config:()=>Oe,core:()=>nr,creditCard:()=>Xx,cuid:()=>Rx,cuid2:()=>jx,currencyCode:()=>tS,custom:()=>gf,date:()=>mS,decode:()=>fv,decodeAsync:()=>mv,deepPartial:()=>qS,describe:()=>PS,discriminatedUnion:()=>Us,e164:()=>Jx,email:()=>Ix,emoji:()=>Ox,encode:()=>dv,encodeAsync:()=>pv,endsWith:()=>oo,enum:()=>Ke,exactOptional:()=>Lv,file:()=>xS,flattenError:()=>Ua,float32:()=>nS,float64:()=>iS,formatError:()=>Ma,fromJSONSchema:()=>FS,function:()=>NS,getDiscriminatedOption:()=>Qh,getErrorMap:()=>PO,globalRegistry:()=>Je,gt:()=>vr,gte:()=>Ut,guid:()=>Ex,hash:()=>rS,hex:()=>eS,hostname:()=>Qx,httpUrl:()=>Px,iban:()=>Kx,includes:()=>no,input:()=>BS,instanceof:()=>CS,int:()=>Vd,int32:()=>oS,int64:()=>uS,intersection:()=>ko,invertCodec:()=>TS,ipv4:()=>Zx,ipv6:()=>qx,iso:()=>Wn,json:()=>jS,jwt:()=>Wx,keyof:()=>hS,ksuid:()=>Lx,lazy:()=>ry,length:()=>Vn,literal:()=>L,locales:()=>Wi,looseObject:()=>Xe,looseRecord:()=>_S,lowercase:()=>to,lt:()=>gr,lte:()=>jt,mac:()=>Fx,map:()=>bS,maxLength:()=>qn,maxSize:()=>nn,memoizer:()=>rs,meta:()=>OS,mime:()=>so,minLength:()=>Rr,minSize:()=>yr,multipleOf:()=>rn,nan:()=>IS,nanoid:()=>Cx,nativeEnum:()=>wS,negative:()=>kd,never:()=>ff,nonnegative:()=>Ed,nonoptional:()=>Hv,nonpositive:()=>Id,normalize:()=>uo,null:()=>Os,nullable:()=>zs,nullish:()=>SS,number:()=>he,object:()=>C,optional:()=>we,output:()=>HS,overwrite:()=>rr,parse:()=>sv,parseAsync:()=>uv,partialRecord:()=>yS,pipe:()=>Bd,positive:()=>Sd,prefault:()=>Bv,preprocess:()=>Fs,prettifyError:()=>Lm,promise:()=>AS,properties:()=>ao,property:()=>Td,readonly:()=>Qv,record:()=>Se,refine:()=>oy,regex:()=>eo,regexes:()=>Rt,registry:()=>Wl,safeDecode:()=>gv,safeDecodeAsync:()=>yv,safeEncode:()=>hv,safeEncodeAsync:()=>vv,safeParse:()=>cv,safeParseAsync:()=>lv,set:()=>$S,setErrorMap:()=>zO,size:()=>Fn,slugify:()=>po,startsWith:()=>io,strictObject:()=>gS,string:()=>w,stringFormat:()=>Yx,stringbool:()=>RS,success:()=>kS,superRefine:()=>ay,symbol:()=>lS,templateLiteral:()=>DS,toJSONSchema:()=>Bn,toLowerCase:()=>lo,toUpperCase:()=>fo,toZod:()=>Da,transform:()=>pf,treeifyError:()=>Mm,trim:()=>co,tuple:()=>Ov,uint32:()=>aS,uint64:()=>cS,ulid:()=>Ux,undefined:()=>dS,union:()=>_e,unknown:()=>Ie,uppercase:()=>ro,url:()=>zx,util:()=>x,uuid:()=>Tx,uuidv4:()=>Dx,uuidv6:()=>Ax,uuidv7:()=>Nx,validate:()=>Zi,validateAsync:()=>Fi,void:()=>pS,withParser:()=>Yl,xid:()=>Mx,xor:()=>vS});var Io={};Tr(Io,{ZodAny:()=>kv,ZodArray:()=>Dv,ZodBase64:()=>sf,ZodBase64URL:()=>uf,ZodBigInt:()=>So,ZodBigIntFormat:()=>df,ZodBoolean:()=>xo,ZodCIDRv4:()=>of,ZodCIDRv6:()=>af,ZodCUID:()=>Wd,ZodCUID2:()=>Yd,ZodCatch:()=>Jv,ZodCodec:()=>Ls,ZodCreditCard:()=>bv,ZodCustom:()=>Zs,ZodCustomStringFormat:()=>Jn,ZodDate:()=>Cs,ZodDefault:()=>Fv,ZodDiscriminatedUnion:()=>Nv,ZodE164:()=>cf,ZodEmail:()=>Gd,ZodEmoji:()=>Xd,ZodEnum:()=>bo,ZodExactOptional:()=>mf,ZodFile:()=>Uv,ZodFunction:()=>iy,ZodGUID:()=>Jd,ZodIBAN:()=>$v,ZodIPv4:()=>rf,ZodIPv6:()=>nf,ZodISODate:()=>fn,ZodISODateTime:()=>dn,ZodISODuration:()=>mn,ZodISOTime:()=>pn,ZodInstanceOf:()=>sy,ZodIntersection:()=>zv,ZodJWT:()=>lf,ZodKSUID:()=>tf,ZodLazy:()=>ty,ZodLiteral:()=>jv,ZodMAC:()=>_v,ZodMap:()=>Cv,ZodNaN:()=>Kv,ZodNanoID:()=>Kd,ZodNever:()=>Ev,ZodNonOptional:()=>hf,ZodNull:()=>Sv,ZodNullable:()=>Zv,ZodNumber:()=>wo,ZodNumberFormat:()=>Xn,ZodObject:()=>Rs,ZodOptional:()=>Kn,ZodPipe:()=>Ms,ZodPrefault:()=>Vv,ZodPreprocess:()=>Wv,ZodPromise:()=>ny,ZodReadonly:()=>Yv,ZodRecord:()=>_o,ZodSet:()=>Rv,ZodString:()=>$o,ZodStringFormat:()=>xe,ZodSuccess:()=>Gv,ZodSymbol:()=>wv,ZodTemplateLiteral:()=>ey,ZodTransform:()=>Mv,ZodTuple:()=>Pv,ZodType:()=>Y,ZodULID:()=>Qd,ZodURL:()=>Ps,ZodUUID:()=>br,ZodUndefined:()=>xv,ZodUnion:()=>js,ZodUnknown:()=>Iv,ZodVoid:()=>Tv,ZodXID:()=>ef,ZodXor:()=>Av,_ZodString:()=>Hd,_default:()=>qv,_function:()=>NS,any:()=>fS,array:()=>ne,base64:()=>Hx,base64url:()=>Gx,bigint:()=>sS,boolean:()=>Re,catch:()=>Xv,check:()=>zS,cidrv4:()=>Vx,cidrv6:()=>Bx,codec:()=>ES,creditCard:()=>Xx,cuid:()=>Rx,cuid2:()=>jx,currencyCode:()=>tS,custom:()=>gf,date:()=>mS,describe:()=>PS,discriminatedUnion:()=>Us,e164:()=>Jx,email:()=>Ix,emoji:()=>Ox,enum:()=>Ke,exactOptional:()=>Lv,file:()=>xS,float32:()=>nS,float64:()=>iS,function:()=>NS,guid:()=>Ex,hash:()=>rS,hex:()=>eS,hostname:()=>Qx,httpUrl:()=>Px,iban:()=>Kx,instanceof:()=>CS,int:()=>Vd,int32:()=>oS,int64:()=>uS,intersection:()=>ko,invertCodec:()=>TS,ipv4:()=>Zx,ipv6:()=>qx,json:()=>jS,jwt:()=>Wx,keyof:()=>hS,ksuid:()=>Lx,lazy:()=>ry,literal:()=>L,looseObject:()=>Xe,looseRecord:()=>_S,mac:()=>Fx,map:()=>bS,meta:()=>OS,nan:()=>IS,nanoid:()=>Cx,nativeEnum:()=>wS,never:()=>ff,nonoptional:()=>Hv,null:()=>Os,nullable:()=>zs,nullish:()=>SS,number:()=>he,object:()=>C,optional:()=>we,partialRecord:()=>yS,pipe:()=>Bd,prefault:()=>Bv,preprocess:()=>Fs,promise:()=>AS,readonly:()=>Qv,record:()=>Se,refine:()=>oy,set:()=>$S,strictObject:()=>gS,string:()=>w,stringFormat:()=>Yx,stringbool:()=>RS,success:()=>kS,superRefine:()=>ay,symbol:()=>lS,templateLiteral:()=>DS,transform:()=>pf,tuple:()=>Ov,uint32:()=>aS,uint64:()=>cS,ulid:()=>Ux,undefined:()=>dS,union:()=>_e,unknown:()=>Ie,url:()=>zx,uuid:()=>Tx,uuidv4:()=>Dx,uuidv6:()=>Ax,uuidv7:()=>Nx,void:()=>pS,xid:()=>Mx,xor:()=>vS});var Fd={};Tr(Fd,{endsWith:()=>oo,gt:()=>vr,gte:()=>Ut,includes:()=>no,length:()=>Vn,lowercase:()=>to,lt:()=>gr,lte:()=>jt,maxLength:()=>qn,maxSize:()=>nn,mime:()=>so,minLength:()=>Rr,minSize:()=>yr,multipleOf:()=>rn,negative:()=>kd,nonnegative:()=>Ed,nonpositive:()=>Id,normalize:()=>uo,overwrite:()=>rr,positive:()=>Sd,properties:()=>ao,property:()=>Td,regex:()=>eo,size:()=>Fn,slugify:()=>po,startsWith:()=>io,toLowerCase:()=>lo,toUpperCase:()=>fo,trim:()=>co,uppercase:()=>ro});var Sx=new WeakSet([Object.prototype,Error.prototype]);function qd(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 kx=(e,t)=>{Um.init(e,t),e.name="ZodError";let r=Object.getPrototypeOf(e);Sx.has(r)||(Sx.add(r),qd(r,"format",i=>n=>Ma(i,n)),qd(r,"flatten",i=>n=>Ua(i,n)),qd(r,"addIssue",i=>n=>{i.issues.push(n),i.message=JSON.stringify(i.issues,Di,2)}),qd(r,"addIssues",i=>n=>{i.issues.push(...n),i.message=JSON.stringify(i.issues,Di,2)}),Object.defineProperty(r,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},TO=_("ZodError",kx),xt=_("ZodError",kx,void 0,{Parent:Error});var sv=Ci(xt),uv=Ri(xt),cv=ji(xt),lv=Mi(xt),dv=cc(xt),fv=lc(xt),pv=dc(xt),mv=fc(xt),hv=pc(xt),gv=mc(xt),vv=hc(xt),yv=gc(xt);function AO(){qe.localeError||Oe(Gl())}function Gn(){qe.memoizer||Oe({memoizer:rs()})}var Y=_("ZodType",(e,t)=>(AO(),X.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(x.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 me(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(oy(e,t))},superRefine(e,t){return this.check(ay(e,t))},overwrite(e){return this.check(rr(e))},optional(){return we(this)},exactOptional(){return Lv(this)},nullable(){return zs(this)},nullish(){return we(zs(this))},nonoptional(e){return Hv(this,e)},array(){return ne(this)},or(e){return _e([this,e])},and(e){return ko(this,e)},transform(e){return Bd(this,pf(e))},default(e){return qv(this,e)},prefault(e){return Bv(this,e)},catch(e){return Xv(this,e)},pipe(e){return Bd(this,e)},readonly(){return Qv(this)},describe(e){let t=this.clone();return Je.add(t,{description:e}),t},meta(...e){if(e.length===0)return Je.get(this);let t=this.clone();return Je.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 x.hide(this,"~standard",{...Ec(this),jsonSchema:{input:mo(this,"input"),output:mo(this,"output")}})},set"~standard"(e){x.own(this,"~standard",e)},parse:function e(t,r){return sv(this,t,r,{callee:e})},parseAsync:async function e(t,r){return await uv(this,t,r,{callee:e})},safeParse(e,t){return cv(this,e,t)},async safeParseAsync(e,t){return lv(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){x.own(this,"spa",e)},validate(e,t){return Zi(this,e,t)},validateAsync(e,t){return Fi(this,e,t)},encode:function e(t,r){return dv(this,t,r,{callee:e})},decode:function e(t,r){return fv(this,t,r,{callee:e})},encodeAsync:async function e(t,r){return await pv(this,t,r,{callee:e})},decodeAsync:async function e(t,r){return await mv(this,t,r,{callee:e})},safeEncode(e,t){return hv(this,e,t)},safeDecode(e,t){return gv(this,e,t)},async safeEncodeAsync(e,t){return vv(this,e,t)},async safeDecodeAsync(e,t){return yv(this,e,t)},toJSONSchema(e){return _g(this,{})(e)},get description(){return Je.get(this)?.description},get _def(){return this._zod.def}}),Hd=_("_ZodString",(e,t)=>{en.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>wg(e,r,i,n)},x.derived({format:e=>Le(e).format??null,minLength:e=>Le(e).minimum??null,maxLength:e=>Le(e).maximum??null},{regex(...e){return this.check(eo(...e))},includes(...e){return this.check(no(...e))},startsWith(...e){return this.check(io(...e))},endsWith(...e){return this.check(oo(...e))},min(...e){return this.check(Rr(...e))},max(...e){return this.check(qn(...e))},length(...e){return this.check(Vn(...e))},nonempty(...e){return this.check(Rr(1,...e))},lowercase(e){return this.check(to(e))},uppercase(e){return this.check(ro(e))},trim(){return this.check(co())},normalize(...e){return this.check(uo(...e))},toLowerCase(){return this.check(lo())},toUpperCase(){return this.check(fo())},slugify(){return this.check(po())}})),$o=_("ZodString",(e,t)=>{en.init(e,t),Hd.init(e,t)},{email(e){return this.check(is(Gd,e))},url(e){return this.check(Qi(Ps,e))},jwt(e){return this.check(Ss(lf,e))},emoji(e){return this.check(ls(Xd,e))},guid(e){return this.check(os(Jd,e))},uuid(e){return this.check(as(br,e))},uuidv4(e){return this.check(ss(br,e))},uuidv6(e){return this.check(us(br,e))},uuidv7(e){return this.check(cs(br,e))},nanoid(e){return this.check(ds(Kd,e))},cuid(e){return this.check(fs(Wd,e))},cuid2(e){return this.check(ps(Yd,e))},ulid(e){return this.check(ms(Qd,e))},base64(e){return this.check($s(sf,e))},base64url(e){return this.check(ws(uf,e))},xid(e){return this.check(hs(ef,e))},ksuid(e){return this.check(gs(tf,e))},ipv4(e){return this.check(vs(rf,e))},ipv6(e){return this.check(ys(nf,e))},cidrv4(e){return this.check(_s(of,e))},cidrv6(e){return this.check(bs(af,e))},e164(e){return this.check(xs(cf,e))},datetime(e){return this.check(ks(dn,e))},date(e){return this.check(Is(fn,e))},time(e){return this.check(Es(pn,e))},duration(e){return this.check(Ts(mn,e))}});function w(e){return td($o,e)}var xe=_("ZodStringFormat",(e,t)=>{ve.init(e,t),Hd.init(e,t)}),dn=_("ZodISODateTime",(e,t)=>{Gh.init(e,t),xe.init(e,t)}),fn=_("ZodISODate",(e,t)=>{Jh.init(e,t),xe.init(e,t)}),pn=_("ZodISOTime",(e,t)=>{Xh.init(e,t),xe.init(e,t)}),mn=_("ZodISODuration",(e,t)=>{Kh.init(e,t),xe.init(e,t)}),Gd=_("ZodEmail",(e,t)=>{Ac.init(e,t),xe.init(e,t)});function Ix(e){return is(Gd,e)}var Jd=_("ZodGUID",(e,t)=>{Tc.init(e,t),xe.init(e,t)});function Ex(e){return os(Jd,e)}var br=_("ZodUUID",(e,t)=>{Dc.init(e,t),xe.init(e,t)});function Tx(e){return as(br,e)}function Dx(e){return ss(br,e)}function Ax(e){return us(br,e)}function Nx(e){return cs(br,e)}var Ps=_("ZodURL",(e,t)=>{Oc.init(e,t),xe.init(e,t)});function zx(e){return Qi(Ps,e)}function Px(e){return Qi(Ps,{protocol:La,hostname:sh,...x.normalizeParams(e)})}var Xd=_("ZodEmoji",(e,t)=>{Cc.init(e,t),xe.init(e,t)});function Ox(e){return ls(Xd,e)}var Kd=_("ZodNanoID",(e,t)=>{Rc.init(e,t),xe.init(e,t)});function Cx(e){return ds(Kd,e)}var Wd=_("ZodCUID",(e,t)=>{jc.init(e,t),xe.init(e,t)});function Rx(e){return fs(Wd,e)}var Yd=_("ZodCUID2",(e,t)=>{Uc.init(e,t),xe.init(e,t)});function jx(e){return ps(Yd,e)}var Qd=_("ZodULID",(e,t)=>{Mc.init(e,t),xe.init(e,t)});function Ux(e){return ms(Qd,e)}var ef=_("ZodXID",(e,t)=>{Lc.init(e,t),xe.init(e,t)});function Mx(e){return hs(ef,e)}var tf=_("ZodKSUID",(e,t)=>{Zc.init(e,t),xe.init(e,t)});function Lx(e){return gs(tf,e)}var rf=_("ZodIPv4",(e,t)=>{Fc.init(e,t),xe.init(e,t)});function Zx(e){return vs(rf,e)}var _v=_("ZodMAC",(e,t)=>{Vc.init(e,t),xe.init(e,t)});function Fx(e){return rd(_v,e)}var nf=_("ZodIPv6",(e,t)=>{qc.init(e,t),xe.init(e,t)});function qx(e){return ys(nf,e)}var of=_("ZodCIDRv4",(e,t)=>{Bc.init(e,t),xe.init(e,t)});function Vx(e){return _s(of,e)}var af=_("ZodCIDRv6",(e,t)=>{Gc.init(e,t),xe.init(e,t)});function Bx(e){return bs(af,e)}var sf=_("ZodBase64",(e,t)=>{Xc.init(e,t),xe.init(e,t)});function Hx(e){return $s(sf,e)}var uf=_("ZodBase64URL",(e,t)=>{Wc.init(e,t),xe.init(e,t)});function Gx(e){return ws(uf,e)}var cf=_("ZodE164",(e,t)=>{Yc.init(e,t),xe.init(e,t)});function Jx(e){return xs(cf,e)}var bv=_("ZodCreditCard",(e,t)=>{el.init(e,t),xe.init(e,t)});function Xx(e){return nd(bv,e)}var $v=_("ZodIBAN",(e,t)=>{rl.init(e,t),xe.init(e,t)});function Kx(e){return id($v,e)}var lf=_("ZodJWT",(e,t)=>{il.init(e,t),xe.init(e,t)});function Wx(e){return Ss(lf,e)}var Jn=_("ZodCustomStringFormat",(e,t)=>{ol.init(e,t),xe.init(e,t)});function Yx(e,t,r={}){return on(Jn,e,t,r)}function Qx(e){return on(Jn,"hostname",ah,e)}function eS(e){return on(Jn,"hex",$h,e)}function tS(e){return on(Jn,"currency_code",ch,e)}function rS(e,t){let r=t?.enc??"hex",i=`${e}_${r}`,n=Rt[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return on(Jn,i,n,t)}var wo=_("ZodNumber",(e,t)=>{Xa.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>xg(e,r,i,n),e.isFinite=!0},x.derived({minValue:e=>{let{minimum:t,exclusiveMinimum:r}=Le(e);return Math.max(t??Number.NEGATIVE_INFINITY,r??Number.NEGATIVE_INFINITY)},maxValue:e=>{let{maximum:t,exclusiveMaximum:r}=Le(e);return Math.min(t??Number.POSITIVE_INFINITY,r??Number.POSITIVE_INFINITY)},isInt:e=>{let{isInt:t,multipleOf:r}=Le(e);return!!t||!!r?.some(Number.isSafeInteger)},format:e=>Le(e).format??null},{gt(e,t){return this.check(vr(e,t))},gte(e,t){return this.check(Ut(e,t))},min(e,t){return this.check(Ut(e,t))},lt(e,t){return this.check(gr(e,t))},lte(e,t){return this.check(jt(e,t))},max(e,t){return this.check(jt(e,t))},int(e){return this.check(Vd(e))},safe(e){return this.check(Vd(e))},positive(e){return this.check(vr(0,e))},nonnegative(e){return this.check(Ut(0,e))},negative(e){return this.check(gr(0,e))},nonpositive(e){return this.check(jt(0,e))},multipleOf(e,t){return this.check(rn(e,t))},step(e,t){return this.check(rn(e,t))},finite(){return this}}));function he(e){return od(wo,e)}var Xn=_("ZodNumberFormat",(e,t)=>{al.init(e,t),wo.init(e,t)});function Vd(e){return ad(Xn,e)}function nS(e){return sd(Xn,e)}function iS(e){return ud(Xn,e)}function oS(e){return cd(Xn,e)}function aS(e){return ld(Xn,e)}var xo=_("ZodBoolean",(e,t)=>{Bi.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Sg(e,r,i,n)});function Re(e){return dd(xo,e)}var So=_("ZodBigInt",(e,t)=>{Ka.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>kg(e,r,i,n)},x.derived({minValue:e=>Le(e).minimum??null,maxValue:e=>Le(e).maximum??null,format:e=>Le(e).format??null},{gte(e,t){return this.check(Ut(e,t))},min(e,t){return this.check(Ut(e,t))},gt(e,t){return this.check(vr(e,t))},lt(e,t){return this.check(gr(e,t))},lte(e,t){return this.check(jt(e,t))},max(e,t){return this.check(jt(e,t))},positive(e){return this.check(vr(BigInt(0),e))},negative(e){return this.check(gr(BigInt(0),e))},nonpositive(e){return this.check(jt(BigInt(0),e))},nonnegative(e){return this.check(Ut(BigInt(0),e))},multipleOf(e,t){return this.check(rn(e,t))}}));function sS(e){return fd(So,e)}var df=_("ZodBigIntFormat",(e,t)=>{sl.init(e,t),So.init(e,t)});function uS(e){return pd(df,e)}function cS(e){return md(df,e)}var wv=_("ZodSymbol",(e,t)=>{ul.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ig(e,r,i,n)});function lS(e){return hd(wv,e)}var xv=_("ZodUndefined",(e,t)=>{cl.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Tg(e,r,i,n)});function dS(e){return gd(xv,e)}var Sv=_("ZodNull",(e,t)=>{ll.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Eg(e,r,i,n)});function Os(e){return vd(Sv,e)}var kv=_("ZodAny",(e,t)=>{dl.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ng(e,r,i,n)});function fS(){return yd(kv)}var Iv=_("ZodUnknown",(e,t)=>{fl.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>zg(e,r,i,n)});function Ie(){return _d(Iv)}var Ev=_("ZodNever",(e,t)=>{pl.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ag(e,r,i,n)});function ff(e){return bd(Ev,e)}var Tv=_("ZodVoid",(e,t)=>{ml.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Dg(e,r,i,n)});function pS(e){return $d(Tv,e)}var Cs=_("ZodDate",(e,t)=>{hl.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Pg(e,r,i,n),e.min=(r,i)=>e.check(Ut(r,i)),e.max=(r,i)=>e.check(jt(r,i))},x.derived({minDate:e=>{let{minimum:t}=Le(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=Le(e);return t?new Date(t):null}},{}));function mS(e){return wd(Cs,e)}var Dv=_("ZodArray",(e,t)=>{Gn(),gl.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Bg(e,r,i,n),e.element=t.element},{min(e,t){return this.check(Rr(e,t))},nonempty(e){return this.check(Rr(1,e))},max(e,t){return this.check(qn(e,t))},length(e,t){return this.check(Vn(e,t))},unwrap(){return this.element}});function ne(e,t){return vg(Dv,e,t)}function hS(e){let t=e._zod.def.shape;return Ke(Object.keys(t))}var Rs=_("ZodObject",(e,t)=>{Gn(),Yh.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Hg(e,r,i,n),x.installLazyProp(e,"shape",r=>r._zod.def.shape,!1)},{keyof(){return Ke(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(x.mergeDefs(this._zod.def,{catchall:e}))},passthrough(){return this.clone(x.mergeDefs(this._zod.def,{catchall:Ie()}))},loose(){return this.clone(x.mergeDefs(this._zod.def,{catchall:Ie()}))},strict(){return this.clone(x.mergeDefs(this._zod.def,{catchall:ff()}))},strip(){return this.clone(x.mergeDefs(this._zod.def,{catchall:void 0}))},extend(e){return x.extend(this,e)},safeExtend(e){return x.safeExtend(this,e)},merge(e){return x.merge(this,e)},pick(e){return x.pick(this,e)},omit(e){return x.omit(this,e)},partial(...e){return x.partial(Kn,this,e[0])},exactPartial(...e){return x.partial(mf,this,e[0],"exactPartial")},required(...e){return x.required(hf,this,e[0])}});function C(e,t){let r={type:"object",shape:e??{},...x.normalizeParams(t)};return new Rs(r)}function gS(e,t){return new Rs({type:"object",shape:e,catchall:ff(),...x.normalizeParams(t)})}function Xe(e,t){return new Rs({type:"object",shape:e,catchall:Ie(),...x.normalizeParams(t)})}var js=_("ZodUnion",(e,t)=>{Hi.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>jd(e,r,i,n),e.options=t.options});function _e(e,t){return new js({type:"union",options:e,...x.normalizeParams(t)})}var Av=_("ZodXor",(e,t)=>{js.init(e,t),yl.init(e,t),e._zod.processJSONSchema=(r,i,n)=>jd(e,r,i,n),e.options=t.options});function vS(e,t){return new Av({type:"union",options:e,inclusive:!1,...x.normalizeParams(t)})}var Nv=_("ZodDiscriminatedUnion",(e,t)=>{js.init(e,t),_l.init(e,t)});function Us(e,t,r){return new Nv({type:"union",options:t,discriminator:e,...x.normalizeParams(r)})}var zv=_("ZodIntersection",(e,t)=>{bl.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Gg(e,r,i,n)});function ko(e,t){return new zv({type:"intersection",left:e,right:t})}var Pv=_("ZodTuple",(e,t)=>{Gn(),Wa.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Jg(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 Kn({type:"optional",innerType:t}))})}});function Ov(e,t,r){let i=t instanceof X,n=i?r:t,o=i?t:null;return new Pv({type:"tuple",items:e,rest:o,...x.normalizeParams(n)})}var _o=_("ZodRecord",(e,t)=>{Gn(),$l.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Xg(e,r,i,n),e.keyType=t.keyType,e.valueType=t.valueType});function Se(e,t,r){return!t||!t._zod?new _o({type:"record",keyType:w(),valueType:e,...x.normalizeParams(t)}):new _o({type:"record",keyType:e,valueType:t,...x.normalizeParams(r)})}function yS(e,t,r){return new _o({type:"record",keyType:e,valueType:t,...x.normalizeParams(r),partial:!0})}function _S(e,t,r){return new _o({type:"record",keyType:e,valueType:t,mode:"loose",...x.normalizeParams(r)})}var Cv=_("ZodMap",(e,t)=>{Gn(),wl.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>qg(e,r,i,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(yr(...r)),e.nonempty=r=>e.check(yr(1,r)),e.max=(...r)=>e.check(nn(...r)),e.size=(...r)=>e.check(Fn(...r))});function bS(e,t,r){return new Cv({type:"map",keyType:e,valueType:t,...x.normalizeParams(r)})}var Rv=_("ZodSet",(e,t)=>{Gn(),xl.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Vg(e,r,i,n),e.min=(...r)=>e.check(yr(...r)),e.nonempty=r=>e.check(yr(1,r)),e.max=(...r)=>e.check(nn(...r)),e.size=(...r)=>e.check(Fn(...r))});function $S(e,t){return new Rv({type:"set",valueType:e,...x.normalizeParams(t)})}var bo=_("ZodEnum",(e,t)=>{Sl.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,n,o)=>Og(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 a of i)if(r.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new bo({...t,checks:[],...x.normalizeParams(n),entries:o})},e.exclude=(i,n)=>{let o={...t.entries};for(let a of i)if(r.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new bo({...t,checks:[],...x.normalizeParams(n),entries:o})}});function Ke(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new bo({type:"enum",entries:r,...x.normalizeParams(t)})}function wS(e,t){return new bo({type:"enum",entries:e,...x.normalizeParams(t)})}var jv=_("ZodLiteral",(e,t)=>{kl.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Cg(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 L(e,t){return new jv({type:"literal",values:Array.isArray(e)?e:[e],...x.normalizeParams(t)})}var Uv=_("ZodFile",(e,t)=>{Il.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ug(e,r,i,n),e.min=(r,i)=>e.check(yr(r,i)),e.max=(r,i)=>e.check(nn(r,i)),e.mime=(r,i)=>e.check(so(Array.isArray(r)?r:[r],i))});function xS(e){return Dd(Uv,e)}var Mv=_("ZodTransform",(e,t)=>{Gn(),El.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Fg(e,r,i,n),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Qr(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(x.issue(o,r.value,t));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),"input"in a||(a.input=r.value),a.inst??(a.inst=e),r.issues.push(x.issue(a))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(o=>(r.value=o,r)):(r.value=n,r)}});function pf(e){return new Mv({type:"transform",transform:e})}var Kn=_("ZodOptional",(e,t)=>{Ya.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ud(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function we(e){return new Kn({type:"optional",innerType:e})}var mf=_("ZodExactOptional",(e,t)=>{Tl.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ud(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Lv(e){return new mf({type:"optional",innerType:e})}var Zv=_("ZodNullable",(e,t)=>{Dl.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Kg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function zs(e){return new Zv({type:"nullable",innerType:e})}function SS(e){return we(zs(e))}var Fv=_("ZodDefault",(e,t)=>{Al.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Qg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function qv(e,t){return new Fv({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():x.shallowClone(t)}})}var Vv=_("ZodPrefault",(e,t)=>{Nl.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ev(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Bv(e,t){return new Vv({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():x.shallowClone(t)}})}var hf=_("ZodNonOptional",(e,t)=>{zl.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Wg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Hv(e,t){return new hf({type:"nonoptional",innerType:e,...x.normalizeParams(t)})}var Gv=_("ZodSuccess",(e,t)=>{Pl.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Mg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function kS(e){return new Gv({type:"success",innerType:e})}var Jv=_("ZodCatch",(e,t)=>{Ol.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>tv(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Xv(e,t){return new Jv({type:"catch",innerType:e,catchValue:typeof t=="function"?t:x.constantCatch(t)})}var Kv=_("ZodNaN",(e,t)=>{Cl.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Rg(e,r,i,n)});function IS(e){return xd(Kv,e)}var Ms=_("ZodPipe",(e,t)=>{Qa.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>rv(e,r,i,n),e.in=t.in,e.out=t.out});function Bd(e,t){return new Ms({type:"pipe",in:e,out:t})}var Ls=_("ZodCodec",(e,t)=>{Ms.init(e,t),Gi.init(e,t)});function ES(e,t,r){return new Ls({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function TS(e){let t=e._zod.def;return new Ls({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var Wv=_("ZodPreprocess",(e,t)=>{Ms.init(e,t),eg.init(e,t)}),Yv=_("ZodReadonly",(e,t)=>{Rl.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>nv(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Qv(e){return new Yv({type:"readonly",innerType:e})}var ey=_("ZodTemplateLiteral",(e,t)=>{jl.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>jg(e,r,i,n)});function DS(e,t){return new ey({type:"template_literal",parts:e,...x.normalizeParams(t)})}var ty=_("ZodLazy",(e,t)=>{Ji.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ov(e,r,i,n),e.unwrap=()=>e._zod.def.getter()});function ry(e){return new ty({type:"lazy",getter:e})}var ny=_("ZodPromise",(e,t)=>{Ml.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>iv(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function AS(e){return new ny({type:"promise",innerType:e})}var iy=_("ZodFunction",(e,t)=>{Ul.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Zg(e,r,i,n)});function NS(e){return new iy({type:"function",input:Array.isArray(e?.input)?Ov(e?.input):e?.input??ne(Ie()),output:e?.output??Ie()})}var Zs=_("ZodCustom",(e,t)=>{Ll.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Lg(e,r,i,n)});function zS(e){let t=new $e({check:"custom"});return t._zod.check=e,t}function gf(e,t){return Ad(Zs,e??(()=>!0),t)}function oy(e,t={}){return Nd(Zs,e,t)}function ay(e,t){return zd(e,t)}var PS=Pd,OS=Od,sy=_("ZodInstanceOf",(e,t)=>{Zs.init(e,t)},{properties(e,t){return this.check(ao(e,t))}});function CS(e,t={}){let r=new sy({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...x.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 RS=(...e)=>Cd({Codec:Ls,Boolean:xo,String:$o},...e);function jS(e){let t=ry(()=>_e([w(e),he(),Re(),Os(),ne(t),Se(w(),t)]));return t}function Fs(e,t){return new Wv({type:"pipe",in:pf(e),out:t})}var NO={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 zO(e){Oe({customError:e})}function PO(){return Oe().customError}var uy;uy||(uy={});var Wn={};Tr(Wn,{ZodISODate:()=>fn,ZodISODateTime:()=>dn,ZodISODuration:()=>mn,ZodISOTime:()=>pn,date:()=>CO,datetime:()=>OO,duration:()=>jO,time:()=>RO});function OO(e){return ks(dn,e)}function CO(e){return Is(fn,e)}function RO(e){return Es(pn,e)}function jO(e){return Ts(mn,e)}var O={...Io,...Fd,iso:Wn},UO=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 MO(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 US(e,t){return e.map((r,i)=>i<t?r:r.optional())}function LO(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function ZO(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:LO(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 FO(e,t){return O.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 a of o){let s=t.keySchema.safeParse(a);s.success||i.issues.push({code:"invalid_key",origin:"record",issues:s.error.issues,input:a,path:[a],continue:!0})}}).pipe(e)}function cy(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 a of e){let s=cy(a,t);if(s===null)return null;o.push(s)}return`a${o.length}:[${o.join(",")}]`}let i=Object.keys(e).sort(),n=[];for(let o of i){let a=cy(e[o],t);if(a===null)return null;n.push(`${o.length}:${o}=${a}`)}return`o${n.length}:{${n.join(",")}}`}finally{t.delete(e)}}var qO=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),VO=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);function qs(e){return typeof e!="object"||e===null?!1:Array.isArray(e)?e.some(qs):typeof e.$ref=="string"?!0:Object.entries(e).some(([t,r])=>qO.has(t)?qs(r):!VO.has(t)||typeof r!="object"||r===null?!1:Object.values(r).some(qs))}function MS(e){return e===1?"element":"elements"}function BO(e,t){return O.transform(i=>i).check(i=>{let n=i.value;if(Array.isArray(n)){if(t.uniqueItems===!0){let o=new Map;for(let a=0;a<n.length;a++){let s=cy(n[a],new Set);if(s===null)continue;let u=o.get(s);if(u===void 0){o.set(s,a);continue}i.issues.push({code:"custom",message:`Array items must be unique: element at index ${a} duplicates the one at index ${u}`,input:n,path:[a],continue:!0})}}if(t.containsSchema){let o=t.minContains??1,a=t.maxContains!==void 0?t.maxContains+1:Number.POSITIVE_INFINITY,s=0;for(let u of n)if(t.containsSchema.safeParse(u).success&&++s>=a)break;s<o&&i.issues.push({code:"custom",message:`Array must contain at least ${o} matching ${MS(o)}; found ${s}`,input:n,continue:!0}),t.maxContains!==void 0&&s>t.maxContains&&i.issues.push({code:"custom",message:`Array must contain at most ${t.maxContains} matching ${MS(t.maxContains)}`,input:n,continue:!0})}}}).pipe(e)}function LS(e,t){if(e!==!1)return e===void 0||e===!0?O.any():mt(e,t)}var HO=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/;function ZS(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return O.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 O.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=ZO(n,t),a=mt(o,t);return t.refs.set(n,a),t.processing.delete(n),a}if(e.enum!==void 0){let n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return O.null();if(n.length===0)return O.never();if(n.length===1)return O.literal(n[0]);if(n.every(a=>typeof a=="string"))return O.enum(n);let o=n.map(a=>O.literal(a));return o.length<2?o[0]:O.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return O.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(o=>{let a={...e,type:o};return ZS(a,t)});return n.length===0?O.never():n.length===1?n[0]:O.union(n)}if(!r)return O.any();let i;switch(r){case"string":{let n=O.string();if(e.format){let o=e.format;o==="email"?n=n.check(O.email()):o==="uri"||o==="uri-reference"?n=n.check(O.url()):o==="uuid"||o==="guid"?n=n.check(O.uuid()):o==="date-time"?n=n.check(O.iso.datetime({offset:!0})):o==="date"?n=n.check(O.iso.date()):o==="time"?n=n.check(O.regex(HO)):o==="duration"?n=n.check(O.iso.duration()):o==="hostname"?n=n.check(O.hostname()):o==="ipv4"?n=n.check(O.ipv4()):o==="ipv6"?n=n.check(O.ipv6()):o==="mac"?n=n.check(O.mac()):o==="cidr"?n=n.check(O.cidrv4()):o==="cidr-v6"?n=n.check(O.cidrv6()):o==="base64"?n=n.check(O.base64()):o==="base64url"?n=n.check(O.base64url()):o==="e164"?n=n.check(O.e164()):o==="credit_card"?n=n.check(O.creditCard()):o==="iban"?n=n.check(O.iban()):o==="jwt"?n=n.check(O.jwt()):o==="emoji"?n=n.check(O.emoji()):o==="nanoid"?n=n.check(O.nanoid()):o==="cuid"?n=n.check(O.cuid()):o==="cuid2"?n=n.check(O.cuid2()):o==="ulid"?n=n.check(O.ulid()):o==="xid"?n=n.check(O.xid()):o==="ksuid"&&(n=n.check(O.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"?O.number().int():O.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=O.boolean();break}case"null":{i=O.null();break}case"object":{let n={},o=e.properties||{},a=new Set(e.required||[]),s=typeof e.additionalProperties=="object"?mt(e.additionalProperties,t):void 0;for(let[d,m]of Object.entries(o)){let p=mt(m,t);Ge(n,d,a.has(d)?p:p.optional())}if(e.patternProperties){let d=e.patternProperties,m=Object.keys(d),p=[];for(let f of m){let g=mt(d[f],t),b=O.string().regex(new RegExp(f));p.push(O.looseRecord(b,g))}let h=[];if(Object.keys(n).length>0&&h.push(O.object(n).passthrough()),h.push(...p),h.length===0)i=O.object({}).passthrough();else if(h.length===1)i=h[0];else{let f=O.intersection(h[0],h[1]);for(let g=2;g<h.length;g++)f=O.intersection(f,h[g]);i=f}if(e.additionalProperties===!1){let f=Object.keys(n),g=m.map(v=>new RegExp(v)),b=i;i=i.check(v=>{if(!Vt(v.value))return;let y=[];for(let I of Object.keys(v.value))f.includes(I)||g.some(T=>T.test(I))||y.push(I);y.length&&v.issues.push({code:"unrecognized_keys",keys:y,input:v.value,inst:b})})}}else{let d=O.object(n);e.additionalProperties===!1?i=d.strict():s?i=d.catchall(s):i=d.passthrough()}let u=e.propertyNames!==void 0&&e.propertyNames!==!0,c=typeof e.minProperties=="number"?e.minProperties:void 0,l=typeof e.maxProperties=="number"?e.maxProperties:void 0;if(u||c!==void 0||l!==void 0){let d;if(u){let m=typeof e.propertyNames=="object"&&e.propertyNames.type===void 0?{type:"string",...e.propertyNames}:e.propertyNames;d=mt(m,t)}i=FO(i,{keySchema:d,minProperties:c,maxProperties:l})}break}case"array":{let n=e.prefixItems,o=e.items;if(n&&Array.isArray(n)){let a=typeof e.minItems=="number"?e.minItems:0,s=n.map(d=>mt(d,t)),u=US(s,a),c=Array.isArray(o)?void 0:LS(o,t),l=O.tuple(u);i=c?l.rest(c):l,typeof e.minItems=="number"&&(i=i.check(O.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(O.maxLength(e.maxItems)))}else if(Array.isArray(o)){let a=typeof e.minItems=="number"?e.minItems:0,s=o.map(d=>mt(d,t)),u=US(s,a),c=LS(e.additionalItems,t),l=O.tuple(u);i=c?l.rest(c):l,typeof e.minItems=="number"&&(i=i.check(O.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(O.maxLength(e.maxItems)))}else if(o!==void 0){let a=mt(o,t),s=O.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),i=s}else i=O.array(O.any());(e.uniqueItems===!0||e.contains!==void 0)&&(i=BO(i,{uniqueItems:e.uniqueItems===!0,containsSchema:e.contains!==void 0?mt(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 mt(e,t){if(typeof e=="boolean")return e?O.any():O.never();let r=ZS(e,t),i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(c=>mt(c,t)),u=O.union(s);r=i?O.intersection(r,u):u}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(c=>mt(c,t)),u=O.xor(s);r=i?O.intersection(r,u):u}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=i?r:O.any();else{let s=i?r:mt(e.allOf[0],t),u=i?0:1;for(let c=u;c<e.allOf.length;c++)s=O.intersection(s,mt(e.allOf[c],t));r=s}e.nullable===!0&&t.version==="openapi-3.0"&&(r=O.nullable(r)),e.readOnly===!0&&(r=O.readonly(r)),e.default!==void 0&&(r=r.default(e.default));let n={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of o)s in e&&(n[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(n[s]=e[s]);if(e.type==="object"&&e.$ref===void 0){e.propertyNames!==void 0&&!qs(e.propertyNames)&&(n.propertyNames=e.propertyNames);for(let s of["minProperties","maxProperties"])e[s]!==void 0&&(n[s]=e[s])}if(e.type==="array"&&e.$ref===void 0){e.contains!==void 0&&!qs(e.contains)&&(n.contains=e.contains);for(let s of["uniqueItems","minContains","maxContains"])e[s]!==void 0&&(n[s]=e[s])}for(let s of Object.keys(e))UO.has(s)||Ge(n,s,e[s]);return Object.keys(n).length>0&&t.registry.add(r,n),e.description&&(r=r.describe(e.description)),r}function FS(e,t){if(typeof e=="boolean")return e?O.any():O.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=MO(r,t?.defaultTarget),n=r.$defs||r.definitions||{},o={version:i,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:t?.registry??Je};return mt(r,o)}function qS(e){return Ns(e,{object:t=>t.partial(),union:t=>{let r=t._zod.def;return r.discriminator===void 0?t:_e(r.options)}})}function GO(e,t){if(!t?.length)return e;let r=e._zod.def;return me(e,qt(r,{checks:[...r.checks??[],...t]}),{parent:!0})}function VS(e){return GO(e.out,e.checks)}function JO(e){return e.in._zod.traits.has("$ZodTransform")?VS(e):e.in}function BS(e){return Ns(e,{pipe:t=>JO(t._zod.def),default:(t,r)=>r?we(t._zod.def.innerType):t,catch:(t,r)=>r?t._zod.def.innerType:t})}function HS(e){return Ns(e,{pipe:t=>VS(t._zod.def),prefault:(t,r)=>r?t._zod.def.innerType:t})}var ly={};Tr(ly,{bigint:()=>YO,boolean:()=>WO,date:()=>QO,number:()=>KO,string:()=>XO});function XO(e){return dg($o,e)}function KO(e){return pg(wo,e)}function WO(e){return mg(xo,e)}function YO(e){return hg(So,e)}function QO(e){return gg(Cs,e)}var fy="2025-11-25";var GS=[fy,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],hn="io.modelcontextprotocol/related-task",yf="2.0",Ze=gf(e=>e!==null&&(typeof e=="object"||typeof e=="function")),JS=_e([w(),he().int()]),XS=w(),g8=Xe({ttl:he().optional(),pollInterval:he().optional()}),eC=C({ttl:he().optional()}),tC=C({taskId:w()}),py=Xe({progressToken:JS.optional(),[hn]:tC.optional()}),Mt=C({_meta:py.optional()}),Vs=Mt.extend({task:eC.optional()}),KS=e=>Vs.safeParse(e).success,We=C({method:w(),params:Mt.loose().optional()}),Ht=C({_meta:py.optional()}),Gt=C({method:w(),params:Ht.loose().optional()}),Ye=Xe({_meta:py.optional()}),_f=_e([w(),he().int()]),WS=C({jsonrpc:L(yf),id:_f,...We.shape}).strict(),my=e=>WS.safeParse(e).success,YS=C({jsonrpc:L(yf),...Gt.shape}).strict(),QS=e=>YS.safeParse(e).success,hy=C({jsonrpc:L(yf),id:_f,result:Ye}).strict(),Bs=e=>hy.safeParse(e).success;var Z;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(Z||(Z={}));var gy=C({jsonrpc:L(yf),id:_f.optional(),error:C({code:he().int(),message:w(),data:Ie().optional()})}).strict();var ek=e=>gy.safeParse(e).success;var tk=_e([WS,YS,hy,gy]),v8=_e([hy,gy]),bf=Ye.strict(),rC=Ht.extend({requestId:_f.optional(),reason:w().optional()}),$f=Gt.extend({method:L("notifications/cancelled"),params:rC}),nC=C({src:w(),mimeType:w().optional(),sizes:ne(w()).optional(),theme:Ke(["light","dark"]).optional()}),Hs=C({icons:ne(nC).optional()}),Eo=C({name:w(),title:w().optional()}),rk=Eo.extend({...Eo.shape,...Hs.shape,version:w(),websiteUrl:w().optional(),description:w().optional()}),iC=ko(C({applyDefaults:Re().optional()}),Se(w(),Ie())),oC=Fs(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,ko(C({form:iC.optional(),url:Ze.optional()}),Se(w(),Ie()).optional())),aC=Xe({list:Ze.optional(),cancel:Ze.optional(),requests:Xe({sampling:Xe({createMessage:Ze.optional()}).optional(),elicitation:Xe({create:Ze.optional()}).optional()}).optional()}),sC=Xe({list:Ze.optional(),cancel:Ze.optional(),requests:Xe({tools:Xe({call:Ze.optional()}).optional()}).optional()}),uC=C({experimental:Se(w(),Ze).optional(),sampling:C({context:Ze.optional(),tools:Ze.optional()}).optional(),elicitation:oC.optional(),roots:C({listChanged:Re().optional()}).optional(),tasks:aC.optional(),extensions:Se(w(),Ze).optional()}),cC=Mt.extend({protocolVersion:w(),capabilities:uC,clientInfo:rk}),vy=We.extend({method:L("initialize"),params:cC});var lC=C({experimental:Se(w(),Ze).optional(),logging:Ze.optional(),completions:Ze.optional(),prompts:C({listChanged:Re().optional()}).optional(),resources:C({subscribe:Re().optional(),listChanged:Re().optional()}).optional(),tools:C({listChanged:Re().optional()}).optional(),tasks:sC.optional(),extensions:Se(w(),Ze).optional()}),dC=Ye.extend({protocolVersion:w(),capabilities:lC,serverInfo:rk,instructions:w().optional()}),yy=Gt.extend({method:L("notifications/initialized"),params:Ht.optional()});var wf=We.extend({method:L("ping"),params:Mt.optional()}),fC=C({progress:he(),total:we(he()),message:we(w())}),pC=C({...Ht.shape,...fC.shape,progressToken:JS}),xf=Gt.extend({method:L("notifications/progress"),params:pC}),mC=Mt.extend({cursor:XS.optional()}),Gs=We.extend({params:mC.optional()}),Js=Ye.extend({nextCursor:XS.optional()}),hC=Ke(["working","input_required","completed","failed","cancelled"]),Xs=C({taskId:w(),status:hC,ttl:_e([he(),Os()]),createdAt:w(),lastUpdatedAt:w(),pollInterval:we(he()),statusMessage:we(w())}),To=Ye.extend({task:Xs}),gC=Ht.merge(Xs),Ks=Gt.extend({method:L("notifications/tasks/status"),params:gC}),Sf=We.extend({method:L("tasks/get"),params:Mt.extend({taskId:w()})}),kf=Ye.merge(Xs),If=We.extend({method:L("tasks/result"),params:Mt.extend({taskId:w()})}),y8=Ye.loose(),Ef=Gs.extend({method:L("tasks/list")}),Tf=Js.extend({tasks:ne(Xs)}),Df=We.extend({method:L("tasks/cancel"),params:Mt.extend({taskId:w()})}),nk=Ye.merge(Xs),ik=C({uri:w(),mimeType:we(w()),_meta:Se(w(),Ie()).optional()}),ok=ik.extend({text:w()}),_y=w().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),ak=ik.extend({blob:_y}),Ws=Ke(["user","assistant"]),Do=C({audience:ne(Ws).optional(),priority:he().min(0).max(1).optional(),lastModified:Wn.datetime({offset:!0}).optional()}),sk=C({...Eo.shape,...Hs.shape,uri:w(),description:we(w()),mimeType:we(w()),size:we(he()),annotations:Do.optional(),_meta:we(Xe({}))}),vC=C({...Eo.shape,...Hs.shape,uriTemplate:w(),description:we(w()),mimeType:we(w()),annotations:Do.optional(),_meta:we(Xe({}))}),Af=Gs.extend({method:L("resources/list")}),yC=Js.extend({resources:ne(sk)}),Nf=Gs.extend({method:L("resources/templates/list")}),_C=Js.extend({resourceTemplates:ne(vC)}),by=Mt.extend({uri:w()}),bC=by,zf=We.extend({method:L("resources/read"),params:bC}),$C=Ye.extend({contents:ne(_e([ok,ak]))}),wC=Gt.extend({method:L("notifications/resources/list_changed"),params:Ht.optional()}),xC=by,SC=We.extend({method:L("resources/subscribe"),params:xC}),kC=by,IC=We.extend({method:L("resources/unsubscribe"),params:kC}),EC=Ht.extend({uri:w()}),TC=Gt.extend({method:L("notifications/resources/updated"),params:EC}),DC=C({name:w(),description:we(w()),required:we(Re())}),AC=C({...Eo.shape,...Hs.shape,description:we(w()),arguments:we(ne(DC)),_meta:we(Xe({}))}),Pf=Gs.extend({method:L("prompts/list")}),NC=Js.extend({prompts:ne(AC)}),zC=Mt.extend({name:w(),arguments:Se(w(),w()).optional()}),Of=We.extend({method:L("prompts/get"),params:zC}),$y=C({type:L("text"),text:w(),annotations:Do.optional(),_meta:Se(w(),Ie()).optional()}),wy=C({type:L("image"),data:_y,mimeType:w(),annotations:Do.optional(),_meta:Se(w(),Ie()).optional()}),xy=C({type:L("audio"),data:_y,mimeType:w(),annotations:Do.optional(),_meta:Se(w(),Ie()).optional()}),PC=C({type:L("tool_use"),name:w(),id:w(),input:Se(w(),Ie()),_meta:Se(w(),Ie()).optional()}),OC=C({type:L("resource"),resource:_e([ok,ak]),annotations:Do.optional(),_meta:Se(w(),Ie()).optional()}),CC=sk.extend({type:L("resource_link")}),Sy=_e([$y,wy,xy,CC,OC]),RC=C({role:Ws,content:Sy}),jC=Ye.extend({description:w().optional(),messages:ne(RC)}),UC=Gt.extend({method:L("notifications/prompts/list_changed"),params:Ht.optional()}),MC=C({title:w().optional(),readOnlyHint:Re().optional(),destructiveHint:Re().optional(),idempotentHint:Re().optional(),openWorldHint:Re().optional()}),LC=C({taskSupport:Ke(["required","optional","forbidden"]).optional()}),uk=C({...Eo.shape,...Hs.shape,description:w().optional(),inputSchema:C({type:L("object"),properties:Se(w(),Ze).optional(),required:ne(w()).optional()}).catchall(Ie()),outputSchema:C({type:L("object"),properties:Se(w(),Ze).optional(),required:ne(w()).optional()}).catchall(Ie()).optional(),annotations:MC.optional(),execution:LC.optional(),_meta:Se(w(),Ie()).optional()}),Cf=Gs.extend({method:L("tools/list")}),ZC=Js.extend({tools:ne(uk)}),Rf=Ye.extend({content:ne(Sy).default([]),structuredContent:Se(w(),Ie()).optional(),isError:Re().optional()}),_8=Rf.or(Ye.extend({toolResult:Ie()})),FC=Vs.extend({name:w(),arguments:Se(w(),Ie()).optional()}),Ao=We.extend({method:L("tools/call"),params:FC}),qC=Gt.extend({method:L("notifications/tools/list_changed"),params:Ht.optional()}),b8=C({autoRefresh:Re().default(!0),debounceMs:he().int().nonnegative().default(300)}),Ys=Ke(["debug","info","notice","warning","error","critical","alert","emergency"]),VC=Mt.extend({level:Ys}),ky=We.extend({method:L("logging/setLevel"),params:VC}),BC=Ht.extend({level:Ys,logger:w().optional(),data:Ie()}),HC=Gt.extend({method:L("notifications/message"),params:BC}),GC=C({name:w().optional()}),JC=C({hints:ne(GC).optional(),costPriority:he().min(0).max(1).optional(),speedPriority:he().min(0).max(1).optional(),intelligencePriority:he().min(0).max(1).optional()}),XC=C({mode:Ke(["auto","required","none"]).optional()}),KC=C({type:L("tool_result"),toolUseId:w().describe("The unique identifier for the corresponding tool call."),content:ne(Sy).default([]),structuredContent:C({}).loose().optional(),isError:Re().optional(),_meta:Se(w(),Ie()).optional()}),WC=Us("type",[$y,wy,xy]),vf=Us("type",[$y,wy,xy,PC,KC]),YC=C({role:Ws,content:_e([vf,ne(vf)]),_meta:Se(w(),Ie()).optional()}),QC=Vs.extend({messages:ne(YC),modelPreferences:JC.optional(),systemPrompt:w().optional(),includeContext:Ke(["none","thisServer","allServers"]).optional(),temperature:he().optional(),maxTokens:he().int(),stopSequences:ne(w()).optional(),metadata:Ze.optional(),tools:ne(uk).optional(),toolChoice:XC.optional()}),eR=We.extend({method:L("sampling/createMessage"),params:QC}),Qs=Ye.extend({model:w(),stopReason:we(Ke(["endTurn","stopSequence","maxTokens"]).or(w())),role:Ws,content:WC}),Iy=Ye.extend({model:w(),stopReason:we(Ke(["endTurn","stopSequence","maxTokens","toolUse"]).or(w())),role:Ws,content:_e([vf,ne(vf)])}),tR=C({type:L("boolean"),title:w().optional(),description:w().optional(),default:Re().optional()}),rR=C({type:L("string"),title:w().optional(),description:w().optional(),minLength:he().optional(),maxLength:he().optional(),format:Ke(["email","uri","date","date-time"]).optional(),default:w().optional()}),nR=C({type:Ke(["number","integer"]),title:w().optional(),description:w().optional(),minimum:he().optional(),maximum:he().optional(),default:he().optional()}),iR=C({type:L("string"),title:w().optional(),description:w().optional(),enum:ne(w()),default:w().optional()}),oR=C({type:L("string"),title:w().optional(),description:w().optional(),oneOf:ne(C({const:w(),title:w()})),default:w().optional()}),aR=C({type:L("string"),title:w().optional(),description:w().optional(),enum:ne(w()),enumNames:ne(w()).optional(),default:w().optional()}),sR=_e([iR,oR]),uR=C({type:L("array"),title:w().optional(),description:w().optional(),minItems:he().optional(),maxItems:he().optional(),items:C({type:L("string"),enum:ne(w())}),default:ne(w()).optional()}),cR=C({type:L("array"),title:w().optional(),description:w().optional(),minItems:he().optional(),maxItems:he().optional(),items:C({anyOf:ne(C({const:w(),title:w()}))}),default:ne(w()).optional()}),lR=_e([uR,cR]),dR=_e([aR,sR,lR]),fR=_e([dR,tR,rR,nR]),pR=Vs.extend({mode:L("form").optional(),message:w(),requestedSchema:C({type:L("object"),properties:Se(w(),fR),required:ne(w()).optional()})}),mR=Vs.extend({mode:L("url"),message:w(),elicitationId:w(),url:w().url()}),hR=_e([pR,mR]),gR=We.extend({method:L("elicitation/create"),params:hR}),vR=Ht.extend({elicitationId:w()}),yR=Gt.extend({method:L("notifications/elicitation/complete"),params:vR}),No=Ye.extend({action:Ke(["accept","decline","cancel"]),content:Fs(e=>e===null?void 0:e,Se(w(),_e([w(),he(),Re(),ne(w())])).optional())}),_R=C({type:L("ref/resource"),uri:w()});var bR=C({type:L("ref/prompt"),name:w()}),$R=Mt.extend({ref:_e([bR,_R]),argument:C({name:w(),value:w()}),context:C({arguments:Se(w(),w()).optional()}).optional()}),jf=We.extend({method:L("completion/complete"),params:$R});function ck(e){if(e.params.ref.type!=="ref/prompt")throw new TypeError(`Expected CompleteRequestPrompt, but got ${e.params.ref.type}`)}function lk(e){if(e.params.ref.type!=="ref/resource")throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${e.params.ref.type}`)}var wR=Ye.extend({completion:Xe({values:ne(w()).max(100),total:we(he().int()),hasMore:we(Re())})}),xR=C({uri:w().startsWith("file://"),name:w().optional(),_meta:Se(w(),Ie()).optional()}),SR=We.extend({method:L("roots/list"),params:Mt.optional()}),Ey=Ye.extend({roots:ne(xR)}),kR=Gt.extend({method:L("notifications/roots/list_changed"),params:Ht.optional()}),$8=_e([wf,vy,jf,ky,Of,Pf,Af,Nf,zf,SC,IC,Ao,Cf,Sf,If,Ef,Df]),w8=_e([$f,xf,yy,kR,Ks]),x8=_e([bf,Qs,Iy,No,Ey,kf,Tf,To]),S8=_e([wf,eR,gR,SR,Sf,If,Ef,Df]),k8=_e([$f,xf,HC,TC,wC,qC,UC,Ks,yR]),I8=_e([bf,dC,wR,jC,NC,yC,_C,$C,Rf,ZC,kf,Tf,To]),j=class e extends Error{constructor(t,r,i){super(`MCP error ${t}: ${r}`),this.code=t,this.data=i,this.name="McpError"}static fromError(t,r,i){if(t===Z.UrlElicitationRequired&&i){let n=i;if(n.elicitations)return new dy(n.elicitations,r)}return new e(t,r,i)}},dy=class extends j{constructor(t,r=`URL elicitation${t.length>1?"s":""} required`){super(Z.UrlElicitationRequired,r,{elicitations:t})}get elicitations(){return this.data?.elicitations??[]}};function gn(e){return e==="completed"||e==="failed"||e==="cancelled"}var fk=Symbol("Let zodToJsonSchema decide on which parser to use");var dk={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"},pk=e=>typeof e=="string"?{...dk,name:e}:{...dk,...e};var mk=e=>{let t=pk(e),r=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,flags:{hasReferencedOpenAiAnyType:!1},currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([i,n])=>[n._def,{def:n._def,path:[...t.basePath,t.definitionPath,i],jsonSchema:void 0}]))}};function Ty(e,t,r,i){i?.errorMessages&&r&&(e.errorMessage={...e.errorMessage,[t]:r})}function ce(e,t,r,i,n){e[t]=r,Ty(e,t,i,n)}var Uf=(e,t)=>{let r=0;for(;r<e.length&&r<t.length&&e[r]===t[r];r++);return[(e.length-r).toString(),...t.slice(r)].join("/")};function ze(e){if(e.target!=="openAi")return{};let t=[...e.basePath,e.definitionPath,e.openAiAnyTypeName];return e.flags.hasReferencedOpenAiAnyType=!0,{$ref:e.$refStrategy==="relative"?Uf(t,e.currentPath):t.join("/")}}function hk(e,t){let r={type:"array"};return e.type?._def&&e.type?._def?.typeName!==N.ZodAny&&(r.items=J(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&ce(r,"minItems",e.minLength.value,e.minLength.message,t),e.maxLength&&ce(r,"maxItems",e.maxLength.value,e.maxLength.message,t),e.exactLength&&(ce(r,"minItems",e.exactLength.value,e.exactLength.message,t),ce(r,"maxItems",e.exactLength.value,e.exactLength.message,t)),r}function gk(e,t){let r={type:"integer",format:"int64"};if(!e.checks)return r;for(let i of e.checks)switch(i.kind){case"min":t.target==="jsonSchema7"?i.inclusive?ce(r,"minimum",i.value,i.message,t):ce(r,"exclusiveMinimum",i.value,i.message,t):(i.inclusive||(r.exclusiveMinimum=!0),ce(r,"minimum",i.value,i.message,t));break;case"max":t.target==="jsonSchema7"?i.inclusive?ce(r,"maximum",i.value,i.message,t):ce(r,"exclusiveMaximum",i.value,i.message,t):(i.inclusive||(r.exclusiveMaximum=!0),ce(r,"maximum",i.value,i.message,t));break;case"multipleOf":ce(r,"multipleOf",i.value,i.message,t);break}return r}function vk(){return{type:"boolean"}}function Mf(e,t){return J(e.type._def,t)}var yk=(e,t)=>J(e.innerType._def,t);function Dy(e,t,r){let i=r??t.dateStrategy;if(Array.isArray(i))return{anyOf:i.map((n,o)=>Dy(e,t,n))};switch(i){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return IR(e,t)}}var IR=(e,t)=>{let r={type:"integer",format:"unix-time"};if(t.target==="openApi3")return r;for(let i of e.checks)switch(i.kind){case"min":ce(r,"minimum",i.value,i.message,t);break;case"max":ce(r,"maximum",i.value,i.message,t);break}return r};function _k(e,t){return{...J(e.innerType._def,t),default:e.defaultValue()}}function bk(e,t){return t.effectStrategy==="input"?J(e.schema._def,t):ze(t)}function $k(e){return{type:"string",enum:Array.from(e.values)}}var ER=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function wk(e,t){let r=[J(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),J(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(o=>!!o),i=t.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,n=[];return r.forEach(o=>{if(ER(o))n.push(...o.allOf),o.unevaluatedProperties===void 0&&(i=void 0);else{let a=o;if("additionalProperties"in o&&o.additionalProperties===!1){let{additionalProperties:s,...u}=o;a=u}else i=void 0;n.push(a)}}),n.length?{allOf:n,...i}:void 0}function xk(e,t){let r=typeof e.value;return r!=="bigint"&&r!=="number"&&r!=="boolean"&&r!=="string"?{type:Array.isArray(e.value)?"array":"object"}:t.target==="openApi3"?{type:r==="bigint"?"integer":r,enum:[e.value]}:{type:r==="bigint"?"integer":r,const:e.value}}var Ay,ir={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(Ay===void 0&&(Ay=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Ay),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?: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])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function Lf(e,t){let r={type:"string"};if(e.checks)for(let i of e.checks)switch(i.kind){case"min":ce(r,"minLength",typeof r.minLength=="number"?Math.max(r.minLength,i.value):i.value,i.message,t);break;case"max":ce(r,"maxLength",typeof r.maxLength=="number"?Math.min(r.maxLength,i.value):i.value,i.message,t);break;case"email":switch(t.emailStrategy){case"format:email":or(r,"email",i.message,t);break;case"format:idn-email":or(r,"idn-email",i.message,t);break;case"pattern:zod":ht(r,ir.email,i.message,t);break}break;case"url":or(r,"uri",i.message,t);break;case"uuid":or(r,"uuid",i.message,t);break;case"regex":ht(r,i.regex,i.message,t);break;case"cuid":ht(r,ir.cuid,i.message,t);break;case"cuid2":ht(r,ir.cuid2,i.message,t);break;case"startsWith":ht(r,RegExp(`^${Ny(i.value,t)}`),i.message,t);break;case"endsWith":ht(r,RegExp(`${Ny(i.value,t)}$`),i.message,t);break;case"datetime":or(r,"date-time",i.message,t);break;case"date":or(r,"date",i.message,t);break;case"time":or(r,"time",i.message,t);break;case"duration":or(r,"duration",i.message,t);break;case"length":ce(r,"minLength",typeof r.minLength=="number"?Math.max(r.minLength,i.value):i.value,i.message,t),ce(r,"maxLength",typeof r.maxLength=="number"?Math.min(r.maxLength,i.value):i.value,i.message,t);break;case"includes":{ht(r,RegExp(Ny(i.value,t)),i.message,t);break}case"ip":{i.version!=="v6"&&or(r,"ipv4",i.message,t),i.version!=="v4"&&or(r,"ipv6",i.message,t);break}case"base64url":ht(r,ir.base64url,i.message,t);break;case"jwt":ht(r,ir.jwt,i.message,t);break;case"cidr":{i.version!=="v6"&&ht(r,ir.ipv4Cidr,i.message,t),i.version!=="v4"&&ht(r,ir.ipv6Cidr,i.message,t);break}case"emoji":ht(r,ir.emoji(),i.message,t);break;case"ulid":{ht(r,ir.ulid,i.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{or(r,"binary",i.message,t);break}case"contentEncoding:base64":{ce(r,"contentEncoding","base64",i.message,t);break}case"pattern:zod":{ht(r,ir.base64,i.message,t);break}}break}case"nanoid":ht(r,ir.nanoid,i.message,t);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return r}function Ny(e,t){return t.patternStrategy==="escape"?DR(e):e}var TR=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function DR(e){let t="";for(let r=0;r<e.length;r++)TR.has(e[r])||(t+="\\"),t+=e[r];return t}function or(e,t,r,i){e.format||e.anyOf?.some(n=>n.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format,...e.errorMessage&&i.errorMessages&&{errorMessage:{format:e.errorMessage.format}}}),delete e.format,e.errorMessage&&(delete e.errorMessage.format,Object.keys(e.errorMessage).length===0&&delete e.errorMessage)),e.anyOf.push({format:t,...r&&i.errorMessages&&{errorMessage:{format:r}}})):ce(e,"format",t,r,i)}function ht(e,t,r,i){e.pattern||e.allOf?.some(n=>n.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern,...e.errorMessage&&i.errorMessages&&{errorMessage:{pattern:e.errorMessage.pattern}}}),delete e.pattern,e.errorMessage&&(delete e.errorMessage.pattern,Object.keys(e.errorMessage).length===0&&delete e.errorMessage)),e.allOf.push({pattern:Sk(t,i),...r&&i.errorMessages&&{errorMessage:{pattern:r}}})):ce(e,"pattern",Sk(t,i),r,i)}function Sk(e,t){if(!t.applyRegexFlags||!e.flags)return e.source;let r={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},i=r.i?e.source.toLowerCase():e.source,n="",o=!1,a=!1,s=!1;for(let u=0;u<i.length;u++){if(o){n+=i[u],o=!1;continue}if(r.i){if(a){if(i[u].match(/[a-z]/)){s?(n+=i[u],n+=`${i[u-2]}-${i[u]}`.toUpperCase(),s=!1):i[u+1]==="-"&&i[u+2]?.match(/[a-z]/)?(n+=i[u],s=!0):n+=`${i[u]}${i[u].toUpperCase()}`;continue}}else if(i[u].match(/[a-z]/)){n+=`[${i[u]}${i[u].toUpperCase()}]`;continue}}if(r.m){if(i[u]==="^"){n+=`(^|(?<=[\r
79
+ ]))`;continue}else if(i[u]==="$"){n+=`($|(?=[\r
80
+ ]))`;continue}}if(r.s&&i[u]==="."){n+=a?`${i[u]}\r
81
+ `:`[${i[u]}\r
82
+ ]`;continue}n+=i[u],i[u]==="\\"?o=!0:a&&i[u]==="]"?a=!1:!a&&i[u]==="["&&(a=!0)}try{new RegExp(n)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return n}function Zf(e,t){if(t.target==="openAi"&&console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."),t.target==="openApi3"&&e.keyType?._def.typeName===N.ZodEnum)return{type:"object",required:e.keyType._def.values,properties:e.keyType._def.values.reduce((i,n)=>({...i,[n]:J(e.valueType._def,{...t,currentPath:[...t.currentPath,"properties",n]})??ze(t)}),{}),additionalProperties:t.rejectedAdditionalProperties};let r={type:"object",additionalProperties:J(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]})??t.allowedAdditionalProperties};if(t.target==="openApi3")return r;if(e.keyType?._def.typeName===N.ZodString&&e.keyType._def.checks?.length){let{type:i,...n}=Lf(e.keyType._def,t);return{...r,propertyNames:n}}else{if(e.keyType?._def.typeName===N.ZodEnum)return{...r,propertyNames:{enum:e.keyType._def.values}};if(e.keyType?._def.typeName===N.ZodBranded&&e.keyType._def.type._def.typeName===N.ZodString&&e.keyType._def.type._def.checks?.length){let{type:i,...n}=Mf(e.keyType._def,t);return{...r,propertyNames:n}}}return r}function kk(e,t){if(t.mapStrategy==="record")return Zf(e,t);let r=J(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||ze(t),i=J(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||ze(t);return{type:"array",maxItems:125,items:{type:"array",items:[r,i],minItems:2,maxItems:2}}}function Ik(e){let t=e.values,i=Object.keys(e.values).filter(o=>typeof t[t[o]]!="number").map(o=>t[o]),n=Array.from(new Set(i.map(o=>typeof o)));return{type:n.length===1?n[0]==="string"?"string":"number":["string","number"],enum:i}}function Ek(e){return e.target==="openAi"?void 0:{not:ze({...e,currentPath:[...e.currentPath,"not"]})}}function Tk(e){return e.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var eu={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function Ak(e,t){if(t.target==="openApi3")return Dk(e,t);let r=e.options instanceof Map?Array.from(e.options.values()):e.options;if(r.every(i=>i._def.typeName in eu&&(!i._def.checks||!i._def.checks.length))){let i=r.reduce((n,o)=>{let a=eu[o._def.typeName];return a&&!n.includes(a)?[...n,a]:n},[]);return{type:i.length>1?i:i[0]}}else if(r.every(i=>i._def.typeName==="ZodLiteral"&&!i.description)){let i=r.reduce((n,o)=>{let a=typeof o._def.value;switch(a){case"string":case"number":case"boolean":return[...n,a];case"bigint":return[...n,"integer"];case"object":if(o._def.value===null)return[...n,"null"];default:return n}},[]);if(i.length===r.length){let n=i.filter((o,a,s)=>s.indexOf(o)===a);return{type:n.length>1?n:n[0],enum:r.reduce((o,a)=>o.includes(a._def.value)?o:[...o,a._def.value],[])}}}else if(r.every(i=>i._def.typeName==="ZodEnum"))return{type:"string",enum:r.reduce((i,n)=>[...i,...n._def.values.filter(o=>!i.includes(o))],[])};return Dk(e,t)}var Dk=(e,t)=>{let r=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((i,n)=>J(i._def,{...t,currentPath:[...t.currentPath,"anyOf",`${n}`]})).filter(i=>!!i&&(!t.strictUnions||typeof i=="object"&&Object.keys(i).length>0));return r.length?{anyOf:r}:void 0};function Nk(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return t.target==="openApi3"?{type:eu[e.innerType._def.typeName],nullable:!0}:{type:[eu[e.innerType._def.typeName],"null"]};if(t.target==="openApi3"){let i=J(e.innerType._def,{...t,currentPath:[...t.currentPath]});return i&&"$ref"in i?{allOf:[i],nullable:!0}:i&&{...i,nullable:!0}}let r=J(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return r&&{anyOf:[r,{type:"null"}]}}function zk(e,t){let r={type:"number"};if(!e.checks)return r;for(let i of e.checks)switch(i.kind){case"int":r.type="integer",Ty(r,"type",i.message,t);break;case"min":t.target==="jsonSchema7"?i.inclusive?ce(r,"minimum",i.value,i.message,t):ce(r,"exclusiveMinimum",i.value,i.message,t):(i.inclusive||(r.exclusiveMinimum=!0),ce(r,"minimum",i.value,i.message,t));break;case"max":t.target==="jsonSchema7"?i.inclusive?ce(r,"maximum",i.value,i.message,t):ce(r,"exclusiveMaximum",i.value,i.message,t):(i.inclusive||(r.exclusiveMaximum=!0),ce(r,"maximum",i.value,i.message,t));break;case"multipleOf":ce(r,"multipleOf",i.value,i.message,t);break}return r}function Pk(e,t){let r=t.target==="openAi",i={type:"object",properties:{}},n=[],o=e.shape();for(let s in o){let u=o[s];if(u===void 0||u._def===void 0)continue;let c=NR(u);c&&r&&(u._def.typeName==="ZodOptional"&&(u=u._def.innerType),u.isNullable()||(u=u.nullable()),c=!1);let l=J(u._def,{...t,currentPath:[...t.currentPath,"properties",s],propertyPath:[...t.currentPath,"properties",s]});l!==void 0&&(i.properties[s]=l,c||n.push(s))}n.length&&(i.required=n);let a=AR(e,t);return a!==void 0&&(i.additionalProperties=a),i}function AR(e,t){if(e.catchall._def.typeName!=="ZodNever")return J(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function NR(e){try{return e.isOptional()}catch{return!0}}var Ok=(e,t)=>{if(t.currentPath.toString()===t.propertyPath?.toString())return J(e.innerType._def,t);let r=J(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return r?{anyOf:[{not:ze(t)},r]}:ze(t)};var Ck=(e,t)=>{if(t.pipeStrategy==="input")return J(e.in._def,t);if(t.pipeStrategy==="output")return J(e.out._def,t);let r=J(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),i=J(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",r?"1":"0"]});return{allOf:[r,i].filter(n=>n!==void 0)}};function Rk(e,t){return J(e.type._def,t)}function jk(e,t){let i={type:"array",uniqueItems:!0,items:J(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&ce(i,"minItems",e.minSize.value,e.minSize.message,t),e.maxSize&&ce(i,"maxItems",e.maxSize.value,e.maxSize.message,t),i}function Uk(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((r,i)=>J(r._def,{...t,currentPath:[...t.currentPath,"items",`${i}`]})).reduce((r,i)=>i===void 0?r:[...r,i],[]),additionalItems:J(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((r,i)=>J(r._def,{...t,currentPath:[...t.currentPath,"items",`${i}`]})).reduce((r,i)=>i===void 0?r:[...r,i],[])}}function Mk(e){return{not:ze(e)}}function Lk(e){return ze(e)}var Zk=(e,t)=>J(e.innerType._def,t);var Fk=(e,t,r)=>{switch(t){case N.ZodString:return Lf(e,r);case N.ZodNumber:return zk(e,r);case N.ZodObject:return Pk(e,r);case N.ZodBigInt:return gk(e,r);case N.ZodBoolean:return vk();case N.ZodDate:return Dy(e,r);case N.ZodUndefined:return Mk(r);case N.ZodNull:return Tk(r);case N.ZodArray:return hk(e,r);case N.ZodUnion:case N.ZodDiscriminatedUnion:return Ak(e,r);case N.ZodIntersection:return wk(e,r);case N.ZodTuple:return Uk(e,r);case N.ZodRecord:return Zf(e,r);case N.ZodLiteral:return xk(e,r);case N.ZodEnum:return $k(e);case N.ZodNativeEnum:return Ik(e);case N.ZodNullable:return Nk(e,r);case N.ZodOptional:return Ok(e,r);case N.ZodMap:return kk(e,r);case N.ZodSet:return jk(e,r);case N.ZodLazy:return()=>e.getter()._def;case N.ZodPromise:return Rk(e,r);case N.ZodNaN:case N.ZodNever:return Ek(r);case N.ZodEffects:return bk(e,r);case N.ZodAny:return ze(r);case N.ZodUnknown:return Lk(r);case N.ZodDefault:return _k(e,r);case N.ZodBranded:return Mf(e,r);case N.ZodReadonly:return Zk(e,r);case N.ZodCatch:return yk(e,r);case N.ZodPipeline:return Ck(e,r);case N.ZodFunction:case N.ZodVoid:case N.ZodSymbol:return;default:return(i=>{})(t)}};function J(e,t,r=!1){let i=t.seen.get(e);if(t.override){let s=t.override?.(e,t,i,r);if(s!==fk)return s}if(i&&!r){let s=zR(i,t);if(s!==void 0)return s}let n={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,n);let o=Fk(e,e.typeName,t),a=typeof o=="function"?J(o(),t):o;if(a&&PR(e,t,a),t.postProcess){let s=t.postProcess(a,e,t);return n.jsonSchema=a,s}return n.jsonSchema=a,a}var zR=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:Uf(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((r,i)=>t.currentPath[i]===r)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),ze(t)):t.$refStrategy==="seen"?ze(t):void 0}},PR=(e,t,r)=>(e.description&&(r.description=e.description,t.markdownDescription&&(r.markdownDescription=e.description)),r);var zy=(e,t)=>{let r=mk(t),i=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((u,[c,l])=>({...u,[c]:J(l._def,{...r,currentPath:[...r.basePath,r.definitionPath,c]},!0)??ze(r)}),{}):void 0,n=typeof t=="string"?t:t?.nameStrategy==="title"?void 0:t?.name,o=J(e._def,n===void 0?r:{...r,currentPath:[...r.basePath,r.definitionPath,n]},!1)??ze(r),a=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;a!==void 0&&(o.title=a),r.flags.hasReferencedOpenAiAnyType&&(i||(i={}),i[r.openAiAnyTypeName]||(i[r.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:r.$refStrategy==="relative"?"1":[...r.basePath,r.definitionPath,r.openAiAnyTypeName].join("/")}}));let s=n===void 0?i?{...o,[r.definitionPath]:i}:o:{$ref:[...r.$refStrategy==="relative"?[]:r.basePath,r.definitionPath,n].join("/"),[r.definitionPath]:{...i,[n]:o}};return r.target==="jsonSchema7"?s.$schema="http://json-schema.org/draft-07/schema#":(r.target==="jsonSchema2019-09"||r.target==="openAi")&&(s.$schema="https://json-schema.org/draft/2019-09/schema#"),r.target==="openAi"&&("anyOf"in s||"oneOf"in s||"allOf"in s||"type"in s&&Array.isArray(s.type))&&console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property."),s};function OR(e){return!e||e==="jsonSchema7"||e==="draft-7"?"draft-7":e==="jsonSchema2019-09"||e==="draft-2020-12"?"draft-2020-12":"draft-7"}function Py(e,t){return _r(e)?Bn(e,{target:OR(t?.target),io:t?.pipeStrategy??"input"}):zy(e,{strictUnions:t?.strictUnions??!0,pipeStrategy:t?.pipeStrategy??"input"})}function Oy(e){let r=ln(e)?.method;if(!r)throw new Error("Schema is missing a method literal");let i=yo(r);if(typeof i!="string")throw new Error("Schema method literal must be a string");return i}function Cy(e,t){let r=cn(e,t);if(!r.success)throw r.error;return r.data}var CR=6e4,Ff=class{constructor(t){this._options=t,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler($f,r=>{this._oncancel(r)}),this.setNotificationHandler(xf,r=>{this._onprogress(r)}),this.setRequestHandler(wf,r=>({})),this._taskStore=t?.taskStore,this._taskMessageQueue=t?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Sf,async(r,i)=>{let n=await this._taskStore.getTask(r.params.taskId,i.sessionId);if(!n)throw new j(Z.InvalidParams,"Failed to retrieve task: Task not found");return{...n}}),this.setRequestHandler(If,async(r,i)=>{let n=async()=>{let o=r.params.taskId;if(!await this._taskStore.getTask(o,i.sessionId))throw new j(Z.InvalidParams,`Task not found: ${o}`);if(this._taskMessageQueue){let s;for(;s=await this._taskMessageQueue.dequeue(o,i.sessionId);){if(s.type==="response"||s.type==="error"){let u=s.message,c=u.id,l=this._requestResolvers.get(c);if(l)if(this._requestResolvers.delete(c),s.type==="response")l(u);else{let d=u,m=new j(d.error.code,d.error.message,d.error.data);l(m)}else{let d=s.type==="response"?"Response":"Error";this._onerror(new Error(`${d} handler missing for request ${c}`))}continue}await this._transport?.send(s.message,{relatedRequestId:i.requestId})}}let a=await this._taskStore.getTask(o,i.sessionId);if(!a)throw new j(Z.InvalidParams,`Task not found: ${o}`);if(!gn(a.status))return await this._waitForTaskUpdate(o,i.signal,i.sessionId),await n();if(gn(a.status)){let s=await this._taskStore.getTaskResult(o,i.sessionId);return this._clearTaskQueue(o,i.sessionId),{...s,_meta:{...s._meta,[hn]:{taskId:o}}}}return await n()};return await n()}),this.setRequestHandler(Ef,async(r,i)=>{try{let{tasks:n,nextCursor:o}=await this._taskStore.listTasks(r.params?.cursor,i.sessionId);return{tasks:n,nextCursor:o,_meta:{}}}catch(n){throw new j(Z.InvalidParams,`Failed to list tasks: ${n instanceof Error?n.message:String(n)}`)}}),this.setRequestHandler(Df,async(r,i)=>{try{let n=await this._taskStore.getTask(r.params.taskId,i.sessionId);if(!n)throw new j(Z.InvalidParams,`Task not found: ${r.params.taskId}`);if(gn(n.status))throw new j(Z.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(r.params.taskId,"cancelled","Client cancelled task execution.",i.sessionId),this._clearTaskQueue(r.params.taskId,i.sessionId);let o=await this._taskStore.getTask(r.params.taskId,i.sessionId);if(!o)throw new j(Z.InvalidParams,`Task not found after cancellation: ${r.params.taskId}`);return{_meta:{},...o}}catch(n){throw n instanceof j?n:new j(Z.InvalidRequest,`Failed to cancel task: ${n instanceof Error?n.message:String(n)}`)}}))}async _oncancel(t){if(!t.params.requestId)return;this._requestHandlerAbortControllers.get(t.params.requestId)?.abort(t.params.reason)}_setupTimeout(t,r,i,n,o=!1){this._timeoutInfo.set(t,{timeoutId:setTimeout(n,r),startTime:Date.now(),timeout:r,maxTotalTimeout:i,resetTimeoutOnProgress:o,onTimeout:n})}_resetTimeout(t){let r=this._timeoutInfo.get(t);if(!r)return!1;let i=Date.now()-r.startTime;if(r.maxTotalTimeout&&i>=r.maxTotalTimeout)throw this._timeoutInfo.delete(t),j.fromError(Z.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:i});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(t){let r=this._timeoutInfo.get(t);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(t))}async connect(t){if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=t;let r=this.transport?.onclose;this._transport.onclose=()=>{r?.(),this._onclose()};let i=this.transport?.onerror;this._transport.onerror=o=>{i?.(o),this._onerror(o)};let n=this._transport?.onmessage;this._transport.onmessage=(o,a)=>{n?.(o,a),Bs(o)||ek(o)?this._onresponse(o):my(o)?this._onrequest(o,a):QS(o)?this._onnotification(o):this._onerror(new Error(`Unknown message type: ${JSON.stringify(o)}`))},await this._transport.start()}_onclose(){let t=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let i of this._timeoutInfo.values())clearTimeout(i.timeoutId);this._timeoutInfo.clear();for(let i of this._requestHandlerAbortControllers.values())i.abort();this._requestHandlerAbortControllers.clear();let r=j.fromError(Z.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let i of t.values())i(r)}_onerror(t){this.onerror?.(t)}_onnotification(t){let r=this._notificationHandlers.get(t.method)??this.fallbackNotificationHandler;r!==void 0&&Promise.resolve().then(()=>r(t)).catch(i=>this._onerror(new Error(`Uncaught error in notification handler: ${i}`)))}_onrequest(t,r){let i=this._requestHandlers.get(t.method)??this.fallbackRequestHandler,n=this._transport,o=t.params?._meta?.[hn]?.taskId,a=n?.sessionId,s=this._taskStore,u=!0,c;if(o&&s&&this._taskMessageQueue&&a!==void 0&&(u=!1,c=(async()=>{if(!await s.getTask(o,a))throw new j(Z.InvalidParams,`Task not found: ${o}`);u=!0})()),i===void 0){let h={jsonrpc:"2.0",id:t.id,error:{code:Z.MethodNotFound,message:"Method not found"}};if(o&&c){let f={type:"error",message:h,timestamp:Date.now()};c.then(()=>this._enqueueTaskMessage(o,f,a),()=>n?.send(h)).catch(g=>this._onerror(new Error(`Failed to send an error response: ${g}`)))}else o&&this._taskMessageQueue?this._enqueueTaskMessage(o,{type:"error",message:h,timestamp:Date.now()},n?.sessionId).catch(f=>this._onerror(new Error(`Failed to enqueue error response: ${f}`))):n?.send(h).catch(f=>this._onerror(new Error(`Failed to send an error response: ${f}`)));return}let l=new AbortController;this._requestHandlerAbortControllers.set(t.id,l);let d=KS(t.params)?t.params.task:void 0,m=this._taskStore?this.requestTaskStore(t,n?.sessionId):void 0,p={signal:l.signal,sessionId:n?.sessionId,_meta:t.params?._meta,sendNotification:async h=>{if(l.signal.aborted)return;let f={relatedRequestId:t.id};o&&(f.relatedTask={taskId:o}),await this.notification(h,f)},sendRequest:async(h,f,g)=>{if(l.signal.aborted)throw new j(Z.ConnectionClosed,"Request was cancelled");let b={...g,relatedRequestId:t.id};o&&!b.relatedTask&&(b.relatedTask={taskId:o});let v=b.relatedTask?.taskId??o;return v&&m&&await m.updateTaskStatus(v,"input_required"),await this.request(h,f,b)},authInfo:r?.authInfo,requestId:t.id,requestInfo:r?.requestInfo,taskId:o,taskStore:m,taskRequestedTtl:d?.ttl,closeSSEStream:r?.closeSSEStream,closeStandaloneSSEStream:r?.closeStandaloneSSEStream};(c??Promise.resolve()).then(()=>{if(c&&l.signal.aborted)throw new j(Z.ConnectionClosed,"Request was cancelled");d&&this.assertTaskHandlerCapability(t.method)}).then(()=>i(t,p)).then(async h=>{if(l.signal.aborted)return;let f={result:h,jsonrpc:"2.0",id:t.id};o&&this._taskMessageQueue?await this._enqueueTaskMessage(o,{type:"response",message:f,timestamp:Date.now()},n?.sessionId):await n?.send(f)},async h=>{if(l.signal.aborted)return;let f={jsonrpc:"2.0",id:t.id,error:{code:Number.isSafeInteger(h.code)?h.code:Z.InternalError,message:h.message??"Internal error",...h.data!==void 0&&{data:h.data}}};o&&this._taskMessageQueue&&u?await this._enqueueTaskMessage(o,{type:"error",message:f,timestamp:Date.now()},n?.sessionId):await n?.send(f)}).catch(h=>this._onerror(new Error(`Failed to send response: ${h}`))).finally(()=>{this._requestHandlerAbortControllers.get(t.id)===l&&this._requestHandlerAbortControllers.delete(t.id)})}_onprogress(t){let{progressToken:r,...i}=t.params,n=Number(r),o=this._progressHandlers.get(n);if(!o){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(t)}`));return}let a=this._responseHandlers.get(n),s=this._timeoutInfo.get(n);if(s&&a&&s.resetTimeoutOnProgress)try{this._resetTimeout(n)}catch(u){this._responseHandlers.delete(n),this._progressHandlers.delete(n),this._cleanupTimeout(n),a(u);return}o(i)}_onresponse(t){let r=Number(t.id),i=this._requestResolvers.get(r);if(i){if(this._requestResolvers.delete(r),Bs(t))i(t);else{let a=new j(t.error.code,t.error.message,t.error.data);i(a)}return}let n=this._responseHandlers.get(r);if(n===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(t)}`));return}this._responseHandlers.delete(r),this._cleanupTimeout(r);let o=!1;if(Bs(t)&&t.result&&typeof t.result=="object"){let a=t.result;if(a.task&&typeof a.task=="object"){let s=a.task;typeof s.taskId=="string"&&(o=!0,this._taskProgressTokens.set(s.taskId,r))}}if(o||this._progressHandlers.delete(r),Bs(t))n(t);else{let a=j.fromError(t.error.code,t.error.message,t.error.data);n(a)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(t,r,i){let{task:n}=i??{};if(!n){try{yield{type:"result",result:await this.request(t,r,i)}}catch(a){yield{type:"error",error:a instanceof j?a:new j(Z.InternalError,String(a))}}return}let o;try{let a=await this.request(t,To,i);if(a.task)o=a.task.taskId,yield{type:"taskCreated",task:a.task};else throw new j(Z.InternalError,"Task creation did not return a task");for(;;){let s=await this.getTask({taskId:o},i);if(yield{type:"taskStatus",task:s},gn(s.status)){s.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:o},r,i)}:s.status==="failed"?yield{type:"error",error:new j(Z.InternalError,`Task ${o} failed`)}:s.status==="cancelled"&&(yield{type:"error",error:new j(Z.InternalError,`Task ${o} was cancelled`)});return}if(s.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:o},r,i)};return}let u=s.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(c=>setTimeout(c,u)),i?.signal?.throwIfAborted()}}catch(a){yield{type:"error",error:a instanceof j?a:new j(Z.InternalError,String(a))}}}request(t,r,i){let{relatedRequestId:n,resumptionToken:o,onresumptiontoken:a,task:s,relatedTask:u}=i??{};return new Promise((c,l)=>{let d=v=>{l(v)};if(!this._transport){d(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(t.method),s&&this.assertTaskCapability(t.method)}catch(v){d(v);return}i?.signal?.throwIfAborted();let m=this._requestMessageId++,p={...t,jsonrpc:"2.0",id:m};i?.onprogress&&(this._progressHandlers.set(m,i.onprogress),p.params={...t.params,_meta:{...t.params?._meta||{},progressToken:m}}),s&&(p.params={...p.params,task:s}),u&&(p.params={...p.params,_meta:{...p.params?._meta||{},[hn]:u}});let h=v=>{this._responseHandlers.delete(m),this._progressHandlers.delete(m),this._cleanupTimeout(m),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:m,reason:String(v)}},{relatedRequestId:n,resumptionToken:o,onresumptiontoken:a}).catch(I=>this._onerror(new Error(`Failed to send cancellation: ${I}`)));let y=v instanceof j?v:new j(Z.RequestTimeout,String(v));l(y)};this._responseHandlers.set(m,v=>{if(!i?.signal?.aborted){if(v instanceof Error)return l(v);try{let y=cn(r,v.result);y.success?c(y.data):l(y.error)}catch(y){l(y)}}}),i?.signal?.addEventListener("abort",()=>{h(i?.signal?.reason)});let f=i?.timeout??CR,g=()=>h(j.fromError(Z.RequestTimeout,"Request timed out",{timeout:f}));this._setupTimeout(m,f,i?.maxTotalTimeout,g,i?.resetTimeoutOnProgress??!1);let b=u?.taskId;if(b){let v=y=>{let I=this._responseHandlers.get(m);I?I(y):this._onerror(new Error(`Response handler missing for side-channeled request ${m}`))};this._requestResolvers.set(m,v),this._enqueueTaskMessage(b,{type:"request",message:p,timestamp:Date.now()}).catch(y=>{this._cleanupTimeout(m),l(y)})}else this._transport.send(p,{relatedRequestId:n,resumptionToken:o,onresumptiontoken:a}).catch(v=>{this._cleanupTimeout(m),l(v)})})}async getTask(t,r){return this.request({method:"tasks/get",params:t},kf,r)}async getTaskResult(t,r,i){return this.request({method:"tasks/result",params:t},r,i)}async listTasks(t,r){return this.request({method:"tasks/list",params:t},Tf,r)}async cancelTask(t,r){return this.request({method:"tasks/cancel",params:t},nk,r)}async notification(t,r){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(t.method);let i=r?.relatedTask?.taskId;if(i){let s={...t,jsonrpc:"2.0",params:{...t.params,_meta:{...t.params?._meta||{},[hn]:r.relatedTask}}};await this._enqueueTaskMessage(i,{type:"notification",message:s,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(t.method)&&!t.params&&!r?.relatedRequestId&&!r?.relatedTask){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(t.method),!this._transport)return;let s={...t,jsonrpc:"2.0"};r?.relatedTask&&(s={...s,params:{...s.params,_meta:{...s.params?._meta||{},[hn]:r.relatedTask}}}),this._transport?.send(s,r).catch(u=>this._onerror(u))});return}let a={...t,jsonrpc:"2.0"};r?.relatedTask&&(a={...a,params:{...a.params,_meta:{...a.params?._meta||{},[hn]:r.relatedTask}}}),await this._transport.send(a,r)}setRequestHandler(t,r){let i=Oy(t);this.assertRequestHandlerCapability(i),this._requestHandlers.set(i,(n,o)=>{let a=Cy(t,n);return Promise.resolve(r(a,o))})}removeRequestHandler(t){this._requestHandlers.delete(t)}assertCanSetRequestHandler(t){if(this._requestHandlers.has(t))throw new Error(`A request handler for ${t} already exists, which would be overridden`)}setNotificationHandler(t,r){let i=Oy(t);this._notificationHandlers.set(i,n=>{let o=Cy(t,n);return Promise.resolve(r(o))})}removeNotificationHandler(t){this._notificationHandlers.delete(t)}_cleanupTaskProgressHandler(t){let r=this._taskProgressTokens.get(t);r!==void 0&&(this._progressHandlers.delete(r),this._taskProgressTokens.delete(t))}async _enqueueTaskMessage(t,r,i){if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");let n=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(t,r,i??this._transport?.sessionId,n)}async _clearTaskQueue(t,r){if(this._taskMessageQueue){let i=await this._taskMessageQueue.dequeueAll(t,r);for(let n of i)if(n.type==="request"&&my(n.message)){let o=n.message.id,a=this._requestResolvers.get(o);a?(a(new j(Z.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(o)):this._onerror(new Error(`Resolver missing for request ${o} during task ${t} cleanup`))}}}async _waitForTaskUpdate(t,r,i){let n=this._options?.defaultTaskPollInterval??1e3;try{let o=await this._taskStore?.getTask(t,i);o?.pollInterval&&(n=o.pollInterval)}catch{}return new Promise((o,a)=>{if(r.aborted){a(new j(Z.InvalidRequest,"Request cancelled"));return}let s=setTimeout(o,n);r.addEventListener("abort",()=>{clearTimeout(s),a(new j(Z.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(t,r){let i=this._taskStore;if(!i)throw new Error("No task store configured");return{createTask:async n=>{if(!t)throw new Error("No request provided");return await i.createTask(n,t.id,{method:t.method,params:t.params},r)},getTask:async n=>{let o=await i.getTask(n,r);if(!o)throw new j(Z.InvalidParams,"Failed to retrieve task: Task not found");return o},storeTaskResult:async(n,o,a)=>{await i.storeTaskResult(n,o,a,r);let s=await i.getTask(n,r);if(s){let u=Ks.parse({method:"notifications/tasks/status",params:s});await this.notification(u),gn(s.status)&&this._cleanupTaskProgressHandler(n)}},getTaskResult:n=>i.getTaskResult(n,r),updateTaskStatus:async(n,o,a)=>{let s=await i.getTask(n,r);if(!s)throw new j(Z.InvalidParams,`Task "${n}" not found - it may have been cleaned up`);if(gn(s.status))throw new j(Z.InvalidParams,`Cannot update task "${n}" from terminal status "${s.status}" to "${o}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await i.updateTaskStatus(n,o,a,r);let u=await i.getTask(n,r);if(u){let c=Ks.parse({method:"notifications/tasks/status",params:u});await this.notification(c),gn(u.status)&&this._cleanupTaskProgressHandler(n)}},listTasks:n=>i.listTasks(n,r)}}};function qk(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Vk(e,t){let r={...e};for(let i in t){let n=i,o=t[n];if(o===void 0)continue;let a=r[n];qk(a)&&qk(o)?r[n]={...a,...o}:r[n]=o}return r}var HE=ga(Ib(),1),GE=ga(BE(),1);function JL(){let e=new HE.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,GE.default)(e),e}var Ep=class{constructor(t){this._ajv=t??JL()}getValidator(t){let r="$id"in t&&typeof t.$id=="string"?this._ajv.getSchema(t.$id)??this._ajv.compile(t):this._ajv.compile(t);return i=>r(i)?{valid:!0,data:i,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(r.errors)}}};var Tp=class{constructor(t){this._server=t}requestStream(t,r,i){return this._server.requestStream(t,r,i)}createMessageStream(t,r){let i=this._server.getClientCapabilities();if((t.tools||t.toolChoice)&&!i?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(t.messages.length>0){let n=t.messages[t.messages.length-1],o=Array.isArray(n.content)?n.content:[n.content],a=o.some(l=>l.type==="tool_result"),s=t.messages.length>1?t.messages[t.messages.length-2]:void 0,u=s?Array.isArray(s.content)?s.content:[s.content]:[],c=u.some(l=>l.type==="tool_use");if(a){if(o.some(l=>l.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!c)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(c){let l=new Set(u.filter(m=>m.type==="tool_use").map(m=>m.id)),d=new Set(o.filter(m=>m.type==="tool_result").map(m=>m.toolUseId));if(l.size!==d.size||![...l].every(m=>d.has(m)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return this.requestStream({method:"sampling/createMessage",params:t},Qs,r)}elicitInputStream(t,r){let i=this._server.getClientCapabilities(),n=t.mode??"form";switch(n){case"url":{if(!i?.elicitation?.url)throw new Error("Client does not support url elicitation.");break}case"form":{if(!i?.elicitation?.form)throw new Error("Client does not support form elicitation.");break}}let o=n==="form"&&t.mode===void 0?{...t,mode:"form"}:t;return this.requestStream({method:"elicitation/create",params:o},No,r)}async getTask(t,r){return this._server.getTask({taskId:t},r)}async getTaskResult(t,r,i){return this._server.getTaskResult({taskId:t},r,i)}async listTasks(t,r){return this._server.listTasks(t?{cursor:t}:void 0,r)}async cancelTask(t,r){return this._server.cancelTask({taskId:t},r)}};function JE(e,t,r){if(!e)throw new Error(`${r} does not support task creation (required for ${t})`);switch(t){case"tools/call":if(!e.tools?.call)throw new Error(`${r} does not support task creation for tools/call (required for ${t})`);break;default:break}}function XE(e,t,r){if(!e)throw new Error(`${r} does not support task creation (required for ${t})`);switch(t){case"sampling/createMessage":if(!e.sampling?.createMessage)throw new Error(`${r} does not support task creation for sampling/createMessage (required for ${t})`);break;case"elicitation/create":if(!e.elicitation?.create)throw new Error(`${r} does not support task creation for elicitation/create (required for ${t})`);break;default:break}}var Dp=class extends Ff{constructor(t,r){super(r),this._serverInfo=t,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(Ys.options.map((i,n)=>[i,n])),this.isMessageIgnored=(i,n)=>{let o=this._loggingLevels.get(n);return o?this.LOG_LEVEL_SEVERITY.get(i)<this.LOG_LEVEL_SEVERITY.get(o):!1},this._capabilities=r?.capabilities??{},this._instructions=r?.instructions,this._jsonSchemaValidator=r?.jsonSchemaValidator??new Ep,this.setRequestHandler(vy,i=>this._oninitialize(i)),this.setNotificationHandler(yy,()=>this.oninitialized?.()),this._capabilities.logging&&this.setRequestHandler(ky,async(i,n)=>{let o=n.sessionId||n.requestInfo?.headers["mcp-session-id"]||void 0,{level:a}=i.params,s=Ys.safeParse(a);return s.success&&this._loggingLevels.set(o,s.data),{}})}get experimental(){return this._experimental||(this._experimental={tasks:new Tp(this)}),this._experimental}registerCapabilities(t){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=Vk(this._capabilities,t)}setRequestHandler(t,r){let n=ln(t)?.method;if(!n)throw new Error("Schema is missing a method literal");let o=yo(n);if(typeof o!="string")throw new Error("Schema method literal must be a string");if(o==="tools/call"){let s=async(u,c)=>{let l=cn(Ao,u);if(!l.success){let h=l.error instanceof Error?l.error.message:String(l.error);throw new j(Z.InvalidParams,`Invalid tools/call request: ${h}`)}let{params:d}=l.data,m=await Promise.resolve(r(u,c));if(d.task){let h=cn(To,m);if(!h.success){let f=h.error instanceof Error?h.error.message:String(h.error);throw new j(Z.InvalidParams,`Invalid task creation result: ${f}`)}return h.data}let p=cn(Rf,m);if(!p.success){let h=p.error instanceof Error?p.error.message:String(p.error);throw new j(Z.InvalidParams,`Invalid tools/call result: ${h}`)}return p.data};return super.setRequestHandler(t,s)}return super.setRequestHandler(t,r)}assertCapabilityForMethod(t){switch(t){case"sampling/createMessage":if(!this._clientCapabilities?.sampling)throw new Error(`Client does not support sampling (required for ${t})`);break;case"elicitation/create":if(!this._clientCapabilities?.elicitation)throw new Error(`Client does not support elicitation (required for ${t})`);break;case"roots/list":if(!this._clientCapabilities?.roots)throw new Error(`Client does not support listing roots (required for ${t})`);break;case"ping":break}}assertNotificationCapability(t){switch(t){case"notifications/message":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${t})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw new Error(`Server does not support notifying about resources (required for ${t})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw new Error(`Server does not support notifying of tool list changes (required for ${t})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw new Error(`Server does not support notifying of prompt list changes (required for ${t})`);break;case"notifications/elicitation/complete":if(!this._clientCapabilities?.elicitation?.url)throw new Error(`Client does not support URL elicitation (required for ${t})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(t){if(this._capabilities)switch(t){case"completion/complete":if(!this._capabilities.completions)throw new Error(`Server does not support completions (required for ${t})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${t})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw new Error(`Server does not support prompts (required for ${t})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw new Error(`Server does not support resources (required for ${t})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw new Error(`Server does not support tools (required for ${t})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw new Error(`Server does not support tasks capability (required for ${t})`);break;case"ping":case"initialize":break}}assertTaskCapability(t){XE(this._clientCapabilities?.tasks?.requests,t,"Client")}assertTaskHandlerCapability(t){this._capabilities&&JE(this._capabilities.tasks?.requests,t,"Server")}async _oninitialize(t){let r=t.params.protocolVersion;return this._clientCapabilities=t.params.capabilities,this._clientVersion=t.params.clientInfo,{protocolVersion:GS.includes(r)?r:fy,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getCapabilities(){return this._capabilities}async ping(){return this.request({method:"ping"},bf)}async createMessage(t,r){if((t.tools||t.toolChoice)&&!this._clientCapabilities?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(t.messages.length>0){let i=t.messages[t.messages.length-1],n=Array.isArray(i.content)?i.content:[i.content],o=n.some(c=>c.type==="tool_result"),a=t.messages.length>1?t.messages[t.messages.length-2]:void 0,s=a?Array.isArray(a.content)?a.content:[a.content]:[],u=s.some(c=>c.type==="tool_use");if(o){if(n.some(c=>c.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!u)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(u){let c=new Set(s.filter(d=>d.type==="tool_use").map(d=>d.id)),l=new Set(n.filter(d=>d.type==="tool_result").map(d=>d.toolUseId));if(c.size!==l.size||![...c].every(d=>l.has(d)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return t.tools?this.request({method:"sampling/createMessage",params:t},Iy,r):this.request({method:"sampling/createMessage",params:t},Qs,r)}async elicitInput(t,r){switch(t.mode??"form"){case"url":{if(!this._clientCapabilities?.elicitation?.url)throw new Error("Client does not support url elicitation.");let n=t;return this.request({method:"elicitation/create",params:n},No,r)}case"form":{if(!this._clientCapabilities?.elicitation?.form)throw new Error("Client does not support form elicitation.");let n=t.mode==="form"?t:{...t,mode:"form"},o=await this.request({method:"elicitation/create",params:n},No,r);if(o.action==="accept"&&o.content&&n.requestedSchema)try{let s=this._jsonSchemaValidator.getValidator(n.requestedSchema)(o.content);if(!s.valid)throw new j(Z.InvalidParams,`Elicitation response content does not match requested schema: ${s.errorMessage}`)}catch(a){throw a instanceof j?a:new j(Z.InternalError,`Error validating elicitation response: ${a instanceof Error?a.message:String(a)}`)}return o}}}createElicitationCompletionNotifier(t,r){if(!this._clientCapabilities?.elicitation?.url)throw new Error("Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:t}},r)}async listRoots(t,r){return this.request({method:"roots/list",params:t},Ey,r)}async sendLoggingMessage(t,r){if(this._capabilities.logging&&!this.isMessageIgnored(t.level,r))return this.notification({method:"notifications/message",params:t})}async sendResourceUpdated(t){return this.notification({method:"notifications/resources/updated",params:t})}async sendResourceListChanged(){return this.notification({method:"notifications/resources/list_changed"})}async sendToolListChanged(){return this.notification({method:"notifications/tools/list_changed"})}async sendPromptListChanged(){return this.notification({method:"notifications/prompts/list_changed"})}};var WE=Symbol.for("mcp.completable");function Ob(e){return!!e&&typeof e=="object"&&WE in e}function YE(e){return e[WE]?.complete}var KE;(function(e){e.Completable="McpCompletable"})(KE||(KE={}));var Ap=class e{static isTemplate(t){return/\{[^}\s]+\}/.test(t)}static validateLength(t,r,i){if(t.length>r)throw new Error(`${i} exceeds maximum length of ${r} characters (got ${t.length})`)}get variableNames(){return this.parts.flatMap(t=>typeof t=="string"?[]:t.names)}constructor(t){e.validateLength(t,1e6,"Template"),this.template=t,this.parts=this.parse(t)}toString(){return this.template}parse(t){let r=[],i="",n=0,o=0;for(;n<t.length;)if(t[n]==="{"){i&&(r.push(i),i="");let a=t.indexOf("}",n);if(a===-1)throw new Error("Unclosed template expression");if(o++,o>1e4)throw new Error("Template contains too many expressions (max 10000)");let s=t.slice(n+1,a),u=this.getOperator(s),c=s.includes("*"),l=this.getNames(s),d=l[0];for(let m of l)e.validateLength(m,1e6,"Variable name");r.push({name:d,operator:u,names:l,exploded:c}),n=a+1}else i+=t[n],n++;return i&&r.push(i),r}getOperator(t){return["+","#",".","/","?","&"].find(i=>t.startsWith(i))||""}getNames(t){let r=this.getOperator(t);return t.slice(r.length).split(",").map(i=>i.replace("*","").trim()).filter(i=>i.length>0)}encodeValue(t,r){return e.validateLength(t,1e6,"Variable value"),r==="+"||r==="#"?encodeURI(t):encodeURIComponent(t)}expandPart(t,r){if(t.operator==="?"||t.operator==="&"){let a=t.names.map(u=>{let c=r[u];if(c===void 0)return"";let l=Array.isArray(c)?c.map(d=>this.encodeValue(d,t.operator)).join(","):this.encodeValue(c.toString(),t.operator);return`${u}=${l}`}).filter(u=>u.length>0);return a.length===0?"":(t.operator==="?"?"?":"&")+a.join("&")}if(t.names.length>1){let a=t.names.map(s=>r[s]).filter(s=>s!==void 0);return a.length===0?"":a.map(s=>Array.isArray(s)?s[0]:s).join(",")}let i=r[t.name];if(i===void 0)return"";let o=(Array.isArray(i)?i:[i]).map(a=>this.encodeValue(a,t.operator));switch(t.operator){case"":return o.join(",");case"+":return o.join(",");case"#":return"#"+o.join(",");case".":return"."+o.join(".");case"/":return"/"+o.join("/");default:return o.join(",")}}expand(t){let r="",i=!1;for(let n of this.parts){if(typeof n=="string"){r+=n;continue}let o=this.expandPart(n,t);o&&((n.operator==="?"||n.operator==="&")&&i?r+=o.replace("?","&"):r+=o,(n.operator==="?"||n.operator==="&")&&(i=!0))}return r}escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}partToRegExp(t){let r=[];for(let o of t.names)e.validateLength(o,1e6,"Variable name");if(t.operator==="?"||t.operator==="&"){for(let o=0;o<t.names.length;o++){let a=t.names[o],s=o===0?"\\"+t.operator:"&";r.push({pattern:s+this.escapeRegExp(a)+"=([^&]+)",name:a})}return r}let i,n=t.name;switch(t.operator){case"":i=t.exploded?"([^/,]+(?:,[^/,]+)*)":"([^/,]+)";break;case"+":case"#":i="(.+)";break;case".":i="\\.([^/,]+)";break;case"/":i="/"+(t.exploded?"([^/,]+(?:,[^/,]+)*)":"([^/,]+)");break;default:i="([^/]+)"}return r.push({pattern:i,name:n}),r}match(t){e.validateLength(t,1e6,"URI");let r="^",i=[];for(let s of this.parts)if(typeof s=="string")r+=this.escapeRegExp(s);else{let u=this.partToRegExp(s);for(let{pattern:c,name:l}of u)r+=c,i.push({name:l,exploded:s.exploded})}r+="$",e.validateLength(r,1e6,"Generated regex pattern");let n=new RegExp(r),o=t.match(n);if(!o)return null;let a={};for(let s=0;s<i.length;s++){let{name:u,exploded:c}=i[s],l=o[s+1],d=u.replace("*","");c&&l.includes(",")?a[d]=l.split(","):a[d]=l}return a}};var XL=/^[A-Za-z0-9._-]{1,128}$/;function KL(e){let t=[];if(e.length===0)return{isValid:!1,warnings:["Tool name cannot be empty"]};if(e.length>128)return{isValid:!1,warnings:[`Tool name exceeds maximum length of 128 characters (current: ${e.length})`]};if(e.includes(" ")&&t.push("Tool name contains spaces, which may cause parsing issues"),e.includes(",")&&t.push("Tool name contains commas, which may cause parsing issues"),(e.startsWith("-")||e.endsWith("-"))&&t.push("Tool name starts or ends with a dash, which may cause parsing issues in some contexts"),(e.startsWith(".")||e.endsWith("."))&&t.push("Tool name starts or ends with a dot, which may cause parsing issues in some contexts"),!XL.test(e)){let r=e.split("").filter(i=>!/[A-Za-z0-9._-]/.test(i)).filter((i,n,o)=>o.indexOf(i)===n);return t.push(`Tool name contains invalid characters: ${r.map(i=>`"${i}"`).join(", ")}`,"Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)"),{isValid:!1,warnings:t}}return{isValid:!0,warnings:t}}function WL(e,t){if(t.length>0){console.warn(`Tool name validation warning for "${e}":`);for(let r of t)console.warn(` - ${r}`);console.warn("Tool registration will proceed, but this may cause compatibility issues."),console.warn("Consider updating the tool name to conform to the MCP tool naming standard."),console.warn("See SEP: Specify Format for Tool Names (https://github.com/modelcontextprotocol/modelcontextprotocol/issues/986) for more details.")}}function Cb(e){let t=KL(e);return WL(e,t.warnings),t.isValid}var Np=class{constructor(t){this._mcpServer=t}registerToolTask(t,r,i){let n={taskSupport:"required",...r.execution};if(n.taskSupport==="forbidden")throw new Error(`Cannot register task-based tool '${t}' with taskSupport 'forbidden'. Use registerTool() instead.`);return this._mcpServer._createRegisteredTool(t,r.title,r.description,r.inputSchema,r.outputSchema,r.annotations,n,r._meta,i)}};function YL(e,t){let r=0,i=[e];for(;i.length>0;){let n=i.pop();if(!(n===null||typeof n!="object"))if(Array.isArray(n))for(let o of n){if(++r>t)return r;o!==null&&typeof o=="object"&&i.push(o)}else for(let o in n){if(!Object.prototype.hasOwnProperty.call(n,o))continue;if(++r>t)return r;let a=n[o];a!==null&&typeof a=="object"&&i.push(a)}}return r}function QL(e){if(!(e===void 0||e===1/0)){if(typeof e!="number"||Number.isNaN(e)||e<1)throw new RangeError(`maxToolInputElements must be a number of at least 1, or Infinity, got ${String(e)}`);return e}}var zp=class{constructor(t,r){this._registeredResources={},this._registeredResourceTemplates={},this._registeredTools={},this._registeredPrompts={},this._toolHandlersInitialized=!1,this._completionHandlerInitialized=!1,this._resourceHandlersInitialized=!1,this._promptHandlersInitialized=!1,this.server=new Dp(t,r),this._maxToolInputElements=QL(r?.maxToolInputElements),r?.capabilities?.tools&&this.setToolRequestHandlers(),r?.capabilities?.resources&&this.setResourceRequestHandlers(),r?.capabilities?.prompts&&this.setPromptRequestHandlers()}get experimental(){return this._experimental||(this._experimental={tasks:new Np(this)}),this._experimental}async connect(t){return await this.server.connect(t)}async close(){await this.server.close()}setToolRequestHandlers(){this._toolHandlersInitialized||(this.server.assertCanSetRequestHandler(kn(Cf)),this.server.assertCanSetRequestHandler(kn(Ao)),this.server.registerCapabilities({tools:{listChanged:!0}}),this.server.setRequestHandler(Cf,()=>({tools:Object.entries(this._registeredTools).filter(([,t])=>t.enabled).map(([t,r])=>{let i={name:t,title:r.title,description:r.description,inputSchema:(()=>{let n=vo(r.inputSchema);return n?Py(n,{strictUnions:!0,pipeStrategy:"input"}):e3})(),annotations:r.annotations,execution:r.execution,_meta:r._meta};if(r.outputSchema){let n=vo(r.outputSchema);n&&(i.outputSchema=Py(n,{strictUnions:!0,pipeStrategy:"output"}))}return i})})),this.server.setRequestHandler(Ao,async(t,r)=>{try{let i=this._registeredTools[t.params.name];if(!i)throw new j(Z.InvalidParams,`Tool ${t.params.name} not found`);if(!i.enabled)throw new j(Z.InvalidParams,`Tool ${t.params.name} disabled`);let n=!!t.params.task,o=i.execution?.taskSupport,a="createTask"in i.handler;if((o==="required"||o==="optional")&&!a)throw new j(Z.InternalError,`Tool ${t.params.name} has taskSupport '${o}' but was not registered with registerToolTask`);if(o==="required"&&!n)throw new j(Z.MethodNotFound,`Tool ${t.params.name} requires task augmentation (taskSupport: 'required')`);if(o==="optional"&&!n&&a)return await this.handleAutomaticTaskPolling(i,t,r);let s=await this.validateToolInput(i,t.params.arguments,t.params.name),u=await this.executeToolHandler(i,s,r);return n||await this.validateToolOutput(i,u,t.params.name),u}catch(i){if(i instanceof j&&i.code===Z.UrlElicitationRequired)throw i;return this.createToolError(i instanceof Error?i.message:String(i))}}),this._toolHandlersInitialized=!0)}createToolError(t){return{content:[{type:"text",text:t}],isError:!0}}async validateToolInput(t,r,i){if(this._maxToolInputElements!==void 0&&YL(r,this._maxToolInputElements)>this._maxToolInputElements)throw new j(Z.InvalidParams,`Invalid arguments for tool ${i}: arguments contain more than the maximum of ${this._maxToolInputElements} elements`);if(!t.inputSchema)return;let o=vo(t.inputSchema)??t.inputSchema,a=await Ld(o,r??{});if(!a.success){let s="error"in a?a.error:"Unknown error",u=Zd(s);throw new j(Z.InvalidParams,`Input validation error: Invalid arguments for tool ${i}: ${u}`)}return a.data}async validateToolOutput(t,r,i){if(!t.outputSchema||!("content"in r)||r.isError)return;if(!r.structuredContent)throw new j(Z.InvalidParams,`Output validation error: Tool ${i} has an output schema but no structured content was provided`);let n=vo(t.outputSchema),o=await Ld(n,r.structuredContent);if(!o.success){let a="error"in o?o.error:"Unknown error",s=Zd(a);throw new j(Z.InvalidParams,`Output validation error: Invalid structured content for tool ${i}: ${s}`)}}async executeToolHandler(t,r,i){let n=t.handler;if("createTask"in n){if(!i.taskStore)throw new Error("No task store provided.");let a={...i,taskStore:i.taskStore};if(t.inputSchema){let s=n;return await Promise.resolve(s.createTask(r,a))}else{let s=n;return await Promise.resolve(s.createTask(a))}}if(t.inputSchema){let a=n;return await Promise.resolve(a(r,i))}else{let a=n;return await Promise.resolve(a(i))}}async handleAutomaticTaskPolling(t,r,i){if(!i.taskStore)throw new Error("No task store provided for task-capable tool.");let n=await this.validateToolInput(t,r.params.arguments,r.params.name),o=t.handler,a={...i,taskStore:i.taskStore},s=n?await Promise.resolve(o.createTask(n,a)):await Promise.resolve(o.createTask(a)),u=s.task.taskId,c=s.task,l=c.pollInterval??5e3;for(;c.status!=="completed"&&c.status!=="failed"&&c.status!=="cancelled";){await new Promise(m=>setTimeout(m,l));let d=await i.taskStore.getTask(u);if(!d)throw new j(Z.InternalError,`Task ${u} not found during polling`);c=d}return await i.taskStore.getTaskResult(u)}setCompletionRequestHandler(){this._completionHandlerInitialized||(this.server.assertCanSetRequestHandler(kn(jf)),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler(jf,async t=>{switch(t.params.ref.type){case"ref/prompt":return ck(t),this.handlePromptCompletion(t,t.params.ref);case"ref/resource":return lk(t),this.handleResourceCompletion(t,t.params.ref);default:throw new j(Z.InvalidParams,`Invalid completion reference: ${t.params.ref}`)}}),this._completionHandlerInitialized=!0)}async handlePromptCompletion(t,r){let i=this._registeredPrompts[r.name];if(!i)throw new j(Z.InvalidParams,`Prompt ${r.name} not found`);if(!i.enabled)throw new j(Z.InvalidParams,`Prompt ${r.name} disabled`);if(!i.argsSchema)return Nu;let o=ln(i.argsSchema)?.[t.params.argument.name];if(!Ob(o))return Nu;let a=YE(o);if(!a)return Nu;let s=await a(t.params.argument.value,t.params.context);return eT(s)}async handleResourceCompletion(t,r){let i=Object.values(this._registeredResourceTemplates).find(a=>a.resourceTemplate.uriTemplate.toString()===r.uri);if(!i){if(this._registeredResources[r.uri])return Nu;throw new j(Z.InvalidParams,`Resource template ${t.params.ref.uri} not found`)}let n=i.resourceTemplate.completeCallback(t.params.argument.name);if(!n)return Nu;let o=await n(t.params.argument.value,t.params.context);return eT(o)}setResourceRequestHandlers(){this._resourceHandlersInitialized||(this.server.assertCanSetRequestHandler(kn(Af)),this.server.assertCanSetRequestHandler(kn(Nf)),this.server.assertCanSetRequestHandler(kn(zf)),this.server.registerCapabilities({resources:{listChanged:!0}}),this.server.setRequestHandler(Af,async(t,r)=>{let i=Object.entries(this._registeredResources).filter(([o,a])=>a.enabled).map(([o,a])=>({uri:o,name:a.name,...a.metadata})),n=[];for(let o of Object.values(this._registeredResourceTemplates)){if(!o.resourceTemplate.listCallback)continue;let a=await o.resourceTemplate.listCallback(r);for(let s of a.resources)n.push({...o.metadata,...s})}return{resources:[...i,...n]}}),this.server.setRequestHandler(Nf,async()=>({resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([r,i])=>({name:r,uriTemplate:i.resourceTemplate.uriTemplate.toString(),...i.metadata}))})),this.server.setRequestHandler(zf,async(t,r)=>{let i=new URL(t.params.uri),n=this._registeredResources[i.toString()];if(n){if(!n.enabled)throw new j(Z.InvalidParams,`Resource ${i} disabled`);return n.readCallback(i,r)}for(let o of Object.values(this._registeredResourceTemplates)){let a=o.resourceTemplate.uriTemplate.match(i.toString());if(a)return o.readCallback(i,a,r)}throw new j(Z.InvalidParams,`Resource ${i} not found`)}),this._resourceHandlersInitialized=!0)}setPromptRequestHandlers(){this._promptHandlersInitialized||(this.server.assertCanSetRequestHandler(kn(Pf)),this.server.assertCanSetRequestHandler(kn(Of)),this.server.registerCapabilities({prompts:{listChanged:!0}}),this.server.setRequestHandler(Pf,()=>({prompts:Object.entries(this._registeredPrompts).filter(([,t])=>t.enabled).map(([t,r])=>({name:t,title:r.title,description:r.description,arguments:r.argsSchema?t3(r.argsSchema):void 0}))})),this.server.setRequestHandler(Of,async(t,r)=>{let i=this._registeredPrompts[t.params.name];if(!i)throw new j(Z.InvalidParams,`Prompt ${t.params.name} not found`);if(!i.enabled)throw new j(Z.InvalidParams,`Prompt ${t.params.name} disabled`);if(i.argsSchema){let n=vo(i.argsSchema),o=await Ld(n,t.params.arguments??{});if(!o.success){let u="error"in o?o.error:"Unknown error",c=Zd(u);throw new j(Z.InvalidParams,`Invalid arguments for prompt ${t.params.name}: ${c}`)}let a=o.data,s=i.callback;return await Promise.resolve(s(a,r))}else{let n=i.callback;return await Promise.resolve(n(r))}}),this._promptHandlersInitialized=!0)}resource(t,r,...i){let n;typeof i[0]=="object"&&(n=i.shift());let o=i[0];if(typeof r=="string"){if(this._registeredResources[r])throw new Error(`Resource ${r} is already registered`);let a=this._createRegisteredResource(t,void 0,r,n,o);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),a}else{if(this._registeredResourceTemplates[t])throw new Error(`Resource template ${t} is already registered`);let a=this._createRegisteredResourceTemplate(t,void 0,r,n,o);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),a}}registerResource(t,r,i,n){if(typeof r=="string"){if(this._registeredResources[r])throw new Error(`Resource ${r} is already registered`);let o=this._createRegisteredResource(t,i.title,r,i,n);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),o}else{if(this._registeredResourceTemplates[t])throw new Error(`Resource template ${t} is already registered`);let o=this._createRegisteredResourceTemplate(t,i.title,r,i,n);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),o}}_createRegisteredResource(t,r,i,n,o){let a={name:t,title:r,metadata:n,readCallback:o,enabled:!0,disable:()=>a.update({enabled:!1}),enable:()=>a.update({enabled:!0}),remove:()=>a.update({uri:null}),update:s=>{typeof s.uri<"u"&&s.uri!==i&&(delete this._registeredResources[i],s.uri&&(this._registeredResources[s.uri]=a)),typeof s.name<"u"&&(a.name=s.name),typeof s.title<"u"&&(a.title=s.title),typeof s.metadata<"u"&&(a.metadata=s.metadata),typeof s.callback<"u"&&(a.readCallback=s.callback),typeof s.enabled<"u"&&(a.enabled=s.enabled),this.sendResourceListChanged()}};return this._registeredResources[i]=a,a}_createRegisteredResourceTemplate(t,r,i,n,o){let a={resourceTemplate:i,title:r,metadata:n,readCallback:o,enabled:!0,disable:()=>a.update({enabled:!1}),enable:()=>a.update({enabled:!0}),remove:()=>a.update({name:null}),update:c=>{typeof c.name<"u"&&c.name!==t&&(delete this._registeredResourceTemplates[t],c.name&&(this._registeredResourceTemplates[c.name]=a)),typeof c.title<"u"&&(a.title=c.title),typeof c.template<"u"&&(a.resourceTemplate=c.template),typeof c.metadata<"u"&&(a.metadata=c.metadata),typeof c.callback<"u"&&(a.readCallback=c.callback),typeof c.enabled<"u"&&(a.enabled=c.enabled),this.sendResourceListChanged()}};this._registeredResourceTemplates[t]=a;let s=i.uriTemplate.variableNames;return Array.isArray(s)&&s.some(c=>!!i.completeCallback(c))&&this.setCompletionRequestHandler(),a}_createRegisteredPrompt(t,r,i,n,o){let a={title:r,description:i,argsSchema:n===void 0?void 0:Hn(n),callback:o,enabled:!0,disable:()=>a.update({enabled:!1}),enable:()=>a.update({enabled:!0}),remove:()=>a.update({name:null}),update:s=>{typeof s.name<"u"&&s.name!==t&&(delete this._registeredPrompts[t],s.name&&(this._registeredPrompts[s.name]=a)),typeof s.title<"u"&&(a.title=s.title),typeof s.description<"u"&&(a.description=s.description),typeof s.argsSchema<"u"&&(a.argsSchema=Hn(s.argsSchema)),typeof s.callback<"u"&&(a.callback=s.callback),typeof s.enabled<"u"&&(a.enabled=s.enabled),this.sendPromptListChanged()}};return this._registeredPrompts[t]=a,n&&Object.values(n).some(u=>{let c=u instanceof Kn?u._def?.innerType:u;return Ob(c)})&&this.setCompletionRequestHandler(),a}_createRegisteredTool(t,r,i,n,o,a,s,u,c){Cb(t);let l={title:r,description:i,inputSchema:QE(n),outputSchema:QE(o),annotations:a,execution:s,_meta:u,handler:c,enabled:!0,disable:()=>l.update({enabled:!1}),enable:()=>l.update({enabled:!0}),remove:()=>l.update({name:null}),update:d=>{typeof d.name<"u"&&d.name!==t&&(typeof d.name=="string"&&Cb(d.name),delete this._registeredTools[t],d.name&&(this._registeredTools[d.name]=l)),typeof d.title<"u"&&(l.title=d.title),typeof d.description<"u"&&(l.description=d.description),typeof d.paramsSchema<"u"&&(l.inputSchema=Hn(d.paramsSchema)),typeof d.outputSchema<"u"&&(l.outputSchema=Hn(d.outputSchema)),typeof d.callback<"u"&&(l.handler=d.callback),typeof d.annotations<"u"&&(l.annotations=d.annotations),typeof d._meta<"u"&&(l._meta=d._meta),typeof d.enabled<"u"&&(l.enabled=d.enabled),this.sendToolListChanged()}};return this._registeredTools[t]=l,this.setToolRequestHandlers(),this.sendToolListChanged(),l}tool(t,...r){if(this._registeredTools[t])throw new Error(`Tool ${t} is already registered`);let i,n,o,a;if(typeof r[0]=="string"&&(i=r.shift()),r.length>1){let u=r[0];if(Rb(u))n=r.shift(),r.length>1&&typeof r[0]=="object"&&r[0]!==null&&!Rb(r[0])&&(a=r.shift());else if(typeof u=="object"&&u!==null){if(Object.values(u).some(c=>typeof c=="object"&&c!==null))throw new Error(`Tool ${t} expected a Zod schema or ToolAnnotations, but received an unrecognized object`);a=r.shift()}}let s=r[0];return this._createRegisteredTool(t,void 0,i,n,o,a,{taskSupport:"forbidden"},void 0,s)}registerTool(t,r,i){if(this._registeredTools[t])throw new Error(`Tool ${t} is already registered`);let{title:n,description:o,inputSchema:a,outputSchema:s,annotations:u,_meta:c}=r;return this._createRegisteredTool(t,n,o,a,s,u,{taskSupport:"forbidden"},c,i)}prompt(t,...r){if(this._registeredPrompts[t])throw new Error(`Prompt ${t} is already registered`);let i;typeof r[0]=="string"&&(i=r.shift());let n;r.length>1&&(n=r.shift());let o=r[0],a=this._createRegisteredPrompt(t,void 0,i,n,o);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),a}registerPrompt(t,r,i){if(this._registeredPrompts[t])throw new Error(`Prompt ${t} is already registered`);let{title:n,description:o,argsSchema:a}=r,s=this._createRegisteredPrompt(t,n,o,a,i);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),s}isConnected(){return this.server.transport!==void 0}async sendLoggingMessage(t,r){return this.server.sendLoggingMessage(t,r)}sendResourceListChanged(){this.isConnected()&&this.server.sendResourceListChanged()}sendToolListChanged(){this.isConnected()&&this.server.sendToolListChanged()}sendPromptListChanged(){this.isConnected()&&this.server.sendPromptListChanged()}},Pp=class{constructor(t,r){this._callbacks=r,this._uriTemplate=typeof t=="string"?new Ap(t):t}get uriTemplate(){return this._uriTemplate}get listCallback(){return this._callbacks.list}completeCallback(t){return this._callbacks.complete?.[t]}},e3={type:"object",properties:{}};function tT(e){return e!==null&&typeof e=="object"&&"parse"in e&&typeof e.parse=="function"&&"safeParse"in e&&typeof e.safeParse=="function"}function rT(e){return"_def"in e||"_zod"in e||tT(e)}function Rb(e){return typeof e!="object"||e===null||rT(e)?!1:Object.keys(e).length===0?!0:Object.values(e).some(tT)}function QE(e){if(e){if(Rb(e))return Hn(e);if(!rT(e))throw new Error("inputSchema must be a Zod schema or raw shape, received an unrecognized object");return e}}function t3(e){let t=ln(e);return t?Object.entries(t).map(([r,i])=>{let n=wx(i),o=xx(i);return{name:r,description:n,required:!o}}):[]}function kn(e){let r=ln(e)?.method;if(!r)throw new Error("Schema is missing a method literal");let i=yo(r);if(typeof i=="string")return i;throw new Error("Schema method literal must be a string")}function eT(e){return{completion:{values:e.slice(0,100),total:e.length,hasMore:e.length>100}}}var Nu={completion:{values:[],hasMore:!1}};import iT from"node:process";var r3=10*1024*1024,Op=class{constructor(t){this._maxBufferSize=t?.maxBufferSize??r3}append(t){if((this._buffer?.length??0)+t.length>this._maxBufferSize)throw this.clear(),new Error(`ReadBuffer exceeded maximum size of ${this._maxBufferSize} bytes`);this._buffer=this._buffer?Buffer.concat([this._buffer,t]):t}readMessage(){if(!this._buffer)return null;let t=this._buffer.indexOf(`
83
+ `);if(t===-1)return null;let r=this._buffer.toString("utf8",0,t).replace(/\r$/,"");return this._buffer=this._buffer.subarray(t+1),n3(r)}clear(){this._buffer=void 0}};function n3(e){return tk.parse(JSON.parse(e))}function nT(e){return JSON.stringify(e)+`
84
+ `}var Cp=class{constructor(t=iT.stdin,r=iT.stdout,i){this._stdin=t,this._stdout=r,this._started=!1,this._ondata=n=>{try{this._readBuffer.append(n),this.processReadBuffer()}catch(o){this.onerror?.(o),this.close().catch(()=>{})}},this._onerror=n=>{this.onerror?.(n)},this._readBuffer=new Op({maxBufferSize:i?.maxBufferSize})}async start(){if(this._started)throw new Error("StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.");this._started=!0,this._stdin.on("data",this._ondata),this._stdin.on("error",this._onerror)}processReadBuffer(){for(;;)try{let t=this._readBuffer.readMessage();if(t===null)break;this.onmessage?.(t)}catch(t){this.onerror?.(t)}}async close(){this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdin.listenerCount("data")===0&&this._stdin.pause(),this._readBuffer.clear(),this.onclose?.()}send(t){return new Promise(r=>{let i=nT(t);this._stdout.write(i)?r():this._stdout.once("drain",r)})}};import{readFileSync as y9}from"node:fs";import{join as _9}from"node:path";var oT={name:"@kyun.si/codex-hongguo",version:"0.0.21",private:!0,license:"MIT",type:"module",engines:{node:">=22.16"},scripts:{"version:patch":"npm version patch --no-git-tag-version",preversion:"node scripts/version.mjs --next",version:"node scripts/version.mjs --sync",prebuild:"node scripts/version.mjs",build:"node scripts/build.mjs",test:"npm run build && node --test test/*.test.mjs",package:"npm run build && node scripts/package.mjs","verify:install":"node scripts/verify-install.mjs","release:publish":"node scripts/publish.mjs"},dependencies:{"@modelcontextprotocol/ext-apps":"1.7.5","@modelcontextprotocol/sdk":"1.32.2","cross-spawn":"7.0.6","hls.js":"1.7.4","m3u8-parser":"7.2.1","mpd-parser":"1.4.1",openhongguo:"0.2.0",zod:"4.6.7"},devDependencies:{"@types/node":"22.20.5",esbuild:"0.28.2",fflate:"0.8.3",typescript:"5.9.3"}};import{homedir as o3}from"node:os";import{posix as a3,win32 as s3}from"node:path";import{fileURLToPath as u3}from"node:url";var In=u3(new URL("../../",import.meta.url));function aT({env:e=process.env,home:t=o3(),platform:r=process.platform}={}){let{join:i}=r==="win32"?s3:a3;return e.HONGGUO_DATA_DIR?e.HONGGUO_DATA_DIR:r==="darwin"?i(t,"Library","Application Support","CodexHongguo"):r==="win32"?i(e.LOCALAPPDATA||i(t,"AppData","Local"),"CodexHongguo"):i(e.XDG_DATA_HOME||i(t,".local","share"),"codex-hongguo")}import{DatabaseSync as c3}from"node:sqlite";import{mkdirSync as l3}from"node:fs";import{join as d3}from"node:path";function jb(e){return typeof e=="string"&&/^[A-Za-z0-9_-]{1,128}$/.test(e)}function Rp(e={}){let t=[e.thread_id,e.threadId].filter(r=>r!==void 0);return t.length&&t.every(r=>jb(r)&&r===t[0])?t[0]:null}function sT(e){let t=new Map;for(let{id:r,title:i}of e)if(/^hg-\d{1,32}$/.test(r)&&typeof i=="string"&&i.trim()&&!t.has(r)&&t.set(r,{id:r,title:i}),t.size===48)break;return[...t.values()]}var zu=class{constructor(t=aT(),r=!1){r||l3(t,{recursive:!0,mode:448}),this.persistent=!r,this.root=t,this.db=new c3(r?":memory:":d3(t,"player.sqlite")),this.db.exec(`PRAGMA busy_timeout=250; PRAGMA journal_mode=WAL;
85
+ CREATE TABLE IF NOT EXISTS turn_state (
86
+ session_id TEXT NOT NULL, turn_id TEXT NOT NULL, submitted_at INTEGER,
87
+ stop_kind TEXT, interrupted INTEGER NOT NULL DEFAULT 0, stopped INTEGER NOT NULL DEFAULT 0,
88
+ observed_at INTEGER NOT NULL, revision INTEGER NOT NULL DEFAULT 1, PRIMARY KEY(session_id,turn_id));
89
+ CREATE INDEX IF NOT EXISTS latest_turn ON turn_state(session_id, submitted_at DESC);
90
+ CREATE TABLE IF NOT EXISTS waiting_card (
91
+ session_id TEXT NOT NULL, turn_id TEXT NOT NULL, PRIMARY KEY(session_id,turn_id));
92
+ CREATE TABLE IF NOT EXISTS waiting_dismissal (
93
+ session_id TEXT NOT NULL, turn_id TEXT NOT NULL, PRIMARY KEY(session_id,turn_id));
94
+ CREATE TABLE IF NOT EXISTS recommendation_feed (
95
+ id INTEGER PRIMARY KEY CHECK(id=1), items TEXT NOT NULL, updated_at INTEGER NOT NULL);
96
+ CREATE TABLE IF NOT EXISTS turn_picks (
97
+ session_id TEXT NOT NULL, turn_id TEXT NOT NULL, items TEXT NOT NULL,
98
+ reserved_at INTEGER, shown INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(session_id,turn_id));
99
+ CREATE INDEX IF NOT EXISTS pending_picks ON turn_picks(reserved_at) WHERE shown=0;
100
+ CREATE TABLE IF NOT EXISTS pick_exposure (series_id TEXT PRIMARY KEY, last_shown INTEGER NOT NULL);
101
+ CREATE TABLE IF NOT EXISTS visible_player (
102
+ session_id TEXT NOT NULL, instance TEXT NOT NULL, seen_at INTEGER NOT NULL,
103
+ PRIMARY KEY(session_id,instance));
104
+ CREATE TABLE IF NOT EXISTS player_onboarding (
105
+ id INTEGER PRIMARY KEY CHECK(id=1), dismissed INTEGER NOT NULL);
106
+ CREATE TABLE IF NOT EXISTS watch_progress (
107
+ series_id TEXT NOT NULL, episode_id TEXT NOT NULL, title TEXT NOT NULL, label TEXT NOT NULL,
108
+ position_ms INTEGER NOT NULL, duration_ms INTEGER NOT NULL, updated_at INTEGER NOT NULL,
109
+ PRIMARY KEY(series_id,episode_id));
110
+ CREATE TABLE IF NOT EXISTS watch_restart (
111
+ series_id TEXT NOT NULL, episode_id TEXT NOT NULL, PRIMARY KEY(series_id,episode_id));`),this.db.prepare("PRAGMA user_version").get().user_version===0&&this.db.exec(`BEGIN IMMEDIATE;
112
+ DELETE FROM watch_progress WHERE series_id IN ('tide','ridge');
113
+ PRAGMA user_version=1;
114
+ COMMIT;`)}preferences(){this.db.exec("CREATE TABLE IF NOT EXISTS player_preferences(id INTEGER PRIMARY KEY, body TEXT NOT NULL)");let t=this.db.prepare("SELECT body FROM player_preferences WHERE id=1").get(),r={autoPrompt:!0,autoplayNext:!0,autoPauseOnFinish:!0,autoPlayOnStart:!0,searchTerms:["\u603B\u88C1","\u91CD\u751F","\u9006\u88AD"]};return t?{...r,...JSON.parse(t.body)}:r}setupDismissed(){return this.db.prepare("SELECT dismissed FROM player_onboarding WHERE id=1").get()?.dismissed===1}setSetupDismissed(t){return this.db.prepare("INSERT OR REPLACE INTO player_onboarding VALUES(1,?)").run(Number(t)),{dismissed:t}}setPreferences(t){return this.transaction(()=>{let r=this.preferences(),i={...r,...t};return this.db.prepare("INSERT OR REPLACE INTO player_preferences VALUES(1,?)").run(JSON.stringify(i)),JSON.stringify(r.searchTerms)!==JSON.stringify(i.searchTerms)&&this.db.exec("DELETE FROM recommendation_feed"),i})}event({session_id:t,turn_id:r,hook_event_name:i},n=Date.now()){if(!jb(t)||!jb(r)||!["UserPromptSubmit","Stop","Interrupt"].includes(i))return;let o=+(i==="Stop"),a=+(i==="Interrupt");return this.db.prepare(`INSERT INTO turn_state(session_id,turn_id,submitted_at,stop_kind,stopped,interrupted,observed_at)
115
+ VALUES(?,?,?,?,?,?,?) ON CONFLICT(session_id,turn_id) DO UPDATE SET
116
+ submitted_at=COALESCE(submitted_at,CASE WHEN excluded.submitted_at IS NOT NULL THEN min(observed_at,excluded.submitted_at) END),
117
+ stop_kind=COALESCE(excluded.stop_kind,stop_kind), stopped=max(stopped,excluded.stopped),
118
+ interrupted=max(interrupted,excluded.interrupted), observed_at=excluded.observed_at, revision=revision+1
119
+ WHERE (submitted_at IS NULL AND excluded.submitted_at IS NOT NULL) OR
120
+ stopped<excluded.stopped OR interrupted<excluded.interrupted`).run(t,r,o||a?null:n,o||a?i:null,o,a,n).changes>0}activeTurn(t,r){let i=this.state(t);return this.persistent&&!!r&&i.turnId===r&&i.state==="submitted"}offerable(t,r){return this.activeTurn(t,r)&&this.preferences().autoPrompt&&!this.picksDismissed(t,r)&&!this.db.prepare("SELECT 1 FROM visible_player WHERE session_id=? AND seen_at>? LIMIT 1").get(t,Date.now()-6500)}picksDismissed(t,r){return!!this.db.prepare("SELECT 1 FROM waiting_dismissal WHERE session_id=? AND turn_id=?").get(t,r)}dismissPicks(t,r){return this.db.prepare("INSERT OR IGNORE INTO waiting_dismissal VALUES(?,?)").run(t,r),{dismissed:!0}}transaction(t){this.db.exec("BEGIN IMMEDIATE");try{let r=t();return this.db.exec("COMMIT"),r}catch(r){throw this.db.exec("ROLLBACK"),r}}claimCard(t,r){return this.transaction(()=>this.offerable(t,r)&&this.db.prepare("INSERT OR IGNORE INTO waiting_card VALUES(?,?)").run(t,r).changes===1)}playerVisible(t,r,i){if(!t)return;let n=Date.now();i?(this.db.prepare("DELETE FROM visible_player WHERE seen_at<=?").run(n-6500),this.db.prepare("INSERT OR REPLACE INTO visible_player VALUES(?,?,?)").run(t,r,n)):this.db.prepare("DELETE FROM visible_player WHERE session_id=? AND instance=?").run(t,r)}touchPlayer(t,r){t&&r&&this.db.prepare("UPDATE visible_player SET seen_at=? WHERE session_id=? AND instance=? AND seen_at<?").run(Date.now(),t,r,Date.now()-1800)}waitingFeed(t=!1){let r=this.db.prepare("SELECT items, updated_at FROM recommendation_feed WHERE id=1").get();return r&&!t&&r.updated_at<=Date.now()-15*6e4?[]:r?JSON.parse(r.items):[]}saveWaitingFeed(t){let r=sT(t);return r.length&&this.db.prepare("INSERT OR REPLACE INTO recommendation_feed VALUES(1,?,?)").run(JSON.stringify(r),Date.now()),r}turnPicks(t,r){let i=this.db.prepare("SELECT items FROM turn_picks WHERE session_id=? AND turn_id=?").get(t,r);return i?JSON.parse(i.items):[]}allocatePicks(t,r,i,n,o,a){return this.transaction(()=>{if(!a())return[];let s=this.turnPicks(t,r);if(s.length)return s;let u=new Set,c=this.db.prepare("SELECT session_id,turn_id,items FROM turn_picks WHERE shown=0 AND reserved_at>?");for(let m of c.all(Date.now()-15e3))if(this.activeTurn(m.session_id,m.turn_id))for(let p of JSON.parse(m.items))p.episodeId||u.add(p.id);let l=this.db.prepare(`SELECT c.value->>'id' AS id, c.value->>'title' AS title
121
+ FROM json_each(?) c LEFT JOIN pick_exposure e ON e.series_id=c.value->>'id'
122
+ WHERE NOT EXISTS (SELECT 1 FROM watch_progress w WHERE w.series_id=c.value->>'id' AND
123
+ (w.position_ms>0 OR (w.series_id,w.episode_id) IN (SELECT series_id,episode_id FROM watch_restart)))
124
+ ORDER BY e.last_shown, c.key`).all(JSON.stringify(sT(n))).map(({id:m,title:p})=>({id:m,title:p}));l.sort((m,p)=>Number(u.has(m.id))-Number(u.has(p.id)));let d=i?[i,...l.filter(m=>m.id!==i.id).slice(0,2)]:l.slice(0,3);return d.length&&this.db.prepare("INSERT INTO turn_picks(session_id,turn_id,items,reserved_at) VALUES(?,?,?,?)").run(t,r,JSON.stringify(d),o?Date.now():null),d})}markPicksShown(t,r,i){return this.transaction(()=>{let n=i()&&this.db.prepare("UPDATE turn_picks SET shown=1 WHERE session_id=? AND turn_id=? AND shown=0 RETURNING items").get(t,r);if(n){let o=this.db.prepare("SELECT coalesce(max(last_shown),0)+1 AS n FROM pick_exposure").get().n,a=this.db.prepare("INSERT OR REPLACE INTO pick_exposure(series_id,last_shown) VALUES(?,?)");for(let s of JSON.parse(n.items))s.episodeId||a.run(s.id,o)}return{recorded:!!n}})}state(t,r){let i=t&&(r?this.db.prepare("SELECT * FROM turn_state WHERE session_id=? AND turn_id=?").get(t,r):this.db.prepare("SELECT * FROM turn_state WHERE session_id=? ORDER BY (submitted_at IS NOT NULL) DESC,coalesce(submitted_at,observed_at) DESC,rowid DESC LIMIT 1").get(t));if(!i)return{sessionId:null,turnId:null,state:"unknown",revision:0,observedAt:null};let n=i.interrupted?"interrupted":i.stopped?"stopped":"submitted";return{sessionId:i.session_id,turnId:i.turn_id,state:n,revision:i.revision,observedAt:i.observed_at}}candidates(){return this.db.prepare("SELECT session_id, max(observed_at) AS at FROM turn_state GROUP BY session_id ORDER BY at DESC LIMIT 8").all()}save({seriesId:t,episodeId:r,title:i,label:n,positionMs:o,durationMs:a,reset:s=!1}){return o<=0&&!s?{saved:!1}:this.transaction(()=>(o===0?this.db.prepare("INSERT OR IGNORE INTO watch_restart VALUES(?,?)").run(t,r):this.db.prepare("DELETE FROM watch_restart WHERE series_id=? AND episode_id=?").run(t,r),this.db.prepare(`INSERT INTO watch_progress VALUES(?,?,?,?,?,?,max(?,coalesce((SELECT max(updated_at)+1 FROM watch_progress),0))) ON CONFLICT(series_id,episode_id) DO UPDATE SET
125
+ title=excluded.title,label=excluded.label,position_ms=excluded.position_ms,duration_ms=excluded.duration_ms,updated_at=excluded.updated_at`).run(t,r,i,n,Math.min(o,a),a,Date.now()),{saved:!0}))}history(t,r,i=30){let n="series_id AS seriesId,episode_id AS episodeId,title,label,position_ms AS positionMs,duration_ms AS durationMs,updated_at AS updatedAt",o="(position_ms>0 OR (series_id,episode_id) IN (SELECT series_id,episode_id FROM watch_restart))";return t&&r?this.db.prepare("SELECT "+n+" FROM watch_progress WHERE series_id=? AND episode_id=? AND "+o).all(t,r):t?this.db.prepare("SELECT "+n+" FROM watch_progress WHERE series_id=? AND "+o+" ORDER BY updated_at DESC,rowid DESC LIMIT 1").all(t):this.db.prepare("SELECT "+n+` FROM (SELECT *, row_number() OVER(PARTITION BY series_id ORDER BY updated_at DESC,rowid DESC) AS rank
126
+ FROM watch_progress WHERE ${o} AND series_id GLOB 'hg-*' AND episode_id GLOB 'hg-*')
127
+ WHERE rank=1 ORDER BY updated_at DESC LIMIT ?`).all(i)}removeHistory(t){return this.transaction(()=>(this.db.prepare("DELETE FROM watch_progress WHERE series_id=?").run(t),this.db.prepare("DELETE FROM watch_restart WHERE series_id=?").run(t),{removed:!0}))}writable(){if(!this.persistent)return!1;try{return this.db.exec("UPDATE watch_progress SET updated_at=updated_at WHERE 0"),!0}catch{return!1}}close(){this.db.close()}};import{randomBytes as G3}from"node:crypto";var U=class extends Error{constructor(t,r=400){super(t),this.status=r}};function jp(e){return e instanceof U?e.message:"\u672C\u673A\u670D\u52A1\u6216\u7247\u6E90\u6682\u65F6\u4E0D\u53EF\u8FBE\uFF0C\u8BF7\u91CD\u8BD5"}import{realpathSync as q3}from"node:fs";import{relative as V3,resolve as B3,isAbsolute as H3}from"node:path";var Gb=ga(XT(),1);import{accessSync as U3,constants as KT,statSync as M3}from"node:fs";import{homedir as L3}from"node:os";import{posix as Z3,win32 as WT}from"node:path";var YT=Gb.default,F3=Gb.default.sync;function QT(e){if(!(!e?.pid||e.exitCode!==null||e.signalCode!==null))if(e.stdin?.destroy(),process.platform==="win32"){let t=WT.join(process.env.SystemRoot||"C:\\Windows","System32","taskkill.exe");F3(t,["/pid",String(e.pid),"/t","/f"],{stdio:"ignore",timeout:3e3,windowsHide:!0})}else e.kill()}function Mp(e,t,{env:r=process.env,home:i=L3(),platform:n=process.platform}={}){if(t)return t;let{delimiter:o,dirname:a,join:s,isAbsolute:u,extname:c}=n==="win32"?WT:Z3,l=Object.keys(r).find(h=>h.toUpperCase()==="PATH")||"PATH",d=[a(process.execPath),...(r[l]||"").split(o).filter(Boolean).map(h=>h.replace(/^"(.*)"$/,"$1"))];n!=="win32"?d.push("/opt/homebrew/bin","/usr/local/bin","/usr/bin","/bin",s(i,".volta/bin"),s(i,".local/bin")):d.push(s(r.APPDATA||s(i,"AppData","Roaming"),"npm"),s(i,".volta","bin"));let m=n!=="win32"||c(e)?[""]:[".exe",".com",".cmd",".bat"],p=d.filter(u).flatMap(h=>m.map(f=>s(h,e+f)));e==="codex"&&n==="darwin"&&p.push("/Applications/Codex.app/Contents/Resources/codex");for(let h of p)try{if(U3(h,n==="win32"?KT.F_OK:KT.X_OK),M3(h).isFile())return h}catch{}return e}var eD=["userPromptSubmit","stop","interrupt"],En=()=>({status:"unknown",events:eD.map(e=>({event:e,status:"unknown"}))});function tD({command:e=Mp("codex",process.env.HONGGUO_CODEX),args:t=["app-server"],cwd:r=process.cwd(),timeoutMs:i=8e3,pluginRoot:n=In,installedId:o}={}){let a=u=>{try{return q3(u)}catch{return B3(u)}},s=a(n);return new Promise(u=>{let c,l=!1,d="",m=0,p=f=>{l||(l=!0,clearTimeout(h),QT(c),u(f))},h=setTimeout(()=>p(En()),i);try{c=YT(e,t,{cwd:r,stdio:["pipe","pipe","ignore"],windowsHide:!0}),c.on("error",()=>p(En())),c.on("exit",()=>p(En())),c.stdin.on("error",()=>p(En())),c.stdout.setEncoding("utf8");let f=g=>c.stdin.write(JSON.stringify(g)+`
128
+ `);c.stdout.on("data",g=>{if(l)return;if(m+=Buffer.byteLength(g),m>2*1024*1024)return p(En());d+=g;let b;for(;!l&&(b=d.indexOf(`
129
+ `))>=0;){let v=d.slice(0,b);d=d.slice(b+1);let y;try{y=JSON.parse(v)}catch{continue}if(y.error&&[1,2].includes(y.id))return p(En());if(y.id===1&&y.result&&(f({jsonrpc:"2.0",method:"initialized"}),f({jsonrpc:"2.0",id:2,method:"hooks/list",params:{cwds:[r]}})),y.id===2&&Array.isArray(y.result?.data)){let I=y.result.data.flatMap(z=>Array.isArray(z?.hooks)?z.hooks:[]).filter(z=>typeof z?.pluginId=="string"&&z.pluginId.split("@")[0]==="codex-hongguo").filter(z=>{if(typeof z.sourcePath!="string")return!1;if(o)return z.pluginId===o;let B=V3(s,a(z.sourcePath));return B&&!B.startsWith("..")&&!H3(B)});if(!I.length)return p(En());let T=eD.map(z=>{let B=I.filter(se=>se.eventName===z),Fe=B.length?B.some(se=>!se.enabled)?"disabled":B.every(se=>["trusted","managed"].includes(se.trustStatus))?"ready":B.some(se=>["untrusted","modified"].includes(se.trustStatus))?"needs_review":"unknown":"missing";return{event:z,status:Fe}});p({status:T.every(z=>z.status==="ready")?"ready":"needs_attention",events:T})}}}),f({jsonrpc:"2.0",id:1,method:"initialize",params:{clientInfo:{name:"hongguo-setup",version:"1"},capabilities:{experimentalApi:!0}}})}catch{p(En())}})}var Pu=()=>G3(24).toString("base64url"),Zr=q.string().regex(/^[a-zA-Z0-9_-]{1,128}$/),Dt=q.string().regex(/^hg-[0-9]{1,32}$/),rD=q.string().max(4096).optional(),Jb=q.string().min(1).max(320),nD=q.number().int().min(0).max(24*3600*1e3),Xb={get_run_state:q.object({turnId:Zr.optional(),playerInstance:Zr.optional(),observeSession:q.literal(!0).optional()}),set_player_visible:q.object({instance:Zr,visible:q.boolean()}),get_waiting_picks:q.object({turnId:Zr.optional(),inView:q.literal(!0).optional()}),mark_waiting_picks_shown:q.object({turnId:Zr.optional()}),get_waiting_status:q.object({}),dismiss_waiting_picks:q.object({turnId:Zr.optional()}),browse_waiting_catalog:q.object({}),select_waiting_pick:q.object({seriesId:Dt}),activate_waiting_player:q.object({}),confirm_waiting_playback:q.object({playbackId:q.number().int().positive()}),list_sessions:q.object({}),select_session:q.object({choice:Zr}),list_series:q.object({source:q.literal("hongguo").optional(),preview:q.literal(!0).optional(),query:q.string().max(120).optional(),cursor:rD}),get_cover:q.object({seriesId:Dt}),get_episodes:q.object({seriesId:Dt,cursor:rD}),get_history:q.object({seriesId:Dt.optional(),episodeId:Dt.optional()}),save_progress:q.object({seriesId:Dt,episodeId:Dt,title:Jb,label:Jb,positionMs:nD,durationMs:nD.positive(),reset:q.literal(!0).optional()}),prepare_playback:q.object({episodeId:Dt,retry:q.boolean().optional()}),create_browser_pairing:q.object({follow:q.boolean().optional(),turnId:Zr.optional(),seriesId:Dt.optional(),episodeId:Dt.optional(),title:Jb.optional()}),get_health:q.object({}),get_setup_status:q.object({}),set_setup_dismissed:q.object({dismissed:q.boolean()}),get_preferences:q.object({}),set_preferences:q.object({autoPrompt:q.boolean().optional(),searchTerms:q.array(q.string().trim().min(1).max(30)).min(1).max(6).optional(),autoplayNext:q.boolean().optional(),autoPauseOnFinish:q.boolean().optional(),autoPlayOnStart:q.boolean().optional()}),read_panel_chunk:q.object({episodeId:Dt,stream:Zr,asset:q.string().max(32),offset:q.number().int().nonnegative().max(32*1024*1024)}),remove_history:q.object({seriesId:Dt})},Lp=class{constructor(t,r,i=tD){this.store=t,this.catalog=r,this.checkHooks=i,this.panels=new Map}open(t){let r=Pu(),i={sessionId:Rp(t),choices:new Map,lastSeen:Date.now()};for(let[n,o]of this.panels)Date.now()-o.lastSeen>12*36e5&&this.panels.delete(n);return i.caller=i.sessionId,this.panels.set(r,i),{panel:r,state:this.store.state(i.sessionId),identified:!!i.sessionId}}openWaiting(t,r){let i=Rp(t);if(!i||[t?.turn_id,t?.turnId].some(o=>o!==void 0&&o!==r)||!this.store.claimCard(i,r))return null;let n=this.open(t);return this.panels.get(n.panel).waiting={turnId:r,selected:null,taken:!1},n}async resumePick(){for(let t of this.store.history(void 0,void 0,-1)){if(!Dt.safeParse(t.seriesId).success||!Dt.safeParse(t.episodeId).success)continue;let r={id:t.seriesId,title:t.title};if(t.positionMs<t.durationMs)return{...r,episodeId:t.episodeId,kind:"resume"};try{let i=await this.catalog.nextEpisode(t.seriesId,t.episodeId);if(i)return{...r,...i}}catch{continue}}return null}async waitingPicks(t,r,i,n){if(!n())return{items:[]};let o=this.store.turnPicks(t,r);if(o.length)return{items:o};let[a,s]=await Promise.all([this.catalog.waitingRecommendations().catch(()=>[]),this.resumePick()]);return{items:this.store.allocatePicks(t,r,s,a,i,n)}}panel(t,r){let i=this.panels.get(t);if(!i||Date.now()-i.lastSeen>12*36e5)throw new U("\u8BF7\u91CD\u65B0\u6253\u5F00\u77ED\u5267\u9762\u677F",401);if((r?.thread_id!==void 0||r?.threadId!==void 0)&&Rp(r)!==i.caller)throw new U("\u4F1A\u8BDD\u4E0D\u5339\u914D",403);return i.lastSeen=Date.now(),i}async call(t,r,i,n=!1){let o=Xb[r]?.strict().safeParse(i);if(!o?.success)throw new U("\u8BF7\u6C42\u53C2\u6570\u65E0\u6548");let a=o.data;switch(r){case"get_waiting_status":case"browse_waiting_catalog":{let s=t.waiting;if(n||!s)throw new U("\u8BF7\u4ECE\u672C\u8F6E\u63A8\u8350\u4E2D\u9009\u5267",403);return r==="get_waiting_status"?{visible:this.store.offerable(t.sessionId,s.turnId)}:(s.selected=null,s.taken=!1,s.browsing=!0,s.played=!0,{})}case"dismiss_waiting_picks":{let s=a.turnId??t.waiting?.turnId;if(!t.sessionId||!s||t.waiting&&s!==t.waiting.turnId||n&&t.fixedTurn&&s!==t.fixedTurn||!this.store.state(t.sessionId,s).turnId)throw new U("\u8BF7\u4ECE\u672C\u8F6E\u63A8\u8350\u4E2D\u9009\u5267",403);return this.store.dismissPicks(t.sessionId,s)}case"get_waiting_picks":case"mark_waiting_picks_shown":{let s=t.waiting,u=a.turnId??s?.turnId;if(!t.sessionId||!u||n&&t.fixedTurn&&u!==t.fixedTurn||s&&a.turnId&&!s.taken)throw new U("\u8BF7\u4ECE\u672C\u8F6E\u63A8\u8350\u4E2D\u9009\u5267",403);let c=()=>a.turnId?this.store.activeTurn(t.sessionId,u)&&this.store.preferences().autoPrompt&&!this.store.picksDismissed(t.sessionId,u):this.store.offerable(t.sessionId,u);return r==="mark_waiting_picks_shown"?this.store.markPicksShown(t.sessionId,u,c):this.waitingPicks(t.sessionId,u,!!a.inView,c)}case"select_waiting_pick":case"confirm_waiting_playback":case"activate_waiting_player":{let s=t.waiting;if(n||!s)throw new U("\u8BF7\u4ECE\u672C\u8F6E\u63A8\u8350\u4E2D\u9009\u5267",403);if(r==="confirm_waiting_playback")return s.playbackId===a.playbackId&&(s.played=!0),{};if(r==="select_waiting_pick"){if(!this.store.offerable(t.sessionId,s.turnId))throw new U("\u8FD9\u6761\u63A8\u8350\u5DF2\u7ED3\u675F");let c=this.store.turnPicks(t.sessionId,s.turnId).find(l=>l.id===a.seriesId);if(!c)throw new U("\u8BF7\u4ECE\u672C\u8F6E\u63A8\u8350\u4E2D\u9009\u5267",403);return this.store.markPicksShown(t.sessionId,s.turnId,()=>this.store.offerable(t.sessionId,s.turnId)),s.selected=c,s.taken=!1,s.browsing=!1,s.played=!1,s.playbackId=(s.playbackId||0)+1,{}}let u=!!s.selected&&!s.played&&this.store.activeTurn(t.sessionId,s.turnId)&&!this.store.picksDismissed(t.sessionId,s.turnId);return s.taken=!0,s.browsing&&(this.store.dismissPicks(t.sessionId,s.turnId),s.browsing=!1),{pick:s.selected,turnId:s.turnId,play:u,...u?{playbackId:s.playbackId}:{}}}case"set_player_visible":if(t.waiting&&!t.waiting.taken)throw new U("\u8BF7\u4ECE\u672C\u8F6E\u63A8\u8350\u4E2D\u9009\u5267",403);return this.store.playerVisible(t.sessionId,a.instance,a.visible),{};case"get_run_state":{if(!this.store.persistent)throw new U("\u672C\u673A\u4F1A\u8BDD\u72B6\u6001\u4E0D\u53EF\u8FBE",503);if(this.store.touchPlayer(t.sessionId,a.playerInstance),a.observeSession){if(a.turnId||t.waiting&&!t.waiting.taken)throw new U("\u8BF7\u5148\u6253\u5F00\u64AD\u653E\u5668",403);return{...this.store.state(t.sessionId,n?t.fixedTurn:void 0),preferences:this.store.preferences()}}let s=t.waiting?.turnId??(n?t.fixedTurn:null);if(s&&a.turnId&&a.turnId!==s)throw new U("\u64AD\u653E\u5668\u5DF2\u7ED1\u5B9A\u5176\u4ED6\u56DE\u5408",403);let u=s??a.turnId,c=this.store.state(t.sessionId,u);return t.waiting&&c.state==="submitted"&&!this.store.activeTurn(t.sessionId,u)?{...c,state:"unknown"}:c}case"list_sessions":if(n||t.sessionId)throw new U("\u5F53\u524D\u5165\u53E3\u4E0D\u5141\u8BB8\u9009\u62E9\u5176\u4ED6\u4F1A\u8BDD",403);return t.choices.clear(),{items:this.store.candidates().map(s=>{let u=Pu();return t.choices.set(u,s.session_id),{choice:u,suffix:s.session_id.slice(-8),at:s.at}})};case"select_session":if(n||t.sessionId||!t.choices.has(a.choice))throw new U("\u8BF7\u91CD\u65B0\u9009\u62E9\u4F1A\u8BDD",403);return t.sessionId=t.choices.get(a.choice),t.choices.clear(),this.store.state(t.sessionId);case"list_series":return this.catalog.list(a);case"get_cover":return this.catalog.cover(a.seriesId);case"get_episodes":{let s=await this.catalog.episodes(a);t.allowed??=new Set;for(let u of s.items)u.playable&&t.allowed.add(u.id);return s}case"get_history":return{items:this.store.history(a.seriesId,a.episodeId)};case"remove_history":return this.store.removeHistory(a.seriesId);case"read_panel_chunk":if(n||t.streams?.get(a.episodeId)!==a.stream)throw new U("\u8BF7\u5148\u51C6\u5907\u5F53\u524D\u5206\u96C6",403);return this.catalog.panelMedia.chunk(a.episodeId,a.stream,a.asset,a.offset);case"save_progress":if(!this.store.persistent)throw new U("\u672C\u673A\u8FDB\u5EA6\u76EE\u5F55\u4E0D\u53EF\u5199",503);return this.catalog.cache?.hold(a.episodeId),this.store.save(a);case"prepare_playback":{if(!t.allowed?.has(a.episodeId))throw new U("\u8BF7\u5148\u9009\u62E9\u53EF\u64AD\u653E\u7684\u5206\u96C6",403);!n&&t.playing!==a.episodeId&&(this.catalog.panelMedia?.unpin(t.playing,t),t.streams?.clear(),t.playing=a.episodeId);let s=this.catalog.prepare(a.episodeId,n,!!a.retry);return n&&s.status==="ready"&&t.grants.add(a.episodeId),!n&&s.stream&&(this.catalog.panelMedia.pin(a.episodeId,t),t.streams??=new Map,t.streams.set(a.episodeId,s.stream)),s}case"get_preferences":return this.store.preferences();case"set_preferences":{if(!this.store.persistent)throw new U("\u672C\u673A\u8BBE\u7F6E\u76EE\u5F55\u4E0D\u53EF\u5199",503);let s=this.store.preferences(),u=this.store.setPreferences(a);return JSON.stringify(s.searchTerms)!==JSON.stringify(u.searchTerms)&&(this.catalog.feed=null,this.catalog.refresh=null),u}case"get_health":return{runtime:process.version,database:this.store.writable(),ffmpeg:this.catalog.ffmpeg};case"get_setup_status":return this.checkingHooks??=this.checkHooks().finally(()=>{this.checkingHooks=null}),{runtime:process.version,database:this.store.writable(),ffmpeg:this.catalog.ffmpeg,dismissed:this.store.setupDismissed(),hooks:await this.checkingHooks};case"set_setup_dismissed":if(!this.store.persistent)throw new U("\u672C\u673A\u8BBE\u7F6E\u76EE\u5F55\u4E0D\u53EF\u5199",503);return this.store.setSetupDismissed(a.dismissed);case"create_browser_pairing":{if(n)throw new U("\u8BF7\u4ECE\u4F1A\u8BDD\u9762\u677F\u6253\u5F00\u5206\u5C4F",403);let s=a.follow&&this.store.state(t.sessionId,a.turnId);if(a.follow&&(!a.turnId||s.state!=="submitted"))throw new U("\u5F53\u524D\u56DE\u5408\u65E0\u6CD5\u7ED1\u5B9A\uFF0C\u8BF7\u9009\u62E9\u624B\u52A8\u64AD\u653E");return this.pair({sessionId:a.follow===!1?null:t.sessionId,fixedTurn:a.follow?a.turnId:null,selection:a.seriesId?{seriesId:a.seriesId,episodeId:a.episodeId,title:a.title}:null})}}}};import{join as UA}from"node:path";import{pathToFileURL as u9}from"node:url";import{Writable as c9}from"node:stream";import{pipeline as l9}from"node:stream/promises";import{spawn as MF,spawnSync as LF}from"node:child_process";import{createWriteStream as ZF,existsSync as FF,mkdirSync as TA,readdirSync as qF,renameSync as VF,rmSync as la,statSync as DA}from"node:fs";import{basename as BF,dirname as HF,join as da}from"node:path";import{randomUUID as GF}from"node:crypto";import{Transform as JF}from"node:stream";import{pipeline as XF}from"node:stream/promises";var kA=ga(dD(),1),IA=ga(xA(),1);import{open as jF}from"node:fs/promises";import{join as UF}from"node:path";var Lt=()=>new U("\u8BE5\u5206\u6BB5\u7247\u6E90\u6682\u4E0D\u652F\u6301\uFF0C\u53EF\u91CD\u8BD5\u5176\u4ED6\u7247\u6E90");function SA(e,t){let r=e.mediaGroups?.AUDIO?.[t.attributes?.AUDIO]||{},i=Object.values(r);return i.find(n=>n.default)||i[0]}async function T$(e,t,r=0){if(r>3)throw Lt();let i=await t(e,256*1024),n=i.bytes.toString("utf8").trimStart();if(n.startsWith("#EXTM3U")){let p=new kA.Parser;p.push(n),p.end();let h=p.manifest;if(!h.playlists?.length)return[{playlist:h,base:i.url}];let f=h.playlists[0],g=await T$(new URL(f.uri,i.url),t,r+1),b=SA(h,f);if(b?.uri&&g.length===1){let[v]=await T$(new URL(b.uri,i.url),t,r+1);g.push(v)}return g}if(!/<MPD[\s>]/.test(n)||/<!DOCTYPE|<!ENTITY|<ContentProtection|type\s*=\s*["']dynamic/i.test(n))throw Lt();let o=n.match(/mediaPresentationDuration=["']PT(?:(\d+)H)?(?:(\d+)M)?(?:([\d.]+)S)?["']/);if(!o)throw Lt();let a=(+o[1]||0)*3600+(+o[2]||0)*60+(+o[3]||0);if(!(a>0&&a<=3600))throw Lt();let s=p=>Array.from(n.matchAll(p),h=>Number(h[1])),u=s(/\btimescale\s*=\s*["'](.*?)["']/g),c=s(/\br\s*=\s*["'](.*?)["']/g);if(u.some(p=>!Number.isSafeInteger(p)||p<1||p>1e9)||c.some(p=>!Number.isSafeInteger(p)||p<0||p>2048)||c.reduce((p,h)=>p+h,0)>8192||(n.match(/<Representation\b/g)||[]).length>32||(n.match(/<S\s/g)||[]).length>4096)throw Lt();for(let p of s(/\b(?:d|duration)\s*=\s*["']([\d.]+)["']/g))if(!(p>0)||a*Math.max(1,...u)/p>8192)throw Lt();let l=(0,IA.parse)(n,{manifestUri:i.url}),d=l.playlists?.[0];if(!d?.segments?.length)throw Lt();let m=SA(l,d)?.playlists?.[0];return[d,m].filter(Boolean).map(p=>({playlist:p,base:i.url}))}async function EA(e,t,r,{cdn:i,run:n,codec:o,budget:a}){let s=Date.now()+18e4;async function u(d,m,p){let h=Math.min(m,a);if(h<=0||Date.now()>=s)throw Lt();let f=await i(d,h,Math.min(2e4,s-Date.now()),0,p),g=0,b=[];for await(let v of f.body){if(g+=v.byteLength,g>h)throw Lt();b.push(v)}if(!g||p&&g!==p.length)throw Lt();return a-=g,{bytes:Buffer.concat(b),url:f.url}}let c=await T$(e,u),l=[];for(let[d,{playlist:m,base:p}]of c.entries()){let h=m.segments;if(!m.endList||!h?.length||h.length>2048)throw Lt();let f=UF(t,"track"+d),g=await jF(f,"wx",384),b;try{for(let v of h){if(v.key||v.discontinuity||v.gap)throw Lt();for(let y of[v.map,v]){if(!y)continue;let I=new URL(y.resolvedUri||y.uri,p),T=JSON.stringify([I.href,y.byterange]);if(y===v.map&&b===T)continue;if(y===v.map&&b)throw Lt();let{bytes:z}=await u(I,32*1024*1024,y.byterange);await g.writeFile(z),y===v.map&&(b=T)}}}finally{await g.close()}l.push("-protocol_whitelist","file","-f",b?"mov":"mpegts","-i",f)}await n([...l,"-map","0:v:0","-map",c.length===2?"1:a:0":"0:a:0?","-c","copy",.../hevc|h265|bytevc1/i.test(o)?["-tag:v","hvc1"]:[],"-movflags","+faststart","-f","mp4",r])}var sm=1024*1024,AA=256*sm,KF=/(?:^|\.)(?:qznovelvod\.com|byteimg\.com|fqnovelpic\.com|douyinvod\.com|bytecdn\.cn|ibytedtos\.com|snssdk\.com|pstatp\.com)$/i;async function Qu(e,t,r,i=0,n){let o=new URL(e);if(o.protocol==="http:"&&(o.protocol="https:"),o.protocol!=="https:"||o.port||o.username||o.password||!KF.test(o.hostname))throw new U("\u7247\u6E90\u5730\u5740\u4E0D\u5728\u652F\u6301\u7684\u5A92\u4F53\u57DF\u540D\u5185");let a={};if(n){if(!Number.isSafeInteger(n.offset)||n.offset<0||!Number.isSafeInteger(n.length)||n.length<1||n.length>t||!Number.isSafeInteger(n.offset+n.length))throw new U("\u7247\u6E90\u5B57\u8282\u8303\u56F4\u65E0\u6548");a.Range="bytes="+n.offset+"-"+(n.offset+n.length-1)}let s=await fetch(o,{headers:a,redirect:"manual",signal:AbortSignal.timeout(r)});if([301,302,303,307,308].includes(s.status)&&i<3&&s.headers.get("location"))return await s.body?.cancel(),Qu(new URL(s.headers.get("location"),o),t,r,i+1,n);if(!(!n||s.status===206&&s.headers.get("content-range")?.split("/")[0]==="bytes "+n.offset+"-"+(n.offset+n.length-1))||!s.ok||!s.body||Number(s.headers.get("content-length"))>t)throw await s.body?.cancel(),new U("\u5A92\u4F53\u5730\u5740\u5DF2\u5931\u6548\u6216\u8D85\u8FC7\u5927\u5C0F\u9650\u5236\uFF0C\u8BF7\u91CD\u8BD5");let c=0,l=new JF({transform(d,m,p){c+=d.length,p(c>t?new U("\u7D20\u6750\u8D85\u8FC7\u5927\u5C0F\u9650\u5236"):null,d)}});return{body:s.body,limit:l,url:o.href}}var NA=Mp("ffmpeg",process.env.HONGGUO_FFMPEG);function zA(){return LF(NA,["-version"],{stdio:"ignore",timeout:2500,windowsHide:!0}).status===0}function fa(e,t=null,r=!1,i=void 0){return new Promise((n,o)=>{let a=MF(NA,["-hide_banner","-loglevel","error","-nostdin",...e],{cwd:i,stdio:["pipe",r?"pipe":"ignore","ignore"],windowsHide:!0,timeout:12e4,killSignal:"SIGKILL"}),s=[],u=0;a.stdout?.on("data",c=>{u+=c.length,u<=sm?s.push(c):a.kill()}),a.stdin.on("error",()=>{}),a.stdin.end(t),a.on("error",()=>o(new U("FFmpeg \u542F\u52A8\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u672C\u673A\u5B89\u88C5"))),a.on("close",c=>c===0&&u<=sm?n(Buffer.concat(s)):o(new U("FFmpeg \u65E0\u6CD5\u5904\u7406\u8BE5\u7D20\u6750\u6216\u5F53\u524D\u7F16\u7801")))})}async function WF(e,t,r,i){let n=BF(e);if(!/^[a-zA-Z0-9.-]+$/.test(n)||i&&!/^[0-9a-f]{32}$/i.test(i))throw new U("\u5206\u96C6\u6388\u6743\u6216\u7D20\u6750\u540D\u79F0\u65E0\u6548");let o=i?`ffconcat version 1.0
130
+ file 'file:`+n+`'
131
+ option decryption_key `+i+`
132
+ `:null;await fa(["-protocol_whitelist","file,pipe",...i?["-format_whitelist","concat,mov","-safe","0","-f","concat","-i","pipe:0"]:["-f","mov","-i",e],"-map","0:v:0","-map","0:a:0?","-c","copy",.../hevc|h265|bytevc1/i.test(r)?["-tag:v","hvc1"]:[],"-movflags","+faststart","-f","mp4",t],o,!1,HF(e))}var um=class{constructor(t,r,{maxFiles:i=40,maxBytes:n=1024*sm}={}){this.db=t.db,this.resolve=r,this.dir=da(t.root,"media"),this.maxFiles=i,this.maxBytes=n,TA(this.dir,{recursive:!0,mode:448}),this.db.exec(`CREATE TABLE IF NOT EXISTS media (
133
+ id TEXT PRIMARY KEY, status TEXT, owner TEXT, expires INTEGER, accessed INTEGER, size INTEGER DEFAULT 0,
134
+ codec TEXT DEFAULT '', reason TEXT DEFAULT '', hold_until INTEGER DEFAULT 0)`);for(let o of qF(this.dir))/^[a-f0-9-]+\.part\.(source|mp4)$/.test(o)&&Date.now()-DA(da(this.dir,o),{throwIfNoEntry:!1})?.mtimeMs>36e5&&la(da(this.dir,o),{recursive:!0,force:!0})}transaction(t){this.db.exec("BEGIN IMMEDIATE");try{let r=t();return this.db.exec("COMMIT"),r}catch(r){throw this.db.exec("ROLLBACK"),r}}path(t){if(!/^hg-[0-9]{1,32}$/.test(t))throw new U("\u65E0\u6548\u5206\u96C6");return da(this.dir,t+".mp4")}hold(t){this.db.prepare("UPDATE media SET hold_until=?,accessed=? WHERE id=? AND status='ready'").run(Date.now()+12e4,Date.now(),t)}prepare(t,r=!1){let i=this.path(t),n=Date.now(),o=GF(),a=this.transaction(()=>{let s=this.db.prepare("SELECT * FROM media WHERE id=?").get(t);return s?.status==="ready"&&FF(i)?(this.hold(t),{status:"ready",codec:s.codec}):s?.status==="error"&&!r&&s.expires>n?{status:"error",reason:s.reason}:s?.status==="working"&&s.expires>n?{status:"preparing"}:this.db.prepare("SELECT count(*) AS n FROM media WHERE status='working' AND expires>?").get(n).n>=2?{status:"preparing"}:(this.db.prepare(`INSERT INTO media(id,status,owner,expires,accessed) VALUES(?,'working',?,?,?)
135
+ ON CONFLICT(id) DO UPDATE SET status='working', owner=excluded.owner,expires=excluded.expires,accessed=excluded.accessed`).run(t,o,n+6e5,n),null)});return a||(this.build(t,o).catch(()=>{}),{status:"preparing"})}async build(t,r){let i=da(this.dir,r+".part.source"),n=da(this.dir,r+".part.mp4");try{let{playback:o,contentKey:a}=await this.resolve(t.slice(3)),s=(o.streams||[]).filter(h=>h.url),u=s.find(h=>!h.hls&&!h.dash),c=a?.key,l=[u&&(u.protected||o.protected)?u:void 0,s.find(h=>h.hls),s.find(h=>h.dash),u].filter(Boolean),d,m=new U("\u8BE5\u96C6\u6682\u672A\u63D0\u4F9B\u53EF\u64AD\u653E\u7684\u7247\u6E90");for(let h of new Set(l)){d=String(h.codec||"MP4").replace(/[^\w.-]/g,"").slice(0,24);try{if(h.hls||h.dash){if(h.protected||o.protected)throw new U("\u8BE5\u5206\u6BB5\u7247\u6E90\u9700\u8981\u5355\u6587\u4EF6\u64AD\u653E\u6388\u6743");TA(i,{mode:448}),await EA(h.url,i,n,{cdn:Qu,run:fa,codec:d,budget:AA})}else{if((o.protected||h.protected)&&!/^[a-f0-9]{32}$/i.test(c||""))throw new U("\u7247\u6E90\u672A\u63D0\u4F9B\u53EF\u7528\u7684\u64AD\u653E\u6388\u6743");let{body:f,limit:g}=await Qu(h.url,AA,6e4);await XF(f,g,ZF(i,{mode:384,flags:"wx"})),await WF(i,n,d,c)}m=null;break}catch(f){m=f,la(n,{force:!0})}finally{la(i,{recursive:!0,force:!0})}}if(m)throw m;let p=DA(n).size;this.transaction(()=>{if(this.db.prepare("SELECT owner FROM media WHERE id=?").get(t)?.owner!==r)return;let h=this.db.prepare("SELECT id,size,hold_until FROM media WHERE status='ready' ORDER BY accessed").all(),f=p+h.reduce((v,y)=>v+y.size,0),g=h.length+1,b=[];for(let v of h){if(f<=this.maxBytes&&g<=this.maxFiles)break;v.hold_until>Date.now()||(b.push(v.id),f-=v.size,g--)}if(f>this.maxBytes||g>this.maxFiles)throw new U("\u7F13\u5B58\u5DF2\u6EE1\uFF0C\u7A0D\u540E\u91CD\u8BD5");for(let v of b)la(this.path(v),{force:!0}),this.db.prepare("DELETE FROM media WHERE id=?").run(v);VF(n,this.path(t)),this.db.prepare("UPDATE media SET status='ready',size=?,codec=?,hold_until=? WHERE id=?").run(p,d,Date.now()+12e4,t)})}catch(o){this.db.prepare("UPDATE media SET status='error',reason=?,expires=? WHERE id=? AND owner=?").run(o instanceof U?o.message:"\u5A92\u4F53\u51C6\u5907\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",Date.now()+3e4,t,r)}finally{la(i,{recursive:!0,force:!0}),la(n,{force:!0})}}};import{randomUUID as YF}from"node:crypto";import{mkdirSync as PA,readdirSync as OA,rmSync as D$,statSync as QF,utimesSync as e9}from"node:fs";import{open as t9,readFile as r9}from"node:fs/promises";import{join as pa}from"node:path";var CA=10*6e4,n9=192*1024,jA=2,i9=/^(?:init\.mp4|seg[0-9]{5}\.m4s)$/,o9={darwin:["h264_videotoolbox"],win32:["h264_nvenc","h264_qsv","h264_amf"],linux:["h264_nvenc","h264_qsv","h264_vaapi","h264_v4l2m2m"]},RA=["-f","hls","-hls_time",String(jA),"-hls_list_size","0","-hls_segment_type","fmp4","-hls_playlist_type","vod","-hls_segment_filename","seg%05d.m4s","index.m3u8"];async function a9(e,t){let i=(await e([...t,"-c","copy","-frames:v","0","-frames:a","0","-f","framehash","pipe:1"],null,!0)).toString("utf8"),n=/^#codec_id 0: (\S+)/m.exec(i)?.[1];if(!n)throw Error("Missing video stream");return{video:n,audio:/^#codec_id 1: (\S+)/m.exec(i)?.[1]}}function s9(e,t){let r=e==="libx264",i="pad=ceil(iw/2)*2:ceil(ih/2)*2,format="+(r?"yuv420p":"nv12");return["-vf",e==="h264_vaapi"?i+",hwupload":i,"-c:v",e,"-tag:v","avc1","-force_key_frames",`expr:gte(t,n_forced*${jA})`,...r?["-preset","veryfast","-crf","22"]:["-b:v","3M"],...e==="h264_videotoolbox"?["-allow_sw","0"]:[],"-c:a",t]}var cm=class{constructor(t,r=fa){this.root=pa(t,"panel-media"),this.run=r,this.entries=new Map,PA(this.root,{recursive:!0,mode:448});for(let i of OA(this.root,{withFileTypes:!0})){let n=pa(this.root,i.name);i.isDirectory()&&/^[0-9a-f-]{36}$/.test(i.name)&&Date.now()-QF(n,{throwIfNoEntry:!1})?.mtimeMs>864e5&&D$(n,{recursive:!0,force:!0})}this.timer=setInterval(()=>this.sweep(),CA).unref()}drop(t){this.entries.delete(t.id),D$(t.dir,{recursive:!0,force:!0})}sweep(){for(let t of this.entries.values())!t.pending&&Date.now()-t.used>CA&&this.drop(t)}touch(t){let r=Date.now();r-(t.touched||0)>6e4&&(e9(t.dir,new Date(r),new Date(r)),t.touched=r),t.used=r}prepare(t,r,i,n){this.sweep();let o=this.entries.get(t);if(o?.error&&i&&(this.drop(o),o=null),!o){if(this.entries.size>=4){let u=[...this.entries.values()].filter(c=>!c.pending&&(!c.viewers.size||Date.now()-c.used>3e4)).sort((c,l)=>c.used-l.used)[0];if(!u)throw new U("\u4FA7\u680F\u64AD\u653E\u5668\u6B63\u5FD9\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u6216\u4F7F\u7528\u5206\u5C4F");this.drop(u)}let a=YF(),s=pa(this.root,a);PA(s,{mode:448}),o={id:t,dir:s,stream:a,used:Date.now(),pending:!0,viewers:new Set},this.entries.set(t,o),o.job=this.build(o,r,n).catch(()=>{o.error=!0}).finally(()=>{o.pending=!1})}if(this.touch(o),o.pending)return{status:"preparing"};if(o.error)throw new U("\u4FA7\u680F\u5206\u6BB5\u51C6\u5907\u5931\u8D25\uFF0C\u53EF\u4F7F\u7528\u540C\u7A97\u5206\u5C4F");return{status:"ready",stream:o.stream,manifest:o.manifest,codec:o.codec}}async build(t,r,i){let n=["-protocol_whitelist","file","-f","mov","-i",r,"-map","0:v:0","-map","0:a:0?"],o=await a9(this.run,n),a=o.audio&&o.audio!=="aac"?"aac":"copy",s=o.video==="hevc"||/bytevc1|hevc|h\.?265|hvc1|hev1/i.test(i??"");if(s)for(let c of[...o9[process.platform]??[],"libx264"]){let l=c==="h264_vaapi"?["-init_hw_device","vaapi=panel","-filter_hw_device","panel"]:[];try{let d=s9(c,a);await this.run([...l,...n,...d,...RA],null,!1,t.dir);break}catch(d){if(c==="libx264")throw d;for(let m of OA(t.dir))D$(pa(t.dir,m),{force:!0})}}else{let c=a==="copy"?["-c","copy"]:["-c:v","copy","-c:a",a];await this.run([...n,...c,...RA],null,!1,t.dir)}let u=await r9(pa(t.dir,"index.m3u8"),"utf8");if(u.length>256*1024)throw Error("playlist limit");t.codec=s?"h264":o.video,t.manifest=u}async chunk(t,r,i,n){let o=this.entries.get(t);if(!o||o.stream!==r||!o.manifest||!i9.test(i))throw new U("\u8BE5\u64AD\u653E\u5206\u6BB5\u5DF2\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u70B9\u64AD",404);this.touch(o);let a=await t9(pa(o.dir,i),"r");try{let{size:s}=await a.stat();if(s>32*1024*1024||n>=s)throw new U("\u5206\u6BB5\u8D85\u51FA\u652F\u6301\u8303\u56F4");let u=Buffer.alloc(Math.min(n9,s-n)),{bytesRead:c}=await a.read(u,0,u.length,n);if(c!==u.length)throw new U("\u5206\u6BB5\u8BFB\u53D6\u5931\u8D25");return{size:s,bytes:u.toString("base64")}}finally{await a.close()}}pin(t,r){this.entries.get(t)?.viewers.add(r)}unpin(t,r){this.entries.get(t)?.viewers.delete(r)}close(){clearInterval(this.timer);for(let t of this.entries.values())t.pending?t.job.finally(()=>this.drop(t)):this.drop(t)}};function MA(e){let t={ANONYMOUS_LIMITED:"\u4E0A\u6E38\u6682\u65F6\u9650\u5236\u533F\u540D\u64AD\u653E",RATE_LIMITED:"\u8BF7\u6C42\u8FC7\u4E8E\u9891\u7E41",AUTHENTICATION_REQUIRED:"\u7247\u6E90\u9700\u8981\u767B\u5F55",CONTENT_UNAVAILABLE:"\u7247\u6E90\u6682\u4E0D\u53EF\u7528"};return new U((t[e?.code]||"\u7EA2\u679C\u7247\u6E90\u6682\u65F6\u4E0D\u53EF\u8FBE")+"\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5",503)}var lm=class{constructor(t){this.store=t,this.ffmpeg=zA(),this.covers=new Map,this.coverLookups=new Map,this.episodePages=new Map,this.coverJobs=0}async sdk(){return this.client??=import(u9(UA(In,"dist/vendor/openhongguo/index.js")).href).then(t=>t.createClient({profile:process.env.HONGGUO_PROFILE_PATH||UA(this.store.root,"device","anonymous.json"),timeoutMs:1e4,retryAttempts:2,deviceResets:2})).catch(t=>{throw this.client=null,MA(t)}),this.client}async sdkCall(t,...r){try{return await(await this.sdk())[t](...r)}catch(i){throw MA(i)}}async list({query:t="",cursor:r,preview:i}={}){if(!t)return{items:await this.recommendations(i),cursor:null};let n=await this.sdkCall("search",t,{cursor:r,pageSize:16,filters:["content_type_short_play"]});return{items:this.rows(n,!0),cursor:n.has_more&&n.cursor||null}}async recommendations(t=!1){if(t){let r=this.feed?.items??this.store.waitingFeed(!0);if(r.length)return r}if(this.feed&&Date.now()-this.feed.at<15*6e4)return this.feed.items;if(!this.refresh){let r=Promise.withResolvers();this.firstPage=r.promise;let i=this.collectFeed(r.resolve).then(n=>{let o=n.filter(s=>s.hasCover),a=(o.length>=12?o:n).slice(0,48);if(n.length&&this.refresh===i){let s=this.store.saveWaitingFeed(n);this.feed={items:a,titles:s,at:Date.now()}}return a}).finally(()=>{this.refresh===i&&(this.refresh=null,this.firstPage=null)});this.refresh=i}return t?Promise.race([this.firstPage,this.refresh]):this.refresh}async waitingRecommendations(){let t=this.store.waitingFeed();if(t.length)return t;let r=this.recommendations();return this.feed?(r.catch(()=>{}),this.feed.titles):(await r,this.feed?.titles??[])}async collectFeed(t){let r=new Map,i=new Set,n=s=>{let u=!r.size;for(let c of this.rows(s))(!r.has(c.id)||!r.get(c.id).hasCover&&c.hasCover)&&r.set(c.id,c);u&&r.size&&t([...r.values()])},o,a;for(let s=0;s<6&&r.size<48;s++)try{let u=await this.sdkCall("discover",{cursor:o});if(n(u),o=u.has_more&&u.cursor,!o||i.has(o))break;i.add(o)}catch(u){a=u;break}for(let s of this.store.preferences().searchTerms){if(r.size>=24)break;try{n(await this.sdkCall("search",s,{filters:["content_type_short_play"]}))}catch(u){a=u}}if(!r.size&&a)throw a;return[...r.values()]}rows(t,r=!1){let i=(t.items||[]).filter(n=>/^\d{1,32}$/.test(n.id)).map(n=>{let o="hg-"+n.id;return n.cover_url&&this.covers.get(o)?.url!==n.cover_url&&this.covers.set(o,{url:n.cover_url}),{id:o,title:n.title,description:n.description||"",episodes:n.episode_count||null,hasCover:!!this.covers.get(o)?.url,...r?{lookupCover:!0}:{}}});for(;this.covers.size>160;)this.covers.delete(this.covers.keys().next().value);return i}async cover(t){if(!this.ffmpeg)return{cover:null};let r=this.covers.get(t);if(r?.cover!==void 0)return{cover:r.cover};if(this.coverLookups.has(t))return this.coverLookups.get(t);if(this.coverJobs>=3)return{cover:null};this.coverJobs++;let i=this.loadCover(t).finally(()=>{this.coverJobs--,this.coverLookups.delete(t)});return this.coverLookups.set(t,i),i}async loadCover(t){let r=this.covers.get(t);try{if(!r?.url){let s=await this.sdkCall("getSeries",t.slice(3));if(!s?.cover_url)return{cover:null};for(r={url:s.cover_url},this.covers.set(t,r);this.covers.size>160;)this.covers.delete(this.covers.keys().next().value)}let{body:i,limit:n}=await Qu(r.url,3*1024*1024,7e3),o=[];await l9(i,n,new c9({write(s,u,c){o.push(s),c()}}));let a=await fa(["-protocol_whitelist","pipe","-i","pipe:0","-vf","scale=240:320:force_original_aspect_ratio=decrease","-frames:v","1","-f","image2pipe","-c:v","mjpeg","pipe:1"],Buffer.concat(o),!0);r.cover="data:image/jpeg;base64,"+a.toString("base64")}catch{return{cover:null}}return{cover:r.cover}}async episodes({seriesId:t,cursor:r}){let i=JSON.stringify([t,r]),n=this.episodePages.get(i);if(n&&Date.now()-n.at<15*6e4)return n.page;let o=this.loadEpisodes(t,r);this.episodePages.delete(i),this.episodePages.set(i,{at:Date.now(),page:o}),this.episodePages.size>64&&this.episodePages.delete(this.episodePages.keys().next().value);try{return await o}catch(a){throw this.episodePages.get(i)?.page===o&&this.episodePages.delete(i),a}}async loadEpisodes(t,r){let i=await this.sdkCall("listEpisodes",t.slice(3),{cursor:r,pageSize:120});return{items:(i.items||[]).filter(n=>/^\d{1,32}$/.test(n.id)).map(n=>({id:"hg-"+n.id,number:n.number,label:n.title||"\u7B2C "+n.number+" \u96C6",codec:"",playable:n.playable!==!1&&this.ffmpeg})),cursor:i.has_more&&i.cursor||null}}async nextEpisode(t,r){let i,n=!1,o=new Set,a=new Set;do{let s=await this.episodes({seriesId:t,cursor:i});for(let u of s.items)if(!a.has(u.id)){if(a.add(u.id),u.id===r)n=!0;else if(n&&u.playable){let[c]=this.store.history(t,u.id);if(!c||c.positionMs<c.durationMs)return{episodeId:u.id,kind:c?"resume":"next"}}}if(i=s.cursor,o.has(i))break;o.add(i)}while(i);return null}prepare(t,r,i){if(!this.ffmpeg)throw new U("\u7EA2\u679C\u6574\u96C6\u9700\u8981 FFmpeg\uFF0C\u8BF7\u5B89\u88C5\u540E\u91CD\u542F\u64AD\u653E\u5668");this.cache??=new um(this.store,o=>this.sdkCall("resolvePlayback",o));let n=this.cache.prepare(t,i);return n.status!=="ready"?n:r?{...n,src:"media/"+t}:(this.panelMedia??=new cm(this.store.root),{...n,...this.panelMedia.prepare(t,this.cache.path(t),i,n.codec)})}};import{createServer as d9}from"node:http";import{createReadStream as f9,statSync as p9,readFileSync as m9}from"node:fs";import{join as h9}from"node:path";import{randomBytes as LA}from"node:crypto";function g9(e,t){if(e===void 0)return null;let r=/^bytes=(\d*)-(\d*)$/.exec(e);if(!r||!r[1]&&!r[2]||t===0)return!1;let i=Number(r[1]),n=Number(r[2]);if(!Number.isSafeInteger(i)||!Number.isSafeInteger(n))return!1;let o=r[1]?i:Math.max(0,t-n),a=r[1]&&r[2]?Math.min(t-1,n):t-1;return o>=t||a<o?!1:[o,a]}async function ZA(e){if(e.headers["content-type"]?.split(";")[0]!=="application/json")throw new U("\u9700\u8981 JSON \u8BF7\u6C42",415);let t=[],r=0;for await(let i of e){if(r+=i.length,r>16384)throw new U("\u8BF7\u6C42\u8FC7\u5927",413);t.push(i)}try{return JSON.parse(Buffer.concat(t).toString())}catch{throw new U("\u8BF7\u6C42\u683C\u5F0F\u65E0\u6548")}}var v9=`<!doctype html><html lang="zh-CN"><meta charset="utf-8"><title>\u7EA2\u679C\u77ED\u5267 \xB7 \u8FDE\u63A5\u5206\u5C4F</title><p>\u6B63\u5728\u8FDE\u63A5\u672C\u673A\u4F1A\u8BDD\u2026</p><script nonce="__NONCE__">
136
+ (async()=>{const ticket=location.hash.slice(1);history.replaceState(null,'','/pair');
137
+ try {const r=await fetch('/exchange',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({ticket})});
138
+ if(!r.ok)throw Error();location.replace((await r.json()).page);}catch{document.querySelector('p').textContent='\u5206\u5C4F\u94FE\u63A5\u5DF2\u8FC7\u671F\u6216\u5DF2\u4F7F\u7528\u3002\u8BF7\u56DE\u5230\u77ED\u5267\u9762\u677F\u91CD\u65B0\u83B7\u53D6\u3002';}})()
139
+ </script></html>`,dm=class{constructor(t){this.service=t,this.tickets=new Map,this.sessions=new Map}async listen(){return this.starting||(this.server=d9((t,r)=>this.request(t,r).catch(i=>{if(r.headersSent){r.destroy();return}r.writeHead(i instanceof U?i.status:503,{"Content-Type":"application/json"}),r.end(JSON.stringify({error:jp(i)}))})),this.server.headersTimeout=1e4,this.server.requestTimeout=15e3,this.starting=new Promise((t,r)=>{this.server.once("error",r),this.server.listen(0,"127.0.0.1",()=>{this.origin="http://127.0.0.1:"+this.server.address().port,t()})}).catch(t=>{throw this.starting=null,t})),this.starting}prune(){for(let t of[this.sessions,this.tickets])for(let[r,i]of t)i.expires<Date.now()&&t.delete(r)}async pair(t){await this.listen(),this.prune();let r=Pu();return this.tickets.set(r,{scope:t,expires:Date.now()+6e4}),{url:this.origin+"/pair#"+r,expiresIn:60}}async request(t,r){if(r.setHeader("Cache-Control","no-store"),r.setHeader("Referrer-Policy","no-referrer"),r.setHeader("X-Content-Type-Options","nosniff"),t.headers.host!==new URL(this.origin).host)throw new U("\u4E3B\u673A\u65E0\u6548",403);if(t.method==="POST"&&t.headers.origin!==this.origin)throw new U("\u8BF7\u6C42\u6765\u6E90\u65E0\u6548",403);let i=t.url,n=LA(16).toString("base64");r.setHeader("Content-Security-Policy",`default-src 'none'; script-src 'nonce-${n}'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; media-src 'self' blob:; connect-src 'self'; frame-ancestors 'none'; base-uri 'none'; form-action 'none'`);let o=l=>{r.setHeader("Content-Type","text/html; charset=utf-8"),r.end(l.replaceAll("__NONCE__",n))},a=l=>{r.setHeader("Content-Type","application/json"),r.end(JSON.stringify(l))};if(i==="/pair"&&t.method==="GET")return o(v9);if(this.prune(),i==="/exchange"&&t.method==="POST"){let l=await ZA(t),d=this.tickets.get(l?.ticket);if(!d||d.expires<Date.now())throw new U("\u5206\u5C4F\u94FE\u63A5\u65E0\u6548",403);this.tickets.delete(l.ticket);let m=LA(12).toString("hex"),p=Pu(),h="/p/"+m+"/";return this.sessions.set(m,{...d.scope,key:p,grants:new Set,expires:Date.now()+12*36e5}),r.setHeader("Set-Cookie","hg="+p+"; Path="+h+"; HttpOnly; SameSite=Strict"),a({page:h})}let s=/^\/p\/([a-f0-9]{24})\/(.*)$/.exec(i),u=s&&this.sessions.get(s[1]);if(!u||!(t.headers.cookie||"").split(/;\s*/).includes("hg="+u.key))throw new U("\u8BF7\u4ECE\u4F1A\u8BDD\u9762\u677F\u91CD\u65B0\u6253\u5F00\u5206\u5C4F",401);u.expires=Date.now()+12*36e5;let c=s[2];if(!c&&t.method==="GET")return o(m9(h9(In,"dist/ui/player.html"),"utf8").replace('data-host="panel"','data-host="browser"'));if(c==="context"&&t.method==="GET")return a({identified:!!u.sessionId,turnId:u.fixedTurn,selection:u.selection});if(c.startsWith("api/")&&t.method==="POST")return a(await this.service.call(u,c.slice(4),await ZA(t),!0));if(c.startsWith("media/")&&["GET","HEAD"].includes(t.method)){let l=c.slice(6);if(!u.grants.has(l))throw new U("\u8BF7\u5148\u9009\u62E9\u8BE5\u96C6",403);let d=this.service.catalog.cache?.path(l);if(!d)throw new U("\u7D20\u6750\u5F85\u91CD\u65B0\u51C6\u5907",404);let m=p9(d,{throwIfNoEntry:!1})?.size;if(!m)throw new U("\u7F13\u5B58\u5DF2\u6E05\u7406\uFF0C\u8BF7\u91CD\u65B0\u51C6\u5907\u8BE5\u96C6",404);this.service.catalog.cache?.hold(l);let p=g9(t.headers.range,m);if(r.setHeader("Accept-Ranges","bytes"),r.setHeader("Content-Type","video/mp4"),p===!1)return r.writeHead(416,{"Content-Range":"bytes */"+m}),r.end();let[h,f]=p||[0,m-1];if(p&&r.setHeader("Content-Range",`bytes ${h}-${f}/${m}`),r.writeHead(p?206:200,{"Content-Length":f-h+1}),t.method==="HEAD")return r.end();let g=f9(d,{start:h,end:f}),b=setInterval(()=>this.service.catalog.cache?.hold(l),3e4);r.on("close",()=>{clearInterval(b),g.destroy()}),g.on("error",()=>r.destroy()),g.pipe(r);return}throw new U("\u627E\u4E0D\u5230\u8BE5\u9875\u9762",404)}close(){this.server?.closeAllConnections(),this.server?.close()}};process.umask(63);var ec;try{ec=new zu}catch{ec=new zu(void 0,!0)}var N$=new lm(ec),ma=new Lp(ec,N$),qA=new dm(ma);ma.pair=e=>qA.pair(e);var di=new zp({name:"codex-hongguo",version:oT.version}),VA="ui://hongguo/v14/player",fm="ui://hongguo/v14/waiting",A$="text/html;profile=mcp-app",BA={visibility:["app"]},FA={ui:{csp:{connectDomains:[],resourceDomains:["blob:"]},prefersBorder:!1}};for(let[e,t]of[[VA,"\u7EA2\u679C\u77ED\u5267"],[fm,"\u7B49\u5F85\u65F6\u770B\u4E00\u96C6"]]){let r=e===fm,i=r?{...FA,"openai/widgetShowCodexWidgetInline":!0,"openai/widgetHeightHint":96,"openai/widgetMinFrameHeight":1,"openai/ui":{availableDisplayModes:["inline","fullscreen"],preferredDisplayMode:"inline"}}:FA,n=o=>{let a=y9(_9(In,"dist/ui/player.html"),"utf8");return{contents:[{uri:o.href,mimeType:A$,_meta:i,text:r?a.replace('data-surface="player"','data-surface="waiting"'):a}]}};di.registerResource(t,e,{mimeType:A$,_meta:i},n);for(let o of["ui://hongguo/","ui://hongguo/v2/","ui://hongguo/v3/","ui://hongguo/v4/","ui://hongguo/v5/","ui://hongguo/v6/","ui://hongguo/v7/","ui://hongguo/v8/","ui://hongguo/v9/","ui://hongguo/v10/","ui://hongguo/v11/","ui://hongguo/v12/","ui://hongguo/v13/"]){let a=o+(r?"waiting":"player");if(a===e)continue;let s=new Pp(a,{list:void 0});di.registerResource(t+"\uFF08"+o+"\uFF09",s,{mimeType:A$,_meta:i},n)}}di.registerTool("show_waiting_picks",{title:"\u7B49\u5F85\u65F6\u770B\u4E00\u96C6",description:"Show optional Hongguo titles inline when requested by the Hongguo turn-start hook. Returns immediately.",inputSchema:{turnId:q.string().regex(/^[A-Za-z0-9_-]{1,128}$/)},annotations:{readOnlyHint:!0,openWorldHint:!1},_meta:{ui:{visibility:["model"],resourceUri:fm},"openai/ui":{preferredModelDisplayMode:"inline"}}},({turnId:e},t)=>{let r=ma.openWaiting(t._meta,e);return{content:[],structuredContent:{shown:!!r},_meta:r?{panel:r.panel,waitingTurn:e,ui:{resourceUri:fm}}:{}}});di.registerTool("open_drama_panel",{title:"\u7EA2\u679C\u77ED\u5267",description:"\u5728\u5F53\u524D\u4F1A\u8BDD\u9009\u5267\u4E0E\u7EED\u64AD",inputSchema:{},_meta:{ui:{...BA,resourceUri:VA},"openai/ui":{entrypoints:[{type:"thread"},{type:"global"}]}}},(e,t)=>{let r=ma.open(t._meta);return N$.recommendations().catch(()=>{}),{content:[],structuredContent:{state:r.state,identified:r.identified},_meta:{panel:r.panel}}});for(let[e,t]of Object.entries(Xb))di.registerTool(e,{inputSchema:{...t.shape,panel:q.string().max(80)},_meta:{ui:BA}},async({panel:r,...i},n)=>{try{let o=await ma.call(ma.panel(r,n._meta),e,i);return{content:[],_meta:{data:o}}}catch(o){return{isError:!0,content:[{type:"text",text:jp(o)}]}}});di.server.onclose=()=>{N$.panelMedia?.close(),qA.close(),ec.close()};await di.connect(new Cp);
140
+ /*! Bundled license information:
141
+
142
+ m3u8-parser/dist/m3u8-parser.cjs.js:
143
+ (*! @name m3u8-parser @version 7.2.1 @license Apache-2.0 *)
144
+
145
+ mpd-parser/dist/mpd-parser.cjs.js:
146
+ (*! @name mpd-parser @version 1.4.1 @license Apache-2.0 *)
147
+ */