cursor-mcp-feedback 2.0.6 → 2.0.7

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 (2) hide show
  1. package/dist/mcp-app.html +62 -61
  2. package/package.json +1 -1
package/dist/mcp-app.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>MCP Feedback</title>
7
- <script type="module" crossorigin>var xw=Object.defineProperty;var ww=(i,r,o)=>r in i?xw(i,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[r]=o;var te=(i,r,o)=>ww(i,typeof r!="symbol"?r+"":r,o);(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))l(n);new MutationObserver(n=>{for(const u of n)if(u.type==="childList")for(const s of u.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&l(s)}).observe(document,{childList:!0,subtree:!0});function o(n){const u={};return n.integrity&&(u.integrity=n.integrity),n.referrerPolicy&&(u.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?u.credentials="include":n.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function l(n){if(n.ep)return;n.ep=!0;const u=o(n);fetch(n.href,u)}})();var Yf={exports:{}},$o={};/**
7
+ <script type="module" crossorigin>var Tw=Object.defineProperty;var Ew=(i,r,o)=>r in i?Tw(i,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[r]=o;var ne=(i,r,o)=>Ew(i,typeof r!="symbol"?r+"":r,o);(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))l(n);new MutationObserver(n=>{for(const u of n)if(u.type==="childList")for(const s of u.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&l(s)}).observe(document,{childList:!0,subtree:!0});function o(n){const u={};return n.integrity&&(u.integrity=n.integrity),n.referrerPolicy&&(u.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?u.credentials="include":n.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function l(n){if(n.ep)return;n.ep=!0;const u=o(n);fetch(n.href,u)}})();var Vf={exports:{}},zo={};/**
8
8
  * @license React
9
9
  * react-jsx-runtime.production.js
10
10
  *
@@ -12,7 +12,7 @@
12
12
  *
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
- */var c_;function Tw(){if(c_)return $o;c_=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(l,n,u){var s=null;if(u!==void 0&&(s=""+u),n.key!==void 0&&(s=""+n.key),"key"in n){u={};for(var m in n)m!=="key"&&(u[m]=n[m])}else u=n;return n=u.ref,{$$typeof:i,type:l,key:s,ref:n!==void 0?n:null,props:u}}return $o.Fragment=r,$o.jsx=o,$o.jsxs=o,$o}var s_;function Ew(){return s_||(s_=1,Yf.exports=Tw()),Yf.exports}var ee=Ew(),Xf={exports:{}},pe={};/**
15
+ */var s_;function Ow(){if(s_)return zo;s_=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(l,n,u){var s=null;if(u!==void 0&&(s=""+u),n.key!==void 0&&(s=""+n.key),"key"in n){u={};for(var m in n)m!=="key"&&(u[m]=n[m])}else u=n;return n=u.ref,{$$typeof:i,type:l,key:s,ref:n!==void 0?n:null,props:u}}return zo.Fragment=r,zo.jsx=o,zo.jsxs=o,zo}var d_;function Uw(){return d_||(d_=1,Vf.exports=Ow()),Vf.exports}var P=Uw(),Pf={exports:{}},fe={};/**
16
16
  * @license React
17
17
  * react.production.js
18
18
  *
@@ -20,7 +20,7 @@
20
20
  *
21
21
  * This source code is licensed under the MIT license found in the
22
22
  * LICENSE file in the root directory of this source tree.
23
- */var d_;function Ow(){if(d_)return pe;d_=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),s=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),_=Symbol.iterator;function z(k){return k===null||typeof k!="object"?null:(k=_&&k[_]||k["@@iterator"],typeof k=="function"?k:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,J={};function F(k,q,X){this.props=k,this.context=q,this.refs=J,this.updater=X||x}F.prototype.isReactComponent={},F.prototype.setState=function(k,q){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,q,"setState")},F.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function se(){}se.prototype=F.prototype;function de(k,q,X){this.props=k,this.context=q,this.refs=J,this.updater=X||x}var be=de.prototype=new se;be.constructor=de,H(be,F.prototype),be.isPureReactComponent=!0;var Ee=Array.isArray;function ue(){}var G={H:null,A:null,T:null,S:null},ge=Object.prototype.hasOwnProperty;function Ae(k,q,X){var K=X.ref;return{$$typeof:i,type:k,key:q,ref:K!==void 0?K:null,props:X}}function Ut(k,q){return Ae(k.type,q,k.props)}function _t(k){return typeof k=="object"&&k!==null&&k.$$typeof===i}function Dt(k){var q={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(X){return q[X]})}var Zn=/\/+/g;function zn(k,q){return typeof k=="object"&&k!==null&&k.key!=null?Dt(""+k.key):q.toString(36)}function jt(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(ue,ue):(k.status="pending",k.then(function(q){k.status==="pending"&&(k.status="fulfilled",k.value=q)},function(q){k.status==="pending"&&(k.status="rejected",k.reason=q)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function C(k,q,X,K,fe){var $e=typeof k;($e==="undefined"||$e==="boolean")&&(k=null);var A=!1;if(k===null)A=!0;else switch($e){case"bigint":case"string":case"number":A=!0;break;case"object":switch(k.$$typeof){case i:case r:A=!0;break;case v:return A=k._init,C(A(k._payload),q,X,K,fe)}}if(A)return fe=fe(k),A=K===""?"."+zn(k,0):K,Ee(fe)?(X="",A!=null&&(X=A.replace(Zn,"$&/")+"/"),C(fe,q,X,"",function(rt){return rt})):fe!=null&&(_t(fe)&&(fe=Ut(fe,X+(fe.key==null||k&&k.key===fe.key?"":(""+fe.key).replace(Zn,"$&/")+"/")+A)),q.push(fe)),1;A=0;var P=K===""?".":K+":";if(Ee(k))for(var me=0;me<k.length;me++)K=k[me],$e=P+zn(K,me),A+=C(K,q,X,$e,fe);else if(me=z(k),typeof me=="function")for(k=me.call(k),me=0;!(K=k.next()).done;)K=K.value,$e=P+zn(K,me++),A+=C(K,q,X,$e,fe);else if($e==="object"){if(typeof k.then=="function")return C(jt(k),q,X,K,fe);throw q=String(k),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return A}function Y(k,q,X){if(k==null)return k;var K=[],fe=0;return C(k,K,"","",function($e){return q.call(X,$e,fe++)}),K}function re(k){if(k._status===-1){var q=k._result;q=q(),q.then(function(X){(k._status===0||k._status===-1)&&(k._status=1,k._result=X)},function(X){(k._status===0||k._status===-1)&&(k._status=2,k._result=X)}),k._status===-1&&(k._status=0,k._result=q)}if(k._status===1)return k._result.default;throw k._result}var xe=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},He={map:Y,forEach:function(k,q,X){Y(k,function(){q.apply(this,arguments)},X)},count:function(k){var q=0;return Y(k,function(){q++}),q},toArray:function(k){return Y(k,function(q){return q})||[]},only:function(k){if(!_t(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return pe.Activity=b,pe.Children=He,pe.Component=F,pe.Fragment=o,pe.Profiler=n,pe.PureComponent=de,pe.StrictMode=l,pe.Suspense=p,pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,pe.__COMPILER_RUNTIME={__proto__:null,c:function(k){return G.H.useMemoCache(k)}},pe.cache=function(k){return function(){return k.apply(null,arguments)}},pe.cacheSignal=function(){return null},pe.cloneElement=function(k,q,X){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var K=H({},k.props),fe=k.key;if(q!=null)for($e in q.key!==void 0&&(fe=""+q.key),q)!ge.call(q,$e)||$e==="key"||$e==="__self"||$e==="__source"||$e==="ref"&&q.ref===void 0||(K[$e]=q[$e]);var $e=arguments.length-2;if($e===1)K.children=X;else if(1<$e){for(var A=Array($e),P=0;P<$e;P++)A[P]=arguments[P+2];K.children=A}return Ae(k.type,fe,K)},pe.createContext=function(k){return k={$$typeof:s,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:u,_context:k},k},pe.createElement=function(k,q,X){var K,fe={},$e=null;if(q!=null)for(K in q.key!==void 0&&($e=""+q.key),q)ge.call(q,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(fe[K]=q[K]);var A=arguments.length-2;if(A===1)fe.children=X;else if(1<A){for(var P=Array(A),me=0;me<A;me++)P[me]=arguments[me+2];fe.children=P}if(k&&k.defaultProps)for(K in A=k.defaultProps,A)fe[K]===void 0&&(fe[K]=A[K]);return Ae(k,$e,fe)},pe.createRef=function(){return{current:null}},pe.forwardRef=function(k){return{$$typeof:m,render:k}},pe.isValidElement=_t,pe.lazy=function(k){return{$$typeof:v,_payload:{_status:-1,_result:k},_init:re}},pe.memo=function(k,q){return{$$typeof:g,type:k,compare:q===void 0?null:q}},pe.startTransition=function(k){var q=G.T,X={};G.T=X;try{var K=k(),fe=G.S;fe!==null&&fe(X,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(ue,xe)}catch($e){xe($e)}finally{q!==null&&X.types!==null&&(q.types=X.types),G.T=q}},pe.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},pe.use=function(k){return G.H.use(k)},pe.useActionState=function(k,q,X){return G.H.useActionState(k,q,X)},pe.useCallback=function(k,q){return G.H.useCallback(k,q)},pe.useContext=function(k){return G.H.useContext(k)},pe.useDebugValue=function(){},pe.useDeferredValue=function(k,q){return G.H.useDeferredValue(k,q)},pe.useEffect=function(k,q){return G.H.useEffect(k,q)},pe.useEffectEvent=function(k){return G.H.useEffectEvent(k)},pe.useId=function(){return G.H.useId()},pe.useImperativeHandle=function(k,q,X){return G.H.useImperativeHandle(k,q,X)},pe.useInsertionEffect=function(k,q){return G.H.useInsertionEffect(k,q)},pe.useLayoutEffect=function(k,q){return G.H.useLayoutEffect(k,q)},pe.useMemo=function(k,q){return G.H.useMemo(k,q)},pe.useOptimistic=function(k,q){return G.H.useOptimistic(k,q)},pe.useReducer=function(k,q,X){return G.H.useReducer(k,q,X)},pe.useRef=function(k){return G.H.useRef(k)},pe.useState=function(k){return G.H.useState(k)},pe.useSyncExternalStore=function(k,q,X){return G.H.useSyncExternalStore(k,q,X)},pe.useTransition=function(){return G.H.useTransition()},pe.version="19.2.5",pe}var f_;function um(){return f_||(f_=1,Xf.exports=Ow()),Xf.exports}var ne=um(),Vf={exports:{}},ko={},Pf={exports:{}},Qf={};/**
23
+ */var f_;function Dw(){if(f_)return fe;f_=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),s=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),_=Symbol.iterator;function z(k){return k===null||typeof k!="object"?null:(k=_&&k[_]||k["@@iterator"],typeof k=="function"?k:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,J={};function F(k,M,X){this.props=k,this.context=M,this.refs=J,this.updater=X||x}F.prototype.isReactComponent={},F.prototype.setState=function(k,M){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,M,"setState")},F.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function se(){}se.prototype=F.prototype;function ge(k,M,X){this.props=k,this.context=M,this.refs=J,this.updater=X||x}var be=ge.prototype=new se;be.constructor=ge,H(be,F.prototype),be.isPureReactComponent=!0;var we=Array.isArray;function re(){}var G={H:null,A:null,T:null,S:null},ve=Object.prototype.hasOwnProperty;function Qe(k,M,X){var Q=X.ref;return{$$typeof:i,type:k,key:M,ref:Q!==void 0?Q:null,props:X}}function Ct(k,M){return Qe(k.type,M,k.props)}function Pt(k){return typeof k=="object"&&k!==null&&k.$$typeof===i}function ot(k){var M={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(X){return M[X]})}var Qt=/\/+/g;function Nt(k,M){return typeof k=="object"&&k!==null&&k.key!=null?ot(""+k.key):M.toString(36)}function Kt(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(re,re):(k.status="pending",k.then(function(M){k.status==="pending"&&(k.status="fulfilled",k.value=M)},function(M){k.status==="pending"&&(k.status="rejected",k.reason=M)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function C(k,M,X,Q,de){var $e=typeof k;($e==="undefined"||$e==="boolean")&&(k=null);var Ne=!1;if(k===null)Ne=!0;else switch($e){case"bigint":case"string":case"number":Ne=!0;break;case"object":switch(k.$$typeof){case i:case r:Ne=!0;break;case v:return Ne=k._init,C(Ne(k._payload),M,X,Q,de)}}if(Ne)return de=de(k),Ne=Q===""?"."+Nt(k,0):Q,we(de)?(X="",Ne!=null&&(X=Ne.replace(Qt,"$&/")+"/"),C(de,M,X,"",function(R){return R})):de!=null&&(Pt(de)&&(de=Ct(de,X+(de.key==null||k&&k.key===de.key?"":(""+de.key).replace(Qt,"$&/")+"/")+Ne)),M.push(de)),1;Ne=0;var kt=Q===""?".":Q+":";if(we(k))for(var it=0;it<k.length;it++)Q=k[it],$e=kt+Nt(Q,it),Ne+=C(Q,M,X,$e,de);else if(it=z(k),typeof it=="function")for(k=it.call(k),it=0;!(Q=k.next()).done;)Q=Q.value,$e=kt+Nt(Q,it++),Ne+=C(Q,M,X,$e,de);else if($e==="object"){if(typeof k.then=="function")return C(Kt(k),M,X,Q,de);throw M=String(k),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return Ne}function Y(k,M,X){if(k==null)return k;var Q=[],de=0;return C(k,Q,"","",function($e){return M.call(X,$e,de++)}),Q}function ae(k){if(k._status===-1){var M=k._result;M=M(),M.then(function(X){(k._status===0||k._status===-1)&&(k._status=1,k._result=X)},function(X){(k._status===0||k._status===-1)&&(k._status=2,k._result=X)}),k._status===-1&&(k._status=0,k._result=M)}if(k._status===1)return k._result.default;throw k._result}var Ce=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var M=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(M))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},Le={map:Y,forEach:function(k,M,X){Y(k,function(){M.apply(this,arguments)},X)},count:function(k){var M=0;return Y(k,function(){M++}),M},toArray:function(k){return Y(k,function(M){return M})||[]},only:function(k){if(!Pt(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return fe.Activity=b,fe.Children=Le,fe.Component=F,fe.Fragment=o,fe.Profiler=n,fe.PureComponent=ge,fe.StrictMode=l,fe.Suspense=p,fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,fe.__COMPILER_RUNTIME={__proto__:null,c:function(k){return G.H.useMemoCache(k)}},fe.cache=function(k){return function(){return k.apply(null,arguments)}},fe.cacheSignal=function(){return null},fe.cloneElement=function(k,M,X){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var Q=H({},k.props),de=k.key;if(M!=null)for($e in M.key!==void 0&&(de=""+M.key),M)!ve.call(M,$e)||$e==="key"||$e==="__self"||$e==="__source"||$e==="ref"&&M.ref===void 0||(Q[$e]=M[$e]);var $e=arguments.length-2;if($e===1)Q.children=X;else if(1<$e){for(var Ne=Array($e),kt=0;kt<$e;kt++)Ne[kt]=arguments[kt+2];Q.children=Ne}return Qe(k.type,de,Q)},fe.createContext=function(k){return k={$$typeof:s,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:u,_context:k},k},fe.createElement=function(k,M,X){var Q,de={},$e=null;if(M!=null)for(Q in M.key!==void 0&&($e=""+M.key),M)ve.call(M,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(de[Q]=M[Q]);var Ne=arguments.length-2;if(Ne===1)de.children=X;else if(1<Ne){for(var kt=Array(Ne),it=0;it<Ne;it++)kt[it]=arguments[it+2];de.children=kt}if(k&&k.defaultProps)for(Q in Ne=k.defaultProps,Ne)de[Q]===void 0&&(de[Q]=Ne[Q]);return Qe(k,$e,de)},fe.createRef=function(){return{current:null}},fe.forwardRef=function(k){return{$$typeof:m,render:k}},fe.isValidElement=Pt,fe.lazy=function(k){return{$$typeof:v,_payload:{_status:-1,_result:k},_init:ae}},fe.memo=function(k,M){return{$$typeof:g,type:k,compare:M===void 0?null:M}},fe.startTransition=function(k){var M=G.T,X={};G.T=X;try{var Q=k(),de=G.S;de!==null&&de(X,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(re,Ce)}catch($e){Ce($e)}finally{M!==null&&X.types!==null&&(M.types=X.types),G.T=M}},fe.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},fe.use=function(k){return G.H.use(k)},fe.useActionState=function(k,M,X){return G.H.useActionState(k,M,X)},fe.useCallback=function(k,M){return G.H.useCallback(k,M)},fe.useContext=function(k){return G.H.useContext(k)},fe.useDebugValue=function(){},fe.useDeferredValue=function(k,M){return G.H.useDeferredValue(k,M)},fe.useEffect=function(k,M){return G.H.useEffect(k,M)},fe.useEffectEvent=function(k){return G.H.useEffectEvent(k)},fe.useId=function(){return G.H.useId()},fe.useImperativeHandle=function(k,M,X){return G.H.useImperativeHandle(k,M,X)},fe.useInsertionEffect=function(k,M){return G.H.useInsertionEffect(k,M)},fe.useLayoutEffect=function(k,M){return G.H.useLayoutEffect(k,M)},fe.useMemo=function(k,M){return G.H.useMemo(k,M)},fe.useOptimistic=function(k,M){return G.H.useOptimistic(k,M)},fe.useReducer=function(k,M,X){return G.H.useReducer(k,M,X)},fe.useRef=function(k){return G.H.useRef(k)},fe.useState=function(k){return G.H.useState(k)},fe.useSyncExternalStore=function(k,M,X){return G.H.useSyncExternalStore(k,M,X)},fe.useTransition=function(){return G.H.useTransition()},fe.version="19.2.5",fe}var m_;function sm(){return m_||(m_=1,Pf.exports=Dw()),Pf.exports}var ee=sm(),Qf={exports:{}},xo={},Kf={exports:{}},Ff={};/**
24
24
  * @license React
25
25
  * scheduler.production.js
26
26
  *
@@ -28,7 +28,7 @@
28
28
  *
29
29
  * This source code is licensed under the MIT license found in the
30
30
  * LICENSE file in the root directory of this source tree.
31
- */var m_;function Uw(){return m_||(m_=1,(function(i){function r(C,Y){var re=C.length;C.push(Y);e:for(;0<re;){var xe=re-1>>>1,He=C[xe];if(0<n(He,Y))C[xe]=Y,C[re]=He,re=xe;else break e}}function o(C){return C.length===0?null:C[0]}function l(C){if(C.length===0)return null;var Y=C[0],re=C.pop();if(re!==Y){C[0]=re;e:for(var xe=0,He=C.length,k=He>>>1;xe<k;){var q=2*(xe+1)-1,X=C[q],K=q+1,fe=C[K];if(0>n(X,re))K<He&&0>n(fe,X)?(C[xe]=fe,C[K]=re,xe=K):(C[xe]=X,C[q]=re,xe=q);else if(K<He&&0>n(fe,re))C[xe]=fe,C[K]=re,xe=K;else break e}}return Y}function n(C,Y){var re=C.sortIndex-Y.sortIndex;return re!==0?re:C.id-Y.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;i.unstable_now=function(){return u.now()}}else{var s=Date,m=s.now();i.unstable_now=function(){return s.now()-m}}var p=[],g=[],v=1,b=null,_=3,z=!1,x=!1,H=!1,J=!1,F=typeof setTimeout=="function"?setTimeout:null,se=typeof clearTimeout=="function"?clearTimeout:null,de=typeof setImmediate<"u"?setImmediate:null;function be(C){for(var Y=o(g);Y!==null;){if(Y.callback===null)l(g);else if(Y.startTime<=C)l(g),Y.sortIndex=Y.expirationTime,r(p,Y);else break;Y=o(g)}}function Ee(C){if(H=!1,be(C),!x)if(o(p)!==null)x=!0,ue||(ue=!0,Dt());else{var Y=o(g);Y!==null&&jt(Ee,Y.startTime-C)}}var ue=!1,G=-1,ge=5,Ae=-1;function Ut(){return J?!0:!(i.unstable_now()-Ae<ge)}function _t(){if(J=!1,ue){var C=i.unstable_now();Ae=C;var Y=!0;try{e:{x=!1,H&&(H=!1,se(G),G=-1),z=!0;var re=_;try{t:{for(be(C),b=o(p);b!==null&&!(b.expirationTime>C&&Ut());){var xe=b.callback;if(typeof xe=="function"){b.callback=null,_=b.priorityLevel;var He=xe(b.expirationTime<=C);if(C=i.unstable_now(),typeof He=="function"){b.callback=He,be(C),Y=!0;break t}b===o(p)&&l(p),be(C)}else l(p);b=o(p)}if(b!==null)Y=!0;else{var k=o(g);k!==null&&jt(Ee,k.startTime-C),Y=!1}}break e}finally{b=null,_=re,z=!1}Y=void 0}}finally{Y?Dt():ue=!1}}}var Dt;if(typeof de=="function")Dt=function(){de(_t)};else if(typeof MessageChannel<"u"){var Zn=new MessageChannel,zn=Zn.port2;Zn.port1.onmessage=_t,Dt=function(){zn.postMessage(null)}}else Dt=function(){F(_t,0)};function jt(C,Y){G=F(function(){C(i.unstable_now())},Y)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(C){C.callback=null},i.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ge=0<C?Math.floor(1e3/C):5},i.unstable_getCurrentPriorityLevel=function(){return _},i.unstable_next=function(C){switch(_){case 1:case 2:case 3:var Y=3;break;default:Y=_}var re=_;_=Y;try{return C()}finally{_=re}},i.unstable_requestPaint=function(){J=!0},i.unstable_runWithPriority=function(C,Y){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var re=_;_=C;try{return Y()}finally{_=re}},i.unstable_scheduleCallback=function(C,Y,re){var xe=i.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?xe+re:xe):re=xe,C){case 1:var He=-1;break;case 2:He=250;break;case 5:He=1073741823;break;case 4:He=1e4;break;default:He=5e3}return He=re+He,C={id:v++,callback:Y,priorityLevel:C,startTime:re,expirationTime:He,sortIndex:-1},re>xe?(C.sortIndex=re,r(g,C),o(p)===null&&C===o(g)&&(H?(se(G),G=-1):H=!0,jt(Ee,re-xe))):(C.sortIndex=He,r(p,C),x||z||(x=!0,ue||(ue=!0,Dt()))),C},i.unstable_shouldYield=Ut,i.unstable_wrapCallback=function(C){var Y=_;return function(){var re=_;_=Y;try{return C.apply(this,arguments)}finally{_=re}}}})(Qf)),Qf}var p_;function Dw(){return p_||(p_=1,Pf.exports=Uw()),Pf.exports}var Kf={exports:{}},Nt={};/**
31
+ */var p_;function jw(){return p_||(p_=1,(function(i){function r(C,Y){var ae=C.length;C.push(Y);e:for(;0<ae;){var Ce=ae-1>>>1,Le=C[Ce];if(0<n(Le,Y))C[Ce]=Y,C[ae]=Le,ae=Ce;else break e}}function o(C){return C.length===0?null:C[0]}function l(C){if(C.length===0)return null;var Y=C[0],ae=C.pop();if(ae!==Y){C[0]=ae;e:for(var Ce=0,Le=C.length,k=Le>>>1;Ce<k;){var M=2*(Ce+1)-1,X=C[M],Q=M+1,de=C[Q];if(0>n(X,ae))Q<Le&&0>n(de,X)?(C[Ce]=de,C[Q]=ae,Ce=Q):(C[Ce]=X,C[M]=ae,Ce=M);else if(Q<Le&&0>n(de,ae))C[Ce]=de,C[Q]=ae,Ce=Q;else break e}}return Y}function n(C,Y){var ae=C.sortIndex-Y.sortIndex;return ae!==0?ae:C.id-Y.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;i.unstable_now=function(){return u.now()}}else{var s=Date,m=s.now();i.unstable_now=function(){return s.now()-m}}var p=[],g=[],v=1,b=null,_=3,z=!1,x=!1,H=!1,J=!1,F=typeof setTimeout=="function"?setTimeout:null,se=typeof clearTimeout=="function"?clearTimeout:null,ge=typeof setImmediate<"u"?setImmediate:null;function be(C){for(var Y=o(g);Y!==null;){if(Y.callback===null)l(g);else if(Y.startTime<=C)l(g),Y.sortIndex=Y.expirationTime,r(p,Y);else break;Y=o(g)}}function we(C){if(H=!1,be(C),!x)if(o(p)!==null)x=!0,re||(re=!0,ot());else{var Y=o(g);Y!==null&&Kt(we,Y.startTime-C)}}var re=!1,G=-1,ve=5,Qe=-1;function Ct(){return J?!0:!(i.unstable_now()-Qe<ve)}function Pt(){if(J=!1,re){var C=i.unstable_now();Qe=C;var Y=!0;try{e:{x=!1,H&&(H=!1,se(G),G=-1),z=!0;var ae=_;try{t:{for(be(C),b=o(p);b!==null&&!(b.expirationTime>C&&Ct());){var Ce=b.callback;if(typeof Ce=="function"){b.callback=null,_=b.priorityLevel;var Le=Ce(b.expirationTime<=C);if(C=i.unstable_now(),typeof Le=="function"){b.callback=Le,be(C),Y=!0;break t}b===o(p)&&l(p),be(C)}else l(p);b=o(p)}if(b!==null)Y=!0;else{var k=o(g);k!==null&&Kt(we,k.startTime-C),Y=!1}}break e}finally{b=null,_=ae,z=!1}Y=void 0}}finally{Y?ot():re=!1}}}var ot;if(typeof ge=="function")ot=function(){ge(Pt)};else if(typeof MessageChannel<"u"){var Qt=new MessageChannel,Nt=Qt.port2;Qt.port1.onmessage=Pt,ot=function(){Nt.postMessage(null)}}else ot=function(){F(Pt,0)};function Kt(C,Y){G=F(function(){C(i.unstable_now())},Y)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(C){C.callback=null},i.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ve=0<C?Math.floor(1e3/C):5},i.unstable_getCurrentPriorityLevel=function(){return _},i.unstable_next=function(C){switch(_){case 1:case 2:case 3:var Y=3;break;default:Y=_}var ae=_;_=Y;try{return C()}finally{_=ae}},i.unstable_requestPaint=function(){J=!0},i.unstable_runWithPriority=function(C,Y){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var ae=_;_=C;try{return Y()}finally{_=ae}},i.unstable_scheduleCallback=function(C,Y,ae){var Ce=i.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?Ce+ae:Ce):ae=Ce,C){case 1:var Le=-1;break;case 2:Le=250;break;case 5:Le=1073741823;break;case 4:Le=1e4;break;default:Le=5e3}return Le=ae+Le,C={id:v++,callback:Y,priorityLevel:C,startTime:ae,expirationTime:Le,sortIndex:-1},ae>Ce?(C.sortIndex=ae,r(g,C),o(p)===null&&C===o(g)&&(H?(se(G),G=-1):H=!0,Kt(we,ae-Ce))):(C.sortIndex=Le,r(p,C),x||z||(x=!0,re||(re=!0,ot()))),C},i.unstable_shouldYield=Ct,i.unstable_wrapCallback=function(C){var Y=_;return function(){var ae=_;_=Y;try{return C.apply(this,arguments)}finally{_=ae}}}})(Ff)),Ff}var h_;function Nw(){return h_||(h_=1,Kf.exports=jw()),Kf.exports}var Wf={exports:{}},At={};/**
32
32
  * @license React
33
33
  * react-dom.production.js
34
34
  *
@@ -36,7 +36,7 @@
36
36
  *
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
- */var h_;function jw(){if(h_)return Nt;h_=1;var i=um();function r(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)g+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var l={d:{f:o,r:function(){throw Error(r(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},n=Symbol.for("react.portal");function u(p,g,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:n,key:b==null?null:""+b,children:p,containerInfo:g,implementation:v}}var s=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Nt.createPortal=function(p,g){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(r(299));return u(p,g,null,v)},Nt.flushSync=function(p){var g=s.T,v=l.p;try{if(s.T=null,l.p=2,p)return p()}finally{s.T=g,l.p=v,l.d.f()}},Nt.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,l.d.C(p,g))},Nt.prefetchDNS=function(p){typeof p=="string"&&l.d.D(p)},Nt.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var v=g.as,b=m(v,g.crossOrigin),_=typeof g.integrity=="string"?g.integrity:void 0,z=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;v==="style"?l.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:_,fetchPriority:z}):v==="script"&&l.d.X(p,{crossOrigin:b,integrity:_,fetchPriority:z,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Nt.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var v=m(g.as,g.crossOrigin);l.d.M(p,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&l.d.M(p)},Nt.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var v=g.as,b=m(v,g.crossOrigin);l.d.L(p,v,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Nt.preloadModule=function(p,g){if(typeof p=="string")if(g){var v=m(g.as,g.crossOrigin);l.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else l.d.m(p)},Nt.requestFormReset=function(p){l.d.r(p)},Nt.unstable_batchedUpdates=function(p,g){return p(g)},Nt.useFormState=function(p,g,v){return s.H.useFormState(p,g,v)},Nt.useFormStatus=function(){return s.H.useHostTransitionStatus()},Nt.version="19.2.5",Nt}var g_;function Nw(){if(g_)return Kf.exports;g_=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(r){console.error(r)}}return i(),Kf.exports=jw(),Kf.exports}/**
39
+ */var g_;function Aw(){if(g_)return At;g_=1;var i=sm();function r(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)g+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var l={d:{f:o,r:function(){throw Error(r(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},n=Symbol.for("react.portal");function u(p,g,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:n,key:b==null?null:""+b,children:p,containerInfo:g,implementation:v}}var s=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return At.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,At.createPortal=function(p,g){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(r(299));return u(p,g,null,v)},At.flushSync=function(p){var g=s.T,v=l.p;try{if(s.T=null,l.p=2,p)return p()}finally{s.T=g,l.p=v,l.d.f()}},At.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,l.d.C(p,g))},At.prefetchDNS=function(p){typeof p=="string"&&l.d.D(p)},At.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var v=g.as,b=m(v,g.crossOrigin),_=typeof g.integrity=="string"?g.integrity:void 0,z=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;v==="style"?l.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:_,fetchPriority:z}):v==="script"&&l.d.X(p,{crossOrigin:b,integrity:_,fetchPriority:z,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},At.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var v=m(g.as,g.crossOrigin);l.d.M(p,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&l.d.M(p)},At.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var v=g.as,b=m(v,g.crossOrigin);l.d.L(p,v,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},At.preloadModule=function(p,g){if(typeof p=="string")if(g){var v=m(g.as,g.crossOrigin);l.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else l.d.m(p)},At.requestFormReset=function(p){l.d.r(p)},At.unstable_batchedUpdates=function(p,g){return p(g)},At.useFormState=function(p,g,v){return s.H.useFormState(p,g,v)},At.useFormStatus=function(){return s.H.useHostTransitionStatus()},At.version="19.2.5",At}var v_;function Iw(){if(v_)return Wf.exports;v_=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(r){console.error(r)}}return i(),Wf.exports=Aw(),Wf.exports}/**
40
40
  * @license React
41
41
  * react-dom-client.production.js
42
42
  *
@@ -44,60 +44,60 @@
44
44
  *
45
45
  * This source code is licensed under the MIT license found in the
46
46
  * LICENSE file in the root directory of this source tree.
47
- */var v_;function Aw(){if(v_)return ko;v_=1;var i=Dw(),r=um(),o=Nw();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(u(e)!==e)throw Error(l(188))}function g(e){var t=e.alternate;if(!t){if(t=u(e),t===null)throw Error(l(188));return t!==e?null:e}for(var a=e,c=t;;){var d=a.return;if(d===null)break;var f=d.alternate;if(f===null){if(c=d.return,c!==null){a=c;continue}break}if(d.child===f.child){for(f=d.child;f;){if(f===a)return p(d),e;if(f===c)return p(d),t;f=f.sibling}throw Error(l(188))}if(a.return!==c.return)a=d,c=f;else{for(var h=!1,y=d.child;y;){if(y===a){h=!0,a=d,c=f;break}if(y===c){h=!0,c=d,a=f;break}y=y.sibling}if(!h){for(y=f.child;y;){if(y===a){h=!0,a=f,c=d;break}if(y===c){h=!0,c=f,a=d;break}y=y.sibling}if(!h)throw Error(l(189))}}if(a.alternate!==c)throw Error(l(190))}if(a.tag!==3)throw Error(l(188));return a.stateNode.current===a?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,_=Symbol.for("react.element"),z=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),se=Symbol.for("react.consumer"),de=Symbol.for("react.context"),be=Symbol.for("react.forward_ref"),Ee=Symbol.for("react.suspense"),ue=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),Ae=Symbol.for("react.activity"),Ut=Symbol.for("react.memo_cache_sentinel"),_t=Symbol.iterator;function Dt(e){return e===null||typeof e!="object"?null:(e=_t&&e[_t]||e["@@iterator"],typeof e=="function"?e:null)}var Zn=Symbol.for("react.client.reference");function zn(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Zn?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case H:return"Fragment";case F:return"Profiler";case J:return"StrictMode";case Ee:return"Suspense";case ue:return"SuspenseList";case Ae:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case x:return"Portal";case de:return e.displayName||"Context";case se:return(e._context.displayName||"Context")+".Consumer";case be:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case G:return t=e.displayName||null,t!==null?t:zn(e.type)||"Memo";case ge:t=e._payload,e=e._init;try{return zn(e(t))}catch{}}return null}var jt=Array.isArray,C=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},xe=[],He=-1;function k(e){return{current:e}}function q(e){0>He||(e.current=xe[He],xe[He]=null,He--)}function X(e,t){He++,xe[He]=e.current,e.current=t}var K=k(null),fe=k(null),$e=k(null),A=k(null);function P(e,t){switch(X($e,t),X(fe,e),X(K,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?jb(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=jb(t),e=Nb(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(K),X(K,e)}function me(){q(K),q(fe),q($e)}function rt(e){e.memoizedState!==null&&X(A,e);var t=K.current,a=Nb(t,e.type);t!==a&&(X(fe,e),X(K,a))}function pt(e){fe.current===e&&(q(K),q(fe)),A.current===e&&(q(A),yo._currentValue=re)}var ct,Dn;function Xt(e){if(ct===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ct=t&&t[1]||"",Dn=-1<a.stack.indexOf(`
47
+ */var y_;function Rw(){if(y_)return xo;y_=1;var i=Nw(),r=sm(),o=Iw();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(u(e)!==e)throw Error(l(188))}function g(e){var t=e.alternate;if(!t){if(t=u(e),t===null)throw Error(l(188));return t!==e?null:e}for(var a=e,c=t;;){var d=a.return;if(d===null)break;var f=d.alternate;if(f===null){if(c=d.return,c!==null){a=c;continue}break}if(d.child===f.child){for(f=d.child;f;){if(f===a)return p(d),e;if(f===c)return p(d),t;f=f.sibling}throw Error(l(188))}if(a.return!==c.return)a=d,c=f;else{for(var h=!1,y=d.child;y;){if(y===a){h=!0,a=d,c=f;break}if(y===c){h=!0,c=d,a=f;break}y=y.sibling}if(!h){for(y=f.child;y;){if(y===a){h=!0,a=f,c=d;break}if(y===c){h=!0,c=f,a=d;break}y=y.sibling}if(!h)throw Error(l(189))}}if(a.alternate!==c)throw Error(l(190))}if(a.tag!==3)throw Error(l(188));return a.stateNode.current===a?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,_=Symbol.for("react.element"),z=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),se=Symbol.for("react.consumer"),ge=Symbol.for("react.context"),be=Symbol.for("react.forward_ref"),we=Symbol.for("react.suspense"),re=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),ve=Symbol.for("react.lazy"),Qe=Symbol.for("react.activity"),Ct=Symbol.for("react.memo_cache_sentinel"),Pt=Symbol.iterator;function ot(e){return e===null||typeof e!="object"?null:(e=Pt&&e[Pt]||e["@@iterator"],typeof e=="function"?e:null)}var Qt=Symbol.for("react.client.reference");function Nt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Qt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case H:return"Fragment";case F:return"Profiler";case J:return"StrictMode";case we:return"Suspense";case re:return"SuspenseList";case Qe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case x:return"Portal";case ge:return e.displayName||"Context";case se:return(e._context.displayName||"Context")+".Consumer";case be:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case G:return t=e.displayName||null,t!==null?t:Nt(e.type)||"Memo";case ve:t=e._payload,e=e._init;try{return Nt(e(t))}catch{}}return null}var Kt=Array.isArray,C=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},Ce=[],Le=-1;function k(e){return{current:e}}function M(e){0>Le||(e.current=Ce[Le],Ce[Le]=null,Le--)}function X(e,t){Le++,Ce[Le]=e.current,e.current=t}var Q=k(null),de=k(null),$e=k(null),Ne=k(null);function kt(e,t){switch(X($e,t),X(de,e),X(Q,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Nb(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Nb(t),e=Ab(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}M(Q),X(Q,e)}function it(){M(Q),M(de),M($e)}function R(e){e.memoizedState!==null&&X(Ne,e);var t=Q.current,a=Ab(t,e.type);t!==a&&(X(de,e),X(Q,a))}function te(e){de.current===e&&(M(Q),M(de)),Ne.current===e&&(M(Ne),_o._currentValue=ae)}var et,vt;function lt(e){if(et===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);et=t&&t[1]||"",vt=-1<a.stack.indexOf(`
48
48
  at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
49
- `+ct+e+Dn}var Ea=!1;function Os(e,t){if(!e||Ea)return"";Ea=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(t){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(I){var j=I}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(I){j=I}e.call(Z.prototype)}}else{try{throw Error()}catch(I){j=I}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(I){if(I&&j&&typeof I.stack=="string")return[I.stack,j.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=c.DetermineComponentFrameRoot(),h=f[0],y=f[1];if(h&&y){var S=h.split(`
49
+ `+et+e+vt}var ft=!1;function En(e,t){if(!e||ft)return"";ft=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(A){var j=A}Reflect.construct(e,[],q)}else{try{q.call()}catch(A){j=A}e.call(q.prototype)}}else{try{throw Error()}catch(A){j=A}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(A){if(A&&j&&typeof A.stack=="string")return[A.stack,j.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=c.DetermineComponentFrameRoot(),h=f[0],y=f[1];if(h&&y){var S=h.split(`
50
50
  `),D=y.split(`
51
- `);for(d=c=0;c<S.length&&!S[c].includes("DetermineComponentFrameRoot");)c++;for(;d<D.length&&!D[d].includes("DetermineComponentFrameRoot");)d++;if(c===S.length||d===D.length)for(c=S.length-1,d=D.length-1;1<=c&&0<=d&&S[c]!==D[d];)d--;for(;1<=c&&0<=d;c--,d--)if(S[c]!==D[d]){if(c!==1||d!==1)do if(c--,d--,0>d||S[c]!==D[d]){var R=`
52
- `+S[c].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),R}while(1<=c&&0<=d);break}}}finally{Ea=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Xt(a):""}function n1(e,t){switch(e.tag){case 26:case 27:case 5:return Xt(e.type);case 16:return Xt("Lazy");case 13:return e.child!==t&&t!==null?Xt("Suspense Fallback"):Xt("Suspense");case 19:return Xt("SuspenseList");case 0:case 15:return Os(e.type,!1);case 11:return Os(e.type.render,!1);case 1:return Os(e.type,!0);case 31:return Xt("Activity");default:return""}}function cg(e){try{var t="",a=null;do t+=n1(e,a),a=e,e=e.return;while(e);return t}catch(c){return`
51
+ `);for(d=c=0;c<S.length&&!S[c].includes("DetermineComponentFrameRoot");)c++;for(;d<D.length&&!D[d].includes("DetermineComponentFrameRoot");)d++;if(c===S.length||d===D.length)for(c=S.length-1,d=D.length-1;1<=c&&0<=d&&S[c]!==D[d];)d--;for(;1<=c&&0<=d;c--,d--)if(S[c]!==D[d]){if(c!==1||d!==1)do if(c--,d--,0>d||S[c]!==D[d]){var I=`
52
+ `+S[c].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),I}while(1<=c&&0<=d);break}}}finally{ft=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?lt(a):""}function Zi(e,t){switch(e.tag){case 26:case 27:case 5:return lt(e.type);case 16:return lt("Lazy");case 13:return e.child!==t&&t!==null?lt("Suspense Fallback"):lt("Suspense");case 19:return lt("SuspenseList");case 0:case 15:return En(e.type,!1);case 11:return En(e.type.render,!1);case 1:return En(e.type,!0);case 31:return lt("Activity");default:return""}}function Ml(e){try{var t="",a=null;do t+=Zi(e,a),a=e,e=e.return;while(e);return t}catch(c){return`
53
53
  Error generating stack: `+c.message+`
54
- `+c.stack}}var Us=Object.prototype.hasOwnProperty,Ds=i.unstable_scheduleCallback,js=i.unstable_cancelCallback,i1=i.unstable_shouldYield,r1=i.unstable_requestPaint,Vt=i.unstable_now,a1=i.unstable_getCurrentPriorityLevel,sg=i.unstable_ImmediatePriority,dg=i.unstable_UserBlockingPriority,Rl=i.unstable_NormalPriority,o1=i.unstable_LowPriority,fg=i.unstable_IdlePriority,l1=i.log,u1=i.unstable_setDisableYieldValue,Oa=null,Pt=null;function ui(e){if(typeof l1=="function"&&u1(e),Pt&&typeof Pt.setStrictMode=="function")try{Pt.setStrictMode(Oa,e)}catch{}}var Qt=Math.clz32?Math.clz32:d1,c1=Math.log,s1=Math.LN2;function d1(e){return e>>>=0,e===0?32:31-(c1(e)/s1|0)|0}var Cl=256,Ml=262144,Zl=4194304;function Ci(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ql(e,t,a){var c=e.pendingLanes;if(c===0)return 0;var d=0,f=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var y=c&134217727;return y!==0?(c=y&~f,c!==0?d=Ci(c):(h&=y,h!==0?d=Ci(h):a||(a=y&~e,a!==0&&(d=Ci(a))))):(y=c&~f,y!==0?d=Ci(y):h!==0?d=Ci(h):a||(a=c&~e,a!==0&&(d=Ci(a)))),d===0?0:t!==0&&t!==d&&(t&f)===0&&(f=d&-d,a=t&-t,f>=a||f===32&&(a&4194048)!==0)?t:d}function Ua(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function f1(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mg(){var e=Zl;return Zl<<=1,(Zl&62914560)===0&&(Zl=4194304),e}function Ns(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Da(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function m1(e,t,a,c,d,f){var h=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var y=e.entanglements,S=e.expirationTimes,D=e.hiddenUpdates;for(a=h&~a;0<a;){var R=31-Qt(a),Z=1<<R;y[R]=0,S[R]=-1;var j=D[R];if(j!==null)for(D[R]=null,R=0;R<j.length;R++){var I=j[R];I!==null&&(I.lane&=-536870913)}a&=~Z}c!==0&&pg(e,c,0),f!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=f&~(h&~t))}function pg(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var c=31-Qt(t);e.entangledLanes|=t,e.entanglements[c]=e.entanglements[c]|1073741824|a&261930}function hg(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var c=31-Qt(a),d=1<<c;d&t|e[c]&t&&(e[c]|=t),a&=~d}}function gg(e,t){var a=t&-t;return a=(a&42)!==0?1:As(a),(a&(e.suspendedLanes|t))!==0?0:a}function As(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Is(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function vg(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:n_(e.type))}function yg(e,t){var a=Y.p;try{return Y.p=e,t()}finally{Y.p=a}}var ci=Math.random().toString(36).slice(2),St="__reactFiber$"+ci,Zt="__reactProps$"+ci,gr="__reactContainer$"+ci,Rs="__reactEvents$"+ci,p1="__reactListeners$"+ci,h1="__reactHandles$"+ci,bg="__reactResources$"+ci,ja="__reactMarker$"+ci;function Cs(e){delete e[St],delete e[Zt],delete e[Rs],delete e[p1],delete e[h1]}function vr(e){var t=e[St];if(t)return t;for(var a=e.parentNode;a;){if(t=a[gr]||a[St]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=qb(e);e!==null;){if(a=e[St])return a;e=qb(e)}return t}e=a,a=e.parentNode}return null}function yr(e){if(e=e[St]||e[gr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Na(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function br(e){var t=e[bg];return t||(t=e[bg]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function yt(e){e[ja]=!0}var _g=new Set,Sg={};function Mi(e,t){_r(e,t),_r(e+"Capture",t)}function _r(e,t){for(Sg[e]=t,e=0;e<t.length;e++)_g.add(t[e])}var g1=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),$g={},kg={};function v1(e){return Us.call(kg,e)?!0:Us.call($g,e)?!1:g1.test(e)?kg[e]=!0:($g[e]=!0,!1)}function Ll(e,t,a){if(v1(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var c=t.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Hl(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function qn(e,t,a,c){if(c===null)e.removeAttribute(a);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+c)}}function dn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function y1(e,t,a){var c=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var d=c.get,f=c.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return d.call(this)},set:function(h){a=""+h,f.call(this,h)}}),Object.defineProperty(e,t,{enumerable:c.enumerable}),{getValue:function(){return a},setValue:function(h){a=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ms(e){if(!e._valueTracker){var t=zg(e)?"checked":"value";e._valueTracker=y1(e,t,""+e[t])}}function xg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),c="";return e&&(c=zg(e)?e.checked?"true":"false":e.value),e=c,e!==a?(t.setValue(e),!0):!1}function Bl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var b1=/[\n"\\]/g;function fn(e){return e.replace(b1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Zs(e,t,a,c,d,f,h,y){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+dn(t)):e.value!==""+dn(t)&&(e.value=""+dn(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?qs(e,h,dn(t)):a!=null?qs(e,h,dn(a)):c!=null&&e.removeAttribute("value"),d==null&&f!=null&&(e.defaultChecked=!!f),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+dn(y):e.removeAttribute("name")}function wg(e,t,a,c,d,f,h,y){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){Ms(e);return}a=a!=null?""+dn(a):"",t=t!=null?""+dn(t):a,y||t===e.value||(e.value=t),e.defaultValue=t}c=c??d,c=typeof c!="function"&&typeof c!="symbol"&&!!c,e.checked=y?e.checked:!!c,e.defaultChecked=!!c,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Ms(e)}function qs(e,t,a){t==="number"&&Bl(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Sr(e,t,a,c){if(e=e.options,t){t={};for(var d=0;d<a.length;d++)t["$"+a[d]]=!0;for(a=0;a<e.length;a++)d=t.hasOwnProperty("$"+e[a].value),e[a].selected!==d&&(e[a].selected=d),d&&c&&(e[a].defaultSelected=!0)}else{for(a=""+dn(a),t=null,d=0;d<e.length;d++){if(e[d].value===a){e[d].selected=!0,c&&(e[d].defaultSelected=!0);return}t!==null||e[d].disabled||(t=e[d])}t!==null&&(t.selected=!0)}}function Tg(e,t,a){if(t!=null&&(t=""+dn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+dn(a):""}function Eg(e,t,a,c){if(t==null){if(c!=null){if(a!=null)throw Error(l(92));if(jt(c)){if(1<c.length)throw Error(l(93));c=c[0]}a=c}a==null&&(a=""),t=a}a=dn(t),e.defaultValue=a,c=e.textContent,c===a&&c!==""&&c!==null&&(e.value=c),Ms(e)}function $r(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var _1=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Og(e,t,a){var c=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?c?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":c?e.setProperty(t,a):typeof a!="number"||a===0||_1.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Ug(e,t,a){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,a!=null){for(var c in a)!a.hasOwnProperty(c)||t!=null&&t.hasOwnProperty(c)||(c.indexOf("--")===0?e.setProperty(c,""):c==="float"?e.cssFloat="":e[c]="");for(var d in t)c=t[d],t.hasOwnProperty(d)&&a[d]!==c&&Og(e,d,c)}else for(var f in t)t.hasOwnProperty(f)&&Og(e,f,t[f])}function Ls(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var S1=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),$1=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Jl(e){return $1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ln(){}var Hs=null;function Bs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kr=null,zr=null;function Dg(e){var t=yr(e);if(t&&(e=t.stateNode)){var a=e[Zt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Zs(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+fn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var c=a[t];if(c!==e&&c.form===e.form){var d=c[Zt]||null;if(!d)throw Error(l(90));Zs(c,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(t=0;t<a.length;t++)c=a[t],c.form===e.form&&xg(c)}break e;case"textarea":Tg(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Sr(e,!!a.multiple,t,!1)}}}var Js=!1;function jg(e,t,a){if(Js)return e(t,a);Js=!0;try{var c=e(t);return c}finally{if(Js=!1,(kr!==null||zr!==null)&&(Du(),kr&&(t=kr,e=zr,zr=kr=null,Dg(t),e)))for(t=0;t<e.length;t++)Dg(e[t])}}function Aa(e,t){var a=e.stateNode;if(a===null)return null;var c=a[Zt]||null;if(c===null)return null;a=c[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(e=e.type,c=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!c;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(l(231,t,typeof a));return a}var Hn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gs=!1;if(Hn)try{var Ia={};Object.defineProperty(Ia,"passive",{get:function(){Gs=!0}}),window.addEventListener("test",Ia,Ia),window.removeEventListener("test",Ia,Ia)}catch{Gs=!1}var si=null,Ys=null,Gl=null;function Ng(){if(Gl)return Gl;var e,t=Ys,a=t.length,c,d="value"in si?si.value:si.textContent,f=d.length;for(e=0;e<a&&t[e]===d[e];e++);var h=a-e;for(c=1;c<=h&&t[a-c]===d[f-c];c++);return Gl=d.slice(e,1<c?1-c:void 0)}function Yl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Xl(){return!0}function Ag(){return!1}function qt(e){function t(a,c,d,f,h){this._reactName=a,this._targetInst=d,this.type=c,this.nativeEvent=f,this.target=h,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(a=e[y],this[y]=a?a(f):f[y]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Xl:Ag,this.isPropagationStopped=Ag,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Xl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Xl)},persist:function(){},isPersistent:Xl}),t}var Zi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vl=qt(Zi),Ra=b({},Zi,{view:0,detail:0}),k1=qt(Ra),Xs,Vs,Ca,Pl=b({},Ra,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qs,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ca&&(Ca&&e.type==="mousemove"?(Xs=e.screenX-Ca.screenX,Vs=e.screenY-Ca.screenY):Vs=Xs=0,Ca=e),Xs)},movementY:function(e){return"movementY"in e?e.movementY:Vs}}),Ig=qt(Pl),z1=b({},Pl,{dataTransfer:0}),x1=qt(z1),w1=b({},Ra,{relatedTarget:0}),Ps=qt(w1),T1=b({},Zi,{animationName:0,elapsedTime:0,pseudoElement:0}),E1=qt(T1),O1=b({},Zi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),U1=qt(O1),D1=b({},Zi,{data:0}),Rg=qt(D1),j1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},N1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},A1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function I1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=A1[e])?!!t[e]:!1}function Qs(){return I1}var R1=b({},Ra,{key:function(e){if(e.key){var t=j1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Yl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?N1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qs,charCode:function(e){return e.type==="keypress"?Yl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Yl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),C1=qt(R1),M1=b({},Pl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cg=qt(M1),Z1=b({},Ra,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qs}),q1=qt(Z1),L1=b({},Zi,{propertyName:0,elapsedTime:0,pseudoElement:0}),H1=qt(L1),B1=b({},Pl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),J1=qt(B1),G1=b({},Zi,{newState:0,oldState:0}),Y1=qt(G1),X1=[9,13,27,32],Ks=Hn&&"CompositionEvent"in window,Ma=null;Hn&&"documentMode"in document&&(Ma=document.documentMode);var V1=Hn&&"TextEvent"in window&&!Ma,Mg=Hn&&(!Ks||Ma&&8<Ma&&11>=Ma),Zg=" ",qg=!1;function Lg(e,t){switch(e){case"keyup":return X1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xr=!1;function P1(e,t){switch(e){case"compositionend":return Hg(t);case"keypress":return t.which!==32?null:(qg=!0,Zg);case"textInput":return e=t.data,e===Zg&&qg?null:e;default:return null}}function Q1(e,t){if(xr)return e==="compositionend"||!Ks&&Lg(e,t)?(e=Ng(),Gl=Ys=si=null,xr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mg&&t.locale!=="ko"?null:t.data;default:return null}}var K1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Bg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!K1[e.type]:t==="textarea"}function Jg(e,t,a,c){kr?zr?zr.push(c):zr=[c]:kr=c,t=Mu(t,"onChange"),0<t.length&&(a=new Vl("onChange","change",null,a,c),e.push({event:a,listeners:t}))}var Za=null,qa=null;function F1(e){wb(e,0)}function Ql(e){var t=Na(e);if(xg(t))return e}function Gg(e,t){if(e==="change")return t}var Yg=!1;if(Hn){var Fs;if(Hn){var Ws="oninput"in document;if(!Ws){var Xg=document.createElement("div");Xg.setAttribute("oninput","return;"),Ws=typeof Xg.oninput=="function"}Fs=Ws}else Fs=!1;Yg=Fs&&(!document.documentMode||9<document.documentMode)}function Vg(){Za&&(Za.detachEvent("onpropertychange",Pg),qa=Za=null)}function Pg(e){if(e.propertyName==="value"&&Ql(qa)){var t=[];Jg(t,qa,e,Bs(e)),jg(F1,t)}}function W1(e,t,a){e==="focusin"?(Vg(),Za=t,qa=a,Za.attachEvent("onpropertychange",Pg)):e==="focusout"&&Vg()}function ex(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ql(qa)}function tx(e,t){if(e==="click")return Ql(t)}function nx(e,t){if(e==="input"||e==="change")return Ql(t)}function ix(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kt=typeof Object.is=="function"?Object.is:ix;function La(e,t){if(Kt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),c=Object.keys(t);if(a.length!==c.length)return!1;for(c=0;c<a.length;c++){var d=a[c];if(!Us.call(t,d)||!Kt(e[d],t[d]))return!1}return!0}function Qg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Kg(e,t){var a=Qg(e);e=0;for(var c;a;){if(a.nodeType===3){if(c=e+a.textContent.length,e<=t&&c>=t)return{node:a,offset:t-e};e=c}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Qg(a)}}function Fg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wg(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Bl(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Bl(e.document)}return t}function ed(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var rx=Hn&&"documentMode"in document&&11>=document.documentMode,wr=null,td=null,Ha=null,nd=!1;function ev(e,t,a){var c=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;nd||wr==null||wr!==Bl(c)||(c=wr,"selectionStart"in c&&ed(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Ha&&La(Ha,c)||(Ha=c,c=Mu(td,"onSelect"),0<c.length&&(t=new Vl("onSelect","select",null,t,a),e.push({event:t,listeners:c}),t.target=wr)))}function qi(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Tr={animationend:qi("Animation","AnimationEnd"),animationiteration:qi("Animation","AnimationIteration"),animationstart:qi("Animation","AnimationStart"),transitionrun:qi("Transition","TransitionRun"),transitionstart:qi("Transition","TransitionStart"),transitioncancel:qi("Transition","TransitionCancel"),transitionend:qi("Transition","TransitionEnd")},id={},tv={};Hn&&(tv=document.createElement("div").style,"AnimationEvent"in window||(delete Tr.animationend.animation,delete Tr.animationiteration.animation,delete Tr.animationstart.animation),"TransitionEvent"in window||delete Tr.transitionend.transition);function Li(e){if(id[e])return id[e];if(!Tr[e])return e;var t=Tr[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in tv)return id[e]=t[a];return e}var nv=Li("animationend"),iv=Li("animationiteration"),rv=Li("animationstart"),ax=Li("transitionrun"),ox=Li("transitionstart"),lx=Li("transitioncancel"),av=Li("transitionend"),ov=new Map,rd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");rd.push("scrollEnd");function xn(e,t){ov.set(e,t),Mi(t,[e])}var Kl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},mn=[],Er=0,ad=0;function Fl(){for(var e=Er,t=ad=Er=0;t<e;){var a=mn[t];mn[t++]=null;var c=mn[t];mn[t++]=null;var d=mn[t];mn[t++]=null;var f=mn[t];if(mn[t++]=null,c!==null&&d!==null){var h=c.pending;h===null?d.next=d:(d.next=h.next,h.next=d),c.pending=d}f!==0&&lv(a,d,f)}}function Wl(e,t,a,c){mn[Er++]=e,mn[Er++]=t,mn[Er++]=a,mn[Er++]=c,ad|=c,e.lanes|=c,e=e.alternate,e!==null&&(e.lanes|=c)}function od(e,t,a,c){return Wl(e,t,a,c),eu(e)}function Hi(e,t){return Wl(e,null,null,t),eu(e)}function lv(e,t,a){e.lanes|=a;var c=e.alternate;c!==null&&(c.lanes|=a);for(var d=!1,f=e.return;f!==null;)f.childLanes|=a,c=f.alternate,c!==null&&(c.childLanes|=a),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(d=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,d&&t!==null&&(d=31-Qt(a),e=f.hiddenUpdates,c=e[d],c===null?e[d]=[t]:c.push(t),t.lane=a|536870912),f):null}function eu(e){if(50<so)throw so=0,gf=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Or={};function ux(e,t,a,c){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ft(e,t,a,c){return new ux(e,t,a,c)}function ld(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bn(e,t){var a=e.alternate;return a===null?(a=Ft(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function uv(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function tu(e,t,a,c,d,f){var h=0;if(c=e,typeof e=="function")ld(e)&&(h=1);else if(typeof e=="string")h=mw(e,a,K.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ae:return e=Ft(31,a,t,d),e.elementType=Ae,e.lanes=f,e;case H:return Bi(a.children,d,f,t);case J:h=8,d|=24;break;case F:return e=Ft(12,a,t,d|2),e.elementType=F,e.lanes=f,e;case Ee:return e=Ft(13,a,t,d),e.elementType=Ee,e.lanes=f,e;case ue:return e=Ft(19,a,t,d),e.elementType=ue,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case de:h=10;break e;case se:h=9;break e;case be:h=11;break e;case G:h=14;break e;case ge:h=16,c=null;break e}h=29,a=Error(l(130,e===null?"null":typeof e,"")),c=null}return t=Ft(h,a,t,d),t.elementType=e,t.type=c,t.lanes=f,t}function Bi(e,t,a,c){return e=Ft(7,e,c,t),e.lanes=a,e}function ud(e,t,a){return e=Ft(6,e,null,t),e.lanes=a,e}function cv(e){var t=Ft(18,null,null,0);return t.stateNode=e,t}function cd(e,t,a){return t=Ft(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var sv=new WeakMap;function pn(e,t){if(typeof e=="object"&&e!==null){var a=sv.get(e);return a!==void 0?a:(t={value:e,source:t,stack:cg(t)},sv.set(e,t),t)}return{value:e,source:t,stack:cg(t)}}var Ur=[],Dr=0,nu=null,Ba=0,hn=[],gn=0,di=null,jn=1,Nn="";function Jn(e,t){Ur[Dr++]=Ba,Ur[Dr++]=nu,nu=e,Ba=t}function dv(e,t,a){hn[gn++]=jn,hn[gn++]=Nn,hn[gn++]=di,di=e;var c=jn;e=Nn;var d=32-Qt(c)-1;c&=~(1<<d),a+=1;var f=32-Qt(t)+d;if(30<f){var h=d-d%5;f=(c&(1<<h)-1).toString(32),c>>=h,d-=h,jn=1<<32-Qt(t)+d|a<<d|c,Nn=f+e}else jn=1<<f|a<<d|c,Nn=e}function sd(e){e.return!==null&&(Jn(e,1),dv(e,1,0))}function dd(e){for(;e===nu;)nu=Ur[--Dr],Ur[Dr]=null,Ba=Ur[--Dr],Ur[Dr]=null;for(;e===di;)di=hn[--gn],hn[gn]=null,Nn=hn[--gn],hn[gn]=null,jn=hn[--gn],hn[gn]=null}function fv(e,t){hn[gn++]=jn,hn[gn++]=Nn,hn[gn++]=di,jn=t.id,Nn=t.overflow,di=e}var $t=null,et=null,De=!1,fi=null,vn=!1,fd=Error(l(519));function mi(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ja(pn(t,e)),fd}function mv(e){var t=e.stateNode,a=e.type,c=e.memoizedProps;switch(t[St]=e,t[Zt]=c,a){case"dialog":Te("cancel",t),Te("close",t);break;case"iframe":case"object":case"embed":Te("load",t);break;case"video":case"audio":for(a=0;a<mo.length;a++)Te(mo[a],t);break;case"source":Te("error",t);break;case"img":case"image":case"link":Te("error",t),Te("load",t);break;case"details":Te("toggle",t);break;case"input":Te("invalid",t),wg(t,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Te("invalid",t);break;case"textarea":Te("invalid",t),Eg(t,c.value,c.defaultValue,c.children)}a=c.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||c.suppressHydrationWarning===!0||Ub(t.textContent,a)?(c.popover!=null&&(Te("beforetoggle",t),Te("toggle",t)),c.onScroll!=null&&Te("scroll",t),c.onScrollEnd!=null&&Te("scrollend",t),c.onClick!=null&&(t.onclick=Ln),t=!0):t=!1,t||mi(e,!0)}function pv(e){for($t=e.return;$t;)switch($t.tag){case 5:case 31:case 13:vn=!1;return;case 27:case 3:vn=!0;return;default:$t=$t.return}}function jr(e){if(e!==$t)return!1;if(!De)return pv(e),De=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Df(e.type,e.memoizedProps)),a=!a),a&&et&&mi(e),pv(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));et=Zb(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));et=Zb(e)}else t===27?(t=et,Ti(e.type)?(e=Rf,Rf=null,et=e):et=t):et=$t?bn(e.stateNode.nextSibling):null;return!0}function Ji(){et=$t=null,De=!1}function md(){var e=fi;return e!==null&&(Jt===null?Jt=e:Jt.push.apply(Jt,e),fi=null),e}function Ja(e){fi===null?fi=[e]:fi.push(e)}var pd=k(null),Gi=null,Gn=null;function pi(e,t,a){X(pd,t._currentValue),t._currentValue=a}function Yn(e){e._currentValue=pd.current,q(pd)}function hd(e,t,a){for(;e!==null;){var c=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,c!==null&&(c.childLanes|=t)):c!==null&&(c.childLanes&t)!==t&&(c.childLanes|=t),e===a)break;e=e.return}}function gd(e,t,a,c){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var f=d.dependencies;if(f!==null){var h=d.child;f=f.firstContext;e:for(;f!==null;){var y=f;f=d;for(var S=0;S<t.length;S++)if(y.context===t[S]){f.lanes|=a,y=f.alternate,y!==null&&(y.lanes|=a),hd(f.return,a,e),c||(h=null);break e}f=y.next}}else if(d.tag===18){if(h=d.return,h===null)throw Error(l(341));h.lanes|=a,f=h.alternate,f!==null&&(f.lanes|=a),hd(h,a,e),h=null}else h=d.child;if(h!==null)h.return=d;else for(h=d;h!==null;){if(h===e){h=null;break}if(d=h.sibling,d!==null){d.return=h.return,h=d;break}h=h.return}d=h}}function Nr(e,t,a,c){e=null;for(var d=t,f=!1;d!==null;){if(!f){if((d.flags&524288)!==0)f=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var h=d.alternate;if(h===null)throw Error(l(387));if(h=h.memoizedProps,h!==null){var y=d.type;Kt(d.pendingProps.value,h.value)||(e!==null?e.push(y):e=[y])}}else if(d===A.current){if(h=d.alternate,h===null)throw Error(l(387));h.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(yo):e=[yo])}d=d.return}e!==null&&gd(t,e,a,c),t.flags|=262144}function iu(e){for(e=e.firstContext;e!==null;){if(!Kt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Yi(e){Gi=e,Gn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function kt(e){return hv(Gi,e)}function ru(e,t){return Gi===null&&Yi(e),hv(e,t)}function hv(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Gn===null){if(e===null)throw Error(l(308));Gn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Gn=Gn.next=t;return a}var cx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,c){e.push(c)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},sx=i.unstable_scheduleCallback,dx=i.unstable_NormalPriority,st={$$typeof:de,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vd(){return{controller:new cx,data:new Map,refCount:0}}function Ga(e){e.refCount--,e.refCount===0&&sx(dx,function(){e.controller.abort()})}var Ya=null,yd=0,Ar=0,Ir=null;function fx(e,t){if(Ya===null){var a=Ya=[];yd=0,Ar=$f(),Ir={status:"pending",value:void 0,then:function(c){a.push(c)}}}return yd++,t.then(gv,gv),t}function gv(){if(--yd===0&&Ya!==null){Ir!==null&&(Ir.status="fulfilled");var e=Ya;Ya=null,Ar=0,Ir=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function mx(e,t){var a=[],c={status:"pending",value:null,reason:null,then:function(d){a.push(d)}};return e.then(function(){c.status="fulfilled",c.value=t;for(var d=0;d<a.length;d++)(0,a[d])(t)},function(d){for(c.status="rejected",c.reason=d,d=0;d<a.length;d++)(0,a[d])(void 0)}),c}var vv=C.S;C.S=function(e,t){eb=Vt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&fx(e,t),vv!==null&&vv(e,t)};var Xi=k(null);function bd(){var e=Xi.current;return e!==null?e:Ke.pooledCache}function au(e,t){t===null?X(Xi,Xi.current):X(Xi,t.pool)}function yv(){var e=bd();return e===null?null:{parent:st._currentValue,pool:e}}var Rr=Error(l(460)),_d=Error(l(474)),ou=Error(l(542)),lu={then:function(){}};function bv(e){return e=e.status,e==="fulfilled"||e==="rejected"}function _v(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Ln,Ln),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$v(e),e;default:if(typeof t.status=="string")t.then(Ln,Ln);else{if(e=Ke,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(c){if(t.status==="pending"){var d=t;d.status="fulfilled",d.value=c}},function(c){if(t.status==="pending"){var d=t;d.status="rejected",d.reason=c}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$v(e),e}throw Pi=t,Rr}}function Vi(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Pi=a,Rr):a}}var Pi=null;function Sv(){if(Pi===null)throw Error(l(459));var e=Pi;return Pi=null,e}function $v(e){if(e===Rr||e===ou)throw Error(l(483))}var Cr=null,Xa=0;function uu(e){var t=Xa;return Xa+=1,Cr===null&&(Cr=[]),_v(Cr,e,t)}function Va(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function cu(e,t){throw t.$$typeof===_?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function kv(e){function t(w,$){if(e){var U=w.deletions;U===null?(w.deletions=[$],w.flags|=16):U.push($)}}function a(w,$){if(!e)return null;for(;$!==null;)t(w,$),$=$.sibling;return null}function c(w){for(var $=new Map;w!==null;)w.key!==null?$.set(w.key,w):$.set(w.index,w),w=w.sibling;return $}function d(w,$){return w=Bn(w,$),w.index=0,w.sibling=null,w}function f(w,$,U){return w.index=U,e?(U=w.alternate,U!==null?(U=U.index,U<$?(w.flags|=67108866,$):U):(w.flags|=67108866,$)):(w.flags|=1048576,$)}function h(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function y(w,$,U,M){return $===null||$.tag!==6?($=ud(U,w.mode,M),$.return=w,$):($=d($,U),$.return=w,$)}function S(w,$,U,M){var ie=U.type;return ie===H?R(w,$,U.props.children,M,U.key):$!==null&&($.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===ge&&Vi(ie)===$.type)?($=d($,U.props),Va($,U),$.return=w,$):($=tu(U.type,U.key,U.props,null,w.mode,M),Va($,U),$.return=w,$)}function D(w,$,U,M){return $===null||$.tag!==4||$.stateNode.containerInfo!==U.containerInfo||$.stateNode.implementation!==U.implementation?($=cd(U,w.mode,M),$.return=w,$):($=d($,U.children||[]),$.return=w,$)}function R(w,$,U,M,ie){return $===null||$.tag!==7?($=Bi(U,w.mode,M,ie),$.return=w,$):($=d($,U),$.return=w,$)}function Z(w,$,U){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return $=ud(""+$,w.mode,U),$.return=w,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case z:return U=tu($.type,$.key,$.props,null,w.mode,U),Va(U,$),U.return=w,U;case x:return $=cd($,w.mode,U),$.return=w,$;case ge:return $=Vi($),Z(w,$,U)}if(jt($)||Dt($))return $=Bi($,w.mode,U,null),$.return=w,$;if(typeof $.then=="function")return Z(w,uu($),U);if($.$$typeof===de)return Z(w,ru(w,$),U);cu(w,$)}return null}function j(w,$,U,M){var ie=$!==null?$.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return ie!==null?null:y(w,$,""+U,M);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case z:return U.key===ie?S(w,$,U,M):null;case x:return U.key===ie?D(w,$,U,M):null;case ge:return U=Vi(U),j(w,$,U,M)}if(jt(U)||Dt(U))return ie!==null?null:R(w,$,U,M,null);if(typeof U.then=="function")return j(w,$,uu(U),M);if(U.$$typeof===de)return j(w,$,ru(w,U),M);cu(w,U)}return null}function I(w,$,U,M,ie){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return w=w.get(U)||null,y($,w,""+M,ie);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case z:return w=w.get(M.key===null?U:M.key)||null,S($,w,M,ie);case x:return w=w.get(M.key===null?U:M.key)||null,D($,w,M,ie);case ge:return M=Vi(M),I(w,$,U,M,ie)}if(jt(M)||Dt(M))return w=w.get(U)||null,R($,w,M,ie,null);if(typeof M.then=="function")return I(w,$,U,uu(M),ie);if(M.$$typeof===de)return I(w,$,U,ru($,M),ie);cu($,M)}return null}function Q(w,$,U,M){for(var ie=null,Re=null,W=$,Se=$=0,Ue=null;W!==null&&Se<U.length;Se++){W.index>Se?(Ue=W,W=null):Ue=W.sibling;var Ce=j(w,W,U[Se],M);if(Ce===null){W===null&&(W=Ue);break}e&&W&&Ce.alternate===null&&t(w,W),$=f(Ce,$,Se),Re===null?ie=Ce:Re.sibling=Ce,Re=Ce,W=Ue}if(Se===U.length)return a(w,W),De&&Jn(w,Se),ie;if(W===null){for(;Se<U.length;Se++)W=Z(w,U[Se],M),W!==null&&($=f(W,$,Se),Re===null?ie=W:Re.sibling=W,Re=W);return De&&Jn(w,Se),ie}for(W=c(W);Se<U.length;Se++)Ue=I(W,w,Se,U[Se],M),Ue!==null&&(e&&Ue.alternate!==null&&W.delete(Ue.key===null?Se:Ue.key),$=f(Ue,$,Se),Re===null?ie=Ue:Re.sibling=Ue,Re=Ue);return e&&W.forEach(function(ji){return t(w,ji)}),De&&Jn(w,Se),ie}function oe(w,$,U,M){if(U==null)throw Error(l(151));for(var ie=null,Re=null,W=$,Se=$=0,Ue=null,Ce=U.next();W!==null&&!Ce.done;Se++,Ce=U.next()){W.index>Se?(Ue=W,W=null):Ue=W.sibling;var ji=j(w,W,Ce.value,M);if(ji===null){W===null&&(W=Ue);break}e&&W&&ji.alternate===null&&t(w,W),$=f(ji,$,Se),Re===null?ie=ji:Re.sibling=ji,Re=ji,W=Ue}if(Ce.done)return a(w,W),De&&Jn(w,Se),ie;if(W===null){for(;!Ce.done;Se++,Ce=U.next())Ce=Z(w,Ce.value,M),Ce!==null&&($=f(Ce,$,Se),Re===null?ie=Ce:Re.sibling=Ce,Re=Ce);return De&&Jn(w,Se),ie}for(W=c(W);!Ce.done;Se++,Ce=U.next())Ce=I(W,w,Se,Ce.value,M),Ce!==null&&(e&&Ce.alternate!==null&&W.delete(Ce.key===null?Se:Ce.key),$=f(Ce,$,Se),Re===null?ie=Ce:Re.sibling=Ce,Re=Ce);return e&&W.forEach(function(zw){return t(w,zw)}),De&&Jn(w,Se),ie}function Ve(w,$,U,M){if(typeof U=="object"&&U!==null&&U.type===H&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case z:e:{for(var ie=U.key;$!==null;){if($.key===ie){if(ie=U.type,ie===H){if($.tag===7){a(w,$.sibling),M=d($,U.props.children),M.return=w,w=M;break e}}else if($.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===ge&&Vi(ie)===$.type){a(w,$.sibling),M=d($,U.props),Va(M,U),M.return=w,w=M;break e}a(w,$);break}else t(w,$);$=$.sibling}U.type===H?(M=Bi(U.props.children,w.mode,M,U.key),M.return=w,w=M):(M=tu(U.type,U.key,U.props,null,w.mode,M),Va(M,U),M.return=w,w=M)}return h(w);case x:e:{for(ie=U.key;$!==null;){if($.key===ie)if($.tag===4&&$.stateNode.containerInfo===U.containerInfo&&$.stateNode.implementation===U.implementation){a(w,$.sibling),M=d($,U.children||[]),M.return=w,w=M;break e}else{a(w,$);break}else t(w,$);$=$.sibling}M=cd(U,w.mode,M),M.return=w,w=M}return h(w);case ge:return U=Vi(U),Ve(w,$,U,M)}if(jt(U))return Q(w,$,U,M);if(Dt(U)){if(ie=Dt(U),typeof ie!="function")throw Error(l(150));return U=ie.call(U),oe(w,$,U,M)}if(typeof U.then=="function")return Ve(w,$,uu(U),M);if(U.$$typeof===de)return Ve(w,$,ru(w,U),M);cu(w,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,$!==null&&$.tag===6?(a(w,$.sibling),M=d($,U),M.return=w,w=M):(a(w,$),M=ud(U,w.mode,M),M.return=w,w=M),h(w)):a(w,$)}return function(w,$,U,M){try{Xa=0;var ie=Ve(w,$,U,M);return Cr=null,ie}catch(W){if(W===Rr||W===ou)throw W;var Re=Ft(29,W,null,w.mode);return Re.lanes=M,Re.return=w,Re}finally{}}}var Qi=kv(!0),zv=kv(!1),hi=!1;function Sd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $d(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function gi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function vi(e,t,a){var c=e.updateQueue;if(c===null)return null;if(c=c.shared,(Ze&2)!==0){var d=c.pending;return d===null?t.next=t:(t.next=d.next,d.next=t),c.pending=t,t=eu(e),lv(e,null,a),t}return Wl(e,c,t,a),eu(e)}function Pa(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var c=t.lanes;c&=e.pendingLanes,a|=c,t.lanes=a,hg(e,a)}}function kd(e,t){var a=e.updateQueue,c=e.alternate;if(c!==null&&(c=c.updateQueue,a===c)){var d=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var h={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?d=f=h:f=f.next=h,a=a.next}while(a!==null);f===null?d=f=t:f=f.next=t}else d=f=t;a={baseState:c.baseState,firstBaseUpdate:d,lastBaseUpdate:f,shared:c.shared,callbacks:c.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var zd=!1;function Qa(){if(zd){var e=Ir;if(e!==null)throw e}}function Ka(e,t,a,c){zd=!1;var d=e.updateQueue;hi=!1;var f=d.firstBaseUpdate,h=d.lastBaseUpdate,y=d.shared.pending;if(y!==null){d.shared.pending=null;var S=y,D=S.next;S.next=null,h===null?f=D:h.next=D,h=S;var R=e.alternate;R!==null&&(R=R.updateQueue,y=R.lastBaseUpdate,y!==h&&(y===null?R.firstBaseUpdate=D:y.next=D,R.lastBaseUpdate=S))}if(f!==null){var Z=d.baseState;h=0,R=D=S=null,y=f;do{var j=y.lane&-536870913,I=j!==y.lane;if(I?(Oe&j)===j:(c&j)===j){j!==0&&j===Ar&&(zd=!0),R!==null&&(R=R.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var Q=e,oe=y;j=t;var Ve=a;switch(oe.tag){case 1:if(Q=oe.payload,typeof Q=="function"){Z=Q.call(Ve,Z,j);break e}Z=Q;break e;case 3:Q.flags=Q.flags&-65537|128;case 0:if(Q=oe.payload,j=typeof Q=="function"?Q.call(Ve,Z,j):Q,j==null)break e;Z=b({},Z,j);break e;case 2:hi=!0}}j=y.callback,j!==null&&(e.flags|=64,I&&(e.flags|=8192),I=d.callbacks,I===null?d.callbacks=[j]:I.push(j))}else I={lane:j,tag:y.tag,payload:y.payload,callback:y.callback,next:null},R===null?(D=R=I,S=Z):R=R.next=I,h|=j;if(y=y.next,y===null){if(y=d.shared.pending,y===null)break;I=y,y=I.next,I.next=null,d.lastBaseUpdate=I,d.shared.pending=null}}while(!0);R===null&&(S=Z),d.baseState=S,d.firstBaseUpdate=D,d.lastBaseUpdate=R,f===null&&(d.shared.lanes=0),$i|=h,e.lanes=h,e.memoizedState=Z}}function xv(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function wv(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)xv(a[e],t)}var Mr=k(null),su=k(0);function Tv(e,t){e=ti,X(su,e),X(Mr,t),ti=e|t.baseLanes}function xd(){X(su,ti),X(Mr,Mr.current)}function wd(){ti=su.current,q(Mr),q(su)}var Wt=k(null),yn=null;function yi(e){var t=e.alternate;X(lt,lt.current&1),X(Wt,e),yn===null&&(t===null||Mr.current!==null||t.memoizedState!==null)&&(yn=e)}function Td(e){X(lt,lt.current),X(Wt,e),yn===null&&(yn=e)}function Ev(e){e.tag===22?(X(lt,lt.current),X(Wt,e),yn===null&&(yn=e)):bi()}function bi(){X(lt,lt.current),X(Wt,Wt.current)}function en(e){q(Wt),yn===e&&(yn=null),q(lt)}var lt=k(0);function du(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Af(a)||If(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xn=0,_e=null,Ye=null,dt=null,fu=!1,Zr=!1,Ki=!1,mu=0,Fa=0,qr=null,px=0;function at(){throw Error(l(321))}function Ed(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Kt(e[a],t[a]))return!1;return!0}function Od(e,t,a,c,d,f){return Xn=f,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,C.H=e===null||e.memoizedState===null?dy:Jd,Ki=!1,f=a(c,d),Ki=!1,Zr&&(f=Uv(t,a,c,d)),Ov(e),f}function Ov(e){C.H=to;var t=Ye!==null&&Ye.next!==null;if(Xn=0,dt=Ye=_e=null,fu=!1,Fa=0,qr=null,t)throw Error(l(300));e===null||ft||(e=e.dependencies,e!==null&&iu(e)&&(ft=!0))}function Uv(e,t,a,c){_e=e;var d=0;do{if(Zr&&(qr=null),Fa=0,Zr=!1,25<=d)throw Error(l(301));if(d+=1,dt=Ye=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}C.H=fy,f=t(a,c)}while(Zr);return f}function hx(){var e=C.H,t=e.useState()[0];return t=typeof t.then=="function"?Wa(t):t,e=e.useState()[0],(Ye!==null?Ye.memoizedState:null)!==e&&(_e.flags|=1024),t}function Ud(){var e=mu!==0;return mu=0,e}function Dd(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function jd(e){if(fu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}fu=!1}Xn=0,dt=Ye=_e=null,Zr=!1,Fa=mu=0,qr=null}function Rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dt===null?_e.memoizedState=dt=e:dt=dt.next=e,dt}function ut(){if(Ye===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=dt===null?_e.memoizedState:dt.next;if(t!==null)dt=t,Ye=e;else{if(e===null)throw _e.alternate===null?Error(l(467)):Error(l(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},dt===null?_e.memoizedState=dt=e:dt=dt.next=e}return dt}function pu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Wa(e){var t=Fa;return Fa+=1,qr===null&&(qr=[]),e=_v(qr,e,t),t=_e,(dt===null?t.memoizedState:dt.next)===null&&(t=t.alternate,C.H=t===null||t.memoizedState===null?dy:Jd),e}function hu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Wa(e);if(e.$$typeof===de)return kt(e)}throw Error(l(438,String(e)))}function Nd(e){var t=null,a=_e.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var c=_e.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(t={data:c.data.map(function(d){return d.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=pu(),_e.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),c=0;c<e;c++)a[c]=Ut;return t.index++,a}function Vn(e,t){return typeof t=="function"?t(e):t}function gu(e){var t=ut();return Ad(t,Ye,e)}function Ad(e,t,a){var c=e.queue;if(c===null)throw Error(l(311));c.lastRenderedReducer=a;var d=e.baseQueue,f=c.pending;if(f!==null){if(d!==null){var h=d.next;d.next=f.next,f.next=h}t.baseQueue=d=f,c.pending=null}if(f=e.baseState,d===null)e.memoizedState=f;else{t=d.next;var y=h=null,S=null,D=t,R=!1;do{var Z=D.lane&-536870913;if(Z!==D.lane?(Oe&Z)===Z:(Xn&Z)===Z){var j=D.revertLane;if(j===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),Z===Ar&&(R=!0);else if((Xn&j)===j){D=D.next,j===Ar&&(R=!0);continue}else Z={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},S===null?(y=S=Z,h=f):S=S.next=Z,_e.lanes|=j,$i|=j;Z=D.action,Ki&&a(f,Z),f=D.hasEagerState?D.eagerState:a(f,Z)}else j={lane:Z,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},S===null?(y=S=j,h=f):S=S.next=j,_e.lanes|=Z,$i|=Z;D=D.next}while(D!==null&&D!==t);if(S===null?h=f:S.next=y,!Kt(f,e.memoizedState)&&(ft=!0,R&&(a=Ir,a!==null)))throw a;e.memoizedState=f,e.baseState=h,e.baseQueue=S,c.lastRenderedState=f}return d===null&&(c.lanes=0),[e.memoizedState,c.dispatch]}function Id(e){var t=ut(),a=t.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=e;var c=a.dispatch,d=a.pending,f=t.memoizedState;if(d!==null){a.pending=null;var h=d=d.next;do f=e(f,h.action),h=h.next;while(h!==d);Kt(f,t.memoizedState)||(ft=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),a.lastRenderedState=f}return[f,c]}function Dv(e,t,a){var c=_e,d=ut(),f=De;if(f){if(a===void 0)throw Error(l(407));a=a()}else a=t();var h=!Kt((Ye||d).memoizedState,a);if(h&&(d.memoizedState=a,ft=!0),d=d.queue,Md(Av.bind(null,c,d,e),[e]),d.getSnapshot!==t||h||dt!==null&&dt.memoizedState.tag&1){if(c.flags|=2048,Lr(9,{destroy:void 0},Nv.bind(null,c,d,a,t),null),Ke===null)throw Error(l(349));f||(Xn&127)!==0||jv(c,t,a)}return a}function jv(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=_e.updateQueue,t===null?(t=pu(),_e.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Nv(e,t,a,c){t.value=a,t.getSnapshot=c,Iv(t)&&Rv(e)}function Av(e,t,a){return a(function(){Iv(t)&&Rv(e)})}function Iv(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Kt(e,a)}catch{return!0}}function Rv(e){var t=Hi(e,2);t!==null&&Gt(t,e,2)}function Rd(e){var t=Rt();if(typeof e=="function"){var a=e;if(e=a(),Ki){ui(!0);try{a()}finally{ui(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:e},t}function Cv(e,t,a,c){return e.baseState=a,Ad(e,Ye,typeof c=="function"?c:Vn)}function gx(e,t,a,c,d){if(bu(e))throw Error(l(485));if(e=t.action,e!==null){var f={payload:d,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){f.listeners.push(h)}};C.T!==null?a(!0):f.isTransition=!1,c(f),a=t.pending,a===null?(f.next=t.pending=f,Mv(t,f)):(f.next=a.next,t.pending=a.next=f)}}function Mv(e,t){var a=t.action,c=t.payload,d=e.state;if(t.isTransition){var f=C.T,h={};C.T=h;try{var y=a(d,c),S=C.S;S!==null&&S(h,y),Zv(e,t,y)}catch(D){Cd(e,t,D)}finally{f!==null&&h.types!==null&&(f.types=h.types),C.T=f}}else try{f=a(d,c),Zv(e,t,f)}catch(D){Cd(e,t,D)}}function Zv(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(c){qv(e,t,c)},function(c){return Cd(e,t,c)}):qv(e,t,a)}function qv(e,t,a){t.status="fulfilled",t.value=a,Lv(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Mv(e,a)))}function Cd(e,t,a){var c=e.pending;if(e.pending=null,c!==null){c=c.next;do t.status="rejected",t.reason=a,Lv(t),t=t.next;while(t!==c)}e.action=null}function Lv(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Hv(e,t){return t}function Bv(e,t){if(De){var a=Ke.formState;if(a!==null){e:{var c=_e;if(De){if(et){t:{for(var d=et,f=vn;d.nodeType!==8;){if(!f){d=null;break t}if(d=bn(d.nextSibling),d===null){d=null;break t}}f=d.data,d=f==="F!"||f==="F"?d:null}if(d){et=bn(d.nextSibling),c=d.data==="F!";break e}}mi(c)}c=!1}c&&(t=a[0])}}return a=Rt(),a.memoizedState=a.baseState=t,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hv,lastRenderedState:t},a.queue=c,a=uy.bind(null,_e,c),c.dispatch=a,c=Rd(!1),f=Bd.bind(null,_e,!1,c.queue),c=Rt(),d={state:t,dispatch:null,action:e,pending:null},c.queue=d,a=gx.bind(null,_e,d,f,a),d.dispatch=a,c.memoizedState=e,[t,a,!1]}function Jv(e){var t=ut();return Gv(t,Ye,e)}function Gv(e,t,a){if(t=Ad(e,t,Hv)[0],e=gu(Vn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var c=Wa(t)}catch(h){throw h===Rr?ou:h}else c=t;t=ut();var d=t.queue,f=d.dispatch;return a!==t.memoizedState&&(_e.flags|=2048,Lr(9,{destroy:void 0},vx.bind(null,d,a),null)),[c,f,e]}function vx(e,t){e.action=t}function Yv(e){var t=ut(),a=Ye;if(a!==null)return Gv(t,a,e);ut(),t=t.memoizedState,a=ut();var c=a.queue.dispatch;return a.memoizedState=e,[t,c,!1]}function Lr(e,t,a,c){return e={tag:e,create:a,deps:c,inst:t,next:null},t=_e.updateQueue,t===null&&(t=pu(),_e.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(c=a.next,a.next=e,e.next=c,t.lastEffect=e),e}function Xv(){return ut().memoizedState}function vu(e,t,a,c){var d=Rt();_e.flags|=e,d.memoizedState=Lr(1|t,{destroy:void 0},a,c===void 0?null:c)}function yu(e,t,a,c){var d=ut();c=c===void 0?null:c;var f=d.memoizedState.inst;Ye!==null&&c!==null&&Ed(c,Ye.memoizedState.deps)?d.memoizedState=Lr(t,f,a,c):(_e.flags|=e,d.memoizedState=Lr(1|t,f,a,c))}function Vv(e,t){vu(8390656,8,e,t)}function Md(e,t){yu(2048,8,e,t)}function yx(e){_e.flags|=4;var t=_e.updateQueue;if(t===null)t=pu(),_e.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Pv(e){var t=ut().memoizedState;return yx({ref:t,nextImpl:e}),function(){if((Ze&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function Qv(e,t){return yu(4,2,e,t)}function Kv(e,t){return yu(4,4,e,t)}function Fv(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Wv(e,t,a){a=a!=null?a.concat([e]):null,yu(4,4,Fv.bind(null,t,e),a)}function Zd(){}function ey(e,t){var a=ut();t=t===void 0?null:t;var c=a.memoizedState;return t!==null&&Ed(t,c[1])?c[0]:(a.memoizedState=[e,t],e)}function ty(e,t){var a=ut();t=t===void 0?null:t;var c=a.memoizedState;if(t!==null&&Ed(t,c[1]))return c[0];if(c=e(),Ki){ui(!0);try{e()}finally{ui(!1)}}return a.memoizedState=[c,t],c}function qd(e,t,a){return a===void 0||(Xn&1073741824)!==0&&(Oe&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=nb(),_e.lanes|=e,$i|=e,a)}function ny(e,t,a,c){return Kt(a,t)?a:Mr.current!==null?(e=qd(e,a,c),Kt(e,t)||(ft=!0),e):(Xn&42)===0||(Xn&1073741824)!==0&&(Oe&261930)===0?(ft=!0,e.memoizedState=a):(e=nb(),_e.lanes|=e,$i|=e,t)}function iy(e,t,a,c,d){var f=Y.p;Y.p=f!==0&&8>f?f:8;var h=C.T,y={};C.T=y,Bd(e,!1,t,a);try{var S=d(),D=C.S;if(D!==null&&D(y,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var R=mx(S,c);eo(e,t,R,rn(e))}else eo(e,t,c,rn(e))}catch(Z){eo(e,t,{then:function(){},status:"rejected",reason:Z},rn())}finally{Y.p=f,h!==null&&y.types!==null&&(h.types=y.types),C.T=h}}function bx(){}function Ld(e,t,a,c){if(e.tag!==5)throw Error(l(476));var d=ry(e).queue;iy(e,d,t,re,a===null?bx:function(){return ay(e),a(c)})}function ry(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:re},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ay(e){var t=ry(e);t.next===null&&(t=e.alternate.memoizedState),eo(e,t.next.queue,{},rn())}function Hd(){return kt(yo)}function oy(){return ut().memoizedState}function ly(){return ut().memoizedState}function _x(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=rn();e=gi(a);var c=vi(t,e,a);c!==null&&(Gt(c,t,a),Pa(c,t,a)),t={cache:vd()},e.payload=t;return}t=t.return}}function Sx(e,t,a){var c=rn();a={lane:c,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},bu(e)?cy(t,a):(a=od(e,t,a,c),a!==null&&(Gt(a,e,c),sy(a,t,c)))}function uy(e,t,a){var c=rn();eo(e,t,a,c)}function eo(e,t,a,c){var d={lane:c,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(bu(e))cy(t,d);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var h=t.lastRenderedState,y=f(h,a);if(d.hasEagerState=!0,d.eagerState=y,Kt(y,h))return Wl(e,t,d,0),Ke===null&&Fl(),!1}catch{}finally{}if(a=od(e,t,d,c),a!==null)return Gt(a,e,c),sy(a,t,c),!0}return!1}function Bd(e,t,a,c){if(c={lane:2,revertLane:$f(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},bu(e)){if(t)throw Error(l(479))}else t=od(e,a,c,2),t!==null&&Gt(t,e,2)}function bu(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function cy(e,t){Zr=fu=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function sy(e,t,a){if((a&4194048)!==0){var c=t.lanes;c&=e.pendingLanes,a|=c,t.lanes=a,hg(e,a)}}var to={readContext:kt,use:hu,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useLayoutEffect:at,useInsertionEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useSyncExternalStore:at,useId:at,useHostTransitionStatus:at,useFormState:at,useActionState:at,useOptimistic:at,useMemoCache:at,useCacheRefresh:at};to.useEffectEvent=at;var dy={readContext:kt,use:hu,useCallback:function(e,t){return Rt().memoizedState=[e,t===void 0?null:t],e},useContext:kt,useEffect:Vv,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,vu(4194308,4,Fv.bind(null,t,e),a)},useLayoutEffect:function(e,t){return vu(4194308,4,e,t)},useInsertionEffect:function(e,t){vu(4,2,e,t)},useMemo:function(e,t){var a=Rt();t=t===void 0?null:t;var c=e();if(Ki){ui(!0);try{e()}finally{ui(!1)}}return a.memoizedState=[c,t],c},useReducer:function(e,t,a){var c=Rt();if(a!==void 0){var d=a(t);if(Ki){ui(!0);try{a(t)}finally{ui(!1)}}}else d=t;return c.memoizedState=c.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},c.queue=e,e=e.dispatch=Sx.bind(null,_e,e),[c.memoizedState,e]},useRef:function(e){var t=Rt();return e={current:e},t.memoizedState=e},useState:function(e){e=Rd(e);var t=e.queue,a=uy.bind(null,_e,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Zd,useDeferredValue:function(e,t){var a=Rt();return qd(a,e,t)},useTransition:function(){var e=Rd(!1);return e=iy.bind(null,_e,e.queue,!0,!1),Rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var c=_e,d=Rt();if(De){if(a===void 0)throw Error(l(407));a=a()}else{if(a=t(),Ke===null)throw Error(l(349));(Oe&127)!==0||jv(c,t,a)}d.memoizedState=a;var f={value:a,getSnapshot:t};return d.queue=f,Vv(Av.bind(null,c,f,e),[e]),c.flags|=2048,Lr(9,{destroy:void 0},Nv.bind(null,c,f,a,t),null),a},useId:function(){var e=Rt(),t=Ke.identifierPrefix;if(De){var a=Nn,c=jn;a=(c&~(1<<32-Qt(c)-1)).toString(32)+a,t="_"+t+"R_"+a,a=mu++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=px++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Hd,useFormState:Bv,useActionState:Bv,useOptimistic:function(e){var t=Rt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Bd.bind(null,_e,!0,a),a.dispatch=t,[e,t]},useMemoCache:Nd,useCacheRefresh:function(){return Rt().memoizedState=_x.bind(null,_e)},useEffectEvent:function(e){var t=Rt(),a={impl:e};return t.memoizedState=a,function(){if((Ze&2)!==0)throw Error(l(440));return a.impl.apply(void 0,arguments)}}},Jd={readContext:kt,use:hu,useCallback:ey,useContext:kt,useEffect:Md,useImperativeHandle:Wv,useInsertionEffect:Qv,useLayoutEffect:Kv,useMemo:ty,useReducer:gu,useRef:Xv,useState:function(){return gu(Vn)},useDebugValue:Zd,useDeferredValue:function(e,t){var a=ut();return ny(a,Ye.memoizedState,e,t)},useTransition:function(){var e=gu(Vn)[0],t=ut().memoizedState;return[typeof e=="boolean"?e:Wa(e),t]},useSyncExternalStore:Dv,useId:oy,useHostTransitionStatus:Hd,useFormState:Jv,useActionState:Jv,useOptimistic:function(e,t){var a=ut();return Cv(a,Ye,e,t)},useMemoCache:Nd,useCacheRefresh:ly};Jd.useEffectEvent=Pv;var fy={readContext:kt,use:hu,useCallback:ey,useContext:kt,useEffect:Md,useImperativeHandle:Wv,useInsertionEffect:Qv,useLayoutEffect:Kv,useMemo:ty,useReducer:Id,useRef:Xv,useState:function(){return Id(Vn)},useDebugValue:Zd,useDeferredValue:function(e,t){var a=ut();return Ye===null?qd(a,e,t):ny(a,Ye.memoizedState,e,t)},useTransition:function(){var e=Id(Vn)[0],t=ut().memoizedState;return[typeof e=="boolean"?e:Wa(e),t]},useSyncExternalStore:Dv,useId:oy,useHostTransitionStatus:Hd,useFormState:Yv,useActionState:Yv,useOptimistic:function(e,t){var a=ut();return Ye!==null?Cv(a,Ye,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Nd,useCacheRefresh:ly};fy.useEffectEvent=Pv;function Gd(e,t,a,c){t=e.memoizedState,a=a(c,t),a=a==null?t:b({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Yd={enqueueSetState:function(e,t,a){e=e._reactInternals;var c=rn(),d=gi(c);d.payload=t,a!=null&&(d.callback=a),t=vi(e,d,c),t!==null&&(Gt(t,e,c),Pa(t,e,c))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var c=rn(),d=gi(c);d.tag=1,d.payload=t,a!=null&&(d.callback=a),t=vi(e,d,c),t!==null&&(Gt(t,e,c),Pa(t,e,c))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=rn(),c=gi(a);c.tag=2,t!=null&&(c.callback=t),t=vi(e,c,a),t!==null&&(Gt(t,e,a),Pa(t,e,a))}};function my(e,t,a,c,d,f,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(c,f,h):t.prototype&&t.prototype.isPureReactComponent?!La(a,c)||!La(d,f):!0}function py(e,t,a,c){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,c),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,c),t.state!==e&&Yd.enqueueReplaceState(t,t.state,null)}function Fi(e,t){var a=t;if("ref"in t){a={};for(var c in t)c!=="ref"&&(a[c]=t[c])}if(e=e.defaultProps){a===t&&(a=b({},a));for(var d in e)a[d]===void 0&&(a[d]=e[d])}return a}function hy(e){Kl(e)}function gy(e){console.error(e)}function vy(e){Kl(e)}function _u(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(c){setTimeout(function(){throw c})}}function yy(e,t,a){try{var c=e.onCaughtError;c(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Xd(e,t,a){return a=gi(a),a.tag=3,a.payload={element:null},a.callback=function(){_u(e,t)},a}function by(e){return e=gi(e),e.tag=3,e}function _y(e,t,a,c){var d=a.type.getDerivedStateFromError;if(typeof d=="function"){var f=c.value;e.payload=function(){return d(f)},e.callback=function(){yy(t,a,c)}}var h=a.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){yy(t,a,c),typeof d!="function"&&(ki===null?ki=new Set([this]):ki.add(this));var y=c.stack;this.componentDidCatch(c.value,{componentStack:y!==null?y:""})})}function $x(e,t,a,c,d){if(a.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(t=a.alternate,t!==null&&Nr(t,a,d,!0),a=Wt.current,a!==null){switch(a.tag){case 31:case 13:return yn===null?ju():a.alternate===null&&ot===0&&(ot=3),a.flags&=-257,a.flags|=65536,a.lanes=d,c===lu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([c]):t.add(c),bf(e,c,d)),!1;case 22:return a.flags|=65536,c===lu?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([c])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([c]):a.add(c)),bf(e,c,d)),!1}throw Error(l(435,a.tag))}return bf(e,c,d),ju(),!1}if(De)return t=Wt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=d,c!==fd&&(e=Error(l(422),{cause:c}),Ja(pn(e,a)))):(c!==fd&&(t=Error(l(423),{cause:c}),Ja(pn(t,a))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,c=pn(c,a),d=Xd(e.stateNode,c,d),kd(e,d),ot!==4&&(ot=2)),!1;var f=Error(l(520),{cause:c});if(f=pn(f,a),co===null?co=[f]:co.push(f),ot!==4&&(ot=2),t===null)return!0;c=pn(c,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=d&-d,a.lanes|=e,e=Xd(a.stateNode,c,e),kd(a,e),!1;case 1:if(t=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(ki===null||!ki.has(f))))return a.flags|=65536,d&=-d,a.lanes|=d,d=by(d),_y(d,e,a,c),kd(a,d),!1}a=a.return}while(a!==null);return!1}var Vd=Error(l(461)),ft=!1;function zt(e,t,a,c){t.child=e===null?zv(t,null,a,c):Qi(t,e.child,a,c)}function Sy(e,t,a,c,d){a=a.render;var f=t.ref;if("ref"in c){var h={};for(var y in c)y!=="ref"&&(h[y]=c[y])}else h=c;return Yi(t),c=Od(e,t,a,h,f,d),y=Ud(),e!==null&&!ft?(Dd(e,t,d),Pn(e,t,d)):(De&&y&&sd(t),t.flags|=1,zt(e,t,c,d),t.child)}function $y(e,t,a,c,d){if(e===null){var f=a.type;return typeof f=="function"&&!ld(f)&&f.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=f,ky(e,t,f,c,d)):(e=tu(a.type,null,c,t,t.mode,d),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!nf(e,d)){var h=f.memoizedProps;if(a=a.compare,a=a!==null?a:La,a(h,c)&&e.ref===t.ref)return Pn(e,t,d)}return t.flags|=1,e=Bn(f,c),e.ref=t.ref,e.return=t,t.child=e}function ky(e,t,a,c,d){if(e!==null){var f=e.memoizedProps;if(La(f,c)&&e.ref===t.ref)if(ft=!1,t.pendingProps=c=f,nf(e,d))(e.flags&131072)!==0&&(ft=!0);else return t.lanes=e.lanes,Pn(e,t,d)}return Pd(e,t,a,c,d)}function zy(e,t,a,c){var d=c.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|a:a,e!==null){for(c=t.child=e.child,d=0;c!==null;)d=d|c.lanes|c.childLanes,c=c.sibling;c=d&~f}else c=0,t.child=null;return xy(e,t,f,a,c)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&au(t,f!==null?f.cachePool:null),f!==null?Tv(t,f):xd(),Ev(t);else return c=t.lanes=536870912,xy(e,t,f!==null?f.baseLanes|a:a,a,c)}else f!==null?(au(t,f.cachePool),Tv(t,f),bi(),t.memoizedState=null):(e!==null&&au(t,null),xd(),bi());return zt(e,t,d,a),t.child}function no(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function xy(e,t,a,c,d){var f=bd();return f=f===null?null:{parent:st._currentValue,pool:f},t.memoizedState={baseLanes:a,cachePool:f},e!==null&&au(t,null),xd(),Ev(t),e!==null&&Nr(e,t,c,!0),t.childLanes=d,null}function Su(e,t){return t=ku({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function wy(e,t,a){return Qi(t,e.child,null,a),e=Su(t,t.pendingProps),e.flags|=2,en(t),t.memoizedState=null,e}function kx(e,t,a){var c=t.pendingProps,d=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(De){if(c.mode==="hidden")return e=Su(t,c),t.lanes=536870912,no(null,e);if(Td(t),(e=et)?(e=Mb(e,vn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:di!==null?{id:jn,overflow:Nn}:null,retryLane:536870912,hydrationErrors:null},a=cv(e),a.return=t,t.child=a,$t=t,et=null)):e=null,e===null)throw mi(t);return t.lanes=536870912,null}return Su(t,c)}var f=e.memoizedState;if(f!==null){var h=f.dehydrated;if(Td(t),d)if(t.flags&256)t.flags&=-257,t=wy(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(ft||Nr(e,t,a,!1),d=(a&e.childLanes)!==0,ft||d){if(c=Ke,c!==null&&(h=gg(c,a),h!==0&&h!==f.retryLane))throw f.retryLane=h,Hi(e,h),Gt(c,e,h),Vd;ju(),t=wy(e,t,a)}else e=f.treeContext,et=bn(h.nextSibling),$t=t,De=!0,fi=null,vn=!1,e!==null&&fv(t,e),t=Su(t,c),t.flags|=4096;return t}return e=Bn(e.child,{mode:c.mode,children:c.children}),e.ref=t.ref,t.child=e,e.return=t,e}function $u(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(l(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Pd(e,t,a,c,d){return Yi(t),a=Od(e,t,a,c,void 0,d),c=Ud(),e!==null&&!ft?(Dd(e,t,d),Pn(e,t,d)):(De&&c&&sd(t),t.flags|=1,zt(e,t,a,d),t.child)}function Ty(e,t,a,c,d,f){return Yi(t),t.updateQueue=null,a=Uv(t,c,a,d),Ov(e),c=Ud(),e!==null&&!ft?(Dd(e,t,f),Pn(e,t,f)):(De&&c&&sd(t),t.flags|=1,zt(e,t,a,f),t.child)}function Ey(e,t,a,c,d){if(Yi(t),t.stateNode===null){var f=Or,h=a.contextType;typeof h=="object"&&h!==null&&(f=kt(h)),f=new a(c,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Yd,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=c,f.state=t.memoizedState,f.refs={},Sd(t),h=a.contextType,f.context=typeof h=="object"&&h!==null?kt(h):Or,f.state=t.memoizedState,h=a.getDerivedStateFromProps,typeof h=="function"&&(Gd(t,a,h,c),f.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(h=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),h!==f.state&&Yd.enqueueReplaceState(f,f.state,null),Ka(t,c,f,d),Qa(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),c=!0}else if(e===null){f=t.stateNode;var y=t.memoizedProps,S=Fi(a,y);f.props=S;var D=f.context,R=a.contextType;h=Or,typeof R=="object"&&R!==null&&(h=kt(R));var Z=a.getDerivedStateFromProps;R=typeof Z=="function"||typeof f.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,R||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y||D!==h)&&py(t,f,c,h),hi=!1;var j=t.memoizedState;f.state=j,Ka(t,c,f,d),Qa(),D=t.memoizedState,y||j!==D||hi?(typeof Z=="function"&&(Gd(t,a,Z,c),D=t.memoizedState),(S=hi||my(t,a,S,c,j,D,h))?(R||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=c,t.memoizedState=D),f.props=c,f.state=D,f.context=h,c=S):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),c=!1)}else{f=t.stateNode,$d(e,t),h=t.memoizedProps,R=Fi(a,h),f.props=R,Z=t.pendingProps,j=f.context,D=a.contextType,S=Or,typeof D=="object"&&D!==null&&(S=kt(D)),y=a.getDerivedStateFromProps,(D=typeof y=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(h!==Z||j!==S)&&py(t,f,c,S),hi=!1,j=t.memoizedState,f.state=j,Ka(t,c,f,d),Qa();var I=t.memoizedState;h!==Z||j!==I||hi||e!==null&&e.dependencies!==null&&iu(e.dependencies)?(typeof y=="function"&&(Gd(t,a,y,c),I=t.memoizedState),(R=hi||my(t,a,R,c,j,I,S)||e!==null&&e.dependencies!==null&&iu(e.dependencies))?(D||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(c,I,S),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(c,I,S)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||h===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=c,t.memoizedState=I),f.props=c,f.state=I,f.context=S,c=R):(typeof f.componentDidUpdate!="function"||h===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),c=!1)}return f=c,$u(e,t),c=(t.flags&128)!==0,f||c?(f=t.stateNode,a=c&&typeof a.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&c?(t.child=Qi(t,e.child,null,d),t.child=Qi(t,null,a,d)):zt(e,t,a,d),t.memoizedState=f.state,e=t.child):e=Pn(e,t,d),e}function Oy(e,t,a,c){return Ji(),t.flags|=256,zt(e,t,a,c),t.child}var Qd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Kd(e){return{baseLanes:e,cachePool:yv()}}function Fd(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=nn),e}function Uy(e,t,a){var c=t.pendingProps,d=!1,f=(t.flags&128)!==0,h;if((h=f)||(h=e!==null&&e.memoizedState===null?!1:(lt.current&2)!==0),h&&(d=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(De){if(d?yi(t):bi(),(e=et)?(e=Mb(e,vn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:di!==null?{id:jn,overflow:Nn}:null,retryLane:536870912,hydrationErrors:null},a=cv(e),a.return=t,t.child=a,$t=t,et=null)):e=null,e===null)throw mi(t);return If(e)?t.lanes=32:t.lanes=536870912,null}var y=c.children;return c=c.fallback,d?(bi(),d=t.mode,y=ku({mode:"hidden",children:y},d),c=Bi(c,d,a,null),y.return=t,c.return=t,y.sibling=c,t.child=y,c=t.child,c.memoizedState=Kd(a),c.childLanes=Fd(e,h,a),t.memoizedState=Qd,no(null,c)):(yi(t),Wd(t,y))}var S=e.memoizedState;if(S!==null&&(y=S.dehydrated,y!==null)){if(f)t.flags&256?(yi(t),t.flags&=-257,t=ef(e,t,a)):t.memoizedState!==null?(bi(),t.child=e.child,t.flags|=128,t=null):(bi(),y=c.fallback,d=t.mode,c=ku({mode:"visible",children:c.children},d),y=Bi(y,d,a,null),y.flags|=2,c.return=t,y.return=t,c.sibling=y,t.child=c,Qi(t,e.child,null,a),c=t.child,c.memoizedState=Kd(a),c.childLanes=Fd(e,h,a),t.memoizedState=Qd,t=no(null,c));else if(yi(t),If(y)){if(h=y.nextSibling&&y.nextSibling.dataset,h)var D=h.dgst;h=D,c=Error(l(419)),c.stack="",c.digest=h,Ja({value:c,source:null,stack:null}),t=ef(e,t,a)}else if(ft||Nr(e,t,a,!1),h=(a&e.childLanes)!==0,ft||h){if(h=Ke,h!==null&&(c=gg(h,a),c!==0&&c!==S.retryLane))throw S.retryLane=c,Hi(e,c),Gt(h,e,c),Vd;Af(y)||ju(),t=ef(e,t,a)}else Af(y)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,et=bn(y.nextSibling),$t=t,De=!0,fi=null,vn=!1,e!==null&&fv(t,e),t=Wd(t,c.children),t.flags|=4096);return t}return d?(bi(),y=c.fallback,d=t.mode,S=e.child,D=S.sibling,c=Bn(S,{mode:"hidden",children:c.children}),c.subtreeFlags=S.subtreeFlags&65011712,D!==null?y=Bn(D,y):(y=Bi(y,d,a,null),y.flags|=2),y.return=t,c.return=t,c.sibling=y,t.child=c,no(null,c),c=t.child,y=e.child.memoizedState,y===null?y=Kd(a):(d=y.cachePool,d!==null?(S=st._currentValue,d=d.parent!==S?{parent:S,pool:S}:d):d=yv(),y={baseLanes:y.baseLanes|a,cachePool:d}),c.memoizedState=y,c.childLanes=Fd(e,h,a),t.memoizedState=Qd,no(e.child,c)):(yi(t),a=e.child,e=a.sibling,a=Bn(a,{mode:"visible",children:c.children}),a.return=t,a.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=a,t.memoizedState=null,a)}function Wd(e,t){return t=ku({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ku(e,t){return e=Ft(22,e,null,t),e.lanes=0,e}function ef(e,t,a){return Qi(t,e.child,null,a),e=Wd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Dy(e,t,a){e.lanes|=t;var c=e.alternate;c!==null&&(c.lanes|=t),hd(e.return,t,a)}function tf(e,t,a,c,d,f){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:c,tail:a,tailMode:d,treeForkCount:f}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=c,h.tail=a,h.tailMode=d,h.treeForkCount=f)}function jy(e,t,a){var c=t.pendingProps,d=c.revealOrder,f=c.tail;c=c.children;var h=lt.current,y=(h&2)!==0;if(y?(h=h&1|2,t.flags|=128):h&=1,X(lt,h),zt(e,t,c,a),c=De?Ba:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dy(e,a,t);else if(e.tag===19)Dy(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(d){case"forwards":for(a=t.child,d=null;a!==null;)e=a.alternate,e!==null&&du(e)===null&&(d=a),a=a.sibling;a=d,a===null?(d=t.child,t.child=null):(d=a.sibling,a.sibling=null),tf(t,!1,d,a,f,c);break;case"backwards":case"unstable_legacy-backwards":for(a=null,d=t.child,t.child=null;d!==null;){if(e=d.alternate,e!==null&&du(e)===null){t.child=d;break}e=d.sibling,d.sibling=a,a=d,d=e}tf(t,!0,a,null,f,c);break;case"together":tf(t,!1,null,null,void 0,c);break;default:t.memoizedState=null}return t.child}function Pn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),$i|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Nr(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,a=Bn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Bn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function nf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&iu(e)))}function zx(e,t,a){switch(t.tag){case 3:P(t,t.stateNode.containerInfo),pi(t,st,e.memoizedState.cache),Ji();break;case 27:case 5:rt(t);break;case 4:P(t,t.stateNode.containerInfo);break;case 10:pi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Td(t),null;break;case 13:var c=t.memoizedState;if(c!==null)return c.dehydrated!==null?(yi(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Uy(e,t,a):(yi(t),e=Pn(e,t,a),e!==null?e.sibling:null);yi(t);break;case 19:var d=(e.flags&128)!==0;if(c=(a&t.childLanes)!==0,c||(Nr(e,t,a,!1),c=(a&t.childLanes)!==0),d){if(c)return jy(e,t,a);t.flags|=128}if(d=t.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),X(lt,lt.current),c)break;return null;case 22:return t.lanes=0,zy(e,t,a,t.pendingProps);case 24:pi(t,st,e.memoizedState.cache)}return Pn(e,t,a)}function Ny(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)ft=!0;else{if(!nf(e,a)&&(t.flags&128)===0)return ft=!1,zx(e,t,a);ft=(e.flags&131072)!==0}else ft=!1,De&&(t.flags&1048576)!==0&&dv(t,Ba,t.index);switch(t.lanes=0,t.tag){case 16:e:{var c=t.pendingProps;if(e=Vi(t.elementType),t.type=e,typeof e=="function")ld(e)?(c=Fi(e,c),t.tag=1,t=Ey(null,t,e,c,a)):(t.tag=0,t=Pd(null,t,e,c,a));else{if(e!=null){var d=e.$$typeof;if(d===be){t.tag=11,t=Sy(null,t,e,c,a);break e}else if(d===G){t.tag=14,t=$y(null,t,e,c,a);break e}}throw t=zn(e)||e,Error(l(306,t,""))}}return t;case 0:return Pd(e,t,t.type,t.pendingProps,a);case 1:return c=t.type,d=Fi(c,t.pendingProps),Ey(e,t,c,d,a);case 3:e:{if(P(t,t.stateNode.containerInfo),e===null)throw Error(l(387));c=t.pendingProps;var f=t.memoizedState;d=f.element,$d(e,t),Ka(t,c,null,a);var h=t.memoizedState;if(c=h.cache,pi(t,st,c),c!==f.cache&&gd(t,[st],a,!0),Qa(),c=h.element,f.isDehydrated)if(f={element:c,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=Oy(e,t,c,a);break e}else if(c!==d){d=pn(Error(l(424)),t),Ja(d),t=Oy(e,t,c,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(et=bn(e.firstChild),$t=t,De=!0,fi=null,vn=!0,a=zv(t,null,c,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Ji(),c===d){t=Pn(e,t,a);break e}zt(e,t,c,a)}t=t.child}return t;case 26:return $u(e,t),e===null?(a=Jb(t.type,null,t.pendingProps,null))?t.memoizedState=a:De||(a=t.type,e=t.pendingProps,c=Zu($e.current).createElement(a),c[St]=t,c[Zt]=e,xt(c,a,e),yt(c),t.stateNode=c):t.memoizedState=Jb(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return rt(t),e===null&&De&&(c=t.stateNode=Lb(t.type,t.pendingProps,$e.current),$t=t,vn=!0,d=et,Ti(t.type)?(Rf=d,et=bn(c.firstChild)):et=d),zt(e,t,t.pendingProps.children,a),$u(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&De&&((d=c=et)&&(c=ew(c,t.type,t.pendingProps,vn),c!==null?(t.stateNode=c,$t=t,et=bn(c.firstChild),vn=!1,d=!0):d=!1),d||mi(t)),rt(t),d=t.type,f=t.pendingProps,h=e!==null?e.memoizedProps:null,c=f.children,Df(d,f)?c=null:h!==null&&Df(d,h)&&(t.flags|=32),t.memoizedState!==null&&(d=Od(e,t,hx,null,null,a),yo._currentValue=d),$u(e,t),zt(e,t,c,a),t.child;case 6:return e===null&&De&&((e=a=et)&&(a=tw(a,t.pendingProps,vn),a!==null?(t.stateNode=a,$t=t,et=null,e=!0):e=!1),e||mi(t)),null;case 13:return Uy(e,t,a);case 4:return P(t,t.stateNode.containerInfo),c=t.pendingProps,e===null?t.child=Qi(t,null,c,a):zt(e,t,c,a),t.child;case 11:return Sy(e,t,t.type,t.pendingProps,a);case 7:return zt(e,t,t.pendingProps,a),t.child;case 8:return zt(e,t,t.pendingProps.children,a),t.child;case 12:return zt(e,t,t.pendingProps.children,a),t.child;case 10:return c=t.pendingProps,pi(t,t.type,c.value),zt(e,t,c.children,a),t.child;case 9:return d=t.type._context,c=t.pendingProps.children,Yi(t),d=kt(d),c=c(d),t.flags|=1,zt(e,t,c,a),t.child;case 14:return $y(e,t,t.type,t.pendingProps,a);case 15:return ky(e,t,t.type,t.pendingProps,a);case 19:return jy(e,t,a);case 31:return kx(e,t,a);case 22:return zy(e,t,a,t.pendingProps);case 24:return Yi(t),c=kt(st),e===null?(d=bd(),d===null&&(d=Ke,f=vd(),d.pooledCache=f,f.refCount++,f!==null&&(d.pooledCacheLanes|=a),d=f),t.memoizedState={parent:c,cache:d},Sd(t),pi(t,st,d)):((e.lanes&a)!==0&&($d(e,t),Ka(t,null,null,a),Qa()),d=e.memoizedState,f=t.memoizedState,d.parent!==c?(d={parent:c,cache:c},t.memoizedState=d,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=d),pi(t,st,c)):(c=f.cache,pi(t,st,c),c!==d.cache&&gd(t,[st],a,!0))),zt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function Qn(e){e.flags|=4}function rf(e,t,a,c,d){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(d&335544128)===d)if(e.stateNode.complete)e.flags|=8192;else if(ob())e.flags|=8192;else throw Pi=lu,_d}else e.flags&=-16777217}function Ay(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Pb(t))if(ob())e.flags|=8192;else throw Pi=lu,_d}function zu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?mg():536870912,e.lanes|=t,Gr|=t)}function io(e,t){if(!De)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:c.sibling=null}}function tt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,c=0;if(t)for(var d=e.child;d!==null;)a|=d.lanes|d.childLanes,c|=d.subtreeFlags&65011712,c|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)a|=d.lanes|d.childLanes,c|=d.subtreeFlags,c|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=c,e.childLanes=a,t}function xx(e,t,a){var c=t.pendingProps;switch(dd(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return tt(t),null;case 1:return tt(t),null;case 3:return a=t.stateNode,c=null,e!==null&&(c=e.memoizedState.cache),t.memoizedState.cache!==c&&(t.flags|=2048),Yn(st),me(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(jr(t)?Qn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,md())),tt(t),null;case 26:var d=t.type,f=t.memoizedState;return e===null?(Qn(t),f!==null?(tt(t),Ay(t,f)):(tt(t),rf(t,d,null,c,a))):f?f!==e.memoizedState?(Qn(t),tt(t),Ay(t,f)):(tt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==c&&Qn(t),tt(t),rf(t,d,e,c,a)),null;case 27:if(pt(t),a=$e.current,d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==c&&Qn(t);else{if(!c){if(t.stateNode===null)throw Error(l(166));return tt(t),null}e=K.current,jr(t)?mv(t):(e=Lb(d,c,a),t.stateNode=e,Qn(t))}return tt(t),null;case 5:if(pt(t),d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==c&&Qn(t);else{if(!c){if(t.stateNode===null)throw Error(l(166));return tt(t),null}if(f=K.current,jr(t))mv(t);else{var h=Zu($e.current);switch(f){case 1:f=h.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:f=h.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":f=h.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":f=h.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":f=h.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof c.is=="string"?h.createElement("select",{is:c.is}):h.createElement("select"),c.multiple?f.multiple=!0:c.size&&(f.size=c.size);break;default:f=typeof c.is=="string"?h.createElement(d,{is:c.is}):h.createElement(d)}}f[St]=t,f[Zt]=c;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)f.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=f;e:switch(xt(f,d,c),d){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&Qn(t)}}return tt(t),rf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==c&&Qn(t);else{if(typeof c!="string"&&t.stateNode===null)throw Error(l(166));if(e=$e.current,jr(t)){if(e=t.stateNode,a=t.memoizedProps,c=null,d=$t,d!==null)switch(d.tag){case 27:case 5:c=d.memoizedProps}e[St]=t,e=!!(e.nodeValue===a||c!==null&&c.suppressHydrationWarning===!0||Ub(e.nodeValue,a)),e||mi(t,!0)}else e=Zu(e).createTextNode(c),e[St]=t,t.stateNode=e}return tt(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(c=jr(t),a!==null){if(e===null){if(!c)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[St]=t}else Ji(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;tt(t),e=!1}else a=md(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(en(t),t):(en(t),null);if((t.flags&128)!==0)throw Error(l(558))}return tt(t),null;case 13:if(c=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=jr(t),c!==null&&c.dehydrated!==null){if(e===null){if(!d)throw Error(l(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(l(317));d[St]=t}else Ji(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;tt(t),d=!1}else d=md(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return t.flags&256?(en(t),t):(en(t),null)}return en(t),(t.flags&128)!==0?(t.lanes=a,t):(a=c!==null,e=e!==null&&e.memoizedState!==null,a&&(c=t.child,d=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(d=c.alternate.memoizedState.cachePool.pool),f=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(f=c.memoizedState.cachePool.pool),f!==d&&(c.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),zu(t,t.updateQueue),tt(t),null);case 4:return me(),e===null&&wf(t.stateNode.containerInfo),tt(t),null;case 10:return Yn(t.type),tt(t),null;case 19:if(q(lt),c=t.memoizedState,c===null)return tt(t),null;if(d=(t.flags&128)!==0,f=c.rendering,f===null)if(d)io(c,!1);else{if(ot!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=du(e),f!==null){for(t.flags|=128,io(c,!1),e=f.updateQueue,t.updateQueue=e,zu(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)uv(a,e),a=a.sibling;return X(lt,lt.current&1|2),De&&Jn(t,c.treeForkCount),t.child}e=e.sibling}c.tail!==null&&Vt()>Ou&&(t.flags|=128,d=!0,io(c,!1),t.lanes=4194304)}else{if(!d)if(e=du(f),e!==null){if(t.flags|=128,d=!0,e=e.updateQueue,t.updateQueue=e,zu(t,e),io(c,!0),c.tail===null&&c.tailMode==="hidden"&&!f.alternate&&!De)return tt(t),null}else 2*Vt()-c.renderingStartTime>Ou&&a!==536870912&&(t.flags|=128,d=!0,io(c,!1),t.lanes=4194304);c.isBackwards?(f.sibling=t.child,t.child=f):(e=c.last,e!==null?e.sibling=f:t.child=f,c.last=f)}return c.tail!==null?(e=c.tail,c.rendering=e,c.tail=e.sibling,c.renderingStartTime=Vt(),e.sibling=null,a=lt.current,X(lt,d?a&1|2:a&1),De&&Jn(t,c.treeForkCount),e):(tt(t),null);case 22:case 23:return en(t),wd(),c=t.memoizedState!==null,e!==null?e.memoizedState!==null!==c&&(t.flags|=8192):c&&(t.flags|=8192),c?(a&536870912)!==0&&(t.flags&128)===0&&(tt(t),t.subtreeFlags&6&&(t.flags|=8192)):tt(t),a=t.updateQueue,a!==null&&zu(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),c=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(c=t.memoizedState.cachePool.pool),c!==a&&(t.flags|=2048),e!==null&&q(Xi),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Yn(st),tt(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function wx(e,t){switch(dd(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yn(st),me(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pt(t),null;case 31:if(t.memoizedState!==null){if(en(t),t.alternate===null)throw Error(l(340));Ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(en(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));Ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(lt),null;case 4:return me(),null;case 10:return Yn(t.type),null;case 22:case 23:return en(t),wd(),e!==null&&q(Xi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Yn(st),null;case 25:return null;default:return null}}function Iy(e,t){switch(dd(t),t.tag){case 3:Yn(st),me();break;case 26:case 27:case 5:pt(t);break;case 4:me();break;case 31:t.memoizedState!==null&&en(t);break;case 13:en(t);break;case 19:q(lt);break;case 10:Yn(t.type);break;case 22:case 23:en(t),wd(),e!==null&&q(Xi);break;case 24:Yn(st)}}function ro(e,t){try{var a=t.updateQueue,c=a!==null?a.lastEffect:null;if(c!==null){var d=c.next;a=d;do{if((a.tag&e)===e){c=void 0;var f=a.create,h=a.inst;c=f(),h.destroy=c}a=a.next}while(a!==d)}}catch(y){Je(t,t.return,y)}}function _i(e,t,a){try{var c=t.updateQueue,d=c!==null?c.lastEffect:null;if(d!==null){var f=d.next;c=f;do{if((c.tag&e)===e){var h=c.inst,y=h.destroy;if(y!==void 0){h.destroy=void 0,d=t;var S=a,D=y;try{D()}catch(R){Je(d,S,R)}}}c=c.next}while(c!==f)}}catch(R){Je(t,t.return,R)}}function Ry(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{wv(t,a)}catch(c){Je(e,e.return,c)}}}function Cy(e,t,a){a.props=Fi(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(c){Je(e,t,c)}}function ao(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var c=e.stateNode;break;case 30:c=e.stateNode;break;default:c=e.stateNode}typeof a=="function"?e.refCleanup=a(c):a.current=c}}catch(d){Je(e,t,d)}}function An(e,t){var a=e.ref,c=e.refCleanup;if(a!==null)if(typeof c=="function")try{c()}catch(d){Je(e,t,d)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(d){Je(e,t,d)}else a.current=null}function My(e){var t=e.type,a=e.memoizedProps,c=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&c.focus();break e;case"img":a.src?c.src=a.src:a.srcSet&&(c.srcset=a.srcSet)}}catch(d){Je(e,e.return,d)}}function af(e,t,a){try{var c=e.stateNode;Vx(c,e.type,a,t),c[Zt]=t}catch(d){Je(e,e.return,d)}}function Zy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ti(e.type)||e.tag===4}function of(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ti(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function lf(e,t,a){var c=e.tag;if(c===5||c===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Ln));else if(c!==4&&(c===27&&Ti(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(lf(e,t,a),e=e.sibling;e!==null;)lf(e,t,a),e=e.sibling}function xu(e,t,a){var c=e.tag;if(c===5||c===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(c!==4&&(c===27&&Ti(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(xu(e,t,a),e=e.sibling;e!==null;)xu(e,t,a),e=e.sibling}function qy(e){var t=e.stateNode,a=e.memoizedProps;try{for(var c=e.type,d=t.attributes;d.length;)t.removeAttributeNode(d[0]);xt(t,c,a),t[St]=e,t[Zt]=a}catch(f){Je(e,e.return,f)}}var Kn=!1,mt=!1,uf=!1,Ly=typeof WeakSet=="function"?WeakSet:Set,bt=null;function Tx(e,t){if(e=e.containerInfo,Of=Yu,e=Wg(e),ed(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var c=a.getSelection&&a.getSelection();if(c&&c.rangeCount!==0){a=c.anchorNode;var d=c.anchorOffset,f=c.focusNode;c=c.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var h=0,y=-1,S=-1,D=0,R=0,Z=e,j=null;t:for(;;){for(var I;Z!==a||d!==0&&Z.nodeType!==3||(y=h+d),Z!==f||c!==0&&Z.nodeType!==3||(S=h+c),Z.nodeType===3&&(h+=Z.nodeValue.length),(I=Z.firstChild)!==null;)j=Z,Z=I;for(;;){if(Z===e)break t;if(j===a&&++D===d&&(y=h),j===f&&++R===c&&(S=h),(I=Z.nextSibling)!==null)break;Z=j,j=Z.parentNode}Z=I}a=y===-1||S===-1?null:{start:y,end:S}}else a=null}a=a||{start:0,end:0}}else a=null;for(Uf={focusedElem:e,selectionRange:a},Yu=!1,bt=t;bt!==null;)if(t=bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,bt=e;else for(;bt!==null;){switch(t=bt,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)d=e[a],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,a=t,d=f.memoizedProps,f=f.memoizedState,c=a.stateNode;try{var Q=Fi(a.type,d);e=c.getSnapshotBeforeUpdate(Q,f),c.__reactInternalSnapshotBeforeUpdate=e}catch(oe){Je(a,a.return,oe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Nf(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Nf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=t.sibling,e!==null){e.return=t.return,bt=e;break}bt=t.return}}function Hy(e,t,a){var c=a.flags;switch(a.tag){case 0:case 11:case 15:Wn(e,a),c&4&&ro(5,a);break;case 1:if(Wn(e,a),c&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(h){Je(a,a.return,h)}else{var d=Fi(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(d,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){Je(a,a.return,h)}}c&64&&Ry(a),c&512&&ao(a,a.return);break;case 3:if(Wn(e,a),c&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{wv(e,t)}catch(h){Je(a,a.return,h)}}break;case 27:t===null&&c&4&&qy(a);case 26:case 5:Wn(e,a),t===null&&c&4&&My(a),c&512&&ao(a,a.return);break;case 12:Wn(e,a);break;case 31:Wn(e,a),c&4&&Gy(e,a);break;case 13:Wn(e,a),c&4&&Yy(e,a),c&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Rx.bind(null,a),nw(e,a))));break;case 22:if(c=a.memoizedState!==null||Kn,!c){t=t!==null&&t.memoizedState!==null||mt,d=Kn;var f=mt;Kn=c,(mt=t)&&!f?ei(e,a,(a.subtreeFlags&8772)!==0):Wn(e,a),Kn=d,mt=f}break;case 30:break;default:Wn(e,a)}}function By(e){var t=e.alternate;t!==null&&(e.alternate=null,By(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Cs(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var nt=null,Lt=!1;function Fn(e,t,a){for(a=a.child;a!==null;)Jy(e,t,a),a=a.sibling}function Jy(e,t,a){if(Pt&&typeof Pt.onCommitFiberUnmount=="function")try{Pt.onCommitFiberUnmount(Oa,a)}catch{}switch(a.tag){case 26:mt||An(a,t),Fn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:mt||An(a,t);var c=nt,d=Lt;Ti(a.type)&&(nt=a.stateNode,Lt=!1),Fn(e,t,a),ho(a.stateNode),nt=c,Lt=d;break;case 5:mt||An(a,t);case 6:if(c=nt,d=Lt,nt=null,Fn(e,t,a),nt=c,Lt=d,nt!==null)if(Lt)try{(nt.nodeType===9?nt.body:nt.nodeName==="HTML"?nt.ownerDocument.body:nt).removeChild(a.stateNode)}catch(f){Je(a,t,f)}else try{nt.removeChild(a.stateNode)}catch(f){Je(a,t,f)}break;case 18:nt!==null&&(Lt?(e=nt,Rb(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Wr(e)):Rb(nt,a.stateNode));break;case 4:c=nt,d=Lt,nt=a.stateNode.containerInfo,Lt=!0,Fn(e,t,a),nt=c,Lt=d;break;case 0:case 11:case 14:case 15:_i(2,a,t),mt||_i(4,a,t),Fn(e,t,a);break;case 1:mt||(An(a,t),c=a.stateNode,typeof c.componentWillUnmount=="function"&&Cy(a,t,c)),Fn(e,t,a);break;case 21:Fn(e,t,a);break;case 22:mt=(c=mt)||a.memoizedState!==null,Fn(e,t,a),mt=c;break;default:Fn(e,t,a)}}function Gy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Wr(e)}catch(a){Je(t,t.return,a)}}}function Yy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Wr(e)}catch(a){Je(t,t.return,a)}}function Ex(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ly),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ly),t;default:throw Error(l(435,e.tag))}}function wu(e,t){var a=Ex(e);t.forEach(function(c){if(!a.has(c)){a.add(c);var d=Cx.bind(null,e,c);c.then(d,d)}})}function Ht(e,t){var a=t.deletions;if(a!==null)for(var c=0;c<a.length;c++){var d=a[c],f=e,h=t,y=h;e:for(;y!==null;){switch(y.tag){case 27:if(Ti(y.type)){nt=y.stateNode,Lt=!1;break e}break;case 5:nt=y.stateNode,Lt=!1;break e;case 3:case 4:nt=y.stateNode.containerInfo,Lt=!0;break e}y=y.return}if(nt===null)throw Error(l(160));Jy(f,h,d),nt=null,Lt=!1,f=d.alternate,f!==null&&(f.return=null),d.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Xy(t,e),t=t.sibling}var wn=null;function Xy(e,t){var a=e.alternate,c=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ht(t,e),Bt(e),c&4&&(_i(3,e,e.return),ro(3,e),_i(5,e,e.return));break;case 1:Ht(t,e),Bt(e),c&512&&(mt||a===null||An(a,a.return)),c&64&&Kn&&(e=e.updateQueue,e!==null&&(c=e.callbacks,c!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?c:a.concat(c))));break;case 26:var d=wn;if(Ht(t,e),Bt(e),c&512&&(mt||a===null||An(a,a.return)),c&4){var f=a!==null?a.memoizedState:null;if(c=e.memoizedState,a===null)if(c===null)if(e.stateNode===null){e:{c=e.type,a=e.memoizedProps,d=d.ownerDocument||d;t:switch(c){case"title":f=d.getElementsByTagName("title")[0],(!f||f[ja]||f[St]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=d.createElement(c),d.head.insertBefore(f,d.querySelector("head > title"))),xt(f,c,a),f[St]=e,yt(f),c=f;break e;case"link":var h=Xb("link","href",d).get(c+(a.href||""));if(h){for(var y=0;y<h.length;y++)if(f=h[y],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){h.splice(y,1);break t}}f=d.createElement(c),xt(f,c,a),d.head.appendChild(f);break;case"meta":if(h=Xb("meta","content",d).get(c+(a.content||""))){for(y=0;y<h.length;y++)if(f=h[y],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){h.splice(y,1);break t}}f=d.createElement(c),xt(f,c,a),d.head.appendChild(f);break;default:throw Error(l(468,c))}f[St]=e,yt(f),c=f}e.stateNode=c}else Vb(d,e.type,e.stateNode);else e.stateNode=Yb(d,c,e.memoizedProps);else f!==c?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,c===null?Vb(d,e.type,e.stateNode):Yb(d,c,e.memoizedProps)):c===null&&e.stateNode!==null&&af(e,e.memoizedProps,a.memoizedProps)}break;case 27:Ht(t,e),Bt(e),c&512&&(mt||a===null||An(a,a.return)),a!==null&&c&4&&af(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Ht(t,e),Bt(e),c&512&&(mt||a===null||An(a,a.return)),e.flags&32){d=e.stateNode;try{$r(d,"")}catch(Q){Je(e,e.return,Q)}}c&4&&e.stateNode!=null&&(d=e.memoizedProps,af(e,d,a!==null?a.memoizedProps:d)),c&1024&&(uf=!0);break;case 6:if(Ht(t,e),Bt(e),c&4){if(e.stateNode===null)throw Error(l(162));c=e.memoizedProps,a=e.stateNode;try{a.nodeValue=c}catch(Q){Je(e,e.return,Q)}}break;case 3:if(Hu=null,d=wn,wn=qu(t.containerInfo),Ht(t,e),wn=d,Bt(e),c&4&&a!==null&&a.memoizedState.isDehydrated)try{Wr(t.containerInfo)}catch(Q){Je(e,e.return,Q)}uf&&(uf=!1,Vy(e));break;case 4:c=wn,wn=qu(e.stateNode.containerInfo),Ht(t,e),Bt(e),wn=c;break;case 12:Ht(t,e),Bt(e);break;case 31:Ht(t,e),Bt(e),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,wu(e,c)));break;case 13:Ht(t,e),Bt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Eu=Vt()),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,wu(e,c)));break;case 22:d=e.memoizedState!==null;var S=a!==null&&a.memoizedState!==null,D=Kn,R=mt;if(Kn=D||d,mt=R||S,Ht(t,e),mt=R,Kn=D,Bt(e),c&8192)e:for(t=e.stateNode,t._visibility=d?t._visibility&-2:t._visibility|1,d&&(a===null||S||Kn||mt||Wi(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){S=a=t;try{if(f=S.stateNode,d)h=f.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{y=S.stateNode;var Z=S.memoizedProps.style,j=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;y.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(Q){Je(S,S.return,Q)}}}else if(t.tag===6){if(a===null){S=t;try{S.stateNode.nodeValue=d?"":S.memoizedProps}catch(Q){Je(S,S.return,Q)}}}else if(t.tag===18){if(a===null){S=t;try{var I=S.stateNode;d?Cb(I,!0):Cb(S.stateNode,!1)}catch(Q){Je(S,S.return,Q)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}c&4&&(c=e.updateQueue,c!==null&&(a=c.retryQueue,a!==null&&(c.retryQueue=null,wu(e,a))));break;case 19:Ht(t,e),Bt(e),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,wu(e,c)));break;case 30:break;case 21:break;default:Ht(t,e),Bt(e)}}function Bt(e){var t=e.flags;if(t&2){try{for(var a,c=e.return;c!==null;){if(Zy(c)){a=c;break}c=c.return}if(a==null)throw Error(l(160));switch(a.tag){case 27:var d=a.stateNode,f=of(e);xu(e,f,d);break;case 5:var h=a.stateNode;a.flags&32&&($r(h,""),a.flags&=-33);var y=of(e);xu(e,y,h);break;case 3:case 4:var S=a.stateNode.containerInfo,D=of(e);lf(e,D,S);break;default:throw Error(l(161))}}catch(R){Je(e,e.return,R)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Vy(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Wn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Hy(e,t.alternate,t),t=t.sibling}function Wi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:_i(4,t,t.return),Wi(t);break;case 1:An(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Cy(t,t.return,a),Wi(t);break;case 27:ho(t.stateNode);case 26:case 5:An(t,t.return),Wi(t);break;case 22:t.memoizedState===null&&Wi(t);break;case 30:Wi(t);break;default:Wi(t)}e=e.sibling}}function ei(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var c=t.alternate,d=e,f=t,h=f.flags;switch(f.tag){case 0:case 11:case 15:ei(d,f,a),ro(4,f);break;case 1:if(ei(d,f,a),c=f,d=c.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(D){Je(c,c.return,D)}if(c=f,d=c.updateQueue,d!==null){var y=c.stateNode;try{var S=d.shared.hiddenCallbacks;if(S!==null)for(d.shared.hiddenCallbacks=null,d=0;d<S.length;d++)xv(S[d],y)}catch(D){Je(c,c.return,D)}}a&&h&64&&Ry(f),ao(f,f.return);break;case 27:qy(f);case 26:case 5:ei(d,f,a),a&&c===null&&h&4&&My(f),ao(f,f.return);break;case 12:ei(d,f,a);break;case 31:ei(d,f,a),a&&h&4&&Gy(d,f);break;case 13:ei(d,f,a),a&&h&4&&Yy(d,f);break;case 22:f.memoizedState===null&&ei(d,f,a),ao(f,f.return);break;case 30:break;default:ei(d,f,a)}t=t.sibling}}function cf(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Ga(a))}function sf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ga(e))}function Tn(e,t,a,c){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Py(e,t,a,c),t=t.sibling}function Py(e,t,a,c){var d=t.flags;switch(t.tag){case 0:case 11:case 15:Tn(e,t,a,c),d&2048&&ro(9,t);break;case 1:Tn(e,t,a,c);break;case 3:Tn(e,t,a,c),d&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ga(e)));break;case 12:if(d&2048){Tn(e,t,a,c),e=t.stateNode;try{var f=t.memoizedProps,h=f.id,y=f.onPostCommit;typeof y=="function"&&y(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){Je(t,t.return,S)}}else Tn(e,t,a,c);break;case 31:Tn(e,t,a,c);break;case 13:Tn(e,t,a,c);break;case 23:break;case 22:f=t.stateNode,h=t.alternate,t.memoizedState!==null?f._visibility&2?Tn(e,t,a,c):oo(e,t):f._visibility&2?Tn(e,t,a,c):(f._visibility|=2,Hr(e,t,a,c,(t.subtreeFlags&10256)!==0||!1)),d&2048&&cf(h,t);break;case 24:Tn(e,t,a,c),d&2048&&sf(t.alternate,t);break;default:Tn(e,t,a,c)}}function Hr(e,t,a,c,d){for(d=d&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,h=t,y=a,S=c,D=h.flags;switch(h.tag){case 0:case 11:case 15:Hr(f,h,y,S,d),ro(8,h);break;case 23:break;case 22:var R=h.stateNode;h.memoizedState!==null?R._visibility&2?Hr(f,h,y,S,d):oo(f,h):(R._visibility|=2,Hr(f,h,y,S,d)),d&&D&2048&&cf(h.alternate,h);break;case 24:Hr(f,h,y,S,d),d&&D&2048&&sf(h.alternate,h);break;default:Hr(f,h,y,S,d)}t=t.sibling}}function oo(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,c=t,d=c.flags;switch(c.tag){case 22:oo(a,c),d&2048&&cf(c.alternate,c);break;case 24:oo(a,c),d&2048&&sf(c.alternate,c);break;default:oo(a,c)}t=t.sibling}}var lo=8192;function Br(e,t,a){if(e.subtreeFlags&lo)for(e=e.child;e!==null;)Qy(e,t,a),e=e.sibling}function Qy(e,t,a){switch(e.tag){case 26:Br(e,t,a),e.flags&lo&&e.memoizedState!==null&&pw(a,wn,e.memoizedState,e.memoizedProps);break;case 5:Br(e,t,a);break;case 3:case 4:var c=wn;wn=qu(e.stateNode.containerInfo),Br(e,t,a),wn=c;break;case 22:e.memoizedState===null&&(c=e.alternate,c!==null&&c.memoizedState!==null?(c=lo,lo=16777216,Br(e,t,a),lo=c):Br(e,t,a));break;default:Br(e,t,a)}}function Ky(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function uo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var c=t[a];bt=c,Wy(c,e)}Ky(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Fy(e),e=e.sibling}function Fy(e){switch(e.tag){case 0:case 11:case 15:uo(e),e.flags&2048&&_i(9,e,e.return);break;case 3:uo(e);break;case 12:uo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Tu(e)):uo(e);break;default:uo(e)}}function Tu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var c=t[a];bt=c,Wy(c,e)}Ky(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:_i(8,t,t.return),Tu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Tu(t));break;default:Tu(t)}e=e.sibling}}function Wy(e,t){for(;bt!==null;){var a=bt;switch(a.tag){case 0:case 11:case 15:_i(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var c=a.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Ga(a.memoizedState.cache)}if(c=a.child,c!==null)c.return=a,bt=c;else e:for(a=e;bt!==null;){c=bt;var d=c.sibling,f=c.return;if(By(c),c===a){bt=null;break e}if(d!==null){d.return=f,bt=d;break e}bt=f}}}var Ox={getCacheForType:function(e){var t=kt(st),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return kt(st).controller.signal}},Ux=typeof WeakMap=="function"?WeakMap:Map,Ze=0,Ke=null,we=null,Oe=0,Be=0,tn=null,Si=!1,Jr=!1,df=!1,ti=0,ot=0,$i=0,er=0,ff=0,nn=0,Gr=0,co=null,Jt=null,mf=!1,Eu=0,eb=0,Ou=1/0,Uu=null,ki=null,ht=0,zi=null,Yr=null,ni=0,pf=0,hf=null,tb=null,so=0,gf=null;function rn(){return(Ze&2)!==0&&Oe!==0?Oe&-Oe:C.T!==null?$f():vg()}function nb(){if(nn===0)if((Oe&536870912)===0||De){var e=Ml;Ml<<=1,(Ml&3932160)===0&&(Ml=262144),nn=e}else nn=536870912;return e=Wt.current,e!==null&&(e.flags|=32),nn}function Gt(e,t,a){(e===Ke&&(Be===2||Be===9)||e.cancelPendingCommit!==null)&&(Xr(e,0),xi(e,Oe,nn,!1)),Da(e,a),((Ze&2)===0||e!==Ke)&&(e===Ke&&((Ze&2)===0&&(er|=a),ot===4&&xi(e,Oe,nn,!1)),In(e))}function ib(e,t,a){if((Ze&6)!==0)throw Error(l(327));var c=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Ua(e,t),d=c?Nx(e,t):yf(e,t,!0),f=c;do{if(d===0){Jr&&!c&&xi(e,t,0,!1);break}else{if(a=e.current.alternate,f&&!Dx(a)){d=yf(e,t,!1),f=!1;continue}if(d===2){if(f=t,e.errorRecoveryDisabledLanes&f)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var y=e;d=co;var S=y.current.memoizedState.isDehydrated;if(S&&(Xr(y,h).flags|=256),h=yf(y,h,!1),h!==2){if(df&&!S){y.errorRecoveryDisabledLanes|=f,er|=f,d=4;break e}f=Jt,Jt=d,f!==null&&(Jt===null?Jt=f:Jt.push.apply(Jt,f))}d=h}if(f=!1,d!==2)continue}}if(d===1){Xr(e,0),xi(e,t,0,!0);break}e:{switch(c=e,f=d,f){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:xi(c,t,nn,!Si);break e;case 2:Jt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(d=Eu+300-Vt(),10<d)){if(xi(c,t,nn,!Si),ql(c,0,!0)!==0)break e;ni=t,c.timeoutHandle=Ab(rb.bind(null,c,a,Jt,Uu,mf,t,nn,er,Gr,Si,f,"Throttled",-0,0),d);break e}rb(c,a,Jt,Uu,mf,t,nn,er,Gr,Si,f,null,-0,0)}}break}while(!0);In(e)}function rb(e,t,a,c,d,f,h,y,S,D,R,Z,j,I){if(e.timeoutHandle=-1,Z=t.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ln},Qy(t,f,Z);var Q=(f&62914560)===f?Eu-Vt():(f&4194048)===f?eb-Vt():0;if(Q=hw(Z,Q),Q!==null){ni=f,e.cancelPendingCommit=Q(fb.bind(null,e,t,f,a,c,d,h,y,S,R,Z,null,j,I)),xi(e,f,h,!D);return}}fb(e,t,f,a,c,d,h,y,S)}function Dx(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var c=0;c<a.length;c++){var d=a[c],f=d.getSnapshot;d=d.value;try{if(!Kt(f(),d))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function xi(e,t,a,c){t&=~ff,t&=~er,e.suspendedLanes|=t,e.pingedLanes&=~t,c&&(e.warmLanes|=t),c=e.expirationTimes;for(var d=t;0<d;){var f=31-Qt(d),h=1<<f;c[f]=-1,d&=~h}a!==0&&pg(e,a,t)}function Du(){return(Ze&6)===0?(fo(0),!1):!0}function vf(){if(we!==null){if(Be===0)var e=we.return;else e=we,Gn=Gi=null,jd(e),Cr=null,Xa=0,e=we;for(;e!==null;)Iy(e.alternate,e),e=e.return;we=null}}function Xr(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Kx(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ni=0,vf(),Ke=e,we=a=Bn(e.current,null),Oe=t,Be=0,tn=null,Si=!1,Jr=Ua(e,t),df=!1,Gr=nn=ff=er=$i=ot=0,Jt=co=null,mf=!1,(t&8)!==0&&(t|=t&32);var c=e.entangledLanes;if(c!==0)for(e=e.entanglements,c&=t;0<c;){var d=31-Qt(c),f=1<<d;t|=e[d],c&=~f}return ti=t,Fl(),a}function ab(e,t){_e=null,C.H=to,t===Rr||t===ou?(t=Sv(),Be=3):t===_d?(t=Sv(),Be=4):Be=t===Vd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,tn=t,we===null&&(ot=1,_u(e,pn(t,e.current)))}function ob(){var e=Wt.current;return e===null?!0:(Oe&4194048)===Oe?yn===null:(Oe&62914560)===Oe||(Oe&536870912)!==0?e===yn:!1}function lb(){var e=C.H;return C.H=to,e===null?to:e}function ub(){var e=C.A;return C.A=Ox,e}function ju(){ot=4,Si||(Oe&4194048)!==Oe&&Wt.current!==null||(Jr=!0),($i&134217727)===0&&(er&134217727)===0||Ke===null||xi(Ke,Oe,nn,!1)}function yf(e,t,a){var c=Ze;Ze|=2;var d=lb(),f=ub();(Ke!==e||Oe!==t)&&(Uu=null,Xr(e,t)),t=!1;var h=ot;e:do try{if(Be!==0&&we!==null){var y=we,S=tn;switch(Be){case 8:vf(),h=6;break e;case 3:case 2:case 9:case 6:Wt.current===null&&(t=!0);var D=Be;if(Be=0,tn=null,Vr(e,y,S,D),a&&Jr){h=0;break e}break;default:D=Be,Be=0,tn=null,Vr(e,y,S,D)}}jx(),h=ot;break}catch(R){ab(e,R)}while(!0);return t&&e.shellSuspendCounter++,Gn=Gi=null,Ze=c,C.H=d,C.A=f,we===null&&(Ke=null,Oe=0,Fl()),h}function jx(){for(;we!==null;)cb(we)}function Nx(e,t){var a=Ze;Ze|=2;var c=lb(),d=ub();Ke!==e||Oe!==t?(Uu=null,Ou=Vt()+500,Xr(e,t)):Jr=Ua(e,t);e:do try{if(Be!==0&&we!==null){t=we;var f=tn;t:switch(Be){case 1:Be=0,tn=null,Vr(e,t,f,1);break;case 2:case 9:if(bv(f)){Be=0,tn=null,sb(t);break}t=function(){Be!==2&&Be!==9||Ke!==e||(Be=7),In(e)},f.then(t,t);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:bv(f)?(Be=0,tn=null,sb(t)):(Be=0,tn=null,Vr(e,t,f,7));break;case 5:var h=null;switch(we.tag){case 26:h=we.memoizedState;case 5:case 27:var y=we;if(h?Pb(h):y.stateNode.complete){Be=0,tn=null;var S=y.sibling;if(S!==null)we=S;else{var D=y.return;D!==null?(we=D,Nu(D)):we=null}break t}}Be=0,tn=null,Vr(e,t,f,5);break;case 6:Be=0,tn=null,Vr(e,t,f,6);break;case 8:vf(),ot=6;break e;default:throw Error(l(462))}}Ax();break}catch(R){ab(e,R)}while(!0);return Gn=Gi=null,C.H=c,C.A=d,Ze=a,we!==null?0:(Ke=null,Oe=0,Fl(),ot)}function Ax(){for(;we!==null&&!i1();)cb(we)}function cb(e){var t=Ny(e.alternate,e,ti);e.memoizedProps=e.pendingProps,t===null?Nu(e):we=t}function sb(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Ty(a,t,t.pendingProps,t.type,void 0,Oe);break;case 11:t=Ty(a,t,t.pendingProps,t.type.render,t.ref,Oe);break;case 5:jd(t);default:Iy(a,t),t=we=uv(t,ti),t=Ny(a,t,ti)}e.memoizedProps=e.pendingProps,t===null?Nu(e):we=t}function Vr(e,t,a,c){Gn=Gi=null,jd(t),Cr=null,Xa=0;var d=t.return;try{if($x(e,d,t,a,Oe)){ot=1,_u(e,pn(a,e.current)),we=null;return}}catch(f){if(d!==null)throw we=d,f;ot=1,_u(e,pn(a,e.current)),we=null;return}t.flags&32768?(De||c===1?e=!0:Jr||(Oe&536870912)!==0?e=!1:(Si=e=!0,(c===2||c===9||c===3||c===6)&&(c=Wt.current,c!==null&&c.tag===13&&(c.flags|=16384))),db(t,e)):Nu(t)}function Nu(e){var t=e;do{if((t.flags&32768)!==0){db(t,Si);return}e=t.return;var a=xx(t.alternate,t,ti);if(a!==null){we=a;return}if(t=t.sibling,t!==null){we=t;return}we=t=e}while(t!==null);ot===0&&(ot=5)}function db(e,t){do{var a=wx(e.alternate,e);if(a!==null){a.flags&=32767,we=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){we=e;return}we=e=a}while(e!==null);ot=6,we=null}function fb(e,t,a,c,d,f,h,y,S){e.cancelPendingCommit=null;do Au();while(ht!==0);if((Ze&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(f=t.lanes|t.childLanes,f|=ad,m1(e,a,f,h,y,S),e===Ke&&(we=Ke=null,Oe=0),Yr=t,zi=e,ni=a,pf=f,hf=d,tb=c,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Mx(Rl,function(){return vb(),null})):(e.callbackNode=null,e.callbackPriority=0),c=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||c){c=C.T,C.T=null,d=Y.p,Y.p=2,h=Ze,Ze|=4;try{Tx(e,t,a)}finally{Ze=h,Y.p=d,C.T=c}}ht=1,mb(),pb(),hb()}}function mb(){if(ht===1){ht=0;var e=zi,t=Yr,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=C.T,C.T=null;var c=Y.p;Y.p=2;var d=Ze;Ze|=4;try{Xy(t,e);var f=Uf,h=Wg(e.containerInfo),y=f.focusedElem,S=f.selectionRange;if(h!==y&&y&&y.ownerDocument&&Fg(y.ownerDocument.documentElement,y)){if(S!==null&&ed(y)){var D=S.start,R=S.end;if(R===void 0&&(R=D),"selectionStart"in y)y.selectionStart=D,y.selectionEnd=Math.min(R,y.value.length);else{var Z=y.ownerDocument||document,j=Z&&Z.defaultView||window;if(j.getSelection){var I=j.getSelection(),Q=y.textContent.length,oe=Math.min(S.start,Q),Ve=S.end===void 0?oe:Math.min(S.end,Q);!I.extend&&oe>Ve&&(h=Ve,Ve=oe,oe=h);var w=Kg(y,oe),$=Kg(y,Ve);if(w&&$&&(I.rangeCount!==1||I.anchorNode!==w.node||I.anchorOffset!==w.offset||I.focusNode!==$.node||I.focusOffset!==$.offset)){var U=Z.createRange();U.setStart(w.node,w.offset),I.removeAllRanges(),oe>Ve?(I.addRange(U),I.extend($.node,$.offset)):(U.setEnd($.node,$.offset),I.addRange(U))}}}}for(Z=[],I=y;I=I.parentNode;)I.nodeType===1&&Z.push({element:I,left:I.scrollLeft,top:I.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<Z.length;y++){var M=Z[y];M.element.scrollLeft=M.left,M.element.scrollTop=M.top}}Yu=!!Of,Uf=Of=null}finally{Ze=d,Y.p=c,C.T=a}}e.current=t,ht=2}}function pb(){if(ht===2){ht=0;var e=zi,t=Yr,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=C.T,C.T=null;var c=Y.p;Y.p=2;var d=Ze;Ze|=4;try{Hy(e,t.alternate,t)}finally{Ze=d,Y.p=c,C.T=a}}ht=3}}function hb(){if(ht===4||ht===3){ht=0,r1();var e=zi,t=Yr,a=ni,c=tb;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ht=5:(ht=0,Yr=zi=null,gb(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(ki=null),Is(a),t=t.stateNode,Pt&&typeof Pt.onCommitFiberRoot=="function")try{Pt.onCommitFiberRoot(Oa,t,void 0,(t.current.flags&128)===128)}catch{}if(c!==null){t=C.T,d=Y.p,Y.p=2,C.T=null;try{for(var f=e.onRecoverableError,h=0;h<c.length;h++){var y=c[h];f(y.value,{componentStack:y.stack})}}finally{C.T=t,Y.p=d}}(ni&3)!==0&&Au(),In(e),d=e.pendingLanes,(a&261930)!==0&&(d&42)!==0?e===gf?so++:(so=0,gf=e):so=0,fo(0)}}function gb(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ga(t)))}function Au(){return mb(),pb(),hb(),vb()}function vb(){if(ht!==5)return!1;var e=zi,t=pf;pf=0;var a=Is(ni),c=C.T,d=Y.p;try{Y.p=32>a?32:a,C.T=null,a=hf,hf=null;var f=zi,h=ni;if(ht=0,Yr=zi=null,ni=0,(Ze&6)!==0)throw Error(l(331));var y=Ze;if(Ze|=4,Fy(f.current),Py(f,f.current,h,a),Ze=y,fo(0,!1),Pt&&typeof Pt.onPostCommitFiberRoot=="function")try{Pt.onPostCommitFiberRoot(Oa,f)}catch{}return!0}finally{Y.p=d,C.T=c,gb(e,t)}}function yb(e,t,a){t=pn(a,t),t=Xd(e.stateNode,t,2),e=vi(e,t,2),e!==null&&(Da(e,2),In(e))}function Je(e,t,a){if(e.tag===3)yb(e,e,a);else for(;t!==null;){if(t.tag===3){yb(t,e,a);break}else if(t.tag===1){var c=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(ki===null||!ki.has(c))){e=pn(a,e),a=by(2),c=vi(t,a,2),c!==null&&(_y(a,c,t,e),Da(c,2),In(c));break}}t=t.return}}function bf(e,t,a){var c=e.pingCache;if(c===null){c=e.pingCache=new Ux;var d=new Set;c.set(t,d)}else d=c.get(t),d===void 0&&(d=new Set,c.set(t,d));d.has(a)||(df=!0,d.add(a),e=Ix.bind(null,e,t,a),t.then(e,e))}function Ix(e,t,a){var c=e.pingCache;c!==null&&c.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ke===e&&(Oe&a)===a&&(ot===4||ot===3&&(Oe&62914560)===Oe&&300>Vt()-Eu?(Ze&2)===0&&Xr(e,0):ff|=a,Gr===Oe&&(Gr=0)),In(e)}function bb(e,t){t===0&&(t=mg()),e=Hi(e,t),e!==null&&(Da(e,t),In(e))}function Rx(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),bb(e,a)}function Cx(e,t){var a=0;switch(e.tag){case 31:case 13:var c=e.stateNode,d=e.memoizedState;d!==null&&(a=d.retryLane);break;case 19:c=e.stateNode;break;case 22:c=e.stateNode._retryCache;break;default:throw Error(l(314))}c!==null&&c.delete(t),bb(e,a)}function Mx(e,t){return Ds(e,t)}var Iu=null,Pr=null,_f=!1,Ru=!1,Sf=!1,wi=0;function In(e){e!==Pr&&e.next===null&&(Pr===null?Iu=Pr=e:Pr=Pr.next=e),Ru=!0,_f||(_f=!0,qx())}function fo(e,t){if(!Sf&&Ru){Sf=!0;do for(var a=!1,c=Iu;c!==null;){if(e!==0){var d=c.pendingLanes;if(d===0)var f=0;else{var h=c.suspendedLanes,y=c.pingedLanes;f=(1<<31-Qt(42|e)+1)-1,f&=d&~(h&~y),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,kb(c,f))}else f=Oe,f=ql(c,c===Ke?f:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(f&3)===0||Ua(c,f)||(a=!0,kb(c,f));c=c.next}while(a);Sf=!1}}function Zx(){_b()}function _b(){Ru=_f=!1;var e=0;wi!==0&&Qx()&&(e=wi);for(var t=Vt(),a=null,c=Iu;c!==null;){var d=c.next,f=Sb(c,t);f===0?(c.next=null,a===null?Iu=d:a.next=d,d===null&&(Pr=a)):(a=c,(e!==0||(f&3)!==0)&&(Ru=!0)),c=d}ht!==0&&ht!==5||fo(e),wi!==0&&(wi=0)}function Sb(e,t){for(var a=e.suspendedLanes,c=e.pingedLanes,d=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var h=31-Qt(f),y=1<<h,S=d[h];S===-1?((y&a)===0||(y&c)!==0)&&(d[h]=f1(y,t)):S<=t&&(e.expiredLanes|=y),f&=~y}if(t=Ke,a=Oe,a=ql(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),c=e.callbackNode,a===0||e===t&&(Be===2||Be===9)||e.cancelPendingCommit!==null)return c!==null&&c!==null&&js(c),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Ua(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(c!==null&&js(c),Is(a)){case 2:case 8:a=dg;break;case 32:a=Rl;break;case 268435456:a=fg;break;default:a=Rl}return c=$b.bind(null,e),a=Ds(a,c),e.callbackPriority=t,e.callbackNode=a,t}return c!==null&&c!==null&&js(c),e.callbackPriority=2,e.callbackNode=null,2}function $b(e,t){if(ht!==0&&ht!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Au()&&e.callbackNode!==a)return null;var c=Oe;return c=ql(e,e===Ke?c:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),c===0?null:(ib(e,c,t),Sb(e,Vt()),e.callbackNode!=null&&e.callbackNode===a?$b.bind(null,e):null)}function kb(e,t){if(Au())return null;ib(e,t,!0)}function qx(){Fx(function(){(Ze&6)!==0?Ds(sg,Zx):_b()})}function $f(){if(wi===0){var e=Ar;e===0&&(e=Cl,Cl<<=1,(Cl&261888)===0&&(Cl=256)),wi=e}return wi}function zb(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Jl(""+e)}function xb(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Lx(e,t,a,c,d){if(t==="submit"&&a&&a.stateNode===d){var f=zb((d[Zt]||null).action),h=c.submitter;h&&(t=(t=h[Zt]||null)?zb(t.formAction):h.getAttribute("formAction"),t!==null&&(f=t,h=null));var y=new Vl("action","action",null,c,d);e.push({event:y,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(wi!==0){var S=h?xb(d,h):new FormData(d);Ld(a,{pending:!0,data:S,method:d.method,action:f},null,S)}}else typeof f=="function"&&(y.preventDefault(),S=h?xb(d,h):new FormData(d),Ld(a,{pending:!0,data:S,method:d.method,action:f},f,S))},currentTarget:d}]})}}for(var kf=0;kf<rd.length;kf++){var zf=rd[kf],Hx=zf.toLowerCase(),Bx=zf[0].toUpperCase()+zf.slice(1);xn(Hx,"on"+Bx)}xn(nv,"onAnimationEnd"),xn(iv,"onAnimationIteration"),xn(rv,"onAnimationStart"),xn("dblclick","onDoubleClick"),xn("focusin","onFocus"),xn("focusout","onBlur"),xn(ax,"onTransitionRun"),xn(ox,"onTransitionStart"),xn(lx,"onTransitionCancel"),xn(av,"onTransitionEnd"),_r("onMouseEnter",["mouseout","mouseover"]),_r("onMouseLeave",["mouseout","mouseover"]),_r("onPointerEnter",["pointerout","pointerover"]),_r("onPointerLeave",["pointerout","pointerover"]),Mi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Mi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Mi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Mi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Mi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Mi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Jx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(mo));function wb(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var c=e[a],d=c.event;c=c.listeners;e:{var f=void 0;if(t)for(var h=c.length-1;0<=h;h--){var y=c[h],S=y.instance,D=y.currentTarget;if(y=y.listener,S!==f&&d.isPropagationStopped())break e;f=y,d.currentTarget=D;try{f(d)}catch(R){Kl(R)}d.currentTarget=null,f=S}else for(h=0;h<c.length;h++){if(y=c[h],S=y.instance,D=y.currentTarget,y=y.listener,S!==f&&d.isPropagationStopped())break e;f=y,d.currentTarget=D;try{f(d)}catch(R){Kl(R)}d.currentTarget=null,f=S}}}}function Te(e,t){var a=t[Rs];a===void 0&&(a=t[Rs]=new Set);var c=e+"__bubble";a.has(c)||(Tb(t,e,2,!1),a.add(c))}function xf(e,t,a){var c=0;t&&(c|=4),Tb(a,e,c,t)}var Cu="_reactListening"+Math.random().toString(36).slice(2);function wf(e){if(!e[Cu]){e[Cu]=!0,_g.forEach(function(a){a!=="selectionchange"&&(Jx.has(a)||xf(a,!1,e),xf(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Cu]||(t[Cu]=!0,xf("selectionchange",!1,t))}}function Tb(e,t,a,c){switch(n_(t)){case 2:var d=yw;break;case 8:d=bw;break;default:d=Lf}a=d.bind(null,t,a,e),d=void 0,!Gs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(d=!0),c?d!==void 0?e.addEventListener(t,a,{capture:!0,passive:d}):e.addEventListener(t,a,!0):d!==void 0?e.addEventListener(t,a,{passive:d}):e.addEventListener(t,a,!1)}function Tf(e,t,a,c,d){var f=c;if((t&1)===0&&(t&2)===0&&c!==null)e:for(;;){if(c===null)return;var h=c.tag;if(h===3||h===4){var y=c.stateNode.containerInfo;if(y===d)break;if(h===4)for(h=c.return;h!==null;){var S=h.tag;if((S===3||S===4)&&h.stateNode.containerInfo===d)return;h=h.return}for(;y!==null;){if(h=vr(y),h===null)return;if(S=h.tag,S===5||S===6||S===26||S===27){c=f=h;continue e}y=y.parentNode}}c=c.return}jg(function(){var D=f,R=Bs(a),Z=[];e:{var j=ov.get(e);if(j!==void 0){var I=Vl,Q=e;switch(e){case"keypress":if(Yl(a)===0)break e;case"keydown":case"keyup":I=C1;break;case"focusin":Q="focus",I=Ps;break;case"focusout":Q="blur",I=Ps;break;case"beforeblur":case"afterblur":I=Ps;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":I=Ig;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=x1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=q1;break;case nv:case iv:case rv:I=E1;break;case av:I=H1;break;case"scroll":case"scrollend":I=k1;break;case"wheel":I=J1;break;case"copy":case"cut":case"paste":I=U1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=Cg;break;case"toggle":case"beforetoggle":I=Y1}var oe=(t&4)!==0,Ve=!oe&&(e==="scroll"||e==="scrollend"),w=oe?j!==null?j+"Capture":null:j;oe=[];for(var $=D,U;$!==null;){var M=$;if(U=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||U===null||w===null||(M=Aa($,w),M!=null&&oe.push(po($,M,U))),Ve)break;$=$.return}0<oe.length&&(j=new I(j,Q,null,a,R),Z.push({event:j,listeners:oe}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",I=e==="mouseout"||e==="pointerout",j&&a!==Hs&&(Q=a.relatedTarget||a.fromElement)&&(vr(Q)||Q[gr]))break e;if((I||j)&&(j=R.window===R?R:(j=R.ownerDocument)?j.defaultView||j.parentWindow:window,I?(Q=a.relatedTarget||a.toElement,I=D,Q=Q?vr(Q):null,Q!==null&&(Ve=u(Q),oe=Q.tag,Q!==Ve||oe!==5&&oe!==27&&oe!==6)&&(Q=null)):(I=null,Q=D),I!==Q)){if(oe=Ig,M="onMouseLeave",w="onMouseEnter",$="mouse",(e==="pointerout"||e==="pointerover")&&(oe=Cg,M="onPointerLeave",w="onPointerEnter",$="pointer"),Ve=I==null?j:Na(I),U=Q==null?j:Na(Q),j=new oe(M,$+"leave",I,a,R),j.target=Ve,j.relatedTarget=U,M=null,vr(R)===D&&(oe=new oe(w,$+"enter",Q,a,R),oe.target=U,oe.relatedTarget=Ve,M=oe),Ve=M,I&&Q)t:{for(oe=Gx,w=I,$=Q,U=0,M=w;M;M=oe(M))U++;M=0;for(var ie=$;ie;ie=oe(ie))M++;for(;0<U-M;)w=oe(w),U--;for(;0<M-U;)$=oe($),M--;for(;U--;){if(w===$||$!==null&&w===$.alternate){oe=w;break t}w=oe(w),$=oe($)}oe=null}else oe=null;I!==null&&Eb(Z,j,I,oe,!1),Q!==null&&Ve!==null&&Eb(Z,Ve,Q,oe,!0)}}e:{if(j=D?Na(D):window,I=j.nodeName&&j.nodeName.toLowerCase(),I==="select"||I==="input"&&j.type==="file")var Re=Gg;else if(Bg(j))if(Yg)Re=nx;else{Re=ex;var W=W1}else I=j.nodeName,!I||I.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?D&&Ls(D.elementType)&&(Re=Gg):Re=tx;if(Re&&(Re=Re(e,D))){Jg(Z,Re,a,R);break e}W&&W(e,j,D),e==="focusout"&&D&&j.type==="number"&&D.memoizedProps.value!=null&&qs(j,"number",j.value)}switch(W=D?Na(D):window,e){case"focusin":(Bg(W)||W.contentEditable==="true")&&(wr=W,td=D,Ha=null);break;case"focusout":Ha=td=wr=null;break;case"mousedown":nd=!0;break;case"contextmenu":case"mouseup":case"dragend":nd=!1,ev(Z,a,R);break;case"selectionchange":if(rx)break;case"keydown":case"keyup":ev(Z,a,R)}var Se;if(Ks)e:{switch(e){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else xr?Lg(e,a)&&(Ue="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ue="onCompositionStart");Ue&&(Mg&&a.locale!=="ko"&&(xr||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&xr&&(Se=Ng()):(si=R,Ys="value"in si?si.value:si.textContent,xr=!0)),W=Mu(D,Ue),0<W.length&&(Ue=new Rg(Ue,e,null,a,R),Z.push({event:Ue,listeners:W}),Se?Ue.data=Se:(Se=Hg(a),Se!==null&&(Ue.data=Se)))),(Se=V1?P1(e,a):Q1(e,a))&&(Ue=Mu(D,"onBeforeInput"),0<Ue.length&&(W=new Rg("onBeforeInput","beforeinput",null,a,R),Z.push({event:W,listeners:Ue}),W.data=Se)),Lx(Z,e,D,a,R)}wb(Z,t)})}function po(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Mu(e,t){for(var a=t+"Capture",c=[];e!==null;){var d=e,f=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||f===null||(d=Aa(e,a),d!=null&&c.unshift(po(e,d,f)),d=Aa(e,t),d!=null&&c.push(po(e,d,f))),e.tag===3)return c;e=e.return}return[]}function Gx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Eb(e,t,a,c,d){for(var f=t._reactName,h=[];a!==null&&a!==c;){var y=a,S=y.alternate,D=y.stateNode;if(y=y.tag,S!==null&&S===c)break;y!==5&&y!==26&&y!==27||D===null||(S=D,d?(D=Aa(a,f),D!=null&&h.unshift(po(a,D,S))):d||(D=Aa(a,f),D!=null&&h.push(po(a,D,S)))),a=a.return}h.length!==0&&e.push({event:t,listeners:h})}var Yx=/\r\n?/g,Xx=/\u0000|\uFFFD/g;function Ob(e){return(typeof e=="string"?e:""+e).replace(Yx,`
55
- `).replace(Xx,"")}function Ub(e,t){return t=Ob(t),Ob(e)===t}function Xe(e,t,a,c,d,f){switch(a){case"children":typeof c=="string"?t==="body"||t==="textarea"&&c===""||$r(e,c):(typeof c=="number"||typeof c=="bigint")&&t!=="body"&&$r(e,""+c);break;case"className":Hl(e,"class",c);break;case"tabIndex":Hl(e,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Hl(e,a,c);break;case"style":Ug(e,c,f);break;case"data":if(t!=="object"){Hl(e,"data",c);break}case"src":case"href":if(c===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){e.removeAttribute(a);break}c=Jl(""+c),e.setAttribute(a,c);break;case"action":case"formAction":if(typeof c=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(a==="formAction"?(t!=="input"&&Xe(e,t,"name",d.name,d,null),Xe(e,t,"formEncType",d.formEncType,d,null),Xe(e,t,"formMethod",d.formMethod,d,null),Xe(e,t,"formTarget",d.formTarget,d,null)):(Xe(e,t,"encType",d.encType,d,null),Xe(e,t,"method",d.method,d,null),Xe(e,t,"target",d.target,d,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){e.removeAttribute(a);break}c=Jl(""+c),e.setAttribute(a,c);break;case"onClick":c!=null&&(e.onclick=Ln);break;case"onScroll":c!=null&&Te("scroll",e);break;case"onScrollEnd":c!=null&&Te("scrollend",e);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(l(61));if(a=c.__html,a!=null){if(d.children!=null)throw Error(l(60));e.innerHTML=a}}break;case"multiple":e.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":e.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){e.removeAttribute("xlink:href");break}a=Jl(""+c),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(a,""+c):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":c===!0?e.setAttribute(a,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(a,c):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?e.setAttribute(a,c):e.removeAttribute(a);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?e.removeAttribute(a):e.setAttribute(a,c);break;case"popover":Te("beforetoggle",e),Te("toggle",e),Ll(e,"popover",c);break;case"xlinkActuate":qn(e,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":qn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":qn(e,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":qn(e,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":qn(e,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":qn(e,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":qn(e,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":qn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":qn(e,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Ll(e,"is",c);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=S1.get(a)||a,Ll(e,a,c))}}function Ef(e,t,a,c,d,f){switch(a){case"style":Ug(e,c,f);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(l(61));if(a=c.__html,a!=null){if(d.children!=null)throw Error(l(60));e.innerHTML=a}}break;case"children":typeof c=="string"?$r(e,c):(typeof c=="number"||typeof c=="bigint")&&$r(e,""+c);break;case"onScroll":c!=null&&Te("scroll",e);break;case"onScrollEnd":c!=null&&Te("scrollend",e);break;case"onClick":c!=null&&(e.onclick=Ln);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Sg.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(d=a.endsWith("Capture"),t=a.slice(2,d?a.length-7:void 0),f=e[Zt]||null,f=f!=null?f[a]:null,typeof f=="function"&&e.removeEventListener(t,f,d),typeof c=="function")){typeof f!="function"&&f!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,c,d);break e}a in e?e[a]=c:c===!0?e.setAttribute(a,""):Ll(e,a,c)}}}function xt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Te("error",e),Te("load",e);var c=!1,d=!1,f;for(f in a)if(a.hasOwnProperty(f)){var h=a[f];if(h!=null)switch(f){case"src":c=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Xe(e,t,f,h,a,null)}}d&&Xe(e,t,"srcSet",a.srcSet,a,null),c&&Xe(e,t,"src",a.src,a,null);return;case"input":Te("invalid",e);var y=f=h=d=null,S=null,D=null;for(c in a)if(a.hasOwnProperty(c)){var R=a[c];if(R!=null)switch(c){case"name":d=R;break;case"type":h=R;break;case"checked":S=R;break;case"defaultChecked":D=R;break;case"value":f=R;break;case"defaultValue":y=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(l(137,t));break;default:Xe(e,t,c,R,a,null)}}wg(e,f,y,S,D,h,d,!1);return;case"select":Te("invalid",e),c=h=f=null;for(d in a)if(a.hasOwnProperty(d)&&(y=a[d],y!=null))switch(d){case"value":f=y;break;case"defaultValue":h=y;break;case"multiple":c=y;default:Xe(e,t,d,y,a,null)}t=f,a=h,e.multiple=!!c,t!=null?Sr(e,!!c,t,!1):a!=null&&Sr(e,!!c,a,!0);return;case"textarea":Te("invalid",e),f=d=c=null;for(h in a)if(a.hasOwnProperty(h)&&(y=a[h],y!=null))switch(h){case"value":c=y;break;case"defaultValue":d=y;break;case"children":f=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(l(91));break;default:Xe(e,t,h,y,a,null)}Eg(e,c,d,f);return;case"option":for(S in a)if(a.hasOwnProperty(S)&&(c=a[S],c!=null))switch(S){case"selected":e.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:Xe(e,t,S,c,a,null)}return;case"dialog":Te("beforetoggle",e),Te("toggle",e),Te("cancel",e),Te("close",e);break;case"iframe":case"object":Te("load",e);break;case"video":case"audio":for(c=0;c<mo.length;c++)Te(mo[c],e);break;case"image":Te("error",e),Te("load",e);break;case"details":Te("toggle",e);break;case"embed":case"source":case"link":Te("error",e),Te("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in a)if(a.hasOwnProperty(D)&&(c=a[D],c!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Xe(e,t,D,c,a,null)}return;default:if(Ls(t)){for(R in a)a.hasOwnProperty(R)&&(c=a[R],c!==void 0&&Ef(e,t,R,c,a,void 0));return}}for(y in a)a.hasOwnProperty(y)&&(c=a[y],c!=null&&Xe(e,t,y,c,a,null))}function Vx(e,t,a,c){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,f=null,h=null,y=null,S=null,D=null,R=null;for(I in a){var Z=a[I];if(a.hasOwnProperty(I)&&Z!=null)switch(I){case"checked":break;case"value":break;case"defaultValue":S=Z;default:c.hasOwnProperty(I)||Xe(e,t,I,null,c,Z)}}for(var j in c){var I=c[j];if(Z=a[j],c.hasOwnProperty(j)&&(I!=null||Z!=null))switch(j){case"type":f=I;break;case"name":d=I;break;case"checked":D=I;break;case"defaultChecked":R=I;break;case"value":h=I;break;case"defaultValue":y=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(l(137,t));break;default:I!==Z&&Xe(e,t,j,I,c,Z)}}Zs(e,h,y,S,D,R,f,d);return;case"select":I=h=y=j=null;for(f in a)if(S=a[f],a.hasOwnProperty(f)&&S!=null)switch(f){case"value":break;case"multiple":I=S;default:c.hasOwnProperty(f)||Xe(e,t,f,null,c,S)}for(d in c)if(f=c[d],S=a[d],c.hasOwnProperty(d)&&(f!=null||S!=null))switch(d){case"value":j=f;break;case"defaultValue":y=f;break;case"multiple":h=f;default:f!==S&&Xe(e,t,d,f,c,S)}t=y,a=h,c=I,j!=null?Sr(e,!!a,j,!1):!!c!=!!a&&(t!=null?Sr(e,!!a,t,!0):Sr(e,!!a,a?[]:"",!1));return;case"textarea":I=j=null;for(y in a)if(d=a[y],a.hasOwnProperty(y)&&d!=null&&!c.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Xe(e,t,y,null,c,d)}for(h in c)if(d=c[h],f=a[h],c.hasOwnProperty(h)&&(d!=null||f!=null))switch(h){case"value":j=d;break;case"defaultValue":I=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(l(91));break;default:d!==f&&Xe(e,t,h,d,c,f)}Tg(e,j,I);return;case"option":for(var Q in a)if(j=a[Q],a.hasOwnProperty(Q)&&j!=null&&!c.hasOwnProperty(Q))switch(Q){case"selected":e.selected=!1;break;default:Xe(e,t,Q,null,c,j)}for(S in c)if(j=c[S],I=a[S],c.hasOwnProperty(S)&&j!==I&&(j!=null||I!=null))switch(S){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:Xe(e,t,S,j,c,I)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var oe in a)j=a[oe],a.hasOwnProperty(oe)&&j!=null&&!c.hasOwnProperty(oe)&&Xe(e,t,oe,null,c,j);for(D in c)if(j=c[D],I=a[D],c.hasOwnProperty(D)&&j!==I&&(j!=null||I!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(l(137,t));break;default:Xe(e,t,D,j,c,I)}return;default:if(Ls(t)){for(var Ve in a)j=a[Ve],a.hasOwnProperty(Ve)&&j!==void 0&&!c.hasOwnProperty(Ve)&&Ef(e,t,Ve,void 0,c,j);for(R in c)j=c[R],I=a[R],!c.hasOwnProperty(R)||j===I||j===void 0&&I===void 0||Ef(e,t,R,j,c,I);return}}for(var w in a)j=a[w],a.hasOwnProperty(w)&&j!=null&&!c.hasOwnProperty(w)&&Xe(e,t,w,null,c,j);for(Z in c)j=c[Z],I=a[Z],!c.hasOwnProperty(Z)||j===I||j==null&&I==null||Xe(e,t,Z,j,c,I)}function Db(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Px(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),c=0;c<a.length;c++){var d=a[c],f=d.transferSize,h=d.initiatorType,y=d.duration;if(f&&y&&Db(h)){for(h=0,y=d.responseEnd,c+=1;c<a.length;c++){var S=a[c],D=S.startTime;if(D>y)break;var R=S.transferSize,Z=S.initiatorType;R&&Db(Z)&&(S=S.responseEnd,h+=R*(S<y?1:(y-D)/(S-D)))}if(--c,t+=8*(f+h)/(d.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Of=null,Uf=null;function Zu(e){return e.nodeType===9?e:e.ownerDocument}function jb(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Nb(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Df(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var jf=null;function Qx(){var e=window.event;return e&&e.type==="popstate"?e===jf?!1:(jf=e,!0):(jf=null,!1)}var Ab=typeof setTimeout=="function"?setTimeout:void 0,Kx=typeof clearTimeout=="function"?clearTimeout:void 0,Ib=typeof Promise=="function"?Promise:void 0,Fx=typeof queueMicrotask=="function"?queueMicrotask:typeof Ib<"u"?function(e){return Ib.resolve(null).then(e).catch(Wx)}:Ab;function Wx(e){setTimeout(function(){throw e})}function Ti(e){return e==="head"}function Rb(e,t){var a=t,c=0;do{var d=a.nextSibling;if(e.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"||a==="/&"){if(c===0){e.removeChild(d),Wr(t);return}c--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")c++;else if(a==="html")ho(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,ho(a);for(var f=a.firstChild;f;){var h=f.nextSibling,y=f.nodeName;f[ja]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&f.rel.toLowerCase()==="stylesheet"||a.removeChild(f),f=h}}else a==="body"&&ho(e.ownerDocument.body);a=d}while(a);Wr(t)}function Cb(e,t){var a=e;e=0;do{var c=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),c&&c.nodeType===8)if(a=c.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=c}while(a)}function Nf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Nf(a),Cs(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function ew(e,t,a,c){for(;e.nodeType===1;){var d=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!c&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(c){if(!e[ja])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==d.rel||e.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||e.getAttribute("title")!==(d.title==null?null:d.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(d.src==null?null:d.src)||e.getAttribute("type")!==(d.type==null?null:d.type)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=d.name==null?null:""+d.name;if(d.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=bn(e.nextSibling),e===null)break}return null}function tw(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=bn(e.nextSibling),e===null))return null;return e}function Mb(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=bn(e.nextSibling),e===null))return null;return e}function Af(e){return e.data==="$?"||e.data==="$~"}function If(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function nw(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var c=function(){t(),a.removeEventListener("DOMContentLoaded",c)};a.addEventListener("DOMContentLoaded",c),e._reactRetry=c}}function bn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Rf=null;function Zb(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return bn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function qb(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Lb(e,t,a){switch(t=Zu(a),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function ho(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Cs(e)}var _n=new Map,Hb=new Set;function qu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ii=Y.d;Y.d={f:iw,r:rw,D:aw,C:ow,L:lw,m:uw,X:sw,S:cw,M:dw};function iw(){var e=ii.f(),t=Du();return e||t}function rw(e){var t=yr(e);t!==null&&t.tag===5&&t.type==="form"?ay(t):ii.r(e)}var Qr=typeof document>"u"?null:document;function Bb(e,t,a){var c=Qr;if(c&&typeof t=="string"&&t){var d=fn(t);d='link[rel="'+e+'"][href="'+d+'"]',typeof a=="string"&&(d+='[crossorigin="'+a+'"]'),Hb.has(d)||(Hb.add(d),e={rel:e,crossOrigin:a,href:t},c.querySelector(d)===null&&(t=c.createElement("link"),xt(t,"link",e),yt(t),c.head.appendChild(t)))}}function aw(e){ii.D(e),Bb("dns-prefetch",e,null)}function ow(e,t){ii.C(e,t),Bb("preconnect",e,t)}function lw(e,t,a){ii.L(e,t,a);var c=Qr;if(c&&e&&t){var d='link[rel="preload"][as="'+fn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(d+='[imagesrcset="'+fn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(d+='[imagesizes="'+fn(a.imageSizes)+'"]')):d+='[href="'+fn(e)+'"]';var f=d;switch(t){case"style":f=Kr(e);break;case"script":f=Fr(e)}_n.has(f)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),_n.set(f,e),c.querySelector(d)!==null||t==="style"&&c.querySelector(go(f))||t==="script"&&c.querySelector(vo(f))||(t=c.createElement("link"),xt(t,"link",e),yt(t),c.head.appendChild(t)))}}function uw(e,t){ii.m(e,t);var a=Qr;if(a&&e){var c=t&&typeof t.as=="string"?t.as:"script",d='link[rel="modulepreload"][as="'+fn(c)+'"][href="'+fn(e)+'"]',f=d;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Fr(e)}if(!_n.has(f)&&(e=b({rel:"modulepreload",href:e},t),_n.set(f,e),a.querySelector(d)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(vo(f)))return}c=a.createElement("link"),xt(c,"link",e),yt(c),a.head.appendChild(c)}}}function cw(e,t,a){ii.S(e,t,a);var c=Qr;if(c&&e){var d=br(c).hoistableStyles,f=Kr(e);t=t||"default";var h=d.get(f);if(!h){var y={loading:0,preload:null};if(h=c.querySelector(go(f)))y.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=_n.get(f))&&Cf(e,a);var S=h=c.createElement("link");yt(S),xt(S,"link",e),S._p=new Promise(function(D,R){S.onload=D,S.onerror=R}),S.addEventListener("load",function(){y.loading|=1}),S.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Lu(h,t,c)}h={type:"stylesheet",instance:h,count:1,state:y},d.set(f,h)}}}function sw(e,t){ii.X(e,t);var a=Qr;if(a&&e){var c=br(a).hoistableScripts,d=Fr(e),f=c.get(d);f||(f=a.querySelector(vo(d)),f||(e=b({src:e,async:!0},t),(t=_n.get(d))&&Mf(e,t),f=a.createElement("script"),yt(f),xt(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},c.set(d,f))}}function dw(e,t){ii.M(e,t);var a=Qr;if(a&&e){var c=br(a).hoistableScripts,d=Fr(e),f=c.get(d);f||(f=a.querySelector(vo(d)),f||(e=b({src:e,async:!0,type:"module"},t),(t=_n.get(d))&&Mf(e,t),f=a.createElement("script"),yt(f),xt(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},c.set(d,f))}}function Jb(e,t,a,c){var d=(d=$e.current)?qu(d):null;if(!d)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Kr(a.href),a=br(d).hoistableStyles,c=a.get(t),c||(c={type:"style",instance:null,count:0,state:null},a.set(t,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Kr(a.href);var f=br(d).hoistableStyles,h=f.get(e);if(h||(d=d.ownerDocument||d,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,h),(f=d.querySelector(go(e)))&&!f._p&&(h.instance=f,h.state.loading=5),_n.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},_n.set(e,a),f||fw(d,e,a,h.state))),t&&c===null)throw Error(l(528,""));return h}if(t&&c!==null)throw Error(l(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Fr(a),a=br(d).hoistableScripts,c=a.get(t),c||(c={type:"script",instance:null,count:0,state:null},a.set(t,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Kr(e){return'href="'+fn(e)+'"'}function go(e){return'link[rel="stylesheet"]['+e+"]"}function Gb(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function fw(e,t,a,c){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?c.loading=1:(t=e.createElement("link"),c.preload=t,t.addEventListener("load",function(){return c.loading|=1}),t.addEventListener("error",function(){return c.loading|=2}),xt(t,"link",a),yt(t),e.head.appendChild(t))}function Fr(e){return'[src="'+fn(e)+'"]'}function vo(e){return"script[async]"+e}function Yb(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var c=e.querySelector('style[data-href~="'+fn(a.href)+'"]');if(c)return t.instance=c,yt(c),c;var d=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return c=(e.ownerDocument||e).createElement("style"),yt(c),xt(c,"style",d),Lu(c,a.precedence,e),t.instance=c;case"stylesheet":d=Kr(a.href);var f=e.querySelector(go(d));if(f)return t.state.loading|=4,t.instance=f,yt(f),f;c=Gb(a),(d=_n.get(d))&&Cf(c,d),f=(e.ownerDocument||e).createElement("link"),yt(f);var h=f;return h._p=new Promise(function(y,S){h.onload=y,h.onerror=S}),xt(f,"link",c),t.state.loading|=4,Lu(f,a.precedence,e),t.instance=f;case"script":return f=Fr(a.src),(d=e.querySelector(vo(f)))?(t.instance=d,yt(d),d):(c=a,(d=_n.get(f))&&(c=b({},a),Mf(c,d)),e=e.ownerDocument||e,d=e.createElement("script"),yt(d),xt(d,"link",c),e.head.appendChild(d),t.instance=d);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(c=t.instance,t.state.loading|=4,Lu(c,a.precedence,e));return t.instance}function Lu(e,t,a){for(var c=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=c.length?c[c.length-1]:null,f=d,h=0;h<c.length;h++){var y=c[h];if(y.dataset.precedence===t)f=y;else if(f!==d)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Cf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Mf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Hu=null;function Xb(e,t,a){if(Hu===null){var c=new Map,d=Hu=new Map;d.set(a,c)}else d=Hu,c=d.get(a),c||(c=new Map,d.set(a,c));if(c.has(e))return c;for(c.set(e,null),a=a.getElementsByTagName(e),d=0;d<a.length;d++){var f=a[d];if(!(f[ja]||f[St]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var h=f.getAttribute(t)||"";h=e+h;var y=c.get(h);y?y.push(f):c.set(h,[f])}}return c}function Vb(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function mw(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Pb(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function pw(e,t,a,c){if(a.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var d=Kr(c.href),f=t.querySelector(go(d));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Bu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=f,yt(f);return}f=t.ownerDocument||t,c=Gb(c),(d=_n.get(d))&&Cf(c,d),f=f.createElement("link"),yt(f);var h=f;h._p=new Promise(function(y,S){h.onload=y,h.onerror=S}),xt(f,"link",c),a.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Bu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Zf=0;function hw(e,t){return e.stylesheets&&e.count===0&&Gu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var c=setTimeout(function(){if(e.stylesheets&&Gu(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&Zf===0&&(Zf=62500*Px());var d=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Gu(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>Zf?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(c),clearTimeout(d)}}:null}function Bu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Gu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ju=null;function Gu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ju=new Map,t.forEach(gw,e),Ju=null,Bu.call(e))}function gw(e,t){if(!(t.state.loading&4)){var a=Ju.get(e);if(a)var c=a.get(null);else{a=new Map,Ju.set(e,a);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<d.length;f++){var h=d[f];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(a.set(h.dataset.precedence,h),c=h)}c&&a.set(null,c)}d=t.instance,h=d.getAttribute("data-precedence"),f=a.get(h)||c,f===c&&a.set(null,d),a.set(h,d),this.count++,c=Bu.bind(this),d.addEventListener("load",c),d.addEventListener("error",c),f?f.parentNode.insertBefore(d,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),t.state.loading|=4}}var yo={$$typeof:de,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function vw(e,t,a,c,d,f,h,y,S){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ns(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ns(0),this.hiddenUpdates=Ns(null),this.identifierPrefix=c,this.onUncaughtError=d,this.onCaughtError=f,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function Qb(e,t,a,c,d,f,h,y,S,D,R,Z){return e=new vw(e,t,a,h,S,D,R,Z,y),t=1,f===!0&&(t|=24),f=Ft(3,null,null,t),e.current=f,f.stateNode=e,t=vd(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:c,isDehydrated:a,cache:t},Sd(f),e}function Kb(e){return e?(e=Or,e):Or}function Fb(e,t,a,c,d,f){d=Kb(d),c.context===null?c.context=d:c.pendingContext=d,c=gi(t),c.payload={element:a},f=f===void 0?null:f,f!==null&&(c.callback=f),a=vi(e,c,t),a!==null&&(Gt(a,e,t),Pa(a,e,t))}function Wb(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function qf(e,t){Wb(e,t),(e=e.alternate)&&Wb(e,t)}function e_(e){if(e.tag===13||e.tag===31){var t=Hi(e,67108864);t!==null&&Gt(t,e,67108864),qf(e,67108864)}}function t_(e){if(e.tag===13||e.tag===31){var t=rn();t=As(t);var a=Hi(e,t);a!==null&&Gt(a,e,t),qf(e,t)}}var Yu=!0;function yw(e,t,a,c){var d=C.T;C.T=null;var f=Y.p;try{Y.p=2,Lf(e,t,a,c)}finally{Y.p=f,C.T=d}}function bw(e,t,a,c){var d=C.T;C.T=null;var f=Y.p;try{Y.p=8,Lf(e,t,a,c)}finally{Y.p=f,C.T=d}}function Lf(e,t,a,c){if(Yu){var d=Hf(c);if(d===null)Tf(e,t,c,Xu,a),i_(e,c);else if(Sw(d,e,t,a,c))c.stopPropagation();else if(i_(e,c),t&4&&-1<_w.indexOf(e)){for(;d!==null;){var f=yr(d);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var h=Ci(f.pendingLanes);if(h!==0){var y=f;for(y.pendingLanes|=2,y.entangledLanes|=2;h;){var S=1<<31-Qt(h);y.entanglements[1]|=S,h&=~S}In(f),(Ze&6)===0&&(Ou=Vt()+500,fo(0))}}break;case 31:case 13:y=Hi(f,2),y!==null&&Gt(y,f,2),Du(),qf(f,2)}if(f=Hf(c),f===null&&Tf(e,t,c,Xu,a),f===d)break;d=f}d!==null&&c.stopPropagation()}else Tf(e,t,c,null,a)}}function Hf(e){return e=Bs(e),Bf(e)}var Xu=null;function Bf(e){if(Xu=null,e=vr(e),e!==null){var t=u(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=s(t),e!==null)return e;e=null}else if(a===31){if(e=m(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Xu=e,null}function n_(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(a1()){case sg:return 2;case dg:return 8;case Rl:case o1:return 32;case fg:return 268435456;default:return 32}default:return 32}}var Jf=!1,Ei=null,Oi=null,Ui=null,bo=new Map,_o=new Map,Di=[],_w="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function i_(e,t){switch(e){case"focusin":case"focusout":Ei=null;break;case"dragenter":case"dragleave":Oi=null;break;case"mouseover":case"mouseout":Ui=null;break;case"pointerover":case"pointerout":bo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_o.delete(t.pointerId)}}function So(e,t,a,c,d,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:a,eventSystemFlags:c,nativeEvent:f,targetContainers:[d]},t!==null&&(t=yr(t),t!==null&&e_(t)),e):(e.eventSystemFlags|=c,t=e.targetContainers,d!==null&&t.indexOf(d)===-1&&t.push(d),e)}function Sw(e,t,a,c,d){switch(t){case"focusin":return Ei=So(Ei,e,t,a,c,d),!0;case"dragenter":return Oi=So(Oi,e,t,a,c,d),!0;case"mouseover":return Ui=So(Ui,e,t,a,c,d),!0;case"pointerover":var f=d.pointerId;return bo.set(f,So(bo.get(f)||null,e,t,a,c,d)),!0;case"gotpointercapture":return f=d.pointerId,_o.set(f,So(_o.get(f)||null,e,t,a,c,d)),!0}return!1}function r_(e){var t=vr(e.target);if(t!==null){var a=u(t);if(a!==null){if(t=a.tag,t===13){if(t=s(a),t!==null){e.blockedOn=t,yg(e.priority,function(){t_(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,yg(e.priority,function(){t_(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Hf(e.nativeEvent);if(a===null){a=e.nativeEvent;var c=new a.constructor(a.type,a);Hs=c,a.target.dispatchEvent(c),Hs=null}else return t=yr(a),t!==null&&e_(t),e.blockedOn=a,!1;t.shift()}return!0}function a_(e,t,a){Vu(e)&&a.delete(t)}function $w(){Jf=!1,Ei!==null&&Vu(Ei)&&(Ei=null),Oi!==null&&Vu(Oi)&&(Oi=null),Ui!==null&&Vu(Ui)&&(Ui=null),bo.forEach(a_),_o.forEach(a_)}function Pu(e,t){e.blockedOn===t&&(e.blockedOn=null,Jf||(Jf=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,$w)))}var Qu=null;function o_(e){Qu!==e&&(Qu=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Qu===e&&(Qu=null);for(var t=0;t<e.length;t+=3){var a=e[t],c=e[t+1],d=e[t+2];if(typeof c!="function"){if(Bf(c||a)===null)continue;break}var f=yr(a);f!==null&&(e.splice(t,3),t-=3,Ld(f,{pending:!0,data:d,method:a.method,action:c},c,d))}}))}function Wr(e){function t(S){return Pu(S,e)}Ei!==null&&Pu(Ei,e),Oi!==null&&Pu(Oi,e),Ui!==null&&Pu(Ui,e),bo.forEach(t),_o.forEach(t);for(var a=0;a<Di.length;a++){var c=Di[a];c.blockedOn===e&&(c.blockedOn=null)}for(;0<Di.length&&(a=Di[0],a.blockedOn===null);)r_(a),a.blockedOn===null&&Di.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(c=0;c<a.length;c+=3){var d=a[c],f=a[c+1],h=d[Zt]||null;if(typeof f=="function")h||o_(a);else if(h){var y=null;if(f&&f.hasAttribute("formAction")){if(d=f,h=f[Zt]||null)y=h.formAction;else if(Bf(d)!==null)continue}else y=h.action;typeof y=="function"?a[c+1]=y:(a.splice(c,3),c-=3),o_(a)}}}function l_(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(h){return d=h})},focusReset:"manual",scroll:"manual"})}function t(){d!==null&&(d(),d=null),c||setTimeout(a,20)}function a(){if(!c&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,d=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){c=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),d!==null&&(d(),d=null)}}}function Gf(e){this._internalRoot=e}Ku.prototype.render=Gf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var a=t.current,c=rn();Fb(a,c,e,t,null,null)},Ku.prototype.unmount=Gf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Fb(e.current,2,null,e,null,null),Du(),t[gr]=null}};function Ku(e){this._internalRoot=e}Ku.prototype.unstable_scheduleHydration=function(e){if(e){var t=vg();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Di.length&&t!==0&&t<Di[a].priority;a++);Di.splice(a,0,e),a===0&&r_(e)}};var u_=r.version;if(u_!=="19.2.5")throw Error(l(527,u_,"19.2.5"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=g(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var kw={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:C,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fu.isDisabled&&Fu.supportsFiber)try{Oa=Fu.inject(kw),Pt=Fu}catch{}}return ko.createRoot=function(e,t){if(!n(e))throw Error(l(299));var a=!1,c="",d=hy,f=gy,h=vy;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(c=t.identifierPrefix),t.onUncaughtError!==void 0&&(d=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Qb(e,1,!1,null,null,a,c,null,d,f,h,l_),e[gr]=t.current,wf(e),new Gf(t)},ko.hydrateRoot=function(e,t,a){if(!n(e))throw Error(l(299));var c=!1,d="",f=hy,h=gy,y=vy,S=null;return a!=null&&(a.unstable_strictMode===!0&&(c=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(h=a.onCaughtError),a.onRecoverableError!==void 0&&(y=a.onRecoverableError),a.formState!==void 0&&(S=a.formState)),t=Qb(e,1,!0,t,a??null,c,d,S,f,h,y,l_),t.context=Kb(null),a=t.current,c=rn(),c=As(c),d=gi(c),d.callback=null,vi(a,d,c),a=c,t.current.lanes=a,Da(t,a),In(t),e[gr]=t.current,wf(e),new Ku(t)},ko.version="19.2.5",ko}var y_;function Iw(){if(y_)return Vf.exports;y_=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(r){console.error(r)}}return i(),Vf.exports=Aw(),Vf.exports}var Rw=Iw();const Cw="modulepreload",Mw=function(i,r){return new URL(i,r).href},b_={},Zw=function(r,o,l){let n=Promise.resolve();if(o&&o.length>0){let s=function(v){return Promise.all(v.map(b=>Promise.resolve(b).then(_=>({status:"fulfilled",value:_}),_=>({status:"rejected",reason:_}))))};const m=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),g=(p==null?void 0:p.nonce)||(p==null?void 0:p.getAttribute("nonce"));n=s(o.map(v=>{if(v=Mw(v,l),v in b_)return;b_[v]=!0;const b=v.endsWith(".css"),_=b?'[rel="stylesheet"]':"";if(!!l)for(let H=m.length-1;H>=0;H--){const J=m[H];if(J.href===v&&(!b||J.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${v}"]${_}`))return;const x=document.createElement("link");if(x.rel=b?"stylesheet":Cw,b||(x.as="script"),x.crossOrigin="",x.href=v,g&&x.setAttribute("nonce",g),document.head.appendChild(x),b)return new Promise((H,J)=>{x.addEventListener("load",H),x.addEventListener("error",()=>J(new Error(`Unable to preload CSS for ${v}`)))})}))}function u(s){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=s,window.dispatchEvent(m),!m.defaultPrevented)throw s}return n.then(s=>{for(const m of s||[])m.status==="rejected"&&u(m.reason);return r().catch(u)})};var __;const cm=Object.freeze({status:"aborted"});function T(i,r,o){function l(m,p){if(m._zod||Object.defineProperty(m,"_zod",{value:{def:p,constr:s,traits:new Set},enumerable:!1}),m._zod.traits.has(i))return;m._zod.traits.add(i),r(m,p);const g=s.prototype,v=Object.keys(g);for(let b=0;b<v.length;b++){const _=v[b];_ in m||(m[_]=g[_].bind(m))}}const n=(o==null?void 0:o.Parent)??Object;class u extends n{}Object.defineProperty(u,"name",{value:i});function s(m){var p;const g=o!=null&&o.Parent?new u:this;l(g,m),(p=g._zod).deferred??(p.deferred=[]);for(const v of g._zod.deferred)v();return g}return Object.defineProperty(s,"init",{value:l}),Object.defineProperty(s,Symbol.hasInstance,{value:m=>{var p,g;return o!=null&&o.Parent&&m instanceof o.Parent?!0:(g=(p=m==null?void 0:m._zod)==null?void 0:p.traits)==null?void 0:g.has(i)}}),Object.defineProperty(s,"name",{value:i}),s}const sm=Symbol("zod_brand");class ar extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class gc extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}}(__=globalThis).__zod_globalConfig??(__.__zod_globalConfig={});const Eo=globalThis.__zod_globalConfig;function vt(i){return i&&Object.assign(Eo,i),Eo}function qw(i){return i}function Lw(i){return i}function Hw(i){}function Bw(i){throw new Error("Unexpected value in exhaustive check")}function Jw(i){}function dm(i){const r=Object.values(i).filter(l=>typeof l=="number");return Object.entries(i).filter(([l,n])=>r.indexOf(+l)===-1).map(([l,n])=>n)}function B(i,r="|"){return i.map(o=>ae(o)).join(r)}function ac(i,r){return typeof r=="bigint"?r.toString():r}function jo(i){return{get value(){{const r=i();return Object.defineProperty(this,"value",{value:r}),r}}}}function fr(i){return i==null}function vc(i){const r=i.startsWith("^")?1:0,o=i.endsWith("$")?i.length-1:i.length;return i.slice(r,o)}function lS(i,r){const o=i/r,l=Math.round(o),n=Number.EPSILON*Math.max(Math.abs(o),1);return Math.abs(o-l)<n?0:o-l}const S_=Symbol("evaluating");function ke(i,r,o){let l;Object.defineProperty(i,r,{get(){if(l!==S_)return l===void 0&&(l=S_,l=o()),l},set(n){Object.defineProperty(i,r,{value:n})},configurable:!0})}function Gw(i){return Object.create(Object.getPrototypeOf(i),Object.getOwnPropertyDescriptors(i))}function Ii(i,r,o){Object.defineProperty(i,r,{value:o,writable:!0,enumerable:!0,configurable:!0})}function Cn(...i){const r={};for(const o of i){const l=Object.getOwnPropertyDescriptors(o);Object.assign(r,l)}return Object.defineProperties({},r)}function Yw(i){return Cn(i._zod.def)}function Xw(i,r){return r?r.reduce((o,l)=>o==null?void 0:o[l],i):i}function Vw(i){const r=Object.keys(i),o=r.map(l=>i[l]);return Promise.all(o).then(l=>{const n={};for(let u=0;u<r.length;u++)n[r[u]]=l[u];return n})}function Pw(i=10){const r="abcdefghijklmnopqrstuvwxyz";let o="";for(let l=0;l<i;l++)o+=r[Math.floor(Math.random()*r.length)];return o}function Wf(i){return JSON.stringify(i)}function uS(i){return i.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const fm="captureStackTrace"in Error?Error.captureStackTrace:(...i)=>{};function ta(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}const cS=jo(()=>{var i;if(Eo.jitless||typeof navigator<"u"&&((i=navigator==null?void 0:navigator.userAgent)!=null&&i.includes("Cloudflare")))return!1;try{const r=Function;return new r(""),!0}catch{return!1}});function or(i){if(ta(i)===!1)return!1;const r=i.constructor;if(r===void 0||typeof r!="function")return!0;const o=r.prototype;return!(ta(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function yc(i){return or(i)?{...i}:Array.isArray(i)?[...i]:i instanceof Map?new Map(i):i instanceof Set?new Set(i):i}function Qw(i){let r=0;for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&r++;return r}const Kw=i=>{const r=typeof i;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(i)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(i)?"array":i===null?"null":i.then&&typeof i.then=="function"&&i.catch&&typeof i.catch=="function"?"promise":typeof Map<"u"&&i instanceof Map?"map":typeof Set<"u"&&i instanceof Set?"set":typeof Date<"u"&&i instanceof Date?"date":typeof File<"u"&&i instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},oc=new Set(["string","number","symbol"]),sS=new Set(["string","number","bigint","boolean","symbol","undefined"]);function ri(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function un(i,r,o){const l=new i._zod.constr(r??i._zod.def);return(!r||o!=null&&o.parent)&&(l._zod.parent=i),l}function L(i){const r=i;if(!r)return{};if(typeof r=="string")return{error:()=>r};if((r==null?void 0:r.message)!==void 0){if((r==null?void 0:r.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function Fw(i){let r;return new Proxy({},{get(o,l,n){return r??(r=i()),Reflect.get(r,l,n)},set(o,l,n,u){return r??(r=i()),Reflect.set(r,l,n,u)},has(o,l){return r??(r=i()),Reflect.has(r,l)},deleteProperty(o,l){return r??(r=i()),Reflect.deleteProperty(r,l)},ownKeys(o){return r??(r=i()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(o,l){return r??(r=i()),Reflect.getOwnPropertyDescriptor(r,l)},defineProperty(o,l,n){return r??(r=i()),Reflect.defineProperty(r,l,n)}})}function ae(i){return typeof i=="bigint"?i.toString()+"n":typeof i=="string"?`"${i}"`:`${i}`}function dS(i){return Object.keys(i).filter(r=>i[r]._zod.optin==="optional"&&i[r]._zod.optout==="optional")}const fS={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]},mS={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function pS(i,r){const o=i._zod.def,l=o.checks;if(l&&l.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const u=Cn(i._zod.def,{get shape(){const s={};for(const m in r){if(!(m in o.shape))throw new Error(`Unrecognized key: "${m}"`);r[m]&&(s[m]=o.shape[m])}return Ii(this,"shape",s),s},checks:[]});return un(i,u)}function hS(i,r){const o=i._zod.def,l=o.checks;if(l&&l.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const u=Cn(i._zod.def,{get shape(){const s={...i._zod.def.shape};for(const m in r){if(!(m in o.shape))throw new Error(`Unrecognized key: "${m}"`);r[m]&&delete s[m]}return Ii(this,"shape",s),s},checks:[]});return un(i,u)}function gS(i,r){if(!or(r))throw new Error("Invalid input to extend: expected a plain object");const o=i._zod.def.checks;if(o&&o.length>0){const u=i._zod.def.shape;for(const s in r)if(Object.getOwnPropertyDescriptor(u,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const n=Cn(i._zod.def,{get shape(){const u={...i._zod.def.shape,...r};return Ii(this,"shape",u),u}});return un(i,n)}function vS(i,r){if(!or(r))throw new Error("Invalid input to safeExtend: expected a plain object");const o=Cn(i._zod.def,{get shape(){const l={...i._zod.def.shape,...r};return Ii(this,"shape",l),l}});return un(i,o)}function yS(i,r){var l;if((l=i._zod.def.checks)!=null&&l.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const o=Cn(i._zod.def,{get shape(){const n={...i._zod.def.shape,...r._zod.def.shape};return Ii(this,"shape",n),n},get catchall(){return r._zod.def.catchall},checks:r._zod.def.checks??[]});return un(i,o)}function bS(i,r,o){const n=r._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const s=Cn(r._zod.def,{get shape(){const m=r._zod.def.shape,p={...m};if(o)for(const g in o){if(!(g in m))throw new Error(`Unrecognized key: "${g}"`);o[g]&&(p[g]=i?new i({type:"optional",innerType:m[g]}):m[g])}else for(const g in m)p[g]=i?new i({type:"optional",innerType:m[g]}):m[g];return Ii(this,"shape",p),p},checks:[]});return un(r,s)}function _S(i,r,o){const l=Cn(r._zod.def,{get shape(){const n=r._zod.def.shape,u={...n};if(o)for(const s in o){if(!(s in u))throw new Error(`Unrecognized key: "${s}"`);o[s]&&(u[s]=new i({type:"nonoptional",innerType:n[s]}))}else for(const s in n)u[s]=new i({type:"nonoptional",innerType:n[s]});return Ii(this,"shape",u),u}});return un(r,l)}function rr(i,r=0){var o;if(i.aborted===!0)return!0;for(let l=r;l<i.issues.length;l++)if(((o=i.issues[l])==null?void 0:o.continue)!==!0)return!0;return!1}function SS(i,r=0){var o;if(i.aborted===!0)return!0;for(let l=r;l<i.issues.length;l++)if(((o=i.issues[l])==null?void 0:o.continue)===!1)return!0;return!1}function Sn(i,r){return r.map(o=>{var l;return(l=o).path??(l.path=[]),o.path.unshift(i),o})}function wo(i){return typeof i=="string"?i:i==null?void 0:i.message}function ln(i,r,o){var p,g,v,b,_,z;const l=i.message?i.message:wo((v=(g=(p=i.inst)==null?void 0:p._zod.def)==null?void 0:g.error)==null?void 0:v.call(g,i))??wo((b=r==null?void 0:r.error)==null?void 0:b.call(r,i))??wo((_=o.customError)==null?void 0:_.call(o,i))??wo((z=o.localeError)==null?void 0:z.call(o,i))??"Invalid input",{inst:n,continue:u,input:s,...m}=i;return m.path??(m.path=[]),m.message=l,r!=null&&r.reportInput&&(m.input=s),m}function bc(i){return i instanceof Set?"set":i instanceof Map?"map":i instanceof File?"file":"unknown"}function _c(i){return Array.isArray(i)?"array":typeof i=="string"?"string":"unknown"}function le(i){const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"nan":"number";case"object":{if(i===null)return"null";if(Array.isArray(i))return"array";const o=i;if(o&&Object.getPrototypeOf(o)!==Object.prototype&&"constructor"in o&&o.constructor)return o.constructor.name}}return r}function na(...i){const[r,o,l]=i;return typeof r=="string"?{message:r,code:"custom",input:o,inst:l}:{...r}}function Ww(i){return Object.entries(i).filter(([r,o])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function $S(i){const r=atob(i),o=new Uint8Array(r.length);for(let l=0;l<r.length;l++)o[l]=r.charCodeAt(l);return o}function kS(i){let r="";for(let o=0;o<i.length;o++)r+=String.fromCharCode(i[o]);return btoa(r)}function e4(i){const r=i.replace(/-/g,"+").replace(/_/g,"/"),o="=".repeat((4-r.length%4)%4);return $S(r+o)}function t4(i){return kS(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function n4(i){const r=i.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");const o=new Uint8Array(r.length/2);for(let l=0;l<r.length;l+=2)o[l/2]=Number.parseInt(r.slice(l,l+2),16);return o}function i4(i){return Array.from(i).map(r=>r.toString(16).padStart(2,"0")).join("")}class r4{constructor(...r){}}const mm=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:mS,Class:r4,NUMBER_FORMAT_RANGES:fS,aborted:rr,allowsEval:cS,assert:Jw,assertEqual:qw,assertIs:Hw,assertNever:Bw,assertNotEqual:Lw,assignProp:Ii,base64ToUint8Array:$S,base64urlToUint8Array:e4,cached:jo,captureStackTrace:fm,cleanEnum:Ww,cleanRegex:vc,clone:un,cloneDef:Yw,createTransparentProxy:Fw,defineLazy:ke,esc:Wf,escapeRegex:ri,explicitlyAborted:SS,extend:gS,finalizeIssue:ln,floatSafeRemainder:lS,getElementAtPath:Xw,getEnumValues:dm,getLengthableOrigin:_c,getParsedType:Kw,getSizableOrigin:bc,hexToUint8Array:n4,isObject:ta,isPlainObject:or,issue:na,joinValues:B,jsonStringifyReplacer:ac,merge:yS,mergeDefs:Cn,normalizeParams:L,nullish:fr,numKeys:Qw,objectClone:Gw,omit:hS,optionalKeys:dS,parsedType:le,partial:bS,pick:pS,prefixIssues:Sn,primitiveTypes:sS,promiseAllObject:Vw,propertyKeyTypes:oc,randomString:Pw,required:_S,safeExtend:vS,shallowClone:yc,slugify:uS,stringifyPrimitive:ae,uint8ArrayToBase64:kS,uint8ArrayToBase64url:t4,uint8ArrayToHex:i4,unwrapMessage:wo},Symbol.toStringTag,{value:"Module"})),zS=(i,r)=>{i.name="$ZodError",Object.defineProperty(i,"_zod",{value:i._zod,enumerable:!1}),Object.defineProperty(i,"issues",{value:r,enumerable:!1}),i.message=JSON.stringify(r,ac,2),Object.defineProperty(i,"toString",{value:()=>i.message,enumerable:!1})},pm=T("$ZodError",zS),cn=T("$ZodError",zS,{Parent:Error});function Sc(i,r=o=>o.message){const o={},l=[];for(const n of i.issues)n.path.length>0?(o[n.path[0]]=o[n.path[0]]||[],o[n.path[0]].push(r(n))):l.push(r(n));return{formErrors:l,fieldErrors:o}}function $c(i,r=o=>o.message){const o={_errors:[]},l=(n,u=[])=>{for(const s of n.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(m=>l({issues:m},[...u,...s.path]));else if(s.code==="invalid_key")l({issues:s.issues},[...u,...s.path]);else if(s.code==="invalid_element")l({issues:s.issues},[...u,...s.path]);else{const m=[...u,...s.path];if(m.length===0)o._errors.push(r(s));else{let p=o,g=0;for(;g<m.length;){const v=m[g];g===m.length-1?(p[v]=p[v]||{_errors:[]},p[v]._errors.push(r(s))):p[v]=p[v]||{_errors:[]},p=p[v],g++}}}};return l(i),o}function hm(i,r=o=>o.message){const o={errors:[]},l=(n,u=[])=>{var s,m;for(const p of n.issues)if(p.code==="invalid_union"&&p.errors.length)p.errors.map(g=>l({issues:g},[...u,...p.path]));else if(p.code==="invalid_key")l({issues:p.issues},[...u,...p.path]);else if(p.code==="invalid_element")l({issues:p.issues},[...u,...p.path]);else{const g=[...u,...p.path];if(g.length===0){o.errors.push(r(p));continue}let v=o,b=0;for(;b<g.length;){const _=g[b],z=b===g.length-1;typeof _=="string"?(v.properties??(v.properties={}),(s=v.properties)[_]??(s[_]={errors:[]}),v=v.properties[_]):(v.items??(v.items=[]),(m=v.items)[_]??(m[_]={errors:[]}),v=v.items[_]),z&&v.errors.push(r(p)),b++}}};return l(i),o}function xS(i){const r=[],o=i.map(l=>typeof l=="object"?l.key:l);for(const l of o)typeof l=="number"?r.push(`[${l}]`):typeof l=="symbol"?r.push(`[${JSON.stringify(String(l))}]`):/[^\w$]/.test(l)?r.push(`[${JSON.stringify(l)}]`):(r.length&&r.push("."),r.push(l));return r.join("")}function gm(i){var l;const r=[],o=[...i.issues].sort((n,u)=>(n.path??[]).length-(u.path??[]).length);for(const n of o)r.push(`✖ ${n.message}`),(l=n.path)!=null&&l.length&&r.push(` → at ${xS(n.path)}`);return r.join(`
56
- `)}const No=i=>(r,o,l,n)=>{const u=l?{...l,async:!1}:{async:!1},s=r._zod.run({value:o,issues:[]},u);if(s instanceof Promise)throw new ar;if(s.issues.length){const m=new((n==null?void 0:n.Err)??i)(s.issues.map(p=>ln(p,u,vt())));throw fm(m,n==null?void 0:n.callee),m}return s.value},em=No(cn),Ao=i=>async(r,o,l,n)=>{const u=l?{...l,async:!0}:{async:!0};let s=r._zod.run({value:o,issues:[]},u);if(s instanceof Promise&&(s=await s),s.issues.length){const m=new((n==null?void 0:n.Err)??i)(s.issues.map(p=>ln(p,u,vt())));throw fm(m,n==null?void 0:n.callee),m}return s.value},tm=Ao(cn),Io=i=>(r,o,l)=>{const n=l?{...l,async:!1}:{async:!1},u=r._zod.run({value:o,issues:[]},n);if(u instanceof Promise)throw new ar;return u.issues.length?{success:!1,error:new(i??pm)(u.issues.map(s=>ln(s,n,vt())))}:{success:!0,data:u.value}},vm=Io(cn),Ro=i=>async(r,o,l)=>{const n=l?{...l,async:!0}:{async:!0};let u=r._zod.run({value:o,issues:[]},n);return u instanceof Promise&&(u=await u),u.issues.length?{success:!1,error:new i(u.issues.map(s=>ln(s,n,vt())))}:{success:!0,data:u.value}},wS=Ro(cn),ym=i=>(r,o,l)=>{const n=l?{...l,direction:"backward"}:{direction:"backward"};return No(i)(r,o,n)},a4=ym(cn),bm=i=>(r,o,l)=>No(i)(r,o,l),o4=bm(cn),_m=i=>async(r,o,l)=>{const n=l?{...l,direction:"backward"}:{direction:"backward"};return Ao(i)(r,o,n)},l4=_m(cn),Sm=i=>async(r,o,l)=>Ao(i)(r,o,l),u4=Sm(cn),$m=i=>(r,o,l)=>{const n=l?{...l,direction:"backward"}:{direction:"backward"};return Io(i)(r,o,n)},c4=$m(cn),km=i=>(r,o,l)=>Io(i)(r,o,l),s4=km(cn),zm=i=>async(r,o,l)=>{const n=l?{...l,direction:"backward"}:{direction:"backward"};return Ro(i)(r,o,n)},d4=zm(cn),xm=i=>async(r,o,l)=>Ro(i)(r,o,l),f4=xm(cn),TS=/^[cC][0-9a-z]{6,}$/,ES=/^[0-9a-z]+$/,OS=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,US=/^[0-9a-vA-V]{20}$/,DS=/^[A-Za-z0-9]{27}$/,jS=/^[a-zA-Z0-9_-]{21}$/,NS=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,m4=/^[-+]?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)?)??$/,AS=/^([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})$/,ia=i=>i?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${i}[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)$/,p4=ia(4),h4=ia(6),g4=ia(7),IS=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,v4=/^[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])?)*$/,y4=/^(([^<>()\[\]\\.,;:\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,}))$/,RS=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,b4=RS,_4=/^[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])?)*$/,S4="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function CS(){return new RegExp(S4,"u")}const MS=/^(?:(?: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])$/,ZS=/^(([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}|:))$/,qS=i=>{const r=ri(i??":");return new RegExp(`^(?:[0-9A-F]{2}${r}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${r}){5}[0-9a-f]{2}$`)},LS=/^((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])$/,HS=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,BS=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,wm=/^[A-Za-z0-9_-]*$/,JS=/^(?=.{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])?)*\.?$/,GS=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Tm=/^https?$/,YS=/^\+[1-9]\d{6,14}$/,XS="(?:(?:\\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])))",VS=new RegExp(`^${XS}$`);function PS(i){const r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof i.precision=="number"?i.precision===-1?`${r}`:i.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${i.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function QS(i){return new RegExp(`^${PS(i)}$`)}function KS(i){const r=PS({precision:i.precision}),o=["Z"];i.local&&o.push(""),i.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const l=`${r}(?:${o.join("|")})`;return new RegExp(`^${XS}T(?:${l})$`)}const FS=i=>{const r=i?`[\\s\\S]{${(i==null?void 0:i.minimum)??0},${(i==null?void 0:i.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},WS=/^-?\d+n?$/,e$=/^-?\d+$/,Em=/^-?\d+(?:\.\d+)?$/,t$=/^(?:true|false)$/i,n$=/^null$/i,i$=/^undefined$/i,r$=/^[^A-Z]*$/,a$=/^[^a-z]*$/,o$=/^[0-9a-fA-F]*$/;function Co(i,r){return new RegExp(`^[A-Za-z0-9+/]{${i}}${r}$`)}function Mo(i){return new RegExp(`^[A-Za-z0-9_-]{${i}}$`)}const $4=/^[0-9a-fA-F]{32}$/,k4=Co(22,"=="),z4=Mo(22),x4=/^[0-9a-fA-F]{40}$/,w4=Co(27,"="),T4=Mo(27),E4=/^[0-9a-fA-F]{64}$/,O4=Co(43,"="),U4=Mo(43),D4=/^[0-9a-fA-F]{96}$/,j4=Co(64,""),N4=Mo(64),A4=/^[0-9a-fA-F]{128}$/,I4=Co(86,"=="),R4=Mo(86),kc=Object.freeze(Object.defineProperty({__proto__:null,base64:BS,base64url:wm,bigint:WS,boolean:t$,browserEmail:_4,cidrv4:LS,cidrv6:HS,cuid:TS,cuid2:ES,date:VS,datetime:KS,domain:GS,duration:NS,e164:YS,email:IS,emoji:CS,extendedDuration:m4,guid:AS,hex:o$,hostname:JS,html5Email:v4,httpProtocol:Tm,idnEmail:b4,integer:e$,ipv4:MS,ipv6:ZS,ksuid:DS,lowercase:r$,mac:qS,md5_base64:k4,md5_base64url:z4,md5_hex:$4,nanoid:jS,null:n$,number:Em,rfc5322Email:y4,sha1_base64:w4,sha1_base64url:T4,sha1_hex:x4,sha256_base64:O4,sha256_base64url:U4,sha256_hex:E4,sha384_base64:j4,sha384_base64url:N4,sha384_hex:D4,sha512_base64:I4,sha512_base64url:R4,sha512_hex:A4,string:FS,time:QS,ulid:OS,undefined:i$,unicodeEmail:RS,uppercase:a$,uuid:ia,uuid4:p4,uuid6:h4,uuid7:g4,xid:US},Symbol.toStringTag,{value:"Module"})),it=T("$ZodCheck",(i,r)=>{var o;i._zod??(i._zod={}),i._zod.def=r,(o=i._zod).onattach??(o.onattach=[])}),l$={number:"number",bigint:"bigint",object:"date"},Om=T("$ZodCheckLessThan",(i,r)=>{it.init(i,r);const o=l$[typeof r.value];i._zod.onattach.push(l=>{const n=l._zod.bag,u=(r.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<u&&(r.inclusive?n.maximum=r.value:n.exclusiveMaximum=r.value)}),i._zod.check=l=>{(r.inclusive?l.value<=r.value:l.value<r.value)||l.issues.push({origin:o,code:"too_big",maximum:typeof r.value=="object"?r.value.getTime():r.value,input:l.value,inclusive:r.inclusive,inst:i,continue:!r.abort})}}),Um=T("$ZodCheckGreaterThan",(i,r)=>{it.init(i,r);const o=l$[typeof r.value];i._zod.onattach.push(l=>{const n=l._zod.bag,u=(r.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>u&&(r.inclusive?n.minimum=r.value:n.exclusiveMinimum=r.value)}),i._zod.check=l=>{(r.inclusive?l.value>=r.value:l.value>r.value)||l.issues.push({origin:o,code:"too_small",minimum:typeof r.value=="object"?r.value.getTime():r.value,input:l.value,inclusive:r.inclusive,inst:i,continue:!r.abort})}}),u$=T("$ZodCheckMultipleOf",(i,r)=>{it.init(i,r),i._zod.onattach.push(o=>{var l;(l=o._zod.bag).multipleOf??(l.multipleOf=r.value)}),i._zod.check=o=>{if(typeof o.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof o.value=="bigint"?o.value%r.value===BigInt(0):lS(o.value,r.value)===0)||o.issues.push({origin:typeof o.value,code:"not_multiple_of",divisor:r.value,input:o.value,inst:i,continue:!r.abort})}}),c$=T("$ZodCheckNumberFormat",(i,r)=>{var s;it.init(i,r),r.format=r.format||"float64";const o=(s=r.format)==null?void 0:s.includes("int"),l=o?"int":"number",[n,u]=fS[r.format];i._zod.onattach.push(m=>{const p=m._zod.bag;p.format=r.format,p.minimum=n,p.maximum=u,o&&(p.pattern=e$)}),i._zod.check=m=>{const p=m.value;if(o){if(!Number.isInteger(p)){m.issues.push({expected:l,format:r.format,code:"invalid_type",continue:!1,input:p,inst:i});return}if(!Number.isSafeInteger(p)){p>0?m.issues.push({input:p,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:i,origin:l,inclusive:!0,continue:!r.abort}):m.issues.push({input:p,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:i,origin:l,inclusive:!0,continue:!r.abort});return}}p<n&&m.issues.push({origin:"number",input:p,code:"too_small",minimum:n,inclusive:!0,inst:i,continue:!r.abort}),p>u&&m.issues.push({origin:"number",input:p,code:"too_big",maximum:u,inclusive:!0,inst:i,continue:!r.abort})}}),s$=T("$ZodCheckBigIntFormat",(i,r)=>{it.init(i,r);const[o,l]=mS[r.format];i._zod.onattach.push(n=>{const u=n._zod.bag;u.format=r.format,u.minimum=o,u.maximum=l}),i._zod.check=n=>{const u=n.value;u<o&&n.issues.push({origin:"bigint",input:u,code:"too_small",minimum:o,inclusive:!0,inst:i,continue:!r.abort}),u>l&&n.issues.push({origin:"bigint",input:u,code:"too_big",maximum:l,inclusive:!0,inst:i,continue:!r.abort})}}),d$=T("$ZodCheckMaxSize",(i,r)=>{var o;it.init(i,r),(o=i._zod.def).when??(o.when=l=>{const n=l.value;return!fr(n)&&n.size!==void 0}),i._zod.onattach.push(l=>{const n=l._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<n&&(l._zod.bag.maximum=r.maximum)}),i._zod.check=l=>{const n=l.value;n.size<=r.maximum||l.issues.push({origin:bc(n),code:"too_big",maximum:r.maximum,inclusive:!0,input:n,inst:i,continue:!r.abort})}}),f$=T("$ZodCheckMinSize",(i,r)=>{var o;it.init(i,r),(o=i._zod.def).when??(o.when=l=>{const n=l.value;return!fr(n)&&n.size!==void 0}),i._zod.onattach.push(l=>{const n=l._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>n&&(l._zod.bag.minimum=r.minimum)}),i._zod.check=l=>{const n=l.value;n.size>=r.minimum||l.issues.push({origin:bc(n),code:"too_small",minimum:r.minimum,inclusive:!0,input:n,inst:i,continue:!r.abort})}}),m$=T("$ZodCheckSizeEquals",(i,r)=>{var o;it.init(i,r),(o=i._zod.def).when??(o.when=l=>{const n=l.value;return!fr(n)&&n.size!==void 0}),i._zod.onattach.push(l=>{const n=l._zod.bag;n.minimum=r.size,n.maximum=r.size,n.size=r.size}),i._zod.check=l=>{const n=l.value,u=n.size;if(u===r.size)return;const s=u>r.size;l.issues.push({origin:bc(n),...s?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:l.value,inst:i,continue:!r.abort})}}),p$=T("$ZodCheckMaxLength",(i,r)=>{var o;it.init(i,r),(o=i._zod.def).when??(o.when=l=>{const n=l.value;return!fr(n)&&n.length!==void 0}),i._zod.onattach.push(l=>{const n=l._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<n&&(l._zod.bag.maximum=r.maximum)}),i._zod.check=l=>{const n=l.value;if(n.length<=r.maximum)return;const s=_c(n);l.issues.push({origin:s,code:"too_big",maximum:r.maximum,inclusive:!0,input:n,inst:i,continue:!r.abort})}}),h$=T("$ZodCheckMinLength",(i,r)=>{var o;it.init(i,r),(o=i._zod.def).when??(o.when=l=>{const n=l.value;return!fr(n)&&n.length!==void 0}),i._zod.onattach.push(l=>{const n=l._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>n&&(l._zod.bag.minimum=r.minimum)}),i._zod.check=l=>{const n=l.value;if(n.length>=r.minimum)return;const s=_c(n);l.issues.push({origin:s,code:"too_small",minimum:r.minimum,inclusive:!0,input:n,inst:i,continue:!r.abort})}}),g$=T("$ZodCheckLengthEquals",(i,r)=>{var o;it.init(i,r),(o=i._zod.def).when??(o.when=l=>{const n=l.value;return!fr(n)&&n.length!==void 0}),i._zod.onattach.push(l=>{const n=l._zod.bag;n.minimum=r.length,n.maximum=r.length,n.length=r.length}),i._zod.check=l=>{const n=l.value,u=n.length;if(u===r.length)return;const s=_c(n),m=u>r.length;l.issues.push({origin:s,...m?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:l.value,inst:i,continue:!r.abort})}}),Zo=T("$ZodCheckStringFormat",(i,r)=>{var o,l;it.init(i,r),i._zod.onattach.push(n=>{const u=n._zod.bag;u.format=r.format,r.pattern&&(u.patterns??(u.patterns=new Set),u.patterns.add(r.pattern))}),r.pattern?(o=i._zod).check??(o.check=n=>{r.pattern.lastIndex=0,!r.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:r.format,input:n.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:i,continue:!r.abort})}):(l=i._zod).check??(l.check=()=>{})}),v$=T("$ZodCheckRegex",(i,r)=>{Zo.init(i,r),i._zod.check=o=>{r.pattern.lastIndex=0,!r.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:r.pattern.toString(),inst:i,continue:!r.abort})}}),y$=T("$ZodCheckLowerCase",(i,r)=>{r.pattern??(r.pattern=r$),Zo.init(i,r)}),b$=T("$ZodCheckUpperCase",(i,r)=>{r.pattern??(r.pattern=a$),Zo.init(i,r)}),_$=T("$ZodCheckIncludes",(i,r)=>{it.init(i,r);const o=ri(r.includes),l=new RegExp(typeof r.position=="number"?`^.{${r.position}}${o}`:o);r.pattern=l,i._zod.onattach.push(n=>{const u=n._zod.bag;u.patterns??(u.patterns=new Set),u.patterns.add(l)}),i._zod.check=n=>{n.value.includes(r.includes,r.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:n.value,inst:i,continue:!r.abort})}}),S$=T("$ZodCheckStartsWith",(i,r)=>{it.init(i,r);const o=new RegExp(`^${ri(r.prefix)}.*`);r.pattern??(r.pattern=o),i._zod.onattach.push(l=>{const n=l._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(o)}),i._zod.check=l=>{l.value.startsWith(r.prefix)||l.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:l.value,inst:i,continue:!r.abort})}}),$$=T("$ZodCheckEndsWith",(i,r)=>{it.init(i,r);const o=new RegExp(`.*${ri(r.suffix)}$`);r.pattern??(r.pattern=o),i._zod.onattach.push(l=>{const n=l._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(o)}),i._zod.check=l=>{l.value.endsWith(r.suffix)||l.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:l.value,inst:i,continue:!r.abort})}});function $_(i,r,o){i.issues.length&&r.issues.push(...Sn(o,i.issues))}const k$=T("$ZodCheckProperty",(i,r)=>{it.init(i,r),i._zod.check=o=>{const l=r.schema._zod.run({value:o.value[r.property],issues:[]},{});if(l instanceof Promise)return l.then(n=>$_(n,o,r.property));$_(l,o,r.property)}}),z$=T("$ZodCheckMimeType",(i,r)=>{it.init(i,r);const o=new Set(r.mime);i._zod.onattach.push(l=>{l._zod.bag.mime=r.mime}),i._zod.check=l=>{o.has(l.value.type)||l.issues.push({code:"invalid_value",values:r.mime,input:l.value.type,inst:i,continue:!r.abort})}}),x$=T("$ZodCheckOverwrite",(i,r)=>{it.init(i,r),i._zod.check=o=>{o.value=r.tx(o.value)}});class w${constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}const l=r.split(`
54
+ `+c.stack}}var js=Object.prototype.hasOwnProperty,Ns=i.unstable_scheduleCallback,As=i.unstable_cancelCallback,az=i.unstable_shouldYield,oz=i.unstable_requestPaint,Ft=i.unstable_now,lz=i.unstable_getCurrentPriorityLevel,dg=i.unstable_ImmediatePriority,fg=i.unstable_UserBlockingPriority,Zl=i.unstable_NormalPriority,uz=i.unstable_LowPriority,mg=i.unstable_IdlePriority,cz=i.log,sz=i.unstable_setDisableYieldValue,Da=null,Wt=null;function si(e){if(typeof cz=="function"&&sz(e),Wt&&typeof Wt.setStrictMode=="function")try{Wt.setStrictMode(Da,e)}catch{}}var en=Math.clz32?Math.clz32:mz,dz=Math.log,fz=Math.LN2;function mz(e){return e>>>=0,e===0?32:31-(dz(e)/fz|0)|0}var ql=256,Ll=262144,Hl=4194304;function qi(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Bl(e,t,a){var c=e.pendingLanes;if(c===0)return 0;var d=0,f=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var y=c&134217727;return y!==0?(c=y&~f,c!==0?d=qi(c):(h&=y,h!==0?d=qi(h):a||(a=y&~e,a!==0&&(d=qi(a))))):(y=c&~f,y!==0?d=qi(y):h!==0?d=qi(h):a||(a=c&~e,a!==0&&(d=qi(a)))),d===0?0:t!==0&&t!==d&&(t&f)===0&&(f=d&-d,a=t&-t,f>=a||f===32&&(a&4194048)!==0)?t:d}function ja(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function pz(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function pg(){var e=Hl;return Hl<<=1,(Hl&62914560)===0&&(Hl=4194304),e}function Is(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Na(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function hz(e,t,a,c,d,f){var h=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var y=e.entanglements,S=e.expirationTimes,D=e.hiddenUpdates;for(a=h&~a;0<a;){var I=31-en(a),q=1<<I;y[I]=0,S[I]=-1;var j=D[I];if(j!==null)for(D[I]=null,I=0;I<j.length;I++){var A=j[I];A!==null&&(A.lane&=-536870913)}a&=~q}c!==0&&hg(e,c,0),f!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=f&~(h&~t))}function hg(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var c=31-en(t);e.entangledLanes|=t,e.entanglements[c]=e.entanglements[c]|1073741824|a&261930}function gg(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var c=31-en(a),d=1<<c;d&t|e[c]&t&&(e[c]|=t),a&=~d}}function vg(e,t){var a=t&-t;return a=(a&42)!==0?1:Rs(a),(a&(e.suspendedLanes|t))!==0?0:a}function Rs(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Cs(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function yg(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:i_(e.type))}function bg(e,t){var a=Y.p;try{return Y.p=e,t()}finally{Y.p=a}}var di=Math.random().toString(36).slice(2),zt="__reactFiber$"+di,Lt="__reactProps$"+di,br="__reactContainer$"+di,Ms="__reactEvents$"+di,gz="__reactListeners$"+di,vz="__reactHandles$"+di,_g="__reactResources$"+di,Aa="__reactMarker$"+di;function Zs(e){delete e[zt],delete e[Lt],delete e[Ms],delete e[gz],delete e[vz]}function _r(e){var t=e[zt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[br]||a[zt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Lb(e);e!==null;){if(a=e[zt])return a;e=Lb(e)}return t}e=a,a=e.parentNode}return null}function Sr(e){if(e=e[zt]||e[br]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ia(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function $r(e){var t=e[_g];return t||(t=e[_g]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function St(e){e[Aa]=!0}var Sg=new Set,$g={};function Li(e,t){kr(e,t),kr(e+"Capture",t)}function kr(e,t){for($g[e]=t,e=0;e<t.length;e++)Sg.add(t[e])}var yz=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),kg={},zg={};function bz(e){return js.call(zg,e)?!0:js.call(kg,e)?!1:yz.test(e)?zg[e]=!0:(kg[e]=!0,!1)}function Jl(e,t,a){if(bz(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var c=t.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Gl(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Hn(e,t,a,c){if(c===null)e.removeAttribute(a);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+c)}}function hn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _z(e,t,a){var c=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var d=c.get,f=c.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return d.call(this)},set:function(h){a=""+h,f.call(this,h)}}),Object.defineProperty(e,t,{enumerable:c.enumerable}),{getValue:function(){return a},setValue:function(h){a=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qs(e){if(!e._valueTracker){var t=xg(e)?"checked":"value";e._valueTracker=_z(e,t,""+e[t])}}function wg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),c="";return e&&(c=xg(e)?e.checked?"true":"false":e.value),e=c,e!==a?(t.setValue(e),!0):!1}function Yl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Sz=/[\n"\\]/g;function gn(e){return e.replace(Sz,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ls(e,t,a,c,d,f,h,y){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+hn(t)):e.value!==""+hn(t)&&(e.value=""+hn(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Hs(e,h,hn(t)):a!=null?Hs(e,h,hn(a)):c!=null&&e.removeAttribute("value"),d==null&&f!=null&&(e.defaultChecked=!!f),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+hn(y):e.removeAttribute("name")}function Tg(e,t,a,c,d,f,h,y){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){qs(e);return}a=a!=null?""+hn(a):"",t=t!=null?""+hn(t):a,y||t===e.value||(e.value=t),e.defaultValue=t}c=c??d,c=typeof c!="function"&&typeof c!="symbol"&&!!c,e.checked=y?e.checked:!!c,e.defaultChecked=!!c,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),qs(e)}function Hs(e,t,a){t==="number"&&Yl(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function zr(e,t,a,c){if(e=e.options,t){t={};for(var d=0;d<a.length;d++)t["$"+a[d]]=!0;for(a=0;a<e.length;a++)d=t.hasOwnProperty("$"+e[a].value),e[a].selected!==d&&(e[a].selected=d),d&&c&&(e[a].defaultSelected=!0)}else{for(a=""+hn(a),t=null,d=0;d<e.length;d++){if(e[d].value===a){e[d].selected=!0,c&&(e[d].defaultSelected=!0);return}t!==null||e[d].disabled||(t=e[d])}t!==null&&(t.selected=!0)}}function Eg(e,t,a){if(t!=null&&(t=""+hn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+hn(a):""}function Og(e,t,a,c){if(t==null){if(c!=null){if(a!=null)throw Error(l(92));if(Kt(c)){if(1<c.length)throw Error(l(93));c=c[0]}a=c}a==null&&(a=""),t=a}a=hn(t),e.defaultValue=a,c=e.textContent,c===a&&c!==""&&c!==null&&(e.value=c),qs(e)}function xr(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var $z=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Ug(e,t,a){var c=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?c?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":c?e.setProperty(t,a):typeof a!="number"||a===0||$z.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Dg(e,t,a){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,a!=null){for(var c in a)!a.hasOwnProperty(c)||t!=null&&t.hasOwnProperty(c)||(c.indexOf("--")===0?e.setProperty(c,""):c==="float"?e.cssFloat="":e[c]="");for(var d in t)c=t[d],t.hasOwnProperty(d)&&a[d]!==c&&Ug(e,d,c)}else for(var f in t)t.hasOwnProperty(f)&&Ug(e,f,t[f])}function Bs(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var kz=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),zz=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Xl(e){return zz.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Bn(){}var Js=null;function Gs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wr=null,Tr=null;function jg(e){var t=Sr(e);if(t&&(e=t.stateNode)){var a=e[Lt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ls(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+gn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var c=a[t];if(c!==e&&c.form===e.form){var d=c[Lt]||null;if(!d)throw Error(l(90));Ls(c,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(t=0;t<a.length;t++)c=a[t],c.form===e.form&&wg(c)}break e;case"textarea":Eg(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&zr(e,!!a.multiple,t,!1)}}}var Ys=!1;function Ng(e,t,a){if(Ys)return e(t,a);Ys=!0;try{var c=e(t);return c}finally{if(Ys=!1,(wr!==null||Tr!==null)&&(Au(),wr&&(t=wr,e=Tr,Tr=wr=null,jg(t),e)))for(t=0;t<e.length;t++)jg(e[t])}}function Ra(e,t){var a=e.stateNode;if(a===null)return null;var c=a[Lt]||null;if(c===null)return null;a=c[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(e=e.type,c=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!c;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(l(231,t,typeof a));return a}var Jn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xs=!1;if(Jn)try{var Ca={};Object.defineProperty(Ca,"passive",{get:function(){Xs=!0}}),window.addEventListener("test",Ca,Ca),window.removeEventListener("test",Ca,Ca)}catch{Xs=!1}var fi=null,Vs=null,Vl=null;function Ag(){if(Vl)return Vl;var e,t=Vs,a=t.length,c,d="value"in fi?fi.value:fi.textContent,f=d.length;for(e=0;e<a&&t[e]===d[e];e++);var h=a-e;for(c=1;c<=h&&t[a-c]===d[f-c];c++);return Vl=d.slice(e,1<c?1-c:void 0)}function Pl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ql(){return!0}function Ig(){return!1}function Ht(e){function t(a,c,d,f,h){this._reactName=a,this._targetInst=d,this.type=c,this.nativeEvent=f,this.target=h,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(a=e[y],this[y]=a?a(f):f[y]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Ql:Ig,this.isPropagationStopped=Ig,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ql)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ql)},persist:function(){},isPersistent:Ql}),t}var Hi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kl=Ht(Hi),Ma=b({},Hi,{view:0,detail:0}),xz=Ht(Ma),Ps,Qs,Za,Fl=b({},Ma,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fs,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Za&&(Za&&e.type==="mousemove"?(Ps=e.screenX-Za.screenX,Qs=e.screenY-Za.screenY):Qs=Ps=0,Za=e),Ps)},movementY:function(e){return"movementY"in e?e.movementY:Qs}}),Rg=Ht(Fl),wz=b({},Fl,{dataTransfer:0}),Tz=Ht(wz),Ez=b({},Ma,{relatedTarget:0}),Ks=Ht(Ez),Oz=b({},Hi,{animationName:0,elapsedTime:0,pseudoElement:0}),Uz=Ht(Oz),Dz=b({},Hi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jz=Ht(Dz),Nz=b({},Hi,{data:0}),Cg=Ht(Nz),Az={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Iz={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Rz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cz(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Rz[e])?!!t[e]:!1}function Fs(){return Cz}var Mz=b({},Ma,{key:function(e){if(e.key){var t=Az[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Pl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Iz[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fs,charCode:function(e){return e.type==="keypress"?Pl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Zz=Ht(Mz),qz=b({},Fl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Mg=Ht(qz),Lz=b({},Ma,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fs}),Hz=Ht(Lz),Bz=b({},Hi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jz=Ht(Bz),Gz=b({},Fl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Yz=Ht(Gz),Xz=b({},Hi,{newState:0,oldState:0}),Vz=Ht(Xz),Pz=[9,13,27,32],Ws=Jn&&"CompositionEvent"in window,qa=null;Jn&&"documentMode"in document&&(qa=document.documentMode);var Qz=Jn&&"TextEvent"in window&&!qa,Zg=Jn&&(!Ws||qa&&8<qa&&11>=qa),qg=" ",Lg=!1;function Hg(e,t){switch(e){case"keyup":return Pz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Er=!1;function Kz(e,t){switch(e){case"compositionend":return Bg(t);case"keypress":return t.which!==32?null:(Lg=!0,qg);case"textInput":return e=t.data,e===qg&&Lg?null:e;default:return null}}function Fz(e,t){if(Er)return e==="compositionend"||!Ws&&Hg(e,t)?(e=Ag(),Vl=Vs=fi=null,Er=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Zg&&t.locale!=="ko"?null:t.data;default:return null}}var Wz={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Jg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Wz[e.type]:t==="textarea"}function Gg(e,t,a,c){wr?Tr?Tr.push(c):Tr=[c]:wr=c,t=Lu(t,"onChange"),0<t.length&&(a=new Kl("onChange","change",null,a,c),e.push({event:a,listeners:t}))}var La=null,Ha=null;function ex(e){Tb(e,0)}function Wl(e){var t=Ia(e);if(wg(t))return e}function Yg(e,t){if(e==="change")return t}var Xg=!1;if(Jn){var ed;if(Jn){var td="oninput"in document;if(!td){var Vg=document.createElement("div");Vg.setAttribute("oninput","return;"),td=typeof Vg.oninput=="function"}ed=td}else ed=!1;Xg=ed&&(!document.documentMode||9<document.documentMode)}function Pg(){La&&(La.detachEvent("onpropertychange",Qg),Ha=La=null)}function Qg(e){if(e.propertyName==="value"&&Wl(Ha)){var t=[];Gg(t,Ha,e,Gs(e)),Ng(ex,t)}}function tx(e,t,a){e==="focusin"?(Pg(),La=t,Ha=a,La.attachEvent("onpropertychange",Qg)):e==="focusout"&&Pg()}function nx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wl(Ha)}function ix(e,t){if(e==="click")return Wl(t)}function rx(e,t){if(e==="input"||e==="change")return Wl(t)}function ax(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tn=typeof Object.is=="function"?Object.is:ax;function Ba(e,t){if(tn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),c=Object.keys(t);if(a.length!==c.length)return!1;for(c=0;c<a.length;c++){var d=a[c];if(!js.call(t,d)||!tn(e[d],t[d]))return!1}return!0}function Kg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fg(e,t){var a=Kg(e);e=0;for(var c;a;){if(a.nodeType===3){if(c=e+a.textContent.length,e<=t&&c>=t)return{node:a,offset:t-e};e=c}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Kg(a)}}function Wg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ev(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Yl(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Yl(e.document)}return t}function nd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var ox=Jn&&"documentMode"in document&&11>=document.documentMode,Or=null,id=null,Ja=null,rd=!1;function tv(e,t,a){var c=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;rd||Or==null||Or!==Yl(c)||(c=Or,"selectionStart"in c&&nd(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Ja&&Ba(Ja,c)||(Ja=c,c=Lu(id,"onSelect"),0<c.length&&(t=new Kl("onSelect","select",null,t,a),e.push({event:t,listeners:c}),t.target=Or)))}function Bi(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Ur={animationend:Bi("Animation","AnimationEnd"),animationiteration:Bi("Animation","AnimationIteration"),animationstart:Bi("Animation","AnimationStart"),transitionrun:Bi("Transition","TransitionRun"),transitionstart:Bi("Transition","TransitionStart"),transitioncancel:Bi("Transition","TransitionCancel"),transitionend:Bi("Transition","TransitionEnd")},ad={},nv={};Jn&&(nv=document.createElement("div").style,"AnimationEvent"in window||(delete Ur.animationend.animation,delete Ur.animationiteration.animation,delete Ur.animationstart.animation),"TransitionEvent"in window||delete Ur.transitionend.transition);function Ji(e){if(ad[e])return ad[e];if(!Ur[e])return e;var t=Ur[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in nv)return ad[e]=t[a];return e}var iv=Ji("animationend"),rv=Ji("animationiteration"),av=Ji("animationstart"),lx=Ji("transitionrun"),ux=Ji("transitionstart"),cx=Ji("transitioncancel"),ov=Ji("transitionend"),lv=new Map,od="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");od.push("scrollEnd");function On(e,t){lv.set(e,t),Li(t,[e])}var eu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},vn=[],Dr=0,ld=0;function tu(){for(var e=Dr,t=ld=Dr=0;t<e;){var a=vn[t];vn[t++]=null;var c=vn[t];vn[t++]=null;var d=vn[t];vn[t++]=null;var f=vn[t];if(vn[t++]=null,c!==null&&d!==null){var h=c.pending;h===null?d.next=d:(d.next=h.next,h.next=d),c.pending=d}f!==0&&uv(a,d,f)}}function nu(e,t,a,c){vn[Dr++]=e,vn[Dr++]=t,vn[Dr++]=a,vn[Dr++]=c,ld|=c,e.lanes|=c,e=e.alternate,e!==null&&(e.lanes|=c)}function ud(e,t,a,c){return nu(e,t,a,c),iu(e)}function Gi(e,t){return nu(e,null,null,t),iu(e)}function uv(e,t,a){e.lanes|=a;var c=e.alternate;c!==null&&(c.lanes|=a);for(var d=!1,f=e.return;f!==null;)f.childLanes|=a,c=f.alternate,c!==null&&(c.childLanes|=a),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(d=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,d&&t!==null&&(d=31-en(a),e=f.hiddenUpdates,c=e[d],c===null?e[d]=[t]:c.push(t),t.lane=a|536870912),f):null}function iu(e){if(50<mo)throw mo=0,yf=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var jr={};function sx(e,t,a,c){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(e,t,a,c){return new sx(e,t,a,c)}function cd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gn(e,t){var a=e.alternate;return a===null?(a=nn(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function cv(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ru(e,t,a,c,d,f){var h=0;if(c=e,typeof e=="function")cd(e)&&(h=1);else if(typeof e=="string")h=hw(e,a,Q.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Qe:return e=nn(31,a,t,d),e.elementType=Qe,e.lanes=f,e;case H:return Yi(a.children,d,f,t);case J:h=8,d|=24;break;case F:return e=nn(12,a,t,d|2),e.elementType=F,e.lanes=f,e;case we:return e=nn(13,a,t,d),e.elementType=we,e.lanes=f,e;case re:return e=nn(19,a,t,d),e.elementType=re,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ge:h=10;break e;case se:h=9;break e;case be:h=11;break e;case G:h=14;break e;case ve:h=16,c=null;break e}h=29,a=Error(l(130,e===null?"null":typeof e,"")),c=null}return t=nn(h,a,t,d),t.elementType=e,t.type=c,t.lanes=f,t}function Yi(e,t,a,c){return e=nn(7,e,c,t),e.lanes=a,e}function sd(e,t,a){return e=nn(6,e,null,t),e.lanes=a,e}function sv(e){var t=nn(18,null,null,0);return t.stateNode=e,t}function dd(e,t,a){return t=nn(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var dv=new WeakMap;function yn(e,t){if(typeof e=="object"&&e!==null){var a=dv.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Ml(t)},dv.set(e,t),t)}return{value:e,source:t,stack:Ml(t)}}var Nr=[],Ar=0,au=null,Ga=0,bn=[],_n=0,mi=null,In=1,Rn="";function Yn(e,t){Nr[Ar++]=Ga,Nr[Ar++]=au,au=e,Ga=t}function fv(e,t,a){bn[_n++]=In,bn[_n++]=Rn,bn[_n++]=mi,mi=e;var c=In;e=Rn;var d=32-en(c)-1;c&=~(1<<d),a+=1;var f=32-en(t)+d;if(30<f){var h=d-d%5;f=(c&(1<<h)-1).toString(32),c>>=h,d-=h,In=1<<32-en(t)+d|a<<d|c,Rn=f+e}else In=1<<f|a<<d|c,Rn=e}function fd(e){e.return!==null&&(Yn(e,1),fv(e,1,0))}function md(e){for(;e===au;)au=Nr[--Ar],Nr[Ar]=null,Ga=Nr[--Ar],Nr[Ar]=null;for(;e===mi;)mi=bn[--_n],bn[_n]=null,Rn=bn[--_n],bn[_n]=null,In=bn[--_n],bn[_n]=null}function mv(e,t){bn[_n++]=In,bn[_n++]=Rn,bn[_n++]=mi,In=t.id,Rn=t.overflow,mi=e}var xt=null,tt=null,Oe=!1,pi=null,Sn=!1,pd=Error(l(519));function hi(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ya(yn(t,e)),pd}function pv(e){var t=e.stateNode,a=e.type,c=e.memoizedProps;switch(t[zt]=e,t[Lt]=c,a){case"dialog":xe("cancel",t),xe("close",t);break;case"iframe":case"object":case"embed":xe("load",t);break;case"video":case"audio":for(a=0;a<ho.length;a++)xe(ho[a],t);break;case"source":xe("error",t);break;case"img":case"image":case"link":xe("error",t),xe("load",t);break;case"details":xe("toggle",t);break;case"input":xe("invalid",t),Tg(t,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":xe("invalid",t);break;case"textarea":xe("invalid",t),Og(t,c.value,c.defaultValue,c.children)}a=c.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||c.suppressHydrationWarning===!0||Db(t.textContent,a)?(c.popover!=null&&(xe("beforetoggle",t),xe("toggle",t)),c.onScroll!=null&&xe("scroll",t),c.onScrollEnd!=null&&xe("scrollend",t),c.onClick!=null&&(t.onclick=Bn),t=!0):t=!1,t||hi(e,!0)}function hv(e){for(xt=e.return;xt;)switch(xt.tag){case 5:case 31:case 13:Sn=!1;return;case 27:case 3:Sn=!0;return;default:xt=xt.return}}function Ir(e){if(e!==xt)return!1;if(!Oe)return hv(e),Oe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Nf(e.type,e.memoizedProps)),a=!a),a&&tt&&hi(e),hv(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));tt=qb(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));tt=qb(e)}else t===27?(t=tt,Oi(e.type)?(e=Mf,Mf=null,tt=e):tt=t):tt=xt?kn(e.stateNode.nextSibling):null;return!0}function Xi(){tt=xt=null,Oe=!1}function hd(){var e=pi;return e!==null&&(Yt===null?Yt=e:Yt.push.apply(Yt,e),pi=null),e}function Ya(e){pi===null?pi=[e]:pi.push(e)}var gd=k(null),Vi=null,Xn=null;function gi(e,t,a){X(gd,t._currentValue),t._currentValue=a}function Vn(e){e._currentValue=gd.current,M(gd)}function vd(e,t,a){for(;e!==null;){var c=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,c!==null&&(c.childLanes|=t)):c!==null&&(c.childLanes&t)!==t&&(c.childLanes|=t),e===a)break;e=e.return}}function yd(e,t,a,c){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var f=d.dependencies;if(f!==null){var h=d.child;f=f.firstContext;e:for(;f!==null;){var y=f;f=d;for(var S=0;S<t.length;S++)if(y.context===t[S]){f.lanes|=a,y=f.alternate,y!==null&&(y.lanes|=a),vd(f.return,a,e),c||(h=null);break e}f=y.next}}else if(d.tag===18){if(h=d.return,h===null)throw Error(l(341));h.lanes|=a,f=h.alternate,f!==null&&(f.lanes|=a),vd(h,a,e),h=null}else h=d.child;if(h!==null)h.return=d;else for(h=d;h!==null;){if(h===e){h=null;break}if(d=h.sibling,d!==null){d.return=h.return,h=d;break}h=h.return}d=h}}function Rr(e,t,a,c){e=null;for(var d=t,f=!1;d!==null;){if(!f){if((d.flags&524288)!==0)f=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var h=d.alternate;if(h===null)throw Error(l(387));if(h=h.memoizedProps,h!==null){var y=d.type;tn(d.pendingProps.value,h.value)||(e!==null?e.push(y):e=[y])}}else if(d===Ne.current){if(h=d.alternate,h===null)throw Error(l(387));h.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(_o):e=[_o])}d=d.return}e!==null&&yd(t,e,a,c),t.flags|=262144}function ou(e){for(e=e.firstContext;e!==null;){if(!tn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Pi(e){Vi=e,Xn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function wt(e){return gv(Vi,e)}function lu(e,t){return Vi===null&&Pi(e),gv(e,t)}function gv(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Xn===null){if(e===null)throw Error(l(308));Xn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Xn=Xn.next=t;return a}var dx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,c){e.push(c)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},fx=i.unstable_scheduleCallback,mx=i.unstable_NormalPriority,mt={$$typeof:ge,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function bd(){return{controller:new dx,data:new Map,refCount:0}}function Xa(e){e.refCount--,e.refCount===0&&fx(mx,function(){e.controller.abort()})}var Va=null,_d=0,Cr=0,Mr=null;function px(e,t){if(Va===null){var a=Va=[];_d=0,Cr=zf(),Mr={status:"pending",value:void 0,then:function(c){a.push(c)}}}return _d++,t.then(vv,vv),t}function vv(){if(--_d===0&&Va!==null){Mr!==null&&(Mr.status="fulfilled");var e=Va;Va=null,Cr=0,Mr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function hx(e,t){var a=[],c={status:"pending",value:null,reason:null,then:function(d){a.push(d)}};return e.then(function(){c.status="fulfilled",c.value=t;for(var d=0;d<a.length;d++)(0,a[d])(t)},function(d){for(c.status="rejected",c.reason=d,d=0;d<a.length;d++)(0,a[d])(void 0)}),c}var yv=C.S;C.S=function(e,t){tb=Ft(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&px(e,t),yv!==null&&yv(e,t)};var Qi=k(null);function Sd(){var e=Qi.current;return e!==null?e:Ke.pooledCache}function uu(e,t){t===null?X(Qi,Qi.current):X(Qi,t.pool)}function bv(){var e=Sd();return e===null?null:{parent:mt._currentValue,pool:e}}var Zr=Error(l(460)),$d=Error(l(474)),cu=Error(l(542)),su={then:function(){}};function _v(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Sv(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Bn,Bn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,kv(e),e;default:if(typeof t.status=="string")t.then(Bn,Bn);else{if(e=Ke,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(c){if(t.status==="pending"){var d=t;d.status="fulfilled",d.value=c}},function(c){if(t.status==="pending"){var d=t;d.status="rejected",d.reason=c}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,kv(e),e}throw Fi=t,Zr}}function Ki(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Fi=a,Zr):a}}var Fi=null;function $v(){if(Fi===null)throw Error(l(459));var e=Fi;return Fi=null,e}function kv(e){if(e===Zr||e===cu)throw Error(l(483))}var qr=null,Pa=0;function du(e){var t=Pa;return Pa+=1,qr===null&&(qr=[]),Sv(qr,e,t)}function Qa(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function fu(e,t){throw t.$$typeof===_?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function zv(e){function t(w,$){if(e){var U=w.deletions;U===null?(w.deletions=[$],w.flags|=16):U.push($)}}function a(w,$){if(!e)return null;for(;$!==null;)t(w,$),$=$.sibling;return null}function c(w){for(var $=new Map;w!==null;)w.key!==null?$.set(w.key,w):$.set(w.index,w),w=w.sibling;return $}function d(w,$){return w=Gn(w,$),w.index=0,w.sibling=null,w}function f(w,$,U){return w.index=U,e?(U=w.alternate,U!==null?(U=U.index,U<$?(w.flags|=67108866,$):U):(w.flags|=67108866,$)):(w.flags|=1048576,$)}function h(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function y(w,$,U,Z){return $===null||$.tag!==6?($=sd(U,w.mode,Z),$.return=w,$):($=d($,U),$.return=w,$)}function S(w,$,U,Z){var ie=U.type;return ie===H?I(w,$,U.props.children,Z,U.key):$!==null&&($.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===ve&&Ki(ie)===$.type)?($=d($,U.props),Qa($,U),$.return=w,$):($=ru(U.type,U.key,U.props,null,w.mode,Z),Qa($,U),$.return=w,$)}function D(w,$,U,Z){return $===null||$.tag!==4||$.stateNode.containerInfo!==U.containerInfo||$.stateNode.implementation!==U.implementation?($=dd(U,w.mode,Z),$.return=w,$):($=d($,U.children||[]),$.return=w,$)}function I(w,$,U,Z,ie){return $===null||$.tag!==7?($=Yi(U,w.mode,Z,ie),$.return=w,$):($=d($,U),$.return=w,$)}function q(w,$,U){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return $=sd(""+$,w.mode,U),$.return=w,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case z:return U=ru($.type,$.key,$.props,null,w.mode,U),Qa(U,$),U.return=w,U;case x:return $=dd($,w.mode,U),$.return=w,$;case ve:return $=Ki($),q(w,$,U)}if(Kt($)||ot($))return $=Yi($,w.mode,U,null),$.return=w,$;if(typeof $.then=="function")return q(w,du($),U);if($.$$typeof===ge)return q(w,lu(w,$),U);fu(w,$)}return null}function j(w,$,U,Z){var ie=$!==null?$.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return ie!==null?null:y(w,$,""+U,Z);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case z:return U.key===ie?S(w,$,U,Z):null;case x:return U.key===ie?D(w,$,U,Z):null;case ve:return U=Ki(U),j(w,$,U,Z)}if(Kt(U)||ot(U))return ie!==null?null:I(w,$,U,Z,null);if(typeof U.then=="function")return j(w,$,du(U),Z);if(U.$$typeof===ge)return j(w,$,lu(w,U),Z);fu(w,U)}return null}function A(w,$,U,Z,ie){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return w=w.get(U)||null,y($,w,""+Z,ie);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case z:return w=w.get(Z.key===null?U:Z.key)||null,S($,w,Z,ie);case x:return w=w.get(Z.key===null?U:Z.key)||null,D($,w,Z,ie);case ve:return Z=Ki(Z),A(w,$,U,Z,ie)}if(Kt(Z)||ot(Z))return w=w.get(U)||null,I($,w,Z,ie,null);if(typeof Z.then=="function")return A(w,$,U,du(Z),ie);if(Z.$$typeof===ge)return A(w,$,U,lu($,Z),ie);fu($,Z)}return null}function K(w,$,U,Z){for(var ie=null,Ae=null,W=$,_e=$=0,Ee=null;W!==null&&_e<U.length;_e++){W.index>_e?(Ee=W,W=null):Ee=W.sibling;var Ie=j(w,W,U[_e],Z);if(Ie===null){W===null&&(W=Ee);break}e&&W&&Ie.alternate===null&&t(w,W),$=f(Ie,$,_e),Ae===null?ie=Ie:Ae.sibling=Ie,Ae=Ie,W=Ee}if(_e===U.length)return a(w,W),Oe&&Yn(w,_e),ie;if(W===null){for(;_e<U.length;_e++)W=q(w,U[_e],Z),W!==null&&($=f(W,$,_e),Ae===null?ie=W:Ae.sibling=W,Ae=W);return Oe&&Yn(w,_e),ie}for(W=c(W);_e<U.length;_e++)Ee=A(W,w,_e,U[_e],Z),Ee!==null&&(e&&Ee.alternate!==null&&W.delete(Ee.key===null?_e:Ee.key),$=f(Ee,$,_e),Ae===null?ie=Ee:Ae.sibling=Ee,Ae=Ee);return e&&W.forEach(function(Ai){return t(w,Ai)}),Oe&&Yn(w,_e),ie}function le(w,$,U,Z){if(U==null)throw Error(l(151));for(var ie=null,Ae=null,W=$,_e=$=0,Ee=null,Ie=U.next();W!==null&&!Ie.done;_e++,Ie=U.next()){W.index>_e?(Ee=W,W=null):Ee=W.sibling;var Ai=j(w,W,Ie.value,Z);if(Ai===null){W===null&&(W=Ee);break}e&&W&&Ai.alternate===null&&t(w,W),$=f(Ai,$,_e),Ae===null?ie=Ai:Ae.sibling=Ai,Ae=Ai,W=Ee}if(Ie.done)return a(w,W),Oe&&Yn(w,_e),ie;if(W===null){for(;!Ie.done;_e++,Ie=U.next())Ie=q(w,Ie.value,Z),Ie!==null&&($=f(Ie,$,_e),Ae===null?ie=Ie:Ae.sibling=Ie,Ae=Ie);return Oe&&Yn(w,_e),ie}for(W=c(W);!Ie.done;_e++,Ie=U.next())Ie=A(W,w,_e,Ie.value,Z),Ie!==null&&(e&&Ie.alternate!==null&&W.delete(Ie.key===null?_e:Ie.key),$=f(Ie,$,_e),Ae===null?ie=Ie:Ae.sibling=Ie,Ae=Ie);return e&&W.forEach(function(ww){return t(w,ww)}),Oe&&Yn(w,_e),ie}function Xe(w,$,U,Z){if(typeof U=="object"&&U!==null&&U.type===H&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case z:e:{for(var ie=U.key;$!==null;){if($.key===ie){if(ie=U.type,ie===H){if($.tag===7){a(w,$.sibling),Z=d($,U.props.children),Z.return=w,w=Z;break e}}else if($.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===ve&&Ki(ie)===$.type){a(w,$.sibling),Z=d($,U.props),Qa(Z,U),Z.return=w,w=Z;break e}a(w,$);break}else t(w,$);$=$.sibling}U.type===H?(Z=Yi(U.props.children,w.mode,Z,U.key),Z.return=w,w=Z):(Z=ru(U.type,U.key,U.props,null,w.mode,Z),Qa(Z,U),Z.return=w,w=Z)}return h(w);case x:e:{for(ie=U.key;$!==null;){if($.key===ie)if($.tag===4&&$.stateNode.containerInfo===U.containerInfo&&$.stateNode.implementation===U.implementation){a(w,$.sibling),Z=d($,U.children||[]),Z.return=w,w=Z;break e}else{a(w,$);break}else t(w,$);$=$.sibling}Z=dd(U,w.mode,Z),Z.return=w,w=Z}return h(w);case ve:return U=Ki(U),Xe(w,$,U,Z)}if(Kt(U))return K(w,$,U,Z);if(ot(U)){if(ie=ot(U),typeof ie!="function")throw Error(l(150));return U=ie.call(U),le(w,$,U,Z)}if(typeof U.then=="function")return Xe(w,$,du(U),Z);if(U.$$typeof===ge)return Xe(w,$,lu(w,U),Z);fu(w,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,$!==null&&$.tag===6?(a(w,$.sibling),Z=d($,U),Z.return=w,w=Z):(a(w,$),Z=sd(U,w.mode,Z),Z.return=w,w=Z),h(w)):a(w,$)}return function(w,$,U,Z){try{Pa=0;var ie=Xe(w,$,U,Z);return qr=null,ie}catch(W){if(W===Zr||W===cu)throw W;var Ae=nn(29,W,null,w.mode);return Ae.lanes=Z,Ae.return=w,Ae}finally{}}}var Wi=zv(!0),xv=zv(!1),vi=!1;function kd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function zd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function yi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function bi(e,t,a){var c=e.updateQueue;if(c===null)return null;if(c=c.shared,(Me&2)!==0){var d=c.pending;return d===null?t.next=t:(t.next=d.next,d.next=t),c.pending=t,t=iu(e),uv(e,null,a),t}return nu(e,c,t,a),iu(e)}function Ka(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var c=t.lanes;c&=e.pendingLanes,a|=c,t.lanes=a,gg(e,a)}}function xd(e,t){var a=e.updateQueue,c=e.alternate;if(c!==null&&(c=c.updateQueue,a===c)){var d=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var h={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?d=f=h:f=f.next=h,a=a.next}while(a!==null);f===null?d=f=t:f=f.next=t}else d=f=t;a={baseState:c.baseState,firstBaseUpdate:d,lastBaseUpdate:f,shared:c.shared,callbacks:c.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var wd=!1;function Fa(){if(wd){var e=Mr;if(e!==null)throw e}}function Wa(e,t,a,c){wd=!1;var d=e.updateQueue;vi=!1;var f=d.firstBaseUpdate,h=d.lastBaseUpdate,y=d.shared.pending;if(y!==null){d.shared.pending=null;var S=y,D=S.next;S.next=null,h===null?f=D:h.next=D,h=S;var I=e.alternate;I!==null&&(I=I.updateQueue,y=I.lastBaseUpdate,y!==h&&(y===null?I.firstBaseUpdate=D:y.next=D,I.lastBaseUpdate=S))}if(f!==null){var q=d.baseState;h=0,I=D=S=null,y=f;do{var j=y.lane&-536870913,A=j!==y.lane;if(A?(Te&j)===j:(c&j)===j){j!==0&&j===Cr&&(wd=!0),I!==null&&(I=I.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var K=e,le=y;j=t;var Xe=a;switch(le.tag){case 1:if(K=le.payload,typeof K=="function"){q=K.call(Xe,q,j);break e}q=K;break e;case 3:K.flags=K.flags&-65537|128;case 0:if(K=le.payload,j=typeof K=="function"?K.call(Xe,q,j):K,j==null)break e;q=b({},q,j);break e;case 2:vi=!0}}j=y.callback,j!==null&&(e.flags|=64,A&&(e.flags|=8192),A=d.callbacks,A===null?d.callbacks=[j]:A.push(j))}else A={lane:j,tag:y.tag,payload:y.payload,callback:y.callback,next:null},I===null?(D=I=A,S=q):I=I.next=A,h|=j;if(y=y.next,y===null){if(y=d.shared.pending,y===null)break;A=y,y=A.next,A.next=null,d.lastBaseUpdate=A,d.shared.pending=null}}while(!0);I===null&&(S=q),d.baseState=S,d.firstBaseUpdate=D,d.lastBaseUpdate=I,f===null&&(d.shared.lanes=0),zi|=h,e.lanes=h,e.memoizedState=q}}function wv(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function Tv(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)wv(a[e],t)}var Lr=k(null),mu=k(0);function Ev(e,t){e=ii,X(mu,e),X(Lr,t),ii=e|t.baseLanes}function Td(){X(mu,ii),X(Lr,Lr.current)}function Ed(){ii=mu.current,M(Lr),M(mu)}var rn=k(null),$n=null;function _i(e){var t=e.alternate;X(st,st.current&1),X(rn,e),$n===null&&(t===null||Lr.current!==null||t.memoizedState!==null)&&($n=e)}function Od(e){X(st,st.current),X(rn,e),$n===null&&($n=e)}function Ov(e){e.tag===22?(X(st,st.current),X(rn,e),$n===null&&($n=e)):Si()}function Si(){X(st,st.current),X(rn,rn.current)}function an(e){M(rn),$n===e&&($n=null),M(st)}var st=k(0);function pu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Rf(a)||Cf(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Pn=0,ye=null,Ge=null,pt=null,hu=!1,Hr=!1,er=!1,gu=0,eo=0,Br=null,gx=0;function ut(){throw Error(l(321))}function Ud(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!tn(e[a],t[a]))return!1;return!0}function Dd(e,t,a,c,d,f){return Pn=f,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,C.H=e===null||e.memoizedState===null?fy:Yd,er=!1,f=a(c,d),er=!1,Hr&&(f=Dv(t,a,c,d)),Uv(e),f}function Uv(e){C.H=io;var t=Ge!==null&&Ge.next!==null;if(Pn=0,pt=Ge=ye=null,hu=!1,eo=0,Br=null,t)throw Error(l(300));e===null||ht||(e=e.dependencies,e!==null&&ou(e)&&(ht=!0))}function Dv(e,t,a,c){ye=e;var d=0;do{if(Hr&&(Br=null),eo=0,Hr=!1,25<=d)throw Error(l(301));if(d+=1,pt=Ge=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}C.H=my,f=t(a,c)}while(Hr);return f}function vx(){var e=C.H,t=e.useState()[0];return t=typeof t.then=="function"?to(t):t,e=e.useState()[0],(Ge!==null?Ge.memoizedState:null)!==e&&(ye.flags|=1024),t}function jd(){var e=gu!==0;return gu=0,e}function Nd(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Ad(e){if(hu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}hu=!1}Pn=0,pt=Ge=ye=null,Hr=!1,eo=gu=0,Br=null}function Mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?ye.memoizedState=pt=e:pt=pt.next=e,pt}function dt(){if(Ge===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Ge.next;var t=pt===null?ye.memoizedState:pt.next;if(t!==null)pt=t,Ge=e;else{if(e===null)throw ye.alternate===null?Error(l(467)):Error(l(310));Ge=e,e={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},pt===null?ye.memoizedState=pt=e:pt=pt.next=e}return pt}function vu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function to(e){var t=eo;return eo+=1,Br===null&&(Br=[]),e=Sv(Br,e,t),t=ye,(pt===null?t.memoizedState:pt.next)===null&&(t=t.alternate,C.H=t===null||t.memoizedState===null?fy:Yd),e}function yu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return to(e);if(e.$$typeof===ge)return wt(e)}throw Error(l(438,String(e)))}function Id(e){var t=null,a=ye.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var c=ye.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(t={data:c.data.map(function(d){return d.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=vu(),ye.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),c=0;c<e;c++)a[c]=Ct;return t.index++,a}function Qn(e,t){return typeof t=="function"?t(e):t}function bu(e){var t=dt();return Rd(t,Ge,e)}function Rd(e,t,a){var c=e.queue;if(c===null)throw Error(l(311));c.lastRenderedReducer=a;var d=e.baseQueue,f=c.pending;if(f!==null){if(d!==null){var h=d.next;d.next=f.next,f.next=h}t.baseQueue=d=f,c.pending=null}if(f=e.baseState,d===null)e.memoizedState=f;else{t=d.next;var y=h=null,S=null,D=t,I=!1;do{var q=D.lane&-536870913;if(q!==D.lane?(Te&q)===q:(Pn&q)===q){var j=D.revertLane;if(j===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),q===Cr&&(I=!0);else if((Pn&j)===j){D=D.next,j===Cr&&(I=!0);continue}else q={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},S===null?(y=S=q,h=f):S=S.next=q,ye.lanes|=j,zi|=j;q=D.action,er&&a(f,q),f=D.hasEagerState?D.eagerState:a(f,q)}else j={lane:q,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},S===null?(y=S=j,h=f):S=S.next=j,ye.lanes|=q,zi|=q;D=D.next}while(D!==null&&D!==t);if(S===null?h=f:S.next=y,!tn(f,e.memoizedState)&&(ht=!0,I&&(a=Mr,a!==null)))throw a;e.memoizedState=f,e.baseState=h,e.baseQueue=S,c.lastRenderedState=f}return d===null&&(c.lanes=0),[e.memoizedState,c.dispatch]}function Cd(e){var t=dt(),a=t.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=e;var c=a.dispatch,d=a.pending,f=t.memoizedState;if(d!==null){a.pending=null;var h=d=d.next;do f=e(f,h.action),h=h.next;while(h!==d);tn(f,t.memoizedState)||(ht=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),a.lastRenderedState=f}return[f,c]}function jv(e,t,a){var c=ye,d=dt(),f=Oe;if(f){if(a===void 0)throw Error(l(407));a=a()}else a=t();var h=!tn((Ge||d).memoizedState,a);if(h&&(d.memoizedState=a,ht=!0),d=d.queue,qd(Iv.bind(null,c,d,e),[e]),d.getSnapshot!==t||h||pt!==null&&pt.memoizedState.tag&1){if(c.flags|=2048,Jr(9,{destroy:void 0},Av.bind(null,c,d,a,t),null),Ke===null)throw Error(l(349));f||(Pn&127)!==0||Nv(c,t,a)}return a}function Nv(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ye.updateQueue,t===null?(t=vu(),ye.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Av(e,t,a,c){t.value=a,t.getSnapshot=c,Rv(t)&&Cv(e)}function Iv(e,t,a){return a(function(){Rv(t)&&Cv(e)})}function Rv(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!tn(e,a)}catch{return!0}}function Cv(e){var t=Gi(e,2);t!==null&&Xt(t,e,2)}function Md(e){var t=Mt();if(typeof e=="function"){var a=e;if(e=a(),er){si(!0);try{a()}finally{si(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qn,lastRenderedState:e},t}function Mv(e,t,a,c){return e.baseState=a,Rd(e,Ge,typeof c=="function"?c:Qn)}function yx(e,t,a,c,d){if($u(e))throw Error(l(485));if(e=t.action,e!==null){var f={payload:d,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){f.listeners.push(h)}};C.T!==null?a(!0):f.isTransition=!1,c(f),a=t.pending,a===null?(f.next=t.pending=f,Zv(t,f)):(f.next=a.next,t.pending=a.next=f)}}function Zv(e,t){var a=t.action,c=t.payload,d=e.state;if(t.isTransition){var f=C.T,h={};C.T=h;try{var y=a(d,c),S=C.S;S!==null&&S(h,y),qv(e,t,y)}catch(D){Zd(e,t,D)}finally{f!==null&&h.types!==null&&(f.types=h.types),C.T=f}}else try{f=a(d,c),qv(e,t,f)}catch(D){Zd(e,t,D)}}function qv(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(c){Lv(e,t,c)},function(c){return Zd(e,t,c)}):Lv(e,t,a)}function Lv(e,t,a){t.status="fulfilled",t.value=a,Hv(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Zv(e,a)))}function Zd(e,t,a){var c=e.pending;if(e.pending=null,c!==null){c=c.next;do t.status="rejected",t.reason=a,Hv(t),t=t.next;while(t!==c)}e.action=null}function Hv(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Bv(e,t){return t}function Jv(e,t){if(Oe){var a=Ke.formState;if(a!==null){e:{var c=ye;if(Oe){if(tt){t:{for(var d=tt,f=Sn;d.nodeType!==8;){if(!f){d=null;break t}if(d=kn(d.nextSibling),d===null){d=null;break t}}f=d.data,d=f==="F!"||f==="F"?d:null}if(d){tt=kn(d.nextSibling),c=d.data==="F!";break e}}hi(c)}c=!1}c&&(t=a[0])}}return a=Mt(),a.memoizedState=a.baseState=t,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bv,lastRenderedState:t},a.queue=c,a=cy.bind(null,ye,c),c.dispatch=a,c=Md(!1),f=Gd.bind(null,ye,!1,c.queue),c=Mt(),d={state:t,dispatch:null,action:e,pending:null},c.queue=d,a=yx.bind(null,ye,d,f,a),d.dispatch=a,c.memoizedState=e,[t,a,!1]}function Gv(e){var t=dt();return Yv(t,Ge,e)}function Yv(e,t,a){if(t=Rd(e,t,Bv)[0],e=bu(Qn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var c=to(t)}catch(h){throw h===Zr?cu:h}else c=t;t=dt();var d=t.queue,f=d.dispatch;return a!==t.memoizedState&&(ye.flags|=2048,Jr(9,{destroy:void 0},bx.bind(null,d,a),null)),[c,f,e]}function bx(e,t){e.action=t}function Xv(e){var t=dt(),a=Ge;if(a!==null)return Yv(t,a,e);dt(),t=t.memoizedState,a=dt();var c=a.queue.dispatch;return a.memoizedState=e,[t,c,!1]}function Jr(e,t,a,c){return e={tag:e,create:a,deps:c,inst:t,next:null},t=ye.updateQueue,t===null&&(t=vu(),ye.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(c=a.next,a.next=e,e.next=c,t.lastEffect=e),e}function Vv(){return dt().memoizedState}function _u(e,t,a,c){var d=Mt();ye.flags|=e,d.memoizedState=Jr(1|t,{destroy:void 0},a,c===void 0?null:c)}function Su(e,t,a,c){var d=dt();c=c===void 0?null:c;var f=d.memoizedState.inst;Ge!==null&&c!==null&&Ud(c,Ge.memoizedState.deps)?d.memoizedState=Jr(t,f,a,c):(ye.flags|=e,d.memoizedState=Jr(1|t,f,a,c))}function Pv(e,t){_u(8390656,8,e,t)}function qd(e,t){Su(2048,8,e,t)}function _x(e){ye.flags|=4;var t=ye.updateQueue;if(t===null)t=vu(),ye.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Qv(e){var t=dt().memoizedState;return _x({ref:t,nextImpl:e}),function(){if((Me&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function Kv(e,t){return Su(4,2,e,t)}function Fv(e,t){return Su(4,4,e,t)}function Wv(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ey(e,t,a){a=a!=null?a.concat([e]):null,Su(4,4,Wv.bind(null,t,e),a)}function Ld(){}function ty(e,t){var a=dt();t=t===void 0?null:t;var c=a.memoizedState;return t!==null&&Ud(t,c[1])?c[0]:(a.memoizedState=[e,t],e)}function ny(e,t){var a=dt();t=t===void 0?null:t;var c=a.memoizedState;if(t!==null&&Ud(t,c[1]))return c[0];if(c=e(),er){si(!0);try{e()}finally{si(!1)}}return a.memoizedState=[c,t],c}function Hd(e,t,a){return a===void 0||(Pn&1073741824)!==0&&(Te&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=ib(),ye.lanes|=e,zi|=e,a)}function iy(e,t,a,c){return tn(a,t)?a:Lr.current!==null?(e=Hd(e,a,c),tn(e,t)||(ht=!0),e):(Pn&42)===0||(Pn&1073741824)!==0&&(Te&261930)===0?(ht=!0,e.memoizedState=a):(e=ib(),ye.lanes|=e,zi|=e,t)}function ry(e,t,a,c,d){var f=Y.p;Y.p=f!==0&&8>f?f:8;var h=C.T,y={};C.T=y,Gd(e,!1,t,a);try{var S=d(),D=C.S;if(D!==null&&D(y,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var I=hx(S,c);no(e,t,I,un(e))}else no(e,t,c,un(e))}catch(q){no(e,t,{then:function(){},status:"rejected",reason:q},un())}finally{Y.p=f,h!==null&&y.types!==null&&(h.types=y.types),C.T=h}}function Sx(){}function Bd(e,t,a,c){if(e.tag!==5)throw Error(l(476));var d=ay(e).queue;ry(e,d,t,ae,a===null?Sx:function(){return oy(e),a(c)})}function ay(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qn,lastRenderedState:ae},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function oy(e){var t=ay(e);t.next===null&&(t=e.alternate.memoizedState),no(e,t.next.queue,{},un())}function Jd(){return wt(_o)}function ly(){return dt().memoizedState}function uy(){return dt().memoizedState}function $x(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=un();e=yi(a);var c=bi(t,e,a);c!==null&&(Xt(c,t,a),Ka(c,t,a)),t={cache:bd()},e.payload=t;return}t=t.return}}function kx(e,t,a){var c=un();a={lane:c,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},$u(e)?sy(t,a):(a=ud(e,t,a,c),a!==null&&(Xt(a,e,c),dy(a,t,c)))}function cy(e,t,a){var c=un();no(e,t,a,c)}function no(e,t,a,c){var d={lane:c,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if($u(e))sy(t,d);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var h=t.lastRenderedState,y=f(h,a);if(d.hasEagerState=!0,d.eagerState=y,tn(y,h))return nu(e,t,d,0),Ke===null&&tu(),!1}catch{}finally{}if(a=ud(e,t,d,c),a!==null)return Xt(a,e,c),dy(a,t,c),!0}return!1}function Gd(e,t,a,c){if(c={lane:2,revertLane:zf(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},$u(e)){if(t)throw Error(l(479))}else t=ud(e,a,c,2),t!==null&&Xt(t,e,2)}function $u(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function sy(e,t){Hr=hu=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function dy(e,t,a){if((a&4194048)!==0){var c=t.lanes;c&=e.pendingLanes,a|=c,t.lanes=a,gg(e,a)}}var io={readContext:wt,use:yu,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useLayoutEffect:ut,useInsertionEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useSyncExternalStore:ut,useId:ut,useHostTransitionStatus:ut,useFormState:ut,useActionState:ut,useOptimistic:ut,useMemoCache:ut,useCacheRefresh:ut};io.useEffectEvent=ut;var fy={readContext:wt,use:yu,useCallback:function(e,t){return Mt().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:Pv,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,_u(4194308,4,Wv.bind(null,t,e),a)},useLayoutEffect:function(e,t){return _u(4194308,4,e,t)},useInsertionEffect:function(e,t){_u(4,2,e,t)},useMemo:function(e,t){var a=Mt();t=t===void 0?null:t;var c=e();if(er){si(!0);try{e()}finally{si(!1)}}return a.memoizedState=[c,t],c},useReducer:function(e,t,a){var c=Mt();if(a!==void 0){var d=a(t);if(er){si(!0);try{a(t)}finally{si(!1)}}}else d=t;return c.memoizedState=c.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},c.queue=e,e=e.dispatch=kx.bind(null,ye,e),[c.memoizedState,e]},useRef:function(e){var t=Mt();return e={current:e},t.memoizedState=e},useState:function(e){e=Md(e);var t=e.queue,a=cy.bind(null,ye,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Ld,useDeferredValue:function(e,t){var a=Mt();return Hd(a,e,t)},useTransition:function(){var e=Md(!1);return e=ry.bind(null,ye,e.queue,!0,!1),Mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var c=ye,d=Mt();if(Oe){if(a===void 0)throw Error(l(407));a=a()}else{if(a=t(),Ke===null)throw Error(l(349));(Te&127)!==0||Nv(c,t,a)}d.memoizedState=a;var f={value:a,getSnapshot:t};return d.queue=f,Pv(Iv.bind(null,c,f,e),[e]),c.flags|=2048,Jr(9,{destroy:void 0},Av.bind(null,c,f,a,t),null),a},useId:function(){var e=Mt(),t=Ke.identifierPrefix;if(Oe){var a=Rn,c=In;a=(c&~(1<<32-en(c)-1)).toString(32)+a,t="_"+t+"R_"+a,a=gu++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=gx++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Jd,useFormState:Jv,useActionState:Jv,useOptimistic:function(e){var t=Mt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Gd.bind(null,ye,!0,a),a.dispatch=t,[e,t]},useMemoCache:Id,useCacheRefresh:function(){return Mt().memoizedState=$x.bind(null,ye)},useEffectEvent:function(e){var t=Mt(),a={impl:e};return t.memoizedState=a,function(){if((Me&2)!==0)throw Error(l(440));return a.impl.apply(void 0,arguments)}}},Yd={readContext:wt,use:yu,useCallback:ty,useContext:wt,useEffect:qd,useImperativeHandle:ey,useInsertionEffect:Kv,useLayoutEffect:Fv,useMemo:ny,useReducer:bu,useRef:Vv,useState:function(){return bu(Qn)},useDebugValue:Ld,useDeferredValue:function(e,t){var a=dt();return iy(a,Ge.memoizedState,e,t)},useTransition:function(){var e=bu(Qn)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:to(e),t]},useSyncExternalStore:jv,useId:ly,useHostTransitionStatus:Jd,useFormState:Gv,useActionState:Gv,useOptimistic:function(e,t){var a=dt();return Mv(a,Ge,e,t)},useMemoCache:Id,useCacheRefresh:uy};Yd.useEffectEvent=Qv;var my={readContext:wt,use:yu,useCallback:ty,useContext:wt,useEffect:qd,useImperativeHandle:ey,useInsertionEffect:Kv,useLayoutEffect:Fv,useMemo:ny,useReducer:Cd,useRef:Vv,useState:function(){return Cd(Qn)},useDebugValue:Ld,useDeferredValue:function(e,t){var a=dt();return Ge===null?Hd(a,e,t):iy(a,Ge.memoizedState,e,t)},useTransition:function(){var e=Cd(Qn)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:to(e),t]},useSyncExternalStore:jv,useId:ly,useHostTransitionStatus:Jd,useFormState:Xv,useActionState:Xv,useOptimistic:function(e,t){var a=dt();return Ge!==null?Mv(a,Ge,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Id,useCacheRefresh:uy};my.useEffectEvent=Qv;function Xd(e,t,a,c){t=e.memoizedState,a=a(c,t),a=a==null?t:b({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Vd={enqueueSetState:function(e,t,a){e=e._reactInternals;var c=un(),d=yi(c);d.payload=t,a!=null&&(d.callback=a),t=bi(e,d,c),t!==null&&(Xt(t,e,c),Ka(t,e,c))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var c=un(),d=yi(c);d.tag=1,d.payload=t,a!=null&&(d.callback=a),t=bi(e,d,c),t!==null&&(Xt(t,e,c),Ka(t,e,c))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=un(),c=yi(a);c.tag=2,t!=null&&(c.callback=t),t=bi(e,c,a),t!==null&&(Xt(t,e,a),Ka(t,e,a))}};function py(e,t,a,c,d,f,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(c,f,h):t.prototype&&t.prototype.isPureReactComponent?!Ba(a,c)||!Ba(d,f):!0}function hy(e,t,a,c){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,c),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,c),t.state!==e&&Vd.enqueueReplaceState(t,t.state,null)}function tr(e,t){var a=t;if("ref"in t){a={};for(var c in t)c!=="ref"&&(a[c]=t[c])}if(e=e.defaultProps){a===t&&(a=b({},a));for(var d in e)a[d]===void 0&&(a[d]=e[d])}return a}function gy(e){eu(e)}function vy(e){console.error(e)}function yy(e){eu(e)}function ku(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(c){setTimeout(function(){throw c})}}function by(e,t,a){try{var c=e.onCaughtError;c(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Pd(e,t,a){return a=yi(a),a.tag=3,a.payload={element:null},a.callback=function(){ku(e,t)},a}function _y(e){return e=yi(e),e.tag=3,e}function Sy(e,t,a,c){var d=a.type.getDerivedStateFromError;if(typeof d=="function"){var f=c.value;e.payload=function(){return d(f)},e.callback=function(){by(t,a,c)}}var h=a.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){by(t,a,c),typeof d!="function"&&(xi===null?xi=new Set([this]):xi.add(this));var y=c.stack;this.componentDidCatch(c.value,{componentStack:y!==null?y:""})})}function zx(e,t,a,c,d){if(a.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(t=a.alternate,t!==null&&Rr(t,a,d,!0),a=rn.current,a!==null){switch(a.tag){case 31:case 13:return $n===null?Iu():a.alternate===null&&ct===0&&(ct=3),a.flags&=-257,a.flags|=65536,a.lanes=d,c===su?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([c]):t.add(c),Sf(e,c,d)),!1;case 22:return a.flags|=65536,c===su?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([c])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([c]):a.add(c)),Sf(e,c,d)),!1}throw Error(l(435,a.tag))}return Sf(e,c,d),Iu(),!1}if(Oe)return t=rn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=d,c!==pd&&(e=Error(l(422),{cause:c}),Ya(yn(e,a)))):(c!==pd&&(t=Error(l(423),{cause:c}),Ya(yn(t,a))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,c=yn(c,a),d=Pd(e.stateNode,c,d),xd(e,d),ct!==4&&(ct=2)),!1;var f=Error(l(520),{cause:c});if(f=yn(f,a),fo===null?fo=[f]:fo.push(f),ct!==4&&(ct=2),t===null)return!0;c=yn(c,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=d&-d,a.lanes|=e,e=Pd(a.stateNode,c,e),xd(a,e),!1;case 1:if(t=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(xi===null||!xi.has(f))))return a.flags|=65536,d&=-d,a.lanes|=d,d=_y(d),Sy(d,e,a,c),xd(a,d),!1}a=a.return}while(a!==null);return!1}var Qd=Error(l(461)),ht=!1;function Tt(e,t,a,c){t.child=e===null?xv(t,null,a,c):Wi(t,e.child,a,c)}function $y(e,t,a,c,d){a=a.render;var f=t.ref;if("ref"in c){var h={};for(var y in c)y!=="ref"&&(h[y]=c[y])}else h=c;return Pi(t),c=Dd(e,t,a,h,f,d),y=jd(),e!==null&&!ht?(Nd(e,t,d),Kn(e,t,d)):(Oe&&y&&fd(t),t.flags|=1,Tt(e,t,c,d),t.child)}function ky(e,t,a,c,d){if(e===null){var f=a.type;return typeof f=="function"&&!cd(f)&&f.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=f,zy(e,t,f,c,d)):(e=ru(a.type,null,c,t,t.mode,d),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!af(e,d)){var h=f.memoizedProps;if(a=a.compare,a=a!==null?a:Ba,a(h,c)&&e.ref===t.ref)return Kn(e,t,d)}return t.flags|=1,e=Gn(f,c),e.ref=t.ref,e.return=t,t.child=e}function zy(e,t,a,c,d){if(e!==null){var f=e.memoizedProps;if(Ba(f,c)&&e.ref===t.ref)if(ht=!1,t.pendingProps=c=f,af(e,d))(e.flags&131072)!==0&&(ht=!0);else return t.lanes=e.lanes,Kn(e,t,d)}return Kd(e,t,a,c,d)}function xy(e,t,a,c){var d=c.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|a:a,e!==null){for(c=t.child=e.child,d=0;c!==null;)d=d|c.lanes|c.childLanes,c=c.sibling;c=d&~f}else c=0,t.child=null;return wy(e,t,f,a,c)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&uu(t,f!==null?f.cachePool:null),f!==null?Ev(t,f):Td(),Ov(t);else return c=t.lanes=536870912,wy(e,t,f!==null?f.baseLanes|a:a,a,c)}else f!==null?(uu(t,f.cachePool),Ev(t,f),Si(),t.memoizedState=null):(e!==null&&uu(t,null),Td(),Si());return Tt(e,t,d,a),t.child}function ro(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function wy(e,t,a,c,d){var f=Sd();return f=f===null?null:{parent:mt._currentValue,pool:f},t.memoizedState={baseLanes:a,cachePool:f},e!==null&&uu(t,null),Td(),Ov(t),e!==null&&Rr(e,t,c,!0),t.childLanes=d,null}function zu(e,t){return t=wu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ty(e,t,a){return Wi(t,e.child,null,a),e=zu(t,t.pendingProps),e.flags|=2,an(t),t.memoizedState=null,e}function xx(e,t,a){var c=t.pendingProps,d=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Oe){if(c.mode==="hidden")return e=zu(t,c),t.lanes=536870912,ro(null,e);if(Od(t),(e=tt)?(e=Zb(e,Sn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:mi!==null?{id:In,overflow:Rn}:null,retryLane:536870912,hydrationErrors:null},a=sv(e),a.return=t,t.child=a,xt=t,tt=null)):e=null,e===null)throw hi(t);return t.lanes=536870912,null}return zu(t,c)}var f=e.memoizedState;if(f!==null){var h=f.dehydrated;if(Od(t),d)if(t.flags&256)t.flags&=-257,t=Ty(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(ht||Rr(e,t,a,!1),d=(a&e.childLanes)!==0,ht||d){if(c=Ke,c!==null&&(h=vg(c,a),h!==0&&h!==f.retryLane))throw f.retryLane=h,Gi(e,h),Xt(c,e,h),Qd;Iu(),t=Ty(e,t,a)}else e=f.treeContext,tt=kn(h.nextSibling),xt=t,Oe=!0,pi=null,Sn=!1,e!==null&&mv(t,e),t=zu(t,c),t.flags|=4096;return t}return e=Gn(e.child,{mode:c.mode,children:c.children}),e.ref=t.ref,t.child=e,e.return=t,e}function xu(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(l(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Kd(e,t,a,c,d){return Pi(t),a=Dd(e,t,a,c,void 0,d),c=jd(),e!==null&&!ht?(Nd(e,t,d),Kn(e,t,d)):(Oe&&c&&fd(t),t.flags|=1,Tt(e,t,a,d),t.child)}function Ey(e,t,a,c,d,f){return Pi(t),t.updateQueue=null,a=Dv(t,c,a,d),Uv(e),c=jd(),e!==null&&!ht?(Nd(e,t,f),Kn(e,t,f)):(Oe&&c&&fd(t),t.flags|=1,Tt(e,t,a,f),t.child)}function Oy(e,t,a,c,d){if(Pi(t),t.stateNode===null){var f=jr,h=a.contextType;typeof h=="object"&&h!==null&&(f=wt(h)),f=new a(c,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Vd,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=c,f.state=t.memoizedState,f.refs={},kd(t),h=a.contextType,f.context=typeof h=="object"&&h!==null?wt(h):jr,f.state=t.memoizedState,h=a.getDerivedStateFromProps,typeof h=="function"&&(Xd(t,a,h,c),f.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(h=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),h!==f.state&&Vd.enqueueReplaceState(f,f.state,null),Wa(t,c,f,d),Fa(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),c=!0}else if(e===null){f=t.stateNode;var y=t.memoizedProps,S=tr(a,y);f.props=S;var D=f.context,I=a.contextType;h=jr,typeof I=="object"&&I!==null&&(h=wt(I));var q=a.getDerivedStateFromProps;I=typeof q=="function"||typeof f.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,I||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y||D!==h)&&hy(t,f,c,h),vi=!1;var j=t.memoizedState;f.state=j,Wa(t,c,f,d),Fa(),D=t.memoizedState,y||j!==D||vi?(typeof q=="function"&&(Xd(t,a,q,c),D=t.memoizedState),(S=vi||py(t,a,S,c,j,D,h))?(I||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=c,t.memoizedState=D),f.props=c,f.state=D,f.context=h,c=S):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),c=!1)}else{f=t.stateNode,zd(e,t),h=t.memoizedProps,I=tr(a,h),f.props=I,q=t.pendingProps,j=f.context,D=a.contextType,S=jr,typeof D=="object"&&D!==null&&(S=wt(D)),y=a.getDerivedStateFromProps,(D=typeof y=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(h!==q||j!==S)&&hy(t,f,c,S),vi=!1,j=t.memoizedState,f.state=j,Wa(t,c,f,d),Fa();var A=t.memoizedState;h!==q||j!==A||vi||e!==null&&e.dependencies!==null&&ou(e.dependencies)?(typeof y=="function"&&(Xd(t,a,y,c),A=t.memoizedState),(I=vi||py(t,a,I,c,j,A,S)||e!==null&&e.dependencies!==null&&ou(e.dependencies))?(D||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(c,A,S),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(c,A,S)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||h===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=c,t.memoizedState=A),f.props=c,f.state=A,f.context=S,c=I):(typeof f.componentDidUpdate!="function"||h===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),c=!1)}return f=c,xu(e,t),c=(t.flags&128)!==0,f||c?(f=t.stateNode,a=c&&typeof a.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&c?(t.child=Wi(t,e.child,null,d),t.child=Wi(t,null,a,d)):Tt(e,t,a,d),t.memoizedState=f.state,e=t.child):e=Kn(e,t,d),e}function Uy(e,t,a,c){return Xi(),t.flags|=256,Tt(e,t,a,c),t.child}var Fd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Wd(e){return{baseLanes:e,cachePool:bv()}}function ef(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=ln),e}function Dy(e,t,a){var c=t.pendingProps,d=!1,f=(t.flags&128)!==0,h;if((h=f)||(h=e!==null&&e.memoizedState===null?!1:(st.current&2)!==0),h&&(d=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(Oe){if(d?_i(t):Si(),(e=tt)?(e=Zb(e,Sn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:mi!==null?{id:In,overflow:Rn}:null,retryLane:536870912,hydrationErrors:null},a=sv(e),a.return=t,t.child=a,xt=t,tt=null)):e=null,e===null)throw hi(t);return Cf(e)?t.lanes=32:t.lanes=536870912,null}var y=c.children;return c=c.fallback,d?(Si(),d=t.mode,y=wu({mode:"hidden",children:y},d),c=Yi(c,d,a,null),y.return=t,c.return=t,y.sibling=c,t.child=y,c=t.child,c.memoizedState=Wd(a),c.childLanes=ef(e,h,a),t.memoizedState=Fd,ro(null,c)):(_i(t),tf(t,y))}var S=e.memoizedState;if(S!==null&&(y=S.dehydrated,y!==null)){if(f)t.flags&256?(_i(t),t.flags&=-257,t=nf(e,t,a)):t.memoizedState!==null?(Si(),t.child=e.child,t.flags|=128,t=null):(Si(),y=c.fallback,d=t.mode,c=wu({mode:"visible",children:c.children},d),y=Yi(y,d,a,null),y.flags|=2,c.return=t,y.return=t,c.sibling=y,t.child=c,Wi(t,e.child,null,a),c=t.child,c.memoizedState=Wd(a),c.childLanes=ef(e,h,a),t.memoizedState=Fd,t=ro(null,c));else if(_i(t),Cf(y)){if(h=y.nextSibling&&y.nextSibling.dataset,h)var D=h.dgst;h=D,c=Error(l(419)),c.stack="",c.digest=h,Ya({value:c,source:null,stack:null}),t=nf(e,t,a)}else if(ht||Rr(e,t,a,!1),h=(a&e.childLanes)!==0,ht||h){if(h=Ke,h!==null&&(c=vg(h,a),c!==0&&c!==S.retryLane))throw S.retryLane=c,Gi(e,c),Xt(h,e,c),Qd;Rf(y)||Iu(),t=nf(e,t,a)}else Rf(y)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,tt=kn(y.nextSibling),xt=t,Oe=!0,pi=null,Sn=!1,e!==null&&mv(t,e),t=tf(t,c.children),t.flags|=4096);return t}return d?(Si(),y=c.fallback,d=t.mode,S=e.child,D=S.sibling,c=Gn(S,{mode:"hidden",children:c.children}),c.subtreeFlags=S.subtreeFlags&65011712,D!==null?y=Gn(D,y):(y=Yi(y,d,a,null),y.flags|=2),y.return=t,c.return=t,c.sibling=y,t.child=c,ro(null,c),c=t.child,y=e.child.memoizedState,y===null?y=Wd(a):(d=y.cachePool,d!==null?(S=mt._currentValue,d=d.parent!==S?{parent:S,pool:S}:d):d=bv(),y={baseLanes:y.baseLanes|a,cachePool:d}),c.memoizedState=y,c.childLanes=ef(e,h,a),t.memoizedState=Fd,ro(e.child,c)):(_i(t),a=e.child,e=a.sibling,a=Gn(a,{mode:"visible",children:c.children}),a.return=t,a.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=a,t.memoizedState=null,a)}function tf(e,t){return t=wu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function wu(e,t){return e=nn(22,e,null,t),e.lanes=0,e}function nf(e,t,a){return Wi(t,e.child,null,a),e=tf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function jy(e,t,a){e.lanes|=t;var c=e.alternate;c!==null&&(c.lanes|=t),vd(e.return,t,a)}function rf(e,t,a,c,d,f){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:c,tail:a,tailMode:d,treeForkCount:f}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=c,h.tail=a,h.tailMode=d,h.treeForkCount=f)}function Ny(e,t,a){var c=t.pendingProps,d=c.revealOrder,f=c.tail;c=c.children;var h=st.current,y=(h&2)!==0;if(y?(h=h&1|2,t.flags|=128):h&=1,X(st,h),Tt(e,t,c,a),c=Oe?Ga:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&jy(e,a,t);else if(e.tag===19)jy(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(d){case"forwards":for(a=t.child,d=null;a!==null;)e=a.alternate,e!==null&&pu(e)===null&&(d=a),a=a.sibling;a=d,a===null?(d=t.child,t.child=null):(d=a.sibling,a.sibling=null),rf(t,!1,d,a,f,c);break;case"backwards":case"unstable_legacy-backwards":for(a=null,d=t.child,t.child=null;d!==null;){if(e=d.alternate,e!==null&&pu(e)===null){t.child=d;break}e=d.sibling,d.sibling=a,a=d,d=e}rf(t,!0,a,null,f,c);break;case"together":rf(t,!1,null,null,void 0,c);break;default:t.memoizedState=null}return t.child}function Kn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),zi|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Rr(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,a=Gn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Gn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function af(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ou(e)))}function wx(e,t,a){switch(t.tag){case 3:kt(t,t.stateNode.containerInfo),gi(t,mt,e.memoizedState.cache),Xi();break;case 27:case 5:R(t);break;case 4:kt(t,t.stateNode.containerInfo);break;case 10:gi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Od(t),null;break;case 13:var c=t.memoizedState;if(c!==null)return c.dehydrated!==null?(_i(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Dy(e,t,a):(_i(t),e=Kn(e,t,a),e!==null?e.sibling:null);_i(t);break;case 19:var d=(e.flags&128)!==0;if(c=(a&t.childLanes)!==0,c||(Rr(e,t,a,!1),c=(a&t.childLanes)!==0),d){if(c)return Ny(e,t,a);t.flags|=128}if(d=t.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),X(st,st.current),c)break;return null;case 22:return t.lanes=0,xy(e,t,a,t.pendingProps);case 24:gi(t,mt,e.memoizedState.cache)}return Kn(e,t,a)}function Ay(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)ht=!0;else{if(!af(e,a)&&(t.flags&128)===0)return ht=!1,wx(e,t,a);ht=(e.flags&131072)!==0}else ht=!1,Oe&&(t.flags&1048576)!==0&&fv(t,Ga,t.index);switch(t.lanes=0,t.tag){case 16:e:{var c=t.pendingProps;if(e=Ki(t.elementType),t.type=e,typeof e=="function")cd(e)?(c=tr(e,c),t.tag=1,t=Oy(null,t,e,c,a)):(t.tag=0,t=Kd(null,t,e,c,a));else{if(e!=null){var d=e.$$typeof;if(d===be){t.tag=11,t=$y(null,t,e,c,a);break e}else if(d===G){t.tag=14,t=ky(null,t,e,c,a);break e}}throw t=Nt(e)||e,Error(l(306,t,""))}}return t;case 0:return Kd(e,t,t.type,t.pendingProps,a);case 1:return c=t.type,d=tr(c,t.pendingProps),Oy(e,t,c,d,a);case 3:e:{if(kt(t,t.stateNode.containerInfo),e===null)throw Error(l(387));c=t.pendingProps;var f=t.memoizedState;d=f.element,zd(e,t),Wa(t,c,null,a);var h=t.memoizedState;if(c=h.cache,gi(t,mt,c),c!==f.cache&&yd(t,[mt],a,!0),Fa(),c=h.element,f.isDehydrated)if(f={element:c,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=Uy(e,t,c,a);break e}else if(c!==d){d=yn(Error(l(424)),t),Ya(d),t=Uy(e,t,c,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(tt=kn(e.firstChild),xt=t,Oe=!0,pi=null,Sn=!0,a=xv(t,null,c,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Xi(),c===d){t=Kn(e,t,a);break e}Tt(e,t,c,a)}t=t.child}return t;case 26:return xu(e,t),e===null?(a=Gb(t.type,null,t.pendingProps,null))?t.memoizedState=a:Oe||(a=t.type,e=t.pendingProps,c=Hu($e.current).createElement(a),c[zt]=t,c[Lt]=e,Et(c,a,e),St(c),t.stateNode=c):t.memoizedState=Gb(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return R(t),e===null&&Oe&&(c=t.stateNode=Hb(t.type,t.pendingProps,$e.current),xt=t,Sn=!0,d=tt,Oi(t.type)?(Mf=d,tt=kn(c.firstChild)):tt=d),Tt(e,t,t.pendingProps.children,a),xu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oe&&((d=c=tt)&&(c=nw(c,t.type,t.pendingProps,Sn),c!==null?(t.stateNode=c,xt=t,tt=kn(c.firstChild),Sn=!1,d=!0):d=!1),d||hi(t)),R(t),d=t.type,f=t.pendingProps,h=e!==null?e.memoizedProps:null,c=f.children,Nf(d,f)?c=null:h!==null&&Nf(d,h)&&(t.flags|=32),t.memoizedState!==null&&(d=Dd(e,t,vx,null,null,a),_o._currentValue=d),xu(e,t),Tt(e,t,c,a),t.child;case 6:return e===null&&Oe&&((e=a=tt)&&(a=iw(a,t.pendingProps,Sn),a!==null?(t.stateNode=a,xt=t,tt=null,e=!0):e=!1),e||hi(t)),null;case 13:return Dy(e,t,a);case 4:return kt(t,t.stateNode.containerInfo),c=t.pendingProps,e===null?t.child=Wi(t,null,c,a):Tt(e,t,c,a),t.child;case 11:return $y(e,t,t.type,t.pendingProps,a);case 7:return Tt(e,t,t.pendingProps,a),t.child;case 8:return Tt(e,t,t.pendingProps.children,a),t.child;case 12:return Tt(e,t,t.pendingProps.children,a),t.child;case 10:return c=t.pendingProps,gi(t,t.type,c.value),Tt(e,t,c.children,a),t.child;case 9:return d=t.type._context,c=t.pendingProps.children,Pi(t),d=wt(d),c=c(d),t.flags|=1,Tt(e,t,c,a),t.child;case 14:return ky(e,t,t.type,t.pendingProps,a);case 15:return zy(e,t,t.type,t.pendingProps,a);case 19:return Ny(e,t,a);case 31:return xx(e,t,a);case 22:return xy(e,t,a,t.pendingProps);case 24:return Pi(t),c=wt(mt),e===null?(d=Sd(),d===null&&(d=Ke,f=bd(),d.pooledCache=f,f.refCount++,f!==null&&(d.pooledCacheLanes|=a),d=f),t.memoizedState={parent:c,cache:d},kd(t),gi(t,mt,d)):((e.lanes&a)!==0&&(zd(e,t),Wa(t,null,null,a),Fa()),d=e.memoizedState,f=t.memoizedState,d.parent!==c?(d={parent:c,cache:c},t.memoizedState=d,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=d),gi(t,mt,c)):(c=f.cache,gi(t,mt,c),c!==d.cache&&yd(t,[mt],a,!0))),Tt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function Fn(e){e.flags|=4}function of(e,t,a,c,d){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(d&335544128)===d)if(e.stateNode.complete)e.flags|=8192;else if(lb())e.flags|=8192;else throw Fi=su,$d}else e.flags&=-16777217}function Iy(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Qb(t))if(lb())e.flags|=8192;else throw Fi=su,$d}function Tu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?pg():536870912,e.lanes|=t,Vr|=t)}function ao(e,t){if(!Oe)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:c.sibling=null}}function nt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,c=0;if(t)for(var d=e.child;d!==null;)a|=d.lanes|d.childLanes,c|=d.subtreeFlags&65011712,c|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)a|=d.lanes|d.childLanes,c|=d.subtreeFlags,c|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=c,e.childLanes=a,t}function Tx(e,t,a){var c=t.pendingProps;switch(md(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return nt(t),null;case 1:return nt(t),null;case 3:return a=t.stateNode,c=null,e!==null&&(c=e.memoizedState.cache),t.memoizedState.cache!==c&&(t.flags|=2048),Vn(mt),it(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ir(t)?Fn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,hd())),nt(t),null;case 26:var d=t.type,f=t.memoizedState;return e===null?(Fn(t),f!==null?(nt(t),Iy(t,f)):(nt(t),of(t,d,null,c,a))):f?f!==e.memoizedState?(Fn(t),nt(t),Iy(t,f)):(nt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==c&&Fn(t),nt(t),of(t,d,e,c,a)),null;case 27:if(te(t),a=$e.current,d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==c&&Fn(t);else{if(!c){if(t.stateNode===null)throw Error(l(166));return nt(t),null}e=Q.current,Ir(t)?pv(t):(e=Hb(d,c,a),t.stateNode=e,Fn(t))}return nt(t),null;case 5:if(te(t),d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==c&&Fn(t);else{if(!c){if(t.stateNode===null)throw Error(l(166));return nt(t),null}if(f=Q.current,Ir(t))pv(t);else{var h=Hu($e.current);switch(f){case 1:f=h.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:f=h.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":f=h.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":f=h.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":f=h.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof c.is=="string"?h.createElement("select",{is:c.is}):h.createElement("select"),c.multiple?f.multiple=!0:c.size&&(f.size=c.size);break;default:f=typeof c.is=="string"?h.createElement(d,{is:c.is}):h.createElement(d)}}f[zt]=t,f[Lt]=c;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)f.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=f;e:switch(Et(f,d,c),d){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&Fn(t)}}return nt(t),of(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==c&&Fn(t);else{if(typeof c!="string"&&t.stateNode===null)throw Error(l(166));if(e=$e.current,Ir(t)){if(e=t.stateNode,a=t.memoizedProps,c=null,d=xt,d!==null)switch(d.tag){case 27:case 5:c=d.memoizedProps}e[zt]=t,e=!!(e.nodeValue===a||c!==null&&c.suppressHydrationWarning===!0||Db(e.nodeValue,a)),e||hi(t,!0)}else e=Hu(e).createTextNode(c),e[zt]=t,t.stateNode=e}return nt(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(c=Ir(t),a!==null){if(e===null){if(!c)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[zt]=t}else Xi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;nt(t),e=!1}else a=hd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(an(t),t):(an(t),null);if((t.flags&128)!==0)throw Error(l(558))}return nt(t),null;case 13:if(c=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=Ir(t),c!==null&&c.dehydrated!==null){if(e===null){if(!d)throw Error(l(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(l(317));d[zt]=t}else Xi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;nt(t),d=!1}else d=hd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return t.flags&256?(an(t),t):(an(t),null)}return an(t),(t.flags&128)!==0?(t.lanes=a,t):(a=c!==null,e=e!==null&&e.memoizedState!==null,a&&(c=t.child,d=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(d=c.alternate.memoizedState.cachePool.pool),f=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(f=c.memoizedState.cachePool.pool),f!==d&&(c.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Tu(t,t.updateQueue),nt(t),null);case 4:return it(),e===null&&Ef(t.stateNode.containerInfo),nt(t),null;case 10:return Vn(t.type),nt(t),null;case 19:if(M(st),c=t.memoizedState,c===null)return nt(t),null;if(d=(t.flags&128)!==0,f=c.rendering,f===null)if(d)ao(c,!1);else{if(ct!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=pu(e),f!==null){for(t.flags|=128,ao(c,!1),e=f.updateQueue,t.updateQueue=e,Tu(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)cv(a,e),a=a.sibling;return X(st,st.current&1|2),Oe&&Yn(t,c.treeForkCount),t.child}e=e.sibling}c.tail!==null&&Ft()>ju&&(t.flags|=128,d=!0,ao(c,!1),t.lanes=4194304)}else{if(!d)if(e=pu(f),e!==null){if(t.flags|=128,d=!0,e=e.updateQueue,t.updateQueue=e,Tu(t,e),ao(c,!0),c.tail===null&&c.tailMode==="hidden"&&!f.alternate&&!Oe)return nt(t),null}else 2*Ft()-c.renderingStartTime>ju&&a!==536870912&&(t.flags|=128,d=!0,ao(c,!1),t.lanes=4194304);c.isBackwards?(f.sibling=t.child,t.child=f):(e=c.last,e!==null?e.sibling=f:t.child=f,c.last=f)}return c.tail!==null?(e=c.tail,c.rendering=e,c.tail=e.sibling,c.renderingStartTime=Ft(),e.sibling=null,a=st.current,X(st,d?a&1|2:a&1),Oe&&Yn(t,c.treeForkCount),e):(nt(t),null);case 22:case 23:return an(t),Ed(),c=t.memoizedState!==null,e!==null?e.memoizedState!==null!==c&&(t.flags|=8192):c&&(t.flags|=8192),c?(a&536870912)!==0&&(t.flags&128)===0&&(nt(t),t.subtreeFlags&6&&(t.flags|=8192)):nt(t),a=t.updateQueue,a!==null&&Tu(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),c=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(c=t.memoizedState.cachePool.pool),c!==a&&(t.flags|=2048),e!==null&&M(Qi),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Vn(mt),nt(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function Ex(e,t){switch(md(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vn(mt),it(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return te(t),null;case 31:if(t.memoizedState!==null){if(an(t),t.alternate===null)throw Error(l(340));Xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(an(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));Xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return M(st),null;case 4:return it(),null;case 10:return Vn(t.type),null;case 22:case 23:return an(t),Ed(),e!==null&&M(Qi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Vn(mt),null;case 25:return null;default:return null}}function Ry(e,t){switch(md(t),t.tag){case 3:Vn(mt),it();break;case 26:case 27:case 5:te(t);break;case 4:it();break;case 31:t.memoizedState!==null&&an(t);break;case 13:an(t);break;case 19:M(st);break;case 10:Vn(t.type);break;case 22:case 23:an(t),Ed(),e!==null&&M(Qi);break;case 24:Vn(mt)}}function oo(e,t){try{var a=t.updateQueue,c=a!==null?a.lastEffect:null;if(c!==null){var d=c.next;a=d;do{if((a.tag&e)===e){c=void 0;var f=a.create,h=a.inst;c=f(),h.destroy=c}a=a.next}while(a!==d)}}catch(y){Be(t,t.return,y)}}function $i(e,t,a){try{var c=t.updateQueue,d=c!==null?c.lastEffect:null;if(d!==null){var f=d.next;c=f;do{if((c.tag&e)===e){var h=c.inst,y=h.destroy;if(y!==void 0){h.destroy=void 0,d=t;var S=a,D=y;try{D()}catch(I){Be(d,S,I)}}}c=c.next}while(c!==f)}}catch(I){Be(t,t.return,I)}}function Cy(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Tv(t,a)}catch(c){Be(e,e.return,c)}}}function My(e,t,a){a.props=tr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(c){Be(e,t,c)}}function lo(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var c=e.stateNode;break;case 30:c=e.stateNode;break;default:c=e.stateNode}typeof a=="function"?e.refCleanup=a(c):a.current=c}}catch(d){Be(e,t,d)}}function Cn(e,t){var a=e.ref,c=e.refCleanup;if(a!==null)if(typeof c=="function")try{c()}catch(d){Be(e,t,d)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(d){Be(e,t,d)}else a.current=null}function Zy(e){var t=e.type,a=e.memoizedProps,c=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&c.focus();break e;case"img":a.src?c.src=a.src:a.srcSet&&(c.srcset=a.srcSet)}}catch(d){Be(e,e.return,d)}}function lf(e,t,a){try{var c=e.stateNode;Qx(c,e.type,a,t),c[Lt]=t}catch(d){Be(e,e.return,d)}}function qy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Oi(e.type)||e.tag===4}function uf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Oi(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function cf(e,t,a){var c=e.tag;if(c===5||c===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Bn));else if(c!==4&&(c===27&&Oi(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(cf(e,t,a),e=e.sibling;e!==null;)cf(e,t,a),e=e.sibling}function Eu(e,t,a){var c=e.tag;if(c===5||c===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(c!==4&&(c===27&&Oi(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Eu(e,t,a),e=e.sibling;e!==null;)Eu(e,t,a),e=e.sibling}function Ly(e){var t=e.stateNode,a=e.memoizedProps;try{for(var c=e.type,d=t.attributes;d.length;)t.removeAttributeNode(d[0]);Et(t,c,a),t[zt]=e,t[Lt]=a}catch(f){Be(e,e.return,f)}}var Wn=!1,gt=!1,sf=!1,Hy=typeof WeakSet=="function"?WeakSet:Set,$t=null;function Ox(e,t){if(e=e.containerInfo,Df=Pu,e=ev(e),nd(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var c=a.getSelection&&a.getSelection();if(c&&c.rangeCount!==0){a=c.anchorNode;var d=c.anchorOffset,f=c.focusNode;c=c.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var h=0,y=-1,S=-1,D=0,I=0,q=e,j=null;t:for(;;){for(var A;q!==a||d!==0&&q.nodeType!==3||(y=h+d),q!==f||c!==0&&q.nodeType!==3||(S=h+c),q.nodeType===3&&(h+=q.nodeValue.length),(A=q.firstChild)!==null;)j=q,q=A;for(;;){if(q===e)break t;if(j===a&&++D===d&&(y=h),j===f&&++I===c&&(S=h),(A=q.nextSibling)!==null)break;q=j,j=q.parentNode}q=A}a=y===-1||S===-1?null:{start:y,end:S}}else a=null}a=a||{start:0,end:0}}else a=null;for(jf={focusedElem:e,selectionRange:a},Pu=!1,$t=t;$t!==null;)if(t=$t,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$t=e;else for(;$t!==null;){switch(t=$t,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)d=e[a],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,a=t,d=f.memoizedProps,f=f.memoizedState,c=a.stateNode;try{var K=tr(a.type,d);e=c.getSnapshotBeforeUpdate(K,f),c.__reactInternalSnapshotBeforeUpdate=e}catch(le){Be(a,a.return,le)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)If(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":If(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=t.sibling,e!==null){e.return=t.return,$t=e;break}$t=t.return}}function By(e,t,a){var c=a.flags;switch(a.tag){case 0:case 11:case 15:ti(e,a),c&4&&oo(5,a);break;case 1:if(ti(e,a),c&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(h){Be(a,a.return,h)}else{var d=tr(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(d,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){Be(a,a.return,h)}}c&64&&Cy(a),c&512&&lo(a,a.return);break;case 3:if(ti(e,a),c&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Tv(e,t)}catch(h){Be(a,a.return,h)}}break;case 27:t===null&&c&4&&Ly(a);case 26:case 5:ti(e,a),t===null&&c&4&&Zy(a),c&512&&lo(a,a.return);break;case 12:ti(e,a);break;case 31:ti(e,a),c&4&&Yy(e,a);break;case 13:ti(e,a),c&4&&Xy(e,a),c&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Mx.bind(null,a),rw(e,a))));break;case 22:if(c=a.memoizedState!==null||Wn,!c){t=t!==null&&t.memoizedState!==null||gt,d=Wn;var f=gt;Wn=c,(gt=t)&&!f?ni(e,a,(a.subtreeFlags&8772)!==0):ti(e,a),Wn=d,gt=f}break;case 30:break;default:ti(e,a)}}function Jy(e){var t=e.alternate;t!==null&&(e.alternate=null,Jy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Zs(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var rt=null,Bt=!1;function ei(e,t,a){for(a=a.child;a!==null;)Gy(e,t,a),a=a.sibling}function Gy(e,t,a){if(Wt&&typeof Wt.onCommitFiberUnmount=="function")try{Wt.onCommitFiberUnmount(Da,a)}catch{}switch(a.tag){case 26:gt||Cn(a,t),ei(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:gt||Cn(a,t);var c=rt,d=Bt;Oi(a.type)&&(rt=a.stateNode,Bt=!1),ei(e,t,a),vo(a.stateNode),rt=c,Bt=d;break;case 5:gt||Cn(a,t);case 6:if(c=rt,d=Bt,rt=null,ei(e,t,a),rt=c,Bt=d,rt!==null)if(Bt)try{(rt.nodeType===9?rt.body:rt.nodeName==="HTML"?rt.ownerDocument.body:rt).removeChild(a.stateNode)}catch(f){Be(a,t,f)}else try{rt.removeChild(a.stateNode)}catch(f){Be(a,t,f)}break;case 18:rt!==null&&(Bt?(e=rt,Cb(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),na(e)):Cb(rt,a.stateNode));break;case 4:c=rt,d=Bt,rt=a.stateNode.containerInfo,Bt=!0,ei(e,t,a),rt=c,Bt=d;break;case 0:case 11:case 14:case 15:$i(2,a,t),gt||$i(4,a,t),ei(e,t,a);break;case 1:gt||(Cn(a,t),c=a.stateNode,typeof c.componentWillUnmount=="function"&&My(a,t,c)),ei(e,t,a);break;case 21:ei(e,t,a);break;case 22:gt=(c=gt)||a.memoizedState!==null,ei(e,t,a),gt=c;break;default:ei(e,t,a)}}function Yy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{na(e)}catch(a){Be(t,t.return,a)}}}function Xy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{na(e)}catch(a){Be(t,t.return,a)}}function Ux(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Hy),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Hy),t;default:throw Error(l(435,e.tag))}}function Ou(e,t){var a=Ux(e);t.forEach(function(c){if(!a.has(c)){a.add(c);var d=Zx.bind(null,e,c);c.then(d,d)}})}function Jt(e,t){var a=t.deletions;if(a!==null)for(var c=0;c<a.length;c++){var d=a[c],f=e,h=t,y=h;e:for(;y!==null;){switch(y.tag){case 27:if(Oi(y.type)){rt=y.stateNode,Bt=!1;break e}break;case 5:rt=y.stateNode,Bt=!1;break e;case 3:case 4:rt=y.stateNode.containerInfo,Bt=!0;break e}y=y.return}if(rt===null)throw Error(l(160));Gy(f,h,d),rt=null,Bt=!1,f=d.alternate,f!==null&&(f.return=null),d.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Vy(t,e),t=t.sibling}var Un=null;function Vy(e,t){var a=e.alternate,c=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Jt(t,e),Gt(e),c&4&&($i(3,e,e.return),oo(3,e),$i(5,e,e.return));break;case 1:Jt(t,e),Gt(e),c&512&&(gt||a===null||Cn(a,a.return)),c&64&&Wn&&(e=e.updateQueue,e!==null&&(c=e.callbacks,c!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?c:a.concat(c))));break;case 26:var d=Un;if(Jt(t,e),Gt(e),c&512&&(gt||a===null||Cn(a,a.return)),c&4){var f=a!==null?a.memoizedState:null;if(c=e.memoizedState,a===null)if(c===null)if(e.stateNode===null){e:{c=e.type,a=e.memoizedProps,d=d.ownerDocument||d;t:switch(c){case"title":f=d.getElementsByTagName("title")[0],(!f||f[Aa]||f[zt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=d.createElement(c),d.head.insertBefore(f,d.querySelector("head > title"))),Et(f,c,a),f[zt]=e,St(f),c=f;break e;case"link":var h=Vb("link","href",d).get(c+(a.href||""));if(h){for(var y=0;y<h.length;y++)if(f=h[y],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){h.splice(y,1);break t}}f=d.createElement(c),Et(f,c,a),d.head.appendChild(f);break;case"meta":if(h=Vb("meta","content",d).get(c+(a.content||""))){for(y=0;y<h.length;y++)if(f=h[y],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){h.splice(y,1);break t}}f=d.createElement(c),Et(f,c,a),d.head.appendChild(f);break;default:throw Error(l(468,c))}f[zt]=e,St(f),c=f}e.stateNode=c}else Pb(d,e.type,e.stateNode);else e.stateNode=Xb(d,c,e.memoizedProps);else f!==c?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,c===null?Pb(d,e.type,e.stateNode):Xb(d,c,e.memoizedProps)):c===null&&e.stateNode!==null&&lf(e,e.memoizedProps,a.memoizedProps)}break;case 27:Jt(t,e),Gt(e),c&512&&(gt||a===null||Cn(a,a.return)),a!==null&&c&4&&lf(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Jt(t,e),Gt(e),c&512&&(gt||a===null||Cn(a,a.return)),e.flags&32){d=e.stateNode;try{xr(d,"")}catch(K){Be(e,e.return,K)}}c&4&&e.stateNode!=null&&(d=e.memoizedProps,lf(e,d,a!==null?a.memoizedProps:d)),c&1024&&(sf=!0);break;case 6:if(Jt(t,e),Gt(e),c&4){if(e.stateNode===null)throw Error(l(162));c=e.memoizedProps,a=e.stateNode;try{a.nodeValue=c}catch(K){Be(e,e.return,K)}}break;case 3:if(Gu=null,d=Un,Un=Bu(t.containerInfo),Jt(t,e),Un=d,Gt(e),c&4&&a!==null&&a.memoizedState.isDehydrated)try{na(t.containerInfo)}catch(K){Be(e,e.return,K)}sf&&(sf=!1,Py(e));break;case 4:c=Un,Un=Bu(e.stateNode.containerInfo),Jt(t,e),Gt(e),Un=c;break;case 12:Jt(t,e),Gt(e);break;case 31:Jt(t,e),Gt(e),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,Ou(e,c)));break;case 13:Jt(t,e),Gt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Du=Ft()),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,Ou(e,c)));break;case 22:d=e.memoizedState!==null;var S=a!==null&&a.memoizedState!==null,D=Wn,I=gt;if(Wn=D||d,gt=I||S,Jt(t,e),gt=I,Wn=D,Gt(e),c&8192)e:for(t=e.stateNode,t._visibility=d?t._visibility&-2:t._visibility|1,d&&(a===null||S||Wn||gt||nr(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){S=a=t;try{if(f=S.stateNode,d)h=f.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{y=S.stateNode;var q=S.memoizedProps.style,j=q!=null&&q.hasOwnProperty("display")?q.display:null;y.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(K){Be(S,S.return,K)}}}else if(t.tag===6){if(a===null){S=t;try{S.stateNode.nodeValue=d?"":S.memoizedProps}catch(K){Be(S,S.return,K)}}}else if(t.tag===18){if(a===null){S=t;try{var A=S.stateNode;d?Mb(A,!0):Mb(S.stateNode,!1)}catch(K){Be(S,S.return,K)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}c&4&&(c=e.updateQueue,c!==null&&(a=c.retryQueue,a!==null&&(c.retryQueue=null,Ou(e,a))));break;case 19:Jt(t,e),Gt(e),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,Ou(e,c)));break;case 30:break;case 21:break;default:Jt(t,e),Gt(e)}}function Gt(e){var t=e.flags;if(t&2){try{for(var a,c=e.return;c!==null;){if(qy(c)){a=c;break}c=c.return}if(a==null)throw Error(l(160));switch(a.tag){case 27:var d=a.stateNode,f=uf(e);Eu(e,f,d);break;case 5:var h=a.stateNode;a.flags&32&&(xr(h,""),a.flags&=-33);var y=uf(e);Eu(e,y,h);break;case 3:case 4:var S=a.stateNode.containerInfo,D=uf(e);cf(e,D,S);break;default:throw Error(l(161))}}catch(I){Be(e,e.return,I)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Py(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Py(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ti(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)By(e,t.alternate,t),t=t.sibling}function nr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:$i(4,t,t.return),nr(t);break;case 1:Cn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&My(t,t.return,a),nr(t);break;case 27:vo(t.stateNode);case 26:case 5:Cn(t,t.return),nr(t);break;case 22:t.memoizedState===null&&nr(t);break;case 30:nr(t);break;default:nr(t)}e=e.sibling}}function ni(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var c=t.alternate,d=e,f=t,h=f.flags;switch(f.tag){case 0:case 11:case 15:ni(d,f,a),oo(4,f);break;case 1:if(ni(d,f,a),c=f,d=c.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(D){Be(c,c.return,D)}if(c=f,d=c.updateQueue,d!==null){var y=c.stateNode;try{var S=d.shared.hiddenCallbacks;if(S!==null)for(d.shared.hiddenCallbacks=null,d=0;d<S.length;d++)wv(S[d],y)}catch(D){Be(c,c.return,D)}}a&&h&64&&Cy(f),lo(f,f.return);break;case 27:Ly(f);case 26:case 5:ni(d,f,a),a&&c===null&&h&4&&Zy(f),lo(f,f.return);break;case 12:ni(d,f,a);break;case 31:ni(d,f,a),a&&h&4&&Yy(d,f);break;case 13:ni(d,f,a),a&&h&4&&Xy(d,f);break;case 22:f.memoizedState===null&&ni(d,f,a),lo(f,f.return);break;case 30:break;default:ni(d,f,a)}t=t.sibling}}function df(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Xa(a))}function ff(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Xa(e))}function Dn(e,t,a,c){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Qy(e,t,a,c),t=t.sibling}function Qy(e,t,a,c){var d=t.flags;switch(t.tag){case 0:case 11:case 15:Dn(e,t,a,c),d&2048&&oo(9,t);break;case 1:Dn(e,t,a,c);break;case 3:Dn(e,t,a,c),d&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Xa(e)));break;case 12:if(d&2048){Dn(e,t,a,c),e=t.stateNode;try{var f=t.memoizedProps,h=f.id,y=f.onPostCommit;typeof y=="function"&&y(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){Be(t,t.return,S)}}else Dn(e,t,a,c);break;case 31:Dn(e,t,a,c);break;case 13:Dn(e,t,a,c);break;case 23:break;case 22:f=t.stateNode,h=t.alternate,t.memoizedState!==null?f._visibility&2?Dn(e,t,a,c):uo(e,t):f._visibility&2?Dn(e,t,a,c):(f._visibility|=2,Gr(e,t,a,c,(t.subtreeFlags&10256)!==0||!1)),d&2048&&df(h,t);break;case 24:Dn(e,t,a,c),d&2048&&ff(t.alternate,t);break;default:Dn(e,t,a,c)}}function Gr(e,t,a,c,d){for(d=d&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,h=t,y=a,S=c,D=h.flags;switch(h.tag){case 0:case 11:case 15:Gr(f,h,y,S,d),oo(8,h);break;case 23:break;case 22:var I=h.stateNode;h.memoizedState!==null?I._visibility&2?Gr(f,h,y,S,d):uo(f,h):(I._visibility|=2,Gr(f,h,y,S,d)),d&&D&2048&&df(h.alternate,h);break;case 24:Gr(f,h,y,S,d),d&&D&2048&&ff(h.alternate,h);break;default:Gr(f,h,y,S,d)}t=t.sibling}}function uo(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,c=t,d=c.flags;switch(c.tag){case 22:uo(a,c),d&2048&&df(c.alternate,c);break;case 24:uo(a,c),d&2048&&ff(c.alternate,c);break;default:uo(a,c)}t=t.sibling}}var co=8192;function Yr(e,t,a){if(e.subtreeFlags&co)for(e=e.child;e!==null;)Ky(e,t,a),e=e.sibling}function Ky(e,t,a){switch(e.tag){case 26:Yr(e,t,a),e.flags&co&&e.memoizedState!==null&&gw(a,Un,e.memoizedState,e.memoizedProps);break;case 5:Yr(e,t,a);break;case 3:case 4:var c=Un;Un=Bu(e.stateNode.containerInfo),Yr(e,t,a),Un=c;break;case 22:e.memoizedState===null&&(c=e.alternate,c!==null&&c.memoizedState!==null?(c=co,co=16777216,Yr(e,t,a),co=c):Yr(e,t,a));break;default:Yr(e,t,a)}}function Fy(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function so(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var c=t[a];$t=c,eb(c,e)}Fy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Wy(e),e=e.sibling}function Wy(e){switch(e.tag){case 0:case 11:case 15:so(e),e.flags&2048&&$i(9,e,e.return);break;case 3:so(e);break;case 12:so(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Uu(e)):so(e);break;default:so(e)}}function Uu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var c=t[a];$t=c,eb(c,e)}Fy(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:$i(8,t,t.return),Uu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Uu(t));break;default:Uu(t)}e=e.sibling}}function eb(e,t){for(;$t!==null;){var a=$t;switch(a.tag){case 0:case 11:case 15:$i(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var c=a.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Xa(a.memoizedState.cache)}if(c=a.child,c!==null)c.return=a,$t=c;else e:for(a=e;$t!==null;){c=$t;var d=c.sibling,f=c.return;if(Jy(c),c===a){$t=null;break e}if(d!==null){d.return=f,$t=d;break e}$t=f}}}var Dx={getCacheForType:function(e){var t=wt(mt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return wt(mt).controller.signal}},jx=typeof WeakMap=="function"?WeakMap:Map,Me=0,Ke=null,ze=null,Te=0,He=0,on=null,ki=!1,Xr=!1,mf=!1,ii=0,ct=0,zi=0,ir=0,pf=0,ln=0,Vr=0,fo=null,Yt=null,hf=!1,Du=0,tb=0,ju=1/0,Nu=null,xi=null,yt=0,wi=null,Pr=null,ri=0,gf=0,vf=null,nb=null,mo=0,yf=null;function un(){return(Me&2)!==0&&Te!==0?Te&-Te:C.T!==null?zf():yg()}function ib(){if(ln===0)if((Te&536870912)===0||Oe){var e=Ll;Ll<<=1,(Ll&3932160)===0&&(Ll=262144),ln=e}else ln=536870912;return e=rn.current,e!==null&&(e.flags|=32),ln}function Xt(e,t,a){(e===Ke&&(He===2||He===9)||e.cancelPendingCommit!==null)&&(Qr(e,0),Ti(e,Te,ln,!1)),Na(e,a),((Me&2)===0||e!==Ke)&&(e===Ke&&((Me&2)===0&&(ir|=a),ct===4&&Ti(e,Te,ln,!1)),Mn(e))}function rb(e,t,a){if((Me&6)!==0)throw Error(l(327));var c=!a&&(t&127)===0&&(t&e.expiredLanes)===0||ja(e,t),d=c?Ix(e,t):_f(e,t,!0),f=c;do{if(d===0){Xr&&!c&&Ti(e,t,0,!1);break}else{if(a=e.current.alternate,f&&!Nx(a)){d=_f(e,t,!1),f=!1;continue}if(d===2){if(f=t,e.errorRecoveryDisabledLanes&f)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var y=e;d=fo;var S=y.current.memoizedState.isDehydrated;if(S&&(Qr(y,h).flags|=256),h=_f(y,h,!1),h!==2){if(mf&&!S){y.errorRecoveryDisabledLanes|=f,ir|=f,d=4;break e}f=Yt,Yt=d,f!==null&&(Yt===null?Yt=f:Yt.push.apply(Yt,f))}d=h}if(f=!1,d!==2)continue}}if(d===1){Qr(e,0),Ti(e,t,0,!0);break}e:{switch(c=e,f=d,f){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:Ti(c,t,ln,!ki);break e;case 2:Yt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(d=Du+300-Ft(),10<d)){if(Ti(c,t,ln,!ki),Bl(c,0,!0)!==0)break e;ri=t,c.timeoutHandle=Ib(ab.bind(null,c,a,Yt,Nu,hf,t,ln,ir,Vr,ki,f,"Throttled",-0,0),d);break e}ab(c,a,Yt,Nu,hf,t,ln,ir,Vr,ki,f,null,-0,0)}}break}while(!0);Mn(e)}function ab(e,t,a,c,d,f,h,y,S,D,I,q,j,A){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Bn},Ky(t,f,q);var K=(f&62914560)===f?Du-Ft():(f&4194048)===f?tb-Ft():0;if(K=vw(q,K),K!==null){ri=f,e.cancelPendingCommit=K(mb.bind(null,e,t,f,a,c,d,h,y,S,I,q,null,j,A)),Ti(e,f,h,!D);return}}mb(e,t,f,a,c,d,h,y,S)}function Nx(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var c=0;c<a.length;c++){var d=a[c],f=d.getSnapshot;d=d.value;try{if(!tn(f(),d))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ti(e,t,a,c){t&=~pf,t&=~ir,e.suspendedLanes|=t,e.pingedLanes&=~t,c&&(e.warmLanes|=t),c=e.expirationTimes;for(var d=t;0<d;){var f=31-en(d),h=1<<f;c[f]=-1,d&=~h}a!==0&&hg(e,a,t)}function Au(){return(Me&6)===0?(po(0),!1):!0}function bf(){if(ze!==null){if(He===0)var e=ze.return;else e=ze,Xn=Vi=null,Ad(e),qr=null,Pa=0,e=ze;for(;e!==null;)Ry(e.alternate,e),e=e.return;ze=null}}function Qr(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Wx(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ri=0,bf(),Ke=e,ze=a=Gn(e.current,null),Te=t,He=0,on=null,ki=!1,Xr=ja(e,t),mf=!1,Vr=ln=pf=ir=zi=ct=0,Yt=fo=null,hf=!1,(t&8)!==0&&(t|=t&32);var c=e.entangledLanes;if(c!==0)for(e=e.entanglements,c&=t;0<c;){var d=31-en(c),f=1<<d;t|=e[d],c&=~f}return ii=t,tu(),a}function ob(e,t){ye=null,C.H=io,t===Zr||t===cu?(t=$v(),He=3):t===$d?(t=$v(),He=4):He=t===Qd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,on=t,ze===null&&(ct=1,ku(e,yn(t,e.current)))}function lb(){var e=rn.current;return e===null?!0:(Te&4194048)===Te?$n===null:(Te&62914560)===Te||(Te&536870912)!==0?e===$n:!1}function ub(){var e=C.H;return C.H=io,e===null?io:e}function cb(){var e=C.A;return C.A=Dx,e}function Iu(){ct=4,ki||(Te&4194048)!==Te&&rn.current!==null||(Xr=!0),(zi&134217727)===0&&(ir&134217727)===0||Ke===null||Ti(Ke,Te,ln,!1)}function _f(e,t,a){var c=Me;Me|=2;var d=ub(),f=cb();(Ke!==e||Te!==t)&&(Nu=null,Qr(e,t)),t=!1;var h=ct;e:do try{if(He!==0&&ze!==null){var y=ze,S=on;switch(He){case 8:bf(),h=6;break e;case 3:case 2:case 9:case 6:rn.current===null&&(t=!0);var D=He;if(He=0,on=null,Kr(e,y,S,D),a&&Xr){h=0;break e}break;default:D=He,He=0,on=null,Kr(e,y,S,D)}}Ax(),h=ct;break}catch(I){ob(e,I)}while(!0);return t&&e.shellSuspendCounter++,Xn=Vi=null,Me=c,C.H=d,C.A=f,ze===null&&(Ke=null,Te=0,tu()),h}function Ax(){for(;ze!==null;)sb(ze)}function Ix(e,t){var a=Me;Me|=2;var c=ub(),d=cb();Ke!==e||Te!==t?(Nu=null,ju=Ft()+500,Qr(e,t)):Xr=ja(e,t);e:do try{if(He!==0&&ze!==null){t=ze;var f=on;t:switch(He){case 1:He=0,on=null,Kr(e,t,f,1);break;case 2:case 9:if(_v(f)){He=0,on=null,db(t);break}t=function(){He!==2&&He!==9||Ke!==e||(He=7),Mn(e)},f.then(t,t);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:_v(f)?(He=0,on=null,db(t)):(He=0,on=null,Kr(e,t,f,7));break;case 5:var h=null;switch(ze.tag){case 26:h=ze.memoizedState;case 5:case 27:var y=ze;if(h?Qb(h):y.stateNode.complete){He=0,on=null;var S=y.sibling;if(S!==null)ze=S;else{var D=y.return;D!==null?(ze=D,Ru(D)):ze=null}break t}}He=0,on=null,Kr(e,t,f,5);break;case 6:He=0,on=null,Kr(e,t,f,6);break;case 8:bf(),ct=6;break e;default:throw Error(l(462))}}Rx();break}catch(I){ob(e,I)}while(!0);return Xn=Vi=null,C.H=c,C.A=d,Me=a,ze!==null?0:(Ke=null,Te=0,tu(),ct)}function Rx(){for(;ze!==null&&!az();)sb(ze)}function sb(e){var t=Ay(e.alternate,e,ii);e.memoizedProps=e.pendingProps,t===null?Ru(e):ze=t}function db(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Ey(a,t,t.pendingProps,t.type,void 0,Te);break;case 11:t=Ey(a,t,t.pendingProps,t.type.render,t.ref,Te);break;case 5:Ad(t);default:Ry(a,t),t=ze=cv(t,ii),t=Ay(a,t,ii)}e.memoizedProps=e.pendingProps,t===null?Ru(e):ze=t}function Kr(e,t,a,c){Xn=Vi=null,Ad(t),qr=null,Pa=0;var d=t.return;try{if(zx(e,d,t,a,Te)){ct=1,ku(e,yn(a,e.current)),ze=null;return}}catch(f){if(d!==null)throw ze=d,f;ct=1,ku(e,yn(a,e.current)),ze=null;return}t.flags&32768?(Oe||c===1?e=!0:Xr||(Te&536870912)!==0?e=!1:(ki=e=!0,(c===2||c===9||c===3||c===6)&&(c=rn.current,c!==null&&c.tag===13&&(c.flags|=16384))),fb(t,e)):Ru(t)}function Ru(e){var t=e;do{if((t.flags&32768)!==0){fb(t,ki);return}e=t.return;var a=Tx(t.alternate,t,ii);if(a!==null){ze=a;return}if(t=t.sibling,t!==null){ze=t;return}ze=t=e}while(t!==null);ct===0&&(ct=5)}function fb(e,t){do{var a=Ex(e.alternate,e);if(a!==null){a.flags&=32767,ze=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ze=e;return}ze=e=a}while(e!==null);ct=6,ze=null}function mb(e,t,a,c,d,f,h,y,S){e.cancelPendingCommit=null;do Cu();while(yt!==0);if((Me&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(f=t.lanes|t.childLanes,f|=ld,hz(e,a,f,h,y,S),e===Ke&&(ze=Ke=null,Te=0),Pr=t,wi=e,ri=a,gf=f,vf=d,nb=c,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,qx(Zl,function(){return yb(),null})):(e.callbackNode=null,e.callbackPriority=0),c=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||c){c=C.T,C.T=null,d=Y.p,Y.p=2,h=Me,Me|=4;try{Ox(e,t,a)}finally{Me=h,Y.p=d,C.T=c}}yt=1,pb(),hb(),gb()}}function pb(){if(yt===1){yt=0;var e=wi,t=Pr,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=C.T,C.T=null;var c=Y.p;Y.p=2;var d=Me;Me|=4;try{Vy(t,e);var f=jf,h=ev(e.containerInfo),y=f.focusedElem,S=f.selectionRange;if(h!==y&&y&&y.ownerDocument&&Wg(y.ownerDocument.documentElement,y)){if(S!==null&&nd(y)){var D=S.start,I=S.end;if(I===void 0&&(I=D),"selectionStart"in y)y.selectionStart=D,y.selectionEnd=Math.min(I,y.value.length);else{var q=y.ownerDocument||document,j=q&&q.defaultView||window;if(j.getSelection){var A=j.getSelection(),K=y.textContent.length,le=Math.min(S.start,K),Xe=S.end===void 0?le:Math.min(S.end,K);!A.extend&&le>Xe&&(h=Xe,Xe=le,le=h);var w=Fg(y,le),$=Fg(y,Xe);if(w&&$&&(A.rangeCount!==1||A.anchorNode!==w.node||A.anchorOffset!==w.offset||A.focusNode!==$.node||A.focusOffset!==$.offset)){var U=q.createRange();U.setStart(w.node,w.offset),A.removeAllRanges(),le>Xe?(A.addRange(U),A.extend($.node,$.offset)):(U.setEnd($.node,$.offset),A.addRange(U))}}}}for(q=[],A=y;A=A.parentNode;)A.nodeType===1&&q.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<q.length;y++){var Z=q[y];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}Pu=!!Df,jf=Df=null}finally{Me=d,Y.p=c,C.T=a}}e.current=t,yt=2}}function hb(){if(yt===2){yt=0;var e=wi,t=Pr,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=C.T,C.T=null;var c=Y.p;Y.p=2;var d=Me;Me|=4;try{By(e,t.alternate,t)}finally{Me=d,Y.p=c,C.T=a}}yt=3}}function gb(){if(yt===4||yt===3){yt=0,oz();var e=wi,t=Pr,a=ri,c=nb;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?yt=5:(yt=0,Pr=wi=null,vb(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(xi=null),Cs(a),t=t.stateNode,Wt&&typeof Wt.onCommitFiberRoot=="function")try{Wt.onCommitFiberRoot(Da,t,void 0,(t.current.flags&128)===128)}catch{}if(c!==null){t=C.T,d=Y.p,Y.p=2,C.T=null;try{for(var f=e.onRecoverableError,h=0;h<c.length;h++){var y=c[h];f(y.value,{componentStack:y.stack})}}finally{C.T=t,Y.p=d}}(ri&3)!==0&&Cu(),Mn(e),d=e.pendingLanes,(a&261930)!==0&&(d&42)!==0?e===yf?mo++:(mo=0,yf=e):mo=0,po(0)}}function vb(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Xa(t)))}function Cu(){return pb(),hb(),gb(),yb()}function yb(){if(yt!==5)return!1;var e=wi,t=gf;gf=0;var a=Cs(ri),c=C.T,d=Y.p;try{Y.p=32>a?32:a,C.T=null,a=vf,vf=null;var f=wi,h=ri;if(yt=0,Pr=wi=null,ri=0,(Me&6)!==0)throw Error(l(331));var y=Me;if(Me|=4,Wy(f.current),Qy(f,f.current,h,a),Me=y,po(0,!1),Wt&&typeof Wt.onPostCommitFiberRoot=="function")try{Wt.onPostCommitFiberRoot(Da,f)}catch{}return!0}finally{Y.p=d,C.T=c,vb(e,t)}}function bb(e,t,a){t=yn(a,t),t=Pd(e.stateNode,t,2),e=bi(e,t,2),e!==null&&(Na(e,2),Mn(e))}function Be(e,t,a){if(e.tag===3)bb(e,e,a);else for(;t!==null;){if(t.tag===3){bb(t,e,a);break}else if(t.tag===1){var c=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(xi===null||!xi.has(c))){e=yn(a,e),a=_y(2),c=bi(t,a,2),c!==null&&(Sy(a,c,t,e),Na(c,2),Mn(c));break}}t=t.return}}function Sf(e,t,a){var c=e.pingCache;if(c===null){c=e.pingCache=new jx;var d=new Set;c.set(t,d)}else d=c.get(t),d===void 0&&(d=new Set,c.set(t,d));d.has(a)||(mf=!0,d.add(a),e=Cx.bind(null,e,t,a),t.then(e,e))}function Cx(e,t,a){var c=e.pingCache;c!==null&&c.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ke===e&&(Te&a)===a&&(ct===4||ct===3&&(Te&62914560)===Te&&300>Ft()-Du?(Me&2)===0&&Qr(e,0):pf|=a,Vr===Te&&(Vr=0)),Mn(e)}function _b(e,t){t===0&&(t=pg()),e=Gi(e,t),e!==null&&(Na(e,t),Mn(e))}function Mx(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),_b(e,a)}function Zx(e,t){var a=0;switch(e.tag){case 31:case 13:var c=e.stateNode,d=e.memoizedState;d!==null&&(a=d.retryLane);break;case 19:c=e.stateNode;break;case 22:c=e.stateNode._retryCache;break;default:throw Error(l(314))}c!==null&&c.delete(t),_b(e,a)}function qx(e,t){return Ns(e,t)}var Mu=null,Fr=null,$f=!1,Zu=!1,kf=!1,Ei=0;function Mn(e){e!==Fr&&e.next===null&&(Fr===null?Mu=Fr=e:Fr=Fr.next=e),Zu=!0,$f||($f=!0,Hx())}function po(e,t){if(!kf&&Zu){kf=!0;do for(var a=!1,c=Mu;c!==null;){if(e!==0){var d=c.pendingLanes;if(d===0)var f=0;else{var h=c.suspendedLanes,y=c.pingedLanes;f=(1<<31-en(42|e)+1)-1,f&=d&~(h&~y),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,zb(c,f))}else f=Te,f=Bl(c,c===Ke?f:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(f&3)===0||ja(c,f)||(a=!0,zb(c,f));c=c.next}while(a);kf=!1}}function Lx(){Sb()}function Sb(){Zu=$f=!1;var e=0;Ei!==0&&Fx()&&(e=Ei);for(var t=Ft(),a=null,c=Mu;c!==null;){var d=c.next,f=$b(c,t);f===0?(c.next=null,a===null?Mu=d:a.next=d,d===null&&(Fr=a)):(a=c,(e!==0||(f&3)!==0)&&(Zu=!0)),c=d}yt!==0&&yt!==5||po(e),Ei!==0&&(Ei=0)}function $b(e,t){for(var a=e.suspendedLanes,c=e.pingedLanes,d=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var h=31-en(f),y=1<<h,S=d[h];S===-1?((y&a)===0||(y&c)!==0)&&(d[h]=pz(y,t)):S<=t&&(e.expiredLanes|=y),f&=~y}if(t=Ke,a=Te,a=Bl(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),c=e.callbackNode,a===0||e===t&&(He===2||He===9)||e.cancelPendingCommit!==null)return c!==null&&c!==null&&As(c),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||ja(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(c!==null&&As(c),Cs(a)){case 2:case 8:a=fg;break;case 32:a=Zl;break;case 268435456:a=mg;break;default:a=Zl}return c=kb.bind(null,e),a=Ns(a,c),e.callbackPriority=t,e.callbackNode=a,t}return c!==null&&c!==null&&As(c),e.callbackPriority=2,e.callbackNode=null,2}function kb(e,t){if(yt!==0&&yt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Cu()&&e.callbackNode!==a)return null;var c=Te;return c=Bl(e,e===Ke?c:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),c===0?null:(rb(e,c,t),$b(e,Ft()),e.callbackNode!=null&&e.callbackNode===a?kb.bind(null,e):null)}function zb(e,t){if(Cu())return null;rb(e,t,!0)}function Hx(){ew(function(){(Me&6)!==0?Ns(dg,Lx):Sb()})}function zf(){if(Ei===0){var e=Cr;e===0&&(e=ql,ql<<=1,(ql&261888)===0&&(ql=256)),Ei=e}return Ei}function xb(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Xl(""+e)}function wb(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Bx(e,t,a,c,d){if(t==="submit"&&a&&a.stateNode===d){var f=xb((d[Lt]||null).action),h=c.submitter;h&&(t=(t=h[Lt]||null)?xb(t.formAction):h.getAttribute("formAction"),t!==null&&(f=t,h=null));var y=new Kl("action","action",null,c,d);e.push({event:y,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Ei!==0){var S=h?wb(d,h):new FormData(d);Bd(a,{pending:!0,data:S,method:d.method,action:f},null,S)}}else typeof f=="function"&&(y.preventDefault(),S=h?wb(d,h):new FormData(d),Bd(a,{pending:!0,data:S,method:d.method,action:f},f,S))},currentTarget:d}]})}}for(var xf=0;xf<od.length;xf++){var wf=od[xf],Jx=wf.toLowerCase(),Gx=wf[0].toUpperCase()+wf.slice(1);On(Jx,"on"+Gx)}On(iv,"onAnimationEnd"),On(rv,"onAnimationIteration"),On(av,"onAnimationStart"),On("dblclick","onDoubleClick"),On("focusin","onFocus"),On("focusout","onBlur"),On(lx,"onTransitionRun"),On(ux,"onTransitionStart"),On(cx,"onTransitionCancel"),On(ov,"onTransitionEnd"),kr("onMouseEnter",["mouseout","mouseover"]),kr("onMouseLeave",["mouseout","mouseover"]),kr("onPointerEnter",["pointerout","pointerover"]),kr("onPointerLeave",["pointerout","pointerover"]),Li("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Li("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Li("onBeforeInput",["compositionend","keypress","textInput","paste"]),Li("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Li("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Li("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ho="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Yx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ho));function Tb(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var c=e[a],d=c.event;c=c.listeners;e:{var f=void 0;if(t)for(var h=c.length-1;0<=h;h--){var y=c[h],S=y.instance,D=y.currentTarget;if(y=y.listener,S!==f&&d.isPropagationStopped())break e;f=y,d.currentTarget=D;try{f(d)}catch(I){eu(I)}d.currentTarget=null,f=S}else for(h=0;h<c.length;h++){if(y=c[h],S=y.instance,D=y.currentTarget,y=y.listener,S!==f&&d.isPropagationStopped())break e;f=y,d.currentTarget=D;try{f(d)}catch(I){eu(I)}d.currentTarget=null,f=S}}}}function xe(e,t){var a=t[Ms];a===void 0&&(a=t[Ms]=new Set);var c=e+"__bubble";a.has(c)||(Eb(t,e,2,!1),a.add(c))}function Tf(e,t,a){var c=0;t&&(c|=4),Eb(a,e,c,t)}var qu="_reactListening"+Math.random().toString(36).slice(2);function Ef(e){if(!e[qu]){e[qu]=!0,Sg.forEach(function(a){a!=="selectionchange"&&(Yx.has(a)||Tf(a,!1,e),Tf(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[qu]||(t[qu]=!0,Tf("selectionchange",!1,t))}}function Eb(e,t,a,c){switch(i_(t)){case 2:var d=_w;break;case 8:d=Sw;break;default:d=Bf}a=d.bind(null,t,a,e),d=void 0,!Xs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(d=!0),c?d!==void 0?e.addEventListener(t,a,{capture:!0,passive:d}):e.addEventListener(t,a,!0):d!==void 0?e.addEventListener(t,a,{passive:d}):e.addEventListener(t,a,!1)}function Of(e,t,a,c,d){var f=c;if((t&1)===0&&(t&2)===0&&c!==null)e:for(;;){if(c===null)return;var h=c.tag;if(h===3||h===4){var y=c.stateNode.containerInfo;if(y===d)break;if(h===4)for(h=c.return;h!==null;){var S=h.tag;if((S===3||S===4)&&h.stateNode.containerInfo===d)return;h=h.return}for(;y!==null;){if(h=_r(y),h===null)return;if(S=h.tag,S===5||S===6||S===26||S===27){c=f=h;continue e}y=y.parentNode}}c=c.return}Ng(function(){var D=f,I=Gs(a),q=[];e:{var j=lv.get(e);if(j!==void 0){var A=Kl,K=e;switch(e){case"keypress":if(Pl(a)===0)break e;case"keydown":case"keyup":A=Zz;break;case"focusin":K="focus",A=Ks;break;case"focusout":K="blur",A=Ks;break;case"beforeblur":case"afterblur":A=Ks;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":A=Rg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=Tz;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=Hz;break;case iv:case rv:case av:A=Uz;break;case ov:A=Jz;break;case"scroll":case"scrollend":A=xz;break;case"wheel":A=Yz;break;case"copy":case"cut":case"paste":A=jz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=Mg;break;case"toggle":case"beforetoggle":A=Vz}var le=(t&4)!==0,Xe=!le&&(e==="scroll"||e==="scrollend"),w=le?j!==null?j+"Capture":null:j;le=[];for(var $=D,U;$!==null;){var Z=$;if(U=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||U===null||w===null||(Z=Ra($,w),Z!=null&&le.push(go($,Z,U))),Xe)break;$=$.return}0<le.length&&(j=new A(j,K,null,a,I),q.push({event:j,listeners:le}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",A=e==="mouseout"||e==="pointerout",j&&a!==Js&&(K=a.relatedTarget||a.fromElement)&&(_r(K)||K[br]))break e;if((A||j)&&(j=I.window===I?I:(j=I.ownerDocument)?j.defaultView||j.parentWindow:window,A?(K=a.relatedTarget||a.toElement,A=D,K=K?_r(K):null,K!==null&&(Xe=u(K),le=K.tag,K!==Xe||le!==5&&le!==27&&le!==6)&&(K=null)):(A=null,K=D),A!==K)){if(le=Rg,Z="onMouseLeave",w="onMouseEnter",$="mouse",(e==="pointerout"||e==="pointerover")&&(le=Mg,Z="onPointerLeave",w="onPointerEnter",$="pointer"),Xe=A==null?j:Ia(A),U=K==null?j:Ia(K),j=new le(Z,$+"leave",A,a,I),j.target=Xe,j.relatedTarget=U,Z=null,_r(I)===D&&(le=new le(w,$+"enter",K,a,I),le.target=U,le.relatedTarget=Xe,Z=le),Xe=Z,A&&K)t:{for(le=Xx,w=A,$=K,U=0,Z=w;Z;Z=le(Z))U++;Z=0;for(var ie=$;ie;ie=le(ie))Z++;for(;0<U-Z;)w=le(w),U--;for(;0<Z-U;)$=le($),Z--;for(;U--;){if(w===$||$!==null&&w===$.alternate){le=w;break t}w=le(w),$=le($)}le=null}else le=null;A!==null&&Ob(q,j,A,le,!1),K!==null&&Xe!==null&&Ob(q,Xe,K,le,!0)}}e:{if(j=D?Ia(D):window,A=j.nodeName&&j.nodeName.toLowerCase(),A==="select"||A==="input"&&j.type==="file")var Ae=Yg;else if(Jg(j))if(Xg)Ae=rx;else{Ae=nx;var W=tx}else A=j.nodeName,!A||A.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?D&&Bs(D.elementType)&&(Ae=Yg):Ae=ix;if(Ae&&(Ae=Ae(e,D))){Gg(q,Ae,a,I);break e}W&&W(e,j,D),e==="focusout"&&D&&j.type==="number"&&D.memoizedProps.value!=null&&Hs(j,"number",j.value)}switch(W=D?Ia(D):window,e){case"focusin":(Jg(W)||W.contentEditable==="true")&&(Or=W,id=D,Ja=null);break;case"focusout":Ja=id=Or=null;break;case"mousedown":rd=!0;break;case"contextmenu":case"mouseup":case"dragend":rd=!1,tv(q,a,I);break;case"selectionchange":if(ox)break;case"keydown":case"keyup":tv(q,a,I)}var _e;if(Ws)e:{switch(e){case"compositionstart":var Ee="onCompositionStart";break e;case"compositionend":Ee="onCompositionEnd";break e;case"compositionupdate":Ee="onCompositionUpdate";break e}Ee=void 0}else Er?Hg(e,a)&&(Ee="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ee="onCompositionStart");Ee&&(Zg&&a.locale!=="ko"&&(Er||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&Er&&(_e=Ag()):(fi=I,Vs="value"in fi?fi.value:fi.textContent,Er=!0)),W=Lu(D,Ee),0<W.length&&(Ee=new Cg(Ee,e,null,a,I),q.push({event:Ee,listeners:W}),_e?Ee.data=_e:(_e=Bg(a),_e!==null&&(Ee.data=_e)))),(_e=Qz?Kz(e,a):Fz(e,a))&&(Ee=Lu(D,"onBeforeInput"),0<Ee.length&&(W=new Cg("onBeforeInput","beforeinput",null,a,I),q.push({event:W,listeners:Ee}),W.data=_e)),Bx(q,e,D,a,I)}Tb(q,t)})}function go(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Lu(e,t){for(var a=t+"Capture",c=[];e!==null;){var d=e,f=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||f===null||(d=Ra(e,a),d!=null&&c.unshift(go(e,d,f)),d=Ra(e,t),d!=null&&c.push(go(e,d,f))),e.tag===3)return c;e=e.return}return[]}function Xx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ob(e,t,a,c,d){for(var f=t._reactName,h=[];a!==null&&a!==c;){var y=a,S=y.alternate,D=y.stateNode;if(y=y.tag,S!==null&&S===c)break;y!==5&&y!==26&&y!==27||D===null||(S=D,d?(D=Ra(a,f),D!=null&&h.unshift(go(a,D,S))):d||(D=Ra(a,f),D!=null&&h.push(go(a,D,S)))),a=a.return}h.length!==0&&e.push({event:t,listeners:h})}var Vx=/\r\n?/g,Px=/\u0000|\uFFFD/g;function Ub(e){return(typeof e=="string"?e:""+e).replace(Vx,`
55
+ `).replace(Px,"")}function Db(e,t){return t=Ub(t),Ub(e)===t}function Ye(e,t,a,c,d,f){switch(a){case"children":typeof c=="string"?t==="body"||t==="textarea"&&c===""||xr(e,c):(typeof c=="number"||typeof c=="bigint")&&t!=="body"&&xr(e,""+c);break;case"className":Gl(e,"class",c);break;case"tabIndex":Gl(e,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Gl(e,a,c);break;case"style":Dg(e,c,f);break;case"data":if(t!=="object"){Gl(e,"data",c);break}case"src":case"href":if(c===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){e.removeAttribute(a);break}c=Xl(""+c),e.setAttribute(a,c);break;case"action":case"formAction":if(typeof c=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(a==="formAction"?(t!=="input"&&Ye(e,t,"name",d.name,d,null),Ye(e,t,"formEncType",d.formEncType,d,null),Ye(e,t,"formMethod",d.formMethod,d,null),Ye(e,t,"formTarget",d.formTarget,d,null)):(Ye(e,t,"encType",d.encType,d,null),Ye(e,t,"method",d.method,d,null),Ye(e,t,"target",d.target,d,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){e.removeAttribute(a);break}c=Xl(""+c),e.setAttribute(a,c);break;case"onClick":c!=null&&(e.onclick=Bn);break;case"onScroll":c!=null&&xe("scroll",e);break;case"onScrollEnd":c!=null&&xe("scrollend",e);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(l(61));if(a=c.__html,a!=null){if(d.children!=null)throw Error(l(60));e.innerHTML=a}}break;case"multiple":e.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":e.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){e.removeAttribute("xlink:href");break}a=Xl(""+c),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(a,""+c):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":c===!0?e.setAttribute(a,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(a,c):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?e.setAttribute(a,c):e.removeAttribute(a);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?e.removeAttribute(a):e.setAttribute(a,c);break;case"popover":xe("beforetoggle",e),xe("toggle",e),Jl(e,"popover",c);break;case"xlinkActuate":Hn(e,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Hn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Hn(e,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Hn(e,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Hn(e,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Hn(e,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Hn(e,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Hn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Hn(e,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Jl(e,"is",c);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=kz.get(a)||a,Jl(e,a,c))}}function Uf(e,t,a,c,d,f){switch(a){case"style":Dg(e,c,f);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(l(61));if(a=c.__html,a!=null){if(d.children!=null)throw Error(l(60));e.innerHTML=a}}break;case"children":typeof c=="string"?xr(e,c):(typeof c=="number"||typeof c=="bigint")&&xr(e,""+c);break;case"onScroll":c!=null&&xe("scroll",e);break;case"onScrollEnd":c!=null&&xe("scrollend",e);break;case"onClick":c!=null&&(e.onclick=Bn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!$g.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(d=a.endsWith("Capture"),t=a.slice(2,d?a.length-7:void 0),f=e[Lt]||null,f=f!=null?f[a]:null,typeof f=="function"&&e.removeEventListener(t,f,d),typeof c=="function")){typeof f!="function"&&f!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,c,d);break e}a in e?e[a]=c:c===!0?e.setAttribute(a,""):Jl(e,a,c)}}}function Et(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xe("error",e),xe("load",e);var c=!1,d=!1,f;for(f in a)if(a.hasOwnProperty(f)){var h=a[f];if(h!=null)switch(f){case"src":c=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Ye(e,t,f,h,a,null)}}d&&Ye(e,t,"srcSet",a.srcSet,a,null),c&&Ye(e,t,"src",a.src,a,null);return;case"input":xe("invalid",e);var y=f=h=d=null,S=null,D=null;for(c in a)if(a.hasOwnProperty(c)){var I=a[c];if(I!=null)switch(c){case"name":d=I;break;case"type":h=I;break;case"checked":S=I;break;case"defaultChecked":D=I;break;case"value":f=I;break;case"defaultValue":y=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(l(137,t));break;default:Ye(e,t,c,I,a,null)}}Tg(e,f,y,S,D,h,d,!1);return;case"select":xe("invalid",e),c=h=f=null;for(d in a)if(a.hasOwnProperty(d)&&(y=a[d],y!=null))switch(d){case"value":f=y;break;case"defaultValue":h=y;break;case"multiple":c=y;default:Ye(e,t,d,y,a,null)}t=f,a=h,e.multiple=!!c,t!=null?zr(e,!!c,t,!1):a!=null&&zr(e,!!c,a,!0);return;case"textarea":xe("invalid",e),f=d=c=null;for(h in a)if(a.hasOwnProperty(h)&&(y=a[h],y!=null))switch(h){case"value":c=y;break;case"defaultValue":d=y;break;case"children":f=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(l(91));break;default:Ye(e,t,h,y,a,null)}Og(e,c,d,f);return;case"option":for(S in a)if(a.hasOwnProperty(S)&&(c=a[S],c!=null))switch(S){case"selected":e.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:Ye(e,t,S,c,a,null)}return;case"dialog":xe("beforetoggle",e),xe("toggle",e),xe("cancel",e),xe("close",e);break;case"iframe":case"object":xe("load",e);break;case"video":case"audio":for(c=0;c<ho.length;c++)xe(ho[c],e);break;case"image":xe("error",e),xe("load",e);break;case"details":xe("toggle",e);break;case"embed":case"source":case"link":xe("error",e),xe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in a)if(a.hasOwnProperty(D)&&(c=a[D],c!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Ye(e,t,D,c,a,null)}return;default:if(Bs(t)){for(I in a)a.hasOwnProperty(I)&&(c=a[I],c!==void 0&&Uf(e,t,I,c,a,void 0));return}}for(y in a)a.hasOwnProperty(y)&&(c=a[y],c!=null&&Ye(e,t,y,c,a,null))}function Qx(e,t,a,c){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,f=null,h=null,y=null,S=null,D=null,I=null;for(A in a){var q=a[A];if(a.hasOwnProperty(A)&&q!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":S=q;default:c.hasOwnProperty(A)||Ye(e,t,A,null,c,q)}}for(var j in c){var A=c[j];if(q=a[j],c.hasOwnProperty(j)&&(A!=null||q!=null))switch(j){case"type":f=A;break;case"name":d=A;break;case"checked":D=A;break;case"defaultChecked":I=A;break;case"value":h=A;break;case"defaultValue":y=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(l(137,t));break;default:A!==q&&Ye(e,t,j,A,c,q)}}Ls(e,h,y,S,D,I,f,d);return;case"select":A=h=y=j=null;for(f in a)if(S=a[f],a.hasOwnProperty(f)&&S!=null)switch(f){case"value":break;case"multiple":A=S;default:c.hasOwnProperty(f)||Ye(e,t,f,null,c,S)}for(d in c)if(f=c[d],S=a[d],c.hasOwnProperty(d)&&(f!=null||S!=null))switch(d){case"value":j=f;break;case"defaultValue":y=f;break;case"multiple":h=f;default:f!==S&&Ye(e,t,d,f,c,S)}t=y,a=h,c=A,j!=null?zr(e,!!a,j,!1):!!c!=!!a&&(t!=null?zr(e,!!a,t,!0):zr(e,!!a,a?[]:"",!1));return;case"textarea":A=j=null;for(y in a)if(d=a[y],a.hasOwnProperty(y)&&d!=null&&!c.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Ye(e,t,y,null,c,d)}for(h in c)if(d=c[h],f=a[h],c.hasOwnProperty(h)&&(d!=null||f!=null))switch(h){case"value":j=d;break;case"defaultValue":A=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(l(91));break;default:d!==f&&Ye(e,t,h,d,c,f)}Eg(e,j,A);return;case"option":for(var K in a)if(j=a[K],a.hasOwnProperty(K)&&j!=null&&!c.hasOwnProperty(K))switch(K){case"selected":e.selected=!1;break;default:Ye(e,t,K,null,c,j)}for(S in c)if(j=c[S],A=a[S],c.hasOwnProperty(S)&&j!==A&&(j!=null||A!=null))switch(S){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:Ye(e,t,S,j,c,A)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var le in a)j=a[le],a.hasOwnProperty(le)&&j!=null&&!c.hasOwnProperty(le)&&Ye(e,t,le,null,c,j);for(D in c)if(j=c[D],A=a[D],c.hasOwnProperty(D)&&j!==A&&(j!=null||A!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(l(137,t));break;default:Ye(e,t,D,j,c,A)}return;default:if(Bs(t)){for(var Xe in a)j=a[Xe],a.hasOwnProperty(Xe)&&j!==void 0&&!c.hasOwnProperty(Xe)&&Uf(e,t,Xe,void 0,c,j);for(I in c)j=c[I],A=a[I],!c.hasOwnProperty(I)||j===A||j===void 0&&A===void 0||Uf(e,t,I,j,c,A);return}}for(var w in a)j=a[w],a.hasOwnProperty(w)&&j!=null&&!c.hasOwnProperty(w)&&Ye(e,t,w,null,c,j);for(q in c)j=c[q],A=a[q],!c.hasOwnProperty(q)||j===A||j==null&&A==null||Ye(e,t,q,j,c,A)}function jb(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Kx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),c=0;c<a.length;c++){var d=a[c],f=d.transferSize,h=d.initiatorType,y=d.duration;if(f&&y&&jb(h)){for(h=0,y=d.responseEnd,c+=1;c<a.length;c++){var S=a[c],D=S.startTime;if(D>y)break;var I=S.transferSize,q=S.initiatorType;I&&jb(q)&&(S=S.responseEnd,h+=I*(S<y?1:(y-D)/(S-D)))}if(--c,t+=8*(f+h)/(d.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Df=null,jf=null;function Hu(e){return e.nodeType===9?e:e.ownerDocument}function Nb(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ab(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Nf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Af=null;function Fx(){var e=window.event;return e&&e.type==="popstate"?e===Af?!1:(Af=e,!0):(Af=null,!1)}var Ib=typeof setTimeout=="function"?setTimeout:void 0,Wx=typeof clearTimeout=="function"?clearTimeout:void 0,Rb=typeof Promise=="function"?Promise:void 0,ew=typeof queueMicrotask=="function"?queueMicrotask:typeof Rb<"u"?function(e){return Rb.resolve(null).then(e).catch(tw)}:Ib;function tw(e){setTimeout(function(){throw e})}function Oi(e){return e==="head"}function Cb(e,t){var a=t,c=0;do{var d=a.nextSibling;if(e.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"||a==="/&"){if(c===0){e.removeChild(d),na(t);return}c--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")c++;else if(a==="html")vo(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,vo(a);for(var f=a.firstChild;f;){var h=f.nextSibling,y=f.nodeName;f[Aa]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&f.rel.toLowerCase()==="stylesheet"||a.removeChild(f),f=h}}else a==="body"&&vo(e.ownerDocument.body);a=d}while(a);na(t)}function Mb(e,t){var a=e;e=0;do{var c=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),c&&c.nodeType===8)if(a=c.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=c}while(a)}function If(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":If(a),Zs(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function nw(e,t,a,c){for(;e.nodeType===1;){var d=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!c&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(c){if(!e[Aa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==d.rel||e.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||e.getAttribute("title")!==(d.title==null?null:d.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(d.src==null?null:d.src)||e.getAttribute("type")!==(d.type==null?null:d.type)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=d.name==null?null:""+d.name;if(d.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=kn(e.nextSibling),e===null)break}return null}function iw(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=kn(e.nextSibling),e===null))return null;return e}function Zb(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=kn(e.nextSibling),e===null))return null;return e}function Rf(e){return e.data==="$?"||e.data==="$~"}function Cf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function rw(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var c=function(){t(),a.removeEventListener("DOMContentLoaded",c)};a.addEventListener("DOMContentLoaded",c),e._reactRetry=c}}function kn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Mf=null;function qb(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return kn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Lb(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Hb(e,t,a){switch(t=Hu(a),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function vo(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Zs(e)}var zn=new Map,Bb=new Set;function Bu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ai=Y.d;Y.d={f:aw,r:ow,D:lw,C:uw,L:cw,m:sw,X:fw,S:dw,M:mw};function aw(){var e=ai.f(),t=Au();return e||t}function ow(e){var t=Sr(e);t!==null&&t.tag===5&&t.type==="form"?oy(t):ai.r(e)}var Wr=typeof document>"u"?null:document;function Jb(e,t,a){var c=Wr;if(c&&typeof t=="string"&&t){var d=gn(t);d='link[rel="'+e+'"][href="'+d+'"]',typeof a=="string"&&(d+='[crossorigin="'+a+'"]'),Bb.has(d)||(Bb.add(d),e={rel:e,crossOrigin:a,href:t},c.querySelector(d)===null&&(t=c.createElement("link"),Et(t,"link",e),St(t),c.head.appendChild(t)))}}function lw(e){ai.D(e),Jb("dns-prefetch",e,null)}function uw(e,t){ai.C(e,t),Jb("preconnect",e,t)}function cw(e,t,a){ai.L(e,t,a);var c=Wr;if(c&&e&&t){var d='link[rel="preload"][as="'+gn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(d+='[imagesrcset="'+gn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(d+='[imagesizes="'+gn(a.imageSizes)+'"]')):d+='[href="'+gn(e)+'"]';var f=d;switch(t){case"style":f=ea(e);break;case"script":f=ta(e)}zn.has(f)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),zn.set(f,e),c.querySelector(d)!==null||t==="style"&&c.querySelector(yo(f))||t==="script"&&c.querySelector(bo(f))||(t=c.createElement("link"),Et(t,"link",e),St(t),c.head.appendChild(t)))}}function sw(e,t){ai.m(e,t);var a=Wr;if(a&&e){var c=t&&typeof t.as=="string"?t.as:"script",d='link[rel="modulepreload"][as="'+gn(c)+'"][href="'+gn(e)+'"]',f=d;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=ta(e)}if(!zn.has(f)&&(e=b({rel:"modulepreload",href:e},t),zn.set(f,e),a.querySelector(d)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(bo(f)))return}c=a.createElement("link"),Et(c,"link",e),St(c),a.head.appendChild(c)}}}function dw(e,t,a){ai.S(e,t,a);var c=Wr;if(c&&e){var d=$r(c).hoistableStyles,f=ea(e);t=t||"default";var h=d.get(f);if(!h){var y={loading:0,preload:null};if(h=c.querySelector(yo(f)))y.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=zn.get(f))&&Zf(e,a);var S=h=c.createElement("link");St(S),Et(S,"link",e),S._p=new Promise(function(D,I){S.onload=D,S.onerror=I}),S.addEventListener("load",function(){y.loading|=1}),S.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Ju(h,t,c)}h={type:"stylesheet",instance:h,count:1,state:y},d.set(f,h)}}}function fw(e,t){ai.X(e,t);var a=Wr;if(a&&e){var c=$r(a).hoistableScripts,d=ta(e),f=c.get(d);f||(f=a.querySelector(bo(d)),f||(e=b({src:e,async:!0},t),(t=zn.get(d))&&qf(e,t),f=a.createElement("script"),St(f),Et(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},c.set(d,f))}}function mw(e,t){ai.M(e,t);var a=Wr;if(a&&e){var c=$r(a).hoistableScripts,d=ta(e),f=c.get(d);f||(f=a.querySelector(bo(d)),f||(e=b({src:e,async:!0,type:"module"},t),(t=zn.get(d))&&qf(e,t),f=a.createElement("script"),St(f),Et(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},c.set(d,f))}}function Gb(e,t,a,c){var d=(d=$e.current)?Bu(d):null;if(!d)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=ea(a.href),a=$r(d).hoistableStyles,c=a.get(t),c||(c={type:"style",instance:null,count:0,state:null},a.set(t,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=ea(a.href);var f=$r(d).hoistableStyles,h=f.get(e);if(h||(d=d.ownerDocument||d,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,h),(f=d.querySelector(yo(e)))&&!f._p&&(h.instance=f,h.state.loading=5),zn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},zn.set(e,a),f||pw(d,e,a,h.state))),t&&c===null)throw Error(l(528,""));return h}if(t&&c!==null)throw Error(l(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ta(a),a=$r(d).hoistableScripts,c=a.get(t),c||(c={type:"script",instance:null,count:0,state:null},a.set(t,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function ea(e){return'href="'+gn(e)+'"'}function yo(e){return'link[rel="stylesheet"]['+e+"]"}function Yb(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function pw(e,t,a,c){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?c.loading=1:(t=e.createElement("link"),c.preload=t,t.addEventListener("load",function(){return c.loading|=1}),t.addEventListener("error",function(){return c.loading|=2}),Et(t,"link",a),St(t),e.head.appendChild(t))}function ta(e){return'[src="'+gn(e)+'"]'}function bo(e){return"script[async]"+e}function Xb(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var c=e.querySelector('style[data-href~="'+gn(a.href)+'"]');if(c)return t.instance=c,St(c),c;var d=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return c=(e.ownerDocument||e).createElement("style"),St(c),Et(c,"style",d),Ju(c,a.precedence,e),t.instance=c;case"stylesheet":d=ea(a.href);var f=e.querySelector(yo(d));if(f)return t.state.loading|=4,t.instance=f,St(f),f;c=Yb(a),(d=zn.get(d))&&Zf(c,d),f=(e.ownerDocument||e).createElement("link"),St(f);var h=f;return h._p=new Promise(function(y,S){h.onload=y,h.onerror=S}),Et(f,"link",c),t.state.loading|=4,Ju(f,a.precedence,e),t.instance=f;case"script":return f=ta(a.src),(d=e.querySelector(bo(f)))?(t.instance=d,St(d),d):(c=a,(d=zn.get(f))&&(c=b({},a),qf(c,d)),e=e.ownerDocument||e,d=e.createElement("script"),St(d),Et(d,"link",c),e.head.appendChild(d),t.instance=d);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(c=t.instance,t.state.loading|=4,Ju(c,a.precedence,e));return t.instance}function Ju(e,t,a){for(var c=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=c.length?c[c.length-1]:null,f=d,h=0;h<c.length;h++){var y=c[h];if(y.dataset.precedence===t)f=y;else if(f!==d)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Zf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function qf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Gu=null;function Vb(e,t,a){if(Gu===null){var c=new Map,d=Gu=new Map;d.set(a,c)}else d=Gu,c=d.get(a),c||(c=new Map,d.set(a,c));if(c.has(e))return c;for(c.set(e,null),a=a.getElementsByTagName(e),d=0;d<a.length;d++){var f=a[d];if(!(f[Aa]||f[zt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var h=f.getAttribute(t)||"";h=e+h;var y=c.get(h);y?y.push(f):c.set(h,[f])}}return c}function Pb(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function hw(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Qb(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function gw(e,t,a,c){if(a.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var d=ea(c.href),f=t.querySelector(yo(d));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Yu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=f,St(f);return}f=t.ownerDocument||t,c=Yb(c),(d=zn.get(d))&&Zf(c,d),f=f.createElement("link"),St(f);var h=f;h._p=new Promise(function(y,S){h.onload=y,h.onerror=S}),Et(f,"link",c),a.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Yu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Lf=0;function vw(e,t){return e.stylesheets&&e.count===0&&Vu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var c=setTimeout(function(){if(e.stylesheets&&Vu(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&Lf===0&&(Lf=62500*Kx());var d=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Vu(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>Lf?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(c),clearTimeout(d)}}:null}function Yu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xu=null;function Vu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xu=new Map,t.forEach(yw,e),Xu=null,Yu.call(e))}function yw(e,t){if(!(t.state.loading&4)){var a=Xu.get(e);if(a)var c=a.get(null);else{a=new Map,Xu.set(e,a);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<d.length;f++){var h=d[f];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(a.set(h.dataset.precedence,h),c=h)}c&&a.set(null,c)}d=t.instance,h=d.getAttribute("data-precedence"),f=a.get(h)||c,f===c&&a.set(null,d),a.set(h,d),this.count++,c=Yu.bind(this),d.addEventListener("load",c),d.addEventListener("error",c),f?f.parentNode.insertBefore(d,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),t.state.loading|=4}}var _o={$$typeof:ge,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function bw(e,t,a,c,d,f,h,y,S){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Is(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Is(0),this.hiddenUpdates=Is(null),this.identifierPrefix=c,this.onUncaughtError=d,this.onCaughtError=f,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function Kb(e,t,a,c,d,f,h,y,S,D,I,q){return e=new bw(e,t,a,h,S,D,I,q,y),t=1,f===!0&&(t|=24),f=nn(3,null,null,t),e.current=f,f.stateNode=e,t=bd(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:c,isDehydrated:a,cache:t},kd(f),e}function Fb(e){return e?(e=jr,e):jr}function Wb(e,t,a,c,d,f){d=Fb(d),c.context===null?c.context=d:c.pendingContext=d,c=yi(t),c.payload={element:a},f=f===void 0?null:f,f!==null&&(c.callback=f),a=bi(e,c,t),a!==null&&(Xt(a,e,t),Ka(a,e,t))}function e_(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Hf(e,t){e_(e,t),(e=e.alternate)&&e_(e,t)}function t_(e){if(e.tag===13||e.tag===31){var t=Gi(e,67108864);t!==null&&Xt(t,e,67108864),Hf(e,67108864)}}function n_(e){if(e.tag===13||e.tag===31){var t=un();t=Rs(t);var a=Gi(e,t);a!==null&&Xt(a,e,t),Hf(e,t)}}var Pu=!0;function _w(e,t,a,c){var d=C.T;C.T=null;var f=Y.p;try{Y.p=2,Bf(e,t,a,c)}finally{Y.p=f,C.T=d}}function Sw(e,t,a,c){var d=C.T;C.T=null;var f=Y.p;try{Y.p=8,Bf(e,t,a,c)}finally{Y.p=f,C.T=d}}function Bf(e,t,a,c){if(Pu){var d=Jf(c);if(d===null)Of(e,t,c,Qu,a),r_(e,c);else if(kw(d,e,t,a,c))c.stopPropagation();else if(r_(e,c),t&4&&-1<$w.indexOf(e)){for(;d!==null;){var f=Sr(d);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var h=qi(f.pendingLanes);if(h!==0){var y=f;for(y.pendingLanes|=2,y.entangledLanes|=2;h;){var S=1<<31-en(h);y.entanglements[1]|=S,h&=~S}Mn(f),(Me&6)===0&&(ju=Ft()+500,po(0))}}break;case 31:case 13:y=Gi(f,2),y!==null&&Xt(y,f,2),Au(),Hf(f,2)}if(f=Jf(c),f===null&&Of(e,t,c,Qu,a),f===d)break;d=f}d!==null&&c.stopPropagation()}else Of(e,t,c,null,a)}}function Jf(e){return e=Gs(e),Gf(e)}var Qu=null;function Gf(e){if(Qu=null,e=_r(e),e!==null){var t=u(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=s(t),e!==null)return e;e=null}else if(a===31){if(e=m(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Qu=e,null}function i_(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(lz()){case dg:return 2;case fg:return 8;case Zl:case uz:return 32;case mg:return 268435456;default:return 32}default:return 32}}var Yf=!1,Ui=null,Di=null,ji=null,So=new Map,$o=new Map,Ni=[],$w="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function r_(e,t){switch(e){case"focusin":case"focusout":Ui=null;break;case"dragenter":case"dragleave":Di=null;break;case"mouseover":case"mouseout":ji=null;break;case"pointerover":case"pointerout":So.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$o.delete(t.pointerId)}}function ko(e,t,a,c,d,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:a,eventSystemFlags:c,nativeEvent:f,targetContainers:[d]},t!==null&&(t=Sr(t),t!==null&&t_(t)),e):(e.eventSystemFlags|=c,t=e.targetContainers,d!==null&&t.indexOf(d)===-1&&t.push(d),e)}function kw(e,t,a,c,d){switch(t){case"focusin":return Ui=ko(Ui,e,t,a,c,d),!0;case"dragenter":return Di=ko(Di,e,t,a,c,d),!0;case"mouseover":return ji=ko(ji,e,t,a,c,d),!0;case"pointerover":var f=d.pointerId;return So.set(f,ko(So.get(f)||null,e,t,a,c,d)),!0;case"gotpointercapture":return f=d.pointerId,$o.set(f,ko($o.get(f)||null,e,t,a,c,d)),!0}return!1}function a_(e){var t=_r(e.target);if(t!==null){var a=u(t);if(a!==null){if(t=a.tag,t===13){if(t=s(a),t!==null){e.blockedOn=t,bg(e.priority,function(){n_(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,bg(e.priority,function(){n_(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ku(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Jf(e.nativeEvent);if(a===null){a=e.nativeEvent;var c=new a.constructor(a.type,a);Js=c,a.target.dispatchEvent(c),Js=null}else return t=Sr(a),t!==null&&t_(t),e.blockedOn=a,!1;t.shift()}return!0}function o_(e,t,a){Ku(e)&&a.delete(t)}function zw(){Yf=!1,Ui!==null&&Ku(Ui)&&(Ui=null),Di!==null&&Ku(Di)&&(Di=null),ji!==null&&Ku(ji)&&(ji=null),So.forEach(o_),$o.forEach(o_)}function Fu(e,t){e.blockedOn===t&&(e.blockedOn=null,Yf||(Yf=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,zw)))}var Wu=null;function l_(e){Wu!==e&&(Wu=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Wu===e&&(Wu=null);for(var t=0;t<e.length;t+=3){var a=e[t],c=e[t+1],d=e[t+2];if(typeof c!="function"){if(Gf(c||a)===null)continue;break}var f=Sr(a);f!==null&&(e.splice(t,3),t-=3,Bd(f,{pending:!0,data:d,method:a.method,action:c},c,d))}}))}function na(e){function t(S){return Fu(S,e)}Ui!==null&&Fu(Ui,e),Di!==null&&Fu(Di,e),ji!==null&&Fu(ji,e),So.forEach(t),$o.forEach(t);for(var a=0;a<Ni.length;a++){var c=Ni[a];c.blockedOn===e&&(c.blockedOn=null)}for(;0<Ni.length&&(a=Ni[0],a.blockedOn===null);)a_(a),a.blockedOn===null&&Ni.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(c=0;c<a.length;c+=3){var d=a[c],f=a[c+1],h=d[Lt]||null;if(typeof f=="function")h||l_(a);else if(h){var y=null;if(f&&f.hasAttribute("formAction")){if(d=f,h=f[Lt]||null)y=h.formAction;else if(Gf(d)!==null)continue}else y=h.action;typeof y=="function"?a[c+1]=y:(a.splice(c,3),c-=3),l_(a)}}}function u_(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(h){return d=h})},focusReset:"manual",scroll:"manual"})}function t(){d!==null&&(d(),d=null),c||setTimeout(a,20)}function a(){if(!c&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,d=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){c=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),d!==null&&(d(),d=null)}}}function Xf(e){this._internalRoot=e}ec.prototype.render=Xf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var a=t.current,c=un();Wb(a,c,e,t,null,null)},ec.prototype.unmount=Xf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Wb(e.current,2,null,e,null,null),Au(),t[br]=null}};function ec(e){this._internalRoot=e}ec.prototype.unstable_scheduleHydration=function(e){if(e){var t=yg();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ni.length&&t!==0&&t<Ni[a].priority;a++);Ni.splice(a,0,e),a===0&&a_(e)}};var c_=r.version;if(c_!=="19.2.5")throw Error(l(527,c_,"19.2.5"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=g(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var xw={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:C,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var tc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tc.isDisabled&&tc.supportsFiber)try{Da=tc.inject(xw),Wt=tc}catch{}}return xo.createRoot=function(e,t){if(!n(e))throw Error(l(299));var a=!1,c="",d=gy,f=vy,h=yy;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(c=t.identifierPrefix),t.onUncaughtError!==void 0&&(d=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Kb(e,1,!1,null,null,a,c,null,d,f,h,u_),e[br]=t.current,Ef(e),new Xf(t)},xo.hydrateRoot=function(e,t,a){if(!n(e))throw Error(l(299));var c=!1,d="",f=gy,h=vy,y=yy,S=null;return a!=null&&(a.unstable_strictMode===!0&&(c=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(h=a.onCaughtError),a.onRecoverableError!==void 0&&(y=a.onRecoverableError),a.formState!==void 0&&(S=a.formState)),t=Kb(e,1,!0,t,a??null,c,d,S,f,h,y,u_),t.context=Fb(null),a=t.current,c=un(),c=Rs(c),d=yi(c),d.callback=null,bi(a,d,c),a=c,t.current.lanes=a,Na(t,a),Mn(t),e[br]=t.current,Ef(e),new ec(t)},xo.version="19.2.5",xo}var b_;function Cw(){if(b_)return Qf.exports;b_=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(r){console.error(r)}}return i(),Qf.exports=Rw(),Qf.exports}var Mw=Cw();const Zw="modulepreload",qw=function(i,r){return new URL(i,r).href},__={},Lw=function(r,o,l){let n=Promise.resolve();if(o&&o.length>0){let s=function(v){return Promise.all(v.map(b=>Promise.resolve(b).then(_=>({status:"fulfilled",value:_}),_=>({status:"rejected",reason:_}))))};const m=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),g=(p==null?void 0:p.nonce)||(p==null?void 0:p.getAttribute("nonce"));n=s(o.map(v=>{if(v=qw(v,l),v in __)return;__[v]=!0;const b=v.endsWith(".css"),_=b?'[rel="stylesheet"]':"";if(!!l)for(let H=m.length-1;H>=0;H--){const J=m[H];if(J.href===v&&(!b||J.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${v}"]${_}`))return;const x=document.createElement("link");if(x.rel=b?"stylesheet":Zw,b||(x.as="script"),x.crossOrigin="",x.href=v,g&&x.setAttribute("nonce",g),document.head.appendChild(x),b)return new Promise((H,J)=>{x.addEventListener("load",H),x.addEventListener("error",()=>J(new Error(`Unable to preload CSS for ${v}`)))})}))}function u(s){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=s,window.dispatchEvent(m),!m.defaultPrevented)throw s}return n.then(s=>{for(const m of s||[])m.status==="rejected"&&u(m.reason);return r().catch(u)})};var S_;const dm=Object.freeze({status:"aborted"});function T(i,r,o){function l(m,p){if(m._zod||Object.defineProperty(m,"_zod",{value:{def:p,constr:s,traits:new Set},enumerable:!1}),m._zod.traits.has(i))return;m._zod.traits.add(i),r(m,p);const g=s.prototype,v=Object.keys(g);for(let b=0;b<v.length;b++){const _=v[b];_ in m||(m[_]=g[_].bind(m))}}const n=(o==null?void 0:o.Parent)??Object;class u extends n{}Object.defineProperty(u,"name",{value:i});function s(m){var p;const g=o!=null&&o.Parent?new u:this;l(g,m),(p=g._zod).deferred??(p.deferred=[]);for(const v of g._zod.deferred)v();return g}return Object.defineProperty(s,"init",{value:l}),Object.defineProperty(s,Symbol.hasInstance,{value:m=>{var p,g;return o!=null&&o.Parent&&m instanceof o.Parent?!0:(g=(p=m==null?void 0:m._zod)==null?void 0:p.traits)==null?void 0:g.has(i)}}),Object.defineProperty(s,"name",{value:i}),s}const fm=Symbol("zod_brand");class ur extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class bc extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}}(S_=globalThis).__zod_globalConfig??(S_.__zod_globalConfig={});const Uo=globalThis.__zod_globalConfig;function _t(i){return i&&Object.assign(Uo,i),Uo}function Hw(i){return i}function Bw(i){return i}function Jw(i){}function Gw(i){throw new Error("Unexpected value in exhaustive check")}function Yw(i){}function mm(i){const r=Object.values(i).filter(l=>typeof l=="number");return Object.entries(i).filter(([l,n])=>r.indexOf(+l)===-1).map(([l,n])=>n)}function B(i,r="|"){return i.map(o=>oe(o)).join(r)}function uc(i,r){return typeof r=="bigint"?r.toString():r}function Ao(i){return{get value(){{const r=i();return Object.defineProperty(this,"value",{value:r}),r}}}}function hr(i){return i==null}function _c(i){const r=i.startsWith("^")?1:0,o=i.endsWith("$")?i.length-1:i.length;return i.slice(r,o)}function uS(i,r){const o=i/r,l=Math.round(o),n=Number.EPSILON*Math.max(Math.abs(o),1);return Math.abs(o-l)<n?0:o-l}const $_=Symbol("evaluating");function Se(i,r,o){let l;Object.defineProperty(i,r,{get(){if(l!==$_)return l===void 0&&(l=$_,l=o()),l},set(n){Object.defineProperty(i,r,{value:n})},configurable:!0})}function Xw(i){return Object.create(Object.getPrototypeOf(i),Object.getOwnPropertyDescriptors(i))}function Ci(i,r,o){Object.defineProperty(i,r,{value:o,writable:!0,enumerable:!0,configurable:!0})}function qn(...i){const r={};for(const o of i){const l=Object.getOwnPropertyDescriptors(o);Object.assign(r,l)}return Object.defineProperties({},r)}function Vw(i){return qn(i._zod.def)}function Pw(i,r){return r?r.reduce((o,l)=>o==null?void 0:o[l],i):i}function Qw(i){const r=Object.keys(i),o=r.map(l=>i[l]);return Promise.all(o).then(l=>{const n={};for(let u=0;u<r.length;u++)n[r[u]]=l[u];return n})}function Kw(i=10){const r="abcdefghijklmnopqrstuvwxyz";let o="";for(let l=0;l<i;l++)o+=r[Math.floor(Math.random()*r.length)];return o}function tm(i){return JSON.stringify(i)}function cS(i){return i.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const pm="captureStackTrace"in Error?Error.captureStackTrace:(...i)=>{};function ra(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}const sS=Ao(()=>{var i;if(Uo.jitless||typeof navigator<"u"&&((i=navigator==null?void 0:navigator.userAgent)!=null&&i.includes("Cloudflare")))return!1;try{const r=Function;return new r(""),!0}catch{return!1}});function cr(i){if(ra(i)===!1)return!1;const r=i.constructor;if(r===void 0||typeof r!="function")return!0;const o=r.prototype;return!(ra(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function Sc(i){return cr(i)?{...i}:Array.isArray(i)?[...i]:i instanceof Map?new Map(i):i instanceof Set?new Set(i):i}function Fw(i){let r=0;for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&r++;return r}const Ww=i=>{const r=typeof i;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(i)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(i)?"array":i===null?"null":i.then&&typeof i.then=="function"&&i.catch&&typeof i.catch=="function"?"promise":typeof Map<"u"&&i instanceof Map?"map":typeof Set<"u"&&i instanceof Set?"set":typeof Date<"u"&&i instanceof Date?"date":typeof File<"u"&&i instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${r}`)}},cc=new Set(["string","number","symbol"]),dS=new Set(["string","number","bigint","boolean","symbol","undefined"]);function oi(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function fn(i,r,o){const l=new i._zod.constr(r??i._zod.def);return(!r||o!=null&&o.parent)&&(l._zod.parent=i),l}function L(i){const r=i;if(!r)return{};if(typeof r=="string")return{error:()=>r};if((r==null?void 0:r.message)!==void 0){if((r==null?void 0:r.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function e4(i){let r;return new Proxy({},{get(o,l,n){return r??(r=i()),Reflect.get(r,l,n)},set(o,l,n,u){return r??(r=i()),Reflect.set(r,l,n,u)},has(o,l){return r??(r=i()),Reflect.has(r,l)},deleteProperty(o,l){return r??(r=i()),Reflect.deleteProperty(r,l)},ownKeys(o){return r??(r=i()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(o,l){return r??(r=i()),Reflect.getOwnPropertyDescriptor(r,l)},defineProperty(o,l,n){return r??(r=i()),Reflect.defineProperty(r,l,n)}})}function oe(i){return typeof i=="bigint"?i.toString()+"n":typeof i=="string"?`"${i}"`:`${i}`}function fS(i){return Object.keys(i).filter(r=>i[r]._zod.optin==="optional"&&i[r]._zod.optout==="optional")}const mS={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]},pS={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function hS(i,r){const o=i._zod.def,l=o.checks;if(l&&l.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const u=qn(i._zod.def,{get shape(){const s={};for(const m in r){if(!(m in o.shape))throw new Error(`Unrecognized key: "${m}"`);r[m]&&(s[m]=o.shape[m])}return Ci(this,"shape",s),s},checks:[]});return fn(i,u)}function gS(i,r){const o=i._zod.def,l=o.checks;if(l&&l.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const u=qn(i._zod.def,{get shape(){const s={...i._zod.def.shape};for(const m in r){if(!(m in o.shape))throw new Error(`Unrecognized key: "${m}"`);r[m]&&delete s[m]}return Ci(this,"shape",s),s},checks:[]});return fn(i,u)}function vS(i,r){if(!cr(r))throw new Error("Invalid input to extend: expected a plain object");const o=i._zod.def.checks;if(o&&o.length>0){const u=i._zod.def.shape;for(const s in r)if(Object.getOwnPropertyDescriptor(u,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const n=qn(i._zod.def,{get shape(){const u={...i._zod.def.shape,...r};return Ci(this,"shape",u),u}});return fn(i,n)}function yS(i,r){if(!cr(r))throw new Error("Invalid input to safeExtend: expected a plain object");const o=qn(i._zod.def,{get shape(){const l={...i._zod.def.shape,...r};return Ci(this,"shape",l),l}});return fn(i,o)}function bS(i,r){var l;if((l=i._zod.def.checks)!=null&&l.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const o=qn(i._zod.def,{get shape(){const n={...i._zod.def.shape,...r._zod.def.shape};return Ci(this,"shape",n),n},get catchall(){return r._zod.def.catchall},checks:r._zod.def.checks??[]});return fn(i,o)}function _S(i,r,o){const n=r._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const s=qn(r._zod.def,{get shape(){const m=r._zod.def.shape,p={...m};if(o)for(const g in o){if(!(g in m))throw new Error(`Unrecognized key: "${g}"`);o[g]&&(p[g]=i?new i({type:"optional",innerType:m[g]}):m[g])}else for(const g in m)p[g]=i?new i({type:"optional",innerType:m[g]}):m[g];return Ci(this,"shape",p),p},checks:[]});return fn(r,s)}function SS(i,r,o){const l=qn(r._zod.def,{get shape(){const n=r._zod.def.shape,u={...n};if(o)for(const s in o){if(!(s in u))throw new Error(`Unrecognized key: "${s}"`);o[s]&&(u[s]=new i({type:"nonoptional",innerType:n[s]}))}else for(const s in n)u[s]=new i({type:"nonoptional",innerType:n[s]});return Ci(this,"shape",u),u}});return fn(r,l)}function lr(i,r=0){var o;if(i.aborted===!0)return!0;for(let l=r;l<i.issues.length;l++)if(((o=i.issues[l])==null?void 0:o.continue)!==!0)return!0;return!1}function $S(i,r=0){var o;if(i.aborted===!0)return!0;for(let l=r;l<i.issues.length;l++)if(((o=i.issues[l])==null?void 0:o.continue)===!1)return!0;return!1}function xn(i,r){return r.map(o=>{var l;return(l=o).path??(l.path=[]),o.path.unshift(i),o})}function Eo(i){return typeof i=="string"?i:i==null?void 0:i.message}function dn(i,r,o){var p,g,v,b,_,z;const l=i.message?i.message:Eo((v=(g=(p=i.inst)==null?void 0:p._zod.def)==null?void 0:g.error)==null?void 0:v.call(g,i))??Eo((b=r==null?void 0:r.error)==null?void 0:b.call(r,i))??Eo((_=o.customError)==null?void 0:_.call(o,i))??Eo((z=o.localeError)==null?void 0:z.call(o,i))??"Invalid input",{inst:n,continue:u,input:s,...m}=i;return m.path??(m.path=[]),m.message=l,r!=null&&r.reportInput&&(m.input=s),m}function $c(i){return i instanceof Set?"set":i instanceof Map?"map":i instanceof File?"file":"unknown"}function kc(i){return Array.isArray(i)?"array":typeof i=="string"?"string":"unknown"}function ue(i){const r=typeof i;switch(r){case"number":return Number.isNaN(i)?"nan":"number";case"object":{if(i===null)return"null";if(Array.isArray(i))return"array";const o=i;if(o&&Object.getPrototypeOf(o)!==Object.prototype&&"constructor"in o&&o.constructor)return o.constructor.name}}return r}function aa(...i){const[r,o,l]=i;return typeof r=="string"?{message:r,code:"custom",input:o,inst:l}:{...r}}function t4(i){return Object.entries(i).filter(([r,o])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function kS(i){const r=atob(i),o=new Uint8Array(r.length);for(let l=0;l<r.length;l++)o[l]=r.charCodeAt(l);return o}function zS(i){let r="";for(let o=0;o<i.length;o++)r+=String.fromCharCode(i[o]);return btoa(r)}function n4(i){const r=i.replace(/-/g,"+").replace(/_/g,"/"),o="=".repeat((4-r.length%4)%4);return kS(r+o)}function i4(i){return zS(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function r4(i){const r=i.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");const o=new Uint8Array(r.length/2);for(let l=0;l<r.length;l+=2)o[l/2]=Number.parseInt(r.slice(l,l+2),16);return o}function a4(i){return Array.from(i).map(r=>r.toString(16).padStart(2,"0")).join("")}class o4{constructor(...r){}}const hm=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:pS,Class:o4,NUMBER_FORMAT_RANGES:mS,aborted:lr,allowsEval:sS,assert:Yw,assertEqual:Hw,assertIs:Jw,assertNever:Gw,assertNotEqual:Bw,assignProp:Ci,base64ToUint8Array:kS,base64urlToUint8Array:n4,cached:Ao,captureStackTrace:pm,cleanEnum:t4,cleanRegex:_c,clone:fn,cloneDef:Vw,createTransparentProxy:e4,defineLazy:Se,esc:tm,escapeRegex:oi,explicitlyAborted:$S,extend:vS,finalizeIssue:dn,floatSafeRemainder:uS,getElementAtPath:Pw,getEnumValues:mm,getLengthableOrigin:kc,getParsedType:Ww,getSizableOrigin:$c,hexToUint8Array:r4,isObject:ra,isPlainObject:cr,issue:aa,joinValues:B,jsonStringifyReplacer:uc,merge:bS,mergeDefs:qn,normalizeParams:L,nullish:hr,numKeys:Fw,objectClone:Xw,omit:gS,optionalKeys:fS,parsedType:ue,partial:_S,pick:hS,prefixIssues:xn,primitiveTypes:dS,promiseAllObject:Qw,propertyKeyTypes:cc,randomString:Kw,required:SS,safeExtend:yS,shallowClone:Sc,slugify:cS,stringifyPrimitive:oe,uint8ArrayToBase64:zS,uint8ArrayToBase64url:i4,uint8ArrayToHex:a4,unwrapMessage:Eo},Symbol.toStringTag,{value:"Module"})),xS=(i,r)=>{i.name="$ZodError",Object.defineProperty(i,"_zod",{value:i._zod,enumerable:!1}),Object.defineProperty(i,"issues",{value:r,enumerable:!1}),i.message=JSON.stringify(r,uc,2),Object.defineProperty(i,"toString",{value:()=>i.message,enumerable:!1})},gm=T("$ZodError",xS),mn=T("$ZodError",xS,{Parent:Error});function zc(i,r=o=>o.message){const o={},l=[];for(const n of i.issues)n.path.length>0?(o[n.path[0]]=o[n.path[0]]||[],o[n.path[0]].push(r(n))):l.push(r(n));return{formErrors:l,fieldErrors:o}}function xc(i,r=o=>o.message){const o={_errors:[]},l=(n,u=[])=>{for(const s of n.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(m=>l({issues:m},[...u,...s.path]));else if(s.code==="invalid_key")l({issues:s.issues},[...u,...s.path]);else if(s.code==="invalid_element")l({issues:s.issues},[...u,...s.path]);else{const m=[...u,...s.path];if(m.length===0)o._errors.push(r(s));else{let p=o,g=0;for(;g<m.length;){const v=m[g];g===m.length-1?(p[v]=p[v]||{_errors:[]},p[v]._errors.push(r(s))):p[v]=p[v]||{_errors:[]},p=p[v],g++}}}};return l(i),o}function vm(i,r=o=>o.message){const o={errors:[]},l=(n,u=[])=>{var s,m;for(const p of n.issues)if(p.code==="invalid_union"&&p.errors.length)p.errors.map(g=>l({issues:g},[...u,...p.path]));else if(p.code==="invalid_key")l({issues:p.issues},[...u,...p.path]);else if(p.code==="invalid_element")l({issues:p.issues},[...u,...p.path]);else{const g=[...u,...p.path];if(g.length===0){o.errors.push(r(p));continue}let v=o,b=0;for(;b<g.length;){const _=g[b],z=b===g.length-1;typeof _=="string"?(v.properties??(v.properties={}),(s=v.properties)[_]??(s[_]={errors:[]}),v=v.properties[_]):(v.items??(v.items=[]),(m=v.items)[_]??(m[_]={errors:[]}),v=v.items[_]),z&&v.errors.push(r(p)),b++}}};return l(i),o}function wS(i){const r=[],o=i.map(l=>typeof l=="object"?l.key:l);for(const l of o)typeof l=="number"?r.push(`[${l}]`):typeof l=="symbol"?r.push(`[${JSON.stringify(String(l))}]`):/[^\w$]/.test(l)?r.push(`[${JSON.stringify(l)}]`):(r.length&&r.push("."),r.push(l));return r.join("")}function ym(i){var l;const r=[],o=[...i.issues].sort((n,u)=>(n.path??[]).length-(u.path??[]).length);for(const n of o)r.push(`✖ ${n.message}`),(l=n.path)!=null&&l.length&&r.push(` → at ${wS(n.path)}`);return r.join(`
56
+ `)}const Io=i=>(r,o,l,n)=>{const u=l?{...l,async:!1}:{async:!1},s=r._zod.run({value:o,issues:[]},u);if(s instanceof Promise)throw new ur;if(s.issues.length){const m=new((n==null?void 0:n.Err)??i)(s.issues.map(p=>dn(p,u,_t())));throw pm(m,n==null?void 0:n.callee),m}return s.value},nm=Io(mn),Ro=i=>async(r,o,l,n)=>{const u=l?{...l,async:!0}:{async:!0};let s=r._zod.run({value:o,issues:[]},u);if(s instanceof Promise&&(s=await s),s.issues.length){const m=new((n==null?void 0:n.Err)??i)(s.issues.map(p=>dn(p,u,_t())));throw pm(m,n==null?void 0:n.callee),m}return s.value},im=Ro(mn),Co=i=>(r,o,l)=>{const n=l?{...l,async:!1}:{async:!1},u=r._zod.run({value:o,issues:[]},n);if(u instanceof Promise)throw new ur;return u.issues.length?{success:!1,error:new(i??gm)(u.issues.map(s=>dn(s,n,_t())))}:{success:!0,data:u.value}},bm=Co(mn),Mo=i=>async(r,o,l)=>{const n=l?{...l,async:!0}:{async:!0};let u=r._zod.run({value:o,issues:[]},n);return u instanceof Promise&&(u=await u),u.issues.length?{success:!1,error:new i(u.issues.map(s=>dn(s,n,_t())))}:{success:!0,data:u.value}},TS=Mo(mn),_m=i=>(r,o,l)=>{const n=l?{...l,direction:"backward"}:{direction:"backward"};return Io(i)(r,o,n)},l4=_m(mn),Sm=i=>(r,o,l)=>Io(i)(r,o,l),u4=Sm(mn),$m=i=>async(r,o,l)=>{const n=l?{...l,direction:"backward"}:{direction:"backward"};return Ro(i)(r,o,n)},c4=$m(mn),km=i=>async(r,o,l)=>Ro(i)(r,o,l),s4=km(mn),zm=i=>(r,o,l)=>{const n=l?{...l,direction:"backward"}:{direction:"backward"};return Co(i)(r,o,n)},d4=zm(mn),xm=i=>(r,o,l)=>Co(i)(r,o,l),f4=xm(mn),wm=i=>async(r,o,l)=>{const n=l?{...l,direction:"backward"}:{direction:"backward"};return Mo(i)(r,o,n)},m4=wm(mn),Tm=i=>async(r,o,l)=>Mo(i)(r,o,l),p4=Tm(mn),ES=/^[cC][0-9a-z]{6,}$/,OS=/^[0-9a-z]+$/,US=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,DS=/^[0-9a-vA-V]{20}$/,jS=/^[A-Za-z0-9]{27}$/,NS=/^[a-zA-Z0-9_-]{21}$/,AS=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,h4=/^[-+]?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)?)??$/,IS=/^([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})$/,oa=i=>i?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${i}[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)$/,g4=oa(4),v4=oa(6),y4=oa(7),RS=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,b4=/^[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])?)*$/,_4=/^(([^<>()\[\]\\.,;:\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,}))$/,CS=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,S4=CS,$4=/^[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])?)*$/,k4="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function MS(){return new RegExp(k4,"u")}const ZS=/^(?:(?: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])$/,qS=/^(([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}|:))$/,LS=i=>{const r=oi(i??":");return new RegExp(`^(?:[0-9A-F]{2}${r}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${r}){5}[0-9a-f]{2}$`)},HS=/^((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])$/,BS=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,JS=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Em=/^[A-Za-z0-9_-]*$/,GS=/^(?=.{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])?)*\.?$/,YS=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Om=/^https?$/,XS=/^\+[1-9]\d{6,14}$/,VS="(?:(?:\\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])))",PS=new RegExp(`^${VS}$`);function QS(i){const r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof i.precision=="number"?i.precision===-1?`${r}`:i.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${i.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function KS(i){return new RegExp(`^${QS(i)}$`)}function FS(i){const r=QS({precision:i.precision}),o=["Z"];i.local&&o.push(""),i.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const l=`${r}(?:${o.join("|")})`;return new RegExp(`^${VS}T(?:${l})$`)}const WS=i=>{const r=i?`[\\s\\S]{${(i==null?void 0:i.minimum)??0},${(i==null?void 0:i.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},e$=/^-?\d+n?$/,t$=/^-?\d+$/,Um=/^-?\d+(?:\.\d+)?$/,n$=/^(?:true|false)$/i,i$=/^null$/i,r$=/^undefined$/i,a$=/^[^A-Z]*$/,o$=/^[^a-z]*$/,l$=/^[0-9a-fA-F]*$/;function Zo(i,r){return new RegExp(`^[A-Za-z0-9+/]{${i}}${r}$`)}function qo(i){return new RegExp(`^[A-Za-z0-9_-]{${i}}$`)}const z4=/^[0-9a-fA-F]{32}$/,x4=Zo(22,"=="),w4=qo(22),T4=/^[0-9a-fA-F]{40}$/,E4=Zo(27,"="),O4=qo(27),U4=/^[0-9a-fA-F]{64}$/,D4=Zo(43,"="),j4=qo(43),N4=/^[0-9a-fA-F]{96}$/,A4=Zo(64,""),I4=qo(64),R4=/^[0-9a-fA-F]{128}$/,C4=Zo(86,"=="),M4=qo(86),wc=Object.freeze(Object.defineProperty({__proto__:null,base64:JS,base64url:Em,bigint:e$,boolean:n$,browserEmail:$4,cidrv4:HS,cidrv6:BS,cuid:ES,cuid2:OS,date:PS,datetime:FS,domain:YS,duration:AS,e164:XS,email:RS,emoji:MS,extendedDuration:h4,guid:IS,hex:l$,hostname:GS,html5Email:b4,httpProtocol:Om,idnEmail:S4,integer:t$,ipv4:ZS,ipv6:qS,ksuid:jS,lowercase:a$,mac:LS,md5_base64:x4,md5_base64url:w4,md5_hex:z4,nanoid:NS,null:i$,number:Um,rfc5322Email:_4,sha1_base64:E4,sha1_base64url:O4,sha1_hex:T4,sha256_base64:D4,sha256_base64url:j4,sha256_hex:U4,sha384_base64:A4,sha384_base64url:I4,sha384_hex:N4,sha512_base64:C4,sha512_base64url:M4,sha512_hex:R4,string:WS,time:KS,ulid:US,undefined:r$,unicodeEmail:CS,uppercase:o$,uuid:oa,uuid4:g4,uuid6:v4,uuid7:y4,xid:DS},Symbol.toStringTag,{value:"Module"})),at=T("$ZodCheck",(i,r)=>{var o;i._zod??(i._zod={}),i._zod.def=r,(o=i._zod).onattach??(o.onattach=[])}),u$={number:"number",bigint:"bigint",object:"date"},Dm=T("$ZodCheckLessThan",(i,r)=>{at.init(i,r);const o=u$[typeof r.value];i._zod.onattach.push(l=>{const n=l._zod.bag,u=(r.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<u&&(r.inclusive?n.maximum=r.value:n.exclusiveMaximum=r.value)}),i._zod.check=l=>{(r.inclusive?l.value<=r.value:l.value<r.value)||l.issues.push({origin:o,code:"too_big",maximum:typeof r.value=="object"?r.value.getTime():r.value,input:l.value,inclusive:r.inclusive,inst:i,continue:!r.abort})}}),jm=T("$ZodCheckGreaterThan",(i,r)=>{at.init(i,r);const o=u$[typeof r.value];i._zod.onattach.push(l=>{const n=l._zod.bag,u=(r.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>u&&(r.inclusive?n.minimum=r.value:n.exclusiveMinimum=r.value)}),i._zod.check=l=>{(r.inclusive?l.value>=r.value:l.value>r.value)||l.issues.push({origin:o,code:"too_small",minimum:typeof r.value=="object"?r.value.getTime():r.value,input:l.value,inclusive:r.inclusive,inst:i,continue:!r.abort})}}),c$=T("$ZodCheckMultipleOf",(i,r)=>{at.init(i,r),i._zod.onattach.push(o=>{var l;(l=o._zod.bag).multipleOf??(l.multipleOf=r.value)}),i._zod.check=o=>{if(typeof o.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof o.value=="bigint"?o.value%r.value===BigInt(0):uS(o.value,r.value)===0)||o.issues.push({origin:typeof o.value,code:"not_multiple_of",divisor:r.value,input:o.value,inst:i,continue:!r.abort})}}),s$=T("$ZodCheckNumberFormat",(i,r)=>{var s;at.init(i,r),r.format=r.format||"float64";const o=(s=r.format)==null?void 0:s.includes("int"),l=o?"int":"number",[n,u]=mS[r.format];i._zod.onattach.push(m=>{const p=m._zod.bag;p.format=r.format,p.minimum=n,p.maximum=u,o&&(p.pattern=t$)}),i._zod.check=m=>{const p=m.value;if(o){if(!Number.isInteger(p)){m.issues.push({expected:l,format:r.format,code:"invalid_type",continue:!1,input:p,inst:i});return}if(!Number.isSafeInteger(p)){p>0?m.issues.push({input:p,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:i,origin:l,inclusive:!0,continue:!r.abort}):m.issues.push({input:p,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:i,origin:l,inclusive:!0,continue:!r.abort});return}}p<n&&m.issues.push({origin:"number",input:p,code:"too_small",minimum:n,inclusive:!0,inst:i,continue:!r.abort}),p>u&&m.issues.push({origin:"number",input:p,code:"too_big",maximum:u,inclusive:!0,inst:i,continue:!r.abort})}}),d$=T("$ZodCheckBigIntFormat",(i,r)=>{at.init(i,r);const[o,l]=pS[r.format];i._zod.onattach.push(n=>{const u=n._zod.bag;u.format=r.format,u.minimum=o,u.maximum=l}),i._zod.check=n=>{const u=n.value;u<o&&n.issues.push({origin:"bigint",input:u,code:"too_small",minimum:o,inclusive:!0,inst:i,continue:!r.abort}),u>l&&n.issues.push({origin:"bigint",input:u,code:"too_big",maximum:l,inclusive:!0,inst:i,continue:!r.abort})}}),f$=T("$ZodCheckMaxSize",(i,r)=>{var o;at.init(i,r),(o=i._zod.def).when??(o.when=l=>{const n=l.value;return!hr(n)&&n.size!==void 0}),i._zod.onattach.push(l=>{const n=l._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<n&&(l._zod.bag.maximum=r.maximum)}),i._zod.check=l=>{const n=l.value;n.size<=r.maximum||l.issues.push({origin:$c(n),code:"too_big",maximum:r.maximum,inclusive:!0,input:n,inst:i,continue:!r.abort})}}),m$=T("$ZodCheckMinSize",(i,r)=>{var o;at.init(i,r),(o=i._zod.def).when??(o.when=l=>{const n=l.value;return!hr(n)&&n.size!==void 0}),i._zod.onattach.push(l=>{const n=l._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>n&&(l._zod.bag.minimum=r.minimum)}),i._zod.check=l=>{const n=l.value;n.size>=r.minimum||l.issues.push({origin:$c(n),code:"too_small",minimum:r.minimum,inclusive:!0,input:n,inst:i,continue:!r.abort})}}),p$=T("$ZodCheckSizeEquals",(i,r)=>{var o;at.init(i,r),(o=i._zod.def).when??(o.when=l=>{const n=l.value;return!hr(n)&&n.size!==void 0}),i._zod.onattach.push(l=>{const n=l._zod.bag;n.minimum=r.size,n.maximum=r.size,n.size=r.size}),i._zod.check=l=>{const n=l.value,u=n.size;if(u===r.size)return;const s=u>r.size;l.issues.push({origin:$c(n),...s?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:l.value,inst:i,continue:!r.abort})}}),h$=T("$ZodCheckMaxLength",(i,r)=>{var o;at.init(i,r),(o=i._zod.def).when??(o.when=l=>{const n=l.value;return!hr(n)&&n.length!==void 0}),i._zod.onattach.push(l=>{const n=l._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<n&&(l._zod.bag.maximum=r.maximum)}),i._zod.check=l=>{const n=l.value;if(n.length<=r.maximum)return;const s=kc(n);l.issues.push({origin:s,code:"too_big",maximum:r.maximum,inclusive:!0,input:n,inst:i,continue:!r.abort})}}),g$=T("$ZodCheckMinLength",(i,r)=>{var o;at.init(i,r),(o=i._zod.def).when??(o.when=l=>{const n=l.value;return!hr(n)&&n.length!==void 0}),i._zod.onattach.push(l=>{const n=l._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>n&&(l._zod.bag.minimum=r.minimum)}),i._zod.check=l=>{const n=l.value;if(n.length>=r.minimum)return;const s=kc(n);l.issues.push({origin:s,code:"too_small",minimum:r.minimum,inclusive:!0,input:n,inst:i,continue:!r.abort})}}),v$=T("$ZodCheckLengthEquals",(i,r)=>{var o;at.init(i,r),(o=i._zod.def).when??(o.when=l=>{const n=l.value;return!hr(n)&&n.length!==void 0}),i._zod.onattach.push(l=>{const n=l._zod.bag;n.minimum=r.length,n.maximum=r.length,n.length=r.length}),i._zod.check=l=>{const n=l.value,u=n.length;if(u===r.length)return;const s=kc(n),m=u>r.length;l.issues.push({origin:s,...m?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:l.value,inst:i,continue:!r.abort})}}),Lo=T("$ZodCheckStringFormat",(i,r)=>{var o,l;at.init(i,r),i._zod.onattach.push(n=>{const u=n._zod.bag;u.format=r.format,r.pattern&&(u.patterns??(u.patterns=new Set),u.patterns.add(r.pattern))}),r.pattern?(o=i._zod).check??(o.check=n=>{r.pattern.lastIndex=0,!r.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:r.format,input:n.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:i,continue:!r.abort})}):(l=i._zod).check??(l.check=()=>{})}),y$=T("$ZodCheckRegex",(i,r)=>{Lo.init(i,r),i._zod.check=o=>{r.pattern.lastIndex=0,!r.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:r.pattern.toString(),inst:i,continue:!r.abort})}}),b$=T("$ZodCheckLowerCase",(i,r)=>{r.pattern??(r.pattern=a$),Lo.init(i,r)}),_$=T("$ZodCheckUpperCase",(i,r)=>{r.pattern??(r.pattern=o$),Lo.init(i,r)}),S$=T("$ZodCheckIncludes",(i,r)=>{at.init(i,r);const o=oi(r.includes),l=new RegExp(typeof r.position=="number"?`^.{${r.position}}${o}`:o);r.pattern=l,i._zod.onattach.push(n=>{const u=n._zod.bag;u.patterns??(u.patterns=new Set),u.patterns.add(l)}),i._zod.check=n=>{n.value.includes(r.includes,r.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:n.value,inst:i,continue:!r.abort})}}),$$=T("$ZodCheckStartsWith",(i,r)=>{at.init(i,r);const o=new RegExp(`^${oi(r.prefix)}.*`);r.pattern??(r.pattern=o),i._zod.onattach.push(l=>{const n=l._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(o)}),i._zod.check=l=>{l.value.startsWith(r.prefix)||l.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:l.value,inst:i,continue:!r.abort})}}),k$=T("$ZodCheckEndsWith",(i,r)=>{at.init(i,r);const o=new RegExp(`.*${oi(r.suffix)}$`);r.pattern??(r.pattern=o),i._zod.onattach.push(l=>{const n=l._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(o)}),i._zod.check=l=>{l.value.endsWith(r.suffix)||l.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:l.value,inst:i,continue:!r.abort})}});function k_(i,r,o){i.issues.length&&r.issues.push(...xn(o,i.issues))}const z$=T("$ZodCheckProperty",(i,r)=>{at.init(i,r),i._zod.check=o=>{const l=r.schema._zod.run({value:o.value[r.property],issues:[]},{});if(l instanceof Promise)return l.then(n=>k_(n,o,r.property));k_(l,o,r.property)}}),x$=T("$ZodCheckMimeType",(i,r)=>{at.init(i,r);const o=new Set(r.mime);i._zod.onattach.push(l=>{l._zod.bag.mime=r.mime}),i._zod.check=l=>{o.has(l.value.type)||l.issues.push({code:"invalid_value",values:r.mime,input:l.value.type,inst:i,continue:!r.abort})}}),w$=T("$ZodCheckOverwrite",(i,r)=>{at.init(i,r),i._zod.check=o=>{o.value=r.tx(o.value)}});class T${constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}const l=r.split(`
57
57
  `).filter(s=>s),n=Math.min(...l.map(s=>s.length-s.trimStart().length)),u=l.map(s=>s.slice(n)).map(s=>" ".repeat(this.indent*2)+s);for(const s of u)this.content.push(s)}compile(){const r=Function,o=this==null?void 0:this.args,n=[...((this==null?void 0:this.content)??[""]).map(u=>` ${u}`)];return new r(...o,n.join(`
58
- `))}}const T$={major:4,minor:4,patch:1},he=T("$ZodType",(i,r)=>{var n;var o;i??(i={}),i._zod.def=r,i._zod.bag=i._zod.bag||{},i._zod.version=T$;const l=[...i._zod.def.checks??[]];i._zod.traits.has("$ZodCheck")&&l.unshift(i);for(const u of l)for(const s of u._zod.onattach)s(i);if(l.length===0)(o=i._zod).deferred??(o.deferred=[]),(n=i._zod.deferred)==null||n.push(()=>{i._zod.run=i._zod.parse});else{const u=(m,p,g)=>{let v=rr(m),b;for(const _ of p){if(_._zod.def.when){if(SS(m)||!_._zod.def.when(m))continue}else if(v)continue;const z=m.issues.length,x=_._zod.check(m);if(x instanceof Promise&&(g==null?void 0:g.async)===!1)throw new ar;if(b||x instanceof Promise)b=(b??Promise.resolve()).then(async()=>{await x,m.issues.length!==z&&(v||(v=rr(m,z)))});else{if(m.issues.length===z)continue;v||(v=rr(m,z))}}return b?b.then(()=>m):m},s=(m,p,g)=>{if(rr(m))return m.aborted=!0,m;const v=u(p,l,g);if(v instanceof Promise){if(g.async===!1)throw new ar;return v.then(b=>i._zod.parse(b,g))}return i._zod.parse(v,g)};i._zod.run=(m,p)=>{if(p.skipChecks)return i._zod.parse(m,p);if(p.direction==="backward"){const v=i._zod.parse({value:m.value,issues:[]},{...p,skipChecks:!0});return v instanceof Promise?v.then(b=>s(b,m,p)):s(v,m,p)}const g=i._zod.parse(m,p);if(g instanceof Promise){if(p.async===!1)throw new ar;return g.then(v=>u(v,l,p))}return u(g,l,p)}}ke(i,"~standard",()=>({validate:u=>{var s;try{const m=vm(i,u);return m.success?{value:m.data}:{issues:(s=m.error)==null?void 0:s.issues}}catch{return wS(i,u).then(p=>{var g;return p.success?{value:p.data}:{issues:(g=p.error)==null?void 0:g.issues}})}},vendor:"zod",version:1}))}),qo=T("$ZodString",(i,r)=>{var o;he.init(i,r),i._zod.pattern=[...((o=i==null?void 0:i._zod.bag)==null?void 0:o.patterns)??[]].pop()??FS(i._zod.bag),i._zod.parse=(l,n)=>{if(r.coerce)try{l.value=String(l.value)}catch{}return typeof l.value=="string"||l.issues.push({expected:"string",code:"invalid_type",input:l.value,inst:i}),l}}),We=T("$ZodStringFormat",(i,r)=>{Zo.init(i,r),qo.init(i,r)}),E$=T("$ZodGUID",(i,r)=>{r.pattern??(r.pattern=AS),We.init(i,r)}),O$=T("$ZodUUID",(i,r)=>{if(r.version){const l={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(l===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=ia(l))}else r.pattern??(r.pattern=ia());We.init(i,r)}),U$=T("$ZodEmail",(i,r)=>{r.pattern??(r.pattern=IS),We.init(i,r)}),D$=T("$ZodURL",(i,r)=>{We.init(i,r),i._zod.check=o=>{var l;try{const n=o.value.trim();if(!r.normalize&&((l=r.protocol)==null?void 0:l.source)===Tm.source&&!/^https?:\/\//i.test(n)){o.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:o.value,inst:i,continue:!r.abort});return}const u=new URL(n);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(u.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:o.value,inst:i,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(u.protocol.endsWith(":")?u.protocol.slice(0,-1):u.protocol)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:o.value,inst:i,continue:!r.abort})),r.normalize?o.value=u.href:o.value=n;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:i,continue:!r.abort})}}}),j$=T("$ZodEmoji",(i,r)=>{r.pattern??(r.pattern=CS()),We.init(i,r)}),N$=T("$ZodNanoID",(i,r)=>{r.pattern??(r.pattern=jS),We.init(i,r)}),A$=T("$ZodCUID",(i,r)=>{r.pattern??(r.pattern=TS),We.init(i,r)}),I$=T("$ZodCUID2",(i,r)=>{r.pattern??(r.pattern=ES),We.init(i,r)}),R$=T("$ZodULID",(i,r)=>{r.pattern??(r.pattern=OS),We.init(i,r)}),C$=T("$ZodXID",(i,r)=>{r.pattern??(r.pattern=US),We.init(i,r)}),M$=T("$ZodKSUID",(i,r)=>{r.pattern??(r.pattern=DS),We.init(i,r)}),Z$=T("$ZodISODateTime",(i,r)=>{r.pattern??(r.pattern=KS(r)),We.init(i,r)}),q$=T("$ZodISODate",(i,r)=>{r.pattern??(r.pattern=VS),We.init(i,r)}),L$=T("$ZodISOTime",(i,r)=>{r.pattern??(r.pattern=QS(r)),We.init(i,r)}),H$=T("$ZodISODuration",(i,r)=>{r.pattern??(r.pattern=NS),We.init(i,r)}),B$=T("$ZodIPv4",(i,r)=>{r.pattern??(r.pattern=MS),We.init(i,r),i._zod.bag.format="ipv4"}),J$=T("$ZodIPv6",(i,r)=>{r.pattern??(r.pattern=ZS),We.init(i,r),i._zod.bag.format="ipv6",i._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:i,continue:!r.abort})}}}),G$=T("$ZodMAC",(i,r)=>{r.pattern??(r.pattern=qS(r.delimiter)),We.init(i,r),i._zod.bag.format="mac"}),Y$=T("$ZodCIDRv4",(i,r)=>{r.pattern??(r.pattern=LS),We.init(i,r)}),X$=T("$ZodCIDRv6",(i,r)=>{r.pattern??(r.pattern=HS),We.init(i,r),i._zod.check=o=>{const l=o.value.split("/");try{if(l.length!==2)throw new Error;const[n,u]=l;if(!u)throw new Error;const s=Number(u);if(`${s}`!==u)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${n}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:i,continue:!r.abort})}}});function Dm(i){if(i==="")return!0;if(/\s/.test(i)||i.length%4!==0)return!1;try{return atob(i),!0}catch{return!1}}const V$=T("$ZodBase64",(i,r)=>{r.pattern??(r.pattern=BS),We.init(i,r),i._zod.bag.contentEncoding="base64",i._zod.check=o=>{Dm(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:i,continue:!r.abort})}});function P$(i){if(!wm.test(i))return!1;const r=i.replace(/[-_]/g,l=>l==="-"?"+":"/"),o=r.padEnd(Math.ceil(r.length/4)*4,"=");return Dm(o)}const Q$=T("$ZodBase64URL",(i,r)=>{r.pattern??(r.pattern=wm),We.init(i,r),i._zod.bag.contentEncoding="base64url",i._zod.check=o=>{P$(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:i,continue:!r.abort})}}),K$=T("$ZodE164",(i,r)=>{r.pattern??(r.pattern=YS),We.init(i,r)});function F$(i,r=null){try{const o=i.split(".");if(o.length!==3)return!1;const[l]=o;if(!l)return!1;const n=JSON.parse(atob(l));return!("typ"in n&&(n==null?void 0:n.typ)!=="JWT"||!n.alg||r&&(!("alg"in n)||n.alg!==r))}catch{return!1}}const W$=T("$ZodJWT",(i,r)=>{We.init(i,r),i._zod.check=o=>{F$(o.value,r.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:i,continue:!r.abort})}}),ek=T("$ZodCustomStringFormat",(i,r)=>{We.init(i,r),i._zod.check=o=>{r.fn(o.value)||o.issues.push({code:"invalid_format",format:r.format,input:o.value,inst:i,continue:!r.abort})}}),jm=T("$ZodNumber",(i,r)=>{he.init(i,r),i._zod.pattern=i._zod.bag.pattern??Em,i._zod.parse=(o,l)=>{if(r.coerce)try{o.value=Number(o.value)}catch{}const n=o.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return o;const u=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return o.issues.push({expected:"number",code:"invalid_type",input:n,inst:i,...u?{received:u}:{}}),o}}),tk=T("$ZodNumberFormat",(i,r)=>{c$.init(i,r),jm.init(i,r)}),Nm=T("$ZodBoolean",(i,r)=>{he.init(i,r),i._zod.pattern=t$,i._zod.parse=(o,l)=>{if(r.coerce)try{o.value=!!o.value}catch{}const n=o.value;return typeof n=="boolean"||o.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:i}),o}}),Am=T("$ZodBigInt",(i,r)=>{he.init(i,r),i._zod.pattern=WS,i._zod.parse=(o,l)=>{if(r.coerce)try{o.value=BigInt(o.value)}catch{}return typeof o.value=="bigint"||o.issues.push({expected:"bigint",code:"invalid_type",input:o.value,inst:i}),o}}),nk=T("$ZodBigIntFormat",(i,r)=>{s$.init(i,r),Am.init(i,r)}),ik=T("$ZodSymbol",(i,r)=>{he.init(i,r),i._zod.parse=(o,l)=>{const n=o.value;return typeof n=="symbol"||o.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:i}),o}}),rk=T("$ZodUndefined",(i,r)=>{he.init(i,r),i._zod.pattern=i$,i._zod.values=new Set([void 0]),i._zod.parse=(o,l)=>{const n=o.value;return typeof n>"u"||o.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:i}),o}}),ak=T("$ZodNull",(i,r)=>{he.init(i,r),i._zod.pattern=n$,i._zod.values=new Set([null]),i._zod.parse=(o,l)=>{const n=o.value;return n===null||o.issues.push({expected:"null",code:"invalid_type",input:n,inst:i}),o}}),ok=T("$ZodAny",(i,r)=>{he.init(i,r),i._zod.parse=o=>o}),lk=T("$ZodUnknown",(i,r)=>{he.init(i,r),i._zod.parse=o=>o}),uk=T("$ZodNever",(i,r)=>{he.init(i,r),i._zod.parse=(o,l)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:i}),o)}),ck=T("$ZodVoid",(i,r)=>{he.init(i,r),i._zod.parse=(o,l)=>{const n=o.value;return typeof n>"u"||o.issues.push({expected:"void",code:"invalid_type",input:n,inst:i}),o}}),sk=T("$ZodDate",(i,r)=>{he.init(i,r),i._zod.parse=(o,l)=>{if(r.coerce)try{o.value=new Date(o.value)}catch{}const n=o.value,u=n instanceof Date;return u&&!Number.isNaN(n.getTime())||o.issues.push({expected:"date",code:"invalid_type",input:n,...u?{received:"Invalid Date"}:{},inst:i}),o}});function k_(i,r,o){i.issues.length&&r.issues.push(...Sn(o,i.issues)),r.value[o]=i.value}const dk=T("$ZodArray",(i,r)=>{he.init(i,r),i._zod.parse=(o,l)=>{const n=o.value;if(!Array.isArray(n))return o.issues.push({expected:"array",code:"invalid_type",input:n,inst:i}),o;o.value=Array(n.length);const u=[];for(let s=0;s<n.length;s++){const m=n[s],p=r.element._zod.run({value:m,issues:[]},l);p instanceof Promise?u.push(p.then(g=>k_(g,o,s))):k_(p,o,s)}return u.length?Promise.all(u).then(()=>o):o}});function lc(i,r,o,l,n,u){const s=o in l;if(i.issues.length){if(n&&u&&!s)return;r.issues.push(...Sn(o,i.issues))}if(!s&&!n){i.issues.length||r.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[o]});return}i.value===void 0?s&&(r.value[o]=void 0):r.value[o]=i.value}function fk(i){var l,n,u,s;const r=Object.keys(i.shape);for(const m of r)if(!((s=(u=(n=(l=i.shape)==null?void 0:l[m])==null?void 0:n._zod)==null?void 0:u.traits)!=null&&s.has("$ZodType")))throw new Error(`Invalid element at key "${m}": expected a Zod schema`);const o=dS(i.shape);return{...i,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(o)}}function mk(i,r,o,l,n,u){const s=[],m=n.keySet,p=n.catchall._zod,g=p.def.type,v=p.optin==="optional",b=p.optout==="optional";for(const _ in r){if(_==="__proto__"||m.has(_))continue;if(g==="never"){s.push(_);continue}const z=p.run({value:r[_],issues:[]},l);z instanceof Promise?i.push(z.then(x=>lc(x,o,_,r,v,b))):lc(z,o,_,r,v,b)}return s.length&&o.issues.push({code:"unrecognized_keys",keys:s,input:r,inst:u}),i.length?Promise.all(i).then(()=>o):o}const pk=T("$ZodObject",(i,r)=>{he.init(i,r);const o=Object.getOwnPropertyDescriptor(r,"shape");if(!(o!=null&&o.get)){const m=r.shape;Object.defineProperty(r,"shape",{get:()=>{const p={...m};return Object.defineProperty(r,"shape",{value:p}),p}})}const l=jo(()=>fk(r));ke(i._zod,"propValues",()=>{const m=r.shape,p={};for(const g in m){const v=m[g]._zod;if(v.values){p[g]??(p[g]=new Set);for(const b of v.values)p[g].add(b)}}return p});const n=ta,u=r.catchall;let s;i._zod.parse=(m,p)=>{s??(s=l.value);const g=m.value;if(!n(g))return m.issues.push({expected:"object",code:"invalid_type",input:g,inst:i}),m;m.value={};const v=[],b=s.shape;for(const _ of s.keys){const z=b[_],x=z._zod.optin==="optional",H=z._zod.optout==="optional",J=z._zod.run({value:g[_],issues:[]},p);J instanceof Promise?v.push(J.then(F=>lc(F,m,_,g,x,H))):lc(J,m,_,g,x,H)}return u?mk(v,g,m,p,l.value,i):v.length?Promise.all(v).then(()=>m):m}}),hk=T("$ZodObjectJIT",(i,r)=>{pk.init(i,r);const o=i._zod.parse,l=jo(()=>fk(r)),n=_=>{var de,be;const z=new w$(["shape","payload","ctx"]),x=l.value,H=Ee=>{const ue=Wf(Ee);return`shape[${ue}]._zod.run({ value: input[${ue}], issues: [] }, ctx)`};z.write("const input = payload.value;");const J=Object.create(null);let F=0;for(const Ee of x.keys)J[Ee]=`key_${F++}`;z.write("const newResult = {};");for(const Ee of x.keys){const ue=J[Ee],G=Wf(Ee),ge=_[Ee],Ae=((de=ge==null?void 0:ge._zod)==null?void 0:de.optin)==="optional",Ut=((be=ge==null?void 0:ge._zod)==null?void 0:be.optout)==="optional";z.write(`const ${ue} = ${H(Ee)};`),Ae&&Ut?z.write(`
59
- if (${ue}.issues.length) {
58
+ `))}}const E$={major:4,minor:4,patch:1},me=T("$ZodType",(i,r)=>{var n;var o;i??(i={}),i._zod.def=r,i._zod.bag=i._zod.bag||{},i._zod.version=E$;const l=[...i._zod.def.checks??[]];i._zod.traits.has("$ZodCheck")&&l.unshift(i);for(const u of l)for(const s of u._zod.onattach)s(i);if(l.length===0)(o=i._zod).deferred??(o.deferred=[]),(n=i._zod.deferred)==null||n.push(()=>{i._zod.run=i._zod.parse});else{const u=(m,p,g)=>{let v=lr(m),b;for(const _ of p){if(_._zod.def.when){if($S(m)||!_._zod.def.when(m))continue}else if(v)continue;const z=m.issues.length,x=_._zod.check(m);if(x instanceof Promise&&(g==null?void 0:g.async)===!1)throw new ur;if(b||x instanceof Promise)b=(b??Promise.resolve()).then(async()=>{await x,m.issues.length!==z&&(v||(v=lr(m,z)))});else{if(m.issues.length===z)continue;v||(v=lr(m,z))}}return b?b.then(()=>m):m},s=(m,p,g)=>{if(lr(m))return m.aborted=!0,m;const v=u(p,l,g);if(v instanceof Promise){if(g.async===!1)throw new ur;return v.then(b=>i._zod.parse(b,g))}return i._zod.parse(v,g)};i._zod.run=(m,p)=>{if(p.skipChecks)return i._zod.parse(m,p);if(p.direction==="backward"){const v=i._zod.parse({value:m.value,issues:[]},{...p,skipChecks:!0});return v instanceof Promise?v.then(b=>s(b,m,p)):s(v,m,p)}const g=i._zod.parse(m,p);if(g instanceof Promise){if(p.async===!1)throw new ur;return g.then(v=>u(v,l,p))}return u(g,l,p)}}Se(i,"~standard",()=>({validate:u=>{var s;try{const m=bm(i,u);return m.success?{value:m.data}:{issues:(s=m.error)==null?void 0:s.issues}}catch{return TS(i,u).then(p=>{var g;return p.success?{value:p.data}:{issues:(g=p.error)==null?void 0:g.issues}})}},vendor:"zod",version:1}))}),Ho=T("$ZodString",(i,r)=>{var o;me.init(i,r),i._zod.pattern=[...((o=i==null?void 0:i._zod.bag)==null?void 0:o.patterns)??[]].pop()??WS(i._zod.bag),i._zod.parse=(l,n)=>{if(r.coerce)try{l.value=String(l.value)}catch{}return typeof l.value=="string"||l.issues.push({expected:"string",code:"invalid_type",input:l.value,inst:i}),l}}),We=T("$ZodStringFormat",(i,r)=>{Lo.init(i,r),Ho.init(i,r)}),O$=T("$ZodGUID",(i,r)=>{r.pattern??(r.pattern=IS),We.init(i,r)}),U$=T("$ZodUUID",(i,r)=>{if(r.version){const l={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(l===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=oa(l))}else r.pattern??(r.pattern=oa());We.init(i,r)}),D$=T("$ZodEmail",(i,r)=>{r.pattern??(r.pattern=RS),We.init(i,r)}),j$=T("$ZodURL",(i,r)=>{We.init(i,r),i._zod.check=o=>{var l;try{const n=o.value.trim();if(!r.normalize&&((l=r.protocol)==null?void 0:l.source)===Om.source&&!/^https?:\/\//i.test(n)){o.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:o.value,inst:i,continue:!r.abort});return}const u=new URL(n);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(u.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:o.value,inst:i,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(u.protocol.endsWith(":")?u.protocol.slice(0,-1):u.protocol)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:o.value,inst:i,continue:!r.abort})),r.normalize?o.value=u.href:o.value=n;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:i,continue:!r.abort})}}}),N$=T("$ZodEmoji",(i,r)=>{r.pattern??(r.pattern=MS()),We.init(i,r)}),A$=T("$ZodNanoID",(i,r)=>{r.pattern??(r.pattern=NS),We.init(i,r)}),I$=T("$ZodCUID",(i,r)=>{r.pattern??(r.pattern=ES),We.init(i,r)}),R$=T("$ZodCUID2",(i,r)=>{r.pattern??(r.pattern=OS),We.init(i,r)}),C$=T("$ZodULID",(i,r)=>{r.pattern??(r.pattern=US),We.init(i,r)}),M$=T("$ZodXID",(i,r)=>{r.pattern??(r.pattern=DS),We.init(i,r)}),Z$=T("$ZodKSUID",(i,r)=>{r.pattern??(r.pattern=jS),We.init(i,r)}),q$=T("$ZodISODateTime",(i,r)=>{r.pattern??(r.pattern=FS(r)),We.init(i,r)}),L$=T("$ZodISODate",(i,r)=>{r.pattern??(r.pattern=PS),We.init(i,r)}),H$=T("$ZodISOTime",(i,r)=>{r.pattern??(r.pattern=KS(r)),We.init(i,r)}),B$=T("$ZodISODuration",(i,r)=>{r.pattern??(r.pattern=AS),We.init(i,r)}),J$=T("$ZodIPv4",(i,r)=>{r.pattern??(r.pattern=ZS),We.init(i,r),i._zod.bag.format="ipv4"}),G$=T("$ZodIPv6",(i,r)=>{r.pattern??(r.pattern=qS),We.init(i,r),i._zod.bag.format="ipv6",i._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:i,continue:!r.abort})}}}),Y$=T("$ZodMAC",(i,r)=>{r.pattern??(r.pattern=LS(r.delimiter)),We.init(i,r),i._zod.bag.format="mac"}),X$=T("$ZodCIDRv4",(i,r)=>{r.pattern??(r.pattern=HS),We.init(i,r)}),V$=T("$ZodCIDRv6",(i,r)=>{r.pattern??(r.pattern=BS),We.init(i,r),i._zod.check=o=>{const l=o.value.split("/");try{if(l.length!==2)throw new Error;const[n,u]=l;if(!u)throw new Error;const s=Number(u);if(`${s}`!==u)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${n}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:i,continue:!r.abort})}}});function Nm(i){if(i==="")return!0;if(/\s/.test(i)||i.length%4!==0)return!1;try{return atob(i),!0}catch{return!1}}const P$=T("$ZodBase64",(i,r)=>{r.pattern??(r.pattern=JS),We.init(i,r),i._zod.bag.contentEncoding="base64",i._zod.check=o=>{Nm(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:i,continue:!r.abort})}});function Q$(i){if(!Em.test(i))return!1;const r=i.replace(/[-_]/g,l=>l==="-"?"+":"/"),o=r.padEnd(Math.ceil(r.length/4)*4,"=");return Nm(o)}const K$=T("$ZodBase64URL",(i,r)=>{r.pattern??(r.pattern=Em),We.init(i,r),i._zod.bag.contentEncoding="base64url",i._zod.check=o=>{Q$(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:i,continue:!r.abort})}}),F$=T("$ZodE164",(i,r)=>{r.pattern??(r.pattern=XS),We.init(i,r)});function W$(i,r=null){try{const o=i.split(".");if(o.length!==3)return!1;const[l]=o;if(!l)return!1;const n=JSON.parse(atob(l));return!("typ"in n&&(n==null?void 0:n.typ)!=="JWT"||!n.alg||r&&(!("alg"in n)||n.alg!==r))}catch{return!1}}const ek=T("$ZodJWT",(i,r)=>{We.init(i,r),i._zod.check=o=>{W$(o.value,r.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:i,continue:!r.abort})}}),tk=T("$ZodCustomStringFormat",(i,r)=>{We.init(i,r),i._zod.check=o=>{r.fn(o.value)||o.issues.push({code:"invalid_format",format:r.format,input:o.value,inst:i,continue:!r.abort})}}),Am=T("$ZodNumber",(i,r)=>{me.init(i,r),i._zod.pattern=i._zod.bag.pattern??Um,i._zod.parse=(o,l)=>{if(r.coerce)try{o.value=Number(o.value)}catch{}const n=o.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return o;const u=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return o.issues.push({expected:"number",code:"invalid_type",input:n,inst:i,...u?{received:u}:{}}),o}}),nk=T("$ZodNumberFormat",(i,r)=>{s$.init(i,r),Am.init(i,r)}),Im=T("$ZodBoolean",(i,r)=>{me.init(i,r),i._zod.pattern=n$,i._zod.parse=(o,l)=>{if(r.coerce)try{o.value=!!o.value}catch{}const n=o.value;return typeof n=="boolean"||o.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:i}),o}}),Rm=T("$ZodBigInt",(i,r)=>{me.init(i,r),i._zod.pattern=e$,i._zod.parse=(o,l)=>{if(r.coerce)try{o.value=BigInt(o.value)}catch{}return typeof o.value=="bigint"||o.issues.push({expected:"bigint",code:"invalid_type",input:o.value,inst:i}),o}}),ik=T("$ZodBigIntFormat",(i,r)=>{d$.init(i,r),Rm.init(i,r)}),rk=T("$ZodSymbol",(i,r)=>{me.init(i,r),i._zod.parse=(o,l)=>{const n=o.value;return typeof n=="symbol"||o.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:i}),o}}),ak=T("$ZodUndefined",(i,r)=>{me.init(i,r),i._zod.pattern=r$,i._zod.values=new Set([void 0]),i._zod.parse=(o,l)=>{const n=o.value;return typeof n>"u"||o.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:i}),o}}),ok=T("$ZodNull",(i,r)=>{me.init(i,r),i._zod.pattern=i$,i._zod.values=new Set([null]),i._zod.parse=(o,l)=>{const n=o.value;return n===null||o.issues.push({expected:"null",code:"invalid_type",input:n,inst:i}),o}}),lk=T("$ZodAny",(i,r)=>{me.init(i,r),i._zod.parse=o=>o}),uk=T("$ZodUnknown",(i,r)=>{me.init(i,r),i._zod.parse=o=>o}),ck=T("$ZodNever",(i,r)=>{me.init(i,r),i._zod.parse=(o,l)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:i}),o)}),sk=T("$ZodVoid",(i,r)=>{me.init(i,r),i._zod.parse=(o,l)=>{const n=o.value;return typeof n>"u"||o.issues.push({expected:"void",code:"invalid_type",input:n,inst:i}),o}}),dk=T("$ZodDate",(i,r)=>{me.init(i,r),i._zod.parse=(o,l)=>{if(r.coerce)try{o.value=new Date(o.value)}catch{}const n=o.value,u=n instanceof Date;return u&&!Number.isNaN(n.getTime())||o.issues.push({expected:"date",code:"invalid_type",input:n,...u?{received:"Invalid Date"}:{},inst:i}),o}});function z_(i,r,o){i.issues.length&&r.issues.push(...xn(o,i.issues)),r.value[o]=i.value}const fk=T("$ZodArray",(i,r)=>{me.init(i,r),i._zod.parse=(o,l)=>{const n=o.value;if(!Array.isArray(n))return o.issues.push({expected:"array",code:"invalid_type",input:n,inst:i}),o;o.value=Array(n.length);const u=[];for(let s=0;s<n.length;s++){const m=n[s],p=r.element._zod.run({value:m,issues:[]},l);p instanceof Promise?u.push(p.then(g=>z_(g,o,s))):z_(p,o,s)}return u.length?Promise.all(u).then(()=>o):o}});function sc(i,r,o,l,n,u){const s=o in l;if(i.issues.length){if(n&&u&&!s)return;r.issues.push(...xn(o,i.issues))}if(!s&&!n){i.issues.length||r.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[o]});return}i.value===void 0?s&&(r.value[o]=void 0):r.value[o]=i.value}function mk(i){var l,n,u,s;const r=Object.keys(i.shape);for(const m of r)if(!((s=(u=(n=(l=i.shape)==null?void 0:l[m])==null?void 0:n._zod)==null?void 0:u.traits)!=null&&s.has("$ZodType")))throw new Error(`Invalid element at key "${m}": expected a Zod schema`);const o=fS(i.shape);return{...i,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(o)}}function pk(i,r,o,l,n,u){const s=[],m=n.keySet,p=n.catchall._zod,g=p.def.type,v=p.optin==="optional",b=p.optout==="optional";for(const _ in r){if(_==="__proto__"||m.has(_))continue;if(g==="never"){s.push(_);continue}const z=p.run({value:r[_],issues:[]},l);z instanceof Promise?i.push(z.then(x=>sc(x,o,_,r,v,b))):sc(z,o,_,r,v,b)}return s.length&&o.issues.push({code:"unrecognized_keys",keys:s,input:r,inst:u}),i.length?Promise.all(i).then(()=>o):o}const hk=T("$ZodObject",(i,r)=>{me.init(i,r);const o=Object.getOwnPropertyDescriptor(r,"shape");if(!(o!=null&&o.get)){const m=r.shape;Object.defineProperty(r,"shape",{get:()=>{const p={...m};return Object.defineProperty(r,"shape",{value:p}),p}})}const l=Ao(()=>mk(r));Se(i._zod,"propValues",()=>{const m=r.shape,p={};for(const g in m){const v=m[g]._zod;if(v.values){p[g]??(p[g]=new Set);for(const b of v.values)p[g].add(b)}}return p});const n=ra,u=r.catchall;let s;i._zod.parse=(m,p)=>{s??(s=l.value);const g=m.value;if(!n(g))return m.issues.push({expected:"object",code:"invalid_type",input:g,inst:i}),m;m.value={};const v=[],b=s.shape;for(const _ of s.keys){const z=b[_],x=z._zod.optin==="optional",H=z._zod.optout==="optional",J=z._zod.run({value:g[_],issues:[]},p);J instanceof Promise?v.push(J.then(F=>sc(F,m,_,g,x,H))):sc(J,m,_,g,x,H)}return u?pk(v,g,m,p,l.value,i):v.length?Promise.all(v).then(()=>m):m}}),gk=T("$ZodObjectJIT",(i,r)=>{hk.init(i,r);const o=i._zod.parse,l=Ao(()=>mk(r)),n=_=>{var ge,be;const z=new T$(["shape","payload","ctx"]),x=l.value,H=we=>{const re=tm(we);return`shape[${re}]._zod.run({ value: input[${re}], issues: [] }, ctx)`};z.write("const input = payload.value;");const J=Object.create(null);let F=0;for(const we of x.keys)J[we]=`key_${F++}`;z.write("const newResult = {};");for(const we of x.keys){const re=J[we],G=tm(we),ve=_[we],Qe=((ge=ve==null?void 0:ve._zod)==null?void 0:ge.optin)==="optional",Ct=((be=ve==null?void 0:ve._zod)==null?void 0:be.optout)==="optional";z.write(`const ${re} = ${H(we)};`),Qe&&Ct?z.write(`
59
+ if (${re}.issues.length) {
60
60
  if (${G} in input) {
61
- payload.issues = payload.issues.concat(${ue}.issues.map(iss => ({
61
+ payload.issues = payload.issues.concat(${re}.issues.map(iss => ({
62
62
  ...iss,
63
63
  path: iss.path ? [${G}, ...iss.path] : [${G}]
64
64
  })));
65
65
  }
66
66
  }
67
67
 
68
- if (${ue}.value === undefined) {
68
+ if (${re}.value === undefined) {
69
69
  if (${G} in input) {
70
70
  newResult[${G}] = undefined;
71
71
  }
72
72
  } else {
73
- newResult[${G}] = ${ue}.value;
73
+ newResult[${G}] = ${re}.value;
74
74
  }
75
75
 
76
- `):Ae?z.write(`
77
- if (${ue}.issues.length) {
78
- payload.issues = payload.issues.concat(${ue}.issues.map(iss => ({
76
+ `):Qe?z.write(`
77
+ if (${re}.issues.length) {
78
+ payload.issues = payload.issues.concat(${re}.issues.map(iss => ({
79
79
  ...iss,
80
80
  path: iss.path ? [${G}, ...iss.path] : [${G}]
81
81
  })));
82
82
  }
83
83
 
84
- if (${ue}.value === undefined) {
84
+ if (${re}.value === undefined) {
85
85
  if (${G} in input) {
86
86
  newResult[${G}] = undefined;
87
87
  }
88
88
  } else {
89
- newResult[${G}] = ${ue}.value;
89
+ newResult[${G}] = ${re}.value;
90
90
  }
91
91
 
92
92
  `):z.write(`
93
- const ${ue}_present = ${G} in input;
94
- if (${ue}.issues.length) {
95
- payload.issues = payload.issues.concat(${ue}.issues.map(iss => ({
93
+ const ${re}_present = ${G} in input;
94
+ if (${re}.issues.length) {
95
+ payload.issues = payload.issues.concat(${re}.issues.map(iss => ({
96
96
  ...iss,
97
97
  path: iss.path ? [${G}, ...iss.path] : [${G}]
98
98
  })));
99
99
  }
100
- if (!${ue}_present && !${ue}.issues.length) {
100
+ if (!${re}_present && !${re}.issues.length) {
101
101
  payload.issues.push({
102
102
  code: "invalid_type",
103
103
  expected: "nonoptional",
@@ -106,23 +106,23 @@ Error generating stack: `+c.message+`
106
106
  });
107
107
  }
108
108
 
109
- if (${ue}_present) {
110
- if (${ue}.value === undefined) {
109
+ if (${re}_present) {
110
+ if (${re}.value === undefined) {
111
111
  newResult[${G}] = undefined;
112
112
  } else {
113
- newResult[${G}] = ${ue}.value;
113
+ newResult[${G}] = ${re}.value;
114
114
  }
115
115
  }
116
116
 
117
- `)}z.write("payload.value = newResult;"),z.write("return payload;");const se=z.compile();return(Ee,ue)=>se(_,Ee,ue)};let u;const s=ta,m=!Eo.jitless,g=m&&cS.value,v=r.catchall;let b;i._zod.parse=(_,z)=>{b??(b=l.value);const x=_.value;return s(x)?m&&g&&(z==null?void 0:z.async)===!1&&z.jitless!==!0?(u||(u=n(r.shape)),_=u(_,z),v?mk([],x,_,z,b,i):_):o(_,z):(_.issues.push({expected:"object",code:"invalid_type",input:x,inst:i}),_)}});function z_(i,r,o,l){for(const u of i)if(u.issues.length===0)return r.value=u.value,r;const n=i.filter(u=>!rr(u));return n.length===1?(r.value=n[0].value,n[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:o,errors:i.map(u=>u.issues.map(s=>ln(s,l,vt())))}),r)}const zc=T("$ZodUnion",(i,r)=>{he.init(i,r),ke(i._zod,"optin",()=>r.options.some(l=>l._zod.optin==="optional")?"optional":void 0),ke(i._zod,"optout",()=>r.options.some(l=>l._zod.optout==="optional")?"optional":void 0),ke(i._zod,"values",()=>{if(r.options.every(l=>l._zod.values))return new Set(r.options.flatMap(l=>Array.from(l._zod.values)))}),ke(i._zod,"pattern",()=>{if(r.options.every(l=>l._zod.pattern)){const l=r.options.map(n=>n._zod.pattern);return new RegExp(`^(${l.map(n=>vc(n.source)).join("|")})$`)}});const o=r.options.length===1?r.options[0]._zod.run:null;i._zod.parse=(l,n)=>{if(o)return o(l,n);let u=!1;const s=[];for(const m of r.options){const p=m._zod.run({value:l.value,issues:[]},n);if(p instanceof Promise)s.push(p),u=!0;else{if(p.issues.length===0)return p;s.push(p)}}return u?Promise.all(s).then(m=>z_(m,l,i,n)):z_(s,l,i,n)}});function x_(i,r,o,l){const n=i.filter(u=>u.issues.length===0);return n.length===1?(r.value=n[0].value,r):(n.length===0?r.issues.push({code:"invalid_union",input:r.value,inst:o,errors:i.map(u=>u.issues.map(s=>ln(s,l,vt())))}):r.issues.push({code:"invalid_union",input:r.value,inst:o,errors:[],inclusive:!1}),r)}const gk=T("$ZodXor",(i,r)=>{zc.init(i,r),r.inclusive=!1;const o=r.options.length===1?r.options[0]._zod.run:null;i._zod.parse=(l,n)=>{if(o)return o(l,n);let u=!1;const s=[];for(const m of r.options){const p=m._zod.run({value:l.value,issues:[]},n);p instanceof Promise?(s.push(p),u=!0):s.push(p)}return u?Promise.all(s).then(m=>x_(m,l,i,n)):x_(s,l,i,n)}}),vk=T("$ZodDiscriminatedUnion",(i,r)=>{r.inclusive=!1,zc.init(i,r);const o=i._zod.parse;ke(i._zod,"propValues",()=>{const n={};for(const u of r.options){const s=u._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(u)}"`);for(const[m,p]of Object.entries(s)){n[m]||(n[m]=new Set);for(const g of p)n[m].add(g)}}return n});const l=jo(()=>{var s;const n=r.options,u=new Map;for(const m of n){const p=(s=m._zod.propValues)==null?void 0:s[r.discriminator];if(!p||p.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(m)}"`);for(const g of p){if(u.has(g))throw new Error(`Duplicate discriminator value "${String(g)}"`);u.set(g,m)}}return u});i._zod.parse=(n,u)=>{const s=n.value;if(!ta(s))return n.issues.push({code:"invalid_type",expected:"object",input:s,inst:i}),n;const m=l.value.get(s==null?void 0:s[r.discriminator]);return m?m._zod.run(n,u):r.unionFallback||u.direction==="backward"?o(n,u):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,options:Array.from(l.value.keys()),input:s,path:[r.discriminator],inst:i}),n)}}),yk=T("$ZodIntersection",(i,r)=>{he.init(i,r),i._zod.parse=(o,l)=>{const n=o.value,u=r.left._zod.run({value:n,issues:[]},l),s=r.right._zod.run({value:n,issues:[]},l);return u instanceof Promise||s instanceof Promise?Promise.all([u,s]).then(([p,g])=>w_(o,p,g)):w_(o,u,s)}});function nm(i,r){if(i===r)return{valid:!0,data:i};if(i instanceof Date&&r instanceof Date&&+i==+r)return{valid:!0,data:i};if(or(i)&&or(r)){const o=Object.keys(r),l=Object.keys(i).filter(u=>o.indexOf(u)!==-1),n={...i,...r};for(const u of l){const s=nm(i[u],r[u]);if(!s.valid)return{valid:!1,mergeErrorPath:[u,...s.mergeErrorPath]};n[u]=s.data}return{valid:!0,data:n}}if(Array.isArray(i)&&Array.isArray(r)){if(i.length!==r.length)return{valid:!1,mergeErrorPath:[]};const o=[];for(let l=0;l<i.length;l++){const n=i[l],u=r[l],s=nm(n,u);if(!s.valid)return{valid:!1,mergeErrorPath:[l,...s.mergeErrorPath]};o.push(s.data)}return{valid:!0,data:o}}return{valid:!1,mergeErrorPath:[]}}function w_(i,r,o){const l=new Map;let n;for(const m of r.issues)if(m.code==="unrecognized_keys"){n??(n=m);for(const p of m.keys)l.has(p)||l.set(p,{}),l.get(p).l=!0}else i.issues.push(m);for(const m of o.issues)if(m.code==="unrecognized_keys")for(const p of m.keys)l.has(p)||l.set(p,{}),l.get(p).r=!0;else i.issues.push(m);const u=[...l].filter(([,m])=>m.l&&m.r).map(([m])=>m);if(u.length&&n&&i.issues.push({...n,keys:u}),rr(i))return i;const s=nm(r.value,o.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return i.value=s.data,i}const Im=T("$ZodTuple",(i,r)=>{he.init(i,r);const o=r.items;i._zod.parse=(l,n)=>{const u=l.value;if(!Array.isArray(u))return l.issues.push({input:u,inst:i,expected:"tuple",code:"invalid_type"}),l;l.value=[];const s=[],m=T_(o,"optin"),p=T_(o,"optout");if(!r.rest){if(u.length<m)return l.issues.push({code:"too_small",minimum:m,inclusive:!0,input:u,inst:i,origin:"array"}),l;u.length>o.length&&l.issues.push({code:"too_big",maximum:o.length,inclusive:!0,input:u,inst:i,origin:"array"})}const g=new Array(o.length);for(let v=0;v<o.length;v++){const b=o[v]._zod.run({value:u[v],issues:[]},n);b instanceof Promise?s.push(b.then(_=>{g[v]=_})):g[v]=b}if(r.rest){let v=o.length-1;const b=u.slice(o.length);for(const _ of b){v++;const z=r.rest._zod.run({value:_,issues:[]},n);z instanceof Promise?s.push(z.then(x=>E_(x,l,v))):E_(z,l,v)}}return s.length?Promise.all(s).then(()=>O_(g,l,o,u,p)):O_(g,l,o,u,p)}});function T_(i,r){for(let o=i.length-1;o>=0;o--)if(i[o]._zod[r]!=="optional")return o+1;return 0}function E_(i,r,o){i.issues.length&&r.issues.push(...Sn(o,i.issues)),r.value[o]=i.value}function O_(i,r,o,l,n){for(let u=0;u<o.length;u++){const s=i[u],m=u<l.length;if(s.issues.length){if(!m&&u>=n){r.value.length=u;break}r.issues.push(...Sn(u,s.issues))}r.value[u]=s.value}for(let u=r.value.length-1;u>=l.length&&(o[u]._zod.optout==="optional"&&r.value[u]===void 0);u--)r.value.length=u;return r}const bk=T("$ZodRecord",(i,r)=>{he.init(i,r),i._zod.parse=(o,l)=>{const n=o.value;if(!or(n))return o.issues.push({expected:"record",code:"invalid_type",input:n,inst:i}),o;const u=[],s=r.keyType._zod.values;if(s){o.value={};const m=new Set;for(const g of s)if(typeof g=="string"||typeof g=="number"||typeof g=="symbol"){m.add(typeof g=="number"?g.toString():g);const v=r.keyType._zod.run({value:g,issues:[]},l);if(v instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(v.issues.length){o.issues.push({code:"invalid_key",origin:"record",issues:v.issues.map(z=>ln(z,l,vt())),input:g,path:[g],inst:i});continue}const b=v.value,_=r.valueType._zod.run({value:n[g],issues:[]},l);_ instanceof Promise?u.push(_.then(z=>{z.issues.length&&o.issues.push(...Sn(g,z.issues)),o.value[b]=z.value})):(_.issues.length&&o.issues.push(...Sn(g,_.issues)),o.value[b]=_.value)}let p;for(const g in n)m.has(g)||(p=p??[],p.push(g));p&&p.length>0&&o.issues.push({code:"unrecognized_keys",input:n,inst:i,keys:p})}else{o.value={};for(const m of Reflect.ownKeys(n)){if(m==="__proto__"||!Object.prototype.propertyIsEnumerable.call(n,m))continue;let p=r.keyType._zod.run({value:m,issues:[]},l);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof m=="string"&&Em.test(m)&&p.issues.length){const b=r.keyType._zod.run({value:Number(m),issues:[]},l);if(b instanceof Promise)throw new Error("Async schemas not supported in object keys currently");b.issues.length===0&&(p=b)}if(p.issues.length){r.mode==="loose"?o.value[m]=n[m]:o.issues.push({code:"invalid_key",origin:"record",issues:p.issues.map(b=>ln(b,l,vt())),input:m,path:[m],inst:i});continue}const v=r.valueType._zod.run({value:n[m],issues:[]},l);v instanceof Promise?u.push(v.then(b=>{b.issues.length&&o.issues.push(...Sn(m,b.issues)),o.value[p.value]=b.value})):(v.issues.length&&o.issues.push(...Sn(m,v.issues)),o.value[p.value]=v.value)}}return u.length?Promise.all(u).then(()=>o):o}}),_k=T("$ZodMap",(i,r)=>{he.init(i,r),i._zod.parse=(o,l)=>{const n=o.value;if(!(n instanceof Map))return o.issues.push({expected:"map",code:"invalid_type",input:n,inst:i}),o;const u=[];o.value=new Map;for(const[s,m]of n){const p=r.keyType._zod.run({value:s,issues:[]},l),g=r.valueType._zod.run({value:m,issues:[]},l);p instanceof Promise||g instanceof Promise?u.push(Promise.all([p,g]).then(([v,b])=>{U_(v,b,o,s,n,i,l)})):U_(p,g,o,s,n,i,l)}return u.length?Promise.all(u).then(()=>o):o}});function U_(i,r,o,l,n,u,s){i.issues.length&&(oc.has(typeof l)?o.issues.push(...Sn(l,i.issues)):o.issues.push({code:"invalid_key",origin:"map",input:n,inst:u,issues:i.issues.map(m=>ln(m,s,vt()))})),r.issues.length&&(oc.has(typeof l)?o.issues.push(...Sn(l,r.issues)):o.issues.push({origin:"map",code:"invalid_element",input:n,inst:u,key:l,issues:r.issues.map(m=>ln(m,s,vt()))})),o.value.set(i.value,r.value)}const Sk=T("$ZodSet",(i,r)=>{he.init(i,r),i._zod.parse=(o,l)=>{const n=o.value;if(!(n instanceof Set))return o.issues.push({input:n,inst:i,expected:"set",code:"invalid_type"}),o;const u=[];o.value=new Set;for(const s of n){const m=r.valueType._zod.run({value:s,issues:[]},l);m instanceof Promise?u.push(m.then(p=>D_(p,o))):D_(m,o)}return u.length?Promise.all(u).then(()=>o):o}});function D_(i,r){i.issues.length&&r.issues.push(...i.issues),r.value.add(i.value)}const $k=T("$ZodEnum",(i,r)=>{he.init(i,r);const o=dm(r.entries),l=new Set(o);i._zod.values=l,i._zod.pattern=new RegExp(`^(${o.filter(n=>oc.has(typeof n)).map(n=>typeof n=="string"?ri(n):n.toString()).join("|")})$`),i._zod.parse=(n,u)=>{const s=n.value;return l.has(s)||n.issues.push({code:"invalid_value",values:o,input:s,inst:i}),n}}),kk=T("$ZodLiteral",(i,r)=>{if(he.init(i,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");const o=new Set(r.values);i._zod.values=o,i._zod.pattern=new RegExp(`^(${r.values.map(l=>typeof l=="string"?ri(l):l?ri(l.toString()):String(l)).join("|")})$`),i._zod.parse=(l,n)=>{const u=l.value;return o.has(u)||l.issues.push({code:"invalid_value",values:r.values,input:u,inst:i}),l}}),zk=T("$ZodFile",(i,r)=>{he.init(i,r),i._zod.parse=(o,l)=>{const n=o.value;return n instanceof File||o.issues.push({expected:"file",code:"invalid_type",input:n,inst:i}),o}}),xk=T("$ZodTransform",(i,r)=>{he.init(i,r),i._zod.parse=(o,l)=>{if(l.direction==="backward")throw new gc(i.constructor.name);const n=r.transform(o.value,o);if(l.async)return(n instanceof Promise?n:Promise.resolve(n)).then(s=>(o.value=s,o));if(n instanceof Promise)throw new ar;return o.value=n,o}});function j_(i,r){return i.issues.length&&r===void 0?{issues:[],value:void 0}:i}const Rm=T("$ZodOptional",(i,r)=>{he.init(i,r),i._zod.optin="optional",i._zod.optout="optional",ke(i._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),ke(i._zod,"pattern",()=>{const o=r.innerType._zod.pattern;return o?new RegExp(`^(${vc(o.source)})?$`):void 0}),i._zod.parse=(o,l)=>{if(r.innerType._zod.optin==="optional"){const n=r.innerType._zod.run(o,l);return n instanceof Promise?n.then(u=>j_(u,o.value)):j_(n,o.value)}return o.value===void 0?o:r.innerType._zod.run(o,l)}}),wk=T("$ZodExactOptional",(i,r)=>{Rm.init(i,r),ke(i._zod,"values",()=>r.innerType._zod.values),ke(i._zod,"pattern",()=>r.innerType._zod.pattern),i._zod.parse=(o,l)=>r.innerType._zod.run(o,l)}),Tk=T("$ZodNullable",(i,r)=>{he.init(i,r),ke(i._zod,"optin",()=>r.innerType._zod.optin),ke(i._zod,"optout",()=>r.innerType._zod.optout),ke(i._zod,"pattern",()=>{const o=r.innerType._zod.pattern;return o?new RegExp(`^(${vc(o.source)}|null)$`):void 0}),ke(i._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),i._zod.parse=(o,l)=>o.value===null?o:r.innerType._zod.run(o,l)}),Ek=T("$ZodDefault",(i,r)=>{he.init(i,r),i._zod.optin="optional",ke(i._zod,"values",()=>r.innerType._zod.values),i._zod.parse=(o,l)=>{if(l.direction==="backward")return r.innerType._zod.run(o,l);if(o.value===void 0)return o.value=r.defaultValue,o;const n=r.innerType._zod.run(o,l);return n instanceof Promise?n.then(u=>N_(u,r)):N_(n,r)}});function N_(i,r){return i.value===void 0&&(i.value=r.defaultValue),i}const Ok=T("$ZodPrefault",(i,r)=>{he.init(i,r),i._zod.optin="optional",ke(i._zod,"values",()=>r.innerType._zod.values),i._zod.parse=(o,l)=>(l.direction==="backward"||o.value===void 0&&(o.value=r.defaultValue),r.innerType._zod.run(o,l))}),Uk=T("$ZodNonOptional",(i,r)=>{he.init(i,r),ke(i._zod,"values",()=>{const o=r.innerType._zod.values;return o?new Set([...o].filter(l=>l!==void 0)):void 0}),i._zod.parse=(o,l)=>{const n=r.innerType._zod.run(o,l);return n instanceof Promise?n.then(u=>A_(u,i)):A_(n,i)}});function A_(i,r){return!i.issues.length&&i.value===void 0&&i.issues.push({code:"invalid_type",expected:"nonoptional",input:i.value,inst:r}),i}const Dk=T("$ZodSuccess",(i,r)=>{he.init(i,r),i._zod.parse=(o,l)=>{if(l.direction==="backward")throw new gc("ZodSuccess");const n=r.innerType._zod.run(o,l);return n instanceof Promise?n.then(u=>(o.value=u.issues.length===0,o)):(o.value=n.issues.length===0,o)}}),jk=T("$ZodCatch",(i,r)=>{he.init(i,r),ke(i._zod,"optin",()=>r.innerType._zod.optin),ke(i._zod,"optout",()=>r.innerType._zod.optout),ke(i._zod,"values",()=>r.innerType._zod.values),i._zod.parse=(o,l)=>{if(l.direction==="backward")return r.innerType._zod.run(o,l);const n=r.innerType._zod.run(o,l);return n instanceof Promise?n.then(u=>(o.value=u.value,u.issues.length&&(o.value=r.catchValue({...o,error:{issues:u.issues.map(s=>ln(s,l,vt()))},input:o.value}),o.issues=[]),o)):(o.value=n.value,n.issues.length&&(o.value=r.catchValue({...o,error:{issues:n.issues.map(u=>ln(u,l,vt()))},input:o.value}),o.issues=[]),o)}}),Nk=T("$ZodNaN",(i,r)=>{he.init(i,r),i._zod.parse=(o,l)=>((typeof o.value!="number"||!Number.isNaN(o.value))&&o.issues.push({input:o.value,inst:i,expected:"nan",code:"invalid_type"}),o)}),Ak=T("$ZodPipe",(i,r)=>{he.init(i,r),ke(i._zod,"values",()=>r.in._zod.values),ke(i._zod,"optin",()=>r.in._zod.optin),ke(i._zod,"optout",()=>r.out._zod.optout),ke(i._zod,"propValues",()=>r.in._zod.propValues),i._zod.parse=(o,l)=>{if(l.direction==="backward"){const u=r.out._zod.run(o,l);return u instanceof Promise?u.then(s=>Wu(s,r.in,l)):Wu(u,r.in,l)}const n=r.in._zod.run(o,l);return n instanceof Promise?n.then(u=>Wu(u,r.out,l)):Wu(n,r.out,l)}});function Wu(i,r,o){return i.issues.length?(i.aborted=!0,i):r._zod.run({value:i.value,issues:i.issues},o)}const Cm=T("$ZodCodec",(i,r)=>{he.init(i,r),ke(i._zod,"values",()=>r.in._zod.values),ke(i._zod,"optin",()=>r.in._zod.optin),ke(i._zod,"optout",()=>r.out._zod.optout),ke(i._zod,"propValues",()=>r.in._zod.propValues),i._zod.parse=(o,l)=>{if((l.direction||"forward")==="forward"){const u=r.in._zod.run(o,l);return u instanceof Promise?u.then(s=>ec(s,r,l)):ec(u,r,l)}else{const u=r.out._zod.run(o,l);return u instanceof Promise?u.then(s=>ec(s,r,l)):ec(u,r,l)}}});function ec(i,r,o){if(i.issues.length)return i.aborted=!0,i;if((o.direction||"forward")==="forward"){const n=r.transform(i.value,i);return n instanceof Promise?n.then(u=>tc(i,u,r.out,o)):tc(i,n,r.out,o)}else{const n=r.reverseTransform(i.value,i);return n instanceof Promise?n.then(u=>tc(i,u,r.in,o)):tc(i,n,r.in,o)}}function tc(i,r,o,l){return i.issues.length?(i.aborted=!0,i):o._zod.run({value:r,issues:i.issues},l)}const Ik=T("$ZodReadonly",(i,r)=>{he.init(i,r),ke(i._zod,"propValues",()=>r.innerType._zod.propValues),ke(i._zod,"values",()=>r.innerType._zod.values),ke(i._zod,"optin",()=>{var o,l;return(l=(o=r.innerType)==null?void 0:o._zod)==null?void 0:l.optin}),ke(i._zod,"optout",()=>{var o,l;return(l=(o=r.innerType)==null?void 0:o._zod)==null?void 0:l.optout}),i._zod.parse=(o,l)=>{if(l.direction==="backward")return r.innerType._zod.run(o,l);const n=r.innerType._zod.run(o,l);return n instanceof Promise?n.then(I_):I_(n)}});function I_(i){return i.value=Object.freeze(i.value),i}const Rk=T("$ZodTemplateLiteral",(i,r)=>{he.init(i,r);const o=[];for(const l of r.parts)if(typeof l=="object"&&l!==null){if(!l._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...l._zod.traits].shift()}`);const n=l._zod.pattern instanceof RegExp?l._zod.pattern.source:l._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${l._zod.traits}`);const u=n.startsWith("^")?1:0,s=n.endsWith("$")?n.length-1:n.length;o.push(n.slice(u,s))}else if(l===null||sS.has(typeof l))o.push(ri(`${l}`));else throw new Error(`Invalid template literal part: ${l}`);i._zod.pattern=new RegExp(`^${o.join("")}$`),i._zod.parse=(l,n)=>typeof l.value!="string"?(l.issues.push({input:l.value,inst:i,expected:"string",code:"invalid_type"}),l):(i._zod.pattern.lastIndex=0,i._zod.pattern.test(l.value)||l.issues.push({input:l.value,inst:i,code:"invalid_format",format:r.format??"template_literal",pattern:i._zod.pattern.source}),l)}),Ck=T("$ZodFunction",(i,r)=>(he.init(i,r),i._def=r,i._zod.def=r,i.implement=o=>{if(typeof o!="function")throw new Error("implement() must be called with a function");return function(...l){const n=i._def.input?em(i._def.input,l):l,u=Reflect.apply(o,this,n);return i._def.output?em(i._def.output,u):u}},i.implementAsync=o=>{if(typeof o!="function")throw new Error("implementAsync() must be called with a function");return async function(...l){const n=i._def.input?await tm(i._def.input,l):l,u=await Reflect.apply(o,this,n);return i._def.output?await tm(i._def.output,u):u}},i._zod.parse=(o,l)=>typeof o.value!="function"?(o.issues.push({code:"invalid_type",expected:"function",input:o.value,inst:i}),o):(i._def.output&&i._def.output._zod.def.type==="promise"?o.value=i.implementAsync(o.value):o.value=i.implement(o.value),o),i.input=(...o)=>{const l=i.constructor;return Array.isArray(o[0])?new l({type:"function",input:new Im({type:"tuple",items:o[0],rest:o[1]}),output:i._def.output}):new l({type:"function",input:o[0],output:i._def.output})},i.output=o=>{const l=i.constructor;return new l({type:"function",input:i._def.input,output:o})},i)),Mk=T("$ZodPromise",(i,r)=>{he.init(i,r),i._zod.parse=(o,l)=>Promise.resolve(o.value).then(n=>r.innerType._zod.run({value:n,issues:[]},l))}),Zk=T("$ZodLazy",(i,r)=>{he.init(i,r),ke(i._zod,"innerType",()=>{const o=r;return o._cachedInner||(o._cachedInner=r.getter()),o._cachedInner}),ke(i._zod,"pattern",()=>{var o,l;return(l=(o=i._zod.innerType)==null?void 0:o._zod)==null?void 0:l.pattern}),ke(i._zod,"propValues",()=>{var o,l;return(l=(o=i._zod.innerType)==null?void 0:o._zod)==null?void 0:l.propValues}),ke(i._zod,"optin",()=>{var o,l;return((l=(o=i._zod.innerType)==null?void 0:o._zod)==null?void 0:l.optin)??void 0}),ke(i._zod,"optout",()=>{var o,l;return((l=(o=i._zod.innerType)==null?void 0:o._zod)==null?void 0:l.optout)??void 0}),i._zod.parse=(o,l)=>i._zod.innerType._zod.run(o,l)}),qk=T("$ZodCustom",(i,r)=>{it.init(i,r),he.init(i,r),i._zod.parse=(o,l)=>o,i._zod.check=o=>{const l=o.value,n=r.fn(l);if(n instanceof Promise)return n.then(u=>R_(u,o,l,i));R_(n,o,l,i)}});function R_(i,r,o,l){if(!i){const n={code:"custom",input:o,inst:l,path:[...l._zod.def.path??[]],continue:!l._zod.def.abort};l._zod.def.params&&(n.params=l._zod.def.params),r.issues.push(na(n))}}const C4=()=>{const i={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function r(n){return i[n]??null}const o={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"},l={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${n.expected}، ولكن تم إدخال ${m}`:`مدخلات غير مقبولة: يفترض إدخال ${u}، ولكن تم إدخال ${m}`}case"invalid_value":return n.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${ae(n.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?` أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${u} ${n.maximum.toString()} ${s.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${u} ${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${u} ${n.minimum.toString()} ${s.unit}`:`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${u} ${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${n.prefix}"`:u.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${u.suffix}"`:u.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${u.includes}"`:u.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${u.pattern}`:`${o[u.format]??n.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${n.divisor}`;case"unrecognized_keys":return`معرف${n.keys.length>1?"ات":""} غريب${n.keys.length>1?"ة":""}: ${B(n.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${n.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${n.origin}`;default:return"مدخل غير مقبول"}}};function M4(){return{localeError:C4()}}const Z4=()=>{const i={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function r(n){return i[n]??null}const o={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},l={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Yanlış dəyər: gözlənilən instanceof ${n.expected}, daxil olan ${m}`:`Yanlış dəyər: gözlənilən ${u}, daxil olan ${m}`}case"invalid_value":return n.values.length===1?`Yanlış dəyər: gözlənilən ${ae(n.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${u}${n.maximum.toString()} ${s.unit??"element"}`:`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Çox kiçik: gözlənilən ${n.origin} ${u}${n.minimum.toString()} ${s.unit}`:`Çox kiçik: gözlənilən ${n.origin} ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Yanlış mətn: "${u.prefix}" ilə başlamalıdır`:u.format==="ends_with"?`Yanlış mətn: "${u.suffix}" ilə bitməlidir`:u.format==="includes"?`Yanlış mətn: "${u.includes}" daxil olmalıdır`:u.format==="regex"?`Yanlış mətn: ${u.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${o[u.format]??n.format}`}case"not_multiple_of":return`Yanlış ədəd: ${n.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${n.keys.length>1?"lar":""}: ${B(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${n.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function q4(){return{localeError:Z4()}}function C_(i,r,o,l){const n=Math.abs(i),u=n%10,s=n%100;return s>=11&&s<=19?l:u===1?r:u>=2&&u<=4?o:l}const L4=()=>{const i={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function r(n){return i[n]??null}const o={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"},l={nan:"NaN",number:"лік",array:"масіў"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Няправільны ўвод: чакаўся instanceof ${n.expected}, атрымана ${m}`:`Няправільны ўвод: чакаўся ${u}, атрымана ${m}`}case"invalid_value":return n.values.length===1?`Няправільны ўвод: чакалася ${ae(n.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);if(s){const m=Number(n.maximum),p=C_(m,s.unit.one,s.unit.few,s.unit.many);return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна ${s.verb} ${u}${n.maximum.toString()} ${p}`}return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна быць ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);if(s){const m=Number(n.minimum),p=C_(m,s.unit.one,s.unit.few,s.unit.many);return`Занадта малы: чакалася, што ${n.origin} павінна ${s.verb} ${u}${n.minimum.toString()} ${p}`}return`Занадта малы: чакалася, што ${n.origin} павінна быць ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${u.prefix}"`:u.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${u.suffix}"`:u.format==="includes"?`Няправільны радок: павінен змяшчаць "${u.includes}"`:u.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${u.pattern}`:`Няправільны ${o[u.format]??n.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${n.keys.length>1?"ключы":"ключ"}: ${B(n.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${n.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${n.origin}`;default:return"Няправільны ўвод"}}};function H4(){return{localeError:L4()}}const B4=()=>{const i={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function r(n){return i[n]??null}const o={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"},l={nan:"NaN",number:"число",array:"масив"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Невалиден вход: очакван instanceof ${n.expected}, получен ${m}`:`Невалиден вход: очакван ${u}, получен ${m}`}case"invalid_value":return n.values.length===1?`Невалиден вход: очакван ${ae(n.values[0])}`:`Невалидна опция: очаквано едно от ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Твърде голямо: очаква се ${n.origin??"стойност"} да съдържа ${u}${n.maximum.toString()} ${s.unit??"елемента"}`:`Твърде голямо: очаква се ${n.origin??"стойност"} да бъде ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Твърде малко: очаква се ${n.origin} да съдържа ${u}${n.minimum.toString()} ${s.unit}`:`Твърде малко: очаква се ${n.origin} да бъде ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;if(u.format==="starts_with")return`Невалиден низ: трябва да започва с "${u.prefix}"`;if(u.format==="ends_with")return`Невалиден низ: трябва да завършва с "${u.suffix}"`;if(u.format==="includes")return`Невалиден низ: трябва да включва "${u.includes}"`;if(u.format==="regex")return`Невалиден низ: трябва да съвпада с ${u.pattern}`;let s="Невалиден";return u.format==="emoji"&&(s="Невалидно"),u.format==="datetime"&&(s="Невалидно"),u.format==="date"&&(s="Невалидна"),u.format==="time"&&(s="Невалидно"),u.format==="duration"&&(s="Невалидна"),`${s} ${o[u.format]??n.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${n.divisor}`;case"unrecognized_keys":return`Неразпознат${n.keys.length>1?"и":""} ключ${n.keys.length>1?"ове":""}: ${B(n.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${n.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${n.origin}`;default:return"Невалиден вход"}}};function J4(){return{localeError:B4()}}const G4=()=>{const i={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(n){return i[n]??null}const o={regex:"entrada",email:"adreça electrònica",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ça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},l={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Tipus invàlid: s'esperava instanceof ${n.expected}, s'ha rebut ${m}`:`Tipus invàlid: s'esperava ${u}, s'ha rebut ${m}`}case"invalid_value":return n.values.length===1?`Valor invàlid: s'esperava ${ae(n.values[0])}`:`Opció invàlida: s'esperava una de ${B(n.values," o ")}`;case"too_big":{const u=n.inclusive?"com a màxim":"menys de",s=r(n.origin);return s?`Massa gran: s'esperava que ${n.origin??"el valor"} contingués ${u} ${n.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${u} ${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?"com a mínim":"més de",s=r(n.origin);return s?`Massa petit: s'esperava que ${n.origin} contingués ${u} ${n.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${u} ${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Format invàlid: ha de començar amb "${u.prefix}"`:u.format==="ends_with"?`Format invàlid: ha d'acabar amb "${u.suffix}"`:u.format==="includes"?`Format invàlid: ha d'incloure "${u.includes}"`:u.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${u.pattern}`:`Format invàlid per a ${o[u.format]??n.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${B(n.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${n.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${n.origin}`;default:return"Entrada invàlida"}}};function Y4(){return{localeError:G4()}}const X4=()=>{const i={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function r(n){return i[n]??null}const o={regex:"regulární výraz",email:"e-mailová 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 čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"},l={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Neplatný vstup: očekáváno instanceof ${n.expected}, obdrženo ${m}`:`Neplatný vstup: očekáváno ${u}, obdrženo ${m}`}case"invalid_value":return n.values.length===1?`Neplatný vstup: očekáváno ${ae(n.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Hodnota je příliš velká: ${n.origin??"hodnota"} musí mít ${u}${n.maximum.toString()} ${s.unit??"prvků"}`:`Hodnota je příliš velká: ${n.origin??"hodnota"} musí být ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Hodnota je příliš malá: ${n.origin??"hodnota"} musí mít ${u}${n.minimum.toString()} ${s.unit??"prvků"}`:`Hodnota je příliš malá: ${n.origin??"hodnota"} musí být ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Neplatný řetězec: musí začínat na "${u.prefix}"`:u.format==="ends_with"?`Neplatný řetězec: musí končit na "${u.suffix}"`:u.format==="includes"?`Neplatný řetězec: musí obsahovat "${u.includes}"`:u.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${u.pattern}`:`Neplatný formát ${o[u.format]??n.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${n.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${B(n.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${n.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${n.origin}`;default:return"Neplatný vstup"}}};function V4(){return{localeError:X4()}}const P4=()=>{const i={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function r(n){return i[n]??null}const o={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æt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},l={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${m}`:`Ugyldigt input: forventede ${u}, fik ${m}`}case"invalid_value":return n.values.length===1?`Ugyldig værdi: forventede ${ae(n.values[0])}`:`Ugyldigt valg: forventede en af følgende ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin),m=l[n.origin]??n.origin;return s?`For stor: forventede ${m??"value"} ${s.verb} ${u} ${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${m??"value"} havde ${u} ${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin),m=l[n.origin]??n.origin;return s?`For lille: forventede ${m} ${s.verb} ${u} ${n.minimum.toString()} ${s.unit}`:`For lille: forventede ${m} havde ${u} ${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Ugyldig streng: skal starte med "${u.prefix}"`:u.format==="ends_with"?`Ugyldig streng: skal ende med "${u.suffix}"`:u.format==="includes"?`Ugyldig streng: skal indeholde "${u.includes}"`:u.format==="regex"?`Ugyldig streng: skal matche mønsteret ${u.pattern}`:`Ugyldig ${o[u.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${B(n.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${n.origin}`;default:return"Ugyldigt input"}}};function Q4(){return{localeError:P4()}}const K4=()=>{const i={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function r(n){return i[n]??null}const o={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},l={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Ungültige Eingabe: erwartet instanceof ${n.expected}, erhalten ${m}`:`Ungültige Eingabe: erwartet ${u}, erhalten ${m}`}case"invalid_value":return n.values.length===1?`Ungültige Eingabe: erwartet ${ae(n.values[0])}`:`Ungültige Option: erwartet eine von ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Zu groß: erwartet, dass ${n.origin??"Wert"} ${u}${n.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${n.origin??"Wert"} ${u}${n.maximum.toString()} ist`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Zu klein: erwartet, dass ${n.origin} ${u}${n.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${u}${n.minimum.toString()} ist`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Ungültiger String: muss mit "${u.prefix}" beginnen`:u.format==="ends_with"?`Ungültiger String: muss mit "${u.suffix}" enden`:u.format==="includes"?`Ungültiger String: muss "${u.includes}" enthalten`:u.format==="regex"?`Ungültiger String: muss dem Muster ${u.pattern} entsprechen`:`Ungültig: ${o[u.format]??n.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${B(n.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${n.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${n.origin}`;default:return"Ungültige Eingabe"}}};function F4(){return{localeError:K4()}}const W4=()=>{const i={string:{unit:"χαρακτήρες",verb:"να έχει"},file:{unit:"bytes",verb:"να έχει"},array:{unit:"στοιχεία",verb:"να έχει"},set:{unit:"στοιχεία",verb:"να έχει"},map:{unit:"καταχωρήσεις",verb:"να έχει"}};function r(n){return i[n]??null}const o={regex:"είσοδος",email:"διεύθυνση 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 ημερομηνία και ώρα",date:"ISO ημερομηνία",time:"ISO ώρα",duration:"ISO διάρκεια",ipv4:"διεύθυνση IPv4",ipv6:"διεύθυνση IPv6",mac:"διεύθυνση MAC",cidrv4:"εύρος IPv4",cidrv6:"εύρος IPv6",base64:"συμβολοσειρά κωδικοποιημένη σε base64",base64url:"συμβολοσειρά κωδικοποιημένη σε base64url",json_string:"συμβολοσειρά JSON",e164:"αριθμός E.164",jwt:"JWT",template_literal:"είσοδος"},l={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return typeof n.expected=="string"&&/^[A-Z]/.test(n.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${n.expected}, λήφθηκε ${m}`:`Μη έγκυρη είσοδος: αναμενόταν ${u}, λήφθηκε ${m}`}case"invalid_value":return n.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${ae(n.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Πολύ μεγάλο: αναμενόταν ${n.origin??"τιμή"} να έχει ${u}${n.maximum.toString()} ${s.unit??"στοιχεία"}`:`Πολύ μεγάλο: αναμενόταν ${n.origin??"τιμή"} να είναι ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Πολύ μικρό: αναμενόταν ${n.origin} να έχει ${u}${n.minimum.toString()} ${s.unit}`:`Πολύ μικρό: αναμενόταν ${n.origin} να είναι ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${u.prefix}"`:u.format==="ends_with"?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${u.suffix}"`:u.format==="includes"?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${u.includes}"`:u.format==="regex"?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${u.pattern}`:`Μη έγκυρο: ${o[u.format]??n.format}`}case"not_multiple_of":return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${n.divisor}`;case"unrecognized_keys":return`Άγνωστ${n.keys.length>1?"α":"ο"} κλειδ${n.keys.length>1?"ιά":"ί"}: ${B(n.keys,", ")}`;case"invalid_key":return`Μη έγκυρο κλειδί στο ${n.origin}`;case"invalid_union":return"Μη έγκυρη είσοδος";case"invalid_element":return`Μη έγκυρη τιμή στο ${n.origin}`;default:return"Μη έγκυρη είσοδος"}}};function eT(){return{localeError:W4()}}const tT=()=>{const i={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function r(n){return i[n]??null}const o={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},l={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return`Invalid input: expected ${u}, received ${m}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${ae(n.values[0])}`:`Invalid option: expected one of ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Too big: expected ${n.origin??"value"} to have ${u}${n.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Too small: expected ${n.origin} to have ${u}${n.minimum.toString()} ${s.unit}`:`Too small: expected ${n.origin} to be ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Invalid string: must start with "${u.prefix}"`:u.format==="ends_with"?`Invalid string: must end with "${u.suffix}"`:u.format==="includes"?`Invalid string: must include "${u.includes}"`:u.format==="regex"?`Invalid string: must match pattern ${u.pattern}`:`Invalid ${o[u.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${B(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`Invalid discriminator value. Expected ${n.options.map(s=>`'${s}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function Lk(){return{localeError:tT()}}const nT=()=>{const i={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(n){return i[n]??null}const o={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",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ŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},l={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendiĝis instanceof ${n.expected}, riceviĝis ${m}`:`Nevalida enigo: atendiĝis ${u}, riceviĝis ${m}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendiĝis ${ae(n.values[0])}`:`Nevalida opcio: atendiĝis unu el ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Tro granda: atendiĝis ke ${n.origin??"valoro"} havu ${u}${n.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${n.origin??"valoro"} havu ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Tro malgranda: atendiĝis ke ${n.origin} havu ${u}${n.minimum.toString()} ${s.unit}`:`Tro malgranda: atendiĝis ke ${n.origin} estu ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${u.prefix}"`:u.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${u.suffix}"`:u.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${u.includes}"`:u.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${u.pattern}`:`Nevalida ${o[u.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":""} ŝlosilo${n.keys.length>1?"j":""}: ${B(n.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function iT(){return{localeError:nT()}}const rT=()=>{const i={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function r(n){return i[n]??null}const o={regex:"entrada",email:"dirección de correo electrónico",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ón ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},l={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Entrada inválida: se esperaba instanceof ${n.expected}, recibido ${m}`:`Entrada inválida: se esperaba ${u}, recibido ${m}`}case"invalid_value":return n.values.length===1?`Entrada inválida: se esperaba ${ae(n.values[0])}`:`Opción inválida: se esperaba una de ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin),m=l[n.origin]??n.origin;return s?`Demasiado grande: se esperaba que ${m??"valor"} tuviera ${u}${n.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${m??"valor"} fuera ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin),m=l[n.origin]??n.origin;return s?`Demasiado pequeño: se esperaba que ${m} tuviera ${u}${n.minimum.toString()} ${s.unit}`:`Demasiado pequeño: se esperaba que ${m} fuera ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Cadena inválida: debe comenzar con "${u.prefix}"`:u.format==="ends_with"?`Cadena inválida: debe terminar en "${u.suffix}"`:u.format==="includes"?`Cadena inválida: debe incluir "${u.includes}"`:u.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${u.pattern}`:`Inválido ${o[u.format]??n.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${B(n.keys,", ")}`;case"invalid_key":return`Llave inválida en ${l[n.origin]??n.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${l[n.origin]??n.origin}`;default:return"Entrada inválida"}}};function aT(){return{localeError:rT()}}const oT=()=>{const i={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function r(n){return i[n]??null}const o={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"},l={nan:"NaN",number:"عدد",array:"آرایه"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`ورودی نامعتبر: می‌بایست instanceof ${n.expected} می‌بود، ${m} دریافت شد`:`ورودی نامعتبر: می‌بایست ${u} می‌بود، ${m} دریافت شد`}case"invalid_value":return n.values.length===1?`ورودی نامعتبر: می‌بایست ${ae(n.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${B(n.values,"|")} می‌بود`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`خیلی بزرگ: ${n.origin??"مقدار"} باید ${u}${n.maximum.toString()} ${s.unit??"عنصر"} باشد`:`خیلی بزرگ: ${n.origin??"مقدار"} باید ${u}${n.maximum.toString()} باشد`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`خیلی کوچک: ${n.origin} باید ${u}${n.minimum.toString()} ${s.unit} باشد`:`خیلی کوچک: ${n.origin} باید ${u}${n.minimum.toString()} باشد`}case"invalid_format":{const u=n;return u.format==="starts_with"?`رشته نامعتبر: باید با "${u.prefix}" شروع شود`:u.format==="ends_with"?`رشته نامعتبر: باید با "${u.suffix}" تمام شود`:u.format==="includes"?`رشته نامعتبر: باید شامل "${u.includes}" باشد`:u.format==="regex"?`رشته نامعتبر: باید با الگوی ${u.pattern} مطابقت داشته باشد`:`${o[u.format]??n.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${n.divisor} باشد`;case"unrecognized_keys":return`کلید${n.keys.length>1?"های":""} ناشناس: ${B(n.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${n.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${n.origin}`;default:return"ورودی نامعتبر"}}};function lT(){return{localeError:oT()}}const uT=()=>{const i={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function r(n){return i[n]??null}const o={regex:"säännöllinen lauseke",email:"sähköpostiosoite",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äivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},l={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${m}`:`Virheellinen tyyppi: odotettiin ${u}, oli ${m}`}case"invalid_value":return n.values.length===1?`Virheellinen syöte: täytyy olla ${ae(n.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Liian suuri: ${s.subject} täytyy olla ${u}${n.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon täytyy olla ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Liian pieni: ${s.subject} täytyy olla ${u}${n.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon täytyy olla ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${u.prefix}"`:u.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${u.suffix}"`:u.format==="includes"?`Virheellinen syöte: täytyy sisältää "${u.includes}"`:u.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${u.pattern}`:`Virheellinen ${o[u.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${B(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öte"}}};function cT(){return{localeError:uT()}}const sT=()=>{const i={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function r(n){return i[n]??null}const o={regex:"entrée",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ée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},l={string:"chaîne",number:"nombre",int:"entier",boolean:"booléen",bigint:"grand entier",symbol:"symbole",undefined:"indéfini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Entrée invalide : instanceof ${n.expected} attendu, ${m} reçu`:`Entrée invalide : ${u} attendu, ${m} reçu`}case"invalid_value":return n.values.length===1?`Entrée invalide : ${ae(n.values[0])} attendu`:`Option invalide : une valeur parmi ${B(n.values,"|")} attendue`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Trop grand : ${l[n.origin]??"valeur"} doit ${s.verb} ${u}${n.maximum.toString()} ${s.unit??"élément(s)"}`:`Trop grand : ${l[n.origin]??"valeur"} doit être ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Trop petit : ${l[n.origin]??"valeur"} doit ${s.verb} ${u}${n.minimum.toString()} ${s.unit}`:`Trop petit : ${l[n.origin]??"valeur"} doit être ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Chaîne invalide : doit commencer par "${u.prefix}"`:u.format==="ends_with"?`Chaîne invalide : doit se terminer par "${u.suffix}"`:u.format==="includes"?`Chaîne invalide : doit inclure "${u.includes}"`:u.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${u.pattern}`:`${o[u.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${n.divisor}`;case"unrecognized_keys":return`Clé${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${B(n.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${n.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entrée invalide"}}};function dT(){return{localeError:sT()}}const fT=()=>{const i={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function r(n){return i[n]??null}const o={regex:"entrée",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ée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},l={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Entrée invalide : attendu instanceof ${n.expected}, reçu ${m}`:`Entrée invalide : attendu ${u}, reçu ${m}`}case"invalid_value":return n.values.length===1?`Entrée invalide : attendu ${ae(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"≤":"<",s=r(n.origin);return s?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${u}${n.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?"≥":">",s=r(n.origin);return s?`Trop petit : attendu que ${n.origin} ait ${u}${n.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${n.origin} soit ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Chaîne invalide : doit commencer par "${u.prefix}"`:u.format==="ends_with"?`Chaîne invalide : doit se terminer par "${u.suffix}"`:u.format==="includes"?`Chaîne invalide : doit inclure "${u.includes}"`:u.format==="regex"?`Chaîne invalide : doit correspondre au motif ${u.pattern}`:`${o[u.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${n.divisor}`;case"unrecognized_keys":return`Clé${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${B(n.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${n.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entrée invalide"}}};function mT(){return{localeError:fT()}}const pT=()=>{const i={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},r={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},o=g=>g?i[g]:void 0,l=g=>{const v=o(g);return v?v.label:g??i.unknown.label},n=g=>`ה${l(g)}`,u=g=>{const v=o(g);return((v==null?void 0:v.gender)??"m")==="f"?"צריכה להיות":"צריך להיות"},s=g=>g?r[g]??null:null,m={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},p={nan:"NaN"};return g=>{var v;switch(g.code){case"invalid_type":{const b=g.expected,_=p[b??""]??l(b),z=le(g.input),x=p[z]??((v=i[z])==null?void 0:v.label)??z;return/^[A-Z]/.test(g.expected)?`קלט לא תקין: צריך להיות instanceof ${g.expected}, התקבל ${x}`:`קלט לא תקין: צריך להיות ${_}, התקבל ${x}`}case"invalid_value":{if(g.values.length===1)return`ערך לא תקין: הערך חייב להיות ${ae(g.values[0])}`;const b=g.values.map(x=>ae(x));if(g.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${b[0]} או ${b[1]}`;const _=b[b.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${b.slice(0,-1).join(", ")} או ${_}`}case"too_big":{const b=s(g.origin),_=n(g.origin??"value");if(g.origin==="string")return`${(b==null?void 0:b.longLabel)??"ארוך"} מדי: ${_} צריכה להכיל ${g.maximum.toString()} ${(b==null?void 0:b.unit)??""} ${g.inclusive?"או פחות":"לכל היותר"}`.trim();if(g.origin==="number"){const H=g.inclusive?`קטן או שווה ל-${g.maximum}`:`קטן מ-${g.maximum}`;return`גדול מדי: ${_} צריך להיות ${H}`}if(g.origin==="array"||g.origin==="set"){const H=g.origin==="set"?"צריכה":"צריך",J=g.inclusive?`${g.maximum} ${(b==null?void 0:b.unit)??""} או פחות`:`פחות מ-${g.maximum} ${(b==null?void 0:b.unit)??""}`;return`גדול מדי: ${_} ${H} להכיל ${J}`.trim()}const z=g.inclusive?"<=":"<",x=u(g.origin??"value");return b!=null&&b.unit?`${b.longLabel} מדי: ${_} ${x} ${z}${g.maximum.toString()} ${b.unit}`:`${(b==null?void 0:b.longLabel)??"גדול"} מדי: ${_} ${x} ${z}${g.maximum.toString()}`}case"too_small":{const b=s(g.origin),_=n(g.origin??"value");if(g.origin==="string")return`${(b==null?void 0:b.shortLabel)??"קצר"} מדי: ${_} צריכה להכיל ${g.minimum.toString()} ${(b==null?void 0:b.unit)??""} ${g.inclusive?"או יותר":"לפחות"}`.trim();if(g.origin==="number"){const H=g.inclusive?`גדול או שווה ל-${g.minimum}`:`גדול מ-${g.minimum}`;return`קטן מדי: ${_} צריך להיות ${H}`}if(g.origin==="array"||g.origin==="set"){const H=g.origin==="set"?"צריכה":"צריך";if(g.minimum===1&&g.inclusive){const F=(g.origin==="set","לפחות פריט אחד");return`קטן מדי: ${_} ${H} להכיל ${F}`}const J=g.inclusive?`${g.minimum} ${(b==null?void 0:b.unit)??""} או יותר`:`יותר מ-${g.minimum} ${(b==null?void 0:b.unit)??""}`;return`קטן מדי: ${_} ${H} להכיל ${J}`.trim()}const z=g.inclusive?">=":">",x=u(g.origin??"value");return b!=null&&b.unit?`${b.shortLabel} מדי: ${_} ${x} ${z}${g.minimum.toString()} ${b.unit}`:`${(b==null?void 0:b.shortLabel)??"קטן"} מדי: ${_} ${x} ${z}${g.minimum.toString()}`}case"invalid_format":{const b=g;if(b.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${b.prefix}"`;if(b.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${b.suffix}"`;if(b.format==="includes")return`המחרוזת חייבת לכלול "${b.includes}"`;if(b.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${b.pattern}`;const _=m[b.format],z=(_==null?void 0:_.label)??b.format,H=((_==null?void 0:_.gender)??"m")==="f"?"תקינה":"תקין";return`${z} לא ${H}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${g.divisor}`;case"unrecognized_keys":return`מפתח${g.keys.length>1?"ות":""} לא מזוה${g.keys.length>1?"ים":"ה"}: ${B(g.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${n(g.origin??"array")}`;default:return"קלט לא תקין"}}};function hT(){return{localeError:pT()}}const gT=()=>{const i={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function r(n){return i[n]??null}const o={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},l={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":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Neispravan unos: očekuje se instanceof ${n.expected}, a primljeno je ${m}`:`Neispravan unos: očekuje se ${u}, a primljeno je ${m}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: očekivano ${ae(n.values[0])}`:`Neispravna opcija: očekivano jedno od ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin),m=l[n.origin]??n.origin;return s?`Preveliko: očekivano da ${m??"vrijednost"} ima ${u}${n.maximum.toString()} ${s.unit??"elemenata"}`:`Preveliko: očekivano da ${m??"vrijednost"} bude ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin),m=l[n.origin]??n.origin;return s?`Premalo: očekivano da ${m} ima ${u}${n.minimum.toString()} ${s.unit}`:`Premalo: očekivano da ${m} bude ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Neispravan tekst: mora započinjati s "${u.prefix}"`:u.format==="ends_with"?`Neispravan tekst: mora završavati s "${u.suffix}"`:u.format==="includes"?`Neispravan tekst: mora sadržavati "${u.includes}"`:u.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${u.pattern}`:`Neispravna ${o[u.format]??n.format}`}case"not_multiple_of":return`Neispravan broj: mora biti višekratnik od ${n.divisor}`;case"unrecognized_keys":return`Neprepoznat${n.keys.length>1?"i ključevi":" ključ"}: ${B(n.keys,", ")}`;case"invalid_key":return`Neispravan ključ u ${l[n.origin]??n.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${l[n.origin]??n.origin}`;default:return"Neispravan unos"}}};function vT(){return{localeError:gT()}}const yT=()=>{const i={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function r(n){return i[n]??null}const o={regex:"bemenet",email:"email cím",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őbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"},l={nan:"NaN",number:"szám",array:"tömb"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Érvénytelen bemenet: a várt érték instanceof ${n.expected}, a kapott érték ${m}`:`Érvénytelen bemenet: a várt érték ${u}, a kapott érték ${m}`}case"invalid_value":return n.values.length===1?`Érvénytelen bemenet: a várt érték ${ae(n.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Túl nagy: ${n.origin??"érték"} mérete túl nagy ${u}${n.maximum.toString()} ${s.unit??"elem"}`:`Túl nagy: a bemeneti érték ${n.origin??"érték"} túl nagy: ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Túl kicsi: a bemeneti érték ${n.origin} mérete túl kicsi ${u}${n.minimum.toString()} ${s.unit}`:`Túl kicsi: a bemeneti érték ${n.origin} túl kicsi ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Érvénytelen string: "${u.prefix}" értékkel kell kezdődnie`:u.format==="ends_with"?`Érvénytelen string: "${u.suffix}" értékkel kell végződnie`:u.format==="includes"?`Érvénytelen string: "${u.includes}" értéket kell tartalmaznia`:u.format==="regex"?`Érvénytelen string: ${u.pattern} mintának kell megfelelnie`:`Érvénytelen ${o[u.format]??n.format}`}case"not_multiple_of":return`Érvénytelen szám: ${n.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${B(n.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${n.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${n.origin}`;default:return"Érvénytelen bemenet"}}};function bT(){return{localeError:yT()}}function M_(i,r,o){return Math.abs(i)===1?r:o}function ea(i){if(!i)return"";const r=["ա","ե","ը","ի","ո","ու","օ"],o=i[i.length-1];return i+(r.includes(o)?"ն":"ը")}const _T=()=>{const i={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function r(n){return i[n]??null}const o={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",jwt:"JWT",template_literal:"մուտք"},l={nan:"NaN",number:"թիվ",array:"զանգված"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${n.expected}, ստացվել է ${m}`:`Սխալ մուտքագրում․ սպասվում էր ${u}, ստացվել է ${m}`}case"invalid_value":return n.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${ae(n.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);if(s){const m=Number(n.maximum),p=M_(m,s.unit.one,s.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${ea(n.origin??"արժեք")} կունենա ${u}${n.maximum.toString()} ${p}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${ea(n.origin??"արժեք")} լինի ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);if(s){const m=Number(n.minimum),p=M_(m,s.unit.one,s.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${ea(n.origin)} կունենա ${u}${n.minimum.toString()} ${p}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${ea(n.origin)} լինի ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Սխալ տող․ պետք է սկսվի "${u.prefix}"-ով`:u.format==="ends_with"?`Սխալ տող․ պետք է ավարտվի "${u.suffix}"-ով`:u.format==="includes"?`Սխալ տող․ պետք է պարունակի "${u.includes}"`:u.format==="regex"?`Սխալ տող․ պետք է համապատասխանի ${u.pattern} ձևաչափին`:`Սխալ ${o[u.format]??n.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${n.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${n.keys.length>1?"ներ":""}. ${B(n.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${ea(n.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${ea(n.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};function ST(){return{localeError:_T()}}const $T=()=>{const i={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function r(n){return i[n]??null}const o={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},l={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${m}`:`Input tidak valid: diharapkan ${u}, diterima ${m}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${ae(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${u}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Terlalu kecil: diharapkan ${n.origin} memiliki ${u}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`String tidak valid: harus dimulai dengan "${u.prefix}"`:u.format==="ends_with"?`String tidak valid: harus berakhir dengan "${u.suffix}"`:u.format==="includes"?`String tidak valid: harus menyertakan "${u.includes}"`:u.format==="regex"?`String tidak valid: harus sesuai pola ${u.pattern}`:`${o[u.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":""}: ${B(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 kT(){return{localeError:$T()}}const zT=()=>{const i={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function r(n){return i[n]??null}const o={regex:"gildi",email:"netfang",url:"vefslóð",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ími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"},l={nan:"NaN",number:"númer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Rangt gildi: Þú slóst inn ${m} þar sem á að vera instanceof ${n.expected}`:`Rangt gildi: Þú slóst inn ${m} þar sem á að vera ${u}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert ráð fyrir ${ae(n.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Of stórt: gert er ráð fyrir að ${n.origin??"gildi"} hafi ${u}${n.maximum.toString()} ${s.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${n.origin??"gildi"} sé ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Of lítið: gert er ráð fyrir að ${n.origin} hafi ${u}${n.minimum.toString()} ${s.unit}`:`Of lítið: gert er ráð fyrir að ${n.origin} sé ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Ógildur strengur: verður að byrja á "${u.prefix}"`:u.format==="ends_with"?`Ógildur strengur: verður að enda á "${u.suffix}"`:u.format==="includes"?`Ógildur strengur: verður að innihalda "${u.includes}"`:u.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${u.pattern}`:`Rangt ${o[u.format]??n.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`Óþekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${B(n.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${n.origin}`;default:return"Rangt gildi"}}};function xT(){return{localeError:zT()}}const wT=()=>{const i={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function r(n){return i[n]??null}const o={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},l={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${m}`:`Input non valido: atteso ${u}, ricevuto ${m}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${ae(n.values[0])}`:`Opzione non valida: atteso uno tra ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Troppo grande: ${n.origin??"valore"} deve avere ${u}${n.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Troppo piccolo: ${n.origin} deve avere ${u}${n.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${n.origin} deve essere ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Stringa non valida: deve iniziare con "${u.prefix}"`:u.format==="ends_with"?`Stringa non valida: deve terminare con "${u.suffix}"`:u.format==="includes"?`Stringa non valida: deve includere "${u.includes}"`:u.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${u.pattern}`:`Input non valido: ${o[u.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"}: ${B(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 TT(){return{localeError:wT()}}const ET=()=>{const i={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function r(n){return i[n]??null}const o={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"},l={nan:"NaN",number:"数値",array:"配列"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`無効な入力: instanceof ${n.expected}が期待されましたが、${m}が入力されました`:`無効な入力: ${u}が期待されましたが、${m}が入力されました`}case"invalid_value":return n.values.length===1?`無効な入力: ${ae(n.values[0])}が期待されました`:`無効な選択: ${B(n.values,"、")}のいずれかである必要があります`;case"too_big":{const u=n.inclusive?"以下である":"より小さい",s=r(n.origin);return s?`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${s.unit??"要素"}${u}必要があります`:`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${u}必要があります`}case"too_small":{const u=n.inclusive?"以上である":"より大きい",s=r(n.origin);return s?`小さすぎる値: ${n.origin}は${n.minimum.toString()}${s.unit}${u}必要があります`:`小さすぎる値: ${n.origin}は${n.minimum.toString()}${u}必要があります`}case"invalid_format":{const u=n;return u.format==="starts_with"?`無効な文字列: "${u.prefix}"で始まる必要があります`:u.format==="ends_with"?`無効な文字列: "${u.suffix}"で終わる必要があります`:u.format==="includes"?`無効な文字列: "${u.includes}"を含む必要があります`:u.format==="regex"?`無効な文字列: パターン${u.pattern}に一致する必要があります`:`無効な${o[u.format]??n.format}`}case"not_multiple_of":return`無効な数値: ${n.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${n.keys.length>1?"群":""}: ${B(n.keys,"、")}`;case"invalid_key":return`${n.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${n.origin}内の無効な値`;default:return"無効な入力"}}};function OT(){return{localeError:ET()}}const UT=()=>{const i={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function r(n){return i[n]??null}const o={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული ველი",base64url:"base64url-კოდირებული ველი",json_string:"JSON ველი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"},l={nan:"NaN",number:"რიცხვი",string:"ველი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${n.expected}, მიღებული ${m}`:`არასწორი შეყვანა: მოსალოდნელი ${u}, მიღებული ${m}`}case"invalid_value":return n.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${ae(n.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${B(n.values,"|")}-დან`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`ზედმეტად დიდი: მოსალოდნელი ${n.origin??"მნიშვნელობა"} ${s.verb} ${u}${n.maximum.toString()} ${s.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${n.origin??"მნიშვნელობა"} იყოს ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`ზედმეტად პატარა: მოსალოდნელი ${n.origin} ${s.verb} ${u}${n.minimum.toString()} ${s.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${n.origin} იყოს ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`არასწორი ველი: უნდა იწყებოდეს "${u.prefix}"-ით`:u.format==="ends_with"?`არასწორი ველი: უნდა მთავრდებოდეს "${u.suffix}"-ით`:u.format==="includes"?`არასწორი ველი: უნდა შეიცავდეს "${u.includes}"-ს`:u.format==="regex"?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${u.pattern}`:`არასწორი ${o[u.format]??n.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${n.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${n.keys.length>1?"ები":"ი"}: ${B(n.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${n.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${n.origin}-ში`;default:return"არასწორი შეყვანა"}}};function DT(){return{localeError:UT()}}const jT=()=>{const i={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function r(n){return i[n]??null}const o={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},l={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${n.expected} ប៉ុន្តែទទួលបាន ${m}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${u} ប៉ុន្តែទទួលបាន ${m}`}case"invalid_value":return n.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${ae(n.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${u} ${n.maximum.toString()} ${s.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${u} ${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`តូចពេក៖ ត្រូវការ ${n.origin} ${u} ${n.minimum.toString()} ${s.unit}`:`តូចពេក៖ ត្រូវការ ${n.origin} ${u} ${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${u.prefix}"`:u.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${u.suffix}"`:u.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${u.includes}"`:u.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${u.pattern}`:`មិនត្រឹមត្រូវ៖ ${o[u.format]??n.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${n.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${B(n.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function Hk(){return{localeError:jT()}}function NT(){return Hk()}const AT=()=>{const i={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function r(n){return i[n]??null}const o={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"},l={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`잘못된 입력: 예상 타입은 instanceof ${n.expected}, 받은 타입은 ${m}입니다`:`잘못된 입력: 예상 타입은 ${u}, 받은 타입은 ${m}입니다`}case"invalid_value":return n.values.length===1?`잘못된 입력: 값은 ${ae(n.values[0])} 이어야 합니다`:`잘못된 옵션: ${B(n.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const u=n.inclusive?"이하":"미만",s=u==="미만"?"이어야 합니다":"여야 합니다",m=r(n.origin),p=(m==null?void 0:m.unit)??"요소";return m?`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()}${p} ${u}${s}`:`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()} ${u}${s}`}case"too_small":{const u=n.inclusive?"이상":"초과",s=u==="이상"?"이어야 합니다":"여야 합니다",m=r(n.origin),p=(m==null?void 0:m.unit)??"요소";return m?`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()}${p} ${u}${s}`:`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()} ${u}${s}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`잘못된 문자열: "${u.prefix}"(으)로 시작해야 합니다`:u.format==="ends_with"?`잘못된 문자열: "${u.suffix}"(으)로 끝나야 합니다`:u.format==="includes"?`잘못된 문자열: "${u.includes}"을(를) 포함해야 합니다`:u.format==="regex"?`잘못된 문자열: 정규식 ${u.pattern} 패턴과 일치해야 합니다`:`잘못된 ${o[u.format]??n.format}`}case"not_multiple_of":return`잘못된 숫자: ${n.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${B(n.keys,", ")}`;case"invalid_key":return`잘못된 키: ${n.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${n.origin}`;default:return"잘못된 입력"}}};function IT(){return{localeError:AT()}}const zo=i=>i.charAt(0).toUpperCase()+i.slice(1);function Z_(i){const r=Math.abs(i),o=r%10,l=r%100;return l>=11&&l<=19||o===0?"many":o===1?"one":"few"}const RT=()=>{const i={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function r(n,u,s,m){const p=i[n]??null;return p===null?p:{unit:p.unit[u],verb:p.verb[m][s?"inclusive":"notInclusive"]}}const o={regex:"įvestis",email:"el. pašto 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ė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},l={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${m}, o tikėtasi - instanceof ${n.expected}`:`Gautas tipas ${m}, o tikėtasi - ${u}`}case"invalid_value":return n.values.length===1?`Privalo būti ${ae(n.values[0])}`:`Privalo būti vienas iš ${B(n.values,"|")} pasirinkimų`;case"too_big":{const u=l[n.origin]??n.origin,s=r(n.origin,Z_(Number(n.maximum)),n.inclusive??!1,"smaller");if(s!=null&&s.verb)return`${zo(u??n.origin??"reikšmė")} ${s.verb} ${n.maximum.toString()} ${s.unit??"elementų"}`;const m=n.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${zo(u??n.origin??"reikšmė")} turi būti ${m} ${n.maximum.toString()} ${s==null?void 0:s.unit}`}case"too_small":{const u=l[n.origin]??n.origin,s=r(n.origin,Z_(Number(n.minimum)),n.inclusive??!1,"bigger");if(s!=null&&s.verb)return`${zo(u??n.origin??"reikšmė")} ${s.verb} ${n.minimum.toString()} ${s.unit??"elementų"}`;const m=n.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${zo(u??n.origin??"reikšmė")} turi būti ${m} ${n.minimum.toString()} ${s==null?void 0:s.unit}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Eilutė privalo prasidėti "${u.prefix}"`:u.format==="ends_with"?`Eilutė privalo pasibaigti "${u.suffix}"`:u.format==="includes"?`Eilutė privalo įtraukti "${u.includes}"`:u.format==="regex"?`Eilutė privalo atitikti ${u.pattern}`:`Neteisingas ${o[u.format]??n.format}`}case"not_multiple_of":return`Skaičius privalo būti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${B(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const u=l[n.origin]??n.origin;return`${zo(u??n.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function CT(){return{localeError:RT()}}const MT=()=>{const i={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function r(n){return i[n]??null}const o={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"},l={nan:"NaN",number:"број",array:"низа"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Грешен внес: се очекува instanceof ${n.expected}, примено ${m}`:`Грешен внес: се очекува ${u}, примено ${m}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${ae(n.values[0])}`:`Грешана опција: се очекува една ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Премногу голем: се очекува ${n.origin??"вредноста"} да има ${u}${n.maximum.toString()} ${s.unit??"елементи"}`:`Премногу голем: се очекува ${n.origin??"вредноста"} да биде ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Премногу мал: се очекува ${n.origin} да има ${u}${n.minimum.toString()} ${s.unit}`:`Премногу мал: се очекува ${n.origin} да биде ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Неважечка низа: мора да започнува со "${u.prefix}"`:u.format==="ends_with"?`Неважечка низа: мора да завршува со "${u.suffix}"`:u.format==="includes"?`Неважечка низа: мора да вклучува "${u.includes}"`:u.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${u.pattern}`:`Invalid ${o[u.format]??n.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${B(n.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${n.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${n.origin}`;default:return"Грешен внес"}}};function ZT(){return{localeError:MT()}}const qT=()=>{const i={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function r(n){return i[n]??null}const o={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},l={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${m}`:`Input tidak sah: dijangka ${u}, diterima ${m}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${ae(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Terlalu besar: dijangka ${n.origin??"nilai"} ${s.verb} ${u}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Terlalu kecil: dijangka ${n.origin} ${s.verb} ${u}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`String tidak sah: mesti bermula dengan "${u.prefix}"`:u.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${u.suffix}"`:u.format==="includes"?`String tidak sah: mesti mengandungi "${u.includes}"`:u.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${u.pattern}`:`${o[u.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${B(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 LT(){return{localeError:qT()}}const HT=()=>{const i={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function r(n){return i[n]??null}const o={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},l={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${m}`:`Ongeldige invoer: verwacht ${u}, ontving ${m}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${ae(n.values[0])}`:`Ongeldige optie: verwacht één van ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin),m=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return s?`Te ${m}: verwacht dat ${n.origin??"waarde"} ${u}${n.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${m}: verwacht dat ${n.origin??"waarde"} ${u}${n.maximum.toString()} is`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin),m=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return s?`Te ${m}: verwacht dat ${n.origin} ${u}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${m}: verwacht dat ${n.origin} ${u}${n.minimum.toString()} is`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Ongeldige tekst: moet met "${u.prefix}" beginnen`:u.format==="ends_with"?`Ongeldige tekst: moet op "${u.suffix}" eindigen`:u.format==="includes"?`Ongeldige tekst: moet "${u.includes}" bevatten`:u.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${u.pattern}`:`Ongeldig: ${o[u.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":""}: ${B(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 BT(){return{localeError:HT()}}const JT=()=>{const i={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function r(n){return i[n]??null}const o={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},l={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${m}`:`Ugyldig input: forventet ${u}, fikk ${m}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${ae(n.values[0])}`:`Ugyldig valg: forventet en av ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`For stor(t): forventet ${n.origin??"value"} til å ha ${u}${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til å ha ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`For lite(n): forventet ${n.origin} til å ha ${u}${n.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${n.origin} til å ha ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Ugyldig streng: må starte med "${u.prefix}"`:u.format==="ends_with"?`Ugyldig streng: må ende med "${u.suffix}"`:u.format==="includes"?`Ugyldig streng: må inneholde "${u.includes}"`:u.format==="regex"?`Ugyldig streng: må matche mønsteret ${u.pattern}`:`Ugyldig ${o[u.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${B(n.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function GT(){return{localeError:JT()}}const YT=()=>{const i={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function r(n){return i[n]??null}const o={regex:"giren",email:"epostagâh",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âmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},l={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Fâsit giren: umulan instanceof ${n.expected}, alınan ${m}`:`Fâsit giren: umulan ${u}, alınan ${m}`}case"invalid_value":return n.values.length===1?`Fâsit giren: umulan ${ae(n.values[0])}`:`Fâsit tercih: mûteberler ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Fazla büyük: ${n.origin??"value"}, ${u}${n.maximum.toString()} ${s.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${n.origin??"value"}, ${u}${n.maximum.toString()} olmalıydı.`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Fazla küçük: ${n.origin}, ${u}${n.minimum.toString()} ${s.unit} sahip olmalıydı.`:`Fazla küçük: ${n.origin}, ${u}${n.minimum.toString()} olmalıydı.`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Fâsit metin: "${u.prefix}" ile başlamalı.`:u.format==="ends_with"?`Fâsit metin: "${u.suffix}" ile bitmeli.`:u.format==="includes"?`Fâsit metin: "${u.includes}" ihtivâ etmeli.`:u.format==="regex"?`Fâsit metin: ${u.pattern} nakşına uymalı.`:`Fâsit ${o[u.format]??n.format}`}case"not_multiple_of":return`Fâsit sayı: ${n.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${n.keys.length>1?"s":""}: ${B(n.keys,", ")}`;case"invalid_key":return`${n.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${n.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function XT(){return{localeError:YT()}}const VT=()=>{const i={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function r(n){return i[n]??null}const o={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"},l={nan:"NaN",number:"عدد",array:"ارې"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`ناسم ورودي: باید instanceof ${n.expected} وای, مګر ${m} ترلاسه شو`:`ناسم ورودي: باید ${u} وای, مګر ${m} ترلاسه شو`}case"invalid_value":return n.values.length===1?`ناسم ورودي: باید ${ae(n.values[0])} وای`:`ناسم انتخاب: باید یو له ${B(n.values,"|")} څخه وای`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`ډیر لوی: ${n.origin??"ارزښت"} باید ${u}${n.maximum.toString()} ${s.unit??"عنصرونه"} ولري`:`ډیر لوی: ${n.origin??"ارزښت"} باید ${u}${n.maximum.toString()} وي`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`ډیر کوچنی: ${n.origin} باید ${u}${n.minimum.toString()} ${s.unit} ولري`:`ډیر کوچنی: ${n.origin} باید ${u}${n.minimum.toString()} وي`}case"invalid_format":{const u=n;return u.format==="starts_with"?`ناسم متن: باید د "${u.prefix}" سره پیل شي`:u.format==="ends_with"?`ناسم متن: باید د "${u.suffix}" سره پای ته ورسيږي`:u.format==="includes"?`ناسم متن: باید "${u.includes}" ولري`:u.format==="regex"?`ناسم متن: باید د ${u.pattern} سره مطابقت ولري`:`${o[u.format]??n.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${n.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${n.keys.length>1?"کلیډونه":"کلیډ"}: ${B(n.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${n.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${n.origin} کې`;default:return"ناسمه ورودي"}}};function PT(){return{localeError:VT()}}const QT=()=>{const i={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function r(n){return i[n]??null}const o={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"},l={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${n.expected}, otrzymano ${m}`:`Nieprawidłowe dane wejściowe: oczekiwano ${u}, otrzymano ${m}`}case"invalid_value":return n.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${ae(n.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Za duża wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${u}${n.maximum.toString()} ${s.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Za mała wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${u}${n.minimum.toString()} ${s.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${u.prefix}"`:u.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${u.suffix}"`:u.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${u.includes}"`:u.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${u.pattern}`:`Nieprawidłow(y/a/e) ${o[u.format]??n.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${B(n.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${n.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${n.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function KT(){return{localeError:QT()}}const FT=()=>{const i={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function r(n){return i[n]??null}const o={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},l={nan:"NaN",number:"número",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Tipo inválido: esperado instanceof ${n.expected}, recebido ${m}`:`Tipo inválido: esperado ${u}, recebido ${m}`}case"invalid_value":return n.values.length===1?`Entrada inválida: esperado ${ae(n.values[0])}`:`Opção inválida: esperada uma das ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${u}${n.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Muito pequeno: esperado que ${n.origin} tivesse ${u}${n.minimum.toString()} ${s.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Texto inválido: deve começar com "${u.prefix}"`:u.format==="ends_with"?`Texto inválido: deve terminar com "${u.suffix}"`:u.format==="includes"?`Texto inválido: deve incluir "${u.includes}"`:u.format==="regex"?`Texto inválido: deve corresponder ao padrão ${u.pattern}`:`${o[u.format]??n.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${B(n.keys,", ")}`;case"invalid_key":return`Chave inválida em ${n.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${n.origin}`;default:return"Campo inválido"}}};function WT(){return{localeError:FT()}}const e6=()=>{const i={string:{unit:"caractere",verb:"să aibă"},file:{unit:"octeți",verb:"să aibă"},array:{unit:"elemente",verb:"să aibă"},set:{unit:"elemente",verb:"să aibă"},map:{unit:"intrări",verb:"să aibă"}};function r(n){return i[n]??null}const o={regex:"intrare",email:"adresă 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ă și oră ISO",date:"dată ISO",time:"oră ISO",duration:"durată ISO",ipv4:"adresă IPv4",ipv6:"adresă IPv6",mac:"adresă MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"șir codat base64",base64url:"șir codat base64url",json_string:"șir JSON",e164:"număr E.164",jwt:"JWT",template_literal:"intrare"},l={nan:"NaN",string:"șir",number:"număr",boolean:"boolean",function:"funcție",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"număr mare",void:"void",never:"never",map:"hartă",set:"set"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return`Intrare invalidă: așteptat ${u}, primit ${m}`}case"invalid_value":return n.values.length===1?`Intrare invalidă: așteptat ${ae(n.values[0])}`:`Opțiune invalidă: așteptat una dintre ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Prea mare: așteptat ca ${n.origin??"valoarea"} ${s.verb} ${u}${n.maximum.toString()} ${s.unit??"elemente"}`:`Prea mare: așteptat ca ${n.origin??"valoarea"} să fie ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Prea mic: așteptat ca ${n.origin} ${s.verb} ${u}${n.minimum.toString()} ${s.unit}`:`Prea mic: așteptat ca ${n.origin} să fie ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Șir invalid: trebuie să înceapă cu "${u.prefix}"`:u.format==="ends_with"?`Șir invalid: trebuie să se termine cu "${u.suffix}"`:u.format==="includes"?`Șir invalid: trebuie să includă "${u.includes}"`:u.format==="regex"?`Șir invalid: trebuie să se potrivească cu modelul ${u.pattern}`:`Format invalid: ${o[u.format]??n.format}`}case"not_multiple_of":return`Număr invalid: trebuie să fie multiplu de ${n.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${B(n.keys,", ")}`;case"invalid_key":return`Cheie invalidă în ${n.origin}`;case"invalid_union":return"Intrare invalidă";case"invalid_element":return`Valoare invalidă în ${n.origin}`;default:return"Intrare invalidă"}}};function t6(){return{localeError:e6()}}function q_(i,r,o,l){const n=Math.abs(i),u=n%10,s=n%100;return s>=11&&s<=19?l:u===1?r:u>=2&&u<=4?o:l}const n6=()=>{const i={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function r(n){return i[n]??null}const o={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"},l={nan:"NaN",number:"число",array:"массив"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Неверный ввод: ожидалось instanceof ${n.expected}, получено ${m}`:`Неверный ввод: ожидалось ${u}, получено ${m}`}case"invalid_value":return n.values.length===1?`Неверный ввод: ожидалось ${ae(n.values[0])}`:`Неверный вариант: ожидалось одно из ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);if(s){const m=Number(n.maximum),p=q_(m,s.unit.one,s.unit.few,s.unit.many);return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет иметь ${u}${n.maximum.toString()} ${p}`}return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);if(s){const m=Number(n.minimum),p=q_(m,s.unit.one,s.unit.few,s.unit.many);return`Слишком маленькое значение: ожидалось, что ${n.origin} будет иметь ${u}${n.minimum.toString()} ${p}`}return`Слишком маленькое значение: ожидалось, что ${n.origin} будет ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Неверная строка: должна начинаться с "${u.prefix}"`:u.format==="ends_with"?`Неверная строка: должна заканчиваться на "${u.suffix}"`:u.format==="includes"?`Неверная строка: должна содержать "${u.includes}"`:u.format==="regex"?`Неверная строка: должна соответствовать шаблону ${u.pattern}`:`Неверный ${o[u.format]??n.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспознанн${n.keys.length>1?"ые":"ый"} ключ${n.keys.length>1?"и":""}: ${B(n.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${n.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${n.origin}`;default:return"Неверные входные данные"}}};function i6(){return{localeError:n6()}}const r6=()=>{const i={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function r(n){return i[n]??null}const o={regex:"vnos",email:"e-poštni 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 čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"},l={nan:"NaN",number:"število",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pričakovano instanceof ${n.expected}, prejeto ${m}`:`Neveljaven vnos: pričakovano ${u}, prejeto ${m}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pričakovano ${ae(n.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} imelo ${u}${n.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Premajhno: pričakovano, da bo ${n.origin} imelo ${u}${n.minimum.toString()} ${s.unit}`:`Premajhno: pričakovano, da bo ${n.origin} ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Neveljaven niz: mora se začeti z "${u.prefix}"`:u.format==="ends_with"?`Neveljaven niz: mora se končati z "${u.suffix}"`:u.format==="includes"?`Neveljaven niz: mora vsebovati "${u.includes}"`:u.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${u.pattern}`:`Neveljaven ${o[u.format]??n.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i ključi":" ključ"}: ${B(n.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function a6(){return{localeError:r6()}}const o6=()=>{const i={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function r(n){return i[n]??null}const o={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},l={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: förväntat instanceof ${n.expected}, fick ${m}`:`Ogiltig inmatning: förväntat ${u}, fick ${m}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: förväntat ${ae(n.values[0])}`:`Ogiltigt val: förväntade en av ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`För stor(t): förväntade ${n.origin??"värdet"} att ha ${u}${n.maximum.toString()} ${s.unit??"element"}`:`För stor(t): förväntat ${n.origin??"värdet"} att ha ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`För lite(t): förväntade ${n.origin??"värdet"} att ha ${u}${n.minimum.toString()} ${s.unit}`:`För lite(t): förväntade ${n.origin??"värdet"} att ha ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Ogiltig sträng: måste börja med "${u.prefix}"`:u.format==="ends_with"?`Ogiltig sträng: måste sluta med "${u.suffix}"`:u.format==="includes"?`Ogiltig sträng: måste innehålla "${u.includes}"`:u.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${u.pattern}"`:`Ogiltig(t) ${o[u.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${B(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${n.origin??"värdet"}`;default:return"Ogiltig input"}}};function l6(){return{localeError:o6()}}const u6=()=>{const i={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function r(n){return i[n]??null}const o={regex:"உள்ளீடு",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 தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"},l={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${n.expected}, பெறப்பட்டது ${m}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${u}, பெறப்பட்டது ${m}`}case"invalid_value":return n.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${ae(n.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${B(n.values,"|")} இல் ஒன்று`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${u}${n.maximum.toString()} ${s.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${u}${n.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${u}${n.minimum.toString()} ${s.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${u}${n.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const u=n;return u.format==="starts_with"?`தவறான சரம்: "${u.prefix}" இல் தொடங்க வேண்டும்`:u.format==="ends_with"?`தவறான சரம்: "${u.suffix}" இல் முடிவடைய வேண்டும்`:u.format==="includes"?`தவறான சரம்: "${u.includes}" ஐ உள்ளடக்க வேண்டும்`:u.format==="regex"?`தவறான சரம்: ${u.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${o[u.format]??n.format}`}case"not_multiple_of":return`தவறான எண்: ${n.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${n.keys.length>1?"கள்":""}: ${B(n.keys,", ")}`;case"invalid_key":return`${n.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${n.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function c6(){return{localeError:u6()}}const s6=()=>{const i={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function r(n){return i[n]??null}const o={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},l={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${n.expected} แต่ได้รับ ${m}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${u} แต่ได้รับ ${m}`}case"invalid_value":return n.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${ae(n.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"ไม่เกิน":"น้อยกว่า",s=r(n.origin);return s?`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${u} ${n.maximum.toString()} ${s.unit??"รายการ"}`:`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${u} ${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?"อย่างน้อย":"มากกว่า",s=r(n.origin);return s?`น้อยกว่ากำหนด: ${n.origin} ควรมี${u} ${n.minimum.toString()} ${s.unit}`:`น้อยกว่ากำหนด: ${n.origin} ควรมี${u} ${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${u.prefix}"`:u.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${u.suffix}"`:u.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${u.includes}" อยู่ในข้อความ`:u.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${u.pattern}`:`รูปแบบไม่ถูกต้อง: ${o[u.format]??n.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${n.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${B(n.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${n.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${n.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function d6(){return{localeError:s6()}}const f6=()=>{const i={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function r(n){return i[n]??null}const o={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üre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"},l={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Geçersiz değer: beklenen instanceof ${n.expected}, alınan ${m}`:`Geçersiz değer: beklenen ${u}, alınan ${m}`}case"invalid_value":return n.values.length===1?`Geçersiz değer: beklenen ${ae(n.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Çok büyük: beklenen ${n.origin??"değer"} ${u}${n.maximum.toString()} ${s.unit??"öğe"}`:`Çok büyük: beklenen ${n.origin??"değer"} ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Çok küçük: beklenen ${n.origin} ${u}${n.minimum.toString()} ${s.unit}`:`Çok küçük: beklenen ${n.origin} ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Geçersiz metin: "${u.prefix}" ile başlamalı`:u.format==="ends_with"?`Geçersiz metin: "${u.suffix}" ile bitmeli`:u.format==="includes"?`Geçersiz metin: "${u.includes}" içermeli`:u.format==="regex"?`Geçersiz metin: ${u.pattern} desenine uymalı`:`Geçersiz ${o[u.format]??n.format}`}case"not_multiple_of":return`Geçersiz sayı: ${n.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${n.keys.length>1?"lar":""}: ${B(n.keys,", ")}`;case"invalid_key":return`${n.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${n.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function m6(){return{localeError:f6()}}const p6=()=>{const i={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function r(n){return i[n]??null}const o={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"},l={nan:"NaN",number:"число",array:"масив"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Неправильні вхідні дані: очікується instanceof ${n.expected}, отримано ${m}`:`Неправильні вхідні дані: очікується ${u}, отримано ${m}`}case"invalid_value":return n.values.length===1?`Неправильні вхідні дані: очікується ${ae(n.values[0])}`:`Неправильна опція: очікується одне з ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Занадто велике: очікується, що ${n.origin??"значення"} ${s.verb} ${u}${n.maximum.toString()} ${s.unit??"елементів"}`:`Занадто велике: очікується, що ${n.origin??"значення"} буде ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Занадто мале: очікується, що ${n.origin} ${s.verb} ${u}${n.minimum.toString()} ${s.unit}`:`Занадто мале: очікується, що ${n.origin} буде ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Неправильний рядок: повинен починатися з "${u.prefix}"`:u.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${u.suffix}"`:u.format==="includes"?`Неправильний рядок: повинен містити "${u.includes}"`:u.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${u.pattern}`:`Неправильний ${o[u.format]??n.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${n.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${n.keys.length>1?"і":""}: ${B(n.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${n.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${n.origin}`;default:return"Неправильні вхідні дані"}}};function Bk(){return{localeError:p6()}}function h6(){return Bk()}const g6=()=>{const i={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function r(n){return i[n]??null}const o={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},l={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`غلط ان پٹ: instanceof ${n.expected} متوقع تھا، ${m} موصول ہوا`:`غلط ان پٹ: ${u} متوقع تھا، ${m} موصول ہوا`}case"invalid_value":return n.values.length===1?`غلط ان پٹ: ${ae(n.values[0])} متوقع تھا`:`غلط آپشن: ${B(n.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`بہت بڑا: ${n.origin??"ویلیو"} کے ${u}${n.maximum.toString()} ${s.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${n.origin??"ویلیو"} کا ${u}${n.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`بہت چھوٹا: ${n.origin} کے ${u}${n.minimum.toString()} ${s.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${n.origin} کا ${u}${n.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const u=n;return u.format==="starts_with"?`غلط سٹرنگ: "${u.prefix}" سے شروع ہونا چاہیے`:u.format==="ends_with"?`غلط سٹرنگ: "${u.suffix}" پر ختم ہونا چاہیے`:u.format==="includes"?`غلط سٹرنگ: "${u.includes}" شامل ہونا چاہیے`:u.format==="regex"?`غلط سٹرنگ: پیٹرن ${u.pattern} سے میچ ہونا چاہیے`:`غلط ${o[u.format]??n.format}`}case"not_multiple_of":return`غلط نمبر: ${n.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${n.keys.length>1?"ز":""}: ${B(n.keys,"، ")}`;case"invalid_key":return`${n.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${n.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function v6(){return{localeError:g6()}}const y6=()=>{const i={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"},map:{unit:"yozuv",verb:"bo‘lishi kerak"}};function r(n){return i[n]??null}const o={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},l={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${m}`:`Noto‘g‘ri kirish: kutilgan ${u}, qabul qilingan ${m}`}case"invalid_value":return n.values.length===1?`Noto‘g‘ri kirish: kutilgan ${ae(n.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Juda katta: kutilgan ${n.origin??"qiymat"} ${u}${n.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Juda kichik: kutilgan ${n.origin} ${u}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${n.origin} ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Noto‘g‘ri satr: "${u.prefix}" bilan boshlanishi kerak`:u.format==="ends_with"?`Noto‘g‘ri satr: "${u.suffix}" bilan tugashi kerak`:u.format==="includes"?`Noto‘g‘ri satr: "${u.includes}" ni o‘z ichiga olishi kerak`:u.format==="regex"?`Noto‘g‘ri satr: ${u.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${o[u.format]??n.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${n.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${n.keys.length>1?"lar":""}: ${B(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto‘g‘ri`;case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return`${n.origin} da noto‘g‘ri qiymat`;default:return"Noto‘g‘ri kirish"}}};function b6(){return{localeError:y6()}}const _6=()=>{const i={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function r(n){return i[n]??null}const o={regex:"đầu vào",email:"địa chỉ 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ày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"},l={nan:"NaN",number:"số",array:"mảng"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${n.expected}, nhận được ${m}`:`Đầu vào không hợp lệ: mong đợi ${u}, nhận được ${m}`}case"invalid_value":return n.values.length===1?`Đầu vào không hợp lệ: mong đợi ${ae(n.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Quá lớn: mong đợi ${n.origin??"giá trị"} ${s.verb} ${u}${n.maximum.toString()} ${s.unit??"phần tử"}`:`Quá lớn: mong đợi ${n.origin??"giá trị"} ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Quá nhỏ: mong đợi ${n.origin} ${s.verb} ${u}${n.minimum.toString()} ${s.unit}`:`Quá nhỏ: mong đợi ${n.origin} ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${u.prefix}"`:u.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${u.suffix}"`:u.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${u.includes}"`:u.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${u.pattern}`:`${o[u.format]??n.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${n.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${B(n.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${n.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${n.origin}`;default:return"Đầu vào không hợp lệ"}}};function S6(){return{localeError:_6()}}const $6=()=>{const i={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function r(n){return i[n]??null}const o={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"},l={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`无效输入:期望 instanceof ${n.expected},实际接收 ${m}`:`无效输入:期望 ${u},实际接收 ${m}`}case"invalid_value":return n.values.length===1?`无效输入:期望 ${ae(n.values[0])}`:`无效选项:期望以下之一 ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`数值过大:期望 ${n.origin??"值"} ${u}${n.maximum.toString()} ${s.unit??"个元素"}`:`数值过大:期望 ${n.origin??"值"} ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`数值过小:期望 ${n.origin} ${u}${n.minimum.toString()} ${s.unit}`:`数值过小:期望 ${n.origin} ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`无效字符串:必须以 "${u.prefix}" 开头`:u.format==="ends_with"?`无效字符串:必须以 "${u.suffix}" 结尾`:u.format==="includes"?`无效字符串:必须包含 "${u.includes}"`:u.format==="regex"?`无效字符串:必须满足正则表达式 ${u.pattern}`:`无效${o[u.format]??n.format}`}case"not_multiple_of":return`无效数字:必须是 ${n.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${B(n.keys,", ")}`;case"invalid_key":return`${n.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${n.origin} 中包含无效值(value)`;default:return"无效输入"}}};function k6(){return{localeError:$6()}}const z6=()=>{const i={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function r(n){return i[n]??null}const o={regex:"輸入",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 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"},l={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`無效的輸入值:預期為 instanceof ${n.expected},但收到 ${m}`:`無效的輸入值:預期為 ${u},但收到 ${m}`}case"invalid_value":return n.values.length===1?`無效的輸入值:預期為 ${ae(n.values[0])}`:`無效的選項:預期為以下其中之一 ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`數值過大:預期 ${n.origin??"值"} 應為 ${u}${n.maximum.toString()} ${s.unit??"個元素"}`:`數值過大:預期 ${n.origin??"值"} 應為 ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`數值過小:預期 ${n.origin} 應為 ${u}${n.minimum.toString()} ${s.unit}`:`數值過小:預期 ${n.origin} 應為 ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`無效的字串:必須以 "${u.prefix}" 開頭`:u.format==="ends_with"?`無效的字串:必須以 "${u.suffix}" 結尾`:u.format==="includes"?`無效的字串:必須包含 "${u.includes}"`:u.format==="regex"?`無效的字串:必須符合格式 ${u.pattern}`:`無效的 ${o[u.format]??n.format}`}case"not_multiple_of":return`無效的數字:必須為 ${n.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${n.keys.length>1?"們":""}:${B(n.keys,"、")}`;case"invalid_key":return`${n.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${n.origin} 中有無效的值`;default:return"無效的輸入值"}}};function x6(){return{localeError:z6()}}const w6=()=>{const i={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function r(n){return i[n]??null}const o={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",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:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},l={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=le(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${n.expected}, àmọ̀ a rí ${m}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${u}, àmọ̀ a rí ${m}`}case"invalid_value":return n.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${ae(n.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Tó pọ̀ jù: a ní láti jẹ́ pé ${n.origin??"iye"} ${s.verb} ${u}${n.maximum} ${s.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${u}${n.maximum}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Kéré ju: a ní láti jẹ́ pé ${n.origin} ${s.verb} ${u}${n.minimum} ${s.unit}`:`Kéré ju: a ní láti jẹ́ ${u}${n.minimum}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${u.prefix}"`:u.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${u.suffix}"`:u.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${u.includes}"`:u.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${u.pattern}`:`Aṣìṣe: ${o[u.format]??n.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${n.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${B(n.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${n.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${n.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function T6(){return{localeError:w6()}}const Mm=Object.freeze(Object.defineProperty({__proto__:null,ar:M4,az:q4,be:H4,bg:J4,ca:Y4,cs:V4,da:Q4,de:F4,el:eT,en:Lk,eo:iT,es:aT,fa:lT,fi:cT,fr:dT,frCA:mT,he:hT,hr:vT,hu:bT,hy:ST,id:kT,is:xT,it:TT,ja:OT,ka:DT,kh:NT,km:Hk,ko:IT,lt:CT,mk:ZT,ms:LT,nl:BT,no:GT,ota:XT,pl:KT,ps:PT,pt:WT,ro:t6,ru:i6,sl:a6,sv:l6,ta:c6,th:d6,tr:m6,ua:h6,uk:Bk,ur:v6,uz:b6,vi:S6,yo:T6,zhCN:k6,zhTW:x6},Symbol.toStringTag,{value:"Module"}));var L_;const Zm=Symbol("ZodOutput"),qm=Symbol("ZodInput");class Jk{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...o){const l=o[0];return this._map.set(r,l),l&&typeof l=="object"&&"id"in l&&this._idmap.set(l.id,r),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){const o=this._map.get(r);return o&&typeof o=="object"&&"id"in o&&this._idmap.delete(o.id),this._map.delete(r),this}get(r){const o=r._zod.parent;if(o){const l={...this.get(o)??{}};delete l.id;const n={...l,...this._map.get(r)};return Object.keys(n).length?n:void 0}return this._map.get(r)}has(r){return this._map.has(r)}}function xc(){return new Jk}(L_=globalThis).__zod_globalRegistry??(L_.__zod_globalRegistry=xc());const an=globalThis.__zod_globalRegistry;function Gk(i,r){return new i({type:"string",...L(r)})}function Yk(i,r){return new i({type:"string",coerce:!0,...L(r)})}function Lm(i,r){return new i({type:"string",format:"email",check:"string_format",abort:!1,...L(r)})}function uc(i,r){return new i({type:"string",format:"guid",check:"string_format",abort:!1,...L(r)})}function Hm(i,r){return new i({type:"string",format:"uuid",check:"string_format",abort:!1,...L(r)})}function Bm(i,r){return new i({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...L(r)})}function Jm(i,r){return new i({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...L(r)})}function Gm(i,r){return new i({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...L(r)})}function wc(i,r){return new i({type:"string",format:"url",check:"string_format",abort:!1,...L(r)})}function Ym(i,r){return new i({type:"string",format:"emoji",check:"string_format",abort:!1,...L(r)})}function Xm(i,r){return new i({type:"string",format:"nanoid",check:"string_format",abort:!1,...L(r)})}function Vm(i,r){return new i({type:"string",format:"cuid",check:"string_format",abort:!1,...L(r)})}function Pm(i,r){return new i({type:"string",format:"cuid2",check:"string_format",abort:!1,...L(r)})}function Qm(i,r){return new i({type:"string",format:"ulid",check:"string_format",abort:!1,...L(r)})}function Km(i,r){return new i({type:"string",format:"xid",check:"string_format",abort:!1,...L(r)})}function Fm(i,r){return new i({type:"string",format:"ksuid",check:"string_format",abort:!1,...L(r)})}function Wm(i,r){return new i({type:"string",format:"ipv4",check:"string_format",abort:!1,...L(r)})}function ep(i,r){return new i({type:"string",format:"ipv6",check:"string_format",abort:!1,...L(r)})}function Xk(i,r){return new i({type:"string",format:"mac",check:"string_format",abort:!1,...L(r)})}function tp(i,r){return new i({type:"string",format:"cidrv4",check:"string_format",abort:!1,...L(r)})}function np(i,r){return new i({type:"string",format:"cidrv6",check:"string_format",abort:!1,...L(r)})}function ip(i,r){return new i({type:"string",format:"base64",check:"string_format",abort:!1,...L(r)})}function rp(i,r){return new i({type:"string",format:"base64url",check:"string_format",abort:!1,...L(r)})}function ap(i,r){return new i({type:"string",format:"e164",check:"string_format",abort:!1,...L(r)})}function op(i,r){return new i({type:"string",format:"jwt",check:"string_format",abort:!1,...L(r)})}const lp={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Vk(i,r){return new i({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...L(r)})}function Pk(i,r){return new i({type:"string",format:"date",check:"string_format",...L(r)})}function Qk(i,r){return new i({type:"string",format:"time",check:"string_format",precision:null,...L(r)})}function Kk(i,r){return new i({type:"string",format:"duration",check:"string_format",...L(r)})}function Fk(i,r){return new i({type:"number",checks:[],...L(r)})}function Wk(i,r){return new i({type:"number",coerce:!0,checks:[],...L(r)})}function e0(i,r){return new i({type:"number",check:"number_format",abort:!1,format:"safeint",...L(r)})}function t0(i,r){return new i({type:"number",check:"number_format",abort:!1,format:"float32",...L(r)})}function n0(i,r){return new i({type:"number",check:"number_format",abort:!1,format:"float64",...L(r)})}function i0(i,r){return new i({type:"number",check:"number_format",abort:!1,format:"int32",...L(r)})}function r0(i,r){return new i({type:"number",check:"number_format",abort:!1,format:"uint32",...L(r)})}function a0(i,r){return new i({type:"boolean",...L(r)})}function o0(i,r){return new i({type:"boolean",coerce:!0,...L(r)})}function l0(i,r){return new i({type:"bigint",...L(r)})}function u0(i,r){return new i({type:"bigint",coerce:!0,...L(r)})}function c0(i,r){return new i({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...L(r)})}function s0(i,r){return new i({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...L(r)})}function d0(i,r){return new i({type:"symbol",...L(r)})}function f0(i,r){return new i({type:"undefined",...L(r)})}function m0(i,r){return new i({type:"null",...L(r)})}function p0(i){return new i({type:"any"})}function h0(i){return new i({type:"unknown"})}function g0(i,r){return new i({type:"never",...L(r)})}function v0(i,r){return new i({type:"void",...L(r)})}function y0(i,r){return new i({type:"date",...L(r)})}function b0(i,r){return new i({type:"date",coerce:!0,...L(r)})}function _0(i,r){return new i({type:"nan",...L(r)})}function ai(i,r){return new Om({check:"less_than",...L(r),value:i,inclusive:!1})}function on(i,r){return new Om({check:"less_than",...L(r),value:i,inclusive:!0})}function oi(i,r){return new Um({check:"greater_than",...L(r),value:i,inclusive:!1})}function Mt(i,r){return new Um({check:"greater_than",...L(r),value:i,inclusive:!0})}function Tc(i){return oi(0,i)}function Ec(i){return ai(0,i)}function Oc(i){return on(0,i)}function Uc(i){return Mt(0,i)}function lr(i,r){return new u$({check:"multiple_of",...L(r),value:i})}function mr(i,r){return new d$({check:"max_size",...L(r),maximum:i})}function li(i,r){return new f$({check:"min_size",...L(r),minimum:i})}function ma(i,r){return new m$({check:"size_equals",...L(r),size:i})}function pa(i,r){return new p$({check:"max_length",...L(r),maximum:i})}function Ai(i,r){return new h$({check:"min_length",...L(r),minimum:i})}function ha(i,r){return new g$({check:"length_equals",...L(r),length:i})}function Lo(i,r){return new v$({check:"string_format",format:"regex",...L(r),pattern:i})}function Ho(i){return new y$({check:"string_format",format:"lowercase",...L(i)})}function Bo(i){return new b$({check:"string_format",format:"uppercase",...L(i)})}function Jo(i,r){return new _$({check:"string_format",format:"includes",...L(r),includes:i})}function Go(i,r){return new S$({check:"string_format",format:"starts_with",...L(r),prefix:i})}function Yo(i,r){return new $$({check:"string_format",format:"ends_with",...L(r),suffix:i})}function Dc(i,r,o){return new k$({check:"property",property:i,schema:r,...L(o)})}function Xo(i,r){return new z$({check:"mime_type",mime:i,...L(r)})}function Mn(i){return new x$({check:"overwrite",tx:i})}function Vo(i){return Mn(r=>r.normalize(i))}function Po(){return Mn(i=>i.trim())}function Qo(){return Mn(i=>i.toLowerCase())}function Ko(){return Mn(i=>i.toUpperCase())}function Fo(){return Mn(i=>uS(i))}function S0(i,r,o){return new i({type:"array",element:r,...L(o)})}function E6(i,r,o){return new i({type:"union",options:r,...L(o)})}function O6(i,r,o){return new i({type:"union",options:r,inclusive:!1,...L(o)})}function U6(i,r,o,l){return new i({type:"union",options:o,discriminator:r,...L(l)})}function D6(i,r,o){return new i({type:"intersection",left:r,right:o})}function j6(i,r,o,l){const n=o instanceof he,u=n?l:o,s=n?o:null;return new i({type:"tuple",items:r,rest:s,...L(u)})}function N6(i,r,o,l){return new i({type:"record",keyType:r,valueType:o,...L(l)})}function A6(i,r,o,l){return new i({type:"map",keyType:r,valueType:o,...L(l)})}function I6(i,r,o){return new i({type:"set",valueType:r,...L(o)})}function R6(i,r,o){const l=Array.isArray(r)?Object.fromEntries(r.map(n=>[n,n])):r;return new i({type:"enum",entries:l,...L(o)})}function C6(i,r,o){return new i({type:"enum",entries:r,...L(o)})}function M6(i,r,o){return new i({type:"literal",values:Array.isArray(r)?r:[r],...L(o)})}function $0(i,r){return new i({type:"file",...L(r)})}function Z6(i,r){return new i({type:"transform",transform:r})}function q6(i,r){return new i({type:"optional",innerType:r})}function L6(i,r){return new i({type:"nullable",innerType:r})}function H6(i,r,o){return new i({type:"default",innerType:r,get defaultValue(){return typeof o=="function"?o():yc(o)}})}function B6(i,r,o){return new i({type:"nonoptional",innerType:r,...L(o)})}function J6(i,r){return new i({type:"success",innerType:r})}function G6(i,r,o){return new i({type:"catch",innerType:r,catchValue:typeof o=="function"?o:()=>o})}function Y6(i,r,o){return new i({type:"pipe",in:r,out:o})}function X6(i,r){return new i({type:"readonly",innerType:r})}function V6(i,r,o){return new i({type:"template_literal",parts:r,...L(o)})}function P6(i,r){return new i({type:"lazy",getter:r})}function Q6(i,r){return new i({type:"promise",innerType:r})}function k0(i,r,o){const l=L(o);return l.abort??(l.abort=!0),new i({type:"custom",check:"custom",fn:r,...l})}function z0(i,r,o){return new i({type:"custom",check:"custom",fn:r,...L(o)})}function x0(i,r){const o=w0(l=>(l.addIssue=n=>{if(typeof n=="string")l.issues.push(na(n,l.value,o._zod.def));else{const u=n;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=l.value),u.inst??(u.inst=o),u.continue??(u.continue=!o._zod.def.abort),l.issues.push(na(u))}},i(l.value,l)),r);return o}function w0(i,r){const o=new it({check:"custom",...L(r)});return o._zod.check=i,o}function T0(i){const r=new it({check:"describe"});return r._zod.onattach=[o=>{const l=an.get(o)??{};an.add(o,{...l,description:i})}],r._zod.check=()=>{},r}function E0(i){const r=new it({check:"meta"});return r._zod.onattach=[o=>{const l=an.get(o)??{};an.add(o,{...l,...i})}],r._zod.check=()=>{},r}function O0(i,r){const o=L(r);let l=o.truthy??["true","1","yes","on","y","enabled"],n=o.falsy??["false","0","no","off","n","disabled"];o.case!=="sensitive"&&(l=l.map(z=>typeof z=="string"?z.toLowerCase():z),n=n.map(z=>typeof z=="string"?z.toLowerCase():z));const u=new Set(l),s=new Set(n),m=i.Codec??Cm,p=i.Boolean??Nm,g=i.String??qo,v=new g({type:"string",error:o.error}),b=new p({type:"boolean",error:o.error}),_=new m({type:"pipe",in:v,out:b,transform:((z,x)=>{let H=z;return o.case!=="sensitive"&&(H=H.toLowerCase()),u.has(H)?!0:s.has(H)?!1:(x.issues.push({code:"invalid_value",expected:"stringbool",values:[...u,...s],input:x.value,inst:_,continue:!1}),{})}),reverseTransform:((z,x)=>z===!0?l[0]||"true":n[0]||"false"),error:o.error});return _}function Wo(i,r,o,l={}){const n=L(l),u={...L(l),check:"string_format",type:"string",format:r,fn:typeof o=="function"?o:m=>o.test(m),...n};return o instanceof RegExp&&(u.pattern=o),new i(u)}function ra(i){let r=(i==null?void 0:i.target)??"draft-2020-12";return r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),{processors:i.processors??{},metadataRegistry:(i==null?void 0:i.metadata)??an,target:r,unrepresentable:(i==null?void 0:i.unrepresentable)??"throw",override:(i==null?void 0:i.override)??(()=>{}),io:(i==null?void 0:i.io)??"output",counter:0,seen:new Map,cycles:(i==null?void 0:i.cycles)??"ref",reused:(i==null?void 0:i.reused)??"inline",external:(i==null?void 0:i.external)??void 0}}function Pe(i,r,o={path:[],schemaPath:[]}){var v,b;var l;const n=i._zod.def,u=r.seen.get(i);if(u)return u.count++,o.schemaPath.includes(i)&&(u.cycle=o.path),u.schema;const s={schema:{},count:1,cycle:void 0,path:o.path};r.seen.set(i,s);const m=(b=(v=i._zod).toJSONSchema)==null?void 0:b.call(v);if(m)s.schema=m;else{const _={...o,schemaPath:[...o.schemaPath,i],path:o.path};if(i._zod.processJSONSchema)i._zod.processJSONSchema(r,s.schema,_);else{const x=s.schema,H=r.processors[n.type];if(!H)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);H(i,r,x,_)}const z=i._zod.parent;z&&(s.ref||(s.ref=z),Pe(z,r,_),r.seen.get(z).isParent=!0)}const p=r.metadataRegistry.get(i);return p&&Object.assign(s.schema,p),r.io==="input"&&Ct(i)&&(delete s.schema.examples,delete s.schema.default),r.io==="input"&&"_prefault"in s.schema&&((l=s.schema).default??(l.default=s.schema._prefault)),delete s.schema._prefault,r.seen.get(i).schema}function aa(i,r){var s,m,p,g;const o=i.seen.get(r);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");const l=new Map;for(const v of i.seen.entries()){const b=(s=i.metadataRegistry.get(v[0]))==null?void 0:s.id;if(b){const _=l.get(b);if(_&&_!==v[0])throw new Error(`Duplicate schema id "${b}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);l.set(b,v[0])}}const n=v=>{var H;const b=i.target==="draft-2020-12"?"$defs":"definitions";if(i.external){const J=(H=i.external.registry.get(v[0]))==null?void 0:H.id,F=i.external.uri??(de=>de);if(J)return{ref:F(J)};const se=v[1].defId??v[1].schema.id??`schema${i.counter++}`;return v[1].defId=se,{defId:se,ref:`${F("__shared")}#/${b}/${se}`}}if(v[1]===o)return{ref:"#"};const z=`#/${b}/`,x=v[1].schema.id??`__schema${i.counter++}`;return{defId:x,ref:z+x}},u=v=>{if(v[1].schema.$ref)return;const b=v[1],{ref:_,defId:z}=n(v);b.def={...b.schema},z&&(b.defId=z);const x=b.schema;for(const H in x)delete x[H];x.$ref=_};if(i.cycles==="throw")for(const v of i.seen.entries()){const b=v[1];if(b.cycle)throw new Error(`Cycle detected: #/${(m=b.cycle)==null?void 0:m.join("/")}/<root>
117
+ `)}z.write("payload.value = newResult;"),z.write("return payload;");const se=z.compile();return(we,re)=>se(_,we,re)};let u;const s=ra,m=!Uo.jitless,g=m&&sS.value,v=r.catchall;let b;i._zod.parse=(_,z)=>{b??(b=l.value);const x=_.value;return s(x)?m&&g&&(z==null?void 0:z.async)===!1&&z.jitless!==!0?(u||(u=n(r.shape)),_=u(_,z),v?pk([],x,_,z,b,i):_):o(_,z):(_.issues.push({expected:"object",code:"invalid_type",input:x,inst:i}),_)}});function x_(i,r,o,l){for(const u of i)if(u.issues.length===0)return r.value=u.value,r;const n=i.filter(u=>!lr(u));return n.length===1?(r.value=n[0].value,n[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:o,errors:i.map(u=>u.issues.map(s=>dn(s,l,_t())))}),r)}const Tc=T("$ZodUnion",(i,r)=>{me.init(i,r),Se(i._zod,"optin",()=>r.options.some(l=>l._zod.optin==="optional")?"optional":void 0),Se(i._zod,"optout",()=>r.options.some(l=>l._zod.optout==="optional")?"optional":void 0),Se(i._zod,"values",()=>{if(r.options.every(l=>l._zod.values))return new Set(r.options.flatMap(l=>Array.from(l._zod.values)))}),Se(i._zod,"pattern",()=>{if(r.options.every(l=>l._zod.pattern)){const l=r.options.map(n=>n._zod.pattern);return new RegExp(`^(${l.map(n=>_c(n.source)).join("|")})$`)}});const o=r.options.length===1?r.options[0]._zod.run:null;i._zod.parse=(l,n)=>{if(o)return o(l,n);let u=!1;const s=[];for(const m of r.options){const p=m._zod.run({value:l.value,issues:[]},n);if(p instanceof Promise)s.push(p),u=!0;else{if(p.issues.length===0)return p;s.push(p)}}return u?Promise.all(s).then(m=>x_(m,l,i,n)):x_(s,l,i,n)}});function w_(i,r,o,l){const n=i.filter(u=>u.issues.length===0);return n.length===1?(r.value=n[0].value,r):(n.length===0?r.issues.push({code:"invalid_union",input:r.value,inst:o,errors:i.map(u=>u.issues.map(s=>dn(s,l,_t())))}):r.issues.push({code:"invalid_union",input:r.value,inst:o,errors:[],inclusive:!1}),r)}const vk=T("$ZodXor",(i,r)=>{Tc.init(i,r),r.inclusive=!1;const o=r.options.length===1?r.options[0]._zod.run:null;i._zod.parse=(l,n)=>{if(o)return o(l,n);let u=!1;const s=[];for(const m of r.options){const p=m._zod.run({value:l.value,issues:[]},n);p instanceof Promise?(s.push(p),u=!0):s.push(p)}return u?Promise.all(s).then(m=>w_(m,l,i,n)):w_(s,l,i,n)}}),yk=T("$ZodDiscriminatedUnion",(i,r)=>{r.inclusive=!1,Tc.init(i,r);const o=i._zod.parse;Se(i._zod,"propValues",()=>{const n={};for(const u of r.options){const s=u._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(u)}"`);for(const[m,p]of Object.entries(s)){n[m]||(n[m]=new Set);for(const g of p)n[m].add(g)}}return n});const l=Ao(()=>{var s;const n=r.options,u=new Map;for(const m of n){const p=(s=m._zod.propValues)==null?void 0:s[r.discriminator];if(!p||p.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(m)}"`);for(const g of p){if(u.has(g))throw new Error(`Duplicate discriminator value "${String(g)}"`);u.set(g,m)}}return u});i._zod.parse=(n,u)=>{const s=n.value;if(!ra(s))return n.issues.push({code:"invalid_type",expected:"object",input:s,inst:i}),n;const m=l.value.get(s==null?void 0:s[r.discriminator]);return m?m._zod.run(n,u):r.unionFallback||u.direction==="backward"?o(n,u):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,options:Array.from(l.value.keys()),input:s,path:[r.discriminator],inst:i}),n)}}),bk=T("$ZodIntersection",(i,r)=>{me.init(i,r),i._zod.parse=(o,l)=>{const n=o.value,u=r.left._zod.run({value:n,issues:[]},l),s=r.right._zod.run({value:n,issues:[]},l);return u instanceof Promise||s instanceof Promise?Promise.all([u,s]).then(([p,g])=>T_(o,p,g)):T_(o,u,s)}});function rm(i,r){if(i===r)return{valid:!0,data:i};if(i instanceof Date&&r instanceof Date&&+i==+r)return{valid:!0,data:i};if(cr(i)&&cr(r)){const o=Object.keys(r),l=Object.keys(i).filter(u=>o.indexOf(u)!==-1),n={...i,...r};for(const u of l){const s=rm(i[u],r[u]);if(!s.valid)return{valid:!1,mergeErrorPath:[u,...s.mergeErrorPath]};n[u]=s.data}return{valid:!0,data:n}}if(Array.isArray(i)&&Array.isArray(r)){if(i.length!==r.length)return{valid:!1,mergeErrorPath:[]};const o=[];for(let l=0;l<i.length;l++){const n=i[l],u=r[l],s=rm(n,u);if(!s.valid)return{valid:!1,mergeErrorPath:[l,...s.mergeErrorPath]};o.push(s.data)}return{valid:!0,data:o}}return{valid:!1,mergeErrorPath:[]}}function T_(i,r,o){const l=new Map;let n;for(const m of r.issues)if(m.code==="unrecognized_keys"){n??(n=m);for(const p of m.keys)l.has(p)||l.set(p,{}),l.get(p).l=!0}else i.issues.push(m);for(const m of o.issues)if(m.code==="unrecognized_keys")for(const p of m.keys)l.has(p)||l.set(p,{}),l.get(p).r=!0;else i.issues.push(m);const u=[...l].filter(([,m])=>m.l&&m.r).map(([m])=>m);if(u.length&&n&&i.issues.push({...n,keys:u}),lr(i))return i;const s=rm(r.value,o.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return i.value=s.data,i}const Cm=T("$ZodTuple",(i,r)=>{me.init(i,r);const o=r.items;i._zod.parse=(l,n)=>{const u=l.value;if(!Array.isArray(u))return l.issues.push({input:u,inst:i,expected:"tuple",code:"invalid_type"}),l;l.value=[];const s=[],m=E_(o,"optin"),p=E_(o,"optout");if(!r.rest){if(u.length<m)return l.issues.push({code:"too_small",minimum:m,inclusive:!0,input:u,inst:i,origin:"array"}),l;u.length>o.length&&l.issues.push({code:"too_big",maximum:o.length,inclusive:!0,input:u,inst:i,origin:"array"})}const g=new Array(o.length);for(let v=0;v<o.length;v++){const b=o[v]._zod.run({value:u[v],issues:[]},n);b instanceof Promise?s.push(b.then(_=>{g[v]=_})):g[v]=b}if(r.rest){let v=o.length-1;const b=u.slice(o.length);for(const _ of b){v++;const z=r.rest._zod.run({value:_,issues:[]},n);z instanceof Promise?s.push(z.then(x=>O_(x,l,v))):O_(z,l,v)}}return s.length?Promise.all(s).then(()=>U_(g,l,o,u,p)):U_(g,l,o,u,p)}});function E_(i,r){for(let o=i.length-1;o>=0;o--)if(i[o]._zod[r]!=="optional")return o+1;return 0}function O_(i,r,o){i.issues.length&&r.issues.push(...xn(o,i.issues)),r.value[o]=i.value}function U_(i,r,o,l,n){for(let u=0;u<o.length;u++){const s=i[u],m=u<l.length;if(s.issues.length){if(!m&&u>=n){r.value.length=u;break}r.issues.push(...xn(u,s.issues))}r.value[u]=s.value}for(let u=r.value.length-1;u>=l.length&&(o[u]._zod.optout==="optional"&&r.value[u]===void 0);u--)r.value.length=u;return r}const _k=T("$ZodRecord",(i,r)=>{me.init(i,r),i._zod.parse=(o,l)=>{const n=o.value;if(!cr(n))return o.issues.push({expected:"record",code:"invalid_type",input:n,inst:i}),o;const u=[],s=r.keyType._zod.values;if(s){o.value={};const m=new Set;for(const g of s)if(typeof g=="string"||typeof g=="number"||typeof g=="symbol"){m.add(typeof g=="number"?g.toString():g);const v=r.keyType._zod.run({value:g,issues:[]},l);if(v instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(v.issues.length){o.issues.push({code:"invalid_key",origin:"record",issues:v.issues.map(z=>dn(z,l,_t())),input:g,path:[g],inst:i});continue}const b=v.value,_=r.valueType._zod.run({value:n[g],issues:[]},l);_ instanceof Promise?u.push(_.then(z=>{z.issues.length&&o.issues.push(...xn(g,z.issues)),o.value[b]=z.value})):(_.issues.length&&o.issues.push(...xn(g,_.issues)),o.value[b]=_.value)}let p;for(const g in n)m.has(g)||(p=p??[],p.push(g));p&&p.length>0&&o.issues.push({code:"unrecognized_keys",input:n,inst:i,keys:p})}else{o.value={};for(const m of Reflect.ownKeys(n)){if(m==="__proto__"||!Object.prototype.propertyIsEnumerable.call(n,m))continue;let p=r.keyType._zod.run({value:m,issues:[]},l);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof m=="string"&&Um.test(m)&&p.issues.length){const b=r.keyType._zod.run({value:Number(m),issues:[]},l);if(b instanceof Promise)throw new Error("Async schemas not supported in object keys currently");b.issues.length===0&&(p=b)}if(p.issues.length){r.mode==="loose"?o.value[m]=n[m]:o.issues.push({code:"invalid_key",origin:"record",issues:p.issues.map(b=>dn(b,l,_t())),input:m,path:[m],inst:i});continue}const v=r.valueType._zod.run({value:n[m],issues:[]},l);v instanceof Promise?u.push(v.then(b=>{b.issues.length&&o.issues.push(...xn(m,b.issues)),o.value[p.value]=b.value})):(v.issues.length&&o.issues.push(...xn(m,v.issues)),o.value[p.value]=v.value)}}return u.length?Promise.all(u).then(()=>o):o}}),Sk=T("$ZodMap",(i,r)=>{me.init(i,r),i._zod.parse=(o,l)=>{const n=o.value;if(!(n instanceof Map))return o.issues.push({expected:"map",code:"invalid_type",input:n,inst:i}),o;const u=[];o.value=new Map;for(const[s,m]of n){const p=r.keyType._zod.run({value:s,issues:[]},l),g=r.valueType._zod.run({value:m,issues:[]},l);p instanceof Promise||g instanceof Promise?u.push(Promise.all([p,g]).then(([v,b])=>{D_(v,b,o,s,n,i,l)})):D_(p,g,o,s,n,i,l)}return u.length?Promise.all(u).then(()=>o):o}});function D_(i,r,o,l,n,u,s){i.issues.length&&(cc.has(typeof l)?o.issues.push(...xn(l,i.issues)):o.issues.push({code:"invalid_key",origin:"map",input:n,inst:u,issues:i.issues.map(m=>dn(m,s,_t()))})),r.issues.length&&(cc.has(typeof l)?o.issues.push(...xn(l,r.issues)):o.issues.push({origin:"map",code:"invalid_element",input:n,inst:u,key:l,issues:r.issues.map(m=>dn(m,s,_t()))})),o.value.set(i.value,r.value)}const $k=T("$ZodSet",(i,r)=>{me.init(i,r),i._zod.parse=(o,l)=>{const n=o.value;if(!(n instanceof Set))return o.issues.push({input:n,inst:i,expected:"set",code:"invalid_type"}),o;const u=[];o.value=new Set;for(const s of n){const m=r.valueType._zod.run({value:s,issues:[]},l);m instanceof Promise?u.push(m.then(p=>j_(p,o))):j_(m,o)}return u.length?Promise.all(u).then(()=>o):o}});function j_(i,r){i.issues.length&&r.issues.push(...i.issues),r.value.add(i.value)}const kk=T("$ZodEnum",(i,r)=>{me.init(i,r);const o=mm(r.entries),l=new Set(o);i._zod.values=l,i._zod.pattern=new RegExp(`^(${o.filter(n=>cc.has(typeof n)).map(n=>typeof n=="string"?oi(n):n.toString()).join("|")})$`),i._zod.parse=(n,u)=>{const s=n.value;return l.has(s)||n.issues.push({code:"invalid_value",values:o,input:s,inst:i}),n}}),zk=T("$ZodLiteral",(i,r)=>{if(me.init(i,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");const o=new Set(r.values);i._zod.values=o,i._zod.pattern=new RegExp(`^(${r.values.map(l=>typeof l=="string"?oi(l):l?oi(l.toString()):String(l)).join("|")})$`),i._zod.parse=(l,n)=>{const u=l.value;return o.has(u)||l.issues.push({code:"invalid_value",values:r.values,input:u,inst:i}),l}}),xk=T("$ZodFile",(i,r)=>{me.init(i,r),i._zod.parse=(o,l)=>{const n=o.value;return n instanceof File||o.issues.push({expected:"file",code:"invalid_type",input:n,inst:i}),o}}),wk=T("$ZodTransform",(i,r)=>{me.init(i,r),i._zod.parse=(o,l)=>{if(l.direction==="backward")throw new bc(i.constructor.name);const n=r.transform(o.value,o);if(l.async)return(n instanceof Promise?n:Promise.resolve(n)).then(s=>(o.value=s,o));if(n instanceof Promise)throw new ur;return o.value=n,o}});function N_(i,r){return i.issues.length&&r===void 0?{issues:[],value:void 0}:i}const Mm=T("$ZodOptional",(i,r)=>{me.init(i,r),i._zod.optin="optional",i._zod.optout="optional",Se(i._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),Se(i._zod,"pattern",()=>{const o=r.innerType._zod.pattern;return o?new RegExp(`^(${_c(o.source)})?$`):void 0}),i._zod.parse=(o,l)=>{if(r.innerType._zod.optin==="optional"){const n=r.innerType._zod.run(o,l);return n instanceof Promise?n.then(u=>N_(u,o.value)):N_(n,o.value)}return o.value===void 0?o:r.innerType._zod.run(o,l)}}),Tk=T("$ZodExactOptional",(i,r)=>{Mm.init(i,r),Se(i._zod,"values",()=>r.innerType._zod.values),Se(i._zod,"pattern",()=>r.innerType._zod.pattern),i._zod.parse=(o,l)=>r.innerType._zod.run(o,l)}),Ek=T("$ZodNullable",(i,r)=>{me.init(i,r),Se(i._zod,"optin",()=>r.innerType._zod.optin),Se(i._zod,"optout",()=>r.innerType._zod.optout),Se(i._zod,"pattern",()=>{const o=r.innerType._zod.pattern;return o?new RegExp(`^(${_c(o.source)}|null)$`):void 0}),Se(i._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),i._zod.parse=(o,l)=>o.value===null?o:r.innerType._zod.run(o,l)}),Ok=T("$ZodDefault",(i,r)=>{me.init(i,r),i._zod.optin="optional",Se(i._zod,"values",()=>r.innerType._zod.values),i._zod.parse=(o,l)=>{if(l.direction==="backward")return r.innerType._zod.run(o,l);if(o.value===void 0)return o.value=r.defaultValue,o;const n=r.innerType._zod.run(o,l);return n instanceof Promise?n.then(u=>A_(u,r)):A_(n,r)}});function A_(i,r){return i.value===void 0&&(i.value=r.defaultValue),i}const Uk=T("$ZodPrefault",(i,r)=>{me.init(i,r),i._zod.optin="optional",Se(i._zod,"values",()=>r.innerType._zod.values),i._zod.parse=(o,l)=>(l.direction==="backward"||o.value===void 0&&(o.value=r.defaultValue),r.innerType._zod.run(o,l))}),Dk=T("$ZodNonOptional",(i,r)=>{me.init(i,r),Se(i._zod,"values",()=>{const o=r.innerType._zod.values;return o?new Set([...o].filter(l=>l!==void 0)):void 0}),i._zod.parse=(o,l)=>{const n=r.innerType._zod.run(o,l);return n instanceof Promise?n.then(u=>I_(u,i)):I_(n,i)}});function I_(i,r){return!i.issues.length&&i.value===void 0&&i.issues.push({code:"invalid_type",expected:"nonoptional",input:i.value,inst:r}),i}const jk=T("$ZodSuccess",(i,r)=>{me.init(i,r),i._zod.parse=(o,l)=>{if(l.direction==="backward")throw new bc("ZodSuccess");const n=r.innerType._zod.run(o,l);return n instanceof Promise?n.then(u=>(o.value=u.issues.length===0,o)):(o.value=n.issues.length===0,o)}}),Nk=T("$ZodCatch",(i,r)=>{me.init(i,r),Se(i._zod,"optin",()=>r.innerType._zod.optin),Se(i._zod,"optout",()=>r.innerType._zod.optout),Se(i._zod,"values",()=>r.innerType._zod.values),i._zod.parse=(o,l)=>{if(l.direction==="backward")return r.innerType._zod.run(o,l);const n=r.innerType._zod.run(o,l);return n instanceof Promise?n.then(u=>(o.value=u.value,u.issues.length&&(o.value=r.catchValue({...o,error:{issues:u.issues.map(s=>dn(s,l,_t()))},input:o.value}),o.issues=[]),o)):(o.value=n.value,n.issues.length&&(o.value=r.catchValue({...o,error:{issues:n.issues.map(u=>dn(u,l,_t()))},input:o.value}),o.issues=[]),o)}}),Ak=T("$ZodNaN",(i,r)=>{me.init(i,r),i._zod.parse=(o,l)=>((typeof o.value!="number"||!Number.isNaN(o.value))&&o.issues.push({input:o.value,inst:i,expected:"nan",code:"invalid_type"}),o)}),Ik=T("$ZodPipe",(i,r)=>{me.init(i,r),Se(i._zod,"values",()=>r.in._zod.values),Se(i._zod,"optin",()=>r.in._zod.optin),Se(i._zod,"optout",()=>r.out._zod.optout),Se(i._zod,"propValues",()=>r.in._zod.propValues),i._zod.parse=(o,l)=>{if(l.direction==="backward"){const u=r.out._zod.run(o,l);return u instanceof Promise?u.then(s=>nc(s,r.in,l)):nc(u,r.in,l)}const n=r.in._zod.run(o,l);return n instanceof Promise?n.then(u=>nc(u,r.out,l)):nc(n,r.out,l)}});function nc(i,r,o){return i.issues.length?(i.aborted=!0,i):r._zod.run({value:i.value,issues:i.issues},o)}const Zm=T("$ZodCodec",(i,r)=>{me.init(i,r),Se(i._zod,"values",()=>r.in._zod.values),Se(i._zod,"optin",()=>r.in._zod.optin),Se(i._zod,"optout",()=>r.out._zod.optout),Se(i._zod,"propValues",()=>r.in._zod.propValues),i._zod.parse=(o,l)=>{if((l.direction||"forward")==="forward"){const u=r.in._zod.run(o,l);return u instanceof Promise?u.then(s=>ic(s,r,l)):ic(u,r,l)}else{const u=r.out._zod.run(o,l);return u instanceof Promise?u.then(s=>ic(s,r,l)):ic(u,r,l)}}});function ic(i,r,o){if(i.issues.length)return i.aborted=!0,i;if((o.direction||"forward")==="forward"){const n=r.transform(i.value,i);return n instanceof Promise?n.then(u=>rc(i,u,r.out,o)):rc(i,n,r.out,o)}else{const n=r.reverseTransform(i.value,i);return n instanceof Promise?n.then(u=>rc(i,u,r.in,o)):rc(i,n,r.in,o)}}function rc(i,r,o,l){return i.issues.length?(i.aborted=!0,i):o._zod.run({value:r,issues:i.issues},l)}const Rk=T("$ZodReadonly",(i,r)=>{me.init(i,r),Se(i._zod,"propValues",()=>r.innerType._zod.propValues),Se(i._zod,"values",()=>r.innerType._zod.values),Se(i._zod,"optin",()=>{var o,l;return(l=(o=r.innerType)==null?void 0:o._zod)==null?void 0:l.optin}),Se(i._zod,"optout",()=>{var o,l;return(l=(o=r.innerType)==null?void 0:o._zod)==null?void 0:l.optout}),i._zod.parse=(o,l)=>{if(l.direction==="backward")return r.innerType._zod.run(o,l);const n=r.innerType._zod.run(o,l);return n instanceof Promise?n.then(R_):R_(n)}});function R_(i){return i.value=Object.freeze(i.value),i}const Ck=T("$ZodTemplateLiteral",(i,r)=>{me.init(i,r);const o=[];for(const l of r.parts)if(typeof l=="object"&&l!==null){if(!l._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...l._zod.traits].shift()}`);const n=l._zod.pattern instanceof RegExp?l._zod.pattern.source:l._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${l._zod.traits}`);const u=n.startsWith("^")?1:0,s=n.endsWith("$")?n.length-1:n.length;o.push(n.slice(u,s))}else if(l===null||dS.has(typeof l))o.push(oi(`${l}`));else throw new Error(`Invalid template literal part: ${l}`);i._zod.pattern=new RegExp(`^${o.join("")}$`),i._zod.parse=(l,n)=>typeof l.value!="string"?(l.issues.push({input:l.value,inst:i,expected:"string",code:"invalid_type"}),l):(i._zod.pattern.lastIndex=0,i._zod.pattern.test(l.value)||l.issues.push({input:l.value,inst:i,code:"invalid_format",format:r.format??"template_literal",pattern:i._zod.pattern.source}),l)}),Mk=T("$ZodFunction",(i,r)=>(me.init(i,r),i._def=r,i._zod.def=r,i.implement=o=>{if(typeof o!="function")throw new Error("implement() must be called with a function");return function(...l){const n=i._def.input?nm(i._def.input,l):l,u=Reflect.apply(o,this,n);return i._def.output?nm(i._def.output,u):u}},i.implementAsync=o=>{if(typeof o!="function")throw new Error("implementAsync() must be called with a function");return async function(...l){const n=i._def.input?await im(i._def.input,l):l,u=await Reflect.apply(o,this,n);return i._def.output?await im(i._def.output,u):u}},i._zod.parse=(o,l)=>typeof o.value!="function"?(o.issues.push({code:"invalid_type",expected:"function",input:o.value,inst:i}),o):(i._def.output&&i._def.output._zod.def.type==="promise"?o.value=i.implementAsync(o.value):o.value=i.implement(o.value),o),i.input=(...o)=>{const l=i.constructor;return Array.isArray(o[0])?new l({type:"function",input:new Cm({type:"tuple",items:o[0],rest:o[1]}),output:i._def.output}):new l({type:"function",input:o[0],output:i._def.output})},i.output=o=>{const l=i.constructor;return new l({type:"function",input:i._def.input,output:o})},i)),Zk=T("$ZodPromise",(i,r)=>{me.init(i,r),i._zod.parse=(o,l)=>Promise.resolve(o.value).then(n=>r.innerType._zod.run({value:n,issues:[]},l))}),qk=T("$ZodLazy",(i,r)=>{me.init(i,r),Se(i._zod,"innerType",()=>{const o=r;return o._cachedInner||(o._cachedInner=r.getter()),o._cachedInner}),Se(i._zod,"pattern",()=>{var o,l;return(l=(o=i._zod.innerType)==null?void 0:o._zod)==null?void 0:l.pattern}),Se(i._zod,"propValues",()=>{var o,l;return(l=(o=i._zod.innerType)==null?void 0:o._zod)==null?void 0:l.propValues}),Se(i._zod,"optin",()=>{var o,l;return((l=(o=i._zod.innerType)==null?void 0:o._zod)==null?void 0:l.optin)??void 0}),Se(i._zod,"optout",()=>{var o,l;return((l=(o=i._zod.innerType)==null?void 0:o._zod)==null?void 0:l.optout)??void 0}),i._zod.parse=(o,l)=>i._zod.innerType._zod.run(o,l)}),Lk=T("$ZodCustom",(i,r)=>{at.init(i,r),me.init(i,r),i._zod.parse=(o,l)=>o,i._zod.check=o=>{const l=o.value,n=r.fn(l);if(n instanceof Promise)return n.then(u=>C_(u,o,l,i));C_(n,o,l,i)}});function C_(i,r,o,l){if(!i){const n={code:"custom",input:o,inst:l,path:[...l._zod.def.path??[]],continue:!l._zod.def.abort};l._zod.def.params&&(n.params=l._zod.def.params),r.issues.push(aa(n))}}const Z4=()=>{const i={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function r(n){return i[n]??null}const o={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"},l={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${n.expected}، ولكن تم إدخال ${m}`:`مدخلات غير مقبولة: يفترض إدخال ${u}، ولكن تم إدخال ${m}`}case"invalid_value":return n.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${oe(n.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?` أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${u} ${n.maximum.toString()} ${s.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${u} ${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${u} ${n.minimum.toString()} ${s.unit}`:`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${u} ${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${n.prefix}"`:u.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${u.suffix}"`:u.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${u.includes}"`:u.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${u.pattern}`:`${o[u.format]??n.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${n.divisor}`;case"unrecognized_keys":return`معرف${n.keys.length>1?"ات":""} غريب${n.keys.length>1?"ة":""}: ${B(n.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${n.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${n.origin}`;default:return"مدخل غير مقبول"}}};function q4(){return{localeError:Z4()}}const L4=()=>{const i={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function r(n){return i[n]??null}const o={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},l={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Yanlış dəyər: gözlənilən instanceof ${n.expected}, daxil olan ${m}`:`Yanlış dəyər: gözlənilən ${u}, daxil olan ${m}`}case"invalid_value":return n.values.length===1?`Yanlış dəyər: gözlənilən ${oe(n.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${u}${n.maximum.toString()} ${s.unit??"element"}`:`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Çox kiçik: gözlənilən ${n.origin} ${u}${n.minimum.toString()} ${s.unit}`:`Çox kiçik: gözlənilən ${n.origin} ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Yanlış mətn: "${u.prefix}" ilə başlamalıdır`:u.format==="ends_with"?`Yanlış mətn: "${u.suffix}" ilə bitməlidir`:u.format==="includes"?`Yanlış mətn: "${u.includes}" daxil olmalıdır`:u.format==="regex"?`Yanlış mətn: ${u.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${o[u.format]??n.format}`}case"not_multiple_of":return`Yanlış ədəd: ${n.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${n.keys.length>1?"lar":""}: ${B(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${n.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function H4(){return{localeError:L4()}}function M_(i,r,o,l){const n=Math.abs(i),u=n%10,s=n%100;return s>=11&&s<=19?l:u===1?r:u>=2&&u<=4?o:l}const B4=()=>{const i={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function r(n){return i[n]??null}const o={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"},l={nan:"NaN",number:"лік",array:"масіў"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Няправільны ўвод: чакаўся instanceof ${n.expected}, атрымана ${m}`:`Няправільны ўвод: чакаўся ${u}, атрымана ${m}`}case"invalid_value":return n.values.length===1?`Няправільны ўвод: чакалася ${oe(n.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);if(s){const m=Number(n.maximum),p=M_(m,s.unit.one,s.unit.few,s.unit.many);return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна ${s.verb} ${u}${n.maximum.toString()} ${p}`}return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна быць ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);if(s){const m=Number(n.minimum),p=M_(m,s.unit.one,s.unit.few,s.unit.many);return`Занадта малы: чакалася, што ${n.origin} павінна ${s.verb} ${u}${n.minimum.toString()} ${p}`}return`Занадта малы: чакалася, што ${n.origin} павінна быць ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${u.prefix}"`:u.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${u.suffix}"`:u.format==="includes"?`Няправільны радок: павінен змяшчаць "${u.includes}"`:u.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${u.pattern}`:`Няправільны ${o[u.format]??n.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${n.keys.length>1?"ключы":"ключ"}: ${B(n.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${n.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${n.origin}`;default:return"Няправільны ўвод"}}};function J4(){return{localeError:B4()}}const G4=()=>{const i={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function r(n){return i[n]??null}const o={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"},l={nan:"NaN",number:"число",array:"масив"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Невалиден вход: очакван instanceof ${n.expected}, получен ${m}`:`Невалиден вход: очакван ${u}, получен ${m}`}case"invalid_value":return n.values.length===1?`Невалиден вход: очакван ${oe(n.values[0])}`:`Невалидна опция: очаквано едно от ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Твърде голямо: очаква се ${n.origin??"стойност"} да съдържа ${u}${n.maximum.toString()} ${s.unit??"елемента"}`:`Твърде голямо: очаква се ${n.origin??"стойност"} да бъде ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Твърде малко: очаква се ${n.origin} да съдържа ${u}${n.minimum.toString()} ${s.unit}`:`Твърде малко: очаква се ${n.origin} да бъде ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;if(u.format==="starts_with")return`Невалиден низ: трябва да започва с "${u.prefix}"`;if(u.format==="ends_with")return`Невалиден низ: трябва да завършва с "${u.suffix}"`;if(u.format==="includes")return`Невалиден низ: трябва да включва "${u.includes}"`;if(u.format==="regex")return`Невалиден низ: трябва да съвпада с ${u.pattern}`;let s="Невалиден";return u.format==="emoji"&&(s="Невалидно"),u.format==="datetime"&&(s="Невалидно"),u.format==="date"&&(s="Невалидна"),u.format==="time"&&(s="Невалидно"),u.format==="duration"&&(s="Невалидна"),`${s} ${o[u.format]??n.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${n.divisor}`;case"unrecognized_keys":return`Неразпознат${n.keys.length>1?"и":""} ключ${n.keys.length>1?"ове":""}: ${B(n.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${n.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${n.origin}`;default:return"Невалиден вход"}}};function Y4(){return{localeError:G4()}}const X4=()=>{const i={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(n){return i[n]??null}const o={regex:"entrada",email:"adreça electrònica",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ça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},l={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Tipus invàlid: s'esperava instanceof ${n.expected}, s'ha rebut ${m}`:`Tipus invàlid: s'esperava ${u}, s'ha rebut ${m}`}case"invalid_value":return n.values.length===1?`Valor invàlid: s'esperava ${oe(n.values[0])}`:`Opció invàlida: s'esperava una de ${B(n.values," o ")}`;case"too_big":{const u=n.inclusive?"com a màxim":"menys de",s=r(n.origin);return s?`Massa gran: s'esperava que ${n.origin??"el valor"} contingués ${u} ${n.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${u} ${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?"com a mínim":"més de",s=r(n.origin);return s?`Massa petit: s'esperava que ${n.origin} contingués ${u} ${n.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${u} ${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Format invàlid: ha de començar amb "${u.prefix}"`:u.format==="ends_with"?`Format invàlid: ha d'acabar amb "${u.suffix}"`:u.format==="includes"?`Format invàlid: ha d'incloure "${u.includes}"`:u.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${u.pattern}`:`Format invàlid per a ${o[u.format]??n.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${B(n.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${n.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${n.origin}`;default:return"Entrada invàlida"}}};function V4(){return{localeError:X4()}}const P4=()=>{const i={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function r(n){return i[n]??null}const o={regex:"regulární výraz",email:"e-mailová 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 čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"},l={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Neplatný vstup: očekáváno instanceof ${n.expected}, obdrženo ${m}`:`Neplatný vstup: očekáváno ${u}, obdrženo ${m}`}case"invalid_value":return n.values.length===1?`Neplatný vstup: očekáváno ${oe(n.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Hodnota je příliš velká: ${n.origin??"hodnota"} musí mít ${u}${n.maximum.toString()} ${s.unit??"prvků"}`:`Hodnota je příliš velká: ${n.origin??"hodnota"} musí být ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Hodnota je příliš malá: ${n.origin??"hodnota"} musí mít ${u}${n.minimum.toString()} ${s.unit??"prvků"}`:`Hodnota je příliš malá: ${n.origin??"hodnota"} musí být ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Neplatný řetězec: musí začínat na "${u.prefix}"`:u.format==="ends_with"?`Neplatný řetězec: musí končit na "${u.suffix}"`:u.format==="includes"?`Neplatný řetězec: musí obsahovat "${u.includes}"`:u.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${u.pattern}`:`Neplatný formát ${o[u.format]??n.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${n.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${B(n.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${n.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${n.origin}`;default:return"Neplatný vstup"}}};function Q4(){return{localeError:P4()}}const K4=()=>{const i={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function r(n){return i[n]??null}const o={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æt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},l={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${m}`:`Ugyldigt input: forventede ${u}, fik ${m}`}case"invalid_value":return n.values.length===1?`Ugyldig værdi: forventede ${oe(n.values[0])}`:`Ugyldigt valg: forventede en af følgende ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin),m=l[n.origin]??n.origin;return s?`For stor: forventede ${m??"value"} ${s.verb} ${u} ${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${m??"value"} havde ${u} ${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin),m=l[n.origin]??n.origin;return s?`For lille: forventede ${m} ${s.verb} ${u} ${n.minimum.toString()} ${s.unit}`:`For lille: forventede ${m} havde ${u} ${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Ugyldig streng: skal starte med "${u.prefix}"`:u.format==="ends_with"?`Ugyldig streng: skal ende med "${u.suffix}"`:u.format==="includes"?`Ugyldig streng: skal indeholde "${u.includes}"`:u.format==="regex"?`Ugyldig streng: skal matche mønsteret ${u.pattern}`:`Ugyldig ${o[u.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${B(n.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${n.origin}`;default:return"Ugyldigt input"}}};function F4(){return{localeError:K4()}}const W4=()=>{const i={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function r(n){return i[n]??null}const o={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},l={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Ungültige Eingabe: erwartet instanceof ${n.expected}, erhalten ${m}`:`Ungültige Eingabe: erwartet ${u}, erhalten ${m}`}case"invalid_value":return n.values.length===1?`Ungültige Eingabe: erwartet ${oe(n.values[0])}`:`Ungültige Option: erwartet eine von ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Zu groß: erwartet, dass ${n.origin??"Wert"} ${u}${n.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${n.origin??"Wert"} ${u}${n.maximum.toString()} ist`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Zu klein: erwartet, dass ${n.origin} ${u}${n.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${u}${n.minimum.toString()} ist`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Ungültiger String: muss mit "${u.prefix}" beginnen`:u.format==="ends_with"?`Ungültiger String: muss mit "${u.suffix}" enden`:u.format==="includes"?`Ungültiger String: muss "${u.includes}" enthalten`:u.format==="regex"?`Ungültiger String: muss dem Muster ${u.pattern} entsprechen`:`Ungültig: ${o[u.format]??n.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${B(n.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${n.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${n.origin}`;default:return"Ungültige Eingabe"}}};function eT(){return{localeError:W4()}}const tT=()=>{const i={string:{unit:"χαρακτήρες",verb:"να έχει"},file:{unit:"bytes",verb:"να έχει"},array:{unit:"στοιχεία",verb:"να έχει"},set:{unit:"στοιχεία",verb:"να έχει"},map:{unit:"καταχωρήσεις",verb:"να έχει"}};function r(n){return i[n]??null}const o={regex:"είσοδος",email:"διεύθυνση 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 ημερομηνία και ώρα",date:"ISO ημερομηνία",time:"ISO ώρα",duration:"ISO διάρκεια",ipv4:"διεύθυνση IPv4",ipv6:"διεύθυνση IPv6",mac:"διεύθυνση MAC",cidrv4:"εύρος IPv4",cidrv6:"εύρος IPv6",base64:"συμβολοσειρά κωδικοποιημένη σε base64",base64url:"συμβολοσειρά κωδικοποιημένη σε base64url",json_string:"συμβολοσειρά JSON",e164:"αριθμός E.164",jwt:"JWT",template_literal:"είσοδος"},l={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return typeof n.expected=="string"&&/^[A-Z]/.test(n.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${n.expected}, λήφθηκε ${m}`:`Μη έγκυρη είσοδος: αναμενόταν ${u}, λήφθηκε ${m}`}case"invalid_value":return n.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${oe(n.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Πολύ μεγάλο: αναμενόταν ${n.origin??"τιμή"} να έχει ${u}${n.maximum.toString()} ${s.unit??"στοιχεία"}`:`Πολύ μεγάλο: αναμενόταν ${n.origin??"τιμή"} να είναι ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Πολύ μικρό: αναμενόταν ${n.origin} να έχει ${u}${n.minimum.toString()} ${s.unit}`:`Πολύ μικρό: αναμενόταν ${n.origin} να είναι ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${u.prefix}"`:u.format==="ends_with"?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${u.suffix}"`:u.format==="includes"?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${u.includes}"`:u.format==="regex"?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${u.pattern}`:`Μη έγκυρο: ${o[u.format]??n.format}`}case"not_multiple_of":return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${n.divisor}`;case"unrecognized_keys":return`Άγνωστ${n.keys.length>1?"α":"ο"} κλειδ${n.keys.length>1?"ιά":"ί"}: ${B(n.keys,", ")}`;case"invalid_key":return`Μη έγκυρο κλειδί στο ${n.origin}`;case"invalid_union":return"Μη έγκυρη είσοδος";case"invalid_element":return`Μη έγκυρη τιμή στο ${n.origin}`;default:return"Μη έγκυρη είσοδος"}}};function nT(){return{localeError:tT()}}const iT=()=>{const i={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function r(n){return i[n]??null}const o={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},l={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return`Invalid input: expected ${u}, received ${m}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${oe(n.values[0])}`:`Invalid option: expected one of ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Too big: expected ${n.origin??"value"} to have ${u}${n.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Too small: expected ${n.origin} to have ${u}${n.minimum.toString()} ${s.unit}`:`Too small: expected ${n.origin} to be ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Invalid string: must start with "${u.prefix}"`:u.format==="ends_with"?`Invalid string: must end with "${u.suffix}"`:u.format==="includes"?`Invalid string: must include "${u.includes}"`:u.format==="regex"?`Invalid string: must match pattern ${u.pattern}`:`Invalid ${o[u.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${B(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`Invalid discriminator value. Expected ${n.options.map(s=>`'${s}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function Hk(){return{localeError:iT()}}const rT=()=>{const i={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(n){return i[n]??null}const o={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",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ŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},l={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendiĝis instanceof ${n.expected}, riceviĝis ${m}`:`Nevalida enigo: atendiĝis ${u}, riceviĝis ${m}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendiĝis ${oe(n.values[0])}`:`Nevalida opcio: atendiĝis unu el ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Tro granda: atendiĝis ke ${n.origin??"valoro"} havu ${u}${n.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${n.origin??"valoro"} havu ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Tro malgranda: atendiĝis ke ${n.origin} havu ${u}${n.minimum.toString()} ${s.unit}`:`Tro malgranda: atendiĝis ke ${n.origin} estu ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${u.prefix}"`:u.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${u.suffix}"`:u.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${u.includes}"`:u.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${u.pattern}`:`Nevalida ${o[u.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":""} ŝlosilo${n.keys.length>1?"j":""}: ${B(n.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function aT(){return{localeError:rT()}}const oT=()=>{const i={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function r(n){return i[n]??null}const o={regex:"entrada",email:"dirección de correo electrónico",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ón ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},l={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Entrada inválida: se esperaba instanceof ${n.expected}, recibido ${m}`:`Entrada inválida: se esperaba ${u}, recibido ${m}`}case"invalid_value":return n.values.length===1?`Entrada inválida: se esperaba ${oe(n.values[0])}`:`Opción inválida: se esperaba una de ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin),m=l[n.origin]??n.origin;return s?`Demasiado grande: se esperaba que ${m??"valor"} tuviera ${u}${n.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${m??"valor"} fuera ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin),m=l[n.origin]??n.origin;return s?`Demasiado pequeño: se esperaba que ${m} tuviera ${u}${n.minimum.toString()} ${s.unit}`:`Demasiado pequeño: se esperaba que ${m} fuera ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Cadena inválida: debe comenzar con "${u.prefix}"`:u.format==="ends_with"?`Cadena inválida: debe terminar en "${u.suffix}"`:u.format==="includes"?`Cadena inválida: debe incluir "${u.includes}"`:u.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${u.pattern}`:`Inválido ${o[u.format]??n.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${B(n.keys,", ")}`;case"invalid_key":return`Llave inválida en ${l[n.origin]??n.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${l[n.origin]??n.origin}`;default:return"Entrada inválida"}}};function lT(){return{localeError:oT()}}const uT=()=>{const i={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function r(n){return i[n]??null}const o={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"},l={nan:"NaN",number:"عدد",array:"آرایه"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`ورودی نامعتبر: می‌بایست instanceof ${n.expected} می‌بود، ${m} دریافت شد`:`ورودی نامعتبر: می‌بایست ${u} می‌بود، ${m} دریافت شد`}case"invalid_value":return n.values.length===1?`ورودی نامعتبر: می‌بایست ${oe(n.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${B(n.values,"|")} می‌بود`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`خیلی بزرگ: ${n.origin??"مقدار"} باید ${u}${n.maximum.toString()} ${s.unit??"عنصر"} باشد`:`خیلی بزرگ: ${n.origin??"مقدار"} باید ${u}${n.maximum.toString()} باشد`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`خیلی کوچک: ${n.origin} باید ${u}${n.minimum.toString()} ${s.unit} باشد`:`خیلی کوچک: ${n.origin} باید ${u}${n.minimum.toString()} باشد`}case"invalid_format":{const u=n;return u.format==="starts_with"?`رشته نامعتبر: باید با "${u.prefix}" شروع شود`:u.format==="ends_with"?`رشته نامعتبر: باید با "${u.suffix}" تمام شود`:u.format==="includes"?`رشته نامعتبر: باید شامل "${u.includes}" باشد`:u.format==="regex"?`رشته نامعتبر: باید با الگوی ${u.pattern} مطابقت داشته باشد`:`${o[u.format]??n.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${n.divisor} باشد`;case"unrecognized_keys":return`کلید${n.keys.length>1?"های":""} ناشناس: ${B(n.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${n.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${n.origin}`;default:return"ورودی نامعتبر"}}};function cT(){return{localeError:uT()}}const sT=()=>{const i={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function r(n){return i[n]??null}const o={regex:"säännöllinen lauseke",email:"sähköpostiosoite",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äivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},l={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${m}`:`Virheellinen tyyppi: odotettiin ${u}, oli ${m}`}case"invalid_value":return n.values.length===1?`Virheellinen syöte: täytyy olla ${oe(n.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Liian suuri: ${s.subject} täytyy olla ${u}${n.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon täytyy olla ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Liian pieni: ${s.subject} täytyy olla ${u}${n.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon täytyy olla ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${u.prefix}"`:u.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${u.suffix}"`:u.format==="includes"?`Virheellinen syöte: täytyy sisältää "${u.includes}"`:u.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${u.pattern}`:`Virheellinen ${o[u.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${B(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öte"}}};function dT(){return{localeError:sT()}}const fT=()=>{const i={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function r(n){return i[n]??null}const o={regex:"entrée",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ée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},l={string:"chaîne",number:"nombre",int:"entier",boolean:"booléen",bigint:"grand entier",symbol:"symbole",undefined:"indéfini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Entrée invalide : instanceof ${n.expected} attendu, ${m} reçu`:`Entrée invalide : ${u} attendu, ${m} reçu`}case"invalid_value":return n.values.length===1?`Entrée invalide : ${oe(n.values[0])} attendu`:`Option invalide : une valeur parmi ${B(n.values,"|")} attendue`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Trop grand : ${l[n.origin]??"valeur"} doit ${s.verb} ${u}${n.maximum.toString()} ${s.unit??"élément(s)"}`:`Trop grand : ${l[n.origin]??"valeur"} doit être ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Trop petit : ${l[n.origin]??"valeur"} doit ${s.verb} ${u}${n.minimum.toString()} ${s.unit}`:`Trop petit : ${l[n.origin]??"valeur"} doit être ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Chaîne invalide : doit commencer par "${u.prefix}"`:u.format==="ends_with"?`Chaîne invalide : doit se terminer par "${u.suffix}"`:u.format==="includes"?`Chaîne invalide : doit inclure "${u.includes}"`:u.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${u.pattern}`:`${o[u.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${n.divisor}`;case"unrecognized_keys":return`Clé${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${B(n.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${n.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entrée invalide"}}};function mT(){return{localeError:fT()}}const pT=()=>{const i={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function r(n){return i[n]??null}const o={regex:"entrée",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ée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},l={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Entrée invalide : attendu instanceof ${n.expected}, reçu ${m}`:`Entrée invalide : attendu ${u}, reçu ${m}`}case"invalid_value":return n.values.length===1?`Entrée invalide : attendu ${oe(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"≤":"<",s=r(n.origin);return s?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${u}${n.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?"≥":">",s=r(n.origin);return s?`Trop petit : attendu que ${n.origin} ait ${u}${n.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${n.origin} soit ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Chaîne invalide : doit commencer par "${u.prefix}"`:u.format==="ends_with"?`Chaîne invalide : doit se terminer par "${u.suffix}"`:u.format==="includes"?`Chaîne invalide : doit inclure "${u.includes}"`:u.format==="regex"?`Chaîne invalide : doit correspondre au motif ${u.pattern}`:`${o[u.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${n.divisor}`;case"unrecognized_keys":return`Clé${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${B(n.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${n.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entrée invalide"}}};function hT(){return{localeError:pT()}}const gT=()=>{const i={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},r={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},o=g=>g?i[g]:void 0,l=g=>{const v=o(g);return v?v.label:g??i.unknown.label},n=g=>`ה${l(g)}`,u=g=>{const v=o(g);return((v==null?void 0:v.gender)??"m")==="f"?"צריכה להיות":"צריך להיות"},s=g=>g?r[g]??null:null,m={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},p={nan:"NaN"};return g=>{var v;switch(g.code){case"invalid_type":{const b=g.expected,_=p[b??""]??l(b),z=ue(g.input),x=p[z]??((v=i[z])==null?void 0:v.label)??z;return/^[A-Z]/.test(g.expected)?`קלט לא תקין: צריך להיות instanceof ${g.expected}, התקבל ${x}`:`קלט לא תקין: צריך להיות ${_}, התקבל ${x}`}case"invalid_value":{if(g.values.length===1)return`ערך לא תקין: הערך חייב להיות ${oe(g.values[0])}`;const b=g.values.map(x=>oe(x));if(g.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${b[0]} או ${b[1]}`;const _=b[b.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${b.slice(0,-1).join(", ")} או ${_}`}case"too_big":{const b=s(g.origin),_=n(g.origin??"value");if(g.origin==="string")return`${(b==null?void 0:b.longLabel)??"ארוך"} מדי: ${_} צריכה להכיל ${g.maximum.toString()} ${(b==null?void 0:b.unit)??""} ${g.inclusive?"או פחות":"לכל היותר"}`.trim();if(g.origin==="number"){const H=g.inclusive?`קטן או שווה ל-${g.maximum}`:`קטן מ-${g.maximum}`;return`גדול מדי: ${_} צריך להיות ${H}`}if(g.origin==="array"||g.origin==="set"){const H=g.origin==="set"?"צריכה":"צריך",J=g.inclusive?`${g.maximum} ${(b==null?void 0:b.unit)??""} או פחות`:`פחות מ-${g.maximum} ${(b==null?void 0:b.unit)??""}`;return`גדול מדי: ${_} ${H} להכיל ${J}`.trim()}const z=g.inclusive?"<=":"<",x=u(g.origin??"value");return b!=null&&b.unit?`${b.longLabel} מדי: ${_} ${x} ${z}${g.maximum.toString()} ${b.unit}`:`${(b==null?void 0:b.longLabel)??"גדול"} מדי: ${_} ${x} ${z}${g.maximum.toString()}`}case"too_small":{const b=s(g.origin),_=n(g.origin??"value");if(g.origin==="string")return`${(b==null?void 0:b.shortLabel)??"קצר"} מדי: ${_} צריכה להכיל ${g.minimum.toString()} ${(b==null?void 0:b.unit)??""} ${g.inclusive?"או יותר":"לפחות"}`.trim();if(g.origin==="number"){const H=g.inclusive?`גדול או שווה ל-${g.minimum}`:`גדול מ-${g.minimum}`;return`קטן מדי: ${_} צריך להיות ${H}`}if(g.origin==="array"||g.origin==="set"){const H=g.origin==="set"?"צריכה":"צריך";if(g.minimum===1&&g.inclusive){const F=(g.origin==="set","לפחות פריט אחד");return`קטן מדי: ${_} ${H} להכיל ${F}`}const J=g.inclusive?`${g.minimum} ${(b==null?void 0:b.unit)??""} או יותר`:`יותר מ-${g.minimum} ${(b==null?void 0:b.unit)??""}`;return`קטן מדי: ${_} ${H} להכיל ${J}`.trim()}const z=g.inclusive?">=":">",x=u(g.origin??"value");return b!=null&&b.unit?`${b.shortLabel} מדי: ${_} ${x} ${z}${g.minimum.toString()} ${b.unit}`:`${(b==null?void 0:b.shortLabel)??"קטן"} מדי: ${_} ${x} ${z}${g.minimum.toString()}`}case"invalid_format":{const b=g;if(b.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${b.prefix}"`;if(b.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${b.suffix}"`;if(b.format==="includes")return`המחרוזת חייבת לכלול "${b.includes}"`;if(b.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${b.pattern}`;const _=m[b.format],z=(_==null?void 0:_.label)??b.format,H=((_==null?void 0:_.gender)??"m")==="f"?"תקינה":"תקין";return`${z} לא ${H}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${g.divisor}`;case"unrecognized_keys":return`מפתח${g.keys.length>1?"ות":""} לא מזוה${g.keys.length>1?"ים":"ה"}: ${B(g.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${n(g.origin??"array")}`;default:return"קלט לא תקין"}}};function vT(){return{localeError:gT()}}const yT=()=>{const i={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function r(n){return i[n]??null}const o={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},l={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":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Neispravan unos: očekuje se instanceof ${n.expected}, a primljeno je ${m}`:`Neispravan unos: očekuje se ${u}, a primljeno je ${m}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: očekivano ${oe(n.values[0])}`:`Neispravna opcija: očekivano jedno od ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin),m=l[n.origin]??n.origin;return s?`Preveliko: očekivano da ${m??"vrijednost"} ima ${u}${n.maximum.toString()} ${s.unit??"elemenata"}`:`Preveliko: očekivano da ${m??"vrijednost"} bude ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin),m=l[n.origin]??n.origin;return s?`Premalo: očekivano da ${m} ima ${u}${n.minimum.toString()} ${s.unit}`:`Premalo: očekivano da ${m} bude ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Neispravan tekst: mora započinjati s "${u.prefix}"`:u.format==="ends_with"?`Neispravan tekst: mora završavati s "${u.suffix}"`:u.format==="includes"?`Neispravan tekst: mora sadržavati "${u.includes}"`:u.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${u.pattern}`:`Neispravna ${o[u.format]??n.format}`}case"not_multiple_of":return`Neispravan broj: mora biti višekratnik od ${n.divisor}`;case"unrecognized_keys":return`Neprepoznat${n.keys.length>1?"i ključevi":" ključ"}: ${B(n.keys,", ")}`;case"invalid_key":return`Neispravan ključ u ${l[n.origin]??n.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${l[n.origin]??n.origin}`;default:return"Neispravan unos"}}};function bT(){return{localeError:yT()}}const _T=()=>{const i={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function r(n){return i[n]??null}const o={regex:"bemenet",email:"email cím",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őbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"},l={nan:"NaN",number:"szám",array:"tömb"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Érvénytelen bemenet: a várt érték instanceof ${n.expected}, a kapott érték ${m}`:`Érvénytelen bemenet: a várt érték ${u}, a kapott érték ${m}`}case"invalid_value":return n.values.length===1?`Érvénytelen bemenet: a várt érték ${oe(n.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Túl nagy: ${n.origin??"érték"} mérete túl nagy ${u}${n.maximum.toString()} ${s.unit??"elem"}`:`Túl nagy: a bemeneti érték ${n.origin??"érték"} túl nagy: ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Túl kicsi: a bemeneti érték ${n.origin} mérete túl kicsi ${u}${n.minimum.toString()} ${s.unit}`:`Túl kicsi: a bemeneti érték ${n.origin} túl kicsi ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Érvénytelen string: "${u.prefix}" értékkel kell kezdődnie`:u.format==="ends_with"?`Érvénytelen string: "${u.suffix}" értékkel kell végződnie`:u.format==="includes"?`Érvénytelen string: "${u.includes}" értéket kell tartalmaznia`:u.format==="regex"?`Érvénytelen string: ${u.pattern} mintának kell megfelelnie`:`Érvénytelen ${o[u.format]??n.format}`}case"not_multiple_of":return`Érvénytelen szám: ${n.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${B(n.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${n.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${n.origin}`;default:return"Érvénytelen bemenet"}}};function ST(){return{localeError:_T()}}function Z_(i,r,o){return Math.abs(i)===1?r:o}function ia(i){if(!i)return"";const r=["ա","ե","ը","ի","ո","ու","օ"],o=i[i.length-1];return i+(r.includes(o)?"ն":"ը")}const $T=()=>{const i={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function r(n){return i[n]??null}const o={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",jwt:"JWT",template_literal:"մուտք"},l={nan:"NaN",number:"թիվ",array:"զանգված"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${n.expected}, ստացվել է ${m}`:`Սխալ մուտքագրում․ սպասվում էր ${u}, ստացվել է ${m}`}case"invalid_value":return n.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${oe(n.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);if(s){const m=Number(n.maximum),p=Z_(m,s.unit.one,s.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${ia(n.origin??"արժեք")} կունենա ${u}${n.maximum.toString()} ${p}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${ia(n.origin??"արժեք")} լինի ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);if(s){const m=Number(n.minimum),p=Z_(m,s.unit.one,s.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${ia(n.origin)} կունենա ${u}${n.minimum.toString()} ${p}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${ia(n.origin)} լինի ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Սխալ տող․ պետք է սկսվի "${u.prefix}"-ով`:u.format==="ends_with"?`Սխալ տող․ պետք է ավարտվի "${u.suffix}"-ով`:u.format==="includes"?`Սխալ տող․ պետք է պարունակի "${u.includes}"`:u.format==="regex"?`Սխալ տող․ պետք է համապատասխանի ${u.pattern} ձևաչափին`:`Սխալ ${o[u.format]??n.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${n.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${n.keys.length>1?"ներ":""}. ${B(n.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${ia(n.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${ia(n.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};function kT(){return{localeError:$T()}}const zT=()=>{const i={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function r(n){return i[n]??null}const o={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},l={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${m}`:`Input tidak valid: diharapkan ${u}, diterima ${m}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${oe(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${u}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Terlalu kecil: diharapkan ${n.origin} memiliki ${u}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`String tidak valid: harus dimulai dengan "${u.prefix}"`:u.format==="ends_with"?`String tidak valid: harus berakhir dengan "${u.suffix}"`:u.format==="includes"?`String tidak valid: harus menyertakan "${u.includes}"`:u.format==="regex"?`String tidak valid: harus sesuai pola ${u.pattern}`:`${o[u.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":""}: ${B(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 xT(){return{localeError:zT()}}const wT=()=>{const i={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function r(n){return i[n]??null}const o={regex:"gildi",email:"netfang",url:"vefslóð",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ími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"},l={nan:"NaN",number:"númer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Rangt gildi: Þú slóst inn ${m} þar sem á að vera instanceof ${n.expected}`:`Rangt gildi: Þú slóst inn ${m} þar sem á að vera ${u}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert ráð fyrir ${oe(n.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Of stórt: gert er ráð fyrir að ${n.origin??"gildi"} hafi ${u}${n.maximum.toString()} ${s.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${n.origin??"gildi"} sé ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Of lítið: gert er ráð fyrir að ${n.origin} hafi ${u}${n.minimum.toString()} ${s.unit}`:`Of lítið: gert er ráð fyrir að ${n.origin} sé ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Ógildur strengur: verður að byrja á "${u.prefix}"`:u.format==="ends_with"?`Ógildur strengur: verður að enda á "${u.suffix}"`:u.format==="includes"?`Ógildur strengur: verður að innihalda "${u.includes}"`:u.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${u.pattern}`:`Rangt ${o[u.format]??n.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`Óþekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${B(n.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${n.origin}`;default:return"Rangt gildi"}}};function TT(){return{localeError:wT()}}const ET=()=>{const i={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function r(n){return i[n]??null}const o={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},l={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${m}`:`Input non valido: atteso ${u}, ricevuto ${m}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${oe(n.values[0])}`:`Opzione non valida: atteso uno tra ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Troppo grande: ${n.origin??"valore"} deve avere ${u}${n.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Troppo piccolo: ${n.origin} deve avere ${u}${n.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${n.origin} deve essere ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Stringa non valida: deve iniziare con "${u.prefix}"`:u.format==="ends_with"?`Stringa non valida: deve terminare con "${u.suffix}"`:u.format==="includes"?`Stringa non valida: deve includere "${u.includes}"`:u.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${u.pattern}`:`Input non valido: ${o[u.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"}: ${B(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 OT(){return{localeError:ET()}}const UT=()=>{const i={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function r(n){return i[n]??null}const o={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"},l={nan:"NaN",number:"数値",array:"配列"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`無効な入力: instanceof ${n.expected}が期待されましたが、${m}が入力されました`:`無効な入力: ${u}が期待されましたが、${m}が入力されました`}case"invalid_value":return n.values.length===1?`無効な入力: ${oe(n.values[0])}が期待されました`:`無効な選択: ${B(n.values,"、")}のいずれかである必要があります`;case"too_big":{const u=n.inclusive?"以下である":"より小さい",s=r(n.origin);return s?`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${s.unit??"要素"}${u}必要があります`:`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${u}必要があります`}case"too_small":{const u=n.inclusive?"以上である":"より大きい",s=r(n.origin);return s?`小さすぎる値: ${n.origin}は${n.minimum.toString()}${s.unit}${u}必要があります`:`小さすぎる値: ${n.origin}は${n.minimum.toString()}${u}必要があります`}case"invalid_format":{const u=n;return u.format==="starts_with"?`無効な文字列: "${u.prefix}"で始まる必要があります`:u.format==="ends_with"?`無効な文字列: "${u.suffix}"で終わる必要があります`:u.format==="includes"?`無効な文字列: "${u.includes}"を含む必要があります`:u.format==="regex"?`無効な文字列: パターン${u.pattern}に一致する必要があります`:`無効な${o[u.format]??n.format}`}case"not_multiple_of":return`無効な数値: ${n.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${n.keys.length>1?"群":""}: ${B(n.keys,"、")}`;case"invalid_key":return`${n.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${n.origin}内の無効な値`;default:return"無効な入力"}}};function DT(){return{localeError:UT()}}const jT=()=>{const i={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function r(n){return i[n]??null}const o={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული ველი",base64url:"base64url-კოდირებული ველი",json_string:"JSON ველი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"},l={nan:"NaN",number:"რიცხვი",string:"ველი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${n.expected}, მიღებული ${m}`:`არასწორი შეყვანა: მოსალოდნელი ${u}, მიღებული ${m}`}case"invalid_value":return n.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${oe(n.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${B(n.values,"|")}-დან`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`ზედმეტად დიდი: მოსალოდნელი ${n.origin??"მნიშვნელობა"} ${s.verb} ${u}${n.maximum.toString()} ${s.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${n.origin??"მნიშვნელობა"} იყოს ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`ზედმეტად პატარა: მოსალოდნელი ${n.origin} ${s.verb} ${u}${n.minimum.toString()} ${s.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${n.origin} იყოს ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`არასწორი ველი: უნდა იწყებოდეს "${u.prefix}"-ით`:u.format==="ends_with"?`არასწორი ველი: უნდა მთავრდებოდეს "${u.suffix}"-ით`:u.format==="includes"?`არასწორი ველი: უნდა შეიცავდეს "${u.includes}"-ს`:u.format==="regex"?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${u.pattern}`:`არასწორი ${o[u.format]??n.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${n.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${n.keys.length>1?"ები":"ი"}: ${B(n.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${n.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${n.origin}-ში`;default:return"არასწორი შეყვანა"}}};function NT(){return{localeError:jT()}}const AT=()=>{const i={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function r(n){return i[n]??null}const o={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},l={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${n.expected} ប៉ុន្តែទទួលបាន ${m}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${u} ប៉ុន្តែទទួលបាន ${m}`}case"invalid_value":return n.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${oe(n.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${u} ${n.maximum.toString()} ${s.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${u} ${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`តូចពេក៖ ត្រូវការ ${n.origin} ${u} ${n.minimum.toString()} ${s.unit}`:`តូចពេក៖ ត្រូវការ ${n.origin} ${u} ${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${u.prefix}"`:u.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${u.suffix}"`:u.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${u.includes}"`:u.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${u.pattern}`:`មិនត្រឹមត្រូវ៖ ${o[u.format]??n.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${n.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${B(n.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function Bk(){return{localeError:AT()}}function IT(){return Bk()}const RT=()=>{const i={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function r(n){return i[n]??null}const o={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"},l={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`잘못된 입력: 예상 타입은 instanceof ${n.expected}, 받은 타입은 ${m}입니다`:`잘못된 입력: 예상 타입은 ${u}, 받은 타입은 ${m}입니다`}case"invalid_value":return n.values.length===1?`잘못된 입력: 값은 ${oe(n.values[0])} 이어야 합니다`:`잘못된 옵션: ${B(n.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const u=n.inclusive?"이하":"미만",s=u==="미만"?"이어야 합니다":"여야 합니다",m=r(n.origin),p=(m==null?void 0:m.unit)??"요소";return m?`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()}${p} ${u}${s}`:`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()} ${u}${s}`}case"too_small":{const u=n.inclusive?"이상":"초과",s=u==="이상"?"이어야 합니다":"여야 합니다",m=r(n.origin),p=(m==null?void 0:m.unit)??"요소";return m?`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()}${p} ${u}${s}`:`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()} ${u}${s}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`잘못된 문자열: "${u.prefix}"(으)로 시작해야 합니다`:u.format==="ends_with"?`잘못된 문자열: "${u.suffix}"(으)로 끝나야 합니다`:u.format==="includes"?`잘못된 문자열: "${u.includes}"을(를) 포함해야 합니다`:u.format==="regex"?`잘못된 문자열: 정규식 ${u.pattern} 패턴과 일치해야 합니다`:`잘못된 ${o[u.format]??n.format}`}case"not_multiple_of":return`잘못된 숫자: ${n.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${B(n.keys,", ")}`;case"invalid_key":return`잘못된 키: ${n.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${n.origin}`;default:return"잘못된 입력"}}};function CT(){return{localeError:RT()}}const wo=i=>i.charAt(0).toUpperCase()+i.slice(1);function q_(i){const r=Math.abs(i),o=r%10,l=r%100;return l>=11&&l<=19||o===0?"many":o===1?"one":"few"}const MT=()=>{const i={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function r(n,u,s,m){const p=i[n]??null;return p===null?p:{unit:p.unit[u],verb:p.verb[m][s?"inclusive":"notInclusive"]}}const o={regex:"įvestis",email:"el. pašto 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ė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},l={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${m}, o tikėtasi - instanceof ${n.expected}`:`Gautas tipas ${m}, o tikėtasi - ${u}`}case"invalid_value":return n.values.length===1?`Privalo būti ${oe(n.values[0])}`:`Privalo būti vienas iš ${B(n.values,"|")} pasirinkimų`;case"too_big":{const u=l[n.origin]??n.origin,s=r(n.origin,q_(Number(n.maximum)),n.inclusive??!1,"smaller");if(s!=null&&s.verb)return`${wo(u??n.origin??"reikšmė")} ${s.verb} ${n.maximum.toString()} ${s.unit??"elementų"}`;const m=n.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${wo(u??n.origin??"reikšmė")} turi būti ${m} ${n.maximum.toString()} ${s==null?void 0:s.unit}`}case"too_small":{const u=l[n.origin]??n.origin,s=r(n.origin,q_(Number(n.minimum)),n.inclusive??!1,"bigger");if(s!=null&&s.verb)return`${wo(u??n.origin??"reikšmė")} ${s.verb} ${n.minimum.toString()} ${s.unit??"elementų"}`;const m=n.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${wo(u??n.origin??"reikšmė")} turi būti ${m} ${n.minimum.toString()} ${s==null?void 0:s.unit}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Eilutė privalo prasidėti "${u.prefix}"`:u.format==="ends_with"?`Eilutė privalo pasibaigti "${u.suffix}"`:u.format==="includes"?`Eilutė privalo įtraukti "${u.includes}"`:u.format==="regex"?`Eilutė privalo atitikti ${u.pattern}`:`Neteisingas ${o[u.format]??n.format}`}case"not_multiple_of":return`Skaičius privalo būti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${B(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const u=l[n.origin]??n.origin;return`${wo(u??n.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function ZT(){return{localeError:MT()}}const qT=()=>{const i={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function r(n){return i[n]??null}const o={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"},l={nan:"NaN",number:"број",array:"низа"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Грешен внес: се очекува instanceof ${n.expected}, примено ${m}`:`Грешен внес: се очекува ${u}, примено ${m}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${oe(n.values[0])}`:`Грешана опција: се очекува една ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Премногу голем: се очекува ${n.origin??"вредноста"} да има ${u}${n.maximum.toString()} ${s.unit??"елементи"}`:`Премногу голем: се очекува ${n.origin??"вредноста"} да биде ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Премногу мал: се очекува ${n.origin} да има ${u}${n.minimum.toString()} ${s.unit}`:`Премногу мал: се очекува ${n.origin} да биде ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Неважечка низа: мора да започнува со "${u.prefix}"`:u.format==="ends_with"?`Неважечка низа: мора да завршува со "${u.suffix}"`:u.format==="includes"?`Неважечка низа: мора да вклучува "${u.includes}"`:u.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${u.pattern}`:`Invalid ${o[u.format]??n.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${B(n.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${n.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${n.origin}`;default:return"Грешен внес"}}};function LT(){return{localeError:qT()}}const HT=()=>{const i={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function r(n){return i[n]??null}const o={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},l={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${m}`:`Input tidak sah: dijangka ${u}, diterima ${m}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${oe(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Terlalu besar: dijangka ${n.origin??"nilai"} ${s.verb} ${u}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Terlalu kecil: dijangka ${n.origin} ${s.verb} ${u}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`String tidak sah: mesti bermula dengan "${u.prefix}"`:u.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${u.suffix}"`:u.format==="includes"?`String tidak sah: mesti mengandungi "${u.includes}"`:u.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${u.pattern}`:`${o[u.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${B(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 BT(){return{localeError:HT()}}const JT=()=>{const i={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function r(n){return i[n]??null}const o={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},l={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${m}`:`Ongeldige invoer: verwacht ${u}, ontving ${m}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${oe(n.values[0])}`:`Ongeldige optie: verwacht één van ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin),m=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return s?`Te ${m}: verwacht dat ${n.origin??"waarde"} ${u}${n.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${m}: verwacht dat ${n.origin??"waarde"} ${u}${n.maximum.toString()} is`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin),m=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return s?`Te ${m}: verwacht dat ${n.origin} ${u}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${m}: verwacht dat ${n.origin} ${u}${n.minimum.toString()} is`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Ongeldige tekst: moet met "${u.prefix}" beginnen`:u.format==="ends_with"?`Ongeldige tekst: moet op "${u.suffix}" eindigen`:u.format==="includes"?`Ongeldige tekst: moet "${u.includes}" bevatten`:u.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${u.pattern}`:`Ongeldig: ${o[u.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":""}: ${B(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 GT(){return{localeError:JT()}}const YT=()=>{const i={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function r(n){return i[n]??null}const o={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},l={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${m}`:`Ugyldig input: forventet ${u}, fikk ${m}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${oe(n.values[0])}`:`Ugyldig valg: forventet en av ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`For stor(t): forventet ${n.origin??"value"} til å ha ${u}${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til å ha ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`For lite(n): forventet ${n.origin} til å ha ${u}${n.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${n.origin} til å ha ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Ugyldig streng: må starte med "${u.prefix}"`:u.format==="ends_with"?`Ugyldig streng: må ende med "${u.suffix}"`:u.format==="includes"?`Ugyldig streng: må inneholde "${u.includes}"`:u.format==="regex"?`Ugyldig streng: må matche mønsteret ${u.pattern}`:`Ugyldig ${o[u.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${B(n.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function XT(){return{localeError:YT()}}const VT=()=>{const i={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function r(n){return i[n]??null}const o={regex:"giren",email:"epostagâh",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âmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},l={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Fâsit giren: umulan instanceof ${n.expected}, alınan ${m}`:`Fâsit giren: umulan ${u}, alınan ${m}`}case"invalid_value":return n.values.length===1?`Fâsit giren: umulan ${oe(n.values[0])}`:`Fâsit tercih: mûteberler ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Fazla büyük: ${n.origin??"value"}, ${u}${n.maximum.toString()} ${s.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${n.origin??"value"}, ${u}${n.maximum.toString()} olmalıydı.`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Fazla küçük: ${n.origin}, ${u}${n.minimum.toString()} ${s.unit} sahip olmalıydı.`:`Fazla küçük: ${n.origin}, ${u}${n.minimum.toString()} olmalıydı.`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Fâsit metin: "${u.prefix}" ile başlamalı.`:u.format==="ends_with"?`Fâsit metin: "${u.suffix}" ile bitmeli.`:u.format==="includes"?`Fâsit metin: "${u.includes}" ihtivâ etmeli.`:u.format==="regex"?`Fâsit metin: ${u.pattern} nakşına uymalı.`:`Fâsit ${o[u.format]??n.format}`}case"not_multiple_of":return`Fâsit sayı: ${n.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${n.keys.length>1?"s":""}: ${B(n.keys,", ")}`;case"invalid_key":return`${n.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${n.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function PT(){return{localeError:VT()}}const QT=()=>{const i={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function r(n){return i[n]??null}const o={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"},l={nan:"NaN",number:"عدد",array:"ارې"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`ناسم ورودي: باید instanceof ${n.expected} وای, مګر ${m} ترلاسه شو`:`ناسم ورودي: باید ${u} وای, مګر ${m} ترلاسه شو`}case"invalid_value":return n.values.length===1?`ناسم ورودي: باید ${oe(n.values[0])} وای`:`ناسم انتخاب: باید یو له ${B(n.values,"|")} څخه وای`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`ډیر لوی: ${n.origin??"ارزښت"} باید ${u}${n.maximum.toString()} ${s.unit??"عنصرونه"} ولري`:`ډیر لوی: ${n.origin??"ارزښت"} باید ${u}${n.maximum.toString()} وي`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`ډیر کوچنی: ${n.origin} باید ${u}${n.minimum.toString()} ${s.unit} ولري`:`ډیر کوچنی: ${n.origin} باید ${u}${n.minimum.toString()} وي`}case"invalid_format":{const u=n;return u.format==="starts_with"?`ناسم متن: باید د "${u.prefix}" سره پیل شي`:u.format==="ends_with"?`ناسم متن: باید د "${u.suffix}" سره پای ته ورسيږي`:u.format==="includes"?`ناسم متن: باید "${u.includes}" ولري`:u.format==="regex"?`ناسم متن: باید د ${u.pattern} سره مطابقت ولري`:`${o[u.format]??n.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${n.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${n.keys.length>1?"کلیډونه":"کلیډ"}: ${B(n.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${n.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${n.origin} کې`;default:return"ناسمه ورودي"}}};function KT(){return{localeError:QT()}}const FT=()=>{const i={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function r(n){return i[n]??null}const o={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"},l={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${n.expected}, otrzymano ${m}`:`Nieprawidłowe dane wejściowe: oczekiwano ${u}, otrzymano ${m}`}case"invalid_value":return n.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${oe(n.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Za duża wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${u}${n.maximum.toString()} ${s.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Za mała wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${u}${n.minimum.toString()} ${s.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${u.prefix}"`:u.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${u.suffix}"`:u.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${u.includes}"`:u.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${u.pattern}`:`Nieprawidłow(y/a/e) ${o[u.format]??n.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${B(n.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${n.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${n.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function WT(){return{localeError:FT()}}const e6=()=>{const i={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function r(n){return i[n]??null}const o={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},l={nan:"NaN",number:"número",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Tipo inválido: esperado instanceof ${n.expected}, recebido ${m}`:`Tipo inválido: esperado ${u}, recebido ${m}`}case"invalid_value":return n.values.length===1?`Entrada inválida: esperado ${oe(n.values[0])}`:`Opção inválida: esperada uma das ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${u}${n.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Muito pequeno: esperado que ${n.origin} tivesse ${u}${n.minimum.toString()} ${s.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Texto inválido: deve começar com "${u.prefix}"`:u.format==="ends_with"?`Texto inválido: deve terminar com "${u.suffix}"`:u.format==="includes"?`Texto inválido: deve incluir "${u.includes}"`:u.format==="regex"?`Texto inválido: deve corresponder ao padrão ${u.pattern}`:`${o[u.format]??n.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${B(n.keys,", ")}`;case"invalid_key":return`Chave inválida em ${n.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${n.origin}`;default:return"Campo inválido"}}};function t6(){return{localeError:e6()}}const n6=()=>{const i={string:{unit:"caractere",verb:"să aibă"},file:{unit:"octeți",verb:"să aibă"},array:{unit:"elemente",verb:"să aibă"},set:{unit:"elemente",verb:"să aibă"},map:{unit:"intrări",verb:"să aibă"}};function r(n){return i[n]??null}const o={regex:"intrare",email:"adresă 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ă și oră ISO",date:"dată ISO",time:"oră ISO",duration:"durată ISO",ipv4:"adresă IPv4",ipv6:"adresă IPv6",mac:"adresă MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"șir codat base64",base64url:"șir codat base64url",json_string:"șir JSON",e164:"număr E.164",jwt:"JWT",template_literal:"intrare"},l={nan:"NaN",string:"șir",number:"număr",boolean:"boolean",function:"funcție",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"număr mare",void:"void",never:"never",map:"hartă",set:"set"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return`Intrare invalidă: așteptat ${u}, primit ${m}`}case"invalid_value":return n.values.length===1?`Intrare invalidă: așteptat ${oe(n.values[0])}`:`Opțiune invalidă: așteptat una dintre ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Prea mare: așteptat ca ${n.origin??"valoarea"} ${s.verb} ${u}${n.maximum.toString()} ${s.unit??"elemente"}`:`Prea mare: așteptat ca ${n.origin??"valoarea"} să fie ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Prea mic: așteptat ca ${n.origin} ${s.verb} ${u}${n.minimum.toString()} ${s.unit}`:`Prea mic: așteptat ca ${n.origin} să fie ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Șir invalid: trebuie să înceapă cu "${u.prefix}"`:u.format==="ends_with"?`Șir invalid: trebuie să se termine cu "${u.suffix}"`:u.format==="includes"?`Șir invalid: trebuie să includă "${u.includes}"`:u.format==="regex"?`Șir invalid: trebuie să se potrivească cu modelul ${u.pattern}`:`Format invalid: ${o[u.format]??n.format}`}case"not_multiple_of":return`Număr invalid: trebuie să fie multiplu de ${n.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${B(n.keys,", ")}`;case"invalid_key":return`Cheie invalidă în ${n.origin}`;case"invalid_union":return"Intrare invalidă";case"invalid_element":return`Valoare invalidă în ${n.origin}`;default:return"Intrare invalidă"}}};function i6(){return{localeError:n6()}}function L_(i,r,o,l){const n=Math.abs(i),u=n%10,s=n%100;return s>=11&&s<=19?l:u===1?r:u>=2&&u<=4?o:l}const r6=()=>{const i={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function r(n){return i[n]??null}const o={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"},l={nan:"NaN",number:"число",array:"массив"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Неверный ввод: ожидалось instanceof ${n.expected}, получено ${m}`:`Неверный ввод: ожидалось ${u}, получено ${m}`}case"invalid_value":return n.values.length===1?`Неверный ввод: ожидалось ${oe(n.values[0])}`:`Неверный вариант: ожидалось одно из ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);if(s){const m=Number(n.maximum),p=L_(m,s.unit.one,s.unit.few,s.unit.many);return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет иметь ${u}${n.maximum.toString()} ${p}`}return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);if(s){const m=Number(n.minimum),p=L_(m,s.unit.one,s.unit.few,s.unit.many);return`Слишком маленькое значение: ожидалось, что ${n.origin} будет иметь ${u}${n.minimum.toString()} ${p}`}return`Слишком маленькое значение: ожидалось, что ${n.origin} будет ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Неверная строка: должна начинаться с "${u.prefix}"`:u.format==="ends_with"?`Неверная строка: должна заканчиваться на "${u.suffix}"`:u.format==="includes"?`Неверная строка: должна содержать "${u.includes}"`:u.format==="regex"?`Неверная строка: должна соответствовать шаблону ${u.pattern}`:`Неверный ${o[u.format]??n.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспознанн${n.keys.length>1?"ые":"ый"} ключ${n.keys.length>1?"и":""}: ${B(n.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${n.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${n.origin}`;default:return"Неверные входные данные"}}};function a6(){return{localeError:r6()}}const o6=()=>{const i={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function r(n){return i[n]??null}const o={regex:"vnos",email:"e-poštni 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 čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"},l={nan:"NaN",number:"število",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pričakovano instanceof ${n.expected}, prejeto ${m}`:`Neveljaven vnos: pričakovano ${u}, prejeto ${m}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pričakovano ${oe(n.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} imelo ${u}${n.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Premajhno: pričakovano, da bo ${n.origin} imelo ${u}${n.minimum.toString()} ${s.unit}`:`Premajhno: pričakovano, da bo ${n.origin} ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Neveljaven niz: mora se začeti z "${u.prefix}"`:u.format==="ends_with"?`Neveljaven niz: mora se končati z "${u.suffix}"`:u.format==="includes"?`Neveljaven niz: mora vsebovati "${u.includes}"`:u.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${u.pattern}`:`Neveljaven ${o[u.format]??n.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i ključi":" ključ"}: ${B(n.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function l6(){return{localeError:o6()}}const u6=()=>{const i={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function r(n){return i[n]??null}const o={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},l={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: förväntat instanceof ${n.expected}, fick ${m}`:`Ogiltig inmatning: förväntat ${u}, fick ${m}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: förväntat ${oe(n.values[0])}`:`Ogiltigt val: förväntade en av ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`För stor(t): förväntade ${n.origin??"värdet"} att ha ${u}${n.maximum.toString()} ${s.unit??"element"}`:`För stor(t): förväntat ${n.origin??"värdet"} att ha ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`För lite(t): förväntade ${n.origin??"värdet"} att ha ${u}${n.minimum.toString()} ${s.unit}`:`För lite(t): förväntade ${n.origin??"värdet"} att ha ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Ogiltig sträng: måste börja med "${u.prefix}"`:u.format==="ends_with"?`Ogiltig sträng: måste sluta med "${u.suffix}"`:u.format==="includes"?`Ogiltig sträng: måste innehålla "${u.includes}"`:u.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${u.pattern}"`:`Ogiltig(t) ${o[u.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${B(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${n.origin??"värdet"}`;default:return"Ogiltig input"}}};function c6(){return{localeError:u6()}}const s6=()=>{const i={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function r(n){return i[n]??null}const o={regex:"உள்ளீடு",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 தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"},l={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${n.expected}, பெறப்பட்டது ${m}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${u}, பெறப்பட்டது ${m}`}case"invalid_value":return n.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${oe(n.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${B(n.values,"|")} இல் ஒன்று`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${u}${n.maximum.toString()} ${s.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${u}${n.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${u}${n.minimum.toString()} ${s.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${u}${n.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const u=n;return u.format==="starts_with"?`தவறான சரம்: "${u.prefix}" இல் தொடங்க வேண்டும்`:u.format==="ends_with"?`தவறான சரம்: "${u.suffix}" இல் முடிவடைய வேண்டும்`:u.format==="includes"?`தவறான சரம்: "${u.includes}" ஐ உள்ளடக்க வேண்டும்`:u.format==="regex"?`தவறான சரம்: ${u.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${o[u.format]??n.format}`}case"not_multiple_of":return`தவறான எண்: ${n.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${n.keys.length>1?"கள்":""}: ${B(n.keys,", ")}`;case"invalid_key":return`${n.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${n.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function d6(){return{localeError:s6()}}const f6=()=>{const i={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function r(n){return i[n]??null}const o={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},l={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${n.expected} แต่ได้รับ ${m}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${u} แต่ได้รับ ${m}`}case"invalid_value":return n.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${oe(n.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"ไม่เกิน":"น้อยกว่า",s=r(n.origin);return s?`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${u} ${n.maximum.toString()} ${s.unit??"รายการ"}`:`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${u} ${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?"อย่างน้อย":"มากกว่า",s=r(n.origin);return s?`น้อยกว่ากำหนด: ${n.origin} ควรมี${u} ${n.minimum.toString()} ${s.unit}`:`น้อยกว่ากำหนด: ${n.origin} ควรมี${u} ${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${u.prefix}"`:u.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${u.suffix}"`:u.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${u.includes}" อยู่ในข้อความ`:u.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${u.pattern}`:`รูปแบบไม่ถูกต้อง: ${o[u.format]??n.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${n.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${B(n.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${n.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${n.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function m6(){return{localeError:f6()}}const p6=()=>{const i={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function r(n){return i[n]??null}const o={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üre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"},l={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Geçersiz değer: beklenen instanceof ${n.expected}, alınan ${m}`:`Geçersiz değer: beklenen ${u}, alınan ${m}`}case"invalid_value":return n.values.length===1?`Geçersiz değer: beklenen ${oe(n.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Çok büyük: beklenen ${n.origin??"değer"} ${u}${n.maximum.toString()} ${s.unit??"öğe"}`:`Çok büyük: beklenen ${n.origin??"değer"} ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Çok küçük: beklenen ${n.origin} ${u}${n.minimum.toString()} ${s.unit}`:`Çok küçük: beklenen ${n.origin} ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Geçersiz metin: "${u.prefix}" ile başlamalı`:u.format==="ends_with"?`Geçersiz metin: "${u.suffix}" ile bitmeli`:u.format==="includes"?`Geçersiz metin: "${u.includes}" içermeli`:u.format==="regex"?`Geçersiz metin: ${u.pattern} desenine uymalı`:`Geçersiz ${o[u.format]??n.format}`}case"not_multiple_of":return`Geçersiz sayı: ${n.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${n.keys.length>1?"lar":""}: ${B(n.keys,", ")}`;case"invalid_key":return`${n.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${n.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function h6(){return{localeError:p6()}}const g6=()=>{const i={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function r(n){return i[n]??null}const o={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"},l={nan:"NaN",number:"число",array:"масив"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Неправильні вхідні дані: очікується instanceof ${n.expected}, отримано ${m}`:`Неправильні вхідні дані: очікується ${u}, отримано ${m}`}case"invalid_value":return n.values.length===1?`Неправильні вхідні дані: очікується ${oe(n.values[0])}`:`Неправильна опція: очікується одне з ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Занадто велике: очікується, що ${n.origin??"значення"} ${s.verb} ${u}${n.maximum.toString()} ${s.unit??"елементів"}`:`Занадто велике: очікується, що ${n.origin??"значення"} буде ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Занадто мале: очікується, що ${n.origin} ${s.verb} ${u}${n.minimum.toString()} ${s.unit}`:`Занадто мале: очікується, що ${n.origin} буде ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Неправильний рядок: повинен починатися з "${u.prefix}"`:u.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${u.suffix}"`:u.format==="includes"?`Неправильний рядок: повинен містити "${u.includes}"`:u.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${u.pattern}`:`Неправильний ${o[u.format]??n.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${n.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${n.keys.length>1?"і":""}: ${B(n.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${n.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${n.origin}`;default:return"Неправильні вхідні дані"}}};function Jk(){return{localeError:g6()}}function v6(){return Jk()}const y6=()=>{const i={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function r(n){return i[n]??null}const o={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},l={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`غلط ان پٹ: instanceof ${n.expected} متوقع تھا، ${m} موصول ہوا`:`غلط ان پٹ: ${u} متوقع تھا، ${m} موصول ہوا`}case"invalid_value":return n.values.length===1?`غلط ان پٹ: ${oe(n.values[0])} متوقع تھا`:`غلط آپشن: ${B(n.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`بہت بڑا: ${n.origin??"ویلیو"} کے ${u}${n.maximum.toString()} ${s.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${n.origin??"ویلیو"} کا ${u}${n.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`بہت چھوٹا: ${n.origin} کے ${u}${n.minimum.toString()} ${s.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${n.origin} کا ${u}${n.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const u=n;return u.format==="starts_with"?`غلط سٹرنگ: "${u.prefix}" سے شروع ہونا چاہیے`:u.format==="ends_with"?`غلط سٹرنگ: "${u.suffix}" پر ختم ہونا چاہیے`:u.format==="includes"?`غلط سٹرنگ: "${u.includes}" شامل ہونا چاہیے`:u.format==="regex"?`غلط سٹرنگ: پیٹرن ${u.pattern} سے میچ ہونا چاہیے`:`غلط ${o[u.format]??n.format}`}case"not_multiple_of":return`غلط نمبر: ${n.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${n.keys.length>1?"ز":""}: ${B(n.keys,"، ")}`;case"invalid_key":return`${n.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${n.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function b6(){return{localeError:y6()}}const _6=()=>{const i={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"},map:{unit:"yozuv",verb:"bo‘lishi kerak"}};function r(n){return i[n]??null}const o={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},l={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${m}`:`Noto‘g‘ri kirish: kutilgan ${u}, qabul qilingan ${m}`}case"invalid_value":return n.values.length===1?`Noto‘g‘ri kirish: kutilgan ${oe(n.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Juda katta: kutilgan ${n.origin??"qiymat"} ${u}${n.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Juda kichik: kutilgan ${n.origin} ${u}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${n.origin} ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Noto‘g‘ri satr: "${u.prefix}" bilan boshlanishi kerak`:u.format==="ends_with"?`Noto‘g‘ri satr: "${u.suffix}" bilan tugashi kerak`:u.format==="includes"?`Noto‘g‘ri satr: "${u.includes}" ni o‘z ichiga olishi kerak`:u.format==="regex"?`Noto‘g‘ri satr: ${u.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${o[u.format]??n.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${n.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${n.keys.length>1?"lar":""}: ${B(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto‘g‘ri`;case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return`${n.origin} da noto‘g‘ri qiymat`;default:return"Noto‘g‘ri kirish"}}};function S6(){return{localeError:_6()}}const $6=()=>{const i={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function r(n){return i[n]??null}const o={regex:"đầu vào",email:"địa chỉ 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ày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"},l={nan:"NaN",number:"số",array:"mảng"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${n.expected}, nhận được ${m}`:`Đầu vào không hợp lệ: mong đợi ${u}, nhận được ${m}`}case"invalid_value":return n.values.length===1?`Đầu vào không hợp lệ: mong đợi ${oe(n.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Quá lớn: mong đợi ${n.origin??"giá trị"} ${s.verb} ${u}${n.maximum.toString()} ${s.unit??"phần tử"}`:`Quá lớn: mong đợi ${n.origin??"giá trị"} ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Quá nhỏ: mong đợi ${n.origin} ${s.verb} ${u}${n.minimum.toString()} ${s.unit}`:`Quá nhỏ: mong đợi ${n.origin} ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${u.prefix}"`:u.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${u.suffix}"`:u.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${u.includes}"`:u.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${u.pattern}`:`${o[u.format]??n.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${n.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${B(n.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${n.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${n.origin}`;default:return"Đầu vào không hợp lệ"}}};function k6(){return{localeError:$6()}}const z6=()=>{const i={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function r(n){return i[n]??null}const o={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"},l={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`无效输入:期望 instanceof ${n.expected},实际接收 ${m}`:`无效输入:期望 ${u},实际接收 ${m}`}case"invalid_value":return n.values.length===1?`无效输入:期望 ${oe(n.values[0])}`:`无效选项:期望以下之一 ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`数值过大:期望 ${n.origin??"值"} ${u}${n.maximum.toString()} ${s.unit??"个元素"}`:`数值过大:期望 ${n.origin??"值"} ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`数值过小:期望 ${n.origin} ${u}${n.minimum.toString()} ${s.unit}`:`数值过小:期望 ${n.origin} ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`无效字符串:必须以 "${u.prefix}" 开头`:u.format==="ends_with"?`无效字符串:必须以 "${u.suffix}" 结尾`:u.format==="includes"?`无效字符串:必须包含 "${u.includes}"`:u.format==="regex"?`无效字符串:必须满足正则表达式 ${u.pattern}`:`无效${o[u.format]??n.format}`}case"not_multiple_of":return`无效数字:必须是 ${n.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${B(n.keys,", ")}`;case"invalid_key":return`${n.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${n.origin} 中包含无效值(value)`;default:return"无效输入"}}};function x6(){return{localeError:z6()}}const w6=()=>{const i={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function r(n){return i[n]??null}const o={regex:"輸入",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 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"},l={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`無效的輸入值:預期為 instanceof ${n.expected},但收到 ${m}`:`無效的輸入值:預期為 ${u},但收到 ${m}`}case"invalid_value":return n.values.length===1?`無效的輸入值:預期為 ${oe(n.values[0])}`:`無效的選項:預期為以下其中之一 ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`數值過大:預期 ${n.origin??"值"} 應為 ${u}${n.maximum.toString()} ${s.unit??"個元素"}`:`數值過大:預期 ${n.origin??"值"} 應為 ${u}${n.maximum.toString()}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`數值過小:預期 ${n.origin} 應為 ${u}${n.minimum.toString()} ${s.unit}`:`數值過小:預期 ${n.origin} 應為 ${u}${n.minimum.toString()}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`無效的字串:必須以 "${u.prefix}" 開頭`:u.format==="ends_with"?`無效的字串:必須以 "${u.suffix}" 結尾`:u.format==="includes"?`無效的字串:必須包含 "${u.includes}"`:u.format==="regex"?`無效的字串:必須符合格式 ${u.pattern}`:`無效的 ${o[u.format]??n.format}`}case"not_multiple_of":return`無效的數字:必須為 ${n.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${n.keys.length>1?"們":""}:${B(n.keys,"、")}`;case"invalid_key":return`${n.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${n.origin} 中有無效的值`;default:return"無效的輸入值"}}};function T6(){return{localeError:w6()}}const E6=()=>{const i={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function r(n){return i[n]??null}const o={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",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:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},l={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return n=>{switch(n.code){case"invalid_type":{const u=l[n.expected]??n.expected,s=ue(n.input),m=l[s]??s;return/^[A-Z]/.test(n.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${n.expected}, àmọ̀ a rí ${m}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${u}, àmọ̀ a rí ${m}`}case"invalid_value":return n.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${oe(n.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${B(n.values,"|")}`;case"too_big":{const u=n.inclusive?"<=":"<",s=r(n.origin);return s?`Tó pọ̀ jù: a ní láti jẹ́ pé ${n.origin??"iye"} ${s.verb} ${u}${n.maximum} ${s.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${u}${n.maximum}`}case"too_small":{const u=n.inclusive?">=":">",s=r(n.origin);return s?`Kéré ju: a ní láti jẹ́ pé ${n.origin} ${s.verb} ${u}${n.minimum} ${s.unit}`:`Kéré ju: a ní láti jẹ́ ${u}${n.minimum}`}case"invalid_format":{const u=n;return u.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${u.prefix}"`:u.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${u.suffix}"`:u.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${u.includes}"`:u.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${u.pattern}`:`Aṣìṣe: ${o[u.format]??n.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${n.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${B(n.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${n.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${n.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function O6(){return{localeError:E6()}}const qm=Object.freeze(Object.defineProperty({__proto__:null,ar:q4,az:H4,be:J4,bg:Y4,ca:V4,cs:Q4,da:F4,de:eT,el:nT,en:Hk,eo:aT,es:lT,fa:cT,fi:dT,fr:mT,frCA:hT,he:vT,hr:bT,hu:ST,hy:kT,id:xT,is:TT,it:OT,ja:DT,ka:NT,kh:IT,km:Bk,ko:CT,lt:ZT,mk:LT,ms:BT,nl:GT,no:XT,ota:PT,pl:WT,ps:KT,pt:t6,ro:i6,ru:a6,sl:l6,sv:c6,ta:d6,th:m6,tr:h6,ua:v6,uk:Jk,ur:b6,uz:S6,vi:k6,yo:O6,zhCN:x6,zhTW:T6},Symbol.toStringTag,{value:"Module"}));var H_;const Lm=Symbol("ZodOutput"),Hm=Symbol("ZodInput");class Gk{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...o){const l=o[0];return this._map.set(r,l),l&&typeof l=="object"&&"id"in l&&this._idmap.set(l.id,r),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){const o=this._map.get(r);return o&&typeof o=="object"&&"id"in o&&this._idmap.delete(o.id),this._map.delete(r),this}get(r){const o=r._zod.parent;if(o){const l={...this.get(o)??{}};delete l.id;const n={...l,...this._map.get(r)};return Object.keys(n).length?n:void 0}return this._map.get(r)}has(r){return this._map.has(r)}}function Ec(){return new Gk}(H_=globalThis).__zod_globalRegistry??(H_.__zod_globalRegistry=Ec());const cn=globalThis.__zod_globalRegistry;function Yk(i,r){return new i({type:"string",...L(r)})}function Xk(i,r){return new i({type:"string",coerce:!0,...L(r)})}function Bm(i,r){return new i({type:"string",format:"email",check:"string_format",abort:!1,...L(r)})}function dc(i,r){return new i({type:"string",format:"guid",check:"string_format",abort:!1,...L(r)})}function Jm(i,r){return new i({type:"string",format:"uuid",check:"string_format",abort:!1,...L(r)})}function Gm(i,r){return new i({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...L(r)})}function Ym(i,r){return new i({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...L(r)})}function Xm(i,r){return new i({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...L(r)})}function Oc(i,r){return new i({type:"string",format:"url",check:"string_format",abort:!1,...L(r)})}function Vm(i,r){return new i({type:"string",format:"emoji",check:"string_format",abort:!1,...L(r)})}function Pm(i,r){return new i({type:"string",format:"nanoid",check:"string_format",abort:!1,...L(r)})}function Qm(i,r){return new i({type:"string",format:"cuid",check:"string_format",abort:!1,...L(r)})}function Km(i,r){return new i({type:"string",format:"cuid2",check:"string_format",abort:!1,...L(r)})}function Fm(i,r){return new i({type:"string",format:"ulid",check:"string_format",abort:!1,...L(r)})}function Wm(i,r){return new i({type:"string",format:"xid",check:"string_format",abort:!1,...L(r)})}function ep(i,r){return new i({type:"string",format:"ksuid",check:"string_format",abort:!1,...L(r)})}function tp(i,r){return new i({type:"string",format:"ipv4",check:"string_format",abort:!1,...L(r)})}function np(i,r){return new i({type:"string",format:"ipv6",check:"string_format",abort:!1,...L(r)})}function Vk(i,r){return new i({type:"string",format:"mac",check:"string_format",abort:!1,...L(r)})}function ip(i,r){return new i({type:"string",format:"cidrv4",check:"string_format",abort:!1,...L(r)})}function rp(i,r){return new i({type:"string",format:"cidrv6",check:"string_format",abort:!1,...L(r)})}function ap(i,r){return new i({type:"string",format:"base64",check:"string_format",abort:!1,...L(r)})}function op(i,r){return new i({type:"string",format:"base64url",check:"string_format",abort:!1,...L(r)})}function lp(i,r){return new i({type:"string",format:"e164",check:"string_format",abort:!1,...L(r)})}function up(i,r){return new i({type:"string",format:"jwt",check:"string_format",abort:!1,...L(r)})}const cp={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Pk(i,r){return new i({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...L(r)})}function Qk(i,r){return new i({type:"string",format:"date",check:"string_format",...L(r)})}function Kk(i,r){return new i({type:"string",format:"time",check:"string_format",precision:null,...L(r)})}function Fk(i,r){return new i({type:"string",format:"duration",check:"string_format",...L(r)})}function Wk(i,r){return new i({type:"number",checks:[],...L(r)})}function e0(i,r){return new i({type:"number",coerce:!0,checks:[],...L(r)})}function t0(i,r){return new i({type:"number",check:"number_format",abort:!1,format:"safeint",...L(r)})}function n0(i,r){return new i({type:"number",check:"number_format",abort:!1,format:"float32",...L(r)})}function i0(i,r){return new i({type:"number",check:"number_format",abort:!1,format:"float64",...L(r)})}function r0(i,r){return new i({type:"number",check:"number_format",abort:!1,format:"int32",...L(r)})}function a0(i,r){return new i({type:"number",check:"number_format",abort:!1,format:"uint32",...L(r)})}function o0(i,r){return new i({type:"boolean",...L(r)})}function l0(i,r){return new i({type:"boolean",coerce:!0,...L(r)})}function u0(i,r){return new i({type:"bigint",...L(r)})}function c0(i,r){return new i({type:"bigint",coerce:!0,...L(r)})}function s0(i,r){return new i({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...L(r)})}function d0(i,r){return new i({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...L(r)})}function f0(i,r){return new i({type:"symbol",...L(r)})}function m0(i,r){return new i({type:"undefined",...L(r)})}function p0(i,r){return new i({type:"null",...L(r)})}function h0(i){return new i({type:"any"})}function g0(i){return new i({type:"unknown"})}function v0(i,r){return new i({type:"never",...L(r)})}function y0(i,r){return new i({type:"void",...L(r)})}function b0(i,r){return new i({type:"date",...L(r)})}function _0(i,r){return new i({type:"date",coerce:!0,...L(r)})}function S0(i,r){return new i({type:"nan",...L(r)})}function li(i,r){return new Dm({check:"less_than",...L(r),value:i,inclusive:!1})}function sn(i,r){return new Dm({check:"less_than",...L(r),value:i,inclusive:!0})}function ui(i,r){return new jm({check:"greater_than",...L(r),value:i,inclusive:!1})}function qt(i,r){return new jm({check:"greater_than",...L(r),value:i,inclusive:!0})}function Uc(i){return ui(0,i)}function Dc(i){return li(0,i)}function jc(i){return sn(0,i)}function Nc(i){return qt(0,i)}function sr(i,r){return new c$({check:"multiple_of",...L(r),value:i})}function gr(i,r){return new f$({check:"max_size",...L(r),maximum:i})}function ci(i,r){return new m$({check:"min_size",...L(r),minimum:i})}function ga(i,r){return new p$({check:"size_equals",...L(r),size:i})}function va(i,r){return new h$({check:"max_length",...L(r),maximum:i})}function Ri(i,r){return new g$({check:"min_length",...L(r),minimum:i})}function ya(i,r){return new v$({check:"length_equals",...L(r),length:i})}function Bo(i,r){return new y$({check:"string_format",format:"regex",...L(r),pattern:i})}function Jo(i){return new b$({check:"string_format",format:"lowercase",...L(i)})}function Go(i){return new _$({check:"string_format",format:"uppercase",...L(i)})}function Yo(i,r){return new S$({check:"string_format",format:"includes",...L(r),includes:i})}function Xo(i,r){return new $$({check:"string_format",format:"starts_with",...L(r),prefix:i})}function Vo(i,r){return new k$({check:"string_format",format:"ends_with",...L(r),suffix:i})}function Ac(i,r,o){return new z$({check:"property",property:i,schema:r,...L(o)})}function Po(i,r){return new x$({check:"mime_type",mime:i,...L(r)})}function Ln(i){return new w$({check:"overwrite",tx:i})}function Qo(i){return Ln(r=>r.normalize(i))}function Ko(){return Ln(i=>i.trim())}function Fo(){return Ln(i=>i.toLowerCase())}function Wo(){return Ln(i=>i.toUpperCase())}function el(){return Ln(i=>cS(i))}function $0(i,r,o){return new i({type:"array",element:r,...L(o)})}function U6(i,r,o){return new i({type:"union",options:r,...L(o)})}function D6(i,r,o){return new i({type:"union",options:r,inclusive:!1,...L(o)})}function j6(i,r,o,l){return new i({type:"union",options:o,discriminator:r,...L(l)})}function N6(i,r,o){return new i({type:"intersection",left:r,right:o})}function A6(i,r,o,l){const n=o instanceof me,u=n?l:o,s=n?o:null;return new i({type:"tuple",items:r,rest:s,...L(u)})}function I6(i,r,o,l){return new i({type:"record",keyType:r,valueType:o,...L(l)})}function R6(i,r,o,l){return new i({type:"map",keyType:r,valueType:o,...L(l)})}function C6(i,r,o){return new i({type:"set",valueType:r,...L(o)})}function M6(i,r,o){const l=Array.isArray(r)?Object.fromEntries(r.map(n=>[n,n])):r;return new i({type:"enum",entries:l,...L(o)})}function Z6(i,r,o){return new i({type:"enum",entries:r,...L(o)})}function q6(i,r,o){return new i({type:"literal",values:Array.isArray(r)?r:[r],...L(o)})}function k0(i,r){return new i({type:"file",...L(r)})}function L6(i,r){return new i({type:"transform",transform:r})}function H6(i,r){return new i({type:"optional",innerType:r})}function B6(i,r){return new i({type:"nullable",innerType:r})}function J6(i,r,o){return new i({type:"default",innerType:r,get defaultValue(){return typeof o=="function"?o():Sc(o)}})}function G6(i,r,o){return new i({type:"nonoptional",innerType:r,...L(o)})}function Y6(i,r){return new i({type:"success",innerType:r})}function X6(i,r,o){return new i({type:"catch",innerType:r,catchValue:typeof o=="function"?o:()=>o})}function V6(i,r,o){return new i({type:"pipe",in:r,out:o})}function P6(i,r){return new i({type:"readonly",innerType:r})}function Q6(i,r,o){return new i({type:"template_literal",parts:r,...L(o)})}function K6(i,r){return new i({type:"lazy",getter:r})}function F6(i,r){return new i({type:"promise",innerType:r})}function z0(i,r,o){const l=L(o);return l.abort??(l.abort=!0),new i({type:"custom",check:"custom",fn:r,...l})}function x0(i,r,o){return new i({type:"custom",check:"custom",fn:r,...L(o)})}function w0(i,r){const o=T0(l=>(l.addIssue=n=>{if(typeof n=="string")l.issues.push(aa(n,l.value,o._zod.def));else{const u=n;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=l.value),u.inst??(u.inst=o),u.continue??(u.continue=!o._zod.def.abort),l.issues.push(aa(u))}},i(l.value,l)),r);return o}function T0(i,r){const o=new at({check:"custom",...L(r)});return o._zod.check=i,o}function E0(i){const r=new at({check:"describe"});return r._zod.onattach=[o=>{const l=cn.get(o)??{};cn.add(o,{...l,description:i})}],r._zod.check=()=>{},r}function O0(i){const r=new at({check:"meta"});return r._zod.onattach=[o=>{const l=cn.get(o)??{};cn.add(o,{...l,...i})}],r._zod.check=()=>{},r}function U0(i,r){const o=L(r);let l=o.truthy??["true","1","yes","on","y","enabled"],n=o.falsy??["false","0","no","off","n","disabled"];o.case!=="sensitive"&&(l=l.map(z=>typeof z=="string"?z.toLowerCase():z),n=n.map(z=>typeof z=="string"?z.toLowerCase():z));const u=new Set(l),s=new Set(n),m=i.Codec??Zm,p=i.Boolean??Im,g=i.String??Ho,v=new g({type:"string",error:o.error}),b=new p({type:"boolean",error:o.error}),_=new m({type:"pipe",in:v,out:b,transform:((z,x)=>{let H=z;return o.case!=="sensitive"&&(H=H.toLowerCase()),u.has(H)?!0:s.has(H)?!1:(x.issues.push({code:"invalid_value",expected:"stringbool",values:[...u,...s],input:x.value,inst:_,continue:!1}),{})}),reverseTransform:((z,x)=>z===!0?l[0]||"true":n[0]||"false"),error:o.error});return _}function tl(i,r,o,l={}){const n=L(l),u={...L(l),check:"string_format",type:"string",format:r,fn:typeof o=="function"?o:m=>o.test(m),...n};return o instanceof RegExp&&(u.pattern=o),new i(u)}function la(i){let r=(i==null?void 0:i.target)??"draft-2020-12";return r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),{processors:i.processors??{},metadataRegistry:(i==null?void 0:i.metadata)??cn,target:r,unrepresentable:(i==null?void 0:i.unrepresentable)??"throw",override:(i==null?void 0:i.override)??(()=>{}),io:(i==null?void 0:i.io)??"output",counter:0,seen:new Map,cycles:(i==null?void 0:i.cycles)??"ref",reused:(i==null?void 0:i.reused)??"inline",external:(i==null?void 0:i.external)??void 0}}function Ve(i,r,o={path:[],schemaPath:[]}){var v,b;var l;const n=i._zod.def,u=r.seen.get(i);if(u)return u.count++,o.schemaPath.includes(i)&&(u.cycle=o.path),u.schema;const s={schema:{},count:1,cycle:void 0,path:o.path};r.seen.set(i,s);const m=(b=(v=i._zod).toJSONSchema)==null?void 0:b.call(v);if(m)s.schema=m;else{const _={...o,schemaPath:[...o.schemaPath,i],path:o.path};if(i._zod.processJSONSchema)i._zod.processJSONSchema(r,s.schema,_);else{const x=s.schema,H=r.processors[n.type];if(!H)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);H(i,r,x,_)}const z=i._zod.parent;z&&(s.ref||(s.ref=z),Ve(z,r,_),r.seen.get(z).isParent=!0)}const p=r.metadataRegistry.get(i);return p&&Object.assign(s.schema,p),r.io==="input"&&Zt(i)&&(delete s.schema.examples,delete s.schema.default),r.io==="input"&&"_prefault"in s.schema&&((l=s.schema).default??(l.default=s.schema._prefault)),delete s.schema._prefault,r.seen.get(i).schema}function ua(i,r){var s,m,p,g;const o=i.seen.get(r);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");const l=new Map;for(const v of i.seen.entries()){const b=(s=i.metadataRegistry.get(v[0]))==null?void 0:s.id;if(b){const _=l.get(b);if(_&&_!==v[0])throw new Error(`Duplicate schema id "${b}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);l.set(b,v[0])}}const n=v=>{var H;const b=i.target==="draft-2020-12"?"$defs":"definitions";if(i.external){const J=(H=i.external.registry.get(v[0]))==null?void 0:H.id,F=i.external.uri??(ge=>ge);if(J)return{ref:F(J)};const se=v[1].defId??v[1].schema.id??`schema${i.counter++}`;return v[1].defId=se,{defId:se,ref:`${F("__shared")}#/${b}/${se}`}}if(v[1]===o)return{ref:"#"};const z=`#/${b}/`,x=v[1].schema.id??`__schema${i.counter++}`;return{defId:x,ref:z+x}},u=v=>{if(v[1].schema.$ref)return;const b=v[1],{ref:_,defId:z}=n(v);b.def={...b.schema},z&&(b.defId=z);const x=b.schema;for(const H in x)delete x[H];x.$ref=_};if(i.cycles==="throw")for(const v of i.seen.entries()){const b=v[1];if(b.cycle)throw new Error(`Cycle detected: #/${(m=b.cycle)==null?void 0:m.join("/")}/<root>
118
118
 
119
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const v of i.seen.entries()){const b=v[1];if(r===v[0]){u(v);continue}if(i.external){const z=(p=i.external.registry.get(v[0]))==null?void 0:p.id;if(r!==v[0]&&z){u(v);continue}}if((g=i.metadataRegistry.get(v[0]))==null?void 0:g.id){u(v);continue}if(b.cycle){u(v);continue}if(b.count>1&&i.reused==="ref"){u(v);continue}}}function oa(i,r){var m,p,g,v;const o=i.seen.get(r);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");const l=b=>{const _=i.seen.get(b);if(_.ref===null)return;const z=_.def??_.schema,x={...z},H=_.ref;if(_.ref=null,H){l(H);const F=i.seen.get(H),se=F.schema;if(se.$ref&&(i.target==="draft-07"||i.target==="draft-04"||i.target==="openapi-3.0")?(z.allOf=z.allOf??[],z.allOf.push(se)):Object.assign(z,se),Object.assign(z,x),b._zod.parent===H)for(const be in z)be==="$ref"||be==="allOf"||be in x||delete z[be];if(se.$ref&&F.def)for(const be in z)be==="$ref"||be==="allOf"||be in F.def&&JSON.stringify(z[be])===JSON.stringify(F.def[be])&&delete z[be]}const J=b._zod.parent;if(J&&J!==H){l(J);const F=i.seen.get(J);if(F!=null&&F.schema.$ref&&(z.$ref=F.schema.$ref,F.def))for(const se in z)se==="$ref"||se==="allOf"||se in F.def&&JSON.stringify(z[se])===JSON.stringify(F.def[se])&&delete z[se]}i.override({zodSchema:b,jsonSchema:z,path:_.path??[]})};for(const b of[...i.seen.entries()].reverse())l(b[0]);const n={};if(i.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":i.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":i.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":i.target,(m=i.external)!=null&&m.uri){const b=(p=i.external.registry.get(r))==null?void 0:p.id;if(!b)throw new Error("Schema is missing an `id` property");n.$id=i.external.uri(b)}Object.assign(n,o.def??o.schema);const u=(g=i.metadataRegistry.get(r))==null?void 0:g.id;u!==void 0&&n.id===u&&delete n.id;const s=((v=i.external)==null?void 0:v.defs)??{};for(const b of i.seen.entries()){const _=b[1];_.def&&_.defId&&(_.def.id===_.defId&&delete _.def.id,s[_.defId]=_.def)}i.external||Object.keys(s).length>0&&(i.target==="draft-2020-12"?n.$defs=s:n.definitions=s);try{const b=JSON.parse(JSON.stringify(n));return Object.defineProperty(b,"~standard",{value:{...r["~standard"],jsonSchema:{input:Oo(r,"input",i.processors),output:Oo(r,"output",i.processors)}},enumerable:!1,writable:!1}),b}catch{throw new Error("Error converting schema to JSON.")}}function Ct(i,r){const o=r??{seen:new Set};if(o.seen.has(i))return!1;o.seen.add(i);const l=i._zod.def;if(l.type==="transform")return!0;if(l.type==="array")return Ct(l.element,o);if(l.type==="set")return Ct(l.valueType,o);if(l.type==="lazy")return Ct(l.getter(),o);if(l.type==="promise"||l.type==="optional"||l.type==="nonoptional"||l.type==="nullable"||l.type==="readonly"||l.type==="default"||l.type==="prefault")return Ct(l.innerType,o);if(l.type==="intersection")return Ct(l.left,o)||Ct(l.right,o);if(l.type==="record"||l.type==="map")return Ct(l.keyType,o)||Ct(l.valueType,o);if(l.type==="pipe")return Ct(l.in,o)||Ct(l.out,o);if(l.type==="object"){for(const n in l.shape)if(Ct(l.shape[n],o))return!0;return!1}if(l.type==="union"){for(const n of l.options)if(Ct(n,o))return!0;return!1}if(l.type==="tuple"){for(const n of l.items)if(Ct(n,o))return!0;return!!(l.rest&&Ct(l.rest,o))}return!1}const U0=(i,r={})=>o=>{const l=ra({...o,processors:r});return Pe(i,l),aa(l,i),oa(l,i)},Oo=(i,r,o={})=>l=>{const{libraryOptions:n,target:u}=l??{},s=ra({...n??{},target:u,io:r,processors:o});return Pe(i,s),aa(s,i),oa(s,i)},K6={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},D0=(i,r,o,l)=>{const n=o;n.type="string";const{minimum:u,maximum:s,format:m,patterns:p,contentEncoding:g}=i._zod.bag;if(typeof u=="number"&&(n.minLength=u),typeof s=="number"&&(n.maxLength=s),m&&(n.format=K6[m]??m,n.format===""&&delete n.format,m==="time"&&delete n.format),g&&(n.contentEncoding=g),p&&p.size>0){const v=[...p];v.length===1?n.pattern=v[0].source:v.length>1&&(n.allOf=[...v.map(b=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:b.source}))])}},j0=(i,r,o,l)=>{const n=o,{minimum:u,maximum:s,format:m,multipleOf:p,exclusiveMaximum:g,exclusiveMinimum:v}=i._zod.bag;typeof m=="string"&&m.includes("int")?n.type="integer":n.type="number";const b=typeof v=="number"&&v>=(u??Number.NEGATIVE_INFINITY),_=typeof g=="number"&&g<=(s??Number.POSITIVE_INFINITY),z=r.target==="draft-04"||r.target==="openapi-3.0";b?z?(n.minimum=v,n.exclusiveMinimum=!0):n.exclusiveMinimum=v:typeof u=="number"&&(n.minimum=u),_?z?(n.maximum=g,n.exclusiveMaximum=!0):n.exclusiveMaximum=g:typeof s=="number"&&(n.maximum=s),typeof p=="number"&&(n.multipleOf=p)},N0=(i,r,o,l)=>{o.type="boolean"},A0=(i,r,o,l)=>{if(r.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},I0=(i,r,o,l)=>{if(r.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},R0=(i,r,o,l)=>{r.target==="openapi-3.0"?(o.type="string",o.nullable=!0,o.enum=[null]):o.type="null"},C0=(i,r,o,l)=>{if(r.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},M0=(i,r,o,l)=>{if(r.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Z0=(i,r,o,l)=>{o.not={}},q0=(i,r,o,l)=>{},L0=(i,r,o,l)=>{},H0=(i,r,o,l)=>{if(r.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},B0=(i,r,o,l)=>{const n=i._zod.def,u=dm(n.entries);u.every(s=>typeof s=="number")&&(o.type="number"),u.every(s=>typeof s=="string")&&(o.type="string"),o.enum=u},J0=(i,r,o,l)=>{const n=i._zod.def,u=[];for(const s of n.values)if(s===void 0){if(r.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(r.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");u.push(Number(s))}else u.push(s);if(u.length!==0)if(u.length===1){const s=u[0];o.type=s===null?"null":typeof s,r.target==="draft-04"||r.target==="openapi-3.0"?o.enum=[s]:o.const=s}else u.every(s=>typeof s=="number")&&(o.type="number"),u.every(s=>typeof s=="string")&&(o.type="string"),u.every(s=>typeof s=="boolean")&&(o.type="boolean"),u.every(s=>s===null)&&(o.type="null"),o.enum=u},G0=(i,r,o,l)=>{if(r.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Y0=(i,r,o,l)=>{const n=o,u=i._zod.pattern;if(!u)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=u.source},X0=(i,r,o,l)=>{const n=o,u={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:m,mime:p}=i._zod.bag;s!==void 0&&(u.minLength=s),m!==void 0&&(u.maxLength=m),p?p.length===1?(u.contentMediaType=p[0],Object.assign(n,u)):(Object.assign(n,u),n.anyOf=p.map(g=>({contentMediaType:g}))):Object.assign(n,u)},V0=(i,r,o,l)=>{o.type="boolean"},P0=(i,r,o,l)=>{if(r.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Q0=(i,r,o,l)=>{if(r.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},K0=(i,r,o,l)=>{if(r.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},F0=(i,r,o,l)=>{if(r.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},W0=(i,r,o,l)=>{if(r.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},ez=(i,r,o,l)=>{const n=o,u=i._zod.def,{minimum:s,maximum:m}=i._zod.bag;typeof s=="number"&&(n.minItems=s),typeof m=="number"&&(n.maxItems=m),n.type="array",n.items=Pe(u.element,r,{...l,path:[...l.path,"items"]})},tz=(i,r,o,l)=>{var g;const n=o,u=i._zod.def;n.type="object",n.properties={};const s=u.shape;for(const v in s)n.properties[v]=Pe(s[v],r,{...l,path:[...l.path,"properties",v]});const m=new Set(Object.keys(s)),p=new Set([...m].filter(v=>{const b=u.shape[v]._zod;return r.io==="input"?b.optin===void 0:b.optout===void 0}));p.size>0&&(n.required=Array.from(p)),((g=u.catchall)==null?void 0:g._zod.def.type)==="never"?n.additionalProperties=!1:u.catchall?u.catchall&&(n.additionalProperties=Pe(u.catchall,r,{...l,path:[...l.path,"additionalProperties"]})):r.io==="output"&&(n.additionalProperties=!1)},up=(i,r,o,l)=>{const n=i._zod.def,u=n.inclusive===!1,s=n.options.map((m,p)=>Pe(m,r,{...l,path:[...l.path,u?"oneOf":"anyOf",p]}));u?o.oneOf=s:o.anyOf=s},nz=(i,r,o,l)=>{const n=i._zod.def,u=Pe(n.left,r,{...l,path:[...l.path,"allOf",0]}),s=Pe(n.right,r,{...l,path:[...l.path,"allOf",1]}),m=g=>"allOf"in g&&Object.keys(g).length===1,p=[...m(u)?u.allOf:[u],...m(s)?s.allOf:[s]];o.allOf=p},iz=(i,r,o,l)=>{const n=o,u=i._zod.def;n.type="array";const s=r.target==="draft-2020-12"?"prefixItems":"items",m=r.target==="draft-2020-12"||r.target==="openapi-3.0"?"items":"additionalItems",p=u.items.map((_,z)=>Pe(_,r,{...l,path:[...l.path,s,z]})),g=u.rest?Pe(u.rest,r,{...l,path:[...l.path,m,...r.target==="openapi-3.0"?[u.items.length]:[]]}):null;r.target==="draft-2020-12"?(n.prefixItems=p,g&&(n.items=g)):r.target==="openapi-3.0"?(n.items={anyOf:p},g&&n.items.anyOf.push(g),n.minItems=p.length,g||(n.maxItems=p.length)):(n.items=p,g&&(n.additionalItems=g));const{minimum:v,maximum:b}=i._zod.bag;typeof v=="number"&&(n.minItems=v),typeof b=="number"&&(n.maxItems=b)},rz=(i,r,o,l)=>{const n=o,u=i._zod.def;n.type="object";const s=u.keyType,m=s._zod.bag,p=m==null?void 0:m.patterns;if(u.mode==="loose"&&p&&p.size>0){const v=Pe(u.valueType,r,{...l,path:[...l.path,"patternProperties","*"]});n.patternProperties={};for(const b of p)n.patternProperties[b.source]=v}else(r.target==="draft-07"||r.target==="draft-2020-12")&&(n.propertyNames=Pe(u.keyType,r,{...l,path:[...l.path,"propertyNames"]})),n.additionalProperties=Pe(u.valueType,r,{...l,path:[...l.path,"additionalProperties"]});const g=s._zod.values;if(g){const v=[...g].filter(b=>typeof b=="string"||typeof b=="number");v.length>0&&(n.required=v)}},az=(i,r,o,l)=>{const n=i._zod.def,u=Pe(n.innerType,r,l),s=r.seen.get(i);r.target==="openapi-3.0"?(s.ref=n.innerType,o.nullable=!0):o.anyOf=[u,{type:"null"}]},oz=(i,r,o,l)=>{const n=i._zod.def;Pe(n.innerType,r,l);const u=r.seen.get(i);u.ref=n.innerType},lz=(i,r,o,l)=>{const n=i._zod.def;Pe(n.innerType,r,l);const u=r.seen.get(i);u.ref=n.innerType,o.default=JSON.parse(JSON.stringify(n.defaultValue))},uz=(i,r,o,l)=>{const n=i._zod.def;Pe(n.innerType,r,l);const u=r.seen.get(i);u.ref=n.innerType,r.io==="input"&&(o._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},cz=(i,r,o,l)=>{const n=i._zod.def;Pe(n.innerType,r,l);const u=r.seen.get(i);u.ref=n.innerType;let s;try{s=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}o.default=s},sz=(i,r,o,l)=>{const n=i._zod.def,u=r.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;Pe(u,r,l);const s=r.seen.get(i);s.ref=u},dz=(i,r,o,l)=>{const n=i._zod.def;Pe(n.innerType,r,l);const u=r.seen.get(i);u.ref=n.innerType,o.readOnly=!0},fz=(i,r,o,l)=>{const n=i._zod.def;Pe(n.innerType,r,l);const u=r.seen.get(i);u.ref=n.innerType},cp=(i,r,o,l)=>{const n=i._zod.def;Pe(n.innerType,r,l);const u=r.seen.get(i);u.ref=n.innerType},mz=(i,r,o,l)=>{const n=i._zod.innerType;Pe(n,r,l);const u=r.seen.get(i);u.ref=n},im={string:D0,number:j0,boolean:N0,bigint:A0,symbol:I0,null:R0,undefined:C0,void:M0,never:Z0,any:q0,unknown:L0,date:H0,enum:B0,literal:J0,nan:G0,template_literal:Y0,file:X0,success:V0,custom:P0,function:Q0,transform:K0,map:F0,set:W0,array:ez,object:tz,union:up,intersection:nz,tuple:iz,record:rz,nullable:az,nonoptional:oz,default:lz,prefault:uz,catch:cz,pipe:sz,readonly:dz,promise:fz,optional:cp,lazy:mz};function sp(i,r){if("_idmap"in i){const l=i,n=ra({...r,processors:im}),u={};for(const p of l._idmap.entries()){const[g,v]=p;Pe(v,n)}const s={},m={registry:l,uri:r==null?void 0:r.uri,defs:u};n.external=m;for(const p of l._idmap.entries()){const[g,v]=p;aa(n,v),s[g]=oa(n,v)}if(Object.keys(u).length>0){const p=n.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[p]:u}}return{schemas:s}}const o=ra({...r,processors:im});return Pe(i,o),aa(o,i),oa(o,i)}class F6{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(r){this.ctx.counter=r}get seen(){return this.ctx.seen}constructor(r){let o=(r==null?void 0:r.target)??"draft-2020-12";o==="draft-4"&&(o="draft-04"),o==="draft-7"&&(o="draft-07"),this.ctx=ra({processors:im,target:o,...(r==null?void 0:r.metadata)&&{metadata:r.metadata},...(r==null?void 0:r.unrepresentable)&&{unrepresentable:r.unrepresentable},...(r==null?void 0:r.override)&&{override:r.override},...(r==null?void 0:r.io)&&{io:r.io}})}process(r,o={path:[],schemaPath:[]}){return Pe(r,this.ctx,o)}emit(r,o){o&&(o.cycles&&(this.ctx.cycles=o.cycles),o.reused&&(this.ctx.reused=o.reused),o.external&&(this.ctx.external=o.external)),aa(this.ctx,r);const l=oa(this.ctx,r),{"~standard":n,...u}=l;return u}}const W6=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),pz=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:ok,$ZodArray:dk,$ZodAsyncError:ar,$ZodBase64:V$,$ZodBase64URL:Q$,$ZodBigInt:Am,$ZodBigIntFormat:nk,$ZodBoolean:Nm,$ZodCIDRv4:Y$,$ZodCIDRv6:X$,$ZodCUID:A$,$ZodCUID2:I$,$ZodCatch:jk,$ZodCheck:it,$ZodCheckBigIntFormat:s$,$ZodCheckEndsWith:$$,$ZodCheckGreaterThan:Um,$ZodCheckIncludes:_$,$ZodCheckLengthEquals:g$,$ZodCheckLessThan:Om,$ZodCheckLowerCase:y$,$ZodCheckMaxLength:p$,$ZodCheckMaxSize:d$,$ZodCheckMimeType:z$,$ZodCheckMinLength:h$,$ZodCheckMinSize:f$,$ZodCheckMultipleOf:u$,$ZodCheckNumberFormat:c$,$ZodCheckOverwrite:x$,$ZodCheckProperty:k$,$ZodCheckRegex:v$,$ZodCheckSizeEquals:m$,$ZodCheckStartsWith:S$,$ZodCheckStringFormat:Zo,$ZodCheckUpperCase:b$,$ZodCodec:Cm,$ZodCustom:qk,$ZodCustomStringFormat:ek,$ZodDate:sk,$ZodDefault:Ek,$ZodDiscriminatedUnion:vk,$ZodE164:K$,$ZodEmail:U$,$ZodEmoji:j$,$ZodEncodeError:gc,$ZodEnum:$k,$ZodError:pm,$ZodExactOptional:wk,$ZodFile:zk,$ZodFunction:Ck,$ZodGUID:E$,$ZodIPv4:B$,$ZodIPv6:J$,$ZodISODate:q$,$ZodISODateTime:Z$,$ZodISODuration:H$,$ZodISOTime:L$,$ZodIntersection:yk,$ZodJWT:W$,$ZodKSUID:M$,$ZodLazy:Zk,$ZodLiteral:kk,$ZodMAC:G$,$ZodMap:_k,$ZodNaN:Nk,$ZodNanoID:N$,$ZodNever:uk,$ZodNonOptional:Uk,$ZodNull:ak,$ZodNullable:Tk,$ZodNumber:jm,$ZodNumberFormat:tk,$ZodObject:pk,$ZodObjectJIT:hk,$ZodOptional:Rm,$ZodPipe:Ak,$ZodPrefault:Ok,$ZodPromise:Mk,$ZodReadonly:Ik,$ZodRealError:cn,$ZodRecord:bk,$ZodRegistry:Jk,$ZodSet:Sk,$ZodString:qo,$ZodStringFormat:We,$ZodSuccess:Dk,$ZodSymbol:ik,$ZodTemplateLiteral:Rk,$ZodTransform:xk,$ZodTuple:Im,$ZodType:he,$ZodULID:R$,$ZodURL:D$,$ZodUUID:O$,$ZodUndefined:rk,$ZodUnion:zc,$ZodUnknown:lk,$ZodVoid:ck,$ZodXID:C$,$ZodXor:gk,$brand:sm,$constructor:T,$input:qm,$output:Zm,Doc:w$,JSONSchema:W6,JSONSchemaGenerator:F6,NEVER:cm,TimePrecision:lp,_any:p0,_array:S0,_base64:ip,_base64url:rp,_bigint:l0,_boolean:a0,_catch:G6,_check:w0,_cidrv4:tp,_cidrv6:np,_coercedBigint:u0,_coercedBoolean:o0,_coercedDate:b0,_coercedNumber:Wk,_coercedString:Yk,_cuid:Vm,_cuid2:Pm,_custom:k0,_date:y0,_decode:bm,_decodeAsync:Sm,_default:H6,_discriminatedUnion:U6,_e164:ap,_email:Lm,_emoji:Ym,_encode:ym,_encodeAsync:_m,_endsWith:Yo,_enum:R6,_file:$0,_float32:t0,_float64:n0,_gt:oi,_gte:Mt,_guid:uc,_includes:Jo,_int:e0,_int32:i0,_int64:c0,_intersection:D6,_ipv4:Wm,_ipv6:ep,_isoDate:Pk,_isoDateTime:Vk,_isoDuration:Kk,_isoTime:Qk,_jwt:op,_ksuid:Fm,_lazy:P6,_length:ha,_literal:M6,_lowercase:Ho,_lt:ai,_lte:on,_mac:Xk,_map:A6,_max:on,_maxLength:pa,_maxSize:mr,_mime:Xo,_min:Mt,_minLength:Ai,_minSize:li,_multipleOf:lr,_nan:_0,_nanoid:Xm,_nativeEnum:C6,_negative:Ec,_never:g0,_nonnegative:Uc,_nonoptional:B6,_nonpositive:Oc,_normalize:Vo,_null:m0,_nullable:L6,_number:Fk,_optional:q6,_overwrite:Mn,_parse:No,_parseAsync:Ao,_pipe:Y6,_positive:Tc,_promise:Q6,_property:Dc,_readonly:X6,_record:N6,_refine:z0,_regex:Lo,_safeDecode:km,_safeDecodeAsync:xm,_safeEncode:$m,_safeEncodeAsync:zm,_safeParse:Io,_safeParseAsync:Ro,_set:I6,_size:ma,_slugify:Fo,_startsWith:Go,_string:Gk,_stringFormat:Wo,_stringbool:O0,_success:J6,_superRefine:x0,_symbol:d0,_templateLiteral:V6,_toLowerCase:Qo,_toUpperCase:Ko,_transform:Z6,_trim:Po,_tuple:j6,_uint32:r0,_uint64:s0,_ulid:Qm,_undefined:f0,_union:E6,_unknown:h0,_uppercase:Bo,_url:wc,_uuid:Hm,_uuidv4:Bm,_uuidv6:Jm,_uuidv7:Gm,_void:v0,_xid:Km,_xor:O6,clone:un,config:vt,createStandardJSONSchemaMethod:Oo,createToJSONSchemaMethod:U0,decode:o4,decodeAsync:u4,describe:T0,encode:a4,encodeAsync:l4,extractDefs:aa,finalize:oa,flattenError:Sc,formatError:$c,globalConfig:Eo,globalRegistry:an,initializeContext:ra,isValidBase64:Dm,isValidBase64URL:P$,isValidJWT:F$,locales:Mm,meta:E0,parse:em,parseAsync:tm,prettifyError:gm,process:Pe,regexes:kc,registry:xc,safeDecode:s4,safeDecodeAsync:f4,safeEncode:c4,safeEncodeAsync:d4,safeParse:vm,safeParseAsync:wS,toDotPath:xS,toJSONSchema:sp,treeifyError:hm,util:mm,version:T$},Symbol.toStringTag,{value:"Module"}));function dp(i){return!!i._zod}function hz(i,r){return dp(i)?vm(i,r):i.safeParse(r)}function eE(i){var o,l;if(!i)return;let r;if(dp(i)?r=(l=(o=i._zod)==null?void 0:o.def)==null?void 0:l.shape:r=i.shape,!!r){if(typeof r=="function")try{return r()}catch{return}return r}}function tE(i){var n;if(dp(i)){const s=(n=i._zod)==null?void 0:n.def;if(s){if(s.value!==void 0)return s.value;if(Array.isArray(s.values)&&s.values.length>0)return s.values[0]}}const o=i._def;if(o){if(o.value!==void 0)return o.value;if(Array.isArray(o.values)&&o.values.length>0)return o.values[0]}const l=i.value;if(l!==void 0)return l}const nE=Object.freeze(Object.defineProperty({__proto__:null,endsWith:Yo,gt:oi,gte:Mt,includes:Jo,length:ha,lowercase:Ho,lt:ai,lte:on,maxLength:pa,maxSize:mr,mime:Xo,minLength:Ai,minSize:li,multipleOf:lr,negative:Ec,nonnegative:Uc,nonpositive:Oc,normalize:Vo,overwrite:Mn,positive:Tc,property:Dc,regex:Lo,size:ma,slugify:Fo,startsWith:Go,toLowerCase:Qo,toUpperCase:Ko,trim:Po,uppercase:Bo},Symbol.toStringTag,{value:"Module"})),jc=T("ZodISODateTime",(i,r)=>{Z$.init(i,r),Qe.init(i,r)});function fp(i){return Vk(jc,i)}const Nc=T("ZodISODate",(i,r)=>{q$.init(i,r),Qe.init(i,r)});function gz(i){return Pk(Nc,i)}const Ac=T("ZodISOTime",(i,r)=>{L$.init(i,r),Qe.init(i,r)});function vz(i){return Qk(Ac,i)}const Ic=T("ZodISODuration",(i,r)=>{H$.init(i,r),Qe.init(i,r)});function yz(i){return Kk(Ic,i)}const mp=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:Nc,ZodISODateTime:jc,ZodISODuration:Ic,ZodISOTime:Ac,date:gz,datetime:fp,duration:yz,time:vz},Symbol.toStringTag,{value:"Module"})),bz=(i,r)=>{pm.init(i,r),i.name="ZodError",Object.defineProperties(i,{format:{value:o=>$c(i,o)},flatten:{value:o=>Sc(i,o)},addIssue:{value:o=>{i.issues.push(o),i.message=JSON.stringify(i.issues,ac,2)}},addIssues:{value:o=>{i.issues.push(...o),i.message=JSON.stringify(i.issues,ac,2)}},isEmpty:{get(){return i.issues.length===0}}})},_z=T("ZodError",bz),Yt=T("ZodError",bz,{Parent:Error}),pp=No(Yt),hp=Ao(Yt),gp=Io(Yt),vp=Ro(Yt),yp=ym(Yt),bp=bm(Yt),_p=_m(Yt),Sp=Sm(Yt),$p=$m(Yt),kp=km(Yt),zp=zm(Yt),xp=xm(Yt),H_=new WeakMap;function el(i,r,o){const l=Object.getPrototypeOf(i);let n=H_.get(l);if(n||(n=new Set,H_.set(l,n)),!n.has(r)){n.add(r);for(const u in o){const s=o[u];Object.defineProperty(l,u,{configurable:!0,enumerable:!1,get(){const m=s.bind(this);return Object.defineProperty(this,u,{configurable:!0,writable:!0,enumerable:!0,value:m}),m},set(m){Object.defineProperty(this,u,{configurable:!0,writable:!0,enumerable:!0,value:m})}})}}}const ye=T("ZodType",(i,r)=>(he.init(i,r),Object.assign(i["~standard"],{jsonSchema:{input:Oo(i,"input"),output:Oo(i,"output")}}),i.toJSONSchema=U0(i,{}),i.def=r,i.type=r.type,Object.defineProperty(i,"_def",{value:r}),i.parse=(o,l)=>pp(i,o,l,{callee:i.parse}),i.safeParse=(o,l)=>gp(i,o,l),i.parseAsync=async(o,l)=>hp(i,o,l,{callee:i.parseAsync}),i.safeParseAsync=async(o,l)=>vp(i,o,l),i.spa=i.safeParseAsync,i.encode=(o,l)=>yp(i,o,l),i.decode=(o,l)=>bp(i,o,l),i.encodeAsync=async(o,l)=>_p(i,o,l),i.decodeAsync=async(o,l)=>Sp(i,o,l),i.safeEncode=(o,l)=>$p(i,o,l),i.safeDecode=(o,l)=>kp(i,o,l),i.safeEncodeAsync=async(o,l)=>zp(i,o,l),i.safeDecodeAsync=async(o,l)=>xp(i,o,l),el(i,"ZodType",{check(...o){const l=this.def;return this.clone(Cn(l,{checks:[...l.checks??[],...o.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...o){return this.check(...o)},clone(o,l){return un(this,o,l)},brand(){return this},register(o,l){return o.add(this,l),this},refine(o,l){return this.check(Ss(o,l))},superRefine(o,l){return this.check($s(o,l))},overwrite(o){return this.check(Mn(o))},optional(){return Fe(this)},exactOptional(){return ns(this)},nullable(){return ca(this)},nullish(){return Fe(ca(this))},nonoptional(o){return us(this,o)},array(){return ce(this)},or(o){return ze([this,o])},and(o){return ka(this,o)},transform(o){return sa(this,$l(o))},default(o){return as(this,o)},prefault(o){return ls(this,o)},catch(o){return ds(this,o)},pipe(o){return sa(this,o)},readonly(){return ps(this)},describe(o){const l=this.clone();return an.add(l,{description:o}),l},meta(...o){if(o.length===0)return an.get(this);const l=this.clone();return an.add(l,o[0]),l},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(o){return o(this)}}),Object.defineProperty(i,"description",{get(){var o;return(o=an.get(i))==null?void 0:o.description},configurable:!0}),i)),tl=T("_ZodString",(i,r)=>{qo.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(l,n,u)=>D0(i,l,n);const o=i._zod.bag;i.format=o.format??null,i.minLength=o.minimum??null,i.maxLength=o.maximum??null,el(i,"_ZodString",{regex(...l){return this.check(Lo(...l))},includes(...l){return this.check(Jo(...l))},startsWith(...l){return this.check(Go(...l))},endsWith(...l){return this.check(Yo(...l))},min(...l){return this.check(Ai(...l))},max(...l){return this.check(pa(...l))},length(...l){return this.check(ha(...l))},nonempty(...l){return this.check(Ai(1,...l))},lowercase(l){return this.check(Ho(l))},uppercase(l){return this.check(Bo(l))},trim(){return this.check(Po())},normalize(...l){return this.check(Vo(...l))},toLowerCase(){return this.check(Qo())},toUpperCase(){return this.check(Ko())},slugify(){return this.check(Fo())}})}),ga=T("ZodString",(i,r)=>{qo.init(i,r),tl.init(i,r),i.email=o=>i.check(Lm(nl,o)),i.url=o=>i.check(wc(va,o)),i.jwt=o=>i.check(op(vl,o)),i.emoji=o=>i.check(Ym(il,o)),i.guid=o=>i.check(uc(la,o)),i.uuid=o=>i.check(Hm(Un,o)),i.uuidv4=o=>i.check(Bm(Un,o)),i.uuidv6=o=>i.check(Jm(Un,o)),i.uuidv7=o=>i.check(Gm(Un,o)),i.nanoid=o=>i.check(Xm(rl,o)),i.guid=o=>i.check(uc(la,o)),i.cuid=o=>i.check(Vm(al,o)),i.cuid2=o=>i.check(Pm(ol,o)),i.ulid=o=>i.check(Qm(ll,o)),i.base64=o=>i.check(ip(pl,o)),i.base64url=o=>i.check(rp(hl,o)),i.xid=o=>i.check(Km(ul,o)),i.ksuid=o=>i.check(Fm(cl,o)),i.ipv4=o=>i.check(Wm(sl,o)),i.ipv6=o=>i.check(ep(dl,o)),i.cidrv4=o=>i.check(tp(fl,o)),i.cidrv6=o=>i.check(np(ml,o)),i.e164=o=>i.check(ap(gl,o)),i.datetime=o=>i.check(fp(o)),i.date=o=>i.check(gz(o)),i.time=o=>i.check(vz(o)),i.duration=o=>i.check(yz(o))});function O(i){return Gk(ga,i)}const Qe=T("ZodStringFormat",(i,r)=>{We.init(i,r),tl.init(i,r)}),nl=T("ZodEmail",(i,r)=>{U$.init(i,r),Qe.init(i,r)});function wp(i){return Lm(nl,i)}const la=T("ZodGUID",(i,r)=>{E$.init(i,r),Qe.init(i,r)});function Tp(i){return uc(la,i)}const Un=T("ZodUUID",(i,r)=>{O$.init(i,r),Qe.init(i,r)});function Ep(i){return Hm(Un,i)}function Op(i){return Bm(Un,i)}function Up(i){return Jm(Un,i)}function Dp(i){return Gm(Un,i)}const va=T("ZodURL",(i,r)=>{D$.init(i,r),Qe.init(i,r)});function jp(i){return wc(va,i)}function Np(i){return wc(va,{protocol:Tm,hostname:GS,...L(i)})}const il=T("ZodEmoji",(i,r)=>{j$.init(i,r),Qe.init(i,r)});function Ap(i){return Ym(il,i)}const rl=T("ZodNanoID",(i,r)=>{N$.init(i,r),Qe.init(i,r)});function Ip(i){return Xm(rl,i)}const al=T("ZodCUID",(i,r)=>{A$.init(i,r),Qe.init(i,r)});function Rp(i){return Vm(al,i)}const ol=T("ZodCUID2",(i,r)=>{I$.init(i,r),Qe.init(i,r)});function Cp(i){return Pm(ol,i)}const ll=T("ZodULID",(i,r)=>{R$.init(i,r),Qe.init(i,r)});function Mp(i){return Qm(ll,i)}const ul=T("ZodXID",(i,r)=>{C$.init(i,r),Qe.init(i,r)});function Zp(i){return Km(ul,i)}const cl=T("ZodKSUID",(i,r)=>{M$.init(i,r),Qe.init(i,r)});function qp(i){return Fm(cl,i)}const sl=T("ZodIPv4",(i,r)=>{B$.init(i,r),Qe.init(i,r)});function Lp(i){return Wm(sl,i)}const Rc=T("ZodMAC",(i,r)=>{G$.init(i,r),Qe.init(i,r)});function Hp(i){return Xk(Rc,i)}const dl=T("ZodIPv6",(i,r)=>{J$.init(i,r),Qe.init(i,r)});function Bp(i){return ep(dl,i)}const fl=T("ZodCIDRv4",(i,r)=>{Y$.init(i,r),Qe.init(i,r)});function Jp(i){return tp(fl,i)}const ml=T("ZodCIDRv6",(i,r)=>{X$.init(i,r),Qe.init(i,r)});function Gp(i){return np(ml,i)}const pl=T("ZodBase64",(i,r)=>{V$.init(i,r),Qe.init(i,r)});function Yp(i){return ip(pl,i)}const hl=T("ZodBase64URL",(i,r)=>{Q$.init(i,r),Qe.init(i,r)});function Xp(i){return rp(hl,i)}const gl=T("ZodE164",(i,r)=>{K$.init(i,r),Qe.init(i,r)});function Vp(i){return ap(gl,i)}const vl=T("ZodJWT",(i,r)=>{W$.init(i,r),Qe.init(i,r)});function Pp(i){return op(vl,i)}const pr=T("ZodCustomStringFormat",(i,r)=>{ek.init(i,r),Qe.init(i,r)});function Qp(i,r,o={}){return Wo(pr,i,r,o)}function Kp(i){return Wo(pr,"hostname",JS,i)}function Fp(i){return Wo(pr,"hex",o$,i)}function Wp(i,r){const o=(r==null?void 0:r.enc)??"hex",l=`${i}_${o}`,n=kc[l];if(!n)throw new Error(`Unrecognized hash format: ${l}`);return Wo(pr,l,n,r)}const ya=T("ZodNumber",(i,r)=>{jm.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(l,n,u)=>j0(i,l,n),el(i,"ZodNumber",{gt(l,n){return this.check(oi(l,n))},gte(l,n){return this.check(Mt(l,n))},min(l,n){return this.check(Mt(l,n))},lt(l,n){return this.check(ai(l,n))},lte(l,n){return this.check(on(l,n))},max(l,n){return this.check(on(l,n))},int(l){return this.check(Uo(l))},safe(l){return this.check(Uo(l))},positive(l){return this.check(oi(0,l))},nonnegative(l){return this.check(Mt(0,l))},negative(l){return this.check(ai(0,l))},nonpositive(l){return this.check(on(0,l))},multipleOf(l,n){return this.check(lr(l,n))},step(l,n){return this.check(lr(l,n))},finite(){return this}});const o=i._zod.bag;i.minValue=Math.max(o.minimum??Number.NEGATIVE_INFINITY,o.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,i.maxValue=Math.min(o.maximum??Number.POSITIVE_INFINITY,o.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,i.isInt=(o.format??"").includes("int")||Number.isSafeInteger(o.multipleOf??.5),i.isFinite=!0,i.format=o.format??null});function ve(i){return Fk(ya,i)}const Ri=T("ZodNumberFormat",(i,r)=>{tk.init(i,r),ya.init(i,r)});function Uo(i){return e0(Ri,i)}function eh(i){return t0(Ri,i)}function th(i){return n0(Ri,i)}function nh(i){return i0(Ri,i)}function ih(i){return r0(Ri,i)}const ba=T("ZodBoolean",(i,r)=>{Nm.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>N0(i,o,l)});function Le(i){return a0(ba,i)}const _a=T("ZodBigInt",(i,r)=>{Am.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(l,n,u)=>A0(i,l),i.gte=(l,n)=>i.check(Mt(l,n)),i.min=(l,n)=>i.check(Mt(l,n)),i.gt=(l,n)=>i.check(oi(l,n)),i.gte=(l,n)=>i.check(Mt(l,n)),i.min=(l,n)=>i.check(Mt(l,n)),i.lt=(l,n)=>i.check(ai(l,n)),i.lte=(l,n)=>i.check(on(l,n)),i.max=(l,n)=>i.check(on(l,n)),i.positive=l=>i.check(oi(BigInt(0),l)),i.negative=l=>i.check(ai(BigInt(0),l)),i.nonpositive=l=>i.check(on(BigInt(0),l)),i.nonnegative=l=>i.check(Mt(BigInt(0),l)),i.multipleOf=(l,n)=>i.check(lr(l,n));const o=i._zod.bag;i.minValue=o.minimum??null,i.maxValue=o.maximum??null,i.format=o.format??null});function rh(i){return l0(_a,i)}const yl=T("ZodBigIntFormat",(i,r)=>{nk.init(i,r),_a.init(i,r)});function ah(i){return c0(yl,i)}function oh(i){return s0(yl,i)}const Cc=T("ZodSymbol",(i,r)=>{ik.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>I0(i,o)});function lh(i){return d0(Cc,i)}const Mc=T("ZodUndefined",(i,r)=>{rk.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>C0(i,o)});function ua(i){return f0(Mc,i)}const Zc=T("ZodNull",(i,r)=>{ak.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>R0(i,o,l)});function bl(i){return m0(Zc,i)}const qc=T("ZodAny",(i,r)=>{ok.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>q0()});function uh(){return p0(qc)}const Lc=T("ZodUnknown",(i,r)=>{lk.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>L0()});function Me(){return h0(Lc)}const Hc=T("ZodNever",(i,r)=>{uk.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>Z0(i,o,l)});function ur(i){return g0(Hc,i)}const Bc=T("ZodVoid",(i,r)=>{ck.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>M0(i,o)});function ch(i){return v0(Bc,i)}const _l=T("ZodDate",(i,r)=>{sk.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(l,n,u)=>H0(i,l),i.min=(l,n)=>i.check(Mt(l,n)),i.max=(l,n)=>i.check(on(l,n));const o=i._zod.bag;i.minDate=o.minimum?new Date(o.minimum):null,i.maxDate=o.maximum?new Date(o.maximum):null});function sh(i){return y0(_l,i)}const Jc=T("ZodArray",(i,r)=>{dk.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>ez(i,o,l,n),i.element=r.element,el(i,"ZodArray",{min(o,l){return this.check(Ai(o,l))},nonempty(o){return this.check(Ai(1,o))},max(o,l){return this.check(pa(o,l))},length(o,l){return this.check(ha(o,l))},unwrap(){return this.element}})});function ce(i,r){return S0(Jc,i,r)}function dh(i){const r=i._zod.def.shape;return Tt(Object.keys(r))}const Sa=T("ZodObject",(i,r)=>{hk.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>tz(i,o,l,n),ke(i,"shape",()=>r.shape),el(i,"ZodObject",{keyof(){return Tt(Object.keys(this._zod.def.shape))},catchall(o){return this.clone({...this._zod.def,catchall:o})},passthrough(){return this.clone({...this._zod.def,catchall:Me()})},loose(){return this.clone({...this._zod.def,catchall:Me()})},strict(){return this.clone({...this._zod.def,catchall:ur()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(o){return gS(this,o)},safeExtend(o){return vS(this,o)},merge(o){return yS(this,o)},pick(o){return pS(this,o)},omit(o){return hS(this,o)},partial(...o){return bS(kl,this,o[0])},required(...o){return _S(zl,this,o[0])}})});function N(i,r){const o={type:"object",shape:i??{},...L(r)};return new Sa(o)}function fh(i,r){return new Sa({type:"object",shape:i,catchall:ur(),...L(r)})}function wt(i,r){return new Sa({type:"object",shape:i,catchall:Me(),...L(r)})}const $a=T("ZodUnion",(i,r)=>{zc.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>up(i,o,l,n),i.options=r.options});function ze(i,r){return new $a({type:"union",options:i,...L(r)})}const Gc=T("ZodXor",(i,r)=>{$a.init(i,r),gk.init(i,r),i._zod.processJSONSchema=(o,l,n)=>up(i,o,l,n),i.options=r.options});function mh(i,r){return new Gc({type:"union",options:i,inclusive:!1,...L(r)})}const Yc=T("ZodDiscriminatedUnion",(i,r)=>{$a.init(i,r),vk.init(i,r)});function Sl(i,r,o){return new Yc({type:"union",options:r,discriminator:i,...L(o)})}const Xc=T("ZodIntersection",(i,r)=>{yk.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>nz(i,o,l,n)});function ka(i,r){return new Xc({type:"intersection",left:i,right:r})}const Vc=T("ZodTuple",(i,r)=>{Im.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>iz(i,o,l,n),i.rest=o=>i.clone({...i._zod.def,rest:o})});function Pc(i,r,o){const l=r instanceof he,n=l?o:r,u=l?r:null;return new Vc({type:"tuple",items:i,rest:u,...L(n)})}const cr=T("ZodRecord",(i,r)=>{bk.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>rz(i,o,l,n),i.keyType=r.keyType,i.valueType=r.valueType});function je(i,r,o){return!r||!r._zod?new cr({type:"record",keyType:O(),valueType:i,...L(r)}):new cr({type:"record",keyType:i,valueType:r,...L(o)})}function ph(i,r,o){const l=un(i);return l._zod.values=void 0,new cr({type:"record",keyType:l,valueType:r,...L(o)})}function hh(i,r,o){return new cr({type:"record",keyType:i,valueType:r,mode:"loose",...L(o)})}const Qc=T("ZodMap",(i,r)=>{_k.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>F0(i,o),i.keyType=r.keyType,i.valueType=r.valueType,i.min=(...o)=>i.check(li(...o)),i.nonempty=o=>i.check(li(1,o)),i.max=(...o)=>i.check(mr(...o)),i.size=(...o)=>i.check(ma(...o))});function gh(i,r,o){return new Qc({type:"map",keyType:i,valueType:r,...L(o)})}const Kc=T("ZodSet",(i,r)=>{Sk.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>W0(i,o),i.min=(...o)=>i.check(li(...o)),i.nonempty=o=>i.check(li(1,o)),i.max=(...o)=>i.check(mr(...o)),i.size=(...o)=>i.check(ma(...o))});function vh(i,r){return new Kc({type:"set",valueType:i,...L(r)})}const sr=T("ZodEnum",(i,r)=>{$k.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(l,n,u)=>B0(i,l,n),i.enum=r.entries,i.options=Object.values(r.entries);const o=new Set(Object.keys(r.entries));i.extract=(l,n)=>{const u={};for(const s of l)if(o.has(s))u[s]=r.entries[s];else throw new Error(`Key ${s} not found in enum`);return new sr({...r,checks:[],...L(n),entries:u})},i.exclude=(l,n)=>{const u={...r.entries};for(const s of l)if(o.has(s))delete u[s];else throw new Error(`Key ${s} not found in enum`);return new sr({...r,checks:[],...L(n),entries:u})}});function Tt(i,r){const o=Array.isArray(i)?Object.fromEntries(i.map(l=>[l,l])):i;return new sr({type:"enum",entries:o,...L(r)})}function yh(i,r){return new sr({type:"enum",entries:i,...L(r)})}const Fc=T("ZodLiteral",(i,r)=>{kk.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>J0(i,o,l),i.values=new Set(r.values),Object.defineProperty(i,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function E(i,r){return new Fc({type:"literal",values:Array.isArray(i)?i:[i],...L(r)})}const Wc=T("ZodFile",(i,r)=>{zk.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>X0(i,o,l),i.min=(o,l)=>i.check(li(o,l)),i.max=(o,l)=>i.check(mr(o,l)),i.mime=(o,l)=>i.check(Xo(Array.isArray(o)?o:[o],l))});function bh(i){return $0(Wc,i)}const es=T("ZodTransform",(i,r)=>{xk.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>K0(i,o),i._zod.parse=(o,l)=>{if(l.direction==="backward")throw new gc(i.constructor.name);o.addIssue=u=>{if(typeof u=="string")o.issues.push(na(u,o.value,r));else{const s=u;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=o.value),s.inst??(s.inst=i),o.issues.push(na(s))}};const n=r.transform(o.value,o);return n instanceof Promise?n.then(u=>(o.value=u,o)):(o.value=n,o)}});function $l(i){return new es({type:"transform",transform:i})}const kl=T("ZodOptional",(i,r)=>{Rm.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>cp(i,o,l,n),i.unwrap=()=>i._zod.def.innerType});function Fe(i){return new kl({type:"optional",innerType:i})}const ts=T("ZodExactOptional",(i,r)=>{wk.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>cp(i,o,l,n),i.unwrap=()=>i._zod.def.innerType});function ns(i){return new ts({type:"optional",innerType:i})}const is=T("ZodNullable",(i,r)=>{Tk.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>az(i,o,l,n),i.unwrap=()=>i._zod.def.innerType});function ca(i){return new is({type:"nullable",innerType:i})}function _h(i){return Fe(ca(i))}const rs=T("ZodDefault",(i,r)=>{Ek.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>lz(i,o,l,n),i.unwrap=()=>i._zod.def.innerType,i.removeDefault=i.unwrap});function as(i,r){return new rs({type:"default",innerType:i,get defaultValue(){return typeof r=="function"?r():yc(r)}})}const os=T("ZodPrefault",(i,r)=>{Ok.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>uz(i,o,l,n),i.unwrap=()=>i._zod.def.innerType});function ls(i,r){return new os({type:"prefault",innerType:i,get defaultValue(){return typeof r=="function"?r():yc(r)}})}const zl=T("ZodNonOptional",(i,r)=>{Uk.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>oz(i,o,l,n),i.unwrap=()=>i._zod.def.innerType});function us(i,r){return new zl({type:"nonoptional",innerType:i,...L(r)})}const cs=T("ZodSuccess",(i,r)=>{Dk.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>V0(i,o,l),i.unwrap=()=>i._zod.def.innerType});function Sh(i){return new cs({type:"success",innerType:i})}const ss=T("ZodCatch",(i,r)=>{jk.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>cz(i,o,l,n),i.unwrap=()=>i._zod.def.innerType,i.removeCatch=i.unwrap});function ds(i,r){return new ss({type:"catch",innerType:i,catchValue:typeof r=="function"?r:()=>r})}const fs=T("ZodNaN",(i,r)=>{Nk.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>G0(i,o)});function $h(i){return _0(fs,i)}const xl=T("ZodPipe",(i,r)=>{Ak.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>sz(i,o,l,n),i.in=r.in,i.out=r.out});function sa(i,r){return new xl({type:"pipe",in:i,out:r})}const za=T("ZodCodec",(i,r)=>{xl.init(i,r),Cm.init(i,r)});function kh(i,r,o){return new za({type:"pipe",in:i,out:r,transform:o.decode,reverseTransform:o.encode})}function zh(i){const r=i._zod.def;return new za({type:"pipe",in:r.out,out:r.in,transform:r.reverseTransform,reverseTransform:r.transform})}const ms=T("ZodReadonly",(i,r)=>{Ik.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>dz(i,o,l,n),i.unwrap=()=>i._zod.def.innerType});function ps(i){return new ms({type:"readonly",innerType:i})}const hs=T("ZodTemplateLiteral",(i,r)=>{Rk.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>Y0(i,o,l)});function xh(i,r){return new hs({type:"template_literal",parts:i,...L(r)})}const gs=T("ZodLazy",(i,r)=>{Zk.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>mz(i,o,l,n),i.unwrap=()=>i._zod.def.getter()});function vs(i){return new gs({type:"lazy",getter:i})}const ys=T("ZodPromise",(i,r)=>{Mk.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>fz(i,o,l,n),i.unwrap=()=>i._zod.def.innerType});function wh(i){return new ys({type:"promise",innerType:i})}const bs=T("ZodFunction",(i,r)=>{Ck.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>Q0(i,o)});function da(i){return new bs({type:"function",input:Array.isArray(i==null?void 0:i.input)?Pc(i==null?void 0:i.input):(i==null?void 0:i.input)??ce(Me()),output:(i==null?void 0:i.output)??Me()})}const xa=T("ZodCustom",(i,r)=>{qk.init(i,r),ye.init(i,r),i._zod.processJSONSchema=(o,l,n)=>P0(i,o)});function Th(i){const r=new it({check:"custom"});return r._zod.check=i,r}function _s(i,r){return k0(xa,i??(()=>!0),r)}function Ss(i,r={}){return z0(xa,i,r)}function $s(i,r){return x0(i,r)}const Eh=T0,Oh=E0;function Uh(i,r={}){const o=new xa({type:"custom",check:"custom",fn:l=>l instanceof i,abort:!0,...L(r)});return o._zod.bag.Class=i,o._zod.check=l=>{l.value instanceof i||l.issues.push({code:"invalid_type",expected:i.name,input:l.value,inst:o,path:[...o._zod.def.path??[]]})},o}const Dh=(...i)=>O0({Codec:za,Boolean:ba,String:ga},...i);function jh(i){const r=vs(()=>ze([O(i),ve(),Le(),bl(),ce(r),je(O(),r)]));return r}function wl(i,r){return sa($l(i),r)}const iE=Object.freeze(Object.defineProperty({__proto__:null,ZodAny:qc,ZodArray:Jc,ZodBase64:pl,ZodBase64URL:hl,ZodBigInt:_a,ZodBigIntFormat:yl,ZodBoolean:ba,ZodCIDRv4:fl,ZodCIDRv6:ml,ZodCUID:al,ZodCUID2:ol,ZodCatch:ss,ZodCodec:za,ZodCustom:xa,ZodCustomStringFormat:pr,ZodDate:_l,ZodDefault:rs,ZodDiscriminatedUnion:Yc,ZodE164:gl,ZodEmail:nl,ZodEmoji:il,ZodEnum:sr,ZodExactOptional:ts,ZodFile:Wc,ZodFunction:bs,ZodGUID:la,ZodIPv4:sl,ZodIPv6:dl,ZodIntersection:Xc,ZodJWT:vl,ZodKSUID:cl,ZodLazy:gs,ZodLiteral:Fc,ZodMAC:Rc,ZodMap:Qc,ZodNaN:fs,ZodNanoID:rl,ZodNever:Hc,ZodNonOptional:zl,ZodNull:Zc,ZodNullable:is,ZodNumber:ya,ZodNumberFormat:Ri,ZodObject:Sa,ZodOptional:kl,ZodPipe:xl,ZodPrefault:os,ZodPromise:ys,ZodReadonly:ms,ZodRecord:cr,ZodSet:Kc,ZodString:ga,ZodStringFormat:Qe,ZodSuccess:cs,ZodSymbol:Cc,ZodTemplateLiteral:hs,ZodTransform:es,ZodTuple:Vc,ZodType:ye,ZodULID:ll,ZodURL:va,ZodUUID:Un,ZodUndefined:Mc,ZodUnion:$a,ZodUnknown:Lc,ZodVoid:Bc,ZodXID:ul,ZodXor:Gc,_ZodString:tl,_default:as,_function:da,any:uh,array:ce,base64:Yp,base64url:Xp,bigint:rh,boolean:Le,catch:ds,check:Th,cidrv4:Jp,cidrv6:Gp,codec:kh,cuid:Rp,cuid2:Cp,custom:_s,date:sh,describe:Eh,discriminatedUnion:Sl,e164:Vp,email:wp,emoji:Ap,enum:Tt,exactOptional:ns,file:bh,float32:eh,float64:th,function:da,guid:Tp,hash:Wp,hex:Fp,hostname:Kp,httpUrl:Np,instanceof:Uh,int:Uo,int32:nh,int64:ah,intersection:ka,invertCodec:zh,ipv4:Lp,ipv6:Bp,json:jh,jwt:Pp,keyof:dh,ksuid:qp,lazy:vs,literal:E,looseObject:wt,looseRecord:hh,mac:Hp,map:gh,meta:Oh,nan:$h,nanoid:Ip,nativeEnum:yh,never:ur,nonoptional:us,null:bl,nullable:ca,nullish:_h,number:ve,object:N,optional:Fe,partialRecord:ph,pipe:sa,prefault:ls,preprocess:wl,promise:wh,readonly:ps,record:je,refine:Ss,set:vh,strictObject:fh,string:O,stringFormat:Qp,stringbool:Dh,success:Sh,superRefine:$s,symbol:lh,templateLiteral:xh,transform:$l,tuple:Pc,uint32:ih,uint64:oh,ulid:Mp,undefined:ua,union:ze,unknown:Me,url:jp,uuid:Ep,uuidv4:Op,uuidv6:Up,uuidv7:Dp,void:ch,xid:Zp,xor:mh},Symbol.toStringTag,{value:"Module"})),Sz={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 $z(i){vt({customError:i})}function kz(){return vt().customError}var cc;cc||(cc={});const V={...iE,...nE,iso:mp},rE=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 aE(i,r){const o=i.$schema;return o==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":o==="http://json-schema.org/draft-07/schema#"?"draft-7":o==="http://json-schema.org/draft-04/schema#"?"draft-4":r??"draft-2020-12"}function oE(i,r){if(!i.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");const o=i.slice(1).split("/").filter(Boolean);if(o.length===0)return r.rootSchema;const l=r.version==="draft-2020-12"?"$defs":"definitions";if(o[0]===l){const n=o[1];if(!n||!r.defs[n])throw new Error(`Reference not found: ${i}`);return r.defs[n]}throw new Error(`Reference not found: ${i}`)}function zz(i,r){if(i.not!==void 0){if(typeof i.not=="object"&&Object.keys(i.not).length===0)return V.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(i.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(i.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(i.if!==void 0||i.then!==void 0||i.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(i.dependentSchemas!==void 0||i.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(i.$ref){const n=i.$ref;if(r.refs.has(n))return r.refs.get(n);if(r.processing.has(n))return V.lazy(()=>{if(!r.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return r.refs.get(n)});r.processing.add(n);const u=oE(n,r),s=At(u,r);return r.refs.set(n,s),r.processing.delete(n),s}if(i.enum!==void 0){const n=i.enum;if(r.version==="openapi-3.0"&&i.nullable===!0&&n.length===1&&n[0]===null)return V.null();if(n.length===0)return V.never();if(n.length===1)return V.literal(n[0]);if(n.every(s=>typeof s=="string"))return V.enum(n);const u=n.map(s=>V.literal(s));return u.length<2?u[0]:V.union([u[0],u[1],...u.slice(2)])}if(i.const!==void 0)return V.literal(i.const);const o=i.type;if(Array.isArray(o)){const n=o.map(u=>{const s={...i,type:u};return zz(s,r)});return n.length===0?V.never():n.length===1?n[0]:V.union(n)}if(!o)return V.any();let l;switch(o){case"string":{let n=V.string();if(i.format){const u=i.format;u==="email"?n=n.check(V.email()):u==="uri"||u==="uri-reference"?n=n.check(V.url()):u==="uuid"||u==="guid"?n=n.check(V.uuid()):u==="date-time"?n=n.check(V.iso.datetime()):u==="date"?n=n.check(V.iso.date()):u==="time"?n=n.check(V.iso.time()):u==="duration"?n=n.check(V.iso.duration()):u==="ipv4"?n=n.check(V.ipv4()):u==="ipv6"?n=n.check(V.ipv6()):u==="mac"?n=n.check(V.mac()):u==="cidr"?n=n.check(V.cidrv4()):u==="cidr-v6"?n=n.check(V.cidrv6()):u==="base64"?n=n.check(V.base64()):u==="base64url"?n=n.check(V.base64url()):u==="e164"?n=n.check(V.e164()):u==="jwt"?n=n.check(V.jwt()):u==="emoji"?n=n.check(V.emoji()):u==="nanoid"?n=n.check(V.nanoid()):u==="cuid"?n=n.check(V.cuid()):u==="cuid2"?n=n.check(V.cuid2()):u==="ulid"?n=n.check(V.ulid()):u==="xid"?n=n.check(V.xid()):u==="ksuid"&&(n=n.check(V.ksuid()))}typeof i.minLength=="number"&&(n=n.min(i.minLength)),typeof i.maxLength=="number"&&(n=n.max(i.maxLength)),i.pattern&&(n=n.regex(new RegExp(i.pattern))),l=n;break}case"number":case"integer":{let n=o==="integer"?V.number().int():V.number();typeof i.minimum=="number"&&(n=n.min(i.minimum)),typeof i.maximum=="number"&&(n=n.max(i.maximum)),typeof i.exclusiveMinimum=="number"?n=n.gt(i.exclusiveMinimum):i.exclusiveMinimum===!0&&typeof i.minimum=="number"&&(n=n.gt(i.minimum)),typeof i.exclusiveMaximum=="number"?n=n.lt(i.exclusiveMaximum):i.exclusiveMaximum===!0&&typeof i.maximum=="number"&&(n=n.lt(i.maximum)),typeof i.multipleOf=="number"&&(n=n.multipleOf(i.multipleOf)),l=n;break}case"boolean":{l=V.boolean();break}case"null":{l=V.null();break}case"object":{const n={},u=i.properties||{},s=new Set(i.required||[]);for(const[p,g]of Object.entries(u)){const v=At(g,r);n[p]=s.has(p)?v:v.optional()}if(i.propertyNames){const p=At(i.propertyNames,r),g=i.additionalProperties&&typeof i.additionalProperties=="object"?At(i.additionalProperties,r):V.any();if(Object.keys(n).length===0){l=V.record(p,g);break}const v=V.object(n).passthrough(),b=V.looseRecord(p,g);l=V.intersection(v,b);break}if(i.patternProperties){const p=i.patternProperties,g=Object.keys(p),v=[];for(const _ of g){const z=At(p[_],r),x=V.string().regex(new RegExp(_));v.push(V.looseRecord(x,z))}const b=[];if(Object.keys(n).length>0&&b.push(V.object(n).passthrough()),b.push(...v),b.length===0)l=V.object({}).passthrough();else if(b.length===1)l=b[0];else{let _=V.intersection(b[0],b[1]);for(let z=2;z<b.length;z++)_=V.intersection(_,b[z]);l=_}break}const m=V.object(n);i.additionalProperties===!1?l=m.strict():typeof i.additionalProperties=="object"?l=m.catchall(At(i.additionalProperties,r)):l=m.passthrough();break}case"array":{const n=i.prefixItems,u=i.items;if(n&&Array.isArray(n)){const s=n.map(p=>At(p,r)),m=u&&typeof u=="object"&&!Array.isArray(u)?At(u,r):void 0;m?l=V.tuple(s).rest(m):l=V.tuple(s),typeof i.minItems=="number"&&(l=l.check(V.minLength(i.minItems))),typeof i.maxItems=="number"&&(l=l.check(V.maxLength(i.maxItems)))}else if(Array.isArray(u)){const s=u.map(p=>At(p,r)),m=i.additionalItems&&typeof i.additionalItems=="object"?At(i.additionalItems,r):void 0;m?l=V.tuple(s).rest(m):l=V.tuple(s),typeof i.minItems=="number"&&(l=l.check(V.minLength(i.minItems))),typeof i.maxItems=="number"&&(l=l.check(V.maxLength(i.maxItems)))}else if(u!==void 0){const s=At(u,r);let m=V.array(s);typeof i.minItems=="number"&&(m=m.min(i.minItems)),typeof i.maxItems=="number"&&(m=m.max(i.maxItems)),l=m}else l=V.array(V.any());break}default:throw new Error(`Unsupported type: ${o}`)}return l}function At(i,r){if(typeof i=="boolean")return i?V.any():V.never();let o=zz(i,r);const l=i.type||i.enum!==void 0||i.const!==void 0;if(i.anyOf&&Array.isArray(i.anyOf)){const m=i.anyOf.map(g=>At(g,r)),p=V.union(m);o=l?V.intersection(o,p):p}if(i.oneOf&&Array.isArray(i.oneOf)){const m=i.oneOf.map(g=>At(g,r)),p=V.xor(m);o=l?V.intersection(o,p):p}if(i.allOf&&Array.isArray(i.allOf))if(i.allOf.length===0)o=l?o:V.any();else{let m=l?o:At(i.allOf[0],r);const p=l?0:1;for(let g=p;g<i.allOf.length;g++)m=V.intersection(m,At(i.allOf[g],r));o=m}i.nullable===!0&&r.version==="openapi-3.0"&&(o=V.nullable(o)),i.readOnly===!0&&(o=V.readonly(o)),i.default!==void 0&&(o=o.default(i.default));const n={},u=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(const m of u)m in i&&(n[m]=i[m]);const s=["contentEncoding","contentMediaType","contentSchema"];for(const m of s)m in i&&(n[m]=i[m]);for(const m of Object.keys(i))rE.has(m)||(n[m]=i[m]);return Object.keys(n).length>0&&r.registry.add(o,n),i.description&&(o=o.describe(i.description)),o}function xz(i,r){if(typeof i=="boolean")return i?V.any():V.never();let o;try{o=JSON.parse(JSON.stringify(i))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}const l=aE(o,r==null?void 0:r.defaultTarget),n=o.$defs||o.definitions||{},u={version:l,defs:n,refs:new Map,processing:new Set,rootSchema:o,registry:(r==null?void 0:r.registry)??an};return At(o,u)}function lE(i){return Yk(ga,i)}function uE(i){return Wk(ya,i)}function cE(i){return o0(ba,i)}function sE(i){return u0(_a,i)}function dE(i){return b0(_l,i)}const wz=Object.freeze(Object.defineProperty({__proto__:null,bigint:sE,boolean:cE,date:dE,number:uE,string:lE},Symbol.toStringTag,{value:"Module"}));vt(Lk());const B_=Object.freeze(Object.defineProperty({__proto__:null,$brand:sm,$input:qm,$output:Zm,NEVER:cm,TimePrecision:lp,ZodAny:qc,ZodArray:Jc,ZodBase64:pl,ZodBase64URL:hl,ZodBigInt:_a,ZodBigIntFormat:yl,ZodBoolean:ba,ZodCIDRv4:fl,ZodCIDRv6:ml,ZodCUID:al,ZodCUID2:ol,ZodCatch:ss,ZodCodec:za,ZodCustom:xa,ZodCustomStringFormat:pr,ZodDate:_l,ZodDefault:rs,ZodDiscriminatedUnion:Yc,ZodE164:gl,ZodEmail:nl,ZodEmoji:il,ZodEnum:sr,ZodError:_z,ZodExactOptional:ts,ZodFile:Wc,get ZodFirstPartyTypeKind(){return cc},ZodFunction:bs,ZodGUID:la,ZodIPv4:sl,ZodIPv6:dl,ZodISODate:Nc,ZodISODateTime:jc,ZodISODuration:Ic,ZodISOTime:Ac,ZodIntersection:Xc,ZodIssueCode:Sz,ZodJWT:vl,ZodKSUID:cl,ZodLazy:gs,ZodLiteral:Fc,ZodMAC:Rc,ZodMap:Qc,ZodNaN:fs,ZodNanoID:rl,ZodNever:Hc,ZodNonOptional:zl,ZodNull:Zc,ZodNullable:is,ZodNumber:ya,ZodNumberFormat:Ri,ZodObject:Sa,ZodOptional:kl,ZodPipe:xl,ZodPrefault:os,ZodPromise:ys,ZodReadonly:ms,ZodRealError:Yt,ZodRecord:cr,ZodSet:Kc,ZodString:ga,ZodStringFormat:Qe,ZodSuccess:cs,ZodSymbol:Cc,ZodTemplateLiteral:hs,ZodTransform:es,ZodTuple:Vc,ZodType:ye,ZodULID:ll,ZodURL:va,ZodUUID:Un,ZodUndefined:Mc,ZodUnion:$a,ZodUnknown:Lc,ZodVoid:Bc,ZodXID:ul,ZodXor:Gc,_ZodString:tl,_default:as,_function:da,any:uh,array:ce,base64:Yp,base64url:Xp,bigint:rh,boolean:Le,catch:ds,check:Th,cidrv4:Jp,cidrv6:Gp,clone:un,codec:kh,coerce:wz,config:vt,core:pz,cuid:Rp,cuid2:Cp,custom:_s,date:sh,decode:bp,decodeAsync:Sp,describe:Eh,discriminatedUnion:Sl,e164:Vp,email:wp,emoji:Ap,encode:yp,encodeAsync:_p,endsWith:Yo,enum:Tt,exactOptional:ns,file:bh,flattenError:Sc,float32:eh,float64:th,formatError:$c,fromJSONSchema:xz,function:da,getErrorMap:kz,globalRegistry:an,gt:oi,gte:Mt,guid:Tp,hash:Wp,hex:Fp,hostname:Kp,httpUrl:Np,includes:Jo,instanceof:Uh,int:Uo,int32:nh,int64:ah,intersection:ka,invertCodec:zh,ipv4:Lp,ipv6:Bp,iso:mp,json:jh,jwt:Pp,keyof:dh,ksuid:qp,lazy:vs,length:ha,literal:E,locales:Mm,looseObject:wt,looseRecord:hh,lowercase:Ho,lt:ai,lte:on,mac:Hp,map:gh,maxLength:pa,maxSize:mr,meta:Oh,mime:Xo,minLength:Ai,minSize:li,multipleOf:lr,nan:$h,nanoid:Ip,nativeEnum:yh,negative:Ec,never:ur,nonnegative:Uc,nonoptional:us,nonpositive:Oc,normalize:Vo,null:bl,nullable:ca,nullish:_h,number:ve,object:N,optional:Fe,overwrite:Mn,parse:pp,parseAsync:hp,partialRecord:ph,pipe:sa,positive:Tc,prefault:ls,preprocess:wl,prettifyError:gm,promise:wh,property:Dc,readonly:ps,record:je,refine:Ss,regex:Lo,regexes:kc,registry:xc,safeDecode:kp,safeDecodeAsync:xp,safeEncode:$p,safeEncodeAsync:zp,safeParse:gp,safeParseAsync:vp,set:vh,setErrorMap:$z,size:ma,slugify:Fo,startsWith:Go,strictObject:fh,string:O,stringFormat:Qp,stringbool:Dh,success:Sh,superRefine:$s,symbol:lh,templateLiteral:xh,toJSONSchema:sp,toLowerCase:Qo,toUpperCase:Ko,transform:$l,treeifyError:hm,trim:Po,tuple:Pc,uint32:ih,uint64:oh,ulid:Mp,undefined:ua,union:ze,unknown:Me,uppercase:Bo,url:jp,util:mm,uuid:Ep,uuidv4:Op,uuidv6:Up,uuidv7:Dp,void:ch,xid:Zp,xor:mh},Symbol.toStringTag,{value:"Module"})),fE=Object.freeze(Object.defineProperty({__proto__:null,$brand:sm,$input:qm,$output:Zm,NEVER:cm,TimePrecision:lp,ZodAny:qc,ZodArray:Jc,ZodBase64:pl,ZodBase64URL:hl,ZodBigInt:_a,ZodBigIntFormat:yl,ZodBoolean:ba,ZodCIDRv4:fl,ZodCIDRv6:ml,ZodCUID:al,ZodCUID2:ol,ZodCatch:ss,ZodCodec:za,ZodCustom:xa,ZodCustomStringFormat:pr,ZodDate:_l,ZodDefault:rs,ZodDiscriminatedUnion:Yc,ZodE164:gl,ZodEmail:nl,ZodEmoji:il,ZodEnum:sr,ZodError:_z,ZodExactOptional:ts,ZodFile:Wc,get ZodFirstPartyTypeKind(){return cc},ZodFunction:bs,ZodGUID:la,ZodIPv4:sl,ZodIPv6:dl,ZodISODate:Nc,ZodISODateTime:jc,ZodISODuration:Ic,ZodISOTime:Ac,ZodIntersection:Xc,ZodIssueCode:Sz,ZodJWT:vl,ZodKSUID:cl,ZodLazy:gs,ZodLiteral:Fc,ZodMAC:Rc,ZodMap:Qc,ZodNaN:fs,ZodNanoID:rl,ZodNever:Hc,ZodNonOptional:zl,ZodNull:Zc,ZodNullable:is,ZodNumber:ya,ZodNumberFormat:Ri,ZodObject:Sa,ZodOptional:kl,ZodPipe:xl,ZodPrefault:os,ZodPromise:ys,ZodReadonly:ms,ZodRealError:Yt,ZodRecord:cr,ZodSet:Kc,ZodString:ga,ZodStringFormat:Qe,ZodSuccess:cs,ZodSymbol:Cc,ZodTemplateLiteral:hs,ZodTransform:es,ZodTuple:Vc,ZodType:ye,ZodULID:ll,ZodURL:va,ZodUUID:Un,ZodUndefined:Mc,ZodUnion:$a,ZodUnknown:Lc,ZodVoid:Bc,ZodXID:ul,ZodXor:Gc,_ZodString:tl,_default:as,_function:da,any:uh,array:ce,base64:Yp,base64url:Xp,bigint:rh,boolean:Le,catch:ds,check:Th,cidrv4:Jp,cidrv6:Gp,clone:un,codec:kh,coerce:wz,config:vt,core:pz,cuid:Rp,cuid2:Cp,custom:_s,date:sh,decode:bp,decodeAsync:Sp,default:B_,describe:Eh,discriminatedUnion:Sl,e164:Vp,email:wp,emoji:Ap,encode:yp,encodeAsync:_p,endsWith:Yo,enum:Tt,exactOptional:ns,file:bh,flattenError:Sc,float32:eh,float64:th,formatError:$c,fromJSONSchema:xz,function:da,getErrorMap:kz,globalRegistry:an,gt:oi,gte:Mt,guid:Tp,hash:Wp,hex:Fp,hostname:Kp,httpUrl:Np,includes:Jo,instanceof:Uh,int:Uo,int32:nh,int64:ah,intersection:ka,invertCodec:zh,ipv4:Lp,ipv6:Bp,iso:mp,json:jh,jwt:Pp,keyof:dh,ksuid:qp,lazy:vs,length:ha,literal:E,locales:Mm,looseObject:wt,looseRecord:hh,lowercase:Ho,lt:ai,lte:on,mac:Hp,map:gh,maxLength:pa,maxSize:mr,meta:Oh,mime:Xo,minLength:Ai,minSize:li,multipleOf:lr,nan:$h,nanoid:Ip,nativeEnum:yh,negative:Ec,never:ur,nonnegative:Uc,nonoptional:us,nonpositive:Oc,normalize:Vo,null:bl,nullable:ca,nullish:_h,number:ve,object:N,optional:Fe,overwrite:Mn,parse:pp,parseAsync:hp,partialRecord:ph,pipe:sa,positive:Tc,prefault:ls,preprocess:wl,prettifyError:gm,promise:wh,property:Dc,readonly:ps,record:je,refine:Ss,regex:Lo,regexes:kc,registry:xc,safeDecode:kp,safeDecodeAsync:xp,safeEncode:$p,safeEncodeAsync:zp,safeParse:gp,safeParseAsync:vp,set:vh,setErrorMap:$z,size:ma,slugify:Fo,startsWith:Go,strictObject:fh,string:O,stringFormat:Qp,stringbool:Dh,success:Sh,superRefine:$s,symbol:lh,templateLiteral:xh,toJSONSchema:sp,toLowerCase:Qo,toUpperCase:Ko,transform:$l,treeifyError:hm,trim:Po,tuple:Pc,uint32:ih,uint64:oh,ulid:Mp,undefined:ua,union:ze,unknown:Me,uppercase:Bo,url:jp,util:mm,uuid:Ep,uuidv4:Op,uuidv6:Up,uuidv7:Dp,void:ch,xid:Zp,xor:mh,z:B_},Symbol.toStringTag,{value:"Module"})),nr="io.modelcontextprotocol/related-task",ks="2.0",gt=_s(i=>i!==null&&(typeof i=="object"||typeof i=="function")),Tz=ze([O(),ve().int()]),Ez=O();wt({ttl:ve().optional(),pollInterval:ve().optional()});const mE=N({ttl:ve().optional()}),pE=N({taskId:O()}),Nh=wt({progressToken:Tz.optional(),[nr]:pE.optional()}),sn=N({_meta:Nh.optional()}),Tl=sn.extend({task:mE.optional()}),hE=i=>Tl.safeParse(i).success,Et=N({method:O(),params:sn.loose().optional()}),$n=N({_meta:Nh.optional()}),kn=N({method:O(),params:$n.loose().optional()}),Ot=wt({_meta:Nh.optional()}),El=ze([O(),ve().int()]),Oz=N({jsonrpc:E(ks),id:El,...Et.shape}).strict(),J_=i=>Oz.safeParse(i).success,Uz=N({jsonrpc:E(ks),...kn.shape}).strict(),gE=i=>Uz.safeParse(i).success,Ah=N({jsonrpc:E(ks),id:El,result:Ot}).strict(),nc=i=>Ah.safeParse(i).success;var Ge;(function(i){i[i.ConnectionClosed=-32e3]="ConnectionClosed",i[i.RequestTimeout=-32001]="RequestTimeout",i[i.ParseError=-32700]="ParseError",i[i.InvalidRequest=-32600]="InvalidRequest",i[i.MethodNotFound=-32601]="MethodNotFound",i[i.InvalidParams=-32602]="InvalidParams",i[i.InternalError=-32603]="InternalError",i[i.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(Ge||(Ge={}));const Ih=N({jsonrpc:E(ks),id:El.optional(),error:N({code:ve().int(),message:O(),data:Me().optional()})}).strict(),vE=i=>Ih.safeParse(i).success,yE=ze([Oz,Uz,Ah,Ih]);ze([Ah,Ih]);const Rh=Ot.strict(),bE=$n.extend({requestId:El.optional(),reason:O().optional()}),Ch=kn.extend({method:E("notifications/cancelled"),params:bE}),_E=N({src:O(),mimeType:O().optional(),sizes:ce(O()).optional(),theme:Tt(["light","dark"]).optional()}),Ol=N({icons:ce(_E).optional()}),fa=N({name:O(),title:O().optional()}),zs=fa.extend({...fa.shape,...Ol.shape,version:O(),websiteUrl:O().optional(),description:O().optional()}),SE=ka(N({applyDefaults:Le().optional()}),je(O(),Me())),$E=wl(i=>i&&typeof i=="object"&&!Array.isArray(i)&&Object.keys(i).length===0?{form:{}}:i,ka(N({form:SE.optional(),url:gt.optional()}),je(O(),Me()).optional())),kE=wt({list:gt.optional(),cancel:gt.optional(),requests:wt({sampling:wt({createMessage:gt.optional()}).optional(),elicitation:wt({create:gt.optional()}).optional()}).optional()}),zE=wt({list:gt.optional(),cancel:gt.optional(),requests:wt({tools:wt({call:gt.optional()}).optional()}).optional()}),xE=N({experimental:je(O(),gt).optional(),sampling:N({context:gt.optional(),tools:gt.optional()}).optional(),elicitation:$E.optional(),roots:N({listChanged:Le().optional()}).optional(),tasks:kE.optional(),extensions:je(O(),gt).optional()}),wE=sn.extend({protocolVersion:O(),capabilities:xE,clientInfo:zs}),TE=Et.extend({method:E("initialize"),params:wE}),EE=N({experimental:je(O(),gt).optional(),logging:gt.optional(),completions:gt.optional(),prompts:N({listChanged:Le().optional()}).optional(),resources:N({subscribe:Le().optional(),listChanged:Le().optional()}).optional(),tools:N({listChanged:Le().optional()}).optional(),tasks:zE.optional(),extensions:je(O(),gt).optional()}),OE=Ot.extend({protocolVersion:O(),capabilities:EE,serverInfo:zs,instructions:O().optional()}),UE=kn.extend({method:E("notifications/initialized"),params:$n.optional()}),xs=Et.extend({method:E("ping"),params:sn.optional()}),DE=N({progress:ve(),total:Fe(ve()),message:Fe(O())}),jE=N({...$n.shape,...DE.shape,progressToken:Tz}),Mh=kn.extend({method:E("notifications/progress"),params:jE}),NE=sn.extend({cursor:Ez.optional()}),Ul=Et.extend({params:NE.optional()}),Dl=Ot.extend({nextCursor:Ez.optional()}),AE=Tt(["working","input_required","completed","failed","cancelled"]),jl=N({taskId:O(),status:AE,ttl:ze([ve(),bl()]),createdAt:O(),lastUpdatedAt:O(),pollInterval:Fe(ve()),statusMessage:Fe(O())}),Zh=Ot.extend({task:jl}),IE=$n.merge(jl),sc=kn.extend({method:E("notifications/tasks/status"),params:IE}),qh=Et.extend({method:E("tasks/get"),params:sn.extend({taskId:O()})}),Lh=Ot.merge(jl),Hh=Et.extend({method:E("tasks/result"),params:sn.extend({taskId:O()})});Ot.loose();const Bh=Ul.extend({method:E("tasks/list")}),Jh=Dl.extend({tasks:ce(jl)}),Gh=Et.extend({method:E("tasks/cancel"),params:sn.extend({taskId:O()})}),RE=Ot.merge(jl),Dz=N({uri:O(),mimeType:Fe(O()),_meta:je(O(),Me()).optional()}),jz=Dz.extend({text:O()}),Yh=O().refine(i=>{try{return atob(i),!0}catch{return!1}},{message:"Invalid Base64 string"}),Nz=Dz.extend({blob:Yh}),Nl=Tt(["user","assistant"]),wa=N({audience:ce(Nl).optional(),priority:ve().min(0).max(1).optional(),lastModified:fp({offset:!0}).optional()}),Az=N({...fa.shape,...Ol.shape,uri:O(),description:Fe(O()),mimeType:Fe(O()),size:Fe(ve()),annotations:wa.optional(),_meta:Fe(wt({}))}),CE=N({...fa.shape,...Ol.shape,uriTemplate:O(),description:Fe(O()),mimeType:Fe(O()),annotations:wa.optional(),_meta:Fe(wt({}))}),ME=Ul.extend({method:E("resources/list")}),Iz=Dl.extend({resources:ce(Az)}),ZE=Ul.extend({method:E("resources/templates/list")}),qE=Dl.extend({resourceTemplates:ce(CE)}),Xh=sn.extend({uri:O()}),LE=Xh,HE=Et.extend({method:E("resources/read"),params:LE}),Rz=Ot.extend({contents:ce(ze([jz,Nz]))}),BE=kn.extend({method:E("notifications/resources/list_changed"),params:$n.optional()}),JE=Xh,GE=Et.extend({method:E("resources/subscribe"),params:JE}),YE=Xh,XE=Et.extend({method:E("resources/unsubscribe"),params:YE}),VE=$n.extend({uri:O()}),PE=kn.extend({method:E("notifications/resources/updated"),params:VE}),QE=N({name:O(),description:Fe(O()),required:Fe(Le())}),KE=N({...fa.shape,...Ol.shape,description:Fe(O()),arguments:Fe(ce(QE)),_meta:Fe(wt({}))}),FE=Ul.extend({method:E("prompts/list")}),WE=Dl.extend({prompts:ce(KE)}),e2=sn.extend({name:O(),arguments:je(O(),O()).optional()}),t2=Et.extend({method:E("prompts/get"),params:e2}),Vh=N({type:E("text"),text:O(),annotations:wa.optional(),_meta:je(O(),Me()).optional()}),Ph=N({type:E("image"),data:Yh,mimeType:O(),annotations:wa.optional(),_meta:je(O(),Me()).optional()}),Qh=N({type:E("audio"),data:Yh,mimeType:O(),annotations:wa.optional(),_meta:je(O(),Me()).optional()}),n2=N({type:E("tool_use"),name:O(),id:O(),input:je(O(),Me()),_meta:je(O(),Me()).optional()}),Cz=N({type:E("resource"),resource:ze([jz,Nz]),annotations:wa.optional(),_meta:je(O(),Me()).optional()}),Mz=Az.extend({type:E("resource_link")}),Al=ze([Vh,Ph,Qh,Mz,Cz]),i2=N({role:Nl,content:Al}),r2=Ot.extend({description:O().optional(),messages:ce(i2)}),a2=kn.extend({method:E("notifications/prompts/list_changed"),params:$n.optional()}),o2=N({title:O().optional(),readOnlyHint:Le().optional(),destructiveHint:Le().optional(),idempotentHint:Le().optional(),openWorldHint:Le().optional()}),l2=N({taskSupport:Tt(["required","optional","forbidden"]).optional()}),Kh=N({...fa.shape,...Ol.shape,description:O().optional(),inputSchema:N({type:E("object"),properties:je(O(),gt).optional(),required:ce(O()).optional()}).catchall(Me()),outputSchema:N({type:E("object"),properties:je(O(),gt).optional(),required:ce(O()).optional()}).catchall(Me()).optional(),annotations:o2.optional(),execution:l2.optional(),_meta:je(O(),Me()).optional()}),Zz=Ul.extend({method:E("tools/list")}),u2=Dl.extend({tools:ce(Kh)}),ws=Ot.extend({content:ce(Al).default([]),structuredContent:je(O(),Me()).optional(),isError:Le().optional()});ws.or(Ot.extend({toolResult:Me()}));const c2=Tl.extend({name:O(),arguments:je(O(),Me()).optional()}),qz=Et.extend({method:E("tools/call"),params:c2}),s2=kn.extend({method:E("notifications/tools/list_changed"),params:$n.optional()});N({autoRefresh:Le().default(!0),debounceMs:ve().int().nonnegative().default(300)});const Lz=Tt(["debug","info","notice","warning","error","critical","alert","emergency"]),d2=sn.extend({level:Lz}),f2=Et.extend({method:E("logging/setLevel"),params:d2}),m2=$n.extend({level:Lz,logger:O().optional(),data:Me()}),p2=kn.extend({method:E("notifications/message"),params:m2}),h2=N({name:O().optional()}),g2=N({hints:ce(h2).optional(),costPriority:ve().min(0).max(1).optional(),speedPriority:ve().min(0).max(1).optional(),intelligencePriority:ve().min(0).max(1).optional()}),v2=N({mode:Tt(["auto","required","none"]).optional()}),y2=N({type:E("tool_result"),toolUseId:O().describe("The unique identifier for the corresponding tool call."),content:ce(Al).default([]),structuredContent:N({}).loose().optional(),isError:Le().optional(),_meta:je(O(),Me()).optional()}),b2=Sl("type",[Vh,Ph,Qh]),dc=Sl("type",[Vh,Ph,Qh,n2,y2]),_2=N({role:Nl,content:ze([dc,ce(dc)]),_meta:je(O(),Me()).optional()}),S2=Tl.extend({messages:ce(_2),modelPreferences:g2.optional(),systemPrompt:O().optional(),includeContext:Tt(["none","thisServer","allServers"]).optional(),temperature:ve().optional(),maxTokens:ve().int(),stopSequences:ce(O()).optional(),metadata:gt.optional(),tools:ce(Kh).optional(),toolChoice:v2.optional()}),$2=Et.extend({method:E("sampling/createMessage"),params:S2}),Hz=Ot.extend({model:O(),stopReason:Fe(Tt(["endTurn","stopSequence","maxTokens"]).or(O())),role:Nl,content:b2}),Bz=Ot.extend({model:O(),stopReason:Fe(Tt(["endTurn","stopSequence","maxTokens","toolUse"]).or(O())),role:Nl,content:ze([dc,ce(dc)])}),k2=N({type:E("boolean"),title:O().optional(),description:O().optional(),default:Le().optional()}),z2=N({type:E("string"),title:O().optional(),description:O().optional(),minLength:ve().optional(),maxLength:ve().optional(),format:Tt(["email","uri","date","date-time"]).optional(),default:O().optional()}),x2=N({type:Tt(["number","integer"]),title:O().optional(),description:O().optional(),minimum:ve().optional(),maximum:ve().optional(),default:ve().optional()}),w2=N({type:E("string"),title:O().optional(),description:O().optional(),enum:ce(O()),default:O().optional()}),T2=N({type:E("string"),title:O().optional(),description:O().optional(),oneOf:ce(N({const:O(),title:O()})),default:O().optional()}),E2=N({type:E("string"),title:O().optional(),description:O().optional(),enum:ce(O()),enumNames:ce(O()).optional(),default:O().optional()}),O2=ze([w2,T2]),U2=N({type:E("array"),title:O().optional(),description:O().optional(),minItems:ve().optional(),maxItems:ve().optional(),items:N({type:E("string"),enum:ce(O())}),default:ce(O()).optional()}),D2=N({type:E("array"),title:O().optional(),description:O().optional(),minItems:ve().optional(),maxItems:ve().optional(),items:N({anyOf:ce(N({const:O(),title:O()}))}),default:ce(O()).optional()}),j2=ze([U2,D2]),N2=ze([E2,O2,j2]),A2=ze([N2,k2,z2,x2]),I2=Tl.extend({mode:E("form").optional(),message:O(),requestedSchema:N({type:E("object"),properties:je(O(),A2),required:ce(O()).optional()})}),R2=Tl.extend({mode:E("url"),message:O(),elicitationId:O(),url:O().url()}),C2=ze([I2,R2]),M2=Et.extend({method:E("elicitation/create"),params:C2}),Z2=$n.extend({elicitationId:O()}),q2=kn.extend({method:E("notifications/elicitation/complete"),params:Z2}),L2=Ot.extend({action:Tt(["accept","decline","cancel"]),content:wl(i=>i===null?void 0:i,je(O(),ze([O(),ve(),Le(),ce(O())])).optional())}),H2=N({type:E("ref/resource"),uri:O()}),B2=N({type:E("ref/prompt"),name:O()}),J2=sn.extend({ref:ze([B2,H2]),argument:N({name:O(),value:O()}),context:N({arguments:je(O(),O()).optional()}).optional()}),G2=Et.extend({method:E("completion/complete"),params:J2}),Y2=Ot.extend({completion:wt({values:ce(O()).max(100),total:Fe(ve().int()),hasMore:Fe(Le())})}),X2=N({uri:O().startsWith("file://"),name:O().optional(),_meta:je(O(),Me()).optional()}),V2=Et.extend({method:E("roots/list"),params:sn.optional()}),P2=Ot.extend({roots:ce(X2)}),Q2=kn.extend({method:E("notifications/roots/list_changed"),params:$n.optional()});ze([xs,TE,G2,f2,t2,FE,ME,ZE,HE,GE,XE,qz,Zz,qh,Hh,Bh,Gh]);ze([Ch,Mh,UE,Q2,sc]);ze([Rh,Hz,Bz,L2,P2,Lh,Jh,Zh]);ze([xs,$2,M2,V2,qh,Hh,Bh,Gh]);ze([Ch,Mh,p2,PE,BE,s2,a2,sc,q2]);ze([Rh,OE,Y2,r2,WE,Iz,qE,Rz,ws,u2,Lh,Jh,Zh]);class Ie extends Error{constructor(r,o,l){super(`MCP error ${r}: ${o}`),this.code=r,this.data=l,this.name="McpError"}static fromError(r,o,l){if(r===Ge.UrlElicitationRequired&&l){const n=l;if(n.elicitations)return new K2(n.elicitations,o)}return new Ie(r,o,l)}}class K2 extends Ie{constructor(r,o=`URL elicitation${r.length>1?"s":""} required`){super(Ge.UrlElicitationRequired,o,{elicitations:r})}get elicitations(){var r;return((r=this.data)==null?void 0:r.elicitations)??[]}}function tr(i){return i==="completed"||i==="failed"||i==="cancelled"}new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function G_(i){const r=eE(i),o=r==null?void 0:r.method;if(!o)throw new Error("Schema is missing a method literal");const l=tE(o);if(typeof l!="string")throw new Error("Schema method literal must be a string");return l}function Y_(i,r){const o=hz(i,r);if(!o.success)throw o.error;return o.data}const F2=6e4;class W2{constructor(r){this._options=r,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(Ch,o=>{this._oncancel(o)}),this.setNotificationHandler(Mh,o=>{this._onprogress(o)}),this.setRequestHandler(xs,o=>({})),this._taskStore=r==null?void 0:r.taskStore,this._taskMessageQueue=r==null?void 0:r.taskMessageQueue,this._taskStore&&(this.setRequestHandler(qh,async(o,l)=>{const n=await this._taskStore.getTask(o.params.taskId,l.sessionId);if(!n)throw new Ie(Ge.InvalidParams,"Failed to retrieve task: Task not found");return{...n}}),this.setRequestHandler(Hh,async(o,l)=>{const n=async()=>{var m;const u=o.params.taskId;if(this._taskMessageQueue){let p;for(;p=await this._taskMessageQueue.dequeue(u,l.sessionId);){if(p.type==="response"||p.type==="error"){const g=p.message,v=g.id,b=this._requestResolvers.get(v);if(b)if(this._requestResolvers.delete(v),p.type==="response")b(g);else{const _=g,z=new Ie(_.error.code,_.error.message,_.error.data);b(z)}else{const _=p.type==="response"?"Response":"Error";this._onerror(new Error(`${_} handler missing for request ${v}`))}continue}await((m=this._transport)==null?void 0:m.send(p.message,{relatedRequestId:l.requestId}))}}const s=await this._taskStore.getTask(u,l.sessionId);if(!s)throw new Ie(Ge.InvalidParams,`Task not found: ${u}`);if(!tr(s.status))return await this._waitForTaskUpdate(u,l.signal),await n();if(tr(s.status)){const p=await this._taskStore.getTaskResult(u,l.sessionId);return this._clearTaskQueue(u),{...p,_meta:{...p._meta,[nr]:{taskId:u}}}}return await n()};return await n()}),this.setRequestHandler(Bh,async(o,l)=>{var n;try{const{tasks:u,nextCursor:s}=await this._taskStore.listTasks((n=o.params)==null?void 0:n.cursor,l.sessionId);return{tasks:u,nextCursor:s,_meta:{}}}catch(u){throw new Ie(Ge.InvalidParams,`Failed to list tasks: ${u instanceof Error?u.message:String(u)}`)}}),this.setRequestHandler(Gh,async(o,l)=>{try{const n=await this._taskStore.getTask(o.params.taskId,l.sessionId);if(!n)throw new Ie(Ge.InvalidParams,`Task not found: ${o.params.taskId}`);if(tr(n.status))throw new Ie(Ge.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(o.params.taskId,"cancelled","Client cancelled task execution.",l.sessionId),this._clearTaskQueue(o.params.taskId);const u=await this._taskStore.getTask(o.params.taskId,l.sessionId);if(!u)throw new Ie(Ge.InvalidParams,`Task not found after cancellation: ${o.params.taskId}`);return{_meta:{},...u}}catch(n){throw n instanceof Ie?n:new Ie(Ge.InvalidRequest,`Failed to cancel task: ${n instanceof Error?n.message:String(n)}`)}}))}async _oncancel(r){if(!r.params.requestId)return;const o=this._requestHandlerAbortControllers.get(r.params.requestId);o==null||o.abort(r.params.reason)}_setupTimeout(r,o,l,n,u=!1){this._timeoutInfo.set(r,{timeoutId:setTimeout(n,o),startTime:Date.now(),timeout:o,maxTotalTimeout:l,resetTimeoutOnProgress:u,onTimeout:n})}_resetTimeout(r){const o=this._timeoutInfo.get(r);if(!o)return!1;const l=Date.now()-o.startTime;if(o.maxTotalTimeout&&l>=o.maxTotalTimeout)throw this._timeoutInfo.delete(r),Ie.fromError(Ge.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:o.maxTotalTimeout,totalElapsed:l});return clearTimeout(o.timeoutId),o.timeoutId=setTimeout(o.onTimeout,o.timeout),!0}_cleanupTimeout(r){const o=this._timeoutInfo.get(r);o&&(clearTimeout(o.timeoutId),this._timeoutInfo.delete(r))}async connect(r){var u,s,m;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=r;const o=(u=this.transport)==null?void 0:u.onclose;this._transport.onclose=()=>{o==null||o(),this._onclose()};const l=(s=this.transport)==null?void 0:s.onerror;this._transport.onerror=p=>{l==null||l(p),this._onerror(p)};const n=(m=this._transport)==null?void 0:m.onmessage;this._transport.onmessage=(p,g)=>{n==null||n(p,g),nc(p)||vE(p)?this._onresponse(p):J_(p)?this._onrequest(p,g):gE(p)?this._onnotification(p):this._onerror(new Error(`Unknown message type: ${JSON.stringify(p)}`))},await this._transport.start()}_onclose(){var l;const r=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(const n of this._timeoutInfo.values())clearTimeout(n.timeoutId);this._timeoutInfo.clear();for(const n of this._requestHandlerAbortControllers.values())n.abort();this._requestHandlerAbortControllers.clear();const o=Ie.fromError(Ge.ConnectionClosed,"Connection closed");this._transport=void 0,(l=this.onclose)==null||l.call(this);for(const n of r.values())n(o)}_onerror(r){var o;(o=this.onerror)==null||o.call(this,r)}_onnotification(r){const o=this._notificationHandlers.get(r.method)??this.fallbackNotificationHandler;o!==void 0&&Promise.resolve().then(()=>o(r)).catch(l=>this._onerror(new Error(`Uncaught error in notification handler: ${l}`)))}_onrequest(r,o){var v,b,_,z;const l=this._requestHandlers.get(r.method)??this.fallbackRequestHandler,n=this._transport,u=(_=(b=(v=r.params)==null?void 0:v._meta)==null?void 0:b[nr])==null?void 0:_.taskId;if(l===void 0){const x={jsonrpc:"2.0",id:r.id,error:{code:Ge.MethodNotFound,message:"Method not found"}};u&&this._taskMessageQueue?this._enqueueTaskMessage(u,{type:"error",message:x,timestamp:Date.now()},n==null?void 0:n.sessionId).catch(H=>this._onerror(new Error(`Failed to enqueue error response: ${H}`))):n==null||n.send(x).catch(H=>this._onerror(new Error(`Failed to send an error response: ${H}`)));return}const s=new AbortController;this._requestHandlerAbortControllers.set(r.id,s);const m=hE(r.params)?r.params.task:void 0,p=this._taskStore?this.requestTaskStore(r,n==null?void 0:n.sessionId):void 0,g={signal:s.signal,sessionId:n==null?void 0:n.sessionId,_meta:(z=r.params)==null?void 0:z._meta,sendNotification:async x=>{if(s.signal.aborted)return;const H={relatedRequestId:r.id};u&&(H.relatedTask={taskId:u}),await this.notification(x,H)},sendRequest:async(x,H,J)=>{var de;if(s.signal.aborted)throw new Ie(Ge.ConnectionClosed,"Request was cancelled");const F={...J,relatedRequestId:r.id};u&&!F.relatedTask&&(F.relatedTask={taskId:u});const se=((de=F.relatedTask)==null?void 0:de.taskId)??u;return se&&p&&await p.updateTaskStatus(se,"input_required"),await this.request(x,H,F)},authInfo:o==null?void 0:o.authInfo,requestId:r.id,requestInfo:o==null?void 0:o.requestInfo,taskId:u,taskStore:p,taskRequestedTtl:m==null?void 0:m.ttl,closeSSEStream:o==null?void 0:o.closeSSEStream,closeStandaloneSSEStream:o==null?void 0:o.closeStandaloneSSEStream};Promise.resolve().then(()=>{m&&this.assertTaskHandlerCapability(r.method)}).then(()=>l(r,g)).then(async x=>{if(s.signal.aborted)return;const H={result:x,jsonrpc:"2.0",id:r.id};u&&this._taskMessageQueue?await this._enqueueTaskMessage(u,{type:"response",message:H,timestamp:Date.now()},n==null?void 0:n.sessionId):await(n==null?void 0:n.send(H))},async x=>{if(s.signal.aborted)return;const H={jsonrpc:"2.0",id:r.id,error:{code:Number.isSafeInteger(x.code)?x.code:Ge.InternalError,message:x.message??"Internal error",...x.data!==void 0&&{data:x.data}}};u&&this._taskMessageQueue?await this._enqueueTaskMessage(u,{type:"error",message:H,timestamp:Date.now()},n==null?void 0:n.sessionId):await(n==null?void 0:n.send(H))}).catch(x=>this._onerror(new Error(`Failed to send response: ${x}`))).finally(()=>{this._requestHandlerAbortControllers.get(r.id)===s&&this._requestHandlerAbortControllers.delete(r.id)})}_onprogress(r){const{progressToken:o,...l}=r.params,n=Number(o),u=this._progressHandlers.get(n);if(!u){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(r)}`));return}const s=this._responseHandlers.get(n),m=this._timeoutInfo.get(n);if(m&&s&&m.resetTimeoutOnProgress)try{this._resetTimeout(n)}catch(p){this._responseHandlers.delete(n),this._progressHandlers.delete(n),this._cleanupTimeout(n),s(p);return}u(l)}_onresponse(r){const o=Number(r.id),l=this._requestResolvers.get(o);if(l){if(this._requestResolvers.delete(o),nc(r))l(r);else{const s=new Ie(r.error.code,r.error.message,r.error.data);l(s)}return}const n=this._responseHandlers.get(o);if(n===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(r)}`));return}this._responseHandlers.delete(o),this._cleanupTimeout(o);let u=!1;if(nc(r)&&r.result&&typeof r.result=="object"){const s=r.result;if(s.task&&typeof s.task=="object"){const m=s.task;typeof m.taskId=="string"&&(u=!0,this._taskProgressTokens.set(m.taskId,o))}}if(u||this._progressHandlers.delete(o),nc(r))n(r);else{const s=Ie.fromError(r.error.code,r.error.message,r.error.data);n(s)}}get transport(){return this._transport}async close(){var r;await((r=this._transport)==null?void 0:r.close())}async*requestStream(r,o,l){var s,m;const{task:n}=l??{};if(!n){try{yield{type:"result",result:await this.request(r,o,l)}}catch(p){yield{type:"error",error:p instanceof Ie?p:new Ie(Ge.InternalError,String(p))}}return}let u;try{const p=await this.request(r,Zh,l);if(p.task)u=p.task.taskId,yield{type:"taskCreated",task:p.task};else throw new Ie(Ge.InternalError,"Task creation did not return a task");for(;;){const g=await this.getTask({taskId:u},l);if(yield{type:"taskStatus",task:g},tr(g.status)){g.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:u},o,l)}:g.status==="failed"?yield{type:"error",error:new Ie(Ge.InternalError,`Task ${u} failed`)}:g.status==="cancelled"&&(yield{type:"error",error:new Ie(Ge.InternalError,`Task ${u} was cancelled`)});return}if(g.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:u},o,l)};return}const v=g.pollInterval??((s=this._options)==null?void 0:s.defaultTaskPollInterval)??1e3;await new Promise(b=>setTimeout(b,v)),(m=l==null?void 0:l.signal)==null||m.throwIfAborted()}}catch(p){yield{type:"error",error:p instanceof Ie?p:new Ie(Ge.InternalError,String(p))}}}request(r,o,l){const{relatedRequestId:n,resumptionToken:u,onresumptiontoken:s,task:m,relatedTask:p}=l??{};return new Promise((g,v)=>{var se,de,be,Ee,ue;const b=G=>{v(G)};if(!this._transport){b(new Error("Not connected"));return}if(((se=this._options)==null?void 0:se.enforceStrictCapabilities)===!0)try{this.assertCapabilityForMethod(r.method),m&&this.assertTaskCapability(r.method)}catch(G){b(G);return}(de=l==null?void 0:l.signal)==null||de.throwIfAborted();const _=this._requestMessageId++,z={...r,jsonrpc:"2.0",id:_};l!=null&&l.onprogress&&(this._progressHandlers.set(_,l.onprogress),z.params={...r.params,_meta:{...((be=r.params)==null?void 0:be._meta)||{},progressToken:_}}),m&&(z.params={...z.params,task:m}),p&&(z.params={...z.params,_meta:{...((Ee=z.params)==null?void 0:Ee._meta)||{},[nr]:p}});const x=G=>{var Ae;this._responseHandlers.delete(_),this._progressHandlers.delete(_),this._cleanupTimeout(_),(Ae=this._transport)==null||Ae.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:_,reason:String(G)}},{relatedRequestId:n,resumptionToken:u,onresumptiontoken:s}).catch(Ut=>this._onerror(new Error(`Failed to send cancellation: ${Ut}`)));const ge=G instanceof Ie?G:new Ie(Ge.RequestTimeout,String(G));v(ge)};this._responseHandlers.set(_,G=>{var ge;if(!((ge=l==null?void 0:l.signal)!=null&&ge.aborted)){if(G instanceof Error)return v(G);try{const Ae=hz(o,G.result);Ae.success?g(Ae.data):v(Ae.error)}catch(Ae){v(Ae)}}}),(ue=l==null?void 0:l.signal)==null||ue.addEventListener("abort",()=>{var G;x((G=l==null?void 0:l.signal)==null?void 0:G.reason)});const H=(l==null?void 0:l.timeout)??F2,J=()=>x(Ie.fromError(Ge.RequestTimeout,"Request timed out",{timeout:H}));this._setupTimeout(_,H,l==null?void 0:l.maxTotalTimeout,J,(l==null?void 0:l.resetTimeoutOnProgress)??!1);const F=p==null?void 0:p.taskId;if(F){const G=ge=>{const Ae=this._responseHandlers.get(_);Ae?Ae(ge):this._onerror(new Error(`Response handler missing for side-channeled request ${_}`))};this._requestResolvers.set(_,G),this._enqueueTaskMessage(F,{type:"request",message:z,timestamp:Date.now()}).catch(ge=>{this._cleanupTimeout(_),v(ge)})}else this._transport.send(z,{relatedRequestId:n,resumptionToken:u,onresumptiontoken:s}).catch(G=>{this._cleanupTimeout(_),v(G)})})}async getTask(r,o){return this.request({method:"tasks/get",params:r},Lh,o)}async getTaskResult(r,o,l){return this.request({method:"tasks/result",params:r},o,l)}async listTasks(r,o){return this.request({method:"tasks/list",params:r},Jh,o)}async cancelTask(r,o){return this.request({method:"tasks/cancel",params:r},RE,o)}async notification(r,o){var m,p,g,v;if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(r.method);const l=(m=o==null?void 0:o.relatedTask)==null?void 0:m.taskId;if(l){const b={...r,jsonrpc:"2.0",params:{...r.params,_meta:{...((p=r.params)==null?void 0:p._meta)||{},[nr]:o.relatedTask}}};await this._enqueueTaskMessage(l,{type:"notification",message:b,timestamp:Date.now()});return}if((((g=this._options)==null?void 0:g.debouncedNotificationMethods)??[]).includes(r.method)&&!r.params&&!(o!=null&&o.relatedRequestId)&&!(o!=null&&o.relatedTask)){if(this._pendingDebouncedNotifications.has(r.method))return;this._pendingDebouncedNotifications.add(r.method),Promise.resolve().then(()=>{var _,z;if(this._pendingDebouncedNotifications.delete(r.method),!this._transport)return;let b={...r,jsonrpc:"2.0"};o!=null&&o.relatedTask&&(b={...b,params:{...b.params,_meta:{...((_=b.params)==null?void 0:_._meta)||{},[nr]:o.relatedTask}}}),(z=this._transport)==null||z.send(b,o).catch(x=>this._onerror(x))});return}let s={...r,jsonrpc:"2.0"};o!=null&&o.relatedTask&&(s={...s,params:{...s.params,_meta:{...((v=s.params)==null?void 0:v._meta)||{},[nr]:o.relatedTask}}}),await this._transport.send(s,o)}setRequestHandler(r,o){const l=G_(r);this.assertRequestHandlerCapability(l),this._requestHandlers.set(l,(n,u)=>{const s=Y_(r,n);return Promise.resolve(o(s,u))})}removeRequestHandler(r){this._requestHandlers.delete(r)}assertCanSetRequestHandler(r){if(this._requestHandlers.has(r))throw new Error(`A request handler for ${r} already exists, which would be overridden`)}setNotificationHandler(r,o){const l=G_(r);this._notificationHandlers.set(l,n=>{const u=Y_(r,n);return Promise.resolve(o(u))})}removeNotificationHandler(r){this._notificationHandlers.delete(r)}_cleanupTaskProgressHandler(r){const o=this._taskProgressTokens.get(r);o!==void 0&&(this._progressHandlers.delete(o),this._taskProgressTokens.delete(r))}async _enqueueTaskMessage(r,o,l){var u;if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");const n=(u=this._options)==null?void 0:u.maxTaskQueueSize;await this._taskMessageQueue.enqueue(r,o,l,n)}async _clearTaskQueue(r,o){if(this._taskMessageQueue){const l=await this._taskMessageQueue.dequeueAll(r,o);for(const n of l)if(n.type==="request"&&J_(n.message)){const u=n.message.id,s=this._requestResolvers.get(u);s?(s(new Ie(Ge.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(u)):this._onerror(new Error(`Resolver missing for request ${u} during task ${r} cleanup`))}}}async _waitForTaskUpdate(r,o){var n,u;let l=((n=this._options)==null?void 0:n.defaultTaskPollInterval)??1e3;try{const s=await((u=this._taskStore)==null?void 0:u.getTask(r));s!=null&&s.pollInterval&&(l=s.pollInterval)}catch{}return new Promise((s,m)=>{if(o.aborted){m(new Ie(Ge.InvalidRequest,"Request cancelled"));return}const p=setTimeout(s,l);o.addEventListener("abort",()=>{clearTimeout(p),m(new Ie(Ge.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(r,o){const l=this._taskStore;if(!l)throw new Error("No task store configured");return{createTask:async n=>{if(!r)throw new Error("No request provided");return await l.createTask(n,r.id,{method:r.method,params:r.params},o)},getTask:async n=>{const u=await l.getTask(n,o);if(!u)throw new Ie(Ge.InvalidParams,"Failed to retrieve task: Task not found");return u},storeTaskResult:async(n,u,s)=>{await l.storeTaskResult(n,u,s,o);const m=await l.getTask(n,o);if(m){const p=sc.parse({method:"notifications/tasks/status",params:m});await this.notification(p),tr(m.status)&&this._cleanupTaskProgressHandler(n)}},getTaskResult:n=>l.getTaskResult(n,o),updateTaskStatus:async(n,u,s)=>{const m=await l.getTask(n,o);if(!m)throw new Ie(Ge.InvalidParams,`Task "${n}" not found - it may have been cleaned up`);if(tr(m.status))throw new Ie(Ge.InvalidParams,`Cannot update task "${n}" from terminal status "${m.status}" to "${u}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await l.updateTaskStatus(n,u,s,o);const p=await l.getTask(n,o);if(p){const g=sc.parse({method:"notifications/tasks/status",params:p});await this.notification(g),tr(p.status)&&this._cleanupTaskProgressHandler(n)}},listTasks:n=>l.listTasks(n,o)}}}function X_(i){return i!==null&&typeof i=="object"&&!Array.isArray(i)}function eO(i,r){const o={...i};for(const l in r){const n=l,u=r[n];if(u===void 0)continue;const s=o[n];X_(s)&&X_(u)?o[n]={...s,...u}:o[n]=u}return o}(i=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(i,{get:(r,o)=>(typeof require<"u"?require:r)[o]}):i)(function(i){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+i+'" is not supported')});let tO=class extends W2{constructor(){super(...arguments);te(this,"_registeredMethods",new Set);te(this,"_eventSlots",new Map);te(this,"setRequestHandler",(o,l)=>{this._assertMethodNotRegistered(o,"setRequestHandler"),super.setRequestHandler(o,l)});te(this,"setNotificationHandler",(o,l)=>{this._assertMethodNotRegistered(o,"setNotificationHandler"),super.setNotificationHandler(o,l)});te(this,"replaceRequestHandler",(o,l)=>{let n=o.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(o,l)})}onEventDispatch(o,l){}_ensureEventSlot(o){let l=this._eventSlots.get(o);if(!l){let n=this.eventSchemas[o];if(!n)throw Error(`Unknown event: ${String(o)}`);l={listeners:[]},this._eventSlots.set(o,l);let u=n.shape.method.value;this._registeredMethods.add(u);let s=l;super.setNotificationHandler(n,m=>{var g;let p=m.params;this.onEventDispatch(o,p),(g=s.onHandler)==null||g.call(s,p);for(let v of[...s.listeners])v(p)})}return l}setEventHandler(o,l){let n=this._ensureEventSlot(o);n.onHandler&&l&&console.warn(`[MCP Apps] on${String(o)} handler replaced. Use addEventListener("${String(o)}", …) to add multiple listeners without replacing.`),n.onHandler=l}getEventHandler(o){var l;return(l=this._eventSlots.get(o))==null?void 0:l.onHandler}addEventListener(o,l){this._ensureEventSlot(o).listeners.push(l)}removeEventListener(o,l){let n=this._eventSlots.get(o);if(!n)return;let u=n.listeners.indexOf(l);u!==-1&&n.listeners.splice(u,1)}warnIfRequestHandlerReplaced(o,l,n){l&&n&&console.warn(`[MCP Apps] ${o} handler replaced. Previous handler will no longer be called.`)}_assertMethodNotRegistered(o,l){let n=o.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for "${n}" already registered (via ${l}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}};var nO="2026-01-26",iO="ui/notifications/tool-input-partial";let Jz=class{constructor(r=window.parent,o){te(this,"eventTarget");te(this,"eventSource");te(this,"messageListener");te(this,"onclose");te(this,"onerror");te(this,"onmessage");te(this,"sessionId");te(this,"setProtocolVersion");this.eventTarget=r,this.eventSource=o,this.messageListener=l=>{var u,s,m;if(o&&l.source!==this.eventSource){console.debug("Ignoring message from unknown source",l);return}let n=yE.safeParse(l.data);n.success?(console.debug("Parsed message",n.data),(u=this.onmessage)==null||u.call(this,n.data)):((s=l.data)==null?void 0:s.jsonrpc)!=="2.0"?console.debug("Ignoring non-JSON-RPC message",n.error.message,l):(console.error("Failed to parse message",n.error.message,l),(m=this.onerror)==null||m.call(this,Error("Invalid JSON-RPC message received: "+n.error.message)))}}async start(){window.addEventListener("message",this.messageListener)}async send(r,o){r.method!==iO&&console.debug("Sending message",r),this.eventTarget.postMessage(r,"*")}async close(){var r;window.removeEventListener("message",this.messageListener),(r=this.onclose)==null||r.call(this)}};var rO=ze([E("light"),E("dark")]).describe("Color theme preference for the host environment."),Do=ze([E("inline"),E("fullscreen"),E("pip")]).describe("Display mode for UI presentation."),aO=ze([E("--color-background-primary"),E("--color-background-secondary"),E("--color-background-tertiary"),E("--color-background-inverse"),E("--color-background-ghost"),E("--color-background-info"),E("--color-background-danger"),E("--color-background-success"),E("--color-background-warning"),E("--color-background-disabled"),E("--color-text-primary"),E("--color-text-secondary"),E("--color-text-tertiary"),E("--color-text-inverse"),E("--color-text-ghost"),E("--color-text-info"),E("--color-text-danger"),E("--color-text-success"),E("--color-text-warning"),E("--color-text-disabled"),E("--color-border-primary"),E("--color-border-secondary"),E("--color-border-tertiary"),E("--color-border-inverse"),E("--color-border-ghost"),E("--color-border-info"),E("--color-border-danger"),E("--color-border-success"),E("--color-border-warning"),E("--color-border-disabled"),E("--color-ring-primary"),E("--color-ring-secondary"),E("--color-ring-inverse"),E("--color-ring-info"),E("--color-ring-danger"),E("--color-ring-success"),E("--color-ring-warning"),E("--font-sans"),E("--font-mono"),E("--font-weight-normal"),E("--font-weight-medium"),E("--font-weight-semibold"),E("--font-weight-bold"),E("--font-text-xs-size"),E("--font-text-sm-size"),E("--font-text-md-size"),E("--font-text-lg-size"),E("--font-heading-xs-size"),E("--font-heading-sm-size"),E("--font-heading-md-size"),E("--font-heading-lg-size"),E("--font-heading-xl-size"),E("--font-heading-2xl-size"),E("--font-heading-3xl-size"),E("--font-text-xs-line-height"),E("--font-text-sm-line-height"),E("--font-text-md-line-height"),E("--font-text-lg-line-height"),E("--font-heading-xs-line-height"),E("--font-heading-sm-line-height"),E("--font-heading-md-line-height"),E("--font-heading-lg-line-height"),E("--font-heading-xl-line-height"),E("--font-heading-2xl-line-height"),E("--font-heading-3xl-line-height"),E("--border-radius-xs"),E("--border-radius-sm"),E("--border-radius-md"),E("--border-radius-lg"),E("--border-radius-xl"),E("--border-radius-full"),E("--border-width-regular"),E("--shadow-hairline"),E("--shadow-sm"),E("--shadow-md"),E("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),oO=je(aO.describe(`Style variables for theming MCP apps.
119
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const v of i.seen.entries()){const b=v[1];if(r===v[0]){u(v);continue}if(i.external){const z=(p=i.external.registry.get(v[0]))==null?void 0:p.id;if(r!==v[0]&&z){u(v);continue}}if((g=i.metadataRegistry.get(v[0]))==null?void 0:g.id){u(v);continue}if(b.cycle){u(v);continue}if(b.count>1&&i.reused==="ref"){u(v);continue}}}function ca(i,r){var m,p,g,v;const o=i.seen.get(r);if(!o)throw new Error("Unprocessed schema. This is a bug in Zod.");const l=b=>{const _=i.seen.get(b);if(_.ref===null)return;const z=_.def??_.schema,x={...z},H=_.ref;if(_.ref=null,H){l(H);const F=i.seen.get(H),se=F.schema;if(se.$ref&&(i.target==="draft-07"||i.target==="draft-04"||i.target==="openapi-3.0")?(z.allOf=z.allOf??[],z.allOf.push(se)):Object.assign(z,se),Object.assign(z,x),b._zod.parent===H)for(const be in z)be==="$ref"||be==="allOf"||be in x||delete z[be];if(se.$ref&&F.def)for(const be in z)be==="$ref"||be==="allOf"||be in F.def&&JSON.stringify(z[be])===JSON.stringify(F.def[be])&&delete z[be]}const J=b._zod.parent;if(J&&J!==H){l(J);const F=i.seen.get(J);if(F!=null&&F.schema.$ref&&(z.$ref=F.schema.$ref,F.def))for(const se in z)se==="$ref"||se==="allOf"||se in F.def&&JSON.stringify(z[se])===JSON.stringify(F.def[se])&&delete z[se]}i.override({zodSchema:b,jsonSchema:z,path:_.path??[]})};for(const b of[...i.seen.entries()].reverse())l(b[0]);const n={};if(i.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":i.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":i.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":i.target,(m=i.external)!=null&&m.uri){const b=(p=i.external.registry.get(r))==null?void 0:p.id;if(!b)throw new Error("Schema is missing an `id` property");n.$id=i.external.uri(b)}Object.assign(n,o.def??o.schema);const u=(g=i.metadataRegistry.get(r))==null?void 0:g.id;u!==void 0&&n.id===u&&delete n.id;const s=((v=i.external)==null?void 0:v.defs)??{};for(const b of i.seen.entries()){const _=b[1];_.def&&_.defId&&(_.def.id===_.defId&&delete _.def.id,s[_.defId]=_.def)}i.external||Object.keys(s).length>0&&(i.target==="draft-2020-12"?n.$defs=s:n.definitions=s);try{const b=JSON.parse(JSON.stringify(n));return Object.defineProperty(b,"~standard",{value:{...r["~standard"],jsonSchema:{input:Do(r,"input",i.processors),output:Do(r,"output",i.processors)}},enumerable:!1,writable:!1}),b}catch{throw new Error("Error converting schema to JSON.")}}function Zt(i,r){const o=r??{seen:new Set};if(o.seen.has(i))return!1;o.seen.add(i);const l=i._zod.def;if(l.type==="transform")return!0;if(l.type==="array")return Zt(l.element,o);if(l.type==="set")return Zt(l.valueType,o);if(l.type==="lazy")return Zt(l.getter(),o);if(l.type==="promise"||l.type==="optional"||l.type==="nonoptional"||l.type==="nullable"||l.type==="readonly"||l.type==="default"||l.type==="prefault")return Zt(l.innerType,o);if(l.type==="intersection")return Zt(l.left,o)||Zt(l.right,o);if(l.type==="record"||l.type==="map")return Zt(l.keyType,o)||Zt(l.valueType,o);if(l.type==="pipe")return Zt(l.in,o)||Zt(l.out,o);if(l.type==="object"){for(const n in l.shape)if(Zt(l.shape[n],o))return!0;return!1}if(l.type==="union"){for(const n of l.options)if(Zt(n,o))return!0;return!1}if(l.type==="tuple"){for(const n of l.items)if(Zt(n,o))return!0;return!!(l.rest&&Zt(l.rest,o))}return!1}const D0=(i,r={})=>o=>{const l=la({...o,processors:r});return Ve(i,l),ua(l,i),ca(l,i)},Do=(i,r,o={})=>l=>{const{libraryOptions:n,target:u}=l??{},s=la({...n??{},target:u,io:r,processors:o});return Ve(i,s),ua(s,i),ca(s,i)},W6={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},j0=(i,r,o,l)=>{const n=o;n.type="string";const{minimum:u,maximum:s,format:m,patterns:p,contentEncoding:g}=i._zod.bag;if(typeof u=="number"&&(n.minLength=u),typeof s=="number"&&(n.maxLength=s),m&&(n.format=W6[m]??m,n.format===""&&delete n.format,m==="time"&&delete n.format),g&&(n.contentEncoding=g),p&&p.size>0){const v=[...p];v.length===1?n.pattern=v[0].source:v.length>1&&(n.allOf=[...v.map(b=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:b.source}))])}},N0=(i,r,o,l)=>{const n=o,{minimum:u,maximum:s,format:m,multipleOf:p,exclusiveMaximum:g,exclusiveMinimum:v}=i._zod.bag;typeof m=="string"&&m.includes("int")?n.type="integer":n.type="number";const b=typeof v=="number"&&v>=(u??Number.NEGATIVE_INFINITY),_=typeof g=="number"&&g<=(s??Number.POSITIVE_INFINITY),z=r.target==="draft-04"||r.target==="openapi-3.0";b?z?(n.minimum=v,n.exclusiveMinimum=!0):n.exclusiveMinimum=v:typeof u=="number"&&(n.minimum=u),_?z?(n.maximum=g,n.exclusiveMaximum=!0):n.exclusiveMaximum=g:typeof s=="number"&&(n.maximum=s),typeof p=="number"&&(n.multipleOf=p)},A0=(i,r,o,l)=>{o.type="boolean"},I0=(i,r,o,l)=>{if(r.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},R0=(i,r,o,l)=>{if(r.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},C0=(i,r,o,l)=>{r.target==="openapi-3.0"?(o.type="string",o.nullable=!0,o.enum=[null]):o.type="null"},M0=(i,r,o,l)=>{if(r.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Z0=(i,r,o,l)=>{if(r.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},q0=(i,r,o,l)=>{o.not={}},L0=(i,r,o,l)=>{},H0=(i,r,o,l)=>{},B0=(i,r,o,l)=>{if(r.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},J0=(i,r,o,l)=>{const n=i._zod.def,u=mm(n.entries);u.every(s=>typeof s=="number")&&(o.type="number"),u.every(s=>typeof s=="string")&&(o.type="string"),o.enum=u},G0=(i,r,o,l)=>{const n=i._zod.def,u=[];for(const s of n.values)if(s===void 0){if(r.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(r.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");u.push(Number(s))}else u.push(s);if(u.length!==0)if(u.length===1){const s=u[0];o.type=s===null?"null":typeof s,r.target==="draft-04"||r.target==="openapi-3.0"?o.enum=[s]:o.const=s}else u.every(s=>typeof s=="number")&&(o.type="number"),u.every(s=>typeof s=="string")&&(o.type="string"),u.every(s=>typeof s=="boolean")&&(o.type="boolean"),u.every(s=>s===null)&&(o.type="null"),o.enum=u},Y0=(i,r,o,l)=>{if(r.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},X0=(i,r,o,l)=>{const n=o,u=i._zod.pattern;if(!u)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=u.source},V0=(i,r,o,l)=>{const n=o,u={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:m,mime:p}=i._zod.bag;s!==void 0&&(u.minLength=s),m!==void 0&&(u.maxLength=m),p?p.length===1?(u.contentMediaType=p[0],Object.assign(n,u)):(Object.assign(n,u),n.anyOf=p.map(g=>({contentMediaType:g}))):Object.assign(n,u)},P0=(i,r,o,l)=>{o.type="boolean"},Q0=(i,r,o,l)=>{if(r.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},K0=(i,r,o,l)=>{if(r.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},F0=(i,r,o,l)=>{if(r.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},W0=(i,r,o,l)=>{if(r.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},e1=(i,r,o,l)=>{if(r.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},t1=(i,r,o,l)=>{const n=o,u=i._zod.def,{minimum:s,maximum:m}=i._zod.bag;typeof s=="number"&&(n.minItems=s),typeof m=="number"&&(n.maxItems=m),n.type="array",n.items=Ve(u.element,r,{...l,path:[...l.path,"items"]})},n1=(i,r,o,l)=>{var g;const n=o,u=i._zod.def;n.type="object",n.properties={};const s=u.shape;for(const v in s)n.properties[v]=Ve(s[v],r,{...l,path:[...l.path,"properties",v]});const m=new Set(Object.keys(s)),p=new Set([...m].filter(v=>{const b=u.shape[v]._zod;return r.io==="input"?b.optin===void 0:b.optout===void 0}));p.size>0&&(n.required=Array.from(p)),((g=u.catchall)==null?void 0:g._zod.def.type)==="never"?n.additionalProperties=!1:u.catchall?u.catchall&&(n.additionalProperties=Ve(u.catchall,r,{...l,path:[...l.path,"additionalProperties"]})):r.io==="output"&&(n.additionalProperties=!1)},sp=(i,r,o,l)=>{const n=i._zod.def,u=n.inclusive===!1,s=n.options.map((m,p)=>Ve(m,r,{...l,path:[...l.path,u?"oneOf":"anyOf",p]}));u?o.oneOf=s:o.anyOf=s},i1=(i,r,o,l)=>{const n=i._zod.def,u=Ve(n.left,r,{...l,path:[...l.path,"allOf",0]}),s=Ve(n.right,r,{...l,path:[...l.path,"allOf",1]}),m=g=>"allOf"in g&&Object.keys(g).length===1,p=[...m(u)?u.allOf:[u],...m(s)?s.allOf:[s]];o.allOf=p},r1=(i,r,o,l)=>{const n=o,u=i._zod.def;n.type="array";const s=r.target==="draft-2020-12"?"prefixItems":"items",m=r.target==="draft-2020-12"||r.target==="openapi-3.0"?"items":"additionalItems",p=u.items.map((_,z)=>Ve(_,r,{...l,path:[...l.path,s,z]})),g=u.rest?Ve(u.rest,r,{...l,path:[...l.path,m,...r.target==="openapi-3.0"?[u.items.length]:[]]}):null;r.target==="draft-2020-12"?(n.prefixItems=p,g&&(n.items=g)):r.target==="openapi-3.0"?(n.items={anyOf:p},g&&n.items.anyOf.push(g),n.minItems=p.length,g||(n.maxItems=p.length)):(n.items=p,g&&(n.additionalItems=g));const{minimum:v,maximum:b}=i._zod.bag;typeof v=="number"&&(n.minItems=v),typeof b=="number"&&(n.maxItems=b)},a1=(i,r,o,l)=>{const n=o,u=i._zod.def;n.type="object";const s=u.keyType,m=s._zod.bag,p=m==null?void 0:m.patterns;if(u.mode==="loose"&&p&&p.size>0){const v=Ve(u.valueType,r,{...l,path:[...l.path,"patternProperties","*"]});n.patternProperties={};for(const b of p)n.patternProperties[b.source]=v}else(r.target==="draft-07"||r.target==="draft-2020-12")&&(n.propertyNames=Ve(u.keyType,r,{...l,path:[...l.path,"propertyNames"]})),n.additionalProperties=Ve(u.valueType,r,{...l,path:[...l.path,"additionalProperties"]});const g=s._zod.values;if(g){const v=[...g].filter(b=>typeof b=="string"||typeof b=="number");v.length>0&&(n.required=v)}},o1=(i,r,o,l)=>{const n=i._zod.def,u=Ve(n.innerType,r,l),s=r.seen.get(i);r.target==="openapi-3.0"?(s.ref=n.innerType,o.nullable=!0):o.anyOf=[u,{type:"null"}]},l1=(i,r,o,l)=>{const n=i._zod.def;Ve(n.innerType,r,l);const u=r.seen.get(i);u.ref=n.innerType},u1=(i,r,o,l)=>{const n=i._zod.def;Ve(n.innerType,r,l);const u=r.seen.get(i);u.ref=n.innerType,o.default=JSON.parse(JSON.stringify(n.defaultValue))},c1=(i,r,o,l)=>{const n=i._zod.def;Ve(n.innerType,r,l);const u=r.seen.get(i);u.ref=n.innerType,r.io==="input"&&(o._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},s1=(i,r,o,l)=>{const n=i._zod.def;Ve(n.innerType,r,l);const u=r.seen.get(i);u.ref=n.innerType;let s;try{s=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}o.default=s},d1=(i,r,o,l)=>{const n=i._zod.def,u=r.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;Ve(u,r,l);const s=r.seen.get(i);s.ref=u},f1=(i,r,o,l)=>{const n=i._zod.def;Ve(n.innerType,r,l);const u=r.seen.get(i);u.ref=n.innerType,o.readOnly=!0},m1=(i,r,o,l)=>{const n=i._zod.def;Ve(n.innerType,r,l);const u=r.seen.get(i);u.ref=n.innerType},dp=(i,r,o,l)=>{const n=i._zod.def;Ve(n.innerType,r,l);const u=r.seen.get(i);u.ref=n.innerType},p1=(i,r,o,l)=>{const n=i._zod.innerType;Ve(n,r,l);const u=r.seen.get(i);u.ref=n},am={string:j0,number:N0,boolean:A0,bigint:I0,symbol:R0,null:C0,undefined:M0,void:Z0,never:q0,any:L0,unknown:H0,date:B0,enum:J0,literal:G0,nan:Y0,template_literal:X0,file:V0,success:P0,custom:Q0,function:K0,transform:F0,map:W0,set:e1,array:t1,object:n1,union:sp,intersection:i1,tuple:r1,record:a1,nullable:o1,nonoptional:l1,default:u1,prefault:c1,catch:s1,pipe:d1,readonly:f1,promise:m1,optional:dp,lazy:p1};function fp(i,r){if("_idmap"in i){const l=i,n=la({...r,processors:am}),u={};for(const p of l._idmap.entries()){const[g,v]=p;Ve(v,n)}const s={},m={registry:l,uri:r==null?void 0:r.uri,defs:u};n.external=m;for(const p of l._idmap.entries()){const[g,v]=p;ua(n,v),s[g]=ca(n,v)}if(Object.keys(u).length>0){const p=n.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[p]:u}}return{schemas:s}}const o=la({...r,processors:am});return Ve(i,o),ua(o,i),ca(o,i)}class eE{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(r){this.ctx.counter=r}get seen(){return this.ctx.seen}constructor(r){let o=(r==null?void 0:r.target)??"draft-2020-12";o==="draft-4"&&(o="draft-04"),o==="draft-7"&&(o="draft-07"),this.ctx=la({processors:am,target:o,...(r==null?void 0:r.metadata)&&{metadata:r.metadata},...(r==null?void 0:r.unrepresentable)&&{unrepresentable:r.unrepresentable},...(r==null?void 0:r.override)&&{override:r.override},...(r==null?void 0:r.io)&&{io:r.io}})}process(r,o={path:[],schemaPath:[]}){return Ve(r,this.ctx,o)}emit(r,o){o&&(o.cycles&&(this.ctx.cycles=o.cycles),o.reused&&(this.ctx.reused=o.reused),o.external&&(this.ctx.external=o.external)),ua(this.ctx,r);const l=ca(this.ctx,r),{"~standard":n,...u}=l;return u}}const tE=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),h1=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:lk,$ZodArray:fk,$ZodAsyncError:ur,$ZodBase64:P$,$ZodBase64URL:K$,$ZodBigInt:Rm,$ZodBigIntFormat:ik,$ZodBoolean:Im,$ZodCIDRv4:X$,$ZodCIDRv6:V$,$ZodCUID:I$,$ZodCUID2:R$,$ZodCatch:Nk,$ZodCheck:at,$ZodCheckBigIntFormat:d$,$ZodCheckEndsWith:k$,$ZodCheckGreaterThan:jm,$ZodCheckIncludes:S$,$ZodCheckLengthEquals:v$,$ZodCheckLessThan:Dm,$ZodCheckLowerCase:b$,$ZodCheckMaxLength:h$,$ZodCheckMaxSize:f$,$ZodCheckMimeType:x$,$ZodCheckMinLength:g$,$ZodCheckMinSize:m$,$ZodCheckMultipleOf:c$,$ZodCheckNumberFormat:s$,$ZodCheckOverwrite:w$,$ZodCheckProperty:z$,$ZodCheckRegex:y$,$ZodCheckSizeEquals:p$,$ZodCheckStartsWith:$$,$ZodCheckStringFormat:Lo,$ZodCheckUpperCase:_$,$ZodCodec:Zm,$ZodCustom:Lk,$ZodCustomStringFormat:tk,$ZodDate:dk,$ZodDefault:Ok,$ZodDiscriminatedUnion:yk,$ZodE164:F$,$ZodEmail:D$,$ZodEmoji:N$,$ZodEncodeError:bc,$ZodEnum:kk,$ZodError:gm,$ZodExactOptional:Tk,$ZodFile:xk,$ZodFunction:Mk,$ZodGUID:O$,$ZodIPv4:J$,$ZodIPv6:G$,$ZodISODate:L$,$ZodISODateTime:q$,$ZodISODuration:B$,$ZodISOTime:H$,$ZodIntersection:bk,$ZodJWT:ek,$ZodKSUID:Z$,$ZodLazy:qk,$ZodLiteral:zk,$ZodMAC:Y$,$ZodMap:Sk,$ZodNaN:Ak,$ZodNanoID:A$,$ZodNever:ck,$ZodNonOptional:Dk,$ZodNull:ok,$ZodNullable:Ek,$ZodNumber:Am,$ZodNumberFormat:nk,$ZodObject:hk,$ZodObjectJIT:gk,$ZodOptional:Mm,$ZodPipe:Ik,$ZodPrefault:Uk,$ZodPromise:Zk,$ZodReadonly:Rk,$ZodRealError:mn,$ZodRecord:_k,$ZodRegistry:Gk,$ZodSet:$k,$ZodString:Ho,$ZodStringFormat:We,$ZodSuccess:jk,$ZodSymbol:rk,$ZodTemplateLiteral:Ck,$ZodTransform:wk,$ZodTuple:Cm,$ZodType:me,$ZodULID:C$,$ZodURL:j$,$ZodUUID:U$,$ZodUndefined:ak,$ZodUnion:Tc,$ZodUnknown:uk,$ZodVoid:sk,$ZodXID:M$,$ZodXor:vk,$brand:fm,$constructor:T,$input:Hm,$output:Lm,Doc:T$,JSONSchema:tE,JSONSchemaGenerator:eE,NEVER:dm,TimePrecision:cp,_any:h0,_array:$0,_base64:ap,_base64url:op,_bigint:u0,_boolean:o0,_catch:X6,_check:T0,_cidrv4:ip,_cidrv6:rp,_coercedBigint:c0,_coercedBoolean:l0,_coercedDate:_0,_coercedNumber:e0,_coercedString:Xk,_cuid:Qm,_cuid2:Km,_custom:z0,_date:b0,_decode:Sm,_decodeAsync:km,_default:J6,_discriminatedUnion:j6,_e164:lp,_email:Bm,_emoji:Vm,_encode:_m,_encodeAsync:$m,_endsWith:Vo,_enum:M6,_file:k0,_float32:n0,_float64:i0,_gt:ui,_gte:qt,_guid:dc,_includes:Yo,_int:t0,_int32:r0,_int64:s0,_intersection:N6,_ipv4:tp,_ipv6:np,_isoDate:Qk,_isoDateTime:Pk,_isoDuration:Fk,_isoTime:Kk,_jwt:up,_ksuid:ep,_lazy:K6,_length:ya,_literal:q6,_lowercase:Jo,_lt:li,_lte:sn,_mac:Vk,_map:R6,_max:sn,_maxLength:va,_maxSize:gr,_mime:Po,_min:qt,_minLength:Ri,_minSize:ci,_multipleOf:sr,_nan:S0,_nanoid:Pm,_nativeEnum:Z6,_negative:Dc,_never:v0,_nonnegative:Nc,_nonoptional:G6,_nonpositive:jc,_normalize:Qo,_null:p0,_nullable:B6,_number:Wk,_optional:H6,_overwrite:Ln,_parse:Io,_parseAsync:Ro,_pipe:V6,_positive:Uc,_promise:F6,_property:Ac,_readonly:P6,_record:I6,_refine:x0,_regex:Bo,_safeDecode:xm,_safeDecodeAsync:Tm,_safeEncode:zm,_safeEncodeAsync:wm,_safeParse:Co,_safeParseAsync:Mo,_set:C6,_size:ga,_slugify:el,_startsWith:Xo,_string:Yk,_stringFormat:tl,_stringbool:U0,_success:Y6,_superRefine:w0,_symbol:f0,_templateLiteral:Q6,_toLowerCase:Fo,_toUpperCase:Wo,_transform:L6,_trim:Ko,_tuple:A6,_uint32:a0,_uint64:d0,_ulid:Fm,_undefined:m0,_union:U6,_unknown:g0,_uppercase:Go,_url:Oc,_uuid:Jm,_uuidv4:Gm,_uuidv6:Ym,_uuidv7:Xm,_void:y0,_xid:Wm,_xor:D6,clone:fn,config:_t,createStandardJSONSchemaMethod:Do,createToJSONSchemaMethod:D0,decode:u4,decodeAsync:s4,describe:E0,encode:l4,encodeAsync:c4,extractDefs:ua,finalize:ca,flattenError:zc,formatError:xc,globalConfig:Uo,globalRegistry:cn,initializeContext:la,isValidBase64:Nm,isValidBase64URL:Q$,isValidJWT:W$,locales:qm,meta:O0,parse:nm,parseAsync:im,prettifyError:ym,process:Ve,regexes:wc,registry:Ec,safeDecode:f4,safeDecodeAsync:p4,safeEncode:d4,safeEncodeAsync:m4,safeParse:bm,safeParseAsync:TS,toDotPath:wS,toJSONSchema:fp,treeifyError:vm,util:hm,version:E$},Symbol.toStringTag,{value:"Module"}));function mp(i){return!!i._zod}function g1(i,r){return mp(i)?bm(i,r):i.safeParse(r)}function nE(i){var o,l;if(!i)return;let r;if(mp(i)?r=(l=(o=i._zod)==null?void 0:o.def)==null?void 0:l.shape:r=i.shape,!!r){if(typeof r=="function")try{return r()}catch{return}return r}}function iE(i){var n;if(mp(i)){const s=(n=i._zod)==null?void 0:n.def;if(s){if(s.value!==void 0)return s.value;if(Array.isArray(s.values)&&s.values.length>0)return s.values[0]}}const o=i._def;if(o){if(o.value!==void 0)return o.value;if(Array.isArray(o.values)&&o.values.length>0)return o.values[0]}const l=i.value;if(l!==void 0)return l}const rE=Object.freeze(Object.defineProperty({__proto__:null,endsWith:Vo,gt:ui,gte:qt,includes:Yo,length:ya,lowercase:Jo,lt:li,lte:sn,maxLength:va,maxSize:gr,mime:Po,minLength:Ri,minSize:ci,multipleOf:sr,negative:Dc,nonnegative:Nc,nonpositive:jc,normalize:Qo,overwrite:Ln,positive:Uc,property:Ac,regex:Bo,size:ga,slugify:el,startsWith:Xo,toLowerCase:Fo,toUpperCase:Wo,trim:Ko,uppercase:Go},Symbol.toStringTag,{value:"Module"})),Ic=T("ZodISODateTime",(i,r)=>{q$.init(i,r),Pe.init(i,r)});function pp(i){return Pk(Ic,i)}const Rc=T("ZodISODate",(i,r)=>{L$.init(i,r),Pe.init(i,r)});function v1(i){return Qk(Rc,i)}const Cc=T("ZodISOTime",(i,r)=>{H$.init(i,r),Pe.init(i,r)});function y1(i){return Kk(Cc,i)}const Mc=T("ZodISODuration",(i,r)=>{B$.init(i,r),Pe.init(i,r)});function b1(i){return Fk(Mc,i)}const hp=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:Rc,ZodISODateTime:Ic,ZodISODuration:Mc,ZodISOTime:Cc,date:v1,datetime:pp,duration:b1,time:y1},Symbol.toStringTag,{value:"Module"})),_1=(i,r)=>{gm.init(i,r),i.name="ZodError",Object.defineProperties(i,{format:{value:o=>xc(i,o)},flatten:{value:o=>zc(i,o)},addIssue:{value:o=>{i.issues.push(o),i.message=JSON.stringify(i.issues,uc,2)}},addIssues:{value:o=>{i.issues.push(...o),i.message=JSON.stringify(i.issues,uc,2)}},isEmpty:{get(){return i.issues.length===0}}})},S1=T("ZodError",_1),Vt=T("ZodError",_1,{Parent:Error}),gp=Io(Vt),vp=Ro(Vt),yp=Co(Vt),bp=Mo(Vt),_p=_m(Vt),Sp=Sm(Vt),$p=$m(Vt),kp=km(Vt),zp=zm(Vt),xp=xm(Vt),wp=wm(Vt),Tp=Tm(Vt),B_=new WeakMap;function nl(i,r,o){const l=Object.getPrototypeOf(i);let n=B_.get(l);if(n||(n=new Set,B_.set(l,n)),!n.has(r)){n.add(r);for(const u in o){const s=o[u];Object.defineProperty(l,u,{configurable:!0,enumerable:!1,get(){const m=s.bind(this);return Object.defineProperty(this,u,{configurable:!0,writable:!0,enumerable:!0,value:m}),m},set(m){Object.defineProperty(this,u,{configurable:!0,writable:!0,enumerable:!0,value:m})}})}}}const he=T("ZodType",(i,r)=>(me.init(i,r),Object.assign(i["~standard"],{jsonSchema:{input:Do(i,"input"),output:Do(i,"output")}}),i.toJSONSchema=D0(i,{}),i.def=r,i.type=r.type,Object.defineProperty(i,"_def",{value:r}),i.parse=(o,l)=>gp(i,o,l,{callee:i.parse}),i.safeParse=(o,l)=>yp(i,o,l),i.parseAsync=async(o,l)=>vp(i,o,l,{callee:i.parseAsync}),i.safeParseAsync=async(o,l)=>bp(i,o,l),i.spa=i.safeParseAsync,i.encode=(o,l)=>_p(i,o,l),i.decode=(o,l)=>Sp(i,o,l),i.encodeAsync=async(o,l)=>$p(i,o,l),i.decodeAsync=async(o,l)=>kp(i,o,l),i.safeEncode=(o,l)=>zp(i,o,l),i.safeDecode=(o,l)=>xp(i,o,l),i.safeEncodeAsync=async(o,l)=>wp(i,o,l),i.safeDecodeAsync=async(o,l)=>Tp(i,o,l),nl(i,"ZodType",{check(...o){const l=this.def;return this.clone(qn(l,{checks:[...l.checks??[],...o.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...o){return this.check(...o)},clone(o,l){return fn(this,o,l)},brand(){return this},register(o,l){return o.add(this,l),this},refine(o,l){return this.check(zs(o,l))},superRefine(o,l){return this.check(xs(o,l))},overwrite(o){return this.check(Ln(o))},optional(){return Fe(this)},exactOptional(){return as(this)},nullable(){return fa(this)},nullish(){return Fe(fa(this))},nonoptional(o){return ds(this,o)},array(){return ce(this)},or(o){return ke([this,o])},and(o){return wa(this,o)},transform(o){return ma(this,zl(o))},default(o){return us(this,o)},prefault(o){return ss(this,o)},catch(o){return ps(this,o)},pipe(o){return ma(this,o)},readonly(){return vs(this)},describe(o){const l=this.clone();return cn.add(l,{description:o}),l},meta(...o){if(o.length===0)return cn.get(this);const l=this.clone();return cn.add(l,o[0]),l},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(o){return o(this)}}),Object.defineProperty(i,"description",{get(){var o;return(o=cn.get(i))==null?void 0:o.description},configurable:!0}),i)),il=T("_ZodString",(i,r)=>{Ho.init(i,r),he.init(i,r),i._zod.processJSONSchema=(l,n,u)=>j0(i,l,n);const o=i._zod.bag;i.format=o.format??null,i.minLength=o.minimum??null,i.maxLength=o.maximum??null,nl(i,"_ZodString",{regex(...l){return this.check(Bo(...l))},includes(...l){return this.check(Yo(...l))},startsWith(...l){return this.check(Xo(...l))},endsWith(...l){return this.check(Vo(...l))},min(...l){return this.check(Ri(...l))},max(...l){return this.check(va(...l))},length(...l){return this.check(ya(...l))},nonempty(...l){return this.check(Ri(1,...l))},lowercase(l){return this.check(Jo(l))},uppercase(l){return this.check(Go(l))},trim(){return this.check(Ko())},normalize(...l){return this.check(Qo(...l))},toLowerCase(){return this.check(Fo())},toUpperCase(){return this.check(Wo())},slugify(){return this.check(el())}})}),ba=T("ZodString",(i,r)=>{Ho.init(i,r),il.init(i,r),i.email=o=>i.check(Bm(rl,o)),i.url=o=>i.check(Oc(_a,o)),i.jwt=o=>i.check(up(bl,o)),i.emoji=o=>i.check(Vm(al,o)),i.guid=o=>i.check(dc(sa,o)),i.uuid=o=>i.check(Jm(An,o)),i.uuidv4=o=>i.check(Gm(An,o)),i.uuidv6=o=>i.check(Ym(An,o)),i.uuidv7=o=>i.check(Xm(An,o)),i.nanoid=o=>i.check(Pm(ol,o)),i.guid=o=>i.check(dc(sa,o)),i.cuid=o=>i.check(Qm(ll,o)),i.cuid2=o=>i.check(Km(ul,o)),i.ulid=o=>i.check(Fm(cl,o)),i.base64=o=>i.check(ap(gl,o)),i.base64url=o=>i.check(op(vl,o)),i.xid=o=>i.check(Wm(sl,o)),i.ksuid=o=>i.check(ep(dl,o)),i.ipv4=o=>i.check(tp(fl,o)),i.ipv6=o=>i.check(np(ml,o)),i.cidrv4=o=>i.check(ip(pl,o)),i.cidrv6=o=>i.check(rp(hl,o)),i.e164=o=>i.check(lp(yl,o)),i.datetime=o=>i.check(pp(o)),i.date=o=>i.check(v1(o)),i.time=o=>i.check(y1(o)),i.duration=o=>i.check(b1(o))});function O(i){return Yk(ba,i)}const Pe=T("ZodStringFormat",(i,r)=>{We.init(i,r),il.init(i,r)}),rl=T("ZodEmail",(i,r)=>{D$.init(i,r),Pe.init(i,r)});function Ep(i){return Bm(rl,i)}const sa=T("ZodGUID",(i,r)=>{O$.init(i,r),Pe.init(i,r)});function Op(i){return dc(sa,i)}const An=T("ZodUUID",(i,r)=>{U$.init(i,r),Pe.init(i,r)});function Up(i){return Jm(An,i)}function Dp(i){return Gm(An,i)}function jp(i){return Ym(An,i)}function Np(i){return Xm(An,i)}const _a=T("ZodURL",(i,r)=>{j$.init(i,r),Pe.init(i,r)});function Ap(i){return Oc(_a,i)}function Ip(i){return Oc(_a,{protocol:Om,hostname:YS,...L(i)})}const al=T("ZodEmoji",(i,r)=>{N$.init(i,r),Pe.init(i,r)});function Rp(i){return Vm(al,i)}const ol=T("ZodNanoID",(i,r)=>{A$.init(i,r),Pe.init(i,r)});function Cp(i){return Pm(ol,i)}const ll=T("ZodCUID",(i,r)=>{I$.init(i,r),Pe.init(i,r)});function Mp(i){return Qm(ll,i)}const ul=T("ZodCUID2",(i,r)=>{R$.init(i,r),Pe.init(i,r)});function Zp(i){return Km(ul,i)}const cl=T("ZodULID",(i,r)=>{C$.init(i,r),Pe.init(i,r)});function qp(i){return Fm(cl,i)}const sl=T("ZodXID",(i,r)=>{M$.init(i,r),Pe.init(i,r)});function Lp(i){return Wm(sl,i)}const dl=T("ZodKSUID",(i,r)=>{Z$.init(i,r),Pe.init(i,r)});function Hp(i){return ep(dl,i)}const fl=T("ZodIPv4",(i,r)=>{J$.init(i,r),Pe.init(i,r)});function Bp(i){return tp(fl,i)}const Zc=T("ZodMAC",(i,r)=>{Y$.init(i,r),Pe.init(i,r)});function Jp(i){return Vk(Zc,i)}const ml=T("ZodIPv6",(i,r)=>{G$.init(i,r),Pe.init(i,r)});function Gp(i){return np(ml,i)}const pl=T("ZodCIDRv4",(i,r)=>{X$.init(i,r),Pe.init(i,r)});function Yp(i){return ip(pl,i)}const hl=T("ZodCIDRv6",(i,r)=>{V$.init(i,r),Pe.init(i,r)});function Xp(i){return rp(hl,i)}const gl=T("ZodBase64",(i,r)=>{P$.init(i,r),Pe.init(i,r)});function Vp(i){return ap(gl,i)}const vl=T("ZodBase64URL",(i,r)=>{K$.init(i,r),Pe.init(i,r)});function Pp(i){return op(vl,i)}const yl=T("ZodE164",(i,r)=>{F$.init(i,r),Pe.init(i,r)});function Qp(i){return lp(yl,i)}const bl=T("ZodJWT",(i,r)=>{ek.init(i,r),Pe.init(i,r)});function Kp(i){return up(bl,i)}const vr=T("ZodCustomStringFormat",(i,r)=>{tk.init(i,r),Pe.init(i,r)});function Fp(i,r,o={}){return tl(vr,i,r,o)}function Wp(i){return tl(vr,"hostname",GS,i)}function eh(i){return tl(vr,"hex",l$,i)}function th(i,r){const o=(r==null?void 0:r.enc)??"hex",l=`${i}_${o}`,n=wc[l];if(!n)throw new Error(`Unrecognized hash format: ${l}`);return tl(vr,l,n,r)}const Sa=T("ZodNumber",(i,r)=>{Am.init(i,r),he.init(i,r),i._zod.processJSONSchema=(l,n,u)=>N0(i,l,n),nl(i,"ZodNumber",{gt(l,n){return this.check(ui(l,n))},gte(l,n){return this.check(qt(l,n))},min(l,n){return this.check(qt(l,n))},lt(l,n){return this.check(li(l,n))},lte(l,n){return this.check(sn(l,n))},max(l,n){return this.check(sn(l,n))},int(l){return this.check(jo(l))},safe(l){return this.check(jo(l))},positive(l){return this.check(ui(0,l))},nonnegative(l){return this.check(qt(0,l))},negative(l){return this.check(li(0,l))},nonpositive(l){return this.check(sn(0,l))},multipleOf(l,n){return this.check(sr(l,n))},step(l,n){return this.check(sr(l,n))},finite(){return this}});const o=i._zod.bag;i.minValue=Math.max(o.minimum??Number.NEGATIVE_INFINITY,o.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,i.maxValue=Math.min(o.maximum??Number.POSITIVE_INFINITY,o.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,i.isInt=(o.format??"").includes("int")||Number.isSafeInteger(o.multipleOf??.5),i.isFinite=!0,i.format=o.format??null});function pe(i){return Wk(Sa,i)}const Mi=T("ZodNumberFormat",(i,r)=>{nk.init(i,r),Sa.init(i,r)});function jo(i){return t0(Mi,i)}function nh(i){return n0(Mi,i)}function ih(i){return i0(Mi,i)}function rh(i){return r0(Mi,i)}function ah(i){return a0(Mi,i)}const $a=T("ZodBoolean",(i,r)=>{Im.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>A0(i,o,l)});function qe(i){return o0($a,i)}const ka=T("ZodBigInt",(i,r)=>{Rm.init(i,r),he.init(i,r),i._zod.processJSONSchema=(l,n,u)=>I0(i,l),i.gte=(l,n)=>i.check(qt(l,n)),i.min=(l,n)=>i.check(qt(l,n)),i.gt=(l,n)=>i.check(ui(l,n)),i.gte=(l,n)=>i.check(qt(l,n)),i.min=(l,n)=>i.check(qt(l,n)),i.lt=(l,n)=>i.check(li(l,n)),i.lte=(l,n)=>i.check(sn(l,n)),i.max=(l,n)=>i.check(sn(l,n)),i.positive=l=>i.check(ui(BigInt(0),l)),i.negative=l=>i.check(li(BigInt(0),l)),i.nonpositive=l=>i.check(sn(BigInt(0),l)),i.nonnegative=l=>i.check(qt(BigInt(0),l)),i.multipleOf=(l,n)=>i.check(sr(l,n));const o=i._zod.bag;i.minValue=o.minimum??null,i.maxValue=o.maximum??null,i.format=o.format??null});function oh(i){return u0(ka,i)}const _l=T("ZodBigIntFormat",(i,r)=>{ik.init(i,r),ka.init(i,r)});function lh(i){return s0(_l,i)}function uh(i){return d0(_l,i)}const qc=T("ZodSymbol",(i,r)=>{rk.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>R0(i,o)});function ch(i){return f0(qc,i)}const Lc=T("ZodUndefined",(i,r)=>{ak.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>M0(i,o)});function da(i){return m0(Lc,i)}const Hc=T("ZodNull",(i,r)=>{ok.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>C0(i,o,l)});function Sl(i){return p0(Hc,i)}const Bc=T("ZodAny",(i,r)=>{lk.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>L0()});function sh(){return h0(Bc)}const Jc=T("ZodUnknown",(i,r)=>{uk.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>H0()});function Re(){return g0(Jc)}const Gc=T("ZodNever",(i,r)=>{ck.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>q0(i,o,l)});function dr(i){return v0(Gc,i)}const Yc=T("ZodVoid",(i,r)=>{sk.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>Z0(i,o)});function dh(i){return y0(Yc,i)}const $l=T("ZodDate",(i,r)=>{dk.init(i,r),he.init(i,r),i._zod.processJSONSchema=(l,n,u)=>B0(i,l),i.min=(l,n)=>i.check(qt(l,n)),i.max=(l,n)=>i.check(sn(l,n));const o=i._zod.bag;i.minDate=o.minimum?new Date(o.minimum):null,i.maxDate=o.maximum?new Date(o.maximum):null});function fh(i){return b0($l,i)}const Xc=T("ZodArray",(i,r)=>{fk.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>t1(i,o,l,n),i.element=r.element,nl(i,"ZodArray",{min(o,l){return this.check(Ri(o,l))},nonempty(o){return this.check(Ri(1,o))},max(o,l){return this.check(va(o,l))},length(o,l){return this.check(ya(o,l))},unwrap(){return this.element}})});function ce(i,r){return $0(Xc,i,r)}function mh(i){const r=i._zod.def.shape;return Ut(Object.keys(r))}const za=T("ZodObject",(i,r)=>{gk.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>n1(i,o,l,n),Se(i,"shape",()=>r.shape),nl(i,"ZodObject",{keyof(){return Ut(Object.keys(this._zod.def.shape))},catchall(o){return this.clone({...this._zod.def,catchall:o})},passthrough(){return this.clone({...this._zod.def,catchall:Re()})},loose(){return this.clone({...this._zod.def,catchall:Re()})},strict(){return this.clone({...this._zod.def,catchall:dr()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(o){return vS(this,o)},safeExtend(o){return yS(this,o)},merge(o){return bS(this,o)},pick(o){return hS(this,o)},omit(o){return gS(this,o)},partial(...o){return _S(xl,this,o[0])},required(...o){return SS(wl,this,o[0])}})});function N(i,r){const o={type:"object",shape:i??{},...L(r)};return new za(o)}function ph(i,r){return new za({type:"object",shape:i,catchall:dr(),...L(r)})}function Ot(i,r){return new za({type:"object",shape:i,catchall:Re(),...L(r)})}const xa=T("ZodUnion",(i,r)=>{Tc.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>sp(i,o,l,n),i.options=r.options});function ke(i,r){return new xa({type:"union",options:i,...L(r)})}const Vc=T("ZodXor",(i,r)=>{xa.init(i,r),vk.init(i,r),i._zod.processJSONSchema=(o,l,n)=>sp(i,o,l,n),i.options=r.options});function hh(i,r){return new Vc({type:"union",options:i,inclusive:!1,...L(r)})}const Pc=T("ZodDiscriminatedUnion",(i,r)=>{xa.init(i,r),yk.init(i,r)});function kl(i,r,o){return new Pc({type:"union",options:r,discriminator:i,...L(o)})}const Qc=T("ZodIntersection",(i,r)=>{bk.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>i1(i,o,l,n)});function wa(i,r){return new Qc({type:"intersection",left:i,right:r})}const Kc=T("ZodTuple",(i,r)=>{Cm.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>r1(i,o,l,n),i.rest=o=>i.clone({...i._zod.def,rest:o})});function Fc(i,r,o){const l=r instanceof me,n=l?o:r,u=l?r:null;return new Kc({type:"tuple",items:i,rest:u,...L(n)})}const fr=T("ZodRecord",(i,r)=>{_k.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>a1(i,o,l,n),i.keyType=r.keyType,i.valueType=r.valueType});function Ue(i,r,o){return!r||!r._zod?new fr({type:"record",keyType:O(),valueType:i,...L(r)}):new fr({type:"record",keyType:i,valueType:r,...L(o)})}function gh(i,r,o){const l=fn(i);return l._zod.values=void 0,new fr({type:"record",keyType:l,valueType:r,...L(o)})}function vh(i,r,o){return new fr({type:"record",keyType:i,valueType:r,mode:"loose",...L(o)})}const Wc=T("ZodMap",(i,r)=>{Sk.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>W0(i,o),i.keyType=r.keyType,i.valueType=r.valueType,i.min=(...o)=>i.check(ci(...o)),i.nonempty=o=>i.check(ci(1,o)),i.max=(...o)=>i.check(gr(...o)),i.size=(...o)=>i.check(ga(...o))});function yh(i,r,o){return new Wc({type:"map",keyType:i,valueType:r,...L(o)})}const es=T("ZodSet",(i,r)=>{$k.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>e1(i,o),i.min=(...o)=>i.check(ci(...o)),i.nonempty=o=>i.check(ci(1,o)),i.max=(...o)=>i.check(gr(...o)),i.size=(...o)=>i.check(ga(...o))});function bh(i,r){return new es({type:"set",valueType:i,...L(r)})}const mr=T("ZodEnum",(i,r)=>{kk.init(i,r),he.init(i,r),i._zod.processJSONSchema=(l,n,u)=>J0(i,l,n),i.enum=r.entries,i.options=Object.values(r.entries);const o=new Set(Object.keys(r.entries));i.extract=(l,n)=>{const u={};for(const s of l)if(o.has(s))u[s]=r.entries[s];else throw new Error(`Key ${s} not found in enum`);return new mr({...r,checks:[],...L(n),entries:u})},i.exclude=(l,n)=>{const u={...r.entries};for(const s of l)if(o.has(s))delete u[s];else throw new Error(`Key ${s} not found in enum`);return new mr({...r,checks:[],...L(n),entries:u})}});function Ut(i,r){const o=Array.isArray(i)?Object.fromEntries(i.map(l=>[l,l])):i;return new mr({type:"enum",entries:o,...L(r)})}function _h(i,r){return new mr({type:"enum",entries:i,...L(r)})}const ts=T("ZodLiteral",(i,r)=>{zk.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>G0(i,o,l),i.values=new Set(r.values),Object.defineProperty(i,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function E(i,r){return new ts({type:"literal",values:Array.isArray(i)?i:[i],...L(r)})}const ns=T("ZodFile",(i,r)=>{xk.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>V0(i,o,l),i.min=(o,l)=>i.check(ci(o,l)),i.max=(o,l)=>i.check(gr(o,l)),i.mime=(o,l)=>i.check(Po(Array.isArray(o)?o:[o],l))});function Sh(i){return k0(ns,i)}const is=T("ZodTransform",(i,r)=>{wk.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>F0(i,o),i._zod.parse=(o,l)=>{if(l.direction==="backward")throw new bc(i.constructor.name);o.addIssue=u=>{if(typeof u=="string")o.issues.push(aa(u,o.value,r));else{const s=u;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=o.value),s.inst??(s.inst=i),o.issues.push(aa(s))}};const n=r.transform(o.value,o);return n instanceof Promise?n.then(u=>(o.value=u,o)):(o.value=n,o)}});function zl(i){return new is({type:"transform",transform:i})}const xl=T("ZodOptional",(i,r)=>{Mm.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>dp(i,o,l,n),i.unwrap=()=>i._zod.def.innerType});function Fe(i){return new xl({type:"optional",innerType:i})}const rs=T("ZodExactOptional",(i,r)=>{Tk.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>dp(i,o,l,n),i.unwrap=()=>i._zod.def.innerType});function as(i){return new rs({type:"optional",innerType:i})}const os=T("ZodNullable",(i,r)=>{Ek.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>o1(i,o,l,n),i.unwrap=()=>i._zod.def.innerType});function fa(i){return new os({type:"nullable",innerType:i})}function $h(i){return Fe(fa(i))}const ls=T("ZodDefault",(i,r)=>{Ok.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>u1(i,o,l,n),i.unwrap=()=>i._zod.def.innerType,i.removeDefault=i.unwrap});function us(i,r){return new ls({type:"default",innerType:i,get defaultValue(){return typeof r=="function"?r():Sc(r)}})}const cs=T("ZodPrefault",(i,r)=>{Uk.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>c1(i,o,l,n),i.unwrap=()=>i._zod.def.innerType});function ss(i,r){return new cs({type:"prefault",innerType:i,get defaultValue(){return typeof r=="function"?r():Sc(r)}})}const wl=T("ZodNonOptional",(i,r)=>{Dk.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>l1(i,o,l,n),i.unwrap=()=>i._zod.def.innerType});function ds(i,r){return new wl({type:"nonoptional",innerType:i,...L(r)})}const fs=T("ZodSuccess",(i,r)=>{jk.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>P0(i,o,l),i.unwrap=()=>i._zod.def.innerType});function kh(i){return new fs({type:"success",innerType:i})}const ms=T("ZodCatch",(i,r)=>{Nk.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>s1(i,o,l,n),i.unwrap=()=>i._zod.def.innerType,i.removeCatch=i.unwrap});function ps(i,r){return new ms({type:"catch",innerType:i,catchValue:typeof r=="function"?r:()=>r})}const hs=T("ZodNaN",(i,r)=>{Ak.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>Y0(i,o)});function zh(i){return S0(hs,i)}const Tl=T("ZodPipe",(i,r)=>{Ik.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>d1(i,o,l,n),i.in=r.in,i.out=r.out});function ma(i,r){return new Tl({type:"pipe",in:i,out:r})}const Ta=T("ZodCodec",(i,r)=>{Tl.init(i,r),Zm.init(i,r)});function xh(i,r,o){return new Ta({type:"pipe",in:i,out:r,transform:o.decode,reverseTransform:o.encode})}function wh(i){const r=i._zod.def;return new Ta({type:"pipe",in:r.out,out:r.in,transform:r.reverseTransform,reverseTransform:r.transform})}const gs=T("ZodReadonly",(i,r)=>{Rk.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>f1(i,o,l,n),i.unwrap=()=>i._zod.def.innerType});function vs(i){return new gs({type:"readonly",innerType:i})}const ys=T("ZodTemplateLiteral",(i,r)=>{Ck.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>X0(i,o,l)});function Th(i,r){return new ys({type:"template_literal",parts:i,...L(r)})}const bs=T("ZodLazy",(i,r)=>{qk.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>p1(i,o,l,n),i.unwrap=()=>i._zod.def.getter()});function _s(i){return new bs({type:"lazy",getter:i})}const Ss=T("ZodPromise",(i,r)=>{Zk.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>m1(i,o,l,n),i.unwrap=()=>i._zod.def.innerType});function Eh(i){return new Ss({type:"promise",innerType:i})}const $s=T("ZodFunction",(i,r)=>{Mk.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>K0(i,o)});function pa(i){return new $s({type:"function",input:Array.isArray(i==null?void 0:i.input)?Fc(i==null?void 0:i.input):(i==null?void 0:i.input)??ce(Re()),output:(i==null?void 0:i.output)??Re()})}const Ea=T("ZodCustom",(i,r)=>{Lk.init(i,r),he.init(i,r),i._zod.processJSONSchema=(o,l,n)=>Q0(i,o)});function Oh(i){const r=new at({check:"custom"});return r._zod.check=i,r}function ks(i,r){return z0(Ea,i??(()=>!0),r)}function zs(i,r={}){return x0(Ea,i,r)}function xs(i,r){return w0(i,r)}const Uh=E0,Dh=O0;function jh(i,r={}){const o=new Ea({type:"custom",check:"custom",fn:l=>l instanceof i,abort:!0,...L(r)});return o._zod.bag.Class=i,o._zod.check=l=>{l.value instanceof i||l.issues.push({code:"invalid_type",expected:i.name,input:l.value,inst:o,path:[...o._zod.def.path??[]]})},o}const Nh=(...i)=>U0({Codec:Ta,Boolean:$a,String:ba},...i);function Ah(i){const r=_s(()=>ke([O(i),pe(),qe(),Sl(),ce(r),Ue(O(),r)]));return r}function El(i,r){return ma(zl(i),r)}const aE=Object.freeze(Object.defineProperty({__proto__:null,ZodAny:Bc,ZodArray:Xc,ZodBase64:gl,ZodBase64URL:vl,ZodBigInt:ka,ZodBigIntFormat:_l,ZodBoolean:$a,ZodCIDRv4:pl,ZodCIDRv6:hl,ZodCUID:ll,ZodCUID2:ul,ZodCatch:ms,ZodCodec:Ta,ZodCustom:Ea,ZodCustomStringFormat:vr,ZodDate:$l,ZodDefault:ls,ZodDiscriminatedUnion:Pc,ZodE164:yl,ZodEmail:rl,ZodEmoji:al,ZodEnum:mr,ZodExactOptional:rs,ZodFile:ns,ZodFunction:$s,ZodGUID:sa,ZodIPv4:fl,ZodIPv6:ml,ZodIntersection:Qc,ZodJWT:bl,ZodKSUID:dl,ZodLazy:bs,ZodLiteral:ts,ZodMAC:Zc,ZodMap:Wc,ZodNaN:hs,ZodNanoID:ol,ZodNever:Gc,ZodNonOptional:wl,ZodNull:Hc,ZodNullable:os,ZodNumber:Sa,ZodNumberFormat:Mi,ZodObject:za,ZodOptional:xl,ZodPipe:Tl,ZodPrefault:cs,ZodPromise:Ss,ZodReadonly:gs,ZodRecord:fr,ZodSet:es,ZodString:ba,ZodStringFormat:Pe,ZodSuccess:fs,ZodSymbol:qc,ZodTemplateLiteral:ys,ZodTransform:is,ZodTuple:Kc,ZodType:he,ZodULID:cl,ZodURL:_a,ZodUUID:An,ZodUndefined:Lc,ZodUnion:xa,ZodUnknown:Jc,ZodVoid:Yc,ZodXID:sl,ZodXor:Vc,_ZodString:il,_default:us,_function:pa,any:sh,array:ce,base64:Vp,base64url:Pp,bigint:oh,boolean:qe,catch:ps,check:Oh,cidrv4:Yp,cidrv6:Xp,codec:xh,cuid:Mp,cuid2:Zp,custom:ks,date:fh,describe:Uh,discriminatedUnion:kl,e164:Qp,email:Ep,emoji:Rp,enum:Ut,exactOptional:as,file:Sh,float32:nh,float64:ih,function:pa,guid:Op,hash:th,hex:eh,hostname:Wp,httpUrl:Ip,instanceof:jh,int:jo,int32:rh,int64:lh,intersection:wa,invertCodec:wh,ipv4:Bp,ipv6:Gp,json:Ah,jwt:Kp,keyof:mh,ksuid:Hp,lazy:_s,literal:E,looseObject:Ot,looseRecord:vh,mac:Jp,map:yh,meta:Dh,nan:zh,nanoid:Cp,nativeEnum:_h,never:dr,nonoptional:ds,null:Sl,nullable:fa,nullish:$h,number:pe,object:N,optional:Fe,partialRecord:gh,pipe:ma,prefault:ss,preprocess:El,promise:Eh,readonly:vs,record:Ue,refine:zs,set:bh,strictObject:ph,string:O,stringFormat:Fp,stringbool:Nh,success:kh,superRefine:xs,symbol:ch,templateLiteral:Th,transform:zl,tuple:Fc,uint32:ah,uint64:uh,ulid:qp,undefined:da,union:ke,unknown:Re,url:Ap,uuid:Up,uuidv4:Dp,uuidv6:jp,uuidv7:Np,void:dh,xid:Lp,xor:hh},Symbol.toStringTag,{value:"Module"})),$1={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 k1(i){_t({customError:i})}function z1(){return _t().customError}var fc;fc||(fc={});const V={...aE,...rE,iso:hp},oE=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 lE(i,r){const o=i.$schema;return o==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":o==="http://json-schema.org/draft-07/schema#"?"draft-7":o==="http://json-schema.org/draft-04/schema#"?"draft-4":r??"draft-2020-12"}function uE(i,r){if(!i.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");const o=i.slice(1).split("/").filter(Boolean);if(o.length===0)return r.rootSchema;const l=r.version==="draft-2020-12"?"$defs":"definitions";if(o[0]===l){const n=o[1];if(!n||!r.defs[n])throw new Error(`Reference not found: ${i}`);return r.defs[n]}throw new Error(`Reference not found: ${i}`)}function x1(i,r){if(i.not!==void 0){if(typeof i.not=="object"&&Object.keys(i.not).length===0)return V.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(i.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(i.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(i.if!==void 0||i.then!==void 0||i.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(i.dependentSchemas!==void 0||i.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(i.$ref){const n=i.$ref;if(r.refs.has(n))return r.refs.get(n);if(r.processing.has(n))return V.lazy(()=>{if(!r.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return r.refs.get(n)});r.processing.add(n);const u=uE(n,r),s=It(u,r);return r.refs.set(n,s),r.processing.delete(n),s}if(i.enum!==void 0){const n=i.enum;if(r.version==="openapi-3.0"&&i.nullable===!0&&n.length===1&&n[0]===null)return V.null();if(n.length===0)return V.never();if(n.length===1)return V.literal(n[0]);if(n.every(s=>typeof s=="string"))return V.enum(n);const u=n.map(s=>V.literal(s));return u.length<2?u[0]:V.union([u[0],u[1],...u.slice(2)])}if(i.const!==void 0)return V.literal(i.const);const o=i.type;if(Array.isArray(o)){const n=o.map(u=>{const s={...i,type:u};return x1(s,r)});return n.length===0?V.never():n.length===1?n[0]:V.union(n)}if(!o)return V.any();let l;switch(o){case"string":{let n=V.string();if(i.format){const u=i.format;u==="email"?n=n.check(V.email()):u==="uri"||u==="uri-reference"?n=n.check(V.url()):u==="uuid"||u==="guid"?n=n.check(V.uuid()):u==="date-time"?n=n.check(V.iso.datetime()):u==="date"?n=n.check(V.iso.date()):u==="time"?n=n.check(V.iso.time()):u==="duration"?n=n.check(V.iso.duration()):u==="ipv4"?n=n.check(V.ipv4()):u==="ipv6"?n=n.check(V.ipv6()):u==="mac"?n=n.check(V.mac()):u==="cidr"?n=n.check(V.cidrv4()):u==="cidr-v6"?n=n.check(V.cidrv6()):u==="base64"?n=n.check(V.base64()):u==="base64url"?n=n.check(V.base64url()):u==="e164"?n=n.check(V.e164()):u==="jwt"?n=n.check(V.jwt()):u==="emoji"?n=n.check(V.emoji()):u==="nanoid"?n=n.check(V.nanoid()):u==="cuid"?n=n.check(V.cuid()):u==="cuid2"?n=n.check(V.cuid2()):u==="ulid"?n=n.check(V.ulid()):u==="xid"?n=n.check(V.xid()):u==="ksuid"&&(n=n.check(V.ksuid()))}typeof i.minLength=="number"&&(n=n.min(i.minLength)),typeof i.maxLength=="number"&&(n=n.max(i.maxLength)),i.pattern&&(n=n.regex(new RegExp(i.pattern))),l=n;break}case"number":case"integer":{let n=o==="integer"?V.number().int():V.number();typeof i.minimum=="number"&&(n=n.min(i.minimum)),typeof i.maximum=="number"&&(n=n.max(i.maximum)),typeof i.exclusiveMinimum=="number"?n=n.gt(i.exclusiveMinimum):i.exclusiveMinimum===!0&&typeof i.minimum=="number"&&(n=n.gt(i.minimum)),typeof i.exclusiveMaximum=="number"?n=n.lt(i.exclusiveMaximum):i.exclusiveMaximum===!0&&typeof i.maximum=="number"&&(n=n.lt(i.maximum)),typeof i.multipleOf=="number"&&(n=n.multipleOf(i.multipleOf)),l=n;break}case"boolean":{l=V.boolean();break}case"null":{l=V.null();break}case"object":{const n={},u=i.properties||{},s=new Set(i.required||[]);for(const[p,g]of Object.entries(u)){const v=It(g,r);n[p]=s.has(p)?v:v.optional()}if(i.propertyNames){const p=It(i.propertyNames,r),g=i.additionalProperties&&typeof i.additionalProperties=="object"?It(i.additionalProperties,r):V.any();if(Object.keys(n).length===0){l=V.record(p,g);break}const v=V.object(n).passthrough(),b=V.looseRecord(p,g);l=V.intersection(v,b);break}if(i.patternProperties){const p=i.patternProperties,g=Object.keys(p),v=[];for(const _ of g){const z=It(p[_],r),x=V.string().regex(new RegExp(_));v.push(V.looseRecord(x,z))}const b=[];if(Object.keys(n).length>0&&b.push(V.object(n).passthrough()),b.push(...v),b.length===0)l=V.object({}).passthrough();else if(b.length===1)l=b[0];else{let _=V.intersection(b[0],b[1]);for(let z=2;z<b.length;z++)_=V.intersection(_,b[z]);l=_}break}const m=V.object(n);i.additionalProperties===!1?l=m.strict():typeof i.additionalProperties=="object"?l=m.catchall(It(i.additionalProperties,r)):l=m.passthrough();break}case"array":{const n=i.prefixItems,u=i.items;if(n&&Array.isArray(n)){const s=n.map(p=>It(p,r)),m=u&&typeof u=="object"&&!Array.isArray(u)?It(u,r):void 0;m?l=V.tuple(s).rest(m):l=V.tuple(s),typeof i.minItems=="number"&&(l=l.check(V.minLength(i.minItems))),typeof i.maxItems=="number"&&(l=l.check(V.maxLength(i.maxItems)))}else if(Array.isArray(u)){const s=u.map(p=>It(p,r)),m=i.additionalItems&&typeof i.additionalItems=="object"?It(i.additionalItems,r):void 0;m?l=V.tuple(s).rest(m):l=V.tuple(s),typeof i.minItems=="number"&&(l=l.check(V.minLength(i.minItems))),typeof i.maxItems=="number"&&(l=l.check(V.maxLength(i.maxItems)))}else if(u!==void 0){const s=It(u,r);let m=V.array(s);typeof i.minItems=="number"&&(m=m.min(i.minItems)),typeof i.maxItems=="number"&&(m=m.max(i.maxItems)),l=m}else l=V.array(V.any());break}default:throw new Error(`Unsupported type: ${o}`)}return l}function It(i,r){if(typeof i=="boolean")return i?V.any():V.never();let o=x1(i,r);const l=i.type||i.enum!==void 0||i.const!==void 0;if(i.anyOf&&Array.isArray(i.anyOf)){const m=i.anyOf.map(g=>It(g,r)),p=V.union(m);o=l?V.intersection(o,p):p}if(i.oneOf&&Array.isArray(i.oneOf)){const m=i.oneOf.map(g=>It(g,r)),p=V.xor(m);o=l?V.intersection(o,p):p}if(i.allOf&&Array.isArray(i.allOf))if(i.allOf.length===0)o=l?o:V.any();else{let m=l?o:It(i.allOf[0],r);const p=l?0:1;for(let g=p;g<i.allOf.length;g++)m=V.intersection(m,It(i.allOf[g],r));o=m}i.nullable===!0&&r.version==="openapi-3.0"&&(o=V.nullable(o)),i.readOnly===!0&&(o=V.readonly(o)),i.default!==void 0&&(o=o.default(i.default));const n={},u=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(const m of u)m in i&&(n[m]=i[m]);const s=["contentEncoding","contentMediaType","contentSchema"];for(const m of s)m in i&&(n[m]=i[m]);for(const m of Object.keys(i))oE.has(m)||(n[m]=i[m]);return Object.keys(n).length>0&&r.registry.add(o,n),i.description&&(o=o.describe(i.description)),o}function w1(i,r){if(typeof i=="boolean")return i?V.any():V.never();let o;try{o=JSON.parse(JSON.stringify(i))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}const l=lE(o,r==null?void 0:r.defaultTarget),n=o.$defs||o.definitions||{},u={version:l,defs:n,refs:new Map,processing:new Set,rootSchema:o,registry:(r==null?void 0:r.registry)??cn};return It(o,u)}function cE(i){return Xk(ba,i)}function sE(i){return e0(Sa,i)}function dE(i){return l0($a,i)}function fE(i){return c0(ka,i)}function mE(i){return _0($l,i)}const T1=Object.freeze(Object.defineProperty({__proto__:null,bigint:fE,boolean:dE,date:mE,number:sE,string:cE},Symbol.toStringTag,{value:"Module"}));_t(Hk());const J_=Object.freeze(Object.defineProperty({__proto__:null,$brand:fm,$input:Hm,$output:Lm,NEVER:dm,TimePrecision:cp,ZodAny:Bc,ZodArray:Xc,ZodBase64:gl,ZodBase64URL:vl,ZodBigInt:ka,ZodBigIntFormat:_l,ZodBoolean:$a,ZodCIDRv4:pl,ZodCIDRv6:hl,ZodCUID:ll,ZodCUID2:ul,ZodCatch:ms,ZodCodec:Ta,ZodCustom:Ea,ZodCustomStringFormat:vr,ZodDate:$l,ZodDefault:ls,ZodDiscriminatedUnion:Pc,ZodE164:yl,ZodEmail:rl,ZodEmoji:al,ZodEnum:mr,ZodError:S1,ZodExactOptional:rs,ZodFile:ns,get ZodFirstPartyTypeKind(){return fc},ZodFunction:$s,ZodGUID:sa,ZodIPv4:fl,ZodIPv6:ml,ZodISODate:Rc,ZodISODateTime:Ic,ZodISODuration:Mc,ZodISOTime:Cc,ZodIntersection:Qc,ZodIssueCode:$1,ZodJWT:bl,ZodKSUID:dl,ZodLazy:bs,ZodLiteral:ts,ZodMAC:Zc,ZodMap:Wc,ZodNaN:hs,ZodNanoID:ol,ZodNever:Gc,ZodNonOptional:wl,ZodNull:Hc,ZodNullable:os,ZodNumber:Sa,ZodNumberFormat:Mi,ZodObject:za,ZodOptional:xl,ZodPipe:Tl,ZodPrefault:cs,ZodPromise:Ss,ZodReadonly:gs,ZodRealError:Vt,ZodRecord:fr,ZodSet:es,ZodString:ba,ZodStringFormat:Pe,ZodSuccess:fs,ZodSymbol:qc,ZodTemplateLiteral:ys,ZodTransform:is,ZodTuple:Kc,ZodType:he,ZodULID:cl,ZodURL:_a,ZodUUID:An,ZodUndefined:Lc,ZodUnion:xa,ZodUnknown:Jc,ZodVoid:Yc,ZodXID:sl,ZodXor:Vc,_ZodString:il,_default:us,_function:pa,any:sh,array:ce,base64:Vp,base64url:Pp,bigint:oh,boolean:qe,catch:ps,check:Oh,cidrv4:Yp,cidrv6:Xp,clone:fn,codec:xh,coerce:T1,config:_t,core:h1,cuid:Mp,cuid2:Zp,custom:ks,date:fh,decode:Sp,decodeAsync:kp,describe:Uh,discriminatedUnion:kl,e164:Qp,email:Ep,emoji:Rp,encode:_p,encodeAsync:$p,endsWith:Vo,enum:Ut,exactOptional:as,file:Sh,flattenError:zc,float32:nh,float64:ih,formatError:xc,fromJSONSchema:w1,function:pa,getErrorMap:z1,globalRegistry:cn,gt:ui,gte:qt,guid:Op,hash:th,hex:eh,hostname:Wp,httpUrl:Ip,includes:Yo,instanceof:jh,int:jo,int32:rh,int64:lh,intersection:wa,invertCodec:wh,ipv4:Bp,ipv6:Gp,iso:hp,json:Ah,jwt:Kp,keyof:mh,ksuid:Hp,lazy:_s,length:ya,literal:E,locales:qm,looseObject:Ot,looseRecord:vh,lowercase:Jo,lt:li,lte:sn,mac:Jp,map:yh,maxLength:va,maxSize:gr,meta:Dh,mime:Po,minLength:Ri,minSize:ci,multipleOf:sr,nan:zh,nanoid:Cp,nativeEnum:_h,negative:Dc,never:dr,nonnegative:Nc,nonoptional:ds,nonpositive:jc,normalize:Qo,null:Sl,nullable:fa,nullish:$h,number:pe,object:N,optional:Fe,overwrite:Ln,parse:gp,parseAsync:vp,partialRecord:gh,pipe:ma,positive:Uc,prefault:ss,preprocess:El,prettifyError:ym,promise:Eh,property:Ac,readonly:vs,record:Ue,refine:zs,regex:Bo,regexes:wc,registry:Ec,safeDecode:xp,safeDecodeAsync:Tp,safeEncode:zp,safeEncodeAsync:wp,safeParse:yp,safeParseAsync:bp,set:bh,setErrorMap:k1,size:ga,slugify:el,startsWith:Xo,strictObject:ph,string:O,stringFormat:Fp,stringbool:Nh,success:kh,superRefine:xs,symbol:ch,templateLiteral:Th,toJSONSchema:fp,toLowerCase:Fo,toUpperCase:Wo,transform:zl,treeifyError:vm,trim:Ko,tuple:Fc,uint32:ah,uint64:uh,ulid:qp,undefined:da,union:ke,unknown:Re,uppercase:Go,url:Ap,util:hm,uuid:Up,uuidv4:Dp,uuidv6:jp,uuidv7:Np,void:dh,xid:Lp,xor:hh},Symbol.toStringTag,{value:"Module"})),pE=Object.freeze(Object.defineProperty({__proto__:null,$brand:fm,$input:Hm,$output:Lm,NEVER:dm,TimePrecision:cp,ZodAny:Bc,ZodArray:Xc,ZodBase64:gl,ZodBase64URL:vl,ZodBigInt:ka,ZodBigIntFormat:_l,ZodBoolean:$a,ZodCIDRv4:pl,ZodCIDRv6:hl,ZodCUID:ll,ZodCUID2:ul,ZodCatch:ms,ZodCodec:Ta,ZodCustom:Ea,ZodCustomStringFormat:vr,ZodDate:$l,ZodDefault:ls,ZodDiscriminatedUnion:Pc,ZodE164:yl,ZodEmail:rl,ZodEmoji:al,ZodEnum:mr,ZodError:S1,ZodExactOptional:rs,ZodFile:ns,get ZodFirstPartyTypeKind(){return fc},ZodFunction:$s,ZodGUID:sa,ZodIPv4:fl,ZodIPv6:ml,ZodISODate:Rc,ZodISODateTime:Ic,ZodISODuration:Mc,ZodISOTime:Cc,ZodIntersection:Qc,ZodIssueCode:$1,ZodJWT:bl,ZodKSUID:dl,ZodLazy:bs,ZodLiteral:ts,ZodMAC:Zc,ZodMap:Wc,ZodNaN:hs,ZodNanoID:ol,ZodNever:Gc,ZodNonOptional:wl,ZodNull:Hc,ZodNullable:os,ZodNumber:Sa,ZodNumberFormat:Mi,ZodObject:za,ZodOptional:xl,ZodPipe:Tl,ZodPrefault:cs,ZodPromise:Ss,ZodReadonly:gs,ZodRealError:Vt,ZodRecord:fr,ZodSet:es,ZodString:ba,ZodStringFormat:Pe,ZodSuccess:fs,ZodSymbol:qc,ZodTemplateLiteral:ys,ZodTransform:is,ZodTuple:Kc,ZodType:he,ZodULID:cl,ZodURL:_a,ZodUUID:An,ZodUndefined:Lc,ZodUnion:xa,ZodUnknown:Jc,ZodVoid:Yc,ZodXID:sl,ZodXor:Vc,_ZodString:il,_default:us,_function:pa,any:sh,array:ce,base64:Vp,base64url:Pp,bigint:oh,boolean:qe,catch:ps,check:Oh,cidrv4:Yp,cidrv6:Xp,clone:fn,codec:xh,coerce:T1,config:_t,core:h1,cuid:Mp,cuid2:Zp,custom:ks,date:fh,decode:Sp,decodeAsync:kp,default:J_,describe:Uh,discriminatedUnion:kl,e164:Qp,email:Ep,emoji:Rp,encode:_p,encodeAsync:$p,endsWith:Vo,enum:Ut,exactOptional:as,file:Sh,flattenError:zc,float32:nh,float64:ih,formatError:xc,fromJSONSchema:w1,function:pa,getErrorMap:z1,globalRegistry:cn,gt:ui,gte:qt,guid:Op,hash:th,hex:eh,hostname:Wp,httpUrl:Ip,includes:Yo,instanceof:jh,int:jo,int32:rh,int64:lh,intersection:wa,invertCodec:wh,ipv4:Bp,ipv6:Gp,iso:hp,json:Ah,jwt:Kp,keyof:mh,ksuid:Hp,lazy:_s,length:ya,literal:E,locales:qm,looseObject:Ot,looseRecord:vh,lowercase:Jo,lt:li,lte:sn,mac:Jp,map:yh,maxLength:va,maxSize:gr,meta:Dh,mime:Po,minLength:Ri,minSize:ci,multipleOf:sr,nan:zh,nanoid:Cp,nativeEnum:_h,negative:Dc,never:dr,nonnegative:Nc,nonoptional:ds,nonpositive:jc,normalize:Qo,null:Sl,nullable:fa,nullish:$h,number:pe,object:N,optional:Fe,overwrite:Ln,parse:gp,parseAsync:vp,partialRecord:gh,pipe:ma,positive:Uc,prefault:ss,preprocess:El,prettifyError:ym,promise:Eh,property:Ac,readonly:vs,record:Ue,refine:zs,regex:Bo,regexes:wc,registry:Ec,safeDecode:xp,safeDecodeAsync:Tp,safeEncode:zp,safeEncodeAsync:wp,safeParse:yp,safeParseAsync:bp,set:bh,setErrorMap:k1,size:ga,slugify:el,startsWith:Xo,strictObject:ph,string:O,stringFormat:Fp,stringbool:Nh,success:kh,superRefine:xs,symbol:ch,templateLiteral:Th,toJSONSchema:fp,toLowerCase:Fo,toUpperCase:Wo,transform:zl,treeifyError:vm,trim:Ko,tuple:Fc,uint32:ah,uint64:uh,ulid:qp,undefined:da,union:ke,unknown:Re,uppercase:Go,url:Ap,util:hm,uuid:Up,uuidv4:Dp,uuidv6:jp,uuidv7:Np,void:dh,xid:Lp,xor:hh,z:J_},Symbol.toStringTag,{value:"Module"})),ar="io.modelcontextprotocol/related-task",ws="2.0",bt=ks(i=>i!==null&&(typeof i=="object"||typeof i=="function")),E1=ke([O(),pe().int()]),O1=O();Ot({ttl:pe().optional(),pollInterval:pe().optional()});const hE=N({ttl:pe().optional()}),gE=N({taskId:O()}),Ih=Ot({progressToken:E1.optional(),[ar]:gE.optional()}),pn=N({_meta:Ih.optional()}),Ol=pn.extend({task:hE.optional()}),vE=i=>Ol.safeParse(i).success,Dt=N({method:O(),params:pn.loose().optional()}),wn=N({_meta:Ih.optional()}),Tn=N({method:O(),params:wn.loose().optional()}),jt=Ot({_meta:Ih.optional()}),Ul=ke([O(),pe().int()]),U1=N({jsonrpc:E(ws),id:Ul,...Dt.shape}).strict(),G_=i=>U1.safeParse(i).success,D1=N({jsonrpc:E(ws),...Tn.shape}).strict(),yE=i=>D1.safeParse(i).success,Rh=N({jsonrpc:E(ws),id:Ul,result:jt}).strict(),ac=i=>Rh.safeParse(i).success;var Je;(function(i){i[i.ConnectionClosed=-32e3]="ConnectionClosed",i[i.RequestTimeout=-32001]="RequestTimeout",i[i.ParseError=-32700]="ParseError",i[i.InvalidRequest=-32600]="InvalidRequest",i[i.MethodNotFound=-32601]="MethodNotFound",i[i.InvalidParams=-32602]="InvalidParams",i[i.InternalError=-32603]="InternalError",i[i.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(Je||(Je={}));const Ch=N({jsonrpc:E(ws),id:Ul.optional(),error:N({code:pe().int(),message:O(),data:Re().optional()})}).strict(),bE=i=>Ch.safeParse(i).success,_E=ke([U1,D1,Rh,Ch]);ke([Rh,Ch]);const Mh=jt.strict(),SE=wn.extend({requestId:Ul.optional(),reason:O().optional()}),Zh=Tn.extend({method:E("notifications/cancelled"),params:SE}),$E=N({src:O(),mimeType:O().optional(),sizes:ce(O()).optional(),theme:Ut(["light","dark"]).optional()}),Dl=N({icons:ce($E).optional()}),ha=N({name:O(),title:O().optional()}),Ts=ha.extend({...ha.shape,...Dl.shape,version:O(),websiteUrl:O().optional(),description:O().optional()}),kE=wa(N({applyDefaults:qe().optional()}),Ue(O(),Re())),zE=El(i=>i&&typeof i=="object"&&!Array.isArray(i)&&Object.keys(i).length===0?{form:{}}:i,wa(N({form:kE.optional(),url:bt.optional()}),Ue(O(),Re()).optional())),xE=Ot({list:bt.optional(),cancel:bt.optional(),requests:Ot({sampling:Ot({createMessage:bt.optional()}).optional(),elicitation:Ot({create:bt.optional()}).optional()}).optional()}),wE=Ot({list:bt.optional(),cancel:bt.optional(),requests:Ot({tools:Ot({call:bt.optional()}).optional()}).optional()}),TE=N({experimental:Ue(O(),bt).optional(),sampling:N({context:bt.optional(),tools:bt.optional()}).optional(),elicitation:zE.optional(),roots:N({listChanged:qe().optional()}).optional(),tasks:xE.optional(),extensions:Ue(O(),bt).optional()}),EE=pn.extend({protocolVersion:O(),capabilities:TE,clientInfo:Ts}),OE=Dt.extend({method:E("initialize"),params:EE}),UE=N({experimental:Ue(O(),bt).optional(),logging:bt.optional(),completions:bt.optional(),prompts:N({listChanged:qe().optional()}).optional(),resources:N({subscribe:qe().optional(),listChanged:qe().optional()}).optional(),tools:N({listChanged:qe().optional()}).optional(),tasks:wE.optional(),extensions:Ue(O(),bt).optional()}),DE=jt.extend({protocolVersion:O(),capabilities:UE,serverInfo:Ts,instructions:O().optional()}),jE=Tn.extend({method:E("notifications/initialized"),params:wn.optional()}),Es=Dt.extend({method:E("ping"),params:pn.optional()}),NE=N({progress:pe(),total:Fe(pe()),message:Fe(O())}),AE=N({...wn.shape,...NE.shape,progressToken:E1}),qh=Tn.extend({method:E("notifications/progress"),params:AE}),IE=pn.extend({cursor:O1.optional()}),jl=Dt.extend({params:IE.optional()}),Nl=jt.extend({nextCursor:O1.optional()}),RE=Ut(["working","input_required","completed","failed","cancelled"]),Al=N({taskId:O(),status:RE,ttl:ke([pe(),Sl()]),createdAt:O(),lastUpdatedAt:O(),pollInterval:Fe(pe()),statusMessage:Fe(O())}),Lh=jt.extend({task:Al}),CE=wn.merge(Al),mc=Tn.extend({method:E("notifications/tasks/status"),params:CE}),Hh=Dt.extend({method:E("tasks/get"),params:pn.extend({taskId:O()})}),Bh=jt.merge(Al),Jh=Dt.extend({method:E("tasks/result"),params:pn.extend({taskId:O()})});jt.loose();const Gh=jl.extend({method:E("tasks/list")}),Yh=Nl.extend({tasks:ce(Al)}),Xh=Dt.extend({method:E("tasks/cancel"),params:pn.extend({taskId:O()})}),ME=jt.merge(Al),j1=N({uri:O(),mimeType:Fe(O()),_meta:Ue(O(),Re()).optional()}),N1=j1.extend({text:O()}),Vh=O().refine(i=>{try{return atob(i),!0}catch{return!1}},{message:"Invalid Base64 string"}),A1=j1.extend({blob:Vh}),Il=Ut(["user","assistant"]),Oa=N({audience:ce(Il).optional(),priority:pe().min(0).max(1).optional(),lastModified:pp({offset:!0}).optional()}),I1=N({...ha.shape,...Dl.shape,uri:O(),description:Fe(O()),mimeType:Fe(O()),size:Fe(pe()),annotations:Oa.optional(),_meta:Fe(Ot({}))}),ZE=N({...ha.shape,...Dl.shape,uriTemplate:O(),description:Fe(O()),mimeType:Fe(O()),annotations:Oa.optional(),_meta:Fe(Ot({}))}),qE=jl.extend({method:E("resources/list")}),R1=Nl.extend({resources:ce(I1)}),LE=jl.extend({method:E("resources/templates/list")}),HE=Nl.extend({resourceTemplates:ce(ZE)}),Ph=pn.extend({uri:O()}),BE=Ph,JE=Dt.extend({method:E("resources/read"),params:BE}),C1=jt.extend({contents:ce(ke([N1,A1]))}),GE=Tn.extend({method:E("notifications/resources/list_changed"),params:wn.optional()}),YE=Ph,XE=Dt.extend({method:E("resources/subscribe"),params:YE}),VE=Ph,PE=Dt.extend({method:E("resources/unsubscribe"),params:VE}),QE=wn.extend({uri:O()}),KE=Tn.extend({method:E("notifications/resources/updated"),params:QE}),FE=N({name:O(),description:Fe(O()),required:Fe(qe())}),WE=N({...ha.shape,...Dl.shape,description:Fe(O()),arguments:Fe(ce(FE)),_meta:Fe(Ot({}))}),e2=jl.extend({method:E("prompts/list")}),t2=Nl.extend({prompts:ce(WE)}),n2=pn.extend({name:O(),arguments:Ue(O(),O()).optional()}),i2=Dt.extend({method:E("prompts/get"),params:n2}),Qh=N({type:E("text"),text:O(),annotations:Oa.optional(),_meta:Ue(O(),Re()).optional()}),Kh=N({type:E("image"),data:Vh,mimeType:O(),annotations:Oa.optional(),_meta:Ue(O(),Re()).optional()}),Fh=N({type:E("audio"),data:Vh,mimeType:O(),annotations:Oa.optional(),_meta:Ue(O(),Re()).optional()}),r2=N({type:E("tool_use"),name:O(),id:O(),input:Ue(O(),Re()),_meta:Ue(O(),Re()).optional()}),M1=N({type:E("resource"),resource:ke([N1,A1]),annotations:Oa.optional(),_meta:Ue(O(),Re()).optional()}),Z1=I1.extend({type:E("resource_link")}),Rl=ke([Qh,Kh,Fh,Z1,M1]),a2=N({role:Il,content:Rl}),o2=jt.extend({description:O().optional(),messages:ce(a2)}),l2=Tn.extend({method:E("notifications/prompts/list_changed"),params:wn.optional()}),u2=N({title:O().optional(),readOnlyHint:qe().optional(),destructiveHint:qe().optional(),idempotentHint:qe().optional(),openWorldHint:qe().optional()}),c2=N({taskSupport:Ut(["required","optional","forbidden"]).optional()}),Wh=N({...ha.shape,...Dl.shape,description:O().optional(),inputSchema:N({type:E("object"),properties:Ue(O(),bt).optional(),required:ce(O()).optional()}).catchall(Re()),outputSchema:N({type:E("object"),properties:Ue(O(),bt).optional(),required:ce(O()).optional()}).catchall(Re()).optional(),annotations:u2.optional(),execution:c2.optional(),_meta:Ue(O(),Re()).optional()}),q1=jl.extend({method:E("tools/list")}),s2=Nl.extend({tools:ce(Wh)}),Os=jt.extend({content:ce(Rl).default([]),structuredContent:Ue(O(),Re()).optional(),isError:qe().optional()});Os.or(jt.extend({toolResult:Re()}));const d2=Ol.extend({name:O(),arguments:Ue(O(),Re()).optional()}),L1=Dt.extend({method:E("tools/call"),params:d2}),f2=Tn.extend({method:E("notifications/tools/list_changed"),params:wn.optional()});N({autoRefresh:qe().default(!0),debounceMs:pe().int().nonnegative().default(300)});const H1=Ut(["debug","info","notice","warning","error","critical","alert","emergency"]),m2=pn.extend({level:H1}),p2=Dt.extend({method:E("logging/setLevel"),params:m2}),h2=wn.extend({level:H1,logger:O().optional(),data:Re()}),g2=Tn.extend({method:E("notifications/message"),params:h2}),v2=N({name:O().optional()}),y2=N({hints:ce(v2).optional(),costPriority:pe().min(0).max(1).optional(),speedPriority:pe().min(0).max(1).optional(),intelligencePriority:pe().min(0).max(1).optional()}),b2=N({mode:Ut(["auto","required","none"]).optional()}),_2=N({type:E("tool_result"),toolUseId:O().describe("The unique identifier for the corresponding tool call."),content:ce(Rl).default([]),structuredContent:N({}).loose().optional(),isError:qe().optional(),_meta:Ue(O(),Re()).optional()}),S2=kl("type",[Qh,Kh,Fh]),pc=kl("type",[Qh,Kh,Fh,r2,_2]),$2=N({role:Il,content:ke([pc,ce(pc)]),_meta:Ue(O(),Re()).optional()}),k2=Ol.extend({messages:ce($2),modelPreferences:y2.optional(),systemPrompt:O().optional(),includeContext:Ut(["none","thisServer","allServers"]).optional(),temperature:pe().optional(),maxTokens:pe().int(),stopSequences:ce(O()).optional(),metadata:bt.optional(),tools:ce(Wh).optional(),toolChoice:b2.optional()}),z2=Dt.extend({method:E("sampling/createMessage"),params:k2}),B1=jt.extend({model:O(),stopReason:Fe(Ut(["endTurn","stopSequence","maxTokens"]).or(O())),role:Il,content:S2}),J1=jt.extend({model:O(),stopReason:Fe(Ut(["endTurn","stopSequence","maxTokens","toolUse"]).or(O())),role:Il,content:ke([pc,ce(pc)])}),x2=N({type:E("boolean"),title:O().optional(),description:O().optional(),default:qe().optional()}),w2=N({type:E("string"),title:O().optional(),description:O().optional(),minLength:pe().optional(),maxLength:pe().optional(),format:Ut(["email","uri","date","date-time"]).optional(),default:O().optional()}),T2=N({type:Ut(["number","integer"]),title:O().optional(),description:O().optional(),minimum:pe().optional(),maximum:pe().optional(),default:pe().optional()}),E2=N({type:E("string"),title:O().optional(),description:O().optional(),enum:ce(O()),default:O().optional()}),O2=N({type:E("string"),title:O().optional(),description:O().optional(),oneOf:ce(N({const:O(),title:O()})),default:O().optional()}),U2=N({type:E("string"),title:O().optional(),description:O().optional(),enum:ce(O()),enumNames:ce(O()).optional(),default:O().optional()}),D2=ke([E2,O2]),j2=N({type:E("array"),title:O().optional(),description:O().optional(),minItems:pe().optional(),maxItems:pe().optional(),items:N({type:E("string"),enum:ce(O())}),default:ce(O()).optional()}),N2=N({type:E("array"),title:O().optional(),description:O().optional(),minItems:pe().optional(),maxItems:pe().optional(),items:N({anyOf:ce(N({const:O(),title:O()}))}),default:ce(O()).optional()}),A2=ke([j2,N2]),I2=ke([U2,D2,A2]),R2=ke([I2,x2,w2,T2]),C2=Ol.extend({mode:E("form").optional(),message:O(),requestedSchema:N({type:E("object"),properties:Ue(O(),R2),required:ce(O()).optional()})}),M2=Ol.extend({mode:E("url"),message:O(),elicitationId:O(),url:O().url()}),Z2=ke([C2,M2]),q2=Dt.extend({method:E("elicitation/create"),params:Z2}),L2=wn.extend({elicitationId:O()}),H2=Tn.extend({method:E("notifications/elicitation/complete"),params:L2}),B2=jt.extend({action:Ut(["accept","decline","cancel"]),content:El(i=>i===null?void 0:i,Ue(O(),ke([O(),pe(),qe(),ce(O())])).optional())}),J2=N({type:E("ref/resource"),uri:O()}),G2=N({type:E("ref/prompt"),name:O()}),Y2=pn.extend({ref:ke([G2,J2]),argument:N({name:O(),value:O()}),context:N({arguments:Ue(O(),O()).optional()}).optional()}),X2=Dt.extend({method:E("completion/complete"),params:Y2}),V2=jt.extend({completion:Ot({values:ce(O()).max(100),total:Fe(pe().int()),hasMore:Fe(qe())})}),P2=N({uri:O().startsWith("file://"),name:O().optional(),_meta:Ue(O(),Re()).optional()}),Q2=Dt.extend({method:E("roots/list"),params:pn.optional()}),K2=jt.extend({roots:ce(P2)}),F2=Tn.extend({method:E("notifications/roots/list_changed"),params:wn.optional()});ke([Es,OE,X2,p2,i2,e2,qE,LE,JE,XE,PE,L1,q1,Hh,Jh,Gh,Xh]);ke([Zh,qh,jE,F2,mc]);ke([Mh,B1,J1,B2,K2,Bh,Yh,Lh]);ke([Es,z2,q2,Q2,Hh,Jh,Gh,Xh]);ke([Zh,qh,g2,KE,GE,f2,l2,mc,H2]);ke([Mh,DE,V2,o2,t2,R1,HE,C1,Os,s2,Bh,Yh,Lh]);class je extends Error{constructor(r,o,l){super(`MCP error ${r}: ${o}`),this.code=r,this.data=l,this.name="McpError"}static fromError(r,o,l){if(r===Je.UrlElicitationRequired&&l){const n=l;if(n.elicitations)return new W2(n.elicitations,o)}return new je(r,o,l)}}class W2 extends je{constructor(r,o=`URL elicitation${r.length>1?"s":""} required`){super(Je.UrlElicitationRequired,o,{elicitations:r})}get elicitations(){var r;return((r=this.data)==null?void 0:r.elicitations)??[]}}function rr(i){return i==="completed"||i==="failed"||i==="cancelled"}new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function Y_(i){const r=nE(i),o=r==null?void 0:r.method;if(!o)throw new Error("Schema is missing a method literal");const l=iE(o);if(typeof l!="string")throw new Error("Schema method literal must be a string");return l}function X_(i,r){const o=g1(i,r);if(!o.success)throw o.error;return o.data}const eO=6e4;class tO{constructor(r){this._options=r,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(Zh,o=>{this._oncancel(o)}),this.setNotificationHandler(qh,o=>{this._onprogress(o)}),this.setRequestHandler(Es,o=>({})),this._taskStore=r==null?void 0:r.taskStore,this._taskMessageQueue=r==null?void 0:r.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Hh,async(o,l)=>{const n=await this._taskStore.getTask(o.params.taskId,l.sessionId);if(!n)throw new je(Je.InvalidParams,"Failed to retrieve task: Task not found");return{...n}}),this.setRequestHandler(Jh,async(o,l)=>{const n=async()=>{var m;const u=o.params.taskId;if(this._taskMessageQueue){let p;for(;p=await this._taskMessageQueue.dequeue(u,l.sessionId);){if(p.type==="response"||p.type==="error"){const g=p.message,v=g.id,b=this._requestResolvers.get(v);if(b)if(this._requestResolvers.delete(v),p.type==="response")b(g);else{const _=g,z=new je(_.error.code,_.error.message,_.error.data);b(z)}else{const _=p.type==="response"?"Response":"Error";this._onerror(new Error(`${_} handler missing for request ${v}`))}continue}await((m=this._transport)==null?void 0:m.send(p.message,{relatedRequestId:l.requestId}))}}const s=await this._taskStore.getTask(u,l.sessionId);if(!s)throw new je(Je.InvalidParams,`Task not found: ${u}`);if(!rr(s.status))return await this._waitForTaskUpdate(u,l.signal),await n();if(rr(s.status)){const p=await this._taskStore.getTaskResult(u,l.sessionId);return this._clearTaskQueue(u),{...p,_meta:{...p._meta,[ar]:{taskId:u}}}}return await n()};return await n()}),this.setRequestHandler(Gh,async(o,l)=>{var n;try{const{tasks:u,nextCursor:s}=await this._taskStore.listTasks((n=o.params)==null?void 0:n.cursor,l.sessionId);return{tasks:u,nextCursor:s,_meta:{}}}catch(u){throw new je(Je.InvalidParams,`Failed to list tasks: ${u instanceof Error?u.message:String(u)}`)}}),this.setRequestHandler(Xh,async(o,l)=>{try{const n=await this._taskStore.getTask(o.params.taskId,l.sessionId);if(!n)throw new je(Je.InvalidParams,`Task not found: ${o.params.taskId}`);if(rr(n.status))throw new je(Je.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(o.params.taskId,"cancelled","Client cancelled task execution.",l.sessionId),this._clearTaskQueue(o.params.taskId);const u=await this._taskStore.getTask(o.params.taskId,l.sessionId);if(!u)throw new je(Je.InvalidParams,`Task not found after cancellation: ${o.params.taskId}`);return{_meta:{},...u}}catch(n){throw n instanceof je?n:new je(Je.InvalidRequest,`Failed to cancel task: ${n instanceof Error?n.message:String(n)}`)}}))}async _oncancel(r){if(!r.params.requestId)return;const o=this._requestHandlerAbortControllers.get(r.params.requestId);o==null||o.abort(r.params.reason)}_setupTimeout(r,o,l,n,u=!1){this._timeoutInfo.set(r,{timeoutId:setTimeout(n,o),startTime:Date.now(),timeout:o,maxTotalTimeout:l,resetTimeoutOnProgress:u,onTimeout:n})}_resetTimeout(r){const o=this._timeoutInfo.get(r);if(!o)return!1;const l=Date.now()-o.startTime;if(o.maxTotalTimeout&&l>=o.maxTotalTimeout)throw this._timeoutInfo.delete(r),je.fromError(Je.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:o.maxTotalTimeout,totalElapsed:l});return clearTimeout(o.timeoutId),o.timeoutId=setTimeout(o.onTimeout,o.timeout),!0}_cleanupTimeout(r){const o=this._timeoutInfo.get(r);o&&(clearTimeout(o.timeoutId),this._timeoutInfo.delete(r))}async connect(r){var u,s,m;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=r;const o=(u=this.transport)==null?void 0:u.onclose;this._transport.onclose=()=>{o==null||o(),this._onclose()};const l=(s=this.transport)==null?void 0:s.onerror;this._transport.onerror=p=>{l==null||l(p),this._onerror(p)};const n=(m=this._transport)==null?void 0:m.onmessage;this._transport.onmessage=(p,g)=>{n==null||n(p,g),ac(p)||bE(p)?this._onresponse(p):G_(p)?this._onrequest(p,g):yE(p)?this._onnotification(p):this._onerror(new Error(`Unknown message type: ${JSON.stringify(p)}`))},await this._transport.start()}_onclose(){var l;const r=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(const n of this._timeoutInfo.values())clearTimeout(n.timeoutId);this._timeoutInfo.clear();for(const n of this._requestHandlerAbortControllers.values())n.abort();this._requestHandlerAbortControllers.clear();const o=je.fromError(Je.ConnectionClosed,"Connection closed");this._transport=void 0,(l=this.onclose)==null||l.call(this);for(const n of r.values())n(o)}_onerror(r){var o;(o=this.onerror)==null||o.call(this,r)}_onnotification(r){const o=this._notificationHandlers.get(r.method)??this.fallbackNotificationHandler;o!==void 0&&Promise.resolve().then(()=>o(r)).catch(l=>this._onerror(new Error(`Uncaught error in notification handler: ${l}`)))}_onrequest(r,o){var v,b,_,z;const l=this._requestHandlers.get(r.method)??this.fallbackRequestHandler,n=this._transport,u=(_=(b=(v=r.params)==null?void 0:v._meta)==null?void 0:b[ar])==null?void 0:_.taskId;if(l===void 0){const x={jsonrpc:"2.0",id:r.id,error:{code:Je.MethodNotFound,message:"Method not found"}};u&&this._taskMessageQueue?this._enqueueTaskMessage(u,{type:"error",message:x,timestamp:Date.now()},n==null?void 0:n.sessionId).catch(H=>this._onerror(new Error(`Failed to enqueue error response: ${H}`))):n==null||n.send(x).catch(H=>this._onerror(new Error(`Failed to send an error response: ${H}`)));return}const s=new AbortController;this._requestHandlerAbortControllers.set(r.id,s);const m=vE(r.params)?r.params.task:void 0,p=this._taskStore?this.requestTaskStore(r,n==null?void 0:n.sessionId):void 0,g={signal:s.signal,sessionId:n==null?void 0:n.sessionId,_meta:(z=r.params)==null?void 0:z._meta,sendNotification:async x=>{if(s.signal.aborted)return;const H={relatedRequestId:r.id};u&&(H.relatedTask={taskId:u}),await this.notification(x,H)},sendRequest:async(x,H,J)=>{var ge;if(s.signal.aborted)throw new je(Je.ConnectionClosed,"Request was cancelled");const F={...J,relatedRequestId:r.id};u&&!F.relatedTask&&(F.relatedTask={taskId:u});const se=((ge=F.relatedTask)==null?void 0:ge.taskId)??u;return se&&p&&await p.updateTaskStatus(se,"input_required"),await this.request(x,H,F)},authInfo:o==null?void 0:o.authInfo,requestId:r.id,requestInfo:o==null?void 0:o.requestInfo,taskId:u,taskStore:p,taskRequestedTtl:m==null?void 0:m.ttl,closeSSEStream:o==null?void 0:o.closeSSEStream,closeStandaloneSSEStream:o==null?void 0:o.closeStandaloneSSEStream};Promise.resolve().then(()=>{m&&this.assertTaskHandlerCapability(r.method)}).then(()=>l(r,g)).then(async x=>{if(s.signal.aborted)return;const H={result:x,jsonrpc:"2.0",id:r.id};u&&this._taskMessageQueue?await this._enqueueTaskMessage(u,{type:"response",message:H,timestamp:Date.now()},n==null?void 0:n.sessionId):await(n==null?void 0:n.send(H))},async x=>{if(s.signal.aborted)return;const H={jsonrpc:"2.0",id:r.id,error:{code:Number.isSafeInteger(x.code)?x.code:Je.InternalError,message:x.message??"Internal error",...x.data!==void 0&&{data:x.data}}};u&&this._taskMessageQueue?await this._enqueueTaskMessage(u,{type:"error",message:H,timestamp:Date.now()},n==null?void 0:n.sessionId):await(n==null?void 0:n.send(H))}).catch(x=>this._onerror(new Error(`Failed to send response: ${x}`))).finally(()=>{this._requestHandlerAbortControllers.get(r.id)===s&&this._requestHandlerAbortControllers.delete(r.id)})}_onprogress(r){const{progressToken:o,...l}=r.params,n=Number(o),u=this._progressHandlers.get(n);if(!u){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(r)}`));return}const s=this._responseHandlers.get(n),m=this._timeoutInfo.get(n);if(m&&s&&m.resetTimeoutOnProgress)try{this._resetTimeout(n)}catch(p){this._responseHandlers.delete(n),this._progressHandlers.delete(n),this._cleanupTimeout(n),s(p);return}u(l)}_onresponse(r){const o=Number(r.id),l=this._requestResolvers.get(o);if(l){if(this._requestResolvers.delete(o),ac(r))l(r);else{const s=new je(r.error.code,r.error.message,r.error.data);l(s)}return}const n=this._responseHandlers.get(o);if(n===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(r)}`));return}this._responseHandlers.delete(o),this._cleanupTimeout(o);let u=!1;if(ac(r)&&r.result&&typeof r.result=="object"){const s=r.result;if(s.task&&typeof s.task=="object"){const m=s.task;typeof m.taskId=="string"&&(u=!0,this._taskProgressTokens.set(m.taskId,o))}}if(u||this._progressHandlers.delete(o),ac(r))n(r);else{const s=je.fromError(r.error.code,r.error.message,r.error.data);n(s)}}get transport(){return this._transport}async close(){var r;await((r=this._transport)==null?void 0:r.close())}async*requestStream(r,o,l){var s,m;const{task:n}=l??{};if(!n){try{yield{type:"result",result:await this.request(r,o,l)}}catch(p){yield{type:"error",error:p instanceof je?p:new je(Je.InternalError,String(p))}}return}let u;try{const p=await this.request(r,Lh,l);if(p.task)u=p.task.taskId,yield{type:"taskCreated",task:p.task};else throw new je(Je.InternalError,"Task creation did not return a task");for(;;){const g=await this.getTask({taskId:u},l);if(yield{type:"taskStatus",task:g},rr(g.status)){g.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:u},o,l)}:g.status==="failed"?yield{type:"error",error:new je(Je.InternalError,`Task ${u} failed`)}:g.status==="cancelled"&&(yield{type:"error",error:new je(Je.InternalError,`Task ${u} was cancelled`)});return}if(g.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:u},o,l)};return}const v=g.pollInterval??((s=this._options)==null?void 0:s.defaultTaskPollInterval)??1e3;await new Promise(b=>setTimeout(b,v)),(m=l==null?void 0:l.signal)==null||m.throwIfAborted()}}catch(p){yield{type:"error",error:p instanceof je?p:new je(Je.InternalError,String(p))}}}request(r,o,l){const{relatedRequestId:n,resumptionToken:u,onresumptiontoken:s,task:m,relatedTask:p}=l??{};return new Promise((g,v)=>{var se,ge,be,we,re;const b=G=>{v(G)};if(!this._transport){b(new Error("Not connected"));return}if(((se=this._options)==null?void 0:se.enforceStrictCapabilities)===!0)try{this.assertCapabilityForMethod(r.method),m&&this.assertTaskCapability(r.method)}catch(G){b(G);return}(ge=l==null?void 0:l.signal)==null||ge.throwIfAborted();const _=this._requestMessageId++,z={...r,jsonrpc:"2.0",id:_};l!=null&&l.onprogress&&(this._progressHandlers.set(_,l.onprogress),z.params={...r.params,_meta:{...((be=r.params)==null?void 0:be._meta)||{},progressToken:_}}),m&&(z.params={...z.params,task:m}),p&&(z.params={...z.params,_meta:{...((we=z.params)==null?void 0:we._meta)||{},[ar]:p}});const x=G=>{var Qe;this._responseHandlers.delete(_),this._progressHandlers.delete(_),this._cleanupTimeout(_),(Qe=this._transport)==null||Qe.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:_,reason:String(G)}},{relatedRequestId:n,resumptionToken:u,onresumptiontoken:s}).catch(Ct=>this._onerror(new Error(`Failed to send cancellation: ${Ct}`)));const ve=G instanceof je?G:new je(Je.RequestTimeout,String(G));v(ve)};this._responseHandlers.set(_,G=>{var ve;if(!((ve=l==null?void 0:l.signal)!=null&&ve.aborted)){if(G instanceof Error)return v(G);try{const Qe=g1(o,G.result);Qe.success?g(Qe.data):v(Qe.error)}catch(Qe){v(Qe)}}}),(re=l==null?void 0:l.signal)==null||re.addEventListener("abort",()=>{var G;x((G=l==null?void 0:l.signal)==null?void 0:G.reason)});const H=(l==null?void 0:l.timeout)??eO,J=()=>x(je.fromError(Je.RequestTimeout,"Request timed out",{timeout:H}));this._setupTimeout(_,H,l==null?void 0:l.maxTotalTimeout,J,(l==null?void 0:l.resetTimeoutOnProgress)??!1);const F=p==null?void 0:p.taskId;if(F){const G=ve=>{const Qe=this._responseHandlers.get(_);Qe?Qe(ve):this._onerror(new Error(`Response handler missing for side-channeled request ${_}`))};this._requestResolvers.set(_,G),this._enqueueTaskMessage(F,{type:"request",message:z,timestamp:Date.now()}).catch(ve=>{this._cleanupTimeout(_),v(ve)})}else this._transport.send(z,{relatedRequestId:n,resumptionToken:u,onresumptiontoken:s}).catch(G=>{this._cleanupTimeout(_),v(G)})})}async getTask(r,o){return this.request({method:"tasks/get",params:r},Bh,o)}async getTaskResult(r,o,l){return this.request({method:"tasks/result",params:r},o,l)}async listTasks(r,o){return this.request({method:"tasks/list",params:r},Yh,o)}async cancelTask(r,o){return this.request({method:"tasks/cancel",params:r},ME,o)}async notification(r,o){var m,p,g,v;if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(r.method);const l=(m=o==null?void 0:o.relatedTask)==null?void 0:m.taskId;if(l){const b={...r,jsonrpc:"2.0",params:{...r.params,_meta:{...((p=r.params)==null?void 0:p._meta)||{},[ar]:o.relatedTask}}};await this._enqueueTaskMessage(l,{type:"notification",message:b,timestamp:Date.now()});return}if((((g=this._options)==null?void 0:g.debouncedNotificationMethods)??[]).includes(r.method)&&!r.params&&!(o!=null&&o.relatedRequestId)&&!(o!=null&&o.relatedTask)){if(this._pendingDebouncedNotifications.has(r.method))return;this._pendingDebouncedNotifications.add(r.method),Promise.resolve().then(()=>{var _,z;if(this._pendingDebouncedNotifications.delete(r.method),!this._transport)return;let b={...r,jsonrpc:"2.0"};o!=null&&o.relatedTask&&(b={...b,params:{...b.params,_meta:{...((_=b.params)==null?void 0:_._meta)||{},[ar]:o.relatedTask}}}),(z=this._transport)==null||z.send(b,o).catch(x=>this._onerror(x))});return}let s={...r,jsonrpc:"2.0"};o!=null&&o.relatedTask&&(s={...s,params:{...s.params,_meta:{...((v=s.params)==null?void 0:v._meta)||{},[ar]:o.relatedTask}}}),await this._transport.send(s,o)}setRequestHandler(r,o){const l=Y_(r);this.assertRequestHandlerCapability(l),this._requestHandlers.set(l,(n,u)=>{const s=X_(r,n);return Promise.resolve(o(s,u))})}removeRequestHandler(r){this._requestHandlers.delete(r)}assertCanSetRequestHandler(r){if(this._requestHandlers.has(r))throw new Error(`A request handler for ${r} already exists, which would be overridden`)}setNotificationHandler(r,o){const l=Y_(r);this._notificationHandlers.set(l,n=>{const u=X_(r,n);return Promise.resolve(o(u))})}removeNotificationHandler(r){this._notificationHandlers.delete(r)}_cleanupTaskProgressHandler(r){const o=this._taskProgressTokens.get(r);o!==void 0&&(this._progressHandlers.delete(o),this._taskProgressTokens.delete(r))}async _enqueueTaskMessage(r,o,l){var u;if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");const n=(u=this._options)==null?void 0:u.maxTaskQueueSize;await this._taskMessageQueue.enqueue(r,o,l,n)}async _clearTaskQueue(r,o){if(this._taskMessageQueue){const l=await this._taskMessageQueue.dequeueAll(r,o);for(const n of l)if(n.type==="request"&&G_(n.message)){const u=n.message.id,s=this._requestResolvers.get(u);s?(s(new je(Je.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(u)):this._onerror(new Error(`Resolver missing for request ${u} during task ${r} cleanup`))}}}async _waitForTaskUpdate(r,o){var n,u;let l=((n=this._options)==null?void 0:n.defaultTaskPollInterval)??1e3;try{const s=await((u=this._taskStore)==null?void 0:u.getTask(r));s!=null&&s.pollInterval&&(l=s.pollInterval)}catch{}return new Promise((s,m)=>{if(o.aborted){m(new je(Je.InvalidRequest,"Request cancelled"));return}const p=setTimeout(s,l);o.addEventListener("abort",()=>{clearTimeout(p),m(new je(Je.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(r,o){const l=this._taskStore;if(!l)throw new Error("No task store configured");return{createTask:async n=>{if(!r)throw new Error("No request provided");return await l.createTask(n,r.id,{method:r.method,params:r.params},o)},getTask:async n=>{const u=await l.getTask(n,o);if(!u)throw new je(Je.InvalidParams,"Failed to retrieve task: Task not found");return u},storeTaskResult:async(n,u,s)=>{await l.storeTaskResult(n,u,s,o);const m=await l.getTask(n,o);if(m){const p=mc.parse({method:"notifications/tasks/status",params:m});await this.notification(p),rr(m.status)&&this._cleanupTaskProgressHandler(n)}},getTaskResult:n=>l.getTaskResult(n,o),updateTaskStatus:async(n,u,s)=>{const m=await l.getTask(n,o);if(!m)throw new je(Je.InvalidParams,`Task "${n}" not found - it may have been cleaned up`);if(rr(m.status))throw new je(Je.InvalidParams,`Cannot update task "${n}" from terminal status "${m.status}" to "${u}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await l.updateTaskStatus(n,u,s,o);const p=await l.getTask(n,o);if(p){const g=mc.parse({method:"notifications/tasks/status",params:p});await this.notification(g),rr(p.status)&&this._cleanupTaskProgressHandler(n)}},listTasks:n=>l.listTasks(n,o)}}}function V_(i){return i!==null&&typeof i=="object"&&!Array.isArray(i)}function nO(i,r){const o={...i};for(const l in r){const n=l,u=r[n];if(u===void 0)continue;const s=o[n];V_(s)&&V_(u)?o[n]={...s,...u}:o[n]=u}return o}(i=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(i,{get:(r,o)=>(typeof require<"u"?require:r)[o]}):i)(function(i){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+i+'" is not supported')});let iO=class extends tO{constructor(){super(...arguments);ne(this,"_registeredMethods",new Set);ne(this,"_eventSlots",new Map);ne(this,"setRequestHandler",(o,l)=>{this._assertMethodNotRegistered(o,"setRequestHandler"),super.setRequestHandler(o,l)});ne(this,"setNotificationHandler",(o,l)=>{this._assertMethodNotRegistered(o,"setNotificationHandler"),super.setNotificationHandler(o,l)});ne(this,"replaceRequestHandler",(o,l)=>{let n=o.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(o,l)})}onEventDispatch(o,l){}_ensureEventSlot(o){let l=this._eventSlots.get(o);if(!l){let n=this.eventSchemas[o];if(!n)throw Error(`Unknown event: ${String(o)}`);l={listeners:[]},this._eventSlots.set(o,l);let u=n.shape.method.value;this._registeredMethods.add(u);let s=l;super.setNotificationHandler(n,m=>{var g;let p=m.params;this.onEventDispatch(o,p),(g=s.onHandler)==null||g.call(s,p);for(let v of[...s.listeners])v(p)})}return l}setEventHandler(o,l){let n=this._ensureEventSlot(o);n.onHandler&&l&&console.warn(`[MCP Apps] on${String(o)} handler replaced. Use addEventListener("${String(o)}", …) to add multiple listeners without replacing.`),n.onHandler=l}getEventHandler(o){var l;return(l=this._eventSlots.get(o))==null?void 0:l.onHandler}addEventListener(o,l){this._ensureEventSlot(o).listeners.push(l)}removeEventListener(o,l){let n=this._eventSlots.get(o);if(!n)return;let u=n.listeners.indexOf(l);u!==-1&&n.listeners.splice(u,1)}warnIfRequestHandlerReplaced(o,l,n){l&&n&&console.warn(`[MCP Apps] ${o} handler replaced. Previous handler will no longer be called.`)}_assertMethodNotRegistered(o,l){let n=o.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for "${n}" already registered (via ${l}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}};var rO="2026-01-26",aO="ui/notifications/tool-input-partial";let G1=class{constructor(r=window.parent,o){ne(this,"eventTarget");ne(this,"eventSource");ne(this,"messageListener");ne(this,"onclose");ne(this,"onerror");ne(this,"onmessage");ne(this,"sessionId");ne(this,"setProtocolVersion");this.eventTarget=r,this.eventSource=o,this.messageListener=l=>{var u,s,m;if(o&&l.source!==this.eventSource){console.debug("Ignoring message from unknown source",l);return}let n=_E.safeParse(l.data);n.success?(console.debug("Parsed message",n.data),(u=this.onmessage)==null||u.call(this,n.data)):((s=l.data)==null?void 0:s.jsonrpc)!=="2.0"?console.debug("Ignoring non-JSON-RPC message",n.error.message,l):(console.error("Failed to parse message",n.error.message,l),(m=this.onerror)==null||m.call(this,Error("Invalid JSON-RPC message received: "+n.error.message)))}}async start(){window.addEventListener("message",this.messageListener)}async send(r,o){r.method!==aO&&console.debug("Sending message",r),this.eventTarget.postMessage(r,"*")}async close(){var r;window.removeEventListener("message",this.messageListener),(r=this.onclose)==null||r.call(this)}};var oO=ke([E("light"),E("dark")]).describe("Color theme preference for the host environment."),No=ke([E("inline"),E("fullscreen"),E("pip")]).describe("Display mode for UI presentation."),lO=ke([E("--color-background-primary"),E("--color-background-secondary"),E("--color-background-tertiary"),E("--color-background-inverse"),E("--color-background-ghost"),E("--color-background-info"),E("--color-background-danger"),E("--color-background-success"),E("--color-background-warning"),E("--color-background-disabled"),E("--color-text-primary"),E("--color-text-secondary"),E("--color-text-tertiary"),E("--color-text-inverse"),E("--color-text-ghost"),E("--color-text-info"),E("--color-text-danger"),E("--color-text-success"),E("--color-text-warning"),E("--color-text-disabled"),E("--color-border-primary"),E("--color-border-secondary"),E("--color-border-tertiary"),E("--color-border-inverse"),E("--color-border-ghost"),E("--color-border-info"),E("--color-border-danger"),E("--color-border-success"),E("--color-border-warning"),E("--color-border-disabled"),E("--color-ring-primary"),E("--color-ring-secondary"),E("--color-ring-inverse"),E("--color-ring-info"),E("--color-ring-danger"),E("--color-ring-success"),E("--color-ring-warning"),E("--font-sans"),E("--font-mono"),E("--font-weight-normal"),E("--font-weight-medium"),E("--font-weight-semibold"),E("--font-weight-bold"),E("--font-text-xs-size"),E("--font-text-sm-size"),E("--font-text-md-size"),E("--font-text-lg-size"),E("--font-heading-xs-size"),E("--font-heading-sm-size"),E("--font-heading-md-size"),E("--font-heading-lg-size"),E("--font-heading-xl-size"),E("--font-heading-2xl-size"),E("--font-heading-3xl-size"),E("--font-text-xs-line-height"),E("--font-text-sm-line-height"),E("--font-text-md-line-height"),E("--font-text-lg-line-height"),E("--font-heading-xs-line-height"),E("--font-heading-sm-line-height"),E("--font-heading-md-line-height"),E("--font-heading-lg-line-height"),E("--font-heading-xl-line-height"),E("--font-heading-2xl-line-height"),E("--font-heading-3xl-line-height"),E("--border-radius-xs"),E("--border-radius-sm"),E("--border-radius-md"),E("--border-radius-lg"),E("--border-radius-xl"),E("--border-radius-full"),E("--border-width-regular"),E("--shadow-hairline"),E("--shadow-sm"),E("--shadow-md"),E("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),uO=Ue(lO.describe(`Style variables for theming MCP apps.
120
120
 
121
121
  Individual style keys are optional - hosts may provide any subset of these values.
122
122
  Values are strings containing CSS values (colors, sizes, font stacks, etc.).
123
123
 
124
124
  Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
125
- for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),ze([O(),ua()]).describe(`Style variables for theming MCP apps.
125
+ for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),ke([O(),da()]).describe(`Style variables for theming MCP apps.
126
126
 
127
127
  Individual style keys are optional - hosts may provide any subset of these values.
128
128
  Values are strings containing CSS values (colors, sizes, font stacks, etc.).
@@ -134,10 +134,10 @@ Individual style keys are optional - hosts may provide any subset of these value
134
134
  Values are strings containing CSS values (colors, sizes, font stacks, etc.).
135
135
 
136
136
  Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
137
- for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);N({method:E("ui/open-link"),params:N({url:O().describe("URL to open in the host's browser")})});var lO=N({isError:Le().optional().describe("True if the host failed to open the URL (e.g., due to security policy).")}).passthrough(),uO=N({isError:Le().optional().describe("True if the download failed (e.g., user cancelled or host denied).")}).passthrough(),cO=N({isError:Le().optional().describe("True if the host rejected or failed to deliver the message.")}).passthrough();N({method:E("ui/notifications/sandbox-proxy-ready"),params:N({})});var Fh=N({connectDomains:ce(O()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).
137
+ for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);N({method:E("ui/open-link"),params:N({url:O().describe("URL to open in the host's browser")})});var cO=N({isError:qe().optional().describe("True if the host failed to open the URL (e.g., due to security policy).")}).passthrough(),sO=N({isError:qe().optional().describe("True if the download failed (e.g., user cancelled or host denied).")}).passthrough(),dO=N({isError:qe().optional().describe("True if the host rejected or failed to deliver the message.")}).passthrough();N({method:E("ui/notifications/sandbox-proxy-ready"),params:N({})});var eg=N({connectDomains:ce(O()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).
138
138
 
139
139
  - Maps to CSP \`connect-src\` directive
140
- - Empty or omitted → no network connections (secure default)`),resourceDomains:ce(O()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:ce(O()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:ce(O()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),Wh=N({camera:N({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."),microphone:N({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."),geolocation:N({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."),clipboardWrite:N({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.")});N({method:E("ui/notifications/size-changed"),params:N({width:ve().optional().describe("New width in pixels."),height:ve().optional().describe("New height in pixels.")})});var sO=N({method:E("ui/notifications/tool-input"),params:N({arguments:je(O(),Me().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.")})}),dO=N({method:E("ui/notifications/tool-input-partial"),params:N({arguments:je(O(),Me().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).")})}),fO=N({method:E("ui/notifications/tool-cancelled"),params:N({reason:O().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").')})}),mO=N({fonts:O().optional()}),pO=N({variables:oO.optional().describe("CSS variables for theming the app."),css:mO.optional().describe("CSS blocks that apps can inject.")}),hO=N({method:E("ui/resource-teardown"),params:N({})});je(O(),Me());var V_=N({text:N({}).optional().describe("Host supports text content blocks."),image:N({}).optional().describe("Host supports image content blocks."),audio:N({}).optional().describe("Host supports audio content blocks."),resource:N({}).optional().describe("Host supports resource content blocks."),resourceLink:N({}).optional().describe("Host supports resource link content blocks."),structuredContent:N({}).optional().describe("Host supports structured content.")});N({method:E("ui/notifications/request-teardown"),params:N({}).optional()});var gO=N({experimental:N({}).optional().describe("Experimental features (structure TBD)."),openLinks:N({}).optional().describe("Host supports opening external URLs."),downloadFile:N({}).optional().describe("Host supports file downloads via ui/download-file."),serverTools:N({listChanged:Le().optional().describe("Host supports tools/list_changed notifications.")}).optional().describe("Host can proxy tool calls to the MCP server."),serverResources:N({listChanged:Le().optional().describe("Host supports resources/list_changed notifications.")}).optional().describe("Host can proxy resource reads to the MCP server."),logging:N({}).optional().describe("Host accepts log messages."),sandbox:N({permissions:Wh.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."),csp:Fh.optional().describe("CSP domains approved by the host.")}).optional().describe("Sandbox configuration applied by the host."),updateModelContext:V_.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."),message:V_.optional().describe("Host supports receiving content messages (ui/message) from the view."),sampling:N({tools:N({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.")}).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")}),vO=N({experimental:N({}).optional().describe("Experimental features (structure TBD)."),tools:N({listChanged:Le().optional().describe("App supports tools/list_changed notifications.")}).optional().describe("App exposes MCP-style tools that the host can call."),availableDisplayModes:ce(Do).optional().describe("Display modes the app supports.")});N({method:E("ui/notifications/initialized"),params:N({}).optional()});N({csp:Fh.optional().describe("Content Security Policy configuration for UI resources."),permissions:Wh.optional().describe("Sandbox permissions requested by the UI resource."),domain:O().optional().describe(`Dedicated origin for view sandbox.
140
+ - Empty or omitted → no network connections (secure default)`),resourceDomains:ce(O()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:ce(O()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:ce(O()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),tg=N({camera:N({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."),microphone:N({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."),geolocation:N({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."),clipboardWrite:N({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.")});N({method:E("ui/notifications/size-changed"),params:N({width:pe().optional().describe("New width in pixels."),height:pe().optional().describe("New height in pixels.")})});var fO=N({method:E("ui/notifications/tool-input"),params:N({arguments:Ue(O(),Re().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.")})}),mO=N({method:E("ui/notifications/tool-input-partial"),params:N({arguments:Ue(O(),Re().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).")})}),pO=N({method:E("ui/notifications/tool-cancelled"),params:N({reason:O().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").')})}),hO=N({fonts:O().optional()}),gO=N({variables:uO.optional().describe("CSS variables for theming the app."),css:hO.optional().describe("CSS blocks that apps can inject.")}),vO=N({method:E("ui/resource-teardown"),params:N({})});Ue(O(),Re());var P_=N({text:N({}).optional().describe("Host supports text content blocks."),image:N({}).optional().describe("Host supports image content blocks."),audio:N({}).optional().describe("Host supports audio content blocks."),resource:N({}).optional().describe("Host supports resource content blocks."),resourceLink:N({}).optional().describe("Host supports resource link content blocks."),structuredContent:N({}).optional().describe("Host supports structured content.")});N({method:E("ui/notifications/request-teardown"),params:N({}).optional()});var yO=N({experimental:N({}).optional().describe("Experimental features (structure TBD)."),openLinks:N({}).optional().describe("Host supports opening external URLs."),downloadFile:N({}).optional().describe("Host supports file downloads via ui/download-file."),serverTools:N({listChanged:qe().optional().describe("Host supports tools/list_changed notifications.")}).optional().describe("Host can proxy tool calls to the MCP server."),serverResources:N({listChanged:qe().optional().describe("Host supports resources/list_changed notifications.")}).optional().describe("Host can proxy resource reads to the MCP server."),logging:N({}).optional().describe("Host accepts log messages."),sandbox:N({permissions:tg.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."),csp:eg.optional().describe("CSP domains approved by the host.")}).optional().describe("Sandbox configuration applied by the host."),updateModelContext:P_.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."),message:P_.optional().describe("Host supports receiving content messages (ui/message) from the view."),sampling:N({tools:N({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.")}).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")}),bO=N({experimental:N({}).optional().describe("Experimental features (structure TBD)."),tools:N({listChanged:qe().optional().describe("App supports tools/list_changed notifications.")}).optional().describe("App exposes MCP-style tools that the host can call."),availableDisplayModes:ce(No).optional().describe("Display modes the app supports.")});N({method:E("ui/notifications/initialized"),params:N({}).optional()});N({csp:eg.optional().describe("Content Security Policy configuration for UI resources."),permissions:tg.optional().describe("Sandbox permissions requested by the UI resource."),domain:O().optional().describe(`Dedicated origin for view sandbox.
141
141
 
142
142
  Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.
143
143
 
@@ -145,23 +145,23 @@ Useful when views need stable, dedicated origins for OAuth callbacks, CORS polic
145
145
  - Hash-based subdomains (e.g., \`{hash}.claudemcpcontent.com\`)
146
146
  - URL-derived subdomains (e.g., \`www-example-com.oaiusercontent.com\`)
147
147
 
148
- If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:Le().optional().describe(`Visual boundary preference - true if view prefers a visible border.
148
+ If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:qe().optional().describe(`Visual boundary preference - true if view prefers a visible border.
149
149
 
150
150
  Boolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.
151
151
 
152
152
  - \`true\`: request visible border + background
153
153
  - \`false\`: request no visible border + background
154
- - omitted: host decides border`)});N({method:E("ui/request-display-mode"),params:N({mode:Do.describe("The display mode being requested.")})});var yO=N({mode:Do.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough(),bO=ze([E("model"),E("app")]).describe("Tool visibility scope - who can access the tool.");N({resourceUri:O().optional(),visibility:ce(bO).optional().describe(`Who can access this tool. Default: ["model", "app"]
154
+ - omitted: host decides border`)});N({method:E("ui/request-display-mode"),params:N({mode:No.describe("The display mode being requested.")})});var _O=N({mode:No.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough(),SO=ke([E("model"),E("app")]).describe("Tool visibility scope - who can access the tool.");N({resourceUri:O().optional(),visibility:ce(SO).optional().describe(`Who can access this tool. Default: ["model", "app"]
155
155
  - "model": Tool visible to and callable by the agent
156
- - "app": Tool callable by the app from this server only`),csp:ur().optional(),permissions:ur().optional()});N({mimeTypes:ce(O()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')});N({method:E("ui/download-file"),params:N({contents:ce(ze([Cz,Mz])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})});N({method:E("ui/message"),params:N({role:E("user").describe('Message role, currently only "user" is supported.'),content:ce(Al).describe("Message content blocks (text, image, etc.).")})});N({method:E("ui/notifications/sandbox-resource-ready"),params:N({html:O().describe("HTML content to load into the inner iframe."),sandbox:O().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:Fh.optional().describe("CSP configuration from resource metadata."),permissions:Wh.optional().describe("Sandbox permissions from resource metadata.")})});var _O=N({method:E("ui/notifications/tool-result"),params:ws.describe("Standard MCP tool execution result.")}),Gz=N({toolInfo:N({id:El.optional().describe("JSON-RPC id of the tools/call request."),tool:Kh.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:rO.optional().describe("Current color theme preference."),styles:pO.optional().describe("Style configuration for theming the app."),displayMode:Do.optional().describe("How the UI is currently displayed."),availableDisplayModes:ce(Do).optional().describe("Display modes the host supports."),containerDimensions:ze([N({height:ve().describe("Fixed container height in pixels.")}),N({maxHeight:ze([ve(),ua()]).optional().describe("Maximum container height in pixels.")})]).and(ze([N({width:ve().describe("Fixed container width in pixels.")}),N({maxWidth:ze([ve(),ua()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
157
- container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:O().optional().describe("User's language and region preference in BCP 47 format."),timeZone:O().optional().describe("User's timezone in IANA format."),userAgent:O().optional().describe("Host application identifier."),platform:ze([E("web"),E("desktop"),E("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:N({touch:Le().optional().describe("Whether the device supports touch input."),hover:Le().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:N({top:ve().describe("Top safe area inset in pixels."),right:ve().describe("Right safe area inset in pixels."),bottom:ve().describe("Bottom safe area inset in pixels."),left:ve().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),SO=N({method:E("ui/notifications/host-context-changed"),params:Gz.describe("Partial context update containing only changed fields.")});N({method:E("ui/update-model-context"),params:N({content:ce(Al).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:je(O(),Me().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})});N({method:E("ui/initialize"),params:N({appInfo:zs.describe("App identification (name and version)."),appCapabilities:vO.describe("Features and capabilities this app provides."),protocolVersion:O().describe("Protocol version this app supports.")})});var $O=N({protocolVersion:O().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:zs.describe("Host application identification and version."),hostCapabilities:gO.describe("Features and capabilities provided by the host."),hostContext:Gz.describe("Rich context about the host environment.")}).passthrough(),kO={target:"draft-2020-12"};async function P_(i,r){let o=i["~standard"];if(o.jsonSchema)return o.jsonSchema[r](kO);if(o.vendor==="zod"){let{z:l}=await Zw(()=>Promise.resolve().then(()=>fE),void 0,import.meta.url);return l.toJSONSchema(i,{io:r})}throw Error(`Schema (vendor: ${o.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function Q_(i,r,o=""){let l=await i["~standard"].validate(r);if(l.issues){let n=l.issues.map(u=>{var m;let s=(m=u.path)==null?void 0:m.map(p=>typeof p=="object"?p.key:p).join(".");return s?`${s}: ${u.message}`:u.message}).join("; ");throw Error(o+n)}return l.value}function K_(i){let r=document.documentElement;r.setAttribute("data-theme",i),r.style.colorScheme=i}function F_(i,r=document.documentElement){for(let[o,l]of Object.entries(i))l!==void 0&&r.style.setProperty(o,l)}function W_(i){if(document.getElementById("__mcp-host-fonts"))return;let r=document.createElement("style");r.id="__mcp-host-fonts",r.textContent=i,document.head.appendChild(r)}const hc=class hc extends tO{constructor(o,l={},n={autoResize:!0}){super(n);te(this,"_appInfo");te(this,"_capabilities");te(this,"options");te(this,"_hostCapabilities");te(this,"_hostInfo");te(this,"_hostContext");te(this,"_registeredTools",{});te(this,"_initializedSent",!1);te(this,"eventSchemas",{toolinput:sO,toolinputpartial:dO,toolresult:_O,toolcancelled:fO,hostcontextchanged:SO});te(this,"_everHadListener",new Set);te(this,"_toolHandlersInitialized",!1);te(this,"_onteardown");te(this,"_oncalltool");te(this,"_onlisttools");te(this,"sendOpenLink",this.openLink);this._appInfo=o,this._capabilities=l,this.options=n,n.allowUnsafeEval||vt({jitless:!0}),this.setRequestHandler(xs,u=>(console.log("Received ping:",u.params),{})),this.setEventHandler("hostcontextchanged",void 0)}_assertInitialized(o){var n;if(this._initializedSent)return;let l=`[ext-apps] App.${o}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if((n=this.options)!=null&&n.strict)throw Error(l);console.warn(`${l}. This will throw in a future release.`)}_assertHandlerTiming(o){var n;if(!hc.ONE_SHOT_EVENTS.has(o)||this._everHadListener.has(o)||(this._everHadListener.add(o),!this._initializedSent))return;let l=`[ext-apps] "${String(o)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if((n=this.options)!=null&&n.strict)throw Error(l);console.warn(l)}setEventHandler(o,l){l&&this._assertHandlerTiming(o),super.setEventHandler(o,l)}addEventListener(o,l){this._assertHandlerTiming(o),super.addEventListener(o,l)}onEventDispatch(o,l){o==="hostcontextchanged"&&(this._hostContext={...this._hostContext,...l})}registerCapabilities(o){if(this.transport)throw Error("Cannot register capabilities after transport is established");this._capabilities=eO(this._capabilities,o)}registerTool(o,l,n){if(this._registeredTools[o])throw Error(`Tool ${o} is already registered`);let u=this,s=()=>{var g;u._initializedSent&&((g=u._capabilities.tools)!=null&&g.listChanged)&&u.sendToolListChanged()},m=l.inputSchema!==void 0,p={title:l.title,description:l.description,inputSchema:l.inputSchema,outputSchema:l.outputSchema,annotations:l.annotations,_meta:l._meta,enabled:!0,enable(){this.enabled=!0,s()},disable(){this.enabled=!1,s()},update(g){Object.assign(this,g),s()},remove(){u._registeredTools[o]===p&&(delete u._registeredTools[o],s())},handler:async(g,v)=>{if(!p.enabled)throw Error(`Tool ${o} is disabled`);let b;if(m){let _=p.inputSchema,z=_?await Q_(_,g??{},`Invalid input for tool ${o}: `):g??{};b=await n(z,v)}else b=await n(v);return p.outputSchema&&!b.isError&&(b.structuredContent=await Q_(p.outputSchema,b.structuredContent,`Invalid output for tool ${o}: `)),b}};return this._registeredTools[o]=p,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),s(),p}ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(o,l)=>{let n=this._registeredTools[o.name];if(!n)throw Error(`Tool ${o.name} not found`);return n.handler(o.arguments,l)},this.onlisttools=async(o,l)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([n,u])=>u.enabled).map(async([n,u])=>{let s={name:n,title:u.title,description:u.description,inputSchema:u.inputSchema?await P_(u.inputSchema,"input"):{type:"object",properties:{}}};return u.outputSchema&&(s.outputSchema=await P_(u.outputSchema,"output")),u.annotations&&(s.annotations=u.annotations),u._meta&&(s._meta=u._meta),s}))}))}async sendToolListChanged(o={}){this._assertInitialized("sendToolListChanged"),await this.notification({method:"notifications/tools/list_changed",params:o})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler("toolinput")}set ontoolinput(o){this.setEventHandler("toolinput",o)}get ontoolinputpartial(){return this.getEventHandler("toolinputpartial")}set ontoolinputpartial(o){this.setEventHandler("toolinputpartial",o)}get ontoolresult(){return this.getEventHandler("toolresult")}set ontoolresult(o){this.setEventHandler("toolresult",o)}get ontoolcancelled(){return this.getEventHandler("toolcancelled")}set ontoolcancelled(o){this.setEventHandler("toolcancelled",o)}get onhostcontextchanged(){return this.getEventHandler("hostcontextchanged")}set onhostcontextchanged(o){this.setEventHandler("hostcontextchanged",o)}get onteardown(){return this._onteardown}set onteardown(o){this.warnIfRequestHandlerReplaced("onteardown",this._onteardown,o),this._onteardown=o,this.replaceRequestHandler(hO,(l,n)=>{if(!this._onteardown)throw Error("No onteardown handler set");return this._onteardown(l.params,n)})}get oncalltool(){return this._oncalltool}set oncalltool(o){this.warnIfRequestHandlerReplaced("oncalltool",this._oncalltool,o),this._oncalltool=o,this.replaceRequestHandler(qz,(l,n)=>{if(!this._oncalltool)throw Error("No oncalltool handler set");return this._oncalltool(l.params,n)})}get onlisttools(){return this._onlisttools}set onlisttools(o){this.warnIfRequestHandlerReplaced("onlisttools",this._onlisttools,o),this._onlisttools=o,this.replaceRequestHandler(Zz,(l,n)=>{if(!this._onlisttools)throw Error("No onlisttools handler set");return this._onlisttools(l.params,n)})}assertCapabilityForMethod(o){var l;switch(o){case"sampling/createMessage":if(!((l=this._hostCapabilities)!=null&&l.sampling))throw Error(`Host does not support sampling (required for ${o})`);break}}assertRequestHandlerCapability(o){switch(o){case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${o})`);return;case"ping":case"ui/resource-teardown":return;default:throw Error(`No handler for method ${o} registered`)}}assertNotificationCapability(o){}assertTaskCapability(o){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(o){throw Error("Task handlers are not supported in MCP Apps")}async callServerTool(o,l){if(this._assertInitialized("callServerTool"),typeof o=="string")throw Error(`callServerTool() expects an object as its first argument, but received a string ("${o}"). Did you mean: callServerTool({ name: "${o}", arguments: { ... } })?`);return await this.request({method:"tools/call",params:o},ws,{onprogress:()=>{},resetTimeoutOnProgress:!0,...l})}async readServerResource(o,l){return this._assertInitialized("readServerResource"),await this.request({method:"resources/read",params:o},Rz,l)}async listServerResources(o,l){return this._assertInitialized("listServerResources"),await this.request({method:"resources/list",params:o},Iz,l)}async createSamplingMessage(o,l){this._assertInitialized("createSamplingMessage");let n=o.tools?Bz:Hz;return await this.request({method:"sampling/createMessage",params:o},n,l)}sendMessage(o,l){return this._assertInitialized("sendMessage"),this.request({method:"ui/message",params:o},cO,l)}sendLog(o){return this.notification({method:"notifications/message",params:o})}updateModelContext(o,l){return this._assertInitialized("updateModelContext"),this.request({method:"ui/update-model-context",params:o},Rh,l)}openLink(o,l){return this._assertInitialized("openLink"),this.request({method:"ui/open-link",params:o},lO,l)}downloadFile(o,l){return this._assertInitialized("downloadFile"),this.request({method:"ui/download-file",params:o},uO,l)}requestTeardown(o={}){return this.notification({method:"ui/notifications/request-teardown",params:o})}requestDisplayMode(o,l){return this._assertInitialized("requestDisplayMode"),this.request({method:"ui/request-display-mode",params:o},yO,l)}sendSizeChanged(o){return this.notification({method:"ui/notifications/size-changed",params:o})}setupSizeChangedNotifications(){let o=!1,l=0,n=0,u=()=>{o||(o=!0,requestAnimationFrame(()=>{o=!1;let m=document.documentElement,p=m.style.height;m.style.height="max-content";let g=Math.ceil(m.getBoundingClientRect().height);m.style.height=p;let v=Math.ceil(window.innerWidth);(v!==l||g!==n)&&(l=v,n=g,this.sendSizeChanged({width:v,height:g}))}))};u();let s=new ResizeObserver(u);return s.observe(document.documentElement),s.observe(document.body),()=>s.disconnect()}async connect(o=new Jz(window.parent,window.parent),l){var n;if(this.transport)throw Error("App is already connected. Call close() before connecting again.");this._initializedSent=!1,await super.connect(o);try{let u=await this.request({method:"ui/initialize",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:nO}},$O,l);if(u===void 0)throw Error(`Server sent invalid initialize result: ${u}`);this._hostCapabilities=u.hostCapabilities,this._hostInfo=u.hostInfo,this._hostContext=u.hostContext,await this.notification({method:"ui/notifications/initialized"}),this._initializedSent=!0,(n=this.options)!=null&&n.autoResize&&this.setupSizeChangedNotifications()}catch(u){throw this.close(),u}}};te(hc,"ONE_SHOT_EVENTS",new Set(["toolinput","toolinputpartial","toolresult","toolcancelled"]));let rm=hc;function zO({appInfo:i,capabilities:r,onAppCreated:o,autoResize:l=!0,strict:n}){let[u,s]=ne.useState(null),[m,p]=ne.useState(!1),[g,v]=ne.useState(null);return ne.useEffect(()=>{let b=!0,_;async function z(){try{let x=new Jz(window.parent,window.parent);if(_=new rm(i,r,{autoResize:l,strict:n}),o==null||o(_),await _.connect(x),!b){_.close();return}s(_),p(!0),v(null)}catch(x){b&&(s(null),p(!1),v(x instanceof Error?x:Error("Failed to connect")))}}return z(),()=>{b=!1,_==null||_.close()}},[]),{app:u,isConnected:m,error:g}}function xO(i,r){let o=ne.useRef(!1);ne.useEffect(()=>{var l,n;o.current||(r!=null&&r.theme&&K_(r.theme),(l=r==null?void 0:r.styles)!=null&&l.variables&&F_(r.styles.variables),(r!=null&&r.theme||(n=r==null?void 0:r.styles)!=null&&n.variables)&&(o.current=!0))},[r]),ne.useEffect(()=>{if(!i)return;let l=n=>{var u;n.theme&&K_(n.theme),(u=n.styles)!=null&&u.variables&&F_(n.styles.variables)};return i.addEventListener("hostcontextchanged",l),()=>i.removeEventListener("hostcontextchanged",l)},[i])}function wO(i,r){let o=ne.useRef(!1);ne.useEffect(()=>{var l,n;o.current||(n=(l=r==null?void 0:r.styles)==null?void 0:l.css)!=null&&n.fonts&&(W_(r.styles.css.fonts),o.current=!0)},[r]),ne.useEffect(()=>{if(!i)return;let l=n=>{var u,s;(s=(u=n.styles)==null?void 0:u.css)!=null&&s.fonts&&W_(n.styles.css.fonts)};return i.addEventListener("hostcontextchanged",l),()=>i.removeEventListener("hostcontextchanged",l)},[i])}function TO(i,r){xO(i,r),wO(i,r)}function eg(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var hr=eg();function Yz(i){hr=i}var ir={exec:()=>null};function Ne(i,r=""){let o=typeof i=="string"?i:i.source,l={replace:(n,u)=>{let s=typeof u=="string"?u:u.source;return s=s.replace(It.caret,"$1"),o=o.replace(n,s),l},getRegex:()=>new RegExp(o,r)};return l}var EO=((i="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+i)}catch{return!1}})(),It={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:i=>new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}#`),htmlBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}>`)},OO=/^(?:[ \t]*(?:\n|$))+/,UO=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,DO=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Il=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,jO=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,tg=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Xz=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Vz=Ne(Xz).replace(/bull/g,tg).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),NO=Ne(Xz).replace(/bull/g,tg).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ng=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,AO=/^[^\n]+/,ig=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,IO=Ne(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ig).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),RO=Ne(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,tg).getRegex(),Ts="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",rg=/\x3C!--(?:-?>|[\s\S]*?(?:-->|$))/,CO=Ne("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",rg).replace("tag",Ts).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Pz=Ne(ng).replace("hr",Il).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ts).getRegex(),MO=Ne(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Pz).getRegex(),ag={blockquote:MO,code:UO,def:IO,fences:DO,heading:jO,hr:Il,html:CO,lheading:Vz,list:RO,newline:OO,paragraph:Pz,table:ir,text:AO},eS=Ne("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Il).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ts).getRegex(),ZO={...ag,lheading:NO,table:eS,paragraph:Ne(ng).replace("hr",Il).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",eS).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ts).getRegex()},qO={...ag,html:Ne(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",rg).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ir,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ne(ng).replace("hr",Il).replace("heading",` *#{1,6} *[^
158
- ]`).replace("lheading",Vz).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},LO=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,HO=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Qz=/^( {2,}|\\)\n(?!\s*$)/,BO=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ta=/[\p{P}\p{S}]/u,Es=/[\s\p{P}\p{S}]/u,og=/[^\s\p{P}\p{S}]/u,JO=Ne(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Es).getRegex(),Kz=/(?!~)[\p{P}\p{S}]/u,GO=/(?!~)[\s\p{P}\p{S}]/u,YO=/(?:[^\s\p{P}\p{S}]|~)/u,XO=Ne(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",EO?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Fz=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,VO=Ne(Fz,"u").replace(/punct/g,Ta).getRegex(),PO=Ne(Fz,"u").replace(/punct/g,Kz).getRegex(),Wz="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",QO=Ne(Wz,"gu").replace(/notPunctSpace/g,og).replace(/punctSpace/g,Es).replace(/punct/g,Ta).getRegex(),KO=Ne(Wz,"gu").replace(/notPunctSpace/g,YO).replace(/punctSpace/g,GO).replace(/punct/g,Kz).getRegex(),FO=Ne("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,og).replace(/punctSpace/g,Es).replace(/punct/g,Ta).getRegex(),WO=Ne(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Ta).getRegex(),eU="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",tU=Ne(eU,"gu").replace(/notPunctSpace/g,og).replace(/punctSpace/g,Es).replace(/punct/g,Ta).getRegex(),nU=Ne(/\\(punct)/,"gu").replace(/punct/g,Ta).getRegex(),iU=Ne(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),rU=Ne(rg).replace("(?:-->|$)","-->").getRegex(),aU=Ne("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",rU).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),fc=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,oU=Ne(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",fc).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),e1=Ne(/^!?\[(label)\]\[(ref)\]/).replace("label",fc).replace("ref",ig).getRegex(),t1=Ne(/^!?\[(ref)\](?:\[\])?/).replace("ref",ig).getRegex(),lU=Ne("reflink|nolink(?!\\()","g").replace("reflink",e1).replace("nolink",t1).getRegex(),tS=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,lg={_backpedal:ir,anyPunctuation:nU,autolink:iU,blockSkip:XO,br:Qz,code:HO,del:ir,delLDelim:ir,delRDelim:ir,emStrongLDelim:VO,emStrongRDelimAst:QO,emStrongRDelimUnd:FO,escape:LO,link:oU,nolink:t1,punctuation:JO,reflink:e1,reflinkSearch:lU,tag:aU,text:BO,url:ir},uU={...lg,link:Ne(/^!?\[(label)\]\((.*?)\)/).replace("label",fc).getRegex(),reflink:Ne(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",fc).getRegex()},am={...lg,emStrongRDelimAst:KO,emStrongLDelim:PO,delLDelim:WO,delRDelim:tU,url:Ne(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",tS).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ne(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",tS).getRegex()},cU={...am,br:Ne(Qz).replace("{2,}","*").getRegex(),text:Ne(am.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ic={normal:ag,gfm:ZO,pedantic:qO},xo={normal:lg,gfm:am,breaks:cU,pedantic:uU},sU={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},nS=i=>sU[i];function Rn(i,r){if(r){if(It.escapeTest.test(i))return i.replace(It.escapeReplace,nS)}else if(It.escapeTestNoEncode.test(i))return i.replace(It.escapeReplaceNoEncode,nS);return i}function iS(i){try{i=encodeURI(i).replace(It.percentDecode,"%")}catch{return null}return i}function rS(i,r){var u;let o=i.replace(It.findPipe,(s,m,p)=>{let g=!1,v=m;for(;--v>=0&&p[v]==="\\";)g=!g;return g?"|":" |"}),l=o.split(It.splitPipe),n=0;if(l[0].trim()||l.shift(),l.length>0&&!((u=l.at(-1))!=null&&u.trim())&&l.pop(),r)if(l.length>r)l.splice(r);else for(;l.length<r;)l.push("");for(;n<l.length;n++)l[n]=l[n].trim().replace(It.slashPipe,"|");return l}function Ni(i,r,o){let l=i.length;if(l===0)return"";let n=0;for(;n<l&&i.charAt(l-n-1)===r;)n++;return i.slice(0,l-n)}function aS(i){let r=i.split(`
159
- `),o=r.length-1;for(;o>=0&&It.blankLine.test(r[o]);)o--;return r.length-o<=2?i:r.slice(0,o+1).join(`
160
- `)}function dU(i,r){if(i.indexOf(r[1])===-1)return-1;let o=0;for(let l=0;l<i.length;l++)if(i[l]==="\\")l++;else if(i[l]===r[0])o++;else if(i[l]===r[1]&&(o--,o<0))return l;return o>0?-2:-1}function fU(i,r=0){let o=r,l="";for(let n of i)if(n===" "){let u=4-o%4;l+=" ".repeat(u),o+=u}else l+=n,o++;return l}function oS(i,r,o,l,n){let u=r.href,s=r.title||null,m=i[1].replace(n.other.outputLinkReplace,"$1");l.state.inLink=!0;let p={type:i[0].charAt(0)==="!"?"image":"link",raw:o,href:u,title:s,text:m,tokens:l.inlineTokens(m)};return l.state.inLink=!1,p}function mU(i,r,o){let l=i.match(o.other.indentCodeCompensation);if(l===null)return r;let n=l[1];return r.split(`
156
+ - "app": Tool callable by the app from this server only`),csp:dr().optional(),permissions:dr().optional()});N({mimeTypes:ce(O()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')});N({method:E("ui/download-file"),params:N({contents:ce(ke([M1,Z1])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})});N({method:E("ui/message"),params:N({role:E("user").describe('Message role, currently only "user" is supported.'),content:ce(Rl).describe("Message content blocks (text, image, etc.).")})});N({method:E("ui/notifications/sandbox-resource-ready"),params:N({html:O().describe("HTML content to load into the inner iframe."),sandbox:O().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:eg.optional().describe("CSP configuration from resource metadata."),permissions:tg.optional().describe("Sandbox permissions from resource metadata.")})});var $O=N({method:E("ui/notifications/tool-result"),params:Os.describe("Standard MCP tool execution result.")}),Y1=N({toolInfo:N({id:Ul.optional().describe("JSON-RPC id of the tools/call request."),tool:Wh.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:oO.optional().describe("Current color theme preference."),styles:gO.optional().describe("Style configuration for theming the app."),displayMode:No.optional().describe("How the UI is currently displayed."),availableDisplayModes:ce(No).optional().describe("Display modes the host supports."),containerDimensions:ke([N({height:pe().describe("Fixed container height in pixels.")}),N({maxHeight:ke([pe(),da()]).optional().describe("Maximum container height in pixels.")})]).and(ke([N({width:pe().describe("Fixed container width in pixels.")}),N({maxWidth:ke([pe(),da()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
157
+ container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:O().optional().describe("User's language and region preference in BCP 47 format."),timeZone:O().optional().describe("User's timezone in IANA format."),userAgent:O().optional().describe("Host application identifier."),platform:ke([E("web"),E("desktop"),E("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:N({touch:qe().optional().describe("Whether the device supports touch input."),hover:qe().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:N({top:pe().describe("Top safe area inset in pixels."),right:pe().describe("Right safe area inset in pixels."),bottom:pe().describe("Bottom safe area inset in pixels."),left:pe().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),kO=N({method:E("ui/notifications/host-context-changed"),params:Y1.describe("Partial context update containing only changed fields.")});N({method:E("ui/update-model-context"),params:N({content:ce(Rl).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:Ue(O(),Re().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})});N({method:E("ui/initialize"),params:N({appInfo:Ts.describe("App identification (name and version)."),appCapabilities:bO.describe("Features and capabilities this app provides."),protocolVersion:O().describe("Protocol version this app supports.")})});var zO=N({protocolVersion:O().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:Ts.describe("Host application identification and version."),hostCapabilities:yO.describe("Features and capabilities provided by the host."),hostContext:Y1.describe("Rich context about the host environment.")}).passthrough(),xO={target:"draft-2020-12"};async function Q_(i,r){let o=i["~standard"];if(o.jsonSchema)return o.jsonSchema[r](xO);if(o.vendor==="zod"){let{z:l}=await Lw(()=>Promise.resolve().then(()=>pE),void 0,import.meta.url);return l.toJSONSchema(i,{io:r})}throw Error(`Schema (vendor: ${o.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function K_(i,r,o=""){let l=await i["~standard"].validate(r);if(l.issues){let n=l.issues.map(u=>{var m;let s=(m=u.path)==null?void 0:m.map(p=>typeof p=="object"?p.key:p).join(".");return s?`${s}: ${u.message}`:u.message}).join("; ");throw Error(o+n)}return l.value}function F_(i){let r=document.documentElement;r.setAttribute("data-theme",i),r.style.colorScheme=i}function W_(i,r=document.documentElement){for(let[o,l]of Object.entries(i))l!==void 0&&r.style.setProperty(o,l)}function eS(i){if(document.getElementById("__mcp-host-fonts"))return;let r=document.createElement("style");r.id="__mcp-host-fonts",r.textContent=i,document.head.appendChild(r)}const yc=class yc extends iO{constructor(o,l={},n={autoResize:!0}){super(n);ne(this,"_appInfo");ne(this,"_capabilities");ne(this,"options");ne(this,"_hostCapabilities");ne(this,"_hostInfo");ne(this,"_hostContext");ne(this,"_registeredTools",{});ne(this,"_initializedSent",!1);ne(this,"eventSchemas",{toolinput:fO,toolinputpartial:mO,toolresult:$O,toolcancelled:pO,hostcontextchanged:kO});ne(this,"_everHadListener",new Set);ne(this,"_toolHandlersInitialized",!1);ne(this,"_onteardown");ne(this,"_oncalltool");ne(this,"_onlisttools");ne(this,"sendOpenLink",this.openLink);this._appInfo=o,this._capabilities=l,this.options=n,n.allowUnsafeEval||_t({jitless:!0}),this.setRequestHandler(Es,u=>(console.log("Received ping:",u.params),{})),this.setEventHandler("hostcontextchanged",void 0)}_assertInitialized(o){var n;if(this._initializedSent)return;let l=`[ext-apps] App.${o}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if((n=this.options)!=null&&n.strict)throw Error(l);console.warn(`${l}. This will throw in a future release.`)}_assertHandlerTiming(o){var n;if(!yc.ONE_SHOT_EVENTS.has(o)||this._everHadListener.has(o)||(this._everHadListener.add(o),!this._initializedSent))return;let l=`[ext-apps] "${String(o)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if((n=this.options)!=null&&n.strict)throw Error(l);console.warn(l)}setEventHandler(o,l){l&&this._assertHandlerTiming(o),super.setEventHandler(o,l)}addEventListener(o,l){this._assertHandlerTiming(o),super.addEventListener(o,l)}onEventDispatch(o,l){o==="hostcontextchanged"&&(this._hostContext={...this._hostContext,...l})}registerCapabilities(o){if(this.transport)throw Error("Cannot register capabilities after transport is established");this._capabilities=nO(this._capabilities,o)}registerTool(o,l,n){if(this._registeredTools[o])throw Error(`Tool ${o} is already registered`);let u=this,s=()=>{var g;u._initializedSent&&((g=u._capabilities.tools)!=null&&g.listChanged)&&u.sendToolListChanged()},m=l.inputSchema!==void 0,p={title:l.title,description:l.description,inputSchema:l.inputSchema,outputSchema:l.outputSchema,annotations:l.annotations,_meta:l._meta,enabled:!0,enable(){this.enabled=!0,s()},disable(){this.enabled=!1,s()},update(g){Object.assign(this,g),s()},remove(){u._registeredTools[o]===p&&(delete u._registeredTools[o],s())},handler:async(g,v)=>{if(!p.enabled)throw Error(`Tool ${o} is disabled`);let b;if(m){let _=p.inputSchema,z=_?await K_(_,g??{},`Invalid input for tool ${o}: `):g??{};b=await n(z,v)}else b=await n(v);return p.outputSchema&&!b.isError&&(b.structuredContent=await K_(p.outputSchema,b.structuredContent,`Invalid output for tool ${o}: `)),b}};return this._registeredTools[o]=p,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),s(),p}ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(o,l)=>{let n=this._registeredTools[o.name];if(!n)throw Error(`Tool ${o.name} not found`);return n.handler(o.arguments,l)},this.onlisttools=async(o,l)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([n,u])=>u.enabled).map(async([n,u])=>{let s={name:n,title:u.title,description:u.description,inputSchema:u.inputSchema?await Q_(u.inputSchema,"input"):{type:"object",properties:{}}};return u.outputSchema&&(s.outputSchema=await Q_(u.outputSchema,"output")),u.annotations&&(s.annotations=u.annotations),u._meta&&(s._meta=u._meta),s}))}))}async sendToolListChanged(o={}){this._assertInitialized("sendToolListChanged"),await this.notification({method:"notifications/tools/list_changed",params:o})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler("toolinput")}set ontoolinput(o){this.setEventHandler("toolinput",o)}get ontoolinputpartial(){return this.getEventHandler("toolinputpartial")}set ontoolinputpartial(o){this.setEventHandler("toolinputpartial",o)}get ontoolresult(){return this.getEventHandler("toolresult")}set ontoolresult(o){this.setEventHandler("toolresult",o)}get ontoolcancelled(){return this.getEventHandler("toolcancelled")}set ontoolcancelled(o){this.setEventHandler("toolcancelled",o)}get onhostcontextchanged(){return this.getEventHandler("hostcontextchanged")}set onhostcontextchanged(o){this.setEventHandler("hostcontextchanged",o)}get onteardown(){return this._onteardown}set onteardown(o){this.warnIfRequestHandlerReplaced("onteardown",this._onteardown,o),this._onteardown=o,this.replaceRequestHandler(vO,(l,n)=>{if(!this._onteardown)throw Error("No onteardown handler set");return this._onteardown(l.params,n)})}get oncalltool(){return this._oncalltool}set oncalltool(o){this.warnIfRequestHandlerReplaced("oncalltool",this._oncalltool,o),this._oncalltool=o,this.replaceRequestHandler(L1,(l,n)=>{if(!this._oncalltool)throw Error("No oncalltool handler set");return this._oncalltool(l.params,n)})}get onlisttools(){return this._onlisttools}set onlisttools(o){this.warnIfRequestHandlerReplaced("onlisttools",this._onlisttools,o),this._onlisttools=o,this.replaceRequestHandler(q1,(l,n)=>{if(!this._onlisttools)throw Error("No onlisttools handler set");return this._onlisttools(l.params,n)})}assertCapabilityForMethod(o){var l;switch(o){case"sampling/createMessage":if(!((l=this._hostCapabilities)!=null&&l.sampling))throw Error(`Host does not support sampling (required for ${o})`);break}}assertRequestHandlerCapability(o){switch(o){case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${o})`);return;case"ping":case"ui/resource-teardown":return;default:throw Error(`No handler for method ${o} registered`)}}assertNotificationCapability(o){}assertTaskCapability(o){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(o){throw Error("Task handlers are not supported in MCP Apps")}async callServerTool(o,l){if(this._assertInitialized("callServerTool"),typeof o=="string")throw Error(`callServerTool() expects an object as its first argument, but received a string ("${o}"). Did you mean: callServerTool({ name: "${o}", arguments: { ... } })?`);return await this.request({method:"tools/call",params:o},Os,{onprogress:()=>{},resetTimeoutOnProgress:!0,...l})}async readServerResource(o,l){return this._assertInitialized("readServerResource"),await this.request({method:"resources/read",params:o},C1,l)}async listServerResources(o,l){return this._assertInitialized("listServerResources"),await this.request({method:"resources/list",params:o},R1,l)}async createSamplingMessage(o,l){this._assertInitialized("createSamplingMessage");let n=o.tools?J1:B1;return await this.request({method:"sampling/createMessage",params:o},n,l)}sendMessage(o,l){return this._assertInitialized("sendMessage"),this.request({method:"ui/message",params:o},dO,l)}sendLog(o){return this.notification({method:"notifications/message",params:o})}updateModelContext(o,l){return this._assertInitialized("updateModelContext"),this.request({method:"ui/update-model-context",params:o},Mh,l)}openLink(o,l){return this._assertInitialized("openLink"),this.request({method:"ui/open-link",params:o},cO,l)}downloadFile(o,l){return this._assertInitialized("downloadFile"),this.request({method:"ui/download-file",params:o},sO,l)}requestTeardown(o={}){return this.notification({method:"ui/notifications/request-teardown",params:o})}requestDisplayMode(o,l){return this._assertInitialized("requestDisplayMode"),this.request({method:"ui/request-display-mode",params:o},_O,l)}sendSizeChanged(o){return this.notification({method:"ui/notifications/size-changed",params:o})}setupSizeChangedNotifications(){let o=!1,l=0,n=0,u=()=>{o||(o=!0,requestAnimationFrame(()=>{o=!1;let m=document.documentElement,p=m.style.height;m.style.height="max-content";let g=Math.ceil(m.getBoundingClientRect().height);m.style.height=p;let v=Math.ceil(window.innerWidth);(v!==l||g!==n)&&(l=v,n=g,this.sendSizeChanged({width:v,height:g}))}))};u();let s=new ResizeObserver(u);return s.observe(document.documentElement),s.observe(document.body),()=>s.disconnect()}async connect(o=new G1(window.parent,window.parent),l){var n;if(this.transport)throw Error("App is already connected. Call close() before connecting again.");this._initializedSent=!1,await super.connect(o);try{let u=await this.request({method:"ui/initialize",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:rO}},zO,l);if(u===void 0)throw Error(`Server sent invalid initialize result: ${u}`);this._hostCapabilities=u.hostCapabilities,this._hostInfo=u.hostInfo,this._hostContext=u.hostContext,await this.notification({method:"ui/notifications/initialized"}),this._initializedSent=!0,(n=this.options)!=null&&n.autoResize&&this.setupSizeChangedNotifications()}catch(u){throw this.close(),u}}};ne(yc,"ONE_SHOT_EVENTS",new Set(["toolinput","toolinputpartial","toolresult","toolcancelled"]));let om=yc;function wO({appInfo:i,capabilities:r,onAppCreated:o,autoResize:l=!0,strict:n}){let[u,s]=ee.useState(null),[m,p]=ee.useState(!1),[g,v]=ee.useState(null);return ee.useEffect(()=>{let b=!0,_;async function z(){try{let x=new G1(window.parent,window.parent);if(_=new om(i,r,{autoResize:l,strict:n}),o==null||o(_),await _.connect(x),!b){_.close();return}s(_),p(!0),v(null)}catch(x){b&&(s(null),p(!1),v(x instanceof Error?x:Error("Failed to connect")))}}return z(),()=>{b=!1,_==null||_.close()}},[]),{app:u,isConnected:m,error:g}}function TO(i,r){let o=ee.useRef(!1);ee.useEffect(()=>{var l,n;o.current||(r!=null&&r.theme&&F_(r.theme),(l=r==null?void 0:r.styles)!=null&&l.variables&&W_(r.styles.variables),(r!=null&&r.theme||(n=r==null?void 0:r.styles)!=null&&n.variables)&&(o.current=!0))},[r]),ee.useEffect(()=>{if(!i)return;let l=n=>{var u;n.theme&&F_(n.theme),(u=n.styles)!=null&&u.variables&&W_(n.styles.variables)};return i.addEventListener("hostcontextchanged",l),()=>i.removeEventListener("hostcontextchanged",l)},[i])}function EO(i,r){let o=ee.useRef(!1);ee.useEffect(()=>{var l,n;o.current||(n=(l=r==null?void 0:r.styles)==null?void 0:l.css)!=null&&n.fonts&&(eS(r.styles.css.fonts),o.current=!0)},[r]),ee.useEffect(()=>{if(!i)return;let l=n=>{var u,s;(s=(u=n.styles)==null?void 0:u.css)!=null&&s.fonts&&eS(n.styles.css.fonts)};return i.addEventListener("hostcontextchanged",l),()=>i.removeEventListener("hostcontextchanged",l)},[i])}function OO(i,r){TO(i,r),EO(i,r)}function ng(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var yr=ng();function X1(i){yr=i}var or={exec:()=>null};function De(i,r=""){let o=typeof i=="string"?i:i.source,l={replace:(n,u)=>{let s=typeof u=="string"?u:u.source;return s=s.replace(Rt.caret,"$1"),o=o.replace(n,s),l},getRegex:()=>new RegExp(o,r)};return l}var UO=((i="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+i)}catch{return!1}})(),Rt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:i=>new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}#`),htmlBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:i=>new RegExp(`^ {0,${Math.min(3,i-1)}}>`)},DO=/^(?:[ \t]*(?:\n|$))+/,jO=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,NO=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Cl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,AO=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ig=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,V1=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,P1=De(V1).replace(/bull/g,ig).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),IO=De(V1).replace(/bull/g,ig).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),rg=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,RO=/^[^\n]+/,ag=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,CO=De(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ag).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),MO=De(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ig).getRegex(),Us="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",og=/\x3C!--(?:-?>|[\s\S]*?(?:-->|$))/,ZO=De("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",og).replace("tag",Us).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Q1=De(rg).replace("hr",Cl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Us).getRegex(),qO=De(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Q1).getRegex(),lg={blockquote:qO,code:jO,def:CO,fences:NO,heading:AO,hr:Cl,html:ZO,lheading:P1,list:MO,newline:DO,paragraph:Q1,table:or,text:RO},tS=De("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Cl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Us).getRegex(),LO={...lg,lheading:IO,table:tS,paragraph:De(rg).replace("hr",Cl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",tS).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Us).getRegex()},HO={...lg,html:De(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",og).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:or,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:De(rg).replace("hr",Cl).replace("heading",` *#{1,6} *[^
158
+ ]`).replace("lheading",P1).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},BO=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,JO=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,K1=/^( {2,}|\\)\n(?!\s*$)/,GO=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ua=/[\p{P}\p{S}]/u,Ds=/[\s\p{P}\p{S}]/u,ug=/[^\s\p{P}\p{S}]/u,YO=De(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ds).getRegex(),F1=/(?!~)[\p{P}\p{S}]/u,XO=/(?!~)[\s\p{P}\p{S}]/u,VO=/(?:[^\s\p{P}\p{S}]|~)/u,PO=De(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",UO?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),W1=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,QO=De(W1,"u").replace(/punct/g,Ua).getRegex(),KO=De(W1,"u").replace(/punct/g,F1).getRegex(),ez="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",FO=De(ez,"gu").replace(/notPunctSpace/g,ug).replace(/punctSpace/g,Ds).replace(/punct/g,Ua).getRegex(),WO=De(ez,"gu").replace(/notPunctSpace/g,VO).replace(/punctSpace/g,XO).replace(/punct/g,F1).getRegex(),eU=De("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ug).replace(/punctSpace/g,Ds).replace(/punct/g,Ua).getRegex(),tU=De(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Ua).getRegex(),nU="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",iU=De(nU,"gu").replace(/notPunctSpace/g,ug).replace(/punctSpace/g,Ds).replace(/punct/g,Ua).getRegex(),rU=De(/\\(punct)/,"gu").replace(/punct/g,Ua).getRegex(),aU=De(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),oU=De(og).replace("(?:-->|$)","-->").getRegex(),lU=De("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",oU).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),hc=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,uU=De(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",hc).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),tz=De(/^!?\[(label)\]\[(ref)\]/).replace("label",hc).replace("ref",ag).getRegex(),nz=De(/^!?\[(ref)\](?:\[\])?/).replace("ref",ag).getRegex(),cU=De("reflink|nolink(?!\\()","g").replace("reflink",tz).replace("nolink",nz).getRegex(),nS=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,cg={_backpedal:or,anyPunctuation:rU,autolink:aU,blockSkip:PO,br:K1,code:JO,del:or,delLDelim:or,delRDelim:or,emStrongLDelim:QO,emStrongRDelimAst:FO,emStrongRDelimUnd:eU,escape:BO,link:uU,nolink:nz,punctuation:YO,reflink:tz,reflinkSearch:cU,tag:lU,text:GO,url:or},sU={...cg,link:De(/^!?\[(label)\]\((.*?)\)/).replace("label",hc).getRegex(),reflink:De(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",hc).getRegex()},lm={...cg,emStrongRDelimAst:WO,emStrongLDelim:KO,delLDelim:tU,delRDelim:iU,url:De(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",nS).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:De(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",nS).getRegex()},dU={...lm,br:De(K1).replace("{2,}","*").getRegex(),text:De(lm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},oc={normal:lg,gfm:LO,pedantic:HO},To={normal:cg,gfm:lm,breaks:dU,pedantic:sU},fU={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},iS=i=>fU[i];function Zn(i,r){if(r){if(Rt.escapeTest.test(i))return i.replace(Rt.escapeReplace,iS)}else if(Rt.escapeTestNoEncode.test(i))return i.replace(Rt.escapeReplaceNoEncode,iS);return i}function rS(i){try{i=encodeURI(i).replace(Rt.percentDecode,"%")}catch{return null}return i}function aS(i,r){var u;let o=i.replace(Rt.findPipe,(s,m,p)=>{let g=!1,v=m;for(;--v>=0&&p[v]==="\\";)g=!g;return g?"|":" |"}),l=o.split(Rt.splitPipe),n=0;if(l[0].trim()||l.shift(),l.length>0&&!((u=l.at(-1))!=null&&u.trim())&&l.pop(),r)if(l.length>r)l.splice(r);else for(;l.length<r;)l.push("");for(;n<l.length;n++)l[n]=l[n].trim().replace(Rt.slashPipe,"|");return l}function Ii(i,r,o){let l=i.length;if(l===0)return"";let n=0;for(;n<l&&i.charAt(l-n-1)===r;)n++;return i.slice(0,l-n)}function oS(i){let r=i.split(`
159
+ `),o=r.length-1;for(;o>=0&&Rt.blankLine.test(r[o]);)o--;return r.length-o<=2?i:r.slice(0,o+1).join(`
160
+ `)}function mU(i,r){if(i.indexOf(r[1])===-1)return-1;let o=0;for(let l=0;l<i.length;l++)if(i[l]==="\\")l++;else if(i[l]===r[0])o++;else if(i[l]===r[1]&&(o--,o<0))return l;return o>0?-2:-1}function pU(i,r=0){let o=r,l="";for(let n of i)if(n===" "){let u=4-o%4;l+=" ".repeat(u),o+=u}else l+=n,o++;return l}function lS(i,r,o,l,n){let u=r.href,s=r.title||null,m=i[1].replace(n.other.outputLinkReplace,"$1");l.state.inLink=!0;let p={type:i[0].charAt(0)==="!"?"image":"link",raw:o,href:u,title:s,text:m,tokens:l.inlineTokens(m)};return l.state.inLink=!1,p}function hU(i,r,o){let l=i.match(o.other.indentCodeCompensation);if(l===null)return r;let n=l[1];return r.split(`
161
161
  `).map(u=>{let s=u.match(o.other.beginningSpace);if(s===null)return u;let[m]=s;return m.length>=n.length?u.slice(n.length):u}).join(`
162
- `)}var mc=class{constructor(i){te(this,"options");te(this,"rules");te(this,"lexer");this.options=i||hr}space(i){let r=this.rules.block.newline.exec(i);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(i){let r=this.rules.block.code.exec(i);if(r){let o=this.options.pedantic?r[0]:aS(r[0]),l=o.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:o,codeBlockStyle:"indented",text:l}}}fences(i){let r=this.rules.block.fences.exec(i);if(r){let o=r[0],l=mU(o,r[3]||"",this.rules);return{type:"code",raw:o,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:l}}}heading(i){let r=this.rules.block.heading.exec(i);if(r){let o=r[2].trim();if(this.rules.other.endingHash.test(o)){let l=Ni(o,"#");(this.options.pedantic||!l||this.rules.other.endingSpaceChar.test(l))&&(o=l.trim())}return{type:"heading",raw:Ni(r[0],`
163
- `),depth:r[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(i){let r=this.rules.block.hr.exec(i);if(r)return{type:"hr",raw:Ni(r[0],`
164
- `)}}blockquote(i){let r=this.rules.block.blockquote.exec(i);if(r){let o=Ni(r[0],`
162
+ `)}var gc=class{constructor(i){ne(this,"options");ne(this,"rules");ne(this,"lexer");this.options=i||yr}space(i){let r=this.rules.block.newline.exec(i);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(i){let r=this.rules.block.code.exec(i);if(r){let o=this.options.pedantic?r[0]:oS(r[0]),l=o.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:o,codeBlockStyle:"indented",text:l}}}fences(i){let r=this.rules.block.fences.exec(i);if(r){let o=r[0],l=hU(o,r[3]||"",this.rules);return{type:"code",raw:o,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:l}}}heading(i){let r=this.rules.block.heading.exec(i);if(r){let o=r[2].trim();if(this.rules.other.endingHash.test(o)){let l=Ii(o,"#");(this.options.pedantic||!l||this.rules.other.endingSpaceChar.test(l))&&(o=l.trim())}return{type:"heading",raw:Ii(r[0],`
163
+ `),depth:r[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(i){let r=this.rules.block.hr.exec(i);if(r)return{type:"hr",raw:Ii(r[0],`
164
+ `)}}blockquote(i){let r=this.rules.block.blockquote.exec(i);if(r){let o=Ii(r[0],`
165
165
  `).split(`
166
166
  `),l="",n="",u=[];for(;o.length>0;){let s=!1,m=[],p;for(p=0;p<o.length;p++)if(this.rules.other.blockquoteStart.test(o[p]))m.push(o[p]),s=!0;else if(!s)m.push(o[p]);else break;o=o.slice(p);let g=m.join(`
167
167
  `),v=g.replace(this.rules.other.blockquoteSetextReplace,`
@@ -172,20 +172,20 @@ ${v}`:v;let b=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
172
172
  `),H=this.blockquote(x);u[u.length-1]=H,l=l.substring(0,l.length-z.raw.length)+H.raw,n=n.substring(0,n.length-z.text.length)+H.text;break}else if((_==null?void 0:_.type)==="list"){let z=_,x=z.raw+`
173
173
  `+o.join(`
174
174
  `),H=this.list(x);u[u.length-1]=H,l=l.substring(0,l.length-_.raw.length)+H.raw,n=n.substring(0,n.length-z.raw.length)+H.raw,o=x.substring(u.at(-1).raw.length).split(`
175
- `);continue}}return{type:"blockquote",raw:l,tokens:u,text:n}}}list(i){var o,l;let r=this.rules.block.list.exec(i);if(r){let n=r[1].trim(),u=n.length>1,s={type:"list",raw:"",ordered:u,start:u?+n.slice(0,-1):"",loose:!1,items:[]};n=u?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=u?n:"[*+-]");let m=this.rules.other.listItemRegex(n),p=!1;for(;i;){let v=!1,b="",_="";if(!(r=m.exec(i))||this.rules.block.hr.test(i))break;b=r[0],i=i.substring(b.length);let z=fU(r[2].split(`
175
+ `);continue}}return{type:"blockquote",raw:l,tokens:u,text:n}}}list(i){var o,l;let r=this.rules.block.list.exec(i);if(r){let n=r[1].trim(),u=n.length>1,s={type:"list",raw:"",ordered:u,start:u?+n.slice(0,-1):"",loose:!1,items:[]};n=u?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=u?n:"[*+-]");let m=this.rules.other.listItemRegex(n),p=!1;for(;i;){let v=!1,b="",_="";if(!(r=m.exec(i))||this.rules.block.hr.test(i))break;b=r[0],i=i.substring(b.length);let z=pU(r[2].split(`
176
176
  `,1)[0],r[1].length),x=i.split(`
177
177
  `,1)[0],H=!z.trim(),J=0;if(this.options.pedantic?(J=2,_=z.trimStart()):H?J=r[1].length+1:(J=z.search(this.rules.other.nonSpaceChar),J=J>4?1:J,_=z.slice(J),J+=r[1].length),H&&this.rules.other.blankLine.test(x)&&(b+=x+`
178
- `,i=i.substring(x.length+1),v=!0),!v){let F=this.rules.other.nextBulletRegex(J),se=this.rules.other.hrRegex(J),de=this.rules.other.fencesBeginRegex(J),be=this.rules.other.headingBeginRegex(J),Ee=this.rules.other.htmlBeginRegex(J),ue=this.rules.other.blockquoteBeginRegex(J);for(;i;){let G=i.split(`
179
- `,1)[0],ge;if(x=G,this.options.pedantic?(x=x.replace(this.rules.other.listReplaceNesting," "),ge=x):ge=x.replace(this.rules.other.tabCharGlobal," "),de.test(x)||be.test(x)||Ee.test(x)||ue.test(x)||F.test(x)||se.test(x))break;if(ge.search(this.rules.other.nonSpaceChar)>=J||!x.trim())_+=`
180
- `+ge.slice(J);else{if(H||z.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||de.test(z)||be.test(z)||se.test(z))break;_+=`
178
+ `,i=i.substring(x.length+1),v=!0),!v){let F=this.rules.other.nextBulletRegex(J),se=this.rules.other.hrRegex(J),ge=this.rules.other.fencesBeginRegex(J),be=this.rules.other.headingBeginRegex(J),we=this.rules.other.htmlBeginRegex(J),re=this.rules.other.blockquoteBeginRegex(J);for(;i;){let G=i.split(`
179
+ `,1)[0],ve;if(x=G,this.options.pedantic?(x=x.replace(this.rules.other.listReplaceNesting," "),ve=x):ve=x.replace(this.rules.other.tabCharGlobal," "),ge.test(x)||be.test(x)||we.test(x)||re.test(x)||F.test(x)||se.test(x))break;if(ve.search(this.rules.other.nonSpaceChar)>=J||!x.trim())_+=`
180
+ `+ve.slice(J);else{if(H||z.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||ge.test(z)||be.test(z)||se.test(z))break;_+=`
181
181
  `+x}H=!x.trim(),b+=G+`
182
- `,i=i.substring(G.length+1),z=ge.slice(J)}}s.loose||(p?s.loose=!0:this.rules.other.doubleBlankLine.test(b)&&(p=!0)),s.items.push({type:"list_item",raw:b,task:!!this.options.gfm&&this.rules.other.listIsTask.test(_),loose:!1,text:_,tokens:[]}),s.raw+=b}let g=s.items.at(-1);if(g)g.raw=g.raw.trimEnd(),g.text=g.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let v of s.items){if(this.lexer.state.top=!1,v.tokens=this.lexer.blockTokens(v.text,[]),v.task){if(v.text=v.text.replace(this.rules.other.listReplaceTask,""),((o=v.tokens[0])==null?void 0:o.type)==="text"||((l=v.tokens[0])==null?void 0:l.type)==="paragraph"){v.tokens[0].raw=v.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),v.tokens[0].text=v.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let _=this.lexer.inlineQueue.length-1;_>=0;_--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[_].src)){this.lexer.inlineQueue[_].src=this.lexer.inlineQueue[_].src.replace(this.rules.other.listReplaceTask,"");break}}let b=this.rules.other.listTaskCheckbox.exec(v.raw);if(b){let _={type:"checkbox",raw:b[0]+" ",checked:b[0]!=="[ ]"};v.checked=_.checked,s.loose?v.tokens[0]&&["paragraph","text"].includes(v.tokens[0].type)&&"tokens"in v.tokens[0]&&v.tokens[0].tokens?(v.tokens[0].raw=_.raw+v.tokens[0].raw,v.tokens[0].text=_.raw+v.tokens[0].text,v.tokens[0].tokens.unshift(_)):v.tokens.unshift({type:"paragraph",raw:_.raw,text:_.raw,tokens:[_]}):v.tokens.unshift(_)}}if(!s.loose){let b=v.tokens.filter(z=>z.type==="space"),_=b.length>0&&b.some(z=>this.rules.other.anyLine.test(z.raw));s.loose=_}}if(s.loose)for(let v of s.items){v.loose=!0;for(let b of v.tokens)b.type==="text"&&(b.type="paragraph")}return s}}html(i){let r=this.rules.block.html.exec(i);if(r){let o=aS(r[0]);return{type:"html",block:!0,raw:o,pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:o}}}def(i){let r=this.rules.block.def.exec(i);if(r){let o=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),l=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:o,raw:Ni(r[0],`
183
- `),href:l,title:n}}}table(i){var s;let r=this.rules.block.table.exec(i);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let o=rS(r[1]),l=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=(s=r[3])!=null&&s.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
184
- `):[],u={type:"table",raw:Ni(r[0],`
185
- `),header:[],align:[],rows:[]};if(o.length===l.length){for(let m of l)this.rules.other.tableAlignRight.test(m)?u.align.push("right"):this.rules.other.tableAlignCenter.test(m)?u.align.push("center"):this.rules.other.tableAlignLeft.test(m)?u.align.push("left"):u.align.push(null);for(let m=0;m<o.length;m++)u.header.push({text:o[m],tokens:this.lexer.inline(o[m]),header:!0,align:u.align[m]});for(let m of n)u.rows.push(rS(m,u.header.length).map((p,g)=>({text:p,tokens:this.lexer.inline(p),header:!1,align:u.align[g]})));return u}}lheading(i){let r=this.rules.block.lheading.exec(i);if(r){let o=r[1].trim();return{type:"heading",raw:Ni(r[0],`
182
+ `,i=i.substring(G.length+1),z=ve.slice(J)}}s.loose||(p?s.loose=!0:this.rules.other.doubleBlankLine.test(b)&&(p=!0)),s.items.push({type:"list_item",raw:b,task:!!this.options.gfm&&this.rules.other.listIsTask.test(_),loose:!1,text:_,tokens:[]}),s.raw+=b}let g=s.items.at(-1);if(g)g.raw=g.raw.trimEnd(),g.text=g.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let v of s.items){if(this.lexer.state.top=!1,v.tokens=this.lexer.blockTokens(v.text,[]),v.task){if(v.text=v.text.replace(this.rules.other.listReplaceTask,""),((o=v.tokens[0])==null?void 0:o.type)==="text"||((l=v.tokens[0])==null?void 0:l.type)==="paragraph"){v.tokens[0].raw=v.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),v.tokens[0].text=v.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let _=this.lexer.inlineQueue.length-1;_>=0;_--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[_].src)){this.lexer.inlineQueue[_].src=this.lexer.inlineQueue[_].src.replace(this.rules.other.listReplaceTask,"");break}}let b=this.rules.other.listTaskCheckbox.exec(v.raw);if(b){let _={type:"checkbox",raw:b[0]+" ",checked:b[0]!=="[ ]"};v.checked=_.checked,s.loose?v.tokens[0]&&["paragraph","text"].includes(v.tokens[0].type)&&"tokens"in v.tokens[0]&&v.tokens[0].tokens?(v.tokens[0].raw=_.raw+v.tokens[0].raw,v.tokens[0].text=_.raw+v.tokens[0].text,v.tokens[0].tokens.unshift(_)):v.tokens.unshift({type:"paragraph",raw:_.raw,text:_.raw,tokens:[_]}):v.tokens.unshift(_)}}if(!s.loose){let b=v.tokens.filter(z=>z.type==="space"),_=b.length>0&&b.some(z=>this.rules.other.anyLine.test(z.raw));s.loose=_}}if(s.loose)for(let v of s.items){v.loose=!0;for(let b of v.tokens)b.type==="text"&&(b.type="paragraph")}return s}}html(i){let r=this.rules.block.html.exec(i);if(r){let o=oS(r[0]);return{type:"html",block:!0,raw:o,pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:o}}}def(i){let r=this.rules.block.def.exec(i);if(r){let o=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),l=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:o,raw:Ii(r[0],`
183
+ `),href:l,title:n}}}table(i){var s;let r=this.rules.block.table.exec(i);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let o=aS(r[1]),l=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=(s=r[3])!=null&&s.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
184
+ `):[],u={type:"table",raw:Ii(r[0],`
185
+ `),header:[],align:[],rows:[]};if(o.length===l.length){for(let m of l)this.rules.other.tableAlignRight.test(m)?u.align.push("right"):this.rules.other.tableAlignCenter.test(m)?u.align.push("center"):this.rules.other.tableAlignLeft.test(m)?u.align.push("left"):u.align.push(null);for(let m=0;m<o.length;m++)u.header.push({text:o[m],tokens:this.lexer.inline(o[m]),header:!0,align:u.align[m]});for(let m of n)u.rows.push(aS(m,u.header.length).map((p,g)=>({text:p,tokens:this.lexer.inline(p),header:!1,align:u.align[g]})));return u}}lheading(i){let r=this.rules.block.lheading.exec(i);if(r){let o=r[1].trim();return{type:"heading",raw:Ii(r[0],`
186
186
  `),depth:r[2].charAt(0)==="="?1:2,text:o,tokens:this.lexer.inline(o)}}}paragraph(i){let r=this.rules.block.paragraph.exec(i);if(r){let o=r[1].charAt(r[1].length-1)===`
187
- `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:o,tokens:this.lexer.inline(o)}}}text(i){let r=this.rules.block.text.exec(i);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(i){let r=this.rules.inline.escape.exec(i);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(i){let r=this.rules.inline.tag.exec(i);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(i){let r=this.rules.inline.link.exec(i);if(r){let o=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(o)){if(!this.rules.other.endAngleBracket.test(o))return;let u=Ni(o.slice(0,-1),"\\");if((o.length-u.length)%2===0)return}else{let u=dU(r[2],"()");if(u===-2)return;if(u>-1){let s=(r[0].indexOf("!")===0?5:4)+r[1].length+u;r[2]=r[2].substring(0,u),r[0]=r[0].substring(0,s).trim(),r[3]=""}}let l=r[2],n="";if(this.options.pedantic){let u=this.rules.other.pedanticHrefTitle.exec(l);u&&(l=u[1],n=u[3])}else n=r[3]?r[3].slice(1,-1):"";return l=l.trim(),this.rules.other.startAngleBracket.test(l)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(o)?l=l.slice(1):l=l.slice(1,-1)),oS(r,{href:l&&l.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(i,r){let o;if((o=this.rules.inline.reflink.exec(i))||(o=this.rules.inline.nolink.exec(i))){let l=(o[2]||o[1]).replace(this.rules.other.multipleSpaceGlobal," "),n=r[l.toLowerCase()];if(!n){let u=o[0].charAt(0);return{type:"text",raw:u,text:u}}return oS(o,n,o[0],this.lexer,this.rules)}}emStrong(i,r,o=""){let l=this.rules.inline.emStrongLDelim.exec(i);if(!(!l||!l[1]&&!l[2]&&!l[3]&&!l[4]||l[4]&&o.match(this.rules.other.unicodeAlphaNumeric))&&(!(l[1]||l[3])||!o||this.rules.inline.punctuation.exec(o))){let n=[...l[0]].length-1,u,s,m=n,p=0,g=l[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(g.lastIndex=0,r=r.slice(-1*i.length+n);(l=g.exec(r))!==null;){if(u=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!u)continue;if(s=[...u].length,l[3]||l[4]){m+=s;continue}else if((l[5]||l[6])&&n%3&&!((n+s)%3)){p+=s;continue}if(m-=s,m>0)continue;s=Math.min(s,s+m+p);let v=[...l[0]][0].length,b=i.slice(0,n+l.index+v+s);if(Math.min(n,s)%2){let z=b.slice(1,-1);return{type:"em",raw:b,text:z,tokens:this.lexer.inlineTokens(z)}}let _=b.slice(2,-2);return{type:"strong",raw:b,text:_,tokens:this.lexer.inlineTokens(_)}}}}codespan(i){let r=this.rules.inline.code.exec(i);if(r){let o=r[2].replace(this.rules.other.newLineCharGlobal," "),l=this.rules.other.nonSpaceChar.test(o),n=this.rules.other.startingSpaceChar.test(o)&&this.rules.other.endingSpaceChar.test(o);return l&&n&&(o=o.substring(1,o.length-1)),{type:"codespan",raw:r[0],text:o}}}br(i){let r=this.rules.inline.br.exec(i);if(r)return{type:"br",raw:r[0]}}del(i,r,o=""){let l=this.rules.inline.delLDelim.exec(i);if(l&&(!l[1]||!o||this.rules.inline.punctuation.exec(o))){let n=[...l[0]].length-1,u,s,m=n,p=this.rules.inline.delRDelim;for(p.lastIndex=0,r=r.slice(-1*i.length+n);(l=p.exec(r))!==null;){if(u=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!u||(s=[...u].length,s!==n))continue;if(l[3]||l[4]){m+=s;continue}if(m-=s,m>0)continue;s=Math.min(s,s+m);let g=[...l[0]][0].length,v=i.slice(0,n+l.index+g+s),b=v.slice(n,-n);return{type:"del",raw:v,text:b,tokens:this.lexer.inlineTokens(b)}}}}autolink(i){let r=this.rules.inline.autolink.exec(i);if(r){let o,l;return r[2]==="@"?(o=r[1],l="mailto:"+o):(o=r[1],l=o),{type:"link",raw:r[0],text:o,href:l,tokens:[{type:"text",raw:o,text:o}]}}}url(i){var o;let r;if(r=this.rules.inline.url.exec(i)){let l,n;if(r[2]==="@")l=r[0],n="mailto:"+l;else{let u;do u=r[0],r[0]=((o=this.rules.inline._backpedal.exec(r[0]))==null?void 0:o[0])??"";while(u!==r[0]);l=r[0],r[1]==="www."?n="http://"+r[0]:n=r[0]}return{type:"link",raw:r[0],text:l,href:n,tokens:[{type:"text",raw:l,text:l}]}}}inlineText(i){let r=this.rules.inline.text.exec(i);if(r){let o=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:o}}}},En=class om{constructor(r){te(this,"tokens");te(this,"options");te(this,"state");te(this,"inlineQueue");te(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=r||hr,this.options.tokenizer=this.options.tokenizer||new mc,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let o={other:It,block:ic.normal,inline:xo.normal};this.options.pedantic?(o.block=ic.pedantic,o.inline=xo.pedantic):this.options.gfm&&(o.block=ic.gfm,this.options.breaks?o.inline=xo.breaks:o.inline=xo.gfm),this.tokenizer.rules=o}static get rules(){return{block:ic,inline:xo}}static lex(r,o){return new om(o).lex(r)}static lexInline(r,o){return new om(o).inlineTokens(r)}lex(r){r=r.replace(It.carriageReturn,`
188
- `),this.blockTokens(r,this.tokens);for(let o=0;o<this.inlineQueue.length;o++){let l=this.inlineQueue[o];this.inlineTokens(l.src,l.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(r,o=[],l=!1){var u,s,m;this.tokenizer.lexer=this,this.options.pedantic&&(r=r.replace(It.tabCharGlobal," ").replace(It.spaceLine,""));let n=1/0;for(;r;){if(r.length<n)n=r.length;else{this.infiniteLoopError(r.charCodeAt(0));break}let p;if((s=(u=this.options.extensions)==null?void 0:u.block)!=null&&s.some(v=>(p=v.call({lexer:this},r,o))?(r=r.substring(p.raw.length),o.push(p),!0):!1))continue;if(p=this.tokenizer.space(r)){r=r.substring(p.raw.length);let v=o.at(-1);p.raw.length===1&&v!==void 0?v.raw+=`
187
+ `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:o,tokens:this.lexer.inline(o)}}}text(i){let r=this.rules.block.text.exec(i);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(i){let r=this.rules.inline.escape.exec(i);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(i){let r=this.rules.inline.tag.exec(i);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(i){let r=this.rules.inline.link.exec(i);if(r){let o=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(o)){if(!this.rules.other.endAngleBracket.test(o))return;let u=Ii(o.slice(0,-1),"\\");if((o.length-u.length)%2===0)return}else{let u=mU(r[2],"()");if(u===-2)return;if(u>-1){let s=(r[0].indexOf("!")===0?5:4)+r[1].length+u;r[2]=r[2].substring(0,u),r[0]=r[0].substring(0,s).trim(),r[3]=""}}let l=r[2],n="";if(this.options.pedantic){let u=this.rules.other.pedanticHrefTitle.exec(l);u&&(l=u[1],n=u[3])}else n=r[3]?r[3].slice(1,-1):"";return l=l.trim(),this.rules.other.startAngleBracket.test(l)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(o)?l=l.slice(1):l=l.slice(1,-1)),lS(r,{href:l&&l.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(i,r){let o;if((o=this.rules.inline.reflink.exec(i))||(o=this.rules.inline.nolink.exec(i))){let l=(o[2]||o[1]).replace(this.rules.other.multipleSpaceGlobal," "),n=r[l.toLowerCase()];if(!n){let u=o[0].charAt(0);return{type:"text",raw:u,text:u}}return lS(o,n,o[0],this.lexer,this.rules)}}emStrong(i,r,o=""){let l=this.rules.inline.emStrongLDelim.exec(i);if(!(!l||!l[1]&&!l[2]&&!l[3]&&!l[4]||l[4]&&o.match(this.rules.other.unicodeAlphaNumeric))&&(!(l[1]||l[3])||!o||this.rules.inline.punctuation.exec(o))){let n=[...l[0]].length-1,u,s,m=n,p=0,g=l[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(g.lastIndex=0,r=r.slice(-1*i.length+n);(l=g.exec(r))!==null;){if(u=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!u)continue;if(s=[...u].length,l[3]||l[4]){m+=s;continue}else if((l[5]||l[6])&&n%3&&!((n+s)%3)){p+=s;continue}if(m-=s,m>0)continue;s=Math.min(s,s+m+p);let v=[...l[0]][0].length,b=i.slice(0,n+l.index+v+s);if(Math.min(n,s)%2){let z=b.slice(1,-1);return{type:"em",raw:b,text:z,tokens:this.lexer.inlineTokens(z)}}let _=b.slice(2,-2);return{type:"strong",raw:b,text:_,tokens:this.lexer.inlineTokens(_)}}}}codespan(i){let r=this.rules.inline.code.exec(i);if(r){let o=r[2].replace(this.rules.other.newLineCharGlobal," "),l=this.rules.other.nonSpaceChar.test(o),n=this.rules.other.startingSpaceChar.test(o)&&this.rules.other.endingSpaceChar.test(o);return l&&n&&(o=o.substring(1,o.length-1)),{type:"codespan",raw:r[0],text:o}}}br(i){let r=this.rules.inline.br.exec(i);if(r)return{type:"br",raw:r[0]}}del(i,r,o=""){let l=this.rules.inline.delLDelim.exec(i);if(l&&(!l[1]||!o||this.rules.inline.punctuation.exec(o))){let n=[...l[0]].length-1,u,s,m=n,p=this.rules.inline.delRDelim;for(p.lastIndex=0,r=r.slice(-1*i.length+n);(l=p.exec(r))!==null;){if(u=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!u||(s=[...u].length,s!==n))continue;if(l[3]||l[4]){m+=s;continue}if(m-=s,m>0)continue;s=Math.min(s,s+m);let g=[...l[0]][0].length,v=i.slice(0,n+l.index+g+s),b=v.slice(n,-n);return{type:"del",raw:v,text:b,tokens:this.lexer.inlineTokens(b)}}}}autolink(i){let r=this.rules.inline.autolink.exec(i);if(r){let o,l;return r[2]==="@"?(o=r[1],l="mailto:"+o):(o=r[1],l=o),{type:"link",raw:r[0],text:o,href:l,tokens:[{type:"text",raw:o,text:o}]}}}url(i){var o;let r;if(r=this.rules.inline.url.exec(i)){let l,n;if(r[2]==="@")l=r[0],n="mailto:"+l;else{let u;do u=r[0],r[0]=((o=this.rules.inline._backpedal.exec(r[0]))==null?void 0:o[0])??"";while(u!==r[0]);l=r[0],r[1]==="www."?n="http://"+r[0]:n=r[0]}return{type:"link",raw:r[0],text:l,href:n,tokens:[{type:"text",raw:l,text:l}]}}}inlineText(i){let r=this.rules.inline.text.exec(i);if(r){let o=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:o}}}},jn=class um{constructor(r){ne(this,"tokens");ne(this,"options");ne(this,"state");ne(this,"inlineQueue");ne(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=r||yr,this.options.tokenizer=this.options.tokenizer||new gc,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let o={other:Rt,block:oc.normal,inline:To.normal};this.options.pedantic?(o.block=oc.pedantic,o.inline=To.pedantic):this.options.gfm&&(o.block=oc.gfm,this.options.breaks?o.inline=To.breaks:o.inline=To.gfm),this.tokenizer.rules=o}static get rules(){return{block:oc,inline:To}}static lex(r,o){return new um(o).lex(r)}static lexInline(r,o){return new um(o).inlineTokens(r)}lex(r){r=r.replace(Rt.carriageReturn,`
188
+ `),this.blockTokens(r,this.tokens);for(let o=0;o<this.inlineQueue.length;o++){let l=this.inlineQueue[o];this.inlineTokens(l.src,l.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(r,o=[],l=!1){var u,s,m;this.tokenizer.lexer=this,this.options.pedantic&&(r=r.replace(Rt.tabCharGlobal," ").replace(Rt.spaceLine,""));let n=1/0;for(;r;){if(r.length<n)n=r.length;else{this.infiniteLoopError(r.charCodeAt(0));break}let p;if((s=(u=this.options.extensions)==null?void 0:u.block)!=null&&s.some(v=>(p=v.call({lexer:this},r,o))?(r=r.substring(p.raw.length),o.push(p),!0):!1))continue;if(p=this.tokenizer.space(r)){r=r.substring(p.raw.length);let v=o.at(-1);p.raw.length===1&&v!==void 0?v.raw+=`
189
189
  `:o.push(p);continue}if(p=this.tokenizer.code(r)){r=r.substring(p.raw.length);let v=o.at(-1);(v==null?void 0:v.type)==="paragraph"||(v==null?void 0:v.type)==="text"?(v.raw+=(v.raw.endsWith(`
190
190
  `)?"":`
191
191
  `)+p.raw,v.text+=`
@@ -198,9 +198,9 @@ ${v}`:v;let b=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
198
198
  `+p.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=v.text):o.push(p),l=g.length!==r.length,r=r.substring(p.raw.length);continue}if(p=this.tokenizer.text(r)){r=r.substring(p.raw.length);let v=o.at(-1);(v==null?void 0:v.type)==="text"?(v.raw+=(v.raw.endsWith(`
199
199
  `)?"":`
200
200
  `)+p.raw,v.text+=`
201
- `+p.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=v.text):o.push(p);continue}if(r){this.infiniteLoopError(r.charCodeAt(0));break}}return this.state.top=!0,o}inline(r,o=[]){return this.inlineQueue.push({src:r,tokens:o}),o}inlineTokens(r,o=[]){var g,v,b,_,z;this.tokenizer.lexer=this;let l=r,n=null;if(this.tokens.links){let x=Object.keys(this.tokens.links);if(x.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(l))!==null;)x.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(l))!==null;)l=l.slice(0,n.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let u;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(l))!==null;)u=n[2]?n[2].length:0,l=l.slice(0,n.index+u)+"["+"a".repeat(n[0].length-u-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);l=((v=(g=this.options.hooks)==null?void 0:g.emStrongMask)==null?void 0:v.call({lexer:this},l))??l;let s=!1,m="",p=1/0;for(;r;){if(r.length<p)p=r.length;else{this.infiniteLoopError(r.charCodeAt(0));break}s||(m=""),s=!1;let x;if((_=(b=this.options.extensions)==null?void 0:b.inline)!=null&&_.some(J=>(x=J.call({lexer:this},r,o))?(r=r.substring(x.raw.length),o.push(x),!0):!1))continue;if(x=this.tokenizer.escape(r)){r=r.substring(x.raw.length),o.push(x);continue}if(x=this.tokenizer.tag(r)){r=r.substring(x.raw.length),o.push(x);continue}if(x=this.tokenizer.link(r)){r=r.substring(x.raw.length),o.push(x);continue}if(x=this.tokenizer.reflink(r,this.tokens.links)){r=r.substring(x.raw.length);let J=o.at(-1);x.type==="text"&&(J==null?void 0:J.type)==="text"?(J.raw+=x.raw,J.text+=x.text):o.push(x);continue}if(x=this.tokenizer.emStrong(r,l,m)){r=r.substring(x.raw.length),o.push(x);continue}if(x=this.tokenizer.codespan(r)){r=r.substring(x.raw.length),o.push(x);continue}if(x=this.tokenizer.br(r)){r=r.substring(x.raw.length),o.push(x);continue}if(x=this.tokenizer.del(r,l,m)){r=r.substring(x.raw.length),o.push(x);continue}if(x=this.tokenizer.autolink(r)){r=r.substring(x.raw.length),o.push(x);continue}if(!this.state.inLink&&(x=this.tokenizer.url(r))){r=r.substring(x.raw.length),o.push(x);continue}let H=r;if((z=this.options.extensions)!=null&&z.startInline){let J=1/0,F=r.slice(1),se;this.options.extensions.startInline.forEach(de=>{se=de.call({lexer:this},F),typeof se=="number"&&se>=0&&(J=Math.min(J,se))}),J<1/0&&J>=0&&(H=r.substring(0,J+1))}if(x=this.tokenizer.inlineText(H)){r=r.substring(x.raw.length),x.raw.slice(-1)!=="_"&&(m=x.raw.slice(-1)),s=!0;let J=o.at(-1);(J==null?void 0:J.type)==="text"?(J.raw+=x.raw,J.text+=x.text):o.push(x);continue}if(r){this.infiniteLoopError(r.charCodeAt(0));break}}return o}infiniteLoopError(r){let o="Infinite loop on byte: "+r;if(this.options.silent)console.error(o);else throw new Error(o)}},pc=class{constructor(i){te(this,"options");te(this,"parser");this.options=i||hr}space(i){return""}code({text:i,lang:r,escaped:o}){var u;let l=(u=(r||"").match(It.notSpaceStart))==null?void 0:u[0],n=i.replace(It.endingNewline,"")+`
202
- `;return l?'<pre><code class="language-'+Rn(l)+'">'+(o?n:Rn(n,!0))+`</code></pre>
203
- `:"<pre><code>"+(o?n:Rn(n,!0))+`</code></pre>
201
+ `+p.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=v.text):o.push(p);continue}if(r){this.infiniteLoopError(r.charCodeAt(0));break}}return this.state.top=!0,o}inline(r,o=[]){return this.inlineQueue.push({src:r,tokens:o}),o}inlineTokens(r,o=[]){var g,v,b,_,z;this.tokenizer.lexer=this;let l=r,n=null;if(this.tokens.links){let x=Object.keys(this.tokens.links);if(x.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(l))!==null;)x.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(l))!==null;)l=l.slice(0,n.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let u;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(l))!==null;)u=n[2]?n[2].length:0,l=l.slice(0,n.index+u)+"["+"a".repeat(n[0].length-u-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);l=((v=(g=this.options.hooks)==null?void 0:g.emStrongMask)==null?void 0:v.call({lexer:this},l))??l;let s=!1,m="",p=1/0;for(;r;){if(r.length<p)p=r.length;else{this.infiniteLoopError(r.charCodeAt(0));break}s||(m=""),s=!1;let x;if((_=(b=this.options.extensions)==null?void 0:b.inline)!=null&&_.some(J=>(x=J.call({lexer:this},r,o))?(r=r.substring(x.raw.length),o.push(x),!0):!1))continue;if(x=this.tokenizer.escape(r)){r=r.substring(x.raw.length),o.push(x);continue}if(x=this.tokenizer.tag(r)){r=r.substring(x.raw.length),o.push(x);continue}if(x=this.tokenizer.link(r)){r=r.substring(x.raw.length),o.push(x);continue}if(x=this.tokenizer.reflink(r,this.tokens.links)){r=r.substring(x.raw.length);let J=o.at(-1);x.type==="text"&&(J==null?void 0:J.type)==="text"?(J.raw+=x.raw,J.text+=x.text):o.push(x);continue}if(x=this.tokenizer.emStrong(r,l,m)){r=r.substring(x.raw.length),o.push(x);continue}if(x=this.tokenizer.codespan(r)){r=r.substring(x.raw.length),o.push(x);continue}if(x=this.tokenizer.br(r)){r=r.substring(x.raw.length),o.push(x);continue}if(x=this.tokenizer.del(r,l,m)){r=r.substring(x.raw.length),o.push(x);continue}if(x=this.tokenizer.autolink(r)){r=r.substring(x.raw.length),o.push(x);continue}if(!this.state.inLink&&(x=this.tokenizer.url(r))){r=r.substring(x.raw.length),o.push(x);continue}let H=r;if((z=this.options.extensions)!=null&&z.startInline){let J=1/0,F=r.slice(1),se;this.options.extensions.startInline.forEach(ge=>{se=ge.call({lexer:this},F),typeof se=="number"&&se>=0&&(J=Math.min(J,se))}),J<1/0&&J>=0&&(H=r.substring(0,J+1))}if(x=this.tokenizer.inlineText(H)){r=r.substring(x.raw.length),x.raw.slice(-1)!=="_"&&(m=x.raw.slice(-1)),s=!0;let J=o.at(-1);(J==null?void 0:J.type)==="text"?(J.raw+=x.raw,J.text+=x.text):o.push(x);continue}if(r){this.infiniteLoopError(r.charCodeAt(0));break}}return o}infiniteLoopError(r){let o="Infinite loop on byte: "+r;if(this.options.silent)console.error(o);else throw new Error(o)}},vc=class{constructor(i){ne(this,"options");ne(this,"parser");this.options=i||yr}space(i){return""}code({text:i,lang:r,escaped:o}){var u;let l=(u=(r||"").match(Rt.notSpaceStart))==null?void 0:u[0],n=i.replace(Rt.endingNewline,"")+`
202
+ `;return l?'<pre><code class="language-'+Zn(l)+'">'+(o?n:Zn(n,!0))+`</code></pre>
203
+ `:"<pre><code>"+(o?n:Zn(n,!0))+`</code></pre>
204
204
  `}blockquote({tokens:i}){return`<blockquote>
205
205
  ${this.parser.parse(i)}</blockquote>
206
206
  `}html({text:i}){return i}def(i){return""}heading({tokens:i,depth:r}){return`<h${r}>${this.parser.parseInline(i)}</h${r}>
@@ -216,10 +216,11 @@ ${this.parser.parse(i)}</blockquote>
216
216
  `}tablerow({text:i}){return`<tr>
217
217
  ${i}</tr>
218
218
  `}tablecell(i){let r=this.parser.parseInline(i.tokens),o=i.header?"th":"td";return(i.align?`<${o} align="${i.align}">`:`<${o}>`)+r+`</${o}>
219
- `}strong({tokens:i}){return`<strong>${this.parser.parseInline(i)}</strong>`}em({tokens:i}){return`<em>${this.parser.parseInline(i)}</em>`}codespan({text:i}){return`<code>${Rn(i,!0)}</code>`}br(i){return"<br>"}del({tokens:i}){return`<del>${this.parser.parseInline(i)}</del>`}link({href:i,title:r,tokens:o}){let l=this.parser.parseInline(o),n=iS(i);if(n===null)return l;i=n;let u='<a href="'+i+'"';return r&&(u+=' title="'+Rn(r)+'"'),u+=">"+l+"</a>",u}image({href:i,title:r,text:o,tokens:l}){l&&(o=this.parser.parseInline(l,this.parser.textRenderer));let n=iS(i);if(n===null)return Rn(o);i=n;let u=`<img src="${i}" alt="${Rn(o)}"`;return r&&(u+=` title="${Rn(r)}"`),u+=">",u}text(i){return"tokens"in i&&i.tokens?this.parser.parseInline(i.tokens):"escaped"in i&&i.escaped?i.text:Rn(i.text)}},ug=class{strong({text:i}){return i}em({text:i}){return i}codespan({text:i}){return i}del({text:i}){return i}html({text:i}){return i}text({text:i}){return i}link({text:i}){return""+i}image({text:i}){return""+i}br(){return""}checkbox({raw:i}){return i}},On=class lm{constructor(r){te(this,"options");te(this,"renderer");te(this,"textRenderer");this.options=r||hr,this.options.renderer=this.options.renderer||new pc,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ug}static parse(r,o){return new lm(o).parse(r)}static parseInline(r,o){return new lm(o).parseInline(r)}parse(r){var l,n;this.renderer.parser=this;let o="";for(let u=0;u<r.length;u++){let s=r[u];if((n=(l=this.options.extensions)==null?void 0:l.renderers)!=null&&n[s.type]){let p=s,g=this.options.extensions.renderers[p.type].call({parser:this},p);if(g!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(p.type)){o+=g||"";continue}}let m=s;switch(m.type){case"space":{o+=this.renderer.space(m);break}case"hr":{o+=this.renderer.hr(m);break}case"heading":{o+=this.renderer.heading(m);break}case"code":{o+=this.renderer.code(m);break}case"table":{o+=this.renderer.table(m);break}case"blockquote":{o+=this.renderer.blockquote(m);break}case"list":{o+=this.renderer.list(m);break}case"checkbox":{o+=this.renderer.checkbox(m);break}case"html":{o+=this.renderer.html(m);break}case"def":{o+=this.renderer.def(m);break}case"paragraph":{o+=this.renderer.paragraph(m);break}case"text":{o+=this.renderer.text(m);break}default:{let p='Token with "'+m.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return o}parseInline(r,o=this.renderer){var n,u;this.renderer.parser=this;let l="";for(let s=0;s<r.length;s++){let m=r[s];if((u=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&u[m.type]){let g=this.options.extensions.renderers[m.type].call({parser:this},m);if(g!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(m.type)){l+=g||"";continue}}let p=m;switch(p.type){case"escape":{l+=o.text(p);break}case"html":{l+=o.html(p);break}case"link":{l+=o.link(p);break}case"image":{l+=o.image(p);break}case"checkbox":{l+=o.checkbox(p);break}case"strong":{l+=o.strong(p);break}case"em":{l+=o.em(p);break}case"codespan":{l+=o.codespan(p);break}case"br":{l+=o.br(p);break}case"del":{l+=o.del(p);break}case"text":{l+=o.text(p);break}default:{let g='Token with "'+p.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}}return l}},rc,To=(rc=class{constructor(i){te(this,"options");te(this,"block");this.options=i||hr}preprocess(i){return i}postprocess(i){return i}processAllTokens(i){return i}emStrongMask(i){return i}provideLexer(i=this.block){return i?En.lex:En.lexInline}provideParser(i=this.block){return i?On.parse:On.parseInline}},te(rc,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),te(rc,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),rc),pU=class{constructor(...i){te(this,"defaults",eg());te(this,"options",this.setOptions);te(this,"parse",this.parseMarkdown(!0));te(this,"parseInline",this.parseMarkdown(!1));te(this,"Parser",On);te(this,"Renderer",pc);te(this,"TextRenderer",ug);te(this,"Lexer",En);te(this,"Tokenizer",mc);te(this,"Hooks",To);this.use(...i)}walkTokens(i,r){var l,n;let o=[];for(let u of i)switch(o=o.concat(r.call(this,u)),u.type){case"table":{let s=u;for(let m of s.header)o=o.concat(this.walkTokens(m.tokens,r));for(let m of s.rows)for(let p of m)o=o.concat(this.walkTokens(p.tokens,r));break}case"list":{let s=u;o=o.concat(this.walkTokens(s.items,r));break}default:{let s=u;(n=(l=this.defaults.extensions)==null?void 0:l.childTokens)!=null&&n[s.type]?this.defaults.extensions.childTokens[s.type].forEach(m=>{let p=s[m].flat(1/0);o=o.concat(this.walkTokens(p,r))}):s.tokens&&(o=o.concat(this.walkTokens(s.tokens,r)))}}return o}use(...i){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return i.forEach(o=>{let l={...o};if(l.async=this.defaults.async||l.async||!1,o.extensions&&(o.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let u=r.renderers[n.name];u?r.renderers[n.name]=function(...s){let m=n.renderer.apply(this,s);return m===!1&&(m=u.apply(this,s)),m}:r.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let u=r[n.level];u?u.unshift(n.tokenizer):r[n.level]=[n.tokenizer],n.start&&(n.level==="block"?r.startBlock?r.startBlock.push(n.start):r.startBlock=[n.start]:n.level==="inline"&&(r.startInline?r.startInline.push(n.start):r.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(r.childTokens[n.name]=n.childTokens)}),l.extensions=r),o.renderer){let n=this.defaults.renderer||new pc(this.defaults);for(let u in o.renderer){if(!(u in n))throw new Error(`renderer '${u}' does not exist`);if(["options","parser"].includes(u))continue;let s=u,m=o.renderer[s],p=n[s];n[s]=(...g)=>{let v=m.apply(n,g);return v===!1&&(v=p.apply(n,g)),v||""}}l.renderer=n}if(o.tokenizer){let n=this.defaults.tokenizer||new mc(this.defaults);for(let u in o.tokenizer){if(!(u in n))throw new Error(`tokenizer '${u}' does not exist`);if(["options","rules","lexer"].includes(u))continue;let s=u,m=o.tokenizer[s],p=n[s];n[s]=(...g)=>{let v=m.apply(n,g);return v===!1&&(v=p.apply(n,g)),v}}l.tokenizer=n}if(o.hooks){let n=this.defaults.hooks||new To;for(let u in o.hooks){if(!(u in n))throw new Error(`hook '${u}' does not exist`);if(["options","block"].includes(u))continue;let s=u,m=o.hooks[s],p=n[s];To.passThroughHooks.has(u)?n[s]=g=>{if(this.defaults.async&&To.passThroughHooksRespectAsync.has(u))return(async()=>{let b=await m.call(n,g);return p.call(n,b)})();let v=m.call(n,g);return p.call(n,v)}:n[s]=(...g)=>{if(this.defaults.async)return(async()=>{let b=await m.apply(n,g);return b===!1&&(b=await p.apply(n,g)),b})();let v=m.apply(n,g);return v===!1&&(v=p.apply(n,g)),v}}l.hooks=n}if(o.walkTokens){let n=this.defaults.walkTokens,u=o.walkTokens;l.walkTokens=function(s){let m=[];return m.push(u.call(this,s)),n&&(m=m.concat(n.call(this,s))),m}}this.defaults={...this.defaults,...l}}),this}setOptions(i){return this.defaults={...this.defaults,...i},this}lexer(i,r){return En.lex(i,r??this.defaults)}parser(i,r){return On.parse(i,r??this.defaults)}parseMarkdown(i){return(r,o)=>{let l={...o},n={...this.defaults,...l},u=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&l.async===!1)return u(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return u(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=i),n.async)return(async()=>{let s=n.hooks?await n.hooks.preprocess(r):r,m=await(n.hooks?await n.hooks.provideLexer(i):i?En.lex:En.lexInline)(s,n),p=n.hooks?await n.hooks.processAllTokens(m):m;n.walkTokens&&await Promise.all(this.walkTokens(p,n.walkTokens));let g=await(n.hooks?await n.hooks.provideParser(i):i?On.parse:On.parseInline)(p,n);return n.hooks?await n.hooks.postprocess(g):g})().catch(u);try{n.hooks&&(r=n.hooks.preprocess(r));let s=(n.hooks?n.hooks.provideLexer(i):i?En.lex:En.lexInline)(r,n);n.hooks&&(s=n.hooks.processAllTokens(s)),n.walkTokens&&this.walkTokens(s,n.walkTokens);let m=(n.hooks?n.hooks.provideParser(i):i?On.parse:On.parseInline)(s,n);return n.hooks&&(m=n.hooks.postprocess(m)),m}catch(s){return u(s)}}}onError(i,r){return o=>{if(o.message+=`
220
- Please report this to https://github.com/markedjs/marked.`,i){let l="<p>An error occurred:</p><pre>"+Rn(o.message+"",!0)+"</pre>";return r?Promise.resolve(l):l}if(r)return Promise.reject(o);throw o}}},dr=new pU;function qe(i,r){return dr.parse(i,r)}qe.options=qe.setOptions=function(i){return dr.setOptions(i),qe.defaults=dr.defaults,Yz(qe.defaults),qe};qe.getDefaults=eg;qe.defaults=hr;qe.use=function(...i){return dr.use(...i),qe.defaults=dr.defaults,Yz(qe.defaults),qe};qe.walkTokens=function(i,r){return dr.walkTokens(i,r)};qe.parseInline=dr.parseInline;qe.Parser=On;qe.parser=On.parse;qe.Renderer=pc;qe.TextRenderer=ug;qe.Lexer=En;qe.lexer=En.lex;qe.Tokenizer=mc;qe.Hooks=To;qe.parse=qe;qe.options;qe.setOptions;qe.use;qe.walkTokens;qe.parseInline;On.parse;En.lex;qe.setOptions({breaks:!0,gfm:!0});function hU(){try{const i=new AudioContext,r=i.createOscillator(),o=i.createGain();r.connect(o),o.connect(i.destination),r.type="sine",r.frequency.setValueAtTime(880,i.currentTime),r.frequency.setValueAtTime(1047,i.currentTime+.08),o.gain.setValueAtTime(.15,i.currentTime),o.gain.exponentialRampToValueAtTime(.001,i.currentTime+.25),r.start(i.currentTime),r.stop(i.currentTime+.25),setTimeout(()=>i.close(),500)}catch{}}function gU(){ne.useEffect(()=>{const i=()=>window.focus(),r=o=>{const l=o.target;l&&(l.tagName==="TEXTAREA"||l.tagName==="INPUT"||l.isContentEditable)&&(o.metaKey||o.ctrlKey||o.altKey||o.stopPropagation())};return document.addEventListener("focusin",i),document.addEventListener("click",i),document.addEventListener("keydown",r),document.addEventListener("keypress",r),()=>{document.removeEventListener("focusin",i),document.removeEventListener("click",i),document.removeEventListener("keydown",r),document.removeEventListener("keypress",r)}},[])}const Ff="After completing, call interactive_feedback to check in with me.",vU=[{icon:"play",label:"Continue",text:"Continue"},{icon:"check",label:"LGTM",text:"Looks good, proceed"},{icon:"bolt",label:"Fix",text:"Please fix the issues"},{icon:"pause",label:"Pause",text:"Stop, let me review first"}];function yU({name:i}){switch(i){case"play":return ee.jsx("svg",{viewBox:"0 0 16 16",width:"14",height:"14","aria-hidden":"true",children:ee.jsx("path",{fill:"currentColor",d:"M5.3 3.2c-.5-.3-1.3 0-1.3.8v8c0 .8.8 1.1 1.3.8l7-4c.5-.3.5-1.1 0-1.4l-7-4z"})});case"check":return ee.jsx("svg",{viewBox:"0 0 16 16",width:"14",height:"14","aria-hidden":"true",children:ee.jsx("path",{fill:"currentColor",d:"M6.5 11.6 3.3 8.4a1 1 0 0 1 1.4-1.4l1.8 1.8 4.8-4.8a1 1 0 1 1 1.4 1.4l-6.2 6.2z"})});case"bolt":return ee.jsx("svg",{viewBox:"0 0 16 16",width:"14",height:"14","aria-hidden":"true",children:ee.jsx("path",{fill:"currentColor",d:"M9.6 1.5a.9.9 0 0 1 .8 1.2L9 6.4h4a.9.9 0 0 1 .7 1.5l-7.3 6.6a.9.9 0 0 1-1.4-1l1.4-4.1H3a.9.9 0 0 1-.7-1.5l6.7-6.1a.9.9 0 0 1 .6-.3z"})});case"pause":return ee.jsx("svg",{viewBox:"0 0 16 16",width:"14",height:"14","aria-hidden":"true",children:ee.jsx("path",{fill:"currentColor",d:"M4.5 3.2c-.7 0-1.3.6-1.3 1.3v7c0 .7.6 1.3 1.3 1.3h1c.7 0 1.3-.6 1.3-1.3v-7c0-.7-.6-1.3-1.3-1.3h-1zm7 0c-.7 0-1.3.6-1.3 1.3v7c0 .7.6 1.3 1.3 1.3h1c.7 0 1.3-.6 1.3-1.3v-7c0-.7-.6-1.3-1.3-1.3h-1z"})})}}function bU(){const[i,r]=ne.useState(""),[o,l]=ne.useState(!1),[n,u]=ne.useState(void 0),[s,m]=ne.useState(""),[p,g]=ne.useState(""),[v,b]=ne.useState(null),[_,z]=ne.useState(!0),x=ne.useRef(!1);ne.useEffect(()=>{if(!_)return;const F=setTimeout(()=>{z(!1),b(new Error("Connection timeout. The MCP Feedback server may be unavailable."))},15e3);return()=>clearTimeout(F)},[_]);const{app:H,error:J}=zO({appInfo:{name:"MCP Feedback",version:"1.0.0"},capabilities:{},onAppCreated:F=>{F.onerror=console.error,F.ontoolinput=async se=>{var Ee,ue;if(x.current)return;const de=(Ee=se.arguments)==null?void 0:Ee.summary,be=(ue=se.arguments)==null?void 0:ue.sessionId;de&&(x.current=!0,r(de.trim()),l(!0),be&&u(be),hU())},F.ontoolresult=se=>{var ue;const de=((ue=se.content)==null?void 0:ue.filter(G=>G.type==="text"))||[];let be="",Ee="";for(const G of de)try{const ge=JSON.parse(G.text);if(ge._mcp_meta){be=ge.sessionId||"",Ee=ge.userInput||"";break}}catch{}!Ee&&de.length>0&&(Ee=de[0].text.replace(/\x3C!--[\s\S]*?-->/g,"").trim()),m(Ee),g("Sent ✓ "+be),l(!1),x.current=!1},F.ontoolcancelled=()=>{x.current||l(!1)}}});return TO(H,H==null?void 0:H.getHostContext()),gU(),ne.useEffect(()=>{J&&(b(J),z(!1))},[J]),ne.useEffect(()=>{H&&z(!1)},[H]),v?ee.jsx("div",{className:"fb-container",children:ee.jsx("div",{className:"fb-error",children:v.message})}):_||!H?ee.jsx("div",{className:"fb-container",children:ee.jsx("div",{className:"fb-status",children:"Connecting..."})}):ee.jsx(ee.Fragment,{children:ee.jsx(SU,{app:H,summary:i,hasPending:o,sessionId:n,initialText:s,initialStatusText:p,onSubmitted:()=>{l(!1),x.current=!1}})})}function _U({text:i}){const[r,o]=ne.useState(!1),l=ne.useCallback(()=>{var n;(n=navigator.clipboard)==null||n.writeText(i).then(()=>{o(!0),setTimeout(()=>o(!1),1500)}).catch(()=>{})},[i]);return ee.jsxs("div",{className:"fb-summary",children:[ee.jsx("div",{className:"fb-summary-header",children:ee.jsx("button",{className:`fb-copy-btn ${r?"copied":""}`,onClick:l,children:r?"Copied":"Copy"})}),ee.jsx("div",{className:"fb-summary-text",dangerouslySetInnerHTML:{__html:qe.parse(i)}})]})}function SU({app:i,summary:r,hasPending:o,sessionId:l,initialText:n,initialStatusText:u,onSubmitted:s}){var $e;const[m,p]=ne.useState(""),[g,v]=ne.useState([]),[b,_]=ne.useState(!1),[z,x]=ne.useState(""),[H,J]=ne.useState(""),[F,se]=ne.useState(()=>{try{const A=sessionStorage.getItem("mcp-feedback-autoAppend");if(A!==null)return A==="true";const P=document.getElementById("mcp-feedback-settings");if(P!=null&&P.textContent)return JSON.parse(P.textContent).autoAppend??!0}catch{}return!0}),[de,be]=ne.useState(()=>{try{const A=sessionStorage.getItem("mcp-feedback-autoAppendText");if(A)return A;const P=document.getElementById("mcp-feedback-settings");if(P!=null&&P.textContent)return JSON.parse(P.textContent).autoAppendText||Ff}catch{}return Ff});ne.useEffect(()=>{try{sessionStorage.setItem("mcp-feedback-autoAppend",String(F))}catch{}},[F]),ne.useEffect(()=>{try{sessionStorage.setItem("mcp-feedback-autoAppendText",de)}catch{}},[de]);const[Ee,ue]=ne.useState(!1),G=ne.useRef(null),ge=ne.useRef(null),Ae=ne.useRef([]),Ut=ne.useRef([]),_t=ne.useRef(""),Dt=ne.useCallback(A=>{A!==_t.current&&(Ae.current.push(_t.current),Ae.current.length>100&&Ae.current.shift(),Ut.current=[],_t.current=A)},[]);ne.useEffect(()=>{n&&(p(n),_t.current=n,Ae.current=[],Ut.current=[])},[n]),ne.useEffect(()=>{u&&J(u)},[u]);const Zn=ne.useCallback(()=>{var A;l&&((A=navigator.clipboard)==null||A.writeText(l).catch(()=>{}))},[l]);ne.useEffect(()=>{o&&l?J("Session: "+l):o&&J("Session: (none)")},[o,l]);const zn=ne.useCallback(()=>{se(!0),be(Ff)},[]),jt=ne.useCallback(async(A,P)=>{const{imgs:me,skipAppend:rt=!1}=P??{};if(!(!A.trim()||!o||b||!l)){x(""),J("Submitting..."),_(!0);try{const pt={autoAppend:F,autoAppendText:de,...rt?{skipAppend:!0}:{}},Dn={feedback:A.trim()+`
221
- \x3C!--mcp-settings:${JSON.stringify(pt)}-->`,sessionId:l},Xt=me??g;Xt.length>0&&(Dn.images=Xt),await i.callServerTool({name:"submit_feedback",arguments:Dn}),J("Sent ✓ "+(l||"")),s()}catch(pt){J("ERROR "+(l||"")),x((pt==null?void 0:pt.message)||String(pt))}finally{_(!1)}}},[i,o,b,g,F,de,l,s]),C=ne.useCallback(()=>jt(m),[jt,m]),Y=ne.useCallback((A,P)=>jt(A,{imgs:[],skipAppend:P}),[jt]),re=A=>new Promise(P=>{const me=new FileReader;me.onload=()=>P(me.result.split(",")[1]),me.readAsDataURL(A)}),xe=ne.useCallback(A=>v(P=>[...P,A]),[]),He=ne.useCallback(A=>v(P=>P.filter((me,rt)=>rt!==A)),[]),k=ne.useCallback(A=>{const P=G.current;if(!P)return;const me=P.selectionStart??m.length,rt=P.selectionEnd??m.length;p(m.slice(0,me)+A+m.slice(rt)),queueMicrotask(()=>{try{P.focus(),P.setSelectionRange(me+A.length,me+A.length)}catch{}})},[m]),q=ne.useCallback(async()=>{var A;try{if(navigator.clipboard&&"read"in navigator.clipboard){const P=await navigator.clipboard.read();for(const me of P)for(const rt of me.types??[])if(typeof rt=="string"&&rt.startsWith("image/")){const pt=await me.getType(rt);xe(await re(new File([pt],"pasted.png",{type:rt})));return}}if((A=navigator.clipboard)!=null&&A.readText){const P=await navigator.clipboard.readText();P&&k(P)}}catch(P){x(`Paste: ${P==null?void 0:P.message}`)}},[xe,k]),X=ne.useCallback(async A=>{var me;const P=(me=A.clipboardData)==null?void 0:me.items;if(P){for(const rt of P)if(rt.type.startsWith("image/")){A.preventDefault();const pt=rt.getAsFile();pt&&xe(await re(pt))}}},[xe]),K=ne.useCallback(async A=>{A.preventDefault();for(const P of A.dataTransfer.files)P.type.startsWith("image/")&&xe(await re(P))},[xe]),fe=ne.useCallback(async A=>{const P=A.target.files;if(P){for(const me of P)me.type.startsWith("image/")&&xe(await re(me));A.target.value=""}},[xe]);return ee.jsxs("div",{className:"fb-container",children:[r&&ee.jsx(_U,{text:r}),ee.jsxs("div",{className:"fb-input-area",onDrop:K,onDragOver:A=>{A.preventDefault(),A.dataTransfer.dropEffect="copy"},children:[ee.jsx("textarea",{ref:G,className:"fb-textarea",value:m,onChange:A=>{const P=A.target.value;Dt(P),p(P)},onPaste:X,onFocus:()=>window.focus(),onMouseDown:()=>window.focus(),onKeyDown:A=>{var P,me,rt,pt;if((A.ctrlKey||A.metaKey)&&(A.key==="c"||A.key==="C")&&!A.nativeEvent.isComposing){A.preventDefault(),A.stopPropagation();const ct=((P=window.getSelection())==null?void 0:P.toString())||"";(me=navigator.clipboard)==null||me.writeText(ct).catch(()=>document.execCommand("copy"));return}if((A.ctrlKey||A.metaKey)&&(A.key==="x"||A.key==="X")&&!A.nativeEvent.isComposing){A.preventDefault(),A.stopPropagation();const ct=G.current;if(ct){const{selectionStart:Dn,selectionEnd:Xt}=ct,Ea=ct.value.substring(Dn,Xt);(rt=navigator.clipboard)==null||rt.writeText(Ea).catch(()=>document.execCommand("cut")),p(ct.value.substring(0,Dn)+ct.value.substring(Xt)),queueMicrotask(()=>{try{ct.focus(),ct.setSelectionRange(Dn,Dn)}catch{}})}return}if((A.ctrlKey||A.metaKey)&&(A.key==="a"||A.key==="A")&&!A.nativeEvent.isComposing){A.preventDefault(),A.stopPropagation(),(pt=G.current)==null||pt.select();return}if((A.ctrlKey||A.metaKey)&&(A.key==="z"||A.key==="Z")&&!A.shiftKey&&!A.nativeEvent.isComposing){if(A.preventDefault(),A.stopPropagation(),Ae.current.length>0){Ut.current.push(m);const ct=Ae.current.pop();_t.current=ct,p(ct)}return}if((A.ctrlKey||A.metaKey)&&(A.key==="z"||A.key==="Z")&&A.shiftKey&&!A.nativeEvent.isComposing){if(A.preventDefault(),A.stopPropagation(),Ut.current.length>0){Ae.current.push(m);const ct=Ut.current.pop();_t.current=ct,p(ct)}return}if((A.ctrlKey||A.metaKey)&&(A.key==="v"||A.key==="V")&&!A.nativeEvent.isComposing){A.preventDefault(),A.stopPropagation(),q();return}A.key==="Enter"&&(A.ctrlKey||A.metaKey)&&!A.nativeEvent.isComposing&&(A.preventDefault(),(m.trim()||g.length>0)&&C())},placeholder:"Type your feedback... (paste image with Cmd+V)",rows:4,disabled:b||!o}),g.length>0&&ee.jsx("div",{className:"fb-image-previews",children:g.map((A,P)=>ee.jsxs("div",{className:"fb-img-preview",children:[ee.jsx("img",{src:`data:image/png;base64,${A}`,alt:""}),ee.jsx("button",{className:"fb-img-remove",onClick:()=>He(P),children:"×"})]},P))}),ee.jsx("div",{className:"fb-quick-replies",children:vU.map(A=>ee.jsxs("button",{className:"fb-quick-btn",onClick:()=>Y(A.text,A.icon==="pause"),disabled:b||!o,children:[ee.jsx("span",{className:"fb-quick-icon","aria-hidden":"true",children:ee.jsx(yU,{name:A.icon})}),ee.jsx("span",{className:"fb-quick-label",children:A.label})]},A.text))}),ee.jsxs("div",{className:"fb-actions",children:[ee.jsxs("div",{className:"fb-actions-left",children:[ee.jsx("button",{className:"fb-icon-btn",onClick:()=>ue(A=>!A),title:"Settings",disabled:!o,children:ee.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[ee.jsx("line",{x1:"2",y1:"4",x2:"14",y2:"4"}),ee.jsx("line",{x1:"2",y1:"8",x2:"14",y2:"8"}),ee.jsx("line",{x1:"2",y1:"12",x2:"14",y2:"12"}),ee.jsx("circle",{cx:"5",cy:"4",r:"1.5",fill:"currentColor",stroke:"none"}),ee.jsx("circle",{cx:"10",cy:"8",r:"1.5",fill:"currentColor",stroke:"none"}),ee.jsx("circle",{cx:"7",cy:"12",r:"1.5",fill:"currentColor",stroke:"none"})]})}),ee.jsx("button",{className:"fb-icon-btn",onClick:()=>{var A;return(A=ge.current)==null?void 0:A.click()},title:"Attach image",disabled:!o,children:ee.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:ee.jsx("path",{d:"M14 8.5l-4.3 4.3a3 3 0 0 1-4.2-4.2L10 4a2 2 0 0 1 2.8 2.8L8.3 11.3a1 1 0 0 1-1.4-1.4L11 5.8"})})})]}),ee.jsx("div",{className:"fb-actions-right",children:ee.jsxs("div",{className:"fb-submit-wrap",children:[ee.jsxs("span",{className:"fb-shortcut-hint",children:[($e=navigator.platform)!=null&&$e.includes("Mac")?"⌘":"Ctrl","+Enter"]}),ee.jsx("button",{className:"fb-submit",onClick:C,disabled:!m.trim()&&g.length===0||!o||b||!l,children:b?"Submitting...":"Submit Feedback"})]})})]}),ee.jsx("input",{ref:ge,type:"file",accept:"image/*",multiple:!0,style:{display:"none"},onChange:fe})]}),z&&ee.jsx("div",{className:"fb-error",children:z}),H&&!z&&ee.jsx("div",{className:"fb-status-text",onClick:Zn,title:"Click to copy",children:H}),Ee&&o&&ee.jsxs("div",{className:"fb-settings",children:[ee.jsxs("label",{className:"fb-settings-row",children:[ee.jsx("input",{type:"checkbox",checked:F,onChange:A=>se(A.target.checked)}),ee.jsx("span",{children:"Auto-append reminder"})]}),F&&ee.jsx("input",{className:"fb-settings-input",type:"text",value:de,onChange:A=>be(A.target.value)}),ee.jsx("div",{className:"fb-settings-divider"}),ee.jsx("button",{className:"fb-settings-reset",onClick:zn,children:"Reset"})]})]})}Rw.createRoot(document.getElementById("root")).render(ee.jsx(ne.StrictMode,{children:ee.jsx(bU,{})}));</script>
222
- <style rel="stylesheet" crossorigin>*{box-sizing:border-box;margin:0;padding:0}:root{color-scheme:light dark;--fg: light-dark(#1a1a1a, #cdd6f4);--fg-dim: light-dark(#6b7280, #6c7086);--border: light-dark(#e5e7eb, rgba(99, 110, 123, .3));--btn-bg: light-dark(#e5e5e5, #4a4a4a);--btn-fg: light-dark(#1a1a1a, #e5e5e5);--btn-hover: light-dark(#d4d4d4, #5a5a5a);--summary-bg: light-dark(#f9fafb, rgba(255, 255, 255, .04));--summary-border: light-dark(#e5e7eb, rgba(99, 110, 123, .25));--quick-bg: light-dark(#f3f4f6, rgba(255, 255, 255, .06));--quick-border: light-dark(#d1d5db, rgba(99, 110, 123, .3));--quick-hover: light-dark(#e5e7eb, rgba(255, 255, 255, .1));--settings-bg: light-dark(#f9fafb, rgba(255, 255, 255, .04))}html,body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:14px;color:var(--color-text-primary, var(--fg));background:transparent}#root{display:flex;flex-direction:column}.fb-container{display:flex;flex-direction:column;gap:12px;padding:16px;max-width:100%}.fb-summary{background:var(--summary-bg);border:1px solid var(--summary-border);border-radius:8px;padding:14px 16px}.fb-summary-text{font-size:14px;line-height:1.6;color:var(--fg);word-break:break-word;user-select:text;-webkit-user-select:text;cursor:text}.fb-summary-header{display:flex;justify-content:flex-end;margin-bottom:4px}.fb-copy-btn{background:none;border:1px solid var(--border);color:var(--fg-dim);border-radius:4px;padding:2px 8px;font-size:11px;cursor:pointer;transition:all .15s;font-family:inherit;display:inline-flex;align-items:center;gap:4px}.fb-copy-btn:hover{color:var(--fg);border-color:var(--fg-dim)}.fb-copy-btn.copied{color:#22c55e;border-color:#22c55e}.fb-summary-text p{margin:0 0 8px}.fb-summary-text p:last-child{margin-bottom:0}.fb-summary-text ul,.fb-summary-text ol{margin:4px 0 8px 20px;padding:0}.fb-summary-text li{margin:2px 0}.fb-summary-text code{background:var(--quick-bg);padding:1px 5px;border-radius:3px;font-size:13px}.fb-summary-text pre{background:var(--quick-bg);border:1px solid var(--border);border-radius:6px;padding:10px 12px;overflow-x:auto;margin:6px 0}.fb-summary-text pre code{background:none;padding:0}.fb-summary-text strong{font-weight:600}.fb-summary-text h1,.fb-summary-text h2,.fb-summary-text h3{margin:8px 0 4px;font-weight:600}.fb-summary-text h1{font-size:18px}.fb-summary-text h2{font-size:16px}.fb-summary-text h3{font-size:15px}.fb-summary-text a{color:var(--btn-bg);text-decoration:none}.fb-summary-text a:hover{text-decoration:underline}.fb-summary-text blockquote{border-left:3px solid var(--border);padding-left:12px;margin:6px 0;color:var(--fg-dim)}.fb-input-area{display:flex;flex-direction:column;gap:8px}.fb-textarea{width:100%;min-height:90px;max-height:300px;resize:vertical;background:transparent;color:var(--color-text-primary, var(--fg));border:1px solid var(--border);border-radius:8px;padding:10px 12px;font-family:inherit;font-size:14px;line-height:1.5;transition:border-color .2s}.fb-textarea:focus{outline:none;border-color:var(--btn-bg);box-shadow:0 0 0 2px color-mix(in srgb,var(--btn-bg) 20%,transparent)}.fb-textarea::placeholder{color:var(--fg-dim)}.fb-textarea:disabled{opacity:.6;cursor:not-allowed}.fb-quick-replies{display:flex;gap:6px;flex-wrap:wrap}.fb-quick-btn{background:var(--quick-bg);border:1px solid var(--quick-border);color:var(--fg);border-radius:16px;padding:4px 12px;font-size:12px;cursor:pointer;transition:all .15s;font-family:inherit;display:inline-flex;align-items:center;gap:6px;line-height:1}.fb-quick-icon{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;flex:0 0 auto}.fb-quick-icon svg{display:block}.fb-quick-label{display:inline-flex;align-items:center;white-space:nowrap}.fb-quick-btn:hover:not(:disabled){background:var(--quick-hover);border-color:var(--btn-bg);color:var(--btn-bg)}.fb-quick-btn:disabled{opacity:.5;cursor:not-allowed}.fb-image-previews{display:flex;gap:8px;flex-wrap:wrap}.fb-img-preview{position:relative;width:56px;height:56px;border-radius:6px;overflow:hidden;border:1px solid var(--border)}.fb-img-preview img{width:100%;height:100%;object-fit:cover}.fb-img-remove{position:absolute;top:-2px;right:-2px;width:18px;height:18px;background:#ef4444;color:#fff;border:none;border-radius:50%;font-size:12px;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1;opacity:0;transition:opacity .15s}.fb-img-preview:hover .fb-img-remove{opacity:1}.fb-actions{display:flex;justify-content:space-between;align-items:flex-end}.fb-actions-left{display:flex;gap:6px;align-items:center}.fb-submit-wrap{display:flex;flex-direction:column;align-items:flex-end;gap:2px}.fb-shortcut-hint{font-size:11px;color:var(--fg-dim);-webkit-user-select:none;user-select:none;white-space:nowrap}.fb-icon-btn{background:none;border:1px solid var(--border);color:var(--fg-dim);border-radius:6px;padding:5px 7px;cursor:pointer;transition:all .15s;line-height:0;display:flex;align-items:center;justify-content:center}.fb-icon-btn:hover:not(:disabled){color:var(--fg);border-color:var(--btn-bg)}.fb-icon-btn:disabled{opacity:.4;cursor:not-allowed}.fb-icon-btn svg{display:block}.fb-actions-right{display:flex;gap:8px;align-items:flex-end}.fb-submit{background:var(--btn-bg);color:var(--btn-fg);border:1px solid var(--border);border-radius:6px;padding:8px 20px;font-size:14px;font-weight:500;cursor:pointer;transition:background .15s;white-space:nowrap}.fb-submit:hover:not(:disabled){background:color-mix(in srgb,var(--btn-bg) 85%,var(--fg))}.fb-submit:disabled{opacity:.5;cursor:not-allowed}.fb-settings{background:var(--settings-bg);border:1px solid var(--border);border-radius:8px;padding:10px 14px;display:flex;flex-direction:column;gap:8px}.fb-settings-row{display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer}.fb-settings-row input[type=checkbox]{width:14px;height:14px;accent-color:var(--btn-bg);cursor:pointer}.fb-settings-input{width:100%;background:transparent;color:var(--color-text-primary, var(--fg));border:1px solid var(--border);border-radius:6px;padding:6px 10px;font-size:13px;font-family:inherit}.fb-settings-input:focus{outline:none;border-color:var(--btn-bg)}.fb-settings-divider{height:1px;background:var(--border);margin:4px 0}.fb-settings-reset{background:none;border:1px solid var(--border);color:var(--fg-dim);border-radius:6px;padding:5px 12px;font-size:12px;cursor:pointer;font-family:inherit;align-self:flex-start;transition:all .15s}.fb-settings-reset:hover{color:var(--fg);border-color:var(--fg-dim)}.fb-status{text-align:center;font-size:13px;color:var(--fg-dim);padding:8px 0}.fb-error{text-align:center;font-size:13px;color:#ef4444;padding:12px}.fb-status-text{text-align:center;font-size:11px;color:var(--fg-dim);padding:4px 12px;font-family:monospace;word-break:break-all;cursor:pointer;-webkit-user-select:all;user-select:all}.fb-status-text:hover{color:var(--fg)}.fb-error-dismiss{text-align:center;padding:8px 12px}.fb-pending-section{border-top:1px solid var(--border);padding-top:12px}.fb-pending-header{display:flex;align-items:center;justify-content:space-between;cursor:pointer;-webkit-user-select:none;user-select:none;padding:4px 0}.fb-pending-title{font-size:12px;font-weight:600;color:var(--fg-dim);text-transform:uppercase;letter-spacing:.5px;display:flex;align-items:center;gap:6px}.fb-pending-badge{background:var(--btn-bg);color:var(--btn-fg);font-size:10px;font-weight:700;border-radius:10px;padding:1px 6px;min-width:18px;text-align:center;line-height:16px}.fb-pending-actions{display:flex;gap:4px}.fb-pending-clear{background:none;border:none;color:var(--fg-dim);font-size:11px;cursor:pointer;padding:2px 6px;border-radius:4px;font-family:inherit}.fb-pending-clear:hover{color:#ef4444;background:#ef44441a}.fb-pending-list{display:flex;flex-direction:column;gap:6px;margin-top:8px;max-height:200px;overflow-y:auto}.fb-pending-item{display:flex;align-items:flex-start;gap:8px;background:var(--quick-bg);border:1px solid var(--quick-border);border-radius:8px;padding:8px 10px;font-size:13px;line-height:1.4;position:relative}.fb-pending-item-text{flex:1;word-break:break-word;white-space:pre-wrap}.fb-pending-item-time{font-size:10px;color:var(--fg-dim);margin-top:2px}.fb-pending-item-btns{display:flex;gap:2px;flex-shrink:0;opacity:0;transition:opacity .15s}.fb-pending-item:hover .fb-pending-item-btns{opacity:1}.fb-pending-item-btn{background:none;border:none;color:var(--fg-dim);cursor:pointer;padding:2px 4px;border-radius:4px;font-size:12px;line-height:1}.fb-pending-item-btn:hover{color:var(--fg);background:var(--quick-hover)}.fb-pending-item-btn.delete:hover{color:#ef4444;background:#ef44441a}.fb-pending-input-row{display:flex;gap:6px;margin-top:8px}.fb-pending-input{flex:1;background:transparent;color:var(--color-text-primary, var(--fg));border:1px solid var(--border);border-radius:6px;padding:6px 10px;font-family:inherit;font-size:13px;line-height:1.4;resize:none;min-height:32px;max-height:80px}.fb-pending-input:focus{outline:none;border-color:var(--btn-bg)}.fb-pending-input::placeholder{color:var(--fg-dim)}.fb-pending-send{background:var(--btn-bg);color:var(--btn-fg);border:1px solid var(--border);border-radius:6px;padding:6px 12px;font-size:12px;font-weight:500;cursor:pointer;white-space:nowrap;align-self:flex-end;font-family:inherit}.fb-pending-send:hover:not(:disabled){background:var(--btn-hover)}.fb-pending-send:disabled{opacity:.5;cursor:not-allowed}.fb-pending-empty{font-size:12px;color:var(--fg-dim);text-align:center;padding:8px 0;font-style:italic}.fb-pending-chevron{font-size:10px;transition:transform .2s;color:var(--fg-dim)}.fb-pending-chevron.open{transform:rotate(90deg)}</style>
219
+ `}strong({tokens:i}){return`<strong>${this.parser.parseInline(i)}</strong>`}em({tokens:i}){return`<em>${this.parser.parseInline(i)}</em>`}codespan({text:i}){return`<code>${Zn(i,!0)}</code>`}br(i){return"<br>"}del({tokens:i}){return`<del>${this.parser.parseInline(i)}</del>`}link({href:i,title:r,tokens:o}){let l=this.parser.parseInline(o),n=rS(i);if(n===null)return l;i=n;let u='<a href="'+i+'"';return r&&(u+=' title="'+Zn(r)+'"'),u+=">"+l+"</a>",u}image({href:i,title:r,text:o,tokens:l}){l&&(o=this.parser.parseInline(l,this.parser.textRenderer));let n=rS(i);if(n===null)return Zn(o);i=n;let u=`<img src="${i}" alt="${Zn(o)}"`;return r&&(u+=` title="${Zn(r)}"`),u+=">",u}text(i){return"tokens"in i&&i.tokens?this.parser.parseInline(i.tokens):"escaped"in i&&i.escaped?i.text:Zn(i.text)}},sg=class{strong({text:i}){return i}em({text:i}){return i}codespan({text:i}){return i}del({text:i}){return i}html({text:i}){return i}text({text:i}){return i}link({text:i}){return""+i}image({text:i}){return""+i}br(){return""}checkbox({raw:i}){return i}},Nn=class cm{constructor(r){ne(this,"options");ne(this,"renderer");ne(this,"textRenderer");this.options=r||yr,this.options.renderer=this.options.renderer||new vc,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new sg}static parse(r,o){return new cm(o).parse(r)}static parseInline(r,o){return new cm(o).parseInline(r)}parse(r){var l,n;this.renderer.parser=this;let o="";for(let u=0;u<r.length;u++){let s=r[u];if((n=(l=this.options.extensions)==null?void 0:l.renderers)!=null&&n[s.type]){let p=s,g=this.options.extensions.renderers[p.type].call({parser:this},p);if(g!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(p.type)){o+=g||"";continue}}let m=s;switch(m.type){case"space":{o+=this.renderer.space(m);break}case"hr":{o+=this.renderer.hr(m);break}case"heading":{o+=this.renderer.heading(m);break}case"code":{o+=this.renderer.code(m);break}case"table":{o+=this.renderer.table(m);break}case"blockquote":{o+=this.renderer.blockquote(m);break}case"list":{o+=this.renderer.list(m);break}case"checkbox":{o+=this.renderer.checkbox(m);break}case"html":{o+=this.renderer.html(m);break}case"def":{o+=this.renderer.def(m);break}case"paragraph":{o+=this.renderer.paragraph(m);break}case"text":{o+=this.renderer.text(m);break}default:{let p='Token with "'+m.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return o}parseInline(r,o=this.renderer){var n,u;this.renderer.parser=this;let l="";for(let s=0;s<r.length;s++){let m=r[s];if((u=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&u[m.type]){let g=this.options.extensions.renderers[m.type].call({parser:this},m);if(g!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(m.type)){l+=g||"";continue}}let p=m;switch(p.type){case"escape":{l+=o.text(p);break}case"html":{l+=o.html(p);break}case"link":{l+=o.link(p);break}case"image":{l+=o.image(p);break}case"checkbox":{l+=o.checkbox(p);break}case"strong":{l+=o.strong(p);break}case"em":{l+=o.em(p);break}case"codespan":{l+=o.codespan(p);break}case"br":{l+=o.br(p);break}case"del":{l+=o.del(p);break}case"text":{l+=o.text(p);break}default:{let g='Token with "'+p.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}}return l}},lc,Oo=(lc=class{constructor(i){ne(this,"options");ne(this,"block");this.options=i||yr}preprocess(i){return i}postprocess(i){return i}processAllTokens(i){return i}emStrongMask(i){return i}provideLexer(i=this.block){return i?jn.lex:jn.lexInline}provideParser(i=this.block){return i?Nn.parse:Nn.parseInline}},ne(lc,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),ne(lc,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),lc),gU=class{constructor(...i){ne(this,"defaults",ng());ne(this,"options",this.setOptions);ne(this,"parse",this.parseMarkdown(!0));ne(this,"parseInline",this.parseMarkdown(!1));ne(this,"Parser",Nn);ne(this,"Renderer",vc);ne(this,"TextRenderer",sg);ne(this,"Lexer",jn);ne(this,"Tokenizer",gc);ne(this,"Hooks",Oo);this.use(...i)}walkTokens(i,r){var l,n;let o=[];for(let u of i)switch(o=o.concat(r.call(this,u)),u.type){case"table":{let s=u;for(let m of s.header)o=o.concat(this.walkTokens(m.tokens,r));for(let m of s.rows)for(let p of m)o=o.concat(this.walkTokens(p.tokens,r));break}case"list":{let s=u;o=o.concat(this.walkTokens(s.items,r));break}default:{let s=u;(n=(l=this.defaults.extensions)==null?void 0:l.childTokens)!=null&&n[s.type]?this.defaults.extensions.childTokens[s.type].forEach(m=>{let p=s[m].flat(1/0);o=o.concat(this.walkTokens(p,r))}):s.tokens&&(o=o.concat(this.walkTokens(s.tokens,r)))}}return o}use(...i){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return i.forEach(o=>{let l={...o};if(l.async=this.defaults.async||l.async||!1,o.extensions&&(o.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let u=r.renderers[n.name];u?r.renderers[n.name]=function(...s){let m=n.renderer.apply(this,s);return m===!1&&(m=u.apply(this,s)),m}:r.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let u=r[n.level];u?u.unshift(n.tokenizer):r[n.level]=[n.tokenizer],n.start&&(n.level==="block"?r.startBlock?r.startBlock.push(n.start):r.startBlock=[n.start]:n.level==="inline"&&(r.startInline?r.startInline.push(n.start):r.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(r.childTokens[n.name]=n.childTokens)}),l.extensions=r),o.renderer){let n=this.defaults.renderer||new vc(this.defaults);for(let u in o.renderer){if(!(u in n))throw new Error(`renderer '${u}' does not exist`);if(["options","parser"].includes(u))continue;let s=u,m=o.renderer[s],p=n[s];n[s]=(...g)=>{let v=m.apply(n,g);return v===!1&&(v=p.apply(n,g)),v||""}}l.renderer=n}if(o.tokenizer){let n=this.defaults.tokenizer||new gc(this.defaults);for(let u in o.tokenizer){if(!(u in n))throw new Error(`tokenizer '${u}' does not exist`);if(["options","rules","lexer"].includes(u))continue;let s=u,m=o.tokenizer[s],p=n[s];n[s]=(...g)=>{let v=m.apply(n,g);return v===!1&&(v=p.apply(n,g)),v}}l.tokenizer=n}if(o.hooks){let n=this.defaults.hooks||new Oo;for(let u in o.hooks){if(!(u in n))throw new Error(`hook '${u}' does not exist`);if(["options","block"].includes(u))continue;let s=u,m=o.hooks[s],p=n[s];Oo.passThroughHooks.has(u)?n[s]=g=>{if(this.defaults.async&&Oo.passThroughHooksRespectAsync.has(u))return(async()=>{let b=await m.call(n,g);return p.call(n,b)})();let v=m.call(n,g);return p.call(n,v)}:n[s]=(...g)=>{if(this.defaults.async)return(async()=>{let b=await m.apply(n,g);return b===!1&&(b=await p.apply(n,g)),b})();let v=m.apply(n,g);return v===!1&&(v=p.apply(n,g)),v}}l.hooks=n}if(o.walkTokens){let n=this.defaults.walkTokens,u=o.walkTokens;l.walkTokens=function(s){let m=[];return m.push(u.call(this,s)),n&&(m=m.concat(n.call(this,s))),m}}this.defaults={...this.defaults,...l}}),this}setOptions(i){return this.defaults={...this.defaults,...i},this}lexer(i,r){return jn.lex(i,r??this.defaults)}parser(i,r){return Nn.parse(i,r??this.defaults)}parseMarkdown(i){return(r,o)=>{let l={...o},n={...this.defaults,...l},u=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&l.async===!1)return u(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return u(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=i),n.async)return(async()=>{let s=n.hooks?await n.hooks.preprocess(r):r,m=await(n.hooks?await n.hooks.provideLexer(i):i?jn.lex:jn.lexInline)(s,n),p=n.hooks?await n.hooks.processAllTokens(m):m;n.walkTokens&&await Promise.all(this.walkTokens(p,n.walkTokens));let g=await(n.hooks?await n.hooks.provideParser(i):i?Nn.parse:Nn.parseInline)(p,n);return n.hooks?await n.hooks.postprocess(g):g})().catch(u);try{n.hooks&&(r=n.hooks.preprocess(r));let s=(n.hooks?n.hooks.provideLexer(i):i?jn.lex:jn.lexInline)(r,n);n.hooks&&(s=n.hooks.processAllTokens(s)),n.walkTokens&&this.walkTokens(s,n.walkTokens);let m=(n.hooks?n.hooks.provideParser(i):i?Nn.parse:Nn.parseInline)(s,n);return n.hooks&&(m=n.hooks.postprocess(m)),m}catch(s){return u(s)}}}onError(i,r){return o=>{if(o.message+=`
220
+ Please report this to https://github.com/markedjs/marked.`,i){let l="<p>An error occurred:</p><pre>"+Zn(o.message+"",!0)+"</pre>";return r?Promise.resolve(l):l}if(r)return Promise.reject(o);throw o}}},pr=new gU;function Ze(i,r){return pr.parse(i,r)}Ze.options=Ze.setOptions=function(i){return pr.setOptions(i),Ze.defaults=pr.defaults,X1(Ze.defaults),Ze};Ze.getDefaults=ng;Ze.defaults=yr;Ze.use=function(...i){return pr.use(...i),Ze.defaults=pr.defaults,X1(Ze.defaults),Ze};Ze.walkTokens=function(i,r){return pr.walkTokens(i,r)};Ze.parseInline=pr.parseInline;Ze.Parser=Nn;Ze.parser=Nn.parse;Ze.Renderer=vc;Ze.TextRenderer=sg;Ze.Lexer=jn;Ze.lexer=jn.lex;Ze.Tokenizer=gc;Ze.Hooks=Oo;Ze.parse=Ze;Ze.options;Ze.setOptions;Ze.use;Ze.walkTokens;Ze.parseInline;Nn.parse;jn.lex;Ze.setOptions({breaks:!0,gfm:!0});const vU=[{id:"default",label:"Default"},{id:"ping",label:"Ping"},{id:"chime",label:"Chime"},{id:"soft",label:"Soft"},{id:"none",label:"None"}];function iz(i){if(i!=="none")try{const r=new AudioContext,o=r.createGain();o.connect(r.destination);const l=r.currentTime;if(i==="default"){const n=r.createOscillator();n.connect(o),n.type="sine",n.frequency.setValueAtTime(880,l),n.frequency.setValueAtTime(1047,l+.08),o.gain.setValueAtTime(.15,l),o.gain.exponentialRampToValueAtTime(.001,l+.25),n.start(l),n.stop(l+.25)}else if(i==="ping"){const n=r.createOscillator();n.connect(o),n.type="sine",n.frequency.setValueAtTime(1200,l),o.gain.setValueAtTime(.12,l),o.gain.exponentialRampToValueAtTime(.001,l+.15),n.start(l),n.stop(l+.15)}else if(i==="chime")[523,659,784].forEach((n,u)=>{const s=r.createOscillator(),m=r.createGain();s.connect(m),m.connect(r.destination),s.type="sine",s.frequency.setValueAtTime(n,l+u*.1),m.gain.setValueAtTime(.1,l+u*.1),m.gain.exponentialRampToValueAtTime(.001,l+u*.1+.2),s.start(l+u*.1),s.stop(l+u*.1+.2)});else if(i==="soft"){const n=r.createOscillator();n.connect(o),n.type="sine",n.frequency.setValueAtTime(440,l),o.gain.setValueAtTime(.08,l),o.gain.exponentialRampToValueAtTime(.001,l+.4),n.start(l),n.stop(l+.4)}setTimeout(()=>r.close(),1e3)}catch{}}function rz(){try{return sessionStorage.getItem("mcp-feedback-sound")||"default"}catch{return"default"}}function yU(i){try{sessionStorage.setItem("mcp-feedback-sound",i)}catch{}}function bU(){iz(rz())}function _U(){ee.useEffect(()=>{const i=()=>window.focus(),r=o=>{const l=o.target;l&&(l.tagName==="TEXTAREA"||l.tagName==="INPUT"||l.isContentEditable)&&(o.metaKey||o.ctrlKey||o.altKey||o.stopPropagation())};return document.addEventListener("focusin",i),document.addEventListener("click",i),document.addEventListener("keydown",r),document.addEventListener("keypress",r),()=>{document.removeEventListener("focusin",i),document.removeEventListener("click",i),document.removeEventListener("keydown",r),document.removeEventListener("keypress",r)}},[])}const em="After completing, call interactive_feedback to check in with me.",SU=[{icon:"play",label:"Continue",text:"Continue"},{icon:"check",label:"LGTM",text:"Looks good, proceed"},{icon:"bolt",label:"Fix",text:"Please fix the issues"},{icon:"pause",label:"Pause",text:"Stop, let me review first"}];function $U({name:i}){switch(i){case"play":return P.jsx("svg",{viewBox:"0 0 16 16",width:"14",height:"14","aria-hidden":"true",children:P.jsx("path",{fill:"currentColor",d:"M5.3 3.2c-.5-.3-1.3 0-1.3.8v8c0 .8.8 1.1 1.3.8l7-4c.5-.3.5-1.1 0-1.4l-7-4z"})});case"check":return P.jsx("svg",{viewBox:"0 0 16 16",width:"14",height:"14","aria-hidden":"true",children:P.jsx("path",{fill:"currentColor",d:"M6.5 11.6 3.3 8.4a1 1 0 0 1 1.4-1.4l1.8 1.8 4.8-4.8a1 1 0 1 1 1.4 1.4l-6.2 6.2z"})});case"bolt":return P.jsx("svg",{viewBox:"0 0 16 16",width:"14",height:"14","aria-hidden":"true",children:P.jsx("path",{fill:"currentColor",d:"M9.6 1.5a.9.9 0 0 1 .8 1.2L9 6.4h4a.9.9 0 0 1 .7 1.5l-7.3 6.6a.9.9 0 0 1-1.4-1l1.4-4.1H3a.9.9 0 0 1-.7-1.5l6.7-6.1a.9.9 0 0 1 .6-.3z"})});case"pause":return P.jsx("svg",{viewBox:"0 0 16 16",width:"14",height:"14","aria-hidden":"true",children:P.jsx("path",{fill:"currentColor",d:"M4.5 3.2c-.7 0-1.3.6-1.3 1.3v7c0 .7.6 1.3 1.3 1.3h1c.7 0 1.3-.6 1.3-1.3v-7c0-.7-.6-1.3-1.3-1.3h-1zm7 0c-.7 0-1.3.6-1.3 1.3v7c0 .7.6 1.3 1.3 1.3h1c.7 0 1.3-.6 1.3-1.3v-7c0-.7-.6-1.3-1.3-1.3h-1z"})})}}function kU(){const[i,r]=ee.useState(""),[o,l]=ee.useState(!1),[n,u]=ee.useState(void 0),[s,m]=ee.useState(""),[p,g]=ee.useState(""),[v,b]=ee.useState(null),[_,z]=ee.useState(!0),x=ee.useRef(!1);ee.useEffect(()=>{if(!_)return;const F=setTimeout(()=>{z(!1),b(new Error("Connection timeout. The MCP Feedback server may be unavailable."))},15e3);return()=>clearTimeout(F)},[_]);const{app:H,error:J}=wO({appInfo:{name:"MCP Feedback",version:"1.0.0"},capabilities:{},onAppCreated:F=>{F.onerror=console.error,F.ontoolinput=async se=>{var we,re;if(x.current)return;const ge=(we=se.arguments)==null?void 0:we.summary,be=(re=se.arguments)==null?void 0:re.sessionId;ge&&(x.current=!0,r(ge.trim()),l(!0),be&&u(be),bU())},F.ontoolresult=se=>{var re;const ge=((re=se.content)==null?void 0:re.filter(G=>G.type==="text"))||[];let be="",we="";for(const G of ge)try{const ve=JSON.parse(G.text);if(ve._mcp_meta){be=ve.sessionId||"",we=ve.userInput||"";break}}catch{}!we&&ge.length>0&&(we=ge[0].text.replace(/\x3C!--[\s\S]*?-->/g,"").trim()),m(we),g("Sent ✓ "+be),l(!1),x.current=!1},F.ontoolcancelled=()=>{x.current||l(!1)}}});return OO(H,H==null?void 0:H.getHostContext()),_U(),ee.useEffect(()=>{J&&(b(J),z(!1))},[J]),ee.useEffect(()=>{H&&z(!1)},[H]),v?P.jsx("div",{className:"fb-container",children:P.jsx("div",{className:"fb-error",children:v.message})}):_||!H?P.jsx("div",{className:"fb-container",children:P.jsx("div",{className:"fb-status",children:"Connecting..."})}):P.jsx(P.Fragment,{children:P.jsx(xU,{app:H,summary:i,hasPending:o,sessionId:n,initialText:s,initialStatusText:p,onSubmitted:()=>{l(!1),x.current=!1}})})}function zU({text:i}){const[r,o]=ee.useState(!1),[l,n]=ee.useState(!1),u=ee.useRef(null),s=ee.useCallback(()=>{var m;(m=navigator.clipboard)==null||m.writeText(i).then(()=>{o(!0),setTimeout(()=>o(!1),1500)}).catch(()=>{})},[i]);return ee.useEffect(()=>{l&&u.current&&(u.current.focus(),u.current.select())},[l]),P.jsxs("div",{className:"fb-summary",children:[P.jsxs("div",{className:"fb-summary-header",children:[P.jsx("button",{className:`fb-copy-btn ${l?"active":""}`,onClick:()=>n(m=>!m),children:l?"Rich":"Raw"}),P.jsx("button",{className:`fb-copy-btn ${r?"copied":""}`,onClick:s,children:r?"Copied":"Copy"})]}),l?P.jsx("textarea",{ref:u,className:"fb-summary-raw",value:i,readOnly:!0,rows:Math.min(i.split(`
221
+ `).length+1,20)}):P.jsx("div",{className:"fb-summary-text",dangerouslySetInnerHTML:{__html:Ze.parse(i)}})]})}function xU({app:i,summary:r,hasPending:o,sessionId:l,initialText:n,initialStatusText:u,onSubmitted:s}){var it;const[m,p]=ee.useState(""),[g,v]=ee.useState([]),[b,_]=ee.useState(!1),[z,x]=ee.useState(""),[H,J]=ee.useState(""),[F,se]=ee.useState(()=>{try{const R=sessionStorage.getItem("mcp-feedback-autoAppend");if(R!==null)return R==="true";const te=document.getElementById("mcp-feedback-settings");if(te!=null&&te.textContent)return JSON.parse(te.textContent).autoAppend??!0}catch{}return!0}),[ge,be]=ee.useState(rz),we=ee.useCallback(R=>{be(R),yU(R),iz(R)},[]),[re,G]=ee.useState(()=>{try{const R=sessionStorage.getItem("mcp-feedback-autoAppendText");if(R)return R;const te=document.getElementById("mcp-feedback-settings");if(te!=null&&te.textContent)return JSON.parse(te.textContent).autoAppendText||em}catch{}return em});ee.useEffect(()=>{try{sessionStorage.setItem("mcp-feedback-autoAppend",String(F))}catch{}},[F]),ee.useEffect(()=>{try{sessionStorage.setItem("mcp-feedback-autoAppendText",re)}catch{}},[re]);const[ve,Qe]=ee.useState(!1),Ct=ee.useRef(null),Pt=ee.useRef(null),ot=ee.useRef([]),Qt=ee.useRef([]),Nt=ee.useRef(""),Kt=ee.useCallback(R=>{R!==Nt.current&&(ot.current.push(Nt.current),ot.current.length>100&&ot.current.shift(),Qt.current=[],Nt.current=R)},[]);ee.useEffect(()=>{n&&(p(n),Nt.current=n,ot.current=[],Qt.current=[])},[n]),ee.useEffect(()=>{u&&J(u)},[u]);const C=ee.useCallback(()=>{var R;l&&((R=navigator.clipboard)==null||R.writeText(l).catch(()=>{}))},[l]);ee.useEffect(()=>{o&&l?J("Session: "+l):o&&J("Session: (none)")},[o,l]);const Y=ee.useCallback(()=>{se(!0),G(em)},[]),ae=ee.useCallback(async(R,te)=>{const{imgs:et,skipAppend:vt=!1}=te??{};if(!(!R.trim()||!o||b||!l)){x(""),J("Submitting..."),_(!0);try{const lt={autoAppend:F,autoAppendText:re,...vt?{skipAppend:!0}:{}},En={feedback:R.trim()+`
222
+ \x3C!--mcp-settings:${JSON.stringify(lt)}-->`,sessionId:l},Zi=et??g;Zi.length>0&&(En.images=Zi),await i.callServerTool({name:"submit_feedback",arguments:En}),J("Sent "+(l||"")),s()}catch(lt){J("ERROR "+(l||"")),x((lt==null?void 0:lt.message)||String(lt))}finally{_(!1)}}},[i,o,b,g,F,re,l,s]),Ce=ee.useCallback(()=>ae(m),[ae,m]),Le=ee.useCallback((R,te)=>ae(R,{imgs:[],skipAppend:te}),[ae]),k=R=>new Promise(te=>{const et=new FileReader;et.onload=()=>te(et.result.split(",")[1]),et.readAsDataURL(R)}),M=ee.useCallback(R=>v(te=>[...te,R]),[]),X=ee.useCallback(R=>v(te=>te.filter((et,vt)=>vt!==R)),[]),Q=ee.useCallback(R=>{const te=Ct.current;if(!te)return;const et=te.selectionStart??m.length,vt=te.selectionEnd??m.length;p(m.slice(0,et)+R+m.slice(vt)),queueMicrotask(()=>{try{te.focus(),te.setSelectionRange(et+R.length,et+R.length)}catch{}})},[m]),de=ee.useCallback(async()=>{var R;try{if(navigator.clipboard&&"read"in navigator.clipboard){const te=await navigator.clipboard.read();for(const et of te)for(const vt of et.types??[])if(typeof vt=="string"&&vt.startsWith("image/")){const lt=await et.getType(vt);M(await k(new File([lt],"pasted.png",{type:vt})));return}}if((R=navigator.clipboard)!=null&&R.readText){const te=await navigator.clipboard.readText();te&&Q(te)}}catch(te){x(`Paste: ${te==null?void 0:te.message}`)}},[M,Q]),$e=ee.useCallback(async R=>{var et;const te=(et=R.clipboardData)==null?void 0:et.items;if(te){for(const vt of te)if(vt.type.startsWith("image/")){R.preventDefault();const lt=vt.getAsFile();lt&&M(await k(lt))}}},[M]),Ne=ee.useCallback(async R=>{R.preventDefault();for(const te of R.dataTransfer.files)te.type.startsWith("image/")&&M(await k(te))},[M]),kt=ee.useCallback(async R=>{const te=R.target.files;if(te){for(const et of te)et.type.startsWith("image/")&&M(await k(et));R.target.value=""}},[M]);return P.jsxs("div",{className:"fb-container",children:[r&&P.jsx(zU,{text:r}),P.jsxs("div",{className:"fb-input-area",onDrop:Ne,onDragOver:R=>{R.preventDefault(),R.dataTransfer.dropEffect="copy"},children:[P.jsx("textarea",{ref:Ct,className:"fb-textarea",value:m,onChange:R=>{const te=R.target.value;Kt(te),p(te)},onPaste:$e,onFocus:()=>window.focus(),onMouseDown:()=>window.focus(),onKeyDown:R=>{var te,et,vt,lt;if((R.ctrlKey||R.metaKey)&&(R.key==="c"||R.key==="C")&&!R.nativeEvent.isComposing){R.preventDefault(),R.stopPropagation();const ft=((te=window.getSelection())==null?void 0:te.toString())||"";(et=navigator.clipboard)==null||et.writeText(ft).catch(()=>document.execCommand("copy"));return}if((R.ctrlKey||R.metaKey)&&(R.key==="x"||R.key==="X")&&!R.nativeEvent.isComposing){R.preventDefault(),R.stopPropagation();const ft=Ct.current;if(ft){const{selectionStart:En,selectionEnd:Zi}=ft,Ml=ft.value.substring(En,Zi);(vt=navigator.clipboard)==null||vt.writeText(Ml).catch(()=>document.execCommand("cut")),p(ft.value.substring(0,En)+ft.value.substring(Zi)),queueMicrotask(()=>{try{ft.focus(),ft.setSelectionRange(En,En)}catch{}})}return}if((R.ctrlKey||R.metaKey)&&(R.key==="a"||R.key==="A")&&!R.nativeEvent.isComposing){R.preventDefault(),R.stopPropagation(),(lt=Ct.current)==null||lt.select();return}if((R.ctrlKey||R.metaKey)&&(R.key==="z"||R.key==="Z")&&!R.shiftKey&&!R.nativeEvent.isComposing){if(R.preventDefault(),R.stopPropagation(),ot.current.length>0){Qt.current.push(m);const ft=ot.current.pop();Nt.current=ft,p(ft)}return}if((R.ctrlKey||R.metaKey)&&(R.key==="z"||R.key==="Z")&&R.shiftKey&&!R.nativeEvent.isComposing){if(R.preventDefault(),R.stopPropagation(),Qt.current.length>0){ot.current.push(m);const ft=Qt.current.pop();Nt.current=ft,p(ft)}return}if((R.ctrlKey||R.metaKey)&&(R.key==="v"||R.key==="V")&&!R.nativeEvent.isComposing){R.preventDefault(),R.stopPropagation(),de();return}R.key==="Enter"&&(R.ctrlKey||R.metaKey)&&!R.nativeEvent.isComposing&&(R.preventDefault(),(m.trim()||g.length>0)&&Ce())},placeholder:"Type your feedback... (paste image with Cmd+V)",rows:4,disabled:b||!o}),g.length>0&&P.jsx("div",{className:"fb-image-previews",children:g.map((R,te)=>P.jsxs("div",{className:"fb-img-preview",children:[P.jsx("img",{src:`data:image/png;base64,${R}`,alt:""}),P.jsx("button",{className:"fb-img-remove",onClick:()=>X(te),children:"×"})]},te))}),P.jsx("div",{className:"fb-quick-replies",children:SU.map(R=>P.jsxs("button",{className:"fb-quick-btn",onClick:()=>Le(R.text,R.icon==="pause"),disabled:b||!o,children:[P.jsx("span",{className:"fb-quick-icon","aria-hidden":"true",children:P.jsx($U,{name:R.icon})}),P.jsx("span",{className:"fb-quick-label",children:R.label})]},R.text))}),P.jsxs("div",{className:"fb-actions",children:[P.jsxs("div",{className:"fb-actions-left",children:[P.jsx("button",{className:"fb-icon-btn",onClick:()=>Qe(R=>!R),title:"Settings",disabled:!o,children:P.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[P.jsx("line",{x1:"2",y1:"4",x2:"14",y2:"4"}),P.jsx("line",{x1:"2",y1:"8",x2:"14",y2:"8"}),P.jsx("line",{x1:"2",y1:"12",x2:"14",y2:"12"}),P.jsx("circle",{cx:"5",cy:"4",r:"1.5",fill:"currentColor",stroke:"none"}),P.jsx("circle",{cx:"10",cy:"8",r:"1.5",fill:"currentColor",stroke:"none"}),P.jsx("circle",{cx:"7",cy:"12",r:"1.5",fill:"currentColor",stroke:"none"})]})}),P.jsx("button",{className:"fb-icon-btn",onClick:()=>{var R;return(R=Pt.current)==null?void 0:R.click()},title:"Attach image",disabled:!o,children:P.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:P.jsx("path",{d:"M14 8.5l-4.3 4.3a3 3 0 0 1-4.2-4.2L10 4a2 2 0 0 1 2.8 2.8L8.3 11.3a1 1 0 0 1-1.4-1.4L11 5.8"})})})]}),P.jsx("div",{className:"fb-actions-right",children:P.jsxs("div",{className:"fb-submit-wrap",children:[P.jsxs("span",{className:"fb-shortcut-hint",children:[(it=navigator.platform)!=null&&it.includes("Mac")?"⌘":"Ctrl","+Enter"]}),P.jsx("button",{className:"fb-submit",onClick:Ce,disabled:!m.trim()&&g.length===0||!o||b||!l,children:b?"Submitting...":"Submit Feedback"})]})})]}),P.jsx("input",{ref:Pt,type:"file",accept:"image/*",multiple:!0,style:{display:"none"},onChange:kt})]}),z&&P.jsx("div",{className:"fb-error",children:z}),H&&!z&&P.jsx("div",{className:"fb-status-text",onClick:C,title:"Click to copy",children:H}),ve&&o&&P.jsxs("div",{className:"fb-settings",children:[P.jsxs("label",{className:"fb-settings-row",children:[P.jsx("input",{type:"checkbox",checked:F,onChange:R=>se(R.target.checked)}),P.jsx("span",{children:"Auto-append reminder"})]}),F&&P.jsx("input",{className:"fb-settings-input",type:"text",value:re,onChange:R=>G(R.target.value)}),P.jsx("div",{className:"fb-settings-divider"}),P.jsx("div",{className:"fb-settings-row",children:P.jsx("span",{children:"Notification sound"})}),P.jsx("div",{className:"fb-sound-picker",children:vU.map(R=>P.jsx("button",{className:`fb-sound-btn ${ge===R.id?"active":""}`,onClick:()=>we(R.id),children:R.label},R.id))}),P.jsx("div",{className:"fb-settings-divider"}),P.jsx("button",{className:"fb-settings-reset",onClick:Y,children:"Reset"})]})]})}Mw.createRoot(document.getElementById("root")).render(P.jsx(ee.StrictMode,{children:P.jsx(kU,{})}));</script>
223
+ <style rel="stylesheet" crossorigin>*{box-sizing:border-box;margin:0;padding:0}:root{color-scheme:light dark;--fg: light-dark(#1a1a1a, #cdd6f4);--fg-dim: light-dark(#6b7280, #6c7086);--border: light-dark(#e5e7eb, rgba(99, 110, 123, .3));--btn-bg: light-dark(#e5e5e5, #4a4a4a);--btn-fg: light-dark(#1a1a1a, #e5e5e5);--btn-hover: light-dark(#d4d4d4, #5a5a5a);--summary-bg: light-dark(#f9fafb, rgba(255, 255, 255, .04));--summary-border: light-dark(#e5e7eb, rgba(99, 110, 123, .25));--quick-bg: light-dark(#f3f4f6, rgba(255, 255, 255, .06));--quick-border: light-dark(#d1d5db, rgba(99, 110, 123, .3));--quick-hover: light-dark(#e5e7eb, rgba(255, 255, 255, .1));--settings-bg: light-dark(#f9fafb, rgba(255, 255, 255, .04))}html,body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:14px;color:var(--color-text-primary, var(--fg));background:transparent}#root{display:flex;flex-direction:column}.fb-container{display:flex;flex-direction:column;gap:12px;padding:16px;max-width:100%}.fb-summary{background:var(--summary-bg);border:1px solid var(--summary-border);border-radius:8px;padding:14px 16px}.fb-summary-text{font-size:14px;line-height:1.6;color:var(--fg);word-break:break-word;user-select:text;-webkit-user-select:text;cursor:text}.fb-summary-header{display:flex;justify-content:flex-end;margin-bottom:4px}.fb-copy-btn{background:none;border:1px solid var(--border);color:var(--fg-dim);border-radius:4px;padding:2px 8px;font-size:11px;cursor:pointer;transition:all .15s;font-family:inherit;display:inline-flex;align-items:center;gap:4px}.fb-copy-btn:hover{color:var(--fg);border-color:var(--fg-dim)}.fb-copy-btn.copied{color:#22c55e;border-color:#22c55e}.fb-copy-btn.active{color:var(--fg);border-color:var(--fg)}.fb-summary-raw{width:100%;background:transparent;color:var(--color-text-primary, var(--fg));border:1px solid var(--border);border-radius:6px;padding:10px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;line-height:1.5;resize:vertical;user-select:text;-webkit-user-select:text}.fb-summary-raw:focus{outline:none;border-color:var(--btn-bg)}.fb-summary-text p{margin:0 0 8px}.fb-summary-text p:last-child{margin-bottom:0}.fb-summary-text ul,.fb-summary-text ol{margin:4px 0 8px 20px;padding:0}.fb-summary-text li{margin:2px 0}.fb-summary-text code{background:var(--quick-bg);padding:1px 5px;border-radius:3px;font-size:13px}.fb-summary-text pre{background:var(--quick-bg);border:1px solid var(--border);border-radius:6px;padding:10px 12px;overflow-x:auto;margin:6px 0}.fb-summary-text pre code{background:none;padding:0}.fb-summary-text strong{font-weight:600}.fb-summary-text h1,.fb-summary-text h2,.fb-summary-text h3{margin:8px 0 4px;font-weight:600}.fb-summary-text h1{font-size:18px}.fb-summary-text h2{font-size:16px}.fb-summary-text h3{font-size:15px}.fb-summary-text a{color:var(--btn-bg);text-decoration:none}.fb-summary-text a:hover{text-decoration:underline}.fb-summary-text blockquote{border-left:3px solid var(--border);padding-left:12px;margin:6px 0;color:var(--fg-dim)}.fb-input-area{display:flex;flex-direction:column;gap:8px}.fb-textarea{width:100%;min-height:90px;max-height:300px;resize:vertical;background:transparent;color:var(--color-text-primary, var(--fg));border:1px solid var(--border);border-radius:8px;padding:10px 12px;font-family:inherit;font-size:14px;line-height:1.5;transition:border-color .2s}.fb-textarea:focus{outline:none;border-color:var(--btn-bg);box-shadow:0 0 0 2px color-mix(in srgb,var(--btn-bg) 20%,transparent)}.fb-textarea::placeholder{color:var(--fg-dim)}.fb-textarea:disabled{opacity:.6;cursor:not-allowed}.fb-quick-replies{display:flex;gap:6px;flex-wrap:wrap}.fb-quick-btn{background:var(--quick-bg);border:1px solid var(--quick-border);color:var(--fg);border-radius:16px;padding:4px 12px;font-size:12px;cursor:pointer;transition:all .15s;font-family:inherit;display:inline-flex;align-items:center;gap:6px;line-height:1}.fb-quick-icon{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;flex:0 0 auto}.fb-quick-icon svg{display:block}.fb-quick-label{display:inline-flex;align-items:center;white-space:nowrap}.fb-quick-btn:hover:not(:disabled){background:var(--quick-hover);border-color:var(--btn-bg);color:var(--btn-bg)}.fb-quick-btn:disabled{opacity:.5;cursor:not-allowed}.fb-image-previews{display:flex;gap:8px;flex-wrap:wrap}.fb-img-preview{position:relative;width:56px;height:56px;border-radius:6px;overflow:hidden;border:1px solid var(--border)}.fb-img-preview img{width:100%;height:100%;object-fit:cover}.fb-img-remove{position:absolute;top:-2px;right:-2px;width:18px;height:18px;background:#ef4444;color:#fff;border:none;border-radius:50%;font-size:12px;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1;opacity:0;transition:opacity .15s}.fb-img-preview:hover .fb-img-remove{opacity:1}.fb-actions{display:flex;justify-content:space-between;align-items:flex-end}.fb-actions-left{display:flex;gap:6px;align-items:center}.fb-submit-wrap{display:flex;flex-direction:column;align-items:flex-end;gap:2px}.fb-shortcut-hint{font-size:11px;color:var(--fg-dim);-webkit-user-select:none;user-select:none;white-space:nowrap}.fb-icon-btn{background:none;border:1px solid var(--border);color:var(--fg-dim);border-radius:6px;padding:5px 7px;cursor:pointer;transition:all .15s;line-height:0;display:flex;align-items:center;justify-content:center}.fb-icon-btn:hover:not(:disabled){color:var(--fg);border-color:var(--btn-bg)}.fb-icon-btn:disabled{opacity:.4;cursor:not-allowed}.fb-icon-btn svg{display:block}.fb-actions-right{display:flex;gap:8px;align-items:flex-end}.fb-submit{background:var(--btn-bg);color:var(--btn-fg);border:1px solid var(--border);border-radius:6px;padding:8px 20px;font-size:14px;font-weight:500;cursor:pointer;transition:background .15s;white-space:nowrap}.fb-submit:hover:not(:disabled){background:color-mix(in srgb,var(--btn-bg) 85%,var(--fg))}.fb-submit:disabled{opacity:.5;cursor:not-allowed}.fb-settings{background:var(--settings-bg);border:1px solid var(--border);border-radius:8px;padding:10px 14px;display:flex;flex-direction:column;gap:8px}.fb-settings-row{display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer}.fb-settings-row input[type=checkbox]{width:14px;height:14px;accent-color:var(--btn-bg);cursor:pointer}.fb-settings-input{width:100%;background:transparent;color:var(--color-text-primary, var(--fg));border:1px solid var(--border);border-radius:6px;padding:6px 10px;font-size:13px;font-family:inherit}.fb-settings-input:focus{outline:none;border-color:var(--btn-bg)}.fb-settings-divider{height:1px;background:var(--border);margin:4px 0}.fb-settings-reset{background:none;border:1px solid var(--border);color:var(--fg-dim);border-radius:6px;padding:5px 12px;font-size:12px;cursor:pointer;font-family:inherit;align-self:flex-start;transition:all .15s}.fb-settings-reset:hover{color:var(--fg);border-color:var(--fg-dim)}.fb-sound-picker{display:flex;gap:4px;flex-wrap:wrap}.fb-sound-btn{background:var(--quick-bg);border:1px solid var(--quick-border);color:var(--fg-dim);border-radius:12px;padding:3px 10px;font-size:11px;cursor:pointer;transition:all .15s;font-family:inherit}.fb-sound-btn:hover{color:var(--fg);border-color:var(--fg-dim)}.fb-sound-btn.active{color:var(--fg);border-color:var(--fg);background:var(--quick-hover)}.fb-status{text-align:center;font-size:13px;color:var(--fg-dim);padding:8px 0}.fb-error{text-align:center;font-size:13px;color:#ef4444;padding:12px}.fb-status-text{text-align:center;font-size:11px;color:var(--fg-dim);padding:4px 12px;font-family:monospace;word-break:break-all;cursor:pointer;-webkit-user-select:all;user-select:all}.fb-status-text:hover{color:var(--fg)}.fb-error-dismiss{text-align:center;padding:8px 12px}.fb-pending-section{border-top:1px solid var(--border);padding-top:12px}.fb-pending-header{display:flex;align-items:center;justify-content:space-between;cursor:pointer;-webkit-user-select:none;user-select:none;padding:4px 0}.fb-pending-title{font-size:12px;font-weight:600;color:var(--fg-dim);text-transform:uppercase;letter-spacing:.5px;display:flex;align-items:center;gap:6px}.fb-pending-badge{background:var(--btn-bg);color:var(--btn-fg);font-size:10px;font-weight:700;border-radius:10px;padding:1px 6px;min-width:18px;text-align:center;line-height:16px}.fb-pending-actions{display:flex;gap:4px}.fb-pending-clear{background:none;border:none;color:var(--fg-dim);font-size:11px;cursor:pointer;padding:2px 6px;border-radius:4px;font-family:inherit}.fb-pending-clear:hover{color:#ef4444;background:#ef44441a}.fb-pending-list{display:flex;flex-direction:column;gap:6px;margin-top:8px;max-height:200px;overflow-y:auto}.fb-pending-item{display:flex;align-items:flex-start;gap:8px;background:var(--quick-bg);border:1px solid var(--quick-border);border-radius:8px;padding:8px 10px;font-size:13px;line-height:1.4;position:relative}.fb-pending-item-text{flex:1;word-break:break-word;white-space:pre-wrap}.fb-pending-item-time{font-size:10px;color:var(--fg-dim);margin-top:2px}.fb-pending-item-btns{display:flex;gap:2px;flex-shrink:0;opacity:0;transition:opacity .15s}.fb-pending-item:hover .fb-pending-item-btns{opacity:1}.fb-pending-item-btn{background:none;border:none;color:var(--fg-dim);cursor:pointer;padding:2px 4px;border-radius:4px;font-size:12px;line-height:1}.fb-pending-item-btn:hover{color:var(--fg);background:var(--quick-hover)}.fb-pending-item-btn.delete:hover{color:#ef4444;background:#ef44441a}.fb-pending-input-row{display:flex;gap:6px;margin-top:8px}.fb-pending-input{flex:1;background:transparent;color:var(--color-text-primary, var(--fg));border:1px solid var(--border);border-radius:6px;padding:6px 10px;font-family:inherit;font-size:13px;line-height:1.4;resize:none;min-height:32px;max-height:80px}.fb-pending-input:focus{outline:none;border-color:var(--btn-bg)}.fb-pending-input::placeholder{color:var(--fg-dim)}.fb-pending-send{background:var(--btn-bg);color:var(--btn-fg);border:1px solid var(--border);border-radius:6px;padding:6px 12px;font-size:12px;font-weight:500;cursor:pointer;white-space:nowrap;align-self:flex-end;font-family:inherit}.fb-pending-send:hover:not(:disabled){background:var(--btn-hover)}.fb-pending-send:disabled{opacity:.5;cursor:not-allowed}.fb-pending-empty{font-size:12px;color:var(--fg-dim);text-align:center;padding:8px 0;font-style:italic}.fb-pending-chevron{font-size:10px;transition:transform .2s;color:var(--fg-dim)}.fb-pending-chevron.open{transform:rotate(90deg)}</style>
223
224
  </head>
224
225
  <body>
225
226
  <div id="root"></div>