@moneypot/hub 1.18.1 → 1.18.3
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.
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
var fB=Object.defineProperty;var $O=e=>{throw TypeError(e)};var mB=(e,t,r)=>t in e?fB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var hB=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ya=(e,t,r)=>mB(e,typeof t!="symbol"?t+"":t,r),Qg=(e,t,r)=>t.has(e)||$O("Cannot "+r);var X=(e,t,r)=>(Qg(e,t,"read from private field"),r?r.call(e):t.get(e)),pt=(e,t,r)=>t.has(e)?$O("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Ke=(e,t,r,i)=>(Qg(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),Dn=(e,t,r)=>(Qg(e,t,"access private method"),r);var pm=(e,t,r,i)=>({set _(n){Ke(e,t,n,r)},get _(){return X(e,t,i)}});var bue=hB((br,_r)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))i(n);new MutationObserver(n=>{for(const a of n)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&i(l)}).observe(document,{childList:!0,subtree:!0});function r(n){const a={};return n.integrity&&(a.integrity=n.integrity),n.referrerPolicy&&(a.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?a.credentials="include":n.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(n){if(n.ep)return;n.ep=!0;const a=r(n);fetch(n.href,a)}})();function ws(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wg={exports:{}},Sc={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var SO;function vB(){if(SO)return Sc;SO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(i,n,a){var l=null;if(a!==void 0&&(l=""+a),n.key!==void 0&&(l=""+n.key),"key"in n){a={};for(var d in n)d!=="key"&&(a[d]=n[d])}else a=n;return n=a.ref,{$$typeof:e,type:i,key:l,ref:n!==void 0?n:null,props:a}}return Sc.Fragment=t,Sc.jsx=r,Sc.jsxs=r,Sc}var kO;function pB(){return kO||(kO=1,Wg.exports=vB()),Wg.exports}var b=pB(),ey={exports:{}},kc={},ty={exports:{}},ny={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* scheduler.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var wO;function gB(){return wO||(wO=1,(function(e){function t(M,ee){var ce=M.length;M.push(ee);e:for(;0<ce;){var je=ce-1>>>1,Ue=M[je];if(0<n(Ue,ee))M[je]=ee,M[ce]=Ue,ce=je;else break e}}function r(M){return M.length===0?null:M[0]}function i(M){if(M.length===0)return null;var ee=M[0],ce=M.pop();if(ce!==ee){M[0]=ce;e:for(var je=0,Ue=M.length,D=Ue>>>1;je<D;){var H=2*(je+1)-1,ne=M[H],oe=H+1,ye=M[oe];if(0>n(ne,ce))oe<Ue&&0>n(ye,ne)?(M[je]=ye,M[oe]=ce,je=oe):(M[je]=ne,M[H]=ce,je=H);else if(oe<Ue&&0>n(ye,ce))M[je]=ye,M[oe]=ce,je=oe;else break e}}return ee}function n(M,ee){var ce=M.sortIndex-ee.sortIndex;return ce!==0?ce:M.id-ee.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var l=Date,d=l.now();e.unstable_now=function(){return l.now()-d}}var f=[],m=[],p=1,g=null,y=3,S=!1,w=!1,j=!1,x=!1,$=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function z(M){for(var ee=r(m);ee!==null;){if(ee.callback===null)i(m);else if(ee.startTime<=M)i(m),ee.sortIndex=ee.expirationTime,t(f,ee);else break;ee=r(m)}}function T(M){if(j=!1,z(M),!w)if(r(f)!==null)w=!0,E||(E=!0,Je());else{var ee=r(m);ee!==null&&Ne(T,ee.startTime-M)}}var E=!1,C=-1,ae=5,ue=-1;function fe(){return x?!0:!(e.unstable_now()-ue<ae)}function we(){if(x=!1,E){var M=e.unstable_now();ue=M;var ee=!0;try{e:{w=!1,j&&(j=!1,I(C),C=-1),S=!0;var ce=y;try{t:{for(z(M),g=r(f);g!==null&&!(g.expirationTime>M&&fe());){var je=g.callback;if(typeof je=="function"){g.callback=null,y=g.priorityLevel;var Ue=je(g.expirationTime<=M);if(M=e.unstable_now(),typeof Ue=="function"){g.callback=Ue,z(M),ee=!0;break t}g===r(f)&&i(f),z(M)}else i(f);g=r(f)}if(g!==null)ee=!0;else{var D=r(m);D!==null&&Ne(T,D.startTime-M),ee=!1}}break e}finally{g=null,y=ce,S=!1}ee=void 0}}finally{ee?Je():E=!1}}}var Je;if(typeof N=="function")Je=function(){N(we)};else if(typeof MessageChannel<"u"){var De=new MessageChannel,_e=De.port2;De.port1.onmessage=we,Je=function(){_e.postMessage(null)}}else Je=function(){$(we,0)};function Ne(M,ee){C=$(function(){M(e.unstable_now())},ee)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(M){M.callback=null},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(M){switch(y){case 1:case 2:case 3:var ee=3;break;default:ee=y}var ce=y;y=ee;try{return M()}finally{y=ce}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(M,ee){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var ce=y;y=M;try{return ee()}finally{y=ce}},e.unstable_scheduleCallback=function(M,ee,ce){var je=e.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?je+ce:je):ce=je,M){case 1:var Ue=-1;break;case 2:Ue=250;break;case 5:Ue=1073741823;break;case 4:Ue=1e4;break;default:Ue=5e3}return Ue=ce+Ue,M={id:p++,callback:ee,priorityLevel:M,startTime:ce,expirationTime:Ue,sortIndex:-1},ce>je?(M.sortIndex=ce,t(m,M),r(f)===null&&M===r(m)&&(j?(I(C),C=-1):j=!0,Ne(T,ce-je))):(M.sortIndex=Ue,t(f,M),w||S||(w=!0,E||(E=!0,Je()))),M},e.unstable_shouldYield=fe,e.unstable_wrapCallback=function(M){var ee=y;return function(){var ce=y;y=ee;try{return M.apply(this,arguments)}finally{y=ce}}}})(ny)),ny}var xO;function yB(){return xO||(xO=1,ty.exports=gB()),ty.exports}var ry={exports:{}},Ye={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var OO;function bB(){if(OO)return Ye;OO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),y=Symbol.iterator;function S(D){return D===null||typeof D!="object"?null:(D=y&&D[y]||D["@@iterator"],typeof D=="function"?D:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,x={};function $(D,H,ne){this.props=D,this.context=H,this.refs=x,this.updater=ne||w}$.prototype.isReactComponent={},$.prototype.setState=function(D,H){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,H,"setState")},$.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function I(){}I.prototype=$.prototype;function N(D,H,ne){this.props=D,this.context=H,this.refs=x,this.updater=ne||w}var z=N.prototype=new I;z.constructor=N,j(z,$.prototype),z.isPureReactComponent=!0;var T=Array.isArray;function E(){}var C={H:null,A:null,T:null,S:null},ae=Object.prototype.hasOwnProperty;function ue(D,H,ne){var oe=ne.ref;return{$$typeof:e,type:D,key:H,ref:oe!==void 0?oe:null,props:ne}}function fe(D,H){return ue(D.type,H,D.props)}function we(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function Je(D){var H={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(ne){return H[ne]})}var De=/\/+/g;function _e(D,H){return typeof D=="object"&&D!==null&&D.key!=null?Je(""+D.key):H.toString(36)}function Ne(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(E,E):(D.status="pending",D.then(function(H){D.status==="pending"&&(D.status="fulfilled",D.value=H)},function(H){D.status==="pending"&&(D.status="rejected",D.reason=H)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function M(D,H,ne,oe,ye){var Ae=typeof D;(Ae==="undefined"||Ae==="boolean")&&(D=null);var He=!1;if(D===null)He=!0;else switch(Ae){case"bigint":case"string":case"number":He=!0;break;case"object":switch(D.$$typeof){case e:case t:He=!0;break;case p:return He=D._init,M(He(D._payload),H,ne,oe,ye)}}if(He)return ye=ye(D),He=oe===""?"."+_e(D,0):oe,T(ye)?(ne="",He!=null&&(ne=He.replace(De,"$&/")+"/"),M(ye,H,ne,"",function(gt){return gt})):ye!=null&&(we(ye)&&(ye=fe(ye,ne+(ye.key==null||D&&D.key===ye.key?"":(""+ye.key).replace(De,"$&/")+"/")+He)),H.push(ye)),1;He=0;var _t=oe===""?".":oe+":";if(T(D))for(var dt=0;dt<D.length;dt++)oe=D[dt],Ae=_t+_e(oe,dt),He+=M(oe,H,ne,Ae,ye);else if(dt=S(D),typeof dt=="function")for(D=dt.call(D),dt=0;!(oe=D.next()).done;)oe=oe.value,Ae=_t+_e(oe,dt++),He+=M(oe,H,ne,Ae,ye);else if(Ae==="object"){if(typeof D.then=="function")return M(Ne(D),H,ne,oe,ye);throw H=String(D),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return He}function ee(D,H,ne){if(D==null)return D;var oe=[],ye=0;return M(D,oe,"","",function(Ae){return H.call(ne,Ae,ye++)}),oe}function ce(D){if(D._status===-1){var H=D._result;H=H(),H.then(function(ne){(D._status===0||D._status===-1)&&(D._status=1,D._result=ne)},function(ne){(D._status===0||D._status===-1)&&(D._status=2,D._result=ne)}),D._status===-1&&(D._status=0,D._result=H)}if(D._status===1)return D._result.default;throw D._result}var je=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},Ue={map:ee,forEach:function(D,H,ne){ee(D,function(){H.apply(this,arguments)},ne)},count:function(D){var H=0;return ee(D,function(){H++}),H},toArray:function(D){return ee(D,function(H){return H})||[]},only:function(D){if(!we(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return Ye.Activity=g,Ye.Children=Ue,Ye.Component=$,Ye.Fragment=r,Ye.Profiler=n,Ye.PureComponent=N,Ye.StrictMode=i,Ye.Suspense=f,Ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,Ye.__COMPILER_RUNTIME={__proto__:null,c:function(D){return C.H.useMemoCache(D)}},Ye.cache=function(D){return function(){return D.apply(null,arguments)}},Ye.cacheSignal=function(){return null},Ye.cloneElement=function(D,H,ne){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var oe=j({},D.props),ye=D.key;if(H!=null)for(Ae in H.key!==void 0&&(ye=""+H.key),H)!ae.call(H,Ae)||Ae==="key"||Ae==="__self"||Ae==="__source"||Ae==="ref"&&H.ref===void 0||(oe[Ae]=H[Ae]);var Ae=arguments.length-2;if(Ae===1)oe.children=ne;else if(1<Ae){for(var He=Array(Ae),_t=0;_t<Ae;_t++)He[_t]=arguments[_t+2];oe.children=He}return ue(D.type,ye,oe)},Ye.createContext=function(D){return D={$$typeof:l,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:a,_context:D},D},Ye.createElement=function(D,H,ne){var oe,ye={},Ae=null;if(H!=null)for(oe in H.key!==void 0&&(Ae=""+H.key),H)ae.call(H,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(ye[oe]=H[oe]);var He=arguments.length-2;if(He===1)ye.children=ne;else if(1<He){for(var _t=Array(He),dt=0;dt<He;dt++)_t[dt]=arguments[dt+2];ye.children=_t}if(D&&D.defaultProps)for(oe in He=D.defaultProps,He)ye[oe]===void 0&&(ye[oe]=He[oe]);return ue(D,Ae,ye)},Ye.createRef=function(){return{current:null}},Ye.forwardRef=function(D){return{$$typeof:d,render:D}},Ye.isValidElement=we,Ye.lazy=function(D){return{$$typeof:p,_payload:{_status:-1,_result:D},_init:ce}},Ye.memo=function(D,H){return{$$typeof:m,type:D,compare:H===void 0?null:H}},Ye.startTransition=function(D){var H=C.T,ne={};C.T=ne;try{var oe=D(),ye=C.S;ye!==null&&ye(ne,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(E,je)}catch(Ae){je(Ae)}finally{H!==null&&ne.types!==null&&(H.types=ne.types),C.T=H}},Ye.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},Ye.use=function(D){return C.H.use(D)},Ye.useActionState=function(D,H,ne){return C.H.useActionState(D,H,ne)},Ye.useCallback=function(D,H){return C.H.useCallback(D,H)},Ye.useContext=function(D){return C.H.useContext(D)},Ye.useDebugValue=function(){},Ye.useDeferredValue=function(D,H){return C.H.useDeferredValue(D,H)},Ye.useEffect=function(D,H){return C.H.useEffect(D,H)},Ye.useEffectEvent=function(D){return C.H.useEffectEvent(D)},Ye.useId=function(){return C.H.useId()},Ye.useImperativeHandle=function(D,H,ne){return C.H.useImperativeHandle(D,H,ne)},Ye.useInsertionEffect=function(D,H){return C.H.useInsertionEffect(D,H)},Ye.useLayoutEffect=function(D,H){return C.H.useLayoutEffect(D,H)},Ye.useMemo=function(D,H){return C.H.useMemo(D,H)},Ye.useOptimistic=function(D,H){return C.H.useOptimistic(D,H)},Ye.useReducer=function(D,H,ne){return C.H.useReducer(D,H,ne)},Ye.useRef=function(D){return C.H.useRef(D)},Ye.useState=function(D){return C.H.useState(D)},Ye.useSyncExternalStore=function(D,H,ne){return C.H.useSyncExternalStore(D,H,ne)},Ye.useTransition=function(){return C.H.useTransition()},Ye.version="19.2.0",Ye}var EO;function Ah(){return EO||(EO=1,ry.exports=bB()),ry.exports}var iy={exports:{}},Un={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var NO;function _B(){if(NO)return Un;NO=1;var e=Ah();function t(f){var m="https://react.dev/errors/"+f;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)m+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+f+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},n=Symbol.for("react.portal");function a(f,m,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:n,key:g==null?null:""+g,children:f,containerInfo:m,implementation:p}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,m){if(f==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Un.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Un.createPortal=function(f,m){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(t(299));return a(f,m,null,p)},Un.flushSync=function(f){var m=l.T,p=i.p;try{if(l.T=null,i.p=2,f)return f()}finally{l.T=m,i.p=p,i.d.f()}},Un.preconnect=function(f,m){typeof f=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,i.d.C(f,m))},Un.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},Un.preinit=function(f,m){if(typeof f=="string"&&m&&typeof m.as=="string"){var p=m.as,g=d(p,m.crossOrigin),y=typeof m.integrity=="string"?m.integrity:void 0,S=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;p==="style"?i.d.S(f,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:g,integrity:y,fetchPriority:S}):p==="script"&&i.d.X(f,{crossOrigin:g,integrity:y,fetchPriority:S,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Un.preinitModule=function(f,m){if(typeof f=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var p=d(m.as,m.crossOrigin);i.d.M(f,{crossOrigin:p,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&i.d.M(f)},Un.preload=function(f,m){if(typeof f=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var p=m.as,g=d(p,m.crossOrigin);i.d.L(f,p,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Un.preloadModule=function(f,m){if(typeof f=="string")if(m){var p=d(m.as,m.crossOrigin);i.d.m(f,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:p,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else i.d.m(f)},Un.requestFormReset=function(f){i.d.r(f)},Un.unstable_batchedUpdates=function(f,m){return f(m)},Un.useFormState=function(f,m,p){return l.H.useFormState(f,m,p)},Un.useFormStatus=function(){return l.H.useHostTransitionStatus()},Un.version="19.2.0",Un}var jO;function Zj(){if(jO)return iy.exports;jO=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),iy.exports=_B(),iy.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var IO;function $B(){if(IO)return kc;IO=1;var e=yB(),t=Ah(),r=Zj();function i(o){var u="https://react.dev/errors/"+o;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)u+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+o+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function a(o){var u=o,s=o;if(o.alternate)for(;u.return;)u=u.return;else{o=u;do u=o,(u.flags&4098)!==0&&(s=u.return),o=u.return;while(o)}return u.tag===3?s:null}function l(o){if(o.tag===13){var u=o.memoizedState;if(u===null&&(o=o.alternate,o!==null&&(u=o.memoizedState)),u!==null)return u.dehydrated}return null}function d(o){if(o.tag===31){var u=o.memoizedState;if(u===null&&(o=o.alternate,o!==null&&(u=o.memoizedState)),u!==null)return u.dehydrated}return null}function f(o){if(a(o)!==o)throw Error(i(188))}function m(o){var u=o.alternate;if(!u){if(u=a(o),u===null)throw Error(i(188));return u!==o?null:o}for(var s=o,c=u;;){var h=s.return;if(h===null)break;var v=h.alternate;if(v===null){if(c=h.return,c!==null){s=c;continue}break}if(h.child===v.child){for(v=h.child;v;){if(v===s)return f(h),o;if(v===c)return f(h),u;v=v.sibling}throw Error(i(188))}if(s.return!==c.return)s=h,c=v;else{for(var _=!1,O=h.child;O;){if(O===s){_=!0,s=h,c=v;break}if(O===c){_=!0,c=h,s=v;break}O=O.sibling}if(!_){for(O=v.child;O;){if(O===s){_=!0,s=v,c=h;break}if(O===c){_=!0,c=v,s=h;break}O=O.sibling}if(!_)throw Error(i(189))}}if(s.alternate!==c)throw Error(i(190))}if(s.tag!==3)throw Error(i(188));return s.stateNode.current===s?o:u}function p(o){var u=o.tag;if(u===5||u===26||u===27||u===6)return o;for(o=o.child;o!==null;){if(u=p(o),u!==null)return u;o=o.sibling}return null}var g=Object.assign,y=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),N=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),ue=Symbol.for("react.activity"),fe=Symbol.for("react.memo_cache_sentinel"),we=Symbol.iterator;function Je(o){return o===null||typeof o!="object"?null:(o=we&&o[we]||o["@@iterator"],typeof o=="function"?o:null)}var De=Symbol.for("react.client.reference");function _e(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===De?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case j:return"Fragment";case $:return"Profiler";case x:return"StrictMode";case T:return"Suspense";case E:return"SuspenseList";case ue:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case w:return"Portal";case N:return o.displayName||"Context";case I:return(o._context.displayName||"Context")+".Consumer";case z:var u=o.render;return o=o.displayName,o||(o=u.displayName||u.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case C:return u=o.displayName||null,u!==null?u:_e(o.type)||"Memo";case ae:u=o._payload,o=o._init;try{return _e(o(u))}catch{}}return null}var Ne=Array.isArray,M=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},je=[],Ue=-1;function D(o){return{current:o}}function H(o){0>Ue||(o.current=je[Ue],je[Ue]=null,Ue--)}function ne(o,u){Ue++,je[Ue]=o.current,o.current=u}var oe=D(null),ye=D(null),Ae=D(null),He=D(null);function _t(o,u){switch(ne(Ae,u),ne(ye,o),ne(oe,null),u.nodeType){case 9:case 11:o=(o=u.documentElement)&&(o=o.namespaceURI)?V1(o):0;break;default:if(o=u.tagName,u=u.namespaceURI)u=V1(u),o=q1(u,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}H(oe),ne(oe,o)}function dt(){H(oe),H(ye),H(Ae)}function gt(o){o.memoizedState!==null&&ne(He,o);var u=oe.current,s=q1(u,o.type);u!==s&&(ne(ye,o),ne(oe,s))}function Ht(o){ye.current===o&&(H(oe),H(ye)),He.current===o&&(H(He),yc._currentValue=ce)}var wn,zn;function Rt(o){if(wn===void 0)try{throw Error()}catch(s){var u=s.stack.trim().match(/\n( *(at )?)/);wn=u&&u[1]||"",zn=-1<s.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+wn+o+zn}var yt=!1;function Cn(o,u){if(!o||yt)return"";yt=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(u){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(J){var G=J}Reflect.construct(o,[],W)}else{try{W.call()}catch(J){G=J}o.call(W.prototype)}}else{try{throw Error()}catch(J){G=J}(W=o())&&typeof W.catch=="function"&&W.catch(function(){})}}catch(J){if(J&&G&&typeof J.stack=="string")return[J.stack,G.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=c.DetermineComponentFrameRoot(),_=v[0],O=v[1];if(_&&O){var A=_.split(`
|
|
44
|
+
`),V=O.split(`
|
|
45
|
+
`);for(h=c=0;c<A.length&&!A[c].includes("DetermineComponentFrameRoot");)c++;for(;h<V.length&&!V[h].includes("DetermineComponentFrameRoot");)h++;if(c===A.length||h===V.length)for(c=A.length-1,h=V.length-1;1<=c&&0<=h&&A[c]!==V[h];)h--;for(;1<=c&&0<=h;c--,h--)if(A[c]!==V[h]){if(c!==1||h!==1)do if(c--,h--,0>h||A[c]!==V[h]){var Y=`
|
|
46
|
+
`+A[c].replace(" at new "," at ");return o.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",o.displayName)),Y}while(1<=c&&0<=h);break}}}finally{yt=!1,Error.prepareStackTrace=s}return(s=o?o.displayName||o.name:"")?Rt(s):""}function Rn(o,u){switch(o.tag){case 26:case 27:case 5:return Rt(o.type);case 16:return Rt("Lazy");case 13:return o.child!==u&&u!==null?Rt("Suspense Fallback"):Rt("Suspense");case 19:return Rt("SuspenseList");case 0:case 15:return Cn(o.type,!1);case 11:return Cn(o.type.render,!1);case 1:return Cn(o.type,!0);case 31:return Rt("Activity");default:return""}}function Ni(o){try{var u="",s=null;do u+=Rn(o,s),s=o,o=o.return;while(o);return u}catch(c){return`
|
|
47
|
+
Error generating stack: `+c.message+`
|
|
48
|
+
`+c.stack}}var rr=Object.prototype.hasOwnProperty,xn=e.unstable_scheduleCallback,Gn=e.unstable_cancelCallback,q=e.unstable_shouldYield,pe=e.unstable_requestPaint,he=e.unstable_now,Oe=e.unstable_getCurrentPriorityLevel,me=e.unstable_ImmediatePriority,Pe=e.unstable_UserBlockingPriority,Nt=e.unstable_NormalPriority,ir=e.unstable_LowPriority,ji=e.unstable_IdlePriority,Fo=e.log,ar=e.unstable_setDisableYieldValue,ti=null,pn=null;function ni(o){if(typeof Fo=="function"&&ar(o),pn&&typeof pn.setStrictMode=="function")try{pn.setStrictMode(ti,o)}catch{}}var Mn=Math.clz32?Math.clz32:rf,nf=Math.log,nl=Math.LN2;function rf(o){return o>>>=0,o===0?32:31-(nf(o)/nl|0)|0}var qa=256,rl=262144,Vo=4194304;function Qi(o){var u=o&42;if(u!==0)return u;switch(o&-o){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 o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function qo(o,u,s){var c=o.pendingLanes;if(c===0)return 0;var h=0,v=o.suspendedLanes,_=o.pingedLanes;o=o.warmLanes;var O=c&134217727;return O!==0?(c=O&~v,c!==0?h=Qi(c):(_&=O,_!==0?h=Qi(_):s||(s=O&~o,s!==0&&(h=Qi(s))))):(O=c&~v,O!==0?h=Qi(O):_!==0?h=Qi(_):s||(s=c&~o,s!==0&&(h=Qi(s)))),h===0?0:u!==0&&u!==h&&(u&v)===0&&(v=h&-h,s=u&-u,v>=s||v===32&&(s&4194048)!==0)?u:h}function Ii(o,u){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&u)===0}function il(o,u){switch(o){case 1:case 2:case 4:case 8:case 64:return u+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 u+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 af(){var o=Vo;return Vo<<=1,(Vo&62914560)===0&&(Vo=4194304),o}function Ds(o){for(var u=[],s=0;31>s;s++)u.push(o);return u}function U(o,u){o.pendingLanes|=u,u!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function P(o,u,s,c,h,v){var _=o.pendingLanes;o.pendingLanes=s,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=s,o.entangledLanes&=s,o.errorRecoveryDisabledLanes&=s,o.shellSuspendCounter=0;var O=o.entanglements,A=o.expirationTimes,V=o.hiddenUpdates;for(s=_&~s;0<s;){var Y=31-Mn(s),W=1<<Y;O[Y]=0,A[Y]=-1;var G=V[Y];if(G!==null)for(V[Y]=null,Y=0;Y<G.length;Y++){var J=G[Y];J!==null&&(J.lane&=-536870913)}s&=~W}c!==0&&K(o,c,0),v!==0&&h===0&&o.tag!==0&&(o.suspendedLanes|=v&~(_&~u))}function K(o,u,s){o.pendingLanes|=u,o.suspendedLanes&=~u;var c=31-Mn(u);o.entangledLanes|=u,o.entanglements[c]=o.entanglements[c]|1073741824|s&261930}function le(o,u){var s=o.entangledLanes|=u;for(o=o.entanglements;s;){var c=31-Mn(s),h=1<<c;h&u|o[c]&u&&(o[c]|=u),s&=~h}}function ve(o,u){var s=u&-u;return s=(s&42)!==0?1:Te(s),(s&(o.suspendedLanes|u))!==0?0:s}function Te(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=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:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function ze(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function Ee(){var o=ee.p;return o!==0?o:(o=window.event,o===void 0?32:hO(o.type))}function Ce(o,u){var s=ee.p;try{return ee.p=o,u()}finally{ee.p=s}}var Re=Math.random().toString(36).slice(2),$e="__reactFiber$"+Re,be="__reactProps$"+Re,Fe="__reactContainer$"+Re,Ot="__reactEvents$"+Re,an="__reactListeners$"+Re,On="__reactHandles$"+Re,Mt="__reactResources$"+Re,wt="__reactMarker$"+Re;function ri(o){delete o[$e],delete o[be],delete o[Ot],delete o[an],delete o[On]}function jr(o){var u=o[$e];if(u)return u;for(var s=o.parentNode;s;){if(u=s[Fe]||s[$e]){if(s=u.alternate,u.child!==null||s!==null&&s.child!==null)for(o=Q1(o);o!==null;){if(s=o[$e])return s;o=Q1(o)}return u}o=s,s=o.parentNode}return null}function Ln(o){if(o=o[$e]||o[Fe]){var u=o.tag;if(u===5||u===6||u===13||u===31||u===26||u===27||u===3)return o}return null}function An(o){var u=o.tag;if(u===5||u===26||u===27||u===6)return o.stateNode;throw Error(i(33))}function Ti(o){var u=o[Mt];return u||(u=o[Mt]={hoistableStyles:new Map,hoistableScripts:new Map}),u}function Kt(o){o[wt]=!0}var zi=new Set,Go={};function Ir(o,u){nt(o,u),nt(o+"Capture",u)}function nt(o,u){for(Go[o]=u,o=0;o<u.length;o++)zi.add(u[o])}var gn=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]*$"),Wi={},Ai={};function tn(o){return rr.call(Ai,o)?!0:rr.call(Wi,o)?!1:gn.test(o)?Ai[o]=!0:(Wi[o]=!0,!1)}function ea(o,u,s){if(tn(u))if(s===null)o.removeAttribute(u);else{switch(typeof s){case"undefined":case"function":case"symbol":o.removeAttribute(u);return;case"boolean":var c=u.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){o.removeAttribute(u);return}}o.setAttribute(u,""+s)}}function Ho(o,u,s){if(s===null)o.removeAttribute(u);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(u);return}o.setAttribute(u,""+s)}}function ii(o,u,s,c){if(c===null)o.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(s);return}o.setAttributeNS(u,s,""+c)}}function Tr(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Ck(o){var u=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function aP(o,u,s){var c=Object.getOwnPropertyDescriptor(o.constructor.prototype,u);if(!o.hasOwnProperty(u)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var h=c.get,v=c.set;return Object.defineProperty(o,u,{configurable:!0,get:function(){return h.call(this)},set:function(_){s=""+_,v.call(this,_)}}),Object.defineProperty(o,u,{enumerable:c.enumerable}),{getValue:function(){return s},setValue:function(_){s=""+_},stopTracking:function(){o._valueTracker=null,delete o[u]}}}}function qv(o){if(!o._valueTracker){var u=Ck(o)?"checked":"value";o._valueTracker=aP(o,u,""+o[u])}}function Rk(o){if(!o)return!1;var u=o._valueTracker;if(!u)return!0;var s=u.getValue(),c="";return o&&(c=Ck(o)?o.checked?"true":"false":o.value),o=c,o!==s?(u.setValue(o),!0):!1}function of(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var oP=/[\n"\\]/g;function zr(o){return o.replace(oP,function(u){return"\\"+u.charCodeAt(0).toString(16)+" "})}function Gv(o,u,s,c,h,v,_,O){o.name="",_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?o.type=_:o.removeAttribute("type"),u!=null?_==="number"?(u===0&&o.value===""||o.value!=u)&&(o.value=""+Tr(u)):o.value!==""+Tr(u)&&(o.value=""+Tr(u)):_!=="submit"&&_!=="reset"||o.removeAttribute("value"),u!=null?Hv(o,_,Tr(u)):s!=null?Hv(o,_,Tr(s)):c!=null&&o.removeAttribute("value"),h==null&&v!=null&&(o.defaultChecked=!!v),h!=null&&(o.checked=h&&typeof h!="function"&&typeof h!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?o.name=""+Tr(O):o.removeAttribute("name")}function Mk(o,u,s,c,h,v,_,O){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(o.type=v),u!=null||s!=null){if(!(v!=="submit"&&v!=="reset"||u!=null)){qv(o);return}s=s!=null?""+Tr(s):"",u=u!=null?""+Tr(u):s,O||u===o.value||(o.value=u),o.defaultValue=u}c=c??h,c=typeof c!="function"&&typeof c!="symbol"&&!!c,o.checked=O?o.checked:!!c,o.defaultChecked=!!c,_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(o.name=_),qv(o)}function Hv(o,u,s){u==="number"&&of(o.ownerDocument)===o||o.defaultValue===""+s||(o.defaultValue=""+s)}function al(o,u,s,c){if(o=o.options,u){u={};for(var h=0;h<s.length;h++)u["$"+s[h]]=!0;for(s=0;s<o.length;s++)h=u.hasOwnProperty("$"+o[s].value),o[s].selected!==h&&(o[s].selected=h),h&&c&&(o[s].defaultSelected=!0)}else{for(s=""+Tr(s),u=null,h=0;h<o.length;h++){if(o[h].value===s){o[h].selected=!0,c&&(o[h].defaultSelected=!0);return}u!==null||o[h].disabled||(u=o[h])}u!==null&&(u.selected=!0)}}function Lk(o,u,s){if(u!=null&&(u=""+Tr(u),u!==o.value&&(o.value=u),s==null)){o.defaultValue!==u&&(o.defaultValue=u);return}o.defaultValue=s!=null?""+Tr(s):""}function Pk(o,u,s,c){if(u==null){if(c!=null){if(s!=null)throw Error(i(92));if(Ne(c)){if(1<c.length)throw Error(i(93));c=c[0]}s=c}s==null&&(s=""),u=s}s=Tr(u),o.defaultValue=s,c=o.textContent,c===s&&c!==""&&c!==null&&(o.value=c),qv(o)}function ol(o,u){if(u){var s=o.firstChild;if(s&&s===o.lastChild&&s.nodeType===3){s.nodeValue=u;return}}o.textContent=u}var uP=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 Zk(o,u,s){var c=u.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?c?o.setProperty(u,""):u==="float"?o.cssFloat="":o[u]="":c?o.setProperty(u,s):typeof s!="number"||s===0||uP.has(u)?u==="float"?o.cssFloat=s:o[u]=(""+s).trim():o[u]=s+"px"}function Bk(o,u,s){if(u!=null&&typeof u!="object")throw Error(i(62));if(o=o.style,s!=null){for(var c in s)!s.hasOwnProperty(c)||u!=null&&u.hasOwnProperty(c)||(c.indexOf("--")===0?o.setProperty(c,""):c==="float"?o.cssFloat="":o[c]="");for(var h in u)c=u[h],u.hasOwnProperty(h)&&s[h]!==c&&Zk(o,h,c)}else for(var v in u)u.hasOwnProperty(v)&&Zk(o,v,u[v])}function Kv(o){if(o.indexOf("-")===-1)return!1;switch(o){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 lP=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"]]),sP=/^[\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 uf(o){return sP.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function ta(){}var Jv=null;function Yv(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var ul=null,ll=null;function Fk(o){var u=Ln(o);if(u&&(o=u.stateNode)){var s=o[be]||null;e:switch(o=u.stateNode,u.type){case"input":if(Gv(o,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),u=s.name,s.type==="radio"&&u!=null){for(s=o;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+zr(""+u)+'"][type="radio"]'),u=0;u<s.length;u++){var c=s[u];if(c!==o&&c.form===o.form){var h=c[be]||null;if(!h)throw Error(i(90));Gv(c,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(u=0;u<s.length;u++)c=s[u],c.form===o.form&&Rk(c)}break e;case"textarea":Lk(o,s.value,s.defaultValue);break e;case"select":u=s.value,u!=null&&al(o,!!s.multiple,u,!1)}}}var Xv=!1;function Vk(o,u,s){if(Xv)return o(u,s);Xv=!0;try{var c=o(u);return c}finally{if(Xv=!1,(ul!==null||ll!==null)&&(Kf(),ul&&(u=ul,o=ll,ll=ul=null,Fk(u),o)))for(u=0;u<o.length;u++)Fk(o[u])}}function Us(o,u){var s=o.stateNode;if(s===null)return null;var c=s[be]||null;if(c===null)return null;s=c[u];e:switch(u){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)||(o=o.type,c=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!c;break e;default:o=!1}if(o)return null;if(s&&typeof s!="function")throw Error(i(231,u,typeof s));return s}var na=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qv=!1;if(na)try{var Cs={};Object.defineProperty(Cs,"passive",{get:function(){Qv=!0}}),window.addEventListener("test",Cs,Cs),window.removeEventListener("test",Cs,Cs)}catch{Qv=!1}var Ga=null,Wv=null,lf=null;function qk(){if(lf)return lf;var o,u=Wv,s=u.length,c,h="value"in Ga?Ga.value:Ga.textContent,v=h.length;for(o=0;o<s&&u[o]===h[o];o++);var _=s-o;for(c=1;c<=_&&u[s-c]===h[v-c];c++);return lf=h.slice(o,1<c?1-c:void 0)}function sf(o){var u=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&u===13&&(o=13)):o=u,o===10&&(o=13),32<=o||o===13?o:0}function cf(){return!0}function Gk(){return!1}function Hn(o){function u(s,c,h,v,_){this._reactName=s,this._targetInst=h,this.type=c,this.nativeEvent=v,this.target=_,this.currentTarget=null;for(var O in o)o.hasOwnProperty(O)&&(s=o[O],this[O]=s?s(v):v[O]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?cf:Gk,this.isPropagationStopped=Gk,this}return g(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=cf)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=cf)},persist:function(){},isPersistent:cf}),u}var Ko={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},df=Hn(Ko),Rs=g({},Ko,{view:0,detail:0}),cP=Hn(Rs),ep,tp,Ms,ff=g({},Rs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rp,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Ms&&(Ms&&o.type==="mousemove"?(ep=o.screenX-Ms.screenX,tp=o.screenY-Ms.screenY):tp=ep=0,Ms=o),ep)},movementY:function(o){return"movementY"in o?o.movementY:tp}}),Hk=Hn(ff),dP=g({},ff,{dataTransfer:0}),fP=Hn(dP),mP=g({},Rs,{relatedTarget:0}),np=Hn(mP),hP=g({},Ko,{animationName:0,elapsedTime:0,pseudoElement:0}),vP=Hn(hP),pP=g({},Ko,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),gP=Hn(pP),yP=g({},Ko,{data:0}),Kk=Hn(yP),bP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_P={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"},$P={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function SP(o){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(o):(o=$P[o])?!!u[o]:!1}function rp(){return SP}var kP=g({},Rs,{key:function(o){if(o.key){var u=bP[o.key]||o.key;if(u!=="Unidentified")return u}return o.type==="keypress"?(o=sf(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?_P[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rp,charCode:function(o){return o.type==="keypress"?sf(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?sf(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),wP=Hn(kP),xP=g({},ff,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jk=Hn(xP),OP=g({},Rs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rp}),EP=Hn(OP),NP=g({},Ko,{propertyName:0,elapsedTime:0,pseudoElement:0}),jP=Hn(NP),IP=g({},ff,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),TP=Hn(IP),zP=g({},Ko,{newState:0,oldState:0}),AP=Hn(zP),DP=[9,13,27,32],ip=na&&"CompositionEvent"in window,Ls=null;na&&"documentMode"in document&&(Ls=document.documentMode);var UP=na&&"TextEvent"in window&&!Ls,Yk=na&&(!ip||Ls&&8<Ls&&11>=Ls),Xk=" ",Qk=!1;function Wk(o,u){switch(o){case"keyup":return DP.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ew(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var sl=!1;function CP(o,u){switch(o){case"compositionend":return ew(u);case"keypress":return u.which!==32?null:(Qk=!0,Xk);case"textInput":return o=u.data,o===Xk&&Qk?null:o;default:return null}}function RP(o,u){if(sl)return o==="compositionend"||!ip&&Wk(o,u)?(o=qk(),lf=Wv=Ga=null,sl=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return Yk&&u.locale!=="ko"?null:u.data;default:return null}}var MP={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 tw(o){var u=o&&o.nodeName&&o.nodeName.toLowerCase();return u==="input"?!!MP[o.type]:u==="textarea"}function nw(o,u,s,c){ul?ll?ll.push(c):ll=[c]:ul=c,u=tm(u,"onChange"),0<u.length&&(s=new df("onChange","change",null,s,c),o.push({event:s,listeners:u}))}var Ps=null,Zs=null;function LP(o){M1(o,0)}function mf(o){var u=An(o);if(Rk(u))return o}function rw(o,u){if(o==="change")return u}var iw=!1;if(na){var ap;if(na){var op="oninput"in document;if(!op){var aw=document.createElement("div");aw.setAttribute("oninput","return;"),op=typeof aw.oninput=="function"}ap=op}else ap=!1;iw=ap&&(!document.documentMode||9<document.documentMode)}function ow(){Ps&&(Ps.detachEvent("onpropertychange",uw),Zs=Ps=null)}function uw(o){if(o.propertyName==="value"&&mf(Zs)){var u=[];nw(u,Zs,o,Yv(o)),Vk(LP,u)}}function PP(o,u,s){o==="focusin"?(ow(),Ps=u,Zs=s,Ps.attachEvent("onpropertychange",uw)):o==="focusout"&&ow()}function ZP(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return mf(Zs)}function BP(o,u){if(o==="click")return mf(u)}function FP(o,u){if(o==="input"||o==="change")return mf(u)}function VP(o,u){return o===u&&(o!==0||1/o===1/u)||o!==o&&u!==u}var or=typeof Object.is=="function"?Object.is:VP;function Bs(o,u){if(or(o,u))return!0;if(typeof o!="object"||o===null||typeof u!="object"||u===null)return!1;var s=Object.keys(o),c=Object.keys(u);if(s.length!==c.length)return!1;for(c=0;c<s.length;c++){var h=s[c];if(!rr.call(u,h)||!or(o[h],u[h]))return!1}return!0}function lw(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function sw(o,u){var s=lw(o);o=0;for(var c;s;){if(s.nodeType===3){if(c=o+s.textContent.length,o<=u&&c>=u)return{node:s,offset:u-o};o=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=lw(s)}}function cw(o,u){return o&&u?o===u?!0:o&&o.nodeType===3?!1:u&&u.nodeType===3?cw(o,u.parentNode):"contains"in o?o.contains(u):o.compareDocumentPosition?!!(o.compareDocumentPosition(u)&16):!1:!1}function dw(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var u=of(o.document);u instanceof o.HTMLIFrameElement;){try{var s=typeof u.contentWindow.location.href=="string"}catch{s=!1}if(s)o=u.contentWindow;else break;u=of(o.document)}return u}function up(o){var u=o&&o.nodeName&&o.nodeName.toLowerCase();return u&&(u==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||u==="textarea"||o.contentEditable==="true")}var qP=na&&"documentMode"in document&&11>=document.documentMode,cl=null,lp=null,Fs=null,sp=!1;function fw(o,u,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;sp||cl==null||cl!==of(c)||(c=cl,"selectionStart"in c&&up(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}),Fs&&Bs(Fs,c)||(Fs=c,c=tm(lp,"onSelect"),0<c.length&&(u=new df("onSelect","select",null,u,s),o.push({event:u,listeners:c}),u.target=cl)))}function Jo(o,u){var s={};return s[o.toLowerCase()]=u.toLowerCase(),s["Webkit"+o]="webkit"+u,s["Moz"+o]="moz"+u,s}var dl={animationend:Jo("Animation","AnimationEnd"),animationiteration:Jo("Animation","AnimationIteration"),animationstart:Jo("Animation","AnimationStart"),transitionrun:Jo("Transition","TransitionRun"),transitionstart:Jo("Transition","TransitionStart"),transitioncancel:Jo("Transition","TransitionCancel"),transitionend:Jo("Transition","TransitionEnd")},cp={},mw={};na&&(mw=document.createElement("div").style,"AnimationEvent"in window||(delete dl.animationend.animation,delete dl.animationiteration.animation,delete dl.animationstart.animation),"TransitionEvent"in window||delete dl.transitionend.transition);function Yo(o){if(cp[o])return cp[o];if(!dl[o])return o;var u=dl[o],s;for(s in u)if(u.hasOwnProperty(s)&&s in mw)return cp[o]=u[s];return o}var hw=Yo("animationend"),vw=Yo("animationiteration"),pw=Yo("animationstart"),GP=Yo("transitionrun"),HP=Yo("transitionstart"),KP=Yo("transitioncancel"),gw=Yo("transitionend"),yw=new Map,dp="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(" ");dp.push("scrollEnd");function ai(o,u){yw.set(o,u),Ir(u,[o])}var hf=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},Ar=[],fl=0,fp=0;function vf(){for(var o=fl,u=fp=fl=0;u<o;){var s=Ar[u];Ar[u++]=null;var c=Ar[u];Ar[u++]=null;var h=Ar[u];Ar[u++]=null;var v=Ar[u];if(Ar[u++]=null,c!==null&&h!==null){var _=c.pending;_===null?h.next=h:(h.next=_.next,_.next=h),c.pending=h}v!==0&&bw(s,h,v)}}function pf(o,u,s,c){Ar[fl++]=o,Ar[fl++]=u,Ar[fl++]=s,Ar[fl++]=c,fp|=c,o.lanes|=c,o=o.alternate,o!==null&&(o.lanes|=c)}function mp(o,u,s,c){return pf(o,u,s,c),gf(o)}function Xo(o,u){return pf(o,null,null,u),gf(o)}function bw(o,u,s){o.lanes|=s;var c=o.alternate;c!==null&&(c.lanes|=s);for(var h=!1,v=o.return;v!==null;)v.childLanes|=s,c=v.alternate,c!==null&&(c.childLanes|=s),v.tag===22&&(o=v.stateNode,o===null||o._visibility&1||(h=!0)),o=v,v=v.return;return o.tag===3?(v=o.stateNode,h&&u!==null&&(h=31-Mn(s),o=v.hiddenUpdates,c=o[h],c===null?o[h]=[u]:c.push(u),u.lane=s|536870912),v):null}function gf(o){if(50<dc)throw dc=0,Sg=null,Error(i(185));for(var u=o.return;u!==null;)o=u,u=o.return;return o.tag===3?o.stateNode:null}var ml={};function JP(o,u,s,c){this.tag=o,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=u,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 ur(o,u,s,c){return new JP(o,u,s,c)}function hp(o){return o=o.prototype,!(!o||!o.isReactComponent)}function ra(o,u){var s=o.alternate;return s===null?(s=ur(o.tag,u,o.key,o.mode),s.elementType=o.elementType,s.type=o.type,s.stateNode=o.stateNode,s.alternate=o,o.alternate=s):(s.pendingProps=u,s.type=o.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=o.flags&65011712,s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,u=o.dependencies,s.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},s.sibling=o.sibling,s.index=o.index,s.ref=o.ref,s.refCleanup=o.refCleanup,s}function _w(o,u){o.flags&=65011714;var s=o.alternate;return s===null?(o.childLanes=0,o.lanes=u,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,u=s.dependencies,o.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext}),o}function yf(o,u,s,c,h,v){var _=0;if(c=o,typeof o=="function")hp(o)&&(_=1);else if(typeof o=="string")_=eB(o,s,oe.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case ue:return o=ur(31,s,u,h),o.elementType=ue,o.lanes=v,o;case j:return Qo(s.children,h,v,u);case x:_=8,h|=24;break;case $:return o=ur(12,s,u,h|2),o.elementType=$,o.lanes=v,o;case T:return o=ur(13,s,u,h),o.elementType=T,o.lanes=v,o;case E:return o=ur(19,s,u,h),o.elementType=E,o.lanes=v,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case N:_=10;break e;case I:_=9;break e;case z:_=11;break e;case C:_=14;break e;case ae:_=16,c=null;break e}_=29,s=Error(i(130,o===null?"null":typeof o,"")),c=null}return u=ur(_,s,u,h),u.elementType=o,u.type=c,u.lanes=v,u}function Qo(o,u,s,c){return o=ur(7,o,c,u),o.lanes=s,o}function vp(o,u,s){return o=ur(6,o,null,u),o.lanes=s,o}function $w(o){var u=ur(18,null,null,0);return u.stateNode=o,u}function pp(o,u,s){return u=ur(4,o.children!==null?o.children:[],o.key,u),u.lanes=s,u.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},u}var Sw=new WeakMap;function Dr(o,u){if(typeof o=="object"&&o!==null){var s=Sw.get(o);return s!==void 0?s:(u={value:o,source:u,stack:Ni(u)},Sw.set(o,u),u)}return{value:o,source:u,stack:Ni(u)}}var hl=[],vl=0,bf=null,Vs=0,Ur=[],Cr=0,Ha=null,Di=1,Ui="";function ia(o,u){hl[vl++]=Vs,hl[vl++]=bf,bf=o,Vs=u}function kw(o,u,s){Ur[Cr++]=Di,Ur[Cr++]=Ui,Ur[Cr++]=Ha,Ha=o;var c=Di;o=Ui;var h=32-Mn(c)-1;c&=~(1<<h),s+=1;var v=32-Mn(u)+h;if(30<v){var _=h-h%5;v=(c&(1<<_)-1).toString(32),c>>=_,h-=_,Di=1<<32-Mn(u)+h|s<<h|c,Ui=v+o}else Di=1<<v|s<<h|c,Ui=o}function gp(o){o.return!==null&&(ia(o,1),kw(o,1,0))}function yp(o){for(;o===bf;)bf=hl[--vl],hl[vl]=null,Vs=hl[--vl],hl[vl]=null;for(;o===Ha;)Ha=Ur[--Cr],Ur[Cr]=null,Ui=Ur[--Cr],Ur[Cr]=null,Di=Ur[--Cr],Ur[Cr]=null}function ww(o,u){Ur[Cr++]=Di,Ur[Cr++]=Ui,Ur[Cr++]=Ha,Di=u.id,Ui=u.overflow,Ha=o}var En=null,Ft=null,vt=!1,Ka=null,Rr=!1,bp=Error(i(519));function Ja(o){var u=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw qs(Dr(u,o)),bp}function xw(o){var u=o.stateNode,s=o.type,c=o.memoizedProps;switch(u[$e]=o,u[be]=c,s){case"dialog":ut("cancel",u),ut("close",u);break;case"iframe":case"object":case"embed":ut("load",u);break;case"video":case"audio":for(s=0;s<mc.length;s++)ut(mc[s],u);break;case"source":ut("error",u);break;case"img":case"image":case"link":ut("error",u),ut("load",u);break;case"details":ut("toggle",u);break;case"input":ut("invalid",u),Mk(u,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":ut("invalid",u);break;case"textarea":ut("invalid",u),Pk(u,c.value,c.defaultValue,c.children)}s=c.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||u.textContent===""+s||c.suppressHydrationWarning===!0||B1(u.textContent,s)?(c.popover!=null&&(ut("beforetoggle",u),ut("toggle",u)),c.onScroll!=null&&ut("scroll",u),c.onScrollEnd!=null&&ut("scrollend",u),c.onClick!=null&&(u.onclick=ta),u=!0):u=!1,u||Ja(o,!0)}function Ow(o){for(En=o.return;En;)switch(En.tag){case 5:case 31:case 13:Rr=!1;return;case 27:case 3:Rr=!0;return;default:En=En.return}}function pl(o){if(o!==En)return!1;if(!vt)return Ow(o),vt=!0,!1;var u=o.tag,s;if((s=u!==3&&u!==27)&&((s=u===5)&&(s=o.type,s=!(s!=="form"&&s!=="button")||Rg(o.type,o.memoizedProps)),s=!s),s&&Ft&&Ja(o),Ow(o),u===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(317));Ft=X1(o)}else if(u===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(317));Ft=X1(o)}else u===27?(u=Ft,so(o.type)?(o=Bg,Bg=null,Ft=o):Ft=u):Ft=En?Lr(o.stateNode.nextSibling):null;return!0}function Wo(){Ft=En=null,vt=!1}function _p(){var o=Ka;return o!==null&&(Xn===null?Xn=o:Xn.push.apply(Xn,o),Ka=null),o}function qs(o){Ka===null?Ka=[o]:Ka.push(o)}var $p=D(null),eu=null,aa=null;function Ya(o,u,s){ne($p,u._currentValue),u._currentValue=s}function oa(o){o._currentValue=$p.current,H($p)}function Sp(o,u,s){for(;o!==null;){var c=o.alternate;if((o.childLanes&u)!==u?(o.childLanes|=u,c!==null&&(c.childLanes|=u)):c!==null&&(c.childLanes&u)!==u&&(c.childLanes|=u),o===s)break;o=o.return}}function kp(o,u,s,c){var h=o.child;for(h!==null&&(h.return=o);h!==null;){var v=h.dependencies;if(v!==null){var _=h.child;v=v.firstContext;e:for(;v!==null;){var O=v;v=h;for(var A=0;A<u.length;A++)if(O.context===u[A]){v.lanes|=s,O=v.alternate,O!==null&&(O.lanes|=s),Sp(v.return,s,o),c||(_=null);break e}v=O.next}}else if(h.tag===18){if(_=h.return,_===null)throw Error(i(341));_.lanes|=s,v=_.alternate,v!==null&&(v.lanes|=s),Sp(_,s,o),_=null}else _=h.child;if(_!==null)_.return=h;else for(_=h;_!==null;){if(_===o){_=null;break}if(h=_.sibling,h!==null){h.return=_.return,_=h;break}_=_.return}h=_}}function gl(o,u,s,c){o=null;for(var h=u,v=!1;h!==null;){if(!v){if((h.flags&524288)!==0)v=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var _=h.alternate;if(_===null)throw Error(i(387));if(_=_.memoizedProps,_!==null){var O=h.type;or(h.pendingProps.value,_.value)||(o!==null?o.push(O):o=[O])}}else if(h===He.current){if(_=h.alternate,_===null)throw Error(i(387));_.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(o!==null?o.push(yc):o=[yc])}h=h.return}o!==null&&kp(u,o,s,c),u.flags|=262144}function _f(o){for(o=o.firstContext;o!==null;){if(!or(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function tu(o){eu=o,aa=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function Nn(o){return Ew(eu,o)}function $f(o,u){return eu===null&&tu(o),Ew(o,u)}function Ew(o,u){var s=u._currentValue;if(u={context:u,memoizedValue:s,next:null},aa===null){if(o===null)throw Error(i(308));aa=u,o.dependencies={lanes:0,firstContext:u},o.flags|=524288}else aa=aa.next=u;return s}var YP=typeof AbortController<"u"?AbortController:function(){var o=[],u=this.signal={aborted:!1,addEventListener:function(s,c){o.push(c)}};this.abort=function(){u.aborted=!0,o.forEach(function(s){return s()})}},XP=e.unstable_scheduleCallback,QP=e.unstable_NormalPriority,on={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wp(){return{controller:new YP,data:new Map,refCount:0}}function Gs(o){o.refCount--,o.refCount===0&&XP(QP,function(){o.controller.abort()})}var Hs=null,xp=0,yl=0,bl=null;function WP(o,u){if(Hs===null){var s=Hs=[];xp=0,yl=Ng(),bl={status:"pending",value:void 0,then:function(c){s.push(c)}}}return xp++,u.then(Nw,Nw),u}function Nw(){if(--xp===0&&Hs!==null){bl!==null&&(bl.status="fulfilled");var o=Hs;Hs=null,yl=0,bl=null;for(var u=0;u<o.length;u++)(0,o[u])()}}function eZ(o,u){var s=[],c={status:"pending",value:null,reason:null,then:function(h){s.push(h)}};return o.then(function(){c.status="fulfilled",c.value=u;for(var h=0;h<s.length;h++)(0,s[h])(u)},function(h){for(c.status="rejected",c.reason=h,h=0;h<s.length;h++)(0,s[h])(void 0)}),c}var jw=M.S;M.S=function(o,u){f1=he(),typeof u=="object"&&u!==null&&typeof u.then=="function"&&WP(o,u),jw!==null&&jw(o,u)};var nu=D(null);function Op(){var o=nu.current;return o!==null?o:Ut.pooledCache}function Sf(o,u){u===null?ne(nu,nu.current):ne(nu,u.pool)}function Iw(){var o=Op();return o===null?null:{parent:on._currentValue,pool:o}}var _l=Error(i(460)),Ep=Error(i(474)),kf=Error(i(542)),wf={then:function(){}};function Tw(o){return o=o.status,o==="fulfilled"||o==="rejected"}function zw(o,u,s){switch(s=o[s],s===void 0?o.push(u):s!==u&&(u.then(ta,ta),u=s),u.status){case"fulfilled":return u.value;case"rejected":throw o=u.reason,Dw(o),o;default:if(typeof u.status=="string")u.then(ta,ta);else{if(o=Ut,o!==null&&100<o.shellSuspendCounter)throw Error(i(482));o=u,o.status="pending",o.then(function(c){if(u.status==="pending"){var h=u;h.status="fulfilled",h.value=c}},function(c){if(u.status==="pending"){var h=u;h.status="rejected",h.reason=c}})}switch(u.status){case"fulfilled":return u.value;case"rejected":throw o=u.reason,Dw(o),o}throw iu=u,_l}}function ru(o){try{var u=o._init;return u(o._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(iu=s,_l):s}}var iu=null;function Aw(){if(iu===null)throw Error(i(459));var o=iu;return iu=null,o}function Dw(o){if(o===_l||o===kf)throw Error(i(483))}var $l=null,Ks=0;function xf(o){var u=Ks;return Ks+=1,$l===null&&($l=[]),zw($l,o,u)}function Js(o,u){u=u.props.ref,o.ref=u!==void 0?u:null}function Of(o,u){throw u.$$typeof===y?Error(i(525)):(o=Object.prototype.toString.call(u),Error(i(31,o==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":o)))}function Uw(o){function u(L,R){if(o){var F=L.deletions;F===null?(L.deletions=[R],L.flags|=16):F.push(R)}}function s(L,R){if(!o)return null;for(;R!==null;)u(L,R),R=R.sibling;return null}function c(L){for(var R=new Map;L!==null;)L.key!==null?R.set(L.key,L):R.set(L.index,L),L=L.sibling;return R}function h(L,R){return L=ra(L,R),L.index=0,L.sibling=null,L}function v(L,R,F){return L.index=F,o?(F=L.alternate,F!==null?(F=F.index,F<R?(L.flags|=67108866,R):F):(L.flags|=67108866,R)):(L.flags|=1048576,R)}function _(L){return o&&L.alternate===null&&(L.flags|=67108866),L}function O(L,R,F,Q){return R===null||R.tag!==6?(R=vp(F,L.mode,Q),R.return=L,R):(R=h(R,F),R.return=L,R)}function A(L,R,F,Q){var Le=F.type;return Le===j?Y(L,R,F.props.children,Q,F.key):R!==null&&(R.elementType===Le||typeof Le=="object"&&Le!==null&&Le.$$typeof===ae&&ru(Le)===R.type)?(R=h(R,F.props),Js(R,F),R.return=L,R):(R=yf(F.type,F.key,F.props,null,L.mode,Q),Js(R,F),R.return=L,R)}function V(L,R,F,Q){return R===null||R.tag!==4||R.stateNode.containerInfo!==F.containerInfo||R.stateNode.implementation!==F.implementation?(R=pp(F,L.mode,Q),R.return=L,R):(R=h(R,F.children||[]),R.return=L,R)}function Y(L,R,F,Q,Le){return R===null||R.tag!==7?(R=Qo(F,L.mode,Q,Le),R.return=L,R):(R=h(R,F),R.return=L,R)}function W(L,R,F){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=vp(""+R,L.mode,F),R.return=L,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case S:return F=yf(R.type,R.key,R.props,null,L.mode,F),Js(F,R),F.return=L,F;case w:return R=pp(R,L.mode,F),R.return=L,R;case ae:return R=ru(R),W(L,R,F)}if(Ne(R)||Je(R))return R=Qo(R,L.mode,F,null),R.return=L,R;if(typeof R.then=="function")return W(L,xf(R),F);if(R.$$typeof===N)return W(L,$f(L,R),F);Of(L,R)}return null}function G(L,R,F,Q){var Le=R!==null?R.key:null;if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return Le!==null?null:O(L,R,""+F,Q);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case S:return F.key===Le?A(L,R,F,Q):null;case w:return F.key===Le?V(L,R,F,Q):null;case ae:return F=ru(F),G(L,R,F,Q)}if(Ne(F)||Je(F))return Le!==null?null:Y(L,R,F,Q,null);if(typeof F.then=="function")return G(L,R,xf(F),Q);if(F.$$typeof===N)return G(L,R,$f(L,F),Q);Of(L,F)}return null}function J(L,R,F,Q,Le){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return L=L.get(F)||null,O(R,L,""+Q,Le);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case S:return L=L.get(Q.key===null?F:Q.key)||null,A(R,L,Q,Le);case w:return L=L.get(Q.key===null?F:Q.key)||null,V(R,L,Q,Le);case ae:return Q=ru(Q),J(L,R,F,Q,Le)}if(Ne(Q)||Je(Q))return L=L.get(F)||null,Y(R,L,Q,Le,null);if(typeof Q.then=="function")return J(L,R,F,xf(Q),Le);if(Q.$$typeof===N)return J(L,R,F,$f(R,Q),Le);Of(R,Q)}return null}function Se(L,R,F,Q){for(var Le=null,$t=null,Ie=R,et=R=0,mt=null;Ie!==null&&et<F.length;et++){Ie.index>et?(mt=Ie,Ie=null):mt=Ie.sibling;var St=G(L,Ie,F[et],Q);if(St===null){Ie===null&&(Ie=mt);break}o&&Ie&&St.alternate===null&&u(L,Ie),R=v(St,R,et),$t===null?Le=St:$t.sibling=St,$t=St,Ie=mt}if(et===F.length)return s(L,Ie),vt&&ia(L,et),Le;if(Ie===null){for(;et<F.length;et++)Ie=W(L,F[et],Q),Ie!==null&&(R=v(Ie,R,et),$t===null?Le=Ie:$t.sibling=Ie,$t=Ie);return vt&&ia(L,et),Le}for(Ie=c(Ie);et<F.length;et++)mt=J(Ie,L,et,F[et],Q),mt!==null&&(o&&mt.alternate!==null&&Ie.delete(mt.key===null?et:mt.key),R=v(mt,R,et),$t===null?Le=mt:$t.sibling=mt,$t=mt);return o&&Ie.forEach(function(vo){return u(L,vo)}),vt&&ia(L,et),Le}function Ze(L,R,F,Q){if(F==null)throw Error(i(151));for(var Le=null,$t=null,Ie=R,et=R=0,mt=null,St=F.next();Ie!==null&&!St.done;et++,St=F.next()){Ie.index>et?(mt=Ie,Ie=null):mt=Ie.sibling;var vo=G(L,Ie,St.value,Q);if(vo===null){Ie===null&&(Ie=mt);break}o&&Ie&&vo.alternate===null&&u(L,Ie),R=v(vo,R,et),$t===null?Le=vo:$t.sibling=vo,$t=vo,Ie=mt}if(St.done)return s(L,Ie),vt&&ia(L,et),Le;if(Ie===null){for(;!St.done;et++,St=F.next())St=W(L,St.value,Q),St!==null&&(R=v(St,R,et),$t===null?Le=St:$t.sibling=St,$t=St);return vt&&ia(L,et),Le}for(Ie=c(Ie);!St.done;et++,St=F.next())St=J(Ie,L,et,St.value,Q),St!==null&&(o&&St.alternate!==null&&Ie.delete(St.key===null?et:St.key),R=v(St,R,et),$t===null?Le=St:$t.sibling=St,$t=St);return o&&Ie.forEach(function(dB){return u(L,dB)}),vt&&ia(L,et),Le}function Dt(L,R,F,Q){if(typeof F=="object"&&F!==null&&F.type===j&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case S:e:{for(var Le=F.key;R!==null;){if(R.key===Le){if(Le=F.type,Le===j){if(R.tag===7){s(L,R.sibling),Q=h(R,F.props.children),Q.return=L,L=Q;break e}}else if(R.elementType===Le||typeof Le=="object"&&Le!==null&&Le.$$typeof===ae&&ru(Le)===R.type){s(L,R.sibling),Q=h(R,F.props),Js(Q,F),Q.return=L,L=Q;break e}s(L,R);break}else u(L,R);R=R.sibling}F.type===j?(Q=Qo(F.props.children,L.mode,Q,F.key),Q.return=L,L=Q):(Q=yf(F.type,F.key,F.props,null,L.mode,Q),Js(Q,F),Q.return=L,L=Q)}return _(L);case w:e:{for(Le=F.key;R!==null;){if(R.key===Le)if(R.tag===4&&R.stateNode.containerInfo===F.containerInfo&&R.stateNode.implementation===F.implementation){s(L,R.sibling),Q=h(R,F.children||[]),Q.return=L,L=Q;break e}else{s(L,R);break}else u(L,R);R=R.sibling}Q=pp(F,L.mode,Q),Q.return=L,L=Q}return _(L);case ae:return F=ru(F),Dt(L,R,F,Q)}if(Ne(F))return Se(L,R,F,Q);if(Je(F)){if(Le=Je(F),typeof Le!="function")throw Error(i(150));return F=Le.call(F),Ze(L,R,F,Q)}if(typeof F.then=="function")return Dt(L,R,xf(F),Q);if(F.$$typeof===N)return Dt(L,R,$f(L,F),Q);Of(L,F)}return typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint"?(F=""+F,R!==null&&R.tag===6?(s(L,R.sibling),Q=h(R,F),Q.return=L,L=Q):(s(L,R),Q=vp(F,L.mode,Q),Q.return=L,L=Q),_(L)):s(L,R)}return function(L,R,F,Q){try{Ks=0;var Le=Dt(L,R,F,Q);return $l=null,Le}catch(Ie){if(Ie===_l||Ie===kf)throw Ie;var $t=ur(29,Ie,null,L.mode);return $t.lanes=Q,$t.return=L,$t}finally{}}}var au=Uw(!0),Cw=Uw(!1),Xa=!1;function Np(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jp(o,u){o=o.updateQueue,u.updateQueue===o&&(u.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Qa(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Wa(o,u,s){var c=o.updateQueue;if(c===null)return null;if(c=c.shared,(xt&2)!==0){var h=c.pending;return h===null?u.next=u:(u.next=h.next,h.next=u),c.pending=u,u=gf(o),bw(o,null,s),u}return pf(o,c,u,s),gf(o)}function Ys(o,u,s){if(u=u.updateQueue,u!==null&&(u=u.shared,(s&4194048)!==0)){var c=u.lanes;c&=o.pendingLanes,s|=c,u.lanes=s,le(o,s)}}function Ip(o,u){var s=o.updateQueue,c=o.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var h=null,v=null;if(s=s.firstBaseUpdate,s!==null){do{var _={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};v===null?h=v=_:v=v.next=_,s=s.next}while(s!==null);v===null?h=v=u:v=v.next=u}else h=v=u;s={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:v,shared:c.shared,callbacks:c.callbacks},o.updateQueue=s;return}o=s.lastBaseUpdate,o===null?s.firstBaseUpdate=u:o.next=u,s.lastBaseUpdate=u}var Tp=!1;function Xs(){if(Tp){var o=bl;if(o!==null)throw o}}function Qs(o,u,s,c){Tp=!1;var h=o.updateQueue;Xa=!1;var v=h.firstBaseUpdate,_=h.lastBaseUpdate,O=h.shared.pending;if(O!==null){h.shared.pending=null;var A=O,V=A.next;A.next=null,_===null?v=V:_.next=V,_=A;var Y=o.alternate;Y!==null&&(Y=Y.updateQueue,O=Y.lastBaseUpdate,O!==_&&(O===null?Y.firstBaseUpdate=V:O.next=V,Y.lastBaseUpdate=A))}if(v!==null){var W=h.baseState;_=0,Y=V=A=null,O=v;do{var G=O.lane&-536870913,J=G!==O.lane;if(J?(ft&G)===G:(c&G)===G){G!==0&&G===yl&&(Tp=!0),Y!==null&&(Y=Y.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{var Se=o,Ze=O;G=u;var Dt=s;switch(Ze.tag){case 1:if(Se=Ze.payload,typeof Se=="function"){W=Se.call(Dt,W,G);break e}W=Se;break e;case 3:Se.flags=Se.flags&-65537|128;case 0:if(Se=Ze.payload,G=typeof Se=="function"?Se.call(Dt,W,G):Se,G==null)break e;W=g({},W,G);break e;case 2:Xa=!0}}G=O.callback,G!==null&&(o.flags|=64,J&&(o.flags|=8192),J=h.callbacks,J===null?h.callbacks=[G]:J.push(G))}else J={lane:G,tag:O.tag,payload:O.payload,callback:O.callback,next:null},Y===null?(V=Y=J,A=W):Y=Y.next=J,_|=G;if(O=O.next,O===null){if(O=h.shared.pending,O===null)break;J=O,O=J.next,J.next=null,h.lastBaseUpdate=J,h.shared.pending=null}}while(!0);Y===null&&(A=W),h.baseState=A,h.firstBaseUpdate=V,h.lastBaseUpdate=Y,v===null&&(h.shared.lanes=0),io|=_,o.lanes=_,o.memoizedState=W}}function Rw(o,u){if(typeof o!="function")throw Error(i(191,o));o.call(u)}function Mw(o,u){var s=o.callbacks;if(s!==null)for(o.callbacks=null,o=0;o<s.length;o++)Rw(s[o],u)}var Sl=D(null),Ef=D(0);function Lw(o,u){o=va,ne(Ef,o),ne(Sl,u),va=o|u.baseLanes}function zp(){ne(Ef,va),ne(Sl,Sl.current)}function Ap(){va=Ef.current,H(Sl),H(Ef)}var lr=D(null),Mr=null;function eo(o){var u=o.alternate;ne(nn,nn.current&1),ne(lr,o),Mr===null&&(u===null||Sl.current!==null||u.memoizedState!==null)&&(Mr=o)}function Dp(o){ne(nn,nn.current),ne(lr,o),Mr===null&&(Mr=o)}function Pw(o){o.tag===22?(ne(nn,nn.current),ne(lr,o),Mr===null&&(Mr=o)):to()}function to(){ne(nn,nn.current),ne(lr,lr.current)}function sr(o){H(lr),Mr===o&&(Mr=null),H(nn)}var nn=D(0);function Nf(o){for(var u=o;u!==null;){if(u.tag===13){var s=u.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||Pg(s)||Zg(s)))return u}else if(u.tag===19&&(u.memoizedProps.revealOrder==="forwards"||u.memoizedProps.revealOrder==="backwards"||u.memoizedProps.revealOrder==="unstable_legacy-backwards"||u.memoizedProps.revealOrder==="together")){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===o)break;for(;u.sibling===null;){if(u.return===null||u.return===o)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var ua=0,We=null,zt=null,un=null,jf=!1,kl=!1,ou=!1,If=0,Ws=0,wl=null,tZ=0;function Xt(){throw Error(i(321))}function Up(o,u){if(u===null)return!1;for(var s=0;s<u.length&&s<o.length;s++)if(!or(o[s],u[s]))return!1;return!0}function Cp(o,u,s,c,h,v){return ua=v,We=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,M.H=o===null||o.memoizedState===null?kx:Xp,ou=!1,v=s(c,h),ou=!1,kl&&(v=Bw(u,s,c,h)),Zw(o),v}function Zw(o){M.H=nc;var u=zt!==null&&zt.next!==null;if(ua=0,un=zt=We=null,jf=!1,Ws=0,wl=null,u)throw Error(i(300));o===null||ln||(o=o.dependencies,o!==null&&_f(o)&&(ln=!0))}function Bw(o,u,s,c){We=o;var h=0;do{if(kl&&(wl=null),Ws=0,kl=!1,25<=h)throw Error(i(301));if(h+=1,un=zt=null,o.updateQueue!=null){var v=o.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}M.H=wx,v=u(s,c)}while(kl);return v}function nZ(){var o=M.H,u=o.useState()[0];return u=typeof u.then=="function"?ec(u):u,o=o.useState()[0],(zt!==null?zt.memoizedState:null)!==o&&(We.flags|=1024),u}function Rp(){var o=If!==0;return If=0,o}function Mp(o,u,s){u.updateQueue=o.updateQueue,u.flags&=-2053,o.lanes&=~s}function Lp(o){if(jf){for(o=o.memoizedState;o!==null;){var u=o.queue;u!==null&&(u.pending=null),o=o.next}jf=!1}ua=0,un=zt=We=null,kl=!1,Ws=If=0,wl=null}function Pn(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return un===null?We.memoizedState=un=o:un=un.next=o,un}function rn(){if(zt===null){var o=We.alternate;o=o!==null?o.memoizedState:null}else o=zt.next;var u=un===null?We.memoizedState:un.next;if(u!==null)un=u,zt=o;else{if(o===null)throw We.alternate===null?Error(i(467)):Error(i(310));zt=o,o={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},un===null?We.memoizedState=un=o:un=un.next=o}return un}function Tf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ec(o){var u=Ws;return Ws+=1,wl===null&&(wl=[]),o=zw(wl,o,u),u=We,(un===null?u.memoizedState:un.next)===null&&(u=u.alternate,M.H=u===null||u.memoizedState===null?kx:Xp),o}function zf(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return ec(o);if(o.$$typeof===N)return Nn(o)}throw Error(i(438,String(o)))}function Pp(o){var u=null,s=We.updateQueue;if(s!==null&&(u=s.memoCache),u==null){var c=We.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(u={data:c.data.map(function(h){return h.slice()}),index:0})))}if(u==null&&(u={data:[],index:0}),s===null&&(s=Tf(),We.updateQueue=s),s.memoCache=u,s=u.data[u.index],s===void 0)for(s=u.data[u.index]=Array(o),c=0;c<o;c++)s[c]=fe;return u.index++,s}function la(o,u){return typeof u=="function"?u(o):u}function Af(o){var u=rn();return Zp(u,zt,o)}function Zp(o,u,s){var c=o.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=s;var h=o.baseQueue,v=c.pending;if(v!==null){if(h!==null){var _=h.next;h.next=v.next,v.next=_}u.baseQueue=h=v,c.pending=null}if(v=o.baseState,h===null)o.memoizedState=v;else{u=h.next;var O=_=null,A=null,V=u,Y=!1;do{var W=V.lane&-536870913;if(W!==V.lane?(ft&W)===W:(ua&W)===W){var G=V.revertLane;if(G===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),W===yl&&(Y=!0);else if((ua&G)===G){V=V.next,G===yl&&(Y=!0);continue}else W={lane:0,revertLane:V.revertLane,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},A===null?(O=A=W,_=v):A=A.next=W,We.lanes|=G,io|=G;W=V.action,ou&&s(v,W),v=V.hasEagerState?V.eagerState:s(v,W)}else G={lane:W,revertLane:V.revertLane,gesture:V.gesture,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},A===null?(O=A=G,_=v):A=A.next=G,We.lanes|=W,io|=W;V=V.next}while(V!==null&&V!==u);if(A===null?_=v:A.next=O,!or(v,o.memoizedState)&&(ln=!0,Y&&(s=bl,s!==null)))throw s;o.memoizedState=v,o.baseState=_,o.baseQueue=A,c.lastRenderedState=v}return h===null&&(c.lanes=0),[o.memoizedState,c.dispatch]}function Bp(o){var u=rn(),s=u.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=o;var c=s.dispatch,h=s.pending,v=u.memoizedState;if(h!==null){s.pending=null;var _=h=h.next;do v=o(v,_.action),_=_.next;while(_!==h);or(v,u.memoizedState)||(ln=!0),u.memoizedState=v,u.baseQueue===null&&(u.baseState=v),s.lastRenderedState=v}return[v,c]}function Fw(o,u,s){var c=We,h=rn(),v=vt;if(v){if(s===void 0)throw Error(i(407));s=s()}else s=u();var _=!or((zt||h).memoizedState,s);if(_&&(h.memoizedState=s,ln=!0),h=h.queue,qp(Gw.bind(null,c,h,o),[o]),h.getSnapshot!==u||_||un!==null&&un.memoizedState.tag&1){if(c.flags|=2048,xl(9,{destroy:void 0},qw.bind(null,c,h,s,u),null),Ut===null)throw Error(i(349));v||(ua&127)!==0||Vw(c,u,s)}return s}function Vw(o,u,s){o.flags|=16384,o={getSnapshot:u,value:s},u=We.updateQueue,u===null?(u=Tf(),We.updateQueue=u,u.stores=[o]):(s=u.stores,s===null?u.stores=[o]:s.push(o))}function qw(o,u,s,c){u.value=s,u.getSnapshot=c,Hw(u)&&Kw(o)}function Gw(o,u,s){return s(function(){Hw(u)&&Kw(o)})}function Hw(o){var u=o.getSnapshot;o=o.value;try{var s=u();return!or(o,s)}catch{return!0}}function Kw(o){var u=Xo(o,2);u!==null&&Qn(u,o,2)}function Fp(o){var u=Pn();if(typeof o=="function"){var s=o;if(o=s(),ou){ni(!0);try{s()}finally{ni(!1)}}}return u.memoizedState=u.baseState=o,u.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:o},u}function Jw(o,u,s,c){return o.baseState=s,Zp(o,zt,typeof c=="function"?c:la)}function rZ(o,u,s,c,h){if(Cf(o))throw Error(i(485));if(o=u.action,o!==null){var v={payload:h,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(_){v.listeners.push(_)}};M.T!==null?s(!0):v.isTransition=!1,c(v),s=u.pending,s===null?(v.next=u.pending=v,Yw(u,v)):(v.next=s.next,u.pending=s.next=v)}}function Yw(o,u){var s=u.action,c=u.payload,h=o.state;if(u.isTransition){var v=M.T,_={};M.T=_;try{var O=s(h,c),A=M.S;A!==null&&A(_,O),Xw(o,u,O)}catch(V){Vp(o,u,V)}finally{v!==null&&_.types!==null&&(v.types=_.types),M.T=v}}else try{v=s(h,c),Xw(o,u,v)}catch(V){Vp(o,u,V)}}function Xw(o,u,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(c){Qw(o,u,c)},function(c){return Vp(o,u,c)}):Qw(o,u,s)}function Qw(o,u,s){u.status="fulfilled",u.value=s,Ww(u),o.state=s,u=o.pending,u!==null&&(s=u.next,s===u?o.pending=null:(s=s.next,u.next=s,Yw(o,s)))}function Vp(o,u,s){var c=o.pending;if(o.pending=null,c!==null){c=c.next;do u.status="rejected",u.reason=s,Ww(u),u=u.next;while(u!==c)}o.action=null}function Ww(o){o=o.listeners;for(var u=0;u<o.length;u++)(0,o[u])()}function ex(o,u){return u}function tx(o,u){if(vt){var s=Ut.formState;if(s!==null){e:{var c=We;if(vt){if(Ft){t:{for(var h=Ft,v=Rr;h.nodeType!==8;){if(!v){h=null;break t}if(h=Lr(h.nextSibling),h===null){h=null;break t}}v=h.data,h=v==="F!"||v==="F"?h:null}if(h){Ft=Lr(h.nextSibling),c=h.data==="F!";break e}}Ja(c)}c=!1}c&&(u=s[0])}}return s=Pn(),s.memoizedState=s.baseState=u,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ex,lastRenderedState:u},s.queue=c,s=_x.bind(null,We,c),c.dispatch=s,c=Fp(!1),v=Yp.bind(null,We,!1,c.queue),c=Pn(),h={state:u,dispatch:null,action:o,pending:null},c.queue=h,s=rZ.bind(null,We,h,v,s),h.dispatch=s,c.memoizedState=o,[u,s,!1]}function nx(o){var u=rn();return rx(u,zt,o)}function rx(o,u,s){if(u=Zp(o,u,ex)[0],o=Af(la)[0],typeof u=="object"&&u!==null&&typeof u.then=="function")try{var c=ec(u)}catch(_){throw _===_l?kf:_}else c=u;u=rn();var h=u.queue,v=h.dispatch;return s!==u.memoizedState&&(We.flags|=2048,xl(9,{destroy:void 0},iZ.bind(null,h,s),null)),[c,v,o]}function iZ(o,u){o.action=u}function ix(o){var u=rn(),s=zt;if(s!==null)return rx(u,s,o);rn(),u=u.memoizedState,s=rn();var c=s.queue.dispatch;return s.memoizedState=o,[u,c,!1]}function xl(o,u,s,c){return o={tag:o,create:s,deps:c,inst:u,next:null},u=We.updateQueue,u===null&&(u=Tf(),We.updateQueue=u),s=u.lastEffect,s===null?u.lastEffect=o.next=o:(c=s.next,s.next=o,o.next=c,u.lastEffect=o),o}function ax(){return rn().memoizedState}function Df(o,u,s,c){var h=Pn();We.flags|=o,h.memoizedState=xl(1|u,{destroy:void 0},s,c===void 0?null:c)}function Uf(o,u,s,c){var h=rn();c=c===void 0?null:c;var v=h.memoizedState.inst;zt!==null&&c!==null&&Up(c,zt.memoizedState.deps)?h.memoizedState=xl(u,v,s,c):(We.flags|=o,h.memoizedState=xl(1|u,v,s,c))}function ox(o,u){Df(8390656,8,o,u)}function qp(o,u){Uf(2048,8,o,u)}function aZ(o){We.flags|=4;var u=We.updateQueue;if(u===null)u=Tf(),We.updateQueue=u,u.events=[o];else{var s=u.events;s===null?u.events=[o]:s.push(o)}}function ux(o){var u=rn().memoizedState;return aZ({ref:u,nextImpl:o}),function(){if((xt&2)!==0)throw Error(i(440));return u.impl.apply(void 0,arguments)}}function lx(o,u){return Uf(4,2,o,u)}function sx(o,u){return Uf(4,4,o,u)}function cx(o,u){if(typeof u=="function"){o=o();var s=u(o);return function(){typeof s=="function"?s():u(null)}}if(u!=null)return o=o(),u.current=o,function(){u.current=null}}function dx(o,u,s){s=s!=null?s.concat([o]):null,Uf(4,4,cx.bind(null,u,o),s)}function Gp(){}function fx(o,u){var s=rn();u=u===void 0?null:u;var c=s.memoizedState;return u!==null&&Up(u,c[1])?c[0]:(s.memoizedState=[o,u],o)}function mx(o,u){var s=rn();u=u===void 0?null:u;var c=s.memoizedState;if(u!==null&&Up(u,c[1]))return c[0];if(c=o(),ou){ni(!0);try{o()}finally{ni(!1)}}return s.memoizedState=[c,u],c}function Hp(o,u,s){return s===void 0||(ua&1073741824)!==0&&(ft&261930)===0?o.memoizedState=u:(o.memoizedState=s,o=h1(),We.lanes|=o,io|=o,s)}function hx(o,u,s,c){return or(s,u)?s:Sl.current!==null?(o=Hp(o,s,c),or(o,u)||(ln=!0),o):(ua&42)===0||(ua&1073741824)!==0&&(ft&261930)===0?(ln=!0,o.memoizedState=s):(o=h1(),We.lanes|=o,io|=o,u)}function vx(o,u,s,c,h){var v=ee.p;ee.p=v!==0&&8>v?v:8;var _=M.T,O={};M.T=O,Yp(o,!1,u,s);try{var A=h(),V=M.S;if(V!==null&&V(O,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var Y=eZ(A,c);tc(o,u,Y,fr(o))}else tc(o,u,c,fr(o))}catch(W){tc(o,u,{then:function(){},status:"rejected",reason:W},fr())}finally{ee.p=v,_!==null&&O.types!==null&&(_.types=O.types),M.T=_}}function oZ(){}function Kp(o,u,s,c){if(o.tag!==5)throw Error(i(476));var h=px(o).queue;vx(o,h,u,ce,s===null?oZ:function(){return gx(o),s(c)})}function px(o){var u=o.memoizedState;if(u!==null)return u;u={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:ce},next:null};var s={};return u.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:s},next:null},o.memoizedState=u,o=o.alternate,o!==null&&(o.memoizedState=u),u}function gx(o){var u=px(o);u.next===null&&(u=o.alternate.memoizedState),tc(o,u.next.queue,{},fr())}function Jp(){return Nn(yc)}function yx(){return rn().memoizedState}function bx(){return rn().memoizedState}function uZ(o){for(var u=o.return;u!==null;){switch(u.tag){case 24:case 3:var s=fr();o=Qa(s);var c=Wa(u,o,s);c!==null&&(Qn(c,u,s),Ys(c,u,s)),u={cache:wp()},o.payload=u;return}u=u.return}}function lZ(o,u,s){var c=fr();s={lane:c,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Cf(o)?$x(u,s):(s=mp(o,u,s,c),s!==null&&(Qn(s,o,c),Sx(s,u,c)))}function _x(o,u,s){var c=fr();tc(o,u,s,c)}function tc(o,u,s,c){var h={lane:c,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(Cf(o))$x(u,h);else{var v=o.alternate;if(o.lanes===0&&(v===null||v.lanes===0)&&(v=u.lastRenderedReducer,v!==null))try{var _=u.lastRenderedState,O=v(_,s);if(h.hasEagerState=!0,h.eagerState=O,or(O,_))return pf(o,u,h,0),Ut===null&&vf(),!1}catch{}finally{}if(s=mp(o,u,h,c),s!==null)return Qn(s,o,c),Sx(s,u,c),!0}return!1}function Yp(o,u,s,c){if(c={lane:2,revertLane:Ng(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Cf(o)){if(u)throw Error(i(479))}else u=mp(o,s,c,2),u!==null&&Qn(u,o,2)}function Cf(o){var u=o.alternate;return o===We||u!==null&&u===We}function $x(o,u){kl=jf=!0;var s=o.pending;s===null?u.next=u:(u.next=s.next,s.next=u),o.pending=u}function Sx(o,u,s){if((s&4194048)!==0){var c=u.lanes;c&=o.pendingLanes,s|=c,u.lanes=s,le(o,s)}}var nc={readContext:Nn,use:zf,useCallback:Xt,useContext:Xt,useEffect:Xt,useImperativeHandle:Xt,useLayoutEffect:Xt,useInsertionEffect:Xt,useMemo:Xt,useReducer:Xt,useRef:Xt,useState:Xt,useDebugValue:Xt,useDeferredValue:Xt,useTransition:Xt,useSyncExternalStore:Xt,useId:Xt,useHostTransitionStatus:Xt,useFormState:Xt,useActionState:Xt,useOptimistic:Xt,useMemoCache:Xt,useCacheRefresh:Xt};nc.useEffectEvent=Xt;var kx={readContext:Nn,use:zf,useCallback:function(o,u){return Pn().memoizedState=[o,u===void 0?null:u],o},useContext:Nn,useEffect:ox,useImperativeHandle:function(o,u,s){s=s!=null?s.concat([o]):null,Df(4194308,4,cx.bind(null,u,o),s)},useLayoutEffect:function(o,u){return Df(4194308,4,o,u)},useInsertionEffect:function(o,u){Df(4,2,o,u)},useMemo:function(o,u){var s=Pn();u=u===void 0?null:u;var c=o();if(ou){ni(!0);try{o()}finally{ni(!1)}}return s.memoizedState=[c,u],c},useReducer:function(o,u,s){var c=Pn();if(s!==void 0){var h=s(u);if(ou){ni(!0);try{s(u)}finally{ni(!1)}}}else h=u;return c.memoizedState=c.baseState=h,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:h},c.queue=o,o=o.dispatch=lZ.bind(null,We,o),[c.memoizedState,o]},useRef:function(o){var u=Pn();return o={current:o},u.memoizedState=o},useState:function(o){o=Fp(o);var u=o.queue,s=_x.bind(null,We,u);return u.dispatch=s,[o.memoizedState,s]},useDebugValue:Gp,useDeferredValue:function(o,u){var s=Pn();return Hp(s,o,u)},useTransition:function(){var o=Fp(!1);return o=vx.bind(null,We,o.queue,!0,!1),Pn().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,u,s){var c=We,h=Pn();if(vt){if(s===void 0)throw Error(i(407));s=s()}else{if(s=u(),Ut===null)throw Error(i(349));(ft&127)!==0||Vw(c,u,s)}h.memoizedState=s;var v={value:s,getSnapshot:u};return h.queue=v,ox(Gw.bind(null,c,v,o),[o]),c.flags|=2048,xl(9,{destroy:void 0},qw.bind(null,c,v,s,u),null),s},useId:function(){var o=Pn(),u=Ut.identifierPrefix;if(vt){var s=Ui,c=Di;s=(c&~(1<<32-Mn(c)-1)).toString(32)+s,u="_"+u+"R_"+s,s=If++,0<s&&(u+="H"+s.toString(32)),u+="_"}else s=tZ++,u="_"+u+"r_"+s.toString(32)+"_";return o.memoizedState=u},useHostTransitionStatus:Jp,useFormState:tx,useActionState:tx,useOptimistic:function(o){var u=Pn();u.memoizedState=u.baseState=o;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return u.queue=s,u=Yp.bind(null,We,!0,s),s.dispatch=u,[o,u]},useMemoCache:Pp,useCacheRefresh:function(){return Pn().memoizedState=uZ.bind(null,We)},useEffectEvent:function(o){var u=Pn(),s={impl:o};return u.memoizedState=s,function(){if((xt&2)!==0)throw Error(i(440));return s.impl.apply(void 0,arguments)}}},Xp={readContext:Nn,use:zf,useCallback:fx,useContext:Nn,useEffect:qp,useImperativeHandle:dx,useInsertionEffect:lx,useLayoutEffect:sx,useMemo:mx,useReducer:Af,useRef:ax,useState:function(){return Af(la)},useDebugValue:Gp,useDeferredValue:function(o,u){var s=rn();return hx(s,zt.memoizedState,o,u)},useTransition:function(){var o=Af(la)[0],u=rn().memoizedState;return[typeof o=="boolean"?o:ec(o),u]},useSyncExternalStore:Fw,useId:yx,useHostTransitionStatus:Jp,useFormState:nx,useActionState:nx,useOptimistic:function(o,u){var s=rn();return Jw(s,zt,o,u)},useMemoCache:Pp,useCacheRefresh:bx};Xp.useEffectEvent=ux;var wx={readContext:Nn,use:zf,useCallback:fx,useContext:Nn,useEffect:qp,useImperativeHandle:dx,useInsertionEffect:lx,useLayoutEffect:sx,useMemo:mx,useReducer:Bp,useRef:ax,useState:function(){return Bp(la)},useDebugValue:Gp,useDeferredValue:function(o,u){var s=rn();return zt===null?Hp(s,o,u):hx(s,zt.memoizedState,o,u)},useTransition:function(){var o=Bp(la)[0],u=rn().memoizedState;return[typeof o=="boolean"?o:ec(o),u]},useSyncExternalStore:Fw,useId:yx,useHostTransitionStatus:Jp,useFormState:ix,useActionState:ix,useOptimistic:function(o,u){var s=rn();return zt!==null?Jw(s,zt,o,u):(s.baseState=o,[o,s.queue.dispatch])},useMemoCache:Pp,useCacheRefresh:bx};wx.useEffectEvent=ux;function Qp(o,u,s,c){u=o.memoizedState,s=s(c,u),s=s==null?u:g({},u,s),o.memoizedState=s,o.lanes===0&&(o.updateQueue.baseState=s)}var Wp={enqueueSetState:function(o,u,s){o=o._reactInternals;var c=fr(),h=Qa(c);h.payload=u,s!=null&&(h.callback=s),u=Wa(o,h,c),u!==null&&(Qn(u,o,c),Ys(u,o,c))},enqueueReplaceState:function(o,u,s){o=o._reactInternals;var c=fr(),h=Qa(c);h.tag=1,h.payload=u,s!=null&&(h.callback=s),u=Wa(o,h,c),u!==null&&(Qn(u,o,c),Ys(u,o,c))},enqueueForceUpdate:function(o,u){o=o._reactInternals;var s=fr(),c=Qa(s);c.tag=2,u!=null&&(c.callback=u),u=Wa(o,c,s),u!==null&&(Qn(u,o,s),Ys(u,o,s))}};function xx(o,u,s,c,h,v,_){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(c,v,_):u.prototype&&u.prototype.isPureReactComponent?!Bs(s,c)||!Bs(h,v):!0}function Ox(o,u,s,c){o=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(s,c),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(s,c),u.state!==o&&Wp.enqueueReplaceState(u,u.state,null)}function uu(o,u){var s=u;if("ref"in u){s={};for(var c in u)c!=="ref"&&(s[c]=u[c])}if(o=o.defaultProps){s===u&&(s=g({},s));for(var h in o)s[h]===void 0&&(s[h]=o[h])}return s}function Ex(o){hf(o)}function Nx(o){console.error(o)}function jx(o){hf(o)}function Rf(o,u){try{var s=o.onUncaughtError;s(u.value,{componentStack:u.stack})}catch(c){setTimeout(function(){throw c})}}function Ix(o,u,s){try{var c=o.onCaughtError;c(s.value,{componentStack:s.stack,errorBoundary:u.tag===1?u.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function eg(o,u,s){return s=Qa(s),s.tag=3,s.payload={element:null},s.callback=function(){Rf(o,u)},s}function Tx(o){return o=Qa(o),o.tag=3,o}function zx(o,u,s,c){var h=s.type.getDerivedStateFromError;if(typeof h=="function"){var v=c.value;o.payload=function(){return h(v)},o.callback=function(){Ix(u,s,c)}}var _=s.stateNode;_!==null&&typeof _.componentDidCatch=="function"&&(o.callback=function(){Ix(u,s,c),typeof h!="function"&&(ao===null?ao=new Set([this]):ao.add(this));var O=c.stack;this.componentDidCatch(c.value,{componentStack:O!==null?O:""})})}function sZ(o,u,s,c,h){if(s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(u=s.alternate,u!==null&&gl(u,s,h,!0),s=lr.current,s!==null){switch(s.tag){case 31:case 13:return Mr===null?Jf():s.alternate===null&&Qt===0&&(Qt=3),s.flags&=-257,s.flags|=65536,s.lanes=h,c===wf?s.flags|=16384:(u=s.updateQueue,u===null?s.updateQueue=new Set([c]):u.add(c),xg(o,c,h)),!1;case 22:return s.flags|=65536,c===wf?s.flags|=16384:(u=s.updateQueue,u===null?(u={transitions:null,markerInstances:null,retryQueue:new Set([c])},s.updateQueue=u):(s=u.retryQueue,s===null?u.retryQueue=new Set([c]):s.add(c)),xg(o,c,h)),!1}throw Error(i(435,s.tag))}return xg(o,c,h),Jf(),!1}if(vt)return u=lr.current,u!==null?((u.flags&65536)===0&&(u.flags|=256),u.flags|=65536,u.lanes=h,c!==bp&&(o=Error(i(422),{cause:c}),qs(Dr(o,s)))):(c!==bp&&(u=Error(i(423),{cause:c}),qs(Dr(u,s))),o=o.current.alternate,o.flags|=65536,h&=-h,o.lanes|=h,c=Dr(c,s),h=eg(o.stateNode,c,h),Ip(o,h),Qt!==4&&(Qt=2)),!1;var v=Error(i(520),{cause:c});if(v=Dr(v,s),cc===null?cc=[v]:cc.push(v),Qt!==4&&(Qt=2),u===null)return!0;c=Dr(c,s),s=u;do{switch(s.tag){case 3:return s.flags|=65536,o=h&-h,s.lanes|=o,o=eg(s.stateNode,c,o),Ip(s,o),!1;case 1:if(u=s.type,v=s.stateNode,(s.flags&128)===0&&(typeof u.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(ao===null||!ao.has(v))))return s.flags|=65536,h&=-h,s.lanes|=h,h=Tx(h),zx(h,o,s,c),Ip(s,h),!1}s=s.return}while(s!==null);return!1}var tg=Error(i(461)),ln=!1;function jn(o,u,s,c){u.child=o===null?Cw(u,null,s,c):au(u,o.child,s,c)}function Ax(o,u,s,c,h){s=s.render;var v=u.ref;if("ref"in c){var _={};for(var O in c)O!=="ref"&&(_[O]=c[O])}else _=c;return tu(u),c=Cp(o,u,s,_,v,h),O=Rp(),o!==null&&!ln?(Mp(o,u,h),sa(o,u,h)):(vt&&O&&gp(u),u.flags|=1,jn(o,u,c,h),u.child)}function Dx(o,u,s,c,h){if(o===null){var v=s.type;return typeof v=="function"&&!hp(v)&&v.defaultProps===void 0&&s.compare===null?(u.tag=15,u.type=v,Ux(o,u,v,c,h)):(o=yf(s.type,null,c,u,u.mode,h),o.ref=u.ref,o.return=u,u.child=o)}if(v=o.child,!sg(o,h)){var _=v.memoizedProps;if(s=s.compare,s=s!==null?s:Bs,s(_,c)&&o.ref===u.ref)return sa(o,u,h)}return u.flags|=1,o=ra(v,c),o.ref=u.ref,o.return=u,u.child=o}function Ux(o,u,s,c,h){if(o!==null){var v=o.memoizedProps;if(Bs(v,c)&&o.ref===u.ref)if(ln=!1,u.pendingProps=c=v,sg(o,h))(o.flags&131072)!==0&&(ln=!0);else return u.lanes=o.lanes,sa(o,u,h)}return ng(o,u,s,c,h)}function Cx(o,u,s,c){var h=c.children,v=o!==null?o.memoizedState:null;if(o===null&&u.stateNode===null&&(u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((u.flags&128)!==0){if(v=v!==null?v.baseLanes|s:s,o!==null){for(c=u.child=o.child,h=0;c!==null;)h=h|c.lanes|c.childLanes,c=c.sibling;c=h&~v}else c=0,u.child=null;return Rx(o,u,v,s,c)}if((s&536870912)!==0)u.memoizedState={baseLanes:0,cachePool:null},o!==null&&Sf(u,v!==null?v.cachePool:null),v!==null?Lw(u,v):zp(),Pw(u);else return c=u.lanes=536870912,Rx(o,u,v!==null?v.baseLanes|s:s,s,c)}else v!==null?(Sf(u,v.cachePool),Lw(u,v),to(),u.memoizedState=null):(o!==null&&Sf(u,null),zp(),to());return jn(o,u,h,s),u.child}function rc(o,u){return o!==null&&o.tag===22||u.stateNode!==null||(u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.sibling}function Rx(o,u,s,c,h){var v=Op();return v=v===null?null:{parent:on._currentValue,pool:v},u.memoizedState={baseLanes:s,cachePool:v},o!==null&&Sf(u,null),zp(),Pw(u),o!==null&&gl(o,u,c,!0),u.childLanes=h,null}function Mf(o,u){return u=Pf({mode:u.mode,children:u.children},o.mode),u.ref=o.ref,o.child=u,u.return=o,u}function Mx(o,u,s){return au(u,o.child,null,s),o=Mf(u,u.pendingProps),o.flags|=2,sr(u),u.memoizedState=null,o}function cZ(o,u,s){var c=u.pendingProps,h=(u.flags&128)!==0;if(u.flags&=-129,o===null){if(vt){if(c.mode==="hidden")return o=Mf(u,c),u.lanes=536870912,rc(null,o);if(Dp(u),(o=Ft)?(o=Y1(o,Rr),o=o!==null&&o.data==="&"?o:null,o!==null&&(u.memoizedState={dehydrated:o,treeContext:Ha!==null?{id:Di,overflow:Ui}:null,retryLane:536870912,hydrationErrors:null},s=$w(o),s.return=u,u.child=s,En=u,Ft=null)):o=null,o===null)throw Ja(u);return u.lanes=536870912,null}return Mf(u,c)}var v=o.memoizedState;if(v!==null){var _=v.dehydrated;if(Dp(u),h)if(u.flags&256)u.flags&=-257,u=Mx(o,u,s);else if(u.memoizedState!==null)u.child=o.child,u.flags|=128,u=null;else throw Error(i(558));else if(ln||gl(o,u,s,!1),h=(s&o.childLanes)!==0,ln||h){if(c=Ut,c!==null&&(_=ve(c,s),_!==0&&_!==v.retryLane))throw v.retryLane=_,Xo(o,_),Qn(c,o,_),tg;Jf(),u=Mx(o,u,s)}else o=v.treeContext,Ft=Lr(_.nextSibling),En=u,vt=!0,Ka=null,Rr=!1,o!==null&&ww(u,o),u=Mf(u,c),u.flags|=4096;return u}return o=ra(o.child,{mode:c.mode,children:c.children}),o.ref=u.ref,u.child=o,o.return=u,o}function Lf(o,u){var s=u.ref;if(s===null)o!==null&&o.ref!==null&&(u.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(i(284));(o===null||o.ref!==s)&&(u.flags|=4194816)}}function ng(o,u,s,c,h){return tu(u),s=Cp(o,u,s,c,void 0,h),c=Rp(),o!==null&&!ln?(Mp(o,u,h),sa(o,u,h)):(vt&&c&&gp(u),u.flags|=1,jn(o,u,s,h),u.child)}function Lx(o,u,s,c,h,v){return tu(u),u.updateQueue=null,s=Bw(u,c,s,h),Zw(o),c=Rp(),o!==null&&!ln?(Mp(o,u,v),sa(o,u,v)):(vt&&c&&gp(u),u.flags|=1,jn(o,u,s,v),u.child)}function Px(o,u,s,c,h){if(tu(u),u.stateNode===null){var v=ml,_=s.contextType;typeof _=="object"&&_!==null&&(v=Nn(_)),v=new s(c,v),u.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=Wp,u.stateNode=v,v._reactInternals=u,v=u.stateNode,v.props=c,v.state=u.memoizedState,v.refs={},Np(u),_=s.contextType,v.context=typeof _=="object"&&_!==null?Nn(_):ml,v.state=u.memoizedState,_=s.getDerivedStateFromProps,typeof _=="function"&&(Qp(u,s,_,c),v.state=u.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(_=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),_!==v.state&&Wp.enqueueReplaceState(v,v.state,null),Qs(u,c,v,h),Xs(),v.state=u.memoizedState),typeof v.componentDidMount=="function"&&(u.flags|=4194308),c=!0}else if(o===null){v=u.stateNode;var O=u.memoizedProps,A=uu(s,O);v.props=A;var V=v.context,Y=s.contextType;_=ml,typeof Y=="object"&&Y!==null&&(_=Nn(Y));var W=s.getDerivedStateFromProps;Y=typeof W=="function"||typeof v.getSnapshotBeforeUpdate=="function",O=u.pendingProps!==O,Y||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(O||V!==_)&&Ox(u,v,c,_),Xa=!1;var G=u.memoizedState;v.state=G,Qs(u,c,v,h),Xs(),V=u.memoizedState,O||G!==V||Xa?(typeof W=="function"&&(Qp(u,s,W,c),V=u.memoizedState),(A=Xa||xx(u,s,A,c,G,V,_))?(Y||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(u.flags|=4194308)):(typeof v.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=c,u.memoizedState=V),v.props=c,v.state=V,v.context=_,c=A):(typeof v.componentDidMount=="function"&&(u.flags|=4194308),c=!1)}else{v=u.stateNode,jp(o,u),_=u.memoizedProps,Y=uu(s,_),v.props=Y,W=u.pendingProps,G=v.context,V=s.contextType,A=ml,typeof V=="object"&&V!==null&&(A=Nn(V)),O=s.getDerivedStateFromProps,(V=typeof O=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(_!==W||G!==A)&&Ox(u,v,c,A),Xa=!1,G=u.memoizedState,v.state=G,Qs(u,c,v,h),Xs();var J=u.memoizedState;_!==W||G!==J||Xa||o!==null&&o.dependencies!==null&&_f(o.dependencies)?(typeof O=="function"&&(Qp(u,s,O,c),J=u.memoizedState),(Y=Xa||xx(u,s,Y,c,G,J,A)||o!==null&&o.dependencies!==null&&_f(o.dependencies))?(V||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(c,J,A),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(c,J,A)),typeof v.componentDidUpdate=="function"&&(u.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof v.componentDidUpdate!="function"||_===o.memoizedProps&&G===o.memoizedState||(u.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||_===o.memoizedProps&&G===o.memoizedState||(u.flags|=1024),u.memoizedProps=c,u.memoizedState=J),v.props=c,v.state=J,v.context=A,c=Y):(typeof v.componentDidUpdate!="function"||_===o.memoizedProps&&G===o.memoizedState||(u.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||_===o.memoizedProps&&G===o.memoizedState||(u.flags|=1024),c=!1)}return v=c,Lf(o,u),c=(u.flags&128)!==0,v||c?(v=u.stateNode,s=c&&typeof s.getDerivedStateFromError!="function"?null:v.render(),u.flags|=1,o!==null&&c?(u.child=au(u,o.child,null,h),u.child=au(u,null,s,h)):jn(o,u,s,h),u.memoizedState=v.state,o=u.child):o=sa(o,u,h),o}function Zx(o,u,s,c){return Wo(),u.flags|=256,jn(o,u,s,c),u.child}var rg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ig(o){return{baseLanes:o,cachePool:Iw()}}function ag(o,u,s){return o=o!==null?o.childLanes&~s:0,u&&(o|=dr),o}function Bx(o,u,s){var c=u.pendingProps,h=!1,v=(u.flags&128)!==0,_;if((_=v)||(_=o!==null&&o.memoizedState===null?!1:(nn.current&2)!==0),_&&(h=!0,u.flags&=-129),_=(u.flags&32)!==0,u.flags&=-33,o===null){if(vt){if(h?eo(u):to(),(o=Ft)?(o=Y1(o,Rr),o=o!==null&&o.data!=="&"?o:null,o!==null&&(u.memoizedState={dehydrated:o,treeContext:Ha!==null?{id:Di,overflow:Ui}:null,retryLane:536870912,hydrationErrors:null},s=$w(o),s.return=u,u.child=s,En=u,Ft=null)):o=null,o===null)throw Ja(u);return Zg(o)?u.lanes=32:u.lanes=536870912,null}var O=c.children;return c=c.fallback,h?(to(),h=u.mode,O=Pf({mode:"hidden",children:O},h),c=Qo(c,h,s,null),O.return=u,c.return=u,O.sibling=c,u.child=O,c=u.child,c.memoizedState=ig(s),c.childLanes=ag(o,_,s),u.memoizedState=rg,rc(null,c)):(eo(u),og(u,O))}var A=o.memoizedState;if(A!==null&&(O=A.dehydrated,O!==null)){if(v)u.flags&256?(eo(u),u.flags&=-257,u=ug(o,u,s)):u.memoizedState!==null?(to(),u.child=o.child,u.flags|=128,u=null):(to(),O=c.fallback,h=u.mode,c=Pf({mode:"visible",children:c.children},h),O=Qo(O,h,s,null),O.flags|=2,c.return=u,O.return=u,c.sibling=O,u.child=c,au(u,o.child,null,s),c=u.child,c.memoizedState=ig(s),c.childLanes=ag(o,_,s),u.memoizedState=rg,u=rc(null,c));else if(eo(u),Zg(O)){if(_=O.nextSibling&&O.nextSibling.dataset,_)var V=_.dgst;_=V,c=Error(i(419)),c.stack="",c.digest=_,qs({value:c,source:null,stack:null}),u=ug(o,u,s)}else if(ln||gl(o,u,s,!1),_=(s&o.childLanes)!==0,ln||_){if(_=Ut,_!==null&&(c=ve(_,s),c!==0&&c!==A.retryLane))throw A.retryLane=c,Xo(o,c),Qn(_,o,c),tg;Pg(O)||Jf(),u=ug(o,u,s)}else Pg(O)?(u.flags|=192,u.child=o.child,u=null):(o=A.treeContext,Ft=Lr(O.nextSibling),En=u,vt=!0,Ka=null,Rr=!1,o!==null&&ww(u,o),u=og(u,c.children),u.flags|=4096);return u}return h?(to(),O=c.fallback,h=u.mode,A=o.child,V=A.sibling,c=ra(A,{mode:"hidden",children:c.children}),c.subtreeFlags=A.subtreeFlags&65011712,V!==null?O=ra(V,O):(O=Qo(O,h,s,null),O.flags|=2),O.return=u,c.return=u,c.sibling=O,u.child=c,rc(null,c),c=u.child,O=o.child.memoizedState,O===null?O=ig(s):(h=O.cachePool,h!==null?(A=on._currentValue,h=h.parent!==A?{parent:A,pool:A}:h):h=Iw(),O={baseLanes:O.baseLanes|s,cachePool:h}),c.memoizedState=O,c.childLanes=ag(o,_,s),u.memoizedState=rg,rc(o.child,c)):(eo(u),s=o.child,o=s.sibling,s=ra(s,{mode:"visible",children:c.children}),s.return=u,s.sibling=null,o!==null&&(_=u.deletions,_===null?(u.deletions=[o],u.flags|=16):_.push(o)),u.child=s,u.memoizedState=null,s)}function og(o,u){return u=Pf({mode:"visible",children:u},o.mode),u.return=o,o.child=u}function Pf(o,u){return o=ur(22,o,null,u),o.lanes=0,o}function ug(o,u,s){return au(u,o.child,null,s),o=og(u,u.pendingProps.children),o.flags|=2,u.memoizedState=null,o}function Fx(o,u,s){o.lanes|=u;var c=o.alternate;c!==null&&(c.lanes|=u),Sp(o.return,u,s)}function lg(o,u,s,c,h,v){var _=o.memoizedState;_===null?o.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:h,treeForkCount:v}:(_.isBackwards=u,_.rendering=null,_.renderingStartTime=0,_.last=c,_.tail=s,_.tailMode=h,_.treeForkCount=v)}function Vx(o,u,s){var c=u.pendingProps,h=c.revealOrder,v=c.tail;c=c.children;var _=nn.current,O=(_&2)!==0;if(O?(_=_&1|2,u.flags|=128):_&=1,ne(nn,_),jn(o,u,c,s),c=vt?Vs:0,!O&&o!==null&&(o.flags&128)!==0)e:for(o=u.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&Fx(o,s,u);else if(o.tag===19)Fx(o,s,u);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===u)break e;for(;o.sibling===null;){if(o.return===null||o.return===u)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(h){case"forwards":for(s=u.child,h=null;s!==null;)o=s.alternate,o!==null&&Nf(o)===null&&(h=s),s=s.sibling;s=h,s===null?(h=u.child,u.child=null):(h=s.sibling,s.sibling=null),lg(u,!1,h,s,v,c);break;case"backwards":case"unstable_legacy-backwards":for(s=null,h=u.child,u.child=null;h!==null;){if(o=h.alternate,o!==null&&Nf(o)===null){u.child=h;break}o=h.sibling,h.sibling=s,s=h,h=o}lg(u,!0,s,null,v,c);break;case"together":lg(u,!1,null,null,void 0,c);break;default:u.memoizedState=null}return u.child}function sa(o,u,s){if(o!==null&&(u.dependencies=o.dependencies),io|=u.lanes,(s&u.childLanes)===0)if(o!==null){if(gl(o,u,s,!1),(s&u.childLanes)===0)return null}else return null;if(o!==null&&u.child!==o.child)throw Error(i(153));if(u.child!==null){for(o=u.child,s=ra(o,o.pendingProps),u.child=s,s.return=u;o.sibling!==null;)o=o.sibling,s=s.sibling=ra(o,o.pendingProps),s.return=u;s.sibling=null}return u.child}function sg(o,u){return(o.lanes&u)!==0?!0:(o=o.dependencies,!!(o!==null&&_f(o)))}function dZ(o,u,s){switch(u.tag){case 3:_t(u,u.stateNode.containerInfo),Ya(u,on,o.memoizedState.cache),Wo();break;case 27:case 5:gt(u);break;case 4:_t(u,u.stateNode.containerInfo);break;case 10:Ya(u,u.type,u.memoizedProps.value);break;case 31:if(u.memoizedState!==null)return u.flags|=128,Dp(u),null;break;case 13:var c=u.memoizedState;if(c!==null)return c.dehydrated!==null?(eo(u),u.flags|=128,null):(s&u.child.childLanes)!==0?Bx(o,u,s):(eo(u),o=sa(o,u,s),o!==null?o.sibling:null);eo(u);break;case 19:var h=(o.flags&128)!==0;if(c=(s&u.childLanes)!==0,c||(gl(o,u,s,!1),c=(s&u.childLanes)!==0),h){if(c)return Vx(o,u,s);u.flags|=128}if(h=u.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),ne(nn,nn.current),c)break;return null;case 22:return u.lanes=0,Cx(o,u,s,u.pendingProps);case 24:Ya(u,on,o.memoizedState.cache)}return sa(o,u,s)}function qx(o,u,s){if(o!==null)if(o.memoizedProps!==u.pendingProps)ln=!0;else{if(!sg(o,s)&&(u.flags&128)===0)return ln=!1,dZ(o,u,s);ln=(o.flags&131072)!==0}else ln=!1,vt&&(u.flags&1048576)!==0&&kw(u,Vs,u.index);switch(u.lanes=0,u.tag){case 16:e:{var c=u.pendingProps;if(o=ru(u.elementType),u.type=o,typeof o=="function")hp(o)?(c=uu(o,c),u.tag=1,u=Px(null,u,o,c,s)):(u.tag=0,u=ng(null,u,o,c,s));else{if(o!=null){var h=o.$$typeof;if(h===z){u.tag=11,u=Ax(null,u,o,c,s);break e}else if(h===C){u.tag=14,u=Dx(null,u,o,c,s);break e}}throw u=_e(o)||o,Error(i(306,u,""))}}return u;case 0:return ng(o,u,u.type,u.pendingProps,s);case 1:return c=u.type,h=uu(c,u.pendingProps),Px(o,u,c,h,s);case 3:e:{if(_t(u,u.stateNode.containerInfo),o===null)throw Error(i(387));c=u.pendingProps;var v=u.memoizedState;h=v.element,jp(o,u),Qs(u,c,null,s);var _=u.memoizedState;if(c=_.cache,Ya(u,on,c),c!==v.cache&&kp(u,[on],s,!0),Xs(),c=_.element,v.isDehydrated)if(v={element:c,isDehydrated:!1,cache:_.cache},u.updateQueue.baseState=v,u.memoizedState=v,u.flags&256){u=Zx(o,u,c,s);break e}else if(c!==h){h=Dr(Error(i(424)),u),qs(h),u=Zx(o,u,c,s);break e}else{switch(o=u.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for(Ft=Lr(o.firstChild),En=u,vt=!0,Ka=null,Rr=!0,s=Cw(u,null,c,s),u.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(Wo(),c===h){u=sa(o,u,s);break e}jn(o,u,c,s)}u=u.child}return u;case 26:return Lf(o,u),o===null?(s=nO(u.type,null,u.pendingProps,null))?u.memoizedState=s:vt||(s=u.type,o=u.pendingProps,c=nm(Ae.current).createElement(s),c[$e]=u,c[be]=o,In(c,s,o),Kt(c),u.stateNode=c):u.memoizedState=nO(u.type,o.memoizedProps,u.pendingProps,o.memoizedState),null;case 27:return gt(u),o===null&&vt&&(c=u.stateNode=W1(u.type,u.pendingProps,Ae.current),En=u,Rr=!0,h=Ft,so(u.type)?(Bg=h,Ft=Lr(c.firstChild)):Ft=h),jn(o,u,u.pendingProps.children,s),Lf(o,u),o===null&&(u.flags|=4194304),u.child;case 5:return o===null&&vt&&((h=c=Ft)&&(c=ZZ(c,u.type,u.pendingProps,Rr),c!==null?(u.stateNode=c,En=u,Ft=Lr(c.firstChild),Rr=!1,h=!0):h=!1),h||Ja(u)),gt(u),h=u.type,v=u.pendingProps,_=o!==null?o.memoizedProps:null,c=v.children,Rg(h,v)?c=null:_!==null&&Rg(h,_)&&(u.flags|=32),u.memoizedState!==null&&(h=Cp(o,u,nZ,null,null,s),yc._currentValue=h),Lf(o,u),jn(o,u,c,s),u.child;case 6:return o===null&&vt&&((o=s=Ft)&&(s=BZ(s,u.pendingProps,Rr),s!==null?(u.stateNode=s,En=u,Ft=null,o=!0):o=!1),o||Ja(u)),null;case 13:return Bx(o,u,s);case 4:return _t(u,u.stateNode.containerInfo),c=u.pendingProps,o===null?u.child=au(u,null,c,s):jn(o,u,c,s),u.child;case 11:return Ax(o,u,u.type,u.pendingProps,s);case 7:return jn(o,u,u.pendingProps,s),u.child;case 8:return jn(o,u,u.pendingProps.children,s),u.child;case 12:return jn(o,u,u.pendingProps.children,s),u.child;case 10:return c=u.pendingProps,Ya(u,u.type,c.value),jn(o,u,c.children,s),u.child;case 9:return h=u.type._context,c=u.pendingProps.children,tu(u),h=Nn(h),c=c(h),u.flags|=1,jn(o,u,c,s),u.child;case 14:return Dx(o,u,u.type,u.pendingProps,s);case 15:return Ux(o,u,u.type,u.pendingProps,s);case 19:return Vx(o,u,s);case 31:return cZ(o,u,s);case 22:return Cx(o,u,s,u.pendingProps);case 24:return tu(u),c=Nn(on),o===null?(h=Op(),h===null&&(h=Ut,v=wp(),h.pooledCache=v,v.refCount++,v!==null&&(h.pooledCacheLanes|=s),h=v),u.memoizedState={parent:c,cache:h},Np(u),Ya(u,on,h)):((o.lanes&s)!==0&&(jp(o,u),Qs(u,null,null,s),Xs()),h=o.memoizedState,v=u.memoizedState,h.parent!==c?(h={parent:c,cache:c},u.memoizedState=h,u.lanes===0&&(u.memoizedState=u.updateQueue.baseState=h),Ya(u,on,c)):(c=v.cache,Ya(u,on,c),c!==h.cache&&kp(u,[on],s,!0))),jn(o,u,u.pendingProps.children,s),u.child;case 29:throw u.pendingProps}throw Error(i(156,u.tag))}function ca(o){o.flags|=4}function cg(o,u,s,c,h){if((u=(o.mode&32)!==0)&&(u=!1),u){if(o.flags|=16777216,(h&335544128)===h)if(o.stateNode.complete)o.flags|=8192;else if(y1())o.flags|=8192;else throw iu=wf,Ep}else o.flags&=-16777217}function Gx(o,u){if(u.type!=="stylesheet"||(u.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!uO(u))if(y1())o.flags|=8192;else throw iu=wf,Ep}function Zf(o,u){u!==null&&(o.flags|=4),o.flags&16384&&(u=o.tag!==22?af():536870912,o.lanes|=u,jl|=u)}function ic(o,u){if(!vt)switch(o.tailMode){case"hidden":u=o.tail;for(var s=null;u!==null;)u.alternate!==null&&(s=u),u=u.sibling;s===null?o.tail=null:s.sibling=null;break;case"collapsed":s=o.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?u||o.tail===null?o.tail=null:o.tail.sibling=null:c.sibling=null}}function Vt(o){var u=o.alternate!==null&&o.alternate.child===o.child,s=0,c=0;if(u)for(var h=o.child;h!==null;)s|=h.lanes|h.childLanes,c|=h.subtreeFlags&65011712,c|=h.flags&65011712,h.return=o,h=h.sibling;else for(h=o.child;h!==null;)s|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=o,h=h.sibling;return o.subtreeFlags|=c,o.childLanes=s,u}function fZ(o,u,s){var c=u.pendingProps;switch(yp(u),u.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vt(u),null;case 1:return Vt(u),null;case 3:return s=u.stateNode,c=null,o!==null&&(c=o.memoizedState.cache),u.memoizedState.cache!==c&&(u.flags|=2048),oa(on),dt(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(o===null||o.child===null)&&(pl(u)?ca(u):o===null||o.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,_p())),Vt(u),null;case 26:var h=u.type,v=u.memoizedState;return o===null?(ca(u),v!==null?(Vt(u),Gx(u,v)):(Vt(u),cg(u,h,null,c,s))):v?v!==o.memoizedState?(ca(u),Vt(u),Gx(u,v)):(Vt(u),u.flags&=-16777217):(o=o.memoizedProps,o!==c&&ca(u),Vt(u),cg(u,h,o,c,s)),null;case 27:if(Ht(u),s=Ae.current,h=u.type,o!==null&&u.stateNode!=null)o.memoizedProps!==c&&ca(u);else{if(!c){if(u.stateNode===null)throw Error(i(166));return Vt(u),null}o=oe.current,pl(u)?xw(u):(o=W1(h,c,s),u.stateNode=o,ca(u))}return Vt(u),null;case 5:if(Ht(u),h=u.type,o!==null&&u.stateNode!=null)o.memoizedProps!==c&&ca(u);else{if(!c){if(u.stateNode===null)throw Error(i(166));return Vt(u),null}if(v=oe.current,pl(u))xw(u);else{var _=nm(Ae.current);switch(v){case 1:v=_.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:v=_.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":v=_.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":v=_.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":v=_.createElement("div"),v.innerHTML="<script><\/script>",v=v.removeChild(v.firstChild);break;case"select":v=typeof c.is=="string"?_.createElement("select",{is:c.is}):_.createElement("select"),c.multiple?v.multiple=!0:c.size&&(v.size=c.size);break;default:v=typeof c.is=="string"?_.createElement(h,{is:c.is}):_.createElement(h)}}v[$e]=u,v[be]=c;e:for(_=u.child;_!==null;){if(_.tag===5||_.tag===6)v.appendChild(_.stateNode);else if(_.tag!==4&&_.tag!==27&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===u)break e;for(;_.sibling===null;){if(_.return===null||_.return===u)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}u.stateNode=v;e:switch(In(v,h,c),h){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&ca(u)}}return Vt(u),cg(u,u.type,o===null?null:o.memoizedProps,u.pendingProps,s),null;case 6:if(o&&u.stateNode!=null)o.memoizedProps!==c&&ca(u);else{if(typeof c!="string"&&u.stateNode===null)throw Error(i(166));if(o=Ae.current,pl(u)){if(o=u.stateNode,s=u.memoizedProps,c=null,h=En,h!==null)switch(h.tag){case 27:case 5:c=h.memoizedProps}o[$e]=u,o=!!(o.nodeValue===s||c!==null&&c.suppressHydrationWarning===!0||B1(o.nodeValue,s)),o||Ja(u,!0)}else o=nm(o).createTextNode(c),o[$e]=u,u.stateNode=o}return Vt(u),null;case 31:if(s=u.memoizedState,o===null||o.memoizedState!==null){if(c=pl(u),s!==null){if(o===null){if(!c)throw Error(i(318));if(o=u.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(557));o[$e]=u}else Wo(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;Vt(u),o=!1}else s=_p(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=s),o=!0;if(!o)return u.flags&256?(sr(u),u):(sr(u),null);if((u.flags&128)!==0)throw Error(i(558))}return Vt(u),null;case 13:if(c=u.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(h=pl(u),c!==null&&c.dehydrated!==null){if(o===null){if(!h)throw Error(i(318));if(h=u.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(i(317));h[$e]=u}else Wo(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;Vt(u),h=!1}else h=_p(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=h),h=!0;if(!h)return u.flags&256?(sr(u),u):(sr(u),null)}return sr(u),(u.flags&128)!==0?(u.lanes=s,u):(s=c!==null,o=o!==null&&o.memoizedState!==null,s&&(c=u.child,h=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(h=c.alternate.memoizedState.cachePool.pool),v=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(v=c.memoizedState.cachePool.pool),v!==h&&(c.flags|=2048)),s!==o&&s&&(u.child.flags|=8192),Zf(u,u.updateQueue),Vt(u),null);case 4:return dt(),o===null&&zg(u.stateNode.containerInfo),Vt(u),null;case 10:return oa(u.type),Vt(u),null;case 19:if(H(nn),c=u.memoizedState,c===null)return Vt(u),null;if(h=(u.flags&128)!==0,v=c.rendering,v===null)if(h)ic(c,!1);else{if(Qt!==0||o!==null&&(o.flags&128)!==0)for(o=u.child;o!==null;){if(v=Nf(o),v!==null){for(u.flags|=128,ic(c,!1),o=v.updateQueue,u.updateQueue=o,Zf(u,o),u.subtreeFlags=0,o=s,s=u.child;s!==null;)_w(s,o),s=s.sibling;return ne(nn,nn.current&1|2),vt&&ia(u,c.treeForkCount),u.child}o=o.sibling}c.tail!==null&&he()>Gf&&(u.flags|=128,h=!0,ic(c,!1),u.lanes=4194304)}else{if(!h)if(o=Nf(v),o!==null){if(u.flags|=128,h=!0,o=o.updateQueue,u.updateQueue=o,Zf(u,o),ic(c,!0),c.tail===null&&c.tailMode==="hidden"&&!v.alternate&&!vt)return Vt(u),null}else 2*he()-c.renderingStartTime>Gf&&s!==536870912&&(u.flags|=128,h=!0,ic(c,!1),u.lanes=4194304);c.isBackwards?(v.sibling=u.child,u.child=v):(o=c.last,o!==null?o.sibling=v:u.child=v,c.last=v)}return c.tail!==null?(o=c.tail,c.rendering=o,c.tail=o.sibling,c.renderingStartTime=he(),o.sibling=null,s=nn.current,ne(nn,h?s&1|2:s&1),vt&&ia(u,c.treeForkCount),o):(Vt(u),null);case 22:case 23:return sr(u),Ap(),c=u.memoizedState!==null,o!==null?o.memoizedState!==null!==c&&(u.flags|=8192):c&&(u.flags|=8192),c?(s&536870912)!==0&&(u.flags&128)===0&&(Vt(u),u.subtreeFlags&6&&(u.flags|=8192)):Vt(u),s=u.updateQueue,s!==null&&Zf(u,s.retryQueue),s=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(s=o.memoizedState.cachePool.pool),c=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(c=u.memoizedState.cachePool.pool),c!==s&&(u.flags|=2048),o!==null&&H(nu),null;case 24:return s=null,o!==null&&(s=o.memoizedState.cache),u.memoizedState.cache!==s&&(u.flags|=2048),oa(on),Vt(u),null;case 25:return null;case 30:return null}throw Error(i(156,u.tag))}function mZ(o,u){switch(yp(u),u.tag){case 1:return o=u.flags,o&65536?(u.flags=o&-65537|128,u):null;case 3:return oa(on),dt(),o=u.flags,(o&65536)!==0&&(o&128)===0?(u.flags=o&-65537|128,u):null;case 26:case 27:case 5:return Ht(u),null;case 31:if(u.memoizedState!==null){if(sr(u),u.alternate===null)throw Error(i(340));Wo()}return o=u.flags,o&65536?(u.flags=o&-65537|128,u):null;case 13:if(sr(u),o=u.memoizedState,o!==null&&o.dehydrated!==null){if(u.alternate===null)throw Error(i(340));Wo()}return o=u.flags,o&65536?(u.flags=o&-65537|128,u):null;case 19:return H(nn),null;case 4:return dt(),null;case 10:return oa(u.type),null;case 22:case 23:return sr(u),Ap(),o!==null&&H(nu),o=u.flags,o&65536?(u.flags=o&-65537|128,u):null;case 24:return oa(on),null;case 25:return null;default:return null}}function Hx(o,u){switch(yp(u),u.tag){case 3:oa(on),dt();break;case 26:case 27:case 5:Ht(u);break;case 4:dt();break;case 31:u.memoizedState!==null&&sr(u);break;case 13:sr(u);break;case 19:H(nn);break;case 10:oa(u.type);break;case 22:case 23:sr(u),Ap(),o!==null&&H(nu);break;case 24:oa(on)}}function ac(o,u){try{var s=u.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var h=c.next;s=h;do{if((s.tag&o)===o){c=void 0;var v=s.create,_=s.inst;c=v(),_.destroy=c}s=s.next}while(s!==h)}}catch(O){It(u,u.return,O)}}function no(o,u,s){try{var c=u.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var v=h.next;c=v;do{if((c.tag&o)===o){var _=c.inst,O=_.destroy;if(O!==void 0){_.destroy=void 0,h=u;var A=s,V=O;try{V()}catch(Y){It(h,A,Y)}}}c=c.next}while(c!==v)}}catch(Y){It(u,u.return,Y)}}function Kx(o){var u=o.updateQueue;if(u!==null){var s=o.stateNode;try{Mw(u,s)}catch(c){It(o,o.return,c)}}}function Jx(o,u,s){s.props=uu(o.type,o.memoizedProps),s.state=o.memoizedState;try{s.componentWillUnmount()}catch(c){It(o,u,c)}}function oc(o,u){try{var s=o.ref;if(s!==null){switch(o.tag){case 26:case 27:case 5:var c=o.stateNode;break;case 30:c=o.stateNode;break;default:c=o.stateNode}typeof s=="function"?o.refCleanup=s(c):s.current=c}}catch(h){It(o,u,h)}}function Ci(o,u){var s=o.ref,c=o.refCleanup;if(s!==null)if(typeof c=="function")try{c()}catch(h){It(o,u,h)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(h){It(o,u,h)}else s.current=null}function Yx(o){var u=o.type,s=o.memoizedProps,c=o.stateNode;try{e:switch(u){case"button":case"input":case"select":case"textarea":s.autoFocus&&c.focus();break e;case"img":s.src?c.src=s.src:s.srcSet&&(c.srcset=s.srcSet)}}catch(h){It(o,o.return,h)}}function dg(o,u,s){try{var c=o.stateNode;UZ(c,o.type,s,u),c[be]=u}catch(h){It(o,o.return,h)}}function Xx(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&so(o.type)||o.tag===4}function fg(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||Xx(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&so(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function mg(o,u,s){var c=o.tag;if(c===5||c===6)o=o.stateNode,u?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(o,u):(u=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,u.appendChild(o),s=s._reactRootContainer,s!=null||u.onclick!==null||(u.onclick=ta));else if(c!==4&&(c===27&&so(o.type)&&(s=o.stateNode,u=null),o=o.child,o!==null))for(mg(o,u,s),o=o.sibling;o!==null;)mg(o,u,s),o=o.sibling}function Bf(o,u,s){var c=o.tag;if(c===5||c===6)o=o.stateNode,u?s.insertBefore(o,u):s.appendChild(o);else if(c!==4&&(c===27&&so(o.type)&&(s=o.stateNode),o=o.child,o!==null))for(Bf(o,u,s),o=o.sibling;o!==null;)Bf(o,u,s),o=o.sibling}function Qx(o){var u=o.stateNode,s=o.memoizedProps;try{for(var c=o.type,h=u.attributes;h.length;)u.removeAttributeNode(h[0]);In(u,c,s),u[$e]=o,u[be]=s}catch(v){It(o,o.return,v)}}var da=!1,sn=!1,hg=!1,Wx=typeof WeakSet=="function"?WeakSet:Set,yn=null;function hZ(o,u){if(o=o.containerInfo,Ug=sm,o=dw(o),up(o)){if("selectionStart"in o)var s={start:o.selectionStart,end:o.selectionEnd};else e:{s=(s=o.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var h=c.anchorOffset,v=c.focusNode;c=c.focusOffset;try{s.nodeType,v.nodeType}catch{s=null;break e}var _=0,O=-1,A=-1,V=0,Y=0,W=o,G=null;t:for(;;){for(var J;W!==s||h!==0&&W.nodeType!==3||(O=_+h),W!==v||c!==0&&W.nodeType!==3||(A=_+c),W.nodeType===3&&(_+=W.nodeValue.length),(J=W.firstChild)!==null;)G=W,W=J;for(;;){if(W===o)break t;if(G===s&&++V===h&&(O=_),G===v&&++Y===c&&(A=_),(J=W.nextSibling)!==null)break;W=G,G=W.parentNode}W=J}s=O===-1||A===-1?null:{start:O,end:A}}else s=null}s=s||{start:0,end:0}}else s=null;for(Cg={focusedElem:o,selectionRange:s},sm=!1,yn=u;yn!==null;)if(u=yn,o=u.child,(u.subtreeFlags&1028)!==0&&o!==null)o.return=u,yn=o;else for(;yn!==null;){switch(u=yn,v=u.alternate,o=u.flags,u.tag){case 0:if((o&4)!==0&&(o=u.updateQueue,o=o!==null?o.events:null,o!==null))for(s=0;s<o.length;s++)h=o[s],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&v!==null){o=void 0,s=u,h=v.memoizedProps,v=v.memoizedState,c=s.stateNode;try{var Se=uu(s.type,h);o=c.getSnapshotBeforeUpdate(Se,v),c.__reactInternalSnapshotBeforeUpdate=o}catch(Ze){It(s,s.return,Ze)}}break;case 3:if((o&1024)!==0){if(o=u.stateNode.containerInfo,s=o.nodeType,s===9)Lg(o);else if(s===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":Lg(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(i(163))}if(o=u.sibling,o!==null){o.return=u.return,yn=o;break}yn=u.return}}function e1(o,u,s){var c=s.flags;switch(s.tag){case 0:case 11:case 15:ma(o,s),c&4&&ac(5,s);break;case 1:if(ma(o,s),c&4)if(o=s.stateNode,u===null)try{o.componentDidMount()}catch(_){It(s,s.return,_)}else{var h=uu(s.type,u.memoizedProps);u=u.memoizedState;try{o.componentDidUpdate(h,u,o.__reactInternalSnapshotBeforeUpdate)}catch(_){It(s,s.return,_)}}c&64&&Kx(s),c&512&&oc(s,s.return);break;case 3:if(ma(o,s),c&64&&(o=s.updateQueue,o!==null)){if(u=null,s.child!==null)switch(s.child.tag){case 27:case 5:u=s.child.stateNode;break;case 1:u=s.child.stateNode}try{Mw(o,u)}catch(_){It(s,s.return,_)}}break;case 27:u===null&&c&4&&Qx(s);case 26:case 5:ma(o,s),u===null&&c&4&&Yx(s),c&512&&oc(s,s.return);break;case 12:ma(o,s);break;case 31:ma(o,s),c&4&&r1(o,s);break;case 13:ma(o,s),c&4&&i1(o,s),c&64&&(o=s.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(s=kZ.bind(null,s),FZ(o,s))));break;case 22:if(c=s.memoizedState!==null||da,!c){u=u!==null&&u.memoizedState!==null||sn,h=da;var v=sn;da=c,(sn=u)&&!v?ha(o,s,(s.subtreeFlags&8772)!==0):ma(o,s),da=h,sn=v}break;case 30:break;default:ma(o,s)}}function t1(o){var u=o.alternate;u!==null&&(o.alternate=null,t1(u)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(u=o.stateNode,u!==null&&ri(u)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var Jt=null,Kn=!1;function fa(o,u,s){for(s=s.child;s!==null;)n1(o,u,s),s=s.sibling}function n1(o,u,s){if(pn&&typeof pn.onCommitFiberUnmount=="function")try{pn.onCommitFiberUnmount(ti,s)}catch{}switch(s.tag){case 26:sn||Ci(s,u),fa(o,u,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:sn||Ci(s,u);var c=Jt,h=Kn;so(s.type)&&(Jt=s.stateNode,Kn=!1),fa(o,u,s),vc(s.stateNode),Jt=c,Kn=h;break;case 5:sn||Ci(s,u);case 6:if(c=Jt,h=Kn,Jt=null,fa(o,u,s),Jt=c,Kn=h,Jt!==null)if(Kn)try{(Jt.nodeType===9?Jt.body:Jt.nodeName==="HTML"?Jt.ownerDocument.body:Jt).removeChild(s.stateNode)}catch(v){It(s,u,v)}else try{Jt.removeChild(s.stateNode)}catch(v){It(s,u,v)}break;case 18:Jt!==null&&(Kn?(o=Jt,K1(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,s.stateNode),Rl(o)):K1(Jt,s.stateNode));break;case 4:c=Jt,h=Kn,Jt=s.stateNode.containerInfo,Kn=!0,fa(o,u,s),Jt=c,Kn=h;break;case 0:case 11:case 14:case 15:no(2,s,u),sn||no(4,s,u),fa(o,u,s);break;case 1:sn||(Ci(s,u),c=s.stateNode,typeof c.componentWillUnmount=="function"&&Jx(s,u,c)),fa(o,u,s);break;case 21:fa(o,u,s);break;case 22:sn=(c=sn)||s.memoizedState!==null,fa(o,u,s),sn=c;break;default:fa(o,u,s)}}function r1(o,u){if(u.memoizedState===null&&(o=u.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{Rl(o)}catch(s){It(u,u.return,s)}}}function i1(o,u){if(u.memoizedState===null&&(o=u.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{Rl(o)}catch(s){It(u,u.return,s)}}function vZ(o){switch(o.tag){case 31:case 13:case 19:var u=o.stateNode;return u===null&&(u=o.stateNode=new Wx),u;case 22:return o=o.stateNode,u=o._retryCache,u===null&&(u=o._retryCache=new Wx),u;default:throw Error(i(435,o.tag))}}function Ff(o,u){var s=vZ(o);u.forEach(function(c){if(!s.has(c)){s.add(c);var h=wZ.bind(null,o,c);c.then(h,h)}})}function Jn(o,u){var s=u.deletions;if(s!==null)for(var c=0;c<s.length;c++){var h=s[c],v=o,_=u,O=_;e:for(;O!==null;){switch(O.tag){case 27:if(so(O.type)){Jt=O.stateNode,Kn=!1;break e}break;case 5:Jt=O.stateNode,Kn=!1;break e;case 3:case 4:Jt=O.stateNode.containerInfo,Kn=!0;break e}O=O.return}if(Jt===null)throw Error(i(160));n1(v,_,h),Jt=null,Kn=!1,v=h.alternate,v!==null&&(v.return=null),h.return=null}if(u.subtreeFlags&13886)for(u=u.child;u!==null;)a1(u,o),u=u.sibling}var oi=null;function a1(o,u){var s=o.alternate,c=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:Jn(u,o),Yn(o),c&4&&(no(3,o,o.return),ac(3,o),no(5,o,o.return));break;case 1:Jn(u,o),Yn(o),c&512&&(sn||s===null||Ci(s,s.return)),c&64&&da&&(o=o.updateQueue,o!==null&&(c=o.callbacks,c!==null&&(s=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=s===null?c:s.concat(c))));break;case 26:var h=oi;if(Jn(u,o),Yn(o),c&512&&(sn||s===null||Ci(s,s.return)),c&4){var v=s!==null?s.memoizedState:null;if(c=o.memoizedState,s===null)if(c===null)if(o.stateNode===null){e:{c=o.type,s=o.memoizedProps,h=h.ownerDocument||h;t:switch(c){case"title":v=h.getElementsByTagName("title")[0],(!v||v[wt]||v[$e]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=h.createElement(c),h.head.insertBefore(v,h.querySelector("head > title"))),In(v,c,s),v[$e]=o,Kt(v),c=v;break e;case"link":var _=aO("link","href",h).get(c+(s.href||""));if(_){for(var O=0;O<_.length;O++)if(v=_[O],v.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&v.getAttribute("rel")===(s.rel==null?null:s.rel)&&v.getAttribute("title")===(s.title==null?null:s.title)&&v.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){_.splice(O,1);break t}}v=h.createElement(c),In(v,c,s),h.head.appendChild(v);break;case"meta":if(_=aO("meta","content",h).get(c+(s.content||""))){for(O=0;O<_.length;O++)if(v=_[O],v.getAttribute("content")===(s.content==null?null:""+s.content)&&v.getAttribute("name")===(s.name==null?null:s.name)&&v.getAttribute("property")===(s.property==null?null:s.property)&&v.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&v.getAttribute("charset")===(s.charSet==null?null:s.charSet)){_.splice(O,1);break t}}v=h.createElement(c),In(v,c,s),h.head.appendChild(v);break;default:throw Error(i(468,c))}v[$e]=o,Kt(v),c=v}o.stateNode=c}else oO(h,o.type,o.stateNode);else o.stateNode=iO(h,c,o.memoizedProps);else v!==c?(v===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):v.count--,c===null?oO(h,o.type,o.stateNode):iO(h,c,o.memoizedProps)):c===null&&o.stateNode!==null&&dg(o,o.memoizedProps,s.memoizedProps)}break;case 27:Jn(u,o),Yn(o),c&512&&(sn||s===null||Ci(s,s.return)),s!==null&&c&4&&dg(o,o.memoizedProps,s.memoizedProps);break;case 5:if(Jn(u,o),Yn(o),c&512&&(sn||s===null||Ci(s,s.return)),o.flags&32){h=o.stateNode;try{ol(h,"")}catch(Se){It(o,o.return,Se)}}c&4&&o.stateNode!=null&&(h=o.memoizedProps,dg(o,h,s!==null?s.memoizedProps:h)),c&1024&&(hg=!0);break;case 6:if(Jn(u,o),Yn(o),c&4){if(o.stateNode===null)throw Error(i(162));c=o.memoizedProps,s=o.stateNode;try{s.nodeValue=c}catch(Se){It(o,o.return,Se)}}break;case 3:if(am=null,h=oi,oi=rm(u.containerInfo),Jn(u,o),oi=h,Yn(o),c&4&&s!==null&&s.memoizedState.isDehydrated)try{Rl(u.containerInfo)}catch(Se){It(o,o.return,Se)}hg&&(hg=!1,o1(o));break;case 4:c=oi,oi=rm(o.stateNode.containerInfo),Jn(u,o),Yn(o),oi=c;break;case 12:Jn(u,o),Yn(o);break;case 31:Jn(u,o),Yn(o),c&4&&(c=o.updateQueue,c!==null&&(o.updateQueue=null,Ff(o,c)));break;case 13:Jn(u,o),Yn(o),o.child.flags&8192&&o.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(qf=he()),c&4&&(c=o.updateQueue,c!==null&&(o.updateQueue=null,Ff(o,c)));break;case 22:h=o.memoizedState!==null;var A=s!==null&&s.memoizedState!==null,V=da,Y=sn;if(da=V||h,sn=Y||A,Jn(u,o),sn=Y,da=V,Yn(o),c&8192)e:for(u=o.stateNode,u._visibility=h?u._visibility&-2:u._visibility|1,h&&(s===null||A||da||sn||lu(o)),s=null,u=o;;){if(u.tag===5||u.tag===26){if(s===null){A=s=u;try{if(v=A.stateNode,h)_=v.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{O=A.stateNode;var W=A.memoizedProps.style,G=W!=null&&W.hasOwnProperty("display")?W.display:null;O.style.display=G==null||typeof G=="boolean"?"":(""+G).trim()}}catch(Se){It(A,A.return,Se)}}}else if(u.tag===6){if(s===null){A=u;try{A.stateNode.nodeValue=h?"":A.memoizedProps}catch(Se){It(A,A.return,Se)}}}else if(u.tag===18){if(s===null){A=u;try{var J=A.stateNode;h?J1(J,!0):J1(A.stateNode,!1)}catch(Se){It(A,A.return,Se)}}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===o)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===o)break e;for(;u.sibling===null;){if(u.return===null||u.return===o)break e;s===u&&(s=null),u=u.return}s===u&&(s=null),u.sibling.return=u.return,u=u.sibling}c&4&&(c=o.updateQueue,c!==null&&(s=c.retryQueue,s!==null&&(c.retryQueue=null,Ff(o,s))));break;case 19:Jn(u,o),Yn(o),c&4&&(c=o.updateQueue,c!==null&&(o.updateQueue=null,Ff(o,c)));break;case 30:break;case 21:break;default:Jn(u,o),Yn(o)}}function Yn(o){var u=o.flags;if(u&2){try{for(var s,c=o.return;c!==null;){if(Xx(c)){s=c;break}c=c.return}if(s==null)throw Error(i(160));switch(s.tag){case 27:var h=s.stateNode,v=fg(o);Bf(o,v,h);break;case 5:var _=s.stateNode;s.flags&32&&(ol(_,""),s.flags&=-33);var O=fg(o);Bf(o,O,_);break;case 3:case 4:var A=s.stateNode.containerInfo,V=fg(o);mg(o,V,A);break;default:throw Error(i(161))}}catch(Y){It(o,o.return,Y)}o.flags&=-3}u&4096&&(o.flags&=-4097)}function o1(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var u=o;o1(u),u.tag===5&&u.flags&1024&&u.stateNode.reset(),o=o.sibling}}function ma(o,u){if(u.subtreeFlags&8772)for(u=u.child;u!==null;)e1(o,u.alternate,u),u=u.sibling}function lu(o){for(o=o.child;o!==null;){var u=o;switch(u.tag){case 0:case 11:case 14:case 15:no(4,u,u.return),lu(u);break;case 1:Ci(u,u.return);var s=u.stateNode;typeof s.componentWillUnmount=="function"&&Jx(u,u.return,s),lu(u);break;case 27:vc(u.stateNode);case 26:case 5:Ci(u,u.return),lu(u);break;case 22:u.memoizedState===null&&lu(u);break;case 30:lu(u);break;default:lu(u)}o=o.sibling}}function ha(o,u,s){for(s=s&&(u.subtreeFlags&8772)!==0,u=u.child;u!==null;){var c=u.alternate,h=o,v=u,_=v.flags;switch(v.tag){case 0:case 11:case 15:ha(h,v,s),ac(4,v);break;case 1:if(ha(h,v,s),c=v,h=c.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(V){It(c,c.return,V)}if(c=v,h=c.updateQueue,h!==null){var O=c.stateNode;try{var A=h.shared.hiddenCallbacks;if(A!==null)for(h.shared.hiddenCallbacks=null,h=0;h<A.length;h++)Rw(A[h],O)}catch(V){It(c,c.return,V)}}s&&_&64&&Kx(v),oc(v,v.return);break;case 27:Qx(v);case 26:case 5:ha(h,v,s),s&&c===null&&_&4&&Yx(v),oc(v,v.return);break;case 12:ha(h,v,s);break;case 31:ha(h,v,s),s&&_&4&&r1(h,v);break;case 13:ha(h,v,s),s&&_&4&&i1(h,v);break;case 22:v.memoizedState===null&&ha(h,v,s),oc(v,v.return);break;case 30:break;default:ha(h,v,s)}u=u.sibling}}function vg(o,u){var s=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(s=o.memoizedState.cachePool.pool),o=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(o=u.memoizedState.cachePool.pool),o!==s&&(o!=null&&o.refCount++,s!=null&&Gs(s))}function pg(o,u){o=null,u.alternate!==null&&(o=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==o&&(u.refCount++,o!=null&&Gs(o))}function ui(o,u,s,c){if(u.subtreeFlags&10256)for(u=u.child;u!==null;)u1(o,u,s,c),u=u.sibling}function u1(o,u,s,c){var h=u.flags;switch(u.tag){case 0:case 11:case 15:ui(o,u,s,c),h&2048&&ac(9,u);break;case 1:ui(o,u,s,c);break;case 3:ui(o,u,s,c),h&2048&&(o=null,u.alternate!==null&&(o=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==o&&(u.refCount++,o!=null&&Gs(o)));break;case 12:if(h&2048){ui(o,u,s,c),o=u.stateNode;try{var v=u.memoizedProps,_=v.id,O=v.onPostCommit;typeof O=="function"&&O(_,u.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(A){It(u,u.return,A)}}else ui(o,u,s,c);break;case 31:ui(o,u,s,c);break;case 13:ui(o,u,s,c);break;case 23:break;case 22:v=u.stateNode,_=u.alternate,u.memoizedState!==null?v._visibility&2?ui(o,u,s,c):uc(o,u):v._visibility&2?ui(o,u,s,c):(v._visibility|=2,Ol(o,u,s,c,(u.subtreeFlags&10256)!==0||!1)),h&2048&&vg(_,u);break;case 24:ui(o,u,s,c),h&2048&&pg(u.alternate,u);break;default:ui(o,u,s,c)}}function Ol(o,u,s,c,h){for(h=h&&((u.subtreeFlags&10256)!==0||!1),u=u.child;u!==null;){var v=o,_=u,O=s,A=c,V=_.flags;switch(_.tag){case 0:case 11:case 15:Ol(v,_,O,A,h),ac(8,_);break;case 23:break;case 22:var Y=_.stateNode;_.memoizedState!==null?Y._visibility&2?Ol(v,_,O,A,h):uc(v,_):(Y._visibility|=2,Ol(v,_,O,A,h)),h&&V&2048&&vg(_.alternate,_);break;case 24:Ol(v,_,O,A,h),h&&V&2048&&pg(_.alternate,_);break;default:Ol(v,_,O,A,h)}u=u.sibling}}function uc(o,u){if(u.subtreeFlags&10256)for(u=u.child;u!==null;){var s=o,c=u,h=c.flags;switch(c.tag){case 22:uc(s,c),h&2048&&vg(c.alternate,c);break;case 24:uc(s,c),h&2048&&pg(c.alternate,c);break;default:uc(s,c)}u=u.sibling}}var lc=8192;function El(o,u,s){if(o.subtreeFlags&lc)for(o=o.child;o!==null;)l1(o,u,s),o=o.sibling}function l1(o,u,s){switch(o.tag){case 26:El(o,u,s),o.flags&lc&&o.memoizedState!==null&&tB(s,oi,o.memoizedState,o.memoizedProps);break;case 5:El(o,u,s);break;case 3:case 4:var c=oi;oi=rm(o.stateNode.containerInfo),El(o,u,s),oi=c;break;case 22:o.memoizedState===null&&(c=o.alternate,c!==null&&c.memoizedState!==null?(c=lc,lc=16777216,El(o,u,s),lc=c):El(o,u,s));break;default:El(o,u,s)}}function s1(o){var u=o.alternate;if(u!==null&&(o=u.child,o!==null)){u.child=null;do u=o.sibling,o.sibling=null,o=u;while(o!==null)}}function sc(o){var u=o.deletions;if((o.flags&16)!==0){if(u!==null)for(var s=0;s<u.length;s++){var c=u[s];yn=c,d1(c,o)}s1(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)c1(o),o=o.sibling}function c1(o){switch(o.tag){case 0:case 11:case 15:sc(o),o.flags&2048&&no(9,o,o.return);break;case 3:sc(o);break;case 12:sc(o);break;case 22:var u=o.stateNode;o.memoizedState!==null&&u._visibility&2&&(o.return===null||o.return.tag!==13)?(u._visibility&=-3,Vf(o)):sc(o);break;default:sc(o)}}function Vf(o){var u=o.deletions;if((o.flags&16)!==0){if(u!==null)for(var s=0;s<u.length;s++){var c=u[s];yn=c,d1(c,o)}s1(o)}for(o=o.child;o!==null;){switch(u=o,u.tag){case 0:case 11:case 15:no(8,u,u.return),Vf(u);break;case 22:s=u.stateNode,s._visibility&2&&(s._visibility&=-3,Vf(u));break;default:Vf(u)}o=o.sibling}}function d1(o,u){for(;yn!==null;){var s=yn;switch(s.tag){case 0:case 11:case 15:no(8,s,u);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var c=s.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Gs(s.memoizedState.cache)}if(c=s.child,c!==null)c.return=s,yn=c;else e:for(s=o;yn!==null;){c=yn;var h=c.sibling,v=c.return;if(t1(c),c===s){yn=null;break e}if(h!==null){h.return=v,yn=h;break e}yn=v}}}var pZ={getCacheForType:function(o){var u=Nn(on),s=u.data.get(o);return s===void 0&&(s=o(),u.data.set(o,s)),s},cacheSignal:function(){return Nn(on).controller.signal}},gZ=typeof WeakMap=="function"?WeakMap:Map,xt=0,Ut=null,ot=null,ft=0,jt=0,cr=null,ro=!1,Nl=!1,gg=!1,va=0,Qt=0,io=0,su=0,yg=0,dr=0,jl=0,cc=null,Xn=null,bg=!1,qf=0,f1=0,Gf=1/0,Hf=null,ao=null,mn=0,oo=null,Il=null,pa=0,_g=0,$g=null,m1=null,dc=0,Sg=null;function fr(){return(xt&2)!==0&&ft!==0?ft&-ft:M.T!==null?Ng():Ee()}function h1(){if(dr===0)if((ft&536870912)===0||vt){var o=rl;rl<<=1,(rl&3932160)===0&&(rl=262144),dr=o}else dr=536870912;return o=lr.current,o!==null&&(o.flags|=32),dr}function Qn(o,u,s){(o===Ut&&(jt===2||jt===9)||o.cancelPendingCommit!==null)&&(Tl(o,0),uo(o,ft,dr,!1)),U(o,s),((xt&2)===0||o!==Ut)&&(o===Ut&&((xt&2)===0&&(su|=s),Qt===4&&uo(o,ft,dr,!1)),Ri(o))}function v1(o,u,s){if((xt&6)!==0)throw Error(i(327));var c=!s&&(u&127)===0&&(u&o.expiredLanes)===0||Ii(o,u),h=c?_Z(o,u):wg(o,u,!0),v=c;do{if(h===0){Nl&&!c&&uo(o,u,0,!1);break}else{if(s=o.current.alternate,v&&!yZ(s)){h=wg(o,u,!1),v=!1;continue}if(h===2){if(v=u,o.errorRecoveryDisabledLanes&v)var _=0;else _=o.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){u=_;e:{var O=o;h=cc;var A=O.current.memoizedState.isDehydrated;if(A&&(Tl(O,_).flags|=256),_=wg(O,_,!1),_!==2){if(gg&&!A){O.errorRecoveryDisabledLanes|=v,su|=v,h=4;break e}v=Xn,Xn=h,v!==null&&(Xn===null?Xn=v:Xn.push.apply(Xn,v))}h=_}if(v=!1,h!==2)continue}}if(h===1){Tl(o,0),uo(o,u,0,!0);break}e:{switch(c=o,v=h,v){case 0:case 1:throw Error(i(345));case 4:if((u&4194048)!==u)break;case 6:uo(c,u,dr,!ro);break e;case 2:Xn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((u&62914560)===u&&(h=qf+300-he(),10<h)){if(uo(c,u,dr,!ro),qo(c,0,!0)!==0)break e;pa=u,c.timeoutHandle=G1(p1.bind(null,c,s,Xn,Hf,bg,u,dr,su,jl,ro,v,"Throttled",-0,0),h);break e}p1(c,s,Xn,Hf,bg,u,dr,su,jl,ro,v,null,-0,0)}}break}while(!0);Ri(o)}function p1(o,u,s,c,h,v,_,O,A,V,Y,W,G,J){if(o.timeoutHandle=-1,W=u.subtreeFlags,W&8192||(W&16785408)===16785408){W={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ta},l1(u,v,W);var Se=(v&62914560)===v?qf-he():(v&4194048)===v?f1-he():0;if(Se=nB(W,Se),Se!==null){pa=v,o.cancelPendingCommit=Se(w1.bind(null,o,u,v,s,c,h,_,O,A,Y,W,null,G,J)),uo(o,v,_,!V);return}}w1(o,u,v,s,c,h,_,O,A)}function yZ(o){for(var u=o;;){var s=u.tag;if((s===0||s===11||s===15)&&u.flags&16384&&(s=u.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var c=0;c<s.length;c++){var h=s[c],v=h.getSnapshot;h=h.value;try{if(!or(v(),h))return!1}catch{return!1}}if(s=u.child,u.subtreeFlags&16384&&s!==null)s.return=u,u=s;else{if(u===o)break;for(;u.sibling===null;){if(u.return===null||u.return===o)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function uo(o,u,s,c){u&=~yg,u&=~su,o.suspendedLanes|=u,o.pingedLanes&=~u,c&&(o.warmLanes|=u),c=o.expirationTimes;for(var h=u;0<h;){var v=31-Mn(h),_=1<<v;c[v]=-1,h&=~_}s!==0&&K(o,s,u)}function Kf(){return(xt&6)===0?(fc(0),!1):!0}function kg(){if(ot!==null){if(jt===0)var o=ot.return;else o=ot,aa=eu=null,Lp(o),$l=null,Ks=0,o=ot;for(;o!==null;)Hx(o.alternate,o),o=o.return;ot=null}}function Tl(o,u){var s=o.timeoutHandle;s!==-1&&(o.timeoutHandle=-1,MZ(s)),s=o.cancelPendingCommit,s!==null&&(o.cancelPendingCommit=null,s()),pa=0,kg(),Ut=o,ot=s=ra(o.current,null),ft=u,jt=0,cr=null,ro=!1,Nl=Ii(o,u),gg=!1,jl=dr=yg=su=io=Qt=0,Xn=cc=null,bg=!1,(u&8)!==0&&(u|=u&32);var c=o.entangledLanes;if(c!==0)for(o=o.entanglements,c&=u;0<c;){var h=31-Mn(c),v=1<<h;u|=o[h],c&=~v}return va=u,vf(),s}function g1(o,u){We=null,M.H=nc,u===_l||u===kf?(u=Aw(),jt=3):u===Ep?(u=Aw(),jt=4):jt=u===tg?8:u!==null&&typeof u=="object"&&typeof u.then=="function"?6:1,cr=u,ot===null&&(Qt=1,Rf(o,Dr(u,o.current)))}function y1(){var o=lr.current;return o===null?!0:(ft&4194048)===ft?Mr===null:(ft&62914560)===ft||(ft&536870912)!==0?o===Mr:!1}function b1(){var o=M.H;return M.H=nc,o===null?nc:o}function _1(){var o=M.A;return M.A=pZ,o}function Jf(){Qt=4,ro||(ft&4194048)!==ft&&lr.current!==null||(Nl=!0),(io&134217727)===0&&(su&134217727)===0||Ut===null||uo(Ut,ft,dr,!1)}function wg(o,u,s){var c=xt;xt|=2;var h=b1(),v=_1();(Ut!==o||ft!==u)&&(Hf=null,Tl(o,u)),u=!1;var _=Qt;e:do try{if(jt!==0&&ot!==null){var O=ot,A=cr;switch(jt){case 8:kg(),_=6;break e;case 3:case 2:case 9:case 6:lr.current===null&&(u=!0);var V=jt;if(jt=0,cr=null,zl(o,O,A,V),s&&Nl){_=0;break e}break;default:V=jt,jt=0,cr=null,zl(o,O,A,V)}}bZ(),_=Qt;break}catch(Y){g1(o,Y)}while(!0);return u&&o.shellSuspendCounter++,aa=eu=null,xt=c,M.H=h,M.A=v,ot===null&&(Ut=null,ft=0,vf()),_}function bZ(){for(;ot!==null;)$1(ot)}function _Z(o,u){var s=xt;xt|=2;var c=b1(),h=_1();Ut!==o||ft!==u?(Hf=null,Gf=he()+500,Tl(o,u)):Nl=Ii(o,u);e:do try{if(jt!==0&&ot!==null){u=ot;var v=cr;t:switch(jt){case 1:jt=0,cr=null,zl(o,u,v,1);break;case 2:case 9:if(Tw(v)){jt=0,cr=null,S1(u);break}u=function(){jt!==2&&jt!==9||Ut!==o||(jt=7),Ri(o)},v.then(u,u);break e;case 3:jt=7;break e;case 4:jt=5;break e;case 7:Tw(v)?(jt=0,cr=null,S1(u)):(jt=0,cr=null,zl(o,u,v,7));break;case 5:var _=null;switch(ot.tag){case 26:_=ot.memoizedState;case 5:case 27:var O=ot;if(_?uO(_):O.stateNode.complete){jt=0,cr=null;var A=O.sibling;if(A!==null)ot=A;else{var V=O.return;V!==null?(ot=V,Yf(V)):ot=null}break t}}jt=0,cr=null,zl(o,u,v,5);break;case 6:jt=0,cr=null,zl(o,u,v,6);break;case 8:kg(),Qt=6;break e;default:throw Error(i(462))}}$Z();break}catch(Y){g1(o,Y)}while(!0);return aa=eu=null,M.H=c,M.A=h,xt=s,ot!==null?0:(Ut=null,ft=0,vf(),Qt)}function $Z(){for(;ot!==null&&!q();)$1(ot)}function $1(o){var u=qx(o.alternate,o,va);o.memoizedProps=o.pendingProps,u===null?Yf(o):ot=u}function S1(o){var u=o,s=u.alternate;switch(u.tag){case 15:case 0:u=Lx(s,u,u.pendingProps,u.type,void 0,ft);break;case 11:u=Lx(s,u,u.pendingProps,u.type.render,u.ref,ft);break;case 5:Lp(u);default:Hx(s,u),u=ot=_w(u,va),u=qx(s,u,va)}o.memoizedProps=o.pendingProps,u===null?Yf(o):ot=u}function zl(o,u,s,c){aa=eu=null,Lp(u),$l=null,Ks=0;var h=u.return;try{if(sZ(o,h,u,s,ft)){Qt=1,Rf(o,Dr(s,o.current)),ot=null;return}}catch(v){if(h!==null)throw ot=h,v;Qt=1,Rf(o,Dr(s,o.current)),ot=null;return}u.flags&32768?(vt||c===1?o=!0:Nl||(ft&536870912)!==0?o=!1:(ro=o=!0,(c===2||c===9||c===3||c===6)&&(c=lr.current,c!==null&&c.tag===13&&(c.flags|=16384))),k1(u,o)):Yf(u)}function Yf(o){var u=o;do{if((u.flags&32768)!==0){k1(u,ro);return}o=u.return;var s=fZ(u.alternate,u,va);if(s!==null){ot=s;return}if(u=u.sibling,u!==null){ot=u;return}ot=u=o}while(u!==null);Qt===0&&(Qt=5)}function k1(o,u){do{var s=mZ(o.alternate,o);if(s!==null){s.flags&=32767,ot=s;return}if(s=o.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!u&&(o=o.sibling,o!==null)){ot=o;return}ot=o=s}while(o!==null);Qt=6,ot=null}function w1(o,u,s,c,h,v,_,O,A){o.cancelPendingCommit=null;do Xf();while(mn!==0);if((xt&6)!==0)throw Error(i(327));if(u!==null){if(u===o.current)throw Error(i(177));if(v=u.lanes|u.childLanes,v|=fp,P(o,s,v,_,O,A),o===Ut&&(ot=Ut=null,ft=0),Il=u,oo=o,pa=s,_g=v,$g=h,m1=c,(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,xZ(Nt,function(){return j1(),null})):(o.callbackNode=null,o.callbackPriority=0),c=(u.flags&13878)!==0,(u.subtreeFlags&13878)!==0||c){c=M.T,M.T=null,h=ee.p,ee.p=2,_=xt,xt|=4;try{hZ(o,u,s)}finally{xt=_,ee.p=h,M.T=c}}mn=1,x1(),O1(),E1()}}function x1(){if(mn===1){mn=0;var o=oo,u=Il,s=(u.flags&13878)!==0;if((u.subtreeFlags&13878)!==0||s){s=M.T,M.T=null;var c=ee.p;ee.p=2;var h=xt;xt|=4;try{a1(u,o);var v=Cg,_=dw(o.containerInfo),O=v.focusedElem,A=v.selectionRange;if(_!==O&&O&&O.ownerDocument&&cw(O.ownerDocument.documentElement,O)){if(A!==null&&up(O)){var V=A.start,Y=A.end;if(Y===void 0&&(Y=V),"selectionStart"in O)O.selectionStart=V,O.selectionEnd=Math.min(Y,O.value.length);else{var W=O.ownerDocument||document,G=W&&W.defaultView||window;if(G.getSelection){var J=G.getSelection(),Se=O.textContent.length,Ze=Math.min(A.start,Se),Dt=A.end===void 0?Ze:Math.min(A.end,Se);!J.extend&&Ze>Dt&&(_=Dt,Dt=Ze,Ze=_);var L=sw(O,Ze),R=sw(O,Dt);if(L&&R&&(J.rangeCount!==1||J.anchorNode!==L.node||J.anchorOffset!==L.offset||J.focusNode!==R.node||J.focusOffset!==R.offset)){var F=W.createRange();F.setStart(L.node,L.offset),J.removeAllRanges(),Ze>Dt?(J.addRange(F),J.extend(R.node,R.offset)):(F.setEnd(R.node,R.offset),J.addRange(F))}}}}for(W=[],J=O;J=J.parentNode;)J.nodeType===1&&W.push({element:J,left:J.scrollLeft,top:J.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<W.length;O++){var Q=W[O];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}sm=!!Ug,Cg=Ug=null}finally{xt=h,ee.p=c,M.T=s}}o.current=u,mn=2}}function O1(){if(mn===2){mn=0;var o=oo,u=Il,s=(u.flags&8772)!==0;if((u.subtreeFlags&8772)!==0||s){s=M.T,M.T=null;var c=ee.p;ee.p=2;var h=xt;xt|=4;try{e1(o,u.alternate,u)}finally{xt=h,ee.p=c,M.T=s}}mn=3}}function E1(){if(mn===4||mn===3){mn=0,pe();var o=oo,u=Il,s=pa,c=m1;(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?mn=5:(mn=0,Il=oo=null,N1(o,o.pendingLanes));var h=o.pendingLanes;if(h===0&&(ao=null),ze(s),u=u.stateNode,pn&&typeof pn.onCommitFiberRoot=="function")try{pn.onCommitFiberRoot(ti,u,void 0,(u.current.flags&128)===128)}catch{}if(c!==null){u=M.T,h=ee.p,ee.p=2,M.T=null;try{for(var v=o.onRecoverableError,_=0;_<c.length;_++){var O=c[_];v(O.value,{componentStack:O.stack})}}finally{M.T=u,ee.p=h}}(pa&3)!==0&&Xf(),Ri(o),h=o.pendingLanes,(s&261930)!==0&&(h&42)!==0?o===Sg?dc++:(dc=0,Sg=o):dc=0,fc(0)}}function N1(o,u){(o.pooledCacheLanes&=u)===0&&(u=o.pooledCache,u!=null&&(o.pooledCache=null,Gs(u)))}function Xf(){return x1(),O1(),E1(),j1()}function j1(){if(mn!==5)return!1;var o=oo,u=_g;_g=0;var s=ze(pa),c=M.T,h=ee.p;try{ee.p=32>s?32:s,M.T=null,s=$g,$g=null;var v=oo,_=pa;if(mn=0,Il=oo=null,pa=0,(xt&6)!==0)throw Error(i(331));var O=xt;if(xt|=4,c1(v.current),u1(v,v.current,_,s),xt=O,fc(0,!1),pn&&typeof pn.onPostCommitFiberRoot=="function")try{pn.onPostCommitFiberRoot(ti,v)}catch{}return!0}finally{ee.p=h,M.T=c,N1(o,u)}}function I1(o,u,s){u=Dr(s,u),u=eg(o.stateNode,u,2),o=Wa(o,u,2),o!==null&&(U(o,2),Ri(o))}function It(o,u,s){if(o.tag===3)I1(o,o,s);else for(;u!==null;){if(u.tag===3){I1(u,o,s);break}else if(u.tag===1){var c=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(ao===null||!ao.has(c))){o=Dr(s,o),s=Tx(2),c=Wa(u,s,2),c!==null&&(zx(s,c,u,o),U(c,2),Ri(c));break}}u=u.return}}function xg(o,u,s){var c=o.pingCache;if(c===null){c=o.pingCache=new gZ;var h=new Set;c.set(u,h)}else h=c.get(u),h===void 0&&(h=new Set,c.set(u,h));h.has(s)||(gg=!0,h.add(s),o=SZ.bind(null,o,u,s),u.then(o,o))}function SZ(o,u,s){var c=o.pingCache;c!==null&&c.delete(u),o.pingedLanes|=o.suspendedLanes&s,o.warmLanes&=~s,Ut===o&&(ft&s)===s&&(Qt===4||Qt===3&&(ft&62914560)===ft&&300>he()-qf?(xt&2)===0&&Tl(o,0):yg|=s,jl===ft&&(jl=0)),Ri(o)}function T1(o,u){u===0&&(u=af()),o=Xo(o,u),o!==null&&(U(o,u),Ri(o))}function kZ(o){var u=o.memoizedState,s=0;u!==null&&(s=u.retryLane),T1(o,s)}function wZ(o,u){var s=0;switch(o.tag){case 31:case 13:var c=o.stateNode,h=o.memoizedState;h!==null&&(s=h.retryLane);break;case 19:c=o.stateNode;break;case 22:c=o.stateNode._retryCache;break;default:throw Error(i(314))}c!==null&&c.delete(u),T1(o,s)}function xZ(o,u){return xn(o,u)}var Qf=null,Al=null,Og=!1,Wf=!1,Eg=!1,lo=0;function Ri(o){o!==Al&&o.next===null&&(Al===null?Qf=Al=o:Al=Al.next=o),Wf=!0,Og||(Og=!0,EZ())}function fc(o,u){if(!Eg&&Wf){Eg=!0;do for(var s=!1,c=Qf;c!==null;){if(o!==0){var h=c.pendingLanes;if(h===0)var v=0;else{var _=c.suspendedLanes,O=c.pingedLanes;v=(1<<31-Mn(42|o)+1)-1,v&=h&~(_&~O),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(s=!0,U1(c,v))}else v=ft,v=qo(c,c===Ut?v:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(v&3)===0||Ii(c,v)||(s=!0,U1(c,v));c=c.next}while(s);Eg=!1}}function OZ(){z1()}function z1(){Wf=Og=!1;var o=0;lo!==0&&RZ()&&(o=lo);for(var u=he(),s=null,c=Qf;c!==null;){var h=c.next,v=A1(c,u);v===0?(c.next=null,s===null?Qf=h:s.next=h,h===null&&(Al=s)):(s=c,(o!==0||(v&3)!==0)&&(Wf=!0)),c=h}mn!==0&&mn!==5||fc(o),lo!==0&&(lo=0)}function A1(o,u){for(var s=o.suspendedLanes,c=o.pingedLanes,h=o.expirationTimes,v=o.pendingLanes&-62914561;0<v;){var _=31-Mn(v),O=1<<_,A=h[_];A===-1?((O&s)===0||(O&c)!==0)&&(h[_]=il(O,u)):A<=u&&(o.expiredLanes|=O),v&=~O}if(u=Ut,s=ft,s=qo(o,o===u?s:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),c=o.callbackNode,s===0||o===u&&(jt===2||jt===9)||o.cancelPendingCommit!==null)return c!==null&&c!==null&&Gn(c),o.callbackNode=null,o.callbackPriority=0;if((s&3)===0||Ii(o,s)){if(u=s&-s,u===o.callbackPriority)return u;switch(c!==null&&Gn(c),ze(s)){case 2:case 8:s=Pe;break;case 32:s=Nt;break;case 268435456:s=ji;break;default:s=Nt}return c=D1.bind(null,o),s=xn(s,c),o.callbackPriority=u,o.callbackNode=s,u}return c!==null&&c!==null&&Gn(c),o.callbackPriority=2,o.callbackNode=null,2}function D1(o,u){if(mn!==0&&mn!==5)return o.callbackNode=null,o.callbackPriority=0,null;var s=o.callbackNode;if(Xf()&&o.callbackNode!==s)return null;var c=ft;return c=qo(o,o===Ut?c:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),c===0?null:(v1(o,c,u),A1(o,he()),o.callbackNode!=null&&o.callbackNode===s?D1.bind(null,o):null)}function U1(o,u){if(Xf())return null;v1(o,u,!0)}function EZ(){LZ(function(){(xt&6)!==0?xn(me,OZ):z1()})}function Ng(){if(lo===0){var o=yl;o===0&&(o=qa,qa<<=1,(qa&261888)===0&&(qa=256)),lo=o}return lo}function C1(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:uf(""+o)}function R1(o,u){var s=u.ownerDocument.createElement("input");return s.name=u.name,s.value=u.value,o.id&&s.setAttribute("form",o.id),u.parentNode.insertBefore(s,u),o=new FormData(o),s.parentNode.removeChild(s),o}function NZ(o,u,s,c,h){if(u==="submit"&&s&&s.stateNode===h){var v=C1((h[be]||null).action),_=c.submitter;_&&(u=(u=_[be]||null)?C1(u.formAction):_.getAttribute("formAction"),u!==null&&(v=u,_=null));var O=new df("action","action",null,c,h);o.push({event:O,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(lo!==0){var A=_?R1(h,_):new FormData(h);Kp(s,{pending:!0,data:A,method:h.method,action:v},null,A)}}else typeof v=="function"&&(O.preventDefault(),A=_?R1(h,_):new FormData(h),Kp(s,{pending:!0,data:A,method:h.method,action:v},v,A))},currentTarget:h}]})}}for(var jg=0;jg<dp.length;jg++){var Ig=dp[jg],jZ=Ig.toLowerCase(),IZ=Ig[0].toUpperCase()+Ig.slice(1);ai(jZ,"on"+IZ)}ai(hw,"onAnimationEnd"),ai(vw,"onAnimationIteration"),ai(pw,"onAnimationStart"),ai("dblclick","onDoubleClick"),ai("focusin","onFocus"),ai("focusout","onBlur"),ai(GP,"onTransitionRun"),ai(HP,"onTransitionStart"),ai(KP,"onTransitionCancel"),ai(gw,"onTransitionEnd"),nt("onMouseEnter",["mouseout","mouseover"]),nt("onMouseLeave",["mouseout","mouseover"]),nt("onPointerEnter",["pointerout","pointerover"]),nt("onPointerLeave",["pointerout","pointerover"]),Ir("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ir("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ir("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ir("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ir("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ir("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mc="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(" "),TZ=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(mc));function M1(o,u){u=(u&4)!==0;for(var s=0;s<o.length;s++){var c=o[s],h=c.event;c=c.listeners;e:{var v=void 0;if(u)for(var _=c.length-1;0<=_;_--){var O=c[_],A=O.instance,V=O.currentTarget;if(O=O.listener,A!==v&&h.isPropagationStopped())break e;v=O,h.currentTarget=V;try{v(h)}catch(Y){hf(Y)}h.currentTarget=null,v=A}else for(_=0;_<c.length;_++){if(O=c[_],A=O.instance,V=O.currentTarget,O=O.listener,A!==v&&h.isPropagationStopped())break e;v=O,h.currentTarget=V;try{v(h)}catch(Y){hf(Y)}h.currentTarget=null,v=A}}}}function ut(o,u){var s=u[Ot];s===void 0&&(s=u[Ot]=new Set);var c=o+"__bubble";s.has(c)||(L1(u,o,2,!1),s.add(c))}function Tg(o,u,s){var c=0;u&&(c|=4),L1(s,o,c,u)}var em="_reactListening"+Math.random().toString(36).slice(2);function zg(o){if(!o[em]){o[em]=!0,zi.forEach(function(s){s!=="selectionchange"&&(TZ.has(s)||Tg(s,!1,o),Tg(s,!0,o))});var u=o.nodeType===9?o:o.ownerDocument;u===null||u[em]||(u[em]=!0,Tg("selectionchange",!1,u))}}function L1(o,u,s,c){switch(hO(u)){case 2:var h=aB;break;case 8:h=oB;break;default:h=Hg}s=h.bind(null,u,s,o),h=void 0,!Qv||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(h=!0),c?h!==void 0?o.addEventListener(u,s,{capture:!0,passive:h}):o.addEventListener(u,s,!0):h!==void 0?o.addEventListener(u,s,{passive:h}):o.addEventListener(u,s,!1)}function Ag(o,u,s,c,h){var v=c;if((u&1)===0&&(u&2)===0&&c!==null)e:for(;;){if(c===null)return;var _=c.tag;if(_===3||_===4){var O=c.stateNode.containerInfo;if(O===h)break;if(_===4)for(_=c.return;_!==null;){var A=_.tag;if((A===3||A===4)&&_.stateNode.containerInfo===h)return;_=_.return}for(;O!==null;){if(_=jr(O),_===null)return;if(A=_.tag,A===5||A===6||A===26||A===27){c=v=_;continue e}O=O.parentNode}}c=c.return}Vk(function(){var V=v,Y=Yv(s),W=[];e:{var G=yw.get(o);if(G!==void 0){var J=df,Se=o;switch(o){case"keypress":if(sf(s)===0)break e;case"keydown":case"keyup":J=wP;break;case"focusin":Se="focus",J=np;break;case"focusout":Se="blur",J=np;break;case"beforeblur":case"afterblur":J=np;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=Hk;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=fP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=EP;break;case hw:case vw:case pw:J=vP;break;case gw:J=jP;break;case"scroll":case"scrollend":J=cP;break;case"wheel":J=TP;break;case"copy":case"cut":case"paste":J=gP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=Jk;break;case"toggle":case"beforetoggle":J=AP}var Ze=(u&4)!==0,Dt=!Ze&&(o==="scroll"||o==="scrollend"),L=Ze?G!==null?G+"Capture":null:G;Ze=[];for(var R=V,F;R!==null;){var Q=R;if(F=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||F===null||L===null||(Q=Us(R,L),Q!=null&&Ze.push(hc(R,Q,F))),Dt)break;R=R.return}0<Ze.length&&(G=new J(G,Se,null,s,Y),W.push({event:G,listeners:Ze}))}}if((u&7)===0){e:{if(G=o==="mouseover"||o==="pointerover",J=o==="mouseout"||o==="pointerout",G&&s!==Jv&&(Se=s.relatedTarget||s.fromElement)&&(jr(Se)||Se[Fe]))break e;if((J||G)&&(G=Y.window===Y?Y:(G=Y.ownerDocument)?G.defaultView||G.parentWindow:window,J?(Se=s.relatedTarget||s.toElement,J=V,Se=Se?jr(Se):null,Se!==null&&(Dt=a(Se),Ze=Se.tag,Se!==Dt||Ze!==5&&Ze!==27&&Ze!==6)&&(Se=null)):(J=null,Se=V),J!==Se)){if(Ze=Hk,Q="onMouseLeave",L="onMouseEnter",R="mouse",(o==="pointerout"||o==="pointerover")&&(Ze=Jk,Q="onPointerLeave",L="onPointerEnter",R="pointer"),Dt=J==null?G:An(J),F=Se==null?G:An(Se),G=new Ze(Q,R+"leave",J,s,Y),G.target=Dt,G.relatedTarget=F,Q=null,jr(Y)===V&&(Ze=new Ze(L,R+"enter",Se,s,Y),Ze.target=F,Ze.relatedTarget=Dt,Q=Ze),Dt=Q,J&&Se)t:{for(Ze=zZ,L=J,R=Se,F=0,Q=L;Q;Q=Ze(Q))F++;Q=0;for(var Le=R;Le;Le=Ze(Le))Q++;for(;0<F-Q;)L=Ze(L),F--;for(;0<Q-F;)R=Ze(R),Q--;for(;F--;){if(L===R||R!==null&&L===R.alternate){Ze=L;break t}L=Ze(L),R=Ze(R)}Ze=null}else Ze=null;J!==null&&P1(W,G,J,Ze,!1),Se!==null&&Dt!==null&&P1(W,Dt,Se,Ze,!0)}}e:{if(G=V?An(V):window,J=G.nodeName&&G.nodeName.toLowerCase(),J==="select"||J==="input"&&G.type==="file")var $t=rw;else if(tw(G))if(iw)$t=FP;else{$t=ZP;var Ie=PP}else J=G.nodeName,!J||J.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?V&&Kv(V.elementType)&&($t=rw):$t=BP;if($t&&($t=$t(o,V))){nw(W,$t,s,Y);break e}Ie&&Ie(o,G,V),o==="focusout"&&V&&G.type==="number"&&V.memoizedProps.value!=null&&Hv(G,"number",G.value)}switch(Ie=V?An(V):window,o){case"focusin":(tw(Ie)||Ie.contentEditable==="true")&&(cl=Ie,lp=V,Fs=null);break;case"focusout":Fs=lp=cl=null;break;case"mousedown":sp=!0;break;case"contextmenu":case"mouseup":case"dragend":sp=!1,fw(W,s,Y);break;case"selectionchange":if(qP)break;case"keydown":case"keyup":fw(W,s,Y)}var et;if(ip)e:{switch(o){case"compositionstart":var mt="onCompositionStart";break e;case"compositionend":mt="onCompositionEnd";break e;case"compositionupdate":mt="onCompositionUpdate";break e}mt=void 0}else sl?Wk(o,s)&&(mt="onCompositionEnd"):o==="keydown"&&s.keyCode===229&&(mt="onCompositionStart");mt&&(Yk&&s.locale!=="ko"&&(sl||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&sl&&(et=qk()):(Ga=Y,Wv="value"in Ga?Ga.value:Ga.textContent,sl=!0)),Ie=tm(V,mt),0<Ie.length&&(mt=new Kk(mt,o,null,s,Y),W.push({event:mt,listeners:Ie}),et?mt.data=et:(et=ew(s),et!==null&&(mt.data=et)))),(et=UP?CP(o,s):RP(o,s))&&(mt=tm(V,"onBeforeInput"),0<mt.length&&(Ie=new Kk("onBeforeInput","beforeinput",null,s,Y),W.push({event:Ie,listeners:mt}),Ie.data=et)),NZ(W,o,V,s,Y)}M1(W,u)})}function hc(o,u,s){return{instance:o,listener:u,currentTarget:s}}function tm(o,u){for(var s=u+"Capture",c=[];o!==null;){var h=o,v=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||v===null||(h=Us(o,s),h!=null&&c.unshift(hc(o,h,v)),h=Us(o,u),h!=null&&c.push(hc(o,h,v))),o.tag===3)return c;o=o.return}return[]}function zZ(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function P1(o,u,s,c,h){for(var v=u._reactName,_=[];s!==null&&s!==c;){var O=s,A=O.alternate,V=O.stateNode;if(O=O.tag,A!==null&&A===c)break;O!==5&&O!==26&&O!==27||V===null||(A=V,h?(V=Us(s,v),V!=null&&_.unshift(hc(s,V,A))):h||(V=Us(s,v),V!=null&&_.push(hc(s,V,A)))),s=s.return}_.length!==0&&o.push({event:u,listeners:_})}var AZ=/\r\n?/g,DZ=/\u0000|\uFFFD/g;function Z1(o){return(typeof o=="string"?o:""+o).replace(AZ,`
|
|
49
|
+
`).replace(DZ,"")}function B1(o,u){return u=Z1(u),Z1(o)===u}function At(o,u,s,c,h,v){switch(s){case"children":typeof c=="string"?u==="body"||u==="textarea"&&c===""||ol(o,c):(typeof c=="number"||typeof c=="bigint")&&u!=="body"&&ol(o,""+c);break;case"className":Ho(o,"class",c);break;case"tabIndex":Ho(o,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Ho(o,s,c);break;case"style":Bk(o,c,v);break;case"data":if(u!=="object"){Ho(o,"data",c);break}case"src":case"href":if(c===""&&(u!=="a"||s!=="href")){o.removeAttribute(s);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){o.removeAttribute(s);break}c=uf(""+c),o.setAttribute(s,c);break;case"action":case"formAction":if(typeof c=="function"){o.setAttribute(s,"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 v=="function"&&(s==="formAction"?(u!=="input"&&At(o,u,"name",h.name,h,null),At(o,u,"formEncType",h.formEncType,h,null),At(o,u,"formMethod",h.formMethod,h,null),At(o,u,"formTarget",h.formTarget,h,null)):(At(o,u,"encType",h.encType,h,null),At(o,u,"method",h.method,h,null),At(o,u,"target",h.target,h,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){o.removeAttribute(s);break}c=uf(""+c),o.setAttribute(s,c);break;case"onClick":c!=null&&(o.onclick=ta);break;case"onScroll":c!=null&&ut("scroll",o);break;case"onScrollEnd":c!=null&&ut("scrollend",o);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(s=c.__html,s!=null){if(h.children!=null)throw Error(i(60));o.innerHTML=s}}break;case"multiple":o.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":o.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"){o.removeAttribute("xlink:href");break}s=uf(""+c),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);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"?o.setAttribute(s,""+c):o.removeAttribute(s);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"?o.setAttribute(s,""):o.removeAttribute(s);break;case"capture":case"download":c===!0?o.setAttribute(s,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?o.setAttribute(s,c):o.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?o.setAttribute(s,c):o.removeAttribute(s);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?o.removeAttribute(s):o.setAttribute(s,c);break;case"popover":ut("beforetoggle",o),ut("toggle",o),ea(o,"popover",c);break;case"xlinkActuate":ii(o,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":ii(o,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":ii(o,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":ii(o,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":ii(o,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":ii(o,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":ii(o,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":ii(o,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":ii(o,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":ea(o,"is",c);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=lP.get(s)||s,ea(o,s,c))}}function Dg(o,u,s,c,h,v){switch(s){case"style":Bk(o,c,v);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(s=c.__html,s!=null){if(h.children!=null)throw Error(i(60));o.innerHTML=s}}break;case"children":typeof c=="string"?ol(o,c):(typeof c=="number"||typeof c=="bigint")&&ol(o,""+c);break;case"onScroll":c!=null&&ut("scroll",o);break;case"onScrollEnd":c!=null&&ut("scrollend",o);break;case"onClick":c!=null&&(o.onclick=ta);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Go.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(h=s.endsWith("Capture"),u=s.slice(2,h?s.length-7:void 0),v=o[be]||null,v=v!=null?v[s]:null,typeof v=="function"&&o.removeEventListener(u,v,h),typeof c=="function")){typeof v!="function"&&v!==null&&(s in o?o[s]=null:o.hasAttribute(s)&&o.removeAttribute(s)),o.addEventListener(u,c,h);break e}s in o?o[s]=c:c===!0?o.setAttribute(s,""):ea(o,s,c)}}}function In(o,u,s){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ut("error",o),ut("load",o);var c=!1,h=!1,v;for(v in s)if(s.hasOwnProperty(v)){var _=s[v];if(_!=null)switch(v){case"src":c=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,u));default:At(o,u,v,_,s,null)}}h&&At(o,u,"srcSet",s.srcSet,s,null),c&&At(o,u,"src",s.src,s,null);return;case"input":ut("invalid",o);var O=v=_=h=null,A=null,V=null;for(c in s)if(s.hasOwnProperty(c)){var Y=s[c];if(Y!=null)switch(c){case"name":h=Y;break;case"type":_=Y;break;case"checked":A=Y;break;case"defaultChecked":V=Y;break;case"value":v=Y;break;case"defaultValue":O=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,u));break;default:At(o,u,c,Y,s,null)}}Mk(o,v,O,A,V,_,h,!1);return;case"select":ut("invalid",o),c=_=v=null;for(h in s)if(s.hasOwnProperty(h)&&(O=s[h],O!=null))switch(h){case"value":v=O;break;case"defaultValue":_=O;break;case"multiple":c=O;default:At(o,u,h,O,s,null)}u=v,s=_,o.multiple=!!c,u!=null?al(o,!!c,u,!1):s!=null&&al(o,!!c,s,!0);return;case"textarea":ut("invalid",o),v=h=c=null;for(_ in s)if(s.hasOwnProperty(_)&&(O=s[_],O!=null))switch(_){case"value":c=O;break;case"defaultValue":h=O;break;case"children":v=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(i(91));break;default:At(o,u,_,O,s,null)}Pk(o,c,h,v);return;case"option":for(A in s)if(s.hasOwnProperty(A)&&(c=s[A],c!=null))switch(A){case"selected":o.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:At(o,u,A,c,s,null)}return;case"dialog":ut("beforetoggle",o),ut("toggle",o),ut("cancel",o),ut("close",o);break;case"iframe":case"object":ut("load",o);break;case"video":case"audio":for(c=0;c<mc.length;c++)ut(mc[c],o);break;case"image":ut("error",o),ut("load",o);break;case"details":ut("toggle",o);break;case"embed":case"source":case"link":ut("error",o),ut("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in s)if(s.hasOwnProperty(V)&&(c=s[V],c!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,u));default:At(o,u,V,c,s,null)}return;default:if(Kv(u)){for(Y in s)s.hasOwnProperty(Y)&&(c=s[Y],c!==void 0&&Dg(o,u,Y,c,s,void 0));return}}for(O in s)s.hasOwnProperty(O)&&(c=s[O],c!=null&&At(o,u,O,c,s,null))}function UZ(o,u,s,c){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,v=null,_=null,O=null,A=null,V=null,Y=null;for(J in s){var W=s[J];if(s.hasOwnProperty(J)&&W!=null)switch(J){case"checked":break;case"value":break;case"defaultValue":A=W;default:c.hasOwnProperty(J)||At(o,u,J,null,c,W)}}for(var G in c){var J=c[G];if(W=s[G],c.hasOwnProperty(G)&&(J!=null||W!=null))switch(G){case"type":v=J;break;case"name":h=J;break;case"checked":V=J;break;case"defaultChecked":Y=J;break;case"value":_=J;break;case"defaultValue":O=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(i(137,u));break;default:J!==W&&At(o,u,G,J,c,W)}}Gv(o,_,O,A,V,Y,v,h);return;case"select":J=_=O=G=null;for(v in s)if(A=s[v],s.hasOwnProperty(v)&&A!=null)switch(v){case"value":break;case"multiple":J=A;default:c.hasOwnProperty(v)||At(o,u,v,null,c,A)}for(h in c)if(v=c[h],A=s[h],c.hasOwnProperty(h)&&(v!=null||A!=null))switch(h){case"value":G=v;break;case"defaultValue":O=v;break;case"multiple":_=v;default:v!==A&&At(o,u,h,v,c,A)}u=O,s=_,c=J,G!=null?al(o,!!s,G,!1):!!c!=!!s&&(u!=null?al(o,!!s,u,!0):al(o,!!s,s?[]:"",!1));return;case"textarea":J=G=null;for(O in s)if(h=s[O],s.hasOwnProperty(O)&&h!=null&&!c.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:At(o,u,O,null,c,h)}for(_ in c)if(h=c[_],v=s[_],c.hasOwnProperty(_)&&(h!=null||v!=null))switch(_){case"value":G=h;break;case"defaultValue":J=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(i(91));break;default:h!==v&&At(o,u,_,h,c,v)}Lk(o,G,J);return;case"option":for(var Se in s)if(G=s[Se],s.hasOwnProperty(Se)&&G!=null&&!c.hasOwnProperty(Se))switch(Se){case"selected":o.selected=!1;break;default:At(o,u,Se,null,c,G)}for(A in c)if(G=c[A],J=s[A],c.hasOwnProperty(A)&&G!==J&&(G!=null||J!=null))switch(A){case"selected":o.selected=G&&typeof G!="function"&&typeof G!="symbol";break;default:At(o,u,A,G,c,J)}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 Ze in s)G=s[Ze],s.hasOwnProperty(Ze)&&G!=null&&!c.hasOwnProperty(Ze)&&At(o,u,Ze,null,c,G);for(V in c)if(G=c[V],J=s[V],c.hasOwnProperty(V)&&G!==J&&(G!=null||J!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(i(137,u));break;default:At(o,u,V,G,c,J)}return;default:if(Kv(u)){for(var Dt in s)G=s[Dt],s.hasOwnProperty(Dt)&&G!==void 0&&!c.hasOwnProperty(Dt)&&Dg(o,u,Dt,void 0,c,G);for(Y in c)G=c[Y],J=s[Y],!c.hasOwnProperty(Y)||G===J||G===void 0&&J===void 0||Dg(o,u,Y,G,c,J);return}}for(var L in s)G=s[L],s.hasOwnProperty(L)&&G!=null&&!c.hasOwnProperty(L)&&At(o,u,L,null,c,G);for(W in c)G=c[W],J=s[W],!c.hasOwnProperty(W)||G===J||G==null&&J==null||At(o,u,W,G,c,J)}function F1(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function CZ(){if(typeof performance.getEntriesByType=="function"){for(var o=0,u=0,s=performance.getEntriesByType("resource"),c=0;c<s.length;c++){var h=s[c],v=h.transferSize,_=h.initiatorType,O=h.duration;if(v&&O&&F1(_)){for(_=0,O=h.responseEnd,c+=1;c<s.length;c++){var A=s[c],V=A.startTime;if(V>O)break;var Y=A.transferSize,W=A.initiatorType;Y&&F1(W)&&(A=A.responseEnd,_+=Y*(A<O?1:(O-V)/(A-V)))}if(--c,u+=8*(v+_)/(h.duration/1e3),o++,10<o)break}}if(0<o)return u/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var Ug=null,Cg=null;function nm(o){return o.nodeType===9?o:o.ownerDocument}function V1(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function q1(o,u){if(o===0)switch(u){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&u==="foreignObject"?0:o}function Rg(o,u){return o==="textarea"||o==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.children=="bigint"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var Mg=null;function RZ(){var o=window.event;return o&&o.type==="popstate"?o===Mg?!1:(Mg=o,!0):(Mg=null,!1)}var G1=typeof setTimeout=="function"?setTimeout:void 0,MZ=typeof clearTimeout=="function"?clearTimeout:void 0,H1=typeof Promise=="function"?Promise:void 0,LZ=typeof queueMicrotask=="function"?queueMicrotask:typeof H1<"u"?function(o){return H1.resolve(null).then(o).catch(PZ)}:G1;function PZ(o){setTimeout(function(){throw o})}function so(o){return o==="head"}function K1(o,u){var s=u,c=0;do{var h=s.nextSibling;if(o.removeChild(s),h&&h.nodeType===8)if(s=h.data,s==="/$"||s==="/&"){if(c===0){o.removeChild(h),Rl(u);return}c--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")c++;else if(s==="html")vc(o.ownerDocument.documentElement);else if(s==="head"){s=o.ownerDocument.head,vc(s);for(var v=s.firstChild;v;){var _=v.nextSibling,O=v.nodeName;v[wt]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&v.rel.toLowerCase()==="stylesheet"||s.removeChild(v),v=_}}else s==="body"&&vc(o.ownerDocument.body);s=h}while(s);Rl(u)}function J1(o,u){var s=o;o=0;do{var c=s.nextSibling;if(s.nodeType===1?u?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(u?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),c&&c.nodeType===8)if(s=c.data,s==="/$"){if(o===0)break;o--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||o++;s=c}while(s)}function Lg(o){var u=o.firstChild;for(u&&u.nodeType===10&&(u=u.nextSibling);u;){var s=u;switch(u=u.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Lg(s),ri(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}o.removeChild(s)}}function ZZ(o,u,s,c){for(;o.nodeType===1;){var h=s;if(o.nodeName.toLowerCase()!==u.toLowerCase()){if(!c&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(c){if(!o[wt])switch(u){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(v=o.getAttribute("rel"),v==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(v!==h.rel||o.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||o.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||o.getAttribute("title")!==(h.title==null?null:h.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(v=o.getAttribute("src"),(v!==(h.src==null?null:h.src)||o.getAttribute("type")!==(h.type==null?null:h.type)||o.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&v&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(u==="input"&&o.type==="hidden"){var v=h.name==null?null:""+h.name;if(h.type==="hidden"&&o.getAttribute("name")===v)return o}else return o;if(o=Lr(o.nextSibling),o===null)break}return null}function BZ(o,u,s){if(u==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!s||(o=Lr(o.nextSibling),o===null))return null;return o}function Y1(o,u){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!u||(o=Lr(o.nextSibling),o===null))return null;return o}function Pg(o){return o.data==="$?"||o.data==="$~"}function Zg(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function FZ(o,u){var s=o.ownerDocument;if(o.data==="$~")o._reactRetry=u;else if(o.data!=="$?"||s.readyState!=="loading")u();else{var c=function(){u(),s.removeEventListener("DOMContentLoaded",c)};s.addEventListener("DOMContentLoaded",c),o._reactRetry=c}}function Lr(o){for(;o!=null;o=o.nextSibling){var u=o.nodeType;if(u===1||u===3)break;if(u===8){if(u=o.data,u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"||u==="F!"||u==="F")break;if(u==="/$"||u==="/&")return null}}return o}var Bg=null;function X1(o){o=o.nextSibling;for(var u=0;o;){if(o.nodeType===8){var s=o.data;if(s==="/$"||s==="/&"){if(u===0)return Lr(o.nextSibling);u--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||u++}o=o.nextSibling}return null}function Q1(o){o=o.previousSibling;for(var u=0;o;){if(o.nodeType===8){var s=o.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(u===0)return o;u--}else s!=="/$"&&s!=="/&"||u++}o=o.previousSibling}return null}function W1(o,u,s){switch(u=nm(s),o){case"html":if(o=u.documentElement,!o)throw Error(i(452));return o;case"head":if(o=u.head,!o)throw Error(i(453));return o;case"body":if(o=u.body,!o)throw Error(i(454));return o;default:throw Error(i(451))}}function vc(o){for(var u=o.attributes;u.length;)o.removeAttributeNode(u[0]);ri(o)}var Pr=new Map,eO=new Set;function rm(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var ga=ee.d;ee.d={f:VZ,r:qZ,D:GZ,C:HZ,L:KZ,m:JZ,X:XZ,S:YZ,M:QZ};function VZ(){var o=ga.f(),u=Kf();return o||u}function qZ(o){var u=Ln(o);u!==null&&u.tag===5&&u.type==="form"?gx(u):ga.r(o)}var Dl=typeof document>"u"?null:document;function tO(o,u,s){var c=Dl;if(c&&typeof u=="string"&&u){var h=zr(u);h='link[rel="'+o+'"][href="'+h+'"]',typeof s=="string"&&(h+='[crossorigin="'+s+'"]'),eO.has(h)||(eO.add(h),o={rel:o,crossOrigin:s,href:u},c.querySelector(h)===null&&(u=c.createElement("link"),In(u,"link",o),Kt(u),c.head.appendChild(u)))}}function GZ(o){ga.D(o),tO("dns-prefetch",o,null)}function HZ(o,u){ga.C(o,u),tO("preconnect",o,u)}function KZ(o,u,s){ga.L(o,u,s);var c=Dl;if(c&&o&&u){var h='link[rel="preload"][as="'+zr(u)+'"]';u==="image"&&s&&s.imageSrcSet?(h+='[imagesrcset="'+zr(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(h+='[imagesizes="'+zr(s.imageSizes)+'"]')):h+='[href="'+zr(o)+'"]';var v=h;switch(u){case"style":v=Ul(o);break;case"script":v=Cl(o)}Pr.has(v)||(o=g({rel:"preload",href:u==="image"&&s&&s.imageSrcSet?void 0:o,as:u},s),Pr.set(v,o),c.querySelector(h)!==null||u==="style"&&c.querySelector(pc(v))||u==="script"&&c.querySelector(gc(v))||(u=c.createElement("link"),In(u,"link",o),Kt(u),c.head.appendChild(u)))}}function JZ(o,u){ga.m(o,u);var s=Dl;if(s&&o){var c=u&&typeof u.as=="string"?u.as:"script",h='link[rel="modulepreload"][as="'+zr(c)+'"][href="'+zr(o)+'"]',v=h;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Cl(o)}if(!Pr.has(v)&&(o=g({rel:"modulepreload",href:o},u),Pr.set(v,o),s.querySelector(h)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(gc(v)))return}c=s.createElement("link"),In(c,"link",o),Kt(c),s.head.appendChild(c)}}}function YZ(o,u,s){ga.S(o,u,s);var c=Dl;if(c&&o){var h=Ti(c).hoistableStyles,v=Ul(o);u=u||"default";var _=h.get(v);if(!_){var O={loading:0,preload:null};if(_=c.querySelector(pc(v)))O.loading=5;else{o=g({rel:"stylesheet",href:o,"data-precedence":u},s),(s=Pr.get(v))&&Fg(o,s);var A=_=c.createElement("link");Kt(A),In(A,"link",o),A._p=new Promise(function(V,Y){A.onload=V,A.onerror=Y}),A.addEventListener("load",function(){O.loading|=1}),A.addEventListener("error",function(){O.loading|=2}),O.loading|=4,im(_,u,c)}_={type:"stylesheet",instance:_,count:1,state:O},h.set(v,_)}}}function XZ(o,u){ga.X(o,u);var s=Dl;if(s&&o){var c=Ti(s).hoistableScripts,h=Cl(o),v=c.get(h);v||(v=s.querySelector(gc(h)),v||(o=g({src:o,async:!0},u),(u=Pr.get(h))&&Vg(o,u),v=s.createElement("script"),Kt(v),In(v,"link",o),s.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},c.set(h,v))}}function QZ(o,u){ga.M(o,u);var s=Dl;if(s&&o){var c=Ti(s).hoistableScripts,h=Cl(o),v=c.get(h);v||(v=s.querySelector(gc(h)),v||(o=g({src:o,async:!0,type:"module"},u),(u=Pr.get(h))&&Vg(o,u),v=s.createElement("script"),Kt(v),In(v,"link",o),s.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},c.set(h,v))}}function nO(o,u,s,c){var h=(h=Ae.current)?rm(h):null;if(!h)throw Error(i(446));switch(o){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(u=Ul(s.href),s=Ti(h).hoistableStyles,c=s.get(u),c||(c={type:"style",instance:null,count:0,state:null},s.set(u,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){o=Ul(s.href);var v=Ti(h).hoistableStyles,_=v.get(o);if(_||(h=h.ownerDocument||h,_={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(o,_),(v=h.querySelector(pc(o)))&&!v._p&&(_.instance=v,_.state.loading=5),Pr.has(o)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Pr.set(o,s),v||WZ(h,o,s,_.state))),u&&c===null)throw Error(i(528,""));return _}if(u&&c!==null)throw Error(i(529,""));return null;case"script":return u=s.async,s=s.src,typeof s=="string"&&u&&typeof u!="function"&&typeof u!="symbol"?(u=Cl(s),s=Ti(h).hoistableScripts,c=s.get(u),c||(c={type:"script",instance:null,count:0,state:null},s.set(u,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,o))}}function Ul(o){return'href="'+zr(o)+'"'}function pc(o){return'link[rel="stylesheet"]['+o+"]"}function rO(o){return g({},o,{"data-precedence":o.precedence,precedence:null})}function WZ(o,u,s,c){o.querySelector('link[rel="preload"][as="style"]['+u+"]")?c.loading=1:(u=o.createElement("link"),c.preload=u,u.addEventListener("load",function(){return c.loading|=1}),u.addEventListener("error",function(){return c.loading|=2}),In(u,"link",s),Kt(u),o.head.appendChild(u))}function Cl(o){return'[src="'+zr(o)+'"]'}function gc(o){return"script[async]"+o}function iO(o,u,s){if(u.count++,u.instance===null)switch(u.type){case"style":var c=o.querySelector('style[data-href~="'+zr(s.href)+'"]');if(c)return u.instance=c,Kt(c),c;var h=g({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return c=(o.ownerDocument||o).createElement("style"),Kt(c),In(c,"style",h),im(c,s.precedence,o),u.instance=c;case"stylesheet":h=Ul(s.href);var v=o.querySelector(pc(h));if(v)return u.state.loading|=4,u.instance=v,Kt(v),v;c=rO(s),(h=Pr.get(h))&&Fg(c,h),v=(o.ownerDocument||o).createElement("link"),Kt(v);var _=v;return _._p=new Promise(function(O,A){_.onload=O,_.onerror=A}),In(v,"link",c),u.state.loading|=4,im(v,s.precedence,o),u.instance=v;case"script":return v=Cl(s.src),(h=o.querySelector(gc(v)))?(u.instance=h,Kt(h),h):(c=s,(h=Pr.get(v))&&(c=g({},s),Vg(c,h)),o=o.ownerDocument||o,h=o.createElement("script"),Kt(h),In(h,"link",c),o.head.appendChild(h),u.instance=h);case"void":return null;default:throw Error(i(443,u.type))}else u.type==="stylesheet"&&(u.state.loading&4)===0&&(c=u.instance,u.state.loading|=4,im(c,s.precedence,o));return u.instance}function im(o,u,s){for(var c=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=c.length?c[c.length-1]:null,v=h,_=0;_<c.length;_++){var O=c[_];if(O.dataset.precedence===u)v=O;else if(v!==h)break}v?v.parentNode.insertBefore(o,v.nextSibling):(u=s.nodeType===9?s.head:s,u.insertBefore(o,u.firstChild))}function Fg(o,u){o.crossOrigin==null&&(o.crossOrigin=u.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=u.referrerPolicy),o.title==null&&(o.title=u.title)}function Vg(o,u){o.crossOrigin==null&&(o.crossOrigin=u.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=u.referrerPolicy),o.integrity==null&&(o.integrity=u.integrity)}var am=null;function aO(o,u,s){if(am===null){var c=new Map,h=am=new Map;h.set(s,c)}else h=am,c=h.get(s),c||(c=new Map,h.set(s,c));if(c.has(o))return c;for(c.set(o,null),s=s.getElementsByTagName(o),h=0;h<s.length;h++){var v=s[h];if(!(v[wt]||v[$e]||o==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var _=v.getAttribute(u)||"";_=o+_;var O=c.get(_);O?O.push(v):c.set(_,[v])}}return c}function oO(o,u,s){o=o.ownerDocument||o,o.head.insertBefore(s,u==="title"?o.querySelector("head > title"):null)}function eB(o,u,s){if(s===1||u.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof u.precedence!="string"||typeof u.href!="string"||u.href==="")break;return!0;case"link":if(typeof u.rel!="string"||typeof u.href!="string"||u.href===""||u.onLoad||u.onError)break;switch(u.rel){case"stylesheet":return o=u.disabled,typeof u.precedence=="string"&&o==null;default:return!0}case"script":if(u.async&&typeof u.async!="function"&&typeof u.async!="symbol"&&!u.onLoad&&!u.onError&&u.src&&typeof u.src=="string")return!0}return!1}function uO(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function tB(o,u,s,c){if(s.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var h=Ul(c.href),v=u.querySelector(pc(h));if(v){u=v._p,u!==null&&typeof u=="object"&&typeof u.then=="function"&&(o.count++,o=om.bind(o),u.then(o,o)),s.state.loading|=4,s.instance=v,Kt(v);return}v=u.ownerDocument||u,c=rO(c),(h=Pr.get(h))&&Fg(c,h),v=v.createElement("link"),Kt(v);var _=v;_._p=new Promise(function(O,A){_.onload=O,_.onerror=A}),In(v,"link",c),s.instance=v}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(s,u),(u=s.state.preload)&&(s.state.loading&3)===0&&(o.count++,s=om.bind(o),u.addEventListener("load",s),u.addEventListener("error",s))}}var qg=0;function nB(o,u){return o.stylesheets&&o.count===0&&lm(o,o.stylesheets),0<o.count||0<o.imgCount?function(s){var c=setTimeout(function(){if(o.stylesheets&&lm(o,o.stylesheets),o.unsuspend){var v=o.unsuspend;o.unsuspend=null,v()}},6e4+u);0<o.imgBytes&&qg===0&&(qg=62500*CZ());var h=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&lm(o,o.stylesheets),o.unsuspend)){var v=o.unsuspend;o.unsuspend=null,v()}},(o.imgBytes>qg?50:800)+u);return o.unsuspend=s,function(){o.unsuspend=null,clearTimeout(c),clearTimeout(h)}}:null}function om(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lm(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var um=null;function lm(o,u){o.stylesheets=null,o.unsuspend!==null&&(o.count++,um=new Map,u.forEach(rB,o),um=null,om.call(o))}function rB(o,u){if(!(u.state.loading&4)){var s=um.get(o);if(s)var c=s.get(null);else{s=new Map,um.set(o,s);for(var h=o.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<h.length;v++){var _=h[v];(_.nodeName==="LINK"||_.getAttribute("media")!=="not all")&&(s.set(_.dataset.precedence,_),c=_)}c&&s.set(null,c)}h=u.instance,_=h.getAttribute("data-precedence"),v=s.get(_)||c,v===c&&s.set(null,h),s.set(_,h),this.count++,c=om.bind(this),h.addEventListener("load",c),h.addEventListener("error",c),v?v.parentNode.insertBefore(h,v.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(h,o.firstChild)),u.state.loading|=4}}var yc={$$typeof:N,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function iB(o,u,s,c,h,v,_,O,A){this.tag=1,this.containerInfo=o,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=Ds(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ds(0),this.hiddenUpdates=Ds(null),this.identifierPrefix=c,this.onUncaughtError=h,this.onCaughtError=v,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function lO(o,u,s,c,h,v,_,O,A,V,Y,W){return o=new iB(o,u,s,_,A,V,Y,W,O),u=1,v===!0&&(u|=24),v=ur(3,null,null,u),o.current=v,v.stateNode=o,u=wp(),u.refCount++,o.pooledCache=u,u.refCount++,v.memoizedState={element:c,isDehydrated:s,cache:u},Np(v),o}function sO(o){return o?(o=ml,o):ml}function cO(o,u,s,c,h,v){h=sO(h),c.context===null?c.context=h:c.pendingContext=h,c=Qa(u),c.payload={element:s},v=v===void 0?null:v,v!==null&&(c.callback=v),s=Wa(o,c,u),s!==null&&(Qn(s,o,u),Ys(s,o,u))}function dO(o,u){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var s=o.retryLane;o.retryLane=s!==0&&s<u?s:u}}function Gg(o,u){dO(o,u),(o=o.alternate)&&dO(o,u)}function fO(o){if(o.tag===13||o.tag===31){var u=Xo(o,67108864);u!==null&&Qn(u,o,67108864),Gg(o,67108864)}}function mO(o){if(o.tag===13||o.tag===31){var u=fr();u=Te(u);var s=Xo(o,u);s!==null&&Qn(s,o,u),Gg(o,u)}}var sm=!0;function aB(o,u,s,c){var h=M.T;M.T=null;var v=ee.p;try{ee.p=2,Hg(o,u,s,c)}finally{ee.p=v,M.T=h}}function oB(o,u,s,c){var h=M.T;M.T=null;var v=ee.p;try{ee.p=8,Hg(o,u,s,c)}finally{ee.p=v,M.T=h}}function Hg(o,u,s,c){if(sm){var h=Kg(c);if(h===null)Ag(o,u,c,cm,s),vO(o,c);else if(lB(h,o,u,s,c))c.stopPropagation();else if(vO(o,c),u&4&&-1<uB.indexOf(o)){for(;h!==null;){var v=Ln(h);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var _=Qi(v.pendingLanes);if(_!==0){var O=v;for(O.pendingLanes|=2,O.entangledLanes|=2;_;){var A=1<<31-Mn(_);O.entanglements[1]|=A,_&=~A}Ri(v),(xt&6)===0&&(Gf=he()+500,fc(0))}}break;case 31:case 13:O=Xo(v,2),O!==null&&Qn(O,v,2),Kf(),Gg(v,2)}if(v=Kg(c),v===null&&Ag(o,u,c,cm,s),v===h)break;h=v}h!==null&&c.stopPropagation()}else Ag(o,u,c,null,s)}}function Kg(o){return o=Yv(o),Jg(o)}var cm=null;function Jg(o){if(cm=null,o=jr(o),o!==null){var u=a(o);if(u===null)o=null;else{var s=u.tag;if(s===13){if(o=l(u),o!==null)return o;o=null}else if(s===31){if(o=d(u),o!==null)return o;o=null}else if(s===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;o=null}else u!==o&&(o=null)}}return cm=o,null}function hO(o){switch(o){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(Oe()){case me:return 2;case Pe:return 8;case Nt:case ir:return 32;case ji:return 268435456;default:return 32}default:return 32}}var Yg=!1,co=null,fo=null,mo=null,bc=new Map,_c=new Map,ho=[],uB="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 vO(o,u){switch(o){case"focusin":case"focusout":co=null;break;case"dragenter":case"dragleave":fo=null;break;case"mouseover":case"mouseout":mo=null;break;case"pointerover":case"pointerout":bc.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":_c.delete(u.pointerId)}}function $c(o,u,s,c,h,v){return o===null||o.nativeEvent!==v?(o={blockedOn:u,domEventName:s,eventSystemFlags:c,nativeEvent:v,targetContainers:[h]},u!==null&&(u=Ln(u),u!==null&&fO(u)),o):(o.eventSystemFlags|=c,u=o.targetContainers,h!==null&&u.indexOf(h)===-1&&u.push(h),o)}function lB(o,u,s,c,h){switch(u){case"focusin":return co=$c(co,o,u,s,c,h),!0;case"dragenter":return fo=$c(fo,o,u,s,c,h),!0;case"mouseover":return mo=$c(mo,o,u,s,c,h),!0;case"pointerover":var v=h.pointerId;return bc.set(v,$c(bc.get(v)||null,o,u,s,c,h)),!0;case"gotpointercapture":return v=h.pointerId,_c.set(v,$c(_c.get(v)||null,o,u,s,c,h)),!0}return!1}function pO(o){var u=jr(o.target);if(u!==null){var s=a(u);if(s!==null){if(u=s.tag,u===13){if(u=l(s),u!==null){o.blockedOn=u,Ce(o.priority,function(){mO(s)});return}}else if(u===31){if(u=d(s),u!==null){o.blockedOn=u,Ce(o.priority,function(){mO(s)});return}}else if(u===3&&s.stateNode.current.memoizedState.isDehydrated){o.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}o.blockedOn=null}function dm(o){if(o.blockedOn!==null)return!1;for(var u=o.targetContainers;0<u.length;){var s=Kg(o.nativeEvent);if(s===null){s=o.nativeEvent;var c=new s.constructor(s.type,s);Jv=c,s.target.dispatchEvent(c),Jv=null}else return u=Ln(s),u!==null&&fO(u),o.blockedOn=s,!1;u.shift()}return!0}function gO(o,u,s){dm(o)&&s.delete(u)}function sB(){Yg=!1,co!==null&&dm(co)&&(co=null),fo!==null&&dm(fo)&&(fo=null),mo!==null&&dm(mo)&&(mo=null),bc.forEach(gO),_c.forEach(gO)}function fm(o,u){o.blockedOn===u&&(o.blockedOn=null,Yg||(Yg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,sB)))}var mm=null;function yO(o){mm!==o&&(mm=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){mm===o&&(mm=null);for(var u=0;u<o.length;u+=3){var s=o[u],c=o[u+1],h=o[u+2];if(typeof c!="function"){if(Jg(c||s)===null)continue;break}var v=Ln(s);v!==null&&(o.splice(u,3),u-=3,Kp(v,{pending:!0,data:h,method:s.method,action:c},c,h))}}))}function Rl(o){function u(A){return fm(A,o)}co!==null&&fm(co,o),fo!==null&&fm(fo,o),mo!==null&&fm(mo,o),bc.forEach(u),_c.forEach(u);for(var s=0;s<ho.length;s++){var c=ho[s];c.blockedOn===o&&(c.blockedOn=null)}for(;0<ho.length&&(s=ho[0],s.blockedOn===null);)pO(s),s.blockedOn===null&&ho.shift();if(s=(o.ownerDocument||o).$$reactFormReplay,s!=null)for(c=0;c<s.length;c+=3){var h=s[c],v=s[c+1],_=h[be]||null;if(typeof v=="function")_||yO(s);else if(_){var O=null;if(v&&v.hasAttribute("formAction")){if(h=v,_=v[be]||null)O=_.formAction;else if(Jg(h)!==null)continue}else O=_.action;typeof O=="function"?s[c+1]=O:(s.splice(c,3),c-=3),yO(s)}}}function bO(){function o(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:function(){return new Promise(function(_){return h=_})},focusReset:"manual",scroll:"manual"})}function u(){h!==null&&(h(),h=null),c||setTimeout(s,20)}function s(){if(!c&&!navigation.transition){var v=navigation.currentEntry;v&&v.url!=null&&navigation.navigate(v.url,{state:v.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,h=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",u),navigation.addEventListener("navigateerror",u),setTimeout(s,100),function(){c=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",u),navigation.removeEventListener("navigateerror",u),h!==null&&(h(),h=null)}}}function Xg(o){this._internalRoot=o}hm.prototype.render=Xg.prototype.render=function(o){var u=this._internalRoot;if(u===null)throw Error(i(409));var s=u.current,c=fr();cO(s,c,o,u,null,null)},hm.prototype.unmount=Xg.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var u=o.containerInfo;cO(o.current,2,null,o,null,null),Kf(),u[Fe]=null}};function hm(o){this._internalRoot=o}hm.prototype.unstable_scheduleHydration=function(o){if(o){var u=Ee();o={blockedOn:null,target:o,priority:u};for(var s=0;s<ho.length&&u!==0&&u<ho[s].priority;s++);ho.splice(s,0,o),s===0&&pO(o)}};var _O=t.version;if(_O!=="19.2.0")throw Error(i(527,_O,"19.2.0"));ee.findDOMNode=function(o){var u=o._reactInternals;if(u===void 0)throw typeof o.render=="function"?Error(i(188)):(o=Object.keys(o).join(","),Error(i(268,o)));return o=m(u),o=o!==null?p(o):null,o=o===null?null:o.stateNode,o};var cB={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vm.isDisabled&&vm.supportsFiber)try{ti=vm.inject(cB),pn=vm}catch{}}return kc.createRoot=function(o,u){if(!n(o))throw Error(i(299));var s=!1,c="",h=Ex,v=Nx,_=jx;return u!=null&&(u.unstable_strictMode===!0&&(s=!0),u.identifierPrefix!==void 0&&(c=u.identifierPrefix),u.onUncaughtError!==void 0&&(h=u.onUncaughtError),u.onCaughtError!==void 0&&(v=u.onCaughtError),u.onRecoverableError!==void 0&&(_=u.onRecoverableError)),u=lO(o,1,!1,null,null,s,c,null,h,v,_,bO),o[Fe]=u.current,zg(o),new Xg(u)},kc.hydrateRoot=function(o,u,s){if(!n(o))throw Error(i(299));var c=!1,h="",v=Ex,_=Nx,O=jx,A=null;return s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(v=s.onUncaughtError),s.onCaughtError!==void 0&&(_=s.onCaughtError),s.onRecoverableError!==void 0&&(O=s.onRecoverableError),s.formState!==void 0&&(A=s.formState)),u=lO(o,1,!0,u,s??null,c,h,A,v,_,O,bO),u.context=sO(null),s=u.current,c=fr(),c=Te(c),h=Qa(c),h.callback=null,Wa(s,h,c),s=c,u.current.lanes=s,U(u,s),Ri(u),o[Fe]=u.current,zg(o),new hm(u)},kc.version="19.2.0",kc}var TO;function SB(){if(TO)return ey.exports;TO=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),ey.exports=$B(),ey.exports}var kB=SB(),k=Ah();const Tt=ws(k);/**
|
|
50
|
+
* react-router v7.9.4
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Remix Software Inc.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/var Bj=e=>{throw TypeError(e)},wB=(e,t,r)=>t.has(e)||Bj("Cannot "+r),ay=(e,t,r)=>(wB(e,t,"read from private field"),r?r.call(e):t.get(e)),xB=(e,t,r)=>t.has(e)?Bj("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),zO="popstate";function OB(e={}){function t(i,n){let{pathname:a,search:l,hash:d}=i.location;return Hc("",{pathname:a,search:l,hash:d},n.state&&n.state.usr||null,n.state&&n.state.key||"default")}function r(i,n){return typeof n=="string"?n:Eo(n)}return NB(t,r,null,e)}function lt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function EB(){return Math.random().toString(36).substring(2,10)}function AO(e,t){return{usr:e.state,key:e.key,idx:t}}function Hc(e,t,r=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Do(t):t,state:r,key:t&&t.key||i||EB()}}function Eo({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Do(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let i=e.indexOf("?");i>=0&&(t.search=e.substring(i),e=e.substring(0,i)),e&&(t.pathname=e)}return t}function NB(e,t,r,i={}){let{window:n=document.defaultView,v5Compat:a=!1}=i,l=n.history,d="POP",f=null,m=p();m==null&&(m=0,l.replaceState({...l.state,idx:m},""));function p(){return(l.state||{idx:null}).idx}function g(){d="POP";let x=p(),$=x==null?null:x-m;m=x,f&&f({action:d,location:j.location,delta:$})}function y(x,$){d="PUSH";let I=Hc(j.location,x,$);m=p()+1;let N=AO(I,m),z=j.createHref(I);try{l.pushState(N,"",z)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;n.location.assign(z)}a&&f&&f({action:d,location:j.location,delta:1})}function S(x,$){d="REPLACE";let I=Hc(j.location,x,$);m=p();let N=AO(I,m),z=j.createHref(I);l.replaceState(N,"",z),a&&f&&f({action:d,location:j.location,delta:0})}function w(x){return Fj(x)}let j={get action(){return d},get location(){return e(n,l)},listen(x){if(f)throw new Error("A history only accepts one active listener");return n.addEventListener(zO,g),f=x,()=>{n.removeEventListener(zO,g),f=null}},createHref(x){return t(n,x)},createURL:w,encodeLocation(x){let $=w(x);return{pathname:$.pathname,search:$.search,hash:$.hash}},push:y,replace:S,go(x){return l.go(x)}};return j}function Fj(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),lt(r,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:Eo(e);return i=i.replace(/ $/,"%20"),!t&&i.startsWith("//")&&(i=r+i),new URL(i,r)}var Ac,DO=class{constructor(e){if(xB(this,Ac,new Map),e)for(let[t,r]of e)this.set(t,r)}get(e){if(ay(this,Ac).has(e))return ay(this,Ac).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){ay(this,Ac).set(e,t)}};Ac=new WeakMap;var jB=new Set(["lazy","caseSensitive","path","id","index","children"]);function IB(e){return jB.has(e)}var TB=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function zB(e){return TB.has(e)}function AB(e){return e.index===!0}function Kc(e,t,r=[],i={},n=!1){return e.map((a,l)=>{let d=[...r,String(l)],f=typeof a.id=="string"?a.id:d.join("-");if(lt(a.index!==!0||!a.children,"Cannot specify children on an index route"),lt(n||!i[f],`Found a route id collision on id "${f}". Route id's must be globally unique within Data Router usages`),AB(a)){let m={...a,...t(a),id:f};return i[f]=m,m}else{let m={...a,...t(a),id:f,children:void 0};return i[f]=m,a.children&&(m.children=Kc(a.children,t,d,i,n)),m}})}function yo(e,t,r="/"){return Mm(e,t,r,!1)}function Mm(e,t,r,i){let n=typeof t=="string"?Do(t):t,a=Jr(n.pathname||"/",r);if(a==null)return null;let l=Vj(e);UB(l);let d=null;for(let f=0;d==null&&f<l.length;++f){let m=GB(a);d=VB(l[f],m,i)}return d}function DB(e,t){let{route:r,pathname:i,params:n}=e;return{id:r.id,pathname:i,params:n,data:t[r.id],loaderData:t[r.id],handle:r.handle}}function Vj(e,t=[],r=[],i="",n=!1){let a=(l,d,f=n,m)=>{let p={relativePath:m===void 0?l.path||"":m,caseSensitive:l.caseSensitive===!0,childrenIndex:d,route:l};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(i)&&f)return;lt(p.relativePath.startsWith(i),`Absolute route path "${p.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(i.length)}let g=Fi([i,p.relativePath]),y=r.concat(p);l.children&&l.children.length>0&&(lt(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Vj(l.children,t,y,g,f)),!(l.path==null&&!l.index)&&t.push({path:g,score:BB(g,l.index),routesMeta:y})};return e.forEach((l,d)=>{var f;if(l.path===""||!((f=l.path)!=null&&f.includes("?")))a(l,d);else for(let m of qj(l.path))a(l,d,!0,m)}),t}function qj(e){let t=e.split("/");if(t.length===0)return[];let[r,...i]=t,n=r.endsWith("?"),a=r.replace(/\?$/,"");if(i.length===0)return n?[a,""]:[a];let l=qj(i.join("/")),d=[];return d.push(...l.map(f=>f===""?a:[a,f].join("/"))),n&&d.push(...l),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function UB(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:FB(t.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var CB=/^:[\w-]+$/,RB=3,MB=2,LB=1,PB=10,ZB=-2,UO=e=>e==="*";function BB(e,t){let r=e.split("/"),i=r.length;return r.some(UO)&&(i+=ZB),t&&(i+=MB),r.filter(n=>!UO(n)).reduce((n,a)=>n+(CB.test(a)?RB:a===""?LB:PB),i)}function FB(e,t){return e.length===t.length&&e.slice(0,-1).every((i,n)=>i===t[n])?e[e.length-1]-t[t.length-1]:0}function VB(e,t,r=!1){let{routesMeta:i}=e,n={},a="/",l=[];for(let d=0;d<i.length;++d){let f=i[d],m=d===i.length-1,p=a==="/"?t:t.slice(a.length)||"/",g=Ym({path:f.relativePath,caseSensitive:f.caseSensitive,end:m},p),y=f.route;if(!g&&m&&r&&!i[i.length-1].route.index&&(g=Ym({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},p)),!g)return null;Object.assign(n,g.params),l.push({params:n,pathname:Fi([a,g.pathname]),pathnameBase:YB(Fi([a,g.pathnameBase])),route:y}),g.pathnameBase!=="/"&&(a=Fi([a,g.pathnameBase]))}return l}function Ym(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,i]=qB(e.path,e.caseSensitive,e.end),n=t.match(r);if(!n)return null;let a=n[0],l=a.replace(/(.)\/+$/,"$1"),d=n.slice(1);return{params:i.reduce((m,{paramName:p,isOptional:g},y)=>{if(p==="*"){let w=d[y]||"";l=a.slice(0,a.length-w.length).replace(/(.)\/+$/,"$1")}const S=d[y];return g&&!S?m[p]=void 0:m[p]=(S||"").replace(/%2F/g,"/"),m},{}),pathname:a,pathnameBase:l,pattern:e}}function qB(e,t=!1,r=!0){dn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let i=[],n="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,d,f)=>(i.push({paramName:d,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),n+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?n+="\\/*$":e!==""&&e!=="/"&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),i]}function GB(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return dn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Jr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,i=e.charAt(r);return i&&i!=="/"?null:e.slice(r)||"/"}function HB({basename:e,pathname:t}){return t==="/"?e:Fi([e,t])}function KB(e,t="/"){let{pathname:r,search:i="",hash:n=""}=typeof e=="string"?Do(e):e;return{pathname:r?r.startsWith("/")?r:JB(r,t):t,search:XB(i),hash:QB(n)}}function JB(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function oy(e,t,r,i){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Gj(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function n_(e){let t=Gj(e);return t.map((r,i)=>i===t.length-1?r.pathname:r.pathnameBase)}function r_(e,t,r,i=!1){let n;typeof e=="string"?n=Do(e):(n={...e},lt(!n.pathname||!n.pathname.includes("?"),oy("?","pathname","search",n)),lt(!n.pathname||!n.pathname.includes("#"),oy("#","pathname","hash",n)),lt(!n.search||!n.search.includes("#"),oy("#","search","hash",n)));let a=e===""||n.pathname==="",l=a?"/":n.pathname,d;if(l==null)d=r;else{let g=t.length-1;if(!i&&l.startsWith("..")){let y=l.split("/");for(;y[0]==="..";)y.shift(),g-=1;n.pathname=y.join("/")}d=g>=0?t[g]:"/"}let f=KB(n,d),m=l&&l!=="/"&&l.endsWith("/"),p=(a||l===".")&&r.endsWith("/");return!f.pathname.endsWith("/")&&(m||p)&&(f.pathname+="/"),f}var Fi=e=>e.join("/").replace(/\/\/+/g,"/"),YB=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),XB=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,QB=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Xm=class{constructor(e,t,r,i=!1){this.status=e,this.statusText=t||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Jc(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Hj=["POST","PUT","PATCH","DELETE"],WB=new Set(Hj),e3=["GET",...Hj],t3=new Set(e3),n3=new Set([301,302,303,307,308]),r3=new Set([307,308]),uy={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},i3={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},wc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},a3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,i_=e=>a3.test(e),o3=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Kj="remix-router-transitions",Jj=Symbol("ResetLoaderData");function u3(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";lt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i=e.hydrationRouteProperties||[],n=e.mapRouteProperties||o3,a={},l=Kc(e.routes,n,void 0,a),d,f=e.basename||"/";f.startsWith("/")||(f=`/${f}`);let m=e.dataStrategy||f3,p={...e.future},g=null,y=new Set,S=null,w=null,j=null,x=e.hydrationData!=null,$=yo(l,e.history.location,f),I=!1,N=null,z;if($==null&&!e.patchRoutesOnNavigation){let U=Fr(404,{pathname:e.history.location.pathname}),{matches:P,route:K}=gm(l);z=!0,$=P,N={[K.id]:U}}else if($&&!e.hydrationData&&Ii($,l,e.history.location.pathname).active&&($=null),$)if($.some(U=>U.route.lazy))z=!1;else if(!$.some(U=>a_(U.route)))z=!0;else{let U=e.hydrationData?e.hydrationData.loaderData:null,P=e.hydrationData?e.hydrationData.errors:null;if(P){let K=$.findIndex(le=>P[le.route.id]!==void 0);z=$.slice(0,K+1).every(le=>!Zy(le.route,U,P))}else z=$.every(K=>!Zy(K.route,U,P))}else{z=!1,$=[];let U=Ii(null,l,e.history.location.pathname);U.active&&U.matches&&(I=!0,$=U.matches)}let T,E={historyAction:e.history.action,location:e.history.location,matches:$,initialized:z,navigation:uy,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||N,fetchers:new Map,blockers:new Map},C="POP",ae=!1,ue,fe=!1,we=new Map,Je=null,De=!1,_e=!1,Ne=new Set,M=new Map,ee=0,ce=-1,je=new Map,Ue=new Set,D=new Map,H=new Map,ne=new Set,oe=new Map,ye,Ae=null;function He(){if(g=e.history.listen(({action:U,location:P,delta:K})=>{if(ye){ye(),ye=void 0;return}dn(oe.size===0||K!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let le=rf({currentLocation:E.location,nextLocation:P,historyAction:U});if(le&&K!=null){let ve=new Promise(Te=>{ye=Te});e.history.go(K*-1),nl(le,{state:"blocked",location:P,proceed(){nl(le,{state:"proceeding",proceed:void 0,reset:void 0,location:P}),ve.then(()=>e.history.go(K))},reset(){let Te=new Map(E.blockers);Te.set(le,wc),gt({blockers:Te})}});return}return Rt(U,P)}),r){E3(t,we);let U=()=>N3(t,we);t.addEventListener("pagehide",U),Je=()=>t.removeEventListener("pagehide",U)}return E.initialized||Rt("POP",E.location,{initialHydration:!0}),T}function _t(){g&&g(),Je&&Je(),y.clear(),ue&&ue.abort(),E.fetchers.forEach((U,P)=>ji(P)),E.blockers.forEach((U,P)=>nf(P))}function dt(U){return y.add(U),()=>y.delete(U)}function gt(U,P={}){U.matches&&(U.matches=U.matches.map(ve=>{let Te=a[ve.route.id],ze=ve.route;return ze.element!==Te.element||ze.errorElement!==Te.errorElement||ze.hydrateFallbackElement!==Te.hydrateFallbackElement?{...ve,route:Te}:ve})),E={...E,...U};let K=[],le=[];E.fetchers.forEach((ve,Te)=>{ve.state==="idle"&&(ne.has(Te)?K.push(Te):le.push(Te))}),ne.forEach(ve=>{!E.fetchers.has(ve)&&!M.has(ve)&&K.push(ve)}),[...y].forEach(ve=>ve(E,{deletedFetchers:K,viewTransitionOpts:P.viewTransitionOpts,flushSync:P.flushSync===!0})),K.forEach(ve=>ji(ve)),le.forEach(ve=>E.fetchers.delete(ve))}function Ht(U,P,{flushSync:K}={}){var $e,be;let le=E.actionData!=null&&E.navigation.formMethod!=null&&Wn(E.navigation.formMethod)&&E.navigation.state==="loading"&&(($e=U.state)==null?void 0:$e._isRedirect)!==!0,ve;P.actionData?Object.keys(P.actionData).length>0?ve=P.actionData:ve=null:le?ve=E.actionData:ve=null;let Te=P.loaderData?qO(E.loaderData,P.loaderData,P.matches||[],P.errors):E.loaderData,ze=E.blockers;ze.size>0&&(ze=new Map(ze),ze.forEach((Fe,Ot)=>ze.set(Ot,wc)));let Ee=De?!1:qo(U,P.matches||E.matches),Ce=ae===!0||E.navigation.formMethod!=null&&Wn(E.navigation.formMethod)&&((be=U.state)==null?void 0:be._isRedirect)!==!0;d&&(l=d,d=void 0),De||C==="POP"||(C==="PUSH"?e.history.push(U,U.state):C==="REPLACE"&&e.history.replace(U,U.state));let Re;if(C==="POP"){let Fe=we.get(E.location.pathname);Fe&&Fe.has(U.pathname)?Re={currentLocation:E.location,nextLocation:U}:we.has(U.pathname)&&(Re={currentLocation:U,nextLocation:E.location})}else if(fe){let Fe=we.get(E.location.pathname);Fe?Fe.add(U.pathname):(Fe=new Set([U.pathname]),we.set(E.location.pathname,Fe)),Re={currentLocation:E.location,nextLocation:U}}gt({...P,actionData:ve,loaderData:Te,historyAction:C,location:U,initialized:!0,navigation:uy,revalidation:"idle",restoreScrollPosition:Ee,preventScrollReset:Ce,blockers:ze},{viewTransitionOpts:Re,flushSync:K===!0}),C="POP",ae=!1,fe=!1,De=!1,_e=!1,Ae==null||Ae.resolve(),Ae=null}async function wn(U,P){if(typeof U=="number"){e.history.go(U);return}let K=Py(E.location,E.matches,f,U,P==null?void 0:P.fromRouteId,P==null?void 0:P.relative),{path:le,submission:ve,error:Te}=CO(!1,K,P),ze=E.location,Ee=Hc(E.location,le,P&&P.state);Ee={...Ee,...e.history.encodeLocation(Ee)};let Ce=P&&P.replace!=null?P.replace:void 0,Re="PUSH";Ce===!0?Re="REPLACE":Ce===!1||ve!=null&&Wn(ve.formMethod)&&ve.formAction===E.location.pathname+E.location.search&&(Re="REPLACE");let $e=P&&"preventScrollReset"in P?P.preventScrollReset===!0:void 0,be=(P&&P.flushSync)===!0,Fe=rf({currentLocation:ze,nextLocation:Ee,historyAction:Re});if(Fe){nl(Fe,{state:"blocked",location:Ee,proceed(){nl(Fe,{state:"proceeding",proceed:void 0,reset:void 0,location:Ee}),wn(U,P)},reset(){let Ot=new Map(E.blockers);Ot.set(Fe,wc),gt({blockers:Ot})}});return}await Rt(Re,Ee,{submission:ve,pendingError:Te,preventScrollReset:$e,replace:P&&P.replace,enableViewTransition:P&&P.viewTransition,flushSync:be})}function zn(){Ae||(Ae=j3()),Oe(),gt({revalidation:"loading"});let U=Ae.promise;return E.navigation.state==="submitting"?U:E.navigation.state==="idle"?(Rt(E.historyAction,E.location,{startUninterruptedRevalidation:!0}),U):(Rt(C||E.historyAction,E.navigation.location,{overrideNavigation:E.navigation,enableViewTransition:fe===!0}),U)}async function Rt(U,P,K){ue&&ue.abort(),ue=null,C=U,De=(K&&K.startUninterruptedRevalidation)===!0,Qi(E.location,E.matches),ae=(K&&K.preventScrollReset)===!0,fe=(K&&K.enableViewTransition)===!0;let le=d||l,ve=K&&K.overrideNavigation,Te=K!=null&&K.initialHydration&&E.matches&&E.matches.length>0&&!I?E.matches:yo(le,P,f),ze=(K&&K.flushSync)===!0;if(Te&&E.initialized&&!_e&&_3(E.location,P)&&!(K&&K.submission&&Wn(K.submission.formMethod))){Ht(P,{matches:Te},{flushSync:ze});return}let Ee=Ii(Te,le,P.pathname);if(Ee.active&&Ee.matches&&(Te=Ee.matches),!Te){let{error:On,notFoundMatches:Mt,route:wt}=qa(P.pathname);Ht(P,{matches:Mt,loaderData:{},errors:{[wt.id]:On}},{flushSync:ze});return}ue=new AbortController;let Ce=Fl(e.history,P,ue.signal,K&&K.submission),Re=e.getContext?await e.getContext():new DO,$e;if(K&&K.pendingError)$e=[bo(Te).route.id,{type:"error",error:K.pendingError}];else if(K&&K.submission&&Wn(K.submission.formMethod)){let On=await yt(Ce,P,K.submission,Te,Re,Ee.active,K&&K.initialHydration===!0,{replace:K.replace,flushSync:ze});if(On.shortCircuited)return;if(On.pendingActionResult){let[Mt,wt]=On.pendingActionResult;if(hr(wt)&&Jc(wt.error)&&wt.error.status===404){ue=null,Ht(P,{matches:On.matches,loaderData:{},errors:{[Mt]:wt.error}});return}}Te=On.matches||Te,$e=On.pendingActionResult,ve=ly(P,K.submission),ze=!1,Ee.active=!1,Ce=Fl(e.history,Ce.url,Ce.signal)}let{shortCircuited:be,matches:Fe,loaderData:Ot,errors:an}=await Cn(Ce,P,Te,Re,Ee.active,ve,K&&K.submission,K&&K.fetcherSubmission,K&&K.replace,K&&K.initialHydration===!0,ze,$e);be||(ue=null,Ht(P,{matches:Fe||Te,...GO($e),loaderData:Ot,errors:an}))}async function yt(U,P,K,le,ve,Te,ze,Ee={}){Oe();let Ce=x3(P,K);if(gt({navigation:Ce},{flushSync:Ee.flushSync===!0}),Te){let be=await il(le,P.pathname,U.signal);if(be.type==="aborted")return{shortCircuited:!0};if(be.type==="error"){if(be.partialMatches.length===0){let{matches:Ot,route:an}=gm(l);return{matches:Ot,pendingActionResult:[an.id,{type:"error",error:be.error}]}}let Fe=bo(be.partialMatches).route.id;return{matches:be.partialMatches,pendingActionResult:[Fe,{type:"error",error:be.error}]}}else if(be.matches)le=be.matches;else{let{notFoundMatches:Fe,error:Ot,route:an}=qa(P.pathname);return{matches:Fe,pendingActionResult:[an.id,{type:"error",error:Ot}]}}}let Re,$e=Lm(le,P);if(!$e.route.action&&!$e.route.lazy)Re={type:"error",error:Fr(405,{method:U.method,pathname:P.pathname,routeId:$e.route.id})};else{let be=Kl(n,a,U,le,$e,ze?[]:i,ve),Fe=await pe(U,be,ve,null);if(Re=Fe[$e.route.id],!Re){for(let Ot of le)if(Fe[Ot.route.id]){Re=Fe[Ot.route.id];break}}if(U.signal.aborted)return{shortCircuited:!0}}if(mu(Re)){let be;return Ee&&Ee.replace!=null?be=Ee.replace:be=BO(Re.response.headers.get("Location"),new URL(U.url),f)===E.location.pathname+E.location.search,await q(U,Re,!0,{submission:K,replace:be}),{shortCircuited:!0}}if(hr(Re)){let be=bo(le,$e.route.id);return(Ee&&Ee.replace)!==!0&&(C="PUSH"),{matches:le,pendingActionResult:[be.route.id,Re,$e.route.id]}}return{matches:le,pendingActionResult:[$e.route.id,Re]}}async function Cn(U,P,K,le,ve,Te,ze,Ee,Ce,Re,$e,be){let Fe=Te||ly(P,ze),Ot=ze||Ee||KO(Fe),an=!De&&!Re;if(ve){if(an){let gn=Rn(be);gt({navigation:Fe,...gn!==void 0?{actionData:gn}:{}},{flushSync:$e})}let nt=await il(K,P.pathname,U.signal);if(nt.type==="aborted")return{shortCircuited:!0};if(nt.type==="error"){if(nt.partialMatches.length===0){let{matches:Wi,route:Ai}=gm(l);return{matches:Wi,loaderData:{},errors:{[Ai.id]:nt.error}}}let gn=bo(nt.partialMatches).route.id;return{matches:nt.partialMatches,loaderData:{},errors:{[gn]:nt.error}}}else if(nt.matches)K=nt.matches;else{let{error:gn,notFoundMatches:Wi,route:Ai}=qa(P.pathname);return{matches:Wi,loaderData:{},errors:{[Ai.id]:gn}}}}let On=d||l,{dsMatches:Mt,revalidatingFetchers:wt}=RO(U,le,n,a,e.history,E,K,Ot,P,Re?[]:i,Re===!0,_e,Ne,ne,D,Ue,On,f,e.patchRoutesOnNavigation!=null,be);if(ce=++ee,!e.dataStrategy&&!Mt.some(nt=>nt.shouldLoad)&&!Mt.some(nt=>nt.route.middleware&&nt.route.middleware.length>0)&&wt.length===0){let nt=pn();return Ht(P,{matches:K,loaderData:{},errors:be&&hr(be[1])?{[be[0]]:be[1].error}:null,...GO(be),...nt?{fetchers:new Map(E.fetchers)}:{}},{flushSync:$e}),{shortCircuited:!0}}if(an){let nt={};if(!ve){nt.navigation=Fe;let gn=Rn(be);gn!==void 0&&(nt.actionData=gn)}wt.length>0&&(nt.fetchers=Ni(wt)),gt(nt,{flushSync:$e})}wt.forEach(nt=>{ar(nt.key),nt.controller&&M.set(nt.key,nt.controller)});let ri=()=>wt.forEach(nt=>ar(nt.key));ue&&ue.signal.addEventListener("abort",ri);let{loaderResults:jr,fetcherResults:Ln}=await he(Mt,wt,U,le);if(U.signal.aborted)return{shortCircuited:!0};ue&&ue.signal.removeEventListener("abort",ri),wt.forEach(nt=>M.delete(nt.key));let An=ym(jr);if(An)return await q(U,An.result,!0,{replace:Ce}),{shortCircuited:!0};if(An=ym(Ln),An)return Ue.add(An.key),await q(U,An.result,!0,{replace:Ce}),{shortCircuited:!0};let{loaderData:Ti,errors:Kt}=VO(E,K,jr,be,wt,Ln);Re&&E.errors&&(Kt={...E.errors,...Kt});let zi=pn(),Go=ni(ce),Ir=zi||Go||wt.length>0;return{matches:K,loaderData:Ti,errors:Kt,...Ir?{fetchers:new Map(E.fetchers)}:{}}}function Rn(U){if(U&&!hr(U[1]))return{[U[0]]:U[1].data};if(E.actionData)return Object.keys(E.actionData).length===0?null:E.actionData}function Ni(U){return U.forEach(P=>{let K=E.fetchers.get(P.key),le=xc(void 0,K?K.data:void 0);E.fetchers.set(P.key,le)}),new Map(E.fetchers)}async function rr(U,P,K,le){ar(U);let ve=(le&&le.flushSync)===!0,Te=d||l,ze=Py(E.location,E.matches,f,K,P,le==null?void 0:le.relative),Ee=yo(Te,ze,f),Ce=Ii(Ee,Te,ze);if(Ce.active&&Ce.matches&&(Ee=Ce.matches),!Ee){Pe(U,P,Fr(404,{pathname:ze}),{flushSync:ve});return}let{path:Re,submission:$e,error:be}=CO(!0,ze,le);if(be){Pe(U,P,be,{flushSync:ve});return}let Fe=e.getContext?await e.getContext():new DO,Ot=(le&&le.preventScrollReset)===!0;if($e&&Wn($e.formMethod)){await xn(U,P,Re,Ee,Fe,Ce.active,ve,Ot,$e);return}D.set(U,{routeId:P,path:Re}),await Gn(U,P,Re,Ee,Fe,Ce.active,ve,Ot,$e)}async function xn(U,P,K,le,ve,Te,ze,Ee,Ce){Oe(),D.delete(U);let Re=E.fetchers.get(U);me(U,O3(Ce,Re),{flushSync:ze});let $e=new AbortController,be=Fl(e.history,K,$e.signal,Ce);if(Te){let tn=await il(le,new URL(be.url).pathname,be.signal,U);if(tn.type==="aborted")return;if(tn.type==="error"){Pe(U,P,tn.error,{flushSync:ze});return}else if(tn.matches)le=tn.matches;else{Pe(U,P,Fr(404,{pathname:K}),{flushSync:ze});return}}let Fe=Lm(le,K);if(!Fe.route.action&&!Fe.route.lazy){let tn=Fr(405,{method:Ce.formMethod,pathname:K,routeId:P});Pe(U,P,tn,{flushSync:ze});return}M.set(U,$e);let Ot=ee,an=Kl(n,a,be,le,Fe,i,ve),Mt=(await pe(be,an,ve,U))[Fe.route.id];if(be.signal.aborted){M.get(U)===$e&&M.delete(U);return}if(ne.has(U)){if(mu(Mt)||hr(Mt)){me(U,ba(void 0));return}}else{if(mu(Mt))if(M.delete(U),ce>Ot){me(U,ba(void 0));return}else return Ue.add(U),me(U,xc(Ce)),q(be,Mt,!1,{fetcherSubmission:Ce,preventScrollReset:Ee});if(hr(Mt)){Pe(U,P,Mt.error);return}}let wt=E.navigation.location||E.location,ri=Fl(e.history,wt,$e.signal),jr=d||l,Ln=E.navigation.state!=="idle"?yo(jr,E.navigation.location,f):E.matches;lt(Ln,"Didn't find any matches after fetcher action");let An=++ee;je.set(U,An);let Ti=xc(Ce,Mt.data);E.fetchers.set(U,Ti);let{dsMatches:Kt,revalidatingFetchers:zi}=RO(ri,ve,n,a,e.history,E,Ln,Ce,wt,i,!1,_e,Ne,ne,D,Ue,jr,f,e.patchRoutesOnNavigation!=null,[Fe.route.id,Mt]);zi.filter(tn=>tn.key!==U).forEach(tn=>{let ea=tn.key,Ho=E.fetchers.get(ea),ii=xc(void 0,Ho?Ho.data:void 0);E.fetchers.set(ea,ii),ar(ea),tn.controller&&M.set(ea,tn.controller)}),gt({fetchers:new Map(E.fetchers)});let Go=()=>zi.forEach(tn=>ar(tn.key));$e.signal.addEventListener("abort",Go);let{loaderResults:Ir,fetcherResults:nt}=await he(Kt,zi,ri,ve);if($e.signal.aborted)return;if($e.signal.removeEventListener("abort",Go),je.delete(U),M.delete(U),zi.forEach(tn=>M.delete(tn.key)),E.fetchers.has(U)){let tn=ba(Mt.data);E.fetchers.set(U,tn)}let gn=ym(Ir);if(gn)return q(ri,gn.result,!1,{preventScrollReset:Ee});if(gn=ym(nt),gn)return Ue.add(gn.key),q(ri,gn.result,!1,{preventScrollReset:Ee});let{loaderData:Wi,errors:Ai}=VO(E,Ln,Ir,void 0,zi,nt);ni(An),E.navigation.state==="loading"&&An>ce?(lt(C,"Expected pending action"),ue&&ue.abort(),Ht(E.navigation.location,{matches:Ln,loaderData:Wi,errors:Ai,fetchers:new Map(E.fetchers)})):(gt({errors:Ai,loaderData:qO(E.loaderData,Wi,Ln,Ai),fetchers:new Map(E.fetchers)}),_e=!1)}async function Gn(U,P,K,le,ve,Te,ze,Ee,Ce){let Re=E.fetchers.get(U);me(U,xc(Ce,Re?Re.data:void 0),{flushSync:ze});let $e=new AbortController,be=Fl(e.history,K,$e.signal);if(Te){let wt=await il(le,new URL(be.url).pathname,be.signal,U);if(wt.type==="aborted")return;if(wt.type==="error"){Pe(U,P,wt.error,{flushSync:ze});return}else if(wt.matches)le=wt.matches;else{Pe(U,P,Fr(404,{pathname:K}),{flushSync:ze});return}}let Fe=Lm(le,K);M.set(U,$e);let Ot=ee,an=Kl(n,a,be,le,Fe,i,ve),Mt=(await pe(be,an,ve,U))[Fe.route.id];if(M.get(U)===$e&&M.delete(U),!be.signal.aborted){if(ne.has(U)){me(U,ba(void 0));return}if(mu(Mt))if(ce>Ot){me(U,ba(void 0));return}else{Ue.add(U),await q(be,Mt,!1,{preventScrollReset:Ee});return}if(hr(Mt)){Pe(U,P,Mt.error);return}me(U,ba(Mt.data))}}async function q(U,P,K,{submission:le,fetcherSubmission:ve,preventScrollReset:Te,replace:ze}={}){P.response.headers.has("X-Remix-Revalidate")&&(_e=!0);let Ee=P.response.headers.get("Location");lt(Ee,"Expected a Location header on the redirect Response"),Ee=BO(Ee,new URL(U.url),f);let Ce=Hc(E.location,Ee,{_isRedirect:!0});if(r){let an=!1;if(P.response.headers.has("X-Remix-Reload-Document"))an=!0;else if(i_(Ee)){const On=Fj(Ee,!0);an=On.origin!==t.location.origin||Jr(On.pathname,f)==null}if(an){ze?t.location.replace(Ee):t.location.assign(Ee);return}}ue=null;let Re=ze===!0||P.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:$e,formAction:be,formEncType:Fe}=E.navigation;!le&&!ve&&$e&&be&&Fe&&(le=KO(E.navigation));let Ot=le||ve;if(r3.has(P.response.status)&&Ot&&Wn(Ot.formMethod))await Rt(Re,Ce,{submission:{...Ot,formAction:Ee},preventScrollReset:Te||ae,enableViewTransition:K?fe:void 0});else{let an=ly(Ce,le);await Rt(Re,Ce,{overrideNavigation:an,fetcherSubmission:ve,preventScrollReset:Te||ae,enableViewTransition:K?fe:void 0})}}async function pe(U,P,K,le){let ve,Te={};try{ve=await h3(m,U,P,le,K,!1)}catch(ze){return P.filter(Ee=>Ee.shouldLoad).forEach(Ee=>{Te[Ee.route.id]={type:"error",error:ze}}),Te}if(U.signal.aborted)return Te;for(let[ze,Ee]of Object.entries(ve))if(k3(Ee)){let Ce=Ee.result;Te[ze]={type:"redirect",response:y3(Ce,U,ze,P,f)}}else Te[ze]=await g3(Ee);return Te}async function he(U,P,K,le){let ve=pe(K,U,le,null),Te=Promise.all(P.map(async Ce=>{if(Ce.matches&&Ce.match&&Ce.request&&Ce.controller){let $e=(await pe(Ce.request,Ce.matches,le,Ce.key))[Ce.match.route.id];return{[Ce.key]:$e}}else return Promise.resolve({[Ce.key]:{type:"error",error:Fr(404,{pathname:Ce.path})}})})),ze=await ve,Ee=(await Te).reduce((Ce,Re)=>Object.assign(Ce,Re),{});return{loaderResults:ze,fetcherResults:Ee}}function Oe(){_e=!0,D.forEach((U,P)=>{M.has(P)&&Ne.add(P),ar(P)})}function me(U,P,K={}){E.fetchers.set(U,P),gt({fetchers:new Map(E.fetchers)},{flushSync:(K&&K.flushSync)===!0})}function Pe(U,P,K,le={}){let ve=bo(E.matches,P);ji(U),gt({errors:{[ve.route.id]:K},fetchers:new Map(E.fetchers)},{flushSync:(le&&le.flushSync)===!0})}function Nt(U){return H.set(U,(H.get(U)||0)+1),ne.has(U)&&ne.delete(U),E.fetchers.get(U)||i3}function ir(U,P){ar(U,P==null?void 0:P.reason),me(U,ba(null))}function ji(U){let P=E.fetchers.get(U);M.has(U)&&!(P&&P.state==="loading"&&je.has(U))&&ar(U),D.delete(U),je.delete(U),Ue.delete(U),ne.delete(U),Ne.delete(U),E.fetchers.delete(U)}function Fo(U){let P=(H.get(U)||0)-1;P<=0?(H.delete(U),ne.add(U)):H.set(U,P),gt({fetchers:new Map(E.fetchers)})}function ar(U,P){let K=M.get(U);K&&(K.abort(P),M.delete(U))}function ti(U){for(let P of U){let K=Nt(P),le=ba(K.data);E.fetchers.set(P,le)}}function pn(){let U=[],P=!1;for(let K of Ue){let le=E.fetchers.get(K);lt(le,`Expected fetcher: ${K}`),le.state==="loading"&&(Ue.delete(K),U.push(K),P=!0)}return ti(U),P}function ni(U){let P=[];for(let[K,le]of je)if(le<U){let ve=E.fetchers.get(K);lt(ve,`Expected fetcher: ${K}`),ve.state==="loading"&&(ar(K),je.delete(K),P.push(K))}return ti(P),P.length>0}function Mn(U,P){let K=E.blockers.get(U)||wc;return oe.get(U)!==P&&oe.set(U,P),K}function nf(U){E.blockers.delete(U),oe.delete(U)}function nl(U,P){let K=E.blockers.get(U)||wc;lt(K.state==="unblocked"&&P.state==="blocked"||K.state==="blocked"&&P.state==="blocked"||K.state==="blocked"&&P.state==="proceeding"||K.state==="blocked"&&P.state==="unblocked"||K.state==="proceeding"&&P.state==="unblocked",`Invalid blocker state transition: ${K.state} -> ${P.state}`);let le=new Map(E.blockers);le.set(U,P),gt({blockers:le})}function rf({currentLocation:U,nextLocation:P,historyAction:K}){if(oe.size===0)return;oe.size>1&&dn(!1,"A router only supports one blocker at a time");let le=Array.from(oe.entries()),[ve,Te]=le[le.length-1],ze=E.blockers.get(ve);if(!(ze&&ze.state==="proceeding")&&Te({currentLocation:U,nextLocation:P,historyAction:K}))return ve}function qa(U){let P=Fr(404,{pathname:U}),K=d||l,{matches:le,route:ve}=gm(K);return{notFoundMatches:le,route:ve,error:P}}function rl(U,P,K){if(S=U,j=P,w=K||null,!x&&E.navigation===uy){x=!0;let le=qo(E.location,E.matches);le!=null&>({restoreScrollPosition:le})}return()=>{S=null,j=null,w=null}}function Vo(U,P){return w&&w(U,P.map(le=>DB(le,E.loaderData)))||U.key}function Qi(U,P){if(S&&j){let K=Vo(U,P);S[K]=j()}}function qo(U,P){if(S){let K=Vo(U,P),le=S[K];if(typeof le=="number")return le}return null}function Ii(U,P,K){if(e.patchRoutesOnNavigation)if(U){if(Object.keys(U[0].params).length>0)return{active:!0,matches:Mm(P,K,f,!0)}}else return{active:!0,matches:Mm(P,K,f,!0)||[]};return{active:!1,matches:null}}async function il(U,P,K,le){if(!e.patchRoutesOnNavigation)return{type:"success",matches:U};let ve=U;for(;;){let Te=d==null,ze=d||l,Ee=a;try{await e.patchRoutesOnNavigation({signal:K,path:P,matches:ve,fetcherKey:le,patch:($e,be)=>{K.aborted||MO($e,be,ze,Ee,n,!1)}})}catch($e){return{type:"error",error:$e,partialMatches:ve}}finally{Te&&!K.aborted&&(l=[...l])}if(K.aborted)return{type:"aborted"};let Ce=yo(ze,P,f);if(Ce)return{type:"success",matches:Ce};let Re=Mm(ze,P,f,!0);if(!Re||ve.length===Re.length&&ve.every(($e,be)=>$e.route.id===Re[be].route.id))return{type:"success",matches:null};ve=Re}}function af(U){a={},d=Kc(U,n,void 0,a)}function Ds(U,P,K=!1){let le=d==null;MO(U,P,d||l,a,n,K),le&&(l=[...l],gt({}))}return T={get basename(){return f},get future(){return p},get state(){return E},get routes(){return l},get window(){return t},initialize:He,subscribe:dt,enableScrollRestoration:rl,navigate:wn,fetch:rr,revalidate:zn,createHref:U=>e.history.createHref(U),encodeLocation:U=>e.history.encodeLocation(U),getFetcher:Nt,resetFetcher:ir,deleteFetcher:Fo,dispose:_t,getBlocker:Mn,deleteBlocker:nf,patchRoutes:Ds,_internalFetchControllers:M,_internalSetRoutes:af,_internalSetStateDoNotUseOrYouWillBreakYourApp(U){gt(U)}},T}function l3(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Py(e,t,r,i,n,a){let l,d;if(n){l=[];for(let m of t)if(l.push(m),m.route.id===n){d=m;break}}else l=t,d=t[t.length-1];let f=r_(i||".",n_(l),Jr(e.pathname,r)||e.pathname,a==="path");if(i==null&&(f.search=e.search,f.hash=e.hash),(i==null||i===""||i===".")&&d){let m=o_(f.search);if(d.route.index&&!m)f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index";else if(!d.route.index&&m){let p=new URLSearchParams(f.search),g=p.getAll("index");p.delete("index"),g.filter(S=>S).forEach(S=>p.append("index",S));let y=p.toString();f.search=y?`?${y}`:""}}return r!=="/"&&(f.pathname=HB({basename:r,pathname:f.pathname})),Eo(f)}function CO(e,t,r){if(!r||!l3(r))return{path:t};if(r.formMethod&&!w3(r.formMethod))return{path:t,error:Fr(405,{method:r.formMethod})};let i=()=>({path:t,error:Fr(400,{type:"invalid-body"})}),a=(r.formMethod||"get").toUpperCase(),l=tI(t);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Wn(a))return i();let g=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,[S,w])=>`${y}${S}=${w}
|
|
59
|
+
`,""):String(r.body);return{path:t,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:g}}}else if(r.formEncType==="application/json"){if(!Wn(a))return i();try{let g=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:g,text:void 0}}}catch{return i()}}}lt(typeof FormData=="function","FormData is not available in this environment");let d,f;if(r.formData)d=Fy(r.formData),f=r.formData;else if(r.body instanceof FormData)d=Fy(r.body),f=r.body;else if(r.body instanceof URLSearchParams)d=r.body,f=FO(d);else if(r.body==null)d=new URLSearchParams,f=new FormData;else try{d=new URLSearchParams(r.body),f=FO(d)}catch{return i()}let m={formMethod:a,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:f,json:void 0,text:void 0};if(Wn(m.formMethod))return{path:t,submission:m};let p=Do(t);return e&&p.search&&o_(p.search)&&d.append("index",""),p.search=`?${d}`,{path:Eo(p),submission:m}}function RO(e,t,r,i,n,a,l,d,f,m,p,g,y,S,w,j,x,$,I,N){var De;let z=N?hr(N[1])?N[1].error:N[1].data:void 0,T=n.createURL(a.location),E=n.createURL(f),C;if(p&&a.errors){let _e=Object.keys(a.errors)[0];C=l.findIndex(Ne=>Ne.route.id===_e)}else if(N&&hr(N[1])){let _e=N[0];C=l.findIndex(Ne=>Ne.route.id===_e)-1}let ae=N?N[1].statusCode:void 0,ue=ae&&ae>=400,fe={currentUrl:T,currentParams:((De=a.matches[0])==null?void 0:De.params)||{},nextUrl:E,nextParams:l[0].params,...d,actionResult:z,actionStatus:ae},we=l.map((_e,Ne)=>{let{route:M}=_e,ee=null;if(C!=null&&Ne>C?ee=!1:M.lazy?ee=!0:a_(M)?p?ee=Zy(M,a.loaderData,a.errors):s3(a.loaderData,a.matches[Ne],_e)&&(ee=!0):ee=!1,ee!==null)return By(r,i,e,_e,m,t,ee);let ce=ue?!1:g||T.pathname+T.search===E.pathname+E.search||T.search!==E.search||c3(a.matches[Ne],_e),je={...fe,defaultShouldRevalidate:ce},Ue=Qm(_e,je);return By(r,i,e,_e,m,t,Ue,je)}),Je=[];return w.forEach((_e,Ne)=>{if(p||!l.some(ne=>ne.route.id===_e.routeId)||S.has(Ne))return;let M=a.fetchers.get(Ne),ee=M&&M.state!=="idle"&&M.data===void 0,ce=yo(x,_e.path,$);if(!ce){if(I&&ee)return;Je.push({key:Ne,routeId:_e.routeId,path:_e.path,matches:null,match:null,request:null,controller:null});return}if(j.has(Ne))return;let je=Lm(ce,_e.path),Ue=new AbortController,D=Fl(n,_e.path,Ue.signal),H=null;if(y.has(Ne))y.delete(Ne),H=Kl(r,i,D,ce,je,m,t);else if(ee)g&&(H=Kl(r,i,D,ce,je,m,t));else{let ne={...fe,defaultShouldRevalidate:ue?!1:g};Qm(je,ne)&&(H=Kl(r,i,D,ce,je,m,t,ne))}H&&Je.push({key:Ne,routeId:_e.routeId,path:_e.path,matches:H,match:je,request:D,controller:Ue})}),{dsMatches:we,revalidatingFetchers:Je}}function a_(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function Zy(e,t,r){if(e.lazy)return!0;if(!a_(e))return!1;let i=t!=null&&e.id in t,n=r!=null&&r[e.id]!==void 0;return!i&&n?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!i&&!n}function s3(e,t,r){let i=!t||r.route.id!==t.route.id,n=!e.hasOwnProperty(r.route.id);return i||n}function c3(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Qm(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function MO(e,t,r,i,n,a){let l;if(e){let m=i[e];lt(m,`No route found to patch children into: routeId = ${e}`),m.children||(m.children=[]),l=m.children}else l=r;let d=[],f=[];if(t.forEach(m=>{let p=l.find(g=>Yj(m,g));p?f.push({existingRoute:p,newRoute:m}):d.push(m)}),d.length>0){let m=Kc(d,n,[e||"_","patch",String((l==null?void 0:l.length)||"0")],i);l.push(...m)}if(a&&f.length>0)for(let m=0;m<f.length;m++){let{existingRoute:p,newRoute:g}=f[m],y=p,[S]=Kc([g],n,[],{},!0);Object.assign(y,{element:S.element?S.element:y.element,errorElement:S.errorElement?S.errorElement:y.errorElement,hydrateFallbackElement:S.hydrateFallbackElement?S.hydrateFallbackElement:y.hydrateFallbackElement})}}function Yj(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,i)=>{var n;return(n=t.children)==null?void 0:n.some(a=>Yj(r,a))}):!1}var LO=new WeakMap,Xj=({key:e,route:t,manifest:r,mapRouteProperties:i})=>{let n=r[t.id];if(lt(n,"No route found in manifest"),!n.lazy||typeof n.lazy!="object")return;let a=n.lazy[e];if(!a)return;let l=LO.get(n);l||(l={},LO.set(n,l));let d=l[e];if(d)return d;let f=(async()=>{let m=IB(e),g=n[e]!==void 0&&e!=="hasErrorBoundary";if(m)dn(!m,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),l[e]=Promise.resolve();else if(g)dn(!1,`Route "${n.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let y=await a();y!=null&&(Object.assign(n,{[e]:y}),Object.assign(n,i(n)))}typeof n.lazy=="object"&&(n.lazy[e]=void 0,Object.values(n.lazy).every(y=>y===void 0)&&(n.lazy=void 0))})();return l[e]=f,f},PO=new WeakMap;function d3(e,t,r,i,n){let a=r[e.id];if(lt(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let p=PO.get(a);if(p)return{lazyRoutePromise:p,lazyHandlerPromise:p};let g=(async()=>{lt(typeof e.lazy=="function","No lazy route function found");let y=await e.lazy(),S={};for(let w in y){let j=y[w];if(j===void 0)continue;let x=zB(w),I=a[w]!==void 0&&w!=="hasErrorBoundary";x?dn(!x,"Route property "+w+" is not a supported property to be returned from a lazy route function. This property will be ignored."):I?dn(!I,`Route "${a.id}" has a static property "${w}" defined but its lazy function is also returning a value for this property. The lazy route property "${w}" will be ignored.`):S[w]=j}Object.assign(a,S),Object.assign(a,{...i(a),lazy:void 0})})();return PO.set(a,g),g.catch(()=>{}),{lazyRoutePromise:g,lazyHandlerPromise:g}}let l=Object.keys(e.lazy),d=[],f;for(let p of l){if(n&&n.includes(p))continue;let g=Xj({key:p,route:e,manifest:r,mapRouteProperties:i});g&&(d.push(g),p===t&&(f=g))}let m=d.length>0?Promise.all(d).then(()=>{}):void 0;return m==null||m.catch(()=>{}),f==null||f.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:f}}async function ZO(e){let t=e.matches.filter(n=>n.shouldLoad),r={};return(await Promise.all(t.map(n=>n.resolve()))).forEach((n,a)=>{r[t[a].route.id]=n}),r}async function f3(e){return e.matches.some(t=>t.route.middleware)?Qj(e,()=>ZO(e)):ZO(e)}function Qj(e,t){return m3(e,t,i=>i,$3,r);function r(i,n,a){if(a)return Promise.resolve(Object.assign(a.value,{[n]:{type:"error",result:i}}));{let{matches:l}=e,d=Math.min(Math.max(l.findIndex(m=>m.route.id===n),0),Math.max(l.findIndex(m=>m.unstable_shouldCallHandler()),0)),f=bo(l,l[d].route.id).route.id;return Promise.resolve({[f]:{type:"error",result:i}})}}}async function m3(e,t,r,i,n){let{matches:a,request:l,params:d,context:f}=e,m=a.flatMap(g=>g.route.middleware?g.route.middleware.map(y=>[g.route.id,y]):[]);return await Wj({request:l,params:d,context:f},m,t,r,i,n)}async function Wj(e,t,r,i,n,a,l=0){let{request:d}=e;if(d.signal.aborted)throw d.signal.reason??new Error(`Request aborted: ${d.method} ${d.url}`);let f=t[l];if(!f)return await r();let[m,p]=f,g,y=async()=>{if(g)throw new Error("You may only call `next()` once per middleware");try{return g={value:await Wj(e,t,r,i,n,a,l+1)},g.value}catch(S){return g={value:await a(S,m,g)},g.value}};try{let S=await p(e,y),w=S!=null?i(S):void 0;return n(w)?w:g?w??g.value:(g={value:await y()},g.value)}catch(S){return await a(S,m,g)}}function eI(e,t,r,i,n){let a=Xj({key:"middleware",route:i.route,manifest:t,mapRouteProperties:e}),l=d3(i.route,Wn(r.method)?"action":"loader",t,e,n);return{middleware:a,route:l.lazyRoutePromise,handler:l.lazyHandlerPromise}}function By(e,t,r,i,n,a,l,d=null){let f=!1,m=eI(e,t,r,i,n);return{...i,_lazyPromises:m,shouldLoad:l,unstable_shouldRevalidateArgs:d,unstable_shouldCallHandler(p){return f=!0,d?typeof p=="boolean"?Qm(i,{...d,defaultShouldRevalidate:p}):Qm(i,d):l},resolve(p){let{lazy:g,loader:y,middleware:S}=i.route,w=f||l||p&&!Wn(r.method)&&(g||y),j=S&&S.length>0&&!y&&!g;return w&&!j?v3({request:r,match:i,lazyHandlerPromise:m==null?void 0:m.handler,lazyRoutePromise:m==null?void 0:m.route,handlerOverride:p,scopedContext:a}):Promise.resolve({type:"data",result:void 0})}}}function Kl(e,t,r,i,n,a,l,d=null){return i.map(f=>f.route.id!==n.route.id?{...f,shouldLoad:!1,unstable_shouldRevalidateArgs:d,unstable_shouldCallHandler:()=>!1,_lazyPromises:eI(e,t,r,f,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:By(e,t,r,f,a,l,!0,d))}async function h3(e,t,r,i,n,a){r.some(m=>{var p;return(p=m._lazyPromises)==null?void 0:p.middleware})&&await Promise.all(r.map(m=>{var p;return(p=m._lazyPromises)==null?void 0:p.middleware}));let l={request:t,params:r[0].params,context:n,matches:r},f=await e({...l,fetcherKey:i,runClientMiddleware:m=>{let p=l;return Qj(p,()=>m({...p,fetcherKey:i,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(r.flatMap(m=>{var p,g;return[(p=m._lazyPromises)==null?void 0:p.handler,(g=m._lazyPromises)==null?void 0:g.route]}))}catch{}return f}async function v3({request:e,match:t,lazyHandlerPromise:r,lazyRoutePromise:i,handlerOverride:n,scopedContext:a}){let l,d,f=Wn(e.method),m=f?"action":"loader",p=g=>{let y,S=new Promise((x,$)=>y=$);d=()=>y(),e.signal.addEventListener("abort",d);let w=x=>typeof g!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${m}" [routeId: ${t.route.id}]`)):g({request:e,params:t.params,context:a},...x!==void 0?[x]:[]),j=(async()=>{try{return{type:"data",result:await(n?n($=>w($)):w())}}catch(x){return{type:"error",result:x}}})();return Promise.race([j,S])};try{let g=f?t.route.action:t.route.loader;if(r||i)if(g){let y,[S]=await Promise.all([p(g).catch(w=>{y=w}),r,i]);if(y!==void 0)throw y;l=S}else{await r;let y=f?t.route.action:t.route.loader;if(y)[l]=await Promise.all([p(y),i]);else if(m==="action"){let S=new URL(e.url),w=S.pathname+S.search;throw Fr(405,{method:e.method,pathname:w,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(g)l=await p(g);else{let y=new URL(e.url),S=y.pathname+y.search;throw Fr(404,{pathname:S})}}catch(g){return{type:"error",result:g}}finally{d&&e.signal.removeEventListener("abort",d)}return l}async function p3(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function g3(e){var i,n,a,l,d,f;let{result:t,type:r}=e;if(nI(t)){let m;try{m=await p3(t)}catch(p){return{type:"error",error:p}}return r==="error"?{type:"error",error:new Xm(t.status,t.statusText,m),statusCode:t.status,headers:t.headers}:{type:"data",data:m,statusCode:t.status,headers:t.headers}}return r==="error"?HO(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:(i=t.init)==null?void 0:i.status,headers:(n=t.init)!=null&&n.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new Xm(((a=t.init)==null?void 0:a.status)||500,void 0,t.data),statusCode:Jc(t)?t.status:void 0,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Jc(t)?t.status:void 0}:HO(t)?{type:"data",data:t.data,statusCode:(d=t.init)==null?void 0:d.status,headers:(f=t.init)!=null&&f.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function y3(e,t,r,i,n){let a=e.headers.get("Location");if(lt(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!i_(a)){let l=i.slice(0,i.findIndex(d=>d.route.id===r)+1);a=Py(new URL(t.url),l,n,a),e.headers.set("Location",a)}return e}function BO(e,t,r){if(i_(e)){let i=e,n=i.startsWith("//")?new URL(t.protocol+i):new URL(i),a=Jr(n.pathname,r)!=null;if(n.origin===t.origin&&a)return n.pathname+n.search+n.hash}return e}function Fl(e,t,r,i){let n=e.createURL(tI(t)).toString(),a={signal:r};if(i&&Wn(i.formMethod)){let{formMethod:l,formEncType:d}=i;a.method=l.toUpperCase(),d==="application/json"?(a.headers=new Headers({"Content-Type":d}),a.body=JSON.stringify(i.json)):d==="text/plain"?a.body=i.text:d==="application/x-www-form-urlencoded"&&i.formData?a.body=Fy(i.formData):a.body=i.formData}return new Request(n,a)}function Fy(e){let t=new URLSearchParams;for(let[r,i]of e.entries())t.append(r,typeof i=="string"?i:i.name);return t}function FO(e){let t=new FormData;for(let[r,i]of e.entries())t.append(r,i);return t}function b3(e,t,r,i=!1,n=!1){let a={},l=null,d,f=!1,m={},p=r&&hr(r[1])?r[1].error:void 0;return e.forEach(g=>{if(!(g.route.id in t))return;let y=g.route.id,S=t[y];if(lt(!mu(S),"Cannot handle redirect results in processLoaderData"),hr(S)){let w=S.error;if(p!==void 0&&(w=p,p=void 0),l=l||{},n)l[y]=w;else{let j=bo(e,y);l[j.route.id]==null&&(l[j.route.id]=w)}i||(a[y]=Jj),f||(f=!0,d=Jc(S.error)?S.error.status:500),S.headers&&(m[y]=S.headers)}else a[y]=S.data,S.statusCode&&S.statusCode!==200&&!f&&(d=S.statusCode),S.headers&&(m[y]=S.headers)}),p!==void 0&&r&&(l={[r[0]]:p},r[2]&&(a[r[2]]=void 0)),{loaderData:a,errors:l,statusCode:d||200,loaderHeaders:m}}function VO(e,t,r,i,n,a){let{loaderData:l,errors:d}=b3(t,r,i);return n.filter(f=>!f.matches||f.matches.some(m=>m.shouldLoad)).forEach(f=>{let{key:m,match:p,controller:g}=f;if(g&&g.signal.aborted)return;let y=a[m];if(lt(y,"Did not find corresponding fetcher result"),hr(y)){let S=bo(e.matches,p==null?void 0:p.route.id);d&&d[S.route.id]||(d={...d,[S.route.id]:y.error}),e.fetchers.delete(m)}else if(mu(y))lt(!1,"Unhandled fetcher revalidation redirect");else{let S=ba(y.data);e.fetchers.set(m,S)}}),{loaderData:l,errors:d}}function qO(e,t,r,i){let n=Object.entries(t).filter(([,a])=>a!==Jj).reduce((a,[l,d])=>(a[l]=d,a),{});for(let a of r){let l=a.route.id;if(!t.hasOwnProperty(l)&&e.hasOwnProperty(l)&&a.route.loader&&(n[l]=e[l]),i&&i.hasOwnProperty(l))break}return n}function GO(e){return e?hr(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function bo(e,t){return(t?e.slice(0,e.findIndex(i=>i.route.id===t)+1):[...e]).reverse().find(i=>i.route.hasErrorBoundary===!0)||e[0]}function gm(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Fr(e,{pathname:t,routeId:r,method:i,type:n,message:a}={}){let l="Unknown Server Error",d="Unknown @remix-run/router error";return e===400?(l="Bad Request",i&&t&&r?d=`You made a ${i} request to "${t}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:n==="invalid-body"&&(d="Unable to encode submission body")):e===403?(l="Forbidden",d=`Route "${r}" does not match URL "${t}"`):e===404?(l="Not Found",d=`No route matches URL "${t}"`):e===405&&(l="Method Not Allowed",i&&t&&r?d=`You made a ${i.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:i&&(d=`Invalid request method "${i.toUpperCase()}"`)),new Xm(e||500,l,new Error(d),!0)}function ym(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[i,n]=t[r];if(mu(n))return{key:i,result:n}}}function tI(e){let t=typeof e=="string"?Do(e):e;return Eo({...t,hash:""})}function _3(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function $3(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,r])=>typeof t=="string"&&S3(r))}function S3(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function k3(e){return nI(e.result)&&n3.has(e.result.status)}function hr(e){return e.type==="error"}function mu(e){return(e&&e.type)==="redirect"}function HO(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function nI(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function w3(e){return t3.has(e.toUpperCase())}function Wn(e){return WB.has(e.toUpperCase())}function o_(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Lm(e,t){let r=typeof t=="string"?Do(t).search:t.search;if(e[e.length-1].route.index&&o_(r||""))return e[e.length-1];let i=Gj(e);return i[i.length-1]}function KO(e){let{formMethod:t,formAction:r,formEncType:i,text:n,formData:a,json:l}=e;if(!(!t||!r||!i)){if(n!=null)return{formMethod:t,formAction:r,formEncType:i,formData:void 0,json:void 0,text:n};if(a!=null)return{formMethod:t,formAction:r,formEncType:i,formData:a,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:r,formEncType:i,formData:void 0,json:l,text:void 0}}}function ly(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function x3(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function xc(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function O3(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ba(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function E3(e,t){try{let r=e.sessionStorage.getItem(Kj);if(r){let i=JSON.parse(r);for(let[n,a]of Object.entries(i||{}))a&&Array.isArray(a)&&t.set(n,new Set(a||[]))}}catch{}}function N3(e,t){if(t.size>0){let r={};for(let[i,n]of t)r[i]=[...n];try{e.sessionStorage.setItem(Kj,JSON.stringify(r))}catch(i){dn(!1,`Failed to save applied view transitions in sessionStorage (${i}).`)}}}function j3(){let e,t,r=new Promise((i,n)=>{e=async a=>{i(a);try{await r}catch{}},t=async a=>{n(a);try{await r}catch{}}});return{promise:r,resolve:e,reject:t}}var Bu=k.createContext(null);Bu.displayName="DataRouter";var gd=k.createContext(null);gd.displayName="DataRouterState";k.createContext(!1);var u_=k.createContext({isTransitioning:!1});u_.displayName="ViewTransition";var rI=k.createContext(new Map);rI.displayName="Fetchers";var I3=k.createContext(null);I3.displayName="Await";var Ji=k.createContext(null);Ji.displayName="Navigation";var Dh=k.createContext(null);Dh.displayName="Location";var Oi=k.createContext({outlet:null,matches:[],isDataRoute:!1});Oi.displayName="Route";var l_=k.createContext(null);l_.displayName="RouteError";function T3(e,{relative:t}={}){lt(yd(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=k.useContext(Ji),{hash:n,pathname:a,search:l}=bd(e,{relative:t}),d=a;return r!=="/"&&(d=a==="/"?r:Fi([r,a])),i.createHref({pathname:d,search:l,hash:n})}function yd(){return k.useContext(Dh)!=null}function La(){return lt(yd(),"useLocation() may be used only in the context of a <Router> component."),k.useContext(Dh).location}var iI="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function aI(e){k.useContext(Ji).static||k.useLayoutEffect(e)}function Uh(){let{isDataRoute:e}=k.useContext(Oi);return e?q3():z3()}function z3(){lt(yd(),"useNavigate() may be used only in the context of a <Router> component.");let e=k.useContext(Bu),{basename:t,navigator:r}=k.useContext(Ji),{matches:i}=k.useContext(Oi),{pathname:n}=La(),a=JSON.stringify(n_(i)),l=k.useRef(!1);return aI(()=>{l.current=!0}),k.useCallback((f,m={})=>{if(dn(l.current,iI),!l.current)return;if(typeof f=="number"){r.go(f);return}let p=r_(f,JSON.parse(a),n,m.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Fi([t,p.pathname])),(m.replace?r.replace:r.push)(p,m.state,m)},[t,r,a,n,e])}var A3=k.createContext(null);function D3(e){let t=k.useContext(Oi).outlet;return k.useMemo(()=>t&&k.createElement(A3.Provider,{value:e},t),[t,e])}function oI(){let{matches:e}=k.useContext(Oi),t=e[e.length-1];return t?t.params:{}}function bd(e,{relative:t}={}){let{matches:r}=k.useContext(Oi),{pathname:i}=La(),n=JSON.stringify(n_(r));return k.useMemo(()=>r_(e,JSON.parse(n),i,t==="path"),[e,n,i,t])}function U3(e,t,r,i,n){lt(yd(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=k.useContext(Ji),{matches:l}=k.useContext(Oi),d=l[l.length-1],f=d?d.params:{},m=d?d.pathname:"/",p=d?d.pathnameBase:"/",g=d&&d.route;{let I=g&&g.path||"";lI(m,!g||I.endsWith("*")||I.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${I}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
60
|
+
|
|
61
|
+
Please change the parent <Route path="${I}"> to <Route path="${I==="/"?"*":`${I}/*`}">.`)}let y=La(),S;S=y;let w=S.pathname||"/",j=w;if(p!=="/"){let I=p.replace(/^\//,"").split("/");j="/"+w.replace(/^\//,"").split("/").slice(I.length).join("/")}let x=yo(e,{pathname:j});return dn(g||x!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),dn(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),P3(x&&x.map(I=>Object.assign({},I,{params:Object.assign({},f,I.params),pathname:Fi([p,a.encodeLocation?a.encodeLocation(I.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:I.pathname]),pathnameBase:I.pathnameBase==="/"?p:Fi([p,a.encodeLocation?a.encodeLocation(I.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:I.pathnameBase])})),l,r,i,n)}function C3(){let e=uI(),t=Jc(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",n={padding:"0.5rem",backgroundColor:i},a={padding:"2px 4px",backgroundColor:i},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=k.createElement(k.Fragment,null,k.createElement("p",null,"💿 Hey developer 👋"),k.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",k.createElement("code",{style:a},"ErrorBoundary")," or"," ",k.createElement("code",{style:a},"errorElement")," prop on your route.")),k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),r?k.createElement("pre",{style:n},r):null,l)}var R3=k.createElement(C3,null),M3=class extends k.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?k.createElement(Oi.Provider,{value:this.props.routeContext},k.createElement(l_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function L3({routeContext:e,match:t,children:r}){let i=k.useContext(Bu);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),k.createElement(Oi.Provider,{value:e},r)}function P3(e,t=[],r=null,i=null,n=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,l=r==null?void 0:r.errors;if(l!=null){let m=a.findIndex(p=>p.route.id&&(l==null?void 0:l[p.route.id])!==void 0);lt(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),a=a.slice(0,Math.min(a.length,m+1))}let d=!1,f=-1;if(r)for(let m=0;m<a.length;m++){let p=a[m];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(f=m),p.route.id){let{loaderData:g,errors:y}=r,S=p.route.loader&&!g.hasOwnProperty(p.route.id)&&(!y||y[p.route.id]===void 0);if(p.route.lazy||S){d=!0,f>=0?a=a.slice(0,f+1):a=[a[0]];break}}}return a.reduceRight((m,p,g)=>{let y,S=!1,w=null,j=null;r&&(y=l&&p.route.id?l[p.route.id]:void 0,w=p.route.errorElement||R3,d&&(f<0&&g===0?(lI("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,j=null):f===g&&(S=!0,j=p.route.hydrateFallbackElement||null)));let x=t.concat(a.slice(0,g+1)),$=()=>{let I;return y?I=w:S?I=j:p.route.Component?I=k.createElement(p.route.Component,null):p.route.element?I=p.route.element:I=m,k.createElement(L3,{match:p,routeContext:{outlet:m,matches:x,isDataRoute:r!=null},children:I})};return r&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?k.createElement(M3,{location:r.location,revalidation:r.revalidation,component:w,error:y,children:$(),routeContext:{outlet:null,matches:x,isDataRoute:!0},unstable_onError:i}):$()},null)}function s_(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Z3(e){let t=k.useContext(Bu);return lt(t,s_(e)),t}function B3(e){let t=k.useContext(gd);return lt(t,s_(e)),t}function F3(e){let t=k.useContext(Oi);return lt(t,s_(e)),t}function c_(e){let t=F3(e),r=t.matches[t.matches.length-1];return lt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function V3(){return c_("useRouteId")}function uI(){var i;let e=k.useContext(l_),t=B3("useRouteError"),r=c_("useRouteError");return e!==void 0?e:(i=t.errors)==null?void 0:i[r]}function q3(){let{router:e}=Z3("useNavigate"),t=c_("useNavigate"),r=k.useRef(!1);return aI(()=>{r.current=!0}),k.useCallback(async(n,a={})=>{dn(r.current,iI),r.current&&(typeof n=="number"?e.navigate(n):await e.navigate(n,{fromRouteId:t,...a}))},[e,t])}var JO={};function lI(e,t,r){!t&&!JO[e]&&(JO[e]=!0,dn(!1,r))}var YO={};function XO(e,t){!e&&!YO[t]&&(YO[t]=!0,console.warn(t))}function G3(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&dn(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:k.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&dn(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:k.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&dn(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:k.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var H3=["HydrateFallback","hydrateFallbackElement"],K3=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",t(r))}})}};function J3({router:e,flushSync:t,unstable_onError:r}){let[i,n]=k.useState(e.state),[a,l]=k.useState(),[d,f]=k.useState({isTransitioning:!1}),[m,p]=k.useState(),[g,y]=k.useState(),[S,w]=k.useState(),j=k.useRef(new Map),x=k.useCallback(T=>{n(E=>(T.errors&&r&&Object.entries(T.errors).forEach(([C,ae])=>{var ue;((ue=E.errors)==null?void 0:ue[C])!==ae&&r(ae)}),T))},[r]),$=k.useCallback((T,{deletedFetchers:E,flushSync:C,viewTransitionOpts:ae})=>{T.fetchers.forEach((fe,we)=>{fe.data!==void 0&&j.current.set(we,fe.data)}),E.forEach(fe=>j.current.delete(fe)),XO(C===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let ue=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(XO(ae==null||ue,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!ae||!ue){t&&C?t(()=>x(T)):k.startTransition(()=>x(T));return}if(t&&C){t(()=>{g&&(m&&m.resolve(),g.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:ae.currentLocation,nextLocation:ae.nextLocation})});let fe=e.window.document.startViewTransition(()=>{t(()=>x(T))});fe.finished.finally(()=>{t(()=>{p(void 0),y(void 0),l(void 0),f({isTransitioning:!1})})}),t(()=>y(fe));return}g?(m&&m.resolve(),g.skipTransition(),w({state:T,currentLocation:ae.currentLocation,nextLocation:ae.nextLocation})):(l(T),f({isTransitioning:!0,flushSync:!1,currentLocation:ae.currentLocation,nextLocation:ae.nextLocation}))},[e.window,t,g,m,x]);k.useLayoutEffect(()=>e.subscribe($),[e,$]),k.useEffect(()=>{d.isTransitioning&&!d.flushSync&&p(new K3)},[d]),k.useEffect(()=>{if(m&&a&&e.window){let T=a,E=m.promise,C=e.window.document.startViewTransition(async()=>{k.startTransition(()=>x(T)),await E});C.finished.finally(()=>{p(void 0),y(void 0),l(void 0),f({isTransitioning:!1})}),y(C)}},[a,m,e.window,x]),k.useEffect(()=>{m&&a&&i.location.key===a.location.key&&m.resolve()},[m,g,i.location,a]),k.useEffect(()=>{!d.isTransitioning&&S&&(l(S.state),f({isTransitioning:!0,flushSync:!1,currentLocation:S.currentLocation,nextLocation:S.nextLocation}),w(void 0))},[d.isTransitioning,S]);let I=k.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:T=>e.navigate(T),push:(T,E,C)=>e.navigate(T,{state:E,preventScrollReset:C==null?void 0:C.preventScrollReset}),replace:(T,E,C)=>e.navigate(T,{replace:!0,state:E,preventScrollReset:C==null?void 0:C.preventScrollReset})}),[e]),N=e.basename||"/",z=k.useMemo(()=>({router:e,navigator:I,static:!1,basename:N,unstable_onError:r}),[e,I,N,r]);return k.createElement(k.Fragment,null,k.createElement(Bu.Provider,{value:z},k.createElement(gd.Provider,{value:i},k.createElement(rI.Provider,{value:j.current},k.createElement(u_.Provider,{value:d},k.createElement(Q3,{basename:N,location:i.location,navigationType:i.historyAction,navigator:I},k.createElement(Y3,{routes:e.routes,future:e.future,state:i,unstable_onError:r})))))),null)}var Y3=k.memo(X3);function X3({routes:e,future:t,state:r,unstable_onError:i}){return U3(e,void 0,r,i,t)}function sI(e){return D3(e.context)}function Q3({basename:e="/",children:t=null,location:r,navigationType:i="POP",navigator:n,static:a=!1}){lt(!yd(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),d=k.useMemo(()=>({basename:l,navigator:n,static:a,future:{}}),[l,n,a]);typeof r=="string"&&(r=Do(r));let{pathname:f="/",search:m="",hash:p="",state:g=null,key:y="default"}=r,S=k.useMemo(()=>{let w=Jr(f,l);return w==null?null:{location:{pathname:w,search:m,hash:p,state:g,key:y},navigationType:i}},[l,f,m,p,g,y,i]);return dn(S!=null,`<Router basename="${l}"> is not able to match the URL "${f}${m}${p}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:k.createElement(Ji.Provider,{value:d},k.createElement(Dh.Provider,{children:t,value:S}))}var Pm="get",Zm="application/x-www-form-urlencoded";function Ch(e){return e!=null&&typeof e.tagName=="string"}function W3(e){return Ch(e)&&e.tagName.toLowerCase()==="button"}function eF(e){return Ch(e)&&e.tagName.toLowerCase()==="form"}function tF(e){return Ch(e)&&e.tagName.toLowerCase()==="input"}function nF(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function rF(e,t){return e.button===0&&(!t||t==="_self")&&!nF(e)}var bm=null;function iF(){if(bm===null)try{new FormData(document.createElement("form"),0),bm=!1}catch{bm=!0}return bm}var aF=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function sy(e){return e!=null&&!aF.has(e)?(dn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Zm}"`),null):e}function oF(e,t){let r,i,n,a,l;if(eF(e)){let d=e.getAttribute("action");i=d?Jr(d,t):null,r=e.getAttribute("method")||Pm,n=sy(e.getAttribute("enctype"))||Zm,a=new FormData(e)}else if(W3(e)||tF(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||d.getAttribute("action");if(i=f?Jr(f,t):null,r=e.getAttribute("formmethod")||d.getAttribute("method")||Pm,n=sy(e.getAttribute("formenctype"))||sy(d.getAttribute("enctype"))||Zm,a=new FormData(d,e),!iF()){let{name:m,type:p,value:g}=e;if(p==="image"){let y=m?`${m}.`:"";a.append(`${y}x`,"0"),a.append(`${y}y`,"0")}else m&&a.append(m,g)}}else{if(Ch(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Pm,i=null,n=Zm,l=e}return a&&n==="text/plain"&&(l=a,a=void 0),{action:i,method:r.toLowerCase(),encType:n,formData:a,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function d_(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function uF(e,t,r){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return i.pathname==="/"?i.pathname=`_root.${r}`:t&&Jr(i.pathname,t)==="/"?i.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${r}`,i}async function lF(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function sF(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function cF(e,t,r){let i=await Promise.all(e.map(async n=>{let a=t.routes[n.route.id];if(a){let l=await lF(a,r);return l.links?l.links():[]}return[]}));return hF(i.flat(1).filter(sF).filter(n=>n.rel==="stylesheet"||n.rel==="preload").map(n=>n.rel==="stylesheet"?{...n,rel:"prefetch",as:"style"}:{...n,rel:"prefetch"}))}function QO(e,t,r,i,n,a){let l=(f,m)=>r[m]?f.route.id!==r[m].route.id:!0,d=(f,m)=>{var p;return r[m].pathname!==f.pathname||((p=r[m].route.path)==null?void 0:p.endsWith("*"))&&r[m].params["*"]!==f.params["*"]};return a==="assets"?t.filter((f,m)=>l(f,m)||d(f,m)):a==="data"?t.filter((f,m)=>{var g;let p=i.routes[f.route.id];if(!p||!p.hasLoader)return!1;if(l(f,m)||d(f,m))return!0;if(f.route.shouldRevalidate){let y=f.route.shouldRevalidate({currentUrl:new URL(n.pathname+n.search+n.hash,window.origin),currentParams:((g=r[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function dF(e,t,{includeHydrateFallback:r}={}){return fF(e.map(i=>{let n=t.routes[i.route.id];if(!n)return[];let a=[n.module];return n.clientActionModule&&(a=a.concat(n.clientActionModule)),n.clientLoaderModule&&(a=a.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(a=a.concat(n.hydrateFallbackModule)),n.imports&&(a=a.concat(n.imports)),a}).flat(1))}function fF(e){return[...new Set(e)]}function mF(e){let t={},r=Object.keys(e).sort();for(let i of r)t[i]=e[i];return t}function hF(e,t){let r=new Set;return new Set(t),e.reduce((i,n)=>{let a=JSON.stringify(mF(n));return r.has(a)||(r.add(a),i.push({key:a,link:n})),i},[])}function cI(){let e=k.useContext(Bu);return d_(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function vF(){let e=k.useContext(gd);return d_(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var f_=k.createContext(void 0);f_.displayName="FrameworkContext";function dI(){let e=k.useContext(f_);return d_(e,"You must render this element inside a <HydratedRouter> element"),e}function pF(e,t){let r=k.useContext(f_),[i,n]=k.useState(!1),[a,l]=k.useState(!1),{onFocus:d,onBlur:f,onMouseEnter:m,onMouseLeave:p,onTouchStart:g}=t,y=k.useRef(null);k.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let j=$=>{$.forEach(I=>{l(I.isIntersecting)})},x=new IntersectionObserver(j,{threshold:.5});return y.current&&x.observe(y.current),()=>{x.disconnect()}}},[e]),k.useEffect(()=>{if(i){let j=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(j)}}},[i]);let S=()=>{n(!0)},w=()=>{n(!1),l(!1)};return r?e!=="intent"?[a,y,{}]:[a,y,{onFocus:Oc(d,S),onBlur:Oc(f,w),onMouseEnter:Oc(m,S),onMouseLeave:Oc(p,w),onTouchStart:Oc(g,S)}]:[!1,y,{}]}function Oc(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function gF({page:e,...t}){let{router:r}=cI(),i=k.useMemo(()=>yo(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?k.createElement(bF,{page:e,matches:i,...t}):null}function yF(e){let{manifest:t,routeModules:r}=dI(),[i,n]=k.useState([]);return k.useEffect(()=>{let a=!1;return cF(e,t,r).then(l=>{a||n(l)}),()=>{a=!0}},[e,t,r]),i}function bF({page:e,matches:t,...r}){let i=La(),{manifest:n,routeModules:a}=dI(),{basename:l}=cI(),{loaderData:d,matches:f}=vF(),m=k.useMemo(()=>QO(e,t,f,n,i,"data"),[e,t,f,n,i]),p=k.useMemo(()=>QO(e,t,f,n,i,"assets"),[e,t,f,n,i]),g=k.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let w=new Set,j=!1;if(t.forEach($=>{var N;let I=n.routes[$.route.id];!I||!I.hasLoader||(!m.some(z=>z.route.id===$.route.id)&&$.route.id in d&&((N=a[$.route.id])!=null&&N.shouldRevalidate)||I.hasClientLoader?j=!0:w.add($.route.id))}),w.size===0)return[];let x=uF(e,l,"data");return j&&w.size>0&&x.searchParams.set("_routes",t.filter($=>w.has($.route.id)).map($=>$.route.id).join(",")),[x.pathname+x.search]},[l,d,i,n,m,t,e,a]),y=k.useMemo(()=>dF(p,n),[p,n]),S=yF(p);return k.createElement(k.Fragment,null,g.map(w=>k.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...r})),y.map(w=>k.createElement("link",{key:w,rel:"modulepreload",href:w,...r})),S.map(({key:w,link:j})=>k.createElement("link",{key:w,nonce:r.nonce,...j})))}function _F(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var fI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{fI&&(window.__reactRouterVersion="7.9.4")}catch{}function $F(e,t){return u3({basename:t==null?void 0:t.basename,getContext:t==null?void 0:t.getContext,future:t==null?void 0:t.future,history:OB({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||SF(),routes:e,mapRouteProperties:G3,hydrationRouteProperties:H3,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function SF(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:kF(e.errors)}),e}function kF(e){if(!e)return null;let t=Object.entries(e),r={};for(let[i,n]of t)if(n&&n.__type==="RouteErrorResponse")r[i]=new Xm(n.status,n.statusText,n.data,n.internal===!0);else if(n&&n.__type==="Error"){if(n.__subType){let a=window[n.__subType];if(typeof a=="function")try{let l=new a(n.message);l.stack="",r[i]=l}catch{}}if(r[i]==null){let a=new Error(n.message);a.stack="",r[i]=a}}else r[i]=n;return r}var mI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$r=k.forwardRef(function({onClick:t,discover:r="render",prefetch:i="none",relative:n,reloadDocument:a,replace:l,state:d,target:f,to:m,preventScrollReset:p,viewTransition:g,...y},S){let{basename:w}=k.useContext(Ji),j=typeof m=="string"&&mI.test(m),x,$=!1;if(typeof m=="string"&&j&&(x=m,fI))try{let ue=new URL(window.location.href),fe=m.startsWith("//")?new URL(ue.protocol+m):new URL(m),we=Jr(fe.pathname,w);fe.origin===ue.origin&&we!=null?m=we+fe.search+fe.hash:$=!0}catch{dn(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let I=T3(m,{relative:n}),[N,z,T]=pF(i,y),E=EF(m,{replace:l,state:d,target:f,preventScrollReset:p,relative:n,viewTransition:g});function C(ue){t&&t(ue),ue.defaultPrevented||E(ue)}let ae=k.createElement("a",{...y,...T,href:x||I,onClick:$||a?t:C,ref:_F(S,z),target:f,"data-discover":!j&&r==="render"?"true":void 0});return N&&!j?k.createElement(k.Fragment,null,ae,k.createElement(gF,{page:I})):ae});$r.displayName="Link";var wF=k.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:i="",end:n=!1,style:a,to:l,viewTransition:d,children:f,...m},p){let g=bd(l,{relative:m.relative}),y=La(),S=k.useContext(gd),{navigator:w,basename:j}=k.useContext(Ji),x=S!=null&&zF(g)&&d===!0,$=w.encodeLocation?w.encodeLocation(g).pathname:g.pathname,I=y.pathname,N=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;r||(I=I.toLowerCase(),N=N?N.toLowerCase():null,$=$.toLowerCase()),N&&j&&(N=Jr(N,j)||N);const z=$!=="/"&&$.endsWith("/")?$.length-1:$.length;let T=I===$||!n&&I.startsWith($)&&I.charAt(z)==="/",E=N!=null&&(N===$||!n&&N.startsWith($)&&N.charAt($.length)==="/"),C={isActive:T,isPending:E,isTransitioning:x},ae=T?t:void 0,ue;typeof i=="function"?ue=i(C):ue=[i,T?"active":null,E?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let fe=typeof a=="function"?a(C):a;return k.createElement($r,{...m,"aria-current":ae,className:ue,ref:p,style:fe,to:l,viewTransition:d},typeof f=="function"?f(C):f)});wF.displayName="NavLink";var xF=k.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:i,replace:n,state:a,method:l=Pm,action:d,onSubmit:f,relative:m,preventScrollReset:p,viewTransition:g,...y},S)=>{let w=IF(),j=TF(d,{relative:m}),x=l.toLowerCase()==="get"?"get":"post",$=typeof d=="string"&&mI.test(d),I=N=>{if(f&&f(N),N.defaultPrevented)return;N.preventDefault();let z=N.nativeEvent.submitter,T=(z==null?void 0:z.getAttribute("formmethod"))||l;w(z||N.currentTarget,{fetcherKey:t,method:T,navigate:r,replace:n,state:a,relative:m,preventScrollReset:p,viewTransition:g})};return k.createElement("form",{ref:S,method:x,action:j,onSubmit:i?f:I,...y,"data-discover":!$&&e==="render"?"true":void 0})});xF.displayName="Form";function OF(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hI(e){let t=k.useContext(Bu);return lt(t,OF(e)),t}function EF(e,{target:t,replace:r,state:i,preventScrollReset:n,relative:a,viewTransition:l}={}){let d=Uh(),f=La(),m=bd(e,{relative:a});return k.useCallback(p=>{if(rF(p,t)){p.preventDefault();let g=r!==void 0?r:Eo(f)===Eo(m);d(e,{replace:g,state:i,preventScrollReset:n,relative:a,viewTransition:l})}},[f,d,m,r,i,t,e,n,a,l])}var NF=0,jF=()=>`__${String(++NF)}__`;function IF(){let{router:e}=hI("useSubmit"),{basename:t}=k.useContext(Ji),r=V3();return k.useCallback(async(i,n={})=>{let{action:a,method:l,encType:d,formData:f,body:m}=oF(i,t);if(n.navigate===!1){let p=n.fetcherKey||jF();await e.fetch(p,r,n.action||a,{preventScrollReset:n.preventScrollReset,formData:f,body:m,formMethod:n.method||l,formEncType:n.encType||d,flushSync:n.flushSync})}else await e.navigate(n.action||a,{preventScrollReset:n.preventScrollReset,formData:f,body:m,formMethod:n.method||l,formEncType:n.encType||d,replace:n.replace,state:n.state,fromRouteId:r,flushSync:n.flushSync,viewTransition:n.viewTransition})},[e,t,r])}function TF(e,{relative:t}={}){let{basename:r}=k.useContext(Ji),i=k.useContext(Oi);lt(i,"useFormAction must be used inside a RouteContext");let[n]=i.matches.slice(-1),a={...bd(e||".",{relative:t})},l=La();if(e==null){a.search=l.search;let d=new URLSearchParams(a.search),f=d.getAll("index");if(f.some(p=>p==="")){d.delete("index"),f.filter(g=>g).forEach(g=>d.append("index",g));let p=d.toString();a.search=p?`?${p}`:""}}return(!e||e===".")&&n.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:Fi([r,a.pathname])),Eo(a)}function zF(e,{relative:t}={}){let r=k.useContext(u_);lt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=hI("useViewTransitionState"),n=bd(e,{relative:t});if(!r.isTransitioning)return!1;let a=Jr(r.currentLocation.pathname,i)||r.currentLocation.pathname,l=Jr(r.nextLocation.pathname,i)||r.nextLocation.pathname;return Ym(n.pathname,l)!=null||Ym(n.pathname,a)!=null}var m_=Zj();const hu=ws(m_);function AF(e){return k.createElement(J3,{flushSync:m_.flushSync,...e})}var Rh=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},DF={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},_o,t_,zj,UF=(zj=class{constructor(){pt(this,_o,DF);pt(this,t_,!1)}setTimeoutProvider(e){Ke(this,_o,e)}setTimeout(e,t){return X(this,_o).setTimeout(e,t)}clearTimeout(e){X(this,_o).clearTimeout(e)}setInterval(e,t){return X(this,_o).setInterval(e,t)}clearInterval(e){X(this,_o).clearInterval(e)}},_o=new WeakMap,t_=new WeakMap,zj),Vy=new UF;function CF(e){setTimeout(e,0)}var Mh=typeof window>"u"||"Deno"in globalThis;function ci(){}function RF(e,t){return typeof e=="function"?e(t):e}function MF(e){return typeof e=="number"&&e>=0&&e!==1/0}function LF(e,t){return Math.max(e+(t||0)-Date.now(),0)}function qy(e,t){return typeof e=="function"?e(t):e}function PF(e,t){return typeof e=="function"?e(t):e}function WO(e,t){const{type:r="all",exact:i,fetchStatus:n,predicate:a,queryKey:l,stale:d}=e;if(l){if(i){if(t.queryHash!==h_(l,t.options))return!1}else if(!Xc(t.queryKey,l))return!1}if(r!=="all"){const f=t.isActive();if(r==="active"&&!f||r==="inactive"&&f)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||n&&n!==t.state.fetchStatus||a&&!a(t))}function eE(e,t){const{exact:r,status:i,predicate:n,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(Yc(t.options.mutationKey)!==Yc(a))return!1}else if(!Xc(t.options.mutationKey,a))return!1}return!(i&&t.state.status!==i||n&&!n(t))}function h_(e,t){return((t==null?void 0:t.queryKeyHashFn)||Yc)(e)}function Yc(e){return JSON.stringify(e,(t,r)=>Gy(r)?Object.keys(r).sort().reduce((i,n)=>(i[n]=r[n],i),{}):r)}function Xc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Xc(e[r],t[r])):!1}var ZF=Object.prototype.hasOwnProperty;function vI(e,t){if(e===t)return e;const r=tE(e)&&tE(t);if(!r&&!(Gy(e)&&Gy(t)))return t;const n=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),l=a.length,d=r?new Array(l):{};let f=0;for(let m=0;m<l;m++){const p=r?m:a[m],g=e[p],y=t[p];if(g===y){d[p]=g,(r?m<n:ZF.call(e,p))&&f++;continue}if(g===null||y===null||typeof g!="object"||typeof y!="object"){d[p]=y;continue}const S=vI(g,y);d[p]=S,S===g&&f++}return n===l&&f===n?e:d}function tE(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Gy(e){if(!nE(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!nE(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function nE(e){return Object.prototype.toString.call(e)==="[object Object]"}function BF(e){return new Promise(t=>{Vy.setTimeout(t,e)})}function FF(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?vI(e,t):t}function VF(e,t,r=0){const i=[...e,t];return r&&i.length>r?i.slice(1):i}function qF(e,t,r=0){const i=[t,...e];return r&&i.length>r?i.slice(0,-1):i}var v_=Symbol();function pI(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===v_?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var yu,$o,Xl,Aj,GF=(Aj=class extends Rh{constructor(){super();pt(this,yu);pt(this,$o);pt(this,Xl);Ke(this,Xl,t=>{if(!Mh&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){X(this,$o)||this.setEventListener(X(this,Xl))}onUnsubscribe(){var t;this.hasListeners()||((t=X(this,$o))==null||t.call(this),Ke(this,$o,void 0))}setEventListener(t){var r;Ke(this,Xl,t),(r=X(this,$o))==null||r.call(this),Ke(this,$o,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){X(this,yu)!==t&&(Ke(this,yu,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof X(this,yu)=="boolean"?X(this,yu):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},yu=new WeakMap,$o=new WeakMap,Xl=new WeakMap,Aj),gI=new GF;function HF(){let e,t;const r=new Promise((n,a)=>{e=n,t=a});r.status="pending",r.catch(()=>{});function i(n){Object.assign(r,n),delete r.resolve,delete r.reject}return r.resolve=n=>{i({status:"fulfilled",value:n}),e(n)},r.reject=n=>{i({status:"rejected",reason:n}),t(n)},r}var KF=CF;function JF(){let e=[],t=0,r=d=>{d()},i=d=>{d()},n=KF;const a=d=>{t?e.push(d):n(()=>{r(d)})},l=()=>{const d=e;e=[],d.length&&n(()=>{i(()=>{d.forEach(f=>{r(f)})})})};return{batch:d=>{let f;t++;try{f=d()}finally{t--,t||l()}return f},batchCalls:d=>(...f)=>{a(()=>{d(...f)})},schedule:a,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{i=d},setScheduler:d=>{n=d}}}var Fn=JF(),Ql,So,Wl,Dj,YF=(Dj=class extends Rh{constructor(){super();pt(this,Ql,!0);pt(this,So);pt(this,Wl);Ke(this,Wl,t=>{if(!Mh&&window.addEventListener){const r=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}}})}onSubscribe(){X(this,So)||this.setEventListener(X(this,Wl))}onUnsubscribe(){var t;this.hasListeners()||((t=X(this,So))==null||t.call(this),Ke(this,So,void 0))}setEventListener(t){var r;Ke(this,Wl,t),(r=X(this,So))==null||r.call(this),Ke(this,So,t(this.setOnline.bind(this)))}setOnline(t){X(this,Ql)!==t&&(Ke(this,Ql,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return X(this,Ql)}},Ql=new WeakMap,So=new WeakMap,Wl=new WeakMap,Dj),Wm=new YF;function XF(e){return Math.min(1e3*2**e,3e4)}function yI(e){return(e??"online")==="online"?Wm.isOnline():!0}var Hy=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function bI(e){let t=!1,r=0,i;const n=HF(),a=()=>n.status!=="pending",l=j=>{var x;if(!a()){const $=new Hy(j);y($),(x=e.onCancel)==null||x.call(e,$)}},d=()=>{t=!0},f=()=>{t=!1},m=()=>gI.isFocused()&&(e.networkMode==="always"||Wm.isOnline())&&e.canRun(),p=()=>yI(e.networkMode)&&e.canRun(),g=j=>{a()||(i==null||i(),n.resolve(j))},y=j=>{a()||(i==null||i(),n.reject(j))},S=()=>new Promise(j=>{var x;i=$=>{(a()||m())&&j($)},(x=e.onPause)==null||x.call(e)}).then(()=>{var j;i=void 0,a()||(j=e.onContinue)==null||j.call(e)}),w=()=>{if(a())return;let j;const x=r===0?e.initialPromise:void 0;try{j=x??e.fn()}catch($){j=Promise.reject($)}Promise.resolve(j).then(g).catch($=>{var E;if(a())return;const I=e.retry??(Mh?0:3),N=e.retryDelay??XF,z=typeof N=="function"?N(r,$):N,T=I===!0||typeof I=="number"&&r<I||typeof I=="function"&&I(r,$);if(t||!T){y($);return}r++,(E=e.onFail)==null||E.call(e,r,$),BF(z).then(()=>m()?void 0:S()).then(()=>{t?y($):w()})})};return{promise:n,status:()=>n.status,cancel:l,continue:()=>(i==null||i(),n),cancelRetry:d,continueRetry:f,canStart:p,start:()=>(p()?w():S().then(w),n)}}var bu,Uj,_I=(Uj=class{constructor(){pt(this,bu)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),MF(this.gcTime)&&Ke(this,bu,Vy.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Mh?1/0:300*1e3))}clearGcTimeout(){X(this,bu)&&(Vy.clearTimeout(X(this,bu)),Ke(this,bu,void 0))}},bu=new WeakMap,Uj),_u,es,Br,$u,bn,hd,Su,di,_a,Cj,QF=(Cj=class extends _I{constructor(t){super();pt(this,di);pt(this,_u);pt(this,es);pt(this,Br);pt(this,$u);pt(this,bn);pt(this,hd);pt(this,Su);Ke(this,Su,!1),Ke(this,hd,t.defaultOptions),this.setOptions(t.options),this.observers=[],Ke(this,$u,t.client),Ke(this,Br,X(this,$u).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Ke(this,_u,rE(this.options)),this.state=t.state??X(this,_u),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=X(this,bn))==null?void 0:t.promise}setOptions(t){if(this.options={...X(this,hd),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=rE(this.options);r.data!==void 0&&(this.setData(r.data,{updatedAt:r.dataUpdatedAt,manual:!0}),Ke(this,_u,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&X(this,Br).remove(this)}setData(t,r){const i=FF(this.state.data,t,this.options);return Dn(this,di,_a).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(t,r){Dn(this,di,_a).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var i,n;const r=(i=X(this,bn))==null?void 0:i.promise;return(n=X(this,bn))==null||n.cancel(t),r?r.then(ci).catch(ci):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(X(this,_u))}isActive(){return this.observers.some(t=>PF(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===v_||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>qy(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!LF(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=X(this,bn))==null||r.continue()}onOnline(){var r;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=X(this,bn))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),X(this,Br).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(X(this,bn)&&(X(this,Su)?X(this,bn).cancel({revert:!0}):X(this,bn).cancelRetry()),this.scheduleGc()),X(this,Br).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Dn(this,di,_a).call(this,{type:"invalidate"})}async fetch(t,r){var f,m,p,g,y,S,w,j,x,$,I,N;if(this.state.fetchStatus!=="idle"&&((f=X(this,bn))==null?void 0:f.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(X(this,bn))return X(this,bn).continueRetry(),X(this,bn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const z=this.observers.find(T=>T.options.queryFn);z&&this.setOptions(z.options)}const i=new AbortController,n=z=>{Object.defineProperty(z,"signal",{enumerable:!0,get:()=>(Ke(this,Su,!0),i.signal)})},a=()=>{const z=pI(this.options,r),E=(()=>{const C={client:X(this,$u),queryKey:this.queryKey,meta:this.meta};return n(C),C})();return Ke(this,Su,!1),this.options.persister?this.options.persister(z,E,this):z(E)},d=(()=>{const z={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:X(this,$u),state:this.state,fetchFn:a};return n(z),z})();(m=this.options.behavior)==null||m.onFetch(d,this),Ke(this,es,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=d.fetchOptions)==null?void 0:p.meta))&&Dn(this,di,_a).call(this,{type:"fetch",meta:(g=d.fetchOptions)==null?void 0:g.meta}),Ke(this,bn,bI({initialPromise:r==null?void 0:r.initialPromise,fn:d.fetchFn,onCancel:z=>{z instanceof Hy&&z.revert&&this.setState({...X(this,es),fetchStatus:"idle"}),i.abort()},onFail:(z,T)=>{Dn(this,di,_a).call(this,{type:"failed",failureCount:z,error:T})},onPause:()=>{Dn(this,di,_a).call(this,{type:"pause"})},onContinue:()=>{Dn(this,di,_a).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const z=await X(this,bn).start();if(z===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(z),(S=(y=X(this,Br).config).onSuccess)==null||S.call(y,z,this),(j=(w=X(this,Br).config).onSettled)==null||j.call(w,z,this.state.error,this),z}catch(z){if(z instanceof Hy){if(z.silent)return X(this,bn).promise;if(z.revert){if(this.state.data===void 0)throw z;return this.state.data}}throw Dn(this,di,_a).call(this,{type:"error",error:z}),($=(x=X(this,Br).config).onError)==null||$.call(x,z,this),(N=(I=X(this,Br).config).onSettled)==null||N.call(I,this.state.data,z,this),z}finally{this.scheduleGc()}}},_u=new WeakMap,es=new WeakMap,Br=new WeakMap,$u=new WeakMap,bn=new WeakMap,hd=new WeakMap,Su=new WeakMap,di=new WeakSet,_a=function(t){const r=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...WF(i.data,this.options),fetchMeta:t.meta??null};case"success":const n={...i,data:t.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Ke(this,es,t.manual?n:void 0),n;case"error":const a=t.error;return{...i,error:a,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=r(this.state),Fn.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),X(this,Br).notify({query:this,type:"updated",action:t})})},Cj);function WF(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:yI(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function rE(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,i=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}function iE(e){return{onFetch:(t,r)=>{var p,g,y,S,w;const i=t.options,n=(y=(g=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:g.fetchMore)==null?void 0:y.direction,a=((S=t.state.data)==null?void 0:S.pages)||[],l=((w=t.state.data)==null?void 0:w.pageParams)||[];let d={pages:[],pageParams:[]},f=0;const m=async()=>{let j=!1;const x=N=>{Object.defineProperty(N,"signal",{enumerable:!0,get:()=>(t.signal.aborted?j=!0:t.signal.addEventListener("abort",()=>{j=!0}),t.signal)})},$=pI(t.options,t.fetchOptions),I=async(N,z,T)=>{if(j)return Promise.reject();if(z==null&&N.pages.length)return Promise.resolve(N);const C=(()=>{const we={client:t.client,queryKey:t.queryKey,pageParam:z,direction:T?"backward":"forward",meta:t.options.meta};return x(we),we})(),ae=await $(C),{maxPages:ue}=t.options,fe=T?qF:VF;return{pages:fe(N.pages,ae,ue),pageParams:fe(N.pageParams,z,ue)}};if(n&&a.length){const N=n==="backward",z=N?e5:aE,T={pages:a,pageParams:l},E=z(i,T);d=await I(T,E,N)}else{const N=e??a.length;do{const z=f===0?l[0]??i.initialPageParam:aE(i,d);if(f>0&&z==null)break;d=await I(d,z),f++}while(f<N)}return d};t.options.persister?t.fetchFn=()=>{var j,x;return(x=(j=t.options).persister)==null?void 0:x.call(j,m,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=m}}}function aE(e,{pages:t,pageParams:r}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,r[i],r):void 0}function e5(e,{pages:t,pageParams:r}){var i;return t.length>0?(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,r[0],r):void 0}var vd,Mi,Bn,ku,Li,po,Rj,t5=(Rj=class extends _I{constructor(t){super();pt(this,Li);pt(this,vd);pt(this,Mi);pt(this,Bn);pt(this,ku);Ke(this,vd,t.client),this.mutationId=t.mutationId,Ke(this,Bn,t.mutationCache),Ke(this,Mi,[]),this.state=t.state||n5(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){X(this,Mi).includes(t)||(X(this,Mi).push(t),this.clearGcTimeout(),X(this,Bn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Ke(this,Mi,X(this,Mi).filter(r=>r!==t)),this.scheduleGc(),X(this,Bn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){X(this,Mi).length||(this.state.status==="pending"?this.scheduleGc():X(this,Bn).remove(this))}continue(){var t;return((t=X(this,ku))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,d,f,m,p,g,y,S,w,j,x,$,I,N,z,T,E,C,ae,ue;const r=()=>{Dn(this,Li,po).call(this,{type:"continue"})},i={client:X(this,vd),meta:this.options.meta,mutationKey:this.options.mutationKey};Ke(this,ku,bI({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(new Error("No mutationFn found")),onFail:(fe,we)=>{Dn(this,Li,po).call(this,{type:"failed",failureCount:fe,error:we})},onPause:()=>{Dn(this,Li,po).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>X(this,Bn).canRun(this)}));const n=this.state.status==="pending",a=!X(this,ku).canStart();try{if(n)r();else{Dn(this,Li,po).call(this,{type:"pending",variables:t,isPaused:a}),await((d=(l=X(this,Bn).config).onMutate)==null?void 0:d.call(l,t,this,i));const we=await((m=(f=this.options).onMutate)==null?void 0:m.call(f,t,i));we!==this.state.context&&Dn(this,Li,po).call(this,{type:"pending",context:we,variables:t,isPaused:a})}const fe=await X(this,ku).start();return await((g=(p=X(this,Bn).config).onSuccess)==null?void 0:g.call(p,fe,t,this.state.context,this,i)),await((S=(y=this.options).onSuccess)==null?void 0:S.call(y,fe,t,this.state.context,i)),await((j=(w=X(this,Bn).config).onSettled)==null?void 0:j.call(w,fe,null,this.state.variables,this.state.context,this,i)),await(($=(x=this.options).onSettled)==null?void 0:$.call(x,fe,null,t,this.state.context,i)),Dn(this,Li,po).call(this,{type:"success",data:fe}),fe}catch(fe){try{throw await((N=(I=X(this,Bn).config).onError)==null?void 0:N.call(I,fe,t,this.state.context,this,i)),await((T=(z=this.options).onError)==null?void 0:T.call(z,fe,t,this.state.context,i)),await((C=(E=X(this,Bn).config).onSettled)==null?void 0:C.call(E,void 0,fe,this.state.variables,this.state.context,this,i)),await((ue=(ae=this.options).onSettled)==null?void 0:ue.call(ae,void 0,fe,t,this.state.context,i)),fe}finally{Dn(this,Li,po).call(this,{type:"error",error:fe})}}finally{X(this,Bn).runNext(this)}}},vd=new WeakMap,Mi=new WeakMap,Bn=new WeakMap,ku=new WeakMap,Li=new WeakSet,po=function(t){const r=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Fn.batch(()=>{X(this,Mi).forEach(i=>{i.onMutationUpdate(t)}),X(this,Bn).notify({mutation:this,type:"updated",action:t})})},Rj);function n5(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Sa,fi,pd,Mj,r5=(Mj=class extends Rh{constructor(t={}){super();pt(this,Sa);pt(this,fi);pt(this,pd);this.config=t,Ke(this,Sa,new Set),Ke(this,fi,new Map),Ke(this,pd,0)}build(t,r,i){const n=new t5({client:t,mutationCache:this,mutationId:++pm(this,pd)._,options:t.defaultMutationOptions(r),state:i});return this.add(n),n}add(t){X(this,Sa).add(t);const r=_m(t);if(typeof r=="string"){const i=X(this,fi).get(r);i?i.push(t):X(this,fi).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(X(this,Sa).delete(t)){const r=_m(t);if(typeof r=="string"){const i=X(this,fi).get(r);if(i)if(i.length>1){const n=i.indexOf(t);n!==-1&&i.splice(n,1)}else i[0]===t&&X(this,fi).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=_m(t);if(typeof r=="string"){const i=X(this,fi).get(r),n=i==null?void 0:i.find(a=>a.state.status==="pending");return!n||n===t}else return!0}runNext(t){var i;const r=_m(t);if(typeof r=="string"){const n=(i=X(this,fi).get(r))==null?void 0:i.find(a=>a!==t&&a.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Fn.batch(()=>{X(this,Sa).forEach(t=>{this.notify({type:"removed",mutation:t})}),X(this,Sa).clear(),X(this,fi).clear()})}getAll(){return Array.from(X(this,Sa))}find(t){const r={exact:!0,...t};return this.getAll().find(i=>eE(r,i))}findAll(t={}){return this.getAll().filter(r=>eE(t,r))}notify(t){Fn.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Fn.batch(()=>Promise.all(t.map(r=>r.continue().catch(ci))))}},Sa=new WeakMap,fi=new WeakMap,pd=new WeakMap,Mj);function _m(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Pi,Lj,i5=(Lj=class extends Rh{constructor(t={}){super();pt(this,Pi);this.config=t,Ke(this,Pi,new Map)}build(t,r,i){const n=r.queryKey,a=r.queryHash??h_(n,r);let l=this.get(a);return l||(l=new QF({client:t,queryKey:n,queryHash:a,options:t.defaultQueryOptions(r),state:i,defaultOptions:t.getQueryDefaults(n)}),this.add(l)),l}add(t){X(this,Pi).has(t.queryHash)||(X(this,Pi).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=X(this,Pi).get(t.queryHash);r&&(t.destroy(),r===t&&X(this,Pi).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Fn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return X(this,Pi).get(t)}getAll(){return[...X(this,Pi).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(i=>WO(r,i))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(i=>WO(t,i)):r}notify(t){Fn.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Fn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Fn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Pi=new WeakMap,Lj),Wt,ko,wo,ts,ns,xo,rs,is,Pj,a5=(Pj=class{constructor(e={}){pt(this,Wt);pt(this,ko);pt(this,wo);pt(this,ts);pt(this,ns);pt(this,xo);pt(this,rs);pt(this,is);Ke(this,Wt,e.queryCache||new i5),Ke(this,ko,e.mutationCache||new r5),Ke(this,wo,e.defaultOptions||{}),Ke(this,ts,new Map),Ke(this,ns,new Map),Ke(this,xo,0)}mount(){pm(this,xo)._++,X(this,xo)===1&&(Ke(this,rs,gI.subscribe(async e=>{e&&(await this.resumePausedMutations(),X(this,Wt).onFocus())})),Ke(this,is,Wm.subscribe(async e=>{e&&(await this.resumePausedMutations(),X(this,Wt).onOnline())})))}unmount(){var e,t;pm(this,xo)._--,X(this,xo)===0&&((e=X(this,rs))==null||e.call(this),Ke(this,rs,void 0),(t=X(this,is))==null||t.call(this),Ke(this,is,void 0))}isFetching(e){return X(this,Wt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return X(this,ko).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=X(this,Wt).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=X(this,Wt).build(this,t),i=r.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(qy(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return X(this,Wt).findAll(e).map(({queryKey:t,state:r})=>{const i=r.data;return[t,i]})}setQueryData(e,t,r){const i=this.defaultQueryOptions({queryKey:e}),n=X(this,Wt).get(i.queryHash),a=n==null?void 0:n.state.data,l=RF(t,a);if(l!==void 0)return X(this,Wt).build(this,i).setData(l,{...r,manual:!0})}setQueriesData(e,t,r){return Fn.batch(()=>X(this,Wt).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=X(this,Wt).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=X(this,Wt);Fn.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=X(this,Wt);return Fn.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},i=Fn.batch(()=>X(this,Wt).findAll(e).map(n=>n.cancel(r)));return Promise.all(i).then(ci).catch(ci)}invalidateQueries(e,t={}){return Fn.batch(()=>(X(this,Wt).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},i=Fn.batch(()=>X(this,Wt).findAll(e).filter(n=>!n.isDisabled()&&!n.isStatic()).map(n=>{let a=n.fetch(void 0,r);return r.throwOnError||(a=a.catch(ci)),n.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(i).then(ci)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=X(this,Wt).build(this,t);return r.isStaleByTime(qy(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ci).catch(ci)}fetchInfiniteQuery(e){return e.behavior=iE(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ci).catch(ci)}ensureInfiniteQueryData(e){return e.behavior=iE(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Wm.isOnline()?X(this,ko).resumePausedMutations():Promise.resolve()}getQueryCache(){return X(this,Wt)}getMutationCache(){return X(this,ko)}getDefaultOptions(){return X(this,wo)}setDefaultOptions(e){Ke(this,wo,e)}setQueryDefaults(e,t){X(this,ts).set(Yc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...X(this,ts).values()],r={};return t.forEach(i=>{Xc(e,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(e,t){X(this,ns).set(Yc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...X(this,ns).values()],r={};return t.forEach(i=>{Xc(e,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...X(this,wo).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=h_(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===v_&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...X(this,wo).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){X(this,Wt).clear(),X(this,ko).clear()}},Wt=new WeakMap,ko=new WeakMap,wo=new WeakMap,ts=new WeakMap,ns=new WeakMap,xo=new WeakMap,rs=new WeakMap,is=new WeakMap,Pj),o5=k.createContext(void 0),u5=({client:e,children:t})=>(k.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),b.jsx(o5.Provider,{value:e,children:t}));function bt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(r.length?" "+r.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var l5={};function Lh(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:l5}var $I=Object.assign,eh=Object.getOwnPropertyDescriptor,Vi=Object.defineProperty,Ph=Object.prototype,Ky=[];Object.freeze(Ky);var SI={};Object.freeze(SI);var s5=typeof Proxy<"u",c5=Object.toString();function kI(){s5||bt("Proxy not available")}function wI(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var Vl=function(){};function $i(e){return typeof e=="function"}function ju(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function Zh(e){return e!==null&&typeof e=="object"}function Aa(e){if(!Zh(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r.toString()===c5}function xI(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function _d(e,t,r){Vi(e,t,{enumerable:!1,writable:!0,configurable:!0,value:r})}function OI(e,t,r){Vi(e,t,{enumerable:!1,writable:!1,configurable:!0,value:r})}function Fu(e,t){var r="isMobX"+e;return t.prototype[r]=!0,function(i){return Zh(i)&&i[r]===!0}}function xs(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function d5(e){var t=Object.getPrototypeOf(e),r=Object.getPrototypeOf(t),i=Object.getPrototypeOf(r);return i===null}function ka(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var EI=typeof Object.getOwnPropertySymbols<"u";function f5(e){var t=Object.keys(e);if(!EI)return t;var r=Object.getOwnPropertySymbols(e);return r.length?[].concat(t,r.filter(function(i){return Ph.propertyIsEnumerable.call(e,i)})):t}var as=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:EI?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function NI(e){return e===null?null:typeof e=="object"?""+e:e}function ja(e,t){return Ph.hasOwnProperty.call(e,t)}var m5=Object.getOwnPropertyDescriptors||function(t){var r={};return as(t).forEach(function(i){r[i]=eh(t,i)}),r};function vr(e,t){return!!(e&t)}function pr(e,t,r){return r?e|=t:e&=~t,e}function oE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function h5(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,p5(i.key),i)}}function Os(e,t,r){return t&&h5(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ql(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=g5(e))||t){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
62
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Iu(){return Iu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Iu.apply(null,arguments)}function jI(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jy(e,t)}function Jy(e,t){return Jy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Jy(e,t)}function v5(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function p5(e){var t=v5(e,"string");return typeof t=="symbol"?t:t+""}function g5(e,t){if(e){if(typeof e=="string")return oE(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oE(e,t):void 0}}var Bi=Symbol("mobx-stored-annotations");function qi(e){function t(r,i){if(Sd(i))return e.decorate_20223_(r,i);$d(r,i,e)}return Object.assign(t,e)}function $d(e,t,r){ja(e,Bi)||_d(e,Bi,Iu({},e[Bi])),w5(r)||(e[Bi][t]=r)}function y5(e){return ja(e,Bi)||_d(e,Bi,Iu({},e[Bi])),e[Bi]}function Sd(e){return typeof e=="object"&&typeof e.kind=="string"}var Ve=Symbol("mobx administration"),Uo=(function(){function e(r){r===void 0&&(r="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=kt.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=r}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(i){return i()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(i){return i()})},t.reportObserved=function(){return qI(this)},t.reportChanged=function(){Hr(),GI(this),Kr()},t.toString=function(){return this.name_},Os(e,[{key:"isBeingObserved",get:function(){return vr(this.flags_,e.isBeingObservedMask_)},set:function(i){this.flags_=pr(this.flags_,e.isBeingObservedMask_,i)}},{key:"isPendingUnobservation",get:function(){return vr(this.flags_,e.isPendingUnobservationMask_)},set:function(i){this.flags_=pr(this.flags_,e.isPendingUnobservationMask_,i)}},{key:"diffValue",get:function(){return vr(this.flags_,e.diffValueMask_)?1:0},set:function(i){this.flags_=pr(this.flags_,e.diffValueMask_,i===1)}}])})();Uo.isBeingObservedMask_=1;Uo.isPendingUnobservationMask_=2;Uo.diffValueMask_=4;var p_=Fu("Atom",Uo);function II(e,t,r){t===void 0&&(t=Vl),r===void 0&&(r=Vl);var i=new Uo(e);return t!==Vl&&N9(i,t),r!==Vl&&XI(i,r),i}function b5(e,t){return cT(e,t)}function _5(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var th={structural:b5,default:_5};function Tu(e,t,r){return nT(e)?e:Array.isArray(e)?Tn.array(e,{name:r}):Aa(e)?Tn.object(e,void 0,{name:r}):xs(e)?Tn.map(e,{name:r}):ka(e)?Tn.set(e,{name:r}):typeof e=="function"&&!os(e)&&!Wc(e)?xI(e)?us(e):Qc(r,e):e}function $5(e,t,r){if(e==null||Hh(e)||Gh(e)||qu(e)||Zi(e))return e;if(Array.isArray(e))return Tn.array(e,{name:r,deep:!1});if(Aa(e))return Tn.object(e,void 0,{name:r,deep:!1});if(xs(e))return Tn.map(e,{name:r,deep:!1});if(ka(e))return Tn.set(e,{name:r,deep:!1})}function Bh(e){return e}function S5(e,t){return cT(e,t)?t:e}var k5="override";function w5(e){return e.annotationType_===k5}function kd(e,t){return{annotationType_:e,options_:t,make_:x5,extend_:O5,decorate_20223_:E5}}function x5(e,t,r,i){var n;if((n=this.options_)!=null&&n.bound)return this.extend_(e,t,r,!1)===null?0:1;if(i===e.target_)return this.extend_(e,t,r,!1)===null?0:2;if(os(r.value))return 1;var a=TI(e,this,t,r,!1);return Vi(i,t,a),2}function O5(e,t,r,i){var n=TI(e,this,t,r);return e.defineProperty_(t,n,i)}function E5(e,t){var r=t.kind,i=t.name,n=t.addInitializer,a=this,l=function(m){var p,g,y,S;return zu((p=(g=a.options_)==null?void 0:g.name)!=null?p:i.toString(),m,(y=(S=a.options_)==null?void 0:S.autoAction)!=null?y:!1)};if(r=="field")return function(f){var m,p=f;return os(p)||(p=l(p)),(m=a.options_)!=null&&m.bound&&(p=p.bind(this),p.isMobxAction=!0),p};if(r=="method"){var d;return os(e)||(e=l(e)),(d=this.options_)!=null&&d.bound&&n(function(){var f=this,m=f[i].bind(f);m.isMobxAction=!0,f[i]=m}),e}bt("Cannot apply '"+a.annotationType_+"' to '"+String(i)+"' (kind: "+r+"):"+(`
|
|
63
|
+
'`+a.annotationType_+"' can only be used on properties with a function value."))}function N5(e,t,r,i){t.annotationType_,i.value}function TI(e,t,r,i,n){var a,l,d,f,m,p,g;n===void 0&&(n=ge.safeDescriptors),N5(e,t,r,i);var y=i.value;if((a=t.options_)!=null&&a.bound){var S;y=y.bind((S=e.proxy_)!=null?S:e.target_)}return{value:zu((l=(d=t.options_)==null?void 0:d.name)!=null?l:r.toString(),y,(f=(m=t.options_)==null?void 0:m.autoAction)!=null?f:!1,(p=t.options_)!=null&&p.bound?(g=e.proxy_)!=null?g:e.target_:void 0),configurable:n?e.isPlainObject_:!0,enumerable:!1,writable:!n}}function zI(e,t){return{annotationType_:e,options_:t,make_:j5,extend_:I5,decorate_20223_:T5}}function j5(e,t,r,i){var n;if(i===e.target_)return this.extend_(e,t,r,!1)===null?0:2;if((n=this.options_)!=null&&n.bound&&(!ja(e.target_,t)||!Wc(e.target_[t]))&&this.extend_(e,t,r,!1)===null)return 0;if(Wc(r.value))return 1;var a=AI(e,this,t,r,!1,!1);return Vi(i,t,a),2}function I5(e,t,r,i){var n,a=AI(e,this,t,r,(n=this.options_)==null?void 0:n.bound);return e.defineProperty_(t,a,i)}function T5(e,t){var r,i=t.name,n=t.addInitializer;return Wc(e)||(e=us(e)),(r=this.options_)!=null&&r.bound&&n(function(){var a=this,l=a[i].bind(a);l.isMobXFlow=!0,a[i]=l}),e}function z5(e,t,r,i){t.annotationType_,i.value}function AI(e,t,r,i,n,a){a===void 0&&(a=ge.safeDescriptors),z5(e,t,r,i);var l=i.value;if(Wc(l)||(l=us(l)),n){var d;l=l.bind((d=e.proxy_)!=null?d:e.target_),l.isMobXFlow=!0}return{value:l,configurable:a?e.isPlainObject_:!0,enumerable:!1,writable:!a}}function g_(e,t){return{annotationType_:e,options_:t,make_:A5,extend_:D5,decorate_20223_:U5}}function A5(e,t,r){return this.extend_(e,t,r,!1)===null?0:1}function D5(e,t,r,i){return C5(e,this,t,r),e.defineComputedProperty_(t,Iu({},this.options_,{get:r.get,set:r.set}),i)}function U5(e,t){var r=this,i=t.name,n=t.addInitializer;return n(function(){var a=Gu(this)[Ve],l=Iu({},r.options_,{get:e,context:this});l.name||(l.name="ObservableObject."+i.toString()),a.values_.set(i,new Si(l))}),function(){return this[Ve].getObservablePropValue_(i)}}function C5(e,t,r,i){t.annotationType_,i.get}function Fh(e,t){return{annotationType_:e,options_:t,make_:R5,extend_:M5,decorate_20223_:L5}}function R5(e,t,r){return this.extend_(e,t,r,!1)===null?0:1}function M5(e,t,r,i){var n,a;return P5(e,this),e.defineObservableProperty_(t,r.value,(n=(a=this.options_)==null?void 0:a.enhancer)!=null?n:Tu,i)}function L5(e,t){var r=this,i=t.kind,n=t.name,a=new WeakSet;function l(d,f){var m,p,g=Gu(d)[Ve],y=new wu(f,(m=(p=r.options_)==null?void 0:p.enhancer)!=null?m:Tu,"ObservableObject."+n.toString(),!1);g.values_.set(n,y),a.add(d)}if(i=="accessor")return{get:function(){return a.has(this)||l(this,e.get.call(this)),this[Ve].getObservablePropValue_(n)},set:function(f){return a.has(this)||l(this,f),this[Ve].setObservablePropValue_(n,f)},init:function(f){return a.has(this)||l(this,f),f}}}function P5(e,t,r,i){t.annotationType_}var Z5="true",B5=DI();function DI(e){return{annotationType_:Z5,options_:e,make_:F5,extend_:V5,decorate_20223_:q5}}function F5(e,t,r,i){var n,a;if(r.get)return Vh.make_(e,t,r,i);if(r.set){var l=os(r.set)?r.set:zu(t.toString(),r.set);return i===e.target_?e.defineProperty_(t,{configurable:ge.safeDescriptors?e.isPlainObject_:!0,set:l})===null?0:2:(Vi(i,t,{configurable:!0,set:l}),2)}if(i!==e.target_&&typeof r.value=="function"){var d;if(xI(r.value)){var f,m=(f=this.options_)!=null&&f.autoBind?us.bound:us;return m.make_(e,t,r,i)}var p=(d=this.options_)!=null&&d.autoBind?Qc.bound:Qc;return p.make_(e,t,r,i)}var g=((n=this.options_)==null?void 0:n.deep)===!1?Tn.ref:Tn;if(typeof r.value=="function"&&(a=this.options_)!=null&&a.autoBind){var y;r.value=r.value.bind((y=e.proxy_)!=null?y:e.target_)}return g.make_(e,t,r,i)}function V5(e,t,r,i){var n,a;if(r.get)return Vh.extend_(e,t,r,i);if(r.set)return e.defineProperty_(t,{configurable:ge.safeDescriptors?e.isPlainObject_:!0,set:zu(t.toString(),r.set)},i);if(typeof r.value=="function"&&(n=this.options_)!=null&&n.autoBind){var l;r.value=r.value.bind((l=e.proxy_)!=null?l:e.target_)}var d=((a=this.options_)==null?void 0:a.deep)===!1?Tn.ref:Tn;return d.extend_(e,t,r,i)}function q5(e,t){bt("'"+this.annotationType_+"' cannot be used as a decorator")}var G5="observable",H5="observable.ref",K5="observable.shallow",J5="observable.struct",UI={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(UI);function $m(e){return e||UI}var Yy=Fh(G5),Y5=Fh(H5,{enhancer:Bh}),X5=Fh(K5,{enhancer:$5}),Q5=Fh(J5,{enhancer:S5}),CI=qi(Yy);function Sm(e){return e.deep===!0?Tu:e.deep===!1?Bh:e9(e.defaultDecorator)}function W5(e){var t;return e?(t=e.defaultDecorator)!=null?t:DI(e):void 0}function e9(e){var t,r;return e&&(t=(r=e.options_)==null?void 0:r.enhancer)!=null?t:Tu}function RI(e,t,r){if(Sd(t))return Yy.decorate_20223_(e,t);if(ju(t)){$d(e,t,Yy);return}return nT(e)?e:Aa(e)?Tn.object(e,t,r):Array.isArray(e)?Tn.array(e,t):xs(e)?Tn.map(e,t):ka(e)?Tn.set(e,t):typeof e=="object"&&e!==null?e:Tn.box(e,t)}$I(RI,CI);var t9={box:function(t,r){var i=$m(r);return new wu(t,Sm(i),i.name,!0,i.equals)},array:function(t,r){var i=$m(r);return(ge.useProxies===!1||i.proxy===!1?W9:F9)(t,Sm(i),i.name)},map:function(t,r){var i=$m(r);return new iT(t,Sm(i),i.name)},set:function(t,r){var i=$m(r);return new aT(t,Sm(i),i.name)},object:function(t,r,i){return Co(function(){return WI(ge.useProxies===!1||(i==null?void 0:i.proxy)===!1?Gu({},i):M9({},i),t,r)})},ref:qi(Y5),shallow:qi(X5),deep:CI,struct:qi(Q5)},Tn=$I(RI,t9),MI="computed",n9="computed.struct",Xy=g_(MI),r9=g_(n9,{equals:th.structural}),Vh=function(t,r){if(Sd(r))return Xy.decorate_20223_(t,r);if(ju(r))return $d(t,r,Xy);if(Aa(t))return qi(g_(MI,t));var i=Aa(r)?r:{};return i.get=t,i.name||(i.name=t.name||""),new Si(i)};Object.assign(Vh,Xy);Vh.struct=qi(r9);var uE,lE,nh=0,i9=1,a9=(uE=(lE=eh(function(){},"name"))==null?void 0:lE.configurable)!=null?uE:!1,sE={value:"action",configurable:!0,writable:!1,enumerable:!1};function zu(e,t,r,i){r===void 0&&(r=!1);function n(){return o9(e,r,t,i||this,arguments)}return n.isMobxAction=!0,n.toString=function(){return t.toString()},a9&&(sE.value=e,Vi(n,"name",sE)),n}function o9(e,t,r,i,n){var a=u9(e,t);try{return r.apply(i,n)}catch(l){throw a.error_=l,l}finally{l9(a)}}function u9(e,t,r,i){var n=!1,a=0,l=ge.trackingDerivation,d=!t||!l;Hr();var f=ge.allowStateChanges;d&&(Vu(),f=y_(!0));var m=__(!0),p={runAsAction_:d,prevDerivation_:l,prevAllowStateChanges_:f,prevAllowStateReads_:m,notifySpy_:n,startTime_:a,actionId_:i9++,parentActionId_:nh};return nh=p.actionId_,p}function l9(e){nh!==e.actionId_&&bt(30),nh=e.parentActionId_,e.error_!==void 0&&(ge.suppressReactionErrors=!0),b_(e.prevAllowStateChanges_),Pc(e.prevAllowStateReads_),Kr(),e.runAsAction_&&Ia(e.prevDerivation_),ge.suppressReactionErrors=!1}function y_(e){var t=ge.allowStateChanges;return ge.allowStateChanges=e,t}function b_(e){ge.allowStateChanges=e}var wu=(function(e){function t(i,n,a,l,d){var f;return a===void 0&&(a="ObservableValue"),d===void 0&&(d=th.default),f=e.call(this,a)||this,f.enhancer=void 0,f.name_=void 0,f.equals=void 0,f.hasUnreportedChange_=!1,f.interceptors_=void 0,f.changeListeners_=void 0,f.value_=void 0,f.dehancer=void 0,f.enhancer=n,f.name_=a,f.equals=d,f.value_=n(i,void 0,a),f}jI(t,e);var r=t.prototype;return r.dehanceValue=function(n){return this.dehancer!==void 0?this.dehancer(n):n},r.set=function(n){this.value_,n=this.prepareNewValue_(n),n!==ge.UNCHANGED&&this.setNewValue_(n)},r.prepareNewValue_=function(n){if(Vr(this)){var a=qr(this,{object:this,type:Gi,newValue:n});if(!a)return ge.UNCHANGED;n=a.newValue}return n=this.enhancer(n,this.value_,this.name_),this.equals(this.value_,n)?ge.UNCHANGED:n},r.setNewValue_=function(n){var a=this.value_;this.value_=n,this.reportChanged(),gi(this)&&yi(this,{type:Gi,object:this,newValue:n,oldValue:a})},r.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},r.intercept_=function(n){return wd(this,n)},r.observe_=function(n,a){return a&&n({observableKind:"value",debugObjectName:this.name_,object:this,type:Gi,newValue:this.value_,oldValue:void 0}),xd(this,n)},r.raw=function(){return this.value_},r.toJSON=function(){return this.get()},r.toString=function(){return this.name_+"["+this.value_+"]"},r.valueOf=function(){return NI(this.get())},r[Symbol.toPrimitive]=function(){return this.valueOf()},t})(Uo),Si=(function(){function e(r){this.dependenciesState_=kt.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=kt.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new ih(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=rh.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,r.get||bt(31),this.derivation=r.get,this.name_=r.name||"ComputedValue",r.set&&(this.setter_=zu("ComputedValue-setter",r.set)),this.equals_=r.equals||(r.compareStructural||r.struct?th.structural:th.default),this.scope_=r.context,this.requiresReaction_=r.requiresReaction,this.keepAlive_=!!r.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){m9(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(i){return i()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(i){return i()})},t.get=function(){if(this.isComputing&&bt(32,this.name_,this.derivation),ge.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)Qy(this)&&(this.warnAboutUntrackedRead_(),Hr(),this.value_=this.computeValue_(!1),Kr());else if(qI(this),Qy(this)){var i=ge.trackingContext;this.keepAlive_&&!i&&(ge.trackingContext=this),this.trackAndCompute()&&f9(this),ge.trackingContext=i}var n=this.value_;if(Bm(n))throw n.cause;return n},t.set=function(i){if(this.setter_){this.isRunningSetter&&bt(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,i)}finally{this.isRunningSetter=!1}}else bt(34,this.name_)},t.trackAndCompute=function(){var i=this.value_,n=this.dependenciesState_===kt.NOT_TRACKING_,a=this.computeValue_(!0),l=n||Bm(i)||Bm(a)||!this.equals_(i,a);return l&&(this.value_=a),l},t.computeValue_=function(i){this.isComputing=!0;var n=y_(!1),a;if(i)a=LI(this,this.derivation,this.scope_);else if(ge.disableErrorBoundaries===!0)a=this.derivation.call(this.scope_);else try{a=this.derivation.call(this.scope_)}catch(l){a=new ih(l)}return b_(n),this.isComputing=!1,a},t.suspend_=function(){this.keepAlive_||(Wy(this),this.value_=void 0)},t.observe_=function(i,n){var a=this,l=!0,d=void 0;return k9(function(){var f=a.get();if(!l||n){var m=Vu();i({observableKind:"computed",debugObjectName:a.name_,type:Gi,object:a,newValue:f,oldValue:d}),Ia(m)}l=!1,d=f})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return NI(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},Os(e,[{key:"isComputing",get:function(){return vr(this.flags_,e.isComputingMask_)},set:function(i){this.flags_=pr(this.flags_,e.isComputingMask_,i)}},{key:"isRunningSetter",get:function(){return vr(this.flags_,e.isRunningSetterMask_)},set:function(i){this.flags_=pr(this.flags_,e.isRunningSetterMask_,i)}},{key:"isBeingObserved",get:function(){return vr(this.flags_,e.isBeingObservedMask_)},set:function(i){this.flags_=pr(this.flags_,e.isBeingObservedMask_,i)}},{key:"isPendingUnobservation",get:function(){return vr(this.flags_,e.isPendingUnobservationMask_)},set:function(i){this.flags_=pr(this.flags_,e.isPendingUnobservationMask_,i)}},{key:"diffValue",get:function(){return vr(this.flags_,e.diffValueMask_)?1:0},set:function(i){this.flags_=pr(this.flags_,e.diffValueMask_,i===1)}}])})();Si.isComputingMask_=1;Si.isRunningSetterMask_=2;Si.isBeingObservedMask_=4;Si.isPendingUnobservationMask_=8;Si.diffValueMask_=16;var qh=Fu("ComputedValue",Si),kt;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(kt||(kt={}));var rh;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(rh||(rh={}));var ih=function(t){this.cause=void 0,this.cause=t};function Bm(e){return e instanceof ih}function Qy(e){switch(e.dependenciesState_){case kt.UP_TO_DATE_:return!1;case kt.NOT_TRACKING_:case kt.STALE_:return!0;case kt.POSSIBLY_STALE_:{for(var t=__(!0),r=Vu(),i=e.observing_,n=i.length,a=0;a<n;a++){var l=i[a];if(qh(l)){if(ge.disableErrorBoundaries)l.get();else try{l.get()}catch{return Ia(r),Pc(t),!0}if(e.dependenciesState_===kt.STALE_)return Ia(r),Pc(t),!0}}return ZI(e),Ia(r),Pc(t),!1}}}function LI(e,t,r){var i=__(!0);ZI(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++ge.runId;var n=ge.trackingDerivation;ge.trackingDerivation=e,ge.inBatch++;var a;if(ge.disableErrorBoundaries===!0)a=t.call(r);else try{a=t.call(r)}catch(l){a=new ih(l)}return ge.inBatch--,ge.trackingDerivation=n,s9(e),Pc(i),a}function s9(e){for(var t=e.observing_,r=e.observing_=e.newObserving_,i=kt.UP_TO_DATE_,n=0,a=e.unboundDepsCount_,l=0;l<a;l++){var d=r[l];d.diffValue===0&&(d.diffValue=1,n!==l&&(r[n]=d),n++),d.dependenciesState_>i&&(i=d.dependenciesState_)}for(r.length=n,e.newObserving_=null,a=t.length;a--;){var f=t[a];f.diffValue===0&&FI(f,e),f.diffValue=0}for(;n--;){var m=r[n];m.diffValue===1&&(m.diffValue=0,d9(m,e))}i!==kt.UP_TO_DATE_&&(e.dependenciesState_=i,e.onBecomeStale_())}function Wy(e){var t=e.observing_;e.observing_=[];for(var r=t.length;r--;)FI(t[r],e);e.dependenciesState_=kt.NOT_TRACKING_}function PI(e){var t=Vu();try{return e()}finally{Ia(t)}}function Vu(){var e=ge.trackingDerivation;return ge.trackingDerivation=null,e}function Ia(e){ge.trackingDerivation=e}function __(e){var t=ge.allowStateReads;return ge.allowStateReads=e,t}function Pc(e){ge.allowStateReads=e}function ZI(e){if(e.dependenciesState_!==kt.UP_TO_DATE_){e.dependenciesState_=kt.UP_TO_DATE_;for(var t=e.observing_,r=t.length;r--;)t[r].lowestObserverState_=kt.UP_TO_DATE_}}var Fm=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Vm=!0,BI=!1,ge=(function(){var e=Lh();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Vm=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new Fm().version&&(Vm=!1),Vm?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Fm):(setTimeout(function(){BI||bt(35)},1),new Fm)})();function c9(){if((ge.pendingReactions.length||ge.inBatch||ge.isRunningReactions)&&bt(36),BI=!0,Vm){var e=Lh();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),ge=new Fm}}function d9(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function FI(e,t){e.observers_.delete(t),e.observers_.size===0&&VI(e)}function VI(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,ge.pendingUnobservations.push(e))}function Hr(){ge.inBatch++}function Kr(){if(--ge.inBatch===0){HI();for(var e=ge.pendingUnobservations,t=0;t<e.length;t++){var r=e[t];r.isPendingUnobservation=!1,r.observers_.size===0&&(r.isBeingObserved&&(r.isBeingObserved=!1,r.onBUO()),r instanceof Si&&r.suspend_())}ge.pendingUnobservations=[]}}function qI(e){var t=ge.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&ge.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&ge.inBatch>0&&VI(e),!1)}function GI(e){e.lowestObserverState_!==kt.STALE_&&(e.lowestObserverState_=kt.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===kt.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=kt.STALE_}))}function f9(e){e.lowestObserverState_!==kt.STALE_&&(e.lowestObserverState_=kt.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===kt.POSSIBLY_STALE_?t.dependenciesState_=kt.STALE_:t.dependenciesState_===kt.UP_TO_DATE_&&(e.lowestObserverState_=kt.UP_TO_DATE_)}))}function m9(e){e.lowestObserverState_===kt.UP_TO_DATE_&&(e.lowestObserverState_=kt.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===kt.UP_TO_DATE_&&(t.dependenciesState_=kt.POSSIBLY_STALE_,t.onBecomeStale_())}))}var Da=(function(){function e(r,i,n,a){r===void 0&&(r="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=kt.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=rh.NONE,this.name_=r,this.onInvalidate_=i,this.errorHandler_=n,this.requiresObservable_=a}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,ge.pendingReactions.push(this),HI())},t.runReaction_=function(){if(!this.isDisposed){Hr(),this.isScheduled=!1;var i=ge.trackingContext;if(ge.trackingContext=this,Qy(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(n){this.reportExceptionInDerivation_(n)}}ge.trackingContext=i,Kr()}},t.track=function(i){if(!this.isDisposed){Hr(),this.isRunning=!0;var n=ge.trackingContext;ge.trackingContext=this;var a=LI(this,i,void 0);ge.trackingContext=n,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&Wy(this),Bm(a)&&this.reportExceptionInDerivation_(a.cause),Kr()}},t.reportExceptionInDerivation_=function(i){var n=this;if(this.errorHandler_){this.errorHandler_(i,this);return}if(ge.disableErrorBoundaries)throw i;var a="[mobx] uncaught error in '"+this+"'";ge.suppressReactionErrors||console.error(a,i),ge.globalReactionErrorHandlers.forEach(function(l){return l(i,n)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(Hr(),Wy(this),Kr()))},t.getDisposer_=function(i){var n=this,a=function l(){n.dispose(),i==null||i.removeEventListener==null||i.removeEventListener("abort",l)};return i==null||i.addEventListener==null||i.addEventListener("abort",a),a[Ve]=this,"dispose"in Symbol&&typeof Symbol.dispose=="symbol"&&(a[Symbol.dispose]=a),a},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(i){},Os(e,[{key:"isDisposed",get:function(){return vr(this.flags_,e.isDisposedMask_)},set:function(i){this.flags_=pr(this.flags_,e.isDisposedMask_,i)}},{key:"isScheduled",get:function(){return vr(this.flags_,e.isScheduledMask_)},set:function(i){this.flags_=pr(this.flags_,e.isScheduledMask_,i)}},{key:"isTrackPending",get:function(){return vr(this.flags_,e.isTrackPendingMask_)},set:function(i){this.flags_=pr(this.flags_,e.isTrackPendingMask_,i)}},{key:"isRunning",get:function(){return vr(this.flags_,e.isRunningMask_)},set:function(i){this.flags_=pr(this.flags_,e.isRunningMask_,i)}},{key:"diffValue",get:function(){return vr(this.flags_,e.diffValueMask_)?1:0},set:function(i){this.flags_=pr(this.flags_,e.diffValueMask_,i===1)}}])})();Da.isDisposedMask_=1;Da.isScheduledMask_=2;Da.isTrackPendingMask_=4;Da.isRunningMask_=8;Da.diffValueMask_=16;var h9=100,eb=function(t){return t()};function HI(){ge.inBatch>0||ge.isRunningReactions||eb(v9)}function v9(){ge.isRunningReactions=!0;for(var e=ge.pendingReactions,t=0;e.length>0;){++t===h9&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var r=e.splice(0),i=0,n=r.length;i<n;i++)r[i].runReaction_()}ge.isRunningReactions=!1}var ah=Fu("Reaction",Da);function p9(e){var t=eb;eb=function(i){return e(function(){return t(i)})}}function Zc(){return!1}function g9(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var KI="action",y9="action.bound",JI="autoAction",b9="autoAction.bound",_9="<unnamed action>",tb=kd(KI),$9=kd(y9,{bound:!0}),nb=kd(JI,{autoAction:!0}),S9=kd(b9,{autoAction:!0,bound:!0});function YI(e){var t=function(i,n){if($i(i))return zu(i.name||_9,i,e);if($i(n))return zu(i,n,e);if(Sd(n))return(e?nb:tb).decorate_20223_(i,n);if(ju(n))return $d(i,n,e?nb:tb);if(ju(i))return qi(kd(e?JI:KI,{name:i,autoAction:e}))};return t}var Gl=YI(!1);Object.assign(Gl,tb);var Qc=YI(!0);Object.assign(Qc,nb);Gl.bound=qi($9);Qc.bound=qi(S9);function os(e){return $i(e)&&e.isMobxAction===!0}function k9(e,t){var r,i,n,a;t===void 0&&(t=SI);var l=(r=(i=t)==null?void 0:i.name)!=null?r:"Autorun",d=!t.scheduler&&!t.delay,f;if(d)f=new Da(l,function(){this.track(g)},t.onError,t.requiresObservable);else{var m=x9(t),p=!1;f=new Da(l,function(){p||(p=!0,m(function(){p=!1,f.isDisposed||f.track(g)}))},t.onError,t.requiresObservable)}function g(){e(f)}return(n=t)!=null&&(n=n.signal)!=null&&n.aborted||f.schedule_(),f.getDisposer_((a=t)==null?void 0:a.signal)}var w9=function(t){return t()};function x9(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:w9}var O9="onBO",E9="onBUO";function N9(e,t,r){return QI(O9,e,t,r)}function XI(e,t,r){return QI(E9,e,t,r)}function QI(e,t,r,i){var n=lh(t),a=$i(i)?i:r,l=e+"L";return n[l]?n[l].add(a):n[l]=new Set([a]),function(){var d=n[l];d&&(d.delete(a),d.size===0&&delete n[l])}}var j9="never",km="always",I9="observed";function T9(e){e.isolateGlobalState===!0&&c9();var t=e.useProxies,r=e.enforceActions;if(t!==void 0&&(ge.useProxies=t===km?!0:t===j9?!1:typeof Proxy<"u"),t==="ifavailable"&&(ge.verifyProxies=!0),r!==void 0){var i=r===km?km:r===I9;ge.enforceActions=i,ge.allowStateChanges=!(i===!0||i===km)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(n){n in e&&(ge[n]=!!e[n])}),ge.allowStateReads=!ge.observableRequiresReaction,e.reactionScheduler&&p9(e.reactionScheduler)}function WI(e,t,r,i){var n=m5(t);return Co(function(){var a=Gu(e,i)[Ve];as(n).forEach(function(l){a.extend_(l,n[l],r&&l in r?r[l]:!0)})}),e}function z9(e,t){return eT(lh(e,t))}function eT(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=A9(e.observing_).map(eT)),t}function A9(e){return Array.from(new Set(e))}var D9=0;function tT(){this.message="FLOW_CANCELLED"}tT.prototype=Object.create(Error.prototype);var cy=zI("flow"),U9=zI("flow.bound",{bound:!0}),us=Object.assign(function(t,r){if(Sd(r))return cy.decorate_20223_(t,r);if(ju(r))return $d(t,r,cy);var i=t,n=i.name||"<unnamed flow>",a=function(){var d=this,f=arguments,m=++D9,p=Gl(n+" - runid: "+m+" - init",i).apply(d,f),g,y=void 0,S=new Promise(function(w,j){var x=0;g=j;function $(z){y=void 0;var T;try{T=Gl(n+" - runid: "+m+" - yield "+x++,p.next).call(p,z)}catch(E){return j(E)}N(T)}function I(z){y=void 0;var T;try{T=Gl(n+" - runid: "+m+" - yield "+x++,p.throw).call(p,z)}catch(E){return j(E)}N(T)}function N(z){if($i(z==null?void 0:z.then)){z.then(N,j);return}return z.done?w(z.value):(y=Promise.resolve(z.value),y.then($,I))}$(void 0)});return S.cancel=Gl(n+" - runid: "+m+" - cancel",function(){try{y&&cE(y);var w=p.return(void 0),j=Promise.resolve(w.value);j.then(Vl,Vl),cE(j),g(new tT)}catch(x){g(x)}}),S};return a.isMobXFlow=!0,a},cy);us.bound=qi(U9);function cE(e){$i(e.cancel)&&e.cancel()}function Wc(e){return(e==null?void 0:e.isMobXFlow)===!0}function C9(e,t){return e?Hh(e)||!!e[Ve]||p_(e)||ah(e)||qh(e):!1}function nT(e){return C9(e)}function wa(e,t){t===void 0&&(t=void 0),Hr();try{return e.apply(t)}finally{Kr()}}function Ml(e){return e[Ve]}var R9={has:function(t,r){return Ml(t).has_(r)},get:function(t,r){return Ml(t).get_(r)},set:function(t,r,i){var n;return ju(r)?(n=Ml(t).set_(r,i,!0))!=null?n:!0:!1},deleteProperty:function(t,r){var i;return ju(r)?(i=Ml(t).delete_(r,!0))!=null?i:!0:!1},defineProperty:function(t,r,i){var n;return(n=Ml(t).defineProperty_(r,i))!=null?n:!0},ownKeys:function(t){return Ml(t).ownKeys_()},preventExtensions:function(t){bt(13)}};function M9(e,t){var r,i;return kI(),e=Gu(e,t),(i=(r=e[Ve]).proxy_)!=null?i:r.proxy_=new Proxy(e,R9)}function Vr(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function wd(e,t){var r=e.interceptors_||(e.interceptors_=[]);return r.push(t),wI(function(){var i=r.indexOf(t);i!==-1&&r.splice(i,1)})}function qr(e,t){var r=Vu();try{for(var i=[].concat(e.interceptors_||[]),n=0,a=i.length;n<a&&(t=i[n](t),t&&!t.type&&bt(14),!!t);n++);return t}finally{Ia(r)}}function gi(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function xd(e,t){var r=e.changeListeners_||(e.changeListeners_=[]);return r.push(t),wI(function(){var i=r.indexOf(t);i!==-1&&r.splice(i,1)})}function yi(e,t){var r=Vu(),i=e.changeListeners_;if(i){i=i.slice();for(var n=0,a=i.length;n<a;n++)i[n](t);Ia(r)}}function L9(e,t,r){return Co(function(){var i,n=Gu(e,r)[Ve];(i=t)!=null||(t=y5(e)),as(t).forEach(function(a){return n.make_(a,t[a])})}),e}var dy=Symbol("mobx-keys");function P9(e,t,r){return Aa(e)?WI(e,e,t,r):(Co(function(){var i=Gu(e,r)[Ve];if(!e[dy]){var n=Object.getPrototypeOf(e),a=new Set([].concat(as(e),as(n)));a.delete("constructor"),a.delete(Ve),_d(n,dy,a)}e[dy].forEach(function(l){return i.make_(l,t&&l in t?t[l]:!0)})}),e)}var dE="splice",Gi="update",Z9=1e4,B9={get:function(t,r){var i=t[Ve];return r===Ve?i:r==="length"?i.getArrayLength_():typeof r=="string"&&!isNaN(r)?i.get_(parseInt(r)):ja(oh,r)?oh[r]:t[r]},set:function(t,r,i){var n=t[Ve];return r==="length"&&n.setArrayLength_(i),typeof r=="symbol"||isNaN(r)?t[r]=i:n.set_(parseInt(r),i),!0},preventExtensions:function(){bt(15)}},$_=(function(){function e(r,i,n,a){r===void 0&&(r="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=a,this.atom_=new Uo(r),this.enhancer_=function(l,d){return i(l,d,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(i){return this.dehancer!==void 0?this.dehancer(i):i},t.dehanceValues_=function(i){return this.dehancer!==void 0&&i.length>0?i.map(this.dehancer):i},t.intercept_=function(i){return wd(this,i)},t.observe_=function(i,n){return n===void 0&&(n=!1),n&&i({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),xd(this,i)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(i){(typeof i!="number"||isNaN(i)||i<0)&&bt("Out of range: "+i);var n=this.values_.length;if(i!==n)if(i>n){for(var a=new Array(i-n),l=0;l<i-n;l++)a[l]=void 0;this.spliceWithArray_(n,0,a)}else this.spliceWithArray_(i,n-i)},t.updateArrayLength_=function(i,n){i!==this.lastKnownLength_&&bt(16),this.lastKnownLength_+=n,this.legacyMode_&&n>0&&sT(i+n+1)},t.spliceWithArray_=function(i,n,a){var l=this;this.atom_;var d=this.values_.length;if(i===void 0?i=0:i>d?i=d:i<0&&(i=Math.max(0,d+i)),arguments.length===1?n=d-i:n==null?n=0:n=Math.max(0,Math.min(n,d-i)),a===void 0&&(a=Ky),Vr(this)){var f=qr(this,{object:this.proxy_,type:dE,index:i,removedCount:n,added:a});if(!f)return Ky;n=f.removedCount,a=f.added}if(a=a.length===0?a:a.map(function(g){return l.enhancer_(g,void 0)}),this.legacyMode_){var m=a.length-n;this.updateArrayLength_(d,m)}var p=this.spliceItemsIntoValues_(i,n,a);return(n!==0||a.length!==0)&&this.notifyArraySplice_(i,a,p),this.dehanceValues_(p)},t.spliceItemsIntoValues_=function(i,n,a){if(a.length<Z9){var l;return(l=this.values_).splice.apply(l,[i,n].concat(a))}else{var d=this.values_.slice(i,i+n),f=this.values_.slice(i+n);this.values_.length+=a.length-n;for(var m=0;m<a.length;m++)this.values_[i+m]=a[m];for(var p=0;p<f.length;p++)this.values_[i+a.length+p]=f[p];return d}},t.notifyArrayChildUpdate_=function(i,n,a){var l=!this.owned_&&Zc(),d=gi(this),f=d||l?{observableKind:"array",object:this.proxy_,type:Gi,debugObjectName:this.atom_.name_,index:i,newValue:n,oldValue:a}:null;this.atom_.reportChanged(),d&&yi(this,f)},t.notifyArraySplice_=function(i,n,a){var l=!this.owned_&&Zc(),d=gi(this),f=d||l?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:dE,index:i,removed:a,added:n,removedCount:a.length,addedCount:n.length}:null;this.atom_.reportChanged(),d&&yi(this,f)},t.get_=function(i){if(this.legacyMode_&&i>=this.values_.length){console.warn("[mobx] Out of bounds read: "+i);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[i])},t.set_=function(i,n){var a=this.values_;if(this.legacyMode_&&i>a.length&&bt(17,i,a.length),i<a.length){this.atom_;var l=a[i];if(Vr(this)){var d=qr(this,{type:Gi,object:this.proxy_,index:i,newValue:n});if(!d)return;n=d.newValue}n=this.enhancer_(n,l);var f=n!==l;f&&(a[i]=n,this.notifyArrayChildUpdate_(i,n,l))}else{for(var m=new Array(i+1-a.length),p=0;p<m.length-1;p++)m[p]=void 0;m[m.length-1]=n,this.spliceWithArray_(a.length,0,m)}},e})();function F9(e,t,r,i){return r===void 0&&(r="ObservableArray"),i===void 0&&(i=!1),kI(),Co(function(){var n=new $_(r,t,i,!1);OI(n.values_,Ve,n);var a=new Proxy(n.values_,B9);return n.proxy_=a,e&&e.length&&n.spliceWithArray_(0,0,e),a})}var oh={clear:function(){return this.splice(0)},replace:function(t){var r=this[Ve];return r.spliceWithArray_(0,r.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,r){for(var i=arguments.length,n=new Array(i>2?i-2:0),a=2;a<i;a++)n[a-2]=arguments[a];var l=this[Ve];switch(arguments.length){case 0:return[];case 1:return l.spliceWithArray_(t);case 2:return l.spliceWithArray_(t,r)}return l.spliceWithArray_(t,r,n)},spliceWithArray:function(t,r,i){return this[Ve].spliceWithArray_(t,r,i)},push:function(){for(var t=this[Ve],r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];return t.spliceWithArray_(t.values_.length,0,i),t.values_.length},pop:function(){return this.splice(Math.max(this[Ve].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[Ve],r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];return t.spliceWithArray_(0,0,i),t.values_.length},reverse:function(){return ge.trackingDerivation&&bt(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){ge.trackingDerivation&&bt(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var r=this[Ve],i=r.dehanceValues_(r.values_).indexOf(t);return i>-1?(this.splice(i,1),!0):!1}};Pt("at",wr);Pt("concat",wr);Pt("flat",wr);Pt("includes",wr);Pt("indexOf",wr);Pt("join",wr);Pt("lastIndexOf",wr);Pt("slice",wr);Pt("toString",wr);Pt("toLocaleString",wr);Pt("toSorted",wr);Pt("toSpliced",wr);Pt("with",wr);Pt("every",Ei);Pt("filter",Ei);Pt("find",Ei);Pt("findIndex",Ei);Pt("findLast",Ei);Pt("findLastIndex",Ei);Pt("flatMap",Ei);Pt("forEach",Ei);Pt("map",Ei);Pt("some",Ei);Pt("toReversed",Ei);Pt("reduce",rT);Pt("reduceRight",rT);function Pt(e,t){typeof Array.prototype[e]=="function"&&(oh[e]=t(e))}function wr(e){return function(){var t=this[Ve];t.atom_.reportObserved();var r=t.dehanceValues_(t.values_);return r[e].apply(r,arguments)}}function Ei(e){return function(t,r){var i=this,n=this[Ve];n.atom_.reportObserved();var a=n.dehanceValues_(n.values_);return a[e](function(l,d){return t.call(r,l,d,i)})}}function rT(e){return function(){var t=this,r=this[Ve];r.atom_.reportObserved();var i=r.dehanceValues_(r.values_),n=arguments[0];return arguments[0]=function(a,l,d){return n(a,l,d,t)},i[e].apply(i,arguments)}}var V9=Fu("ObservableArrayAdministration",$_);function Gh(e){return Zh(e)&&V9(e[Ve])}var q9={},Oo="add",uh="delete",iT=(function(){function e(r,i,n){var a=this;i===void 0&&(i=Tu),n===void 0&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[Ve]=q9,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=i,this.name_=n,$i(Map)||bt(18),Co(function(){a.keysAtom_=II("ObservableMap.keys()"),a.data_=new Map,a.hasMap_=new Map,r&&a.merge(r)})}var t=e.prototype;return t.has_=function(i){return this.data_.has(i)},t.has=function(i){var n=this;if(!ge.trackingDerivation)return this.has_(i);var a=this.hasMap_.get(i);if(!a){var l=a=new wu(this.has_(i),Bh,"ObservableMap.key?",!1);this.hasMap_.set(i,l),XI(l,function(){return n.hasMap_.delete(i)})}return a.get()},t.set=function(i,n){var a=this.has_(i);if(Vr(this)){var l=qr(this,{type:a?Gi:Oo,object:this,newValue:n,name:i});if(!l)return this;n=l.newValue}return a?this.updateValue_(i,n):this.addValue_(i,n),this},t.delete=function(i){var n=this;if(this.keysAtom_,Vr(this)){var a=qr(this,{type:uh,object:this,name:i});if(!a)return!1}if(this.has_(i)){var l=Zc(),d=gi(this),f=d||l?{observableKind:"map",debugObjectName:this.name_,type:uh,object:this,oldValue:this.data_.get(i).value_,name:i}:null;return wa(function(){var m;n.keysAtom_.reportChanged(),(m=n.hasMap_.get(i))==null||m.setNewValue_(!1);var p=n.data_.get(i);p.setNewValue_(void 0),n.data_.delete(i)}),d&&yi(this,f),!0}return!1},t.updateValue_=function(i,n){var a=this.data_.get(i);if(n=a.prepareNewValue_(n),n!==ge.UNCHANGED){var l=Zc(),d=gi(this),f=d||l?{observableKind:"map",debugObjectName:this.name_,type:Gi,object:this,oldValue:a.value_,name:i,newValue:n}:null;a.setNewValue_(n),d&&yi(this,f)}},t.addValue_=function(i,n){var a=this;this.keysAtom_,wa(function(){var m,p=new wu(n,a.enhancer_,"ObservableMap.key",!1);a.data_.set(i,p),n=p.value_,(m=a.hasMap_.get(i))==null||m.setNewValue_(!0),a.keysAtom_.reportChanged()});var l=Zc(),d=gi(this),f=d||l?{observableKind:"map",debugObjectName:this.name_,type:Oo,object:this,name:i,newValue:n}:null;d&&yi(this,f)},t.get=function(i){return this.has(i)?this.dehanceValue_(this.data_.get(i).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(i){return this.dehancer!==void 0?this.dehancer(i):i},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var i=this,n=this.keys();return fE({next:function(){var l=n.next(),d=l.done,f=l.value;return{done:d,value:d?void 0:i.get(f)}}})},t.entries=function(){var i=this,n=this.keys();return fE({next:function(){var l=n.next(),d=l.done,f=l.value;return{done:d,value:d?void 0:[f,i.get(f)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(i,n){for(var a=ql(this),l;!(l=a()).done;){var d=l.value,f=d[0],m=d[1];i.call(n,m,f,this)}},t.merge=function(i){var n=this;return qu(i)&&(i=new Map(i)),wa(function(){Aa(i)?f5(i).forEach(function(a){return n.set(a,i[a])}):Array.isArray(i)?i.forEach(function(a){var l=a[0],d=a[1];return n.set(l,d)}):xs(i)?(d5(i)||bt(19,i),i.forEach(function(a,l){return n.set(l,a)})):i!=null&&bt(20,i)}),this},t.clear=function(){var i=this;wa(function(){PI(function(){for(var n=ql(i.keys()),a;!(a=n()).done;){var l=a.value;i.delete(l)}})})},t.replace=function(i){var n=this;return wa(function(){for(var a=G9(i),l=new Map,d=!1,f=ql(n.data_.keys()),m;!(m=f()).done;){var p=m.value;if(!a.has(p)){var g=n.delete(p);if(g)d=!0;else{var y=n.data_.get(p);l.set(p,y)}}}for(var S=ql(a.entries()),w;!(w=S()).done;){var j=w.value,x=j[0],$=j[1],I=n.data_.has(x);if(n.set(x,$),n.data_.has(x)){var N=n.data_.get(x);l.set(x,N),I||(d=!0)}}if(!d)if(n.data_.size!==l.size)n.keysAtom_.reportChanged();else for(var z=n.data_.keys(),T=l.keys(),E=z.next(),C=T.next();!E.done;){if(E.value!==C.value){n.keysAtom_.reportChanged();break}E=z.next(),C=T.next()}n.data_=l}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(i,n){return xd(this,i)},t.intercept_=function(i){return wd(this,i)},Os(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])})(),qu=Fu("ObservableMap",iT);function fE(e){return e[Symbol.toStringTag]="MapIterator",k_(e)}function G9(e){if(xs(e)||qu(e))return e;if(Array.isArray(e))return new Map(e);if(Aa(e)){var t=new Map;for(var r in e)t.set(r,e[r]);return t}else return bt(21,e)}var H9={},aT=(function(){function e(r,i,n){var a=this;i===void 0&&(i=Tu),n===void 0&&(n="ObservableSet"),this.name_=void 0,this[Ve]=H9,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,$i(Set)||bt(22),this.enhancer_=function(l,d){return i(l,d,n)},Co(function(){a.atom_=II(a.name_),r&&a.replace(r)})}var t=e.prototype;return t.dehanceValue_=function(i){return this.dehancer!==void 0?this.dehancer(i):i},t.clear=function(){var i=this;wa(function(){PI(function(){for(var n=ql(i.data_.values()),a;!(a=n()).done;){var l=a.value;i.delete(l)}})})},t.forEach=function(i,n){for(var a=ql(this),l;!(l=a()).done;){var d=l.value;i.call(n,d,d,this)}},t.add=function(i){var n=this;if(this.atom_,Vr(this)){var a=qr(this,{type:Oo,object:this,newValue:i});if(!a)return this;i=a.newValue}if(!this.has(i)){wa(function(){n.data_.add(n.enhancer_(i,void 0)),n.atom_.reportChanged()});var l=!1,d=gi(this),f=d||l?{observableKind:"set",debugObjectName:this.name_,type:Oo,object:this,newValue:i}:null;d&&yi(this,f)}return this},t.delete=function(i){var n=this;if(Vr(this)){var a=qr(this,{type:uh,object:this,oldValue:i});if(!a)return!1}if(this.has(i)){var l=!1,d=gi(this),f=d||l?{observableKind:"set",debugObjectName:this.name_,type:uh,object:this,oldValue:i}:null;return wa(function(){n.atom_.reportChanged(),n.data_.delete(i)}),d&&yi(this,f),!0}return!1},t.has=function(i){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(i))},t.entries=function(){var i=this.values();return mE({next:function(){var a=i.next(),l=a.value,d=a.done;return d?{value:void 0,done:d}:{value:[l,l],done:d}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var i=this,n=this.data_.values();return mE({next:function(){var l=n.next(),d=l.value,f=l.done;return f?{value:void 0,done:f}:{value:i.dehanceValue_(d),done:f}}})},t.intersection=function(i){if(ka(i)&&!Zi(i))return i.intersection(this);var n=new Set(this);return n.intersection(i)},t.union=function(i){if(ka(i)&&!Zi(i))return i.union(this);var n=new Set(this);return n.union(i)},t.difference=function(i){return new Set(this).difference(i)},t.symmetricDifference=function(i){if(ka(i)&&!Zi(i))return i.symmetricDifference(this);var n=new Set(this);return n.symmetricDifference(i)},t.isSubsetOf=function(i){return new Set(this).isSubsetOf(i)},t.isSupersetOf=function(i){return new Set(this).isSupersetOf(i)},t.isDisjointFrom=function(i){if(ka(i)&&!Zi(i))return i.isDisjointFrom(this);var n=new Set(this);return n.isDisjointFrom(i)},t.replace=function(i){var n=this;return Zi(i)&&(i=new Set(i)),wa(function(){Array.isArray(i)?(n.clear(),i.forEach(function(a){return n.add(a)})):ka(i)?(n.clear(),i.forEach(function(a){return n.add(a)})):i!=null&&bt("Cannot initialize set from "+i)}),this},t.observe_=function(i,n){return xd(this,i)},t.intercept_=function(i){return wd(this,i)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},Os(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])})(),Zi=Fu("ObservableSet",aT);function mE(e){return e[Symbol.toStringTag]="SetIterator",k_(e)}var hE=Object.create(null),vE="remove",oT=(function(){function e(r,i,n,a){i===void 0&&(i=new Map),a===void 0&&(a=B5),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=r,this.values_=i,this.name_=n,this.defaultAnnotation_=a,this.keysAtom_=new Uo("ObservableObject.keys"),this.isPlainObject_=Aa(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(i){return this.values_.get(i).get()},t.setObservablePropValue_=function(i,n){var a=this.values_.get(i);if(a instanceof Si)return a.set(n),!0;if(Vr(this)){var l=qr(this,{type:Gi,object:this.proxy_||this.target_,name:i,newValue:n});if(!l)return null;n=l.newValue}if(n=a.prepareNewValue_(n),n!==ge.UNCHANGED){var d=gi(this),f=!1,m=d||f?{type:Gi,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:a.value_,name:i,newValue:n}:null;a.setNewValue_(n),d&&yi(this,m)}return!0},t.get_=function(i){return ge.trackingDerivation&&!ja(this.target_,i)&&this.has_(i),this.target_[i]},t.set_=function(i,n,a){return a===void 0&&(a=!1),ja(this.target_,i)?this.values_.has(i)?this.setObservablePropValue_(i,n):a?Reflect.set(this.target_,i,n):(this.target_[i]=n,!0):this.extend_(i,{value:n,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,a)},t.has_=function(i){if(!ge.trackingDerivation)return i in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var n=this.pendingKeys_.get(i);return n||(n=new wu(i in this.target_,Bh,"ObservableObject.key?",!1),this.pendingKeys_.set(i,n)),n.get()},t.make_=function(i,n){if(n===!0&&(n=this.defaultAnnotation_),n!==!1){if(!(i in this.target_)){var a;if((a=this.target_[Bi])!=null&&a[i])return;bt(1,n.annotationType_,this.name_+"."+i.toString())}for(var l=this.target_;l&&l!==Ph;){var d=eh(l,i);if(d){var f=n.make_(this,i,d,l);if(f===0)return;if(f===1)break}l=Object.getPrototypeOf(l)}gE(this,n,i)}},t.extend_=function(i,n,a,l){if(l===void 0&&(l=!1),a===!0&&(a=this.defaultAnnotation_),a===!1)return this.defineProperty_(i,n,l);var d=a.extend_(this,i,n,l);return d&&gE(this,a,i),d},t.defineProperty_=function(i,n,a){a===void 0&&(a=!1),this.keysAtom_;try{Hr();var l=this.delete_(i);if(!l)return l;if(Vr(this)){var d=qr(this,{object:this.proxy_||this.target_,name:i,type:Oo,newValue:n.value});if(!d)return null;var f=d.newValue;n.value!==f&&(n=Iu({},n,{value:f}))}if(a){if(!Reflect.defineProperty(this.target_,i,n))return!1}else Vi(this.target_,i,n);this.notifyPropertyAddition_(i,n.value)}finally{Kr()}return!0},t.defineObservableProperty_=function(i,n,a,l){l===void 0&&(l=!1),this.keysAtom_;try{Hr();var d=this.delete_(i);if(!d)return d;if(Vr(this)){var f=qr(this,{object:this.proxy_||this.target_,name:i,type:Oo,newValue:n});if(!f)return null;n=f.newValue}var m=pE(i),p={configurable:ge.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:m.get,set:m.set};if(l){if(!Reflect.defineProperty(this.target_,i,p))return!1}else Vi(this.target_,i,p);var g=new wu(n,a,"ObservableObject.key",!1);this.values_.set(i,g),this.notifyPropertyAddition_(i,g.value_)}finally{Kr()}return!0},t.defineComputedProperty_=function(i,n,a){a===void 0&&(a=!1),this.keysAtom_;try{Hr();var l=this.delete_(i);if(!l)return l;if(Vr(this)){var d=qr(this,{object:this.proxy_||this.target_,name:i,type:Oo,newValue:void 0});if(!d)return null}n.name||(n.name="ObservableObject.key"),n.context=this.proxy_||this.target_;var f=pE(i),m={configurable:ge.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:f.get,set:f.set};if(a){if(!Reflect.defineProperty(this.target_,i,m))return!1}else Vi(this.target_,i,m);this.values_.set(i,new Si(n)),this.notifyPropertyAddition_(i,void 0)}finally{Kr()}return!0},t.delete_=function(i,n){if(n===void 0&&(n=!1),this.keysAtom_,!ja(this.target_,i))return!0;if(Vr(this)){var a=qr(this,{object:this.proxy_||this.target_,name:i,type:vE});if(!a)return null}try{var l;Hr();var d=gi(this),f=!1,m=this.values_.get(i),p=void 0;if(!m&&(d||f)){var g;p=(g=eh(this.target_,i))==null?void 0:g.value}if(n){if(!Reflect.deleteProperty(this.target_,i))return!1}else delete this.target_[i];if(m&&(this.values_.delete(i),m instanceof wu&&(p=m.value_),GI(m)),this.keysAtom_.reportChanged(),(l=this.pendingKeys_)==null||(l=l.get(i))==null||l.set(i in this.target_),d||f){var y={type:vE,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:p,name:i};d&&yi(this,y)}}finally{Kr()}return!0},t.observe_=function(i,n){return xd(this,i)},t.intercept_=function(i){return wd(this,i)},t.notifyPropertyAddition_=function(i,n){var a,l=gi(this),d=!1;if(l||d){var f=l||d?{type:Oo,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:i,newValue:n}:null;l&&yi(this,f)}(a=this.pendingKeys_)==null||(a=a.get(i))==null||a.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),as(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e})();function Gu(e,t){var r;if(ja(e,Ve))return e;var i=(r=t==null?void 0:t.name)!=null?r:"ObservableObject",n=new oT(e,new Map,String(i),W5(t));return _d(e,Ve,n),e}var K9=Fu("ObservableObjectAdministration",oT);function pE(e){return hE[e]||(hE[e]={get:function(){return this[Ve].getObservablePropValue_(e)},set:function(r){return this[Ve].setObservablePropValue_(e,r)}})}function Hh(e){return Zh(e)?K9(e[Ve]):!1}function gE(e,t,r){var i;(i=e.target_[Bi])==null||delete i[r]}var J9=lT(0),Y9=(function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1})(),fy=0,uT=function(){};function X9(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}X9(uT,Array.prototype);var S_=(function(e){function t(i,n,a,l){var d;return a===void 0&&(a="ObservableArray"),l===void 0&&(l=!1),d=e.call(this)||this,Co(function(){var f=new $_(a,n,l,!0);f.proxy_=d,OI(d,Ve,f),i&&i.length&&d.spliceWithArray(0,0,i),Y9&&Object.defineProperty(d,"0",J9)}),d}jI(t,e);var r=t.prototype;return r.concat=function(){this[Ve].atom_.reportObserved();for(var n=arguments.length,a=new Array(n),l=0;l<n;l++)a[l]=arguments[l];return Array.prototype.concat.apply(this.slice(),a.map(function(d){return Gh(d)?d.slice():d}))},r[Symbol.iterator]=function(){var i=this,n=0;return k_({next:function(){return n<i.length?{value:i[n++],done:!1}:{done:!0,value:void 0}}})},Os(t,[{key:"length",get:function(){return this[Ve].getArrayLength_()},set:function(n){this[Ve].setArrayLength_(n)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])})(uT);Object.entries(oh).forEach(function(e){var t=e[0],r=e[1];t!=="concat"&&_d(S_.prototype,t,r)});function lT(e){return{enumerable:!1,configurable:!0,get:function(){return this[Ve].get_(e)},set:function(r){this[Ve].set_(e,r)}}}function Q9(e){Vi(S_.prototype,""+e,lT(e))}function sT(e){if(e>fy){for(var t=fy;t<e+100;t++)Q9(t);fy=e}}sT(1e3);function W9(e,t,r){return new S_(e,t,r)}function lh(e,t){if(typeof e=="object"&&e!==null){if(Gh(e))return t!==void 0&&bt(23),e[Ve].atom_;if(Zi(e))return e.atom_;if(qu(e)){if(t===void 0)return e.keysAtom_;var r=e.data_.get(t)||e.hasMap_.get(t);return r||bt(25,t,rb(e)),r}if(Hh(e)){if(!t)return bt(26);var i=e[Ve].values_.get(t);return i||bt(27,t,rb(e)),i}if(p_(e)||qh(e)||ah(e))return e}else if($i(e)&&ah(e[Ve]))return e[Ve];bt(28)}function eV(e,t){if(e||bt(29),p_(e)||qh(e)||ah(e)||qu(e)||Zi(e))return e;if(e[Ve])return e[Ve];bt(24,e)}function rb(e,t){var r;if(t!==void 0)r=lh(e,t);else{if(os(e))return e.name;Hh(e)||qu(e)||Zi(e)?r=eV(e):r=lh(e)}return r.name_}function Co(e){var t=Vu(),r=y_(!0);Hr();try{return e()}finally{Kr(),b_(r),Ia(t)}}var yE=Ph.toString;function cT(e,t,r){return r===void 0&&(r=-1),ib(e,t,r)}function ib(e,t,r,i,n){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var a=typeof e;if(a!=="function"&&a!=="object"&&typeof t!="object")return!1;var l=yE.call(e);if(l!==yE.call(t))return!1;switch(l){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":r>=0&&r++;break}e=bE(e),t=bE(t);var d=l==="[object Array]";if(!d){if(typeof e!="object"||typeof t!="object")return!1;var f=e.constructor,m=t.constructor;if(f!==m&&!($i(f)&&f instanceof f&&$i(m)&&m instanceof m)&&"constructor"in e&&"constructor"in t)return!1}if(r===0)return!1;r<0&&(r=-1),i=i||[],n=n||[];for(var p=i.length;p--;)if(i[p]===e)return n[p]===t;if(i.push(e),n.push(t),d){if(p=e.length,p!==t.length)return!1;for(;p--;)if(!ib(e[p],t[p],r-1,i,n))return!1}else{var g=Object.keys(e),y=g.length;if(Object.keys(t).length!==y)return!1;for(var S=0;S<y;S++){var w=g[S];if(!(ja(t,w)&&ib(e[w],t[w],r-1,i,n)))return!1}}return i.pop(),n.pop(),!0}function bE(e){return Gh(e)?e.slice():xs(e)||qu(e)||ka(e)||Zi(e)?Array.from(e.entries()):e}var _E,tV=((_E=Lh().Iterator)==null?void 0:_E.prototype)||{};function k_(e){return e[Symbol.iterator]=nV,Object.assign(Object.create(tV),e)}function nV(){return this}["Symbol","Map","Set"].forEach(function(e){var t=Lh();typeof t[e]>"u"&&bt("MobX requires global '"+e+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:g9,extras:{getDebugName:rb},$mobx:Ve});if(!k.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!L9)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function rV(e){e()}function iV(e){e||(e=rV),T9({reactionScheduler:e})}function aV(e){return z9(e)}var oV=1e4,uV=1e4,lV=(function(){function e(t){var r=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(i){i===void 0&&(i=oV),clearTimeout(r.sweepTimeout),r.sweepTimeout=void 0;var n=Date.now();r.registrations.forEach(function(a,l){n-a.registeredAt>=i&&(r.finalize(a.value),r.registrations.delete(l))}),r.registrations.size>0&&r.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){r.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r,i){this.registrations.set(i,{value:r,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,uV))}}),e})(),sV=typeof FinalizationRegistry<"u"?FinalizationRegistry:lV,ab=new sV(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null}),my={exports:{}},hy={};/**
|
|
64
|
+
* @license React
|
|
65
|
+
* use-sync-external-store-shim.production.js
|
|
66
|
+
*
|
|
67
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the MIT license found in the
|
|
70
|
+
* LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/var $E;function cV(){if($E)return hy;$E=1;var e=Ah();function t(g,y){return g===y&&(g!==0||1/g===1/y)||g!==g&&y!==y}var r=typeof Object.is=="function"?Object.is:t,i=e.useState,n=e.useEffect,a=e.useLayoutEffect,l=e.useDebugValue;function d(g,y){var S=y(),w=i({inst:{value:S,getSnapshot:y}}),j=w[0].inst,x=w[1];return a(function(){j.value=S,j.getSnapshot=y,f(j)&&x({inst:j})},[g,S,y]),n(function(){return f(j)&&x({inst:j}),g(function(){f(j)&&x({inst:j})})},[g]),l(S),S}function f(g){var y=g.getSnapshot;g=g.value;try{var S=y();return!r(g,S)}catch{return!0}}function m(g,y){return y()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:d;return hy.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,hy}var SE;function dV(){return SE||(SE=1,my.exports=cV()),my.exports}var fV=dV();function kE(e){e.reaction=new Da("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),(t=e.onStoreChange)===null||t===void 0||t.call(e)})}function mV(e,t){t===void 0&&(t="observed");var r=Tt.useRef(null);if(!r.current){var i={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(d){return ab.unregister(i),i.onStoreChange=d,i.reaction||(kE(i),i.stateVersion=Symbol()),function(){var f;i.onStoreChange=null,(f=i.reaction)===null||f===void 0||f.dispose(),i.reaction=null}},getSnapshot:function(){return i.stateVersion}};r.current=i}var n=r.current;n.reaction||(kE(n),ab.register(r,n,n)),Tt.useDebugValue(n.reaction,aV),fV.useSyncExternalStore(n.subscribe,n.getSnapshot,n.getSnapshot);var a,l;if(n.reaction.track(function(){try{a=e()}catch(d){l=d}}),l)throw l;return a}var vy,py,dT=typeof Symbol=="function"&&Symbol.for,hV=(py=(vy=Object.getOwnPropertyDescriptor(function(){},"name"))===null||vy===void 0?void 0:vy.configurable)!==null&&py!==void 0?py:!1,wE=dT?Symbol.for("react.forward_ref"):typeof k.forwardRef=="function"&&k.forwardRef(function(e){return null}).$$typeof,xE=dT?Symbol.for("react.memo"):typeof k.memo=="function"&&k.memo(function(e){return null}).$$typeof;function fn(e,t){var r;if(xE&&e.$$typeof===xE)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var i=(r=void 0)!==null&&r!==void 0?r:!1,n=e,a=e.displayName||e.name;if(wE&&e.$$typeof===wE&&(i=!0,n=e.render,typeof n!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var l=function(d,f){return mV(function(){return n(d,f)},a)};return l.displayName=e.displayName,hV&&Object.defineProperty(l,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(l.contextTypes=e.contextTypes),i&&(l=k.forwardRef(l)),l=k.memo(l),pV(e,l),l}var vV={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function pV(e,t){Object.keys(e).forEach(function(r){vV[r]||Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}var gy;iV(m_.unstable_batchedUpdates);gy=ab.finalizeAllImmediately;class Jl extends Error{constructor(r,i){const n=`${Jl.extractMessage(r)}: ${JSON.stringify({response:r,request:i})}`;super(n);ya(this,"response");ya(this,"request");Object.setPrototypeOf(this,Jl.prototype),this.response=r,this.request=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Jl)}static extractMessage(r){var i,n;return((n=(i=r.errors)==null?void 0:i[0])==null?void 0:n.message)??`GraphQL Error (Code: ${String(r.status)})`}}const OE=e=>e.toUpperCase(),yy=e=>typeof e=="function"?e():e,fT=(e,t)=>e.map((r,i)=>[r,t[i]]),Ll=e=>{let t={};return e instanceof Headers?t=gV(e):Array.isArray(e)?e.forEach(([r,i])=>{r&&i!==void 0&&(t[r]=i)}):e&&(t=e),t},gV=e=>{const t={};return e.forEach((r,i)=>{t[i]=r}),t},yV=e=>{try{const t=e();return bV(t)?t.catch(r=>EE(r)):t}catch(t){return EE(t)}},EE=e=>e instanceof Error?e:new Error(String(e)),bV=e=>typeof e=="object"&&e!==null&&"then"in e&&typeof e.then=="function"&&"catch"in e&&typeof e.catch=="function"&&"finally"in e&&typeof e.finally=="function",w_=e=>{throw new Error(`Unhandled case: ${String(e)}`)},qm=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),_V=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},$V=(e,t,r)=>e.query?e:{query:e,variables:t,requestHeaders:r,signal:void 0};function Gm(e,t){if(!!!e)throw new Error(t)}function SV(e){return typeof e=="object"&&e!==null}function kV(e,t){if(!!!e)throw new Error("Unexpected invariant triggered.")}const wV=/\r\n|[\n\r]/g;function ob(e,t){let r=0,i=1;for(const n of e.body.matchAll(wV)){if(typeof n.index=="number"||kV(!1),n.index>=t)break;r=n.index+n[0].length,i+=1}return{line:i,column:t+1-r}}function xV(e){return mT(e.source,ob(e.source,e.start))}function mT(e,t){const r=e.locationOffset.column-1,i="".padStart(r)+e.body,n=t.line-1,a=e.locationOffset.line-1,l=t.line+a,d=t.line===1?r:0,f=t.column+d,m=`${e.name}:${l}:${f}
|
|
72
|
+
`,p=i.split(/\r\n|[\n\r]/g),g=p[n];if(g.length>120){const y=Math.floor(f/80),S=f%80,w=[];for(let j=0;j<g.length;j+=80)w.push(g.slice(j,j+80));return m+NE([[`${l} |`,w[0]],...w.slice(1,y+1).map(j=>["|",j]),["|","^".padStart(S)],["|",w[y+1]]])}return m+NE([[`${l-1} |`,p[n-1]],[`${l} |`,g],["|","^".padStart(f)],[`${l+1} |`,p[n+1]]])}function NE(e){const t=e.filter(([i,n])=>n!==void 0),r=Math.max(...t.map(([i])=>i.length));return t.map(([i,n])=>i.padStart(r)+(n?" "+n:"")).join(`
|
|
73
|
+
`)}function OV(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}let EV=class hT extends Error{constructor(t,...r){var i,n,a;const{nodes:l,source:d,positions:f,path:m,originalError:p,extensions:g}=OV(r);super(t),this.name="GraphQLError",this.path=m??void 0,this.originalError=p??void 0,this.nodes=jE(Array.isArray(l)?l:l?[l]:void 0);const y=jE((i=this.nodes)===null||i===void 0?void 0:i.map(w=>w.loc).filter(w=>w!=null));this.source=d??(y==null||(n=y[0])===null||n===void 0?void 0:n.source),this.positions=f??(y==null?void 0:y.map(w=>w.start)),this.locations=f&&d?f.map(w=>ob(d,w)):y==null?void 0:y.map(w=>ob(w.source,w.start));const S=SV(p==null?void 0:p.extensions)?p==null?void 0:p.extensions:void 0;this.extensions=(a=g??S)!==null&&a!==void 0?a:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),p!=null&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,hT):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const r of this.nodes)r.loc&&(t+=`
|
|
74
|
+
|
|
75
|
+
`+xV(r.loc));else if(this.source&&this.locations)for(const r of this.locations)t+=`
|
|
76
|
+
|
|
77
|
+
`+mT(this.source,r);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};function jE(e){return e===void 0||e.length===0?void 0:e}function $n(e,t,r){return new EV(`Syntax Error: ${r}`,{source:e,positions:[t]})}class NV{constructor(t,r,i){this.start=t.start,this.end=r.end,this.startToken=t,this.endToken=r,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class vT{constructor(t,r,i,n,a,l){this.kind=t,this.start=r,this.end=i,this.line=n,this.column=a,this.value=l,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const pT={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},jV=new Set(Object.keys(pT));function IE(e){const t=e==null?void 0:e.kind;return typeof t=="string"&&jV.has(t)}var Hl;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Hl||(Hl={}));var ub;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(ub||(ub={}));var Be;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(Be||(Be={}));function lb(e){return e===9||e===32}function ed(e){return e>=48&&e<=57}function gT(e){return e>=97&&e<=122||e>=65&&e<=90}function yT(e){return gT(e)||e===95}function IV(e){return gT(e)||ed(e)||e===95}function TV(e){var t;let r=Number.MAX_SAFE_INTEGER,i=null,n=-1;for(let l=0;l<e.length;++l){var a;const d=e[l],f=zV(d);f!==d.length&&(i=(a=i)!==null&&a!==void 0?a:l,n=l,l!==0&&f<r&&(r=f))}return e.map((l,d)=>d===0?l:l.slice(r)).slice((t=i)!==null&&t!==void 0?t:0,n+1)}function zV(e){let t=0;for(;t<e.length&&lb(e.charCodeAt(t));)++t;return t}function AV(e,t){const r=e.replace(/"""/g,'\\"""'),i=r.split(/\r\n|[\n\r]/g),n=i.length===1,a=i.length>1&&i.slice(1).every(S=>S.length===0||lb(S.charCodeAt(0))),l=r.endsWith('\\"""'),d=e.endsWith('"')&&!l,f=e.endsWith("\\"),m=d||f,p=!n||e.length>70||m||a||l;let g="";const y=n&&lb(e.charCodeAt(0));return(p&&!y||a)&&(g+=`
|
|
78
|
+
`),g+=r,(p||m)&&(g+=`
|
|
79
|
+
`),'"""'+g+'"""'}var te;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(te||(te={}));class DV{constructor(t){const r=new vT(te.SOF,0,0,0,0);this.source=t,this.lastToken=r,this.token=r,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==te.EOF)do if(t.next)t=t.next;else{const r=CV(this,t.end);t.next=r,r.prev=t,t=r}while(t.kind===te.COMMENT);return t}}function UV(e){return e===te.BANG||e===te.DOLLAR||e===te.AMP||e===te.PAREN_L||e===te.PAREN_R||e===te.SPREAD||e===te.COLON||e===te.EQUALS||e===te.AT||e===te.BRACKET_L||e===te.BRACKET_R||e===te.BRACE_L||e===te.PIPE||e===te.BRACE_R}function Es(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Kh(e,t){return bT(e.charCodeAt(t))&&_T(e.charCodeAt(t+1))}function bT(e){return e>=55296&&e<=56319}function _T(e){return e>=56320&&e<=57343}function Au(e,t){const r=e.source.body.codePointAt(t);if(r===void 0)return te.EOF;if(r>=32&&r<=126){const i=String.fromCodePoint(r);return i==='"'?`'"'`:`"${i}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function cn(e,t,r,i,n){const a=e.line,l=1+r-e.lineStart;return new vT(t,r,i,a,l,n)}function CV(e,t){const r=e.source.body,i=r.length;let n=t;for(;n<i;){const a=r.charCodeAt(n);switch(a){case 65279:case 9:case 32:case 44:++n;continue;case 10:++n,++e.line,e.lineStart=n;continue;case 13:r.charCodeAt(n+1)===10?n+=2:++n,++e.line,e.lineStart=n;continue;case 35:return RV(e,n);case 33:return cn(e,te.BANG,n,n+1);case 36:return cn(e,te.DOLLAR,n,n+1);case 38:return cn(e,te.AMP,n,n+1);case 40:return cn(e,te.PAREN_L,n,n+1);case 41:return cn(e,te.PAREN_R,n,n+1);case 46:if(r.charCodeAt(n+1)===46&&r.charCodeAt(n+2)===46)return cn(e,te.SPREAD,n,n+3);break;case 58:return cn(e,te.COLON,n,n+1);case 61:return cn(e,te.EQUALS,n,n+1);case 64:return cn(e,te.AT,n,n+1);case 91:return cn(e,te.BRACKET_L,n,n+1);case 93:return cn(e,te.BRACKET_R,n,n+1);case 123:return cn(e,te.BRACE_L,n,n+1);case 124:return cn(e,te.PIPE,n,n+1);case 125:return cn(e,te.BRACE_R,n,n+1);case 34:return r.charCodeAt(n+1)===34&&r.charCodeAt(n+2)===34?FV(e,n):LV(e,n)}if(ed(a)||a===45)return MV(e,n,a);if(yT(a))return VV(e,n);throw $n(e.source,n,a===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:Es(a)||Kh(r,n)?`Unexpected character: ${Au(e,n)}.`:`Invalid character: ${Au(e,n)}.`)}return cn(e,te.EOF,i,i)}function RV(e,t){const r=e.source.body,i=r.length;let n=t+1;for(;n<i;){const a=r.charCodeAt(n);if(a===10||a===13)break;if(Es(a))++n;else if(Kh(r,n))n+=2;else break}return cn(e,te.COMMENT,t,n,r.slice(t+1,n))}function MV(e,t,r){const i=e.source.body;let n=t,a=r,l=!1;if(a===45&&(a=i.charCodeAt(++n)),a===48){if(a=i.charCodeAt(++n),ed(a))throw $n(e.source,n,`Invalid number, unexpected digit after 0: ${Au(e,n)}.`)}else n=by(e,n,a),a=i.charCodeAt(n);if(a===46&&(l=!0,a=i.charCodeAt(++n),n=by(e,n,a),a=i.charCodeAt(n)),(a===69||a===101)&&(l=!0,a=i.charCodeAt(++n),(a===43||a===45)&&(a=i.charCodeAt(++n)),n=by(e,n,a),a=i.charCodeAt(n)),a===46||yT(a))throw $n(e.source,n,`Invalid number, expected digit but got: ${Au(e,n)}.`);return cn(e,l?te.FLOAT:te.INT,t,n,i.slice(t,n))}function by(e,t,r){if(!ed(r))throw $n(e.source,t,`Invalid number, expected digit but got: ${Au(e,t)}.`);const i=e.source.body;let n=t+1;for(;ed(i.charCodeAt(n));)++n;return n}function LV(e,t){const r=e.source.body,i=r.length;let n=t+1,a=n,l="";for(;n<i;){const d=r.charCodeAt(n);if(d===34)return l+=r.slice(a,n),cn(e,te.STRING,t,n+1,l);if(d===92){l+=r.slice(a,n);const f=r.charCodeAt(n+1)===117?r.charCodeAt(n+2)===123?PV(e,n):ZV(e,n):BV(e,n);l+=f.value,n+=f.size,a=n;continue}if(d===10||d===13)break;if(Es(d))++n;else if(Kh(r,n))n+=2;else throw $n(e.source,n,`Invalid character within String: ${Au(e,n)}.`)}throw $n(e.source,n,"Unterminated string.")}function PV(e,t){const r=e.source.body;let i=0,n=3;for(;n<12;){const a=r.charCodeAt(t+n++);if(a===125){if(n<5||!Es(i))break;return{value:String.fromCodePoint(i),size:n}}if(i=i<<4|Dc(a),i<0)break}throw $n(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+n)}".`)}function ZV(e,t){const r=e.source.body,i=TE(r,t+2);if(Es(i))return{value:String.fromCodePoint(i),size:6};if(bT(i)&&r.charCodeAt(t+6)===92&&r.charCodeAt(t+7)===117){const n=TE(r,t+8);if(_T(n))return{value:String.fromCodePoint(i,n),size:12}}throw $n(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}function TE(e,t){return Dc(e.charCodeAt(t))<<12|Dc(e.charCodeAt(t+1))<<8|Dc(e.charCodeAt(t+2))<<4|Dc(e.charCodeAt(t+3))}function Dc(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function BV(e,t){const r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
|
|
80
|
+
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw $n(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function FV(e,t){const r=e.source.body,i=r.length;let n=e.lineStart,a=t+3,l=a,d="";const f=[];for(;a<i;){const m=r.charCodeAt(a);if(m===34&&r.charCodeAt(a+1)===34&&r.charCodeAt(a+2)===34){d+=r.slice(l,a),f.push(d);const p=cn(e,te.BLOCK_STRING,t,a+3,TV(f).join(`
|
|
81
|
+
`));return e.line+=f.length-1,e.lineStart=n,p}if(m===92&&r.charCodeAt(a+1)===34&&r.charCodeAt(a+2)===34&&r.charCodeAt(a+3)===34){d+=r.slice(l,a),l=a+1,a+=4;continue}if(m===10||m===13){d+=r.slice(l,a),f.push(d),m===13&&r.charCodeAt(a+1)===10?a+=2:++a,d="",l=a,n=a;continue}if(Es(m))++a;else if(Kh(r,a))a+=2;else throw $n(e.source,a,`Invalid character within String: ${Au(e,a)}.`)}throw $n(e.source,a,"Unterminated string.")}function VV(e,t){const r=e.source.body,i=r.length;let n=t+1;for(;n<i;){const a=r.charCodeAt(n);if(IV(a))++n;else break}return cn(e,te.NAME,t,n,r.slice(t,n))}const qV=10,$T=2;function x_(e){return Jh(e,[])}function Jh(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return GV(e,t);default:return String(e)}}function GV(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(HV(e)){const i=e.toJSON();if(i!==e)return typeof i=="string"?i:Jh(i,r)}else if(Array.isArray(e))return JV(e,r);return KV(e,r)}function HV(e){return typeof e.toJSON=="function"}function KV(e,t){const r=Object.entries(e);return r.length===0?"{}":t.length>$T?"["+YV(e)+"]":"{ "+r.map(([n,a])=>n+": "+Jh(a,t)).join(", ")+" }"}function JV(e,t){if(e.length===0)return"[]";if(t.length>$T)return"[Array]";const r=Math.min(qV,e.length),i=e.length-r,n=[];for(let a=0;a<r;++a)n.push(Jh(e[a],t));return i===1?n.push("... 1 more item"):i>1&&n.push(`... ${i} more items`),"["+n.join(", ")+"]"}function YV(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const r=e.constructor.name;if(typeof r=="string"&&r!=="")return r}return t}const XV=globalThis.process&&!0,QV=XV?function(t,r){return t instanceof r}:function(t,r){if(t instanceof r)return!0;if(typeof t=="object"&&t!==null){var i;const n=r.prototype[Symbol.toStringTag],a=Symbol.toStringTag in t?t[Symbol.toStringTag]:(i=t.constructor)===null||i===void 0?void 0:i.name;if(n===a){const l=x_(t);throw new Error(`Cannot use ${n} "${l}" from another module or realm.
|
|
82
|
+
|
|
83
|
+
Ensure that there is only one instance of "graphql" in the node_modules
|
|
84
|
+
directory. If different versions of "graphql" are the dependencies of other
|
|
85
|
+
relied on modules, use "resolutions" to ensure only one version is installed.
|
|
86
|
+
|
|
87
|
+
https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
88
|
+
|
|
89
|
+
Duplicate "graphql" modules cannot be used at the same time since different
|
|
90
|
+
versions may have different capabilities and behavior. The data from one
|
|
91
|
+
version used in the function from another could produce confusing and
|
|
92
|
+
spurious results.`)}}return!1};class ST{constructor(t,r="GraphQL request",i={line:1,column:1}){typeof t=="string"||Gm(!1,`Body must be a string. Received: ${x_(t)}.`),this.body=t,this.name=r,this.locationOffset=i,this.locationOffset.line>0||Gm(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Gm(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function WV(e){return QV(e,ST)}function e8(e,t){const r=new t8(e,t),i=r.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:r.tokenCount}),i}class t8{constructor(t,r={}){const i=WV(t)?t:new ST(t);this._lexer=new DV(i),this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(te.NAME);return this.node(t,{kind:Be.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:Be.DOCUMENT,definitions:this.many(te.SOF,this.parseDefinition,te.EOF)})}parseDefinition(){if(this.peek(te.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),r=t?this._lexer.lookahead():this._lexer.token;if(r.kind===te.NAME){switch(r.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw $n(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(r.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(r)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(te.BRACE_L))return this.node(t,{kind:Be.OPERATION_DEFINITION,operation:Hl.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const r=this.parseOperationType();let i;return this.peek(te.NAME)&&(i=this.parseName()),this.node(t,{kind:Be.OPERATION_DEFINITION,operation:r,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(te.NAME);switch(t.value){case"query":return Hl.QUERY;case"mutation":return Hl.MUTATION;case"subscription":return Hl.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(te.PAREN_L,this.parseVariableDefinition,te.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Be.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(te.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(te.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(te.DOLLAR),this.node(t,{kind:Be.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Be.SELECTION_SET,selections:this.many(te.BRACE_L,this.parseSelection,te.BRACE_R)})}parseSelection(){return this.peek(te.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,r=this.parseName();let i,n;return this.expectOptionalToken(te.COLON)?(i=r,n=this.parseName()):n=r,this.node(t,{kind:Be.FIELD,alias:i,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(te.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const r=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(te.PAREN_L,r,te.PAREN_R)}parseArgument(t=!1){const r=this._lexer.token,i=this.parseName();return this.expectToken(te.COLON),this.node(r,{kind:Be.ARGUMENT,name:i,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(te.SPREAD);const r=this.expectOptionalKeyword("on");return!r&&this.peek(te.NAME)?this.node(t,{kind:Be.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:Be.INLINE_FRAGMENT,typeCondition:r?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:Be.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:Be.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const r=this._lexer.token;switch(r.kind){case te.BRACKET_L:return this.parseList(t);case te.BRACE_L:return this.parseObject(t);case te.INT:return this.advanceLexer(),this.node(r,{kind:Be.INT,value:r.value});case te.FLOAT:return this.advanceLexer(),this.node(r,{kind:Be.FLOAT,value:r.value});case te.STRING:case te.BLOCK_STRING:return this.parseStringLiteral();case te.NAME:switch(this.advanceLexer(),r.value){case"true":return this.node(r,{kind:Be.BOOLEAN,value:!0});case"false":return this.node(r,{kind:Be.BOOLEAN,value:!1});case"null":return this.node(r,{kind:Be.NULL});default:return this.node(r,{kind:Be.ENUM,value:r.value})}case te.DOLLAR:if(t)if(this.expectToken(te.DOLLAR),this._lexer.token.kind===te.NAME){const i=this._lexer.token.value;throw $n(this._lexer.source,r.start,`Unexpected variable "$${i}" in constant value.`)}else throw this.unexpected(r);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:Be.STRING,value:t.value,block:t.kind===te.BLOCK_STRING})}parseList(t){const r=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:Be.LIST,values:this.any(te.BRACKET_L,r,te.BRACKET_R)})}parseObject(t){const r=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:Be.OBJECT,fields:this.any(te.BRACE_L,r,te.BRACE_R)})}parseObjectField(t){const r=this._lexer.token,i=this.parseName();return this.expectToken(te.COLON),this.node(r,{kind:Be.OBJECT_FIELD,name:i,value:this.parseValueLiteral(t)})}parseDirectives(t){const r=[];for(;this.peek(te.AT);)r.push(this.parseDirective(t));return r}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const r=this._lexer.token;return this.expectToken(te.AT),this.node(r,{kind:Be.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let r;if(this.expectOptionalToken(te.BRACKET_L)){const i=this.parseTypeReference();this.expectToken(te.BRACKET_R),r=this.node(t,{kind:Be.LIST_TYPE,type:i})}else r=this.parseNamedType();return this.expectOptionalToken(te.BANG)?this.node(t,{kind:Be.NON_NULL_TYPE,type:r}):r}parseNamedType(){return this.node(this._lexer.token,{kind:Be.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(te.STRING)||this.peek(te.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("schema");const i=this.parseConstDirectives(),n=this.many(te.BRACE_L,this.parseOperationTypeDefinition,te.BRACE_R);return this.node(t,{kind:Be.SCHEMA_DEFINITION,description:r,directives:i,operationTypes:n})}parseOperationTypeDefinition(){const t=this._lexer.token,r=this.parseOperationType();this.expectToken(te.COLON);const i=this.parseNamedType();return this.node(t,{kind:Be.OPERATION_TYPE_DEFINITION,operation:r,type:i})}parseScalarTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("scalar");const i=this.parseName(),n=this.parseConstDirectives();return this.node(t,{kind:Be.SCALAR_TYPE_DEFINITION,description:r,name:i,directives:n})}parseObjectTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("type");const i=this.parseName(),n=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),l=this.parseFieldsDefinition();return this.node(t,{kind:Be.OBJECT_TYPE_DEFINITION,description:r,name:i,interfaces:n,directives:a,fields:l})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(te.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(te.BRACE_L,this.parseFieldDefinition,te.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,r=this.parseDescription(),i=this.parseName(),n=this.parseArgumentDefs();this.expectToken(te.COLON);const a=this.parseTypeReference(),l=this.parseConstDirectives();return this.node(t,{kind:Be.FIELD_DEFINITION,description:r,name:i,arguments:n,type:a,directives:l})}parseArgumentDefs(){return this.optionalMany(te.PAREN_L,this.parseInputValueDef,te.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,r=this.parseDescription(),i=this.parseName();this.expectToken(te.COLON);const n=this.parseTypeReference();let a;this.expectOptionalToken(te.EQUALS)&&(a=this.parseConstValueLiteral());const l=this.parseConstDirectives();return this.node(t,{kind:Be.INPUT_VALUE_DEFINITION,description:r,name:i,type:n,defaultValue:a,directives:l})}parseInterfaceTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("interface");const i=this.parseName(),n=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),l=this.parseFieldsDefinition();return this.node(t,{kind:Be.INTERFACE_TYPE_DEFINITION,description:r,name:i,interfaces:n,directives:a,fields:l})}parseUnionTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("union");const i=this.parseName(),n=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(t,{kind:Be.UNION_TYPE_DEFINITION,description:r,name:i,directives:n,types:a})}parseUnionMemberTypes(){return this.expectOptionalToken(te.EQUALS)?this.delimitedMany(te.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("enum");const i=this.parseName(),n=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(t,{kind:Be.ENUM_TYPE_DEFINITION,description:r,name:i,directives:n,values:a})}parseEnumValuesDefinition(){return this.optionalMany(te.BRACE_L,this.parseEnumValueDefinition,te.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,r=this.parseDescription(),i=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(t,{kind:Be.ENUM_VALUE_DEFINITION,description:r,name:i,directives:n})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw $n(this._lexer.source,this._lexer.token.start,`${wm(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("input");const i=this.parseName(),n=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(t,{kind:Be.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:i,directives:n,fields:a})}parseInputFieldsDefinition(){return this.optionalMany(te.BRACE_L,this.parseInputValueDef,te.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===te.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const r=this.parseConstDirectives(),i=this.optionalMany(te.BRACE_L,this.parseOperationTypeDefinition,te.BRACE_R);if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:Be.SCHEMA_EXTENSION,directives:r,operationTypes:i})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const r=this.parseName(),i=this.parseConstDirectives();if(i.length===0)throw this.unexpected();return this.node(t,{kind:Be.SCALAR_TYPE_EXTENSION,name:r,directives:i})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const r=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(i.length===0&&n.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:Be.OBJECT_TYPE_EXTENSION,name:r,interfaces:i,directives:n,fields:a})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const r=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(i.length===0&&n.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:Be.INTERFACE_TYPE_EXTENSION,name:r,interfaces:i,directives:n,fields:a})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const r=this.parseName(),i=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(i.length===0&&n.length===0)throw this.unexpected();return this.node(t,{kind:Be.UNION_TYPE_EXTENSION,name:r,directives:i,types:n})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const r=this.parseName(),i=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(i.length===0&&n.length===0)throw this.unexpected();return this.node(t,{kind:Be.ENUM_TYPE_EXTENSION,name:r,directives:i,values:n})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const r=this.parseName(),i=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(i.length===0&&n.length===0)throw this.unexpected();return this.node(t,{kind:Be.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:i,fields:n})}parseDirectiveDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("directive"),this.expectToken(te.AT);const i=this.parseName(),n=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const l=this.parseDirectiveLocations();return this.node(t,{kind:Be.DIRECTIVE_DEFINITION,description:r,name:i,arguments:n,repeatable:a,locations:l})}parseDirectiveLocations(){return this.delimitedMany(te.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,r=this.parseName();if(Object.prototype.hasOwnProperty.call(ub,r.value))return r;throw this.unexpected(t)}node(t,r){return this._options.noLocation!==!0&&(r.loc=new NV(t,this._lexer.lastToken,this._lexer.source)),r}peek(t){return this._lexer.token.kind===t}expectToken(t){const r=this._lexer.token;if(r.kind===t)return this.advanceLexer(),r;throw $n(this._lexer.source,r.start,`Expected ${kT(t)}, found ${wm(r)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const r=this._lexer.token;if(r.kind===te.NAME&&r.value===t)this.advanceLexer();else throw $n(this._lexer.source,r.start,`Expected "${t}", found ${wm(r)}.`)}expectOptionalKeyword(t){const r=this._lexer.token;return r.kind===te.NAME&&r.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const r=t??this._lexer.token;return $n(this._lexer.source,r.start,`Unexpected ${wm(r)}.`)}any(t,r,i){this.expectToken(t);const n=[];for(;!this.expectOptionalToken(i);)n.push(r.call(this));return n}optionalMany(t,r,i){if(this.expectOptionalToken(t)){const n=[];do n.push(r.call(this));while(!this.expectOptionalToken(i));return n}return[]}many(t,r,i){this.expectToken(t);const n=[];do n.push(r.call(this));while(!this.expectOptionalToken(i));return n}delimitedMany(t,r){this.expectOptionalToken(t);const i=[];do i.push(r.call(this));while(this.expectOptionalToken(t));return i}advanceLexer(){const{maxTokens:t}=this._options,r=this._lexer.advance();if(r.kind!==te.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw $n(this._lexer.source,r.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function wm(e){const t=e.value;return kT(e.kind)+(t!=null?` "${t}"`:"")}function kT(e){return UV(e)?`"${e}"`:e}function n8(e){return`"${e.replace(r8,i8)}"`}const r8=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function i8(e){return a8[e.charCodeAt(0)]}const a8=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],o8=Object.freeze({});function u8(e,t,r=pT){const i=new Map;for(const $ of Object.values(Be))i.set($,l8(t,$));let n,a=Array.isArray(e),l=[e],d=-1,f=[],m=e,p,g;const y=[],S=[];do{d++;const $=d===l.length,I=$&&f.length!==0;if($){if(p=S.length===0?void 0:y[y.length-1],m=g,g=S.pop(),I)if(a){m=m.slice();let z=0;for(const[T,E]of f){const C=T-z;E===null?(m.splice(C,1),z++):m[C]=E}}else{m={...m};for(const[z,T]of f)m[z]=T}d=n.index,l=n.keys,f=n.edits,a=n.inArray,n=n.prev}else if(g){if(p=a?d:l[d],m=g[p],m==null)continue;y.push(p)}let N;if(!Array.isArray(m)){var w,j;IE(m)||Gm(!1,`Invalid AST Node: ${x_(m)}.`);const z=$?(w=i.get(m.kind))===null||w===void 0?void 0:w.leave:(j=i.get(m.kind))===null||j===void 0?void 0:j.enter;if(N=z==null?void 0:z.call(t,m,p,g,y,S),N===o8)break;if(N===!1){if(!$){y.pop();continue}}else if(N!==void 0&&(f.push([p,N]),!$))if(IE(N))m=N;else{y.pop();continue}}if(N===void 0&&I&&f.push([p,m]),$)y.pop();else{var x;n={inArray:a,index:d,keys:l,edits:f,prev:n},a=Array.isArray(m),l=a?m:(x=r[m.kind])!==null&&x!==void 0?x:[],d=-1,f=[],g&&S.push(g),g=m}}while(n!==void 0);return f.length!==0?f[f.length-1][1]:e}function l8(e,t){const r=e[t];return typeof r=="object"?r:typeof r=="function"?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}function s8(e){return u8(e,d8)}const c8=80,d8={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>xe(e.definitions,`
|
|
93
|
+
|
|
94
|
+
`)},OperationDefinition:{leave(e){const t=ht("(",xe(e.variableDefinitions,", "),")"),r=xe([e.operation,xe([e.name,t]),xe(e.directives," ")]," ");return(r==="query"?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:i})=>e+": "+t+ht(" = ",r)+ht(" ",xe(i," "))},SelectionSet:{leave:({selections:e})=>li(e)},Field:{leave({alias:e,name:t,arguments:r,directives:i,selectionSet:n}){const a=ht("",e,": ")+t;let l=a+ht("(",xe(r,", "),")");return l.length>c8&&(l=a+ht(`(
|
|
95
|
+
`,Hm(xe(r,`
|
|
96
|
+
`)),`
|
|
97
|
+
)`)),xe([l,xe(i," "),n]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+ht(" ",xe(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>xe(["...",ht("on ",e),xe(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:i,selectionSet:n})=>`fragment ${e}${ht("(",xe(r,", "),")")} on ${t} ${ht("",xe(i," ")," ")}`+n},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?AV(e):n8(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+xe(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+xe(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+ht("(",xe(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>ht("",e,`
|
|
98
|
+
`)+xe(["schema",xe(t," "),li(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>ht("",e,`
|
|
99
|
+
`)+xe(["scalar",t,xe(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:i,fields:n})=>ht("",e,`
|
|
100
|
+
`)+xe(["type",t,ht("implements ",xe(r," & ")),xe(i," "),li(n)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:i,directives:n})=>ht("",e,`
|
|
101
|
+
`)+t+(zE(r)?ht(`(
|
|
102
|
+
`,Hm(xe(r,`
|
|
103
|
+
`)),`
|
|
104
|
+
)`):ht("(",xe(r,", "),")"))+": "+i+ht(" ",xe(n," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:i,directives:n})=>ht("",e,`
|
|
105
|
+
`)+xe([t+": "+r,ht("= ",i),xe(n," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:i,fields:n})=>ht("",e,`
|
|
106
|
+
`)+xe(["interface",t,ht("implements ",xe(r," & ")),xe(i," "),li(n)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:i})=>ht("",e,`
|
|
107
|
+
`)+xe(["union",t,xe(r," "),ht("= ",xe(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:i})=>ht("",e,`
|
|
108
|
+
`)+xe(["enum",t,xe(r," "),li(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>ht("",e,`
|
|
109
|
+
`)+xe([t,xe(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:i})=>ht("",e,`
|
|
110
|
+
`)+xe(["input",t,xe(r," "),li(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:i,locations:n})=>ht("",e,`
|
|
111
|
+
`)+"directive @"+t+(zE(r)?ht(`(
|
|
112
|
+
`,Hm(xe(r,`
|
|
113
|
+
`)),`
|
|
114
|
+
)`):ht("(",xe(r,", "),")"))+(i?" repeatable":"")+" on "+xe(n," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>xe(["extend schema",xe(e," "),li(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>xe(["extend scalar",e,xe(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:i})=>xe(["extend type",e,ht("implements ",xe(t," & ")),xe(r," "),li(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:i})=>xe(["extend interface",e,ht("implements ",xe(t," & ")),xe(r," "),li(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>xe(["extend union",e,xe(t," "),ht("= ",xe(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>xe(["extend enum",e,xe(t," "),li(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>xe(["extend input",e,xe(t," "),li(r)]," ")}};function xe(e,t=""){var r;return(r=e==null?void 0:e.filter(i=>i).join(t))!==null&&r!==void 0?r:""}function li(e){return ht(`{
|
|
115
|
+
`,Hm(xe(e,`
|
|
116
|
+
`)),`
|
|
117
|
+
}`)}function ht(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function Hm(e){return ht(" ",e.replace(/\n/g,`
|
|
118
|
+
`))}function zE(e){var t;return(t=e==null?void 0:e.some(r=>r.includes(`
|
|
119
|
+
`)))!==null&&t!==void 0?t:!1}const AE="Accept",sb="Content-Type",cb="application/json",wT="application/graphql-response+json",DE=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),f8=e=>{const t=e.toLowerCase();return t.includes(wT)||t.includes(cb)},UE=e=>{try{if(Array.isArray(e))return{_tag:"Batch",executionResults:e.map(CE)};if(qm(e))return{_tag:"Single",executionResult:CE(e)};throw new Error(`Invalid execution result: result is not object or array.
|
|
120
|
+
Got:
|
|
121
|
+
${String(e)}`)}catch(t){return t}},CE=e=>{if(typeof e!="object"||e===null)throw new Error("Invalid execution result: result is not object");let t,r,i;if("errors"in e){if(!qm(e.errors)&&!Array.isArray(e.errors))throw new Error("Invalid execution result: errors is not plain object OR array");t=e.errors}if("data"in e){if(!qm(e.data)&&e.data!==null)throw new Error("Invalid execution result: data is not plain object");r=e.data}if("extensions"in e){if(!qm(e.extensions))throw new Error("Invalid execution result: extensions is not plain object");i=e.extensions}return{data:r,errors:t,extensions:i}},m8=e=>e._tag==="Batch"?e.executionResults.some(RE):RE(e.executionResult),RE=e=>Array.isArray(e.errors)?e.errors.length>0:!!e.errors,xT=e=>typeof e=="object"&&e!==null&&"kind"in e&&e.kind===Be.OPERATION_DEFINITION,h8=e=>{var i;let t;const r=e.definitions.filter(xT);return r.length===1&&(t=(i=r[0].name)==null?void 0:i.value),t},v8=e=>{let t=!1;const r=e.definitions.filter(xT);return r.length===1&&(t=r[0].operation==="mutation"),t},_y=(e,t)=>{const r=typeof e=="string"?e:s8(e);let i=!1,n;if(t)return{expression:r,isMutation:i,operationName:n};const a=yV(()=>typeof e=="string"?e8(e):e);return a instanceof Error?{expression:r,isMutation:i,operationName:n}:(n=h8(a),i=v8(a),{expression:r,operationName:n,isMutation:i})},O_=JSON,$y=async e=>{const t={...e,method:e.request._tag==="Single"?e.request.document.isMutation?"POST":OE(e.method??"post"):e.request.hasMutations?"POST":OE(e.method??"post"),fetchOptions:{...e.fetchOptions,errorPolicy:e.fetchOptions.errorPolicy??"none"}},i=await g8(t.method)(t);if(!i.ok)return new Jl({status:i.status,headers:i.headers},{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables});const n=await p8(i,e.fetchOptions.jsonSerializer??O_);if(n instanceof Error)throw n;const a={status:i.status,headers:i.headers};if(m8(n)&&t.fetchOptions.errorPolicy==="none"){const l=n._tag==="Batch"?{...n.executionResults,...a}:{...n.executionResult,...a};return new Jl(l,{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables})}switch(n._tag){case"Single":return{...a,...ME(t)(n.executionResult)};case"Batch":return{...a,data:n.executionResults.map(ME(t))};default:w_(n)}},ME=e=>t=>({extensions:t.extensions,data:t.data,errors:e.fetchOptions.errorPolicy==="all"?t.errors:void 0}),p8=async(e,t)=>{const r=e.headers.get(sb),i=await e.text();return r&&f8(r)?UE(t.parse(i)):UE(i)},g8=e=>async t=>{const r=new Headers(t.headers);let i=null,n;r.has(AE)||r.set(AE,[wT,cb].join(", ")),e==="POST"?(n=(t.fetchOptions.jsonSerializer??O_).stringify(y8(t)),typeof n=="string"&&!r.has(sb)&&r.set(sb,cb)):i=b8(t);const a={method:e,headers:r,body:n,...t.fetchOptions};let l=new URL(t.url),d=a;if(t.middleware){const m=await Promise.resolve(t.middleware({...a,url:t.url,operationName:t.request._tag==="Single"?t.request.document.operationName:void 0,variables:t.request.variables})),{url:p,...g}=m;l=new URL(p),d=g}return i&&i.forEach((m,p)=>{l.searchParams.append(p,m)}),await(t.fetch??fetch)(l,d)},y8=e=>{switch(e.request._tag){case"Single":return{query:e.request.document.expression,variables:e.request.variables,operationName:e.request.document.operationName};case"Batch":return fT(e.request.query,e.request.variables??[]).map(([t,r])=>({query:t,variables:r}));default:throw w_(e.request)}},b8=e=>{var i;const t=e.fetchOptions.jsonSerializer??O_,r=new URLSearchParams;switch(e.request._tag){case"Single":return r.append("query",DE(e.request.document.expression)),e.request.variables&&r.append("variables",t.stringify(e.request.variables)),e.request.document.operationName&&r.append("operationName",e.request.document.operationName),r;case"Batch":{const n=((i=e.request.variables)==null?void 0:i.map(d=>t.stringify(d)))??[],a=e.request.query.map(DE),l=fT(a,n).map(([d,f])=>({query:d,variables:f}));return r.append("query",t.stringify(l)),r}default:throw w_(e.request)}};class _8{constructor(t,r={}){ya(this,"url");ya(this,"requestConfig");ya(this,"rawRequest",async(...t)=>{const[r,i,n]=t,a=$V(r,i,n),{headers:l,fetch:d=globalThis.fetch,method:f="POST",requestMiddleware:m,responseMiddleware:p,excludeOperationName:g,...y}=this.requestConfig,{url:S}=this;a.signal!==void 0&&(y.signal=a.signal);const w=_y(a.query,g),j=await $y({url:S,request:{_tag:"Single",document:w,variables:a.variables},headers:{...Ll(yy(l)),...Ll(a.requestHeaders)},fetch:d,method:f,fetchOptions:y,middleware:m});if(p&&await p(j,{operationName:w.operationName,variables:i,url:this.url}),j instanceof Error)throw j;return j});this.url=t,this.requestConfig=r}async request(t,...r){const[i,n]=r,a=$8(t,i,n),{headers:l,fetch:d=globalThis.fetch,method:f="POST",requestMiddleware:m,responseMiddleware:p,excludeOperationName:g,...y}=this.requestConfig,{url:S}=this;a.signal!==void 0&&(y.signal=a.signal);const w=_y(a.document,g),j=await $y({url:S,request:{_tag:"Single",document:w,variables:a.variables},headers:{...Ll(yy(l)),...Ll(a.requestHeaders)},fetch:d,method:f,fetchOptions:y,middleware:m});if(p&&await p(j,{operationName:w.operationName,variables:a.variables,url:this.url}),j instanceof Error)throw j;return j.data}async batchRequests(t,r){const i=_V(t,r),{headers:n,excludeOperationName:a,...l}=this.requestConfig;i.signal!==void 0&&(l.signal=i.signal);const d=i.documents.map(({document:y})=>_y(y,a)),f=d.map(({expression:y})=>y),m=d.some(({isMutation:y})=>y),p=i.documents.map(({variables:y})=>y),g=await $y({url:this.url,request:{_tag:"Batch",operationName:void 0,query:f,hasMutations:m,variables:p},headers:{...Ll(yy(n)),...Ll(i.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:l,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware&&await this.requestConfig.responseMiddleware(g,{operationName:void 0,variables:p,url:this.url}),g instanceof Error)throw g;return g.data}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,r){const{headers:i}=this.requestConfig;return i?i[t]=r:this.requestConfig.headers={[t]:r},this}setEndpoint(t){return this.url=t,this}}const $8=(e,t,r)=>e.document?e:{document:e,variables:t,requestHeaders:r,signal:void 0},db=window.location.origin+"/graphql",OT=(e,t)=>{const[r,i]=k.useState(!1),[n,a]=k.useState(!1),[l,d]=k.useState(null),[f,m]=k.useState(null),p=k.useRef(null);return k.useEffect(()=>{p.current=({variables:y})=>{if(r)return Promise.reject(new Error("Mutation already in progress"));a(!0),i(!0),d(null);const S=new AbortController,w={...t,variables:y,signal:S.signal};return ls(e,w).then(j=>(m(j),d(null),t.onSuccess&&t.onSuccess(j),j)).catch(j=>{throw m(null),d(j),j}).finally(()=>{i(!1),S.abort()})}},[e,r,t]),[k.useCallback(({variables:y})=>p.current?p.current({variables:y}):Promise.reject(new Error("Mutation function not initialized")),[]),{data:f,loading:r,error:l,called:n}]},Ro=(e,t,r)=>{const[i,n]=k.useState(!0),[a,l]=k.useState(!1),[d,f]=k.useState(null),[m,p]=k.useState(null),g=k.useRef(null),y=k.useMemo(()=>t,[t.document,t.variables&&JSON.stringify(t.variables),t.skip]),S=k.useRef(t.onCompleted);k.useEffect(()=>{S.current=t.onCompleted});const w=k.useCallback(I=>{var N;(N=S.current)==null||N.call(S,I)},[]),j=k.useCallback(()=>{console.log("[useQuery2] load",{options:y}),g.current&&g.current.abort();const I=new AbortController;g.current=I;const N=ls(e,{...y,signal:I.signal},r);return N.then(z=>{console.log("[useQuery2] result",z),p(z),f(null),w(z)}).catch(z=>{z.name==="AbortError"?console.log("[useQuery2] Request was aborted"):(console.error("[useQuery2] error",z),p(null),f(z))}).finally(()=>{g.current===I&&(g.current=null)}),N},[e,r,w,y]);k.useEffect(()=>{if(!t.skip)return n(!0),j().finally(()=>{n(!1)}),()=>{g.current&&g.current.abort()}},[j,t.skip]);const x=k.useCallback(I=>(I!=null&&I.background||l(!0),j().finally(()=>{I!=null&&I.background||l(!1)})),[j]),$=k.useCallback(async({variables:I,updateQuery:N})=>{l(!0);const z=new AbortController;try{const T={...y,variables:I??y.variables,signal:z.signal},E=await ls(e,T,r);p(N?C=>N(C,E):E),f(null),w(E)}catch(T){throw T instanceof Error&&T.name==="AbortError"?console.log("[useQuery2] fetchMore request was aborted"):T instanceof Error?f(T):f(new Error("Unknown error"+T)),T}finally{l(!1),z.abort()}},[e,r,w,y]);return{data:m,setData:p,loading:i,error:d,reload:x,reloading:a,fetchMore:$}};async function ls(e,t,r){var l;const i={},n=(r==null?void 0:r.apiKey)??((l=e.loggedIn)==null?void 0:l.apiKey);return n&&(i.Authorization=`apikey:${n}`),new _8(db,{headers:i}).request(t)}const S8={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"LoginRequest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"key"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubApiKeyByKey"},arguments:[{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"Variable",name:{kind:"Name",value:"key"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"allHubCasinos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"graphqlUrl"}},{kind:"Field",name:{kind:"Name",value:"baseUrl"}},{kind:"Field",name:{kind:"Name",value:"isPlayground"}},{kind:"Field",name:{kind:"Name",value:"hubCurrenciesByCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"displayUnitName"}},{kind:"Field",name:{kind:"Name",value:"displayUnitScale"}}]}}]}}]}}]}}]}}]},k8={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoBankrolls"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"hubBankrollsByCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"expectedValue"}},{kind:"Field",name:{kind:"Name",value:"bets"}},{kind:"Field",name:{kind:"Name",value:"hubCurrencyByCurrencyKeyAndCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"displayUnitScale"}},{kind:"Field",name:{kind:"Name",value:"displayUnitName"}},{kind:"Field",name:{kind:"Name",value:"casinoId"}}]}},{kind:"Field",name:{kind:"Name",value:"currencyKey"}},{kind:"Field",name:{kind:"Name",value:"wagered"}}]}}]}}]}}]}}]},w8={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoChatMessages"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"hubChatMessagesByCasinoId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"last"},value:{kind:"IntValue",value:"100"}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"EnumValue",value:"ID_ASC"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"hubUserByUserId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"uname"}}]}},{kind:"Field",name:{kind:"Name",value:"hubExperienceByExperienceId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"body"}}]}}]}}]}}]}}]}}]},x8={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoCurrencies"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"hubCurrenciesByCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"displayUnitName"}},{kind:"Field",name:{kind:"Name",value:"displayUnitScale"}}]}}]}}]}}]}}]},O8={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoDeposits"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"Cursor"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubDepositsByCasinoId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"EnumValue",value:"ID_DESC"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"hasNextPage"}}]}},{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"mpTransferId"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"userId"}},{kind:"Field",name:{kind:"Name",value:"currencyKey"}},{kind:"Field",name:{kind:"Name",value:"hubUserByUserId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"uname"}}]}},{kind:"Field",name:{kind:"Name",value:"hubCurrencyByCurrencyKeyAndCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"displayUnitName"}},{kind:"Field",name:{kind:"Name",value:"displayUnitScale"}},{kind:"Field",name:{kind:"Name",value:"key"}}]}},{kind:"Field",name:{kind:"Name",value:"hubExperienceByExperienceId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"mpExperienceId"}}]}}]}}]}}]}}]}}]}}]},E8={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoExperiences"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"hubExperiencesByCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"mpExperienceId"}}]}}]}}]}}]}}]},N8={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoJwks"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"Cursor"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubJwkSetSnapshotsByCasinoId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"EnumValue",value:"ID_DESC"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"hasNextPage"}}]}},{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"jwks"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"hubJwkSetByCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updatedAt"}},{kind:"Field",name:{kind:"Name",value:"jwks"}}]}}]}}]}}]},j8={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListCasinoUsers"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"Cursor"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"hubUsersByCasinoId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"hasNextPage"}}]}},{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"uname"}},{kind:"Field",name:{kind:"Name",value:"mpUserId"}}]}}]}}]}}]}}]}}]},I8={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCasinoWithdrawals"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"casinoId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"Cursor"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"casinoId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubWithdrawalsByCasinoId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"EnumValue",value:"ID_DESC"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"hasNextPage"}}]}},{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"mpTransferId"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"statusAt"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"hubUserByUserId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"uname"}}]}},{kind:"Field",name:{kind:"Name",value:"hubExperienceByExperienceId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"hubCurrencyByCurrencyKeyAndCasinoId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"displayUnitScale"}},{kind:"Field",name:{kind:"Name",value:"displayUnitName"}}]}}]}}]}}]}}]}}]}}]},T8={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddCasino"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"HubAddCasinoInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubAddCasino"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"casino"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"baseUrl"}},{kind:"Field",name:{kind:"Name",value:"graphqlUrl"}}]}}]}}]}}]},z8={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateBankroll"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateHubBankrollByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateHubBankrollById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubBankroll"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"currencyKey"}}]}}]}}]}}]},A8={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateCasino"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateHubCasinoByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateHubCasinoById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hubCasino"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]},D8={"\n query LoginRequest($key: UUID!) {\n hubApiKeyByKey(key: $key) {\n id\n }\n allHubCasinos {\n nodes {\n id\n name\n graphqlUrl\n baseUrl\n isPlayground\n hubCurrenciesByCasinoId {\n nodes {\n key\n displayUnitName\n displayUnitScale\n }\n }\n }\n }\n }\n":S8,"\n query GetCasinoBankrolls($casinoId: UUID!) {\n hubCasinoById(id: $casinoId) {\n id\n hubBankrollsByCasinoId {\n nodes {\n id\n amount\n expectedValue\n bets\n hubCurrencyByCurrencyKeyAndCasinoId {\n key\n displayUnitScale\n displayUnitName\n casinoId\n }\n currencyKey\n wagered\n }\n }\n }\n }\n":k8,"\n query GetCasinoChatMessages($casinoId: UUID!) {\n hubCasinoById(id: $casinoId) {\n id\n hubChatMessagesByCasinoId(last: 100, orderBy: ID_ASC) {\n edges {\n node {\n id\n hubUserByUserId {\n id\n uname\n }\n hubExperienceByExperienceId {\n id\n name\n }\n body\n }\n }\n }\n }\n }\n":w8,"\n query GetCasinoCurrencies($casinoId: UUID!) {\n hubCasinoById(id: $casinoId) {\n id\n hubCurrenciesByCasinoId {\n nodes {\n key\n displayUnitName\n displayUnitScale\n }\n }\n }\n }\n":x8,"\n query GetCasinoDeposits($casinoId: UUID!, $after: Cursor) {\n hubCasinoById(id: $casinoId) {\n hubDepositsByCasinoId(after: $after, first: 10, orderBy: ID_DESC) {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n cursor\n node {\n id\n mpTransferId\n amount\n userId\n currencyKey\n hubUserByUserId {\n id\n uname\n }\n hubCurrencyByCurrencyKeyAndCasinoId {\n displayUnitName\n displayUnitScale\n key\n }\n hubExperienceByExperienceId {\n id\n name\n mpExperienceId\n }\n }\n }\n }\n }\n }\n":O8,"\n query GetCasinoExperiences($casinoId: UUID!) {\n hubCasinoById(id: $casinoId) {\n id\n hubExperiencesByCasinoId {\n nodes {\n id\n name\n mpExperienceId\n }\n }\n }\n }\n":E8,"\n query GetCasinoJwks($casinoId: UUID!, $after: Cursor, $first: Int!) {\n hubCasinoById(id: $casinoId) {\n hubJwkSetSnapshotsByCasinoId(\n orderBy: ID_DESC\n after: $after\n first: $first\n ) {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n cursor\n node {\n jwks\n id\n }\n }\n }\n hubJwkSetByCasinoId {\n updatedAt\n jwks\n }\n }\n }\n":N8,"\n query ListCasinoUsers($casinoId: UUID!, $after: Cursor) {\n hubCasinoById(id: $casinoId) {\n id\n hubUsersByCasinoId(after: $after, first: 10) {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n cursor\n node {\n id\n uname\n mpUserId\n }\n }\n }\n }\n }\n":j8,"\n query GetCasinoWithdrawals($casinoId: UUID!, $after: Cursor) {\n hubCasinoById(id: $casinoId) {\n hubWithdrawalsByCasinoId(after: $after, first: 10, orderBy: ID_DESC) {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n cursor\n node {\n id\n mpTransferId\n status\n statusAt\n amount\n hubUserByUserId {\n id\n uname\n }\n hubExperienceByExperienceId {\n id\n name\n }\n hubCurrencyByCurrencyKeyAndCasinoId {\n key\n displayUnitScale\n displayUnitName\n }\n }\n }\n }\n }\n }\n":I8,"\n mutation AddCasino($input: HubAddCasinoInput!) {\n hubAddCasino(input: $input) {\n casino {\n id\n name\n baseUrl\n graphqlUrl\n }\n }\n }\n":T8,"\n mutation UpdateBankroll($input: UpdateHubBankrollByIdInput!) {\n updateHubBankrollById(input: $input) {\n hubBankroll {\n id\n amount\n currencyKey\n }\n }\n }\n":z8,"\n mutation UpdateCasino($input: UpdateHubCasinoByIdInput!) {\n updateHubCasinoById(input: $input) {\n hubCasino {\n id\n }\n }\n }\n":A8};function Qr(e){return D8[e]??{}}function Hu(e){const t=e.replace("-","").substring(0,12),r=BigInt("0x"+t);return r===0n?new Date:new Date(Number(r))}const LE={isGraphQLError(e){return e instanceof Error&&"request"in e&&"response"in e},getErrorMessage(e){var t;return((t=e.response.errors[0])==null?void 0:t.message)??e.message},getErrorCode(e){var t,r;return(r=(t=e.response.errors[0])==null?void 0:t.extensions)==null?void 0:r.code},getPgExceptionCode(e){var t,r,i;return(i=(r=(t=e.response.errors[0])==null?void 0:t.extensions)==null?void 0:r.exception)==null?void 0:i.code}};function nr(e){return e?LE.isGraphQLError(e)?LE.getErrorMessage(e):e instanceof Error?e.message:String(e):"Unknown error"}function E_(e,t,r={excludeUnit:!1,locale:navigator.language}){const i=e/(t.displayUnitScale||1),n=t.displayUnitScale===0?0:t.displayUnitScale<100?1:2,a=new Intl.NumberFormat(r.locale,{minimumFractionDigits:n,maximumFractionDigits:n,useGrouping:!0});return r.excludeUnit?a.format(i):`${a.format(i)} ${t.displayUnitName}`}function U8(e){return e.toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1})}function Yh(e){return t=>{const r=e.safeParse(t);return r.success?{}:r.error.issues.reduce((i,n)=>{const a=n.path.reduceRight((l,d)=>({[d]:Object.keys(l).length===0?n.message:l}),{});return ET(i,a)},{})}}function ET(e,t){const r={...e};for(const i in t){const n=t[i],a=r[i];n&&typeof n=="object"&&!Array.isArray(n)&&a&&typeof a=="object"&&!Array.isArray(a)?r[i]=ET(a,n):r[i]=n}return r}const PE=Qr(`
|
|
122
|
+
query LoginRequest($key: UUID!) {
|
|
123
|
+
hubApiKeyByKey(key: $key) {
|
|
124
|
+
id
|
|
125
|
+
}
|
|
126
|
+
allHubCasinos {
|
|
127
|
+
nodes {
|
|
128
|
+
id
|
|
129
|
+
name
|
|
130
|
+
graphqlUrl
|
|
131
|
+
baseUrl
|
|
132
|
+
isPlayground
|
|
133
|
+
hubCurrenciesByCasinoId {
|
|
134
|
+
nodes {
|
|
135
|
+
key
|
|
136
|
+
displayUnitName
|
|
137
|
+
displayUnitScale
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
`);class C8{constructor(){ya(this,"loginError",null);ya(this,"loggingIn",!1);ya(this,"loggedIn",null);P9(this)}setLoggingIn(t){this.loggingIn=t}setLoginError(t){this.loginError=t}setLoggedIn(t){this.loggedIn=t}setCasinos(t){this.loggedIn&&(this.loggedIn.casinos=t)}async refetchCasinos(){if(!this.loggedIn)throw new Error("Not logged in");const t=await ls(this,{document:PE,variables:{key:this.loggedIn.apiKey}}),r=ZE(t.allHubCasinos);this.setCasinos(r)}logout(){localStorage.removeItem("api_key"),this.setLoggedIn(null)}async login(t){var r;if(this.loggedIn)throw new Error("Already logged in");this.setLoggingIn(!0);try{const i=await ls(this,{document:PE,variables:{key:t}},{apiKey:t});if(console.log("[useAuth] LoadedinitResult",i),!((r=i.hubApiKeyByKey)!=null&&r.id))return;localStorage.setItem("api_key",t);const n=ZE(i.allHubCasinos),a={apiKey:t,casinos:n};return this.setLoggedIn(a),a}catch(i){throw console.log("[useAuth] Error logging in",i),this.setLoginError(nr(i)),this.setLoggedIn(null),i}finally{this.setLoggingIn(!1)}}}function ZE(e){return(e==null?void 0:e.nodes.flatMap(r=>{var i;return r?{...r,hubCurrenciesByCasinoId:{nodes:((i=r.hubCurrenciesByCasinoId)==null?void 0:i.nodes.flatMap(n=>n||[]))||[]}}:[]}))||[]}const NT=k.createContext(void 0),R8=fn(({store:e,children:t})=>b.jsx(NT.Provider,{value:e,children:t})),kn=()=>{const e=k.useContext(NT);if(!e)throw new Error("useStore must be used within a StoreProvider");return e};var Sy={exports:{}};/*!
|
|
144
|
+
Copyright (c) 2018 Jed Watson.
|
|
145
|
+
Licensed under the MIT License (MIT), see
|
|
146
|
+
http://jedwatson.github.io/classnames
|
|
147
|
+
*/var BE;function M8(){return BE||(BE=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",l=0;l<arguments.length;l++){var d=arguments[l];d&&(a=n(a,i(d)))}return a}function i(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var d in a)t.call(a,d)&&a[d]&&(l=n(l,d));return l}function n(a,l){return l?a?a+" "+l:a+l:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Sy)),Sy.exports}var L8=M8();const ke=ws(L8);function fb(){return fb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},fb.apply(null,arguments)}function jT(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function FE(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function P8(e){var t=Z8(e,"string");return typeof t=="symbol"?t:String(t)}function Z8(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function IT(e,t,r){var i=k.useRef(e!==void 0),n=k.useState(t),a=n[0],l=n[1],d=e!==void 0,f=i.current;return i.current=d,!d&&f&&a!==t&&l(t),[d?e:a,k.useCallback(function(m){for(var p=arguments.length,g=new Array(p>1?p-1:0),y=1;y<p;y++)g[y-1]=arguments[y];r&&r.apply(void 0,[m].concat(g)),l(m)},[r])]}function N_(e,t){return Object.keys(t).reduce(function(r,i){var n,a=r,l=a[FE(i)],d=a[i],f=jT(a,[FE(i),i].map(P8)),m=t[i],p=IT(d,l,e[m]),g=p[0],y=p[1];return fb({},f,(n={},n[i]=g,n[m]=y,n))},e)}function mb(e,t){return mb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},mb(e,t)}function B8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mb(e,t)}const TT=["xxl","xl","lg","md","sm","xs"],zT="xs",Od=k.createContext({prefixes:{},breakpoints:TT,minBreakpoint:zT}),{Consumer:$ue,Provider:Sue}=Od;function Me(e,t){const{prefixes:r}=k.useContext(Od);return e||r[t]||t}function j_(){const{breakpoints:e}=k.useContext(Od);return e}function I_(){const{minBreakpoint:e}=k.useContext(Od);return e}function T_(){const{dir:e}=k.useContext(Od);return e==="rtl"}function Ns(e){return e&&e.ownerDocument||document}function F8(e){var t=Ns(e);return t&&t.defaultView||window}function V8(e,t){return F8(e).getComputedStyle(e,t)}var q8=/([A-Z])/g;function G8(e){return e.replace(q8,"-$1").toLowerCase()}var H8=/^ms-/;function xm(e){return G8(e).replace(H8,"-ms-")}var K8=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function J8(e){return!!(e&&K8.test(e))}function Ta(e,t){var r="",i="";if(typeof t=="string")return e.style.getPropertyValue(xm(t))||V8(e).getPropertyValue(xm(t));Object.keys(t).forEach(function(n){var a=t[n];!a&&a!==0?e.style.removeProperty(xm(n)):J8(n)?i+=n+"("+a+") ":r+=xm(n)+": "+a+";"}),i&&(r+="transform: "+i+";"),e.style.cssText+=";"+r}var ky={exports:{}},wy,VE;function Y8(){if(VE)return wy;VE=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return wy=e,wy}var xy,qE;function X8(){if(qE)return xy;qE=1;var e=Y8();function t(){}function r(){}return r.resetWarningCache=t,xy=function(){function i(l,d,f,m,p,g){if(g!==e){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}i.isRequired=i;function n(){return i}var a={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:n,element:i,elementType:i,instanceOf:n,node:i,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},xy}var GE;function Q8(){return GE||(GE=1,ky.exports=X8()()),ky.exports}var W8=Q8();const rt=ws(W8),HE={disabled:!1},AT=Tt.createContext(null);var eq=function(t){return t.scrollTop},Uc="unmounted",go="exited",mi="entering",xa="entered",td="exiting",Pa=(function(e){B8(t,e);function t(i,n){var a;a=e.call(this,i,n)||this;var l=n,d=l&&!l.isMounting?i.enter:i.appear,f;return a.appearStatus=null,i.in?d?(f=go,a.appearStatus=mi):f=xa:i.unmountOnExit||i.mountOnEnter?f=Uc:f=go,a.state={status:f},a.nextCallback=null,a}t.getDerivedStateFromProps=function(n,a){var l=n.in;return l&&a.status===Uc?{status:go}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(n){var a=null;if(n!==this.props){var l=this.state.status;this.props.in?l!==mi&&l!==xa&&(a=mi):(l===mi||l===xa)&&(a=td)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var n=this.props.timeout,a,l,d;return a=l=d=n,n!=null&&typeof n!="number"&&(a=n.exit,l=n.enter,d=n.appear!==void 0?n.appear:l),{exit:a,enter:l,appear:d}},r.updateStatus=function(n,a){if(n===void 0&&(n=!1),a!==null)if(this.cancelNextCallback(),a===mi){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:hu.findDOMNode(this);l&&eq(l)}this.performEnter(n)}else this.performExit();else this.props.unmountOnExit&&this.state.status===go&&this.setState({status:Uc})},r.performEnter=function(n){var a=this,l=this.props.enter,d=this.context?this.context.isMounting:n,f=this.props.nodeRef?[d]:[hu.findDOMNode(this),d],m=f[0],p=f[1],g=this.getTimeouts(),y=d?g.appear:g.enter;if(!n&&!l||HE.disabled){this.safeSetState({status:xa},function(){a.props.onEntered(m)});return}this.props.onEnter(m,p),this.safeSetState({status:mi},function(){a.props.onEntering(m,p),a.onTransitionEnd(y,function(){a.safeSetState({status:xa},function(){a.props.onEntered(m,p)})})})},r.performExit=function(){var n=this,a=this.props.exit,l=this.getTimeouts(),d=this.props.nodeRef?void 0:hu.findDOMNode(this);if(!a||HE.disabled){this.safeSetState({status:go},function(){n.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:td},function(){n.props.onExiting(d),n.onTransitionEnd(l.exit,function(){n.safeSetState({status:go},function(){n.props.onExited(d)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(n,a){a=this.setNextCallback(a),this.setState(n,a)},r.setNextCallback=function(n){var a=this,l=!0;return this.nextCallback=function(d){l&&(l=!1,a.nextCallback=null,n(d))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},r.onTransitionEnd=function(n,a){this.setNextCallback(a);var l=this.props.nodeRef?this.props.nodeRef.current:hu.findDOMNode(this),d=n==null&&!this.props.addEndListener;if(!l||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var f=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],m=f[0],p=f[1];this.props.addEndListener(m,p)}n!=null&&setTimeout(this.nextCallback,n)},r.render=function(){var n=this.state.status;if(n===Uc)return null;var a=this.props,l=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var d=jT(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Tt.createElement(AT.Provider,{value:null},typeof l=="function"?l(n,d):Tt.cloneElement(Tt.Children.only(l),d))},t})(Tt.Component);Pa.contextType=AT;Pa.propTypes={};function Pl(){}Pa.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pl,onEntering:Pl,onEntered:Pl,onExit:Pl,onExiting:Pl,onExited:Pl};Pa.UNMOUNTED=Uc;Pa.EXITED=go;Pa.ENTERING=mi;Pa.ENTERED=xa;Pa.EXITING=td;function DT(e){return e.code==="Escape"||e.keyCode===27}function tq(){const e=k.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function Ku(e){if(!e||typeof e=="function")return null;const{major:t}=tq();return t>=19?e.props.ref:e.ref}const js=!!(typeof window<"u"&&window.document&&window.document.createElement);var hb=!1,vb=!1;try{var Oy={get passive(){return hb=!0},get once(){return vb=hb=!0}};js&&(window.addEventListener("test",Oy,Oy),window.removeEventListener("test",Oy,!0))}catch{}function UT(e,t,r,i){if(i&&typeof i!="boolean"&&!vb){var n=i.once,a=i.capture,l=r;!vb&&n&&(l=r.__once||function d(f){this.removeEventListener(t,d,a),r.call(this,f)},r.__once=l),e.addEventListener(t,l,hb?i:a)}e.addEventListener(t,r,i)}function pb(e,t,r,i){var n=i&&typeof i!="boolean"?i.capture:i;e.removeEventListener(t,r,n),r.__once&&e.removeEventListener(t,r.__once,n)}function Oa(e,t,r,i){return UT(e,t,r,i),function(){pb(e,t,r,i)}}function nq(e,t,r,i){if(i===void 0&&(i=!0),e){var n=document.createEvent("HTMLEvents");n.initEvent(t,r,i),e.dispatchEvent(n)}}function rq(e){var t=Ta(e,"transitionDuration")||"",r=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*r}function iq(e,t,r){r===void 0&&(r=5);var i=!1,n=setTimeout(function(){i||nq(e,"transitionend",!0)},t+r),a=Oa(e,"transitionend",function(){i=!0},{once:!0});return function(){clearTimeout(n),a()}}function CT(e,t,r,i){r==null&&(r=rq(e)||0);var n=iq(e,r,i),a=Oa(e,"transitionend",t);return function(){n(),a()}}function KE(e,t){const r=Ta(e,t)||"",i=r.indexOf("ms")===-1?1e3:1;return parseFloat(r)*i}function z_(e,t){const r=KE(e,"transitionDuration"),i=KE(e,"transitionDelay"),n=CT(e,a=>{a.target===e&&(n(),t(a))},r+i)}function Ec(...e){return e.filter(t=>t!=null).reduce((t,r)=>{if(typeof r!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?r:function(...n){t.apply(this,n),r.apply(this,n)}},null)}function RT(e){e.offsetHeight}const JE=e=>!e||typeof e=="function"?e:t=>{e.current=t};function aq(e,t){const r=JE(e),i=JE(t);return n=>{r&&r(n),i&&i(n)}}function Xh(e,t){return k.useMemo(()=>aq(e,t),[e,t])}function sh(e){return e&&"setState"in e?hu.findDOMNode(e):e??null}const Qh=Tt.forwardRef(({onEnter:e,onEntering:t,onEntered:r,onExit:i,onExiting:n,onExited:a,addEndListener:l,children:d,childRef:f,...m},p)=>{const g=k.useRef(null),y=Xh(g,f),S=E=>{y(sh(E))},w=E=>C=>{E&&g.current&&E(g.current,C)},j=k.useCallback(w(e),[e]),x=k.useCallback(w(t),[t]),$=k.useCallback(w(r),[r]),I=k.useCallback(w(i),[i]),N=k.useCallback(w(n),[n]),z=k.useCallback(w(a),[a]),T=k.useCallback(w(l),[l]);return b.jsx(Pa,{ref:p,...m,onEnter:j,onEntered:$,onEntering:x,onExit:I,onExited:z,onExiting:N,addEndListener:T,nodeRef:g,children:typeof d=="function"?(E,C)=>d(E,{...C,ref:S}):Tt.cloneElement(d,{ref:S})})});Qh.displayName="TransitionWrapper";const oq={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function uq(e,t){const r=`offset${e[0].toUpperCase()}${e.slice(1)}`,i=t[r],n=oq[e];return i+parseInt(Ta(t,n[0]),10)+parseInt(Ta(t,n[1]),10)}const lq={[go]:"collapse",[td]:"collapsing",[mi]:"collapsing",[xa]:"collapse show"},MT=Tt.forwardRef(({onEnter:e,onEntering:t,onEntered:r,onExit:i,onExiting:n,className:a,children:l,dimension:d="height",in:f=!1,timeout:m=300,mountOnEnter:p=!1,unmountOnExit:g=!1,appear:y=!1,getDimensionValue:S=uq,...w},j)=>{const x=typeof d=="function"?d():d,$=k.useMemo(()=>Ec(E=>{E.style[x]="0"},e),[x,e]),I=k.useMemo(()=>Ec(E=>{const C=`scroll${x[0].toUpperCase()}${x.slice(1)}`;E.style[x]=`${E[C]}px`},t),[x,t]),N=k.useMemo(()=>Ec(E=>{E.style[x]=null},r),[x,r]),z=k.useMemo(()=>Ec(E=>{E.style[x]=`${S(x,E)}px`,RT(E)},i),[i,S,x]),T=k.useMemo(()=>Ec(E=>{E.style[x]=null},n),[x,n]);return b.jsx(Qh,{ref:j,addEndListener:z_,...w,"aria-expanded":w.role?f:null,onEnter:$,onEntering:I,onEntered:N,onExit:z,onExiting:T,childRef:Ku(l),in:f,timeout:m,mountOnEnter:p,unmountOnExit:g,appear:y,children:(E,C)=>Tt.cloneElement(l,{...C,className:ke(a,l.props.className,lq[E],x==="width"&&"collapse-horizontal")})})});MT.displayName="Collapse";function sq(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e},[e]),t}function No(e){const t=sq(e);return k.useCallback(function(...r){return t.current&&t.current(...r)},[t])}const Ed=(e=>k.forwardRef((t,r)=>b.jsx("div",{...t,ref:r,className:ke(t.className,e)}))),LT=Ed("h4");LT.displayName="DivStyledAsH4";const PT=k.forwardRef(({className:e,bsPrefix:t,as:r=LT,...i},n)=>(t=Me(t,"alert-heading"),b.jsx(r,{ref:n,className:ke(e,t),...i})));PT.displayName="AlertHeading";function YE(){return k.useState(null)}function cq(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e},[e]),t}function Gr(e){const t=cq(e);return k.useCallback(function(...r){return t.current&&t.current(...r)},[t])}function ZT(){const e=k.useRef(!0),t=k.useRef(()=>e.current);return k.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function dq(e){const t=k.useRef(null);return k.useEffect(()=>{t.current=e}),t.current}const fq=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",mq=typeof document<"u",XE=mq||fq?k.useLayoutEffect:k.useEffect,hq=["as","disabled"];function vq(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}function pq(e){return!e||e.trim()==="#"}function A_({tagName:e,disabled:t,href:r,target:i,rel:n,role:a,onClick:l,tabIndex:d=0,type:f}){e||(r!=null||i!=null||n!=null?e="a":e="button");const m={tagName:e};if(e==="button")return[{type:f||"button",disabled:t},m];const p=y=>{if((t||e==="a"&&pq(r))&&y.preventDefault(),t){y.stopPropagation();return}l==null||l(y)},g=y=>{y.key===" "&&(y.preventDefault(),p(y))};return e==="a"&&(r||(r="#"),t&&(r=void 0)),[{role:a??"button",disabled:void 0,tabIndex:t?void 0:d,href:r,target:e==="a"?i:void 0,"aria-disabled":t||void 0,rel:e==="a"?n:void 0,onClick:p,onKeyDown:g},m]}const BT=k.forwardRef((e,t)=>{let{as:r,disabled:i}=e,n=vq(e,hq);const[a,{tagName:l}]=A_(Object.assign({tagName:r,disabled:i},n));return b.jsx(l,Object.assign({},n,a,{ref:t}))});BT.displayName="Button";const gq=["onKeyDown"];function yq(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}function bq(e){return!e||e.trim()==="#"}const Wh=k.forwardRef((e,t)=>{let{onKeyDown:r}=e,i=yq(e,gq);const[n]=A_(Object.assign({tagName:"a"},i)),a=Gr(l=>{n.onKeyDown(l),r==null||r(l)});return bq(i.href)||i.role==="button"?b.jsx("a",Object.assign({ref:t},i,n,{onKeyDown:a})):b.jsx("a",Object.assign({ref:t},i,{onKeyDown:r}))});Wh.displayName="Anchor";const FT=k.forwardRef(({className:e,bsPrefix:t,as:r=Wh,...i},n)=>(t=Me(t,"alert-link"),b.jsx(r,{ref:n,className:ke(e,t),...i})));FT.displayName="AlertLink";const _q={[mi]:"show",[xa]:"show"},jo=k.forwardRef(({className:e,children:t,transitionClasses:r={},onEnter:i,...n},a)=>{const l={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...n},d=k.useCallback((f,m)=>{RT(f),i==null||i(f,m)},[i]);return b.jsx(Qh,{ref:a,addEndListener:z_,...l,onEnter:d,childRef:Ku(t),children:(f,m)=>k.cloneElement(t,{...m,className:ke("fade",e,t.props.className,_q[f],r[f])})})});jo.displayName="Fade";const $q={"aria-label":rt.string,onClick:rt.func,variant:rt.oneOf(["white"])},ev=k.forwardRef(({className:e,variant:t,"aria-label":r="Close",...i},n)=>b.jsx("button",{ref:n,type:"button",className:ke("btn-close",t&&`btn-close-${t}`,e),"aria-label":r,...i}));ev.displayName="CloseButton";ev.propTypes=$q;const VT=k.forwardRef((e,t)=>{const{bsPrefix:r,show:i=!0,closeLabel:n="Close alert",closeVariant:a,className:l,children:d,variant:f="primary",onClose:m,dismissible:p,transition:g=jo,...y}=N_(e,{show:"onClose"}),S=Me(r,"alert"),w=No($=>{m&&m(!1,$)}),j=g===!0?jo:g,x=b.jsxs("div",{role:"alert",...j?void 0:y,ref:t,className:ke(l,S,f&&`${S}-${f}`,p&&`${S}-dismissible`),children:[p&&b.jsx(ev,{onClick:w,"aria-label":n,variant:a}),d]});return j?b.jsx(j,{unmountOnExit:!0,...y,ref:void 0,in:i,children:x}):i?x:null});VT.displayName="Alert";const Sr=Object.assign(VT,{Link:FT,Heading:PT}),qT=k.forwardRef(({bsPrefix:e,active:t=!1,children:r,className:i,as:n="li",linkAs:a=Wh,linkProps:l={},href:d,title:f,target:m,...p},g)=>{const y=Me(e,"breadcrumb-item");return b.jsx(n,{ref:g,...p,className:ke(y,i,{active:t}),"aria-current":t?"page":void 0,children:t?r:b.jsx(a,{...l,href:d,title:f,target:m,children:r})})});qT.displayName="BreadcrumbItem";const GT=k.forwardRef(({bsPrefix:e,className:t,listProps:r={},children:i,label:n="breadcrumb",as:a="nav",...l},d)=>{const f=Me(e,"breadcrumb");return b.jsx(a,{"aria-label":n,className:t,ref:d,...l,children:b.jsx("ol",{...r,className:ke(f,r==null?void 0:r.className),children:i})})});GT.displayName="Breadcrumb";const Ey=Object.assign(GT,{Item:qT}),Sn=k.forwardRef(({as:e,bsPrefix:t,variant:r="primary",size:i,active:n=!1,disabled:a=!1,className:l,...d},f)=>{const m=Me(t,"btn"),[p,{tagName:g}]=A_({tagName:e,disabled:a,...d}),y=g;return b.jsx(y,{...p,...d,ref:f,disabled:a,className:ke(l,m,n&&"active",r&&`${m}-${r}`,i&&`${m}-${i}`,d.href&&a&&"disabled")})});Sn.displayName="Button";const D_=k.forwardRef(({className:e,bsPrefix:t,as:r="div",...i},n)=>(t=Me(t,"card-body"),b.jsx(r,{ref:n,className:ke(e,t),...i})));D_.displayName="CardBody";const HT=k.forwardRef(({className:e,bsPrefix:t,as:r="div",...i},n)=>(t=Me(t,"card-footer"),b.jsx(r,{ref:n,className:ke(e,t),...i})));HT.displayName="CardFooter";const U_=k.createContext(null);U_.displayName="CardHeaderContext";const KT=k.forwardRef(({bsPrefix:e,className:t,as:r="div",...i},n)=>{const a=Me(e,"card-header"),l=k.useMemo(()=>({cardHeaderBsPrefix:a}),[a]);return b.jsx(U_.Provider,{value:l,children:b.jsx(r,{ref:n,...i,className:ke(t,a)})})});KT.displayName="CardHeader";const JT=k.forwardRef(({bsPrefix:e,className:t,variant:r,as:i="img",...n},a)=>{const l=Me(e,"card-img");return b.jsx(i,{ref:a,className:ke(r?`${l}-${r}`:l,t),...n})});JT.displayName="CardImg";const YT=k.forwardRef(({className:e,bsPrefix:t,as:r="div",...i},n)=>(t=Me(t,"card-img-overlay"),b.jsx(r,{ref:n,className:ke(e,t),...i})));YT.displayName="CardImgOverlay";const XT=k.forwardRef(({className:e,bsPrefix:t,as:r="a",...i},n)=>(t=Me(t,"card-link"),b.jsx(r,{ref:n,className:ke(e,t),...i})));XT.displayName="CardLink";const Sq=Ed("h6"),QT=k.forwardRef(({className:e,bsPrefix:t,as:r=Sq,...i},n)=>(t=Me(t,"card-subtitle"),b.jsx(r,{ref:n,className:ke(e,t),...i})));QT.displayName="CardSubtitle";const WT=k.forwardRef(({className:e,bsPrefix:t,as:r="p",...i},n)=>(t=Me(t,"card-text"),b.jsx(r,{ref:n,className:ke(e,t),...i})));WT.displayName="CardText";const kq=Ed("h5"),ez=k.forwardRef(({className:e,bsPrefix:t,as:r=kq,...i},n)=>(t=Me(t,"card-title"),b.jsx(r,{ref:n,className:ke(e,t),...i})));ez.displayName="CardTitle";const tz=k.forwardRef(({bsPrefix:e,className:t,bg:r,text:i,border:n,body:a=!1,children:l,as:d="div",...f},m)=>{const p=Me(e,"card");return b.jsx(d,{ref:m,...f,className:ke(t,p,r&&`bg-${r}`,i&&`text-${i}`,n&&`border-${n}`),children:a?b.jsx(D_,{children:l}):l})});tz.displayName="Card";const Yl=Object.assign(tz,{Img:JT,Title:ez,Subtitle:QT,Body:D_,Link:XT,Text:WT,Header:KT,Footer:HT,ImgOverlay:YT});function wq(){const e=k.useRef(!0),t=k.useRef(()=>e.current);return k.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function xq(e){const t=k.useRef(e);return t.current=e,t}function nz(e){const t=xq(e);k.useEffect(()=>()=>t.current(),[])}const gb=2**31-1;function rz(e,t,r){const i=r-Date.now();e.current=i<=gb?setTimeout(t,i):setTimeout(()=>rz(e,t,r),gb)}function Oq(){const e=wq(),t=k.useRef();return nz(()=>clearTimeout(t.current)),k.useMemo(()=>{const r=()=>clearTimeout(t.current);function i(n,a=0){e()&&(r(),a<=gb?t.current=setTimeout(n,a):rz(t,n,Date.now()+a))}return{set:i,clear:r,handleRef:t}},[])}function Eq(e,t){return k.Children.toArray(e).some(r=>k.isValidElement(r)&&r.type===t)}function Nq({as:e,bsPrefix:t,className:r,...i}){t=Me(t,"col");const n=j_(),a=I_(),l=[],d=[];return n.forEach(f=>{const m=i[f];delete i[f];let p,g,y;typeof m=="object"&&m!=null?{span:p,offset:g,order:y}=m:p=m;const S=f!==a?`-${f}`:"";p&&l.push(p===!0?`${t}${S}`:`${t}${S}-${p}`),y!=null&&d.push(`order${S}-${y}`),g!=null&&d.push(`offset${S}-${g}`)}),[{...i,className:ke(r,...l,...d)},{as:e,bsPrefix:t,spans:l}]}const tv=k.forwardRef((e,t)=>{const[{className:r,...i},{as:n="div",bsPrefix:a,spans:l}]=Nq(e);return b.jsx(n,{...i,ref:t,className:ke(r,!l.length&&a)})});tv.displayName="Col";const Nd=k.forwardRef(({bsPrefix:e,fluid:t=!1,as:r="div",className:i,...n},a)=>{const l=Me(e,"container"),d=typeof t=="string"?`-${t}`:"-fluid";return b.jsx(r,{ref:a,...n,className:ke(i,t?`${l}${d}`:l)})});Nd.displayName="Container";var jq=Function.prototype.bind.call(Function.prototype.call,[].slice);function du(e,t){return jq(e.querySelectorAll(t))}function Iq(){const[,e]=k.useReducer(t=>t+1,0);return e}var QE=Object.prototype.hasOwnProperty;function WE(e,t,r){for(r of e.keys())if(Bc(r,t))return r}function Bc(e,t){var r,i,n;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((i=e.length)===t.length)for(;i--&&Bc(e[i],t[i]););return i===-1}if(r===Set){if(e.size!==t.size)return!1;for(i of e)if(n=i,n&&typeof n=="object"&&(n=WE(t,n),!n)||!t.has(n))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(i of e)if(n=i[0],n&&typeof n=="object"&&(n=WE(t,n),!n)||!Bc(i[1],t.get(n)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((i=e.byteLength)===t.byteLength)for(;i--&&e.getInt8(i)===t.getInt8(i););return i===-1}if(ArrayBuffer.isView(e)){if((i=e.byteLength)===t.byteLength)for(;i--&&e[i]===t[i];);return i===-1}if(!r||typeof e=="object"){i=0;for(r in e)if(QE.call(e,r)&&++i&&!QE.call(t,r)||!(r in t)||!Bc(e[r],t[r]))return!1;return Object.keys(t).length===i}}return e!==e&&t!==t}function Tq(e){const t=ZT();return[e[0],k.useCallback(r=>{if(t())return e[1](r)},[t,e[1]])]}var er="top",Yr="bottom",Xr="right",tr="left",C_="auto",jd=[er,Yr,Xr,tr],ss="start",nd="end",zq="clippingParents",iz="viewport",Nc="popper",Aq="reference",eN=jd.reduce(function(e,t){return e.concat([t+"-"+ss,t+"-"+nd])},[]),az=[].concat(jd,[C_]).reduce(function(e,t){return e.concat([t,t+"-"+ss,t+"-"+nd])},[]),Dq="beforeRead",Uq="read",Cq="afterRead",Rq="beforeMain",Mq="main",Lq="afterMain",Pq="beforeWrite",Zq="write",Bq="afterWrite",Fq=[Dq,Uq,Cq,Rq,Mq,Lq,Pq,Zq,Bq];function Hi(e){return e.split("-")[0]}function kr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Du(e){var t=kr(e).Element;return e instanceof t||e instanceof Element}function Ki(e){var t=kr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function R_(e){if(typeof ShadowRoot>"u")return!1;var t=kr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var xu=Math.max,ch=Math.min,cs=Math.round;function yb(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function oz(){return!/^((?!chrome|android).)*safari/i.test(yb())}function ds(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),n=1,a=1;t&&Ki(e)&&(n=e.offsetWidth>0&&cs(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&cs(i.height)/e.offsetHeight||1);var l=Du(e)?kr(e):window,d=l.visualViewport,f=!oz()&&r,m=(i.left+(f&&d?d.offsetLeft:0))/n,p=(i.top+(f&&d?d.offsetTop:0))/a,g=i.width/n,y=i.height/a;return{width:g,height:y,top:p,right:m+g,bottom:p+y,left:m,x:m,y:p}}function M_(e){var t=ds(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function uz(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&R_(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Io(e){return e?(e.nodeName||"").toLowerCase():null}function Ua(e){return kr(e).getComputedStyle(e)}function Vq(e){return["table","td","th"].indexOf(Io(e))>=0}function Mo(e){return((Du(e)?e.ownerDocument:e.document)||window.document).documentElement}function nv(e){return Io(e)==="html"?e:e.assignedSlot||e.parentNode||(R_(e)?e.host:null)||Mo(e)}function tN(e){return!Ki(e)||Ua(e).position==="fixed"?null:e.offsetParent}function qq(e){var t=/firefox/i.test(yb()),r=/Trident/i.test(yb());if(r&&Ki(e)){var i=Ua(e);if(i.position==="fixed")return null}var n=nv(e);for(R_(n)&&(n=n.host);Ki(n)&&["html","body"].indexOf(Io(n))<0;){var a=Ua(n);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return n;n=n.parentNode}return null}function Id(e){for(var t=kr(e),r=tN(e);r&&Vq(r)&&Ua(r).position==="static";)r=tN(r);return r&&(Io(r)==="html"||Io(r)==="body"&&Ua(r).position==="static")?t:r||qq(e)||t}function L_(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fc(e,t,r){return xu(e,ch(t,r))}function Gq(e,t,r){var i=Fc(e,t,r);return i>r?r:i}function lz(){return{top:0,right:0,bottom:0,left:0}}function sz(e){return Object.assign({},lz(),e)}function cz(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var Hq=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,sz(typeof t!="number"?t:cz(t,jd))};function Kq(e){var t,r=e.state,i=e.name,n=e.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,d=Hi(r.placement),f=L_(d),m=[tr,Xr].indexOf(d)>=0,p=m?"height":"width";if(!(!a||!l)){var g=Hq(n.padding,r),y=M_(a),S=f==="y"?er:tr,w=f==="y"?Yr:Xr,j=r.rects.reference[p]+r.rects.reference[f]-l[f]-r.rects.popper[p],x=l[f]-r.rects.reference[f],$=Id(a),I=$?f==="y"?$.clientHeight||0:$.clientWidth||0:0,N=j/2-x/2,z=g[S],T=I-y[p]-g[w],E=I/2-y[p]/2+N,C=Fc(z,E,T),ae=f;r.modifiersData[i]=(t={},t[ae]=C,t.centerOffset=C-E,t)}}function Jq(e){var t=e.state,r=e.options,i=r.element,n=i===void 0?"[data-popper-arrow]":i;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||uz(t.elements.popper,n)&&(t.elements.arrow=n))}const Yq={name:"arrow",enabled:!0,phase:"main",fn:Kq,effect:Jq,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fs(e){return e.split("-")[1]}var Xq={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Qq(e,t){var r=e.x,i=e.y,n=t.devicePixelRatio||1;return{x:cs(r*n)/n||0,y:cs(i*n)/n||0}}function nN(e){var t,r=e.popper,i=e.popperRect,n=e.placement,a=e.variation,l=e.offsets,d=e.position,f=e.gpuAcceleration,m=e.adaptive,p=e.roundOffsets,g=e.isFixed,y=l.x,S=y===void 0?0:y,w=l.y,j=w===void 0?0:w,x=typeof p=="function"?p({x:S,y:j}):{x:S,y:j};S=x.x,j=x.y;var $=l.hasOwnProperty("x"),I=l.hasOwnProperty("y"),N=tr,z=er,T=window;if(m){var E=Id(r),C="clientHeight",ae="clientWidth";if(E===kr(r)&&(E=Mo(r),Ua(E).position!=="static"&&d==="absolute"&&(C="scrollHeight",ae="scrollWidth")),E=E,n===er||(n===tr||n===Xr)&&a===nd){z=Yr;var ue=g&&E===T&&T.visualViewport?T.visualViewport.height:E[C];j-=ue-i.height,j*=f?1:-1}if(n===tr||(n===er||n===Yr)&&a===nd){N=Xr;var fe=g&&E===T&&T.visualViewport?T.visualViewport.width:E[ae];S-=fe-i.width,S*=f?1:-1}}var we=Object.assign({position:d},m&&Xq),Je=p===!0?Qq({x:S,y:j},kr(r)):{x:S,y:j};if(S=Je.x,j=Je.y,f){var De;return Object.assign({},we,(De={},De[z]=I?"0":"",De[N]=$?"0":"",De.transform=(T.devicePixelRatio||1)<=1?"translate("+S+"px, "+j+"px)":"translate3d("+S+"px, "+j+"px, 0)",De))}return Object.assign({},we,(t={},t[z]=I?j+"px":"",t[N]=$?S+"px":"",t.transform="",t))}function Wq(e){var t=e.state,r=e.options,i=r.gpuAcceleration,n=i===void 0?!0:i,a=r.adaptive,l=a===void 0?!0:a,d=r.roundOffsets,f=d===void 0?!0:d,m={placement:Hi(t.placement),variation:fs(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,nN(Object.assign({},m,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,nN(Object.assign({},m,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const eG={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Wq,data:{}};var Om={passive:!0};function tG(e){var t=e.state,r=e.instance,i=e.options,n=i.scroll,a=n===void 0?!0:n,l=i.resize,d=l===void 0?!0:l,f=kr(t.elements.popper),m=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&m.forEach(function(p){p.addEventListener("scroll",r.update,Om)}),d&&f.addEventListener("resize",r.update,Om),function(){a&&m.forEach(function(p){p.removeEventListener("scroll",r.update,Om)}),d&&f.removeEventListener("resize",r.update,Om)}}const nG={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:tG,data:{}};var rG={left:"right",right:"left",bottom:"top",top:"bottom"};function Km(e){return e.replace(/left|right|bottom|top/g,function(t){return rG[t]})}var iG={start:"end",end:"start"};function rN(e){return e.replace(/start|end/g,function(t){return iG[t]})}function P_(e){var t=kr(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function Z_(e){return ds(Mo(e)).left+P_(e).scrollLeft}function aG(e,t){var r=kr(e),i=Mo(e),n=r.visualViewport,a=i.clientWidth,l=i.clientHeight,d=0,f=0;if(n){a=n.width,l=n.height;var m=oz();(m||!m&&t==="fixed")&&(d=n.offsetLeft,f=n.offsetTop)}return{width:a,height:l,x:d+Z_(e),y:f}}function oG(e){var t,r=Mo(e),i=P_(e),n=(t=e.ownerDocument)==null?void 0:t.body,a=xu(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),l=xu(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),d=-i.scrollLeft+Z_(e),f=-i.scrollTop;return Ua(n||r).direction==="rtl"&&(d+=xu(r.clientWidth,n?n.clientWidth:0)-a),{width:a,height:l,x:d,y:f}}function B_(e){var t=Ua(e),r=t.overflow,i=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+i)}function dz(e){return["html","body","#document"].indexOf(Io(e))>=0?e.ownerDocument.body:Ki(e)&&B_(e)?e:dz(nv(e))}function Vc(e,t){var r;t===void 0&&(t=[]);var i=dz(e),n=i===((r=e.ownerDocument)==null?void 0:r.body),a=kr(i),l=n?[a].concat(a.visualViewport||[],B_(i)?i:[]):i,d=t.concat(l);return n?d:d.concat(Vc(nv(l)))}function bb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function uG(e,t){var r=ds(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function iN(e,t,r){return t===iz?bb(aG(e,r)):Du(t)?uG(t,r):bb(oG(Mo(e)))}function lG(e){var t=Vc(nv(e)),r=["absolute","fixed"].indexOf(Ua(e).position)>=0,i=r&&Ki(e)?Id(e):e;return Du(i)?t.filter(function(n){return Du(n)&&uz(n,i)&&Io(n)!=="body"}):[]}function sG(e,t,r,i){var n=t==="clippingParents"?lG(e):[].concat(t),a=[].concat(n,[r]),l=a[0],d=a.reduce(function(f,m){var p=iN(e,m,i);return f.top=xu(p.top,f.top),f.right=ch(p.right,f.right),f.bottom=ch(p.bottom,f.bottom),f.left=xu(p.left,f.left),f},iN(e,l,i));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function fz(e){var t=e.reference,r=e.element,i=e.placement,n=i?Hi(i):null,a=i?fs(i):null,l=t.x+t.width/2-r.width/2,d=t.y+t.height/2-r.height/2,f;switch(n){case er:f={x:l,y:t.y-r.height};break;case Yr:f={x:l,y:t.y+t.height};break;case Xr:f={x:t.x+t.width,y:d};break;case tr:f={x:t.x-r.width,y:d};break;default:f={x:t.x,y:t.y}}var m=n?L_(n):null;if(m!=null){var p=m==="y"?"height":"width";switch(a){case ss:f[m]=f[m]-(t[p]/2-r[p]/2);break;case nd:f[m]=f[m]+(t[p]/2-r[p]/2);break}}return f}function rd(e,t){t===void 0&&(t={});var r=t,i=r.placement,n=i===void 0?e.placement:i,a=r.strategy,l=a===void 0?e.strategy:a,d=r.boundary,f=d===void 0?zq:d,m=r.rootBoundary,p=m===void 0?iz:m,g=r.elementContext,y=g===void 0?Nc:g,S=r.altBoundary,w=S===void 0?!1:S,j=r.padding,x=j===void 0?0:j,$=sz(typeof x!="number"?x:cz(x,jd)),I=y===Nc?Aq:Nc,N=e.rects.popper,z=e.elements[w?I:y],T=sG(Du(z)?z:z.contextElement||Mo(e.elements.popper),f,p,l),E=ds(e.elements.reference),C=fz({reference:E,element:N,placement:n}),ae=bb(Object.assign({},N,C)),ue=y===Nc?ae:E,fe={top:T.top-ue.top+$.top,bottom:ue.bottom-T.bottom+$.bottom,left:T.left-ue.left+$.left,right:ue.right-T.right+$.right},we=e.modifiersData.offset;if(y===Nc&&we){var Je=we[n];Object.keys(fe).forEach(function(De){var _e=[Xr,Yr].indexOf(De)>=0?1:-1,Ne=[er,Yr].indexOf(De)>=0?"y":"x";fe[De]+=Je[Ne]*_e})}return fe}function cG(e,t){t===void 0&&(t={});var r=t,i=r.placement,n=r.boundary,a=r.rootBoundary,l=r.padding,d=r.flipVariations,f=r.allowedAutoPlacements,m=f===void 0?az:f,p=fs(i),g=p?d?eN:eN.filter(function(w){return fs(w)===p}):jd,y=g.filter(function(w){return m.indexOf(w)>=0});y.length===0&&(y=g);var S=y.reduce(function(w,j){return w[j]=rd(e,{placement:j,boundary:n,rootBoundary:a,padding:l})[Hi(j)],w},{});return Object.keys(S).sort(function(w,j){return S[w]-S[j]})}function dG(e){if(Hi(e)===C_)return[];var t=Km(e);return[rN(e),t,rN(t)]}function fG(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var n=r.mainAxis,a=n===void 0?!0:n,l=r.altAxis,d=l===void 0?!0:l,f=r.fallbackPlacements,m=r.padding,p=r.boundary,g=r.rootBoundary,y=r.altBoundary,S=r.flipVariations,w=S===void 0?!0:S,j=r.allowedAutoPlacements,x=t.options.placement,$=Hi(x),I=$===x,N=f||(I||!w?[Km(x)]:dG(x)),z=[x].concat(N).reduce(function(oe,ye){return oe.concat(Hi(ye)===C_?cG(t,{placement:ye,boundary:p,rootBoundary:g,padding:m,flipVariations:w,allowedAutoPlacements:j}):ye)},[]),T=t.rects.reference,E=t.rects.popper,C=new Map,ae=!0,ue=z[0],fe=0;fe<z.length;fe++){var we=z[fe],Je=Hi(we),De=fs(we)===ss,_e=[er,Yr].indexOf(Je)>=0,Ne=_e?"width":"height",M=rd(t,{placement:we,boundary:p,rootBoundary:g,altBoundary:y,padding:m}),ee=_e?De?Xr:tr:De?Yr:er;T[Ne]>E[Ne]&&(ee=Km(ee));var ce=Km(ee),je=[];if(a&&je.push(M[Je]<=0),d&&je.push(M[ee]<=0,M[ce]<=0),je.every(function(oe){return oe})){ue=we,ae=!1;break}C.set(we,je)}if(ae)for(var Ue=w?3:1,D=function(ye){var Ae=z.find(function(He){var _t=C.get(He);if(_t)return _t.slice(0,ye).every(function(dt){return dt})});if(Ae)return ue=Ae,"break"},H=Ue;H>0;H--){var ne=D(H);if(ne==="break")break}t.placement!==ue&&(t.modifiersData[i]._skip=!0,t.placement=ue,t.reset=!0)}}const mG={name:"flip",enabled:!0,phase:"main",fn:fG,requiresIfExists:["offset"],data:{_skip:!1}};function aN(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function oN(e){return[er,Xr,Yr,tr].some(function(t){return e[t]>=0})}function hG(e){var t=e.state,r=e.name,i=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,l=rd(t,{elementContext:"reference"}),d=rd(t,{altBoundary:!0}),f=aN(l,i),m=aN(d,n,a),p=oN(f),g=oN(m);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:m,isReferenceHidden:p,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":g})}const vG={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hG};function pG(e,t,r){var i=Hi(e),n=[tr,er].indexOf(i)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=a[0],d=a[1];return l=l||0,d=(d||0)*n,[tr,Xr].indexOf(i)>=0?{x:d,y:l}:{x:l,y:d}}function gG(e){var t=e.state,r=e.options,i=e.name,n=r.offset,a=n===void 0?[0,0]:n,l=az.reduce(function(p,g){return p[g]=pG(g,t.rects,a),p},{}),d=l[t.placement],f=d.x,m=d.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=m),t.modifiersData[i]=l}const yG={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:gG};function bG(e){var t=e.state,r=e.name;t.modifiersData[r]=fz({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const _G={name:"popperOffsets",enabled:!0,phase:"read",fn:bG,data:{}};function $G(e){return e==="x"?"y":"x"}function SG(e){var t=e.state,r=e.options,i=e.name,n=r.mainAxis,a=n===void 0?!0:n,l=r.altAxis,d=l===void 0?!1:l,f=r.boundary,m=r.rootBoundary,p=r.altBoundary,g=r.padding,y=r.tether,S=y===void 0?!0:y,w=r.tetherOffset,j=w===void 0?0:w,x=rd(t,{boundary:f,rootBoundary:m,padding:g,altBoundary:p}),$=Hi(t.placement),I=fs(t.placement),N=!I,z=L_($),T=$G(z),E=t.modifiersData.popperOffsets,C=t.rects.reference,ae=t.rects.popper,ue=typeof j=="function"?j(Object.assign({},t.rects,{placement:t.placement})):j,fe=typeof ue=="number"?{mainAxis:ue,altAxis:ue}:Object.assign({mainAxis:0,altAxis:0},ue),we=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Je={x:0,y:0};if(E){if(a){var De,_e=z==="y"?er:tr,Ne=z==="y"?Yr:Xr,M=z==="y"?"height":"width",ee=E[z],ce=ee+x[_e],je=ee-x[Ne],Ue=S?-ae[M]/2:0,D=I===ss?C[M]:ae[M],H=I===ss?-ae[M]:-C[M],ne=t.elements.arrow,oe=S&&ne?M_(ne):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:lz(),Ae=ye[_e],He=ye[Ne],_t=Fc(0,C[M],oe[M]),dt=N?C[M]/2-Ue-_t-Ae-fe.mainAxis:D-_t-Ae-fe.mainAxis,gt=N?-C[M]/2+Ue+_t+He+fe.mainAxis:H+_t+He+fe.mainAxis,Ht=t.elements.arrow&&Id(t.elements.arrow),wn=Ht?z==="y"?Ht.clientTop||0:Ht.clientLeft||0:0,zn=(De=we==null?void 0:we[z])!=null?De:0,Rt=ee+dt-zn-wn,yt=ee+gt-zn,Cn=Fc(S?ch(ce,Rt):ce,ee,S?xu(je,yt):je);E[z]=Cn,Je[z]=Cn-ee}if(d){var Rn,Ni=z==="x"?er:tr,rr=z==="x"?Yr:Xr,xn=E[T],Gn=T==="y"?"height":"width",q=xn+x[Ni],pe=xn-x[rr],he=[er,tr].indexOf($)!==-1,Oe=(Rn=we==null?void 0:we[T])!=null?Rn:0,me=he?q:xn-C[Gn]-ae[Gn]-Oe+fe.altAxis,Pe=he?xn+C[Gn]+ae[Gn]-Oe-fe.altAxis:pe,Nt=S&&he?Gq(me,xn,Pe):Fc(S?me:q,xn,S?Pe:pe);E[T]=Nt,Je[T]=Nt-xn}t.modifiersData[i]=Je}}const kG={name:"preventOverflow",enabled:!0,phase:"main",fn:SG,requiresIfExists:["offset"]};function wG(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function xG(e){return e===kr(e)||!Ki(e)?P_(e):wG(e)}function OG(e){var t=e.getBoundingClientRect(),r=cs(t.width)/e.offsetWidth||1,i=cs(t.height)/e.offsetHeight||1;return r!==1||i!==1}function EG(e,t,r){r===void 0&&(r=!1);var i=Ki(t),n=Ki(t)&&OG(t),a=Mo(t),l=ds(e,n,r),d={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!r)&&((Io(t)!=="body"||B_(a))&&(d=xG(t)),Ki(t)?(f=ds(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=Z_(a))),{x:l.left+d.scrollLeft-f.x,y:l.top+d.scrollTop-f.y,width:l.width,height:l.height}}function NG(e){var t=new Map,r=new Set,i=[];e.forEach(function(a){t.set(a.name,a)});function n(a){r.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(d){if(!r.has(d)){var f=t.get(d);f&&n(f)}}),i.push(a)}return e.forEach(function(a){r.has(a.name)||n(a)}),i}function jG(e){var t=NG(e);return Fq.reduce(function(r,i){return r.concat(t.filter(function(n){return n.phase===i}))},[])}function IG(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function TG(e){var t=e.reduce(function(r,i){var n=r[i.name];return r[i.name]=n?Object.assign({},n,i,{options:Object.assign({},n.options,i.options),data:Object.assign({},n.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var uN={placement:"bottom",modifiers:[],strategy:"absolute"};function lN(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function zG(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,n=t.defaultOptions,a=n===void 0?uN:n;return function(d,f,m){m===void 0&&(m=a);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},uN,a),modifiersData:{},elements:{reference:d,popper:f},attributes:{},styles:{}},g=[],y=!1,S={state:p,setOptions:function($){var I=typeof $=="function"?$(p.options):$;j(),p.options=Object.assign({},a,p.options,I),p.scrollParents={reference:Du(d)?Vc(d):d.contextElement?Vc(d.contextElement):[],popper:Vc(f)};var N=jG(TG([].concat(i,p.options.modifiers)));return p.orderedModifiers=N.filter(function(z){return z.enabled}),w(),S.update()},forceUpdate:function(){if(!y){var $=p.elements,I=$.reference,N=$.popper;if(lN(I,N)){p.rects={reference:EG(I,Id(N),p.options.strategy==="fixed"),popper:M_(N)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(fe){return p.modifiersData[fe.name]=Object.assign({},fe.data)});for(var z=0;z<p.orderedModifiers.length;z++){if(p.reset===!0){p.reset=!1,z=-1;continue}var T=p.orderedModifiers[z],E=T.fn,C=T.options,ae=C===void 0?{}:C,ue=T.name;typeof E=="function"&&(p=E({state:p,options:ae,name:ue,instance:S})||p)}}}},update:IG(function(){return new Promise(function(x){S.forceUpdate(),x(p)})}),destroy:function(){j(),y=!0}};if(!lN(d,f))return S;S.setOptions(m).then(function(x){!y&&m.onFirstUpdate&&m.onFirstUpdate(x)});function w(){p.orderedModifiers.forEach(function(x){var $=x.name,I=x.options,N=I===void 0?{}:I,z=x.effect;if(typeof z=="function"){var T=z({state:p,name:$,instance:S,options:N}),E=function(){};g.push(T||E)}})}function j(){g.forEach(function(x){return x()}),g=[]}return S}}const AG=zG({defaultModifiers:[vG,_G,eG,nG,yG,mG,kG,Yq]}),DG=["enabled","placement","strategy","modifiers"];function UG(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}const CG={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},RG={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:r}=e.elements;if("removeAttribute"in t){const i=(t.getAttribute("aria-describedby")||"").split(",").filter(n=>n.trim()!==r.id);i.length?t.setAttribute("aria-describedby",i.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:r,reference:i}=e.elements,n=(t=r.getAttribute("role"))==null?void 0:t.toLowerCase();if(r.id&&n==="tooltip"&&"setAttribute"in i){const a=i.getAttribute("aria-describedby");if(a&&a.split(",").indexOf(r.id)!==-1)return;i.setAttribute("aria-describedby",a?`${a},${r.id}`:r.id)}}},MG=[];function LG(e,t,r={}){let{enabled:i=!0,placement:n="bottom",strategy:a="absolute",modifiers:l=MG}=r,d=UG(r,DG);const f=k.useRef(l),m=k.useRef(),p=k.useCallback(()=>{var x;(x=m.current)==null||x.update()},[]),g=k.useCallback(()=>{var x;(x=m.current)==null||x.forceUpdate()},[]),[y,S]=Tq(k.useState({placement:n,update:p,forceUpdate:g,attributes:{},styles:{popper:{},arrow:{}}})),w=k.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:x})=>{const $={},I={};Object.keys(x.elements).forEach(N=>{$[N]=x.styles[N],I[N]=x.attributes[N]}),S({state:x,styles:$,attributes:I,update:p,forceUpdate:g,placement:x.placement})}}),[p,g,S]),j=k.useMemo(()=>(Bc(f.current,l)||(f.current=l),f.current),[l]);return k.useEffect(()=>{!m.current||!i||m.current.setOptions({placement:n,strategy:a,modifiers:[...j,w,CG]})},[a,n,w,i,j]),k.useEffect(()=>{if(!(!i||e==null||t==null))return m.current=AG(e,t,Object.assign({},d,{placement:n,strategy:a,modifiers:[...j,RG,w]})),()=>{m.current!=null&&(m.current.destroy(),m.current=void 0,S(x=>Object.assign({},x,{attributes:{},styles:{popper:{}}})))}},[i,e,t]),y}function id(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var Ny,sN;function PG(){if(sN)return Ny;sN=1;var e=function(){};return Ny=e,Ny}var ZG=PG();const BG=ws(ZG),cN=()=>{};function FG(e){return e.button===0}function VG(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Jm=e=>e&&("current"in e?e.current:e),dN={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function qG(e,t=cN,{disabled:r,clickTrigger:i="click"}={}){const n=k.useRef(!1),a=k.useRef(!1),l=k.useCallback(m=>{const p=Jm(e);BG(!!p,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),n.current=!p||VG(m)||!FG(m)||!!id(p,m.target)||a.current,a.current=!1},[e]),d=Gr(m=>{const p=Jm(e);p&&id(p,m.target)?a.current=!0:a.current=!1}),f=Gr(m=>{n.current||t(m)});k.useEffect(()=>{var m,p;if(r||e==null)return;const g=Ns(Jm(e)),y=g.defaultView||window;let S=(m=y.event)!=null?m:(p=y.parent)==null?void 0:p.event,w=null;dN[i]&&(w=Oa(g,dN[i],d,!0));const j=Oa(g,i,l,!0),x=Oa(g,i,I=>{if(I===S){S=void 0;return}f(I)});let $=[];return"ontouchstart"in g.documentElement&&($=[].slice.call(g.body.children).map(I=>Oa(I,"mousemove",cN))),()=>{w==null||w(),j(),x(),$.forEach(I=>I())}},[e,r,i,l,d,f])}function GG(e){const t={};return Array.isArray(e)?(e==null||e.forEach(r=>{t[r.name]=r}),t):e||t}function HG(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function KG({enabled:e,enableEvents:t,placement:r,flip:i,offset:n,fixed:a,containerPadding:l,arrowElement:d,popperConfig:f={}}){var m,p,g,y;const S=GG(f.modifiers);return Object.assign({},f,{placement:r,enabled:e,strategy:a?"fixed":f.strategy,modifiers:HG(Object.assign({},S,{eventListeners:{enabled:t,options:(m=S.eventListeners)==null?void 0:m.options},preventOverflow:Object.assign({},S.preventOverflow,{options:Object.assign({padding:l},(p=S.preventOverflow)==null?void 0:p.options)}),offset:{options:Object.assign({offset:n},(g=S.offset)==null?void 0:g.options)},arrow:Object.assign({},S.arrow,{enabled:!!d,options:Object.assign({},(y=S.arrow)==null?void 0:y.options,{element:d})}),flip:Object.assign({enabled:!!i},S.flip)}))})}const dh=k.createContext(null),F_=(e,t=null)=>e!=null?String(e):t||null,V_=k.createContext(null);V_.displayName="NavContext";const JG="data-rr-ui-",YG="rrUi";function rv(e){return`${JG}${e}`}function XG(e){return`${YG}${e}`}const mz=k.createContext(js?window:void 0);mz.Provider;function q_(){return k.useContext(mz)}const QG=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",WG=typeof document<"u",hz=WG||QG?k.useLayoutEffect:k.useEffect,Is=k.createContext(null);Is.displayName="NavbarContext";const eH={type:rt.string,tooltip:rt.bool,as:rt.elementType},iv=k.forwardRef(({as:e="div",className:t,type:r="valid",tooltip:i=!1,...n},a)=>b.jsx(e,{...n,ref:a,className:ke(t,`${r}-${i?"tooltip":"feedback"}`)}));iv.displayName="Feedback";iv.propTypes=eH;const Ca=k.createContext({}),G_=k.forwardRef(({id:e,bsPrefix:t,className:r,type:i="checkbox",isValid:n=!1,isInvalid:a=!1,as:l="input",...d},f)=>{const{controlId:m}=k.useContext(Ca);return t=Me(t,"form-check-input"),b.jsx(l,{...d,ref:f,type:i,id:e||m,className:ke(r,t,n&&"is-valid",a&&"is-invalid")})});G_.displayName="FormCheckInput";const fh=k.forwardRef(({bsPrefix:e,className:t,htmlFor:r,...i},n)=>{const{controlId:a}=k.useContext(Ca);return e=Me(e,"form-check-label"),b.jsx("label",{...i,ref:n,htmlFor:r||a,className:ke(t,e)})});fh.displayName="FormCheckLabel";const vz=k.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:r,inline:i=!1,reverse:n=!1,disabled:a=!1,isValid:l=!1,isInvalid:d=!1,feedbackTooltip:f=!1,feedback:m,feedbackType:p,className:g,style:y,title:S="",type:w="checkbox",label:j,children:x,as:$="input",...I},N)=>{t=Me(t,"form-check"),r=Me(r,"form-switch");const{controlId:z}=k.useContext(Ca),T=k.useMemo(()=>({controlId:e||z}),[z,e]),E=!x&&j!=null&&j!==!1||Eq(x,fh),C=b.jsx(G_,{...I,type:w==="switch"?"checkbox":w,ref:N,isValid:l,isInvalid:d,disabled:a,as:$});return b.jsx(Ca.Provider,{value:T,children:b.jsx("div",{style:y,className:ke(g,E&&t,i&&`${t}-inline`,n&&`${t}-reverse`,w==="switch"&&r),children:x||b.jsxs(b.Fragment,{children:[C,E&&b.jsx(fh,{title:S,children:j}),m&&b.jsx(iv,{type:p,tooltip:f,children:m})]})})})});vz.displayName="FormCheck";const mh=Object.assign(vz,{Input:G_,Label:fh}),pz=k.forwardRef(({bsPrefix:e,type:t,size:r,htmlSize:i,id:n,className:a,isValid:l=!1,isInvalid:d=!1,plaintext:f,readOnly:m,as:p="input",...g},y)=>{const{controlId:S}=k.useContext(Ca);return e=Me(e,"form-control"),b.jsx(p,{...g,type:t,size:i,ref:y,readOnly:m,id:n||S,className:ke(a,f?`${e}-plaintext`:e,r&&`${e}-${r}`,t==="color"&&`${e}-color`,l&&"is-valid",d&&"is-invalid")})});pz.displayName="FormControl";const tH=Object.assign(pz,{Feedback:iv}),gz=k.forwardRef(({className:e,bsPrefix:t,as:r="div",...i},n)=>(t=Me(t,"form-floating"),b.jsx(r,{ref:n,className:ke(e,t),...i})));gz.displayName="FormFloating";const H_=k.forwardRef(({controlId:e,as:t="div",...r},i)=>{const n=k.useMemo(()=>({controlId:e}),[e]);return b.jsx(Ca.Provider,{value:n,children:b.jsx(t,{...r,ref:i})})});H_.displayName="FormGroup";const yz=k.forwardRef(({as:e="label",bsPrefix:t,column:r=!1,visuallyHidden:i=!1,className:n,htmlFor:a,...l},d)=>{const{controlId:f}=k.useContext(Ca);t=Me(t,"form-label");let m="col-form-label";typeof r=="string"&&(m=`${m} ${m}-${r}`);const p=ke(n,t,i&&"visually-hidden",r&&m);return a=a||f,r?b.jsx(tv,{ref:d,as:"label",className:p,htmlFor:a,...l}):b.jsx(e,{ref:d,className:p,htmlFor:a,...l})});yz.displayName="FormLabel";const bz=k.forwardRef(({bsPrefix:e,className:t,id:r,...i},n)=>{const{controlId:a}=k.useContext(Ca);return e=Me(e,"form-range"),b.jsx("input",{...i,type:"range",ref:n,className:ke(t,e),id:r||a})});bz.displayName="FormRange";const _z=k.forwardRef(({bsPrefix:e,size:t,htmlSize:r,className:i,isValid:n=!1,isInvalid:a=!1,id:l,...d},f)=>{const{controlId:m}=k.useContext(Ca);return e=Me(e,"form-select"),b.jsx("select",{...d,size:r,ref:f,className:ke(i,e,t&&`${e}-${t}`,n&&"is-valid",a&&"is-invalid"),id:l||m})});_z.displayName="FormSelect";const $z=k.forwardRef(({bsPrefix:e,className:t,as:r="small",muted:i,...n},a)=>(e=Me(e,"form-text"),b.jsx(r,{...n,ref:a,className:ke(t,e,i&&"text-muted")})));$z.displayName="FormText";const Sz=k.forwardRef((e,t)=>b.jsx(mh,{...e,ref:t,type:"switch"}));Sz.displayName="Switch";const nH=Object.assign(Sz,{Input:mh.Input,Label:mh.Label}),kz=k.forwardRef(({bsPrefix:e,className:t,children:r,controlId:i,label:n,...a},l)=>(e=Me(e,"form-floating"),b.jsxs(H_,{ref:l,className:ke(t,e),controlId:i,...a,children:[r,b.jsx("label",{htmlFor:i,children:n})]})));kz.displayName="FloatingLabel";const rH={_ref:rt.any,validated:rt.bool,as:rt.elementType},K_=k.forwardRef(({className:e,validated:t,as:r="form",...i},n)=>b.jsx(r,{...i,ref:n,className:ke(e,t&&"was-validated")}));K_.displayName="Form";K_.propTypes=rH;const tt=Object.assign(K_,{Group:H_,Control:tH,Floating:gz,Check:mh,Switch:nH,Label:yz,Text:$z,Range:bz,Select:_z,FloatingLabel:kz}),fN=e=>!e||typeof e=="function"?e:t=>{e.current=t};function iH(e,t){const r=fN(e),i=fN(t);return n=>{r&&r(n),i&&i(n)}}function Td(e,t){return k.useMemo(()=>iH(e,t),[e,t])}const wz=k.createContext(null),aH=["as","active","eventKey"];function oH(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}function xz({key:e,onClick:t,active:r,id:i,role:n,disabled:a}){const l=k.useContext(dh),d=k.useContext(V_),f=k.useContext(wz);let m=r;const p={role:n};if(d){!n&&d.role==="tablist"&&(p.role="tab");const g=d.getControllerId(e??null),y=d.getControlledId(e??null);p[rv("event-key")]=e,p.id=g||i,m=r==null&&e!=null?d.activeKey===e:r,(m||!(f!=null&&f.unmountOnExit)&&!(f!=null&&f.mountOnEnter))&&(p["aria-controls"]=y)}return p.role==="tab"&&(p["aria-selected"]=m,m||(p.tabIndex=-1),a&&(p.tabIndex=-1,p["aria-disabled"]=!0)),p.onClick=Gr(g=>{a||(t==null||t(g),e!=null&&l&&!g.isPropagationStopped()&&l(e,g))}),[p,{isActive:m}]}const Oz=k.forwardRef((e,t)=>{let{as:r=BT,active:i,eventKey:n}=e,a=oH(e,aH);const[l,d]=xz(Object.assign({key:F_(n,a.href),active:i},a));return l[rv("active")]=d.isActive,b.jsx(r,Object.assign({},a,l,{ref:t}))});Oz.displayName="NavItem";const uH=["as","onSelect","activeKey","role","onKeyDown"];function lH(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}const mN=()=>{},hN=rv("event-key"),Ez=k.forwardRef((e,t)=>{let{as:r="div",onSelect:i,activeKey:n,role:a,onKeyDown:l}=e,d=lH(e,uH);const f=Iq(),m=k.useRef(!1),p=k.useContext(dh),g=k.useContext(wz);let y,S;g&&(a=a||"tablist",n=g.activeKey,y=g.getControlledId,S=g.getControllerId);const w=k.useRef(null),j=N=>{const z=w.current;if(!z)return null;const T=du(z,`[${hN}]:not([aria-disabled=true])`),E=z.querySelector("[aria-selected=true]");if(!E||E!==document.activeElement)return null;const C=T.indexOf(E);if(C===-1)return null;let ae=C+N;return ae>=T.length&&(ae=0),ae<0&&(ae=T.length-1),T[ae]},x=(N,z)=>{N!=null&&(i==null||i(N,z),p==null||p(N,z))},$=N=>{if(l==null||l(N),!g)return;let z;switch(N.key){case"ArrowLeft":case"ArrowUp":z=j(-1);break;case"ArrowRight":case"ArrowDown":z=j(1);break;default:return}z&&(N.preventDefault(),x(z.dataset[XG("EventKey")]||null,N),m.current=!0,f())};k.useEffect(()=>{if(w.current&&m.current){const N=w.current.querySelector(`[${hN}][aria-selected=true]`);N==null||N.focus()}m.current=!1});const I=Td(t,w);return b.jsx(dh.Provider,{value:x,children:b.jsx(V_.Provider,{value:{role:a,activeKey:F_(n),getControlledId:y||mN,getControllerId:S||mN},children:b.jsx(r,Object.assign({},d,{onKeyDown:$,ref:I,role:a}))})})});Ez.displayName="Nav";const sH=Object.assign(Ez,{Item:Oz});var Em;function vN(e){if((!Em&&Em!==0||e)&&js){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Em=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Em}function cH(){return k.useState(null)}function jy(e){e===void 0&&(e=Ns());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function dH(e){const t=k.useRef(e);return t.current=e,t}function fH(e){const t=dH(e);k.useEffect(()=>()=>t.current(),[])}function mH(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const pN=rv("modal-open");class J_{constructor({ownerDocument:t,handleContainerOverflow:r=!0,isRTL:i=!1}={}){this.handleContainerOverflow=r,this.isRTL=i,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return mH(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const r={overflow:"hidden"},i=this.isRTL?"paddingLeft":"paddingRight",n=this.getElement();t.style={overflow:n.style.overflow,[i]:n.style[i]},t.scrollBarWidth&&(r[i]=`${parseInt(Ta(n,i)||"0",10)+t.scrollBarWidth}px`),n.setAttribute(pN,""),Ta(n,r)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const r=this.getElement();r.removeAttribute(pN),Object.assign(r.style,t.style)}add(t){let r=this.modals.indexOf(t);return r!==-1||(r=this.modals.length,this.modals.push(t),this.setModalAttributes(t),r!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),r}remove(t){const r=this.modals.indexOf(t);r!==-1&&(this.modals.splice(r,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const Iy=(e,t)=>js?e==null?(t||Ns()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function _b(e,t){const r=q_(),[i,n]=k.useState(()=>Iy(e,r==null?void 0:r.document));if(!i){const a=Iy(e);a&&n(a)}return k.useEffect(()=>{},[t,i]),k.useEffect(()=>{const a=Iy(e);a!==i&&n(a)},[e,i]),i}function hH({children:e,in:t,onExited:r,mountOnEnter:i,unmountOnExit:n}){const a=k.useRef(null),l=k.useRef(t),d=Gr(r);k.useEffect(()=>{t?l.current=!0:d(a.current)},[t,d]);const f=Td(a,Ku(e)),m=k.cloneElement(e,{ref:f});return t?m:n||!l.current&&i?null:m}const vH=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function pH(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}function gH(e){let{onEnter:t,onEntering:r,onEntered:i,onExit:n,onExiting:a,onExited:l,addEndListener:d,children:f}=e,m=pH(e,vH);const p=k.useRef(null),g=Td(p,Ku(f)),y=z=>T=>{z&&p.current&&z(p.current,T)},S=k.useCallback(y(t),[t]),w=k.useCallback(y(r),[r]),j=k.useCallback(y(i),[i]),x=k.useCallback(y(n),[n]),$=k.useCallback(y(a),[a]),I=k.useCallback(y(l),[l]),N=k.useCallback(y(d),[d]);return Object.assign({},m,{nodeRef:p},t&&{onEnter:S},r&&{onEntering:w},i&&{onEntered:j},n&&{onExit:x},a&&{onExiting:$},l&&{onExited:I},d&&{addEndListener:N},{children:typeof f=="function"?(z,T)=>f(z,Object.assign({},T,{ref:g})):k.cloneElement(f,{ref:g})})}const yH=["component"];function bH(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}const _H=k.forwardRef((e,t)=>{let{component:r}=e,i=bH(e,yH);const n=gH(i);return b.jsx(r,Object.assign({ref:t},n))});function $H({in:e,onTransition:t}){const r=k.useRef(null),i=k.useRef(!0),n=Gr(t);return XE(()=>{if(!r.current)return;let a=!1;return n({in:e,element:r.current,initial:i.current,isStale:()=>a}),()=>{a=!0}},[e,n]),XE(()=>(i.current=!1,()=>{i.current=!0}),[]),r}function SH({children:e,in:t,onExited:r,onEntered:i,transition:n}){const[a,l]=k.useState(!t);t&&a&&l(!1);const d=$H({in:!!t,onTransition:m=>{const p=()=>{m.isStale()||(m.in?i==null||i(m.element,m.initial):(l(!0),r==null||r(m.element)))};Promise.resolve(n(m)).then(p,g=>{throw m.in||l(!0),g})}}),f=Td(d,Ku(e));return a&&!t?null:k.cloneElement(e,{ref:f})}function $b(e,t,r){return e?b.jsx(_H,Object.assign({},r,{component:e})):t?b.jsx(SH,Object.assign({},r,{transition:t})):b.jsx(hH,Object.assign({},r))}const kH=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function wH(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}let Ty;function xH(e){return Ty||(Ty=new J_({ownerDocument:e==null?void 0:e.document})),Ty}function OH(e){const t=q_(),r=e||xH(t),i=k.useRef({dialog:null,backdrop:null});return Object.assign(i.current,{add:()=>r.add(i.current),remove:()=>r.remove(i.current),isTopModal:()=>r.isTopModal(i.current),setDialogRef:k.useCallback(n=>{i.current.dialog=n},[]),setBackdropRef:k.useCallback(n=>{i.current.backdrop=n},[])})}const Nz=k.forwardRef((e,t)=>{let{show:r=!1,role:i="dialog",className:n,style:a,children:l,backdrop:d=!0,keyboard:f=!0,onBackdropClick:m,onEscapeKeyDown:p,transition:g,runTransition:y,backdropTransition:S,runBackdropTransition:w,autoFocus:j=!0,enforceFocus:x=!0,restoreFocus:$=!0,restoreFocusOptions:I,renderDialog:N,renderBackdrop:z=yt=>b.jsx("div",Object.assign({},yt)),manager:T,container:E,onShow:C,onHide:ae=()=>{},onExit:ue,onExited:fe,onExiting:we,onEnter:Je,onEntering:De,onEntered:_e}=e,Ne=wH(e,kH);const M=q_(),ee=_b(E),ce=OH(T),je=ZT(),Ue=dq(r),[D,H]=k.useState(!r),ne=k.useRef(null);k.useImperativeHandle(t,()=>ce,[ce]),js&&!Ue&&r&&(ne.current=jy(M==null?void 0:M.document)),r&&D&&H(!1);const oe=Gr(()=>{if(ce.add(),gt.current=Oa(document,"keydown",_t),dt.current=Oa(document,"focus",()=>setTimeout(Ae),!0),C&&C(),j){var yt,Cn;const Rn=jy((yt=(Cn=ce.dialog)==null?void 0:Cn.ownerDocument)!=null?yt:M==null?void 0:M.document);ce.dialog&&Rn&&!id(ce.dialog,Rn)&&(ne.current=Rn,ce.dialog.focus())}}),ye=Gr(()=>{if(ce.remove(),gt.current==null||gt.current(),dt.current==null||dt.current(),$){var yt;(yt=ne.current)==null||yt.focus==null||yt.focus(I),ne.current=null}});k.useEffect(()=>{!r||!ee||oe()},[r,ee,oe]),k.useEffect(()=>{D&&ye()},[D,ye]),fH(()=>{ye()});const Ae=Gr(()=>{if(!x||!je()||!ce.isTopModal())return;const yt=jy(M==null?void 0:M.document);ce.dialog&&yt&&!id(ce.dialog,yt)&&ce.dialog.focus()}),He=Gr(yt=>{yt.target===yt.currentTarget&&(m==null||m(yt),d===!0&&ae())}),_t=Gr(yt=>{f&&DT(yt)&&ce.isTopModal()&&(p==null||p(yt),yt.defaultPrevented||ae())}),dt=k.useRef(),gt=k.useRef(),Ht=(...yt)=>{H(!0),fe==null||fe(...yt)};if(!ee)return null;const wn=Object.assign({role:i,ref:ce.setDialogRef,"aria-modal":i==="dialog"?!0:void 0},Ne,{style:a,className:n,tabIndex:-1});let zn=N?N(wn):b.jsx("div",Object.assign({},wn,{children:k.cloneElement(l,{role:"document"})}));zn=$b(g,y,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!r,onExit:ue,onExiting:we,onExited:Ht,onEnter:Je,onEntering:De,onEntered:_e,children:zn});let Rt=null;return d&&(Rt=z({ref:ce.setBackdropRef,onClick:He}),Rt=$b(S,w,{in:!!r,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Rt})),b.jsx(b.Fragment,{children:hu.createPortal(b.jsxs(b.Fragment,{children:[Rt,zn]}),ee)})});Nz.displayName="Modal";const jz=Object.assign(Nz,{Manager:J_});function Sb(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function EH(e,t){e.classList?e.classList.add(t):Sb(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function gN(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function NH(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=gN(e.className,t):e.setAttribute("class",gN(e.className&&e.className.baseVal||"",t))}const Zl={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Iz extends J_{adjustAndStore(t,r,i){const n=r.style[t];r.dataset[t]=n,Ta(r,{[t]:`${parseFloat(Ta(r,t))+i}px`})}restore(t,r){const i=r.dataset[t];i!==void 0&&(delete r.dataset[t],Ta(r,{[t]:i}))}setContainerStyle(t){super.setContainerStyle(t);const r=this.getElement();if(EH(r,"modal-open"),!t.scrollBarWidth)return;const i=this.isRTL?"paddingLeft":"paddingRight",n=this.isRTL?"marginLeft":"marginRight";du(r,Zl.FIXED_CONTENT).forEach(a=>this.adjustAndStore(i,a,t.scrollBarWidth)),du(r,Zl.STICKY_CONTENT).forEach(a=>this.adjustAndStore(n,a,-t.scrollBarWidth)),du(r,Zl.NAVBAR_TOGGLER).forEach(a=>this.adjustAndStore(n,a,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const r=this.getElement();NH(r,"modal-open");const i=this.isRTL?"paddingLeft":"paddingRight",n=this.isRTL?"marginLeft":"marginRight";du(r,Zl.FIXED_CONTENT).forEach(a=>this.restore(i,a)),du(r,Zl.STICKY_CONTENT).forEach(a=>this.restore(n,a)),du(r,Zl.NAVBAR_TOGGLER).forEach(a=>this.restore(n,a))}}let zy;function Tz(e){return zy||(zy=new Iz(e)),zy}const zz=k.forwardRef(({className:e,bsPrefix:t,as:r="div",...i},n)=>(t=Me(t,"modal-body"),b.jsx(r,{ref:n,className:ke(e,t),...i})));zz.displayName="ModalBody";const Y_=k.createContext({onHide(){}}),X_=k.forwardRef(({bsPrefix:e,className:t,contentClassName:r,centered:i,size:n,fullscreen:a,children:l,scrollable:d,...f},m)=>{e=Me(e,"modal");const p=`${e}-dialog`,g=typeof a=="string"?`${e}-fullscreen-${a}`:`${e}-fullscreen`;return b.jsx("div",{...f,ref:m,className:ke(p,t,n&&`${e}-${n}`,i&&`${p}-centered`,d&&`${p}-scrollable`,a&&g),children:b.jsx("div",{className:ke(`${e}-content`,r),children:l})})});X_.displayName="ModalDialog";const Az=k.forwardRef(({className:e,bsPrefix:t,as:r="div",...i},n)=>(t=Me(t,"modal-footer"),b.jsx(r,{ref:n,className:ke(e,t),...i})));Az.displayName="ModalFooter";const Q_=k.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:r=!1,onHide:i,children:n,...a},l)=>{const d=k.useContext(Y_),f=No(()=>{d==null||d.onHide(),i==null||i()});return b.jsxs("div",{ref:l,...a,children:[n,r&&b.jsx(ev,{"aria-label":e,variant:t,onClick:f})]})});Q_.displayName="AbstractModalHeader";const Dz=k.forwardRef(({bsPrefix:e,className:t,closeLabel:r="Close",closeButton:i=!1,...n},a)=>(e=Me(e,"modal-header"),b.jsx(Q_,{ref:a,...n,className:ke(t,e),closeLabel:r,closeButton:i})));Dz.displayName="ModalHeader";const jH=Ed("h4"),Uz=k.forwardRef(({className:e,bsPrefix:t,as:r=jH,...i},n)=>(t=Me(t,"modal-title"),b.jsx(r,{ref:n,className:ke(e,t),...i})));Uz.displayName="ModalTitle";function IH(e){return b.jsx(jo,{...e,timeout:null})}function TH(e){return b.jsx(jo,{...e,timeout:null})}const Cz=k.forwardRef(({bsPrefix:e,className:t,style:r,dialogClassName:i,contentClassName:n,children:a,dialogAs:l=X_,"data-bs-theme":d,"aria-labelledby":f,"aria-describedby":m,"aria-label":p,show:g=!1,animation:y=!0,backdrop:S=!0,keyboard:w=!0,onEscapeKeyDown:j,onShow:x,onHide:$,container:I,autoFocus:N=!0,enforceFocus:z=!0,restoreFocus:T=!0,restoreFocusOptions:E,onEntered:C,onExit:ae,onExiting:ue,onEnter:fe,onEntering:we,onExited:Je,backdropClassName:De,manager:_e,...Ne},M)=>{const[ee,ce]=k.useState({}),[je,Ue]=k.useState(!1),D=k.useRef(!1),H=k.useRef(!1),ne=k.useRef(null),[oe,ye]=cH(),Ae=Xh(M,ye),He=No($),_t=T_();e=Me(e,"modal");const dt=k.useMemo(()=>({onHide:He}),[He]);function gt(){return _e||Tz({isRTL:_t})}function Ht(me){if(!js)return;const Pe=gt().getScrollbarWidth()>0,Nt=me.scrollHeight>Ns(me).documentElement.clientHeight;ce({paddingRight:Pe&&!Nt?vN():void 0,paddingLeft:!Pe&&Nt?vN():void 0})}const wn=No(()=>{oe&&Ht(oe.dialog)});nz(()=>{pb(window,"resize",wn),ne.current==null||ne.current()});const zn=()=>{D.current=!0},Rt=me=>{D.current&&oe&&me.target===oe.dialog&&(H.current=!0),D.current=!1},yt=()=>{Ue(!0),ne.current=CT(oe.dialog,()=>{Ue(!1)})},Cn=me=>{me.target===me.currentTarget&&yt()},Rn=me=>{if(S==="static"){Cn(me);return}if(H.current||me.target!==me.currentTarget){H.current=!1;return}$==null||$()},Ni=me=>{w?j==null||j(me):(me.preventDefault(),S==="static"&&yt())},rr=(me,Pe)=>{me&&Ht(me),fe==null||fe(me,Pe)},xn=me=>{ne.current==null||ne.current(),ae==null||ae(me)},Gn=(me,Pe)=>{we==null||we(me,Pe),UT(window,"resize",wn)},q=me=>{me&&(me.style.display=""),Je==null||Je(me),pb(window,"resize",wn)},pe=k.useCallback(me=>b.jsx("div",{...me,className:ke(`${e}-backdrop`,De,!y&&"show")}),[y,De,e]),he={...r,...ee};he.display="block";const Oe=me=>b.jsx("div",{role:"dialog",...me,style:he,className:ke(t,e,je&&`${e}-static`,!y&&"show"),onClick:S?Rn:void 0,onMouseUp:Rt,"data-bs-theme":d,"aria-label":p,"aria-labelledby":f,"aria-describedby":m,children:b.jsx(l,{...Ne,onMouseDown:zn,className:i,contentClassName:n,children:a})});return b.jsx(Y_.Provider,{value:dt,children:b.jsx(jz,{show:g,ref:Ae,backdrop:S,container:I,keyboard:!0,autoFocus:N,enforceFocus:z,restoreFocus:T,restoreFocusOptions:E,onEscapeKeyDown:Ni,onShow:x,onHide:$,onEnter:rr,onEntering:Gn,onEntered:C,onExit:xn,onExiting:ue,onExited:q,manager:gt(),transition:y?IH:void 0,backdropTransition:y?TH:void 0,renderBackdrop:pe,renderDialog:Oe})})});Cz.displayName="Modal";const vn=Object.assign(Cz,{Body:zz,Header:Dz,Title:Uz,Footer:Az,Dialog:X_,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),Rz=k.forwardRef(({className:e,bsPrefix:t,as:r="div",...i},n)=>(t=Me(t,"nav-item"),b.jsx(r,{ref:n,className:ke(e,t),...i})));Rz.displayName="NavItem";const Mz=k.forwardRef(({bsPrefix:e,className:t,as:r=Wh,active:i,eventKey:n,disabled:a=!1,...l},d)=>{e=Me(e,"nav-link");const[f,m]=xz({key:F_(n,l.href),active:i,disabled:a,...l});return b.jsx(r,{...l,...f,ref:d,disabled:a,className:ke(t,e,a&&"disabled",m.isActive&&"active")})});Mz.displayName="NavLink";const Lz=k.forwardRef((e,t)=>{const{as:r="div",bsPrefix:i,variant:n,fill:a=!1,justify:l=!1,navbar:d,navbarScroll:f,className:m,activeKey:p,...g}=N_(e,{activeKey:"onSelect"}),y=Me(i,"nav");let S,w,j=!1;const x=k.useContext(Is),$=k.useContext(U_);return x?(S=x.bsPrefix,j=d??!0):$&&({cardHeaderBsPrefix:w}=$),b.jsx(sH,{as:r,ref:t,activeKey:p,className:ke(m,{[y]:!j,[`${S}-nav`]:j,[`${S}-nav-scroll`]:j&&f,[`${w}-${n}`]:!!w,[`${y}-${n}`]:!!n,[`${y}-fill`]:a,[`${y}-justified`]:l}),...g})});Lz.displayName="Nav";const jc=Object.assign(Lz,{Item:Rz,Link:Mz}),Pz=k.forwardRef(({bsPrefix:e,className:t,as:r,...i},n)=>{e=Me(e,"navbar-brand");const a=r||(i.href?"a":"span");return b.jsx(a,{...i,ref:n,className:ke(t,e)})});Pz.displayName="NavbarBrand";const Zz=k.forwardRef(({children:e,bsPrefix:t,...r},i)=>{t=Me(t,"navbar-collapse");const n=k.useContext(Is);return b.jsx(MT,{in:!!(n&&n.expanded),...r,children:b.jsx("div",{ref:i,className:t,children:e})})});Zz.displayName="NavbarCollapse";const Bz=k.forwardRef(({bsPrefix:e,className:t,children:r,label:i="Toggle navigation",as:n="button",onClick:a,...l},d)=>{e=Me(e,"navbar-toggler");const{onToggle:f,expanded:m}=k.useContext(Is)||{},p=No(g=>{a&&a(g),f&&f()});return n==="button"&&(l.type="button"),b.jsx(n,{...l,ref:d,onClick:p,"aria-label":i,className:ke(t,e,!m&&"collapsed"),children:r||b.jsx("span",{className:`${e}-icon`})})});Bz.displayName="NavbarToggle";const kb=new WeakMap,yN=(e,t)=>{if(!e||!t)return;const r=kb.get(t)||new Map;kb.set(t,r);let i=r.get(e);return i||(i=t.matchMedia(e),i.refCount=0,r.set(i.media,i)),i};function zH(e,t=typeof window>"u"?void 0:window){const r=yN(e,t),[i,n]=k.useState(()=>r?r.matches:!1);return hz(()=>{let a=yN(e,t);if(!a)return n(!1);let l=kb.get(t);const d=()=>{n(a.matches)};return a.refCount++,a.addListener(d),d(),()=>{a.removeListener(d),a.refCount--,a.refCount<=0&&(l==null||l.delete(a.media)),a=void 0}},[e]),i}function AH(e){const t=Object.keys(e);function r(d,f){return d===f?f:d?`${d} and ${f}`:f}function i(d){return t[Math.min(t.indexOf(d)+1,t.length-1)]}function n(d){const f=i(d);let m=e[f];return typeof m=="number"?m=`${m-.2}px`:m=`calc(${m} - 0.2px)`,`(max-width: ${m})`}function a(d){let f=e[d];return typeof f=="number"&&(f=`${f}px`),`(min-width: ${f})`}function l(d,f,m){let p;typeof d=="object"?(p=d,m=f,f=!0):(f=f||!0,p={[d]:f});let g=k.useMemo(()=>Object.entries(p).reduce((y,[S,w])=>((w==="up"||w===!0)&&(y=r(y,a(S))),(w==="down"||w===!0)&&(y=r(y,n(S))),y),""),[JSON.stringify(p)]);return zH(g,m)}return l}const DH=AH({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),Fz=k.forwardRef(({className:e,bsPrefix:t,as:r="div",...i},n)=>(t=Me(t,"offcanvas-body"),b.jsx(r,{ref:n,className:ke(e,t),...i})));Fz.displayName="OffcanvasBody";const UH={[mi]:"show",[xa]:"show"},Vz=k.forwardRef(({bsPrefix:e,className:t,children:r,in:i=!1,mountOnEnter:n=!1,unmountOnExit:a=!1,appear:l=!1,...d},f)=>(e=Me(e,"offcanvas"),b.jsx(Qh,{ref:f,addEndListener:z_,in:i,mountOnEnter:n,unmountOnExit:a,appear:l,...d,childRef:Ku(r),children:(m,p)=>k.cloneElement(r,{...p,className:ke(t,r.props.className,(m===mi||m===td)&&`${e}-toggling`,UH[m])})})));Vz.displayName="OffcanvasToggling";const qz=k.forwardRef(({bsPrefix:e,className:t,closeLabel:r="Close",closeButton:i=!1,...n},a)=>(e=Me(e,"offcanvas-header"),b.jsx(Q_,{ref:a,...n,className:ke(t,e),closeLabel:r,closeButton:i})));qz.displayName="OffcanvasHeader";const CH=Ed("h5"),Gz=k.forwardRef(({className:e,bsPrefix:t,as:r=CH,...i},n)=>(t=Me(t,"offcanvas-title"),b.jsx(r,{ref:n,className:ke(e,t),...i})));Gz.displayName="OffcanvasTitle";function RH(e){return b.jsx(Vz,{...e})}function MH(e){return b.jsx(jo,{...e})}const Hz=k.forwardRef(({bsPrefix:e,className:t,children:r,"aria-labelledby":i,placement:n="start",responsive:a,show:l=!1,backdrop:d=!0,keyboard:f=!0,scroll:m=!1,onEscapeKeyDown:p,onShow:g,onHide:y,container:S,autoFocus:w=!0,enforceFocus:j=!0,restoreFocus:x=!0,restoreFocusOptions:$,onEntered:I,onExit:N,onExiting:z,onEnter:T,onEntering:E,onExited:C,backdropClassName:ae,manager:ue,renderStaticNode:fe=!1,...we},Je)=>{const De=k.useRef();e=Me(e,"offcanvas");const[_e,Ne]=k.useState(!1),M=No(y),ee=DH(a||"xs","up");k.useEffect(()=>{Ne(a?l&&!ee:l)},[l,a,ee]);const ce=k.useMemo(()=>({onHide:M}),[M]);function je(){return ue||(m?(De.current||(De.current=new Iz({handleContainerOverflow:!1})),De.current):Tz())}const Ue=(oe,...ye)=>{oe&&(oe.style.visibility="visible"),T==null||T(oe,...ye)},D=(oe,...ye)=>{oe&&(oe.style.visibility=""),C==null||C(...ye)},H=k.useCallback(oe=>b.jsx("div",{...oe,className:ke(`${e}-backdrop`,ae)}),[ae,e]),ne=oe=>b.jsx("div",{...oe,...we,className:ke(t,a?`${e}-${a}`:e,`${e}-${n}`),"aria-labelledby":i,children:r});return b.jsxs(b.Fragment,{children:[!_e&&(a||fe)&&ne({}),b.jsx(Y_.Provider,{value:ce,children:b.jsx(jz,{show:_e,ref:Je,backdrop:d,container:S,keyboard:f,autoFocus:w,enforceFocus:j&&!m,restoreFocus:x,restoreFocusOptions:$,onEscapeKeyDown:p,onShow:g,onHide:M,onEnter:Ue,onEntering:E,onEntered:I,onExit:N,onExiting:z,onExited:D,manager:je(),transition:RH,backdropTransition:MH,renderBackdrop:H,renderDialog:ne})})]})});Hz.displayName="Offcanvas";const LH=Object.assign(Hz,{Body:Fz,Header:qz,Title:Gz}),Kz=k.forwardRef(({onHide:e,...t},r)=>{const i=k.useContext(Is),n=No(()=>{i==null||i.onToggle==null||i.onToggle(),e==null||e()});return b.jsx(LH,{ref:r,show:!!(i!=null&&i.expanded),...t,renderStaticNode:!0,onHide:n})});Kz.displayName="NavbarOffcanvas";const W_=k.forwardRef(({className:e,bsPrefix:t,as:r="span",...i},n)=>(t=Me(t,"navbar-text"),b.jsx(r,{ref:n,className:ke(e,t),...i})));W_.displayName="NavbarText";const Jz=k.forwardRef((e,t)=>{const{bsPrefix:r,expand:i=!0,variant:n="light",bg:a,fixed:l,sticky:d,className:f,as:m="nav",expanded:p,onToggle:g,onSelect:y,collapseOnSelect:S=!1,...w}=N_(e,{expanded:"onToggle"}),j=Me(r,"navbar"),x=k.useCallback((...N)=>{y==null||y(...N),S&&p&&(g==null||g(!1))},[y,S,p,g]);w.role===void 0&&m!=="nav"&&(w.role="navigation");let $=`${j}-expand`;typeof i=="string"&&($=`${$}-${i}`);const I=k.useMemo(()=>({onToggle:()=>g==null?void 0:g(!p),bsPrefix:j,expanded:!!p,expand:i}),[j,p,i,g]);return b.jsx(Is.Provider,{value:I,children:b.jsx(dh.Provider,{value:x,children:b.jsx(m,{ref:t,...w,className:ke(f,j,i&&$,n&&`${j}-${n}`,a&&`bg-${a}`,d&&`sticky-${d}`,l&&`fixed-${l}`)})})})});Jz.displayName="Navbar";const Bl=Object.assign(Jz,{Brand:Pz,Collapse:Zz,Offcanvas:Kz,Text:W_,Toggle:Bz}),PH=()=>{};function ZH(e,t,{disabled:r,clickTrigger:i}={}){const n=t||PH;qG(e,n,{disabled:r,clickTrigger:i});const a=Gr(l=>{DT(l)&&n(l)});k.useEffect(()=>{if(r||e==null)return;const l=Ns(Jm(e));let d=(l.defaultView||window).event;const f=Oa(l,"keyup",m=>{if(m===d){d=void 0;return}a(m)});return()=>{f()}},[e,r,a])}const Yz=k.forwardRef((e,t)=>{const{flip:r,offset:i,placement:n,containerPadding:a,popperConfig:l={},transition:d,runTransition:f}=e,[m,p]=YE(),[g,y]=YE(),S=Td(p,t),w=_b(e.container),j=_b(e.target),[x,$]=k.useState(!e.show),I=LG(j,m,KG({placement:n,enableEvents:!!e.show,containerPadding:a||5,flip:r,offset:i,arrowElement:g,popperConfig:l}));e.show&&x&&$(!1);const N=(...we)=>{$(!0),e.onExited&&e.onExited(...we)},z=e.show||!x;if(ZH(m,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!z)return null;const{onExit:T,onExiting:E,onEnter:C,onEntering:ae,onEntered:ue}=e;let fe=e.children(Object.assign({},I.attributes.popper,{style:I.styles.popper,ref:S}),{popper:I,placement:n,show:!!e.show,arrowProps:Object.assign({},I.attributes.arrow,{style:I.styles.arrow,ref:y})});return fe=$b(d,f,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:fe,onExit:T,onExiting:E,onExited:N,onEnter:C,onEntering:ae,onEntered:ue}),w?hu.createPortal(fe,w):null});Yz.displayName="Overlay";const Xz=k.forwardRef(({className:e,bsPrefix:t,as:r="div",...i},n)=>(t=Me(t,"popover-header"),b.jsx(r,{ref:n,className:ke(e,t),...i})));Xz.displayName="PopoverHeader";const e$=k.forwardRef(({className:e,bsPrefix:t,as:r="div",...i},n)=>(t=Me(t,"popover-body"),b.jsx(r,{ref:n,className:ke(e,t),...i})));e$.displayName="PopoverBody";function Qz(e,t){let r=e;return e==="left"?r=t?"end":"start":e==="right"&&(r=t?"start":"end"),r}function Wz(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const eA=k.forwardRef(({bsPrefix:e,placement:t="right",className:r,style:i,children:n,body:a,arrowProps:l,hasDoneInitialMeasure:d,popper:f,show:m,...p},g)=>{const y=Me(e,"popover"),S=T_(),[w]=(t==null?void 0:t.split("-"))||[],j=Qz(w,S);let x=i;return m&&!d&&(x={...i,...Wz(f==null?void 0:f.strategy)}),b.jsxs("div",{ref:g,role:"tooltip",style:x,"x-placement":w,className:ke(r,y,w&&`bs-popover-${j}`),...p,children:[b.jsx("div",{className:"popover-arrow",...l}),a?b.jsx(e$,{children:n}):n]})});eA.displayName="Popover";const wb=Object.assign(eA,{Header:Xz,Body:e$,POPPER_OFFSET:[0,8]}),tA=k.forwardRef(({bsPrefix:e,placement:t="right",className:r,style:i,children:n,arrowProps:a,hasDoneInitialMeasure:l,popper:d,show:f,...m},p)=>{e=Me(e,"tooltip");const g=T_(),[y]=(t==null?void 0:t.split("-"))||[],S=Qz(y,g);let w=i;return f&&!l&&(w={...i,...Wz(d==null?void 0:d.strategy)}),b.jsxs("div",{ref:p,style:w,role:"tooltip","x-placement":y,className:ke(r,e,`bs-tooltip-${S}`),...m,children:[b.jsx("div",{className:"tooltip-arrow",...a}),b.jsx("div",{className:`${e}-inner`,children:n})]})});tA.displayName="Tooltip";const t$=Object.assign(tA,{TOOLTIP_OFFSET:[0,6]});function BH(e){const t=k.useRef(null),r=Me(void 0,"popover"),i=Me(void 0,"tooltip"),n=k.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(Sb(t.current,r))return wb.POPPER_OFFSET;if(Sb(t.current,i))return t$.TOOLTIP_OFFSET}return[0,0]}}}),[e,r,i]);return[t,[n]]}function FH(e,t){const{ref:r}=e,{ref:i}=t;e.ref=r.__wrapped||(r.__wrapped=n=>r(sh(n))),t.ref=i.__wrapped||(i.__wrapped=n=>i(sh(n)))}const n$=k.forwardRef(({children:e,transition:t=jo,popperConfig:r={},rootClose:i=!1,placement:n="top",show:a=!1,...l},d)=>{const f=k.useRef({}),[m,p]=k.useState(null),[g,y]=BH(l.offset),S=Xh(d,g),w=t===!0?jo:t||void 0,j=No(x=>{p(x),r==null||r.onFirstUpdate==null||r.onFirstUpdate(x)});return hz(()=>{m&&l.target&&(f.current.scheduleUpdate==null||f.current.scheduleUpdate())},[m,l.target]),k.useEffect(()=>{a||p(null)},[a]),b.jsx(Yz,{...l,ref:S,popperConfig:{...r,modifiers:y.concat(r.modifiers||[]),onFirstUpdate:j},transition:w,rootClose:i,placement:n,show:a,children:(x,{arrowProps:$,popper:I,show:N})=>{var z;FH(x,$);const T=I==null?void 0:I.placement,E=Object.assign(f.current,{state:I==null?void 0:I.state,scheduleUpdate:I==null?void 0:I.update,placement:T,outOfBoundaries:(I==null||(z=I.state)==null||(z=z.modifiersData.hide)==null?void 0:z.isReferenceHidden)||!1,strategy:r.strategy}),C=!!m;return typeof e=="function"?e({...x,placement:T,show:N,...!t&&N&&{className:"show"},popper:E,arrowProps:$,hasDoneInitialMeasure:C}):k.cloneElement(e,{...x,placement:T,arrowProps:$,popper:E,hasDoneInitialMeasure:C,className:ke(e.props.className,!t&&N&&"show"),style:{...e.props.style,...x.style}})}})});n$.displayName="Overlay";function VH(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function bN(e,t,r){const[i]=t,n=i.currentTarget,a=i.relatedTarget||i.nativeEvent[r];(!a||a!==n)&&!id(n,a)&&e(...t)}rt.oneOf(["click","hover","focus"]);const nA=({trigger:e=["hover","focus"],overlay:t,children:r,popperConfig:i={},show:n,defaultShow:a=!1,onToggle:l,delay:d,placement:f,flip:m=f&&f.indexOf("auto")!==-1,...p})=>{const g=k.useRef(null),y=Xh(g,Ku(r)),S=Oq(),w=k.useRef(""),[j,x]=IT(n,a,l),$=VH(d),{onFocus:I,onBlur:N,onClick:z}=typeof r!="function"?k.Children.only(r).props:{},T=Ne=>{y(sh(Ne))},E=k.useCallback(()=>{if(S.clear(),w.current="show",!$.show){x(!0);return}S.set(()=>{w.current==="show"&&x(!0)},$.show)},[$.show,x,S]),C=k.useCallback(()=>{if(S.clear(),w.current="hide",!$.hide){x(!1);return}S.set(()=>{w.current==="hide"&&x(!1)},$.hide)},[$.hide,x,S]),ae=k.useCallback((...Ne)=>{E(),I==null||I(...Ne)},[E,I]),ue=k.useCallback((...Ne)=>{C(),N==null||N(...Ne)},[C,N]),fe=k.useCallback((...Ne)=>{x(!j),z==null||z(...Ne)},[z,x,j]),we=k.useCallback((...Ne)=>{bN(E,Ne,"fromElement")},[E]),Je=k.useCallback((...Ne)=>{bN(C,Ne,"toElement")},[C]),De=e==null?[]:[].concat(e),_e={ref:T};return De.indexOf("click")!==-1&&(_e.onClick=fe),De.indexOf("focus")!==-1&&(_e.onFocus=ae,_e.onBlur=ue),De.indexOf("hover")!==-1&&(_e.onMouseOver=we,_e.onMouseOut=Je),b.jsxs(b.Fragment,{children:[typeof r=="function"?r(_e):k.cloneElement(r,_e),b.jsx(n$,{...p,show:j,onHide:C,flip:m,placement:f,popperConfig:i,target:g.current,children:t})]})},r$=k.forwardRef(({bsPrefix:e,className:t,as:r="div",...i},n)=>{const a=Me(e,"row"),l=j_(),d=I_(),f=`${a}-cols`,m=[];return l.forEach(p=>{const g=i[p];delete i[p];let y;g!=null&&typeof g=="object"?{cols:y}=g:y=g;const S=p!==d?`-${p}`:"";y!=null&&m.push(`${f}${S}-${y}`)}),b.jsx(r,{ref:n,...i,className:ke(t,a,...m)})});r$.displayName="Row";function qH(e,t=TT,r=zT){const i=[];return Object.entries(e).forEach(([n,a])=>{a!=null&&(typeof a=="object"?t.forEach(l=>{const d=a[l];if(d!=null){const f=l!==r?`-${l}`:"";i.push(`${n}${f}-${d}`)}}):i.push(`${n}-${a}`))}),i}const rA=k.forwardRef(({as:e="div",bsPrefix:t,className:r,direction:i,gap:n,...a},l)=>{t=Me(t,i==="horizontal"?"hstack":"vstack");const d=j_(),f=I_();return b.jsx(e,{...a,ref:l,className:ke(r,t,...qH({gap:n},d,f))})});rA.displayName="Stack";const Yi=k.forwardRef(({bsPrefix:e,className:t,striped:r,bordered:i,borderless:n,hover:a,size:l,variant:d,responsive:f,...m},p)=>{const g=Me(e,"table"),y=ke(t,g,d&&`${g}-${d}`,l&&`${g}-${l}`,r&&`${g}-${typeof r=="string"?`striped-${r}`:"striped"}`,i&&`${g}-bordered`,n&&`${g}-borderless`,a&&`${g}-hover`),S=b.jsx("table",{...m,className:y,ref:p});if(f){let w=`${g}-responsive`;return typeof f=="string"&&(w=`${w}-${f}`),b.jsx("div",{className:w,children:S})}return S});Yi.displayName="Table";const GH=fn(()=>{const e=kn(),t=Uh(),r=()=>{t("/"),e.logout()};return b.jsx(Bl,{style:{borderBottom:"1px solid #C7C8C9"},expand:"lg",className:"mb-4",children:b.jsxs(Nd,{fluid:!0,children:[b.jsx(Bl.Brand,{children:b.jsx($r,{to:"/",style:{color:"inherit",textDecoration:"none"},children:"Dashboard"})}),b.jsx(Bl.Toggle,{"aria-controls":"basic-navbar-nav"}),b.jsxs(Bl.Collapse,{id:"basic-navbar-nav",children:[b.jsx(jc,{className:"me-auto",children:b.jsxs(W_,{children:["Connected to:"," ",b.jsx("a",{href:db,target:"_blank",rel:"noreferrer",children:db})]})}),e.loggedIn?b.jsx(jc,{children:b.jsx(Bl.Text,{className:"me-2",children:b.jsx(Sn,{variant:"link nav-link",onClick:r,children:"Log out"})})}):b.jsxs(jc,{children:[b.jsx(jc.Link,{as:$r,to:"/login",children:"Log in"}),b.jsx(Bl.Text,{children:"or"}),b.jsx(jc.Link,{as:$r,to:"/register",children:"Register"})]})]})]})})}),_N=[{path:"/casinos",title:"Casinos"}];function HH(e,t){return e.sort((r,i)=>i.length-r.length).find(r=>t.startsWith(r))}const KH=fn(()=>{const e=La();if(!kn().loggedIn)return b.jsx("div",{children:"You must be logged in"});const r=HH(_N.map(i=>i.path),e.pathname);return b.jsxs("div",{children:[b.jsx("ul",{className:"nav nav-tabs mb-4 ",children:_N.map(i=>b.jsx("li",{className:"nav-item",children:b.jsx($r,{to:i.path,className:`nav-link ${r===i.path?"active":""}`,children:i.title})},i.path))}),b.jsx(sI,{})]})});var JH=function(t){return YH(t)&&!XH(t)};function YH(e){return!!e&&typeof e=="object"}function XH(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||e7(e)}var QH=typeof Symbol=="function"&&Symbol.for,WH=QH?Symbol.for("react.element"):60103;function e7(e){return e.$$typeof===WH}function t7(e){return Array.isArray(e)?[]:{}}function hh(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ad(t7(e),e,t):e}function n7(e,t,r){return e.concat(t).map(function(i){return hh(i,r)})}function r7(e,t,r){var i={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(n){i[n]=hh(e[n],r)}),Object.keys(t).forEach(function(n){!r.isMergeableObject(t[n])||!e[n]?i[n]=hh(t[n],r):i[n]=ad(e[n],t[n],r)}),i}function ad(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||n7,r.isMergeableObject=r.isMergeableObject||JH;var i=Array.isArray(t),n=Array.isArray(e),a=i===n;return a?i?r.arrayMerge(e,t,r):r7(e,t,r):hh(t,r)}ad.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,n){return ad(i,n,r)},{})};var xb=ad,iA=typeof global=="object"&&global&&global.Object===Object&&global,i7=typeof self=="object"&&self&&self.Object===Object&&self,Xi=iA||i7||Function("return this")(),To=Xi.Symbol,aA=Object.prototype,a7=aA.hasOwnProperty,o7=aA.toString,Ic=To?To.toStringTag:void 0;function u7(e){var t=a7.call(e,Ic),r=e[Ic];try{e[Ic]=void 0;var i=!0}catch{}var n=o7.call(e);return i&&(t?e[Ic]=r:delete e[Ic]),n}var l7=Object.prototype,s7=l7.toString;function c7(e){return s7.call(e)}var d7="[object Null]",f7="[object Undefined]",$N=To?To.toStringTag:void 0;function Ju(e){return e==null?e===void 0?f7:d7:$N&&$N in Object(e)?u7(e):c7(e)}function oA(e,t){return function(r){return e(t(r))}}var i$=oA(Object.getPrototypeOf,Object);function Yu(e){return e!=null&&typeof e=="object"}var m7="[object Object]",h7=Function.prototype,v7=Object.prototype,uA=h7.toString,p7=v7.hasOwnProperty,g7=uA.call(Object);function SN(e){if(!Yu(e)||Ju(e)!=m7)return!1;var t=i$(e);if(t===null)return!0;var r=p7.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&uA.call(r)==g7}function y7(){this.__data__=[],this.size=0}function lA(e,t){return e===t||e!==e&&t!==t}function av(e,t){for(var r=e.length;r--;)if(lA(e[r][0],t))return r;return-1}var b7=Array.prototype,_7=b7.splice;function $7(e){var t=this.__data__,r=av(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():_7.call(t,r,1),--this.size,!0}function S7(e){var t=this.__data__,r=av(t,e);return r<0?void 0:t[r][1]}function k7(e){return av(this.__data__,e)>-1}function w7(e,t){var r=this.__data__,i=av(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function Za(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Za.prototype.clear=y7;Za.prototype.delete=$7;Za.prototype.get=S7;Za.prototype.has=k7;Za.prototype.set=w7;function x7(){this.__data__=new Za,this.size=0}function O7(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function E7(e){return this.__data__.get(e)}function N7(e){return this.__data__.has(e)}function zd(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var j7="[object AsyncFunction]",I7="[object Function]",T7="[object GeneratorFunction]",z7="[object Proxy]";function sA(e){if(!zd(e))return!1;var t=Ju(e);return t==I7||t==T7||t==j7||t==z7}var Ay=Xi["__core-js_shared__"],kN=(function(){var e=/[^.]+$/.exec(Ay&&Ay.keys&&Ay.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function A7(e){return!!kN&&kN in e}var D7=Function.prototype,U7=D7.toString;function Xu(e){if(e!=null){try{return U7.call(e)}catch{}try{return e+""}catch{}}return""}var C7=/[\\^$.*+?()[\]{}|]/g,R7=/^\[object .+?Constructor\]$/,M7=Function.prototype,L7=Object.prototype,P7=M7.toString,Z7=L7.hasOwnProperty,B7=RegExp("^"+P7.call(Z7).replace(C7,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function F7(e){if(!zd(e)||A7(e))return!1;var t=sA(e)?B7:R7;return t.test(Xu(e))}function V7(e,t){return e==null?void 0:e[t]}function Qu(e,t){var r=V7(e,t);return F7(r)?r:void 0}var od=Qu(Xi,"Map"),ud=Qu(Object,"create");function q7(){this.__data__=ud?ud(null):{},this.size=0}function G7(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var H7="__lodash_hash_undefined__",K7=Object.prototype,J7=K7.hasOwnProperty;function Y7(e){var t=this.__data__;if(ud){var r=t[e];return r===H7?void 0:r}return J7.call(t,e)?t[e]:void 0}var X7=Object.prototype,Q7=X7.hasOwnProperty;function W7(e){var t=this.__data__;return ud?t[e]!==void 0:Q7.call(t,e)}var eK="__lodash_hash_undefined__";function tK(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ud&&t===void 0?eK:t,this}function Uu(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Uu.prototype.clear=q7;Uu.prototype.delete=G7;Uu.prototype.get=Y7;Uu.prototype.has=W7;Uu.prototype.set=tK;function nK(){this.size=0,this.__data__={hash:new Uu,map:new(od||Za),string:new Uu}}function rK(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ov(e,t){var r=e.__data__;return rK(t)?r[typeof t=="string"?"string":"hash"]:r.map}function iK(e){var t=ov(this,e).delete(e);return this.size-=t?1:0,t}function aK(e){return ov(this,e).get(e)}function oK(e){return ov(this,e).has(e)}function uK(e,t){var r=ov(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function Lo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Lo.prototype.clear=nK;Lo.prototype.delete=iK;Lo.prototype.get=aK;Lo.prototype.has=oK;Lo.prototype.set=uK;var lK=200;function sK(e,t){var r=this.__data__;if(r instanceof Za){var i=r.__data__;if(!od||i.length<lK-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Lo(i)}return r.set(e,t),this.size=r.size,this}function Ts(e){var t=this.__data__=new Za(e);this.size=t.size}Ts.prototype.clear=x7;Ts.prototype.delete=O7;Ts.prototype.get=E7;Ts.prototype.has=N7;Ts.prototype.set=sK;function cK(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}var wN=(function(){try{var e=Qu(Object,"defineProperty");return e({},"",{}),e}catch{}})();function cA(e,t,r){t=="__proto__"&&wN?wN(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var dK=Object.prototype,fK=dK.hasOwnProperty;function dA(e,t,r){var i=e[t];(!(fK.call(e,t)&&lA(i,r))||r===void 0&&!(t in e))&&cA(e,t,r)}function uv(e,t,r,i){var n=!r;r||(r={});for(var a=-1,l=t.length;++a<l;){var d=t[a],f=void 0;f===void 0&&(f=e[d]),n?cA(r,d,f):dA(r,d,f)}return r}function mK(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var hK="[object Arguments]";function xN(e){return Yu(e)&&Ju(e)==hK}var fA=Object.prototype,vK=fA.hasOwnProperty,pK=fA.propertyIsEnumerable,gK=xN((function(){return arguments})())?xN:function(e){return Yu(e)&&vK.call(e,"callee")&&!pK.call(e,"callee")},Ad=Array.isArray;function yK(){return!1}var mA=typeof br=="object"&&br&&!br.nodeType&&br,ON=mA&&typeof _r=="object"&&_r&&!_r.nodeType&&_r,bK=ON&&ON.exports===mA,EN=bK?Xi.Buffer:void 0,_K=EN?EN.isBuffer:void 0,hA=_K||yK,$K=9007199254740991,SK=/^(?:0|[1-9]\d*)$/;function kK(e,t){var r=typeof e;return t=t??$K,!!t&&(r=="number"||r!="symbol"&&SK.test(e))&&e>-1&&e%1==0&&e<t}var wK=9007199254740991;function vA(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=wK}var xK="[object Arguments]",OK="[object Array]",EK="[object Boolean]",NK="[object Date]",jK="[object Error]",IK="[object Function]",TK="[object Map]",zK="[object Number]",AK="[object Object]",DK="[object RegExp]",UK="[object Set]",CK="[object String]",RK="[object WeakMap]",MK="[object ArrayBuffer]",LK="[object DataView]",PK="[object Float32Array]",ZK="[object Float64Array]",BK="[object Int8Array]",FK="[object Int16Array]",VK="[object Int32Array]",qK="[object Uint8Array]",GK="[object Uint8ClampedArray]",HK="[object Uint16Array]",KK="[object Uint32Array]",qt={};qt[PK]=qt[ZK]=qt[BK]=qt[FK]=qt[VK]=qt[qK]=qt[GK]=qt[HK]=qt[KK]=!0;qt[xK]=qt[OK]=qt[MK]=qt[EK]=qt[LK]=qt[NK]=qt[jK]=qt[IK]=qt[TK]=qt[zK]=qt[AK]=qt[DK]=qt[UK]=qt[CK]=qt[RK]=!1;function JK(e){return Yu(e)&&vA(e.length)&&!!qt[Ju(e)]}function a$(e){return function(t){return e(t)}}var pA=typeof br=="object"&&br&&!br.nodeType&&br,qc=pA&&typeof _r=="object"&&_r&&!_r.nodeType&&_r,YK=qc&&qc.exports===pA,Dy=YK&&iA.process,ms=(function(){try{var e=qc&&qc.require&&qc.require("util").types;return e||Dy&&Dy.binding&&Dy.binding("util")}catch{}})(),NN=ms&&ms.isTypedArray,XK=NN?a$(NN):JK,QK=Object.prototype,WK=QK.hasOwnProperty;function gA(e,t){var r=Ad(e),i=!r&&gK(e),n=!r&&!i&&hA(e),a=!r&&!i&&!n&&XK(e),l=r||i||n||a,d=l?mK(e.length,String):[],f=d.length;for(var m in e)(t||WK.call(e,m))&&!(l&&(m=="length"||n&&(m=="offset"||m=="parent")||a&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||kK(m,f)))&&d.push(m);return d}var eJ=Object.prototype;function o$(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||eJ;return e===r}var tJ=oA(Object.keys,Object),nJ=Object.prototype,rJ=nJ.hasOwnProperty;function iJ(e){if(!o$(e))return tJ(e);var t=[];for(var r in Object(e))rJ.call(e,r)&&r!="constructor"&&t.push(r);return t}function yA(e){return e!=null&&vA(e.length)&&!sA(e)}function u$(e){return yA(e)?gA(e):iJ(e)}function aJ(e,t){return e&&uv(t,u$(t),e)}function oJ(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var uJ=Object.prototype,lJ=uJ.hasOwnProperty;function sJ(e){if(!zd(e))return oJ(e);var t=o$(e),r=[];for(var i in e)i=="constructor"&&(t||!lJ.call(e,i))||r.push(i);return r}function l$(e){return yA(e)?gA(e,!0):sJ(e)}function cJ(e,t){return e&&uv(t,l$(t),e)}var bA=typeof br=="object"&&br&&!br.nodeType&&br,jN=bA&&typeof _r=="object"&&_r&&!_r.nodeType&&_r,dJ=jN&&jN.exports===bA,IN=dJ?Xi.Buffer:void 0,TN=IN?IN.allocUnsafe:void 0;function fJ(e,t){if(t)return e.slice();var r=e.length,i=TN?TN(r):new e.constructor(r);return e.copy(i),i}function _A(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}function mJ(e,t){for(var r=-1,i=e==null?0:e.length,n=0,a=[];++r<i;){var l=e[r];t(l,r,e)&&(a[n++]=l)}return a}function $A(){return[]}var hJ=Object.prototype,vJ=hJ.propertyIsEnumerable,zN=Object.getOwnPropertySymbols,s$=zN?function(e){return e==null?[]:(e=Object(e),mJ(zN(e),function(t){return vJ.call(e,t)}))}:$A;function pJ(e,t){return uv(e,s$(e),t)}function SA(e,t){for(var r=-1,i=t.length,n=e.length;++r<i;)e[n+r]=t[r];return e}var gJ=Object.getOwnPropertySymbols,kA=gJ?function(e){for(var t=[];e;)SA(t,s$(e)),e=i$(e);return t}:$A;function yJ(e,t){return uv(e,kA(e),t)}function wA(e,t,r){var i=t(e);return Ad(e)?i:SA(i,r(e))}function bJ(e){return wA(e,u$,s$)}function _J(e){return wA(e,l$,kA)}var Ob=Qu(Xi,"DataView"),Eb=Qu(Xi,"Promise"),Nb=Qu(Xi,"Set"),jb=Qu(Xi,"WeakMap"),AN="[object Map]",$J="[object Object]",DN="[object Promise]",UN="[object Set]",CN="[object WeakMap]",RN="[object DataView]",SJ=Xu(Ob),kJ=Xu(od),wJ=Xu(Eb),xJ=Xu(Nb),OJ=Xu(jb),$a=Ju;(Ob&&$a(new Ob(new ArrayBuffer(1)))!=RN||od&&$a(new od)!=AN||Eb&&$a(Eb.resolve())!=DN||Nb&&$a(new Nb)!=UN||jb&&$a(new jb)!=CN)&&($a=function(e){var t=Ju(e),r=t==$J?e.constructor:void 0,i=r?Xu(r):"";if(i)switch(i){case SJ:return RN;case kJ:return AN;case wJ:return DN;case xJ:return UN;case OJ:return CN}return t});var EJ=Object.prototype,NJ=EJ.hasOwnProperty;function jJ(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&NJ.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var MN=Xi.Uint8Array;function c$(e){var t=new e.constructor(e.byteLength);return new MN(t).set(new MN(e)),t}function IJ(e,t){var r=t?c$(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var TJ=/\w*$/;function zJ(e){var t=new e.constructor(e.source,TJ.exec(e));return t.lastIndex=e.lastIndex,t}var LN=To?To.prototype:void 0,PN=LN?LN.valueOf:void 0;function AJ(e){return PN?Object(PN.call(e)):{}}function DJ(e,t){var r=t?c$(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var UJ="[object Boolean]",CJ="[object Date]",RJ="[object Map]",MJ="[object Number]",LJ="[object RegExp]",PJ="[object Set]",ZJ="[object String]",BJ="[object Symbol]",FJ="[object ArrayBuffer]",VJ="[object DataView]",qJ="[object Float32Array]",GJ="[object Float64Array]",HJ="[object Int8Array]",KJ="[object Int16Array]",JJ="[object Int32Array]",YJ="[object Uint8Array]",XJ="[object Uint8ClampedArray]",QJ="[object Uint16Array]",WJ="[object Uint32Array]";function eY(e,t,r){var i=e.constructor;switch(t){case FJ:return c$(e);case UJ:case CJ:return new i(+e);case VJ:return IJ(e,r);case qJ:case GJ:case HJ:case KJ:case JJ:case YJ:case XJ:case QJ:case WJ:return DJ(e,r);case RJ:return new i;case MJ:case ZJ:return new i(e);case LJ:return zJ(e);case PJ:return new i;case BJ:return AJ(e)}}var ZN=Object.create,tY=(function(){function e(){}return function(t){if(!zd(t))return{};if(ZN)return ZN(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function nY(e){return typeof e.constructor=="function"&&!o$(e)?tY(i$(e)):{}}var rY="[object Map]";function iY(e){return Yu(e)&&$a(e)==rY}var BN=ms&&ms.isMap,aY=BN?a$(BN):iY,oY="[object Set]";function uY(e){return Yu(e)&&$a(e)==oY}var FN=ms&&ms.isSet,lY=FN?a$(FN):uY,sY=1,cY=2,dY=4,xA="[object Arguments]",fY="[object Array]",mY="[object Boolean]",hY="[object Date]",vY="[object Error]",OA="[object Function]",pY="[object GeneratorFunction]",gY="[object Map]",yY="[object Number]",EA="[object Object]",bY="[object RegExp]",_Y="[object Set]",$Y="[object String]",SY="[object Symbol]",kY="[object WeakMap]",wY="[object ArrayBuffer]",xY="[object DataView]",OY="[object Float32Array]",EY="[object Float64Array]",NY="[object Int8Array]",jY="[object Int16Array]",IY="[object Int32Array]",TY="[object Uint8Array]",zY="[object Uint8ClampedArray]",AY="[object Uint16Array]",DY="[object Uint32Array]",Lt={};Lt[xA]=Lt[fY]=Lt[wY]=Lt[xY]=Lt[mY]=Lt[hY]=Lt[OY]=Lt[EY]=Lt[NY]=Lt[jY]=Lt[IY]=Lt[gY]=Lt[yY]=Lt[EA]=Lt[bY]=Lt[_Y]=Lt[$Y]=Lt[SY]=Lt[TY]=Lt[zY]=Lt[AY]=Lt[DY]=!0;Lt[vY]=Lt[OA]=Lt[kY]=!1;function Gc(e,t,r,i,n,a){var l,d=t&sY,f=t&cY,m=t&dY;if(l!==void 0)return l;if(!zd(e))return e;var p=Ad(e);if(p){if(l=jJ(e),!d)return _A(e,l)}else{var g=$a(e),y=g==OA||g==pY;if(hA(e))return fJ(e,d);if(g==EA||g==xA||y&&!n){if(l=f||y?{}:nY(e),!d)return f?yJ(e,cJ(l,e)):pJ(e,aJ(l,e))}else{if(!Lt[g])return n?e:{};l=eY(e,g,d)}}a||(a=new Ts);var S=a.get(e);if(S)return S;a.set(e,l),lY(e)?e.forEach(function(x){l.add(Gc(x,t,r,x,e,a))}):aY(e)&&e.forEach(function(x,$){l.set($,Gc(x,t,r,$,e,a))});var w=m?f?_J:bJ:f?l$:u$,j=p?void 0:w(e);return cK(j||e,function(x,$){j&&($=x,x=e[$]),dA(l,$,Gc(x,t,r,$,e,a))}),l}var UY=1,CY=4;function Nm(e){return Gc(e,UY|CY)}var Uy,VN;function RY(){if(VN)return Uy;VN=1;var e=Array.isArray,t=Object.keys,r=Object.prototype.hasOwnProperty,i=typeof Element<"u";function n(a,l){if(a===l)return!0;if(a&&l&&typeof a=="object"&&typeof l=="object"){var d=e(a),f=e(l),m,p,g;if(d&&f){if(p=a.length,p!=l.length)return!1;for(m=p;m--!==0;)if(!n(a[m],l[m]))return!1;return!0}if(d!=f)return!1;var y=a instanceof Date,S=l instanceof Date;if(y!=S)return!1;if(y&&S)return a.getTime()==l.getTime();var w=a instanceof RegExp,j=l instanceof RegExp;if(w!=j)return!1;if(w&&j)return a.toString()==l.toString();var x=t(a);if(p=x.length,p!==t(l).length)return!1;for(m=p;m--!==0;)if(!r.call(l,x[m]))return!1;if(i&&a instanceof Element&&l instanceof Element)return a===l;for(m=p;m--!==0;)if(g=x[m],!(g==="_owner"&&a.$$typeof)&&!n(a[g],l[g]))return!1;return!0}return a!==a&&l!==l}return Uy=function(l,d){try{return n(l,d)}catch(f){if(f.message&&f.message.match(/stack|recursion/i)||f.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",f.name,f.message),!1;throw f}},Uy}var MY=RY();const fu=ws(MY);var LY=4;function qN(e){return Gc(e,LY)}function NA(e,t){for(var r=-1,i=e==null?0:e.length,n=Array(i);++r<i;)n[r]=t(e[r],r,e);return n}var PY="[object Symbol]";function d$(e){return typeof e=="symbol"||Yu(e)&&Ju(e)==PY}var ZY="Expected a function";function f$(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ZY);var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],a=r.cache;if(a.has(n))return a.get(n);var l=e.apply(this,i);return r.cache=a.set(n,l)||a,l};return r.cache=new(f$.Cache||Lo),r}f$.Cache=Lo;var BY=500;function FY(e){var t=f$(e,function(i){return r.size===BY&&r.clear(),i}),r=t.cache;return t}var VY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qY=/\\(\\)?/g,GY=FY(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(VY,function(r,i,n,a){t.push(n?a.replace(qY,"$1"):i||r)}),t});function HY(e){if(typeof e=="string"||d$(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var GN=To?To.prototype:void 0,HN=GN?GN.toString:void 0;function jA(e){if(typeof e=="string")return e;if(Ad(e))return NA(e,jA)+"";if(d$(e))return HN?HN.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function KY(e){return e==null?"":jA(e)}function IA(e){return Ad(e)?NA(e,HY):d$(e)?[e]:_A(GY(KY(e)))}var Cy={exports:{}},Et={};/** @license React v16.13.1
|
|
148
|
+
* react-is.production.min.js
|
|
149
|
+
*
|
|
150
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
151
|
+
*
|
|
152
|
+
* This source code is licensed under the MIT license found in the
|
|
153
|
+
* LICENSE file in the root directory of this source tree.
|
|
154
|
+
*/var KN;function JY(){if(KN)return Et;KN=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,j=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,$=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function N(T){if(typeof T=="object"&&T!==null){var E=T.$$typeof;switch(E){case t:switch(T=T.type,T){case f:case m:case i:case a:case n:case g:return T;default:switch(T=T&&T.$$typeof,T){case d:case p:case w:case S:case l:return T;default:return E}}case r:return E}}}function z(T){return N(T)===m}return Et.AsyncMode=f,Et.ConcurrentMode=m,Et.ContextConsumer=d,Et.ContextProvider=l,Et.Element=t,Et.ForwardRef=p,Et.Fragment=i,Et.Lazy=w,Et.Memo=S,Et.Portal=r,Et.Profiler=a,Et.StrictMode=n,Et.Suspense=g,Et.isAsyncMode=function(T){return z(T)||N(T)===f},Et.isConcurrentMode=z,Et.isContextConsumer=function(T){return N(T)===d},Et.isContextProvider=function(T){return N(T)===l},Et.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},Et.isForwardRef=function(T){return N(T)===p},Et.isFragment=function(T){return N(T)===i},Et.isLazy=function(T){return N(T)===w},Et.isMemo=function(T){return N(T)===S},Et.isPortal=function(T){return N(T)===r},Et.isProfiler=function(T){return N(T)===a},Et.isStrictMode=function(T){return N(T)===n},Et.isSuspense=function(T){return N(T)===g},Et.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===i||T===m||T===a||T===n||T===g||T===y||typeof T=="object"&&T!==null&&(T.$$typeof===w||T.$$typeof===S||T.$$typeof===l||T.$$typeof===d||T.$$typeof===p||T.$$typeof===x||T.$$typeof===$||T.$$typeof===I||T.$$typeof===j)},Et.typeOf=N,Et}var JN;function YY(){return JN||(JN=1,Cy.exports=JY()),Cy.exports}var Ry,YN;function XY(){if(YN)return Ry;YN=1;var e=YY(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=i,a[e.Memo]=n;function l(w){return e.isMemo(w)?n:a[w.$$typeof]||t}var d=Object.defineProperty,f=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,y=Object.prototype;function S(w,j,x){if(typeof j!="string"){if(y){var $=g(j);$&&$!==y&&S(w,$,x)}var I=f(j);m&&(I=I.concat(m(j)));for(var N=l(w),z=l(j),T=0;T<I.length;++T){var E=I[T];if(!r[E]&&!(x&&x[E])&&!(z&&z[E])&&!(N&&N[E])){var C=p(j,E);try{d(w,E,C)}catch{}}}}return w}return Ry=S,Ry}XY();function _n(){return _n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},_n.apply(this,arguments)}function TA(e,t){if(e==null)return{};var r={},i=Object.keys(e),n,a;for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}var lv=k.createContext(void 0);lv.displayName="FormikContext";lv.Provider;lv.Consumer;function QY(){var e=k.useContext(lv);return e}var si=function(t){return typeof t=="function"},sv=function(t){return t!==null&&typeof t=="object"},WY=function(t){return String(Math.floor(Number(t)))===t},My=function(t){return Object.prototype.toString.call(t)==="[object String]"},Ly=function(t){return sv(t)&&si(t.then)};function mr(e,t,r,i){i===void 0&&(i=0);for(var n=IA(t);e&&i<n.length;)e=e[n[i++]];return i!==n.length&&!e||e===void 0?r:e}function Ou(e,t,r){for(var i=qN(e),n=i,a=0,l=IA(t);a<l.length-1;a++){var d=l[a],f=mr(e,l.slice(0,a+1));if(f&&(sv(f)||Array.isArray(f)))n=n[d]=qN(f);else{var m=l[a+1];n=n[d]=WY(m)&&Number(m)>=0?[]:{}}}return(a===0?e:n)[l[a]]===r?e:(r===void 0?delete n[l[a]]:n[l[a]]=r,a===0&&r===void 0&&delete i[l[a]],i)}function zA(e,t,r,i){r===void 0&&(r=new WeakMap),i===void 0&&(i={});for(var n=0,a=Object.keys(e);n<a.length;n++){var l=a[n],d=e[l];sv(d)?r.get(d)||(r.set(d,!0),i[l]=Array.isArray(d)?[]:{},zA(d,t,r,i[l])):i[l]=t}return i}function eX(e,t){switch(t.type){case"SET_VALUES":return _n({},e,{values:t.payload});case"SET_TOUCHED":return _n({},e,{touched:t.payload});case"SET_ERRORS":return fu(e.errors,t.payload)?e:_n({},e,{errors:t.payload});case"SET_STATUS":return _n({},e,{status:t.payload});case"SET_ISSUBMITTING":return _n({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return _n({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return _n({},e,{values:Ou(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return _n({},e,{touched:Ou(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return _n({},e,{errors:Ou(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return _n({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return _n({},e,{touched:zA(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return _n({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return _n({},e,{isSubmitting:!1});default:return e}}var cu={},jm={};function cv(e){var t=e.validateOnChange,r=t===void 0?!0:t,i=e.validateOnBlur,n=i===void 0?!0:i,a=e.validateOnMount,l=a===void 0?!1:a,d=e.isInitialValid,f=e.enableReinitialize,m=f===void 0?!1:f,p=e.onSubmit,g=TA(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),y=_n({validateOnChange:r,validateOnBlur:n,validateOnMount:l,onSubmit:p},g),S=k.useRef(y.initialValues),w=k.useRef(y.initialErrors||cu),j=k.useRef(y.initialTouched||jm),x=k.useRef(y.initialStatus),$=k.useRef(!1),I=k.useRef({});k.useEffect(function(){return $.current=!0,function(){$.current=!1}},[]);var N=k.useState(0),z=N[1],T=k.useRef({values:Nm(y.initialValues),errors:Nm(y.initialErrors)||cu,touched:Nm(y.initialTouched)||jm,status:Nm(y.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),E=T.current,C=k.useCallback(function(q){var pe=T.current;T.current=eX(pe,q),pe!==T.current&&z(function(he){return he+1})},[]),ae=k.useCallback(function(q,pe){return new Promise(function(he,Oe){var me=y.validate(q,pe);me==null?he(cu):Ly(me)?me.then(function(Pe){he(Pe||cu)},function(Pe){Oe(Pe)}):he(me)})},[y.validate]),ue=k.useCallback(function(q,pe){var he=y.validationSchema,Oe=si(he)?he(pe):he,me=pe&&Oe.validateAt?Oe.validateAt(pe,q):nX(q,Oe);return new Promise(function(Pe,Nt){me.then(function(){Pe(cu)},function(ir){ir.name==="ValidationError"?Pe(tX(ir)):Nt(ir)})})},[y.validationSchema]),fe=k.useCallback(function(q,pe){return new Promise(function(he){return he(I.current[q].validate(pe))})},[]),we=k.useCallback(function(q){var pe=Object.keys(I.current).filter(function(Oe){return si(I.current[Oe].validate)}),he=pe.length>0?pe.map(function(Oe){return fe(Oe,mr(q,Oe))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(he).then(function(Oe){return Oe.reduce(function(me,Pe,Nt){return Pe==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Pe&&(me=Ou(me,pe[Nt],Pe)),me},{})})},[fe]),Je=k.useCallback(function(q){return Promise.all([we(q),y.validationSchema?ue(q):{},y.validate?ae(q):{}]).then(function(pe){var he=pe[0],Oe=pe[1],me=pe[2],Pe=xb.all([he,Oe,me],{arrayMerge:rX});return Pe})},[y.validate,y.validationSchema,we,ae,ue]),De=Zr(function(q){return q===void 0&&(q=E.values),C({type:"SET_ISVALIDATING",payload:!0}),Je(q).then(function(pe){return $.current&&(C({type:"SET_ISVALIDATING",payload:!1}),C({type:"SET_ERRORS",payload:pe})),pe})});k.useEffect(function(){l&&$.current===!0&&fu(S.current,y.initialValues)&&De(S.current)},[l,De]);var _e=k.useCallback(function(q){var pe=q&&q.values?q.values:S.current,he=q&&q.errors?q.errors:w.current?w.current:y.initialErrors||{},Oe=q&&q.touched?q.touched:j.current?j.current:y.initialTouched||{},me=q&&q.status?q.status:x.current?x.current:y.initialStatus;S.current=pe,w.current=he,j.current=Oe,x.current=me;var Pe=function(){C({type:"RESET_FORM",payload:{isSubmitting:!!q&&!!q.isSubmitting,errors:he,touched:Oe,status:me,values:pe,isValidating:!!q&&!!q.isValidating,submitCount:q&&q.submitCount&&typeof q.submitCount=="number"?q.submitCount:0}})};if(y.onReset){var Nt=y.onReset(E.values,zn);Ly(Nt)?Nt.then(Pe):Pe()}else Pe()},[y.initialErrors,y.initialStatus,y.initialTouched,y.onReset]);k.useEffect(function(){$.current===!0&&!fu(S.current,y.initialValues)&&m&&(S.current=y.initialValues,_e(),l&&De(S.current))},[m,y.initialValues,_e,l,De]),k.useEffect(function(){m&&$.current===!0&&!fu(w.current,y.initialErrors)&&(w.current=y.initialErrors||cu,C({type:"SET_ERRORS",payload:y.initialErrors||cu}))},[m,y.initialErrors]),k.useEffect(function(){m&&$.current===!0&&!fu(j.current,y.initialTouched)&&(j.current=y.initialTouched||jm,C({type:"SET_TOUCHED",payload:y.initialTouched||jm}))},[m,y.initialTouched]),k.useEffect(function(){m&&$.current===!0&&!fu(x.current,y.initialStatus)&&(x.current=y.initialStatus,C({type:"SET_STATUS",payload:y.initialStatus}))},[m,y.initialStatus,y.initialTouched]);var Ne=Zr(function(q){if(I.current[q]&&si(I.current[q].validate)){var pe=mr(E.values,q),he=I.current[q].validate(pe);return Ly(he)?(C({type:"SET_ISVALIDATING",payload:!0}),he.then(function(Oe){return Oe}).then(function(Oe){C({type:"SET_FIELD_ERROR",payload:{field:q,value:Oe}}),C({type:"SET_ISVALIDATING",payload:!1})})):(C({type:"SET_FIELD_ERROR",payload:{field:q,value:he}}),Promise.resolve(he))}else if(y.validationSchema)return C({type:"SET_ISVALIDATING",payload:!0}),ue(E.values,q).then(function(Oe){return Oe}).then(function(Oe){C({type:"SET_FIELD_ERROR",payload:{field:q,value:mr(Oe,q)}}),C({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),M=k.useCallback(function(q,pe){var he=pe.validate;I.current[q]={validate:he}},[]),ee=k.useCallback(function(q){delete I.current[q]},[]),ce=Zr(function(q,pe){C({type:"SET_TOUCHED",payload:q});var he=pe===void 0?n:pe;return he?De(E.values):Promise.resolve()}),je=k.useCallback(function(q){C({type:"SET_ERRORS",payload:q})},[]),Ue=Zr(function(q,pe){var he=si(q)?q(E.values):q;C({type:"SET_VALUES",payload:he});var Oe=pe===void 0?r:pe;return Oe?De(he):Promise.resolve()}),D=k.useCallback(function(q,pe){C({type:"SET_FIELD_ERROR",payload:{field:q,value:pe}})},[]),H=Zr(function(q,pe,he){C({type:"SET_FIELD_VALUE",payload:{field:q,value:pe}});var Oe=he===void 0?r:he;return Oe?De(Ou(E.values,q,pe)):Promise.resolve()}),ne=k.useCallback(function(q,pe){var he=pe,Oe=q,me;if(!My(q)){q.persist&&q.persist();var Pe=q.target?q.target:q.currentTarget,Nt=Pe.type,ir=Pe.name,ji=Pe.id,Fo=Pe.value,ar=Pe.checked;Pe.outerHTML;var ti=Pe.options,pn=Pe.multiple;he=pe||ir||ji,Oe=/number|range/.test(Nt)?(me=parseFloat(Fo),isNaN(me)?"":me):/checkbox/.test(Nt)?aX(mr(E.values,he),ar,Fo):ti&&pn?iX(ti):Fo}he&&H(he,Oe)},[H,E.values]),oe=Zr(function(q){if(My(q))return function(pe){return ne(pe,q)};ne(q)}),ye=Zr(function(q,pe,he){pe===void 0&&(pe=!0),C({type:"SET_FIELD_TOUCHED",payload:{field:q,value:pe}});var Oe=he===void 0?n:he;return Oe?De(E.values):Promise.resolve()}),Ae=k.useCallback(function(q,pe){q.persist&&q.persist();var he=q.target,Oe=he.name,me=he.id;he.outerHTML;var Pe=pe||Oe||me;ye(Pe,!0)},[ye]),He=Zr(function(q){if(My(q))return function(pe){return Ae(pe,q)};Ae(q)}),_t=k.useCallback(function(q){si(q)?C({type:"SET_FORMIK_STATE",payload:q}):C({type:"SET_FORMIK_STATE",payload:function(){return q}})},[]),dt=k.useCallback(function(q){C({type:"SET_STATUS",payload:q})},[]),gt=k.useCallback(function(q){C({type:"SET_ISSUBMITTING",payload:q})},[]),Ht=Zr(function(){return C({type:"SUBMIT_ATTEMPT"}),De().then(function(q){var pe=q instanceof Error,he=!pe&&Object.keys(q).length===0;if(he){var Oe;try{if(Oe=Rt(),Oe===void 0)return}catch(me){throw me}return Promise.resolve(Oe).then(function(me){return $.current&&C({type:"SUBMIT_SUCCESS"}),me}).catch(function(me){if($.current)throw C({type:"SUBMIT_FAILURE"}),me})}else if($.current&&(C({type:"SUBMIT_FAILURE"}),pe))throw q})}),wn=Zr(function(q){q&&q.preventDefault&&si(q.preventDefault)&&q.preventDefault(),q&&q.stopPropagation&&si(q.stopPropagation)&&q.stopPropagation(),Ht().catch(function(pe){console.warn("Warning: An unhandled error was caught from submitForm()",pe)})}),zn={resetForm:_e,validateForm:De,validateField:Ne,setErrors:je,setFieldError:D,setFieldTouched:ye,setFieldValue:H,setStatus:dt,setSubmitting:gt,setTouched:ce,setValues:Ue,setFormikState:_t,submitForm:Ht},Rt=Zr(function(){return p(E.values,zn)}),yt=Zr(function(q){q&&q.preventDefault&&si(q.preventDefault)&&q.preventDefault(),q&&q.stopPropagation&&si(q.stopPropagation)&&q.stopPropagation(),_e()}),Cn=k.useCallback(function(q){return{value:mr(E.values,q),error:mr(E.errors,q),touched:!!mr(E.touched,q),initialValue:mr(S.current,q),initialTouched:!!mr(j.current,q),initialError:mr(w.current,q)}},[E.errors,E.touched,E.values]),Rn=k.useCallback(function(q){return{setValue:function(he,Oe){return H(q,he,Oe)},setTouched:function(he,Oe){return ye(q,he,Oe)},setError:function(he){return D(q,he)}}},[H,ye,D]),Ni=k.useCallback(function(q){var pe=sv(q),he=pe?q.name:q,Oe=mr(E.values,he),me={name:he,value:Oe,onChange:oe,onBlur:He};if(pe){var Pe=q.type,Nt=q.value,ir=q.as,ji=q.multiple;Pe==="checkbox"?Nt===void 0?me.checked=!!Oe:(me.checked=!!(Array.isArray(Oe)&&~Oe.indexOf(Nt)),me.value=Nt):Pe==="radio"?(me.checked=Oe===Nt,me.value=Nt):ir==="select"&&ji&&(me.value=me.value||[],me.multiple=!0)}return me},[He,oe,E.values]),rr=k.useMemo(function(){return!fu(S.current,E.values)},[S.current,E.values]),xn=k.useMemo(function(){return typeof d<"u"?rr?E.errors&&Object.keys(E.errors).length===0:d!==!1&&si(d)?d(y):d:E.errors&&Object.keys(E.errors).length===0},[d,rr,E.errors,y]),Gn=_n({},E,{initialValues:S.current,initialErrors:w.current,initialTouched:j.current,initialStatus:x.current,handleBlur:He,handleChange:oe,handleReset:yt,handleSubmit:wn,resetForm:_e,setErrors:je,setFormikState:_t,setFieldTouched:ye,setFieldValue:H,setFieldError:D,setStatus:dt,setSubmitting:gt,setTouched:ce,setValues:Ue,submitForm:Ht,validateForm:De,validateField:Ne,isValid:xn,dirty:rr,unregisterField:ee,registerField:M,getFieldProps:Ni,getFieldMeta:Cn,getFieldHelpers:Rn,validateOnBlur:n,validateOnChange:r,validateOnMount:l});return Gn}function tX(e){var t={};if(e.inner){if(e.inner.length===0)return Ou(t,e.path,e.message);for(var n=e.inner,r=Array.isArray(n),i=0,n=r?n:n[Symbol.iterator]();;){var a;if(r){if(i>=n.length)break;a=n[i++]}else{if(i=n.next(),i.done)break;a=i.value}var l=a;mr(t,l.path)||(t=Ou(t,l.path,l.message))}}return t}function nX(e,t,r,i){r===void 0&&(r=!1);var n=Ib(e);return t[r?"validateSync":"validate"](n,{abortEarly:!1,context:n})}function Ib(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=String(r);Array.isArray(e[i])===!0?t[i]=e[i].map(function(n){return Array.isArray(n)===!0||SN(n)?Ib(n):n!==""?n:void 0}):SN(e[i])?t[i]=Ib(e[i]):t[i]=e[i]!==""?e[i]:void 0}return t}function rX(e,t,r){var i=e.slice();return t.forEach(function(a,l){if(typeof i[l]>"u"){var d=r.clone!==!1,f=d&&r.isMergeableObject(a);i[l]=f?xb(Array.isArray(a)?[]:{},a,r):a}else r.isMergeableObject(a)?i[l]=xb(e[l],a,r):e.indexOf(a)===-1&&i.push(a)}),i}function iX(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function aX(e,t,r){if(typeof e=="boolean")return!!t;var i=[],n=!1,a=-1;if(Array.isArray(e))i=e,a=e.indexOf(r),n=a>=0;else if(!r||r=="true"||r=="false")return!!t;return t&&r&&!n?i.concat(r):n?i.slice(0,a).concat(i.slice(a+1)):i}var oX=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?k.useLayoutEffect:k.useEffect;function Zr(e){var t=k.useRef(e);return oX(function(){t.current=e}),k.useCallback(function(){for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];return t.current.apply(void 0,i)},[])}var uX=k.forwardRef(function(e,t){var r=e.action,i=TA(e,["action"]),n=r??"#",a=QY(),l=a.handleReset,d=a.handleSubmit;return k.createElement("form",_n({onSubmit:d,ref:t,onReset:l,action:n},i))});uX.displayName="Form";var lX=["color","size","title","className"];function Tb(){return Tb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Tb.apply(null,arguments)}function sX(e,t){if(e==null)return{};var r,i,n=cX(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cX(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}var zb=k.forwardRef(function(e,t){var r=e.color,i=r===void 0?"currentColor":r,n=e.size,a=n===void 0?"1em":n,l=e.title,d=l===void 0?null:l,f=e.className,m=f===void 0?"":f,p=sX(e,lX);return Tt.createElement("svg",Tb({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:a,height:a,fill:i,className:["bi","bi-box-arrow-up-right",m].filter(Boolean).join(" ")},p),d?Tt.createElement("title",null,d):null,Tt.createElement("path",{fillRule:"evenodd",d:"M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5"}),Tt.createElement("path",{fillRule:"evenodd",d:"M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z"}))});zb.propTypes={color:rt.string,size:rt.oneOfType([rt.string,rt.number]),title:rt.string,className:rt.string};var dX=["color","size","title","className"];function Ab(){return Ab=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ab.apply(null,arguments)}function fX(e,t){if(e==null)return{};var r,i,n=mX(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mX(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}var Db=k.forwardRef(function(e,t){var r=e.color,i=r===void 0?"currentColor":r,n=e.size,a=n===void 0?"1em":n,l=e.title,d=l===void 0?null:l,f=e.className,m=f===void 0?"":f,p=fX(e,dX);return Tt.createElement("svg",Ab({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:a,height:a,fill:i,className:["bi","bi-check-lg",m].filter(Boolean).join(" ")},p),d?Tt.createElement("title",null,d):null,Tt.createElement("path",{d:"M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425z"}))});Db.propTypes={color:rt.string,size:rt.oneOfType([rt.string,rt.number]),title:rt.string,className:rt.string};var hX=["color","size","title","className"];function Ub(){return Ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ub.apply(null,arguments)}function vX(e,t){if(e==null)return{};var r,i,n=pX(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pX(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}var AA=k.forwardRef(function(e,t){var r=e.color,i=r===void 0?"currentColor":r,n=e.size,a=n===void 0?"1em":n,l=e.title,d=l===void 0?null:l,f=e.className,m=f===void 0?"":f,p=vX(e,hX);return Tt.createElement("svg",Ub({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:a,height:a,fill:i,className:["bi","bi-clipboard",m].filter(Boolean).join(" ")},p),d?Tt.createElement("title",null,d):null,Tt.createElement("path",{d:"M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1z"}),Tt.createElement("path",{d:"M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0z"}))});AA.propTypes={color:rt.string,size:rt.oneOfType([rt.string,rt.number]),title:rt.string,className:rt.string};var gX=["color","size","title","className"];function Cb(){return Cb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Cb.apply(null,arguments)}function yX(e,t){if(e==null)return{};var r,i,n=bX(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bX(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}var m$=k.forwardRef(function(e,t){var r=e.color,i=r===void 0?"currentColor":r,n=e.size,a=n===void 0?"1em":n,l=e.title,d=l===void 0?null:l,f=e.className,m=f===void 0?"":f,p=yX(e,gX);return Tt.createElement("svg",Cb({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:a,height:a,fill:i,className:["bi","bi-info-circle",m].filter(Boolean).join(" ")},p),d?Tt.createElement("title",null,d):null,Tt.createElement("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"}),Tt.createElement("path",{d:"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"}))});m$.propTypes={color:rt.string,size:rt.oneOfType([rt.string,rt.number]),title:rt.string,className:rt.string};var _X=["color","size","title","className"];function Rb(){return Rb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Rb.apply(null,arguments)}function $X(e,t){if(e==null)return{};var r,i,n=SX(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function SX(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}var Mb=k.forwardRef(function(e,t){var r=e.color,i=r===void 0?"currentColor":r,n=e.size,a=n===void 0?"1em":n,l=e.title,d=l===void 0?null:l,f=e.className,m=f===void 0?"":f,p=$X(e,_X);return Tt.createElement("svg",Rb({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:a,height:a,fill:i,className:["bi","bi-x-lg",m].filter(Boolean).join(" ")},p),d?Tt.createElement("title",null,d):null,Tt.createElement("path",{d:"M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z"}))});Mb.propTypes={color:rt.string,size:rt.oneOfType([rt.string,rt.number]),title:rt.string,className:rt.string};const DA=Object.freeze({status:"aborted"});function B(e,t,r){function i(d,f){var m;Object.defineProperty(d,"_zod",{value:d._zod??{},enumerable:!1}),(m=d._zod).traits??(m.traits=new Set),d._zod.traits.add(e),t(d,f);for(const p in l.prototype)p in d||Object.defineProperty(d,p,{value:l.prototype[p].bind(d)});d._zod.constr=l,d._zod.def=f}const n=(r==null?void 0:r.Parent)??Object;class a extends n{}Object.defineProperty(a,"name",{value:e});function l(d){var f;const m=r!=null&&r.Parent?new a:this;i(m,d),(f=m._zod).deferred??(f.deferred=[]);for(const p of m._zod.deferred)p();return m}return Object.defineProperty(l,"init",{value:i}),Object.defineProperty(l,Symbol.hasInstance,{value:d=>{var f,m;return r!=null&&r.Parent&&d instanceof r.Parent?!0:(m=(f=d==null?void 0:d._zod)==null?void 0:f.traits)==null?void 0:m.has(e)}}),Object.defineProperty(l,"name",{value:e}),l}const UA=Symbol("zod_brand");let Eu=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},dv=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};const vh={};function Vn(e){return e&&Object.assign(vh,e),vh}function kX(e){return e}function wX(e){return e}function xX(e){}function OX(e){throw new Error}function EX(e){}function h$(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,n])=>t.indexOf(+i)===-1).map(([i,n])=>n)}function se(e,t="|"){return e.map(r=>Ge(r)).join(t)}function ph(e,t){return typeof t=="bigint"?t.toString():t}function Dd(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Wu(e){return e==null}function fv(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function CA(e,t){const r=(e.toString().split(".")[1]||"").length,i=t.toString();let n=(i.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(i)){const f=i.match(/\d?e-(\d?)/);f!=null&&f[1]&&(n=Number.parseInt(f[1]))}const a=r>n?r:n,l=Number.parseInt(e.toFixed(a).replace(".","")),d=Number.parseInt(t.toFixed(a).replace(".",""));return l%d/10**a}const XN=Symbol("evaluating");function st(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==XN)return i===void 0&&(i=XN,i=r()),i},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function NX(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Po(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Ba(...e){const t={};for(const r of e){const i=Object.getOwnPropertyDescriptors(r);Object.assign(t,i)}return Object.defineProperties({},t)}function jX(e){return Ba(e._zod.def)}function IX(e,t){return t?t.reduce((r,i)=>r==null?void 0:r[i],e):e}function TX(e){const t=Object.keys(e),r=t.map(i=>e[i]);return Promise.all(r).then(i=>{const n={};for(let a=0;a<t.length;a++)n[t[a]]=i[a];return n})}function zX(e=10){const t="abcdefghijklmnopqrstuvwxyz";let r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r}function Lb(e){return JSON.stringify(e)}const v$="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function hs(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const RA=Dd(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function Cu(e){if(hs(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(hs(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function mv(e){return Cu(e)?{...e}:Array.isArray(e)?[...e]:e}function AX(e){let t=0;for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}const DX=e=>{const t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},gh=new Set(["string","number","symbol"]),MA=new Set(["string","number","bigint","boolean","symbol","undefined"]);function zo(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Wr(e,t,r){const i=new e._zod.constr(t??e._zod.def);return(!t||r!=null&&r.parent)&&(i._zod.parent=e),i}function ie(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function UX(e){let t;return new Proxy({},{get(r,i,n){return t??(t=e()),Reflect.get(t,i,n)},set(r,i,n,a){return t??(t=e()),Reflect.set(t,i,n,a)},has(r,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(r,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(r,i,n){return t??(t=e()),Reflect.defineProperty(t,i,n)}})}function Ge(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function LA(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const PA={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]},ZA={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function BA(e,t){const r=e._zod.def,i=Ba(e._zod.def,{get shape(){const n={};for(const a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(n[a]=r.shape[a])}return Po(this,"shape",n),n},checks:[]});return Wr(e,i)}function FA(e,t){const r=e._zod.def,i=Ba(e._zod.def,{get shape(){const n={...e._zod.def.shape};for(const a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete n[a]}return Po(this,"shape",n),n},checks:[]});return Wr(e,i)}function VA(e,t){if(!Cu(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const n=Ba(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t};return Po(this,"shape",a),a},checks:[]});return Wr(e,n)}function qA(e,t){if(!Cu(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r={...e._zod.def,get shape(){const i={...e._zod.def.shape,...t};return Po(this,"shape",i),i},checks:e._zod.def.checks};return Wr(e,r)}function GA(e,t){const r=Ba(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t._zod.def.shape};return Po(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return Wr(e,r)}function HA(e,t,r){const i=Ba(t._zod.def,{get shape(){const n=t._zod.def.shape,a={...n};if(r)for(const l in r){if(!(l in n))throw new Error(`Unrecognized key: "${l}"`);r[l]&&(a[l]=e?new e({type:"optional",innerType:n[l]}):n[l])}else for(const l in n)a[l]=e?new e({type:"optional",innerType:n[l]}):n[l];return Po(this,"shape",a),a},checks:[]});return Wr(t,i)}function KA(e,t,r){const i=Ba(t._zod.def,{get shape(){const n=t._zod.def.shape,a={...n};if(r)for(const l in r){if(!(l in a))throw new Error(`Unrecognized key: "${l}"`);r[l]&&(a[l]=new e({type:"nonoptional",innerType:n[l]}))}else for(const l in n)a[l]=new e({type:"nonoptional",innerType:n[l]});return Po(this,"shape",a),a},checks:[]});return Wr(t,i)}function vu(e,t=0){var r;if(e.aborted===!0)return!0;for(let i=t;i<e.issues.length;i++)if(((r=e.issues[i])==null?void 0:r.continue)!==!0)return!0;return!1}function hi(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function Cc(e){return typeof e=="string"?e:e==null?void 0:e.message}function ki(e,t,r){var n,a,l,d,f,m;const i={...e,path:e.path??[]};if(!e.message){const p=Cc((l=(a=(n=e.inst)==null?void 0:n._zod.def)==null?void 0:a.error)==null?void 0:l.call(a,e))??Cc((d=t==null?void 0:t.error)==null?void 0:d.call(t,e))??Cc((f=r.customError)==null?void 0:f.call(r,e))??Cc((m=r.localeError)==null?void 0:m.call(r,e))??"Invalid input";i.message=p}return delete i.inst,delete i.continue,t!=null&&t.reportInput||delete i.input,i}function hv(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function vv(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function vs(...e){const[t,r,i]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:i}:{...t}}function CX(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function JA(e){const t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r}function YA(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function RX(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return JA(t+r)}function MX(e){return YA(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function LX(e){const t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");const r=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)r[i/2]=Number.parseInt(t.slice(i,i+2),16);return r}function PX(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}let ZX=class{constructor(...t){}};const XA=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:ZA,Class:ZX,NUMBER_FORMAT_RANGES:PA,aborted:vu,allowsEval:RA,assert:EX,assertEqual:kX,assertIs:xX,assertNever:OX,assertNotEqual:wX,assignProp:Po,base64ToUint8Array:JA,base64urlToUint8Array:RX,cached:Dd,captureStackTrace:v$,cleanEnum:CX,cleanRegex:fv,clone:Wr,cloneDef:jX,createTransparentProxy:UX,defineLazy:st,esc:Lb,escapeRegex:zo,extend:VA,finalizeIssue:ki,floatSafeRemainder:CA,getElementAtPath:IX,getEnumValues:h$,getLengthableOrigin:vv,getParsedType:DX,getSizableOrigin:hv,hexToUint8Array:LX,isObject:hs,isPlainObject:Cu,issue:vs,joinValues:se,jsonStringifyReplacer:ph,merge:GA,mergeDefs:Ba,normalizeParams:ie,nullish:Wu,numKeys:AX,objectClone:NX,omit:FA,optionalKeys:LA,partial:HA,pick:BA,prefixIssues:hi,primitiveTypes:MA,promiseAllObject:TX,propertyKeyTypes:gh,randomString:zX,required:KA,safeExtend:qA,shallowClone:mv,stringifyPrimitive:Ge,uint8ArrayToBase64:YA,uint8ArrayToBase64url:MX,uint8ArrayToHex:PX,unwrapMessage:Cc},Symbol.toStringTag,{value:"Module"})),QA=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,ph,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},p$=B("$ZodError",QA),xr=B("$ZodError",QA,{Parent:Error});function g$(e,t=r=>r.message){const r={},i=[];for(const n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):i.push(t(n));return{formErrors:i,fieldErrors:r}}function y$(e,t=r=>r.message){const r={_errors:[]},i=n=>{for(const a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>i({issues:l}));else if(a.code==="invalid_key")i({issues:a.issues});else if(a.code==="invalid_element")i({issues:a.issues});else if(a.path.length===0)r._errors.push(t(a));else{let l=r,d=0;for(;d<a.path.length;){const f=a.path[d];d===a.path.length-1?(l[f]=l[f]||{_errors:[]},l[f]._errors.push(t(a))):l[f]=l[f]||{_errors:[]},l=l[f],d++}}};return i(e),r}function WA(e,t=r=>r.message){const r={errors:[]},i=(n,a=[])=>{var l,d;for(const f of n.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(m=>i({issues:m},f.path));else if(f.code==="invalid_key")i({issues:f.issues},f.path);else if(f.code==="invalid_element")i({issues:f.issues},f.path);else{const m=[...a,...f.path];if(m.length===0){r.errors.push(t(f));continue}let p=r,g=0;for(;g<m.length;){const y=m[g],S=g===m.length-1;typeof y=="string"?(p.properties??(p.properties={}),(l=p.properties)[y]??(l[y]={errors:[]}),p=p.properties[y]):(p.items??(p.items=[]),(d=p.items)[y]??(d[y]={errors:[]}),p=p.items[y]),S&&p.errors.push(t(f)),g++}}};return i(e),r}function eD(e){const t=[],r=e.map(i=>typeof i=="object"?i.key:i);for(const i of r)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function tD(e){var i;const t=[],r=[...e.issues].sort((n,a)=>(n.path??[]).length-(a.path??[]).length);for(const n of r)t.push(`✖ ${n.message}`),(i=n.path)!=null&&i.length&&t.push(` → at ${eD(n.path)}`);return t.join(`
|
|
155
|
+
`)}const Ud=e=>(t,r,i,n)=>{const a=i?Object.assign(i,{async:!1}):{async:!1},l=t._zod.run({value:r,issues:[]},a);if(l instanceof Promise)throw new Eu;if(l.issues.length){const d=new((n==null?void 0:n.Err)??e)(l.issues.map(f=>ki(f,a,Vn())));throw v$(d,n==null?void 0:n.callee),d}return l.value},Pb=Ud(xr),Cd=e=>async(t,r,i,n)=>{const a=i?Object.assign(i,{async:!0}):{async:!0};let l=t._zod.run({value:r,issues:[]},a);if(l instanceof Promise&&(l=await l),l.issues.length){const d=new((n==null?void 0:n.Err)??e)(l.issues.map(f=>ki(f,a,Vn())));throw v$(d,n==null?void 0:n.callee),d}return l.value},Zb=Cd(xr),Rd=e=>(t,r,i)=>{const n=i?{...i,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},n);if(a instanceof Promise)throw new Eu;return a.issues.length?{success:!1,error:new(e??p$)(a.issues.map(l=>ki(l,n,Vn())))}:{success:!0,data:a.value}},nD=Rd(xr),Md=e=>async(t,r,i)=>{const n=i?Object.assign(i,{async:!0}):{async:!0};let a=t._zod.run({value:r,issues:[]},n);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(l=>ki(l,n,Vn())))}:{success:!0,data:a.value}},rD=Md(xr),b$=e=>(t,r,i)=>{const n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Ud(e)(t,r,n)},BX=b$(xr),_$=e=>(t,r,i)=>Ud(e)(t,r,i),FX=_$(xr),$$=e=>async(t,r,i)=>{const n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Cd(e)(t,r,n)},VX=$$(xr),S$=e=>async(t,r,i)=>Cd(e)(t,r,i),qX=S$(xr),k$=e=>(t,r,i)=>{const n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Rd(e)(t,r,n)},GX=k$(xr),w$=e=>(t,r,i)=>Rd(e)(t,r,i),HX=w$(xr),x$=e=>async(t,r,i)=>{const n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Md(e)(t,r,n)},KX=x$(xr),O$=e=>async(t,r,i)=>Md(e)(t,r,i),JX=O$(xr),iD=/^[cC][^\s-]{8,}$/,aD=/^[0-9a-z]+$/,oD=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,uD=/^[0-9a-vA-V]{20}$/,lD=/^[A-Za-z0-9]{27}$/,sD=/^[a-zA-Z0-9_-]{21}$/,cD=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,YX=/^[-+]?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)?)??$/,dD=/^([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})$/,ps=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,XX=ps(4),QX=ps(6),WX=ps(7),fD=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,eQ=/^[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])?)*$/,tQ=/^(([^<>()\[\]\\.,;:\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,}))$/,mD=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,nQ=mD,rQ=/^[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])?)*$/,iQ="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function hD(){return new RegExp(iQ,"u")}const vD=/^(?:(?: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])$/,pD=/^(([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}|:))$/,gD=/^((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])$/,yD=/^(([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])$/,bD=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,E$=/^[A-Za-z0-9_-]*$/,N$=/^(?=.{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])?)*\.?$/,_D=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,$D=/^\+(?:[0-9]){6,14}[0-9]$/,SD="(?:(?:\\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])))",kD=new RegExp(`^${SD}$`);function wD(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function xD(e){return new RegExp(`^${wD(e)}$`)}function OD(e){const t=wD({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${t}(?:${r.join("|")})`;return new RegExp(`^${SD}T(?:${i})$`)}const ED=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},ND=/^-?\d+n?$/,jD=/^-?\d+$/,ID=/^-?\d+(?:\.\d+)?/,TD=/^(?:true|false)$/i,zD=/^null$/i,AD=/^undefined$/i,DD=/^[^A-Z]*$/,UD=/^[^a-z]*$/,CD=/^[0-9a-fA-F]*$/;function Ld(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Pd(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const aQ=/^[0-9a-fA-F]{32}$/,oQ=Ld(22,"=="),uQ=Pd(22),lQ=/^[0-9a-fA-F]{40}$/,sQ=Ld(27,"="),cQ=Pd(27),dQ=/^[0-9a-fA-F]{64}$/,fQ=Ld(43,"="),mQ=Pd(43),hQ=/^[0-9a-fA-F]{96}$/,vQ=Ld(64,""),pQ=Pd(64),gQ=/^[0-9a-fA-F]{128}$/,yQ=Ld(86,"=="),bQ=Pd(86),j$=Object.freeze(Object.defineProperty({__proto__:null,base64:bD,base64url:E$,bigint:ND,boolean:TD,browserEmail:rQ,cidrv4:gD,cidrv6:yD,cuid:iD,cuid2:aD,date:kD,datetime:OD,domain:_D,duration:cD,e164:$D,email:fD,emoji:hD,extendedDuration:YX,guid:dD,hex:CD,hostname:N$,html5Email:eQ,idnEmail:nQ,integer:jD,ipv4:vD,ipv6:pD,ksuid:lD,lowercase:DD,md5_base64:oQ,md5_base64url:uQ,md5_hex:aQ,nanoid:sD,null:zD,number:ID,rfc5322Email:tQ,sha1_base64:sQ,sha1_base64url:cQ,sha1_hex:lQ,sha256_base64:fQ,sha256_base64url:mQ,sha256_hex:dQ,sha384_base64:vQ,sha384_base64url:pQ,sha384_hex:hQ,sha512_base64:yQ,sha512_base64url:bQ,sha512_hex:gQ,string:ED,time:xD,ulid:oD,undefined:AD,unicodeEmail:mD,uppercase:UD,uuid:ps,uuid4:XX,uuid6:QX,uuid7:WX,xid:uD},Symbol.toStringTag,{value:"Module"})),en=B("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),RD={number:"number",bigint:"bigint",object:"date"},I$=B("$ZodCheckLessThan",(e,t)=>{en.init(e,t);const r=RD[typeof t.value];e._zod.onattach.push(i=>{const n=i._zod.bag,a=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:r,code:"too_big",maximum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),T$=B("$ZodCheckGreaterThan",(e,t)=>{en.init(e,t);const r=RD[typeof t.value];e._zod.onattach.push(i=>{const n=i._zod.bag,a=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:r,code:"too_small",minimum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),MD=B("$ZodCheckMultipleOf",(e,t)=>{en.init(e,t),e._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):CA(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),LD=B("$ZodCheckNumberFormat",(e,t)=>{var l;en.init(e,t),t.format=t.format||"float64";const r=(l=t.format)==null?void 0:l.includes("int"),i=r?"int":"number",[n,a]=PA[t.format];e._zod.onattach.push(d=>{const f=d._zod.bag;f.format=t.format,f.minimum=n,f.maximum=a,r&&(f.pattern=jD)}),e._zod.check=d=>{const f=d.value;if(r){if(!Number.isInteger(f)){d.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:f,inst:e});return}if(!Number.isSafeInteger(f)){f>0?d.issues.push({input:f,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort}):d.issues.push({input:f,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort});return}}f<n&&d.issues.push({origin:"number",input:f,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),f>a&&d.issues.push({origin:"number",input:f,code:"too_big",maximum:a,inst:e})}}),PD=B("$ZodCheckBigIntFormat",(e,t)=>{en.init(e,t);const[r,i]=ZA[t.format];e._zod.onattach.push(n=>{const a=n._zod.bag;a.format=t.format,a.minimum=r,a.maximum=i}),e._zod.check=n=>{const a=n.value;a<r&&n.issues.push({origin:"bigint",input:a,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),a>i&&n.issues.push({origin:"bigint",input:a,code:"too_big",maximum:i,inst:e})}}),ZD=B("$ZodCheckMaxSize",(e,t)=>{var r;en.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!Wu(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const n=i.value;n.size<=t.maximum||i.issues.push({origin:hv(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),BD=B("$ZodCheckMinSize",(e,t)=>{var r;en.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!Wu(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const n=i.value;n.size>=t.minimum||i.issues.push({origin:hv(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),FD=B("$ZodCheckSizeEquals",(e,t)=>{var r;en.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!Wu(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=i=>{const n=i.value,a=n.size;if(a===t.size)return;const l=a>t.size;i.issues.push({origin:hv(n),...l?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),VD=B("$ZodCheckMaxLength",(e,t)=>{var r;en.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!Wu(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const n=i.value;if(n.length<=t.maximum)return;const l=vv(n);i.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),qD=B("$ZodCheckMinLength",(e,t)=>{var r;en.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!Wu(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const n=i.value;if(n.length>=t.minimum)return;const l=vv(n);i.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),GD=B("$ZodCheckLengthEquals",(e,t)=>{var r;en.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!Wu(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=i=>{const n=i.value,a=n.length;if(a===t.length)return;const l=vv(n),d=a>t.length;i.issues.push({origin:l,...d?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Zd=B("$ZodCheckStringFormat",(e,t)=>{var r,i;en.init(e,t),e._zod.onattach.push(n=>{const a=n._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),HD=B("$ZodCheckRegex",(e,t)=>{Zd.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),KD=B("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=DD),Zd.init(e,t)}),JD=B("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=UD),Zd.init(e,t)}),YD=B("$ZodCheckIncludes",(e,t)=>{en.init(e,t);const r=zo(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=i,e._zod.onattach.push(n=>{const a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),XD=B("$ZodCheckStartsWith",(e,t)=>{en.init(e,t);const r=new RegExp(`^${zo(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{const n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),QD=B("$ZodCheckEndsWith",(e,t)=>{en.init(e,t);const r=new RegExp(`.*${zo(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{const n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function QN(e,t,r){e.issues.length&&t.issues.push(...hi(r,e.issues))}const WD=B("$ZodCheckProperty",(e,t)=>{en.init(e,t),e._zod.check=r=>{const i=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(n=>QN(n,r,t.property));QN(i,r,t.property)}}),eU=B("$ZodCheckMimeType",(e,t)=>{en.init(e,t);const r=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),tU=B("$ZodCheckOverwrite",(e,t)=>{en.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});let nU=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const i=t.split(`
|
|
156
|
+
`).filter(l=>l),n=Math.min(...i.map(l=>l.length-l.trimStart().length)),a=i.map(l=>l.slice(n)).map(l=>" ".repeat(this.indent*2)+l);for(const l of a)this.content.push(l)}compile(){const t=Function,r=this==null?void 0:this.args,n=[...((this==null?void 0:this.content)??[""]).map(a=>` ${a}`)];return new t(...r,n.join(`
|
|
157
|
+
`))}};const rU={major:4,minor:1,patch:12},Xe=B("$ZodType",(e,t)=>{var n;var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=rU;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const a of i)for(const l of a._zod.onattach)l(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),(n=e._zod.deferred)==null||n.push(()=>{e._zod.run=e._zod.parse});else{const a=(d,f,m)=>{let p=vu(d),g;for(const y of f){if(y._zod.def.when){if(!y._zod.def.when(d))continue}else if(p)continue;const S=d.issues.length,w=y._zod.check(d);if(w instanceof Promise&&(m==null?void 0:m.async)===!1)throw new Eu;if(g||w instanceof Promise)g=(g??Promise.resolve()).then(async()=>{await w,d.issues.length!==S&&(p||(p=vu(d,S)))});else{if(d.issues.length===S)continue;p||(p=vu(d,S))}}return g?g.then(()=>d):d},l=(d,f,m)=>{if(vu(d))return d.aborted=!0,d;const p=a(f,i,m);if(p instanceof Promise){if(m.async===!1)throw new Eu;return p.then(g=>e._zod.parse(g,m))}return e._zod.parse(p,m)};e._zod.run=(d,f)=>{if(f.skipChecks)return e._zod.parse(d,f);if(f.direction==="backward"){const p=e._zod.parse({value:d.value,issues:[]},{...f,skipChecks:!0});return p instanceof Promise?p.then(g=>l(g,d,f)):l(p,d,f)}const m=e._zod.parse(d,f);if(m instanceof Promise){if(f.async===!1)throw new Eu;return m.then(p=>a(p,i,f))}return a(m,i,f)}}e["~standard"]={validate:a=>{var l;try{const d=nD(e,a);return d.success?{value:d.data}:{issues:(l=d.error)==null?void 0:l.issues}}catch{return rD(e,a).then(f=>{var m;return f.success?{value:f.data}:{issues:(m=f.error)==null?void 0:m.issues}})}},vendor:"zod",version:1}}),Bd=B("$ZodString",(e,t)=>{var r;Xe.init(e,t),e._zod.pattern=[...((r=e==null?void 0:e._zod.bag)==null?void 0:r.patterns)??[]].pop()??ED(e._zod.bag),e._zod.parse=(i,n)=>{if(t.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:e}),i}}),Zt=B("$ZodStringFormat",(e,t)=>{Zd.init(e,t),Bd.init(e,t)}),iU=B("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=dD),Zt.init(e,t)}),aU=B("$ZodUUID",(e,t)=>{if(t.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=ps(i))}else t.pattern??(t.pattern=ps());Zt.init(e,t)}),oU=B("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=fD),Zt.init(e,t)}),uU=B("$ZodURL",(e,t)=>{Zt.init(e,t),e._zod.check=r=>{try{const i=r.value.trim(),n=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:N$.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),lU=B("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=hD()),Zt.init(e,t)}),sU=B("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=sD),Zt.init(e,t)}),cU=B("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=iD),Zt.init(e,t)}),dU=B("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=aD),Zt.init(e,t)}),fU=B("$ZodULID",(e,t)=>{t.pattern??(t.pattern=oD),Zt.init(e,t)}),mU=B("$ZodXID",(e,t)=>{t.pattern??(t.pattern=uD),Zt.init(e,t)}),hU=B("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=lD),Zt.init(e,t)}),vU=B("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=OD(t)),Zt.init(e,t)}),pU=B("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=kD),Zt.init(e,t)}),gU=B("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=xD(t)),Zt.init(e,t)}),yU=B("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=cD),Zt.init(e,t)}),bU=B("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=vD),Zt.init(e,t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.format="ipv4"})}),_U=B("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=pD),Zt.init(e,t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.format="ipv6"}),e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),$U=B("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=gD),Zt.init(e,t)}),SU=B("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=yD),Zt.init(e,t),e._zod.check=r=>{const i=r.value.split("/");try{if(i.length!==2)throw new Error;const[n,a]=i;if(!a)throw new Error;const l=Number(a);if(`${l}`!==a)throw new Error;if(l<0||l>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function z$(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const kU=B("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=bD),Zt.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64"}),e._zod.check=r=>{z$(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function wU(e){if(!E$.test(e))return!1;const t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return z$(r)}const xU=B("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=E$),Zt.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64url"}),e._zod.check=r=>{wU(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),OU=B("$ZodE164",(e,t)=>{t.pattern??(t.pattern=$D),Zt.init(e,t)});function EU(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[i]=r;if(!i)return!1;const n=JSON.parse(atob(i));return!("typ"in n&&(n==null?void 0:n.typ)!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}const NU=B("$ZodJWT",(e,t)=>{Zt.init(e,t),e._zod.check=r=>{EU(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),jU=B("$ZodCustomStringFormat",(e,t)=>{Zt.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),A$=B("$ZodNumber",(e,t)=>{Xe.init(e,t),e._zod.pattern=e._zod.bag.pattern??ID,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}const n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;const a=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...a?{received:a}:{}}),r}}),IU=B("$ZodNumber",(e,t)=>{LD.init(e,t),A$.init(e,t)}),D$=B("$ZodBoolean",(e,t)=>{Xe.init(e,t),e._zod.pattern=TD,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=!!r.value}catch{}const n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),U$=B("$ZodBigInt",(e,t)=>{Xe.init(e,t),e._zod.pattern=ND,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),TU=B("$ZodBigInt",(e,t)=>{PD.init(e,t),U$.init(e,t)}),zU=B("$ZodSymbol",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),AU=B("$ZodUndefined",(e,t)=>{Xe.init(e,t),e._zod.pattern=AD,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,i)=>{const n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),DU=B("$ZodNull",(e,t)=>{Xe.init(e,t),e._zod.pattern=zD,e._zod.values=new Set([null]),e._zod.parse=(r,i)=>{const n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),UU=B("$ZodAny",(e,t)=>{Xe.init(e,t),e._zod.parse=r=>r}),CU=B("$ZodUnknown",(e,t)=>{Xe.init(e,t),e._zod.parse=r=>r}),RU=B("$ZodNever",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),MU=B("$ZodVoid",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),LU=B("$ZodDate",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}const n=r.value,a=n instanceof Date;return a&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...a?{received:"Invalid Date"}:{},inst:e}),r}});function WN(e,t,r){e.issues.length&&t.issues.push(...hi(r,e.issues)),t.value[r]=e.value}const PU=B("$ZodArray",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);const a=[];for(let l=0;l<n.length;l++){const d=n[l],f=t.element._zod.run({value:d,issues:[]},i);f instanceof Promise?a.push(f.then(m=>WN(m,r,l))):WN(f,r,l)}return a.length?Promise.all(a).then(()=>r):r}});function yh(e,t,r,i){e.issues.length&&t.issues.push(...hi(r,e.issues)),e.value===void 0?r in i&&(t.value[r]=void 0):t.value[r]=e.value}function ZU(e){var i,n,a,l;const t=Object.keys(e.shape);for(const d of t)if(!((l=(a=(n=(i=e.shape)==null?void 0:i[d])==null?void 0:n._zod)==null?void 0:a.traits)!=null&&l.has("$ZodType")))throw new Error(`Invalid element at key "${d}": expected a Zod schema`);const r=LA(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function BU(e,t,r,i,n,a){const l=[],d=n.keySet,f=n.catchall._zod,m=f.def.type;for(const p of Object.keys(t)){if(d.has(p))continue;if(m==="never"){l.push(p);continue}const g=f.run({value:t[p],issues:[]},i);g instanceof Promise?e.push(g.then(y=>yh(y,r,p,t))):yh(g,r,p,t)}return l.length&&r.issues.push({code:"unrecognized_keys",keys:l,input:t,inst:a}),e.length?Promise.all(e).then(()=>r):r}const FU=B("$ZodObject",(e,t)=>{Xe.init(e,t);const r=Object.getOwnPropertyDescriptor(t,"shape");if(!(r!=null&&r.get)){const d=t.shape;Object.defineProperty(t,"shape",{get:()=>{const f={...d};return Object.defineProperty(t,"shape",{value:f}),f}})}const i=Dd(()=>ZU(t));st(e._zod,"propValues",()=>{const d=t.shape,f={};for(const m in d){const p=d[m]._zod;if(p.values){f[m]??(f[m]=new Set);for(const g of p.values)f[m].add(g)}}return f});const n=hs,a=t.catchall;let l;e._zod.parse=(d,f)=>{l??(l=i.value);const m=d.value;if(!n(m))return d.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),d;d.value={};const p=[],g=l.shape;for(const y of l.keys){const w=g[y]._zod.run({value:m[y],issues:[]},f);w instanceof Promise?p.push(w.then(j=>yh(j,d,y,m))):yh(w,d,y,m)}return a?BU(p,m,d,f,i.value,e):p.length?Promise.all(p).then(()=>d):d}}),VU=B("$ZodObjectJIT",(e,t)=>{FU.init(e,t);const r=e._zod.parse,i=Dd(()=>ZU(t)),n=y=>{const S=new nU(["shape","payload","ctx"]),w=i.value,j=N=>{const z=Lb(N);return`shape[${z}]._zod.run({ value: input[${z}], issues: [] }, ctx)`};S.write("const input = payload.value;");const x=Object.create(null);let $=0;for(const N of w.keys)x[N]=`key_${$++}`;S.write("const newResult = {};");for(const N of w.keys){const z=x[N],T=Lb(N);S.write(`const ${z} = ${j(N)};`),S.write(`
|
|
158
|
+
if (${z}.issues.length) {
|
|
159
|
+
payload.issues = payload.issues.concat(${z}.issues.map(iss => ({
|
|
160
|
+
...iss,
|
|
161
|
+
path: iss.path ? [${T}, ...iss.path] : [${T}]
|
|
162
|
+
})));
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
if (${z}.value === undefined) {
|
|
167
|
+
if (${T} in input) {
|
|
168
|
+
newResult[${T}] = undefined;
|
|
169
|
+
}
|
|
170
|
+
} else {
|
|
171
|
+
newResult[${T}] = ${z}.value;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
`)}S.write("payload.value = newResult;"),S.write("return payload;");const I=S.compile();return(N,z)=>I(y,N,z)};let a;const l=hs,d=!vh.jitless,m=d&&RA.value,p=t.catchall;let g;e._zod.parse=(y,S)=>{g??(g=i.value);const w=y.value;return l(w)?d&&m&&(S==null?void 0:S.async)===!1&&S.jitless!==!0?(a||(a=n(t.shape)),y=a(y,S),p?BU([],w,y,S,g,e):y):r(y,S):(y.issues.push({expected:"object",code:"invalid_type",input:w,inst:e}),y)}});function ej(e,t,r,i){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;const n=e.filter(a=>!vu(a));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(a=>a.issues.map(l=>ki(l,i,Vn())))}),t)}const C$=B("$ZodUnion",(e,t)=>{Xe.init(e,t),st(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),st(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),st(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),st(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){const n=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${n.map(a=>fv(a.source)).join("|")})$`)}});const r=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(n,a)=>{if(r)return i(n,a);let l=!1;const d=[];for(const f of t.options){const m=f._zod.run({value:n.value,issues:[]},a);if(m instanceof Promise)d.push(m),l=!0;else{if(m.issues.length===0)return m;d.push(m)}}return l?Promise.all(d).then(f=>ej(f,n,e,a)):ej(d,n,e,a)}}),qU=B("$ZodDiscriminatedUnion",(e,t)=>{C$.init(e,t);const r=e._zod.parse;st(e._zod,"propValues",()=>{const n={};for(const a of t.options){const l=a._zod.propValues;if(!l||Object.keys(l).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const[d,f]of Object.entries(l)){n[d]||(n[d]=new Set);for(const m of f)n[d].add(m)}}return n});const i=Dd(()=>{var l;const n=t.options,a=new Map;for(const d of n){const f=(l=d._zod.propValues)==null?void 0:l[t.discriminator];if(!f||f.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(d)}"`);for(const m of f){if(a.has(m))throw new Error(`Duplicate discriminator value "${String(m)}"`);a.set(m,d)}}return a});e._zod.parse=(n,a)=>{const l=n.value;if(!hs(l))return n.issues.push({code:"invalid_type",expected:"object",input:l,inst:e}),n;const d=i.value.get(l==null?void 0:l[t.discriminator]);return d?d._zod.run(n,a):t.unionFallback?r(n,a):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:l,path:[t.discriminator],inst:e}),n)}}),GU=B("$ZodIntersection",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value,a=t.left._zod.run({value:n,issues:[]},i),l=t.right._zod.run({value:n,issues:[]},i);return a instanceof Promise||l instanceof Promise?Promise.all([a,l]).then(([f,m])=>tj(r,f,m)):tj(r,a,l)}});function Bb(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Cu(e)&&Cu(t)){const r=Object.keys(t),i=Object.keys(e).filter(a=>r.indexOf(a)!==-1),n={...e,...t};for(const a of i){const l=Bb(e[a],t[a]);if(!l.valid)return{valid:!1,mergeErrorPath:[a,...l.mergeErrorPath]};n[a]=l.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let i=0;i<e.length;i++){const n=e[i],a=t[i],l=Bb(n,a);if(!l.valid)return{valid:!1,mergeErrorPath:[i,...l.mergeErrorPath]};r.push(l.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function tj(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),vu(e))return e;const i=Bb(t.value,r.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const R$=B("$ZodTuple",(e,t)=>{Xe.init(e,t);const r=t.items,i=r.length-[...r].reverse().findIndex(n=>n._zod.optin!=="optional");e._zod.parse=(n,a)=>{const l=n.value;if(!Array.isArray(l))return n.issues.push({input:l,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];const d=[];if(!t.rest){const m=l.length>r.length,p=l.length<i-1;if(m||p)return n.issues.push({...m?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},input:l,inst:e,origin:"array"}),n}let f=-1;for(const m of r){if(f++,f>=l.length&&f>=i)continue;const p=m._zod.run({value:l[f],issues:[]},a);p instanceof Promise?d.push(p.then(g=>Im(g,n,f))):Im(p,n,f)}if(t.rest){const m=l.slice(r.length);for(const p of m){f++;const g=t.rest._zod.run({value:p,issues:[]},a);g instanceof Promise?d.push(g.then(y=>Im(y,n,f))):Im(g,n,f)}}return d.length?Promise.all(d).then(()=>n):n}});function Im(e,t,r){e.issues.length&&t.issues.push(...hi(r,e.issues)),t.value[r]=e.value}const HU=B("$ZodRecord",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!Cu(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;const a=[];if(t.keyType._zod.values){const l=t.keyType._zod.values;r.value={};for(const f of l)if(typeof f=="string"||typeof f=="number"||typeof f=="symbol"){const m=t.valueType._zod.run({value:n[f],issues:[]},i);m instanceof Promise?a.push(m.then(p=>{p.issues.length&&r.issues.push(...hi(f,p.issues)),r.value[f]=p.value})):(m.issues.length&&r.issues.push(...hi(f,m.issues)),r.value[f]=m.value)}let d;for(const f in n)l.has(f)||(d=d??[],d.push(f));d&&d.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:d})}else{r.value={};for(const l of Reflect.ownKeys(n)){if(l==="__proto__")continue;const d=t.keyType._zod.run({value:l,issues:[]},i);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(m=>ki(m,i,Vn())),input:l,path:[l],inst:e}),r.value[d.value]=d.value;continue}const f=t.valueType._zod.run({value:n[l],issues:[]},i);f instanceof Promise?a.push(f.then(m=>{m.issues.length&&r.issues.push(...hi(l,m.issues)),r.value[d.value]=m.value})):(f.issues.length&&r.issues.push(...hi(l,f.issues)),r.value[d.value]=f.value)}}return a.length?Promise.all(a).then(()=>r):r}}),KU=B("$ZodMap",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;const a=[];r.value=new Map;for(const[l,d]of n){const f=t.keyType._zod.run({value:l,issues:[]},i),m=t.valueType._zod.run({value:d,issues:[]},i);f instanceof Promise||m instanceof Promise?a.push(Promise.all([f,m]).then(([p,g])=>{nj(p,g,r,l,n,e,i)})):nj(f,m,r,l,n,e,i)}return a.length?Promise.all(a).then(()=>r):r}});function nj(e,t,r,i,n,a,l){e.issues.length&&(gh.has(typeof i)?r.issues.push(...hi(i,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:a,issues:e.issues.map(d=>ki(d,l,Vn()))})),t.issues.length&&(gh.has(typeof i)?r.issues.push(...hi(i,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:a,key:i,issues:t.issues.map(d=>ki(d,l,Vn()))})),r.value.set(e.value,t.value)}const JU=B("$ZodSet",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;const a=[];r.value=new Set;for(const l of n){const d=t.valueType._zod.run({value:l,issues:[]},i);d instanceof Promise?a.push(d.then(f=>rj(f,r))):rj(d,r)}return a.length?Promise.all(a).then(()=>r):r}});function rj(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}const YU=B("$ZodEnum",(e,t)=>{Xe.init(e,t);const r=h$(t.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(n=>gh.has(typeof n)).map(n=>typeof n=="string"?zo(n):n.toString()).join("|")})$`),e._zod.parse=(n,a)=>{const l=n.value;return i.has(l)||n.issues.push({code:"invalid_value",values:r,input:l,inst:e}),n}}),XU=B("$ZodLiteral",(e,t)=>{if(Xe.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?zo(r):r?zo(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,i)=>{const n=r.value;return e._zod.values.has(n)||r.issues.push({code:"invalid_value",values:t.values,input:n,inst:e}),r}}),QU=B("$ZodFile",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),WU=B("$ZodTransform",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new dv(e.constructor.name);const n=t.transform(r.value,r);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(l=>(r.value=l,r));if(n instanceof Promise)throw new Eu;return r.value=n,r}});function ij(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const e4=B("$ZodOptional",(e,t)=>{Xe.init(e,t),e._zod.optin="optional",e._zod.optout="optional",st(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),st(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${fv(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(t.innerType._zod.optin==="optional"){const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>ij(a,r.value)):ij(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,i)}}),t4=B("$ZodNullable",(e,t)=>{Xe.init(e,t),st(e._zod,"optin",()=>t.innerType._zod.optin),st(e._zod,"optout",()=>t.innerType._zod.optout),st(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${fv(r.source)}|null)$`):void 0}),st(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i)}),n4=B("$ZodDefault",(e,t)=>{Xe.init(e,t),e._zod.optin="optional",st(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);if(r.value===void 0)return r.value=t.defaultValue,r;const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>aj(a,t)):aj(n,t)}});function aj(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const r4=B("$ZodPrefault",(e,t)=>{Xe.init(e,t),e._zod.optin="optional",st(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,i))}),i4=B("$ZodNonOptional",(e,t)=>{Xe.init(e,t),st(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>oj(a,e)):oj(n,e)}});function oj(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const a4=B("$ZodSuccess",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new dv("ZodSuccess");const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>(r.value=a.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),o4=B("$ZodCatch",(e,t)=>{Xe.init(e,t),st(e._zod,"optin",()=>t.innerType._zod.optin),st(e._zod,"optout",()=>t.innerType._zod.optout),st(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>(r.value=a.value,a.issues.length&&(r.value=t.catchValue({...r,error:{issues:a.issues.map(l=>ki(l,i,Vn()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(a=>ki(a,i,Vn()))},input:r.value}),r.issues=[]),r)}}),u4=B("$ZodNaN",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),l4=B("$ZodPipe",(e,t)=>{Xe.init(e,t),st(e._zod,"values",()=>t.in._zod.values),st(e._zod,"optin",()=>t.in._zod.optin),st(e._zod,"optout",()=>t.out._zod.optout),st(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){const a=t.out._zod.run(r,i);return a instanceof Promise?a.then(l=>Tm(l,t.in,i)):Tm(a,t.in,i)}const n=t.in._zod.run(r,i);return n instanceof Promise?n.then(a=>Tm(a,t.out,i)):Tm(n,t.out,i)}});function Tm(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const M$=B("$ZodCodec",(e,t)=>{Xe.init(e,t),st(e._zod,"values",()=>t.in._zod.values),st(e._zod,"optin",()=>t.in._zod.optin),st(e._zod,"optout",()=>t.out._zod.optout),st(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if((i.direction||"forward")==="forward"){const a=t.in._zod.run(r,i);return a instanceof Promise?a.then(l=>zm(l,t,i)):zm(a,t,i)}else{const a=t.out._zod.run(r,i);return a instanceof Promise?a.then(l=>zm(l,t,i)):zm(a,t,i)}}});function zm(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){const n=t.transform(e.value,e);return n instanceof Promise?n.then(a=>Am(e,a,t.out,r)):Am(e,n,t.out,r)}else{const n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(a=>Am(e,a,t.in,r)):Am(e,n,t.in,r)}}function Am(e,t,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},i)}const s4=B("$ZodReadonly",(e,t)=>{Xe.init(e,t),st(e._zod,"propValues",()=>t.innerType._zod.propValues),st(e._zod,"values",()=>t.innerType._zod.values),st(e._zod,"optin",()=>t.innerType._zod.optin),st(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(uj):uj(n)}});function uj(e){return e.value=Object.freeze(e.value),e}const c4=B("$ZodTemplateLiteral",(e,t)=>{Xe.init(e,t);const r=[];for(const i of t.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);const n=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${i._zod.traits}`);const a=n.startsWith("^")?1:0,l=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(a,l))}else if(i===null||MA.has(typeof i))r.push(zo(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(i,n)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"template_literal",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i)}),d4=B("$ZodFunction",(e,t)=>(Xe.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...i){const n=e._def.input?Pb(e._def.input,i):i,a=Reflect.apply(r,this,n);return e._def.output?Pb(e._def.output,a):a}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){const n=e._def.input?await Zb(e._def.input,i):i,a=await Reflect.apply(r,this,n);return e._def.output?await Zb(e._def.output,a):a}},e._zod.parse=(r,i)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{const i=e.constructor;return Array.isArray(r[0])?new i({type:"function",input:new R$({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new i({type:"function",input:r[0],output:e._def.output})},e.output=r=>{const i=e.constructor;return new i({type:"function",input:e._def.input,output:r})},e)),f4=B("$ZodPromise",(e,t)=>{Xe.init(e,t),e._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},i))}),m4=B("$ZodLazy",(e,t)=>{Xe.init(e,t),st(e._zod,"innerType",()=>t.getter()),st(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),st(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),st(e._zod,"optin",()=>e._zod.innerType._zod.optin??void 0),st(e._zod,"optout",()=>e._zod.innerType._zod.optout??void 0),e._zod.parse=(r,i)=>e._zod.innerType._zod.run(r,i)}),h4=B("$ZodCustom",(e,t)=>{en.init(e,t),Xe.init(e,t),e._zod.parse=(r,i)=>r,e._zod.check=r=>{const i=r.value,n=t.fn(i);if(n instanceof Promise)return n.then(a=>lj(a,r,i,e));lj(n,r,i,e)}});function lj(e,t,r,i){if(!e){const n={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(n.params=i._zod.def.params),t.issues.push(vs(n))}}const _Q=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"مدخل"};return n=>{switch(n.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${n.expected}، ولكن تم إدخال ${r(n.input)}`;case"invalid_value":return n.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${Ge(n.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?` أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${a} ${n.maximum.toString()} ${l.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${a} ${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${a} ${n.minimum.toString()} ${l.unit}`:`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${a} ${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${n.prefix}"`:a.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${a.suffix}"`:a.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${a.includes}"`:a.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${a.pattern}`:`${i[a.format]??n.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${n.divisor}`;case"unrecognized_keys":return`معرف${n.keys.length>1?"ات":""} غريب${n.keys.length>1?"ة":""}: ${se(n.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${n.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${n.origin}`;default:return"مدخل غير مقبول"}}};function $Q(){return{localeError:_Q()}}const SQ=()=>{const e={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 t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${n.expected}, daxil olan ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Yanlış dəyər: gözlənilən ${Ge(n.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${a}${n.maximum.toString()} ${l.unit??"element"}`:`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Çox kiçik: gözlənilən ${n.origin} ${a}${n.minimum.toString()} ${l.unit}`:`Çox kiçik: gözlənilən ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Yanlış mətn: "${a.prefix}" ilə başlamalıdır`:a.format==="ends_with"?`Yanlış mətn: "${a.suffix}" ilə bitməlidir`:a.format==="includes"?`Yanlış mətn: "${a.includes}" daxil olmalıdır`:a.format==="regex"?`Yanlış mətn: ${a.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${i[a.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":""}: ${se(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 kQ(){return{localeError:SQ()}}function sj(e,t,r,i){const n=Math.abs(e),a=n%10,l=n%100;return l>=11&&l<=19?i:a===1?t:a>=2&&a<=4?r:i}const wQ=()=>{const e={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 t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"лік";case"object":{if(Array.isArray(n))return"масіў";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"увод"};return n=>{switch(n.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${n.expected}, атрымана ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Няправільны ўвод: чакалася ${Ge(n.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);if(l){const d=Number(n.maximum),f=sj(d,l.unit.one,l.unit.few,l.unit.many);return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна ${l.verb} ${a}${n.maximum.toString()} ${f}`}return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна быць ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);if(l){const d=Number(n.minimum),f=sj(d,l.unit.one,l.unit.few,l.unit.many);return`Занадта малы: чакалася, што ${n.origin} павінна ${l.verb} ${a}${n.minimum.toString()} ${f}`}return`Занадта малы: чакалася, што ${n.origin} павінна быць ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${a.prefix}"`:a.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${a.suffix}"`:a.format==="includes"?`Няправільны радок: павінен змяшчаць "${a.includes}"`:a.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${a.pattern}`:`Няправільны ${i[a.format]??n.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${n.keys.length>1?"ключы":"ключ"}: ${se(n.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${n.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${n.origin}`;default:return"Няправільны ўвод"}}};function xQ(){return{localeError:wQ()}}const OQ=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"число";case"object":{if(Array.isArray(e))return"масив";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},EQ=()=>{const e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function t(i){return e[i]??null}const r={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:"вход"};return i=>{switch(i.code){case"invalid_type":return`Невалиден вход: очакван ${i.expected}, получен ${OQ(i.input)}`;case"invalid_value":return i.values.length===1?`Невалиден вход: очакван ${Ge(i.values[0])}`:`Невалидна опция: очаквано едно от ${se(i.values,"|")}`;case"too_big":{const n=i.inclusive?"<=":"<",a=t(i.origin);return a?`Твърде голямо: очаква се ${i.origin??"стойност"} да съдържа ${n}${i.maximum.toString()} ${a.unit??"елемента"}`:`Твърде голямо: очаква се ${i.origin??"стойност"} да бъде ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",a=t(i.origin);return a?`Твърде малко: очаква се ${i.origin} да съдържа ${n}${i.minimum.toString()} ${a.unit}`:`Твърде малко: очаква се ${i.origin} да бъде ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;if(n.format==="starts_with")return`Невалиден низ: трябва да започва с "${n.prefix}"`;if(n.format==="ends_with")return`Невалиден низ: трябва да завършва с "${n.suffix}"`;if(n.format==="includes")return`Невалиден низ: трябва да включва "${n.includes}"`;if(n.format==="regex")return`Невалиден низ: трябва да съвпада с ${n.pattern}`;let a="Невалиден";return n.format==="emoji"&&(a="Невалидно"),n.format==="datetime"&&(a="Невалидно"),n.format==="date"&&(a="Невалидна"),n.format==="time"&&(a="Невалидно"),n.format==="duration"&&(a="Невалидна"),`${a} ${r[n.format]??i.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${i.divisor}`;case"unrecognized_keys":return`Неразпознат${i.keys.length>1?"и":""} ключ${i.keys.length>1?"ове":""}: ${se(i.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${i.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${i.origin}`;default:return"Невалиден вход"}}};function NQ(){return{localeError:EQ()}}const jQ=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Tipus invàlid: s'esperava ${n.expected}, s'ha rebut ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Valor invàlid: s'esperava ${Ge(n.values[0])}`:`Opció invàlida: s'esperava una de ${se(n.values," o ")}`;case"too_big":{const a=n.inclusive?"com a màxim":"menys de",l=t(n.origin);return l?`Massa gran: s'esperava que ${n.origin??"el valor"} contingués ${a} ${n.maximum.toString()} ${l.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${a} ${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?"com a mínim":"més de",l=t(n.origin);return l?`Massa petit: s'esperava que ${n.origin} contingués ${a} ${n.minimum.toString()} ${l.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${a} ${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Format invàlid: ha de començar amb "${a.prefix}"`:a.format==="ends_with"?`Format invàlid: ha d'acabar amb "${a.suffix}"`:a.format==="includes"?`Format invàlid: ha d'incloure "${a.includes}"`:a.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${a.pattern}`:`Format invàlid per a ${i[a.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":""}: ${se(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 IQ(){return{localeError:jQ()}}const TQ=()=>{const e={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 t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"číslo";case"string":return"řetězec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(n))return"pole";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Neplatný vstup: očekáváno ${n.expected}, obdrženo ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Neplatný vstup: očekáváno ${Ge(n.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Hodnota je příliš velká: ${n.origin??"hodnota"} musí mít ${a}${n.maximum.toString()} ${l.unit??"prvků"}`:`Hodnota je příliš velká: ${n.origin??"hodnota"} musí být ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Hodnota je příliš malá: ${n.origin??"hodnota"} musí mít ${a}${n.minimum.toString()} ${l.unit??"prvků"}`:`Hodnota je příliš malá: ${n.origin??"hodnota"} musí být ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Neplatný řetězec: musí začínat na "${a.prefix}"`:a.format==="ends_with"?`Neplatný řetězec: musí končit na "${a.suffix}"`:a.format==="includes"?`Neplatný řetězec: musí obsahovat "${a.includes}"`:a.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${a.pattern}`:`Neplatný formát ${i[a.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: ${se(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 zQ(){return{localeError:TQ()}}const AQ=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},t={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};function r(l){return e[l]??null}function i(l){return t[l]??l}const n=l=>{const d=typeof l;switch(d){case"number":return Number.isNaN(l)?"NaN":"tal";case"object":return Array.isArray(l)?"liste":l===null?"null":Object.getPrototypeOf(l)!==Object.prototype&&l.constructor?l.constructor.name:"objekt"}return d},a={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"};return l=>{switch(l.code){case"invalid_type":return`Ugyldigt input: forventede ${i(l.expected)}, fik ${i(n(l.input))}`;case"invalid_value":return l.values.length===1?`Ugyldig værdi: forventede ${Ge(l.values[0])}`:`Ugyldigt valg: forventede en af følgende ${se(l.values,"|")}`;case"too_big":{const d=l.inclusive?"<=":"<",f=r(l.origin),m=i(l.origin);return f?`For stor: forventede ${m??"value"} ${f.verb} ${d} ${l.maximum.toString()} ${f.unit??"elementer"}`:`For stor: forventede ${m??"value"} havde ${d} ${l.maximum.toString()}`}case"too_small":{const d=l.inclusive?">=":">",f=r(l.origin),m=i(l.origin);return f?`For lille: forventede ${m} ${f.verb} ${d} ${l.minimum.toString()} ${f.unit}`:`For lille: forventede ${m} havde ${d} ${l.minimum.toString()}`}case"invalid_format":{const d=l;return d.format==="starts_with"?`Ugyldig streng: skal starte med "${d.prefix}"`:d.format==="ends_with"?`Ugyldig streng: skal ende med "${d.suffix}"`:d.format==="includes"?`Ugyldig streng: skal indeholde "${d.includes}"`:d.format==="regex"?`Ugyldig streng: skal matche mønsteret ${d.pattern}`:`Ugyldig ${a[d.format]??l.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${l.divisor}`;case"unrecognized_keys":return`${l.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${se(l.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${l.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${l.origin}`;default:return"Ugyldigt input"}}};function DQ(){return{localeError:AQ()}}const UQ=()=>{const e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"Zahl";case"object":{if(Array.isArray(n))return"Array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Ungültige Eingabe: erwartet ${n.expected}, erhalten ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ungültige Eingabe: erwartet ${Ge(n.values[0])}`:`Ungültige Option: erwartet eine von ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Zu groß: erwartet, dass ${n.origin??"Wert"} ${a}${n.maximum.toString()} ${l.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${n.origin??"Wert"} ${a}${n.maximum.toString()} ist`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Zu klein: erwartet, dass ${n.origin} ${a}${n.minimum.toString()} ${l.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${a}${n.minimum.toString()} ist`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Ungültiger String: muss mit "${a.prefix}" beginnen`:a.format==="ends_with"?`Ungültiger String: muss mit "${a.suffix}" enden`:a.format==="includes"?`Ungültiger String: muss "${a.includes}" enthalten`:a.format==="regex"?`Ungültiger String: muss dem Muster ${a.pattern} entsprechen`:`Ungültig: ${i[a.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"}: ${se(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 CQ(){return{localeError:UQ()}}const RQ=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},MQ=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function t(i){return e[i]??null}const r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Invalid input: expected ${i.expected}, received ${RQ(i.input)}`;case"invalid_value":return i.values.length===1?`Invalid input: expected ${Ge(i.values[0])}`:`Invalid option: expected one of ${se(i.values,"|")}`;case"too_big":{const n=i.inclusive?"<=":"<",a=t(i.origin);return a?`Too big: expected ${i.origin??"value"} to have ${n}${i.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",a=t(i.origin);return a?`Too small: expected ${i.origin} to have ${n}${i.minimum.toString()} ${a.unit}`:`Too small: expected ${i.origin} to be ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`Invalid string: must start with "${n.prefix}"`:n.format==="ends_with"?`Invalid string: must end with "${n.suffix}"`:n.format==="includes"?`Invalid string: must include "${n.includes}"`:n.format==="regex"?`Invalid string: must match pattern ${n.pattern}`:`Invalid ${r[n.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${se(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function v4(){return{localeError:MQ()}}const LQ=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},PQ=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(i){return e[i]??null}const r={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"};return i=>{switch(i.code){case"invalid_type":return`Nevalida enigo: atendiĝis ${i.expected}, riceviĝis ${LQ(i.input)}`;case"invalid_value":return i.values.length===1?`Nevalida enigo: atendiĝis ${Ge(i.values[0])}`:`Nevalida opcio: atendiĝis unu el ${se(i.values,"|")}`;case"too_big":{const n=i.inclusive?"<=":"<",a=t(i.origin);return a?`Tro granda: atendiĝis ke ${i.origin??"valoro"} havu ${n}${i.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${i.origin??"valoro"} havu ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",a=t(i.origin);return a?`Tro malgranda: atendiĝis ke ${i.origin} havu ${n}${i.minimum.toString()} ${a.unit}`:`Tro malgranda: atendiĝis ke ${i.origin} estu ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${n.prefix}"`:n.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${n.suffix}"`:n.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${n.includes}"`:n.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${n.pattern}`:`Nevalida ${r[n.format]??i.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${i.divisor}`;case"unrecognized_keys":return`Nekonata${i.keys.length>1?"j":""} ŝlosilo${i.keys.length>1?"j":""}: ${se(i.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${i.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${i.origin}`;default:return"Nevalida enigo"}}};function ZQ(){return{localeError:PQ()}}const BQ=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},t={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"};function r(l){return e[l]??null}function i(l){return t[l]??l}const n=l=>{const d=typeof l;switch(d){case"number":return Number.isNaN(l)?"NaN":"number";case"object":return Array.isArray(l)?"array":l===null?"null":Object.getPrototypeOf(l)!==Object.prototype?l.constructor.name:"object"}return d},a={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"};return l=>{switch(l.code){case"invalid_type":return`Entrada inválida: se esperaba ${i(l.expected)}, recibido ${i(n(l.input))}`;case"invalid_value":return l.values.length===1?`Entrada inválida: se esperaba ${Ge(l.values[0])}`:`Opción inválida: se esperaba una de ${se(l.values,"|")}`;case"too_big":{const d=l.inclusive?"<=":"<",f=r(l.origin),m=i(l.origin);return f?`Demasiado grande: se esperaba que ${m??"valor"} tuviera ${d}${l.maximum.toString()} ${f.unit??"elementos"}`:`Demasiado grande: se esperaba que ${m??"valor"} fuera ${d}${l.maximum.toString()}`}case"too_small":{const d=l.inclusive?">=":">",f=r(l.origin),m=i(l.origin);return f?`Demasiado pequeño: se esperaba que ${m} tuviera ${d}${l.minimum.toString()} ${f.unit}`:`Demasiado pequeño: se esperaba que ${m} fuera ${d}${l.minimum.toString()}`}case"invalid_format":{const d=l;return d.format==="starts_with"?`Cadena inválida: debe comenzar con "${d.prefix}"`:d.format==="ends_with"?`Cadena inválida: debe terminar en "${d.suffix}"`:d.format==="includes"?`Cadena inválida: debe incluir "${d.includes}"`:d.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${d.pattern}`:`Inválido ${a[d.format]??l.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${l.divisor}`;case"unrecognized_keys":return`Llave${l.keys.length>1?"s":""} desconocida${l.keys.length>1?"s":""}: ${se(l.keys,", ")}`;case"invalid_key":return`Llave inválida en ${i(l.origin)}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${i(l.origin)}`;default:return"Entrada inválida"}}};function FQ(){return{localeError:BQ()}}const VQ=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"عدد";case"object":{if(Array.isArray(n))return"آرایه";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"ورودی"};return n=>{switch(n.code){case"invalid_type":return`ورودی نامعتبر: میبایست ${n.expected} میبود، ${r(n.input)} دریافت شد`;case"invalid_value":return n.values.length===1?`ورودی نامعتبر: میبایست ${Ge(n.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${se(n.values,"|")} میبود`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`خیلی بزرگ: ${n.origin??"مقدار"} باید ${a}${n.maximum.toString()} ${l.unit??"عنصر"} باشد`:`خیلی بزرگ: ${n.origin??"مقدار"} باید ${a}${n.maximum.toString()} باشد`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`خیلی کوچک: ${n.origin} باید ${a}${n.minimum.toString()} ${l.unit} باشد`:`خیلی کوچک: ${n.origin} باید ${a}${n.minimum.toString()} باشد`}case"invalid_format":{const a=n;return a.format==="starts_with"?`رشته نامعتبر: باید با "${a.prefix}" شروع شود`:a.format==="ends_with"?`رشته نامعتبر: باید با "${a.suffix}" تمام شود`:a.format==="includes"?`رشته نامعتبر: باید شامل "${a.includes}" باشد`:a.format==="regex"?`رشته نامعتبر: باید با الگوی ${a.pattern} مطابقت داشته باشد`:`${i[a.format]??n.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${n.divisor} باشد`;case"unrecognized_keys":return`کلید${n.keys.length>1?"های":""} ناشناس: ${se(n.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${n.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${n.origin}`;default:return"ورودی نامعتبر"}}};function qQ(){return{localeError:VQ()}}const GQ=()=>{const e={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 t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${n.expected}, oli ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Virheellinen syöte: täytyy olla ${Ge(n.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Liian suuri: ${l.subject} täytyy olla ${a}${n.maximum.toString()} ${l.unit}`.trim():`Liian suuri: arvon täytyy olla ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Liian pieni: ${l.subject} täytyy olla ${a}${n.minimum.toString()} ${l.unit}`.trim():`Liian pieni: arvon täytyy olla ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${a.prefix}"`:a.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${a.suffix}"`:a.format==="includes"?`Virheellinen syöte: täytyy sisältää "${a.includes}"`:a.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${a.pattern}`:`Virheellinen ${i[a.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"}: ${se(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 HQ(){return{localeError:GQ()}}const KQ=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"nombre";case"object":{if(Array.isArray(n))return"tableau";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Entrée invalide : ${n.expected} attendu, ${r(n.input)} reçu`;case"invalid_value":return n.values.length===1?`Entrée invalide : ${Ge(n.values[0])} attendu`:`Option invalide : une valeur parmi ${se(n.values,"|")} attendue`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Trop grand : ${n.origin??"valeur"} doit ${l.verb} ${a}${n.maximum.toString()} ${l.unit??"élément(s)"}`:`Trop grand : ${n.origin??"valeur"} doit être ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Trop petit : ${n.origin} doit ${l.verb} ${a}${n.minimum.toString()} ${l.unit}`:`Trop petit : ${n.origin} doit être ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Chaîne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Chaîne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Chaîne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${a.pattern}`:`${i[a.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":""} : ${se(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 JQ(){return{localeError:KQ()}}const YQ=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Entrée invalide : attendu ${n.expected}, reçu ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Entrée invalide : attendu ${Ge(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"≤":"<",l=t(n.origin);return l?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${a}${n.maximum.toString()} ${l.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?"≥":">",l=t(n.origin);return l?`Trop petit : attendu que ${n.origin} ait ${a}${n.minimum.toString()} ${l.unit}`:`Trop petit : attendu que ${n.origin} soit ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Chaîne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Chaîne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Chaîne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Chaîne invalide : doit correspondre au motif ${a.pattern}`:`${i[a.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":""} : ${se(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 XQ(){return{localeError:YQ()}}const QQ=()=>{const e={string:{unit:"אותיות",verb:"לכלול"},file:{unit:"בייטים",verb:"לכלול"},array:{unit:"פריטים",verb:"לכלול"},set:{unit:"פריטים",verb:"לכלול"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"מחרוזת בבסיס 64",base64url:"מחרוזת בבסיס 64 לכתובות רשת",json_string:"מחרוזת JSON",e164:"מספר E.164",jwt:"JWT",template_literal:"קלט"};return n=>{switch(n.code){case"invalid_type":return`קלט לא תקין: צריך ${n.expected}, התקבל ${r(n.input)}`;case"invalid_value":return n.values.length===1?`קלט לא תקין: צריך ${Ge(n.values[0])}`:`קלט לא תקין: צריך אחת מהאפשרויות ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`גדול מדי: ${n.origin??"value"} צריך להיות ${a}${n.maximum.toString()} ${l.unit??"elements"}`:`גדול מדי: ${n.origin??"value"} צריך להיות ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`קטן מדי: ${n.origin} צריך להיות ${a}${n.minimum.toString()} ${l.unit}`:`קטן מדי: ${n.origin} צריך להיות ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`מחרוזת לא תקינה: חייבת להתחיל ב"${a.prefix}"`:a.format==="ends_with"?`מחרוזת לא תקינה: חייבת להסתיים ב "${a.suffix}"`:a.format==="includes"?`מחרוזת לא תקינה: חייבת לכלול "${a.includes}"`:a.format==="regex"?`מחרוזת לא תקינה: חייבת להתאים לתבנית ${a.pattern}`:`${i[a.format]??n.format} לא תקין`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${n.divisor}`;case"unrecognized_keys":return`מפתח${n.keys.length>1?"ות":""} לא מזוה${n.keys.length>1?"ים":"ה"}: ${se(n.keys,", ")}`;case"invalid_key":return`מפתח לא תקין ב${n.origin}`;case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${n.origin}`;default:return"קלט לא תקין"}}};function WQ(){return{localeError:QQ()}}const eW=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"szám";case"object":{if(Array.isArray(n))return"tömb";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${n.expected}, a kapott érték ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Érvénytelen bemenet: a várt érték ${Ge(n.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Túl nagy: ${n.origin??"érték"} mérete túl nagy ${a}${n.maximum.toString()} ${l.unit??"elem"}`:`Túl nagy: a bemeneti érték ${n.origin??"érték"} túl nagy: ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Túl kicsi: a bemeneti érték ${n.origin} mérete túl kicsi ${a}${n.minimum.toString()} ${l.unit}`:`Túl kicsi: a bemeneti érték ${n.origin} túl kicsi ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Érvénytelen string: "${a.prefix}" értékkel kell kezdődnie`:a.format==="ends_with"?`Érvénytelen string: "${a.suffix}" értékkel kell végződnie`:a.format==="includes"?`Érvénytelen string: "${a.includes}" értéket kell tartalmaznia`:a.format==="regex"?`Érvénytelen string: ${a.pattern} mintának kell megfelelnie`:`Érvénytelen ${i[a.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":""}: ${se(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 tW(){return{localeError:eW()}}const nW=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Input tidak valid: diharapkan ${n.expected}, diterima ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${Ge(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${a}${n.maximum.toString()} ${l.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Terlalu kecil: diharapkan ${n.origin} memiliki ${a}${n.minimum.toString()} ${l.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`String tidak valid: harus dimulai dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak valid: harus berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak valid: harus menyertakan "${a.includes}"`:a.format==="regex"?`String tidak valid: harus sesuai pola ${a.pattern}`:`${i[a.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":""}: ${se(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 rW(){return{localeError:nW()}}const iW=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"númer";case"object":{if(Array.isArray(e))return"fylki";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},aW=()=>{const e={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 t(i){return e[i]??null}const r={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"};return i=>{switch(i.code){case"invalid_type":return`Rangt gildi: Þú slóst inn ${iW(i.input)} þar sem á að vera ${i.expected}`;case"invalid_value":return i.values.length===1?`Rangt gildi: gert ráð fyrir ${Ge(i.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${se(i.values,"|")}`;case"too_big":{const n=i.inclusive?"<=":"<",a=t(i.origin);return a?`Of stórt: gert er ráð fyrir að ${i.origin??"gildi"} hafi ${n}${i.maximum.toString()} ${a.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${i.origin??"gildi"} sé ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",a=t(i.origin);return a?`Of lítið: gert er ráð fyrir að ${i.origin} hafi ${n}${i.minimum.toString()} ${a.unit}`:`Of lítið: gert er ráð fyrir að ${i.origin} sé ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`Ógildur strengur: verður að byrja á "${n.prefix}"`:n.format==="ends_with"?`Ógildur strengur: verður að enda á "${n.suffix}"`:n.format==="includes"?`Ógildur strengur: verður að innihalda "${n.includes}"`:n.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${n.pattern}`:`Rangt ${r[n.format]??i.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${i.divisor}`;case"unrecognized_keys":return`Óþekkt ${i.keys.length>1?"ir lyklar":"ur lykill"}: ${se(i.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${i.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${i.origin}`;default:return"Rangt gildi"}}};function oW(){return{localeError:aW()}}const uW=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"numero";case"object":{if(Array.isArray(n))return"vettore";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Input non valido: atteso ${n.expected}, ricevuto ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input non valido: atteso ${Ge(n.values[0])}`:`Opzione non valida: atteso uno tra ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Troppo grande: ${n.origin??"valore"} deve avere ${a}${n.maximum.toString()} ${l.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Troppo piccolo: ${n.origin} deve avere ${a}${n.minimum.toString()} ${l.unit}`:`Troppo piccolo: ${n.origin} deve essere ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Stringa non valida: deve iniziare con "${a.prefix}"`:a.format==="ends_with"?`Stringa non valida: deve terminare con "${a.suffix}"`:a.format==="includes"?`Stringa non valida: deve includere "${a.includes}"`:a.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${a.pattern}`:`Invalid ${i[a.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"}: ${se(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 lW(){return{localeError:uW()}}const sW=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"数値";case"object":{if(Array.isArray(n))return"配列";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"入力値"};return n=>{switch(n.code){case"invalid_type":return`無効な入力: ${n.expected}が期待されましたが、${r(n.input)}が入力されました`;case"invalid_value":return n.values.length===1?`無効な入力: ${Ge(n.values[0])}が期待されました`:`無効な選択: ${se(n.values,"、")}のいずれかである必要があります`;case"too_big":{const a=n.inclusive?"以下である":"より小さい",l=t(n.origin);return l?`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${l.unit??"要素"}${a}必要があります`:`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${a}必要があります`}case"too_small":{const a=n.inclusive?"以上である":"より大きい",l=t(n.origin);return l?`小さすぎる値: ${n.origin}は${n.minimum.toString()}${l.unit}${a}必要があります`:`小さすぎる値: ${n.origin}は${n.minimum.toString()}${a}必要があります`}case"invalid_format":{const a=n;return a.format==="starts_with"?`無効な文字列: "${a.prefix}"で始まる必要があります`:a.format==="ends_with"?`無効な文字列: "${a.suffix}"で終わる必要があります`:a.format==="includes"?`無効な文字列: "${a.includes}"を含む必要があります`:a.format==="regex"?`無効な文字列: パターン${a.pattern}に一致する必要があります`:`無効な${i[a.format]??n.format}`}case"not_multiple_of":return`無効な数値: ${n.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${n.keys.length>1?"群":""}: ${se(n.keys,"、")}`;case"invalid_key":return`${n.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${n.origin}内の無効な値`;default:return"無効な入力"}}};function cW(){return{localeError:sW()}}const dW=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"რიცხვი";case"object":{if(Array.isArray(e))return"მასივი";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return{string:"სტრინგი",boolean:"ბულეანი",undefined:"undefined",bigint:"bigint",symbol:"symbol",function:"ფუნქცია"}[t]??t},fW=()=>{const e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function t(i){return e[i]??null}const r={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:"შეყვანა"};return i=>{switch(i.code){case"invalid_type":return`არასწორი შეყვანა: მოსალოდნელი ${i.expected}, მიღებული ${dW(i.input)}`;case"invalid_value":return i.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${Ge(i.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${se(i.values,"|")}-დან`;case"too_big":{const n=i.inclusive?"<=":"<",a=t(i.origin);return a?`ზედმეტად დიდი: მოსალოდნელი ${i.origin??"მნიშვნელობა"} ${a.verb} ${n}${i.maximum.toString()} ${a.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${i.origin??"მნიშვნელობა"} იყოს ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",a=t(i.origin);return a?`ზედმეტად პატარა: მოსალოდნელი ${i.origin} ${a.verb} ${n}${i.minimum.toString()} ${a.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${i.origin} იყოს ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`არასწორი სტრინგი: უნდა იწყებოდეს "${n.prefix}"-ით`:n.format==="ends_with"?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${n.suffix}"-ით`:n.format==="includes"?`არასწორი სტრინგი: უნდა შეიცავდეს "${n.includes}"-ს`:n.format==="regex"?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${n.pattern}`:`არასწორი ${r[n.format]??i.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${i.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${i.keys.length>1?"ები":"ი"}: ${se(i.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${i.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${i.origin}-ში`;default:return"არასწორი შეყვანა"}}};function mW(){return{localeError:fW()}}const hW=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":{if(Array.isArray(n))return"អារេ (Array)";if(n===null)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"ទិន្នន័យបញ្ចូល"};return n=>{switch(n.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${n.expected} ប៉ុន្តែទទួលបាន ${r(n.input)}`;case"invalid_value":return n.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${Ge(n.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${a} ${n.maximum.toString()} ${l.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${a} ${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`តូចពេក៖ ត្រូវការ ${n.origin} ${a} ${n.minimum.toString()} ${l.unit}`:`តូចពេក៖ ត្រូវការ ${n.origin} ${a} ${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${a.prefix}"`:a.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${a.suffix}"`:a.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${a.includes}"`:a.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${a.pattern}`:`មិនត្រឹមត្រូវ៖ ${i[a.format]??n.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${n.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${se(n.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function p4(){return{localeError:hW()}}function vW(){return p4()}const pW=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"입력"};return n=>{switch(n.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${n.expected}, 받은 타입은 ${r(n.input)}입니다`;case"invalid_value":return n.values.length===1?`잘못된 입력: 값은 ${Ge(n.values[0])} 이어야 합니다`:`잘못된 옵션: ${se(n.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const a=n.inclusive?"이하":"미만",l=a==="미만"?"이어야 합니다":"여야 합니다",d=t(n.origin),f=(d==null?void 0:d.unit)??"요소";return d?`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()}${f} ${a}${l}`:`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()} ${a}${l}`}case"too_small":{const a=n.inclusive?"이상":"초과",l=a==="이상"?"이어야 합니다":"여야 합니다",d=t(n.origin),f=(d==null?void 0:d.unit)??"요소";return d?`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()}${f} ${a}${l}`:`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()} ${a}${l}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`잘못된 문자열: "${a.prefix}"(으)로 시작해야 합니다`:a.format==="ends_with"?`잘못된 문자열: "${a.suffix}"(으)로 끝나야 합니다`:a.format==="includes"?`잘못된 문자열: "${a.includes}"을(를) 포함해야 합니다`:a.format==="regex"?`잘못된 문자열: 정규식 ${a.pattern} 패턴과 일치해야 합니다`:`잘못된 ${i[a.format]??n.format}`}case"not_multiple_of":return`잘못된 숫자: ${n.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${se(n.keys,", ")}`;case"invalid_key":return`잘못된 키: ${n.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${n.origin}`;default:return"잘못된 입력"}}};function gW(){return{localeError:pW()}}const yW=e=>Rc(typeof e,e),Rc=(e,t=void 0)=>{switch(e){case"number":return Number.isNaN(t)?"NaN":"skaičius";case"bigint":return"sveikasis skaičius";case"string":return"eilutė";case"boolean":return"loginė reikšmė";case"undefined":case"void":return"neapibrėžta reikšmė";case"function":return"funkcija";case"symbol":return"simbolis";case"object":return t===void 0?"nežinomas objektas":t===null?"nulinė reikšmė":Array.isArray(t)?"masyvas":Object.getPrototypeOf(t)!==Object.prototype&&t.constructor?t.constructor.name:"objektas";case"null":return"nulinė reikšmė"}return e},Tc=e=>e.charAt(0).toUpperCase()+e.slice(1);function cj(e){const t=Math.abs(e),r=t%10,i=t%100;return i>=11&&i<=19||r===0?"many":r===1?"one":"few"}const bW=()=>{const e={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 t(i,n,a,l){const d=e[i]??null;return d===null?d:{unit:d.unit[n],verb:d.verb[l][a?"inclusive":"notInclusive"]}}const r={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"};return i=>{switch(i.code){case"invalid_type":return`Gautas tipas ${yW(i.input)}, o tikėtasi - ${Rc(i.expected)}`;case"invalid_value":return i.values.length===1?`Privalo būti ${Ge(i.values[0])}`:`Privalo būti vienas iš ${se(i.values,"|")} pasirinkimų`;case"too_big":{const n=Rc(i.origin),a=t(i.origin,cj(Number(i.maximum)),i.inclusive??!1,"smaller");if(a!=null&&a.verb)return`${Tc(n??i.origin??"reikšmė")} ${a.verb} ${i.maximum.toString()} ${a.unit??"elementų"}`;const l=i.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${Tc(n??i.origin??"reikšmė")} turi būti ${l} ${i.maximum.toString()} ${a==null?void 0:a.unit}`}case"too_small":{const n=Rc(i.origin),a=t(i.origin,cj(Number(i.minimum)),i.inclusive??!1,"bigger");if(a!=null&&a.verb)return`${Tc(n??i.origin??"reikšmė")} ${a.verb} ${i.minimum.toString()} ${a.unit??"elementų"}`;const l=i.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${Tc(n??i.origin??"reikšmė")} turi būti ${l} ${i.minimum.toString()} ${a==null?void 0:a.unit}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`Eilutė privalo prasidėti "${n.prefix}"`:n.format==="ends_with"?`Eilutė privalo pasibaigti "${n.suffix}"`:n.format==="includes"?`Eilutė privalo įtraukti "${n.includes}"`:n.format==="regex"?`Eilutė privalo atitikti ${n.pattern}`:`Neteisingas ${r[n.format]??i.format}`}case"not_multiple_of":return`Skaičius privalo būti ${i.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${i.keys.length>1?"i":"as"} rakt${i.keys.length>1?"ai":"as"}: ${se(i.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const n=Rc(i.origin);return`${Tc(n??i.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function _W(){return{localeError:bW()}}const $W=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"број";case"object":{if(Array.isArray(n))return"низа";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"внес"};return n=>{switch(n.code){case"invalid_type":return`Грешен внес: се очекува ${n.expected}, примено ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Invalid input: expected ${Ge(n.values[0])}`:`Грешана опција: се очекува една ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Премногу голем: се очекува ${n.origin??"вредноста"} да има ${a}${n.maximum.toString()} ${l.unit??"елементи"}`:`Премногу голем: се очекува ${n.origin??"вредноста"} да биде ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Премногу мал: се очекува ${n.origin} да има ${a}${n.minimum.toString()} ${l.unit}`:`Премногу мал: се очекува ${n.origin} да биде ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Неважечка низа: мора да започнува со "${a.prefix}"`:a.format==="ends_with"?`Неважечка низа: мора да завршува со "${a.suffix}"`:a.format==="includes"?`Неважечка низа: мора да вклучува "${a.includes}"`:a.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${a.pattern}`:`Invalid ${i[a.format]??n.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${se(n.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${n.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${n.origin}`;default:return"Грешен внес"}}};function SW(){return{localeError:$W()}}const kW=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"nombor";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Input tidak sah: dijangka ${n.expected}, diterima ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${Ge(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Terlalu besar: dijangka ${n.origin??"nilai"} ${l.verb} ${a}${n.maximum.toString()} ${l.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Terlalu kecil: dijangka ${n.origin} ${l.verb} ${a}${n.minimum.toString()} ${l.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`String tidak sah: mesti bermula dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak sah: mesti mengandungi "${a.includes}"`:a.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${a.pattern}`:`${i[a.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${se(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 wW(){return{localeError:kW()}}const xW=()=>{const e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"getal";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Ongeldige invoer: verwacht ${n.expected}, ontving ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${Ge(n.values[0])}`:`Ongeldige optie: verwacht één van ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Te lang: verwacht dat ${n.origin??"waarde"} ${a}${n.maximum.toString()} ${l.unit??"elementen"} bevat`:`Te lang: verwacht dat ${n.origin??"waarde"} ${a}${n.maximum.toString()} is`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Te kort: verwacht dat ${n.origin} ${a}${n.minimum.toString()} ${l.unit} bevat`:`Te kort: verwacht dat ${n.origin} ${a}${n.minimum.toString()} is`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Ongeldige tekst: moet met "${a.prefix}" beginnen`:a.format==="ends_with"?`Ongeldige tekst: moet op "${a.suffix}" eindigen`:a.format==="includes"?`Ongeldige tekst: moet "${a.includes}" bevatten`:a.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${a.pattern}`:`Ongeldig: ${i[a.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":""}: ${se(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 OW(){return{localeError:xW()}}const EW=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"tall";case"object":{if(Array.isArray(n))return"liste";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Ugyldig input: forventet ${n.expected}, fikk ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${Ge(n.values[0])}`:`Ugyldig valg: forventet en av ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`For stor(t): forventet ${n.origin??"value"} til å ha ${a}${n.maximum.toString()} ${l.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til å ha ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`For lite(n): forventet ${n.origin} til å ha ${a}${n.minimum.toString()} ${l.unit}`:`For lite(n): forventet ${n.origin} til å ha ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Ugyldig streng: må starte med "${a.prefix}"`:a.format==="ends_with"?`Ugyldig streng: må ende med "${a.suffix}"`:a.format==="includes"?`Ugyldig streng: må inneholde "${a.includes}"`:a.format==="regex"?`Ugyldig streng: må matche mønsteret ${a.pattern}`:`Ugyldig ${i[a.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"}: ${se(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 NW(){return{localeError:EW()}}const jW=()=>{const e={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 t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"numara";case"object":{if(Array.isArray(n))return"saf";if(n===null)return"gayb";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Fâsit giren: umulan ${n.expected}, alınan ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Fâsit giren: umulan ${Ge(n.values[0])}`:`Fâsit tercih: mûteberler ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Fazla büyük: ${n.origin??"value"}, ${a}${n.maximum.toString()} ${l.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${n.origin??"value"}, ${a}${n.maximum.toString()} olmalıydı.`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Fazla küçük: ${n.origin}, ${a}${n.minimum.toString()} ${l.unit} sahip olmalıydı.`:`Fazla küçük: ${n.origin}, ${a}${n.minimum.toString()} olmalıydı.`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Fâsit metin: "${a.prefix}" ile başlamalı.`:a.format==="ends_with"?`Fâsit metin: "${a.suffix}" ile bitmeli.`:a.format==="includes"?`Fâsit metin: "${a.includes}" ihtivâ etmeli.`:a.format==="regex"?`Fâsit metin: ${a.pattern} nakşına uymalı.`:`Fâsit ${i[a.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":""}: ${se(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 IW(){return{localeError:jW()}}const TW=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"عدد";case"object":{if(Array.isArray(n))return"ارې";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"ورودي"};return n=>{switch(n.code){case"invalid_type":return`ناسم ورودي: باید ${n.expected} وای, مګر ${r(n.input)} ترلاسه شو`;case"invalid_value":return n.values.length===1?`ناسم ورودي: باید ${Ge(n.values[0])} وای`:`ناسم انتخاب: باید یو له ${se(n.values,"|")} څخه وای`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`ډیر لوی: ${n.origin??"ارزښت"} باید ${a}${n.maximum.toString()} ${l.unit??"عنصرونه"} ولري`:`ډیر لوی: ${n.origin??"ارزښت"} باید ${a}${n.maximum.toString()} وي`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`ډیر کوچنی: ${n.origin} باید ${a}${n.minimum.toString()} ${l.unit} ولري`:`ډیر کوچنی: ${n.origin} باید ${a}${n.minimum.toString()} وي`}case"invalid_format":{const a=n;return a.format==="starts_with"?`ناسم متن: باید د "${a.prefix}" سره پیل شي`:a.format==="ends_with"?`ناسم متن: باید د "${a.suffix}" سره پای ته ورسيږي`:a.format==="includes"?`ناسم متن: باید "${a.includes}" ولري`:a.format==="regex"?`ناسم متن: باید د ${a.pattern} سره مطابقت ولري`:`${i[a.format]??n.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${n.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${n.keys.length>1?"کلیډونه":"کلیډ"}: ${se(n.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${n.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${n.origin} کې`;default:return"ناسمه ورودي"}}};function zW(){return{localeError:TW()}}const AW=()=>{const e={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 t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"liczba";case"object":{if(Array.isArray(n))return"tablica";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${n.expected}, otrzymano ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${Ge(n.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Za duża wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${a}${n.maximum.toString()} ${l.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Za mała wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${a}${n.minimum.toString()} ${l.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${a.prefix}"`:a.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${a.suffix}"`:a.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${a.includes}"`:a.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${a.pattern}`:`Nieprawidłow(y/a/e) ${i[a.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":""}: ${se(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 DW(){return{localeError:AW()}}const UW=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"número";case"object":{if(Array.isArray(n))return"array";if(n===null)return"nulo";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Tipo inválido: esperado ${n.expected}, recebido ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Entrada inválida: esperado ${Ge(n.values[0])}`:`Opção inválida: esperada uma das ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${a}${n.maximum.toString()} ${l.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Muito pequeno: esperado que ${n.origin} tivesse ${a}${n.minimum.toString()} ${l.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Texto inválido: deve começar com "${a.prefix}"`:a.format==="ends_with"?`Texto inválido: deve terminar com "${a.suffix}"`:a.format==="includes"?`Texto inválido: deve incluir "${a.includes}"`:a.format==="regex"?`Texto inválido: deve corresponder ao padrão ${a.pattern}`:`${i[a.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":""}: ${se(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 CW(){return{localeError:UW()}}function dj(e,t,r,i){const n=Math.abs(e),a=n%10,l=n%100;return l>=11&&l<=19?i:a===1?t:a>=2&&a<=4?r:i}const RW=()=>{const e={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 t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"число";case"object":{if(Array.isArray(n))return"массив";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"ввод"};return n=>{switch(n.code){case"invalid_type":return`Неверный ввод: ожидалось ${n.expected}, получено ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Неверный ввод: ожидалось ${Ge(n.values[0])}`:`Неверный вариант: ожидалось одно из ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);if(l){const d=Number(n.maximum),f=dj(d,l.unit.one,l.unit.few,l.unit.many);return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет иметь ${a}${n.maximum.toString()} ${f}`}return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);if(l){const d=Number(n.minimum),f=dj(d,l.unit.one,l.unit.few,l.unit.many);return`Слишком маленькое значение: ожидалось, что ${n.origin} будет иметь ${a}${n.minimum.toString()} ${f}`}return`Слишком маленькое значение: ожидалось, что ${n.origin} будет ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Неверная строка: должна начинаться с "${a.prefix}"`:a.format==="ends_with"?`Неверная строка: должна заканчиваться на "${a.suffix}"`:a.format==="includes"?`Неверная строка: должна содержать "${a.includes}"`:a.format==="regex"?`Неверная строка: должна соответствовать шаблону ${a.pattern}`:`Неверный ${i[a.format]??n.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспознанн${n.keys.length>1?"ые":"ый"} ключ${n.keys.length>1?"и":""}: ${se(n.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${n.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${n.origin}`;default:return"Неверные входные данные"}}};function MW(){return{localeError:RW()}}const LW=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"število";case"object":{if(Array.isArray(n))return"tabela";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${n.expected}, prejeto ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Neveljaven vnos: pričakovano ${Ge(n.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} imelo ${a}${n.maximum.toString()} ${l.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Premajhno: pričakovano, da bo ${n.origin} imelo ${a}${n.minimum.toString()} ${l.unit}`:`Premajhno: pričakovano, da bo ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Neveljaven niz: mora se začeti z "${a.prefix}"`:a.format==="ends_with"?`Neveljaven niz: mora se končati z "${a.suffix}"`:a.format==="includes"?`Neveljaven niz: mora vsebovati "${a.includes}"`:a.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${a.pattern}`:`Neveljaven ${i[a.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č"}: ${se(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 PW(){return{localeError:LW()}}const ZW=()=>{const e={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 t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"antal";case"object":{if(Array.isArray(n))return"lista";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${n.expected}, fick ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ogiltig inmatning: förväntat ${Ge(n.values[0])}`:`Ogiltigt val: förväntade en av ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`För stor(t): förväntade ${n.origin??"värdet"} att ha ${a}${n.maximum.toString()} ${l.unit??"element"}`:`För stor(t): förväntat ${n.origin??"värdet"} att ha ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`För lite(t): förväntade ${n.origin??"värdet"} att ha ${a}${n.minimum.toString()} ${l.unit}`:`För lite(t): förväntade ${n.origin??"värdet"} att ha ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Ogiltig sträng: måste börja med "${a.prefix}"`:a.format==="ends_with"?`Ogiltig sträng: måste sluta med "${a.suffix}"`:a.format==="includes"?`Ogiltig sträng: måste innehålla "${a.includes}"`:a.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${a.pattern}"`:`Ogiltig(t) ${i[a.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"}: ${se(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 BW(){return{localeError:ZW()}}const FW=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"எண் அல்லாதது":"எண்";case"object":{if(Array.isArray(n))return"அணி";if(n===null)return"வெறுமை";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${n.expected}, பெறப்பட்டது ${r(n.input)}`;case"invalid_value":return n.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${Ge(n.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${se(n.values,"|")} இல் ஒன்று`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${a}${n.maximum.toString()} ${l.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${a}${n.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${a}${n.minimum.toString()} ${l.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${a}${n.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const a=n;return a.format==="starts_with"?`தவறான சரம்: "${a.prefix}" இல் தொடங்க வேண்டும்`:a.format==="ends_with"?`தவறான சரம்: "${a.suffix}" இல் முடிவடைய வேண்டும்`:a.format==="includes"?`தவறான சரம்: "${a.includes}" ஐ உள்ளடக்க வேண்டும்`:a.format==="regex"?`தவறான சரம்: ${a.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${i[a.format]??n.format}`}case"not_multiple_of":return`தவறான எண்: ${n.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${n.keys.length>1?"கள்":""}: ${se(n.keys,", ")}`;case"invalid_key":return`${n.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${n.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function VW(){return{localeError:FW()}}const qW=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";case"object":{if(Array.isArray(n))return"อาร์เรย์ (Array)";if(n===null)return"ไม่มีค่า (null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"ข้อมูลที่ป้อน"};return n=>{switch(n.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${n.expected} แต่ได้รับ ${r(n.input)}`;case"invalid_value":return n.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${Ge(n.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"ไม่เกิน":"น้อยกว่า",l=t(n.origin);return l?`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${a} ${n.maximum.toString()} ${l.unit??"รายการ"}`:`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${a} ${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?"อย่างน้อย":"มากกว่า",l=t(n.origin);return l?`น้อยกว่ากำหนด: ${n.origin} ควรมี${a} ${n.minimum.toString()} ${l.unit}`:`น้อยกว่ากำหนด: ${n.origin} ควรมี${a} ${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${a.prefix}"`:a.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${a.suffix}"`:a.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${a.includes}" อยู่ในข้อความ`:a.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${a.pattern}`:`รูปแบบไม่ถูกต้อง: ${i[a.format]??n.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${n.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${se(n.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${n.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${n.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function GW(){return{localeError:qW()}}const HW=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},KW=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function t(i){return e[i]??null}const r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO sü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"};return i=>{switch(i.code){case"invalid_type":return`Geçersiz değer: beklenen ${i.expected}, alınan ${HW(i.input)}`;case"invalid_value":return i.values.length===1?`Geçersiz değer: beklenen ${Ge(i.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${se(i.values,"|")}`;case"too_big":{const n=i.inclusive?"<=":"<",a=t(i.origin);return a?`Çok büyük: beklenen ${i.origin??"değer"} ${n}${i.maximum.toString()} ${a.unit??"öğe"}`:`Çok büyük: beklenen ${i.origin??"değer"} ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",a=t(i.origin);return a?`Çok küçük: beklenen ${i.origin} ${n}${i.minimum.toString()} ${a.unit}`:`Çok küçük: beklenen ${i.origin} ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`Geçersiz metin: "${n.prefix}" ile başlamalı`:n.format==="ends_with"?`Geçersiz metin: "${n.suffix}" ile bitmeli`:n.format==="includes"?`Geçersiz metin: "${n.includes}" içermeli`:n.format==="regex"?`Geçersiz metin: ${n.pattern} desenine uymalı`:`Geçersiz ${r[n.format]??i.format}`}case"not_multiple_of":return`Geçersiz sayı: ${i.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${i.keys.length>1?"lar":""}: ${se(i.keys,", ")}`;case"invalid_key":return`${i.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${i.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function JW(){return{localeError:KW()}}const YW=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"число";case"object":{if(Array.isArray(n))return"масив";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"вхідні дані"};return n=>{switch(n.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${n.expected}, отримано ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Неправильні вхідні дані: очікується ${Ge(n.values[0])}`:`Неправильна опція: очікується одне з ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Занадто велике: очікується, що ${n.origin??"значення"} ${l.verb} ${a}${n.maximum.toString()} ${l.unit??"елементів"}`:`Занадто велике: очікується, що ${n.origin??"значення"} буде ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Занадто мале: очікується, що ${n.origin} ${l.verb} ${a}${n.minimum.toString()} ${l.unit}`:`Занадто мале: очікується, що ${n.origin} буде ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Неправильний рядок: повинен починатися з "${a.prefix}"`:a.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${a.suffix}"`:a.format==="includes"?`Неправильний рядок: повинен містити "${a.includes}"`:a.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${a.pattern}`:`Неправильний ${i[a.format]??n.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${n.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${n.keys.length>1?"і":""}: ${se(n.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${n.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${n.origin}`;default:return"Неправильні вхідні дані"}}};function g4(){return{localeError:YW()}}function XW(){return g4()}const QW=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"نمبر";case"object":{if(Array.isArray(n))return"آرے";if(n===null)return"نل";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"ان پٹ"};return n=>{switch(n.code){case"invalid_type":return`غلط ان پٹ: ${n.expected} متوقع تھا، ${r(n.input)} موصول ہوا`;case"invalid_value":return n.values.length===1?`غلط ان پٹ: ${Ge(n.values[0])} متوقع تھا`:`غلط آپشن: ${se(n.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`بہت بڑا: ${n.origin??"ویلیو"} کے ${a}${n.maximum.toString()} ${l.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${n.origin??"ویلیو"} کا ${a}${n.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`بہت چھوٹا: ${n.origin} کے ${a}${n.minimum.toString()} ${l.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${n.origin} کا ${a}${n.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const a=n;return a.format==="starts_with"?`غلط سٹرنگ: "${a.prefix}" سے شروع ہونا چاہیے`:a.format==="ends_with"?`غلط سٹرنگ: "${a.suffix}" پر ختم ہونا چاہیے`:a.format==="includes"?`غلط سٹرنگ: "${a.includes}" شامل ہونا چاہیے`:a.format==="regex"?`غلط سٹرنگ: پیٹرن ${a.pattern} سے میچ ہونا چاہیے`:`غلط ${i[a.format]??n.format}`}case"not_multiple_of":return`غلط نمبر: ${n.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${n.keys.length>1?"ز":""}: ${se(n.keys,"، ")}`;case"invalid_key":return`${n.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${n.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function WW(){return{localeError:QW()}}const eee=()=>{const e={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 t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"số";case"object":{if(Array.isArray(n))return"mảng";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${n.expected}, nhận được ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Đầu vào không hợp lệ: mong đợi ${Ge(n.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Quá lớn: mong đợi ${n.origin??"giá trị"} ${l.verb} ${a}${n.maximum.toString()} ${l.unit??"phần tử"}`:`Quá lớn: mong đợi ${n.origin??"giá trị"} ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Quá nhỏ: mong đợi ${n.origin} ${l.verb} ${a}${n.minimum.toString()} ${l.unit}`:`Quá nhỏ: mong đợi ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${a.prefix}"`:a.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${a.suffix}"`:a.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${a.includes}"`:a.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${a.pattern}`:`${i[a.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: ${se(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 tee(){return{localeError:eee()}}const nee=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"非数字(NaN)":"数字";case"object":{if(Array.isArray(n))return"数组";if(n===null)return"空值(null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"输入"};return n=>{switch(n.code){case"invalid_type":return`无效输入:期望 ${n.expected},实际接收 ${r(n.input)}`;case"invalid_value":return n.values.length===1?`无效输入:期望 ${Ge(n.values[0])}`:`无效选项:期望以下之一 ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`数值过大:期望 ${n.origin??"值"} ${a}${n.maximum.toString()} ${l.unit??"个元素"}`:`数值过大:期望 ${n.origin??"值"} ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`数值过小:期望 ${n.origin} ${a}${n.minimum.toString()} ${l.unit}`:`数值过小:期望 ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`无效字符串:必须以 "${a.prefix}" 开头`:a.format==="ends_with"?`无效字符串:必须以 "${a.suffix}" 结尾`:a.format==="includes"?`无效字符串:必须包含 "${a.includes}"`:a.format==="regex"?`无效字符串:必须满足正则表达式 ${a.pattern}`:`无效${i[a.format]??n.format}`}case"not_multiple_of":return`无效数字:必须是 ${n.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${se(n.keys,", ")}`;case"invalid_key":return`${n.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${n.origin} 中包含无效值(value)`;default:return"无效输入"}}};function ree(){return{localeError:nee()}}const iee=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"輸入"};return n=>{switch(n.code){case"invalid_type":return`無效的輸入值:預期為 ${n.expected},但收到 ${r(n.input)}`;case"invalid_value":return n.values.length===1?`無效的輸入值:預期為 ${Ge(n.values[0])}`:`無效的選項:預期為以下其中之一 ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`數值過大:預期 ${n.origin??"值"} 應為 ${a}${n.maximum.toString()} ${l.unit??"個元素"}`:`數值過大:預期 ${n.origin??"值"} 應為 ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`數值過小:預期 ${n.origin} 應為 ${a}${n.minimum.toString()} ${l.unit}`:`數值過小:預期 ${n.origin} 應為 ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`無效的字串:必須以 "${a.prefix}" 開頭`:a.format==="ends_with"?`無效的字串:必須以 "${a.suffix}" 結尾`:a.format==="includes"?`無效的字串:必須包含 "${a.includes}"`:a.format==="regex"?`無效的字串:必須符合格式 ${a.pattern}`:`無效的 ${i[a.format]??n.format}`}case"not_multiple_of":return`無效的數字:必須為 ${n.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${n.keys.length>1?"們":""}:${se(n.keys,"、")}`;case"invalid_key":return`${n.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${n.origin} 中有無效的值`;default:return"無效的輸入值"}}};function aee(){return{localeError:iee()}}const oee=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"nọ́mbà";case"object":{if(Array.isArray(n))return"akopọ";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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é"};return n=>{switch(n.code){case"invalid_type":return`Ìbáwọlé aṣìṣe: a ní láti fi ${n.expected}, àmọ̀ a rí ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${Ge(n.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${se(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Tó pọ̀ jù: a ní láti jẹ́ pé ${n.origin??"iye"} ${l.verb} ${a}${n.maximum} ${l.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${a}${n.maximum}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Kéré ju: a ní láti jẹ́ pé ${n.origin} ${l.verb} ${a}${n.minimum} ${l.unit}`:`Kéré ju: a ní láti jẹ́ ${a}${n.minimum}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${a.prefix}"`:a.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${a.suffix}"`:a.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${a.includes}"`:a.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${a.pattern}`:`Aṣìṣe: ${i[a.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ọ̀: ${se(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 uee(){return{localeError:oee()}}const y4=Object.freeze(Object.defineProperty({__proto__:null,ar:$Q,az:kQ,be:xQ,bg:NQ,ca:IQ,cs:zQ,da:DQ,de:CQ,en:v4,eo:ZQ,es:FQ,fa:qQ,fi:HQ,fr:JQ,frCA:XQ,he:WQ,hu:tW,id:rW,is:oW,it:lW,ja:cW,ka:mW,kh:vW,km:p4,ko:gW,lt:_W,mk:SW,ms:wW,nl:OW,no:NW,ota:IW,pl:DW,ps:zW,pt:CW,ru:MW,sl:PW,sv:BW,ta:VW,th:GW,tr:JW,ua:XW,uk:g4,ur:WW,vi:tee,yo:uee,zhCN:ree,zhTW:aee},Symbol.toStringTag,{value:"Module"})),b4=Symbol("ZodOutput"),_4=Symbol("ZodInput");let L$=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const i=r[0];if(this._map.set(t,i),i&&typeof i=="object"&&"id"in i){if(this._idmap.has(i.id))throw new Error(`ID ${i.id} already exists in the registry`);this._idmap.set(i.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const i={...this.get(r)??{}};delete i.id;const n={...i,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function P$(){return new L$}const pu=P$();function $4(e,t){return new e({type:"string",...ie(t)})}function S4(e,t){return new e({type:"string",coerce:!0,...ie(t)})}function Z$(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ie(t)})}function bh(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ie(t)})}function B$(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ie(t)})}function F$(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ie(t)})}function V$(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ie(t)})}function q$(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ie(t)})}function pv(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ie(t)})}function G$(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ie(t)})}function H$(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ie(t)})}function K$(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ie(t)})}function J$(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ie(t)})}function Y$(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ie(t)})}function X$(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ie(t)})}function Q$(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ie(t)})}function W$(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ie(t)})}function eS(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ie(t)})}function tS(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ie(t)})}function nS(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ie(t)})}function rS(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ie(t)})}function iS(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ie(t)})}function aS(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ie(t)})}function oS(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ie(t)})}const k4={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function w4(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ie(t)})}function x4(e,t){return new e({type:"string",format:"date",check:"string_format",...ie(t)})}function O4(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ie(t)})}function E4(e,t){return new e({type:"string",format:"duration",check:"string_format",...ie(t)})}function N4(e,t){return new e({type:"number",checks:[],...ie(t)})}function j4(e,t){return new e({type:"number",coerce:!0,checks:[],...ie(t)})}function I4(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ie(t)})}function T4(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...ie(t)})}function z4(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...ie(t)})}function A4(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...ie(t)})}function D4(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...ie(t)})}function U4(e,t){return new e({type:"boolean",...ie(t)})}function C4(e,t){return new e({type:"boolean",coerce:!0,...ie(t)})}function R4(e,t){return new e({type:"bigint",...ie(t)})}function M4(e,t){return new e({type:"bigint",coerce:!0,...ie(t)})}function L4(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...ie(t)})}function P4(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...ie(t)})}function Z4(e,t){return new e({type:"symbol",...ie(t)})}function B4(e,t){return new e({type:"undefined",...ie(t)})}function F4(e,t){return new e({type:"null",...ie(t)})}function V4(e){return new e({type:"any"})}function q4(e){return new e({type:"unknown"})}function G4(e,t){return new e({type:"never",...ie(t)})}function H4(e,t){return new e({type:"void",...ie(t)})}function K4(e,t){return new e({type:"date",...ie(t)})}function J4(e,t){return new e({type:"date",coerce:!0,...ie(t)})}function Y4(e,t){return new e({type:"nan",...ie(t)})}function Ru(e,t){return new I$({check:"less_than",...ie(t),value:e,inclusive:!1})}function bi(e,t){return new I$({check:"less_than",...ie(t),value:e,inclusive:!0})}function Mu(e,t){return new T$({check:"greater_than",...ie(t),value:e,inclusive:!1})}function gr(e,t){return new T$({check:"greater_than",...ie(t),value:e,inclusive:!0})}function X4(e){return Mu(0,e)}function Q4(e){return Ru(0,e)}function W4(e){return bi(0,e)}function eC(e){return gr(0,e)}function ld(e,t){return new MD({check:"multiple_of",...ie(t),value:e})}function gv(e,t){return new ZD({check:"max_size",...ie(t),maximum:e})}function sd(e,t){return new BD({check:"min_size",...ie(t),minimum:e})}function uS(e,t){return new FD({check:"size_equals",...ie(t),size:e})}function yv(e,t){return new VD({check:"max_length",...ie(t),maximum:e})}function gs(e,t){return new qD({check:"min_length",...ie(t),minimum:e})}function bv(e,t){return new GD({check:"length_equals",...ie(t),length:e})}function lS(e,t){return new HD({check:"string_format",format:"regex",...ie(t),pattern:e})}function sS(e){return new KD({check:"string_format",format:"lowercase",...ie(e)})}function cS(e){return new JD({check:"string_format",format:"uppercase",...ie(e)})}function dS(e,t){return new YD({check:"string_format",format:"includes",...ie(t),includes:e})}function fS(e,t){return new XD({check:"string_format",format:"starts_with",...ie(t),prefix:e})}function mS(e,t){return new QD({check:"string_format",format:"ends_with",...ie(t),suffix:e})}function tC(e,t,r){return new WD({check:"property",property:e,schema:t,...ie(r)})}function hS(e,t){return new eU({check:"mime_type",mime:e,...ie(t)})}function el(e){return new tU({check:"overwrite",tx:e})}function vS(e){return el(t=>t.normalize(e))}function pS(){return el(e=>e.trim())}function gS(){return el(e=>e.toLowerCase())}function yS(){return el(e=>e.toUpperCase())}function nC(e,t,r){return new e({type:"array",element:t,...ie(r)})}function lee(e,t,r){return new e({type:"union",options:t,...ie(r)})}function see(e,t,r,i){return new e({type:"union",options:r,discriminator:t,...ie(i)})}function cee(e,t,r){return new e({type:"intersection",left:t,right:r})}function dee(e,t,r,i){const n=r instanceof Xe,a=n?i:r,l=n?r:null;return new e({type:"tuple",items:t,rest:l,...ie(a)})}function fee(e,t,r,i){return new e({type:"record",keyType:t,valueType:r,...ie(i)})}function mee(e,t,r,i){return new e({type:"map",keyType:t,valueType:r,...ie(i)})}function hee(e,t,r){return new e({type:"set",valueType:t,...ie(r)})}function vee(e,t,r){const i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:i,...ie(r)})}function pee(e,t,r){return new e({type:"enum",entries:t,...ie(r)})}function gee(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...ie(r)})}function rC(e,t){return new e({type:"file",...ie(t)})}function yee(e,t){return new e({type:"transform",transform:t})}function bee(e,t){return new e({type:"optional",innerType:t})}function _ee(e,t){return new e({type:"nullable",innerType:t})}function $ee(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():mv(r)}})}function See(e,t,r){return new e({type:"nonoptional",innerType:t,...ie(r)})}function kee(e,t){return new e({type:"success",innerType:t})}function wee(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function xee(e,t,r){return new e({type:"pipe",in:t,out:r})}function Oee(e,t){return new e({type:"readonly",innerType:t})}function Eee(e,t,r){return new e({type:"template_literal",parts:t,...ie(r)})}function Nee(e,t){return new e({type:"lazy",getter:t})}function jee(e,t){return new e({type:"promise",innerType:t})}function iC(e,t,r){const i=ie(r);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function aC(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ie(r)})}function oC(e){const t=uC(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(vs(i,r.value,t._zod.def));else{const n=i;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=t),n.continue??(n.continue=!t._zod.def.abort),r.issues.push(vs(n))}},e(r.value,r)));return t}function uC(e,t){const r=new en({check:"custom",...ie(t)});return r._zod.check=e,r}function lC(e,t){const r=ie(t);let i=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(i=i.map(S=>typeof S=="string"?S.toLowerCase():S),n=n.map(S=>typeof S=="string"?S.toLowerCase():S));const a=new Set(i),l=new Set(n),d=e.Codec??M$,f=e.Boolean??D$,m=e.String??Bd,p=new m({type:"string",error:r.error}),g=new f({type:"boolean",error:r.error}),y=new d({type:"pipe",in:p,out:g,transform:((S,w)=>{let j=S;return r.case!=="sensitive"&&(j=j.toLowerCase()),a.has(j)?!0:l.has(j)?!1:(w.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...l],input:w.value,inst:y,continue:!1}),{})}),reverseTransform:((S,w)=>S===!0?i[0]||"true":n[0]||"false"),error:r.error});return y}function Fd(e,t,r,i={}){const n=ie(i),a={...ie(i),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:d=>r.test(d),...n};return r instanceof RegExp&&(a.pattern=r),new e(a)}let Fb=class{constructor(t){this.counter=0,this.metadataRegistry=(t==null?void 0:t.metadata)??pu,this.target=(t==null?void 0:t.target)??"draft-2020-12",this.unrepresentable=(t==null?void 0:t.unrepresentable)??"throw",this.override=(t==null?void 0:t.override)??(()=>{}),this.io=(t==null?void 0:t.io)??"output",this.seen=new Map}process(t,r={path:[],schemaPath:[]}){var g,y,S;var i;const n=t._zod.def,a={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},l=this.seen.get(t);if(l)return l.count++,r.schemaPath.includes(t)&&(l.cycle=r.path),l.schema;const d={schema:{},count:1,cycle:void 0,path:r.path};this.seen.set(t,d);const f=(y=(g=t._zod).toJSONSchema)==null?void 0:y.call(g);if(f)d.schema=f;else{const w={...r,schemaPath:[...r.schemaPath,t],path:r.path},j=t._zod.parent;if(j)d.ref=j,this.process(j,w),this.seen.get(j).isParent=!0;else{const x=d.schema;switch(n.type){case"string":{const $=x;$.type="string";const{minimum:I,maximum:N,format:z,patterns:T,contentEncoding:E}=t._zod.bag;if(typeof I=="number"&&($.minLength=I),typeof N=="number"&&($.maxLength=N),z&&($.format=a[z]??z,$.format===""&&delete $.format),E&&($.contentEncoding=E),T&&T.size>0){const C=[...T];C.length===1?$.pattern=C[0].source:C.length>1&&(d.schema.allOf=[...C.map(ae=>({...this.target==="draft-7"||this.target==="draft-4"||this.target==="openapi-3.0"?{type:"string"}:{},pattern:ae.source}))])}break}case"number":{const $=x,{minimum:I,maximum:N,format:z,multipleOf:T,exclusiveMaximum:E,exclusiveMinimum:C}=t._zod.bag;typeof z=="string"&&z.includes("int")?$.type="integer":$.type="number",typeof C=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?($.minimum=C,$.exclusiveMinimum=!0):$.exclusiveMinimum=C),typeof I=="number"&&($.minimum=I,typeof C=="number"&&this.target!=="draft-4"&&(C>=I?delete $.minimum:delete $.exclusiveMinimum)),typeof E=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?($.maximum=E,$.exclusiveMaximum=!0):$.exclusiveMaximum=E),typeof N=="number"&&($.maximum=N,typeof E=="number"&&this.target!=="draft-4"&&(E<=N?delete $.maximum:delete $.exclusiveMaximum)),typeof T=="number"&&($.multipleOf=T);break}case"boolean":{const $=x;$.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{this.target==="openapi-3.0"?(x.type="string",x.nullable=!0,x.enum=[null]):x.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{x.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const $=x,{minimum:I,maximum:N}=t._zod.bag;typeof I=="number"&&($.minItems=I),typeof N=="number"&&($.maxItems=N),$.type="array",$.items=this.process(n.element,{...w,path:[...w.path,"items"]});break}case"object":{const $=x;$.type="object",$.properties={};const I=n.shape;for(const T in I)$.properties[T]=this.process(I[T],{...w,path:[...w.path,"properties",T]});const N=new Set(Object.keys(I)),z=new Set([...N].filter(T=>{const E=n.shape[T]._zod;return this.io==="input"?E.optin===void 0:E.optout===void 0}));z.size>0&&($.required=Array.from(z)),((S=n.catchall)==null?void 0:S._zod.def.type)==="never"?$.additionalProperties=!1:n.catchall?n.catchall&&($.additionalProperties=this.process(n.catchall,{...w,path:[...w.path,"additionalProperties"]})):this.io==="output"&&($.additionalProperties=!1);break}case"union":{const $=x,I=n.options.map((N,z)=>this.process(N,{...w,path:[...w.path,"anyOf",z]}));$.anyOf=I;break}case"intersection":{const $=x,I=this.process(n.left,{...w,path:[...w.path,"allOf",0]}),N=this.process(n.right,{...w,path:[...w.path,"allOf",1]}),z=E=>"allOf"in E&&Object.keys(E).length===1,T=[...z(I)?I.allOf:[I],...z(N)?N.allOf:[N]];$.allOf=T;break}case"tuple":{const $=x;$.type="array";const I=this.target==="draft-2020-12"?"prefixItems":"items",N=this.target==="draft-2020-12"||this.target==="openapi-3.0"?"items":"additionalItems",z=n.items.map((ae,ue)=>this.process(ae,{...w,path:[...w.path,I,ue]})),T=n.rest?this.process(n.rest,{...w,path:[...w.path,N,...this.target==="openapi-3.0"?[n.items.length]:[]]}):null;this.target==="draft-2020-12"?($.prefixItems=z,T&&($.items=T)):this.target==="openapi-3.0"?($.items={anyOf:z},T&&$.items.anyOf.push(T),$.minItems=z.length,T||($.maxItems=z.length)):($.items=z,T&&($.additionalItems=T));const{minimum:E,maximum:C}=t._zod.bag;typeof E=="number"&&($.minItems=E),typeof C=="number"&&($.maxItems=C);break}case"record":{const $=x;$.type="object",(this.target==="draft-7"||this.target==="draft-2020-12")&&($.propertyNames=this.process(n.keyType,{...w,path:[...w.path,"propertyNames"]})),$.additionalProperties=this.process(n.valueType,{...w,path:[...w.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{const $=x,I=h$(n.entries);I.every(N=>typeof N=="number")&&($.type="number"),I.every(N=>typeof N=="string")&&($.type="string"),$.enum=I;break}case"literal":{const $=x,I=[];for(const N of n.values)if(N===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof N=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");I.push(Number(N))}else I.push(N);if(I.length!==0)if(I.length===1){const N=I[0];$.type=N===null?"null":typeof N,this.target==="draft-4"||this.target==="openapi-3.0"?$.enum=[N]:$.const=N}else I.every(N=>typeof N=="number")&&($.type="number"),I.every(N=>typeof N=="string")&&($.type="string"),I.every(N=>typeof N=="boolean")&&($.type="string"),I.every(N=>N===null)&&($.type="null"),$.enum=I;break}case"file":{const $=x,I={type:"string",format:"binary",contentEncoding:"binary"},{minimum:N,maximum:z,mime:T}=t._zod.bag;N!==void 0&&(I.minLength=N),z!==void 0&&(I.maxLength=z),T?T.length===1?(I.contentMediaType=T[0],Object.assign($,I)):$.anyOf=T.map(E=>({...I,contentMediaType:E})):Object.assign($,I);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const $=this.process(n.innerType,w);this.target==="openapi-3.0"?(d.ref=n.innerType,x.nullable=!0):x.anyOf=[$,{type:"null"}];break}case"nonoptional":{this.process(n.innerType,w),d.ref=n.innerType;break}case"success":{const $=x;$.type="boolean";break}case"default":{this.process(n.innerType,w),d.ref=n.innerType,x.default=JSON.parse(JSON.stringify(n.defaultValue));break}case"prefault":{this.process(n.innerType,w),d.ref=n.innerType,this.io==="input"&&(x._prefault=JSON.parse(JSON.stringify(n.defaultValue)));break}case"catch":{this.process(n.innerType,w),d.ref=n.innerType;let $;try{$=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}x.default=$;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const $=x,I=t._zod.pattern;if(!I)throw new Error("Pattern not found in template literal");$.type="string",$.pattern=I.source;break}case"pipe":{const $=this.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;this.process($,w),d.ref=$;break}case"readonly":{this.process(n.innerType,w),d.ref=n.innerType,x.readOnly=!0;break}case"promise":{this.process(n.innerType,w),d.ref=n.innerType;break}case"optional":{this.process(n.innerType,w),d.ref=n.innerType;break}case"lazy":{const $=t._zod.innerType;this.process($,w),d.ref=$;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}case"function":{if(this.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema");break}}}}const m=this.metadataRegistry.get(t);return m&&Object.assign(d.schema,m),this.io==="input"&&hn(t)&&(delete d.schema.examples,delete d.schema.default),this.io==="input"&&d.schema._prefault&&((i=d.schema).default??(i.default=d.schema._prefault)),delete d.schema._prefault,this.seen.get(t).schema}emit(t,r){var p,g,y,S,w,j;const i={cycles:(r==null?void 0:r.cycles)??"ref",reused:(r==null?void 0:r.reused)??"inline",external:(r==null?void 0:r.external)??void 0},n=this.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const a=x=>{var T;const $=this.target==="draft-2020-12"?"$defs":"definitions";if(i.external){const E=(T=i.external.registry.get(x[0]))==null?void 0:T.id,C=i.external.uri??(ue=>ue);if(E)return{ref:C(E)};const ae=x[1].defId??x[1].schema.id??`schema${this.counter++}`;return x[1].defId=ae,{defId:ae,ref:`${C("__shared")}#/${$}/${ae}`}}if(x[1]===n)return{ref:"#"};const N=`#/${$}/`,z=x[1].schema.id??`__schema${this.counter++}`;return{defId:z,ref:N+z}},l=x=>{if(x[1].schema.$ref)return;const $=x[1],{ref:I,defId:N}=a(x);$.def={...$.schema},N&&($.defId=N);const z=$.schema;for(const T in z)delete z[T];z.$ref=I};if(i.cycles==="throw")for(const x of this.seen.entries()){const $=x[1];if($.cycle)throw new Error(`Cycle detected: #/${(p=$.cycle)==null?void 0:p.join("/")}/<root>
|
|
175
|
+
|
|
176
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const x of this.seen.entries()){const $=x[1];if(t===x[0]){l(x);continue}if(i.external){const N=(g=i.external.registry.get(x[0]))==null?void 0:g.id;if(t!==x[0]&&N){l(x);continue}}if((y=this.metadataRegistry.get(x[0]))==null?void 0:y.id){l(x);continue}if($.cycle){l(x);continue}if($.count>1&&i.reused==="ref"){l(x);continue}}const d=(x,$)=>{const I=this.seen.get(x),N=I.def??I.schema,z={...N};if(I.ref===null)return;const T=I.ref;if(I.ref=null,T){d(T,$);const E=this.seen.get(T).schema;E.$ref&&($.target==="draft-7"||$.target==="draft-4"||$.target==="openapi-3.0")?(N.allOf=N.allOf??[],N.allOf.push(E)):(Object.assign(N,E),Object.assign(N,z))}I.isParent||this.override({zodSchema:x,jsonSchema:N,path:I.path??[]})};for(const x of[...this.seen.entries()].reverse())d(x[0],{target:this.target});const f={};if(this.target==="draft-2020-12"?f.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?f.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?f.$schema="http://json-schema.org/draft-04/schema#":this.target==="openapi-3.0"||console.warn(`Invalid target: ${this.target}`),(S=i.external)!=null&&S.uri){const x=(w=i.external.registry.get(t))==null?void 0:w.id;if(!x)throw new Error("Schema is missing an `id` property");f.$id=i.external.uri(x)}Object.assign(f,n.def);const m=((j=i.external)==null?void 0:j.defs)??{};for(const x of this.seen.entries()){const $=x[1];$.def&&$.defId&&(m[$.defId]=$.def)}i.external||Object.keys(m).length>0&&(this.target==="draft-2020-12"?f.$defs=m:f.definitions=m);try{return JSON.parse(JSON.stringify(f))}catch{throw new Error("Error converting schema to JSON.")}}};function sC(e,t){if(e instanceof L$){const i=new Fb(t),n={};for(const d of e._idmap.entries()){const[f,m]=d;i.process(m)}const a={},l={registry:e,uri:t==null?void 0:t.uri,defs:n};for(const d of e._idmap.entries()){const[f,m]=d;a[f]=i.emit(m,{...t,external:l})}if(Object.keys(n).length>0){const d=i.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[d]:n}}return{schemas:a}}const r=new Fb(t);return r.process(e),r.emit(e,t)}function hn(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const n=e._zod.def;switch(n.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return hn(n.element,r);case"object":{for(const a in n.shape)if(hn(n.shape[a],r))return!0;return!1}case"union":{for(const a of n.options)if(hn(a,r))return!0;return!1}case"intersection":return hn(n.left,r)||hn(n.right,r);case"tuple":{for(const a of n.items)if(hn(a,r))return!0;return!!(n.rest&&hn(n.rest,r))}case"record":return hn(n.keyType,r)||hn(n.valueType,r);case"map":return hn(n.keyType,r)||hn(n.valueType,r);case"set":return hn(n.valueType,r);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return hn(n.innerType,r);case"lazy":return hn(n.getter(),r);case"default":return hn(n.innerType,r);case"prefault":return hn(n.innerType,r);case"custom":return!1;case"transform":return!0;case"pipe":return hn(n.in,r)||hn(n.out,r);case"success":return!1;case"catch":return!1;case"function":return!1}throw new Error(`Unknown schema type: ${n.type}`)}const Iee=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Tee=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:UU,$ZodArray:PU,$ZodAsyncError:Eu,$ZodBase64:kU,$ZodBase64URL:xU,$ZodBigInt:U$,$ZodBigIntFormat:TU,$ZodBoolean:D$,$ZodCIDRv4:$U,$ZodCIDRv6:SU,$ZodCUID:cU,$ZodCUID2:dU,$ZodCatch:o4,$ZodCheck:en,$ZodCheckBigIntFormat:PD,$ZodCheckEndsWith:QD,$ZodCheckGreaterThan:T$,$ZodCheckIncludes:YD,$ZodCheckLengthEquals:GD,$ZodCheckLessThan:I$,$ZodCheckLowerCase:KD,$ZodCheckMaxLength:VD,$ZodCheckMaxSize:ZD,$ZodCheckMimeType:eU,$ZodCheckMinLength:qD,$ZodCheckMinSize:BD,$ZodCheckMultipleOf:MD,$ZodCheckNumberFormat:LD,$ZodCheckOverwrite:tU,$ZodCheckProperty:WD,$ZodCheckRegex:HD,$ZodCheckSizeEquals:FD,$ZodCheckStartsWith:XD,$ZodCheckStringFormat:Zd,$ZodCheckUpperCase:JD,$ZodCodec:M$,$ZodCustom:h4,$ZodCustomStringFormat:jU,$ZodDate:LU,$ZodDefault:n4,$ZodDiscriminatedUnion:qU,$ZodE164:OU,$ZodEmail:oU,$ZodEmoji:lU,$ZodEncodeError:dv,$ZodEnum:YU,$ZodError:p$,$ZodFile:QU,$ZodFunction:d4,$ZodGUID:iU,$ZodIPv4:bU,$ZodIPv6:_U,$ZodISODate:pU,$ZodISODateTime:vU,$ZodISODuration:yU,$ZodISOTime:gU,$ZodIntersection:GU,$ZodJWT:NU,$ZodKSUID:hU,$ZodLazy:m4,$ZodLiteral:XU,$ZodMap:KU,$ZodNaN:u4,$ZodNanoID:sU,$ZodNever:RU,$ZodNonOptional:i4,$ZodNull:DU,$ZodNullable:t4,$ZodNumber:A$,$ZodNumberFormat:IU,$ZodObject:FU,$ZodObjectJIT:VU,$ZodOptional:e4,$ZodPipe:l4,$ZodPrefault:r4,$ZodPromise:f4,$ZodReadonly:s4,$ZodRealError:xr,$ZodRecord:HU,$ZodRegistry:L$,$ZodSet:JU,$ZodString:Bd,$ZodStringFormat:Zt,$ZodSuccess:a4,$ZodSymbol:zU,$ZodTemplateLiteral:c4,$ZodTransform:WU,$ZodTuple:R$,$ZodType:Xe,$ZodULID:fU,$ZodURL:uU,$ZodUUID:aU,$ZodUndefined:AU,$ZodUnion:C$,$ZodUnknown:CU,$ZodVoid:MU,$ZodXID:mU,$brand:UA,$constructor:B,$input:_4,$output:b4,Doc:nU,JSONSchema:Iee,JSONSchemaGenerator:Fb,NEVER:DA,TimePrecision:k4,_any:V4,_array:nC,_base64:rS,_base64url:iS,_bigint:R4,_boolean:U4,_catch:wee,_check:uC,_cidrv4:tS,_cidrv6:nS,_coercedBigint:M4,_coercedBoolean:C4,_coercedDate:J4,_coercedNumber:j4,_coercedString:S4,_cuid:K$,_cuid2:J$,_custom:iC,_date:K4,_decode:_$,_decodeAsync:S$,_default:$ee,_discriminatedUnion:see,_e164:aS,_email:Z$,_emoji:G$,_encode:b$,_encodeAsync:$$,_endsWith:mS,_enum:vee,_file:rC,_float32:T4,_float64:z4,_gt:Mu,_gte:gr,_guid:bh,_includes:dS,_int:I4,_int32:A4,_int64:L4,_intersection:cee,_ipv4:W$,_ipv6:eS,_isoDate:x4,_isoDateTime:w4,_isoDuration:E4,_isoTime:O4,_jwt:oS,_ksuid:Q$,_lazy:Nee,_length:bv,_literal:gee,_lowercase:sS,_lt:Ru,_lte:bi,_map:mee,_max:bi,_maxLength:yv,_maxSize:gv,_mime:hS,_min:gr,_minLength:gs,_minSize:sd,_multipleOf:ld,_nan:Y4,_nanoid:H$,_nativeEnum:pee,_negative:Q4,_never:G4,_nonnegative:eC,_nonoptional:See,_nonpositive:W4,_normalize:vS,_null:F4,_nullable:_ee,_number:N4,_optional:bee,_overwrite:el,_parse:Ud,_parseAsync:Cd,_pipe:xee,_positive:X4,_promise:jee,_property:tC,_readonly:Oee,_record:fee,_refine:aC,_regex:lS,_safeDecode:w$,_safeDecodeAsync:O$,_safeEncode:k$,_safeEncodeAsync:x$,_safeParse:Rd,_safeParseAsync:Md,_set:hee,_size:uS,_startsWith:fS,_string:$4,_stringFormat:Fd,_stringbool:lC,_success:kee,_superRefine:oC,_symbol:Z4,_templateLiteral:Eee,_toLowerCase:gS,_toUpperCase:yS,_transform:yee,_trim:pS,_tuple:dee,_uint32:D4,_uint64:P4,_ulid:Y$,_undefined:B4,_union:lee,_unknown:q4,_uppercase:cS,_url:pv,_uuid:B$,_uuidv4:F$,_uuidv6:V$,_uuidv7:q$,_void:H4,_xid:X$,clone:Wr,config:Vn,decode:FX,decodeAsync:qX,encode:BX,encodeAsync:VX,flattenError:g$,formatError:y$,globalConfig:vh,globalRegistry:pu,isValidBase64:z$,isValidBase64URL:wU,isValidJWT:EU,locales:y4,parse:Pb,parseAsync:Zb,prettifyError:tD,regexes:j$,registry:P$,safeDecode:HX,safeDecodeAsync:JX,safeEncode:GX,safeEncodeAsync:KX,safeParse:nD,safeParseAsync:rD,toDotPath:eD,toJSONSchema:sC,treeifyError:WA,util:XA,version:rU},Symbol.toStringTag,{value:"Module"})),bS=B("ZodISODateTime",(e,t)=>{vU.init(e,t),Gt.init(e,t)});function cC(e){return w4(bS,e)}const _S=B("ZodISODate",(e,t)=>{pU.init(e,t),Gt.init(e,t)});function dC(e){return x4(_S,e)}const $S=B("ZodISOTime",(e,t)=>{gU.init(e,t),Gt.init(e,t)});function fC(e){return O4($S,e)}const SS=B("ZodISODuration",(e,t)=>{yU.init(e,t),Gt.init(e,t)});function mC(e){return E4(SS,e)}const zee=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:_S,ZodISODateTime:bS,ZodISODuration:SS,ZodISOTime:$S,date:dC,datetime:cC,duration:mC,time:fC},Symbol.toStringTag,{value:"Module"})),hC=(e,t)=>{p$.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>y$(e,r)},flatten:{value:r=>g$(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,ph,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,ph,2)}},isEmpty:{get(){return e.issues.length===0}}})},Aee=B("ZodError",hC),Or=B("ZodError",hC,{Parent:Error}),vC=Ud(Or),pC=Cd(Or),gC=Rd(Or),yC=Md(Or),bC=b$(Or),_C=_$(Or),$C=$$(Or),SC=S$(Or),kC=k$(Or),wC=w$(Or),xC=x$(Or),OC=O$(Or),it=B("ZodType",(e,t)=>(Xe.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(Ba(t,{checks:[...t.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]})),e.clone=(r,i)=>Wr(e,r,i),e.brand=()=>e,e.register=((r,i)=>(r.add(e,i),e)),e.parse=(r,i)=>vC(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>gC(e,r,i),e.parseAsync=async(r,i)=>pC(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>yC(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>bC(e,r,i),e.decode=(r,i)=>_C(e,r,i),e.encodeAsync=async(r,i)=>$C(e,r,i),e.decodeAsync=async(r,i)=>SC(e,r,i),e.safeEncode=(r,i)=>kC(e,r,i),e.safeDecode=(r,i)=>wC(e,r,i),e.safeEncodeAsync=async(r,i)=>xC(e,r,i),e.safeDecodeAsync=async(r,i)=>OC(e,r,i),e.refine=(r,i)=>e.check(f6(r,i)),e.superRefine=r=>e.check(m6(r)),e.overwrite=r=>e.check(el(r)),e.optional=()=>$h(e),e.nullable=()=>Sh(e),e.nullish=()=>$h(Sh(e)),e.nonoptional=r=>e6(e,r),e.array=()=>xv(e),e.or=r=>VS([e,r]),e.and=r=>PC(e,r),e.transform=r=>kh(e,HS(r)),e.default=r=>XC(e,r),e.prefault=r=>WC(e,r),e.catch=r=>r6(e,r),e.pipe=r=>kh(e,r),e.readonly=()=>o6(e),e.describe=r=>{const i=e.clone();return pu.add(i,{description:r}),i},Object.defineProperty(e,"description",{get(){var r;return(r=pu.get(e))==null?void 0:r.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return pu.get(e);const i=e.clone();return pu.add(i,r[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),kS=B("_ZodString",(e,t)=>{Bd.init(e,t),it.init(e,t);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...i)=>e.check(lS(...i)),e.includes=(...i)=>e.check(dS(...i)),e.startsWith=(...i)=>e.check(fS(...i)),e.endsWith=(...i)=>e.check(mS(...i)),e.min=(...i)=>e.check(gs(...i)),e.max=(...i)=>e.check(yv(...i)),e.length=(...i)=>e.check(bv(...i)),e.nonempty=(...i)=>e.check(gs(1,...i)),e.lowercase=i=>e.check(sS(i)),e.uppercase=i=>e.check(cS(i)),e.trim=()=>e.check(pS()),e.normalize=(...i)=>e.check(vS(...i)),e.toLowerCase=()=>e.check(gS()),e.toUpperCase=()=>e.check(yS())}),_v=B("ZodString",(e,t)=>{Bd.init(e,t),kS.init(e,t),e.email=r=>e.check(Z$(wS,r)),e.url=r=>e.check(pv($v,r)),e.jwt=r=>e.check(oS(LS,r)),e.emoji=r=>e.check(G$(xS,r)),e.guid=r=>e.check(bh(_h,r)),e.uuid=r=>e.check(B$(Ea,r)),e.uuidv4=r=>e.check(F$(Ea,r)),e.uuidv6=r=>e.check(V$(Ea,r)),e.uuidv7=r=>e.check(q$(Ea,r)),e.nanoid=r=>e.check(H$(OS,r)),e.guid=r=>e.check(bh(_h,r)),e.cuid=r=>e.check(K$(ES,r)),e.cuid2=r=>e.check(J$(NS,r)),e.ulid=r=>e.check(Y$(jS,r)),e.base64=r=>e.check(rS(CS,r)),e.base64url=r=>e.check(iS(RS,r)),e.xid=r=>e.check(X$(IS,r)),e.ksuid=r=>e.check(Q$(TS,r)),e.ipv4=r=>e.check(W$(zS,r)),e.ipv6=r=>e.check(eS(AS,r)),e.cidrv4=r=>e.check(tS(DS,r)),e.cidrv6=r=>e.check(nS(US,r)),e.e164=r=>e.check(aS(MS,r)),e.datetime=r=>e.check(cC(r)),e.date=r=>e.check(dC(r)),e.time=r=>e.check(fC(r)),e.duration=r=>e.check(mC(r))});function Vb(e){return $4(_v,e)}const Gt=B("ZodStringFormat",(e,t)=>{Zt.init(e,t),kS.init(e,t)}),wS=B("ZodEmail",(e,t)=>{oU.init(e,t),Gt.init(e,t)});function Dee(e){return Z$(wS,e)}const _h=B("ZodGUID",(e,t)=>{iU.init(e,t),Gt.init(e,t)});function Uee(e){return bh(_h,e)}const Ea=B("ZodUUID",(e,t)=>{aU.init(e,t),Gt.init(e,t)});function Cee(e){return B$(Ea,e)}function Ree(e){return F$(Ea,e)}function Mee(e){return V$(Ea,e)}function Lee(e){return q$(Ea,e)}const $v=B("ZodURL",(e,t)=>{uU.init(e,t),Gt.init(e,t)});function Pee(e){return pv($v,e)}function Zee(e){return pv($v,{protocol:/^https?$/,hostname:_D,...ie(e)})}const xS=B("ZodEmoji",(e,t)=>{lU.init(e,t),Gt.init(e,t)});function Bee(e){return G$(xS,e)}const OS=B("ZodNanoID",(e,t)=>{sU.init(e,t),Gt.init(e,t)});function Fee(e){return H$(OS,e)}const ES=B("ZodCUID",(e,t)=>{cU.init(e,t),Gt.init(e,t)});function Vee(e){return K$(ES,e)}const NS=B("ZodCUID2",(e,t)=>{dU.init(e,t),Gt.init(e,t)});function qee(e){return J$(NS,e)}const jS=B("ZodULID",(e,t)=>{fU.init(e,t),Gt.init(e,t)});function Gee(e){return Y$(jS,e)}const IS=B("ZodXID",(e,t)=>{mU.init(e,t),Gt.init(e,t)});function Hee(e){return X$(IS,e)}const TS=B("ZodKSUID",(e,t)=>{hU.init(e,t),Gt.init(e,t)});function Kee(e){return Q$(TS,e)}const zS=B("ZodIPv4",(e,t)=>{bU.init(e,t),Gt.init(e,t)});function Jee(e){return W$(zS,e)}const AS=B("ZodIPv6",(e,t)=>{_U.init(e,t),Gt.init(e,t)});function Yee(e){return eS(AS,e)}const DS=B("ZodCIDRv4",(e,t)=>{$U.init(e,t),Gt.init(e,t)});function Xee(e){return tS(DS,e)}const US=B("ZodCIDRv6",(e,t)=>{SU.init(e,t),Gt.init(e,t)});function Qee(e){return nS(US,e)}const CS=B("ZodBase64",(e,t)=>{kU.init(e,t),Gt.init(e,t)});function Wee(e){return rS(CS,e)}const RS=B("ZodBase64URL",(e,t)=>{xU.init(e,t),Gt.init(e,t)});function ete(e){return iS(RS,e)}const MS=B("ZodE164",(e,t)=>{OU.init(e,t),Gt.init(e,t)});function tte(e){return aS(MS,e)}const LS=B("ZodJWT",(e,t)=>{NU.init(e,t),Gt.init(e,t)});function nte(e){return oS(LS,e)}const Vd=B("ZodCustomStringFormat",(e,t)=>{jU.init(e,t),Gt.init(e,t)});function rte(e,t,r={}){return Fd(Vd,e,t,r)}function ite(e){return Fd(Vd,"hostname",N$,e)}function ate(e){return Fd(Vd,"hex",CD,e)}function ote(e,t){const r=(t==null?void 0:t.enc)??"hex",i=`${e}_${r}`,n=j$[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return Fd(Vd,i,n,t)}const Sv=B("ZodNumber",(e,t)=>{A$.init(e,t),it.init(e,t),e.gt=(i,n)=>e.check(Mu(i,n)),e.gte=(i,n)=>e.check(gr(i,n)),e.min=(i,n)=>e.check(gr(i,n)),e.lt=(i,n)=>e.check(Ru(i,n)),e.lte=(i,n)=>e.check(bi(i,n)),e.max=(i,n)=>e.check(bi(i,n)),e.int=i=>e.check(qb(i)),e.safe=i=>e.check(qb(i)),e.positive=i=>e.check(Mu(0,i)),e.nonnegative=i=>e.check(gr(0,i)),e.negative=i=>e.check(Ru(0,i)),e.nonpositive=i=>e.check(bi(0,i)),e.multipleOf=(i,n)=>e.check(ld(i,n)),e.step=(i,n)=>e.check(ld(i,n)),e.finite=()=>e;const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function EC(e){return N4(Sv,e)}const zs=B("ZodNumberFormat",(e,t)=>{IU.init(e,t),Sv.init(e,t)});function qb(e){return I4(zs,e)}function ute(e){return T4(zs,e)}function lte(e){return z4(zs,e)}function ste(e){return A4(zs,e)}function cte(e){return D4(zs,e)}const kv=B("ZodBoolean",(e,t)=>{D$.init(e,t),it.init(e,t)});function NC(e){return U4(kv,e)}const wv=B("ZodBigInt",(e,t)=>{U$.init(e,t),it.init(e,t),e.gte=(i,n)=>e.check(gr(i,n)),e.min=(i,n)=>e.check(gr(i,n)),e.gt=(i,n)=>e.check(Mu(i,n)),e.gte=(i,n)=>e.check(gr(i,n)),e.min=(i,n)=>e.check(gr(i,n)),e.lt=(i,n)=>e.check(Ru(i,n)),e.lte=(i,n)=>e.check(bi(i,n)),e.max=(i,n)=>e.check(bi(i,n)),e.positive=i=>e.check(Mu(BigInt(0),i)),e.negative=i=>e.check(Ru(BigInt(0),i)),e.nonpositive=i=>e.check(bi(BigInt(0),i)),e.nonnegative=i=>e.check(gr(BigInt(0),i)),e.multipleOf=(i,n)=>e.check(ld(i,n));const r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function dte(e){return R4(wv,e)}const PS=B("ZodBigIntFormat",(e,t)=>{TU.init(e,t),wv.init(e,t)});function fte(e){return L4(PS,e)}function mte(e){return P4(PS,e)}const jC=B("ZodSymbol",(e,t)=>{zU.init(e,t),it.init(e,t)});function hte(e){return Z4(jC,e)}const IC=B("ZodUndefined",(e,t)=>{AU.init(e,t),it.init(e,t)});function vte(e){return B4(IC,e)}const TC=B("ZodNull",(e,t)=>{DU.init(e,t),it.init(e,t)});function zC(e){return F4(TC,e)}const AC=B("ZodAny",(e,t)=>{UU.init(e,t),it.init(e,t)});function pte(){return V4(AC)}const DC=B("ZodUnknown",(e,t)=>{CU.init(e,t),it.init(e,t)});function ys(){return q4(DC)}const UC=B("ZodNever",(e,t)=>{RU.init(e,t),it.init(e,t)});function ZS(e){return G4(UC,e)}const CC=B("ZodVoid",(e,t)=>{MU.init(e,t),it.init(e,t)});function gte(e){return H4(CC,e)}const BS=B("ZodDate",(e,t)=>{LU.init(e,t),it.init(e,t),e.min=(i,n)=>e.check(gr(i,n)),e.max=(i,n)=>e.check(bi(i,n));const r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function yte(e){return K4(BS,e)}const RC=B("ZodArray",(e,t)=>{PU.init(e,t),it.init(e,t),e.element=t.element,e.min=(r,i)=>e.check(gs(r,i)),e.nonempty=r=>e.check(gs(1,r)),e.max=(r,i)=>e.check(yv(r,i)),e.length=(r,i)=>e.check(bv(r,i)),e.unwrap=()=>e.element});function xv(e,t){return nC(RC,e,t)}function bte(e){const t=e._zod.def.shape;return GS(Object.keys(t))}const Ov=B("ZodObject",(e,t)=>{VU.init(e,t),it.init(e,t),st(e,"shape",()=>t.shape),e.keyof=()=>GS(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ys()}),e.loose=()=>e.clone({...e._zod.def,catchall:ys()}),e.strict=()=>e.clone({...e._zod.def,catchall:ZS()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>VA(e,r),e.safeExtend=r=>qA(e,r),e.merge=r=>GA(e,r),e.pick=r=>BA(e,r),e.omit=r=>FA(e,r),e.partial=(...r)=>HA(KS,e,r[0]),e.required=(...r)=>KA(JS,e,r[0])});function _te(e,t){const r={type:"object",shape:e??{},...ie(t)};return new Ov(r)}function $te(e,t){return new Ov({type:"object",shape:e,catchall:ZS(),...ie(t)})}function Ste(e,t){return new Ov({type:"object",shape:e,catchall:ys(),...ie(t)})}const FS=B("ZodUnion",(e,t)=>{C$.init(e,t),it.init(e,t),e.options=t.options});function VS(e,t){return new FS({type:"union",options:e,...ie(t)})}const MC=B("ZodDiscriminatedUnion",(e,t)=>{FS.init(e,t),qU.init(e,t)});function kte(e,t,r){return new MC({type:"union",options:t,discriminator:e,...ie(r)})}const LC=B("ZodIntersection",(e,t)=>{GU.init(e,t),it.init(e,t)});function PC(e,t){return new LC({type:"intersection",left:e,right:t})}const ZC=B("ZodTuple",(e,t)=>{R$.init(e,t),it.init(e,t),e.rest=r=>e.clone({...e._zod.def,rest:r})});function BC(e,t,r){const i=t instanceof Xe,n=i?r:t,a=i?t:null;return new ZC({type:"tuple",items:e,rest:a,...ie(n)})}const qS=B("ZodRecord",(e,t)=>{HU.init(e,t),it.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function FC(e,t,r){return new qS({type:"record",keyType:e,valueType:t,...ie(r)})}function wte(e,t,r){const i=Wr(e);return i._zod.values=void 0,new qS({type:"record",keyType:i,valueType:t,...ie(r)})}const VC=B("ZodMap",(e,t)=>{KU.init(e,t),it.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function xte(e,t,r){return new VC({type:"map",keyType:e,valueType:t,...ie(r)})}const qC=B("ZodSet",(e,t)=>{JU.init(e,t),it.init(e,t),e.min=(...r)=>e.check(sd(...r)),e.nonempty=r=>e.check(sd(1,r)),e.max=(...r)=>e.check(gv(...r)),e.size=(...r)=>e.check(uS(...r))});function Ote(e,t){return new qC({type:"set",valueType:e,...ie(t)})}const cd=B("ZodEnum",(e,t)=>{YU.init(e,t),it.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(i,n)=>{const a={};for(const l of i)if(r.has(l))a[l]=t.entries[l];else throw new Error(`Key ${l} not found in enum`);return new cd({...t,checks:[],...ie(n),entries:a})},e.exclude=(i,n)=>{const a={...t.entries};for(const l of i)if(r.has(l))delete a[l];else throw new Error(`Key ${l} not found in enum`);return new cd({...t,checks:[],...ie(n),entries:a})}});function GS(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new cd({type:"enum",entries:r,...ie(t)})}function Ete(e,t){return new cd({type:"enum",entries:e,...ie(t)})}const GC=B("ZodLiteral",(e,t)=>{XU.init(e,t),it.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Nte(e,t){return new GC({type:"literal",values:Array.isArray(e)?e:[e],...ie(t)})}const HC=B("ZodFile",(e,t)=>{QU.init(e,t),it.init(e,t),e.min=(r,i)=>e.check(sd(r,i)),e.max=(r,i)=>e.check(gv(r,i)),e.mime=(r,i)=>e.check(hS(Array.isArray(r)?r:[r],i))});function jte(e){return rC(HC,e)}const KC=B("ZodTransform",(e,t)=>{WU.init(e,t),it.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new dv(e.constructor.name);r.addIssue=a=>{if(typeof a=="string")r.issues.push(vs(a,r.value,t));else{const l=a;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=r.value),l.inst??(l.inst=e),r.issues.push(vs(l))}};const n=t.transform(r.value,r);return n instanceof Promise?n.then(a=>(r.value=a,r)):(r.value=n,r)}});function HS(e){return new KC({type:"transform",transform:e})}const KS=B("ZodOptional",(e,t)=>{e4.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function $h(e){return new KS({type:"optional",innerType:e})}const JC=B("ZodNullable",(e,t)=>{t4.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Sh(e){return new JC({type:"nullable",innerType:e})}function Ite(e){return $h(Sh(e))}const YC=B("ZodDefault",(e,t)=>{n4.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function XC(e,t){return new YC({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():mv(t)}})}const QC=B("ZodPrefault",(e,t)=>{r4.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function WC(e,t){return new QC({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():mv(t)}})}const JS=B("ZodNonOptional",(e,t)=>{i4.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function e6(e,t){return new JS({type:"nonoptional",innerType:e,...ie(t)})}const t6=B("ZodSuccess",(e,t)=>{a4.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Tte(e){return new t6({type:"success",innerType:e})}const n6=B("ZodCatch",(e,t)=>{o4.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function r6(e,t){return new n6({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const i6=B("ZodNaN",(e,t)=>{u4.init(e,t),it.init(e,t)});function zte(e){return Y4(i6,e)}const YS=B("ZodPipe",(e,t)=>{l4.init(e,t),it.init(e,t),e.in=t.in,e.out=t.out});function kh(e,t){return new YS({type:"pipe",in:e,out:t})}const XS=B("ZodCodec",(e,t)=>{YS.init(e,t),M$.init(e,t)});function Ate(e,t,r){return new XS({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}const a6=B("ZodReadonly",(e,t)=>{s4.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function o6(e){return new a6({type:"readonly",innerType:e})}const u6=B("ZodTemplateLiteral",(e,t)=>{c4.init(e,t),it.init(e,t)});function Dte(e,t){return new u6({type:"template_literal",parts:e,...ie(t)})}const l6=B("ZodLazy",(e,t)=>{m4.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.getter()});function s6(e){return new l6({type:"lazy",getter:e})}const c6=B("ZodPromise",(e,t)=>{f4.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ute(e){return new c6({type:"promise",innerType:e})}const d6=B("ZodFunction",(e,t)=>{d4.init(e,t),it.init(e,t)});function fj(e){return new d6({type:"function",input:Array.isArray(e==null?void 0:e.input)?BC(e==null?void 0:e.input):(e==null?void 0:e.input)??xv(ys()),output:(e==null?void 0:e.output)??ys()})}const Ev=B("ZodCustom",(e,t)=>{h4.init(e,t),it.init(e,t)});function Cte(e){const t=new en({check:"custom"});return t._zod.check=e,t}function Rte(e,t){return iC(Ev,e??(()=>!0),t)}function f6(e,t={}){return aC(Ev,e,t)}function m6(e){return oC(e)}function Mte(e,t={error:`Input not instance of ${e.name}`}){const r=new Ev({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...ie(t)});return r._zod.bag.Class=e,r}const Lte=(...e)=>lC({Codec:XS,Boolean:kv,String:_v},...e);function Pte(e){const t=s6(()=>VS([Vb(e),EC(),NC(),zC(),xv(t),FC(Vb(),t)]));return t}function Zte(e,t){return kh(HS(e),t)}const Bte={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 Fte(e){Vn({customError:e})}function Vte(){return Vn().customError}var Gb;Gb||(Gb={});function qte(e){return S4(_v,e)}function Gte(e){return j4(Sv,e)}function Hte(e){return C4(kv,e)}function Kte(e){return M4(wv,e)}function Jte(e){return J4(BS,e)}const Yte=Object.freeze(Object.defineProperty({__proto__:null,bigint:Kte,boolean:Hte,date:Jte,number:Gte,string:qte},Symbol.toStringTag,{value:"Module"}));Vn(v4());const za=Object.freeze(Object.defineProperty({__proto__:null,$brand:UA,$input:_4,$output:b4,NEVER:DA,TimePrecision:k4,ZodAny:AC,ZodArray:RC,ZodBase64:CS,ZodBase64URL:RS,ZodBigInt:wv,ZodBigIntFormat:PS,ZodBoolean:kv,ZodCIDRv4:DS,ZodCIDRv6:US,ZodCUID:ES,ZodCUID2:NS,ZodCatch:n6,ZodCodec:XS,ZodCustom:Ev,ZodCustomStringFormat:Vd,ZodDate:BS,ZodDefault:YC,ZodDiscriminatedUnion:MC,ZodE164:MS,ZodEmail:wS,ZodEmoji:xS,ZodEnum:cd,ZodError:Aee,ZodFile:HC,get ZodFirstPartyTypeKind(){return Gb},ZodFunction:d6,ZodGUID:_h,ZodIPv4:zS,ZodIPv6:AS,ZodISODate:_S,ZodISODateTime:bS,ZodISODuration:SS,ZodISOTime:$S,ZodIntersection:LC,ZodIssueCode:Bte,ZodJWT:LS,ZodKSUID:TS,ZodLazy:l6,ZodLiteral:GC,ZodMap:VC,ZodNaN:i6,ZodNanoID:OS,ZodNever:UC,ZodNonOptional:JS,ZodNull:TC,ZodNullable:JC,ZodNumber:Sv,ZodNumberFormat:zs,ZodObject:Ov,ZodOptional:KS,ZodPipe:YS,ZodPrefault:QC,ZodPromise:c6,ZodReadonly:a6,ZodRealError:Or,ZodRecord:qS,ZodSet:qC,ZodString:_v,ZodStringFormat:Gt,ZodSuccess:t6,ZodSymbol:jC,ZodTemplateLiteral:u6,ZodTransform:KC,ZodTuple:ZC,ZodType:it,ZodULID:jS,ZodURL:$v,ZodUUID:Ea,ZodUndefined:IC,ZodUnion:FS,ZodUnknown:DC,ZodVoid:CC,ZodXID:IS,_ZodString:kS,_default:XC,_function:fj,any:pte,array:xv,base64:Wee,base64url:ete,bigint:dte,boolean:NC,catch:r6,check:Cte,cidrv4:Xee,cidrv6:Qee,clone:Wr,codec:Ate,coerce:Yte,config:Vn,core:Tee,cuid:Vee,cuid2:qee,custom:Rte,date:yte,decode:_C,decodeAsync:SC,discriminatedUnion:kte,e164:tte,email:Dee,emoji:Bee,encode:bC,encodeAsync:$C,endsWith:mS,enum:GS,file:jte,flattenError:g$,float32:ute,float64:lte,formatError:y$,function:fj,getErrorMap:Vte,globalRegistry:pu,gt:Mu,gte:gr,guid:Uee,hash:ote,hex:ate,hostname:ite,httpUrl:Zee,includes:dS,instanceof:Mte,int:qb,int32:ste,int64:fte,intersection:PC,ipv4:Jee,ipv6:Yee,iso:zee,json:Pte,jwt:nte,keyof:bte,ksuid:Kee,lazy:s6,length:bv,literal:Nte,locales:y4,looseObject:Ste,lowercase:sS,lt:Ru,lte:bi,map:xte,maxLength:yv,maxSize:gv,mime:hS,minLength:gs,minSize:sd,multipleOf:ld,nan:zte,nanoid:Fee,nativeEnum:Ete,negative:Q4,never:ZS,nonnegative:eC,nonoptional:e6,nonpositive:W4,normalize:vS,null:zC,nullable:Sh,nullish:Ite,number:EC,object:_te,optional:$h,overwrite:el,parse:vC,parseAsync:pC,partialRecord:wte,pipe:kh,positive:X4,prefault:WC,preprocess:Zte,prettifyError:tD,promise:Ute,property:tC,readonly:o6,record:FC,refine:f6,regex:lS,regexes:j$,registry:P$,safeDecode:wC,safeDecodeAsync:OC,safeEncode:kC,safeEncodeAsync:xC,safeParse:gC,safeParseAsync:yC,set:Ote,setErrorMap:Fte,size:uS,startsWith:fS,strictObject:$te,string:Vb,stringFormat:rte,stringbool:Lte,success:Tte,superRefine:m6,symbol:hte,templateLiteral:Dte,toJSONSchema:sC,toLowerCase:gS,toUpperCase:yS,transform:HS,treeifyError:WA,trim:pS,tuple:BC,uint32:cte,uint64:mte,ulid:Gee,undefined:vte,union:VS,unknown:ys,uppercase:cS,url:Pee,util:XA,uuid:Cee,uuidv4:Ree,uuidv6:Mee,uuidv7:Lee,void:gte,xid:Hee},Symbol.toStringTag,{value:"Module"})),Xte=fn(()=>{const e=kn();return k.useEffect(()=>{const t=localStorage.getItem("api_key");t&&e.login(t)},[e]),e.loggingIn||!e.loggedIn||e.loginError?b.jsx(tne,{}):b.jsxs(Nd,{fluid:!0,children:[b.jsx(GH,{}),b.jsx(KH,{}),!1]})}),Qte=({show:e,onHide:t})=>b.jsxs(vn,{show:e,onHide:t,children:[b.jsx(vn.Header,{closeButton:!0,children:b.jsx(vn.Title,{children:"Where do I get an API key?"})}),b.jsxs(vn.Body,{children:[b.jsx("p",{children:"Generate an API key from the database:"}),b.jsx("pre",{children:"INSERT INTO hub.api_key DEFAULT VALUES RETURNING key;"})]})]}),Wte=za.object({apiKey:za.uuid()}),ene={apiKey:""},tne=fn(()=>{const e=kn(),[t,r]=k.useState(!1),i=cv({initialValues:ene,validate:a=>Yh(Wte)(a),onSubmit:async(a,{setSubmitting:l,setStatus:d})=>{d(null),e.login(a.apiKey).then(f=>{f||(localStorage.removeItem("api_key"),d("Invalid API key"))}).finally(()=>{l(!1)})}}),n=e.loggingIn||i.isSubmitting;return b.jsxs(Nd,{children:[b.jsx(Qte,{show:t,onHide:()=>r(!1)}),b.jsx(r$,{className:"justify-content-md-center align-items-center",style:{height:"100vh"},children:b.jsxs(tv,{lg:6,children:[i.status&&b.jsx(Sr,{variant:"danger",className:"mb-3",dismissible:!0,onClose:()=>i.setStatus(null),children:i.status}),e.loginError&&b.jsx(Sr,{variant:"danger",children:nr(e.loginError)}),b.jsx(tt,{onSubmit:i.handleSubmit,children:b.jsx("fieldset",{disabled:n,children:b.jsxs(Yl,{children:[b.jsx(Yl.Body,{children:b.jsxs(tt.Group,{children:[b.jsxs(tt.Label,{children:["API Key",b.jsx(m$,{className:"ms-1",style:{cursor:"pointer"},onClick:()=>{r(!0)}})]}),b.jsx(tt.Control,{type:"text",name:"apiKey",value:i.values.apiKey,onChange:i.handleChange,onBlur:i.handleBlur,placeholder:"Ex: 00000000-0000-0000-0000-000000000000",isInvalid:i.touched.apiKey&&!!i.errors.apiKey,isValid:i.touched.apiKey&&!i.errors.apiKey}),b.jsx(tt.Control.Feedback,{type:"invalid",children:i.errors.apiKey})]})}),b.jsx(Yl.Footer,{className:"d-flex justify-content-end",children:b.jsx(Sn,{type:"submit",disabled:n,children:n?"Authenticating...":"Authenticate"})})]})})})]})})]})}),wi=()=>b.jsx("div",{children:b.jsx("h1",{children:"Not found"})}),mj=e=>{const t=uI();switch(t&&console.error(t),e.status||(t==null?void 0:t.status)){case 404:return b.jsx(wi,{});case 401:return b.jsxs("div",{children:[b.jsx("h1",{children:"Unauthorized"}),b.jsx("p",{children:"You don't have permission to do that."})]});default:return b.jsxs(Nd,{children:[b.jsx("h1",{children:"Unexpected error"}),b.jsx("p",{children:(t==null?void 0:t.statusText)||nr(t)}),b.jsx(Sn,{onClick:()=>{window.history.back()},children:"Go back"})]})}},nne={short:{justNow:"<1min ago",minute:"min ago",hour:"hr ago",day:"d ago"},long:{justNow:"<1 minute ago",minute:" minute[s] ago",hour:" hour[s] ago",day:" day[s] ago"}};function rne(e,t,r=new Date){const i=r.getTime()-e.getTime(),n=nne[t],a=Math.floor(i/1e3);if(a<60)return n.justNow;const l=Math.floor(a/60);if(l<60)return`${l}${n.minute.replace("[s]",l>1?"s":"")}`;const d=Math.floor(l/60);if(d<24)return`${d}${n.hour.replace("[s]",d>1?"s":"")}`;const f=Math.floor(d/24);return`${f}${n.day.replace("[s]",f>1?"s":"")}`}const ine={whiteSpace:"nowrap",cursor:"help",textDecoration:"underline dotted"},Ra=({date:e,variant:t})=>{typeof e=="string"&&(e=new Date(e));const r=U8(e);return b.jsx(nA,{placement:"top",overlay:b.jsx(t$,{children:r}),trigger:["hover","click","focus"],children:b.jsx("time",{dateTime:e.toISOString(),style:ine,children:rne(e,t)})})},h6=Object.freeze({status:"aborted"});function Z(e,t,r){function i(d,f){if(d._zod||Object.defineProperty(d,"_zod",{value:{def:f,constr:l,traits:new Set},enumerable:!1}),d._zod.traits.has(e))return;d._zod.traits.add(e),t(d,f);const m=l.prototype,p=Object.keys(m);for(let g=0;g<p.length;g++){const y=p[g];y in d||(d[y]=m[y].bind(d))}}const n=(r==null?void 0:r.Parent)??Object;class a extends n{}Object.defineProperty(a,"name",{value:e});function l(d){var f;const m=r!=null&&r.Parent?new a:this;i(m,d),(f=m._zod).deferred??(f.deferred=[]);for(const p of m._zod.deferred)p();return m}return Object.defineProperty(l,"init",{value:i}),Object.defineProperty(l,Symbol.hasInstance,{value:d=>{var f,m;return r!=null&&r.Parent&&d instanceof r.Parent?!0:(m=(f=d==null?void 0:d._zod)==null?void 0:f.traits)==null?void 0:m.has(e)}}),Object.defineProperty(l,"name",{value:e}),l}const v6=Symbol("zod_brand");class Nu extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Nv extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const wh={};function qn(e){return e&&Object.assign(wh,e),wh}function ane(e){return e}function one(e){return e}function une(e){}function lne(e){throw new Error}function sne(e){}function QS(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,n])=>t.indexOf(+i)===-1).map(([i,n])=>n)}function de(e,t="|"){return e.map(r=>qe(r)).join(t)}function xh(e,t){return typeof t=="bigint"?t.toString():t}function qd(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function tl(e){return e==null}function jv(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function p6(e,t){const r=(e.toString().split(".")[1]||"").length,i=t.toString();let n=(i.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(i)){const f=i.match(/\d?e-(\d?)/);f!=null&&f[1]&&(n=Number.parseInt(f[1]))}const a=r>n?r:n,l=Number.parseInt(e.toFixed(a).replace(".","")),d=Number.parseInt(t.toFixed(a).replace(".",""));return l%d/10**a}const hj=Symbol("evaluating");function ct(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==hj)return i===void 0&&(i=hj,i=r()),i},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function cne(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Zo(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Fa(...e){const t={};for(const r of e){const i=Object.getOwnPropertyDescriptors(r);Object.assign(t,i)}return Object.defineProperties({},t)}function dne(e){return Fa(e._zod.def)}function fne(e,t){return t?t.reduce((r,i)=>r==null?void 0:r[i],e):e}function mne(e){const t=Object.keys(e),r=t.map(i=>e[i]);return Promise.all(r).then(i=>{const n={};for(let a=0;a<t.length;a++)n[t[a]]=i[a];return n})}function hne(e=10){const t="abcdefghijklmnopqrstuvwxyz";let r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r}function Hb(e){return JSON.stringify(e)}function g6(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const WS="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function bs(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const y6=qd(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function Lu(e){if(bs(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(bs(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Iv(e){return Lu(e)?{...e}:Array.isArray(e)?[...e]:e}function vne(e){let t=0;for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}const pne=e=>{const t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Oh=new Set(["string","number","symbol"]),b6=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ma(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ei(e,t,r){const i=new e._zod.constr(t??e._zod.def);return(!t||r!=null&&r.parent)&&(i._zod.parent=e),i}function re(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function gne(e){let t;return new Proxy({},{get(r,i,n){return t??(t=e()),Reflect.get(t,i,n)},set(r,i,n,a){return t??(t=e()),Reflect.set(t,i,n,a)},has(r,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(r,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(r,i,n){return t??(t=e()),Reflect.defineProperty(t,i,n)}})}function qe(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function _6(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const $6={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]},S6={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function k6(e,t){const r=e._zod.def,i=Fa(e._zod.def,{get shape(){const n={};for(const a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(n[a]=r.shape[a])}return Zo(this,"shape",n),n},checks:[]});return ei(e,i)}function w6(e,t){const r=e._zod.def,i=Fa(e._zod.def,{get shape(){const n={...e._zod.def.shape};for(const a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete n[a]}return Zo(this,"shape",n),n},checks:[]});return ei(e,i)}function x6(e,t){if(!Lu(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const n=Fa(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t};return Zo(this,"shape",a),a},checks:[]});return ei(e,n)}function O6(e,t){if(!Lu(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r={...e._zod.def,get shape(){const i={...e._zod.def.shape,...t};return Zo(this,"shape",i),i},checks:e._zod.def.checks};return ei(e,r)}function E6(e,t){const r=Fa(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t._zod.def.shape};return Zo(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return ei(e,r)}function N6(e,t,r){const i=Fa(t._zod.def,{get shape(){const n=t._zod.def.shape,a={...n};if(r)for(const l in r){if(!(l in n))throw new Error(`Unrecognized key: "${l}"`);r[l]&&(a[l]=e?new e({type:"optional",innerType:n[l]}):n[l])}else for(const l in n)a[l]=e?new e({type:"optional",innerType:n[l]}):n[l];return Zo(this,"shape",a),a},checks:[]});return ei(t,i)}function j6(e,t,r){const i=Fa(t._zod.def,{get shape(){const n=t._zod.def.shape,a={...n};if(r)for(const l in r){if(!(l in a))throw new Error(`Unrecognized key: "${l}"`);r[l]&&(a[l]=new e({type:"nonoptional",innerType:n[l]}))}else for(const l in n)a[l]=new e({type:"nonoptional",innerType:n[l]});return Zo(this,"shape",a),a},checks:[]});return ei(t,i)}function gu(e,t=0){var r;if(e.aborted===!0)return!0;for(let i=t;i<e.issues.length;i++)if(((r=e.issues[i])==null?void 0:r.continue)!==!0)return!0;return!1}function vi(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function Mc(e){return typeof e=="string"?e:e==null?void 0:e.message}function xi(e,t,r){var n,a,l,d,f,m;const i={...e,path:e.path??[]};if(!e.message){const p=Mc((l=(a=(n=e.inst)==null?void 0:n._zod.def)==null?void 0:a.error)==null?void 0:l.call(a,e))??Mc((d=t==null?void 0:t.error)==null?void 0:d.call(t,e))??Mc((f=r.customError)==null?void 0:f.call(r,e))??Mc((m=r.localeError)==null?void 0:m.call(r,e))??"Invalid input";i.message=p}return delete i.inst,delete i.continue,t!=null&&t.reportInput||delete i.input,i}function Tv(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function zv(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function _s(...e){const[t,r,i]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:i}:{...t}}function yne(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function I6(e){const t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r}function T6(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function bne(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return I6(t+r)}function _ne(e){return T6(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function $ne(e){const t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");const r=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)r[i/2]=Number.parseInt(t.slice(i,i+2),16);return r}function Sne(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}class kne{constructor(...t){}}const z6=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:S6,Class:kne,NUMBER_FORMAT_RANGES:$6,aborted:gu,allowsEval:y6,assert:sne,assertEqual:ane,assertIs:une,assertNever:lne,assertNotEqual:one,assignProp:Zo,base64ToUint8Array:I6,base64urlToUint8Array:bne,cached:qd,captureStackTrace:WS,cleanEnum:yne,cleanRegex:jv,clone:ei,cloneDef:dne,createTransparentProxy:gne,defineLazy:ct,esc:Hb,escapeRegex:Ma,extend:x6,finalizeIssue:xi,floatSafeRemainder:p6,getElementAtPath:fne,getEnumValues:QS,getLengthableOrigin:zv,getParsedType:pne,getSizableOrigin:Tv,hexToUint8Array:$ne,isObject:bs,isPlainObject:Lu,issue:_s,joinValues:de,jsonStringifyReplacer:xh,merge:E6,mergeDefs:Fa,normalizeParams:re,nullish:tl,numKeys:vne,objectClone:cne,omit:w6,optionalKeys:_6,partial:N6,pick:k6,prefixIssues:vi,primitiveTypes:b6,promiseAllObject:mne,propertyKeyTypes:Oh,randomString:hne,required:j6,safeExtend:O6,shallowClone:Iv,slugify:g6,stringifyPrimitive:qe,uint8ArrayToBase64:T6,uint8ArrayToBase64url:_ne,uint8ArrayToHex:Sne,unwrapMessage:Mc},Symbol.toStringTag,{value:"Module"})),A6=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,xh,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},e0=Z("$ZodError",A6),Er=Z("$ZodError",A6,{Parent:Error});function t0(e,t=r=>r.message){const r={},i=[];for(const n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):i.push(t(n));return{formErrors:i,fieldErrors:r}}function n0(e,t=r=>r.message){const r={_errors:[]},i=n=>{for(const a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>i({issues:l}));else if(a.code==="invalid_key")i({issues:a.issues});else if(a.code==="invalid_element")i({issues:a.issues});else if(a.path.length===0)r._errors.push(t(a));else{let l=r,d=0;for(;d<a.path.length;){const f=a.path[d];d===a.path.length-1?(l[f]=l[f]||{_errors:[]},l[f]._errors.push(t(a))):l[f]=l[f]||{_errors:[]},l=l[f],d++}}};return i(e),r}function D6(e,t=r=>r.message){const r={errors:[]},i=(n,a=[])=>{var l,d;for(const f of n.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(m=>i({issues:m},f.path));else if(f.code==="invalid_key")i({issues:f.issues},f.path);else if(f.code==="invalid_element")i({issues:f.issues},f.path);else{const m=[...a,...f.path];if(m.length===0){r.errors.push(t(f));continue}let p=r,g=0;for(;g<m.length;){const y=m[g],S=g===m.length-1;typeof y=="string"?(p.properties??(p.properties={}),(l=p.properties)[y]??(l[y]={errors:[]}),p=p.properties[y]):(p.items??(p.items=[]),(d=p.items)[y]??(d[y]={errors:[]}),p=p.items[y]),S&&p.errors.push(t(f)),g++}}};return i(e),r}function U6(e){const t=[],r=e.map(i=>typeof i=="object"?i.key:i);for(const i of r)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function C6(e){var i;const t=[],r=[...e.issues].sort((n,a)=>(n.path??[]).length-(a.path??[]).length);for(const n of r)t.push(`✖ ${n.message}`),(i=n.path)!=null&&i.length&&t.push(` → at ${U6(n.path)}`);return t.join(`
|
|
177
|
+
`)}const Gd=e=>(t,r,i,n)=>{const a=i?Object.assign(i,{async:!1}):{async:!1},l=t._zod.run({value:r,issues:[]},a);if(l instanceof Promise)throw new Nu;if(l.issues.length){const d=new((n==null?void 0:n.Err)??e)(l.issues.map(f=>xi(f,a,qn())));throw WS(d,n==null?void 0:n.callee),d}return l.value},Kb=Gd(Er),Hd=e=>async(t,r,i,n)=>{const a=i?Object.assign(i,{async:!0}):{async:!0};let l=t._zod.run({value:r,issues:[]},a);if(l instanceof Promise&&(l=await l),l.issues.length){const d=new((n==null?void 0:n.Err)??e)(l.issues.map(f=>xi(f,a,qn())));throw WS(d,n==null?void 0:n.callee),d}return l.value},Jb=Hd(Er),Kd=e=>(t,r,i)=>{const n=i?{...i,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},n);if(a instanceof Promise)throw new Nu;return a.issues.length?{success:!1,error:new(e??e0)(a.issues.map(l=>xi(l,n,qn())))}:{success:!0,data:a.value}},R6=Kd(Er),Jd=e=>async(t,r,i)=>{const n=i?Object.assign(i,{async:!0}):{async:!0};let a=t._zod.run({value:r,issues:[]},n);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(l=>xi(l,n,qn())))}:{success:!0,data:a.value}},M6=Jd(Er),r0=e=>(t,r,i)=>{const n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Gd(e)(t,r,n)},wne=r0(Er),i0=e=>(t,r,i)=>Gd(e)(t,r,i),xne=i0(Er),a0=e=>async(t,r,i)=>{const n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Hd(e)(t,r,n)},One=a0(Er),o0=e=>async(t,r,i)=>Hd(e)(t,r,i),Ene=o0(Er),u0=e=>(t,r,i)=>{const n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Kd(e)(t,r,n)},Nne=u0(Er),l0=e=>(t,r,i)=>Kd(e)(t,r,i),jne=l0(Er),s0=e=>async(t,r,i)=>{const n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Jd(e)(t,r,n)},Ine=s0(Er),c0=e=>async(t,r,i)=>Jd(e)(t,r,i),Tne=c0(Er),L6=/^[cC][^\s-]{8,}$/,P6=/^[0-9a-z]+$/,Z6=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,B6=/^[0-9a-vA-V]{20}$/,F6=/^[A-Za-z0-9]{27}$/,V6=/^[a-zA-Z0-9_-]{21}$/,q6=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,zne=/^[-+]?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)?)??$/,G6=/^([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})$/,$s=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ane=$s(4),Dne=$s(6),Une=$s(7),H6=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Cne=/^[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])?)*$/,Rne=/^(([^<>()\[\]\\.,;:\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,}))$/,K6=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Mne=K6,Lne=/^[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])?)*$/,Pne="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function J6(){return new RegExp(Pne,"u")}const Y6=/^(?:(?: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])$/,X6=/^(([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}|:))$/,Q6=e=>{const t=Ma(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},W6=/^((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])$/,eR=/^(([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])$/,tR=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,d0=/^[A-Za-z0-9_-]*$/,nR=/^(?=.{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])?)*\.?$/,rR=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,iR=/^\+(?:[0-9]){6,14}[0-9]$/,aR="(?:(?:\\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])))",oR=new RegExp(`^${aR}$`);function uR(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function lR(e){return new RegExp(`^${uR(e)}$`)}function sR(e){const t=uR({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${t}(?:${r.join("|")})`;return new RegExp(`^${aR}T(?:${i})$`)}const cR=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},dR=/^-?\d+n?$/,fR=/^-?\d+$/,mR=/^-?\d+(?:\.\d+)?/,hR=/^(?:true|false)$/i,vR=/^null$/i,pR=/^undefined$/i,gR=/^[^A-Z]*$/,yR=/^[^a-z]*$/,bR=/^[0-9a-fA-F]*$/;function Yd(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Xd(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const Zne=/^[0-9a-fA-F]{32}$/,Bne=Yd(22,"=="),Fne=Xd(22),Vne=/^[0-9a-fA-F]{40}$/,qne=Yd(27,"="),Gne=Xd(27),Hne=/^[0-9a-fA-F]{64}$/,Kne=Yd(43,"="),Jne=Xd(43),Yne=/^[0-9a-fA-F]{96}$/,Xne=Yd(64,""),Qne=Xd(64),Wne=/^[0-9a-fA-F]{128}$/,ere=Yd(86,"=="),tre=Xd(86),f0=Object.freeze(Object.defineProperty({__proto__:null,base64:tR,base64url:d0,bigint:dR,boolean:hR,browserEmail:Lne,cidrv4:W6,cidrv6:eR,cuid:L6,cuid2:P6,date:oR,datetime:sR,domain:rR,duration:q6,e164:iR,email:H6,emoji:J6,extendedDuration:zne,guid:G6,hex:bR,hostname:nR,html5Email:Cne,idnEmail:Mne,integer:fR,ipv4:Y6,ipv6:X6,ksuid:F6,lowercase:gR,mac:Q6,md5_base64:Bne,md5_base64url:Fne,md5_hex:Zne,nanoid:V6,null:vR,number:mR,rfc5322Email:Rne,sha1_base64:qne,sha1_base64url:Gne,sha1_hex:Vne,sha256_base64:Kne,sha256_base64url:Jne,sha256_hex:Hne,sha384_base64:Xne,sha384_base64url:Qne,sha384_hex:Yne,sha512_base64:ere,sha512_base64url:tre,sha512_hex:Wne,string:cR,time:lR,ulid:Z6,undefined:pR,unicodeEmail:K6,uppercase:yR,uuid:$s,uuid4:Ane,uuid6:Dne,uuid7:Une,xid:B6},Symbol.toStringTag,{value:"Module"})),Yt=Z("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),_R={number:"number",bigint:"bigint",object:"date"},m0=Z("$ZodCheckLessThan",(e,t)=>{Yt.init(e,t);const r=_R[typeof t.value];e._zod.onattach.push(i=>{const n=i._zod.bag,a=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:r,code:"too_big",maximum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),h0=Z("$ZodCheckGreaterThan",(e,t)=>{Yt.init(e,t);const r=_R[typeof t.value];e._zod.onattach.push(i=>{const n=i._zod.bag,a=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:r,code:"too_small",minimum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),$R=Z("$ZodCheckMultipleOf",(e,t)=>{Yt.init(e,t),e._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):p6(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),SR=Z("$ZodCheckNumberFormat",(e,t)=>{var l;Yt.init(e,t),t.format=t.format||"float64";const r=(l=t.format)==null?void 0:l.includes("int"),i=r?"int":"number",[n,a]=$6[t.format];e._zod.onattach.push(d=>{const f=d._zod.bag;f.format=t.format,f.minimum=n,f.maximum=a,r&&(f.pattern=fR)}),e._zod.check=d=>{const f=d.value;if(r){if(!Number.isInteger(f)){d.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:f,inst:e});return}if(!Number.isSafeInteger(f)){f>0?d.issues.push({input:f,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort}):d.issues.push({input:f,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort});return}}f<n&&d.issues.push({origin:"number",input:f,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),f>a&&d.issues.push({origin:"number",input:f,code:"too_big",maximum:a,inst:e})}}),kR=Z("$ZodCheckBigIntFormat",(e,t)=>{Yt.init(e,t);const[r,i]=S6[t.format];e._zod.onattach.push(n=>{const a=n._zod.bag;a.format=t.format,a.minimum=r,a.maximum=i}),e._zod.check=n=>{const a=n.value;a<r&&n.issues.push({origin:"bigint",input:a,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),a>i&&n.issues.push({origin:"bigint",input:a,code:"too_big",maximum:i,inst:e})}}),wR=Z("$ZodCheckMaxSize",(e,t)=>{var r;Yt.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!tl(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const n=i.value;n.size<=t.maximum||i.issues.push({origin:Tv(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),xR=Z("$ZodCheckMinSize",(e,t)=>{var r;Yt.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!tl(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const n=i.value;n.size>=t.minimum||i.issues.push({origin:Tv(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),OR=Z("$ZodCheckSizeEquals",(e,t)=>{var r;Yt.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!tl(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=i=>{const n=i.value,a=n.size;if(a===t.size)return;const l=a>t.size;i.issues.push({origin:Tv(n),...l?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),ER=Z("$ZodCheckMaxLength",(e,t)=>{var r;Yt.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!tl(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const n=i.value;if(n.length<=t.maximum)return;const l=zv(n);i.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),NR=Z("$ZodCheckMinLength",(e,t)=>{var r;Yt.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!tl(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const n=i.value;if(n.length>=t.minimum)return;const l=zv(n);i.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),jR=Z("$ZodCheckLengthEquals",(e,t)=>{var r;Yt.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!tl(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=i=>{const n=i.value,a=n.length;if(a===t.length)return;const l=zv(n),d=a>t.length;i.issues.push({origin:l,...d?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Qd=Z("$ZodCheckStringFormat",(e,t)=>{var r,i;Yt.init(e,t),e._zod.onattach.push(n=>{const a=n._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),IR=Z("$ZodCheckRegex",(e,t)=>{Qd.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),TR=Z("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=gR),Qd.init(e,t)}),zR=Z("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=yR),Qd.init(e,t)}),AR=Z("$ZodCheckIncludes",(e,t)=>{Yt.init(e,t);const r=Ma(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=i,e._zod.onattach.push(n=>{const a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),DR=Z("$ZodCheckStartsWith",(e,t)=>{Yt.init(e,t);const r=new RegExp(`^${Ma(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{const n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),UR=Z("$ZodCheckEndsWith",(e,t)=>{Yt.init(e,t);const r=new RegExp(`.*${Ma(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{const n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function vj(e,t,r){e.issues.length&&t.issues.push(...vi(r,e.issues))}const CR=Z("$ZodCheckProperty",(e,t)=>{Yt.init(e,t),e._zod.check=r=>{const i=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(n=>vj(n,r,t.property));vj(i,r,t.property)}}),RR=Z("$ZodCheckMimeType",(e,t)=>{Yt.init(e,t);const r=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),MR=Z("$ZodCheckOverwrite",(e,t)=>{Yt.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class LR{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const i=t.split(`
|
|
178
|
+
`).filter(l=>l),n=Math.min(...i.map(l=>l.length-l.trimStart().length)),a=i.map(l=>l.slice(n)).map(l=>" ".repeat(this.indent*2)+l);for(const l of a)this.content.push(l)}compile(){const t=Function,r=this==null?void 0:this.args,n=[...((this==null?void 0:this.content)??[""]).map(a=>` ${a}`)];return new t(...r,n.join(`
|
|
179
|
+
`))}}const PR={major:4,minor:1,patch:13},Qe=Z("$ZodType",(e,t)=>{var n;var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=PR;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const a of i)for(const l of a._zod.onattach)l(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),(n=e._zod.deferred)==null||n.push(()=>{e._zod.run=e._zod.parse});else{const a=(d,f,m)=>{let p=gu(d),g;for(const y of f){if(y._zod.def.when){if(!y._zod.def.when(d))continue}else if(p)continue;const S=d.issues.length,w=y._zod.check(d);if(w instanceof Promise&&(m==null?void 0:m.async)===!1)throw new Nu;if(g||w instanceof Promise)g=(g??Promise.resolve()).then(async()=>{await w,d.issues.length!==S&&(p||(p=gu(d,S)))});else{if(d.issues.length===S)continue;p||(p=gu(d,S))}}return g?g.then(()=>d):d},l=(d,f,m)=>{if(gu(d))return d.aborted=!0,d;const p=a(f,i,m);if(p instanceof Promise){if(m.async===!1)throw new Nu;return p.then(g=>e._zod.parse(g,m))}return e._zod.parse(p,m)};e._zod.run=(d,f)=>{if(f.skipChecks)return e._zod.parse(d,f);if(f.direction==="backward"){const p=e._zod.parse({value:d.value,issues:[]},{...f,skipChecks:!0});return p instanceof Promise?p.then(g=>l(g,d,f)):l(p,d,f)}const m=e._zod.parse(d,f);if(m instanceof Promise){if(f.async===!1)throw new Nu;return m.then(p=>a(p,i,f))}return a(m,i,f)}}e["~standard"]={validate:a=>{var l;try{const d=R6(e,a);return d.success?{value:d.data}:{issues:(l=d.error)==null?void 0:l.issues}}catch{return M6(e,a).then(f=>{var m;return f.success?{value:f.data}:{issues:(m=f.error)==null?void 0:m.issues}})}},vendor:"zod",version:1}}),Wd=Z("$ZodString",(e,t)=>{var r;Qe.init(e,t),e._zod.pattern=[...((r=e==null?void 0:e._zod.bag)==null?void 0:r.patterns)??[]].pop()??cR(e._zod.bag),e._zod.parse=(i,n)=>{if(t.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:e}),i}}),Ct=Z("$ZodStringFormat",(e,t)=>{Qd.init(e,t),Wd.init(e,t)}),ZR=Z("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=G6),Ct.init(e,t)}),BR=Z("$ZodUUID",(e,t)=>{if(t.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=$s(i))}else t.pattern??(t.pattern=$s());Ct.init(e,t)}),FR=Z("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=H6),Ct.init(e,t)}),VR=Z("$ZodURL",(e,t)=>{Ct.init(e,t),e._zod.check=r=>{try{const i=r.value.trim(),n=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),qR=Z("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=J6()),Ct.init(e,t)}),GR=Z("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=V6),Ct.init(e,t)}),HR=Z("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=L6),Ct.init(e,t)}),KR=Z("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=P6),Ct.init(e,t)}),JR=Z("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Z6),Ct.init(e,t)}),YR=Z("$ZodXID",(e,t)=>{t.pattern??(t.pattern=B6),Ct.init(e,t)}),XR=Z("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=F6),Ct.init(e,t)}),QR=Z("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=sR(t)),Ct.init(e,t)}),WR=Z("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=oR),Ct.init(e,t)}),e2=Z("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=lR(t)),Ct.init(e,t)}),t2=Z("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=q6),Ct.init(e,t)}),n2=Z("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Y6),Ct.init(e,t),e._zod.bag.format="ipv4"}),r2=Z("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=X6),Ct.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),i2=Z("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Q6(t.delimiter)),Ct.init(e,t),e._zod.bag.format="mac"}),a2=Z("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=W6),Ct.init(e,t)}),o2=Z("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=eR),Ct.init(e,t),e._zod.check=r=>{const i=r.value.split("/");try{if(i.length!==2)throw new Error;const[n,a]=i;if(!a)throw new Error;const l=Number(a);if(`${l}`!==a)throw new Error;if(l<0||l>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function v0(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const u2=Z("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=tR),Ct.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{v0(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function l2(e){if(!d0.test(e))return!1;const t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return v0(r)}const s2=Z("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=d0),Ct.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{l2(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),c2=Z("$ZodE164",(e,t)=>{t.pattern??(t.pattern=iR),Ct.init(e,t)});function d2(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[i]=r;if(!i)return!1;const n=JSON.parse(atob(i));return!("typ"in n&&(n==null?void 0:n.typ)!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}const f2=Z("$ZodJWT",(e,t)=>{Ct.init(e,t),e._zod.check=r=>{d2(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),m2=Z("$ZodCustomStringFormat",(e,t)=>{Ct.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),p0=Z("$ZodNumber",(e,t)=>{Qe.init(e,t),e._zod.pattern=e._zod.bag.pattern??mR,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}const n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;const a=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...a?{received:a}:{}}),r}}),h2=Z("$ZodNumberFormat",(e,t)=>{SR.init(e,t),p0.init(e,t)}),g0=Z("$ZodBoolean",(e,t)=>{Qe.init(e,t),e._zod.pattern=hR,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=!!r.value}catch{}const n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),y0=Z("$ZodBigInt",(e,t)=>{Qe.init(e,t),e._zod.pattern=dR,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),v2=Z("$ZodBigIntFormat",(e,t)=>{kR.init(e,t),y0.init(e,t)}),p2=Z("$ZodSymbol",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),g2=Z("$ZodUndefined",(e,t)=>{Qe.init(e,t),e._zod.pattern=pR,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,i)=>{const n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),y2=Z("$ZodNull",(e,t)=>{Qe.init(e,t),e._zod.pattern=vR,e._zod.values=new Set([null]),e._zod.parse=(r,i)=>{const n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),b2=Z("$ZodAny",(e,t)=>{Qe.init(e,t),e._zod.parse=r=>r}),_2=Z("$ZodUnknown",(e,t)=>{Qe.init(e,t),e._zod.parse=r=>r}),$2=Z("$ZodNever",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),S2=Z("$ZodVoid",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),k2=Z("$ZodDate",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}const n=r.value,a=n instanceof Date;return a&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...a?{received:"Invalid Date"}:{},inst:e}),r}});function pj(e,t,r){e.issues.length&&t.issues.push(...vi(r,e.issues)),t.value[r]=e.value}const w2=Z("$ZodArray",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);const a=[];for(let l=0;l<n.length;l++){const d=n[l],f=t.element._zod.run({value:d,issues:[]},i);f instanceof Promise?a.push(f.then(m=>pj(m,r,l))):pj(f,r,l)}return a.length?Promise.all(a).then(()=>r):r}});function Eh(e,t,r,i){e.issues.length&&t.issues.push(...vi(r,e.issues)),e.value===void 0?r in i&&(t.value[r]=void 0):t.value[r]=e.value}function x2(e){var i,n,a,l;const t=Object.keys(e.shape);for(const d of t)if(!((l=(a=(n=(i=e.shape)==null?void 0:i[d])==null?void 0:n._zod)==null?void 0:a.traits)!=null&&l.has("$ZodType")))throw new Error(`Invalid element at key "${d}": expected a Zod schema`);const r=_6(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function O2(e,t,r,i,n,a){const l=[],d=n.keySet,f=n.catchall._zod,m=f.def.type;for(const p in t){if(d.has(p))continue;if(m==="never"){l.push(p);continue}const g=f.run({value:t[p],issues:[]},i);g instanceof Promise?e.push(g.then(y=>Eh(y,r,p,t))):Eh(g,r,p,t)}return l.length&&r.issues.push({code:"unrecognized_keys",keys:l,input:t,inst:a}),e.length?Promise.all(e).then(()=>r):r}const E2=Z("$ZodObject",(e,t)=>{Qe.init(e,t);const r=Object.getOwnPropertyDescriptor(t,"shape");if(!(r!=null&&r.get)){const d=t.shape;Object.defineProperty(t,"shape",{get:()=>{const f={...d};return Object.defineProperty(t,"shape",{value:f}),f}})}const i=qd(()=>x2(t));ct(e._zod,"propValues",()=>{const d=t.shape,f={};for(const m in d){const p=d[m]._zod;if(p.values){f[m]??(f[m]=new Set);for(const g of p.values)f[m].add(g)}}return f});const n=bs,a=t.catchall;let l;e._zod.parse=(d,f)=>{l??(l=i.value);const m=d.value;if(!n(m))return d.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),d;d.value={};const p=[],g=l.shape;for(const y of l.keys){const w=g[y]._zod.run({value:m[y],issues:[]},f);w instanceof Promise?p.push(w.then(j=>Eh(j,d,y,m))):Eh(w,d,y,m)}return a?O2(p,m,d,f,i.value,e):p.length?Promise.all(p).then(()=>d):d}}),N2=Z("$ZodObjectJIT",(e,t)=>{E2.init(e,t);const r=e._zod.parse,i=qd(()=>x2(t)),n=y=>{const S=new LR(["shape","payload","ctx"]),w=i.value,j=N=>{const z=Hb(N);return`shape[${z}]._zod.run({ value: input[${z}], issues: [] }, ctx)`};S.write("const input = payload.value;");const x=Object.create(null);let $=0;for(const N of w.keys)x[N]=`key_${$++}`;S.write("const newResult = {};");for(const N of w.keys){const z=x[N],T=Hb(N);S.write(`const ${z} = ${j(N)};`),S.write(`
|
|
180
|
+
if (${z}.issues.length) {
|
|
181
|
+
payload.issues = payload.issues.concat(${z}.issues.map(iss => ({
|
|
182
|
+
...iss,
|
|
183
|
+
path: iss.path ? [${T}, ...iss.path] : [${T}]
|
|
184
|
+
})));
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
if (${z}.value === undefined) {
|
|
189
|
+
if (${T} in input) {
|
|
190
|
+
newResult[${T}] = undefined;
|
|
191
|
+
}
|
|
192
|
+
} else {
|
|
193
|
+
newResult[${T}] = ${z}.value;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
`)}S.write("payload.value = newResult;"),S.write("return payload;");const I=S.compile();return(N,z)=>I(y,N,z)};let a;const l=bs,d=!wh.jitless,m=d&&y6.value,p=t.catchall;let g;e._zod.parse=(y,S)=>{g??(g=i.value);const w=y.value;return l(w)?d&&m&&(S==null?void 0:S.async)===!1&&S.jitless!==!0?(a||(a=n(t.shape)),y=a(y,S),p?O2([],w,y,S,g,e):y):r(y,S):(y.issues.push({expected:"object",code:"invalid_type",input:w,inst:e}),y)}});function gj(e,t,r,i){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;const n=e.filter(a=>!gu(a));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(a=>a.issues.map(l=>xi(l,i,qn())))}),t)}const b0=Z("$ZodUnion",(e,t)=>{Qe.init(e,t),ct(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),ct(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),ct(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),ct(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){const n=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${n.map(a=>jv(a.source)).join("|")})$`)}});const r=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(n,a)=>{if(r)return i(n,a);let l=!1;const d=[];for(const f of t.options){const m=f._zod.run({value:n.value,issues:[]},a);if(m instanceof Promise)d.push(m),l=!0;else{if(m.issues.length===0)return m;d.push(m)}}return l?Promise.all(d).then(f=>gj(f,n,e,a)):gj(d,n,e,a)}}),j2=Z("$ZodDiscriminatedUnion",(e,t)=>{b0.init(e,t);const r=e._zod.parse;ct(e._zod,"propValues",()=>{const n={};for(const a of t.options){const l=a._zod.propValues;if(!l||Object.keys(l).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const[d,f]of Object.entries(l)){n[d]||(n[d]=new Set);for(const m of f)n[d].add(m)}}return n});const i=qd(()=>{var l;const n=t.options,a=new Map;for(const d of n){const f=(l=d._zod.propValues)==null?void 0:l[t.discriminator];if(!f||f.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(d)}"`);for(const m of f){if(a.has(m))throw new Error(`Duplicate discriminator value "${String(m)}"`);a.set(m,d)}}return a});e._zod.parse=(n,a)=>{const l=n.value;if(!bs(l))return n.issues.push({code:"invalid_type",expected:"object",input:l,inst:e}),n;const d=i.value.get(l==null?void 0:l[t.discriminator]);return d?d._zod.run(n,a):t.unionFallback?r(n,a):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:l,path:[t.discriminator],inst:e}),n)}}),I2=Z("$ZodIntersection",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value,a=t.left._zod.run({value:n,issues:[]},i),l=t.right._zod.run({value:n,issues:[]},i);return a instanceof Promise||l instanceof Promise?Promise.all([a,l]).then(([f,m])=>yj(r,f,m)):yj(r,a,l)}});function Yb(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Lu(e)&&Lu(t)){const r=Object.keys(t),i=Object.keys(e).filter(a=>r.indexOf(a)!==-1),n={...e,...t};for(const a of i){const l=Yb(e[a],t[a]);if(!l.valid)return{valid:!1,mergeErrorPath:[a,...l.mergeErrorPath]};n[a]=l.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let i=0;i<e.length;i++){const n=e[i],a=t[i],l=Yb(n,a);if(!l.valid)return{valid:!1,mergeErrorPath:[i,...l.mergeErrorPath]};r.push(l.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function yj(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),gu(e))return e;const i=Yb(t.value,r.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const _0=Z("$ZodTuple",(e,t)=>{Qe.init(e,t);const r=t.items;e._zod.parse=(i,n)=>{const a=i.value;if(!Array.isArray(a))return i.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];const l=[],d=[...r].reverse().findIndex(p=>p._zod.optin!=="optional"),f=d===-1?0:r.length-d;if(!t.rest){const p=a.length>r.length,g=a.length<f-1;if(p||g)return i.issues.push({...p?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},input:a,inst:e,origin:"array"}),i}let m=-1;for(const p of r){if(m++,m>=a.length&&m>=f)continue;const g=p._zod.run({value:a[m],issues:[]},n);g instanceof Promise?l.push(g.then(y=>Dm(y,i,m))):Dm(g,i,m)}if(t.rest){const p=a.slice(r.length);for(const g of p){m++;const y=t.rest._zod.run({value:g,issues:[]},n);y instanceof Promise?l.push(y.then(S=>Dm(S,i,m))):Dm(y,i,m)}}return l.length?Promise.all(l).then(()=>i):i}});function Dm(e,t,r){e.issues.length&&t.issues.push(...vi(r,e.issues)),t.value[r]=e.value}const T2=Z("$ZodRecord",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!Lu(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;const a=[],l=t.keyType._zod.values;if(l){r.value={};const d=new Set;for(const m of l)if(typeof m=="string"||typeof m=="number"||typeof m=="symbol"){d.add(typeof m=="number"?m.toString():m);const p=t.valueType._zod.run({value:n[m],issues:[]},i);p instanceof Promise?a.push(p.then(g=>{g.issues.length&&r.issues.push(...vi(m,g.issues)),r.value[m]=g.value})):(p.issues.length&&r.issues.push(...vi(m,p.issues)),r.value[m]=p.value)}let f;for(const m in n)d.has(m)||(f=f??[],f.push(m));f&&f.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:f})}else{r.value={};for(const d of Reflect.ownKeys(n)){if(d==="__proto__")continue;const f=t.keyType._zod.run({value:d,issues:[]},i);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(f.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:f.issues.map(p=>xi(p,i,qn())),input:d,path:[d],inst:e}),r.value[f.value]=f.value;continue}const m=t.valueType._zod.run({value:n[d],issues:[]},i);m instanceof Promise?a.push(m.then(p=>{p.issues.length&&r.issues.push(...vi(d,p.issues)),r.value[f.value]=p.value})):(m.issues.length&&r.issues.push(...vi(d,m.issues)),r.value[f.value]=m.value)}}return a.length?Promise.all(a).then(()=>r):r}}),z2=Z("$ZodMap",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;const a=[];r.value=new Map;for(const[l,d]of n){const f=t.keyType._zod.run({value:l,issues:[]},i),m=t.valueType._zod.run({value:d,issues:[]},i);f instanceof Promise||m instanceof Promise?a.push(Promise.all([f,m]).then(([p,g])=>{bj(p,g,r,l,n,e,i)})):bj(f,m,r,l,n,e,i)}return a.length?Promise.all(a).then(()=>r):r}});function bj(e,t,r,i,n,a,l){e.issues.length&&(Oh.has(typeof i)?r.issues.push(...vi(i,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:a,issues:e.issues.map(d=>xi(d,l,qn()))})),t.issues.length&&(Oh.has(typeof i)?r.issues.push(...vi(i,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:a,key:i,issues:t.issues.map(d=>xi(d,l,qn()))})),r.value.set(e.value,t.value)}const A2=Z("$ZodSet",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;const a=[];r.value=new Set;for(const l of n){const d=t.valueType._zod.run({value:l,issues:[]},i);d instanceof Promise?a.push(d.then(f=>_j(f,r))):_j(d,r)}return a.length?Promise.all(a).then(()=>r):r}});function _j(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}const D2=Z("$ZodEnum",(e,t)=>{Qe.init(e,t);const r=QS(t.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(n=>Oh.has(typeof n)).map(n=>typeof n=="string"?Ma(n):n.toString()).join("|")})$`),e._zod.parse=(n,a)=>{const l=n.value;return i.has(l)||n.issues.push({code:"invalid_value",values:r,input:l,inst:e}),n}}),U2=Z("$ZodLiteral",(e,t)=>{if(Qe.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?Ma(i):i?Ma(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,n)=>{const a=i.value;return r.has(a)||i.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),i}}),C2=Z("$ZodFile",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),R2=Z("$ZodTransform",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Nv(e.constructor.name);const n=t.transform(r.value,r);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(l=>(r.value=l,r));if(n instanceof Promise)throw new Nu;return r.value=n,r}});function $j(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const M2=Z("$ZodOptional",(e,t)=>{Qe.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ct(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ct(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${jv(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(t.innerType._zod.optin==="optional"){const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>$j(a,r.value)):$j(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,i)}}),L2=Z("$ZodNullable",(e,t)=>{Qe.init(e,t),ct(e._zod,"optin",()=>t.innerType._zod.optin),ct(e._zod,"optout",()=>t.innerType._zod.optout),ct(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${jv(r.source)}|null)$`):void 0}),ct(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i)}),P2=Z("$ZodDefault",(e,t)=>{Qe.init(e,t),e._zod.optin="optional",ct(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);if(r.value===void 0)return r.value=t.defaultValue,r;const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>Sj(a,t)):Sj(n,t)}});function Sj(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Z2=Z("$ZodPrefault",(e,t)=>{Qe.init(e,t),e._zod.optin="optional",ct(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,i))}),B2=Z("$ZodNonOptional",(e,t)=>{Qe.init(e,t),ct(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>kj(a,e)):kj(n,e)}});function kj(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const F2=Z("$ZodSuccess",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Nv("ZodSuccess");const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>(r.value=a.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),V2=Z("$ZodCatch",(e,t)=>{Qe.init(e,t),ct(e._zod,"optin",()=>t.innerType._zod.optin),ct(e._zod,"optout",()=>t.innerType._zod.optout),ct(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(a=>(r.value=a.value,a.issues.length&&(r.value=t.catchValue({...r,error:{issues:a.issues.map(l=>xi(l,i,qn()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(a=>xi(a,i,qn()))},input:r.value}),r.issues=[]),r)}}),q2=Z("$ZodNaN",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),G2=Z("$ZodPipe",(e,t)=>{Qe.init(e,t),ct(e._zod,"values",()=>t.in._zod.values),ct(e._zod,"optin",()=>t.in._zod.optin),ct(e._zod,"optout",()=>t.out._zod.optout),ct(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){const a=t.out._zod.run(r,i);return a instanceof Promise?a.then(l=>Um(l,t.in,i)):Um(a,t.in,i)}const n=t.in._zod.run(r,i);return n instanceof Promise?n.then(a=>Um(a,t.out,i)):Um(n,t.out,i)}});function Um(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const $0=Z("$ZodCodec",(e,t)=>{Qe.init(e,t),ct(e._zod,"values",()=>t.in._zod.values),ct(e._zod,"optin",()=>t.in._zod.optin),ct(e._zod,"optout",()=>t.out._zod.optout),ct(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if((i.direction||"forward")==="forward"){const a=t.in._zod.run(r,i);return a instanceof Promise?a.then(l=>Cm(l,t,i)):Cm(a,t,i)}else{const a=t.out._zod.run(r,i);return a instanceof Promise?a.then(l=>Cm(l,t,i)):Cm(a,t,i)}}});function Cm(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){const n=t.transform(e.value,e);return n instanceof Promise?n.then(a=>Rm(e,a,t.out,r)):Rm(e,n,t.out,r)}else{const n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(a=>Rm(e,a,t.in,r)):Rm(e,n,t.in,r)}}function Rm(e,t,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},i)}const H2=Z("$ZodReadonly",(e,t)=>{Qe.init(e,t),ct(e._zod,"propValues",()=>t.innerType._zod.propValues),ct(e._zod,"values",()=>t.innerType._zod.values),ct(e._zod,"optin",()=>{var r,i;return(i=(r=t.innerType)==null?void 0:r._zod)==null?void 0:i.optin}),ct(e._zod,"optout",()=>{var r,i;return(i=(r=t.innerType)==null?void 0:r._zod)==null?void 0:i.optout}),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(wj):wj(n)}});function wj(e){return e.value=Object.freeze(e.value),e}const K2=Z("$ZodTemplateLiteral",(e,t)=>{Qe.init(e,t);const r=[];for(const i of t.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);const n=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${i._zod.traits}`);const a=n.startsWith("^")?1:0,l=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(a,l))}else if(i===null||b6.has(typeof i))r.push(Ma(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(i,n)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"template_literal",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i)}),J2=Z("$ZodFunction",(e,t)=>(Qe.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...i){const n=e._def.input?Kb(e._def.input,i):i,a=Reflect.apply(r,this,n);return e._def.output?Kb(e._def.output,a):a}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){const n=e._def.input?await Jb(e._def.input,i):i,a=await Reflect.apply(r,this,n);return e._def.output?await Jb(e._def.output,a):a}},e._zod.parse=(r,i)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{const i=e.constructor;return Array.isArray(r[0])?new i({type:"function",input:new _0({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new i({type:"function",input:r[0],output:e._def.output})},e.output=r=>{const i=e.constructor;return new i({type:"function",input:e._def.input,output:r})},e)),Y2=Z("$ZodPromise",(e,t)=>{Qe.init(e,t),e._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},i))}),X2=Z("$ZodLazy",(e,t)=>{Qe.init(e,t),ct(e._zod,"innerType",()=>t.getter()),ct(e._zod,"pattern",()=>{var r,i;return(i=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:i.pattern}),ct(e._zod,"propValues",()=>{var r,i;return(i=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:i.propValues}),ct(e._zod,"optin",()=>{var r,i;return((i=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:i.optin)??void 0}),ct(e._zod,"optout",()=>{var r,i;return((i=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:i.optout)??void 0}),e._zod.parse=(r,i)=>e._zod.innerType._zod.run(r,i)}),Q2=Z("$ZodCustom",(e,t)=>{Yt.init(e,t),Qe.init(e,t),e._zod.parse=(r,i)=>r,e._zod.check=r=>{const i=r.value,n=t.fn(i);if(n instanceof Promise)return n.then(a=>xj(a,r,i,e));xj(n,r,i,e)}});function xj(e,t,r,i){if(!e){const n={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(n.params=i._zod.def.params),t.issues.push(_s(n))}}const nre=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"مدخل"};return n=>{switch(n.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${n.expected}، ولكن تم إدخال ${r(n.input)}`;case"invalid_value":return n.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${qe(n.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?` أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${a} ${n.maximum.toString()} ${l.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${a} ${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${a} ${n.minimum.toString()} ${l.unit}`:`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${a} ${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${n.prefix}"`:a.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${a.suffix}"`:a.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${a.includes}"`:a.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${a.pattern}`:`${i[a.format]??n.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${n.divisor}`;case"unrecognized_keys":return`معرف${n.keys.length>1?"ات":""} غريب${n.keys.length>1?"ة":""}: ${de(n.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${n.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${n.origin}`;default:return"مدخل غير مقبول"}}};function rre(){return{localeError:nre()}}const ire=()=>{const e={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 t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${n.expected}, daxil olan ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Yanlış dəyər: gözlənilən ${qe(n.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${a}${n.maximum.toString()} ${l.unit??"element"}`:`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Çox kiçik: gözlənilən ${n.origin} ${a}${n.minimum.toString()} ${l.unit}`:`Çox kiçik: gözlənilən ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Yanlış mətn: "${a.prefix}" ilə başlamalıdır`:a.format==="ends_with"?`Yanlış mətn: "${a.suffix}" ilə bitməlidir`:a.format==="includes"?`Yanlış mətn: "${a.includes}" daxil olmalıdır`:a.format==="regex"?`Yanlış mətn: ${a.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${i[a.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":""}: ${de(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 are(){return{localeError:ire()}}function Oj(e,t,r,i){const n=Math.abs(e),a=n%10,l=n%100;return l>=11&&l<=19?i:a===1?t:a>=2&&a<=4?r:i}const ore=()=>{const e={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 t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"лік";case"object":{if(Array.isArray(n))return"масіў";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"увод"};return n=>{switch(n.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${n.expected}, атрымана ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Няправільны ўвод: чакалася ${qe(n.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);if(l){const d=Number(n.maximum),f=Oj(d,l.unit.one,l.unit.few,l.unit.many);return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна ${l.verb} ${a}${n.maximum.toString()} ${f}`}return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна быць ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);if(l){const d=Number(n.minimum),f=Oj(d,l.unit.one,l.unit.few,l.unit.many);return`Занадта малы: чакалася, што ${n.origin} павінна ${l.verb} ${a}${n.minimum.toString()} ${f}`}return`Занадта малы: чакалася, што ${n.origin} павінна быць ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${a.prefix}"`:a.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${a.suffix}"`:a.format==="includes"?`Няправільны радок: павінен змяшчаць "${a.includes}"`:a.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${a.pattern}`:`Няправільны ${i[a.format]??n.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${n.keys.length>1?"ключы":"ключ"}: ${de(n.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${n.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${n.origin}`;default:return"Няправільны ўвод"}}};function ure(){return{localeError:ore()}}const lre=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"число";case"object":{if(Array.isArray(e))return"масив";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},sre=()=>{const e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function t(i){return e[i]??null}const r={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:"вход"};return i=>{switch(i.code){case"invalid_type":return`Невалиден вход: очакван ${i.expected}, получен ${lre(i.input)}`;case"invalid_value":return i.values.length===1?`Невалиден вход: очакван ${qe(i.values[0])}`:`Невалидна опция: очаквано едно от ${de(i.values,"|")}`;case"too_big":{const n=i.inclusive?"<=":"<",a=t(i.origin);return a?`Твърде голямо: очаква се ${i.origin??"стойност"} да съдържа ${n}${i.maximum.toString()} ${a.unit??"елемента"}`:`Твърде голямо: очаква се ${i.origin??"стойност"} да бъде ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",a=t(i.origin);return a?`Твърде малко: очаква се ${i.origin} да съдържа ${n}${i.minimum.toString()} ${a.unit}`:`Твърде малко: очаква се ${i.origin} да бъде ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;if(n.format==="starts_with")return`Невалиден низ: трябва да започва с "${n.prefix}"`;if(n.format==="ends_with")return`Невалиден низ: трябва да завършва с "${n.suffix}"`;if(n.format==="includes")return`Невалиден низ: трябва да включва "${n.includes}"`;if(n.format==="regex")return`Невалиден низ: трябва да съвпада с ${n.pattern}`;let a="Невалиден";return n.format==="emoji"&&(a="Невалидно"),n.format==="datetime"&&(a="Невалидно"),n.format==="date"&&(a="Невалидна"),n.format==="time"&&(a="Невалидно"),n.format==="duration"&&(a="Невалидна"),`${a} ${r[n.format]??i.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${i.divisor}`;case"unrecognized_keys":return`Неразпознат${i.keys.length>1?"и":""} ключ${i.keys.length>1?"ове":""}: ${de(i.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${i.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${i.origin}`;default:return"Невалиден вход"}}};function cre(){return{localeError:sre()}}const dre=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Tipus invàlid: s'esperava ${n.expected}, s'ha rebut ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Valor invàlid: s'esperava ${qe(n.values[0])}`:`Opció invàlida: s'esperava una de ${de(n.values," o ")}`;case"too_big":{const a=n.inclusive?"com a màxim":"menys de",l=t(n.origin);return l?`Massa gran: s'esperava que ${n.origin??"el valor"} contingués ${a} ${n.maximum.toString()} ${l.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${a} ${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?"com a mínim":"més de",l=t(n.origin);return l?`Massa petit: s'esperava que ${n.origin} contingués ${a} ${n.minimum.toString()} ${l.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${a} ${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Format invàlid: ha de començar amb "${a.prefix}"`:a.format==="ends_with"?`Format invàlid: ha d'acabar amb "${a.suffix}"`:a.format==="includes"?`Format invàlid: ha d'incloure "${a.includes}"`:a.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${a.pattern}`:`Format invàlid per a ${i[a.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":""}: ${de(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 fre(){return{localeError:dre()}}const mre=()=>{const e={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 t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"číslo";case"string":return"řetězec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(n))return"pole";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Neplatný vstup: očekáváno ${n.expected}, obdrženo ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Neplatný vstup: očekáváno ${qe(n.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Hodnota je příliš velká: ${n.origin??"hodnota"} musí mít ${a}${n.maximum.toString()} ${l.unit??"prvků"}`:`Hodnota je příliš velká: ${n.origin??"hodnota"} musí být ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Hodnota je příliš malá: ${n.origin??"hodnota"} musí mít ${a}${n.minimum.toString()} ${l.unit??"prvků"}`:`Hodnota je příliš malá: ${n.origin??"hodnota"} musí být ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Neplatný řetězec: musí začínat na "${a.prefix}"`:a.format==="ends_with"?`Neplatný řetězec: musí končit na "${a.suffix}"`:a.format==="includes"?`Neplatný řetězec: musí obsahovat "${a.includes}"`:a.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${a.pattern}`:`Neplatný formát ${i[a.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: ${de(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 hre(){return{localeError:mre()}}const vre=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},t={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};function r(l){return e[l]??null}function i(l){return t[l]??l}const n=l=>{const d=typeof l;switch(d){case"number":return Number.isNaN(l)?"NaN":"tal";case"object":return Array.isArray(l)?"liste":l===null?"null":Object.getPrototypeOf(l)!==Object.prototype&&l.constructor?l.constructor.name:"objekt"}return d},a={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"};return l=>{switch(l.code){case"invalid_type":return`Ugyldigt input: forventede ${i(l.expected)}, fik ${i(n(l.input))}`;case"invalid_value":return l.values.length===1?`Ugyldig værdi: forventede ${qe(l.values[0])}`:`Ugyldigt valg: forventede en af følgende ${de(l.values,"|")}`;case"too_big":{const d=l.inclusive?"<=":"<",f=r(l.origin),m=i(l.origin);return f?`For stor: forventede ${m??"value"} ${f.verb} ${d} ${l.maximum.toString()} ${f.unit??"elementer"}`:`For stor: forventede ${m??"value"} havde ${d} ${l.maximum.toString()}`}case"too_small":{const d=l.inclusive?">=":">",f=r(l.origin),m=i(l.origin);return f?`For lille: forventede ${m} ${f.verb} ${d} ${l.minimum.toString()} ${f.unit}`:`For lille: forventede ${m} havde ${d} ${l.minimum.toString()}`}case"invalid_format":{const d=l;return d.format==="starts_with"?`Ugyldig streng: skal starte med "${d.prefix}"`:d.format==="ends_with"?`Ugyldig streng: skal ende med "${d.suffix}"`:d.format==="includes"?`Ugyldig streng: skal indeholde "${d.includes}"`:d.format==="regex"?`Ugyldig streng: skal matche mønsteret ${d.pattern}`:`Ugyldig ${a[d.format]??l.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${l.divisor}`;case"unrecognized_keys":return`${l.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${de(l.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${l.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${l.origin}`;default:return"Ugyldigt input"}}};function pre(){return{localeError:vre()}}const gre=()=>{const e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"Zahl";case"object":{if(Array.isArray(n))return"Array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Ungültige Eingabe: erwartet ${n.expected}, erhalten ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ungültige Eingabe: erwartet ${qe(n.values[0])}`:`Ungültige Option: erwartet eine von ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Zu groß: erwartet, dass ${n.origin??"Wert"} ${a}${n.maximum.toString()} ${l.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${n.origin??"Wert"} ${a}${n.maximum.toString()} ist`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Zu klein: erwartet, dass ${n.origin} ${a}${n.minimum.toString()} ${l.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${a}${n.minimum.toString()} ist`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Ungültiger String: muss mit "${a.prefix}" beginnen`:a.format==="ends_with"?`Ungültiger String: muss mit "${a.suffix}" enden`:a.format==="includes"?`Ungültiger String: muss "${a.includes}" enthalten`:a.format==="regex"?`Ungültiger String: muss dem Muster ${a.pattern} entsprechen`:`Ungültig: ${i[a.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"}: ${de(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 yre(){return{localeError:gre()}}const bre=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},_re=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function t(i){return e[i]??null}const r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Invalid input: expected ${i.expected}, received ${bre(i.input)}`;case"invalid_value":return i.values.length===1?`Invalid input: expected ${qe(i.values[0])}`:`Invalid option: expected one of ${de(i.values,"|")}`;case"too_big":{const n=i.inclusive?"<=":"<",a=t(i.origin);return a?`Too big: expected ${i.origin??"value"} to have ${n}${i.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",a=t(i.origin);return a?`Too small: expected ${i.origin} to have ${n}${i.minimum.toString()} ${a.unit}`:`Too small: expected ${i.origin} to be ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`Invalid string: must start with "${n.prefix}"`:n.format==="ends_with"?`Invalid string: must end with "${n.suffix}"`:n.format==="includes"?`Invalid string: must include "${n.includes}"`:n.format==="regex"?`Invalid string: must match pattern ${n.pattern}`:`Invalid ${r[n.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${de(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function W2(){return{localeError:_re()}}const $re=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},Sre=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(i){return e[i]??null}const r={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"};return i=>{switch(i.code){case"invalid_type":return`Nevalida enigo: atendiĝis ${i.expected}, riceviĝis ${$re(i.input)}`;case"invalid_value":return i.values.length===1?`Nevalida enigo: atendiĝis ${qe(i.values[0])}`:`Nevalida opcio: atendiĝis unu el ${de(i.values,"|")}`;case"too_big":{const n=i.inclusive?"<=":"<",a=t(i.origin);return a?`Tro granda: atendiĝis ke ${i.origin??"valoro"} havu ${n}${i.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${i.origin??"valoro"} havu ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",a=t(i.origin);return a?`Tro malgranda: atendiĝis ke ${i.origin} havu ${n}${i.minimum.toString()} ${a.unit}`:`Tro malgranda: atendiĝis ke ${i.origin} estu ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${n.prefix}"`:n.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${n.suffix}"`:n.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${n.includes}"`:n.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${n.pattern}`:`Nevalida ${r[n.format]??i.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${i.divisor}`;case"unrecognized_keys":return`Nekonata${i.keys.length>1?"j":""} ŝlosilo${i.keys.length>1?"j":""}: ${de(i.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${i.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${i.origin}`;default:return"Nevalida enigo"}}};function kre(){return{localeError:Sre()}}const wre=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},t={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"};function r(l){return e[l]??null}function i(l){return t[l]??l}const n=l=>{const d=typeof l;switch(d){case"number":return Number.isNaN(l)?"NaN":"number";case"object":return Array.isArray(l)?"array":l===null?"null":Object.getPrototypeOf(l)!==Object.prototype?l.constructor.name:"object"}return d},a={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"};return l=>{switch(l.code){case"invalid_type":return`Entrada inválida: se esperaba ${i(l.expected)}, recibido ${i(n(l.input))}`;case"invalid_value":return l.values.length===1?`Entrada inválida: se esperaba ${qe(l.values[0])}`:`Opción inválida: se esperaba una de ${de(l.values,"|")}`;case"too_big":{const d=l.inclusive?"<=":"<",f=r(l.origin),m=i(l.origin);return f?`Demasiado grande: se esperaba que ${m??"valor"} tuviera ${d}${l.maximum.toString()} ${f.unit??"elementos"}`:`Demasiado grande: se esperaba que ${m??"valor"} fuera ${d}${l.maximum.toString()}`}case"too_small":{const d=l.inclusive?">=":">",f=r(l.origin),m=i(l.origin);return f?`Demasiado pequeño: se esperaba que ${m} tuviera ${d}${l.minimum.toString()} ${f.unit}`:`Demasiado pequeño: se esperaba que ${m} fuera ${d}${l.minimum.toString()}`}case"invalid_format":{const d=l;return d.format==="starts_with"?`Cadena inválida: debe comenzar con "${d.prefix}"`:d.format==="ends_with"?`Cadena inválida: debe terminar en "${d.suffix}"`:d.format==="includes"?`Cadena inválida: debe incluir "${d.includes}"`:d.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${d.pattern}`:`Inválido ${a[d.format]??l.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${l.divisor}`;case"unrecognized_keys":return`Llave${l.keys.length>1?"s":""} desconocida${l.keys.length>1?"s":""}: ${de(l.keys,", ")}`;case"invalid_key":return`Llave inválida en ${i(l.origin)}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${i(l.origin)}`;default:return"Entrada inválida"}}};function xre(){return{localeError:wre()}}const Ore=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"عدد";case"object":{if(Array.isArray(n))return"آرایه";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"ورودی"};return n=>{switch(n.code){case"invalid_type":return`ورودی نامعتبر: میبایست ${n.expected} میبود، ${r(n.input)} دریافت شد`;case"invalid_value":return n.values.length===1?`ورودی نامعتبر: میبایست ${qe(n.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${de(n.values,"|")} میبود`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`خیلی بزرگ: ${n.origin??"مقدار"} باید ${a}${n.maximum.toString()} ${l.unit??"عنصر"} باشد`:`خیلی بزرگ: ${n.origin??"مقدار"} باید ${a}${n.maximum.toString()} باشد`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`خیلی کوچک: ${n.origin} باید ${a}${n.minimum.toString()} ${l.unit} باشد`:`خیلی کوچک: ${n.origin} باید ${a}${n.minimum.toString()} باشد`}case"invalid_format":{const a=n;return a.format==="starts_with"?`رشته نامعتبر: باید با "${a.prefix}" شروع شود`:a.format==="ends_with"?`رشته نامعتبر: باید با "${a.suffix}" تمام شود`:a.format==="includes"?`رشته نامعتبر: باید شامل "${a.includes}" باشد`:a.format==="regex"?`رشته نامعتبر: باید با الگوی ${a.pattern} مطابقت داشته باشد`:`${i[a.format]??n.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${n.divisor} باشد`;case"unrecognized_keys":return`کلید${n.keys.length>1?"های":""} ناشناس: ${de(n.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${n.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${n.origin}`;default:return"ورودی نامعتبر"}}};function Ere(){return{localeError:Ore()}}const Nre=()=>{const e={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 t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${n.expected}, oli ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Virheellinen syöte: täytyy olla ${qe(n.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Liian suuri: ${l.subject} täytyy olla ${a}${n.maximum.toString()} ${l.unit}`.trim():`Liian suuri: arvon täytyy olla ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Liian pieni: ${l.subject} täytyy olla ${a}${n.minimum.toString()} ${l.unit}`.trim():`Liian pieni: arvon täytyy olla ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${a.prefix}"`:a.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${a.suffix}"`:a.format==="includes"?`Virheellinen syöte: täytyy sisältää "${a.includes}"`:a.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${a.pattern}`:`Virheellinen ${i[a.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"}: ${de(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 jre(){return{localeError:Nre()}}const Ire=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"nombre";case"object":{if(Array.isArray(n))return"tableau";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Entrée invalide : ${n.expected} attendu, ${r(n.input)} reçu`;case"invalid_value":return n.values.length===1?`Entrée invalide : ${qe(n.values[0])} attendu`:`Option invalide : une valeur parmi ${de(n.values,"|")} attendue`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Trop grand : ${n.origin??"valeur"} doit ${l.verb} ${a}${n.maximum.toString()} ${l.unit??"élément(s)"}`:`Trop grand : ${n.origin??"valeur"} doit être ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Trop petit : ${n.origin} doit ${l.verb} ${a}${n.minimum.toString()} ${l.unit}`:`Trop petit : ${n.origin} doit être ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Chaîne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Chaîne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Chaîne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${a.pattern}`:`${i[a.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":""} : ${de(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 Tre(){return{localeError:Ire()}}const zre=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Entrée invalide : attendu ${n.expected}, reçu ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Entrée invalide : attendu ${qe(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"≤":"<",l=t(n.origin);return l?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${a}${n.maximum.toString()} ${l.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?"≥":">",l=t(n.origin);return l?`Trop petit : attendu que ${n.origin} ait ${a}${n.minimum.toString()} ${l.unit}`:`Trop petit : attendu que ${n.origin} soit ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Chaîne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Chaîne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Chaîne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Chaîne invalide : doit correspondre au motif ${a.pattern}`:`${i[a.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":""} : ${de(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 Are(){return{localeError:zre()}}const Dre=()=>{const e={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"}},t={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},r=m=>m?e[m]:void 0,i=m=>{const p=r(m);return p?p.label:m??e.unknown.label},n=m=>`ה${i(m)}`,a=m=>{const p=r(m);return((p==null?void 0:p.gender)??"m")==="f"?"צריכה להיות":"צריך להיות"},l=m=>m?t[m]??null:null,d=m=>{const p=typeof m;switch(p){case"number":return Number.isNaN(m)?"NaN":"number";case"object":return Array.isArray(m)?"array":m===null?"null":Object.getPrototypeOf(m)!==Object.prototype&&m.constructor?m.constructor.name:"object";default:return p}},f={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"}};return m=>{var p;switch(m.code){case"invalid_type":{const g=m.expected,y=i(g),S=d(m.input),w=((p=e[S])==null?void 0:p.label)??S;return`קלט לא תקין: צריך להיות ${y}, התקבל ${w}`}case"invalid_value":{if(m.values.length===1)return`ערך לא תקין: הערך חייב להיות ${qe(m.values[0])}`;const g=m.values.map(w=>qe(w));if(m.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${g[0]} או ${g[1]}`;const y=g[g.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${g.slice(0,-1).join(", ")} או ${y}`}case"too_big":{const g=l(m.origin),y=n(m.origin??"value");if(m.origin==="string")return`${(g==null?void 0:g.longLabel)??"ארוך"} מדי: ${y} צריכה להכיל ${m.maximum.toString()} ${(g==null?void 0:g.unit)??""} ${m.inclusive?"או פחות":"לכל היותר"}`.trim();if(m.origin==="number"){const j=m.inclusive?`קטן או שווה ל-${m.maximum}`:`קטן מ-${m.maximum}`;return`גדול מדי: ${y} צריך להיות ${j}`}if(m.origin==="array"||m.origin==="set"){const j=m.origin==="set"?"צריכה":"צריך",x=m.inclusive?`${m.maximum} ${(g==null?void 0:g.unit)??""} או פחות`:`פחות מ-${m.maximum} ${(g==null?void 0:g.unit)??""}`;return`גדול מדי: ${y} ${j} להכיל ${x}`.trim()}const S=m.inclusive?"<=":"<",w=a(m.origin??"value");return g!=null&&g.unit?`${g.longLabel} מדי: ${y} ${w} ${S}${m.maximum.toString()} ${g.unit}`:`${(g==null?void 0:g.longLabel)??"גדול"} מדי: ${y} ${w} ${S}${m.maximum.toString()}`}case"too_small":{const g=l(m.origin),y=n(m.origin??"value");if(m.origin==="string")return`${(g==null?void 0:g.shortLabel)??"קצר"} מדי: ${y} צריכה להכיל ${m.minimum.toString()} ${(g==null?void 0:g.unit)??""} ${m.inclusive?"או יותר":"לפחות"}`.trim();if(m.origin==="number"){const j=m.inclusive?`גדול או שווה ל-${m.minimum}`:`גדול מ-${m.minimum}`;return`קטן מדי: ${y} צריך להיות ${j}`}if(m.origin==="array"||m.origin==="set"){const j=m.origin==="set"?"צריכה":"צריך";if(m.minimum===1&&m.inclusive){const $=(m.origin==="set","לפחות פריט אחד");return`קטן מדי: ${y} ${j} להכיל ${$}`}const x=m.inclusive?`${m.minimum} ${(g==null?void 0:g.unit)??""} או יותר`:`יותר מ-${m.minimum} ${(g==null?void 0:g.unit)??""}`;return`קטן מדי: ${y} ${j} להכיל ${x}`.trim()}const S=m.inclusive?">=":">",w=a(m.origin??"value");return g!=null&&g.unit?`${g.shortLabel} מדי: ${y} ${w} ${S}${m.minimum.toString()} ${g.unit}`:`${(g==null?void 0:g.shortLabel)??"קטן"} מדי: ${y} ${w} ${S}${m.minimum.toString()}`}case"invalid_format":{const g=m;if(g.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${g.prefix}"`;if(g.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${g.suffix}"`;if(g.format==="includes")return`המחרוזת חייבת לכלול "${g.includes}"`;if(g.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${g.pattern}`;const y=f[g.format],S=(y==null?void 0:y.label)??g.format,j=((y==null?void 0:y.gender)??"m")==="f"?"תקינה":"תקין";return`${S} לא ${j}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${m.divisor}`;case"unrecognized_keys":return`מפתח${m.keys.length>1?"ות":""} לא מזוה${m.keys.length>1?"ים":"ה"}: ${de(m.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${n(m.origin??"array")}`;default:return"קלט לא תקין"}}};function Ure(){return{localeError:Dre()}}const Cre=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"szám";case"object":{if(Array.isArray(n))return"tömb";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${n.expected}, a kapott érték ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Érvénytelen bemenet: a várt érték ${qe(n.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Túl nagy: ${n.origin??"érték"} mérete túl nagy ${a}${n.maximum.toString()} ${l.unit??"elem"}`:`Túl nagy: a bemeneti érték ${n.origin??"érték"} túl nagy: ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Túl kicsi: a bemeneti érték ${n.origin} mérete túl kicsi ${a}${n.minimum.toString()} ${l.unit}`:`Túl kicsi: a bemeneti érték ${n.origin} túl kicsi ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Érvénytelen string: "${a.prefix}" értékkel kell kezdődnie`:a.format==="ends_with"?`Érvénytelen string: "${a.suffix}" értékkel kell végződnie`:a.format==="includes"?`Érvénytelen string: "${a.includes}" értéket kell tartalmaznia`:a.format==="regex"?`Érvénytelen string: ${a.pattern} mintának kell megfelelnie`:`Érvénytelen ${i[a.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":""}: ${de(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 Rre(){return{localeError:Cre()}}const Mre=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Input tidak valid: diharapkan ${n.expected}, diterima ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${qe(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${a}${n.maximum.toString()} ${l.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Terlalu kecil: diharapkan ${n.origin} memiliki ${a}${n.minimum.toString()} ${l.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`String tidak valid: harus dimulai dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak valid: harus berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak valid: harus menyertakan "${a.includes}"`:a.format==="regex"?`String tidak valid: harus sesuai pola ${a.pattern}`:`${i[a.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":""}: ${de(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 Lre(){return{localeError:Mre()}}const Pre=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"númer";case"object":{if(Array.isArray(e))return"fylki";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},Zre=()=>{const e={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 t(i){return e[i]??null}const r={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"};return i=>{switch(i.code){case"invalid_type":return`Rangt gildi: Þú slóst inn ${Pre(i.input)} þar sem á að vera ${i.expected}`;case"invalid_value":return i.values.length===1?`Rangt gildi: gert ráð fyrir ${qe(i.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${de(i.values,"|")}`;case"too_big":{const n=i.inclusive?"<=":"<",a=t(i.origin);return a?`Of stórt: gert er ráð fyrir að ${i.origin??"gildi"} hafi ${n}${i.maximum.toString()} ${a.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${i.origin??"gildi"} sé ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",a=t(i.origin);return a?`Of lítið: gert er ráð fyrir að ${i.origin} hafi ${n}${i.minimum.toString()} ${a.unit}`:`Of lítið: gert er ráð fyrir að ${i.origin} sé ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`Ógildur strengur: verður að byrja á "${n.prefix}"`:n.format==="ends_with"?`Ógildur strengur: verður að enda á "${n.suffix}"`:n.format==="includes"?`Ógildur strengur: verður að innihalda "${n.includes}"`:n.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${n.pattern}`:`Rangt ${r[n.format]??i.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${i.divisor}`;case"unrecognized_keys":return`Óþekkt ${i.keys.length>1?"ir lyklar":"ur lykill"}: ${de(i.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${i.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${i.origin}`;default:return"Rangt gildi"}}};function Bre(){return{localeError:Zre()}}const Fre=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"numero";case"object":{if(Array.isArray(n))return"vettore";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Input non valido: atteso ${n.expected}, ricevuto ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input non valido: atteso ${qe(n.values[0])}`:`Opzione non valida: atteso uno tra ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Troppo grande: ${n.origin??"valore"} deve avere ${a}${n.maximum.toString()} ${l.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Troppo piccolo: ${n.origin} deve avere ${a}${n.minimum.toString()} ${l.unit}`:`Troppo piccolo: ${n.origin} deve essere ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Stringa non valida: deve iniziare con "${a.prefix}"`:a.format==="ends_with"?`Stringa non valida: deve terminare con "${a.suffix}"`:a.format==="includes"?`Stringa non valida: deve includere "${a.includes}"`:a.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${a.pattern}`:`Invalid ${i[a.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"}: ${de(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 Vre(){return{localeError:Fre()}}const qre=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"数値";case"object":{if(Array.isArray(n))return"配列";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"入力値"};return n=>{switch(n.code){case"invalid_type":return`無効な入力: ${n.expected}が期待されましたが、${r(n.input)}が入力されました`;case"invalid_value":return n.values.length===1?`無効な入力: ${qe(n.values[0])}が期待されました`:`無効な選択: ${de(n.values,"、")}のいずれかである必要があります`;case"too_big":{const a=n.inclusive?"以下である":"より小さい",l=t(n.origin);return l?`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${l.unit??"要素"}${a}必要があります`:`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${a}必要があります`}case"too_small":{const a=n.inclusive?"以上である":"より大きい",l=t(n.origin);return l?`小さすぎる値: ${n.origin}は${n.minimum.toString()}${l.unit}${a}必要があります`:`小さすぎる値: ${n.origin}は${n.minimum.toString()}${a}必要があります`}case"invalid_format":{const a=n;return a.format==="starts_with"?`無効な文字列: "${a.prefix}"で始まる必要があります`:a.format==="ends_with"?`無効な文字列: "${a.suffix}"で終わる必要があります`:a.format==="includes"?`無効な文字列: "${a.includes}"を含む必要があります`:a.format==="regex"?`無効な文字列: パターン${a.pattern}に一致する必要があります`:`無効な${i[a.format]??n.format}`}case"not_multiple_of":return`無効な数値: ${n.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${n.keys.length>1?"群":""}: ${de(n.keys,"、")}`;case"invalid_key":return`${n.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${n.origin}内の無効な値`;default:return"無効な入力"}}};function Gre(){return{localeError:qre()}}const Hre=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"რიცხვი";case"object":{if(Array.isArray(e))return"მასივი";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return{string:"სტრინგი",boolean:"ბულეანი",undefined:"undefined",bigint:"bigint",symbol:"symbol",function:"ფუნქცია"}[t]??t},Kre=()=>{const e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function t(i){return e[i]??null}const r={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:"შეყვანა"};return i=>{switch(i.code){case"invalid_type":return`არასწორი შეყვანა: მოსალოდნელი ${i.expected}, მიღებული ${Hre(i.input)}`;case"invalid_value":return i.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${qe(i.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${de(i.values,"|")}-დან`;case"too_big":{const n=i.inclusive?"<=":"<",a=t(i.origin);return a?`ზედმეტად დიდი: მოსალოდნელი ${i.origin??"მნიშვნელობა"} ${a.verb} ${n}${i.maximum.toString()} ${a.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${i.origin??"მნიშვნელობა"} იყოს ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",a=t(i.origin);return a?`ზედმეტად პატარა: მოსალოდნელი ${i.origin} ${a.verb} ${n}${i.minimum.toString()} ${a.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${i.origin} იყოს ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`არასწორი სტრინგი: უნდა იწყებოდეს "${n.prefix}"-ით`:n.format==="ends_with"?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${n.suffix}"-ით`:n.format==="includes"?`არასწორი სტრინგი: უნდა შეიცავდეს "${n.includes}"-ს`:n.format==="regex"?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${n.pattern}`:`არასწორი ${r[n.format]??i.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${i.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${i.keys.length>1?"ები":"ი"}: ${de(i.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${i.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${i.origin}-ში`;default:return"არასწორი შეყვანა"}}};function Jre(){return{localeError:Kre()}}const Yre=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":{if(Array.isArray(n))return"អារេ (Array)";if(n===null)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"ទិន្នន័យបញ្ចូល"};return n=>{switch(n.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${n.expected} ប៉ុន្តែទទួលបាន ${r(n.input)}`;case"invalid_value":return n.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${qe(n.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${a} ${n.maximum.toString()} ${l.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${a} ${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`តូចពេក៖ ត្រូវការ ${n.origin} ${a} ${n.minimum.toString()} ${l.unit}`:`តូចពេក៖ ត្រូវការ ${n.origin} ${a} ${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${a.prefix}"`:a.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${a.suffix}"`:a.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${a.includes}"`:a.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${a.pattern}`:`មិនត្រឹមត្រូវ៖ ${i[a.format]??n.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${n.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${de(n.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function eM(){return{localeError:Yre()}}function Xre(){return eM()}const Qre=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"입력"};return n=>{switch(n.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${n.expected}, 받은 타입은 ${r(n.input)}입니다`;case"invalid_value":return n.values.length===1?`잘못된 입력: 값은 ${qe(n.values[0])} 이어야 합니다`:`잘못된 옵션: ${de(n.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const a=n.inclusive?"이하":"미만",l=a==="미만"?"이어야 합니다":"여야 합니다",d=t(n.origin),f=(d==null?void 0:d.unit)??"요소";return d?`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()}${f} ${a}${l}`:`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()} ${a}${l}`}case"too_small":{const a=n.inclusive?"이상":"초과",l=a==="이상"?"이어야 합니다":"여야 합니다",d=t(n.origin),f=(d==null?void 0:d.unit)??"요소";return d?`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()}${f} ${a}${l}`:`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()} ${a}${l}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`잘못된 문자열: "${a.prefix}"(으)로 시작해야 합니다`:a.format==="ends_with"?`잘못된 문자열: "${a.suffix}"(으)로 끝나야 합니다`:a.format==="includes"?`잘못된 문자열: "${a.includes}"을(를) 포함해야 합니다`:a.format==="regex"?`잘못된 문자열: 정규식 ${a.pattern} 패턴과 일치해야 합니다`:`잘못된 ${i[a.format]??n.format}`}case"not_multiple_of":return`잘못된 숫자: ${n.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${de(n.keys,", ")}`;case"invalid_key":return`잘못된 키: ${n.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${n.origin}`;default:return"잘못된 입력"}}};function Wre(){return{localeError:Qre()}}const eie=e=>Lc(typeof e,e),Lc=(e,t=void 0)=>{switch(e){case"number":return Number.isNaN(t)?"NaN":"skaičius";case"bigint":return"sveikasis skaičius";case"string":return"eilutė";case"boolean":return"loginė reikšmė";case"undefined":case"void":return"neapibrėžta reikšmė";case"function":return"funkcija";case"symbol":return"simbolis";case"object":return t===void 0?"nežinomas objektas":t===null?"nulinė reikšmė":Array.isArray(t)?"masyvas":Object.getPrototypeOf(t)!==Object.prototype&&t.constructor?t.constructor.name:"objektas";case"null":return"nulinė reikšmė"}return e},zc=e=>e.charAt(0).toUpperCase()+e.slice(1);function Ej(e){const t=Math.abs(e),r=t%10,i=t%100;return i>=11&&i<=19||r===0?"many":r===1?"one":"few"}const tie=()=>{const e={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 t(i,n,a,l){const d=e[i]??null;return d===null?d:{unit:d.unit[n],verb:d.verb[l][a?"inclusive":"notInclusive"]}}const r={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"};return i=>{switch(i.code){case"invalid_type":return`Gautas tipas ${eie(i.input)}, o tikėtasi - ${Lc(i.expected)}`;case"invalid_value":return i.values.length===1?`Privalo būti ${qe(i.values[0])}`:`Privalo būti vienas iš ${de(i.values,"|")} pasirinkimų`;case"too_big":{const n=Lc(i.origin),a=t(i.origin,Ej(Number(i.maximum)),i.inclusive??!1,"smaller");if(a!=null&&a.verb)return`${zc(n??i.origin??"reikšmė")} ${a.verb} ${i.maximum.toString()} ${a.unit??"elementų"}`;const l=i.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${zc(n??i.origin??"reikšmė")} turi būti ${l} ${i.maximum.toString()} ${a==null?void 0:a.unit}`}case"too_small":{const n=Lc(i.origin),a=t(i.origin,Ej(Number(i.minimum)),i.inclusive??!1,"bigger");if(a!=null&&a.verb)return`${zc(n??i.origin??"reikšmė")} ${a.verb} ${i.minimum.toString()} ${a.unit??"elementų"}`;const l=i.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${zc(n??i.origin??"reikšmė")} turi būti ${l} ${i.minimum.toString()} ${a==null?void 0:a.unit}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`Eilutė privalo prasidėti "${n.prefix}"`:n.format==="ends_with"?`Eilutė privalo pasibaigti "${n.suffix}"`:n.format==="includes"?`Eilutė privalo įtraukti "${n.includes}"`:n.format==="regex"?`Eilutė privalo atitikti ${n.pattern}`:`Neteisingas ${r[n.format]??i.format}`}case"not_multiple_of":return`Skaičius privalo būti ${i.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${i.keys.length>1?"i":"as"} rakt${i.keys.length>1?"ai":"as"}: ${de(i.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const n=Lc(i.origin);return`${zc(n??i.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function nie(){return{localeError:tie()}}const rie=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"број";case"object":{if(Array.isArray(n))return"низа";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"внес"};return n=>{switch(n.code){case"invalid_type":return`Грешен внес: се очекува ${n.expected}, примено ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Invalid input: expected ${qe(n.values[0])}`:`Грешана опција: се очекува една ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Премногу голем: се очекува ${n.origin??"вредноста"} да има ${a}${n.maximum.toString()} ${l.unit??"елементи"}`:`Премногу голем: се очекува ${n.origin??"вредноста"} да биде ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Премногу мал: се очекува ${n.origin} да има ${a}${n.minimum.toString()} ${l.unit}`:`Премногу мал: се очекува ${n.origin} да биде ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Неважечка низа: мора да започнува со "${a.prefix}"`:a.format==="ends_with"?`Неважечка низа: мора да завршува со "${a.suffix}"`:a.format==="includes"?`Неважечка низа: мора да вклучува "${a.includes}"`:a.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${a.pattern}`:`Invalid ${i[a.format]??n.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${de(n.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${n.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${n.origin}`;default:return"Грешен внес"}}};function iie(){return{localeError:rie()}}const aie=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"nombor";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Input tidak sah: dijangka ${n.expected}, diterima ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${qe(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Terlalu besar: dijangka ${n.origin??"nilai"} ${l.verb} ${a}${n.maximum.toString()} ${l.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Terlalu kecil: dijangka ${n.origin} ${l.verb} ${a}${n.minimum.toString()} ${l.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`String tidak sah: mesti bermula dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak sah: mesti mengandungi "${a.includes}"`:a.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${a.pattern}`:`${i[a.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${de(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 oie(){return{localeError:aie()}}const uie=()=>{const e={string:{unit:"tekens",verb:"te hebben"},file:{unit:"bytes",verb:"te hebben"},array:{unit:"elementen",verb:"te hebben"},set:{unit:"elementen",verb:"te hebben"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"getal";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Ongeldige invoer: verwacht ${n.expected}, ontving ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${qe(n.values[0])}`:`Ongeldige optie: verwacht één van ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Te groot: verwacht dat ${n.origin??"waarde"} ${l.verb} ${a}${n.maximum.toString()} ${l.unit??"elementen"}`:`Te groot: verwacht dat ${n.origin??"waarde"} ${a}${n.maximum.toString()} is`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Te klein: verwacht dat ${n.origin} ${l.verb} ${a}${n.minimum.toString()} ${l.unit}`:`Te klein: verwacht dat ${n.origin} ${a}${n.minimum.toString()} is`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Ongeldige tekst: moet met "${a.prefix}" beginnen`:a.format==="ends_with"?`Ongeldige tekst: moet op "${a.suffix}" eindigen`:a.format==="includes"?`Ongeldige tekst: moet "${a.includes}" bevatten`:a.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${a.pattern}`:`Ongeldig: ${i[a.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":""}: ${de(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 lie(){return{localeError:uie()}}const sie=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"tall";case"object":{if(Array.isArray(n))return"liste";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Ugyldig input: forventet ${n.expected}, fikk ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${qe(n.values[0])}`:`Ugyldig valg: forventet en av ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`For stor(t): forventet ${n.origin??"value"} til å ha ${a}${n.maximum.toString()} ${l.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til å ha ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`For lite(n): forventet ${n.origin} til å ha ${a}${n.minimum.toString()} ${l.unit}`:`For lite(n): forventet ${n.origin} til å ha ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Ugyldig streng: må starte med "${a.prefix}"`:a.format==="ends_with"?`Ugyldig streng: må ende med "${a.suffix}"`:a.format==="includes"?`Ugyldig streng: må inneholde "${a.includes}"`:a.format==="regex"?`Ugyldig streng: må matche mønsteret ${a.pattern}`:`Ugyldig ${i[a.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"}: ${de(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 cie(){return{localeError:sie()}}const die=()=>{const e={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 t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"numara";case"object":{if(Array.isArray(n))return"saf";if(n===null)return"gayb";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Fâsit giren: umulan ${n.expected}, alınan ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Fâsit giren: umulan ${qe(n.values[0])}`:`Fâsit tercih: mûteberler ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Fazla büyük: ${n.origin??"value"}, ${a}${n.maximum.toString()} ${l.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${n.origin??"value"}, ${a}${n.maximum.toString()} olmalıydı.`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Fazla küçük: ${n.origin}, ${a}${n.minimum.toString()} ${l.unit} sahip olmalıydı.`:`Fazla küçük: ${n.origin}, ${a}${n.minimum.toString()} olmalıydı.`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Fâsit metin: "${a.prefix}" ile başlamalı.`:a.format==="ends_with"?`Fâsit metin: "${a.suffix}" ile bitmeli.`:a.format==="includes"?`Fâsit metin: "${a.includes}" ihtivâ etmeli.`:a.format==="regex"?`Fâsit metin: ${a.pattern} nakşına uymalı.`:`Fâsit ${i[a.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":""}: ${de(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 fie(){return{localeError:die()}}const mie=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"عدد";case"object":{if(Array.isArray(n))return"ارې";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"ورودي"};return n=>{switch(n.code){case"invalid_type":return`ناسم ورودي: باید ${n.expected} وای, مګر ${r(n.input)} ترلاسه شو`;case"invalid_value":return n.values.length===1?`ناسم ورودي: باید ${qe(n.values[0])} وای`:`ناسم انتخاب: باید یو له ${de(n.values,"|")} څخه وای`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`ډیر لوی: ${n.origin??"ارزښت"} باید ${a}${n.maximum.toString()} ${l.unit??"عنصرونه"} ولري`:`ډیر لوی: ${n.origin??"ارزښت"} باید ${a}${n.maximum.toString()} وي`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`ډیر کوچنی: ${n.origin} باید ${a}${n.minimum.toString()} ${l.unit} ولري`:`ډیر کوچنی: ${n.origin} باید ${a}${n.minimum.toString()} وي`}case"invalid_format":{const a=n;return a.format==="starts_with"?`ناسم متن: باید د "${a.prefix}" سره پیل شي`:a.format==="ends_with"?`ناسم متن: باید د "${a.suffix}" سره پای ته ورسيږي`:a.format==="includes"?`ناسم متن: باید "${a.includes}" ولري`:a.format==="regex"?`ناسم متن: باید د ${a.pattern} سره مطابقت ولري`:`${i[a.format]??n.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${n.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${n.keys.length>1?"کلیډونه":"کلیډ"}: ${de(n.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${n.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${n.origin} کې`;default:return"ناسمه ورودي"}}};function hie(){return{localeError:mie()}}const vie=()=>{const e={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 t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"liczba";case"object":{if(Array.isArray(n))return"tablica";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${n.expected}, otrzymano ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${qe(n.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Za duża wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${a}${n.maximum.toString()} ${l.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Za mała wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${a}${n.minimum.toString()} ${l.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${a.prefix}"`:a.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${a.suffix}"`:a.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${a.includes}"`:a.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${a.pattern}`:`Nieprawidłow(y/a/e) ${i[a.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":""}: ${de(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 pie(){return{localeError:vie()}}const gie=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"número";case"object":{if(Array.isArray(n))return"array";if(n===null)return"nulo";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Tipo inválido: esperado ${n.expected}, recebido ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Entrada inválida: esperado ${qe(n.values[0])}`:`Opção inválida: esperada uma das ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${a}${n.maximum.toString()} ${l.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Muito pequeno: esperado que ${n.origin} tivesse ${a}${n.minimum.toString()} ${l.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Texto inválido: deve começar com "${a.prefix}"`:a.format==="ends_with"?`Texto inválido: deve terminar com "${a.suffix}"`:a.format==="includes"?`Texto inválido: deve incluir "${a.includes}"`:a.format==="regex"?`Texto inválido: deve corresponder ao padrão ${a.pattern}`:`${i[a.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":""}: ${de(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 yie(){return{localeError:gie()}}function Nj(e,t,r,i){const n=Math.abs(e),a=n%10,l=n%100;return l>=11&&l<=19?i:a===1?t:a>=2&&a<=4?r:i}const bie=()=>{const e={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 t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"число";case"object":{if(Array.isArray(n))return"массив";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"ввод"};return n=>{switch(n.code){case"invalid_type":return`Неверный ввод: ожидалось ${n.expected}, получено ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Неверный ввод: ожидалось ${qe(n.values[0])}`:`Неверный вариант: ожидалось одно из ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);if(l){const d=Number(n.maximum),f=Nj(d,l.unit.one,l.unit.few,l.unit.many);return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет иметь ${a}${n.maximum.toString()} ${f}`}return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);if(l){const d=Number(n.minimum),f=Nj(d,l.unit.one,l.unit.few,l.unit.many);return`Слишком маленькое значение: ожидалось, что ${n.origin} будет иметь ${a}${n.minimum.toString()} ${f}`}return`Слишком маленькое значение: ожидалось, что ${n.origin} будет ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Неверная строка: должна начинаться с "${a.prefix}"`:a.format==="ends_with"?`Неверная строка: должна заканчиваться на "${a.suffix}"`:a.format==="includes"?`Неверная строка: должна содержать "${a.includes}"`:a.format==="regex"?`Неверная строка: должна соответствовать шаблону ${a.pattern}`:`Неверный ${i[a.format]??n.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспознанн${n.keys.length>1?"ые":"ый"} ключ${n.keys.length>1?"и":""}: ${de(n.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${n.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${n.origin}`;default:return"Неверные входные данные"}}};function _ie(){return{localeError:bie()}}const $ie=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"število";case"object":{if(Array.isArray(n))return"tabela";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${n.expected}, prejeto ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Neveljaven vnos: pričakovano ${qe(n.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} imelo ${a}${n.maximum.toString()} ${l.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Premajhno: pričakovano, da bo ${n.origin} imelo ${a}${n.minimum.toString()} ${l.unit}`:`Premajhno: pričakovano, da bo ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Neveljaven niz: mora se začeti z "${a.prefix}"`:a.format==="ends_with"?`Neveljaven niz: mora se končati z "${a.suffix}"`:a.format==="includes"?`Neveljaven niz: mora vsebovati "${a.includes}"`:a.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${a.pattern}`:`Neveljaven ${i[a.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č"}: ${de(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 Sie(){return{localeError:$ie()}}const kie=()=>{const e={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 t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"antal";case"object":{if(Array.isArray(n))return"lista";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${n.expected}, fick ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ogiltig inmatning: förväntat ${qe(n.values[0])}`:`Ogiltigt val: förväntade en av ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`För stor(t): förväntade ${n.origin??"värdet"} att ha ${a}${n.maximum.toString()} ${l.unit??"element"}`:`För stor(t): förväntat ${n.origin??"värdet"} att ha ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`För lite(t): förväntade ${n.origin??"värdet"} att ha ${a}${n.minimum.toString()} ${l.unit}`:`För lite(t): förväntade ${n.origin??"värdet"} att ha ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Ogiltig sträng: måste börja med "${a.prefix}"`:a.format==="ends_with"?`Ogiltig sträng: måste sluta med "${a.suffix}"`:a.format==="includes"?`Ogiltig sträng: måste innehålla "${a.includes}"`:a.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${a.pattern}"`:`Ogiltig(t) ${i[a.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"}: ${de(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 wie(){return{localeError:kie()}}const xie=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"எண் அல்லாதது":"எண்";case"object":{if(Array.isArray(n))return"அணி";if(n===null)return"வெறுமை";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${n.expected}, பெறப்பட்டது ${r(n.input)}`;case"invalid_value":return n.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${qe(n.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${de(n.values,"|")} இல் ஒன்று`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${a}${n.maximum.toString()} ${l.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${a}${n.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${a}${n.minimum.toString()} ${l.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${a}${n.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const a=n;return a.format==="starts_with"?`தவறான சரம்: "${a.prefix}" இல் தொடங்க வேண்டும்`:a.format==="ends_with"?`தவறான சரம்: "${a.suffix}" இல் முடிவடைய வேண்டும்`:a.format==="includes"?`தவறான சரம்: "${a.includes}" ஐ உள்ளடக்க வேண்டும்`:a.format==="regex"?`தவறான சரம்: ${a.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${i[a.format]??n.format}`}case"not_multiple_of":return`தவறான எண்: ${n.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${n.keys.length>1?"கள்":""}: ${de(n.keys,", ")}`;case"invalid_key":return`${n.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${n.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function Oie(){return{localeError:xie()}}const Eie=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";case"object":{if(Array.isArray(n))return"อาร์เรย์ (Array)";if(n===null)return"ไม่มีค่า (null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"ข้อมูลที่ป้อน"};return n=>{switch(n.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${n.expected} แต่ได้รับ ${r(n.input)}`;case"invalid_value":return n.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${qe(n.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"ไม่เกิน":"น้อยกว่า",l=t(n.origin);return l?`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${a} ${n.maximum.toString()} ${l.unit??"รายการ"}`:`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${a} ${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?"อย่างน้อย":"มากกว่า",l=t(n.origin);return l?`น้อยกว่ากำหนด: ${n.origin} ควรมี${a} ${n.minimum.toString()} ${l.unit}`:`น้อยกว่ากำหนด: ${n.origin} ควรมี${a} ${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${a.prefix}"`:a.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${a.suffix}"`:a.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${a.includes}" อยู่ในข้อความ`:a.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${a.pattern}`:`รูปแบบไม่ถูกต้อง: ${i[a.format]??n.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${n.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${de(n.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${n.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${n.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function Nie(){return{localeError:Eie()}}const jie=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},Iie=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function t(i){return e[i]??null}const r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO sü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"};return i=>{switch(i.code){case"invalid_type":return`Geçersiz değer: beklenen ${i.expected}, alınan ${jie(i.input)}`;case"invalid_value":return i.values.length===1?`Geçersiz değer: beklenen ${qe(i.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${de(i.values,"|")}`;case"too_big":{const n=i.inclusive?"<=":"<",a=t(i.origin);return a?`Çok büyük: beklenen ${i.origin??"değer"} ${n}${i.maximum.toString()} ${a.unit??"öğe"}`:`Çok büyük: beklenen ${i.origin??"değer"} ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",a=t(i.origin);return a?`Çok küçük: beklenen ${i.origin} ${n}${i.minimum.toString()} ${a.unit}`:`Çok küçük: beklenen ${i.origin} ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`Geçersiz metin: "${n.prefix}" ile başlamalı`:n.format==="ends_with"?`Geçersiz metin: "${n.suffix}" ile bitmeli`:n.format==="includes"?`Geçersiz metin: "${n.includes}" içermeli`:n.format==="regex"?`Geçersiz metin: ${n.pattern} desenine uymalı`:`Geçersiz ${r[n.format]??i.format}`}case"not_multiple_of":return`Geçersiz sayı: ${i.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${i.keys.length>1?"lar":""}: ${de(i.keys,", ")}`;case"invalid_key":return`${i.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${i.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function Tie(){return{localeError:Iie()}}const zie=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"число";case"object":{if(Array.isArray(n))return"масив";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"вхідні дані"};return n=>{switch(n.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${n.expected}, отримано ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Неправильні вхідні дані: очікується ${qe(n.values[0])}`:`Неправильна опція: очікується одне з ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Занадто велике: очікується, що ${n.origin??"значення"} ${l.verb} ${a}${n.maximum.toString()} ${l.unit??"елементів"}`:`Занадто велике: очікується, що ${n.origin??"значення"} буде ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Занадто мале: очікується, що ${n.origin} ${l.verb} ${a}${n.minimum.toString()} ${l.unit}`:`Занадто мале: очікується, що ${n.origin} буде ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Неправильний рядок: повинен починатися з "${a.prefix}"`:a.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${a.suffix}"`:a.format==="includes"?`Неправильний рядок: повинен містити "${a.includes}"`:a.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${a.pattern}`:`Неправильний ${i[a.format]??n.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${n.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${n.keys.length>1?"і":""}: ${de(n.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${n.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${n.origin}`;default:return"Неправильні вхідні дані"}}};function tM(){return{localeError:zie()}}function Aie(){return tM()}const Die=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"نمبر";case"object":{if(Array.isArray(n))return"آرے";if(n===null)return"نل";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"ان پٹ"};return n=>{switch(n.code){case"invalid_type":return`غلط ان پٹ: ${n.expected} متوقع تھا، ${r(n.input)} موصول ہوا`;case"invalid_value":return n.values.length===1?`غلط ان پٹ: ${qe(n.values[0])} متوقع تھا`:`غلط آپشن: ${de(n.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`بہت بڑا: ${n.origin??"ویلیو"} کے ${a}${n.maximum.toString()} ${l.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${n.origin??"ویلیو"} کا ${a}${n.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`بہت چھوٹا: ${n.origin} کے ${a}${n.minimum.toString()} ${l.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${n.origin} کا ${a}${n.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const a=n;return a.format==="starts_with"?`غلط سٹرنگ: "${a.prefix}" سے شروع ہونا چاہیے`:a.format==="ends_with"?`غلط سٹرنگ: "${a.suffix}" پر ختم ہونا چاہیے`:a.format==="includes"?`غلط سٹرنگ: "${a.includes}" شامل ہونا چاہیے`:a.format==="regex"?`غلط سٹرنگ: پیٹرن ${a.pattern} سے میچ ہونا چاہیے`:`غلط ${i[a.format]??n.format}`}case"not_multiple_of":return`غلط نمبر: ${n.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${n.keys.length>1?"ز":""}: ${de(n.keys,"، ")}`;case"invalid_key":return`${n.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${n.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function Uie(){return{localeError:Die()}}const Cie=()=>{const e={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 t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"số";case"object":{if(Array.isArray(n))return"mảng";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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"};return n=>{switch(n.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${n.expected}, nhận được ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Đầu vào không hợp lệ: mong đợi ${qe(n.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Quá lớn: mong đợi ${n.origin??"giá trị"} ${l.verb} ${a}${n.maximum.toString()} ${l.unit??"phần tử"}`:`Quá lớn: mong đợi ${n.origin??"giá trị"} ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Quá nhỏ: mong đợi ${n.origin} ${l.verb} ${a}${n.minimum.toString()} ${l.unit}`:`Quá nhỏ: mong đợi ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${a.prefix}"`:a.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${a.suffix}"`:a.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${a.includes}"`:a.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${a.pattern}`:`${i[a.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: ${de(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 Rie(){return{localeError:Cie()}}const Mie=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"非数字(NaN)":"数字";case"object":{if(Array.isArray(n))return"数组";if(n===null)return"空值(null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"输入"};return n=>{switch(n.code){case"invalid_type":return`无效输入:期望 ${n.expected},实际接收 ${r(n.input)}`;case"invalid_value":return n.values.length===1?`无效输入:期望 ${qe(n.values[0])}`:`无效选项:期望以下之一 ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`数值过大:期望 ${n.origin??"值"} ${a}${n.maximum.toString()} ${l.unit??"个元素"}`:`数值过大:期望 ${n.origin??"值"} ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`数值过小:期望 ${n.origin} ${a}${n.minimum.toString()} ${l.unit}`:`数值过小:期望 ${n.origin} ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`无效字符串:必须以 "${a.prefix}" 开头`:a.format==="ends_with"?`无效字符串:必须以 "${a.suffix}" 结尾`:a.format==="includes"?`无效字符串:必须包含 "${a.includes}"`:a.format==="regex"?`无效字符串:必须满足正则表达式 ${a.pattern}`:`无效${i[a.format]??n.format}`}case"not_multiple_of":return`无效数字:必须是 ${n.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${de(n.keys,", ")}`;case"invalid_key":return`${n.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${n.origin} 中包含无效值(value)`;default:return"无效输入"}}};function Lie(){return{localeError:Mie()}}const Pie=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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:"輸入"};return n=>{switch(n.code){case"invalid_type":return`無效的輸入值:預期為 ${n.expected},但收到 ${r(n.input)}`;case"invalid_value":return n.values.length===1?`無效的輸入值:預期為 ${qe(n.values[0])}`:`無效的選項:預期為以下其中之一 ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`數值過大:預期 ${n.origin??"值"} 應為 ${a}${n.maximum.toString()} ${l.unit??"個元素"}`:`數值過大:預期 ${n.origin??"值"} 應為 ${a}${n.maximum.toString()}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`數值過小:預期 ${n.origin} 應為 ${a}${n.minimum.toString()} ${l.unit}`:`數值過小:預期 ${n.origin} 應為 ${a}${n.minimum.toString()}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`無效的字串:必須以 "${a.prefix}" 開頭`:a.format==="ends_with"?`無效的字串:必須以 "${a.suffix}" 結尾`:a.format==="includes"?`無效的字串:必須包含 "${a.includes}"`:a.format==="regex"?`無效的字串:必須符合格式 ${a.pattern}`:`無效的 ${i[a.format]??n.format}`}case"not_multiple_of":return`無效的數字:必須為 ${n.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${n.keys.length>1?"們":""}:${de(n.keys,"、")}`;case"invalid_key":return`${n.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${n.origin} 中有無效的值`;default:return"無效的輸入值"}}};function Zie(){return{localeError:Pie()}}const Bie=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function t(n){return e[n]??null}const r=n=>{const a=typeof n;switch(a){case"number":return Number.isNaN(n)?"NaN":"nọ́mbà";case"object":{if(Array.isArray(n))return"akopọ";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return a},i={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é"};return n=>{switch(n.code){case"invalid_type":return`Ìbáwọlé aṣìṣe: a ní láti fi ${n.expected}, àmọ̀ a rí ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${qe(n.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${de(n.values,"|")}`;case"too_big":{const a=n.inclusive?"<=":"<",l=t(n.origin);return l?`Tó pọ̀ jù: a ní láti jẹ́ pé ${n.origin??"iye"} ${l.verb} ${a}${n.maximum} ${l.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${a}${n.maximum}`}case"too_small":{const a=n.inclusive?">=":">",l=t(n.origin);return l?`Kéré ju: a ní láti jẹ́ pé ${n.origin} ${l.verb} ${a}${n.minimum} ${l.unit}`:`Kéré ju: a ní láti jẹ́ ${a}${n.minimum}`}case"invalid_format":{const a=n;return a.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${a.prefix}"`:a.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${a.suffix}"`:a.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${a.includes}"`:a.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${a.pattern}`:`Aṣìṣe: ${i[a.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ọ̀: ${de(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 Fie(){return{localeError:Bie()}}const nM=Object.freeze(Object.defineProperty({__proto__:null,ar:rre,az:are,be:ure,bg:cre,ca:fre,cs:hre,da:pre,de:yre,en:W2,eo:kre,es:xre,fa:Ere,fi:jre,fr:Tre,frCA:Are,he:Ure,hu:Rre,id:Lre,is:Bre,it:Vre,ja:Gre,ka:Jre,kh:Xre,km:eM,ko:Wre,lt:nie,mk:iie,ms:oie,nl:lie,no:cie,ota:fie,pl:pie,ps:hie,pt:yie,ru:_ie,sl:Sie,sv:wie,ta:Oie,th:Nie,tr:Tie,ua:Aie,uk:tM,ur:Uie,vi:Rie,yo:Fie,zhCN:Lie,zhTW:Zie},Symbol.toStringTag,{value:"Module"}));var jj;const rM=Symbol("ZodOutput"),iM=Symbol("ZodInput");class S0{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const i=r[0];if(this._map.set(t,i),i&&typeof i=="object"&&"id"in i){if(this._idmap.has(i.id))throw new Error(`ID ${i.id} already exists in the registry`);this._idmap.set(i.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const i={...this.get(r)??{}};delete i.id;const n={...i,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function k0(){return new S0}(jj=globalThis).__zod_globalRegistry??(jj.__zod_globalRegistry=k0());const pi=globalThis.__zod_globalRegistry;function aM(e,t){return new e({type:"string",...re(t)})}function oM(e,t){return new e({type:"string",coerce:!0,...re(t)})}function w0(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...re(t)})}function Nh(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...re(t)})}function x0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...re(t)})}function O0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...re(t)})}function E0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...re(t)})}function N0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...re(t)})}function Av(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...re(t)})}function j0(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...re(t)})}function I0(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...re(t)})}function T0(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...re(t)})}function z0(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...re(t)})}function A0(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...re(t)})}function D0(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...re(t)})}function U0(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...re(t)})}function C0(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...re(t)})}function R0(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...re(t)})}function uM(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...re(t)})}function M0(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...re(t)})}function L0(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...re(t)})}function P0(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...re(t)})}function Z0(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...re(t)})}function B0(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...re(t)})}function F0(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...re(t)})}const lM={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function sM(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...re(t)})}function cM(e,t){return new e({type:"string",format:"date",check:"string_format",...re(t)})}function dM(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...re(t)})}function fM(e,t){return new e({type:"string",format:"duration",check:"string_format",...re(t)})}function mM(e,t){return new e({type:"number",checks:[],...re(t)})}function hM(e,t){return new e({type:"number",coerce:!0,checks:[],...re(t)})}function vM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...re(t)})}function pM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...re(t)})}function gM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...re(t)})}function yM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...re(t)})}function bM(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...re(t)})}function _M(e,t){return new e({type:"boolean",...re(t)})}function $M(e,t){return new e({type:"boolean",coerce:!0,...re(t)})}function SM(e,t){return new e({type:"bigint",...re(t)})}function kM(e,t){return new e({type:"bigint",coerce:!0,...re(t)})}function wM(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...re(t)})}function xM(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...re(t)})}function OM(e,t){return new e({type:"symbol",...re(t)})}function EM(e,t){return new e({type:"undefined",...re(t)})}function NM(e,t){return new e({type:"null",...re(t)})}function jM(e){return new e({type:"any"})}function IM(e){return new e({type:"unknown"})}function TM(e,t){return new e({type:"never",...re(t)})}function zM(e,t){return new e({type:"void",...re(t)})}function AM(e,t){return new e({type:"date",...re(t)})}function DM(e,t){return new e({type:"date",coerce:!0,...re(t)})}function UM(e,t){return new e({type:"nan",...re(t)})}function Pu(e,t){return new m0({check:"less_than",...re(t),value:e,inclusive:!1})}function _i(e,t){return new m0({check:"less_than",...re(t),value:e,inclusive:!0})}function Zu(e,t){return new h0({check:"greater_than",...re(t),value:e,inclusive:!1})}function yr(e,t){return new h0({check:"greater_than",...re(t),value:e,inclusive:!0})}function CM(e){return Zu(0,e)}function RM(e){return Pu(0,e)}function MM(e){return _i(0,e)}function LM(e){return yr(0,e)}function dd(e,t){return new $R({check:"multiple_of",...re(t),value:e})}function Dv(e,t){return new wR({check:"max_size",...re(t),maximum:e})}function fd(e,t){return new xR({check:"min_size",...re(t),minimum:e})}function V0(e,t){return new OR({check:"size_equals",...re(t),size:e})}function Uv(e,t){return new ER({check:"max_length",...re(t),maximum:e})}function Ss(e,t){return new NR({check:"min_length",...re(t),minimum:e})}function Cv(e,t){return new jR({check:"length_equals",...re(t),length:e})}function q0(e,t){return new IR({check:"string_format",format:"regex",...re(t),pattern:e})}function G0(e){return new TR({check:"string_format",format:"lowercase",...re(e)})}function H0(e){return new zR({check:"string_format",format:"uppercase",...re(e)})}function K0(e,t){return new AR({check:"string_format",format:"includes",...re(t),includes:e})}function J0(e,t){return new DR({check:"string_format",format:"starts_with",...re(t),prefix:e})}function Y0(e,t){return new UR({check:"string_format",format:"ends_with",...re(t),suffix:e})}function PM(e,t,r){return new CR({check:"property",property:e,schema:t,...re(r)})}function X0(e,t){return new RR({check:"mime_type",mime:e,...re(t)})}function Bo(e){return new MR({check:"overwrite",tx:e})}function Q0(e){return Bo(t=>t.normalize(e))}function W0(){return Bo(e=>e.trim())}function ek(){return Bo(e=>e.toLowerCase())}function tk(){return Bo(e=>e.toUpperCase())}function nk(){return Bo(e=>g6(e))}function ZM(e,t,r){return new e({type:"array",element:t,...re(r)})}function Vie(e,t,r){return new e({type:"union",options:t,...re(r)})}function qie(e,t,r,i){return new e({type:"union",options:r,discriminator:t,...re(i)})}function Gie(e,t,r){return new e({type:"intersection",left:t,right:r})}function Hie(e,t,r,i){const n=r instanceof Qe,a=n?i:r,l=n?r:null;return new e({type:"tuple",items:t,rest:l,...re(a)})}function Kie(e,t,r,i){return new e({type:"record",keyType:t,valueType:r,...re(i)})}function Jie(e,t,r,i){return new e({type:"map",keyType:t,valueType:r,...re(i)})}function Yie(e,t,r){return new e({type:"set",valueType:t,...re(r)})}function Xie(e,t,r){const i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:i,...re(r)})}function Qie(e,t,r){return new e({type:"enum",entries:t,...re(r)})}function Wie(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...re(r)})}function BM(e,t){return new e({type:"file",...re(t)})}function eae(e,t){return new e({type:"transform",transform:t})}function tae(e,t){return new e({type:"optional",innerType:t})}function nae(e,t){return new e({type:"nullable",innerType:t})}function rae(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():Iv(r)}})}function iae(e,t,r){return new e({type:"nonoptional",innerType:t,...re(r)})}function aae(e,t){return new e({type:"success",innerType:t})}function oae(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function uae(e,t,r){return new e({type:"pipe",in:t,out:r})}function lae(e,t){return new e({type:"readonly",innerType:t})}function sae(e,t,r){return new e({type:"template_literal",parts:t,...re(r)})}function cae(e,t){return new e({type:"lazy",getter:t})}function dae(e,t){return new e({type:"promise",innerType:t})}function FM(e,t,r){const i=re(r);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function VM(e,t,r){return new e({type:"custom",check:"custom",fn:t,...re(r)})}function qM(e){const t=GM(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(_s(i,r.value,t._zod.def));else{const n=i;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=t),n.continue??(n.continue=!t._zod.def.abort),r.issues.push(_s(n))}},e(r.value,r)));return t}function GM(e,t){const r=new Yt({check:"custom",...re(t)});return r._zod.check=e,r}function HM(e){const t=new Yt({check:"describe"});return t._zod.onattach=[r=>{const i=pi.get(r)??{};pi.add(r,{...i,description:e})}],t._zod.check=()=>{},t}function KM(e){const t=new Yt({check:"meta"});return t._zod.onattach=[r=>{const i=pi.get(r)??{};pi.add(r,{...i,...e})}],t._zod.check=()=>{},t}function JM(e,t){const r=re(t);let i=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(i=i.map(S=>typeof S=="string"?S.toLowerCase():S),n=n.map(S=>typeof S=="string"?S.toLowerCase():S));const a=new Set(i),l=new Set(n),d=e.Codec??$0,f=e.Boolean??g0,m=e.String??Wd,p=new m({type:"string",error:r.error}),g=new f({type:"boolean",error:r.error}),y=new d({type:"pipe",in:p,out:g,transform:((S,w)=>{let j=S;return r.case!=="sensitive"&&(j=j.toLowerCase()),a.has(j)?!0:l.has(j)?!1:(w.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...l],input:w.value,inst:y,continue:!1}),{})}),reverseTransform:((S,w)=>S===!0?i[0]||"true":n[0]||"false"),error:r.error});return y}function ef(e,t,r,i={}){const n=re(i),a={...re(i),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:d=>r.test(d),...n};return r instanceof RegExp&&(a.pattern=r),new e(a)}class Xb{constructor(t){this.counter=0,this.metadataRegistry=(t==null?void 0:t.metadata)??pi,this.target=(t==null?void 0:t.target)??"draft-2020-12",this.unrepresentable=(t==null?void 0:t.unrepresentable)??"throw",this.override=(t==null?void 0:t.override)??(()=>{}),this.io=(t==null?void 0:t.io)??"output",this.seen=new Map}process(t,r={path:[],schemaPath:[]}){var g,y,S;var i;const n=t._zod.def,a={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},l=this.seen.get(t);if(l)return l.count++,r.schemaPath.includes(t)&&(l.cycle=r.path),l.schema;const d={schema:{},count:1,cycle:void 0,path:r.path};this.seen.set(t,d);const f=(y=(g=t._zod).toJSONSchema)==null?void 0:y.call(g);if(f)d.schema=f;else{const w={...r,schemaPath:[...r.schemaPath,t],path:r.path},j=t._zod.parent;if(j)d.ref=j,this.process(j,w),this.seen.get(j).isParent=!0;else{const x=d.schema;switch(n.type){case"string":{const $=x;$.type="string";const{minimum:I,maximum:N,format:z,patterns:T,contentEncoding:E}=t._zod.bag;if(typeof I=="number"&&($.minLength=I),typeof N=="number"&&($.maxLength=N),z&&($.format=a[z]??z,$.format===""&&delete $.format),E&&($.contentEncoding=E),T&&T.size>0){const C=[...T];C.length===1?$.pattern=C[0].source:C.length>1&&(d.schema.allOf=[...C.map(ae=>({...this.target==="draft-7"||this.target==="draft-4"||this.target==="openapi-3.0"?{type:"string"}:{},pattern:ae.source}))])}break}case"number":{const $=x,{minimum:I,maximum:N,format:z,multipleOf:T,exclusiveMaximum:E,exclusiveMinimum:C}=t._zod.bag;typeof z=="string"&&z.includes("int")?$.type="integer":$.type="number",typeof C=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?($.minimum=C,$.exclusiveMinimum=!0):$.exclusiveMinimum=C),typeof I=="number"&&($.minimum=I,typeof C=="number"&&this.target!=="draft-4"&&(C>=I?delete $.minimum:delete $.exclusiveMinimum)),typeof E=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?($.maximum=E,$.exclusiveMaximum=!0):$.exclusiveMaximum=E),typeof N=="number"&&($.maximum=N,typeof E=="number"&&this.target!=="draft-4"&&(E<=N?delete $.maximum:delete $.exclusiveMaximum)),typeof T=="number"&&($.multipleOf=T);break}case"boolean":{const $=x;$.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{this.target==="openapi-3.0"?(x.type="string",x.nullable=!0,x.enum=[null]):x.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{x.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const $=x,{minimum:I,maximum:N}=t._zod.bag;typeof I=="number"&&($.minItems=I),typeof N=="number"&&($.maxItems=N),$.type="array",$.items=this.process(n.element,{...w,path:[...w.path,"items"]});break}case"object":{const $=x;$.type="object",$.properties={};const I=n.shape;for(const T in I)$.properties[T]=this.process(I[T],{...w,path:[...w.path,"properties",T]});const N=new Set(Object.keys(I)),z=new Set([...N].filter(T=>{const E=n.shape[T]._zod;return this.io==="input"?E.optin===void 0:E.optout===void 0}));z.size>0&&($.required=Array.from(z)),((S=n.catchall)==null?void 0:S._zod.def.type)==="never"?$.additionalProperties=!1:n.catchall?n.catchall&&($.additionalProperties=this.process(n.catchall,{...w,path:[...w.path,"additionalProperties"]})):this.io==="output"&&($.additionalProperties=!1);break}case"union":{const $=x,I=n.discriminator!==void 0,N=n.options.map((z,T)=>this.process(z,{...w,path:[...w.path,I?"oneOf":"anyOf",T]}));I?$.oneOf=N:$.anyOf=N;break}case"intersection":{const $=x,I=this.process(n.left,{...w,path:[...w.path,"allOf",0]}),N=this.process(n.right,{...w,path:[...w.path,"allOf",1]}),z=E=>"allOf"in E&&Object.keys(E).length===1,T=[...z(I)?I.allOf:[I],...z(N)?N.allOf:[N]];$.allOf=T;break}case"tuple":{const $=x;$.type="array";const I=this.target==="draft-2020-12"?"prefixItems":"items",N=this.target==="draft-2020-12"||this.target==="openapi-3.0"?"items":"additionalItems",z=n.items.map((ae,ue)=>this.process(ae,{...w,path:[...w.path,I,ue]})),T=n.rest?this.process(n.rest,{...w,path:[...w.path,N,...this.target==="openapi-3.0"?[n.items.length]:[]]}):null;this.target==="draft-2020-12"?($.prefixItems=z,T&&($.items=T)):this.target==="openapi-3.0"?($.items={anyOf:z},T&&$.items.anyOf.push(T),$.minItems=z.length,T||($.maxItems=z.length)):($.items=z,T&&($.additionalItems=T));const{minimum:E,maximum:C}=t._zod.bag;typeof E=="number"&&($.minItems=E),typeof C=="number"&&($.maxItems=C);break}case"record":{const $=x;$.type="object",(this.target==="draft-7"||this.target==="draft-2020-12")&&($.propertyNames=this.process(n.keyType,{...w,path:[...w.path,"propertyNames"]})),$.additionalProperties=this.process(n.valueType,{...w,path:[...w.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{const $=x,I=QS(n.entries);I.every(N=>typeof N=="number")&&($.type="number"),I.every(N=>typeof N=="string")&&($.type="string"),$.enum=I;break}case"literal":{const $=x,I=[];for(const N of n.values)if(N===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof N=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");I.push(Number(N))}else I.push(N);if(I.length!==0)if(I.length===1){const N=I[0];$.type=N===null?"null":typeof N,this.target==="draft-4"||this.target==="openapi-3.0"?$.enum=[N]:$.const=N}else I.every(N=>typeof N=="number")&&($.type="number"),I.every(N=>typeof N=="string")&&($.type="string"),I.every(N=>typeof N=="boolean")&&($.type="string"),I.every(N=>N===null)&&($.type="null"),$.enum=I;break}case"file":{const $=x,I={type:"string",format:"binary",contentEncoding:"binary"},{minimum:N,maximum:z,mime:T}=t._zod.bag;N!==void 0&&(I.minLength=N),z!==void 0&&(I.maxLength=z),T?T.length===1?(I.contentMediaType=T[0],Object.assign($,I)):$.anyOf=T.map(E=>({...I,contentMediaType:E})):Object.assign($,I);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const $=this.process(n.innerType,w);this.target==="openapi-3.0"?(d.ref=n.innerType,x.nullable=!0):x.anyOf=[$,{type:"null"}];break}case"nonoptional":{this.process(n.innerType,w),d.ref=n.innerType;break}case"success":{const $=x;$.type="boolean";break}case"default":{this.process(n.innerType,w),d.ref=n.innerType,x.default=JSON.parse(JSON.stringify(n.defaultValue));break}case"prefault":{this.process(n.innerType,w),d.ref=n.innerType,this.io==="input"&&(x._prefault=JSON.parse(JSON.stringify(n.defaultValue)));break}case"catch":{this.process(n.innerType,w),d.ref=n.innerType;let $;try{$=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}x.default=$;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const $=x,I=t._zod.pattern;if(!I)throw new Error("Pattern not found in template literal");$.type="string",$.pattern=I.source;break}case"pipe":{const $=this.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;this.process($,w),d.ref=$;break}case"readonly":{this.process(n.innerType,w),d.ref=n.innerType,x.readOnly=!0;break}case"promise":{this.process(n.innerType,w),d.ref=n.innerType;break}case"optional":{this.process(n.innerType,w),d.ref=n.innerType;break}case"lazy":{const $=t._zod.innerType;this.process($,w),d.ref=$;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}case"function":{if(this.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema");break}}}}const m=this.metadataRegistry.get(t);return m&&Object.assign(d.schema,m),this.io==="input"&&Zn(t)&&(delete d.schema.examples,delete d.schema.default),this.io==="input"&&d.schema._prefault&&((i=d.schema).default??(i.default=d.schema._prefault)),delete d.schema._prefault,this.seen.get(t).schema}emit(t,r){var p,g,y,S,w,j;const i={cycles:(r==null?void 0:r.cycles)??"ref",reused:(r==null?void 0:r.reused)??"inline",external:(r==null?void 0:r.external)??void 0},n=this.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const a=x=>{var T;const $=this.target==="draft-2020-12"?"$defs":"definitions";if(i.external){const E=(T=i.external.registry.get(x[0]))==null?void 0:T.id,C=i.external.uri??(ue=>ue);if(E)return{ref:C(E)};const ae=x[1].defId??x[1].schema.id??`schema${this.counter++}`;return x[1].defId=ae,{defId:ae,ref:`${C("__shared")}#/${$}/${ae}`}}if(x[1]===n)return{ref:"#"};const N=`#/${$}/`,z=x[1].schema.id??`__schema${this.counter++}`;return{defId:z,ref:N+z}},l=x=>{if(x[1].schema.$ref)return;const $=x[1],{ref:I,defId:N}=a(x);$.def={...$.schema},N&&($.defId=N);const z=$.schema;for(const T in z)delete z[T];z.$ref=I};if(i.cycles==="throw")for(const x of this.seen.entries()){const $=x[1];if($.cycle)throw new Error(`Cycle detected: #/${(p=$.cycle)==null?void 0:p.join("/")}/<root>
|
|
197
|
+
|
|
198
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const x of this.seen.entries()){const $=x[1];if(t===x[0]){l(x);continue}if(i.external){const N=(g=i.external.registry.get(x[0]))==null?void 0:g.id;if(t!==x[0]&&N){l(x);continue}}if((y=this.metadataRegistry.get(x[0]))==null?void 0:y.id){l(x);continue}if($.cycle){l(x);continue}if($.count>1&&i.reused==="ref"){l(x);continue}}const d=(x,$)=>{const I=this.seen.get(x),N=I.def??I.schema,z={...N};if(I.ref===null)return;const T=I.ref;if(I.ref=null,T){d(T,$);const E=this.seen.get(T).schema;E.$ref&&($.target==="draft-7"||$.target==="draft-4"||$.target==="openapi-3.0")?(N.allOf=N.allOf??[],N.allOf.push(E)):(Object.assign(N,E),Object.assign(N,z))}I.isParent||this.override({zodSchema:x,jsonSchema:N,path:I.path??[]})};for(const x of[...this.seen.entries()].reverse())d(x[0],{target:this.target});const f={};if(this.target==="draft-2020-12"?f.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?f.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?f.$schema="http://json-schema.org/draft-04/schema#":this.target==="openapi-3.0"||console.warn(`Invalid target: ${this.target}`),(S=i.external)!=null&&S.uri){const x=(w=i.external.registry.get(t))==null?void 0:w.id;if(!x)throw new Error("Schema is missing an `id` property");f.$id=i.external.uri(x)}Object.assign(f,n.def);const m=((j=i.external)==null?void 0:j.defs)??{};for(const x of this.seen.entries()){const $=x[1];$.def&&$.defId&&(m[$.defId]=$.def)}i.external||Object.keys(m).length>0&&(this.target==="draft-2020-12"?f.$defs=m:f.definitions=m);try{return JSON.parse(JSON.stringify(f))}catch{throw new Error("Error converting schema to JSON.")}}}function YM(e,t){if(e instanceof S0){const i=new Xb(t),n={};for(const d of e._idmap.entries()){const[f,m]=d;i.process(m)}const a={},l={registry:e,uri:t==null?void 0:t.uri,defs:n};for(const d of e._idmap.entries()){const[f,m]=d;a[f]=i.emit(m,{...t,external:l})}if(Object.keys(n).length>0){const d=i.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[d]:n}}return{schemas:a}}const r=new Xb(t);return r.process(e),r.emit(e,t)}function Zn(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return Zn(i.element,r);if(i.type==="set")return Zn(i.valueType,r);if(i.type==="lazy")return Zn(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return Zn(i.innerType,r);if(i.type==="intersection")return Zn(i.left,r)||Zn(i.right,r);if(i.type==="record"||i.type==="map")return Zn(i.keyType,r)||Zn(i.valueType,r);if(i.type==="pipe")return Zn(i.in,r)||Zn(i.out,r);if(i.type==="object"){for(const n in i.shape)if(Zn(i.shape[n],r))return!0;return!1}if(i.type==="union"){for(const n of i.options)if(Zn(n,r))return!0;return!1}if(i.type==="tuple"){for(const n of i.items)if(Zn(n,r))return!0;return!!(i.rest&&Zn(i.rest,r))}return!1}const fae=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),mae=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:b2,$ZodArray:w2,$ZodAsyncError:Nu,$ZodBase64:u2,$ZodBase64URL:s2,$ZodBigInt:y0,$ZodBigIntFormat:v2,$ZodBoolean:g0,$ZodCIDRv4:a2,$ZodCIDRv6:o2,$ZodCUID:HR,$ZodCUID2:KR,$ZodCatch:V2,$ZodCheck:Yt,$ZodCheckBigIntFormat:kR,$ZodCheckEndsWith:UR,$ZodCheckGreaterThan:h0,$ZodCheckIncludes:AR,$ZodCheckLengthEquals:jR,$ZodCheckLessThan:m0,$ZodCheckLowerCase:TR,$ZodCheckMaxLength:ER,$ZodCheckMaxSize:wR,$ZodCheckMimeType:RR,$ZodCheckMinLength:NR,$ZodCheckMinSize:xR,$ZodCheckMultipleOf:$R,$ZodCheckNumberFormat:SR,$ZodCheckOverwrite:MR,$ZodCheckProperty:CR,$ZodCheckRegex:IR,$ZodCheckSizeEquals:OR,$ZodCheckStartsWith:DR,$ZodCheckStringFormat:Qd,$ZodCheckUpperCase:zR,$ZodCodec:$0,$ZodCustom:Q2,$ZodCustomStringFormat:m2,$ZodDate:k2,$ZodDefault:P2,$ZodDiscriminatedUnion:j2,$ZodE164:c2,$ZodEmail:FR,$ZodEmoji:qR,$ZodEncodeError:Nv,$ZodEnum:D2,$ZodError:e0,$ZodFile:C2,$ZodFunction:J2,$ZodGUID:ZR,$ZodIPv4:n2,$ZodIPv6:r2,$ZodISODate:WR,$ZodISODateTime:QR,$ZodISODuration:t2,$ZodISOTime:e2,$ZodIntersection:I2,$ZodJWT:f2,$ZodKSUID:XR,$ZodLazy:X2,$ZodLiteral:U2,$ZodMAC:i2,$ZodMap:z2,$ZodNaN:q2,$ZodNanoID:GR,$ZodNever:$2,$ZodNonOptional:B2,$ZodNull:y2,$ZodNullable:L2,$ZodNumber:p0,$ZodNumberFormat:h2,$ZodObject:E2,$ZodObjectJIT:N2,$ZodOptional:M2,$ZodPipe:G2,$ZodPrefault:Z2,$ZodPromise:Y2,$ZodReadonly:H2,$ZodRealError:Er,$ZodRecord:T2,$ZodRegistry:S0,$ZodSet:A2,$ZodString:Wd,$ZodStringFormat:Ct,$ZodSuccess:F2,$ZodSymbol:p2,$ZodTemplateLiteral:K2,$ZodTransform:R2,$ZodTuple:_0,$ZodType:Qe,$ZodULID:JR,$ZodURL:VR,$ZodUUID:BR,$ZodUndefined:g2,$ZodUnion:b0,$ZodUnknown:_2,$ZodVoid:S2,$ZodXID:YR,$brand:v6,$constructor:Z,$input:iM,$output:rM,Doc:LR,JSONSchema:fae,JSONSchemaGenerator:Xb,NEVER:h6,TimePrecision:lM,_any:jM,_array:ZM,_base64:P0,_base64url:Z0,_bigint:SM,_boolean:_M,_catch:oae,_check:GM,_cidrv4:M0,_cidrv6:L0,_coercedBigint:kM,_coercedBoolean:$M,_coercedDate:DM,_coercedNumber:hM,_coercedString:oM,_cuid:T0,_cuid2:z0,_custom:FM,_date:AM,_decode:i0,_decodeAsync:o0,_default:rae,_discriminatedUnion:qie,_e164:B0,_email:w0,_emoji:j0,_encode:r0,_encodeAsync:a0,_endsWith:Y0,_enum:Xie,_file:BM,_float32:pM,_float64:gM,_gt:Zu,_gte:yr,_guid:Nh,_includes:K0,_int:vM,_int32:yM,_int64:wM,_intersection:Gie,_ipv4:C0,_ipv6:R0,_isoDate:cM,_isoDateTime:sM,_isoDuration:fM,_isoTime:dM,_jwt:F0,_ksuid:U0,_lazy:cae,_length:Cv,_literal:Wie,_lowercase:G0,_lt:Pu,_lte:_i,_mac:uM,_map:Jie,_max:_i,_maxLength:Uv,_maxSize:Dv,_mime:X0,_min:yr,_minLength:Ss,_minSize:fd,_multipleOf:dd,_nan:UM,_nanoid:I0,_nativeEnum:Qie,_negative:RM,_never:TM,_nonnegative:LM,_nonoptional:iae,_nonpositive:MM,_normalize:Q0,_null:NM,_nullable:nae,_number:mM,_optional:tae,_overwrite:Bo,_parse:Gd,_parseAsync:Hd,_pipe:uae,_positive:CM,_promise:dae,_property:PM,_readonly:lae,_record:Kie,_refine:VM,_regex:q0,_safeDecode:l0,_safeDecodeAsync:c0,_safeEncode:u0,_safeEncodeAsync:s0,_safeParse:Kd,_safeParseAsync:Jd,_set:Yie,_size:V0,_slugify:nk,_startsWith:J0,_string:aM,_stringFormat:ef,_stringbool:JM,_success:aae,_superRefine:qM,_symbol:OM,_templateLiteral:sae,_toLowerCase:ek,_toUpperCase:tk,_transform:eae,_trim:W0,_tuple:Hie,_uint32:bM,_uint64:xM,_ulid:A0,_undefined:EM,_union:Vie,_unknown:IM,_uppercase:H0,_url:Av,_uuid:x0,_uuidv4:O0,_uuidv6:E0,_uuidv7:N0,_void:zM,_xid:D0,clone:ei,config:qn,decode:xne,decodeAsync:Ene,describe:HM,encode:wne,encodeAsync:One,flattenError:t0,formatError:n0,globalConfig:wh,globalRegistry:pi,isValidBase64:v0,isValidBase64URL:l2,isValidJWT:d2,locales:nM,meta:KM,parse:Kb,parseAsync:Jb,prettifyError:C6,regexes:f0,registry:k0,safeDecode:jne,safeDecodeAsync:Tne,safeEncode:Nne,safeEncodeAsync:Ine,safeParse:R6,safeParseAsync:M6,toDotPath:U6,toJSONSchema:YM,treeifyError:D6,util:z6,version:PR},Symbol.toStringTag,{value:"Module"})),rk=Z("ZodISODateTime",(e,t)=>{QR.init(e,t),Bt.init(e,t)});function XM(e){return sM(rk,e)}const ik=Z("ZodISODate",(e,t)=>{WR.init(e,t),Bt.init(e,t)});function QM(e){return cM(ik,e)}const ak=Z("ZodISOTime",(e,t)=>{e2.init(e,t),Bt.init(e,t)});function WM(e){return dM(ak,e)}const ok=Z("ZodISODuration",(e,t)=>{t2.init(e,t),Bt.init(e,t)});function eL(e){return fM(ok,e)}const hae=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:ik,ZodISODateTime:rk,ZodISODuration:ok,ZodISOTime:ak,date:QM,datetime:XM,duration:eL,time:WM},Symbol.toStringTag,{value:"Module"})),tL=(e,t)=>{e0.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>n0(e,r)},flatten:{value:r=>t0(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,xh,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,xh,2)}},isEmpty:{get(){return e.issues.length===0}}})},vae=Z("ZodError",tL),Nr=Z("ZodError",tL,{Parent:Error}),nL=Gd(Nr),rL=Hd(Nr),iL=Kd(Nr),aL=Jd(Nr),oL=r0(Nr),uL=i0(Nr),lL=a0(Nr),sL=o0(Nr),cL=u0(Nr),dL=l0(Nr),fL=s0(Nr),mL=c0(Nr),at=Z("ZodType",(e,t)=>(Qe.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(Fa(t,{checks:[...t.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]})),e.clone=(r,i)=>ei(e,r,i),e.brand=()=>e,e.register=((r,i)=>(r.add(e,i),e)),e.parse=(r,i)=>nL(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>iL(e,r,i),e.parseAsync=async(r,i)=>rL(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>aL(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>oL(e,r,i),e.decode=(r,i)=>uL(e,r,i),e.encodeAsync=async(r,i)=>lL(e,r,i),e.decodeAsync=async(r,i)=>sL(e,r,i),e.safeEncode=(r,i)=>cL(e,r,i),e.safeDecode=(r,i)=>dL(e,r,i),e.safeEncodeAsync=async(r,i)=>fL(e,r,i),e.safeDecodeAsync=async(r,i)=>mL(e,r,i),e.refine=(r,i)=>e.check(eP(r,i)),e.superRefine=r=>e.check(tP(r)),e.overwrite=r=>e.check(Bo(r)),e.optional=()=>Ih(e),e.nullable=()=>Th(e),e.nullish=()=>Ih(Th(e)),e.nonoptional=r=>BL(e,r),e.array=()=>Bv(e),e.or=r=>Nk([e,r]),e.and=r=>NL(e,r),e.transform=r=>zh(e,Tk(r)),e.default=r=>LL(e,r),e.prefault=r=>ZL(e,r),e.catch=r=>qL(e,r),e.pipe=r=>zh(e,r),e.readonly=()=>KL(e),e.describe=r=>{const i=e.clone();return pi.add(i,{description:r}),i},Object.defineProperty(e,"description",{get(){var r;return(r=pi.get(e))==null?void 0:r.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return pi.get(e);const i=e.clone();return pi.add(i,r[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),uk=Z("_ZodString",(e,t)=>{Wd.init(e,t),at.init(e,t);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...i)=>e.check(q0(...i)),e.includes=(...i)=>e.check(K0(...i)),e.startsWith=(...i)=>e.check(J0(...i)),e.endsWith=(...i)=>e.check(Y0(...i)),e.min=(...i)=>e.check(Ss(...i)),e.max=(...i)=>e.check(Uv(...i)),e.length=(...i)=>e.check(Cv(...i)),e.nonempty=(...i)=>e.check(Ss(1,...i)),e.lowercase=i=>e.check(G0(i)),e.uppercase=i=>e.check(H0(i)),e.trim=()=>e.check(W0()),e.normalize=(...i)=>e.check(Q0(...i)),e.toLowerCase=()=>e.check(ek()),e.toUpperCase=()=>e.check(tk()),e.slugify=()=>e.check(nk())}),Rv=Z("ZodString",(e,t)=>{Wd.init(e,t),uk.init(e,t),e.email=r=>e.check(w0(lk,r)),e.url=r=>e.check(Av(Mv,r)),e.jwt=r=>e.check(F0(kk,r)),e.emoji=r=>e.check(j0(sk,r)),e.guid=r=>e.check(Nh(jh,r)),e.uuid=r=>e.check(x0(Na,r)),e.uuidv4=r=>e.check(O0(Na,r)),e.uuidv6=r=>e.check(E0(Na,r)),e.uuidv7=r=>e.check(N0(Na,r)),e.nanoid=r=>e.check(I0(ck,r)),e.guid=r=>e.check(Nh(jh,r)),e.cuid=r=>e.check(T0(dk,r)),e.cuid2=r=>e.check(z0(fk,r)),e.ulid=r=>e.check(A0(mk,r)),e.base64=r=>e.check(P0(_k,r)),e.base64url=r=>e.check(Z0($k,r)),e.xid=r=>e.check(D0(hk,r)),e.ksuid=r=>e.check(U0(vk,r)),e.ipv4=r=>e.check(C0(pk,r)),e.ipv6=r=>e.check(R0(gk,r)),e.cidrv4=r=>e.check(M0(yk,r)),e.cidrv6=r=>e.check(L0(bk,r)),e.e164=r=>e.check(B0(Sk,r)),e.datetime=r=>e.check(XM(r)),e.date=r=>e.check(QM(r)),e.time=r=>e.check(WM(r)),e.duration=r=>e.check(eL(r))});function Qb(e){return aM(Rv,e)}const Bt=Z("ZodStringFormat",(e,t)=>{Ct.init(e,t),uk.init(e,t)}),lk=Z("ZodEmail",(e,t)=>{FR.init(e,t),Bt.init(e,t)});function pae(e){return w0(lk,e)}const jh=Z("ZodGUID",(e,t)=>{ZR.init(e,t),Bt.init(e,t)});function gae(e){return Nh(jh,e)}const Na=Z("ZodUUID",(e,t)=>{BR.init(e,t),Bt.init(e,t)});function yae(e){return x0(Na,e)}function bae(e){return O0(Na,e)}function _ae(e){return E0(Na,e)}function $ae(e){return N0(Na,e)}const Mv=Z("ZodURL",(e,t)=>{VR.init(e,t),Bt.init(e,t)});function Sae(e){return Av(Mv,e)}function kae(e){return Av(Mv,{protocol:/^https?$/,hostname:rR,...re(e)})}const sk=Z("ZodEmoji",(e,t)=>{qR.init(e,t),Bt.init(e,t)});function wae(e){return j0(sk,e)}const ck=Z("ZodNanoID",(e,t)=>{GR.init(e,t),Bt.init(e,t)});function xae(e){return I0(ck,e)}const dk=Z("ZodCUID",(e,t)=>{HR.init(e,t),Bt.init(e,t)});function Oae(e){return T0(dk,e)}const fk=Z("ZodCUID2",(e,t)=>{KR.init(e,t),Bt.init(e,t)});function Eae(e){return z0(fk,e)}const mk=Z("ZodULID",(e,t)=>{JR.init(e,t),Bt.init(e,t)});function Nae(e){return A0(mk,e)}const hk=Z("ZodXID",(e,t)=>{YR.init(e,t),Bt.init(e,t)});function jae(e){return D0(hk,e)}const vk=Z("ZodKSUID",(e,t)=>{XR.init(e,t),Bt.init(e,t)});function Iae(e){return U0(vk,e)}const pk=Z("ZodIPv4",(e,t)=>{n2.init(e,t),Bt.init(e,t)});function Tae(e){return C0(pk,e)}const hL=Z("ZodMAC",(e,t)=>{i2.init(e,t),Bt.init(e,t)});function zae(e){return uM(hL,e)}const gk=Z("ZodIPv6",(e,t)=>{r2.init(e,t),Bt.init(e,t)});function Aae(e){return R0(gk,e)}const yk=Z("ZodCIDRv4",(e,t)=>{a2.init(e,t),Bt.init(e,t)});function Dae(e){return M0(yk,e)}const bk=Z("ZodCIDRv6",(e,t)=>{o2.init(e,t),Bt.init(e,t)});function Uae(e){return L0(bk,e)}const _k=Z("ZodBase64",(e,t)=>{u2.init(e,t),Bt.init(e,t)});function Cae(e){return P0(_k,e)}const $k=Z("ZodBase64URL",(e,t)=>{s2.init(e,t),Bt.init(e,t)});function Rae(e){return Z0($k,e)}const Sk=Z("ZodE164",(e,t)=>{c2.init(e,t),Bt.init(e,t)});function Mae(e){return B0(Sk,e)}const kk=Z("ZodJWT",(e,t)=>{f2.init(e,t),Bt.init(e,t)});function Lae(e){return F0(kk,e)}const tf=Z("ZodCustomStringFormat",(e,t)=>{m2.init(e,t),Bt.init(e,t)});function Pae(e,t,r={}){return ef(tf,e,t,r)}function Zae(e){return ef(tf,"hostname",nR,e)}function Bae(e){return ef(tf,"hex",bR,e)}function Fae(e,t){const r=(t==null?void 0:t.enc)??"hex",i=`${e}_${r}`,n=f0[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return ef(tf,i,n,t)}const Lv=Z("ZodNumber",(e,t)=>{p0.init(e,t),at.init(e,t),e.gt=(i,n)=>e.check(Zu(i,n)),e.gte=(i,n)=>e.check(yr(i,n)),e.min=(i,n)=>e.check(yr(i,n)),e.lt=(i,n)=>e.check(Pu(i,n)),e.lte=(i,n)=>e.check(_i(i,n)),e.max=(i,n)=>e.check(_i(i,n)),e.int=i=>e.check(Wb(i)),e.safe=i=>e.check(Wb(i)),e.positive=i=>e.check(Zu(0,i)),e.nonnegative=i=>e.check(yr(0,i)),e.negative=i=>e.check(Pu(0,i)),e.nonpositive=i=>e.check(_i(0,i)),e.multipleOf=(i,n)=>e.check(dd(i,n)),e.step=(i,n)=>e.check(dd(i,n)),e.finite=()=>e;const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function vL(e){return mM(Lv,e)}const As=Z("ZodNumberFormat",(e,t)=>{h2.init(e,t),Lv.init(e,t)});function Wb(e){return vM(As,e)}function Vae(e){return pM(As,e)}function qae(e){return gM(As,e)}function Gae(e){return yM(As,e)}function Hae(e){return bM(As,e)}const Pv=Z("ZodBoolean",(e,t)=>{g0.init(e,t),at.init(e,t)});function pL(e){return _M(Pv,e)}const Zv=Z("ZodBigInt",(e,t)=>{y0.init(e,t),at.init(e,t),e.gte=(i,n)=>e.check(yr(i,n)),e.min=(i,n)=>e.check(yr(i,n)),e.gt=(i,n)=>e.check(Zu(i,n)),e.gte=(i,n)=>e.check(yr(i,n)),e.min=(i,n)=>e.check(yr(i,n)),e.lt=(i,n)=>e.check(Pu(i,n)),e.lte=(i,n)=>e.check(_i(i,n)),e.max=(i,n)=>e.check(_i(i,n)),e.positive=i=>e.check(Zu(BigInt(0),i)),e.negative=i=>e.check(Pu(BigInt(0),i)),e.nonpositive=i=>e.check(_i(BigInt(0),i)),e.nonnegative=i=>e.check(yr(BigInt(0),i)),e.multipleOf=(i,n)=>e.check(dd(i,n));const r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function Kae(e){return SM(Zv,e)}const wk=Z("ZodBigIntFormat",(e,t)=>{v2.init(e,t),Zv.init(e,t)});function Jae(e){return wM(wk,e)}function Yae(e){return xM(wk,e)}const gL=Z("ZodSymbol",(e,t)=>{p2.init(e,t),at.init(e,t)});function Xae(e){return OM(gL,e)}const yL=Z("ZodUndefined",(e,t)=>{g2.init(e,t),at.init(e,t)});function Qae(e){return EM(yL,e)}const bL=Z("ZodNull",(e,t)=>{y2.init(e,t),at.init(e,t)});function _L(e){return NM(bL,e)}const $L=Z("ZodAny",(e,t)=>{b2.init(e,t),at.init(e,t)});function Wae(){return jM($L)}const SL=Z("ZodUnknown",(e,t)=>{_2.init(e,t),at.init(e,t)});function ks(){return IM(SL)}const kL=Z("ZodNever",(e,t)=>{$2.init(e,t),at.init(e,t)});function xk(e){return TM(kL,e)}const wL=Z("ZodVoid",(e,t)=>{S2.init(e,t),at.init(e,t)});function eoe(e){return zM(wL,e)}const Ok=Z("ZodDate",(e,t)=>{k2.init(e,t),at.init(e,t),e.min=(i,n)=>e.check(yr(i,n)),e.max=(i,n)=>e.check(_i(i,n));const r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function toe(e){return AM(Ok,e)}const xL=Z("ZodArray",(e,t)=>{w2.init(e,t),at.init(e,t),e.element=t.element,e.min=(r,i)=>e.check(Ss(r,i)),e.nonempty=r=>e.check(Ss(1,r)),e.max=(r,i)=>e.check(Uv(r,i)),e.length=(r,i)=>e.check(Cv(r,i)),e.unwrap=()=>e.element});function Bv(e,t){return ZM(xL,e,t)}function noe(e){const t=e._zod.def.shape;return Ik(Object.keys(t))}const Fv=Z("ZodObject",(e,t)=>{N2.init(e,t),at.init(e,t),ct(e,"shape",()=>t.shape),e.keyof=()=>Ik(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ks()}),e.loose=()=>e.clone({...e._zod.def,catchall:ks()}),e.strict=()=>e.clone({...e._zod.def,catchall:xk()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>x6(e,r),e.safeExtend=r=>O6(e,r),e.merge=r=>E6(e,r),e.pick=r=>k6(e,r),e.omit=r=>w6(e,r),e.partial=(...r)=>N6(zk,e,r[0]),e.required=(...r)=>j6(Ak,e,r[0])});function roe(e,t){const r={type:"object",shape:e??{},...re(t)};return new Fv(r)}function ioe(e,t){return new Fv({type:"object",shape:e,catchall:xk(),...re(t)})}function aoe(e,t){return new Fv({type:"object",shape:e,catchall:ks(),...re(t)})}const Ek=Z("ZodUnion",(e,t)=>{b0.init(e,t),at.init(e,t),e.options=t.options});function Nk(e,t){return new Ek({type:"union",options:e,...re(t)})}const OL=Z("ZodDiscriminatedUnion",(e,t)=>{Ek.init(e,t),j2.init(e,t)});function ooe(e,t,r){return new OL({type:"union",options:t,discriminator:e,...re(r)})}const EL=Z("ZodIntersection",(e,t)=>{I2.init(e,t),at.init(e,t)});function NL(e,t){return new EL({type:"intersection",left:e,right:t})}const jL=Z("ZodTuple",(e,t)=>{_0.init(e,t),at.init(e,t),e.rest=r=>e.clone({...e._zod.def,rest:r})});function IL(e,t,r){const i=t instanceof Qe,n=i?r:t,a=i?t:null;return new jL({type:"tuple",items:e,rest:a,...re(n)})}const jk=Z("ZodRecord",(e,t)=>{T2.init(e,t),at.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function TL(e,t,r){return new jk({type:"record",keyType:e,valueType:t,...re(r)})}function uoe(e,t,r){const i=ei(e);return i._zod.values=void 0,new jk({type:"record",keyType:i,valueType:t,...re(r)})}const zL=Z("ZodMap",(e,t)=>{z2.init(e,t),at.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function loe(e,t,r){return new zL({type:"map",keyType:e,valueType:t,...re(r)})}const AL=Z("ZodSet",(e,t)=>{A2.init(e,t),at.init(e,t),e.min=(...r)=>e.check(fd(...r)),e.nonempty=r=>e.check(fd(1,r)),e.max=(...r)=>e.check(Dv(...r)),e.size=(...r)=>e.check(V0(...r))});function soe(e,t){return new AL({type:"set",valueType:e,...re(t)})}const md=Z("ZodEnum",(e,t)=>{D2.init(e,t),at.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(i,n)=>{const a={};for(const l of i)if(r.has(l))a[l]=t.entries[l];else throw new Error(`Key ${l} not found in enum`);return new md({...t,checks:[],...re(n),entries:a})},e.exclude=(i,n)=>{const a={...t.entries};for(const l of i)if(r.has(l))delete a[l];else throw new Error(`Key ${l} not found in enum`);return new md({...t,checks:[],...re(n),entries:a})}});function Ik(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new md({type:"enum",entries:r,...re(t)})}function coe(e,t){return new md({type:"enum",entries:e,...re(t)})}const DL=Z("ZodLiteral",(e,t)=>{U2.init(e,t),at.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function doe(e,t){return new DL({type:"literal",values:Array.isArray(e)?e:[e],...re(t)})}const UL=Z("ZodFile",(e,t)=>{C2.init(e,t),at.init(e,t),e.min=(r,i)=>e.check(fd(r,i)),e.max=(r,i)=>e.check(Dv(r,i)),e.mime=(r,i)=>e.check(X0(Array.isArray(r)?r:[r],i))});function foe(e){return BM(UL,e)}const CL=Z("ZodTransform",(e,t)=>{R2.init(e,t),at.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Nv(e.constructor.name);r.addIssue=a=>{if(typeof a=="string")r.issues.push(_s(a,r.value,t));else{const l=a;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=r.value),l.inst??(l.inst=e),r.issues.push(_s(l))}};const n=t.transform(r.value,r);return n instanceof Promise?n.then(a=>(r.value=a,r)):(r.value=n,r)}});function Tk(e){return new CL({type:"transform",transform:e})}const zk=Z("ZodOptional",(e,t)=>{M2.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ih(e){return new zk({type:"optional",innerType:e})}const RL=Z("ZodNullable",(e,t)=>{L2.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Th(e){return new RL({type:"nullable",innerType:e})}function moe(e){return Ih(Th(e))}const ML=Z("ZodDefault",(e,t)=>{P2.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function LL(e,t){return new ML({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Iv(t)}})}const PL=Z("ZodPrefault",(e,t)=>{Z2.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ZL(e,t){return new PL({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Iv(t)}})}const Ak=Z("ZodNonOptional",(e,t)=>{B2.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType});function BL(e,t){return new Ak({type:"nonoptional",innerType:e,...re(t)})}const FL=Z("ZodSuccess",(e,t)=>{F2.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType});function hoe(e){return new FL({type:"success",innerType:e})}const VL=Z("ZodCatch",(e,t)=>{V2.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function qL(e,t){return new VL({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const GL=Z("ZodNaN",(e,t)=>{q2.init(e,t),at.init(e,t)});function voe(e){return UM(GL,e)}const Dk=Z("ZodPipe",(e,t)=>{G2.init(e,t),at.init(e,t),e.in=t.in,e.out=t.out});function zh(e,t){return new Dk({type:"pipe",in:e,out:t})}const Uk=Z("ZodCodec",(e,t)=>{Dk.init(e,t),$0.init(e,t)});function poe(e,t,r){return new Uk({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}const HL=Z("ZodReadonly",(e,t)=>{H2.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType});function KL(e){return new HL({type:"readonly",innerType:e})}const JL=Z("ZodTemplateLiteral",(e,t)=>{K2.init(e,t),at.init(e,t)});function goe(e,t){return new JL({type:"template_literal",parts:e,...re(t)})}const YL=Z("ZodLazy",(e,t)=>{X2.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.getter()});function XL(e){return new YL({type:"lazy",getter:e})}const QL=Z("ZodPromise",(e,t)=>{Y2.init(e,t),at.init(e,t),e.unwrap=()=>e._zod.def.innerType});function yoe(e){return new QL({type:"promise",innerType:e})}const WL=Z("ZodFunction",(e,t)=>{J2.init(e,t),at.init(e,t)});function Ij(e){return new WL({type:"function",input:Array.isArray(e==null?void 0:e.input)?IL(e==null?void 0:e.input):(e==null?void 0:e.input)??Bv(ks()),output:(e==null?void 0:e.output)??ks()})}const Vv=Z("ZodCustom",(e,t)=>{Q2.init(e,t),at.init(e,t)});function boe(e){const t=new Yt({check:"custom"});return t._zod.check=e,t}function _oe(e,t){return FM(Vv,e??(()=>!0),t)}function eP(e,t={}){return VM(Vv,e,t)}function tP(e){return qM(e)}const $oe=HM,Soe=KM;function koe(e,t={error:`Input not instance of ${e.name}`}){const r=new Vv({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...re(t)});return r._zod.bag.Class=e,r}const woe=(...e)=>JM({Codec:Uk,Boolean:Pv,String:Rv},...e);function xoe(e){const t=XL(()=>Nk([Qb(e),vL(),pL(),_L(),Bv(t),TL(Qb(),t)]));return t}function Ooe(e,t){return zh(Tk(e),t)}const Eoe={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 Noe(e){qn({customError:e})}function joe(){return qn().customError}var e_;e_||(e_={});function Ioe(e){return oM(Rv,e)}function Toe(e){return hM(Lv,e)}function zoe(e){return $M(Pv,e)}function Aoe(e){return kM(Zv,e)}function Doe(e){return DM(Ok,e)}const Uoe=Object.freeze(Object.defineProperty({__proto__:null,bigint:Aoe,boolean:zoe,date:Doe,number:Toe,string:Ioe},Symbol.toStringTag,{value:"Module"}));qn(W2());const nP=Object.freeze(Object.defineProperty({__proto__:null,$brand:v6,$input:iM,$output:rM,NEVER:h6,TimePrecision:lM,ZodAny:$L,ZodArray:xL,ZodBase64:_k,ZodBase64URL:$k,ZodBigInt:Zv,ZodBigIntFormat:wk,ZodBoolean:Pv,ZodCIDRv4:yk,ZodCIDRv6:bk,ZodCUID:dk,ZodCUID2:fk,ZodCatch:VL,ZodCodec:Uk,ZodCustom:Vv,ZodCustomStringFormat:tf,ZodDate:Ok,ZodDefault:ML,ZodDiscriminatedUnion:OL,ZodE164:Sk,ZodEmail:lk,ZodEmoji:sk,ZodEnum:md,ZodError:vae,ZodFile:UL,get ZodFirstPartyTypeKind(){return e_},ZodFunction:WL,ZodGUID:jh,ZodIPv4:pk,ZodIPv6:gk,ZodISODate:ik,ZodISODateTime:rk,ZodISODuration:ok,ZodISOTime:ak,ZodIntersection:EL,ZodIssueCode:Eoe,ZodJWT:kk,ZodKSUID:vk,ZodLazy:YL,ZodLiteral:DL,ZodMAC:hL,ZodMap:zL,ZodNaN:GL,ZodNanoID:ck,ZodNever:kL,ZodNonOptional:Ak,ZodNull:bL,ZodNullable:RL,ZodNumber:Lv,ZodNumberFormat:As,ZodObject:Fv,ZodOptional:zk,ZodPipe:Dk,ZodPrefault:PL,ZodPromise:QL,ZodReadonly:HL,ZodRealError:Nr,ZodRecord:jk,ZodSet:AL,ZodString:Rv,ZodStringFormat:Bt,ZodSuccess:FL,ZodSymbol:gL,ZodTemplateLiteral:JL,ZodTransform:CL,ZodTuple:jL,ZodType:at,ZodULID:mk,ZodURL:Mv,ZodUUID:Na,ZodUndefined:yL,ZodUnion:Ek,ZodUnknown:SL,ZodVoid:wL,ZodXID:hk,_ZodString:uk,_default:LL,_function:Ij,any:Wae,array:Bv,base64:Cae,base64url:Rae,bigint:Kae,boolean:pL,catch:qL,check:boe,cidrv4:Dae,cidrv6:Uae,clone:ei,codec:poe,coerce:Uoe,config:qn,core:mae,cuid:Oae,cuid2:Eae,custom:_oe,date:toe,decode:uL,decodeAsync:sL,describe:$oe,discriminatedUnion:ooe,e164:Mae,email:pae,emoji:wae,encode:oL,encodeAsync:lL,endsWith:Y0,enum:Ik,file:foe,flattenError:t0,float32:Vae,float64:qae,formatError:n0,function:Ij,getErrorMap:joe,globalRegistry:pi,gt:Zu,gte:yr,guid:gae,hash:Fae,hex:Bae,hostname:Zae,httpUrl:kae,includes:K0,instanceof:koe,int:Wb,int32:Gae,int64:Jae,intersection:NL,ipv4:Tae,ipv6:Aae,iso:hae,json:xoe,jwt:Lae,keyof:noe,ksuid:Iae,lazy:XL,length:Cv,literal:doe,locales:nM,looseObject:aoe,lowercase:G0,lt:Pu,lte:_i,mac:zae,map:loe,maxLength:Uv,maxSize:Dv,meta:Soe,mime:X0,minLength:Ss,minSize:fd,multipleOf:dd,nan:voe,nanoid:xae,nativeEnum:coe,negative:RM,never:xk,nonnegative:LM,nonoptional:BL,nonpositive:MM,normalize:Q0,null:_L,nullable:Th,nullish:moe,number:vL,object:roe,optional:Ih,overwrite:Bo,parse:nL,parseAsync:rL,partialRecord:uoe,pipe:zh,positive:CM,prefault:ZL,preprocess:Ooe,prettifyError:C6,promise:yoe,property:PM,readonly:KL,record:TL,refine:eP,regex:q0,regexes:f0,registry:k0,safeDecode:dL,safeDecodeAsync:mL,safeEncode:cL,safeEncodeAsync:fL,safeParse:iL,safeParseAsync:aL,set:soe,setErrorMap:Noe,size:V0,slugify:nk,startsWith:J0,strictObject:ioe,string:Qb,stringFormat:Pae,stringbool:woe,success:hoe,superRefine:tP,symbol:Xae,templateLiteral:goe,toJSONSchema:YM,toLowerCase:ek,toUpperCase:tk,transform:Tk,treeifyError:D6,trim:W0,tuple:IL,uint32:Hae,uint64:Yae,ulid:Nae,undefined:Qae,union:Nk,unknown:ks,uppercase:H0,url:Sae,util:z6,uuid:yae,uuidv4:bae,uuidv6:_ae,uuidv7:$ae,void:eoe,xid:jae},Symbol.toStringTag,{value:"Module"})),rP=()=>nP.string().trim().min(1,"Base URL is required").refine(e=>URL.canParse(e),"Base URL is not a valid URL").transform(e=>new URL(e)).refine(e=>e.protocol==="http:"||e.protocol==="https:","Base URL must use http or https protocol").refine(e=>e.pathname==="/"&&e.search===""&&e.hash==="","Base URL must have no path, query, nor hash").transform(e=>e.toString().replace(/\/$/,"")),iP=()=>nP.string().trim().min(1,"GraphQL URL is required").refine(e=>URL.canParse(e),"GraphQL URL is not a valid URL").transform(e=>new URL(e)).refine(e=>e.protocol==="http:"||e.protocol==="https:","GraphQL URL must use http or https protocol").refine(e=>e.pathname==="/graphql","GraphQL URL must have /graphql path").transform(e=>e.toString().replace(/\/$/,"")),Coe=({text:e})=>b.jsx(nA,{placement:"top",overlay:b.jsx(t$,{children:e}),trigger:["hover","click","focus"],children:b.jsx(m$,{className:"text-muted ms-1",style:{cursor:"pointer"}})}),Roe=Qr(`
|
|
199
|
+
mutation AddCasino($input: HubAddCasinoInput!) {
|
|
200
|
+
hubAddCasino(input: $input) {
|
|
201
|
+
casino {
|
|
202
|
+
id
|
|
203
|
+
name
|
|
204
|
+
baseUrl
|
|
205
|
+
graphqlUrl
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
`),Moe={name:"moneypot.com",baseUrl:"https://moneypot.com",graphqlUrl:"https://api.moneypot.com/graphql",apiKey:""},Loe=za.object({name:za.string().min(1,"Name is required"),baseUrl:rP(),graphqlUrl:iP(),apiKey:za.uuid("API key must be a UUID")}),Poe=fn(({show:e,onHide:t})=>{const r=kn(),[i]=OT(r,{document:Roe}),a=cv({initialValues:Moe,validate:l=>Yh(Loe)(l),onSubmit:async(l,{setSubmitting:d,setStatus:f})=>(f(null),d(!0),i({variables:{input:{name:l.name,baseUrl:l.baseUrl,graphqlUrl:l.graphqlUrl,apiKey:l.apiKey}}}).then(m=>{var g;((g=m.hubAddCasino)==null?void 0:g.casino)&&(r.refetchCasinos(),t())}).catch(m=>{f(nr(m))}).finally(()=>{d(!1)}))});return b.jsx(vn,{show:e,onHide:t,size:"lg",children:b.jsxs(tt,{onSubmit:a.handleSubmit,children:[b.jsx(vn.Header,{closeButton:!0,children:b.jsx(vn.Title,{children:"Add Casino"})}),b.jsxs(vn.Body,{children:[a.status&&b.jsx(Sr,{variant:"danger",className:"mb-3",children:a.status}),b.jsxs("fieldset",{disabled:a.isSubmitting,children:[b.jsxs(tt.Group,{children:[b.jsx(tt.Label,{children:"Name (for your own reference)"}),b.jsx(tt.Control,{type:"text",name:"name",placeholder:"Ex: moneypot.com",value:a.values.name,onChange:a.handleChange,onBlur:a.handleBlur,isInvalid:a.touched.name&&!!a.errors.name}),b.jsx(tt.Control.Feedback,{type:"invalid",children:a.errors.name})]}),b.jsxs(tt.Group,{className:"mt-2",children:[b.jsx(tt.Label,{children:"Website base URL"}),b.jsx(tt.Control,{type:"text",name:"baseUrl",placeholder:"Ex: https://moneypot.com",value:a.values.baseUrl,onChange:a.handleChange,onBlur:a.handleBlur,isInvalid:a.touched.baseUrl&&!!a.errors.baseUrl}),b.jsx(tt.Control.Feedback,{type:"invalid",children:a.errors.baseUrl})]}),b.jsxs(tt.Group,{className:"mt-2",children:[b.jsx(tt.Label,{children:"GraphQL URL"}),b.jsx(tt.Control,{type:"text",name:"graphqlUrl",placeholder:"Ex: https://api.moneypot.com/graphql",value:a.values.graphqlUrl,onChange:a.handleChange,onBlur:a.handleBlur,isInvalid:a.touched.graphqlUrl&&!!a.errors.graphqlUrl}),b.jsx(tt.Control.Feedback,{type:"invalid",children:a.errors.graphqlUrl})]}),b.jsxs(tt.Group,{className:"mt-2",children:[b.jsxs(tt.Label,{children:["Controller API Key"," ",b.jsx(Coe,{text:"This should be a valid api key that you created for your controller on the casino website"})]}),b.jsx(tt.Control,{type:"text",name:"apiKey",placeholder:"Ex: 01234567-89ab-cdef-0123-456789abcdef",value:a.values.apiKey,onChange:a.handleChange,onBlur:a.handleBlur,isInvalid:a.touched.apiKey&&!!a.errors.apiKey}),b.jsx(tt.Control.Feedback,{type:"invalid",children:a.errors.apiKey})]})]})]}),b.jsx(vn.Footer,{children:b.jsx(Sn,{type:"submit",disabled:a.isSubmitting,children:a.isSubmitting?"Testing...":"Test connection and save"})})]})})}),Zoe=fn(()=>{var i;const e=kn(),[t,r]=k.useState(!1);return b.jsxs("div",{children:[b.jsx(Poe,{show:t,onHide:()=>r(!1)}),b.jsxs("h2",{children:["Casinos",b.jsx(Sn,{className:"float-end",onClick:()=>r(!0),children:"Add casino"})]}),b.jsxs(Yi,{striped:!0,bordered:!0,hover:!0,children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("th",{children:"ID"}),b.jsx("th",{children:"Name"}),b.jsx("th",{children:"Base URL"}),b.jsx("th",{children:"GraphQL URL"}),b.jsx("th",{children:"Added"}),b.jsx("th",{children:"Playground"})]})}),b.jsx("tbody",{children:(i=e.loggedIn)==null?void 0:i.casinos.map(n=>b.jsxs("tr",{children:[b.jsx("td",{children:b.jsx($r,{to:`/casinos/${n.id}`,children:n.id})}),b.jsx("td",{children:n.name}),b.jsxs("td",{style:{whiteSpace:"nowrap"},children:[b.jsx("span",{className:"user-select-all",children:n.baseUrl})," ",b.jsx("a",{href:n.baseUrl,target:"_blank",rel:"noreferrer",className:"text-decoration-none",children:b.jsx(zb,{style:{verticalAlign:"baseline"}})})]}),b.jsxs("td",{style:{whiteSpace:"nowrap"},children:[b.jsx("span",{className:"user-select-all",children:n.graphqlUrl})," ",b.jsx("a",{href:n.graphqlUrl,target:"_blank",rel:"noreferrer",className:"text-decoration-none",children:b.jsx(zb,{style:{verticalAlign:"baseline"}})})]}),b.jsx("td",{children:b.jsx(Ra,{date:Hu(n.id),variant:"long"})}),b.jsx("td",{children:n.isPlayground?"Yes":"No"})]},n.id))})]})]})});function Va(){var i,n;const{casinoId:e}=oI(),t=kn();return k.useEffect(()=>{var a;e&&!((a=t.loggedIn)!=null&&a.casinos.find(l=>l.id===e))&&console.warn(`Casino ${e} not found`)},[e,(i=t.loggedIn)==null?void 0:i.casinos]),((n=t.loggedIn)==null?void 0:n.casinos.find(a=>a.id===e))||null}const Tj=[{path:"",title:"Casino"},{path:"users",title:"Users"},{path:"experiences",title:"Experiences"},{path:"bankrolls",title:"Bankrolls"},{path:"currencies",title:"Currencies"},{path:"deposits",title:"Deposits"},{path:"withdrawals",title:"Withdrawals"},{path:"chat",title:"Chat"},{path:"jwks",title:"Pubkeys"}];function Boe(e,t){return e.sort((r,i)=>i.length-r.length).find(r=>t.includes("/"+r))}const Foe=fn(()=>{var d;const e=La(),t=kn(),r=Uh(),i=Va();if(!t.loggedIn)return b.jsx("div",{children:"You must be logged in"});if(!i)return b.jsx(wi,{});const n=Boe(Tj.map(f=>f.path),e.pathname),a=e.pathname.match(/^\/casinos\/[^/]+/),l=f=>{var g;if(!a)return;const m=f.target.value,p=(g=t.loggedIn)==null?void 0:g.casinos.find(y=>y.id===m);p&&r(e.pathname.replace(/\/casinos\/[^/]+/,`/casinos/${p.id}`))};return b.jsxs("div",{children:[b.jsxs(rA,{direction:"horizontal",style:{alignItems:"baseline"},children:[b.jsxs(Ey,{children:[b.jsx(Ey.Item,{linkAs:$r,linkProps:{to:"/casinos"},children:"Casinos"}),b.jsx(Ey.Item,{active:!0,children:i.name})]}),b.jsxs(tt.Select,{className:"ms-2 d-inline-block",style:{width:"auto"},size:"sm",value:i.id,onChange:l,children:[b.jsx("option",{disabled:!0,children:"Select casino"}),(d=t.loggedIn)==null?void 0:d.casinos.map(f=>b.jsx("option",{value:f.id,children:f.name},f.id))]})]}),b.jsx("ul",{className:"nav nav-tabs mb-4 ",children:Tj.map(f=>b.jsx("li",{className:"nav-item",children:b.jsx($r,{to:f.path,className:`nav-link ${n===f.path?"active":""}`,children:f.title})},f.path))}),b.jsx(sI,{})]})}),Ao=({text:e,sourceRef:t,popoverDuration:r=1e3,popoverPlacement:i="top"})=>{const[n,a]=k.useState("idle"),[l,d]=k.useState(!1),[f,m]=k.useState("success"),p=k.useRef(null),g=k.useRef(null),y=k.useRef(null);k.useEffect(()=>()=>{p.current&&clearTimeout(p.current),g.current&&clearTimeout(g.current)},[]);const S=$=>{m($),d(!0),g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{d(!1)},r)},w=()=>{p.current&&clearTimeout(p.current),navigator.clipboard.writeText(e).then(()=>{a("success"),p.current=setTimeout(()=>a("idle"),r),S("success")}).catch($=>{console.error("Failed to copy text: ",$),a("error"),p.current=setTimeout(()=>a("idle"),r),S("error")})},j=()=>{switch(n){case"success":return b.jsx(Db,{className:"text-success-emphasis"});case"error":return b.jsx(Mb,{className:"text-danger-emphasis"});default:return b.jsx(AA,{})}},x=()=>f==="success"?"Copied!":"Error";return b.jsxs(b.Fragment,{children:[b.jsx(Sn,{ref:y,variant:"outline-secondary",size:"sm",onClick:w,"aria-label":"Copy to clipboard",children:j()}),b.jsx(n$,{show:l,target:(t==null?void 0:t.current)||y.current,placement:i,children:b.jsx(wb,{id:"copy-popover",children:b.jsx(wb.Body,{children:f==="success"?b.jsxs("span",{className:"text-success-emphasis",children:[b.jsx(Db,{})," ",x()]}):b.jsxs("span",{className:"text-danger-emphasis",children:[b.jsx(Mb,{})," ",x()]})})})})]})},Voe=Qr(`
|
|
210
|
+
query ListCasinoUsers($casinoId: UUID!, $after: Cursor) {
|
|
211
|
+
hubCasinoById(id: $casinoId) {
|
|
212
|
+
id
|
|
213
|
+
hubUsersByCasinoId(after: $after, first: 10) {
|
|
214
|
+
pageInfo {
|
|
215
|
+
endCursor
|
|
216
|
+
hasNextPage
|
|
217
|
+
}
|
|
218
|
+
edges {
|
|
219
|
+
cursor
|
|
220
|
+
node {
|
|
221
|
+
id
|
|
222
|
+
uname
|
|
223
|
+
mpUserId
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
`),qoe=fn(()=>{var m,p,g,y;const e=kn(),t=Va(),{data:r,loading:i,error:n,fetchMore:a}=Ro(e,{document:Voe,variables:{casinoId:t.id,after:null}}),l=()=>{a({variables:{casinoId:t.id,after:null}})},d=()=>{var S,w;a({variables:{casinoId:t.id,after:(w=(S=r==null?void 0:r.hubCasinoById)==null?void 0:S.hubUsersByCasinoId)==null?void 0:w.pageInfo.endCursor}})},f=((p=(m=r==null?void 0:r.hubCasinoById)==null?void 0:m.hubUsersByCasinoId)==null?void 0:p.edges.flatMap(S=>(S==null?void 0:S.node)||[]))||[];return b.jsxs("div",{children:[b.jsx("h2",{children:"Users"}),i&&b.jsx("div",{children:"Loading..."}),n&&b.jsx(Sr,{variant:"danger",children:nr(n)}),b.jsxs(Yi,{striped:!0,bordered:!0,hover:!0,children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("th",{children:"Added"}),b.jsx("th",{children:"Username"}),b.jsx("th",{children:"ID"}),b.jsx("th",{children:"MP User ID"})]})}),b.jsx("tbody",{children:f.map(S=>b.jsxs("tr",{children:[b.jsx("td",{children:b.jsx(Ra,{date:Hu(S.id),variant:"long"})}),b.jsx("td",{children:S.uname}),b.jsxs("td",{children:[b.jsx("code",{className:"user-select-all",children:S.id})," ",b.jsx(Ao,{text:S.id})]}),b.jsxs("td",{children:[b.jsx("code",{className:"user-select-all",children:S.mpUserId})," ",b.jsx(Ao,{text:S.mpUserId})]})]},S.id))})]}),b.jsxs("div",{children:[b.jsx(Sn,{variant:"outline-secondary",onClick:l,disabled:i,children:"First page"}),b.jsx(Sn,{variant:"outline-secondary",className:"ms-2",onClick:d,disabled:i||!((y=(g=r==null?void 0:r.hubCasinoById)==null?void 0:g.hubUsersByCasinoId)!=null&&y.pageInfo.hasNextPage),children:"Load more"})]})]})}),Goe=Qr(`
|
|
230
|
+
mutation UpdateCasino($input: UpdateHubCasinoByIdInput!) {
|
|
231
|
+
updateHubCasinoById(input: $input) {
|
|
232
|
+
hubCasino {
|
|
233
|
+
id
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
`),Hoe=za.object({name:za.string().min(1,"Name is required"),baseUrl:rP(),graphqlUrl:iP()}),Koe=fn(({show:e,onHide:t,casino:r})=>{const i=kn(),n={name:r.name,baseUrl:r.baseUrl,graphqlUrl:r.graphqlUrl},a=cv({initialValues:n,validate:l=>Yh(Hoe)(l),onSubmit:async(l,{setSubmitting:d,setStatus:f})=>{f(null),ls(i,{document:Goe,variables:{input:{id:r.id,hubCasinoPatch:{name:l.name,baseUrl:l.baseUrl,graphqlUrl:l.graphqlUrl}}}}).then(m=>{var g;((g=m.updateHubCasinoById)==null?void 0:g.hubCasino)&&(i.refetchCasinos(),t())}).catch(m=>{f(nr(m))}).finally(()=>{d(!1)})}});return b.jsx(vn,{show:e,onHide:t,size:"lg",children:b.jsxs(tt,{onSubmit:a.handleSubmit,children:[b.jsx(vn.Header,{closeButton:!0,children:b.jsx(vn.Title,{children:"Edit Casino"})}),b.jsxs(vn.Body,{children:[a.status&&b.jsx(Sr,{variant:"danger",className:"mb-3",children:a.status}),b.jsxs("fieldset",{disabled:a.isSubmitting,children:[b.jsxs(tt.Group,{children:[b.jsx(tt.Label,{children:"Name (for your own reference)"}),b.jsx(tt.Control,{type:"text",name:"name",placeholder:"Ex: moneypot.com",value:a.values.name,onChange:a.handleChange,onBlur:a.handleBlur,isInvalid:a.touched.name&&!!a.errors.name,isValid:a.touched.name&&!a.errors.name}),b.jsx(tt.Control.Feedback,{type:"invalid",children:a.errors.name})]}),b.jsxs(tt.Group,{className:"mt-2",children:[b.jsx(tt.Label,{children:"Website base URL"}),b.jsx(tt.Control,{type:"text",name:"baseUrl",placeholder:"Ex: https://moneypot.com",value:a.values.baseUrl,onChange:a.handleChange,onBlur:a.handleBlur,isInvalid:a.touched.baseUrl&&!!a.errors.baseUrl}),b.jsx(tt.Control.Feedback,{type:"invalid",children:a.errors.baseUrl})]}),b.jsxs(tt.Group,{className:"mt-2",children:[b.jsx(tt.Label,{children:"GraphQL URL"}),b.jsx(tt.Control,{type:"text",name:"graphqlUrl",placeholder:"Ex: https://api.moneypot.com/graphql",value:a.values.graphqlUrl,onChange:a.handleChange,onBlur:a.handleBlur,isInvalid:a.touched.graphqlUrl&&!!a.errors.graphqlUrl}),b.jsx(tt.Control.Feedback,{type:"invalid",children:a.errors.graphqlUrl})]})]})]}),b.jsx(vn.Footer,{children:b.jsx(Sn,{type:"submit",disabled:a.isSubmitting,children:"Save casino"})})]})})}),Joe=fn(()=>{const e=Va(),[t,r]=k.useState(!1);return b.jsxs("div",{children:[b.jsx(Koe,{show:t,onHide:()=>r(!1),casino:e}),b.jsxs("h2",{children:["Casino: ",e.name,b.jsx(Sn,{className:"ms-2",onClick:()=>r(!0),children:"Edit"})]}),b.jsxs("ul",{children:[b.jsxs("li",{children:[b.jsx("strong",{children:"Name:"})," ",e.name]}),b.jsxs("li",{children:[b.jsx("strong",{children:"Added:"})," ",b.jsx(Ra,{date:Hu(e.id),variant:"long"})]}),b.jsxs("li",{children:[b.jsx("strong",{children:"Base URL:"})," ",b.jsx("a",{href:e.baseUrl,target:"_blank",rel:"noreferrer",children:e.baseUrl})]}),b.jsxs("li",{children:[b.jsx("strong",{children:"GraphQL URL:"})," ",b.jsx("a",{href:e.graphqlUrl,target:"_blank",rel:"noreferrer",children:e.graphqlUrl})]})]})]})}),Yoe=Qr(`
|
|
238
|
+
query GetCasinoExperiences($casinoId: UUID!) {
|
|
239
|
+
hubCasinoById(id: $casinoId) {
|
|
240
|
+
id
|
|
241
|
+
hubExperiencesByCasinoId {
|
|
242
|
+
nodes {
|
|
243
|
+
id
|
|
244
|
+
name
|
|
245
|
+
mpExperienceId
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
`),Xoe=fn(()=>{var l,d;const e=kn(),t=Va();console.log("CasinoExperiencesList. casino is",t.id);const{data:r,loading:i,error:n}=Ro(e,{document:Yoe,variables:{casinoId:t.id}});if(i)return b.jsx("div",{children:"Loading..."});if(n)return b.jsx(Sr,{variant:"danger",children:nr(n)});if(!r)return b.jsx(wi,{});const a=((d=(l=r.hubCasinoById)==null?void 0:l.hubExperiencesByCasinoId)==null?void 0:d.nodes.flatMap(f=>f||[]))||[];return b.jsxs("div",{children:[b.jsxs("p",{children:["This is the ",b.jsx("code",{children:"hub.experience"})," table for the current casino."]}),b.jsx("p",{children:"When you create a new experience on the Moneypot casino's website, it isn't automatically added here until the hub server sees an incoming experience deposit from a user."}),b.jsxs("p",{children:["Or you can look for missing experiences on the Moneypot API right now:"," ",b.jsx(Sn,{size:"sm",disabled:!0,children:"Force sync (TODO)"})]}),b.jsxs("p",{children:["Or you can add a new experience to the Moneypot API from here:"," ",b.jsx(Sn,{size:"sm",disabled:!0,children:"Add experience (TODO)"})]}),b.jsxs(Yi,{striped:!0,bordered:!0,hover:!0,children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("th",{children:"Added"}),b.jsx("th",{children:"Name"}),b.jsx("th",{children:"ID"}),b.jsx("th",{children:"MP Experience ID"})]})}),b.jsx("tbody",{children:a.map(f=>b.jsxs("tr",{children:[b.jsx("td",{children:b.jsx(Ra,{date:Hu(f.id),variant:"long"})}),b.jsx("td",{children:f.name}),b.jsxs("td",{children:[b.jsx("code",{className:"user-select-all",children:f.id})," ",b.jsx(Ao,{text:f.id})]}),b.jsxs("td",{children:[b.jsx("code",{className:"user-select-all",children:f.mpExperienceId})," ",b.jsx(Ao,{text:f.mpExperienceId})]})]},f.id))})]})]})}),Qoe=Qr(`
|
|
251
|
+
mutation UpdateBankroll($input: UpdateHubBankrollByIdInput!) {
|
|
252
|
+
updateHubBankrollById(input: $input) {
|
|
253
|
+
hubBankroll {
|
|
254
|
+
id
|
|
255
|
+
amount
|
|
256
|
+
currencyKey
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
`),Woe=za.object({displayAmount:za.int().min(0)}),eue=fn(({show:e,onHide:t,bankroll:r,onSuccess:i})=>b.jsxs(vn,{show:e,onHide:t,size:"lg",children:[b.jsx(vn.Header,{closeButton:!0,children:b.jsxs(vn.Title,{children:["Edit Bankroll ",r&&`- ${r.currencyKey}`]})}),b.jsx(tue,{onHide:t,bankroll:r,onSuccess:i})]})),tue=fn(({onHide:e,bankroll:t,onSuccess:r})=>{const i=kn(),[n,{loading:a,error:l}]=OT(i,{document:Qoe}),d={displayAmount:Math.floor(t.amount/t.hubCurrencyByCurrencyKeyAndCasinoId.displayUnitScale)},m=cv({initialValues:d,validate:p=>Yh(Woe)(p),onSubmit:async(p,{setSubmitting:g,setStatus:y})=>{y(null);const S=Math.floor(p.displayAmount*t.hubCurrencyByCurrencyKeyAndCasinoId.displayUnitScale);n({variables:{input:{id:t.id,hubBankrollPatch:{amount:S}}}}).then(w=>{var x;((x=w.updateHubBankrollById)==null?void 0:x.hubBankroll)?(i.refetchCasinos(),r(),e()):y("Failed to update bankroll")}).catch(w=>{y(nr(w))}).finally(()=>{g(!1)})}});return b.jsxs(tt,{onSubmit:m.handleSubmit,children:[b.jsxs(vn.Body,{children:[(m.status||l)&&b.jsx(Sr,{variant:"danger",className:"mb-3",children:m.status||(l==null?void 0:l.message)}),b.jsx("fieldset",{disabled:m.isSubmitting||a,children:b.jsxs(tt.Group,{children:[b.jsxs(tt.Label,{children:["Amount (",t.hubCurrencyByCurrencyKeyAndCasinoId.displayUnitName,")"]}),b.jsx(tt.Control,{type:"number",name:"displayAmount",step:1,value:m.values.displayAmount,onChange:m.handleChange,onBlur:m.handleBlur,isInvalid:m.touched.displayAmount&&!!m.errors.displayAmount,isValid:m.touched.displayAmount&&!m.errors.displayAmount}),b.jsx(tt.Control.Feedback,{type:"invalid",children:m.errors.displayAmount})]})})]}),b.jsx(vn.Footer,{children:b.jsx(Sn,{type:"submit",disabled:m.isSubmitting||a,children:a?"Saving...":"Save bankroll"})})]})}),nue=Qr(`
|
|
261
|
+
query GetCasinoBankrolls($casinoId: UUID!) {
|
|
262
|
+
hubCasinoById(id: $casinoId) {
|
|
263
|
+
id
|
|
264
|
+
hubBankrollsByCasinoId {
|
|
265
|
+
nodes {
|
|
266
|
+
id
|
|
267
|
+
amount
|
|
268
|
+
expectedValue
|
|
269
|
+
bets
|
|
270
|
+
hubCurrencyByCurrencyKeyAndCasinoId {
|
|
271
|
+
key
|
|
272
|
+
displayUnitScale
|
|
273
|
+
displayUnitName
|
|
274
|
+
casinoId
|
|
275
|
+
}
|
|
276
|
+
currencyKey
|
|
277
|
+
wagered
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
`),rue=fn(()=>{var g,y;const e=kn(),t=Va(),[r,i]=k.useState(null),{data:n,loading:a,error:l,reload:d}=Ro(e,{skip:!t,document:nue,variables:{casinoId:t.id}});if(!t)return b.jsx(wi,{});if(a)return b.jsx("div",{children:"Loading..."});if(l)return b.jsx(Sr,{variant:"danger",children:nr(l)});if(!n)return b.jsx(wi,{});const f=((y=(g=n.hubCasinoById)==null?void 0:g.hubBankrollsByCasinoId)==null?void 0:y.nodes.flatMap(S=>S||[]))||[],m=t.hubCurrenciesByCasinoId.nodes.filter(S=>!f.some(w=>w.currencyKey===S.key)).map(S=>S.key);console.log("bankrolls",f),console.log("missingBankrollsKeys",m);const p=()=>{d()};return b.jsxs("div",{children:[r&&b.jsx(eue,{show:!!r,onHide:()=>i(null),bankroll:r,onSuccess:p}),b.jsxs(Yi,{striped:!0,bordered:!0,hover:!0,children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("th",{children:"Currency"}),b.jsx("th",{children:"Amount"}),b.jsx("th",{children:"Bets"}),b.jsx("th",{children:"Expected Value"}),b.jsx("th",{children:"Wagered"})]})}),b.jsxs("tbody",{children:[f.map(S=>b.jsxs("tr",{children:[b.jsx("td",{children:S.currencyKey}),b.jsxs("td",{children:[E_(S.amount,S.hubCurrencyByCurrencyKeyAndCasinoId)," ",b.jsx(Sn,{size:"sm",variant:"outline-secondary",onClick:()=>{i({...S,hubCurrencyByCurrencyKeyAndCasinoId:S.hubCurrencyByCurrencyKeyAndCasinoId})},children:"Edit"})]}),b.jsx("td",{children:S.bets}),b.jsx("td",{children:S.expectedValue}),b.jsx("td",{children:S.wagered})]},S.id)),m.map(S=>b.jsxs("tr",{children:[b.jsx("td",{children:S}),b.jsxs("td",{colSpan:4,children:["No bankroll",b.jsx(Sn,{size:"sm",variant:"outline-primary",className:"ms-2",onClick:()=>{alert("TODO")},children:"Create bankroll"})]})]},S))]})]})]})}),iue=Qr(`
|
|
283
|
+
query GetCasinoCurrencies($casinoId: UUID!) {
|
|
284
|
+
hubCasinoById(id: $casinoId) {
|
|
285
|
+
id
|
|
286
|
+
hubCurrenciesByCasinoId {
|
|
287
|
+
nodes {
|
|
288
|
+
key
|
|
289
|
+
displayUnitName
|
|
290
|
+
displayUnitScale
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
`),aue=fn(()=>{var l,d;const e=kn(),t=Va(),{data:r,loading:i,error:n}=Ro(e,{document:iue,variables:{casinoId:t.id}});if(i)return b.jsx("div",{children:"Loading..."});if(n)return b.jsx(Sr,{variant:"danger",children:nr(n)});if(!r)return b.jsx(wi,{});const a=((d=(l=r.hubCasinoById)==null?void 0:l.hubCurrenciesByCasinoId)==null?void 0:d.nodes.flatMap(f=>f||[]))||[];return b.jsx("div",{children:b.jsxs(Yi,{striped:!0,bordered:!0,hover:!0,children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("th",{children:"Key"}),b.jsx("th",{children:"Display unit name"}),b.jsx("th",{children:"Display unit scale"})]})}),b.jsx("tbody",{children:a.map(f=>b.jsxs("tr",{children:[b.jsx("td",{children:f.key}),b.jsx("td",{children:f.displayUnitName}),b.jsx("td",{children:f.displayUnitScale})]},f.key))})]})})}),oue=Qr(`
|
|
296
|
+
query GetCasinoDeposits($casinoId: UUID!, $after: Cursor) {
|
|
297
|
+
hubCasinoById(id: $casinoId) {
|
|
298
|
+
hubDepositsByCasinoId(after: $after, first: 10, orderBy: ID_DESC) {
|
|
299
|
+
pageInfo {
|
|
300
|
+
endCursor
|
|
301
|
+
hasNextPage
|
|
302
|
+
}
|
|
303
|
+
edges {
|
|
304
|
+
cursor
|
|
305
|
+
node {
|
|
306
|
+
id
|
|
307
|
+
mpTransferId
|
|
308
|
+
amount
|
|
309
|
+
userId
|
|
310
|
+
currencyKey
|
|
311
|
+
hubUserByUserId {
|
|
312
|
+
id
|
|
313
|
+
uname
|
|
314
|
+
}
|
|
315
|
+
hubCurrencyByCurrencyKeyAndCasinoId {
|
|
316
|
+
displayUnitName
|
|
317
|
+
displayUnitScale
|
|
318
|
+
key
|
|
319
|
+
}
|
|
320
|
+
hubExperienceByExperienceId {
|
|
321
|
+
id
|
|
322
|
+
name
|
|
323
|
+
mpExperienceId
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
`),uue=fn(()=>{var l,d;const e=kn(),t=Va(),{data:r,loading:i,error:n}=Ro(e,{document:oue,variables:{casinoId:t.id}});if(i)return b.jsx("div",{children:"Loading..."});if(n)return b.jsx(Sr,{variant:"danger",children:nr(n)});if(!r)return b.jsx(wi,{});const a=((d=(l=r.hubCasinoById)==null?void 0:l.hubDepositsByCasinoId)==null?void 0:d.edges.flatMap(f=>(f==null?void 0:f.node)||[]))||[];return b.jsx("div",{children:b.jsxs(Yi,{striped:!0,bordered:!0,hover:!0,children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("th",{children:"When"}),b.jsx("th",{children:"ID"}),b.jsx("th",{children:"MP Transfer ID"}),b.jsx("th",{children:"User"}),b.jsx("th",{children:"Currency"}),b.jsx("th",{children:"Experience"})]})}),b.jsx("tbody",{children:a.map(f=>b.jsxs("tr",{children:[b.jsx("td",{children:b.jsx(Ra,{date:Hu(f.id),variant:"long"})}),b.jsxs("td",{children:[b.jsx("code",{className:"user-select-all",children:f.id})," ",b.jsx(Ao,{text:f.id})]}),b.jsxs("td",{children:[b.jsx("code",{className:"user-select-all",children:f.mpTransferId})," ",b.jsx(Ao,{text:f.mpTransferId})]}),b.jsx("td",{children:b.jsx($r,{to:`/casinos/${t.id}/users/${f.userId}`,children:f.hubUserByUserId.uname})}),b.jsx("td",{children:E_(f.amount,f.hubCurrencyByCurrencyKeyAndCasinoId)}),b.jsx("td",{children:b.jsx($r,{to:`/casinos/${t.id}/experiences/${f.hubExperienceByExperienceId.id}`,children:f.hubExperienceByExperienceId.name})})]},f.id))})]})})}),lue=Qr(`
|
|
331
|
+
query GetCasinoWithdrawals($casinoId: UUID!, $after: Cursor) {
|
|
332
|
+
hubCasinoById(id: $casinoId) {
|
|
333
|
+
hubWithdrawalsByCasinoId(after: $after, first: 10, orderBy: ID_DESC) {
|
|
334
|
+
pageInfo {
|
|
335
|
+
endCursor
|
|
336
|
+
hasNextPage
|
|
337
|
+
}
|
|
338
|
+
edges {
|
|
339
|
+
cursor
|
|
340
|
+
node {
|
|
341
|
+
id
|
|
342
|
+
mpTransferId
|
|
343
|
+
status
|
|
344
|
+
statusAt
|
|
345
|
+
amount
|
|
346
|
+
hubUserByUserId {
|
|
347
|
+
id
|
|
348
|
+
uname
|
|
349
|
+
}
|
|
350
|
+
hubExperienceByExperienceId {
|
|
351
|
+
id
|
|
352
|
+
name
|
|
353
|
+
}
|
|
354
|
+
hubCurrencyByCurrencyKeyAndCasinoId {
|
|
355
|
+
key
|
|
356
|
+
displayUnitScale
|
|
357
|
+
displayUnitName
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
`),sue=fn(()=>{var l,d;const e=kn(),{casinoId:t}=oI();console.log("casinoId",t);const{data:r,loading:i,error:n}=Ro(e,{document:lue,variables:{casinoId:t}});if(i)return b.jsx("div",{children:"Loading..."});if(n)return b.jsx(Sr,{variant:"danger",children:nr(n)});if(!r)return b.jsx(wi,{});const a=((d=(l=r.hubCasinoById)==null?void 0:l.hubWithdrawalsByCasinoId)==null?void 0:d.edges.flatMap(f=>(f==null?void 0:f.node)||[]))||[];return b.jsx("div",{children:b.jsxs(Yi,{striped:!0,bordered:!0,hover:!0,children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("th",{children:"When"}),b.jsx("th",{children:"ID"}),b.jsx("th",{children:"MP Transfer ID"}),b.jsx("th",{children:"User"}),b.jsx("th",{children:"Amount"}),b.jsx("th",{children:"Experience"}),b.jsx("th",{children:"Status"})]})}),b.jsx("tbody",{children:a.map(f=>b.jsxs("tr",{children:[b.jsx("td",{children:b.jsx(Ra,{date:Hu(f.id),variant:"long"})}),b.jsxs("td",{children:[b.jsx("code",{className:"user-select-all",children:f.id})," ",b.jsx(Ao,{text:f.id})]}),b.jsxs("td",{children:[b.jsx("code",{className:"user-select-all",children:f.mpTransferId})," ",b.jsx(Ao,{text:f.mpTransferId})]}),b.jsx("td",{children:b.jsx($r,{to:`/casinos/${t}/users/${f.hubUserByUserId.id}`,children:f.hubUserByUserId.uname})}),b.jsx("td",{children:E_(f.amount,f.hubCurrencyByCurrencyKeyAndCasinoId)}),b.jsx("td",{children:b.jsx($r,{to:`/casinos/${t}/experiences/${f.hubExperienceByExperienceId.id}`,children:f.hubExperienceByExperienceId.name})}),b.jsxs("td",{children:[f.status," ",b.jsx(Ra,{date:f.statusAt,variant:"long"})]})]},f.id))})]})})}),cue=()=>{const e=Uh();return k.useEffect(()=>{e("/casinos")},[e]),null},due=Qr(`
|
|
365
|
+
query GetCasinoJwks($casinoId: UUID!, $after: Cursor, $first: Int!) {
|
|
366
|
+
hubCasinoById(id: $casinoId) {
|
|
367
|
+
hubJwkSetSnapshotsByCasinoId(
|
|
368
|
+
orderBy: ID_DESC
|
|
369
|
+
after: $after
|
|
370
|
+
first: $first
|
|
371
|
+
) {
|
|
372
|
+
pageInfo {
|
|
373
|
+
endCursor
|
|
374
|
+
hasNextPage
|
|
375
|
+
}
|
|
376
|
+
edges {
|
|
377
|
+
cursor
|
|
378
|
+
node {
|
|
379
|
+
jwks
|
|
380
|
+
id
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
hubJwkSetByCasinoId {
|
|
385
|
+
updatedAt
|
|
386
|
+
jwks
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
`),fue=fn(()=>{var y,S,w,j,x;const e=kn(),t=Va(),[r,i]=k.useState(null),{data:n,loading:a,error:l}=Ro(e,{skip:!t,document:due,variables:{casinoId:t.id,first:1,after:r}});if(!t)return b.jsx(wi,{});if(a)return b.jsx("div",{children:"Loading..."});if(l)return b.jsx(Sr,{variant:"danger",children:nr(l)});if(!n)return b.jsx(wi,{});const d=()=>{i(null)},f=()=>{var I,N;const $=(N=(I=n.hubCasinoById)==null?void 0:I.hubJwkSetSnapshotsByCasinoId)==null?void 0:N.pageInfo.endCursor;$&&i($)},m=(S=(y=n.hubCasinoById)==null?void 0:y.hubJwkSetSnapshotsByCasinoId)==null?void 0:S.pageInfo.hasNextPage,p=(w=n.hubCasinoById)==null?void 0:w.hubJwkSetByCasinoId,g=((x=(j=n.hubCasinoById)==null?void 0:j.hubJwkSetSnapshotsByCasinoId)==null?void 0:x.edges.flatMap($=>($==null?void 0:$.node)||[]))||[];return b.jsxs("div",{children:[b.jsx("h2",{children:"Current public keys"}),b.jsx(r$,{className:"justify-content-center",children:b.jsx(tv,{lg:6,children:b.jsxs(Yl,{children:[b.jsxs(Yl.Header,{children:["Last updated:"," ",p?b.jsx(Ra,{date:p==null?void 0:p.updatedAt,variant:"long"}):"--"]}),b.jsx(Yl.Body,{children:p?b.jsx("pre",{children:JSON.stringify(p.jwks,null,2)}):b.jsx("p",{className:"text-danger text-center",children:"No public keys have been fetched from casino."})})]})})}),b.jsx("h2",{className:"mt-4",children:"History"}),b.jsxs("div",{className:"mb-3",children:[b.jsx(Sn,{variant:"outline-secondary",onClick:d,disabled:a,children:"First page"}),b.jsx(Sn,{variant:"outline-secondary",onClick:f,disabled:a||!m,className:"ms-2",children:"Next page"})]}),b.jsxs(Yi,{striped:!0,bordered:!0,hover:!0,children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("th",{children:"Fetched"}),b.jsx("th",{children:"JWKS"})]})}),b.jsx("tbody",{children:g.map($=>b.jsxs("tr",{children:[b.jsx("td",{children:b.jsx(Ra,{date:Hu($.id),variant:"long"})}),b.jsx("td",{children:b.jsx("pre",{children:JSON.stringify($.jwks,null,2)})})]},$.id))})]})]})}),mue=Qr(`
|
|
391
|
+
query GetCasinoChatMessages($casinoId: UUID!) {
|
|
392
|
+
hubCasinoById(id: $casinoId) {
|
|
393
|
+
id
|
|
394
|
+
hubChatMessagesByCasinoId(last: 100, orderBy: ID_ASC) {
|
|
395
|
+
edges {
|
|
396
|
+
node {
|
|
397
|
+
id
|
|
398
|
+
hubUserByUserId {
|
|
399
|
+
id
|
|
400
|
+
uname
|
|
401
|
+
}
|
|
402
|
+
hubExperienceByExperienceId {
|
|
403
|
+
id
|
|
404
|
+
name
|
|
405
|
+
}
|
|
406
|
+
body
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
`),hue=fn(()=>{var l,d;const e=kn(),t=Va(),{data:r,loading:i,error:n}=Ro(e,{document:mue,variables:{casinoId:t.id}});if(i)return b.jsx("div",{children:"Loading..."});if(n)return b.jsx(Sr,{variant:"danger",children:nr(n)});if(!r)return b.jsx(wi,{});const a=((d=(l=r.hubCasinoById)==null?void 0:l.hubChatMessagesByCasinoId)==null?void 0:d.edges.flatMap(f=>(f==null?void 0:f.node)||[]))||[];return b.jsxs("div",{children:[b.jsx("h2",{children:"Chat (WIP)"}),b.jsx("p",{children:"Last 100 messages across all experiences in the casino."}),b.jsxs(Yi,{striped:!0,bordered:!0,hover:!0,children:[b.jsx("thead",{children:b.jsxs("tr",{children:[b.jsx("th",{children:"User"}),b.jsx("th",{children:"Experience"}),b.jsx("th",{children:"Body"})]})}),b.jsx("tbody",{children:a.map(f=>{var m,p;return b.jsxs("tr",{children:[b.jsx("td",{children:(m=f.hubUserByUserId)==null?void 0:m.uname}),b.jsx("td",{children:(p=f.hubExperienceByExperienceId)==null?void 0:p.name}),b.jsx("td",{children:f.body})]},f.id)})})]})]})}),vue=$F([{path:"/",element:b.jsx(Xte,{}),errorElement:b.jsx(mj,{}),children:[{path:"*",element:b.jsx(mj,{status:404})},{path:"/",element:b.jsx(cue,{})},{path:"/casinos",element:b.jsx(Zoe,{})},{path:"/casinos/:casinoId",element:b.jsx(Foe,{}),children:[{path:"",element:b.jsx(Joe,{})},{path:"users",element:b.jsx(qoe,{})},{path:"experiences",element:b.jsx(Xoe,{})},{path:"bankrolls",element:b.jsx(rue,{})},{path:"currencies",element:b.jsx(aue,{})},{path:"deposits",element:b.jsx(uue,{})},{path:"withdrawals",element:b.jsx(sue,{})},{path:"chat",element:b.jsx(hue,{})},{path:"jwks",element:b.jsx(fue,{})}]}]}],{basename:"/dashboard"}),pue=new C8,gue=new a5,yue=b.jsx(u5,{client:gue,children:b.jsx(R8,{store:pue,children:b.jsx(AF,{router:vue})})});kB.createRoot(document.getElementById("root")).render(yue)});export default bue();
|