@package-broker/ui 0.7.2 → 0.8.0

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,225 @@
1
+ var ev=e=>{throw TypeError(e)};var Qc=(e,t,n)=>t.has(e)||ev("Cannot "+n);var j=(e,t,n)=>(Qc(e,t,"read from private field"),n?n.call(e):t.get(e)),X=(e,t,n)=>t.has(e)?ev("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),W=(e,t,n,i)=>(Qc(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),le=(e,t,n)=>(Qc(e,t,"access private method"),n);var Fl=(e,t,n,i)=>({set _(r){W(e,t,r,n)},get _(){return j(e,t,i)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();var Ds=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var b0={exports:{}},Su={},k0={exports:{}},ce={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its 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 ol=Symbol.for("react.element"),TI=Symbol.for("react.portal"),RI=Symbol.for("react.fragment"),AI=Symbol.for("react.strict_mode"),DI=Symbol.for("react.profiler"),LI=Symbol.for("react.provider"),UI=Symbol.for("react.context"),FI=Symbol.for("react.forward_ref"),MI=Symbol.for("react.suspense"),ZI=Symbol.for("react.memo"),BI=Symbol.for("react.lazy"),tv=Symbol.iterator;function VI(e){return e===null||typeof e!="object"?null:(e=tv&&e[tv]||e["@@iterator"],typeof e=="function"?e:null)}var w0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_0=Object.assign,$0={};function Do(e,t,n){this.props=e,this.context=t,this.refs=$0,this.updater=n||w0}Do.prototype.isReactComponent={};Do.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Do.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function S0(){}S0.prototype=Do.prototype;function zp(e,t,n){this.props=e,this.context=t,this.refs=$0,this.updater=n||w0}var Pp=zp.prototype=new S0;Pp.constructor=zp;_0(Pp,Do.prototype);Pp.isPureReactComponent=!0;var nv=Array.isArray,j0=Object.prototype.hasOwnProperty,Op={current:null},N0={key:!0,ref:!0,__self:!0,__source:!0};function I0(e,t,n){var i,r={},o=null,a=null;if(t!=null)for(i in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)j0.call(t,i)&&!N0.hasOwnProperty(i)&&(r[i]=t[i]);var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}if(e&&e.defaultProps)for(i in l=e.defaultProps,l)r[i]===void 0&&(r[i]=l[i]);return{$$typeof:ol,type:e,key:o,ref:a,props:r,_owner:Op.current}}function HI(e,t){return{$$typeof:ol,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Tp(e){return typeof e=="object"&&e!==null&&e.$$typeof===ol}function qI(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var rv=/\/+/g;function Xc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?qI(""+e.key):t.toString(36)}function bs(e,t,n,i,r){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case ol:case TI:a=!0}}if(a)return a=e,r=r(a),e=i===""?"."+Xc(a,0):i,nv(r)?(n="",e!=null&&(n=e.replace(rv,"$&/")+"/"),bs(r,t,n,"",function(u){return u})):r!=null&&(Tp(r)&&(r=HI(r,n+(!r.key||a&&a.key===r.key?"":(""+r.key).replace(rv,"$&/")+"/")+e)),t.push(r)),1;if(a=0,i=i===""?".":i+":",nv(e))for(var l=0;l<e.length;l++){o=e[l];var s=i+Xc(o,l);a+=bs(o,t,n,s,r)}else if(s=VI(e),typeof s=="function")for(e=s.call(e),l=0;!(o=e.next()).done;)o=o.value,s=i+Xc(o,l++),a+=bs(o,t,n,s,r);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Ml(e,t,n){if(e==null)return e;var i=[],r=0;return bs(e,i,"","",function(o){return t.call(n,o,r++)}),i}function WI(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var mt={current:null},ks={transition:null},GI={ReactCurrentDispatcher:mt,ReactCurrentBatchConfig:ks,ReactCurrentOwner:Op};function E0(){throw Error("act(...) is not supported in production builds of React.")}ce.Children={map:Ml,forEach:function(e,t,n){Ml(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ml(e,function(){t++}),t},toArray:function(e){return Ml(e,function(t){return t})||[]},only:function(e){if(!Tp(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ce.Component=Do;ce.Fragment=RI;ce.Profiler=DI;ce.PureComponent=zp;ce.StrictMode=AI;ce.Suspense=MI;ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=GI;ce.act=E0;ce.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=_0({},e.props),r=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=Op.current),t.key!==void 0&&(r=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)j0.call(t,s)&&!N0.hasOwnProperty(s)&&(i[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:ol,type:e.type,key:r,ref:o,props:i,_owner:a}};ce.createContext=function(e){return e={$$typeof:UI,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:LI,_context:e},e.Consumer=e};ce.createElement=I0;ce.createFactory=function(e){var t=I0.bind(null,e);return t.type=e,t};ce.createRef=function(){return{current:null}};ce.forwardRef=function(e){return{$$typeof:FI,render:e}};ce.isValidElement=Tp;ce.lazy=function(e){return{$$typeof:BI,_payload:{_status:-1,_result:e},_init:WI}};ce.memo=function(e,t){return{$$typeof:ZI,type:e,compare:t===void 0?null:t}};ce.startTransition=function(e){var t=ks.transition;ks.transition={};try{e()}finally{ks.transition=t}};ce.unstable_act=E0;ce.useCallback=function(e,t){return mt.current.useCallback(e,t)};ce.useContext=function(e){return mt.current.useContext(e)};ce.useDebugValue=function(){};ce.useDeferredValue=function(e){return mt.current.useDeferredValue(e)};ce.useEffect=function(e,t){return mt.current.useEffect(e,t)};ce.useId=function(){return mt.current.useId()};ce.useImperativeHandle=function(e,t,n){return mt.current.useImperativeHandle(e,t,n)};ce.useInsertionEffect=function(e,t){return mt.current.useInsertionEffect(e,t)};ce.useLayoutEffect=function(e,t){return mt.current.useLayoutEffect(e,t)};ce.useMemo=function(e,t){return mt.current.useMemo(e,t)};ce.useReducer=function(e,t,n){return mt.current.useReducer(e,t,n)};ce.useRef=function(e){return mt.current.useRef(e)};ce.useState=function(e){return mt.current.useState(e)};ce.useSyncExternalStore=function(e,t,n){return mt.current.useSyncExternalStore(e,t,n)};ce.useTransition=function(){return mt.current.useTransition()};ce.version="18.3.1";k0.exports=ce;var S=k0.exports;const JI=$u(S);/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its 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 KI=S,QI=Symbol.for("react.element"),XI=Symbol.for("react.fragment"),YI=Object.prototype.hasOwnProperty,eE=KI.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,tE={key:!0,ref:!0,__self:!0,__source:!0};function C0(e,t,n){var i,r={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(i in t)YI.call(t,i)&&!tE.hasOwnProperty(i)&&(r[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps,t)r[i]===void 0&&(r[i]=t[i]);return{$$typeof:QI,type:e,key:o,ref:a,props:r,_owner:eE.current}}Su.Fragment=XI;Su.jsx=C0;Su.jsxs=C0;b0.exports=Su;var f=b0.exports,Qd={},z0={exports:{}},Rt={},P0={exports:{}},O0={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its 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
+ */(function(e){function t(C,D){var b=C.length;C.push(D);e:for(;0<b;){var Q=b-1>>>1,K=C[Q];if(0<r(K,D))C[Q]=D,C[b]=K,b=Q;else break e}}function n(C){return C.length===0?null:C[0]}function i(C){if(C.length===0)return null;var D=C[0],b=C.pop();if(b!==D){C[0]=b;e:for(var Q=0,K=C.length,$=K>>>1;Q<$;){var me=2*(Q+1)-1,ge=C[me],ve=me+1,gn=C[ve];if(0>r(ge,b))ve<K&&0>r(gn,ge)?(C[Q]=gn,C[ve]=b,Q=ve):(C[Q]=ge,C[me]=b,Q=me);else if(ve<K&&0>r(gn,b))C[Q]=gn,C[ve]=b,Q=ve;else break e}}return D}function r(C,D){var b=C.sortIndex-D.sortIndex;return b!==0?b:C.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],d=1,c=null,p=3,m=!1,h=!1,g=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(C){for(var D=n(u);D!==null;){if(D.callback===null)i(u);else if(D.startTime<=C)i(u),D.sortIndex=D.expirationTime,t(s,D);else break;D=n(u)}}function k(C){if(g=!1,x(C),!h)if(n(s)!==null)h=!0,G(I);else{var D=n(u);D!==null&&V(k,D.startTime-C)}}function I(C,D){h=!1,g&&(g=!1,v(A),A=-1),m=!0;var b=p;try{for(x(D),c=n(s);c!==null&&(!(c.expirationTime>D)||C&&!L());){var Q=c.callback;if(typeof Q=="function"){c.callback=null,p=c.priorityLevel;var K=Q(c.expirationTime<=D);D=e.unstable_now(),typeof K=="function"?c.callback=K:c===n(s)&&i(s),x(D)}else i(s);c=n(s)}if(c!==null)var $=!0;else{var me=n(u);me!==null&&V(k,me.startTime-D),$=!1}return $}finally{c=null,p=b,m=!1}}var N=!1,P=null,A=-1,R=5,_=-1;function L(){return!(e.unstable_now()-_<R)}function B(){if(P!==null){var C=e.unstable_now();_=C;var D=!0;try{D=P(!0,C)}finally{D?te():(N=!1,P=null)}}else N=!1}var te;if(typeof y=="function")te=function(){y(B)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,O=U.port2;U.port1.onmessage=B,te=function(){O.postMessage(null)}}else te=function(){w(B,0)};function G(C){P=C,N||(N=!0,te())}function V(C,D){A=w(function(){C(e.unstable_now())},D)}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(C){C.callback=null},e.unstable_continueExecution=function(){h||m||(h=!0,G(I))},e.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<C?Math.floor(1e3/C):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(C){switch(p){case 1:case 2:case 3:var D=3;break;default:D=p}var b=p;p=D;try{return C()}finally{p=b}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(C,D){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var b=p;p=C;try{return D()}finally{p=b}},e.unstable_scheduleCallback=function(C,D,b){var Q=e.unstable_now();switch(typeof b=="object"&&b!==null?(b=b.delay,b=typeof b=="number"&&0<b?Q+b:Q):b=Q,C){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=b+K,C={id:d++,callback:D,priorityLevel:C,startTime:b,expirationTime:K,sortIndex:-1},b>Q?(C.sortIndex=b,t(u,C),n(s)===null&&C===n(u)&&(g?(v(A),A=-1):g=!0,V(k,b-Q))):(C.sortIndex=K,t(s,C),h||m||(h=!0,G(I))),C},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(C){var D=p;return function(){var b=p;p=D;try{return C.apply(this,arguments)}finally{p=b}}}})(O0);P0.exports=O0;var nE=P0.exports;/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its 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 rE=S,Tt=nE;function F(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var T0=new Set,Ia={};function Ii(e,t){xo(e,t),xo(e+"Capture",t)}function xo(e,t){for(Ia[e]=t,e=0;e<t.length;e++)T0.add(t[e])}var Jn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xd=Object.prototype.hasOwnProperty,iE=/^[: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]*$/,iv={},ov={};function oE(e){return Xd.call(ov,e)?!0:Xd.call(iv,e)?!1:iE.test(e)?ov[e]=!0:(iv[e]=!0,!1)}function aE(e,t,n,i){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function lE(e,t,n,i){if(t===null||typeof t>"u"||aE(e,t,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ht(e,t,n,i,r,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xe[e]=new ht(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xe[t]=new ht(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xe[e]=new ht(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xe[e]=new ht(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Xe[e]=new ht(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xe[e]=new ht(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xe[e]=new ht(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xe[e]=new ht(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xe[e]=new ht(e,5,!1,e.toLowerCase(),null,!1,!1)});var Rp=/[\-:]([a-z])/g;function Ap(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Rp,Ap);Xe[t]=new ht(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Rp,Ap);Xe[t]=new ht(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Rp,Ap);Xe[t]=new ht(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xe[e]=new ht(e,1,!1,e.toLowerCase(),null,!1,!1)});Xe.xlinkHref=new ht("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xe[e]=new ht(e,1,!1,e.toLowerCase(),null,!0,!0)});function Dp(e,t,n,i){var r=Xe.hasOwnProperty(t)?Xe[t]:null;(r!==null?r.type!==0:i||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(lE(t,n,r,i)&&(n=null),i||r===null?oE(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=n===null?r.type===3?!1:"":n:(t=r.attributeName,i=r.attributeNamespace,n===null?e.removeAttribute(t):(r=r.type,n=r===3||r===4&&n===!0?"":""+n,i?e.setAttributeNS(i,t,n):e.setAttribute(t,n))))}var nr=rE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Zl=Symbol.for("react.element"),Fi=Symbol.for("react.portal"),Mi=Symbol.for("react.fragment"),Lp=Symbol.for("react.strict_mode"),Yd=Symbol.for("react.profiler"),R0=Symbol.for("react.provider"),A0=Symbol.for("react.context"),Up=Symbol.for("react.forward_ref"),ef=Symbol.for("react.suspense"),tf=Symbol.for("react.suspense_list"),Fp=Symbol.for("react.memo"),pr=Symbol.for("react.lazy"),D0=Symbol.for("react.offscreen"),av=Symbol.iterator;function Ko(e){return e===null||typeof e!="object"?null:(e=av&&e[av]||e["@@iterator"],typeof e=="function"?e:null)}var Re=Object.assign,Yc;function ua(e){if(Yc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Yc=t&&t[1]||""}return`
34
+ `+Yc+e}var ed=!1;function td(e,t){if(!e||ed)return"";ed=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var i=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){i=u}e.call(t.prototype)}else{try{throw Error()}catch(u){i=u}e()}}catch(u){if(u&&i&&typeof u.stack=="string"){for(var r=u.stack.split(`
35
+ `),o=i.stack.split(`
36
+ `),a=r.length-1,l=o.length-1;1<=a&&0<=l&&r[a]!==o[l];)l--;for(;1<=a&&0<=l;a--,l--)if(r[a]!==o[l]){if(a!==1||l!==1)do if(a--,l--,0>l||r[a]!==o[l]){var s=`
37
+ `+r[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{ed=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ua(e):""}function sE(e){switch(e.tag){case 5:return ua(e.type);case 16:return ua("Lazy");case 13:return ua("Suspense");case 19:return ua("SuspenseList");case 0:case 2:case 15:return e=td(e.type,!1),e;case 11:return e=td(e.type.render,!1),e;case 1:return e=td(e.type,!0),e;default:return""}}function nf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Mi:return"Fragment";case Fi:return"Portal";case Yd:return"Profiler";case Lp:return"StrictMode";case ef:return"Suspense";case tf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case A0:return(e.displayName||"Context")+".Consumer";case R0:return(e._context.displayName||"Context")+".Provider";case Up:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fp:return t=e.displayName||null,t!==null?t:nf(e.type)||"Memo";case pr:t=e._payload,e=e._init;try{return nf(e(t))}catch{}}return null}function uE(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return nf(t);case 8:return t===Lp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Lr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function L0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cE(e){var t=L0(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(a){i=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(a){i=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bl(e){e._valueTracker||(e._valueTracker=cE(e))}function U0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=L0(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Ls(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function rf(e,t){var n=t.checked;return Re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function lv(e,t){var n=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;n=Lr(t.value!=null?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function F0(e,t){t=t.checked,t!=null&&Dp(e,"checked",t,!1)}function of(e,t){F0(e,t);var n=Lr(t.value),i=t.type;if(n!=null)i==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?af(e,t.type,n):t.hasOwnProperty("defaultValue")&&af(e,t.type,Lr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function sv(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function af(e,t,n){(t!=="number"||Ls(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ca=Array.isArray;function Xi(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&i&&(e[n].defaultSelected=!0)}else{for(n=""+Lr(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,i&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function lf(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(F(91));return Re({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function uv(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(F(92));if(ca(n)){if(1<n.length)throw Error(F(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Lr(n)}}function M0(e,t){var n=Lr(t.value),i=Lr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),i!=null&&(e.defaultValue=""+i)}function cv(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Z0(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function sf(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Z0(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Vl,B0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,i,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,i,r)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Vl=Vl||document.createElement("div"),Vl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Vl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ea(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ga={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},dE=["Webkit","ms","Moz","O"];Object.keys(ga).forEach(function(e){dE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ga[t]=ga[e]})});function V0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ga.hasOwnProperty(e)&&ga[e]?(""+t).trim():t+"px"}function H0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var i=n.indexOf("--")===0,r=V0(n,t[n],i);n==="float"&&(n="cssFloat"),i?e.setProperty(n,r):e[n]=r}}var fE=Re({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function uf(e,t){if(t){if(fE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function cf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var df=null;function Mp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ff=null,Yi=null,eo=null;function dv(e){if(e=sl(e)){if(typeof ff!="function")throw Error(F(280));var t=e.stateNode;t&&(t=Cu(t),ff(e.stateNode,e.type,t))}}function q0(e){Yi?eo?eo.push(e):eo=[e]:Yi=e}function W0(){if(Yi){var e=Yi,t=eo;if(eo=Yi=null,dv(e),t)for(e=0;e<t.length;e++)dv(t[e])}}function G0(e,t){return e(t)}function J0(){}var nd=!1;function K0(e,t,n){if(nd)return e(t,n);nd=!0;try{return G0(e,t,n)}finally{nd=!1,(Yi!==null||eo!==null)&&(J0(),W0())}}function Ca(e,t){var n=e.stateNode;if(n===null)return null;var i=Cu(n);if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(F(231,t,typeof n));return n}var pf=!1;if(Jn)try{var Qo={};Object.defineProperty(Qo,"passive",{get:function(){pf=!0}}),window.addEventListener("test",Qo,Qo),window.removeEventListener("test",Qo,Qo)}catch{pf=!1}function pE(e,t,n,i,r,o,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var va=!1,Us=null,Fs=!1,mf=null,mE={onError:function(e){va=!0,Us=e}};function hE(e,t,n,i,r,o,a,l,s){va=!1,Us=null,pE.apply(mE,arguments)}function gE(e,t,n,i,r,o,a,l,s){if(hE.apply(this,arguments),va){if(va){var u=Us;va=!1,Us=null}else throw Error(F(198));Fs||(Fs=!0,mf=u)}}function Ei(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Q0(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function fv(e){if(Ei(e)!==e)throw Error(F(188))}function vE(e){var t=e.alternate;if(!t){if(t=Ei(e),t===null)throw Error(F(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(r===null)break;var o=r.alternate;if(o===null){if(i=r.return,i!==null){n=i;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return fv(r),e;if(o===i)return fv(r),t;o=o.sibling}throw Error(F(188))}if(n.return!==i.return)n=r,i=o;else{for(var a=!1,l=r.child;l;){if(l===n){a=!0,n=r,i=o;break}if(l===i){a=!0,i=r,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,i=r;break}if(l===i){a=!0,i=o,n=r;break}l=l.sibling}if(!a)throw Error(F(189))}}if(n.alternate!==i)throw Error(F(190))}if(n.tag!==3)throw Error(F(188));return n.stateNode.current===n?e:t}function X0(e){return e=vE(e),e!==null?Y0(e):null}function Y0(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Y0(e);if(t!==null)return t;e=e.sibling}return null}var eb=Tt.unstable_scheduleCallback,pv=Tt.unstable_cancelCallback,yE=Tt.unstable_shouldYield,xE=Tt.unstable_requestPaint,Le=Tt.unstable_now,bE=Tt.unstable_getCurrentPriorityLevel,Zp=Tt.unstable_ImmediatePriority,tb=Tt.unstable_UserBlockingPriority,Ms=Tt.unstable_NormalPriority,kE=Tt.unstable_LowPriority,nb=Tt.unstable_IdlePriority,ju=null,Nn=null;function wE(e){if(Nn&&typeof Nn.onCommitFiberRoot=="function")try{Nn.onCommitFiberRoot(ju,e,void 0,(e.current.flags&128)===128)}catch{}}var sn=Math.clz32?Math.clz32:SE,_E=Math.log,$E=Math.LN2;function SE(e){return e>>>=0,e===0?32:31-(_E(e)/$E|0)|0}var Hl=64,ql=4194304;function da(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Zs(e,t){var n=e.pendingLanes;if(n===0)return 0;var i=0,r=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~r;l!==0?i=da(l):(o&=a,o!==0&&(i=da(o)))}else a=n&~r,a!==0?i=da(a):o!==0&&(i=da(o));if(i===0)return 0;if(t!==0&&t!==i&&!(t&r)&&(r=i&-i,o=t&-t,r>=o||r===16&&(o&4194240)!==0))return t;if(i&4&&(i|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0<t;)n=31-sn(t),r=1<<n,i|=e[n],t&=~r;return i}function jE(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function NE(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-sn(o),l=1<<a,s=r[a];s===-1?(!(l&n)||l&i)&&(r[a]=jE(l,t)):s<=t&&(e.expiredLanes|=l),o&=~l}}function hf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function rb(){var e=Hl;return Hl<<=1,!(Hl&4194240)&&(Hl=64),e}function rd(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function al(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-sn(t),e[t]=n}function IE(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0<n;){var r=31-sn(n),o=1<<r;t[r]=0,i[r]=-1,e[r]=-1,n&=~o}}function Bp(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-sn(n),r=1<<i;r&t|e[i]&t&&(e[i]|=t),n&=~r}}var xe=0;function ib(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var ob,Vp,ab,lb,sb,gf=!1,Wl=[],Er=null,Cr=null,zr=null,za=new Map,Pa=new Map,gr=[],EE="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 submit".split(" ");function mv(e,t){switch(e){case"focusin":case"focusout":Er=null;break;case"dragenter":case"dragleave":Cr=null;break;case"mouseover":case"mouseout":zr=null;break;case"pointerover":case"pointerout":za.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pa.delete(t.pointerId)}}function Xo(e,t,n,i,r,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:o,targetContainers:[r]},t!==null&&(t=sl(t),t!==null&&Vp(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function CE(e,t,n,i,r){switch(t){case"focusin":return Er=Xo(Er,e,t,n,i,r),!0;case"dragenter":return Cr=Xo(Cr,e,t,n,i,r),!0;case"mouseover":return zr=Xo(zr,e,t,n,i,r),!0;case"pointerover":var o=r.pointerId;return za.set(o,Xo(za.get(o)||null,e,t,n,i,r)),!0;case"gotpointercapture":return o=r.pointerId,Pa.set(o,Xo(Pa.get(o)||null,e,t,n,i,r)),!0}return!1}function ub(e){var t=Xr(e.target);if(t!==null){var n=Ei(t);if(n!==null){if(t=n.tag,t===13){if(t=Q0(n),t!==null){e.blockedOn=t,sb(e.priority,function(){ab(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ws(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=vf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);df=i,n.target.dispatchEvent(i),df=null}else return t=sl(n),t!==null&&Vp(t),e.blockedOn=n,!1;t.shift()}return!0}function hv(e,t,n){ws(e)&&n.delete(t)}function zE(){gf=!1,Er!==null&&ws(Er)&&(Er=null),Cr!==null&&ws(Cr)&&(Cr=null),zr!==null&&ws(zr)&&(zr=null),za.forEach(hv),Pa.forEach(hv)}function Yo(e,t){e.blockedOn===t&&(e.blockedOn=null,gf||(gf=!0,Tt.unstable_scheduleCallback(Tt.unstable_NormalPriority,zE)))}function Oa(e){function t(r){return Yo(r,e)}if(0<Wl.length){Yo(Wl[0],e);for(var n=1;n<Wl.length;n++){var i=Wl[n];i.blockedOn===e&&(i.blockedOn=null)}}for(Er!==null&&Yo(Er,e),Cr!==null&&Yo(Cr,e),zr!==null&&Yo(zr,e),za.forEach(t),Pa.forEach(t),n=0;n<gr.length;n++)i=gr[n],i.blockedOn===e&&(i.blockedOn=null);for(;0<gr.length&&(n=gr[0],n.blockedOn===null);)ub(n),n.blockedOn===null&&gr.shift()}var to=nr.ReactCurrentBatchConfig,Bs=!0;function PE(e,t,n,i){var r=xe,o=to.transition;to.transition=null;try{xe=1,Hp(e,t,n,i)}finally{xe=r,to.transition=o}}function OE(e,t,n,i){var r=xe,o=to.transition;to.transition=null;try{xe=4,Hp(e,t,n,i)}finally{xe=r,to.transition=o}}function Hp(e,t,n,i){if(Bs){var r=vf(e,t,n,i);if(r===null)pd(e,t,i,Vs,n),mv(e,i);else if(CE(r,e,t,n,i))i.stopPropagation();else if(mv(e,i),t&4&&-1<EE.indexOf(e)){for(;r!==null;){var o=sl(r);if(o!==null&&ob(o),o=vf(e,t,n,i),o===null&&pd(e,t,i,Vs,n),o===r)break;r=o}r!==null&&i.stopPropagation()}else pd(e,t,i,null,n)}}var Vs=null;function vf(e,t,n,i){if(Vs=null,e=Mp(i),e=Xr(e),e!==null)if(t=Ei(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Q0(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Vs=e,null}function cb(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(bE()){case Zp:return 1;case tb:return 4;case Ms:case kE:return 16;case nb:return 536870912;default:return 16}default:return 16}}var Nr=null,qp=null,_s=null;function db(){if(_s)return _s;var e,t=qp,n=t.length,i,r="value"in Nr?Nr.value:Nr.textContent,o=r.length;for(e=0;e<n&&t[e]===r[e];e++);var a=n-e;for(i=1;i<=a&&t[n-i]===r[o-i];i++);return _s=r.slice(e,1<i?1-i:void 0)}function $s(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Gl(){return!0}function gv(){return!1}function At(e){function t(n,i,r,o,a){this._reactName=n,this._targetInst=r,this.type=i,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Gl:gv,this.isPropagationStopped=gv,this}return Re(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Gl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Gl)},persist:function(){},isPersistent:Gl}),t}var Lo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wp=At(Lo),ll=Re({},Lo,{view:0,detail:0}),TE=At(ll),id,od,ea,Nu=Re({},ll,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gp,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ea&&(ea&&e.type==="mousemove"?(id=e.screenX-ea.screenX,od=e.screenY-ea.screenY):od=id=0,ea=e),id)},movementY:function(e){return"movementY"in e?e.movementY:od}}),vv=At(Nu),RE=Re({},Nu,{dataTransfer:0}),AE=At(RE),DE=Re({},ll,{relatedTarget:0}),ad=At(DE),LE=Re({},Lo,{animationName:0,elapsedTime:0,pseudoElement:0}),UE=At(LE),FE=Re({},Lo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ME=At(FE),ZE=Re({},Lo,{data:0}),yv=At(ZE),BE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},VE={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"},HE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=HE[e])?!!t[e]:!1}function Gp(){return qE}var WE=Re({},ll,{key:function(e){if(e.key){var t=BE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$s(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?VE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gp,charCode:function(e){return e.type==="keypress"?$s(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$s(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),GE=At(WE),JE=Re({},Nu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xv=At(JE),KE=Re({},ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gp}),QE=At(KE),XE=Re({},Lo,{propertyName:0,elapsedTime:0,pseudoElement:0}),YE=At(XE),e4=Re({},Nu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),t4=At(e4),n4=[9,13,27,32],Jp=Jn&&"CompositionEvent"in window,ya=null;Jn&&"documentMode"in document&&(ya=document.documentMode);var r4=Jn&&"TextEvent"in window&&!ya,fb=Jn&&(!Jp||ya&&8<ya&&11>=ya),bv=" ",kv=!1;function pb(e,t){switch(e){case"keyup":return n4.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zi=!1;function i4(e,t){switch(e){case"compositionend":return mb(t);case"keypress":return t.which!==32?null:(kv=!0,bv);case"textInput":return e=t.data,e===bv&&kv?null:e;default:return null}}function o4(e,t){if(Zi)return e==="compositionend"||!Jp&&pb(e,t)?(e=db(),_s=qp=Nr=null,Zi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return fb&&t.locale!=="ko"?null:t.data;default:return null}}var a4={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 wv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!a4[e.type]:t==="textarea"}function hb(e,t,n,i){q0(i),t=Hs(t,"onChange"),0<t.length&&(n=new Wp("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var xa=null,Ta=null;function l4(e){jb(e,0)}function Iu(e){var t=Hi(e);if(U0(t))return e}function s4(e,t){if(e==="change")return t}var gb=!1;if(Jn){var ld;if(Jn){var sd="oninput"in document;if(!sd){var _v=document.createElement("div");_v.setAttribute("oninput","return;"),sd=typeof _v.oninput=="function"}ld=sd}else ld=!1;gb=ld&&(!document.documentMode||9<document.documentMode)}function $v(){xa&&(xa.detachEvent("onpropertychange",vb),Ta=xa=null)}function vb(e){if(e.propertyName==="value"&&Iu(Ta)){var t=[];hb(t,Ta,e,Mp(e)),K0(l4,t)}}function u4(e,t,n){e==="focusin"?($v(),xa=t,Ta=n,xa.attachEvent("onpropertychange",vb)):e==="focusout"&&$v()}function c4(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Iu(Ta)}function d4(e,t){if(e==="click")return Iu(t)}function f4(e,t){if(e==="input"||e==="change")return Iu(t)}function p4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var dn=typeof Object.is=="function"?Object.is:p4;function Ra(e,t){if(dn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!Xd.call(t,r)||!dn(e[r],t[r]))return!1}return!0}function Sv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jv(e,t){var n=Sv(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Sv(n)}}function yb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xb(){for(var e=window,t=Ls();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ls(e.document)}return t}function Kp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function m4(e){var t=xb(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&yb(n.ownerDocument.documentElement,n)){if(i!==null&&Kp(n)){if(t=i.start,e=i.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,o=Math.min(i.start,r);i=i.end===void 0?o:Math.min(i.end,r),!e.extend&&o>i&&(r=i,i=o,o=r),r=jv(n,o);var a=jv(n,i);r&&a&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),o>i?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var h4=Jn&&"documentMode"in document&&11>=document.documentMode,Bi=null,yf=null,ba=null,xf=!1;function Nv(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xf||Bi==null||Bi!==Ls(i)||(i=Bi,"selectionStart"in i&&Kp(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ba&&Ra(ba,i)||(ba=i,i=Hs(yf,"onSelect"),0<i.length&&(t=new Wp("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=Bi)))}function Jl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Vi={animationend:Jl("Animation","AnimationEnd"),animationiteration:Jl("Animation","AnimationIteration"),animationstart:Jl("Animation","AnimationStart"),transitionend:Jl("Transition","TransitionEnd")},ud={},bb={};Jn&&(bb=document.createElement("div").style,"AnimationEvent"in window||(delete Vi.animationend.animation,delete Vi.animationiteration.animation,delete Vi.animationstart.animation),"TransitionEvent"in window||delete Vi.transitionend.transition);function Eu(e){if(ud[e])return ud[e];if(!Vi[e])return e;var t=Vi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in bb)return ud[e]=t[n];return e}var kb=Eu("animationend"),wb=Eu("animationiteration"),_b=Eu("animationstart"),$b=Eu("transitionend"),Sb=new Map,Iv="abort auxClick 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(" ");function Zr(e,t){Sb.set(e,t),Ii(t,[e])}for(var cd=0;cd<Iv.length;cd++){var dd=Iv[cd],g4=dd.toLowerCase(),v4=dd[0].toUpperCase()+dd.slice(1);Zr(g4,"on"+v4)}Zr(kb,"onAnimationEnd");Zr(wb,"onAnimationIteration");Zr(_b,"onAnimationStart");Zr("dblclick","onDoubleClick");Zr("focusin","onFocus");Zr("focusout","onBlur");Zr($b,"onTransitionEnd");xo("onMouseEnter",["mouseout","mouseover"]);xo("onMouseLeave",["mouseout","mouseover"]);xo("onPointerEnter",["pointerout","pointerover"]);xo("onPointerLeave",["pointerout","pointerover"]);Ii("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ii("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ii("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ii("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ii("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ii("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fa="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(" "),y4=new Set("cancel close invalid load scroll toggle".split(" ").concat(fa));function Ev(e,t,n){var i=e.type||"unknown-event";e.currentTarget=n,gE(i,t,void 0,e),e.currentTarget=null}function jb(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],r=i.event;i=i.listeners;e:{var o=void 0;if(t)for(var a=i.length-1;0<=a;a--){var l=i[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==o&&r.isPropagationStopped())break e;Ev(r,l,u),o=s}else for(a=0;a<i.length;a++){if(l=i[a],s=l.instance,u=l.currentTarget,l=l.listener,s!==o&&r.isPropagationStopped())break e;Ev(r,l,u),o=s}}}if(Fs)throw e=mf,Fs=!1,mf=null,e}function Ne(e,t){var n=t[$f];n===void 0&&(n=t[$f]=new Set);var i=e+"__bubble";n.has(i)||(Nb(t,e,2,!1),n.add(i))}function fd(e,t,n){var i=0;t&&(i|=4),Nb(n,e,i,t)}var Kl="_reactListening"+Math.random().toString(36).slice(2);function Aa(e){if(!e[Kl]){e[Kl]=!0,T0.forEach(function(n){n!=="selectionchange"&&(y4.has(n)||fd(n,!1,e),fd(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Kl]||(t[Kl]=!0,fd("selectionchange",!1,t))}}function Nb(e,t,n,i){switch(cb(t)){case 1:var r=PE;break;case 4:r=OE;break;default:r=Hp}n=r.bind(null,t,n,e),r=void 0,!pf||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),i?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function pd(e,t,n,i,r){var o=i;if(!(t&1)&&!(t&2)&&i!==null)e:for(;;){if(i===null)return;var a=i.tag;if(a===3||a===4){var l=i.stateNode.containerInfo;if(l===r||l.nodeType===8&&l.parentNode===r)break;if(a===4)for(a=i.return;a!==null;){var s=a.tag;if((s===3||s===4)&&(s=a.stateNode.containerInfo,s===r||s.nodeType===8&&s.parentNode===r))return;a=a.return}for(;l!==null;){if(a=Xr(l),a===null)return;if(s=a.tag,s===5||s===6){i=o=a;continue e}l=l.parentNode}}i=i.return}K0(function(){var u=o,d=Mp(n),c=[];e:{var p=Sb.get(e);if(p!==void 0){var m=Wp,h=e;switch(e){case"keypress":if($s(n)===0)break e;case"keydown":case"keyup":m=GE;break;case"focusin":h="focus",m=ad;break;case"focusout":h="blur",m=ad;break;case"beforeblur":case"afterblur":m=ad;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=vv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=AE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=QE;break;case kb:case wb:case _b:m=UE;break;case $b:m=YE;break;case"scroll":m=TE;break;case"wheel":m=t4;break;case"copy":case"cut":case"paste":m=ME;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=xv}var g=(t&4)!==0,w=!g&&e==="scroll",v=g?p!==null?p+"Capture":null:p;g=[];for(var y=u,x;y!==null;){x=y;var k=x.stateNode;if(x.tag===5&&k!==null&&(x=k,v!==null&&(k=Ca(y,v),k!=null&&g.push(Da(y,k,x)))),w)break;y=y.return}0<g.length&&(p=new m(p,h,null,n,d),c.push({event:p,listeners:g}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",p&&n!==df&&(h=n.relatedTarget||n.fromElement)&&(Xr(h)||h[Kn]))break e;if((m||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,m?(h=n.relatedTarget||n.toElement,m=u,h=h?Xr(h):null,h!==null&&(w=Ei(h),h!==w||h.tag!==5&&h.tag!==6)&&(h=null)):(m=null,h=u),m!==h)){if(g=vv,k="onMouseLeave",v="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(g=xv,k="onPointerLeave",v="onPointerEnter",y="pointer"),w=m==null?p:Hi(m),x=h==null?p:Hi(h),p=new g(k,y+"leave",m,n,d),p.target=w,p.relatedTarget=x,k=null,Xr(d)===u&&(g=new g(v,y+"enter",h,n,d),g.target=x,g.relatedTarget=w,k=g),w=k,m&&h)t:{for(g=m,v=h,y=0,x=g;x;x=Ai(x))y++;for(x=0,k=v;k;k=Ai(k))x++;for(;0<y-x;)g=Ai(g),y--;for(;0<x-y;)v=Ai(v),x--;for(;y--;){if(g===v||v!==null&&g===v.alternate)break t;g=Ai(g),v=Ai(v)}g=null}else g=null;m!==null&&Cv(c,p,m,g,!1),h!==null&&w!==null&&Cv(c,w,h,g,!0)}}e:{if(p=u?Hi(u):window,m=p.nodeName&&p.nodeName.toLowerCase(),m==="select"||m==="input"&&p.type==="file")var I=s4;else if(wv(p))if(gb)I=f4;else{I=c4;var N=u4}else(m=p.nodeName)&&m.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(I=d4);if(I&&(I=I(e,u))){hb(c,I,n,d);break e}N&&N(e,p,u),e==="focusout"&&(N=p._wrapperState)&&N.controlled&&p.type==="number"&&af(p,"number",p.value)}switch(N=u?Hi(u):window,e){case"focusin":(wv(N)||N.contentEditable==="true")&&(Bi=N,yf=u,ba=null);break;case"focusout":ba=yf=Bi=null;break;case"mousedown":xf=!0;break;case"contextmenu":case"mouseup":case"dragend":xf=!1,Nv(c,n,d);break;case"selectionchange":if(h4)break;case"keydown":case"keyup":Nv(c,n,d)}var P;if(Jp)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else Zi?pb(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(fb&&n.locale!=="ko"&&(Zi||A!=="onCompositionStart"?A==="onCompositionEnd"&&Zi&&(P=db()):(Nr=d,qp="value"in Nr?Nr.value:Nr.textContent,Zi=!0)),N=Hs(u,A),0<N.length&&(A=new yv(A,e,null,n,d),c.push({event:A,listeners:N}),P?A.data=P:(P=mb(n),P!==null&&(A.data=P)))),(P=r4?i4(e,n):o4(e,n))&&(u=Hs(u,"onBeforeInput"),0<u.length&&(d=new yv("onBeforeInput","beforeinput",null,n,d),c.push({event:d,listeners:u}),d.data=P))}jb(c,t)})}function Da(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hs(e,t){for(var n=t+"Capture",i=[];e!==null;){var r=e,o=r.stateNode;r.tag===5&&o!==null&&(r=o,o=Ca(e,n),o!=null&&i.unshift(Da(e,o,r)),o=Ca(e,t),o!=null&&i.push(Da(e,o,r))),e=e.return}return i}function Ai(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Cv(e,t,n,i,r){for(var o=t._reactName,a=[];n!==null&&n!==i;){var l=n,s=l.alternate,u=l.stateNode;if(s!==null&&s===i)break;l.tag===5&&u!==null&&(l=u,r?(s=Ca(n,o),s!=null&&a.unshift(Da(n,s,l))):r||(s=Ca(n,o),s!=null&&a.push(Da(n,s,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var x4=/\r\n?/g,b4=/\u0000|\uFFFD/g;function zv(e){return(typeof e=="string"?e:""+e).replace(x4,`
38
+ `).replace(b4,"")}function Ql(e,t,n){if(t=zv(t),zv(e)!==t&&n)throw Error(F(425))}function qs(){}var bf=null,kf=null;function wf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var _f=typeof setTimeout=="function"?setTimeout:void 0,k4=typeof clearTimeout=="function"?clearTimeout:void 0,Pv=typeof Promise=="function"?Promise:void 0,w4=typeof queueMicrotask=="function"?queueMicrotask:typeof Pv<"u"?function(e){return Pv.resolve(null).then(e).catch(_4)}:_f;function _4(e){setTimeout(function(){throw e})}function md(e,t){var n=t,i=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(i===0){e.removeChild(r),Oa(t);return}i--}else n!=="$"&&n!=="$?"&&n!=="$!"||i++;n=r}while(n);Oa(t)}function Pr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Ov(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Uo=Math.random().toString(36).slice(2),$n="__reactFiber$"+Uo,La="__reactProps$"+Uo,Kn="__reactContainer$"+Uo,$f="__reactEvents$"+Uo,$4="__reactListeners$"+Uo,S4="__reactHandles$"+Uo;function Xr(e){var t=e[$n];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Kn]||n[$n]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ov(e);e!==null;){if(n=e[$n])return n;e=Ov(e)}return t}e=n,n=e.parentNode}return null}function sl(e){return e=e[$n]||e[Kn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Hi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(F(33))}function Cu(e){return e[La]||null}var Sf=[],qi=-1;function Br(e){return{current:e}}function Ie(e){0>qi||(e.current=Sf[qi],Sf[qi]=null,qi--)}function je(e,t){qi++,Sf[qi]=e.current,e.current=t}var Ur={},it=Br(Ur),_t=Br(!1),hi=Ur;function bo(e,t){var n=e.type.contextTypes;if(!n)return Ur;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r={},o;for(o in n)r[o]=t[o];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function $t(e){return e=e.childContextTypes,e!=null}function Ws(){Ie(_t),Ie(it)}function Tv(e,t,n){if(it.current!==Ur)throw Error(F(168));je(it,t),je(_t,n)}function Ib(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var r in i)if(!(r in t))throw Error(F(108,uE(e)||"Unknown",r));return Re({},n,i)}function Gs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ur,hi=it.current,je(it,e),je(_t,_t.current),!0}function Rv(e,t,n){var i=e.stateNode;if(!i)throw Error(F(169));n?(e=Ib(e,t,hi),i.__reactInternalMemoizedMergedChildContext=e,Ie(_t),Ie(it),je(it,e)):Ie(_t),je(_t,n)}var Ln=null,zu=!1,hd=!1;function Eb(e){Ln===null?Ln=[e]:Ln.push(e)}function j4(e){zu=!0,Eb(e)}function Vr(){if(!hd&&Ln!==null){hd=!0;var e=0,t=xe;try{var n=Ln;for(xe=1;e<n.length;e++){var i=n[e];do i=i(!0);while(i!==null)}Ln=null,zu=!1}catch(r){throw Ln!==null&&(Ln=Ln.slice(e+1)),eb(Zp,Vr),r}finally{xe=t,hd=!1}}return null}var Wi=[],Gi=0,Js=null,Ks=0,Mt=[],Zt=0,gi=null,Bn=1,Vn="";function Jr(e,t){Wi[Gi++]=Ks,Wi[Gi++]=Js,Js=e,Ks=t}function Cb(e,t,n){Mt[Zt++]=Bn,Mt[Zt++]=Vn,Mt[Zt++]=gi,gi=e;var i=Bn;e=Vn;var r=32-sn(i)-1;i&=~(1<<r),n+=1;var o=32-sn(t)+r;if(30<o){var a=r-r%5;o=(i&(1<<a)-1).toString(32),i>>=a,r-=a,Bn=1<<32-sn(t)+r|n<<r|i,Vn=o+e}else Bn=1<<o|n<<r|i,Vn=e}function Qp(e){e.return!==null&&(Jr(e,1),Cb(e,1,0))}function Xp(e){for(;e===Js;)Js=Wi[--Gi],Wi[Gi]=null,Ks=Wi[--Gi],Wi[Gi]=null;for(;e===gi;)gi=Mt[--Zt],Mt[Zt]=null,Vn=Mt[--Zt],Mt[Zt]=null,Bn=Mt[--Zt],Mt[Zt]=null}var Pt=null,Ct=null,Ee=!1,on=null;function zb(e,t){var n=Vt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Av(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Pt=e,Ct=Pr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Pt=e,Ct=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=gi!==null?{id:Bn,overflow:Vn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Vt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Pt=e,Ct=null,!0):!1;default:return!1}}function jf(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Nf(e){if(Ee){var t=Ct;if(t){var n=t;if(!Av(e,t)){if(jf(e))throw Error(F(418));t=Pr(n.nextSibling);var i=Pt;t&&Av(e,t)?zb(i,n):(e.flags=e.flags&-4097|2,Ee=!1,Pt=e)}}else{if(jf(e))throw Error(F(418));e.flags=e.flags&-4097|2,Ee=!1,Pt=e}}}function Dv(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Pt=e}function Xl(e){if(e!==Pt)return!1;if(!Ee)return Dv(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!wf(e.type,e.memoizedProps)),t&&(t=Ct)){if(jf(e))throw Pb(),Error(F(418));for(;t;)zb(e,t),t=Pr(t.nextSibling)}if(Dv(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(F(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ct=Pr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ct=null}}else Ct=Pt?Pr(e.stateNode.nextSibling):null;return!0}function Pb(){for(var e=Ct;e;)e=Pr(e.nextSibling)}function ko(){Ct=Pt=null,Ee=!1}function Yp(e){on===null?on=[e]:on.push(e)}var N4=nr.ReactCurrentBatchConfig;function ta(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(F(309));var i=n.stateNode}if(!i)throw Error(F(147,e));var r=i,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var l=r.refs;a===null?delete l[o]:l[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(F(284));if(!n._owner)throw Error(F(290,e))}return e}function Yl(e,t){throw e=Object.prototype.toString.call(t),Error(F(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Lv(e){var t=e._init;return t(e._payload)}function Ob(e){function t(v,y){if(e){var x=v.deletions;x===null?(v.deletions=[y],v.flags|=16):x.push(y)}}function n(v,y){if(!e)return null;for(;y!==null;)t(v,y),y=y.sibling;return null}function i(v,y){for(v=new Map;y!==null;)y.key!==null?v.set(y.key,y):v.set(y.index,y),y=y.sibling;return v}function r(v,y){return v=Ar(v,y),v.index=0,v.sibling=null,v}function o(v,y,x){return v.index=x,e?(x=v.alternate,x!==null?(x=x.index,x<y?(v.flags|=2,y):x):(v.flags|=2,y)):(v.flags|=1048576,y)}function a(v){return e&&v.alternate===null&&(v.flags|=2),v}function l(v,y,x,k){return y===null||y.tag!==6?(y=wd(x,v.mode,k),y.return=v,y):(y=r(y,x),y.return=v,y)}function s(v,y,x,k){var I=x.type;return I===Mi?d(v,y,x.props.children,k,x.key):y!==null&&(y.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===pr&&Lv(I)===y.type)?(k=r(y,x.props),k.ref=ta(v,y,x),k.return=v,k):(k=zs(x.type,x.key,x.props,null,v.mode,k),k.ref=ta(v,y,x),k.return=v,k)}function u(v,y,x,k){return y===null||y.tag!==4||y.stateNode.containerInfo!==x.containerInfo||y.stateNode.implementation!==x.implementation?(y=_d(x,v.mode,k),y.return=v,y):(y=r(y,x.children||[]),y.return=v,y)}function d(v,y,x,k,I){return y===null||y.tag!==7?(y=pi(x,v.mode,k,I),y.return=v,y):(y=r(y,x),y.return=v,y)}function c(v,y,x){if(typeof y=="string"&&y!==""||typeof y=="number")return y=wd(""+y,v.mode,x),y.return=v,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Zl:return x=zs(y.type,y.key,y.props,null,v.mode,x),x.ref=ta(v,null,y),x.return=v,x;case Fi:return y=_d(y,v.mode,x),y.return=v,y;case pr:var k=y._init;return c(v,k(y._payload),x)}if(ca(y)||Ko(y))return y=pi(y,v.mode,x,null),y.return=v,y;Yl(v,y)}return null}function p(v,y,x,k){var I=y!==null?y.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return I!==null?null:l(v,y,""+x,k);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Zl:return x.key===I?s(v,y,x,k):null;case Fi:return x.key===I?u(v,y,x,k):null;case pr:return I=x._init,p(v,y,I(x._payload),k)}if(ca(x)||Ko(x))return I!==null?null:d(v,y,x,k,null);Yl(v,x)}return null}function m(v,y,x,k,I){if(typeof k=="string"&&k!==""||typeof k=="number")return v=v.get(x)||null,l(y,v,""+k,I);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Zl:return v=v.get(k.key===null?x:k.key)||null,s(y,v,k,I);case Fi:return v=v.get(k.key===null?x:k.key)||null,u(y,v,k,I);case pr:var N=k._init;return m(v,y,x,N(k._payload),I)}if(ca(k)||Ko(k))return v=v.get(x)||null,d(y,v,k,I,null);Yl(y,k)}return null}function h(v,y,x,k){for(var I=null,N=null,P=y,A=y=0,R=null;P!==null&&A<x.length;A++){P.index>A?(R=P,P=null):R=P.sibling;var _=p(v,P,x[A],k);if(_===null){P===null&&(P=R);break}e&&P&&_.alternate===null&&t(v,P),y=o(_,y,A),N===null?I=_:N.sibling=_,N=_,P=R}if(A===x.length)return n(v,P),Ee&&Jr(v,A),I;if(P===null){for(;A<x.length;A++)P=c(v,x[A],k),P!==null&&(y=o(P,y,A),N===null?I=P:N.sibling=P,N=P);return Ee&&Jr(v,A),I}for(P=i(v,P);A<x.length;A++)R=m(P,v,A,x[A],k),R!==null&&(e&&R.alternate!==null&&P.delete(R.key===null?A:R.key),y=o(R,y,A),N===null?I=R:N.sibling=R,N=R);return e&&P.forEach(function(L){return t(v,L)}),Ee&&Jr(v,A),I}function g(v,y,x,k){var I=Ko(x);if(typeof I!="function")throw Error(F(150));if(x=I.call(x),x==null)throw Error(F(151));for(var N=I=null,P=y,A=y=0,R=null,_=x.next();P!==null&&!_.done;A++,_=x.next()){P.index>A?(R=P,P=null):R=P.sibling;var L=p(v,P,_.value,k);if(L===null){P===null&&(P=R);break}e&&P&&L.alternate===null&&t(v,P),y=o(L,y,A),N===null?I=L:N.sibling=L,N=L,P=R}if(_.done)return n(v,P),Ee&&Jr(v,A),I;if(P===null){for(;!_.done;A++,_=x.next())_=c(v,_.value,k),_!==null&&(y=o(_,y,A),N===null?I=_:N.sibling=_,N=_);return Ee&&Jr(v,A),I}for(P=i(v,P);!_.done;A++,_=x.next())_=m(P,v,A,_.value,k),_!==null&&(e&&_.alternate!==null&&P.delete(_.key===null?A:_.key),y=o(_,y,A),N===null?I=_:N.sibling=_,N=_);return e&&P.forEach(function(B){return t(v,B)}),Ee&&Jr(v,A),I}function w(v,y,x,k){if(typeof x=="object"&&x!==null&&x.type===Mi&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Zl:e:{for(var I=x.key,N=y;N!==null;){if(N.key===I){if(I=x.type,I===Mi){if(N.tag===7){n(v,N.sibling),y=r(N,x.props.children),y.return=v,v=y;break e}}else if(N.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===pr&&Lv(I)===N.type){n(v,N.sibling),y=r(N,x.props),y.ref=ta(v,N,x),y.return=v,v=y;break e}n(v,N);break}else t(v,N);N=N.sibling}x.type===Mi?(y=pi(x.props.children,v.mode,k,x.key),y.return=v,v=y):(k=zs(x.type,x.key,x.props,null,v.mode,k),k.ref=ta(v,y,x),k.return=v,v=k)}return a(v);case Fi:e:{for(N=x.key;y!==null;){if(y.key===N)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(v,y.sibling),y=r(y,x.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=_d(x,v.mode,k),y.return=v,v=y}return a(v);case pr:return N=x._init,w(v,y,N(x._payload),k)}if(ca(x))return h(v,y,x,k);if(Ko(x))return g(v,y,x,k);Yl(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(n(v,y.sibling),y=r(y,x),y.return=v,v=y):(n(v,y),y=wd(x,v.mode,k),y.return=v,v=y),a(v)):n(v,y)}return w}var wo=Ob(!0),Tb=Ob(!1),Qs=Br(null),Xs=null,Ji=null,em=null;function tm(){em=Ji=Xs=null}function nm(e){var t=Qs.current;Ie(Qs),e._currentValue=t}function If(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function no(e,t){Xs=e,em=Ji=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(wt=!0),e.firstContext=null)}function Wt(e){var t=e._currentValue;if(em!==e)if(e={context:e,memoizedValue:t,next:null},Ji===null){if(Xs===null)throw Error(F(308));Ji=e,Xs.dependencies={lanes:0,firstContext:e}}else Ji=Ji.next=e;return t}var Yr=null;function rm(e){Yr===null?Yr=[e]:Yr.push(e)}function Rb(e,t,n,i){var r=t.interleaved;return r===null?(n.next=n,rm(t)):(n.next=r.next,r.next=n),t.interleaved=n,Qn(e,i)}function Qn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var mr=!1;function im(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ab(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Hn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Or(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,he&2){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,Qn(e,n)}return r=i.interleaved,r===null?(t.next=t,rm(i)):(t.next=r.next,r.next=t),i.interleaved=t,Qn(e,n)}function Ss(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Bp(e,n)}}function Uv(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?r=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?r=o=t:o=o.next=t}else r=o=t;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:i.shared,effects:i.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ys(e,t,n,i){var r=e.updateQueue;mr=!1;var o=r.firstBaseUpdate,a=r.lastBaseUpdate,l=r.shared.pending;if(l!==null){r.shared.pending=null;var s=l,u=s.next;s.next=null,a===null?o=u:a.next=u,a=s;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=s))}if(o!==null){var c=r.baseState;a=0,d=u=s=null,l=o;do{var p=l.lane,m=l.eventTime;if((i&p)===p){d!==null&&(d=d.next={eventTime:m,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,g=l;switch(p=t,m=n,g.tag){case 1:if(h=g.payload,typeof h=="function"){c=h.call(m,c,p);break e}c=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h=="function"?h.call(m,c,p):h,p==null)break e;c=Re({},c,p);break e;case 2:mr=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=r.effects,p===null?r.effects=[l]:p.push(l))}else m={eventTime:m,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=m,s=c):d=d.next=m,a|=p;if(l=l.next,l===null){if(l=r.shared.pending,l===null)break;p=l,l=p.next,p.next=null,r.lastBaseUpdate=p,r.shared.pending=null}}while(!0);if(d===null&&(s=c),r.baseState=s,r.firstBaseUpdate=u,r.lastBaseUpdate=d,t=r.shared.interleaved,t!==null){r=t;do a|=r.lane,r=r.next;while(r!==t)}else o===null&&(r.shared.lanes=0);yi|=a,e.lanes=a,e.memoizedState=c}}function Fv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],r=i.callback;if(r!==null){if(i.callback=null,i=n,typeof r!="function")throw Error(F(191,r));r.call(i)}}}var ul={},In=Br(ul),Ua=Br(ul),Fa=Br(ul);function ei(e){if(e===ul)throw Error(F(174));return e}function om(e,t){switch(je(Fa,t),je(Ua,e),je(In,ul),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:sf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=sf(t,e)}Ie(In),je(In,t)}function _o(){Ie(In),Ie(Ua),Ie(Fa)}function Db(e){ei(Fa.current);var t=ei(In.current),n=sf(t,e.type);t!==n&&(je(Ua,e),je(In,n))}function am(e){Ua.current===e&&(Ie(In),Ie(Ua))}var Pe=Br(0);function eu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var gd=[];function lm(){for(var e=0;e<gd.length;e++)gd[e]._workInProgressVersionPrimary=null;gd.length=0}var js=nr.ReactCurrentDispatcher,vd=nr.ReactCurrentBatchConfig,vi=0,Oe=null,Ze=null,We=null,tu=!1,ka=!1,Ma=0,I4=0;function Ye(){throw Error(F(321))}function sm(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!dn(e[n],t[n]))return!1;return!0}function um(e,t,n,i,r,o){if(vi=o,Oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,js.current=e===null||e.memoizedState===null?P4:O4,e=n(i,r),ka){o=0;do{if(ka=!1,Ma=0,25<=o)throw Error(F(301));o+=1,We=Ze=null,t.updateQueue=null,js.current=T4,e=n(i,r)}while(ka)}if(js.current=nu,t=Ze!==null&&Ze.next!==null,vi=0,We=Ze=Oe=null,tu=!1,t)throw Error(F(300));return e}function cm(){var e=Ma!==0;return Ma=0,e}function xn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?Oe.memoizedState=We=e:We=We.next=e,We}function Gt(){if(Ze===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=Ze.next;var t=We===null?Oe.memoizedState:We.next;if(t!==null)We=t,Ze=e;else{if(e===null)throw Error(F(310));Ze=e,e={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},We===null?Oe.memoizedState=We=e:We=We.next=e}return We}function Za(e,t){return typeof t=="function"?t(e):t}function yd(e){var t=Gt(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var i=Ze,r=i.baseQueue,o=n.pending;if(o!==null){if(r!==null){var a=r.next;r.next=o.next,o.next=a}i.baseQueue=r=o,n.pending=null}if(r!==null){o=r.next,i=i.baseState;var l=a=null,s=null,u=o;do{var d=u.lane;if((vi&d)===d)s!==null&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var c={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(l=s=c,a=i):s=s.next=c,Oe.lanes|=d,yi|=d}u=u.next}while(u!==null&&u!==o);s===null?a=i:s.next=l,dn(i,t.memoizedState)||(wt=!0),t.memoizedState=i,t.baseState=a,t.baseQueue=s,n.lastRenderedState=i}if(e=n.interleaved,e!==null){r=e;do o=r.lane,Oe.lanes|=o,yi|=o,r=r.next;while(r!==e)}else r===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function xd(e){var t=Gt(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,o=t.memoizedState;if(r!==null){n.pending=null;var a=r=r.next;do o=e(o,a.action),a=a.next;while(a!==r);dn(o,t.memoizedState)||(wt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Lb(){}function Ub(e,t){var n=Oe,i=Gt(),r=t(),o=!dn(i.memoizedState,r);if(o&&(i.memoizedState=r,wt=!0),i=i.queue,dm(Zb.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||We!==null&&We.memoizedState.tag&1){if(n.flags|=2048,Ba(9,Mb.bind(null,n,i,r,t),void 0,null),Je===null)throw Error(F(349));vi&30||Fb(n,t,r)}return r}function Fb(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Mb(e,t,n,i){t.value=n,t.getSnapshot=i,Bb(t)&&Vb(e)}function Zb(e,t,n){return n(function(){Bb(t)&&Vb(e)})}function Bb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!dn(e,n)}catch{return!0}}function Vb(e){var t=Qn(e,1);t!==null&&un(t,e,1,-1)}function Mv(e){var t=xn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Za,lastRenderedState:e},t.queue=e,e=e.dispatch=z4.bind(null,Oe,e),[t.memoizedState,e]}function Ba(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e)),e}function Hb(){return Gt().memoizedState}function Ns(e,t,n,i){var r=xn();Oe.flags|=e,r.memoizedState=Ba(1|t,n,void 0,i===void 0?null:i)}function Pu(e,t,n,i){var r=Gt();i=i===void 0?null:i;var o=void 0;if(Ze!==null){var a=Ze.memoizedState;if(o=a.destroy,i!==null&&sm(i,a.deps)){r.memoizedState=Ba(t,n,o,i);return}}Oe.flags|=e,r.memoizedState=Ba(1|t,n,o,i)}function Zv(e,t){return Ns(8390656,8,e,t)}function dm(e,t){return Pu(2048,8,e,t)}function qb(e,t){return Pu(4,2,e,t)}function Wb(e,t){return Pu(4,4,e,t)}function Gb(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Jb(e,t,n){return n=n!=null?n.concat([e]):null,Pu(4,4,Gb.bind(null,t,e),n)}function fm(){}function Kb(e,t){var n=Gt();t=t===void 0?null:t;var i=n.memoizedState;return i!==null&&t!==null&&sm(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Qb(e,t){var n=Gt();t=t===void 0?null:t;var i=n.memoizedState;return i!==null&&t!==null&&sm(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)}function Xb(e,t,n){return vi&21?(dn(n,t)||(n=rb(),Oe.lanes|=n,yi|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,wt=!0),e.memoizedState=n)}function E4(e,t){var n=xe;xe=n!==0&&4>n?n:4,e(!0);var i=vd.transition;vd.transition={};try{e(!1),t()}finally{xe=n,vd.transition=i}}function Yb(){return Gt().memoizedState}function C4(e,t,n){var i=Rr(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},ek(e))tk(t,n);else if(n=Rb(e,t,n,i),n!==null){var r=pt();un(n,e,i,r),nk(n,t,i)}}function z4(e,t,n){var i=Rr(e),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(ek(e))tk(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,l=o(a,n);if(r.hasEagerState=!0,r.eagerState=l,dn(l,a)){var s=t.interleaved;s===null?(r.next=r,rm(t)):(r.next=s.next,s.next=r),t.interleaved=r;return}}catch{}finally{}n=Rb(e,t,r,i),n!==null&&(r=pt(),un(n,e,i,r),nk(n,t,i))}}function ek(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function tk(e,t){ka=tu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nk(e,t,n){if(n&4194240){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Bp(e,n)}}var nu={readContext:Wt,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},P4={readContext:Wt,useCallback:function(e,t){return xn().memoizedState=[e,t===void 0?null:t],e},useContext:Wt,useEffect:Zv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ns(4194308,4,Gb.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ns(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ns(4,2,e,t)},useMemo:function(e,t){var n=xn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=xn();return t=n!==void 0?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=C4.bind(null,Oe,e),[i.memoizedState,e]},useRef:function(e){var t=xn();return e={current:e},t.memoizedState=e},useState:Mv,useDebugValue:fm,useDeferredValue:function(e){return xn().memoizedState=e},useTransition:function(){var e=Mv(!1),t=e[0];return e=E4.bind(null,e[1]),xn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=Oe,r=xn();if(Ee){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),Je===null)throw Error(F(349));vi&30||Fb(i,t,n)}r.memoizedState=n;var o={value:n,getSnapshot:t};return r.queue=o,Zv(Zb.bind(null,i,o,e),[e]),i.flags|=2048,Ba(9,Mb.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=xn(),t=Je.identifierPrefix;if(Ee){var n=Vn,i=Bn;n=(i&~(1<<32-sn(i)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ma++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=I4++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},O4={readContext:Wt,useCallback:Kb,useContext:Wt,useEffect:dm,useImperativeHandle:Jb,useInsertionEffect:qb,useLayoutEffect:Wb,useMemo:Qb,useReducer:yd,useRef:Hb,useState:function(){return yd(Za)},useDebugValue:fm,useDeferredValue:function(e){var t=Gt();return Xb(t,Ze.memoizedState,e)},useTransition:function(){var e=yd(Za)[0],t=Gt().memoizedState;return[e,t]},useMutableSource:Lb,useSyncExternalStore:Ub,useId:Yb,unstable_isNewReconciler:!1},T4={readContext:Wt,useCallback:Kb,useContext:Wt,useEffect:dm,useImperativeHandle:Jb,useInsertionEffect:qb,useLayoutEffect:Wb,useMemo:Qb,useReducer:xd,useRef:Hb,useState:function(){return xd(Za)},useDebugValue:fm,useDeferredValue:function(e){var t=Gt();return Ze===null?t.memoizedState=e:Xb(t,Ze.memoizedState,e)},useTransition:function(){var e=xd(Za)[0],t=Gt().memoizedState;return[e,t]},useMutableSource:Lb,useSyncExternalStore:Ub,useId:Yb,unstable_isNewReconciler:!1};function en(e,t){if(e&&e.defaultProps){t=Re({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ef(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:Re({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ou={isMounted:function(e){return(e=e._reactInternals)?Ei(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var i=pt(),r=Rr(e),o=Hn(i,r);o.payload=t,n!=null&&(o.callback=n),t=Or(e,o,r),t!==null&&(un(t,e,r,i),Ss(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=pt(),r=Rr(e),o=Hn(i,r);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Or(e,o,r),t!==null&&(un(t,e,r,i),Ss(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pt(),i=Rr(e),r=Hn(n,i);r.tag=2,t!=null&&(r.callback=t),t=Or(e,r,i),t!==null&&(un(t,e,i,n),Ss(t,e,i))}};function Bv(e,t,n,i,r,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,o,a):t.prototype&&t.prototype.isPureReactComponent?!Ra(n,i)||!Ra(r,o):!0}function rk(e,t,n){var i=!1,r=Ur,o=t.contextType;return typeof o=="object"&&o!==null?o=Wt(o):(r=$t(t)?hi:it.current,i=t.contextTypes,o=(i=i!=null)?bo(e,r):Ur),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ou,e.stateNode=t,t._reactInternals=e,i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=o),t}function Vv(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&Ou.enqueueReplaceState(t,t.state,null)}function Cf(e,t,n,i){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},im(e);var o=t.contextType;typeof o=="object"&&o!==null?r.context=Wt(o):(o=$t(t)?hi:it.current,r.context=bo(e,o)),r.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Ef(e,t,o,n),r.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(t=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),t!==r.state&&Ou.enqueueReplaceState(r,r.state,null),Ys(e,n,r,i),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308)}function $o(e,t){try{var n="",i=t;do n+=sE(i),i=i.return;while(i);var r=n}catch(o){r=`
39
+ Error generating stack: `+o.message+`
40
+ `+o.stack}return{value:e,source:t,stack:r,digest:null}}function bd(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function zf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var R4=typeof WeakMap=="function"?WeakMap:Map;function ik(e,t,n){n=Hn(-1,n),n.tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){iu||(iu=!0,Mf=i),zf(e,t)},n}function ok(e,t,n){n=Hn(-1,n),n.tag=3;var i=e.type.getDerivedStateFromError;if(typeof i=="function"){var r=t.value;n.payload=function(){return i(r)},n.callback=function(){zf(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){zf(e,t),typeof i!="function"&&(Tr===null?Tr=new Set([this]):Tr.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Hv(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new R4;var r=new Set;i.set(t,r)}else r=i.get(t),r===void 0&&(r=new Set,i.set(t,r));r.has(n)||(r.add(n),e=J4.bind(null,e,t,n),t.then(e,e))}function qv(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Wv(e,t,n,i,r){return e.mode&1?(e.flags|=65536,e.lanes=r,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Hn(-1,1),t.tag=2,Or(n,t,1))),n.lanes|=1),e)}var A4=nr.ReactCurrentOwner,wt=!1;function ct(e,t,n,i){t.child=e===null?Tb(t,null,n,i):wo(t,e.child,n,i)}function Gv(e,t,n,i,r){n=n.render;var o=t.ref;return no(t,r),i=um(e,t,n,i,o,r),n=cm(),e!==null&&!wt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Xn(e,t,r)):(Ee&&n&&Qp(t),t.flags|=1,ct(e,t,i,r),t.child)}function Jv(e,t,n,i,r){if(e===null){var o=n.type;return typeof o=="function"&&!bm(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,ak(e,t,o,i,r)):(e=zs(n.type,null,i,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&r)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:Ra,n(a,i)&&e.ref===t.ref)return Xn(e,t,r)}return t.flags|=1,e=Ar(o,i),e.ref=t.ref,e.return=t,t.child=e}function ak(e,t,n,i,r){if(e!==null){var o=e.memoizedProps;if(Ra(o,i)&&e.ref===t.ref)if(wt=!1,t.pendingProps=i=o,(e.lanes&r)!==0)e.flags&131072&&(wt=!0);else return t.lanes=e.lanes,Xn(e,t,r)}return Pf(e,t,n,i,r)}function lk(e,t,n){var i=t.pendingProps,r=i.children,o=e!==null?e.memoizedState:null;if(i.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},je(Qi,Et),Et|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,je(Qi,Et),Et|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=o!==null?o.baseLanes:n,je(Qi,Et),Et|=i}else o!==null?(i=o.baseLanes|n,t.memoizedState=null):i=n,je(Qi,Et),Et|=i;return ct(e,t,r,n),t.child}function sk(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Pf(e,t,n,i,r){var o=$t(n)?hi:it.current;return o=bo(t,o),no(t,r),n=um(e,t,n,i,o,r),i=cm(),e!==null&&!wt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Xn(e,t,r)):(Ee&&i&&Qp(t),t.flags|=1,ct(e,t,n,r),t.child)}function Kv(e,t,n,i,r){if($t(n)){var o=!0;Gs(t)}else o=!1;if(no(t,r),t.stateNode===null)Is(e,t),rk(t,n,i),Cf(t,n,i,r),i=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Wt(u):(u=$t(n)?hi:it.current,u=bo(t,u));var d=n.getDerivedStateFromProps,c=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";c||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==i||s!==u)&&Vv(t,a,i,u),mr=!1;var p=t.memoizedState;a.state=p,Ys(t,i,a,r),s=t.memoizedState,l!==i||p!==s||_t.current||mr?(typeof d=="function"&&(Ef(t,n,d,i),s=t.memoizedState),(l=mr||Bv(t,n,l,i,p,s,u))?(c||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=s),a.props=i,a.state=s,a.context=u,i=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{a=t.stateNode,Ab(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:en(t.type,l),a.props=u,c=t.pendingProps,p=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=Wt(s):(s=$t(n)?hi:it.current,s=bo(t,s));var m=n.getDerivedStateFromProps;(d=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==c||p!==s)&&Vv(t,a,i,s),mr=!1,p=t.memoizedState,a.state=p,Ys(t,i,a,r);var h=t.memoizedState;l!==c||p!==h||_t.current||mr?(typeof m=="function"&&(Ef(t,n,m,i),h=t.memoizedState),(u=mr||Bv(t,n,u,i,p,h,s)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(i,h,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(i,h,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=h),a.props=i,a.state=h,a.context=s,i=u):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),i=!1)}return Of(e,t,n,i,o,r)}function Of(e,t,n,i,r,o){sk(e,t);var a=(t.flags&128)!==0;if(!i&&!a)return r&&Rv(t,n,!1),Xn(e,t,o);i=t.stateNode,A4.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:i.render();return t.flags|=1,e!==null&&a?(t.child=wo(t,e.child,null,o),t.child=wo(t,null,l,o)):ct(e,t,l,o),t.memoizedState=i.state,r&&Rv(t,n,!0),t.child}function uk(e){var t=e.stateNode;t.pendingContext?Tv(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Tv(e,t.context,!1),om(e,t.containerInfo)}function Qv(e,t,n,i,r){return ko(),Yp(r),t.flags|=256,ct(e,t,n,i),t.child}var Tf={dehydrated:null,treeContext:null,retryLane:0};function Rf(e){return{baseLanes:e,cachePool:null,transitions:null}}function ck(e,t,n){var i=t.pendingProps,r=Pe.current,o=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(r&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(r|=1),je(Pe,r&1),e===null)return Nf(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=i.children,e=i.fallback,o?(i=t.mode,o=t.child,a={mode:"hidden",children:a},!(i&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=Au(a,i,0,null),e=pi(e,i,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Rf(n),t.memoizedState=Tf,e):pm(t,a));if(r=e.memoizedState,r!==null&&(l=r.dehydrated,l!==null))return D4(e,t,a,i,l,r,n);if(o){o=i.fallback,a=t.mode,r=e.child,l=r.sibling;var s={mode:"hidden",children:i.children};return!(a&1)&&t.child!==r?(i=t.child,i.childLanes=0,i.pendingProps=s,t.deletions=null):(i=Ar(r,s),i.subtreeFlags=r.subtreeFlags&14680064),l!==null?o=Ar(l,o):(o=pi(o,a,n,null),o.flags|=2),o.return=t,i.return=t,i.sibling=o,t.child=i,i=o,o=t.child,a=e.child.memoizedState,a=a===null?Rf(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=Tf,i}return o=e.child,e=o.sibling,i=Ar(o,{mode:"visible",children:i.children}),!(t.mode&1)&&(i.lanes=n),i.return=t,i.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function pm(e,t){return t=Au({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function es(e,t,n,i){return i!==null&&Yp(i),wo(t,e.child,null,n),e=pm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function D4(e,t,n,i,r,o,a){if(n)return t.flags&256?(t.flags&=-257,i=bd(Error(F(422))),es(e,t,a,i)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=i.fallback,r=t.mode,i=Au({mode:"visible",children:i.children},r,0,null),o=pi(o,r,a,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&wo(t,e.child,null,a),t.child.memoizedState=Rf(a),t.memoizedState=Tf,o);if(!(t.mode&1))return es(e,t,a,null);if(r.data==="$!"){if(i=r.nextSibling&&r.nextSibling.dataset,i)var l=i.dgst;return i=l,o=Error(F(419)),i=bd(o,i,void 0),es(e,t,a,i)}if(l=(a&e.childLanes)!==0,wt||l){if(i=Je,i!==null){switch(a&-a){case 4:r=2;break;case 16:r=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}r=r&(i.suspendedLanes|a)?0:r,r!==0&&r!==o.retryLane&&(o.retryLane=r,Qn(e,r),un(i,e,r,-1))}return xm(),i=bd(Error(F(421))),es(e,t,a,i)}return r.data==="$?"?(t.flags|=128,t.child=e.child,t=K4.bind(null,e),r._reactRetry=t,null):(e=o.treeContext,Ct=Pr(r.nextSibling),Pt=t,Ee=!0,on=null,e!==null&&(Mt[Zt++]=Bn,Mt[Zt++]=Vn,Mt[Zt++]=gi,Bn=e.id,Vn=e.overflow,gi=t),t=pm(t,i.children),t.flags|=4096,t)}function Xv(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),If(e.return,t,n)}function kd(e,t,n,i,r){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=n,o.tailMode=r)}function dk(e,t,n){var i=t.pendingProps,r=i.revealOrder,o=i.tail;if(ct(e,t,i.children,n),i=Pe.current,i&2)i=i&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Xv(e,n,t);else if(e.tag===19)Xv(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}if(je(Pe,i),!(t.mode&1))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&eu(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),kd(t,!1,r,n,o);break;case"backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&eu(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}kd(t,!0,n,null,o);break;case"together":kd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Is(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Xn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),yi|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(F(153));if(t.child!==null){for(e=t.child,n=Ar(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ar(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function L4(e,t,n){switch(t.tag){case 3:uk(t),ko();break;case 5:Db(t);break;case 1:$t(t.type)&&Gs(t);break;case 4:om(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,r=t.memoizedProps.value;je(Qs,i._currentValue),i._currentValue=r;break;case 13:if(i=t.memoizedState,i!==null)return i.dehydrated!==null?(je(Pe,Pe.current&1),t.flags|=128,null):n&t.child.childLanes?ck(e,t,n):(je(Pe,Pe.current&1),e=Xn(e,t,n),e!==null?e.sibling:null);je(Pe,Pe.current&1);break;case 19:if(i=(n&t.childLanes)!==0,e.flags&128){if(i)return dk(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),je(Pe,Pe.current),i)break;return null;case 22:case 23:return t.lanes=0,lk(e,t,n)}return Xn(e,t,n)}var fk,Af,pk,mk;fk=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Af=function(){};pk=function(e,t,n,i){var r=e.memoizedProps;if(r!==i){e=t.stateNode,ei(In.current);var o=null;switch(n){case"input":r=rf(e,r),i=rf(e,i),o=[];break;case"select":r=Re({},r,{value:void 0}),i=Re({},i,{value:void 0}),o=[];break;case"textarea":r=lf(e,r),i=lf(e,i),o=[];break;default:typeof r.onClick!="function"&&typeof i.onClick=="function"&&(e.onclick=qs)}uf(n,i);var a;n=null;for(u in r)if(!i.hasOwnProperty(u)&&r.hasOwnProperty(u)&&r[u]!=null)if(u==="style"){var l=r[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ia.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in i){var s=i[u];if(l=r!=null?r[u]:void 0,i.hasOwnProperty(u)&&s!==l&&(s!=null||l!=null))if(u==="style")if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(o||(o=[]),o.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(o=o||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ia.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&Ne("scroll",e),o||l===s||(o=[])):(o=o||[]).push(u,s))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};mk=function(e,t,n,i){n!==i&&(t.flags|=4)};function na(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags&14680064,i|=r.flags&14680064,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function U4(e,t,n){var i=t.pendingProps;switch(Xp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return $t(t.type)&&Ws(),et(t),null;case 3:return i=t.stateNode,_o(),Ie(_t),Ie(it),lm(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Xl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,on!==null&&(Vf(on),on=null))),Af(e,t),et(t),null;case 5:am(t);var r=ei(Fa.current);if(n=t.type,e!==null&&t.stateNode!=null)pk(e,t,n,i,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(F(166));return et(t),null}if(e=ei(In.current),Xl(t)){i=t.stateNode,n=t.type;var o=t.memoizedProps;switch(i[$n]=t,i[La]=o,e=(t.mode&1)!==0,n){case"dialog":Ne("cancel",i),Ne("close",i);break;case"iframe":case"object":case"embed":Ne("load",i);break;case"video":case"audio":for(r=0;r<fa.length;r++)Ne(fa[r],i);break;case"source":Ne("error",i);break;case"img":case"image":case"link":Ne("error",i),Ne("load",i);break;case"details":Ne("toggle",i);break;case"input":lv(i,o),Ne("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!o.multiple},Ne("invalid",i);break;case"textarea":uv(i,o),Ne("invalid",i)}uf(n,o),r=null;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a];a==="children"?typeof l=="string"?i.textContent!==l&&(o.suppressHydrationWarning!==!0&&Ql(i.textContent,l,e),r=["children",l]):typeof l=="number"&&i.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&Ql(i.textContent,l,e),r=["children",""+l]):Ia.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&Ne("scroll",i)}switch(n){case"input":Bl(i),sv(i,o,!0);break;case"textarea":Bl(i),cv(i);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(i.onclick=qs)}i=r,t.updateQueue=i,i!==null&&(t.flags|=4)}else{a=r.nodeType===9?r:r.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Z0(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=a.createElement(n,{is:i.is}):(e=a.createElement(n),n==="select"&&(a=e,i.multiple?a.multiple=!0:i.size&&(a.size=i.size))):e=a.createElementNS(e,n),e[$n]=t,e[La]=i,fk(e,t,!1,!1),t.stateNode=e;e:{switch(a=cf(n,i),n){case"dialog":Ne("cancel",e),Ne("close",e),r=i;break;case"iframe":case"object":case"embed":Ne("load",e),r=i;break;case"video":case"audio":for(r=0;r<fa.length;r++)Ne(fa[r],e);r=i;break;case"source":Ne("error",e),r=i;break;case"img":case"image":case"link":Ne("error",e),Ne("load",e),r=i;break;case"details":Ne("toggle",e),r=i;break;case"input":lv(e,i),r=rf(e,i),Ne("invalid",e);break;case"option":r=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},r=Re({},i,{value:void 0}),Ne("invalid",e);break;case"textarea":uv(e,i),r=lf(e,i),Ne("invalid",e);break;default:r=i}uf(n,r),l=r;for(o in l)if(l.hasOwnProperty(o)){var s=l[o];o==="style"?H0(e,s):o==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&B0(e,s)):o==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&Ea(e,s):typeof s=="number"&&Ea(e,""+s):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Ia.hasOwnProperty(o)?s!=null&&o==="onScroll"&&Ne("scroll",e):s!=null&&Dp(e,o,s,a))}switch(n){case"input":Bl(e),sv(e,i,!1);break;case"textarea":Bl(e),cv(e);break;case"option":i.value!=null&&e.setAttribute("value",""+Lr(i.value));break;case"select":e.multiple=!!i.multiple,o=i.value,o!=null?Xi(e,!!i.multiple,o,!1):i.defaultValue!=null&&Xi(e,!!i.multiple,i.defaultValue,!0);break;default:typeof r.onClick=="function"&&(e.onclick=qs)}switch(n){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return et(t),null;case 6:if(e&&t.stateNode!=null)mk(e,t,e.memoizedProps,i);else{if(typeof i!="string"&&t.stateNode===null)throw Error(F(166));if(n=ei(Fa.current),ei(In.current),Xl(t)){if(i=t.stateNode,n=t.memoizedProps,i[$n]=t,(o=i.nodeValue!==n)&&(e=Pt,e!==null))switch(e.tag){case 3:Ql(i.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ql(i.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[$n]=t,t.stateNode=i}return et(t),null;case 13:if(Ie(Pe),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&Ct!==null&&t.mode&1&&!(t.flags&128))Pb(),ko(),t.flags|=98560,o=!1;else if(o=Xl(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(F(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(F(317));o[$n]=t}else ko(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;et(t),o=!1}else on!==null&&(Vf(on),on=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||Pe.current&1?Ve===0&&(Ve=3):xm())),t.updateQueue!==null&&(t.flags|=4),et(t),null);case 4:return _o(),Af(e,t),e===null&&Aa(t.stateNode.containerInfo),et(t),null;case 10:return nm(t.type._context),et(t),null;case 17:return $t(t.type)&&Ws(),et(t),null;case 19:if(Ie(Pe),o=t.memoizedState,o===null)return et(t),null;if(i=(t.flags&128)!==0,a=o.rendering,a===null)if(i)na(o,!1);else{if(Ve!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=eu(e),a!==null){for(t.flags|=128,na(o,!1),i=a.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)o=n,e=i,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return je(Pe,Pe.current&1|2),t.child}e=e.sibling}o.tail!==null&&Le()>So&&(t.flags|=128,i=!0,na(o,!1),t.lanes=4194304)}else{if(!i)if(e=eu(a),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),na(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Ee)return et(t),null}else 2*Le()-o.renderingStartTime>So&&n!==1073741824&&(t.flags|=128,i=!0,na(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Le(),t.sibling=null,n=Pe.current,je(Pe,i?n&1|2:n&1),t):(et(t),null);case 22:case 23:return ym(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?Et&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function F4(e,t){switch(Xp(t),t.tag){case 1:return $t(t.type)&&Ws(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _o(),Ie(_t),Ie(it),lm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return am(t),null;case 13:if(Ie(Pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));ko()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ie(Pe),null;case 4:return _o(),null;case 10:return nm(t.type._context),null;case 22:case 23:return ym(),null;case 24:return null;default:return null}}var ts=!1,nt=!1,M4=typeof WeakSet=="function"?WeakSet:Set,J=null;function Ki(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){De(e,t,i)}else n.current=null}function Df(e,t,n){try{n()}catch(i){De(e,t,i)}}var Yv=!1;function Z4(e,t){if(bf=Bs,e=xb(),Kp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,u=0,d=0,c=e,p=null;t:for(;;){for(var m;c!==n||r!==0&&c.nodeType!==3||(l=a+r),c!==o||i!==0&&c.nodeType!==3||(s=a+i),c.nodeType===3&&(a+=c.nodeValue.length),(m=c.firstChild)!==null;)p=c,c=m;for(;;){if(c===e)break t;if(p===n&&++u===r&&(l=a),p===o&&++d===i&&(s=a),(m=c.nextSibling)!==null)break;c=p,p=c.parentNode}c=m}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(kf={focusedElem:e,selectionRange:n},Bs=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,w=h.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:en(t.type,g),w);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(k){De(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return h=Yv,Yv=!1,h}function wa(e,t,n){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var r=i=i.next;do{if((r.tag&e)===e){var o=r.destroy;r.destroy=void 0,o!==void 0&&Df(t,n,o)}r=r.next}while(r!==i)}}function Tu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function Lf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function hk(e){var t=e.alternate;t!==null&&(e.alternate=null,hk(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$n],delete t[La],delete t[$f],delete t[$4],delete t[S4])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function gk(e){return e.tag===5||e.tag===3||e.tag===4}function ey(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gk(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Uf(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=qs));else if(i!==4&&(e=e.child,e!==null))for(Uf(e,t,n),e=e.sibling;e!==null;)Uf(e,t,n),e=e.sibling}function Ff(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(Ff(e,t,n),e=e.sibling;e!==null;)Ff(e,t,n),e=e.sibling}var Ke=null,rn=!1;function ur(e,t,n){for(n=n.child;n!==null;)vk(e,t,n),n=n.sibling}function vk(e,t,n){if(Nn&&typeof Nn.onCommitFiberUnmount=="function")try{Nn.onCommitFiberUnmount(ju,n)}catch{}switch(n.tag){case 5:nt||Ki(n,t);case 6:var i=Ke,r=rn;Ke=null,ur(e,t,n),Ke=i,rn=r,Ke!==null&&(rn?(e=Ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ke.removeChild(n.stateNode));break;case 18:Ke!==null&&(rn?(e=Ke,n=n.stateNode,e.nodeType===8?md(e.parentNode,n):e.nodeType===1&&md(e,n),Oa(e)):md(Ke,n.stateNode));break;case 4:i=Ke,r=rn,Ke=n.stateNode.containerInfo,rn=!0,ur(e,t,n),Ke=i,rn=r;break;case 0:case 11:case 14:case 15:if(!nt&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){r=i=i.next;do{var o=r,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Df(n,t,a),r=r.next}while(r!==i)}ur(e,t,n);break;case 1:if(!nt&&(Ki(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(l){De(n,t,l)}ur(e,t,n);break;case 21:ur(e,t,n);break;case 22:n.mode&1?(nt=(i=nt)||n.memoizedState!==null,ur(e,t,n),nt=i):ur(e,t,n);break;default:ur(e,t,n)}}function ty(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new M4),t.forEach(function(i){var r=Q4.bind(null,e,i);n.has(i)||(n.add(i),i.then(r,r))})}}function Yt(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var r=n[i];try{var o=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:Ke=l.stateNode,rn=!1;break e;case 3:Ke=l.stateNode.containerInfo,rn=!0;break e;case 4:Ke=l.stateNode.containerInfo,rn=!0;break e}l=l.return}if(Ke===null)throw Error(F(160));vk(o,a,r),Ke=null,rn=!1;var s=r.alternate;s!==null&&(s.return=null),r.return=null}catch(u){De(r,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)yk(t,e),t=t.sibling}function yk(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Yt(t,e),vn(e),i&4){try{wa(3,e,e.return),Tu(3,e)}catch(g){De(e,e.return,g)}try{wa(5,e,e.return)}catch(g){De(e,e.return,g)}}break;case 1:Yt(t,e),vn(e),i&512&&n!==null&&Ki(n,n.return);break;case 5:if(Yt(t,e),vn(e),i&512&&n!==null&&Ki(n,n.return),e.flags&32){var r=e.stateNode;try{Ea(r,"")}catch(g){De(e,e.return,g)}}if(i&4&&(r=e.stateNode,r!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,l=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&F0(r,o),cf(l,a);var u=cf(l,o);for(a=0;a<s.length;a+=2){var d=s[a],c=s[a+1];d==="style"?H0(r,c):d==="dangerouslySetInnerHTML"?B0(r,c):d==="children"?Ea(r,c):Dp(r,d,c,u)}switch(l){case"input":of(r,o);break;case"textarea":M0(r,o);break;case"select":var p=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m!=null?Xi(r,!!o.multiple,m,!1):p!==!!o.multiple&&(o.defaultValue!=null?Xi(r,!!o.multiple,o.defaultValue,!0):Xi(r,!!o.multiple,o.multiple?[]:"",!1))}r[La]=o}catch(g){De(e,e.return,g)}}break;case 6:if(Yt(t,e),vn(e),i&4){if(e.stateNode===null)throw Error(F(162));r=e.stateNode,o=e.memoizedProps;try{r.nodeValue=o}catch(g){De(e,e.return,g)}}break;case 3:if(Yt(t,e),vn(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Oa(t.containerInfo)}catch(g){De(e,e.return,g)}break;case 4:Yt(t,e),vn(e);break;case 13:Yt(t,e),vn(e),r=e.child,r.flags&8192&&(o=r.memoizedState!==null,r.stateNode.isHidden=o,!o||r.alternate!==null&&r.alternate.memoizedState!==null||(gm=Le())),i&4&&ty(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(nt=(u=nt)||d,Yt(t,e),nt=u):Yt(t,e),vn(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(J=e,d=e.child;d!==null;){for(c=J=d;J!==null;){switch(p=J,m=p.child,p.tag){case 0:case 11:case 14:case 15:wa(4,p,p.return);break;case 1:Ki(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount=="function"){i=p,n=p.return;try{t=i,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(g){De(i,n,g)}}break;case 5:Ki(p,p.return);break;case 22:if(p.memoizedState!==null){ry(c);continue}}m!==null?(m.return=p,J=m):ry(c)}d=d.sibling}e:for(d=null,c=e;;){if(c.tag===5){if(d===null){d=c;try{r=c.stateNode,u?(o=r.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=c.stateNode,s=c.memoizedProps.style,a=s!=null&&s.hasOwnProperty("display")?s.display:null,l.style.display=V0("display",a))}catch(g){De(e,e.return,g)}}}else if(c.tag===6){if(d===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(g){De(e,e.return,g)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;d===c&&(d=null),c=c.return}d===c&&(d=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:Yt(t,e),vn(e),i&4&&ty(e);break;case 21:break;default:Yt(t,e),vn(e)}}function vn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(gk(n)){var i=n;break e}n=n.return}throw Error(F(160))}switch(i.tag){case 5:var r=i.stateNode;i.flags&32&&(Ea(r,""),i.flags&=-33);var o=ey(e);Ff(e,o,r);break;case 3:case 4:var a=i.stateNode.containerInfo,l=ey(e);Uf(e,l,a);break;default:throw Error(F(161))}}catch(s){De(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function B4(e,t,n){J=e,xk(e)}function xk(e,t,n){for(var i=(e.mode&1)!==0;J!==null;){var r=J,o=r.child;if(r.tag===22&&i){var a=r.memoizedState!==null||ts;if(!a){var l=r.alternate,s=l!==null&&l.memoizedState!==null||nt;l=ts;var u=nt;if(ts=a,(nt=s)&&!u)for(J=r;J!==null;)a=J,s=a.child,a.tag===22&&a.memoizedState!==null?iy(r):s!==null?(s.return=a,J=s):iy(r);for(;o!==null;)J=o,xk(o),o=o.sibling;J=r,ts=l,nt=u}ny(e)}else r.subtreeFlags&8772&&o!==null?(o.return=r,J=o):ny(e)}}function ny(e){for(;J!==null;){var t=J;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:nt||Tu(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!nt)if(n===null)i.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:en(t.type,n.memoizedProps);i.componentDidUpdate(r,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Fv(t,o,i);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Fv(t,a,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var c=d.dehydrated;c!==null&&Oa(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(F(163))}nt||t.flags&512&&Lf(t)}catch(p){De(t,t.return,p)}}if(t===e){J=null;break}if(n=t.sibling,n!==null){n.return=t.return,J=n;break}J=t.return}}function ry(e){for(;J!==null;){var t=J;if(t===e){J=null;break}var n=t.sibling;if(n!==null){n.return=t.return,J=n;break}J=t.return}}function iy(e){for(;J!==null;){var t=J;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Tu(4,t)}catch(s){De(t,n,s)}break;case 1:var i=t.stateNode;if(typeof i.componentDidMount=="function"){var r=t.return;try{i.componentDidMount()}catch(s){De(t,r,s)}}var o=t.return;try{Lf(t)}catch(s){De(t,o,s)}break;case 5:var a=t.return;try{Lf(t)}catch(s){De(t,a,s)}}}catch(s){De(t,t.return,s)}if(t===e){J=null;break}var l=t.sibling;if(l!==null){l.return=t.return,J=l;break}J=t.return}}var V4=Math.ceil,ru=nr.ReactCurrentDispatcher,mm=nr.ReactCurrentOwner,Ht=nr.ReactCurrentBatchConfig,he=0,Je=null,Me=null,Qe=0,Et=0,Qi=Br(0),Ve=0,Va=null,yi=0,Ru=0,hm=0,_a=null,bt=null,gm=0,So=1/0,Dn=null,iu=!1,Mf=null,Tr=null,ns=!1,Ir=null,ou=0,$a=0,Zf=null,Es=-1,Cs=0;function pt(){return he&6?Le():Es!==-1?Es:Es=Le()}function Rr(e){return e.mode&1?he&2&&Qe!==0?Qe&-Qe:N4.transition!==null?(Cs===0&&(Cs=rb()),Cs):(e=xe,e!==0||(e=window.event,e=e===void 0?16:cb(e.type)),e):1}function un(e,t,n,i){if(50<$a)throw $a=0,Zf=null,Error(F(185));al(e,n,i),(!(he&2)||e!==Je)&&(e===Je&&(!(he&2)&&(Ru|=n),Ve===4&&vr(e,Qe)),St(e,i),n===1&&he===0&&!(t.mode&1)&&(So=Le()+500,zu&&Vr()))}function St(e,t){var n=e.callbackNode;NE(e,t);var i=Zs(e,e===Je?Qe:0);if(i===0)n!==null&&pv(n),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(n!=null&&pv(n),t===1)e.tag===0?j4(oy.bind(null,e)):Eb(oy.bind(null,e)),w4(function(){!(he&6)&&Vr()}),n=null;else{switch(ib(i)){case 1:n=Zp;break;case 4:n=tb;break;case 16:n=Ms;break;case 536870912:n=nb;break;default:n=Ms}n=Nk(n,bk.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function bk(e,t){if(Es=-1,Cs=0,he&6)throw Error(F(327));var n=e.callbackNode;if(ro()&&e.callbackNode!==n)return null;var i=Zs(e,e===Je?Qe:0);if(i===0)return null;if(i&30||i&e.expiredLanes||t)t=au(e,i);else{t=i;var r=he;he|=2;var o=wk();(Je!==e||Qe!==t)&&(Dn=null,So=Le()+500,fi(e,t));do try{W4();break}catch(l){kk(e,l)}while(!0);tm(),ru.current=o,he=r,Me!==null?t=0:(Je=null,Qe=0,t=Ve)}if(t!==0){if(t===2&&(r=hf(e),r!==0&&(i=r,t=Bf(e,r))),t===1)throw n=Va,fi(e,0),vr(e,i),St(e,Le()),n;if(t===6)vr(e,i);else{if(r=e.current.alternate,!(i&30)&&!H4(r)&&(t=au(e,i),t===2&&(o=hf(e),o!==0&&(i=o,t=Bf(e,o))),t===1))throw n=Va,fi(e,0),vr(e,i),St(e,Le()),n;switch(e.finishedWork=r,e.finishedLanes=i,t){case 0:case 1:throw Error(F(345));case 2:Kr(e,bt,Dn);break;case 3:if(vr(e,i),(i&130023424)===i&&(t=gm+500-Le(),10<t)){if(Zs(e,0)!==0)break;if(r=e.suspendedLanes,(r&i)!==i){pt(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=_f(Kr.bind(null,e,bt,Dn),t);break}Kr(e,bt,Dn);break;case 4:if(vr(e,i),(i&4194240)===i)break;for(t=e.eventTimes,r=-1;0<i;){var a=31-sn(i);o=1<<a,a=t[a],a>r&&(r=a),i&=~o}if(i=r,i=Le()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*V4(i/1960))-i,10<i){e.timeoutHandle=_f(Kr.bind(null,e,bt,Dn),i);break}Kr(e,bt,Dn);break;case 5:Kr(e,bt,Dn);break;default:throw Error(F(329))}}}return St(e,Le()),e.callbackNode===n?bk.bind(null,e):null}function Bf(e,t){var n=_a;return e.current.memoizedState.isDehydrated&&(fi(e,t).flags|=256),e=au(e,t),e!==2&&(t=bt,bt=n,t!==null&&Vf(t)),e}function Vf(e){bt===null?bt=e:bt.push.apply(bt,e)}function H4(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var i=0;i<n.length;i++){var r=n[i],o=r.getSnapshot;r=r.value;try{if(!dn(o(),r))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function vr(e,t){for(t&=~hm,t&=~Ru,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-sn(t),i=1<<n;e[n]=-1,t&=~i}}function oy(e){if(he&6)throw Error(F(327));ro();var t=Zs(e,0);if(!(t&1))return St(e,Le()),null;var n=au(e,t);if(e.tag!==0&&n===2){var i=hf(e);i!==0&&(t=i,n=Bf(e,i))}if(n===1)throw n=Va,fi(e,0),vr(e,t),St(e,Le()),n;if(n===6)throw Error(F(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Kr(e,bt,Dn),St(e,Le()),null}function vm(e,t){var n=he;he|=1;try{return e(t)}finally{he=n,he===0&&(So=Le()+500,zu&&Vr())}}function xi(e){Ir!==null&&Ir.tag===0&&!(he&6)&&ro();var t=he;he|=1;var n=Ht.transition,i=xe;try{if(Ht.transition=null,xe=1,e)return e()}finally{xe=i,Ht.transition=n,he=t,!(he&6)&&Vr()}}function ym(){Et=Qi.current,Ie(Qi)}function fi(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,k4(n)),Me!==null)for(n=Me.return;n!==null;){var i=n;switch(Xp(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&Ws();break;case 3:_o(),Ie(_t),Ie(it),lm();break;case 5:am(i);break;case 4:_o();break;case 13:Ie(Pe);break;case 19:Ie(Pe);break;case 10:nm(i.type._context);break;case 22:case 23:ym()}n=n.return}if(Je=e,Me=e=Ar(e.current,null),Qe=Et=t,Ve=0,Va=null,hm=Ru=yi=0,bt=_a=null,Yr!==null){for(t=0;t<Yr.length;t++)if(n=Yr[t],i=n.interleaved,i!==null){n.interleaved=null;var r=i.next,o=n.pending;if(o!==null){var a=o.next;o.next=r,i.next=a}n.pending=i}Yr=null}return e}function kk(e,t){do{var n=Me;try{if(tm(),js.current=nu,tu){for(var i=Oe.memoizedState;i!==null;){var r=i.queue;r!==null&&(r.pending=null),i=i.next}tu=!1}if(vi=0,We=Ze=Oe=null,ka=!1,Ma=0,mm.current=null,n===null||n.return===null){Ve=1,Va=t,Me=null;break}e:{var o=e,a=n.return,l=n,s=t;if(t=Qe,l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,d=l,c=d.tag;if(!(d.mode&1)&&(c===0||c===11||c===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=qv(a);if(m!==null){m.flags&=-257,Wv(m,a,l,o,t),m.mode&1&&Hv(o,u,t),t=m,s=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(s),t.updateQueue=g}else h.add(s);break e}else{if(!(t&1)){Hv(o,u,t),xm();break e}s=Error(F(426))}}else if(Ee&&l.mode&1){var w=qv(a);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Wv(w,a,l,o,t),Yp($o(s,l));break e}}o=s=$o(s,l),Ve!==4&&(Ve=2),_a===null?_a=[o]:_a.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=ik(o,s,t);Uv(o,v);break e;case 1:l=s;var y=o.type,x=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Tr===null||!Tr.has(x)))){o.flags|=65536,t&=-t,o.lanes|=t;var k=ok(o,l,t);Uv(o,k);break e}}o=o.return}while(o!==null)}$k(n)}catch(I){t=I,Me===n&&n!==null&&(Me=n=n.return);continue}break}while(!0)}function wk(){var e=ru.current;return ru.current=nu,e===null?nu:e}function xm(){(Ve===0||Ve===3||Ve===2)&&(Ve=4),Je===null||!(yi&268435455)&&!(Ru&268435455)||vr(Je,Qe)}function au(e,t){var n=he;he|=2;var i=wk();(Je!==e||Qe!==t)&&(Dn=null,fi(e,t));do try{q4();break}catch(r){kk(e,r)}while(!0);if(tm(),he=n,ru.current=i,Me!==null)throw Error(F(261));return Je=null,Qe=0,Ve}function q4(){for(;Me!==null;)_k(Me)}function W4(){for(;Me!==null&&!yE();)_k(Me)}function _k(e){var t=jk(e.alternate,e,Et);e.memoizedProps=e.pendingProps,t===null?$k(e):Me=t,mm.current=null}function $k(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=F4(n,t),n!==null){n.flags&=32767,Me=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ve=6,Me=null;return}}else if(n=U4(n,t,Et),n!==null){Me=n;return}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);Ve===0&&(Ve=5)}function Kr(e,t,n){var i=xe,r=Ht.transition;try{Ht.transition=null,xe=1,G4(e,t,n,i)}finally{Ht.transition=r,xe=i}return null}function G4(e,t,n,i){do ro();while(Ir!==null);if(he&6)throw Error(F(327));n=e.finishedWork;var r=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(F(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(IE(e,o),e===Je&&(Me=Je=null,Qe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ns||(ns=!0,Nk(Ms,function(){return ro(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Ht.transition,Ht.transition=null;var a=xe;xe=1;var l=he;he|=4,mm.current=null,Z4(e,n),yk(n,e),m4(kf),Bs=!!bf,kf=bf=null,e.current=n,B4(n),xE(),he=l,xe=a,Ht.transition=o}else e.current=n;if(ns&&(ns=!1,Ir=e,ou=r),o=e.pendingLanes,o===0&&(Tr=null),wE(n.stateNode),St(e,Le()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)r=t[n],i(r.value,{componentStack:r.stack,digest:r.digest});if(iu)throw iu=!1,e=Mf,Mf=null,e;return ou&1&&e.tag!==0&&ro(),o=e.pendingLanes,o&1?e===Zf?$a++:($a=0,Zf=e):$a=0,Vr(),null}function ro(){if(Ir!==null){var e=ib(ou),t=Ht.transition,n=xe;try{if(Ht.transition=null,xe=16>e?16:e,Ir===null)var i=!1;else{if(e=Ir,Ir=null,ou=0,he&6)throw Error(F(331));var r=he;for(he|=4,J=e.current;J!==null;){var o=J,a=o.child;if(J.flags&16){var l=o.deletions;if(l!==null){for(var s=0;s<l.length;s++){var u=l[s];for(J=u;J!==null;){var d=J;switch(d.tag){case 0:case 11:case 15:wa(8,d,o)}var c=d.child;if(c!==null)c.return=d,J=c;else for(;J!==null;){d=J;var p=d.sibling,m=d.return;if(hk(d),d===u){J=null;break}if(p!==null){p.return=m,J=p;break}J=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var w=g.sibling;g.sibling=null,g=w}while(g!==null)}}J=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,J=a;else e:for(;J!==null;){if(o=J,o.flags&2048)switch(o.tag){case 0:case 11:case 15:wa(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,J=v;break e}J=o.return}}var y=e.current;for(J=y;J!==null;){a=J;var x=a.child;if(a.subtreeFlags&2064&&x!==null)x.return=a,J=x;else e:for(a=y;J!==null;){if(l=J,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Tu(9,l)}}catch(I){De(l,l.return,I)}if(l===a){J=null;break e}var k=l.sibling;if(k!==null){k.return=l.return,J=k;break e}J=l.return}}if(he=r,Vr(),Nn&&typeof Nn.onPostCommitFiberRoot=="function")try{Nn.onPostCommitFiberRoot(ju,e)}catch{}i=!0}return i}finally{xe=n,Ht.transition=t}}return!1}function ay(e,t,n){t=$o(n,t),t=ik(e,t,1),e=Or(e,t,1),t=pt(),e!==null&&(al(e,1,t),St(e,t))}function De(e,t,n){if(e.tag===3)ay(e,e,n);else for(;t!==null;){if(t.tag===3){ay(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Tr===null||!Tr.has(i))){e=$o(n,e),e=ok(t,e,1),t=Or(t,e,1),e=pt(),t!==null&&(al(t,1,e),St(t,e));break}}t=t.return}}function J4(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),t=pt(),e.pingedLanes|=e.suspendedLanes&n,Je===e&&(Qe&n)===n&&(Ve===4||Ve===3&&(Qe&130023424)===Qe&&500>Le()-gm?fi(e,0):hm|=n),St(e,t)}function Sk(e,t){t===0&&(e.mode&1?(t=ql,ql<<=1,!(ql&130023424)&&(ql=4194304)):t=1);var n=pt();e=Qn(e,t),e!==null&&(al(e,t,n),St(e,n))}function K4(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sk(e,n)}function Q4(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(F(314))}i!==null&&i.delete(t),Sk(e,n)}var jk;jk=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||_t.current)wt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return wt=!1,L4(e,t,n);wt=!!(e.flags&131072)}else wt=!1,Ee&&t.flags&1048576&&Cb(t,Ks,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Is(e,t),e=t.pendingProps;var r=bo(t,it.current);no(t,n),r=um(null,t,i,e,r,n);var o=cm();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$t(i)?(o=!0,Gs(t)):o=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,im(t),r.updater=Ou,t.stateNode=r,r._reactInternals=t,Cf(t,i,e,n),t=Of(null,t,i,!0,o,n)):(t.tag=0,Ee&&o&&Qp(t),ct(null,t,r,n),t=t.child),t;case 16:i=t.elementType;e:{switch(Is(e,t),e=t.pendingProps,r=i._init,i=r(i._payload),t.type=i,r=t.tag=Y4(i),e=en(i,e),r){case 0:t=Pf(null,t,i,e,n);break e;case 1:t=Kv(null,t,i,e,n);break e;case 11:t=Gv(null,t,i,e,n);break e;case 14:t=Jv(null,t,i,en(i.type,e),n);break e}throw Error(F(306,i,""))}return t;case 0:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:en(i,r),Pf(e,t,i,r,n);case 1:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:en(i,r),Kv(e,t,i,r,n);case 3:e:{if(uk(t),e===null)throw Error(F(387));i=t.pendingProps,o=t.memoizedState,r=o.element,Ab(e,t),Ys(t,i,null,n);var a=t.memoizedState;if(i=a.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){r=$o(Error(F(423)),t),t=Qv(e,t,i,n,r);break e}else if(i!==r){r=$o(Error(F(424)),t),t=Qv(e,t,i,n,r);break e}else for(Ct=Pr(t.stateNode.containerInfo.firstChild),Pt=t,Ee=!0,on=null,n=Tb(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ko(),i===r){t=Xn(e,t,n);break e}ct(e,t,i,n)}t=t.child}return t;case 5:return Db(t),e===null&&Nf(t),i=t.type,r=t.pendingProps,o=e!==null?e.memoizedProps:null,a=r.children,wf(i,r)?a=null:o!==null&&wf(i,o)&&(t.flags|=32),sk(e,t),ct(e,t,a,n),t.child;case 6:return e===null&&Nf(t),null;case 13:return ck(e,t,n);case 4:return om(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=wo(t,null,i,n):ct(e,t,i,n),t.child;case 11:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:en(i,r),Gv(e,t,i,r,n);case 7:return ct(e,t,t.pendingProps,n),t.child;case 8:return ct(e,t,t.pendingProps.children,n),t.child;case 12:return ct(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,r=t.pendingProps,o=t.memoizedProps,a=r.value,je(Qs,i._currentValue),i._currentValue=a,o!==null)if(dn(o.value,a)){if(o.children===r.children&&!_t.current){t=Xn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){a=o.child;for(var s=l.firstContext;s!==null;){if(s.context===i){if(o.tag===1){s=Hn(-1,n&-n),s.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?s.next=s:(s.next=d.next,d.next=s),u.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),If(o.return,n,t),l.lanes|=n;break}s=s.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(F(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),If(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}ct(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,i=t.pendingProps.children,no(t,n),r=Wt(r),i=i(r),t.flags|=1,ct(e,t,i,n),t.child;case 14:return i=t.type,r=en(i,t.pendingProps),r=en(i.type,r),Jv(e,t,i,r,n);case 15:return ak(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:en(i,r),Is(e,t),t.tag=1,$t(i)?(e=!0,Gs(t)):e=!1,no(t,n),rk(t,i,r),Cf(t,i,r,n),Of(null,t,i,!0,e,n);case 19:return dk(e,t,n);case 22:return lk(e,t,n)}throw Error(F(156,t.tag))};function Nk(e,t){return eb(e,t)}function X4(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vt(e,t,n,i){return new X4(e,t,n,i)}function bm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Y4(e){if(typeof e=="function")return bm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Up)return 11;if(e===Fp)return 14}return 2}function Ar(e,t){var n=e.alternate;return n===null?(n=Vt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function zs(e,t,n,i,r,o){var a=2;if(i=e,typeof e=="function")bm(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Mi:return pi(n.children,r,o,t);case Lp:a=8,r|=8;break;case Yd:return e=Vt(12,n,t,r|2),e.elementType=Yd,e.lanes=o,e;case ef:return e=Vt(13,n,t,r),e.elementType=ef,e.lanes=o,e;case tf:return e=Vt(19,n,t,r),e.elementType=tf,e.lanes=o,e;case D0:return Au(n,r,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case R0:a=10;break e;case A0:a=9;break e;case Up:a=11;break e;case Fp:a=14;break e;case pr:a=16,i=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=Vt(a,n,t,r),t.elementType=e,t.type=i,t.lanes=o,t}function pi(e,t,n,i){return e=Vt(7,e,i,t),e.lanes=n,e}function Au(e,t,n,i){return e=Vt(22,e,i,t),e.elementType=D0,e.lanes=n,e.stateNode={isHidden:!1},e}function wd(e,t,n){return e=Vt(6,e,null,t),e.lanes=n,e}function _d(e,t,n){return t=Vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function eC(e,t,n,i,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rd(0),this.expirationTimes=rd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rd(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function km(e,t,n,i,r,o,a,l,s){return e=new eC(e,t,n,l,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Vt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},im(o),e}function tC(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fi,key:i==null?null:""+i,children:e,containerInfo:t,implementation:n}}function Ik(e){if(!e)return Ur;e=e._reactInternals;e:{if(Ei(e)!==e||e.tag!==1)throw Error(F(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if($t(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(F(171))}if(e.tag===1){var n=e.type;if($t(n))return Ib(e,n,t)}return t}function Ek(e,t,n,i,r,o,a,l,s){return e=km(n,i,!0,e,r,o,a,l,s),e.context=Ik(null),n=e.current,i=pt(),r=Rr(n),o=Hn(i,r),o.callback=t??null,Or(n,o,r),e.current.lanes=r,al(e,r,i),St(e,i),e}function Du(e,t,n,i){var r=t.current,o=pt(),a=Rr(r);return n=Ik(n),t.context===null?t.context=n:t.pendingContext=n,t=Hn(o,a),t.payload={element:e},i=i===void 0?null:i,i!==null&&(t.callback=i),e=Or(r,t,a),e!==null&&(un(e,r,a,o),Ss(e,r,a)),a}function lu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function ly(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function wm(e,t){ly(e,t),(e=e.alternate)&&ly(e,t)}function nC(){return null}var Ck=typeof reportError=="function"?reportError:function(e){console.error(e)};function _m(e){this._internalRoot=e}Lu.prototype.render=_m.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(F(409));Du(e,t,null,null)};Lu.prototype.unmount=_m.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;xi(function(){Du(null,e,null,null)}),t[Kn]=null}};function Lu(e){this._internalRoot=e}Lu.prototype.unstable_scheduleHydration=function(e){if(e){var t=lb();e={blockedOn:null,target:e,priority:t};for(var n=0;n<gr.length&&t!==0&&t<gr[n].priority;n++);gr.splice(n,0,e),n===0&&ub(e)}};function $m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Uu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function sy(){}function rC(e,t,n,i,r){if(r){if(typeof i=="function"){var o=i;i=function(){var u=lu(a);o.call(u)}}var a=Ek(t,i,e,0,null,!1,!1,"",sy);return e._reactRootContainer=a,e[Kn]=a.current,Aa(e.nodeType===8?e.parentNode:e),xi(),a}for(;r=e.lastChild;)e.removeChild(r);if(typeof i=="function"){var l=i;i=function(){var u=lu(s);l.call(u)}}var s=km(e,0,!1,null,null,!1,!1,"",sy);return e._reactRootContainer=s,e[Kn]=s.current,Aa(e.nodeType===8?e.parentNode:e),xi(function(){Du(t,s,n,i)}),s}function Fu(e,t,n,i,r){var o=n._reactRootContainer;if(o){var a=o;if(typeof r=="function"){var l=r;r=function(){var s=lu(a);l.call(s)}}Du(t,a,e,r)}else a=rC(n,t,e,r,i);return lu(a)}ob=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=da(t.pendingLanes);n!==0&&(Bp(t,n|1),St(t,Le()),!(he&6)&&(So=Le()+500,Vr()))}break;case 13:xi(function(){var i=Qn(e,1);if(i!==null){var r=pt();un(i,e,1,r)}}),wm(e,1)}};Vp=function(e){if(e.tag===13){var t=Qn(e,134217728);if(t!==null){var n=pt();un(t,e,134217728,n)}wm(e,134217728)}};ab=function(e){if(e.tag===13){var t=Rr(e),n=Qn(e,t);if(n!==null){var i=pt();un(n,e,t,i)}wm(e,t)}};lb=function(){return xe};sb=function(e,t){var n=xe;try{return xe=e,t()}finally{xe=n}};ff=function(e,t,n){switch(t){case"input":if(of(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var r=Cu(i);if(!r)throw Error(F(90));U0(i),of(i,r)}}}break;case"textarea":M0(e,n);break;case"select":t=n.value,t!=null&&Xi(e,!!n.multiple,t,!1)}};G0=vm;J0=xi;var iC={usingClientEntryPoint:!1,Events:[sl,Hi,Cu,q0,W0,vm]},ra={findFiberByHostInstance:Xr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},oC={bundleType:ra.bundleType,version:ra.version,rendererPackageName:ra.rendererPackageName,rendererConfig:ra.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:nr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=X0(e),e===null?null:e.stateNode},findFiberByHostInstance:ra.findFiberByHostInstance||nC,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rs.isDisabled&&rs.supportsFiber)try{ju=rs.inject(oC),Nn=rs}catch{}}Rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=iC;Rt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!$m(t))throw Error(F(200));return tC(e,t,null,n)};Rt.createRoot=function(e,t){if(!$m(e))throw Error(F(299));var n=!1,i="",r=Ck;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(r=t.onRecoverableError)),t=km(e,1,!1,null,null,n,!1,i,r),e[Kn]=t.current,Aa(e.nodeType===8?e.parentNode:e),new _m(t)};Rt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(F(188)):(e=Object.keys(e).join(","),Error(F(268,e)));return e=X0(t),e=e===null?null:e.stateNode,e};Rt.flushSync=function(e){return xi(e)};Rt.hydrate=function(e,t,n){if(!Uu(t))throw Error(F(200));return Fu(null,e,t,!0,n)};Rt.hydrateRoot=function(e,t,n){if(!$m(e))throw Error(F(405));var i=n!=null&&n.hydratedSources||null,r=!1,o="",a=Ck;if(n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Ek(t,null,e,1,n??null,r,!1,o,a),e[Kn]=t.current,Aa(e),i)for(e=0;e<i.length;e++)n=i[e],r=n._getVersion,r=r(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new Lu(t)};Rt.render=function(e,t,n){if(!Uu(t))throw Error(F(200));return Fu(null,e,t,!1,n)};Rt.unmountComponentAtNode=function(e){if(!Uu(e))throw Error(F(40));return e._reactRootContainer?(xi(function(){Fu(null,null,e,!1,function(){e._reactRootContainer=null,e[Kn]=null})}),!0):!1};Rt.unstable_batchedUpdates=vm;Rt.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Uu(n))throw Error(F(200));if(e==null||e._reactInternals===void 0)throw Error(F(38));return Fu(e,t,n,!1,i)};Rt.version="18.3.1-next-f1338f8080-20240426";function zk(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zk)}catch(e){console.error(e)}}zk(),z0.exports=Rt;var aC=z0.exports,uy=aC;Qd.createRoot=uy.createRoot,Qd.hydrateRoot=uy.hydrateRoot;/**
41
+ * react-router v7.10.1
42
+ *
43
+ * Copyright (c) Remix Software Inc.
44
+ *
45
+ * This source code is licensed under the MIT license found in the
46
+ * LICENSE.md file in the root directory of this source tree.
47
+ *
48
+ * @license MIT
49
+ */var cy="popstate";function lC(e={}){function t(i,r){let{pathname:o,search:a,hash:l}=i.location;return Hf("",{pathname:o,search:a,hash:l},r.state&&r.state.usr||null,r.state&&r.state.key||"default")}function n(i,r){return typeof r=="string"?r:Ha(r)}return uC(t,n,null,e)}function Te(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Jt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function sC(){return Math.random().toString(36).substring(2,10)}function dy(e,t){return{usr:e.state,key:e.key,idx:t}}function Hf(e,t,n=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Fo(t):t,state:n,key:t&&t.key||i||sC()}}function Ha({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Fo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substring(i),e=e.substring(0,i)),e&&(t.pathname=e)}return t}function uC(e,t,n,i={}){let{window:r=document.defaultView,v5Compat:o=!1}=i,a=r.history,l="POP",s=null,u=d();u==null&&(u=0,a.replaceState({...a.state,idx:u},""));function d(){return(a.state||{idx:null}).idx}function c(){l="POP";let w=d(),v=w==null?null:w-u;u=w,s&&s({action:l,location:g.location,delta:v})}function p(w,v){l="PUSH";let y=Hf(g.location,w,v);u=d()+1;let x=dy(y,u),k=g.createHref(y);try{a.pushState(x,"",k)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;r.location.assign(k)}o&&s&&s({action:l,location:g.location,delta:1})}function m(w,v){l="REPLACE";let y=Hf(g.location,w,v);u=d();let x=dy(y,u),k=g.createHref(y);a.replaceState(x,"",k),o&&s&&s({action:l,location:g.location,delta:0})}function h(w){return cC(w)}let g={get action(){return l},get location(){return e(r,a)},listen(w){if(s)throw new Error("A history only accepts one active listener");return r.addEventListener(cy,c),s=w,()=>{r.removeEventListener(cy,c),s=null}},createHref(w){return t(r,w)},createURL:h,encodeLocation(w){let v=h(w);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:p,replace:m,go(w){return a.go(w)}};return g}function cC(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Te(n,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:Ha(e);return i=i.replace(/ $/,"%20"),!t&&i.startsWith("//")&&(i=n+i),new URL(i,n)}function Pk(e,t,n="/"){return dC(e,t,n,!1)}function dC(e,t,n,i){let r=typeof t=="string"?Fo(t):t,o=Yn(r.pathname||"/",n);if(o==null)return null;let a=Ok(e);fC(a);let l=null;for(let s=0;l==null&&s<a.length;++s){let u=_C(o);l=kC(a[s],u,i)}return l}function Ok(e,t=[],n=[],i="",r=!1){let o=(a,l,s=r,u)=>{let d={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:l,route:a};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(i)&&s)return;Te(d.relativePath.startsWith(i),`Absolute route path "${d.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(i.length)}let c=qn([i,d.relativePath]),p=n.concat(d);a.children&&a.children.length>0&&(Te(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),Ok(a.children,t,p,c,s)),!(a.path==null&&!a.index)&&t.push({path:c,score:xC(c,a.index),routesMeta:p})};return e.forEach((a,l)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,l);else for(let u of Tk(a.path))o(a,l,!0,u)}),t}function Tk(e){let t=e.split("/");if(t.length===0)return[];let[n,...i]=t,r=n.endsWith("?"),o=n.replace(/\?$/,"");if(i.length===0)return r?[o,""]:[o];let a=Tk(i.join("/")),l=[];return l.push(...a.map(s=>s===""?o:[o,s].join("/"))),r&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function fC(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:bC(t.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}var pC=/^:[\w-]+$/,mC=3,hC=2,gC=1,vC=10,yC=-2,fy=e=>e==="*";function xC(e,t){let n=e.split("/"),i=n.length;return n.some(fy)&&(i+=yC),t&&(i+=hC),n.filter(r=>!fy(r)).reduce((r,o)=>r+(pC.test(o)?mC:o===""?gC:vC),i)}function bC(e,t){return e.length===t.length&&e.slice(0,-1).every((i,r)=>i===t[r])?e[e.length-1]-t[t.length-1]:0}function kC(e,t,n=!1){let{routesMeta:i}=e,r={},o="/",a=[];for(let l=0;l<i.length;++l){let s=i[l],u=l===i.length-1,d=o==="/"?t:t.slice(o.length)||"/",c=su({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},d),p=s.route;if(!c&&u&&n&&!i[i.length-1].route.index&&(c=su({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},d)),!c)return null;Object.assign(r,c.params),a.push({params:r,pathname:qn([o,c.pathname]),pathnameBase:IC(qn([o,c.pathnameBase])),route:p}),c.pathnameBase!=="/"&&(o=qn([o,c.pathnameBase]))}return a}function su(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,i]=wC(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let o=r[0],a=o.replace(/(.)\/+$/,"$1"),l=r.slice(1);return{params:i.reduce((u,{paramName:d,isOptional:c},p)=>{if(d==="*"){let h=l[p]||"";a=o.slice(0,o.length-h.length).replace(/(.)\/+$/,"$1")}const m=l[p];return c&&!m?u[d]=void 0:u[d]=(m||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function wC(e,t=!1,n=!0){Jt(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=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,s)=>(i.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),r+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":e!==""&&e!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),i]}function _C(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Jt(!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 Yn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&i!=="/"?null:e.slice(n)||"/"}var $C=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,SC=e=>$C.test(e);function jC(e,t="/"){let{pathname:n,search:i="",hash:r=""}=typeof e=="string"?Fo(e):e,o;if(n)if(SC(n))o=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),Jt(!1,`Pathnames cannot have embedded double slashes - normalizing ${a} -> ${n}`)}n.startsWith("/")?o=py(n.substring(1),"/"):o=py(n,t)}else o=t;return{pathname:o,search:EC(i),hash:CC(r)}}function py(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function $d(e,t,n,i){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function NC(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Rk(e){let t=NC(e);return t.map((n,i)=>i===t.length-1?n.pathname:n.pathnameBase)}function Ak(e,t,n,i=!1){let r;typeof e=="string"?r=Fo(e):(r={...e},Te(!r.pathname||!r.pathname.includes("?"),$d("?","pathname","search",r)),Te(!r.pathname||!r.pathname.includes("#"),$d("#","pathname","hash",r)),Te(!r.search||!r.search.includes("#"),$d("#","search","hash",r)));let o=e===""||r.pathname==="",a=o?"/":r.pathname,l;if(a==null)l=n;else{let c=t.length-1;if(!i&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),c-=1;r.pathname=p.join("/")}l=c>=0?t[c]:"/"}let s=jC(r,l),u=a&&a!=="/"&&a.endsWith("/"),d=(o||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||d)&&(s.pathname+="/"),s}var qn=e=>e.join("/").replace(/\/\/+/g,"/"),IC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),EC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,CC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function zC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function PC(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Dk=["POST","PUT","PATCH","DELETE"];new Set(Dk);var OC=["GET",...Dk];new Set(OC);var Mo=S.createContext(null);Mo.displayName="DataRouter";var Mu=S.createContext(null);Mu.displayName="DataRouterState";S.createContext(!1);var Lk=S.createContext({isTransitioning:!1});Lk.displayName="ViewTransition";var TC=S.createContext(new Map);TC.displayName="Fetchers";var RC=S.createContext(null);RC.displayName="Await";var fn=S.createContext(null);fn.displayName="Navigation";var cl=S.createContext(null);cl.displayName="Location";var En=S.createContext({outlet:null,matches:[],isDataRoute:!1});En.displayName="Route";var Sm=S.createContext(null);Sm.displayName="RouteError";function AC(e,{relative:t}={}){Te(dl(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:i}=S.useContext(fn),{hash:r,pathname:o,search:a}=fl(e,{relative:t}),l=o;return n!=="/"&&(l=o==="/"?n:qn([n,o])),i.createHref({pathname:l,search:a,hash:r})}function dl(){return S.useContext(cl)!=null}function Cn(){return Te(dl(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(cl).location}var Uk="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Fk(e){S.useContext(fn).static||S.useLayoutEffect(e)}function jm(){let{isDataRoute:e}=S.useContext(En);return e?JC():DC()}function DC(){Te(dl(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(Mo),{basename:t,navigator:n}=S.useContext(fn),{matches:i}=S.useContext(En),{pathname:r}=Cn(),o=JSON.stringify(Rk(i)),a=S.useRef(!1);return Fk(()=>{a.current=!0}),S.useCallback((s,u={})=>{if(Jt(a.current,Uk),!a.current)return;if(typeof s=="number"){n.go(s);return}let d=Ak(s,JSON.parse(o),r,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:qn([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,o,r,e])}S.createContext(null);function Mk(){let{matches:e}=S.useContext(En),t=e[e.length-1];return t?t.params:{}}function fl(e,{relative:t}={}){let{matches:n}=S.useContext(En),{pathname:i}=Cn(),r=JSON.stringify(Rk(n));return S.useMemo(()=>Ak(e,JSON.parse(r),i,t==="path"),[e,r,i,t])}function LC(e,t){return Zk(e,t)}function Zk(e,t,n,i,r){var y;Te(dl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=S.useContext(fn),{matches:a}=S.useContext(En),l=a[a.length-1],s=l?l.params:{},u=l?l.pathname:"/",d=l?l.pathnameBase:"/",c=l&&l.route;{let x=c&&c.path||"";Bk(u,!c||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${x}">) 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.
50
+
51
+ Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let p=Cn(),m;if(t){let x=typeof t=="string"?Fo(t):t;Te(d==="/"||((y=x.pathname)==null?void 0:y.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${x.pathname}" was given in the \`location\` prop.`),m=x}else m=p;let h=m.pathname||"/",g=h;if(d!=="/"){let x=d.replace(/^\//,"").split("/");g="/"+h.replace(/^\//,"").split("/").slice(x.length).join("/")}let w=Pk(e,{pathname:g});Jt(c||w!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),Jt(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.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.`);let v=BC(w&&w.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:qn([d,o.encodeLocation?o.encodeLocation(x.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?d:qn([d,o.encodeLocation?o.encodeLocation(x.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathnameBase])})),a,n,i,r);return t&&v?S.createElement(cl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...m},navigationType:"POP"}},v):v}function UC(){let e=GC(),t=zC(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:i},o={padding:"2px 4px",backgroundColor:i},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:o},"ErrorBoundary")," or"," ",S.createElement("code",{style:o},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:r},n):null,a)}var FC=S.createElement(UC,null),MC=class extends S.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.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?S.createElement(En.Provider,{value:this.props.routeContext},S.createElement(Sm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function ZC({routeContext:e,match:t,children:n}){let i=S.useContext(Mo);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(En.Provider,{value:e},n)}function BC(e,t=[],n=null,i=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=n==null?void 0:n.errors;if(a!=null){let d=o.findIndex(c=>c.route.id&&(a==null?void 0:a[c.route.id])!==void 0);Te(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,d+1))}let l=!1,s=-1;if(n)for(let d=0;d<o.length;d++){let c=o[d];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(s=d),c.route.id){let{loaderData:p,errors:m}=n,h=c.route.loader&&!p.hasOwnProperty(c.route.id)&&(!m||m[c.route.id]===void 0);if(c.route.lazy||h){l=!0,s>=0?o=o.slice(0,s+1):o=[o[0]];break}}}let u=n&&i?(d,c)=>{var p,m;i(d,{location:n.location,params:((m=(p=n.matches)==null?void 0:p[0])==null?void 0:m.params)??{},unstable_pattern:PC(n.matches),errorInfo:c})}:void 0;return o.reduceRight((d,c,p)=>{let m,h=!1,g=null,w=null;n&&(m=a&&c.route.id?a[c.route.id]:void 0,g=c.route.errorElement||FC,l&&(s<0&&p===0?(Bk("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,w=null):s===p&&(h=!0,w=c.route.hydrateFallbackElement||null)));let v=t.concat(o.slice(0,p+1)),y=()=>{let x;return m?x=g:h?x=w:c.route.Component?x=S.createElement(c.route.Component,null):c.route.element?x=c.route.element:x=d,S.createElement(ZC,{match:c,routeContext:{outlet:d,matches:v,isDataRoute:n!=null},children:x})};return n&&(c.route.ErrorBoundary||c.route.errorElement||p===0)?S.createElement(MC,{location:n.location,revalidation:n.revalidation,component:g,error:m,children:y(),routeContext:{outlet:null,matches:v,isDataRoute:!0},onError:u}):y()},null)}function Nm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function VC(e){let t=S.useContext(Mo);return Te(t,Nm(e)),t}function HC(e){let t=S.useContext(Mu);return Te(t,Nm(e)),t}function qC(e){let t=S.useContext(En);return Te(t,Nm(e)),t}function Im(e){let t=qC(e),n=t.matches[t.matches.length-1];return Te(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function WC(){return Im("useRouteId")}function GC(){var i;let e=S.useContext(Sm),t=HC("useRouteError"),n=Im("useRouteError");return e!==void 0?e:(i=t.errors)==null?void 0:i[n]}function JC(){let{router:e}=VC("useNavigate"),t=Im("useNavigate"),n=S.useRef(!1);return Fk(()=>{n.current=!0}),S.useCallback(async(r,o={})=>{Jt(n.current,Uk),n.current&&(typeof r=="number"?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))},[e,t])}var my={};function Bk(e,t,n){!t&&!my[e]&&(my[e]=!0,Jt(!1,n))}S.memo(KC);function KC({routes:e,future:t,state:n,unstable_onError:i}){return Zk(e,void 0,n,i,t)}function Rn(e){Te(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function QC({basename:e="/",children:t=null,location:n,navigationType:i="POP",navigator:r,static:o=!1,unstable_useTransitions:a}){Te(!dl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),s=S.useMemo(()=>({basename:l,navigator:r,static:o,unstable_useTransitions:a,future:{}}),[l,r,o,a]);typeof n=="string"&&(n=Fo(n));let{pathname:u="/",search:d="",hash:c="",state:p=null,key:m="default"}=n,h=S.useMemo(()=>{let g=Yn(u,l);return g==null?null:{location:{pathname:g,search:d,hash:c,state:p,key:m},navigationType:i}},[l,u,d,c,p,m,i]);return Jt(h!=null,`<Router basename="${l}"> is not able to match the URL "${u}${d}${c}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:S.createElement(fn.Provider,{value:s},S.createElement(cl.Provider,{children:t,value:h}))}function hy({children:e,location:t}){return LC(qf(e),t)}function qf(e,t=[]){let n=[];return S.Children.forEach(e,(i,r)=>{if(!S.isValidElement(i))return;let o=[...t,r];if(i.type===S.Fragment){n.push.apply(n,qf(i.props.children,o));return}Te(i.type===Rn,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Te(!i.props.index||!i.props.children,"An index route cannot have child routes.");let a={id:i.props.id||o.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(a.children=qf(i.props.children,o)),n.push(a)}),n}var Ps="get",Os="application/x-www-form-urlencoded";function Zu(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function XC(e){return Zu(e)&&e.tagName.toLowerCase()==="button"}function YC(e){return Zu(e)&&e.tagName.toLowerCase()==="form"}function ez(e){return Zu(e)&&e.tagName.toLowerCase()==="input"}function tz(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function nz(e,t){return e.button===0&&(!t||t==="_self")&&!tz(e)}function Wf(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let i=e[n];return t.concat(Array.isArray(i)?i.map(r=>[n,r]):[[n,i]])},[]))}function rz(e,t){let n=Wf(e);return t&&t.forEach((i,r)=>{n.has(r)||t.getAll(r).forEach(o=>{n.append(r,o)})}),n}var is=null;function iz(){if(is===null)try{new FormData(document.createElement("form"),0),is=!1}catch{is=!0}return is}var oz=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Sd(e){return e!=null&&!oz.has(e)?(Jt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Os}"`),null):e}function az(e,t){let n,i,r,o,a;if(YC(e)){let l=e.getAttribute("action");i=l?Yn(l,t):null,n=e.getAttribute("method")||Ps,r=Sd(e.getAttribute("enctype"))||Os,o=new FormData(e)}else if(XC(e)||ez(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||l.getAttribute("action");if(i=s?Yn(s,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||Ps,r=Sd(e.getAttribute("formenctype"))||Sd(l.getAttribute("enctype"))||Os,o=new FormData(l,e),!iz()){let{name:u,type:d,value:c}=e;if(d==="image"){let p=u?`${u}.`:"";o.append(`${p}x`,"0"),o.append(`${p}y`,"0")}else u&&o.append(u,c)}}else{if(Zu(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ps,i=null,r=Os,a=e}return o&&r==="text/plain"&&(a=o,o=void 0),{action:i,method:n.toLowerCase(),encType:r,formData:o,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Em(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function lz(e,t,n){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return i.pathname==="/"?i.pathname=`_root.${n}`:t&&Yn(i.pathname,t)==="/"?i.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${n}`,i}async function sz(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function uz(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 cz(e,t,n){let i=await Promise.all(e.map(async r=>{let o=t.routes[r.route.id];if(o){let a=await sz(o,n);return a.links?a.links():[]}return[]}));return mz(i.flat(1).filter(uz).filter(r=>r.rel==="stylesheet"||r.rel==="preload").map(r=>r.rel==="stylesheet"?{...r,rel:"prefetch",as:"style"}:{...r,rel:"prefetch"}))}function gy(e,t,n,i,r,o){let a=(s,u)=>n[u]?s.route.id!==n[u].route.id:!0,l=(s,u)=>{var d;return n[u].pathname!==s.pathname||((d=n[u].route.path)==null?void 0:d.endsWith("*"))&&n[u].params["*"]!==s.params["*"]};return o==="assets"?t.filter((s,u)=>a(s,u)||l(s,u)):o==="data"?t.filter((s,u)=>{var c;let d=i.routes[s.route.id];if(!d||!d.hasLoader)return!1;if(a(s,u)||l(s,u))return!0;if(s.route.shouldRevalidate){let p=s.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:((c=n[0])==null?void 0:c.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function dz(e,t,{includeHydrateFallback:n}={}){return fz(e.map(i=>{let r=t.routes[i.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o}).flat(1))}function fz(e){return[...new Set(e)]}function pz(e){let t={},n=Object.keys(e).sort();for(let i of n)t[i]=e[i];return t}function mz(e,t){let n=new Set;return new Set(t),e.reduce((i,r)=>{let o=JSON.stringify(pz(r));return n.has(o)||(n.add(o),i.push({key:o,link:r})),i},[])}function Vk(){let e=S.useContext(Mo);return Em(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function hz(){let e=S.useContext(Mu);return Em(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Cm=S.createContext(void 0);Cm.displayName="FrameworkContext";function Hk(){let e=S.useContext(Cm);return Em(e,"You must render this element inside a <HydratedRouter> element"),e}function gz(e,t){let n=S.useContext(Cm),[i,r]=S.useState(!1),[o,a]=S.useState(!1),{onFocus:l,onBlur:s,onMouseEnter:u,onMouseLeave:d,onTouchStart:c}=t,p=S.useRef(null);S.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let g=v=>{v.forEach(y=>{a(y.isIntersecting)})},w=new IntersectionObserver(g,{threshold:.5});return p.current&&w.observe(p.current),()=>{w.disconnect()}}},[e]),S.useEffect(()=>{if(i){let g=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(g)}}},[i]);let m=()=>{r(!0)},h=()=>{r(!1),a(!1)};return n?e!=="intent"?[o,p,{}]:[o,p,{onFocus:ia(l,m),onBlur:ia(s,h),onMouseEnter:ia(u,m),onMouseLeave:ia(d,h),onTouchStart:ia(c,m)}]:[!1,p,{}]}function ia(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function vz({page:e,...t}){let{router:n}=Vk(),i=S.useMemo(()=>Pk(n.routes,e,n.basename),[n.routes,e,n.basename]);return i?S.createElement(xz,{page:e,matches:i,...t}):null}function yz(e){let{manifest:t,routeModules:n}=Hk(),[i,r]=S.useState([]);return S.useEffect(()=>{let o=!1;return cz(e,t,n).then(a=>{o||r(a)}),()=>{o=!0}},[e,t,n]),i}function xz({page:e,matches:t,...n}){let i=Cn(),{manifest:r,routeModules:o}=Hk(),{basename:a}=Vk(),{loaderData:l,matches:s}=hz(),u=S.useMemo(()=>gy(e,t,s,r,i,"data"),[e,t,s,r,i]),d=S.useMemo(()=>gy(e,t,s,r,i,"assets"),[e,t,s,r,i]),c=S.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let h=new Set,g=!1;if(t.forEach(v=>{var x;let y=r.routes[v.route.id];!y||!y.hasLoader||(!u.some(k=>k.route.id===v.route.id)&&v.route.id in l&&((x=o[v.route.id])!=null&&x.shouldRevalidate)||y.hasClientLoader?g=!0:h.add(v.route.id))}),h.size===0)return[];let w=lz(e,a,"data");return g&&h.size>0&&w.searchParams.set("_routes",t.filter(v=>h.has(v.route.id)).map(v=>v.route.id).join(",")),[w.pathname+w.search]},[a,l,i,r,u,t,e,o]),p=S.useMemo(()=>dz(d,r),[d,r]),m=yz(d);return S.createElement(S.Fragment,null,c.map(h=>S.createElement("link",{key:h,rel:"prefetch",as:"fetch",href:h,...n})),p.map(h=>S.createElement("link",{key:h,rel:"modulepreload",href:h,...n})),m.map(({key:h,link:g})=>S.createElement("link",{key:h,nonce:n.nonce,...g})))}function bz(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var qk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{qk&&(window.__reactRouterVersion="7.10.1")}catch{}function kz({basename:e,children:t,unstable_useTransitions:n,window:i}){let r=S.useRef();r.current==null&&(r.current=lC({window:i,v5Compat:!0}));let o=r.current,[a,l]=S.useState({action:o.action,location:o.location}),s=S.useCallback(u=>{n===!1?l(u):S.startTransition(()=>l(u))},[n]);return S.useLayoutEffect(()=>o.listen(s),[o,s]),S.createElement(QC,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:o,unstable_useTransitions:n===!0})}var Wk=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jo=S.forwardRef(function({onClick:t,discover:n="render",prefetch:i="none",relative:r,reloadDocument:o,replace:a,state:l,target:s,to:u,preventScrollReset:d,viewTransition:c,...p},m){let{basename:h,unstable_useTransitions:g}=S.useContext(fn),w=typeof u=="string"&&Wk.test(u),v,y=!1;if(typeof u=="string"&&w&&(v=u,qk))try{let _=new URL(window.location.href),L=u.startsWith("//")?new URL(_.protocol+u):new URL(u),B=Yn(L.pathname,h);L.origin===_.origin&&B!=null?u=B+L.search+L.hash:y=!0}catch{Jt(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=AC(u,{relative:r}),[k,I,N]=gz(i,p),P=$z(u,{replace:a,state:l,target:s,preventScrollReset:d,relative:r,viewTransition:c,unstable_useTransitions:g});function A(_){t&&t(_),_.defaultPrevented||P(_)}let R=S.createElement("a",{...p,...N,href:v||x,onClick:y||o?t:A,ref:bz(m,I),target:s,"data-discover":!w&&n==="render"?"true":void 0});return k&&!w?S.createElement(S.Fragment,null,R,S.createElement(vz,{page:x})):R});jo.displayName="Link";var Gf=S.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:i="",end:r=!1,style:o,to:a,viewTransition:l,children:s,...u},d){let c=fl(a,{relative:u.relative}),p=Cn(),m=S.useContext(Mu),{navigator:h,basename:g}=S.useContext(fn),w=m!=null&&Cz(c)&&l===!0,v=h.encodeLocation?h.encodeLocation(c).pathname:c.pathname,y=p.pathname,x=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;n||(y=y.toLowerCase(),x=x?x.toLowerCase():null,v=v.toLowerCase()),x&&g&&(x=Yn(x,g)||x);const k=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let I=y===v||!r&&y.startsWith(v)&&y.charAt(k)==="/",N=x!=null&&(x===v||!r&&x.startsWith(v)&&x.charAt(v.length)==="/"),P={isActive:I,isPending:N,isTransitioning:w},A=I?t:void 0,R;typeof i=="function"?R=i(P):R=[i,I?"active":null,N?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let _=typeof o=="function"?o(P):o;return S.createElement(jo,{...u,"aria-current":A,className:R,ref:d,style:_,to:a,viewTransition:l},typeof s=="function"?s(P):s)});Gf.displayName="NavLink";var wz=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:i,replace:r,state:o,method:a=Ps,action:l,onSubmit:s,relative:u,preventScrollReset:d,viewTransition:c,...p},m)=>{let{unstable_useTransitions:h}=S.useContext(fn),g=Iz(),w=Ez(l,{relative:u}),v=a.toLowerCase()==="get"?"get":"post",y=typeof l=="string"&&Wk.test(l),x=k=>{if(s&&s(k),k.defaultPrevented)return;k.preventDefault();let I=k.nativeEvent.submitter,N=(I==null?void 0:I.getAttribute("formmethod"))||a,P=()=>g(I||k.currentTarget,{fetcherKey:t,method:N,navigate:n,replace:r,state:o,relative:u,preventScrollReset:d,viewTransition:c});h&&n!==!1?S.startTransition(()=>P()):P()};return S.createElement("form",{ref:m,method:v,action:w,onSubmit:i?s:x,...p,"data-discover":!y&&e==="render"?"true":void 0})});wz.displayName="Form";function _z(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gk(e){let t=S.useContext(Mo);return Te(t,_z(e)),t}function $z(e,{target:t,replace:n,state:i,preventScrollReset:r,relative:o,viewTransition:a,unstable_useTransitions:l}={}){let s=jm(),u=Cn(),d=fl(e,{relative:o});return S.useCallback(c=>{if(nz(c,t)){c.preventDefault();let p=n!==void 0?n:Ha(u)===Ha(d),m=()=>s(e,{replace:p,state:i,preventScrollReset:r,relative:o,viewTransition:a});l?S.startTransition(()=>m()):m()}},[u,s,d,n,i,t,e,r,o,a,l])}function Sz(e){Jt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=S.useRef(Wf(e)),n=S.useRef(!1),i=Cn(),r=S.useMemo(()=>rz(i.search,n.current?null:t.current),[i.search]),o=jm(),a=S.useCallback((l,s)=>{const u=Wf(typeof l=="function"?l(new URLSearchParams(r)):l);n.current=!0,o("?"+u,s)},[o,r]);return[r,a]}var jz=0,Nz=()=>`__${String(++jz)}__`;function Iz(){let{router:e}=Gk("useSubmit"),{basename:t}=S.useContext(fn),n=WC(),i=e.fetch,r=e.navigate;return S.useCallback(async(o,a={})=>{let{action:l,method:s,encType:u,formData:d,body:c}=az(o,t);if(a.navigate===!1){let p=a.fetcherKey||Nz();await i(p,n,a.action||l,{preventScrollReset:a.preventScrollReset,formData:d,body:c,formMethod:a.method||s,formEncType:a.encType||u,flushSync:a.flushSync})}else await r(a.action||l,{preventScrollReset:a.preventScrollReset,formData:d,body:c,formMethod:a.method||s,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[i,r,t,n])}function Ez(e,{relative:t}={}){let{basename:n}=S.useContext(fn),i=S.useContext(En);Te(i,"useFormAction must be used inside a RouteContext");let[r]=i.matches.slice(-1),o={...fl(e||".",{relative:t})},a=Cn();if(e==null){o.search=a.search;let l=new URLSearchParams(o.search),s=l.getAll("index");if(s.some(d=>d==="")){l.delete("index"),s.filter(c=>c).forEach(c=>l.append("index",c));let d=l.toString();o.search=d?`?${d}`:""}}return(!e||e===".")&&r.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:qn([n,o.pathname])),Ha(o)}function Cz(e,{relative:t}={}){let n=S.useContext(Lk);Te(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Gk("useViewTransitionState"),r=fl(e,{relative:t});if(!n.isTransitioning)return!1;let o=Yn(n.currentLocation.pathname,i)||n.currentLocation.pathname,a=Yn(n.nextLocation.pathname,i)||n.nextLocation.pathname;return su(r.pathname,a)!=null||su(r.pathname,o)!=null}var Zo=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(){}},zz={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},yr,Cp,u0,Pz=(u0=class{constructor(){X(this,yr,zz);X(this,Cp,!1)}setTimeoutProvider(e){W(this,yr,e)}setTimeout(e,t){return j(this,yr).setTimeout(e,t)}clearTimeout(e){j(this,yr).clearTimeout(e)}setInterval(e,t){return j(this,yr).setInterval(e,t)}clearInterval(e){j(this,yr).clearInterval(e)}},yr=new WeakMap,Cp=new WeakMap,u0),ti=new Pz;function Oz(e){setTimeout(e,0)}var bi=typeof window>"u"||"Deno"in globalThis;function dt(){}function Tz(e,t){return typeof e=="function"?e(t):e}function Jf(e){return typeof e=="number"&&e>=0&&e!==1/0}function Jk(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Dr(e,t){return typeof e=="function"?e(t):e}function Ft(e,t){return typeof e=="function"?e(t):e}function vy(e,t){const{type:n="all",exact:i,fetchStatus:r,predicate:o,queryKey:a,stale:l}=e;if(a){if(i){if(t.queryHash!==zm(a,t.options))return!1}else if(!qa(t.queryKey,a))return!1}if(n!=="all"){const s=t.isActive();if(n==="active"&&!s||n==="inactive"&&s)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||r&&r!==t.state.fetchStatus||o&&!o(t))}function yy(e,t){const{exact:n,status:i,predicate:r,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(ki(t.options.mutationKey)!==ki(o))return!1}else if(!qa(t.options.mutationKey,o))return!1}return!(i&&t.state.status!==i||r&&!r(t))}function zm(e,t){return((t==null?void 0:t.queryKeyHashFn)||ki)(e)}function ki(e){return JSON.stringify(e,(t,n)=>Kf(n)?Object.keys(n).sort().reduce((i,r)=>(i[r]=n[r],i),{}):n)}function qa(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>qa(e[n],t[n])):!1}var Rz=Object.prototype.hasOwnProperty;function Kk(e,t){if(e===t)return e;const n=xy(e)&&xy(t);if(!n&&!(Kf(e)&&Kf(t)))return t;const r=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),a=o.length,l=n?new Array(a):{};let s=0;for(let u=0;u<a;u++){const d=n?u:o[u],c=e[d],p=t[d];if(c===p){l[d]=c,(n?u<r:Rz.call(e,d))&&s++;continue}if(c===null||p===null||typeof c!="object"||typeof p!="object"){l[d]=p;continue}const m=Kk(c,p);l[d]=m,m===c&&s++}return r===a&&s===r?e:l}function uu(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function xy(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Kf(e){if(!by(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!by(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function by(e){return Object.prototype.toString.call(e)==="[object Object]"}function Az(e){return new Promise(t=>{ti.setTimeout(t,e)})}function Qf(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Kk(e,t):t}function Dz(e,t,n=0){const i=[...e,t];return n&&i.length>n?i.slice(1):i}function Lz(e,t,n=0){const i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var Pm=Symbol();function Qk(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Pm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Xk(e,t){return typeof e=="function"?e(...t):!!e}var ri,xr,ao,c0,Uz=(c0=class extends Zo{constructor(){super();X(this,ri);X(this,xr);X(this,ao);W(this,ao,t=>{if(!bi&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){j(this,xr)||this.setEventListener(j(this,ao))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,xr))==null||t.call(this),W(this,xr,void 0))}setEventListener(t){var n;W(this,ao,t),(n=j(this,xr))==null||n.call(this),W(this,xr,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){j(this,ri)!==t&&(W(this,ri,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof j(this,ri)=="boolean"?j(this,ri):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ri=new WeakMap,xr=new WeakMap,ao=new WeakMap,c0),Om=new Uz;function Xf(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});n.status="pending",n.catch(()=>{});function i(r){Object.assign(n,r),delete n.resolve,delete n.reject}return n.resolve=r=>{i({status:"fulfilled",value:r}),e(r)},n.reject=r=>{i({status:"rejected",reason:r}),t(r)},n}var Fz=Oz;function Mz(){let e=[],t=0,n=l=>{l()},i=l=>{l()},r=Fz;const o=l=>{t?e.push(l):r(()=>{n(l)})},a=()=>{const l=e;e=[],l.length&&r(()=>{i(()=>{l.forEach(s=>{n(s)})})})};return{batch:l=>{let s;t++;try{s=l()}finally{t--,t||a()}return s},batchCalls:l=>(...s)=>{o(()=>{l(...s)})},schedule:o,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{i=l},setScheduler:l=>{r=l}}}var Be=Mz(),lo,br,so,d0,Zz=(d0=class extends Zo{constructor(){super();X(this,lo,!0);X(this,br);X(this,so);W(this,so,t=>{if(!bi&&window.addEventListener){const n=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){j(this,br)||this.setEventListener(j(this,so))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,br))==null||t.call(this),W(this,br,void 0))}setEventListener(t){var n;W(this,so,t),(n=j(this,br))==null||n.call(this),W(this,br,t(this.setOnline.bind(this)))}setOnline(t){j(this,lo)!==t&&(W(this,lo,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return j(this,lo)}},lo=new WeakMap,br=new WeakMap,so=new WeakMap,d0),cu=new Zz;function Bz(e){return Math.min(1e3*2**e,3e4)}function Yk(e){return(e??"online")==="online"?cu.isOnline():!0}var Yf=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ew(e){let t=!1,n=0,i;const r=Xf(),o=()=>r.status!=="pending",a=g=>{var w;if(!o()){const v=new Yf(g);p(v),(w=e.onCancel)==null||w.call(e,v)}},l=()=>{t=!0},s=()=>{t=!1},u=()=>Om.isFocused()&&(e.networkMode==="always"||cu.isOnline())&&e.canRun(),d=()=>Yk(e.networkMode)&&e.canRun(),c=g=>{o()||(i==null||i(),r.resolve(g))},p=g=>{o()||(i==null||i(),r.reject(g))},m=()=>new Promise(g=>{var w;i=v=>{(o()||u())&&g(v)},(w=e.onPause)==null||w.call(e)}).then(()=>{var g;i=void 0,o()||(g=e.onContinue)==null||g.call(e)}),h=()=>{if(o())return;let g;const w=n===0?e.initialPromise:void 0;try{g=w??e.fn()}catch(v){g=Promise.reject(v)}Promise.resolve(g).then(c).catch(v=>{var N;if(o())return;const y=e.retry??(bi?0:3),x=e.retryDelay??Bz,k=typeof x=="function"?x(n,v):x,I=y===!0||typeof y=="number"&&n<y||typeof y=="function"&&y(n,v);if(t||!I){p(v);return}n++,(N=e.onFail)==null||N.call(e,n,v),Az(k).then(()=>u()?void 0:m()).then(()=>{t?p(v):h()})})};return{promise:r,status:()=>r.status,cancel:a,continue:()=>(i==null||i(),r),cancelRetry:l,continueRetry:s,canStart:d,start:()=>(d()?h():m().then(h),r)}}var ii,f0,tw=(f0=class{constructor(){X(this,ii)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Jf(this.gcTime)&&W(this,ii,ti.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(bi?1/0:5*60*1e3))}clearGcTimeout(){j(this,ii)&&(ti.clearTimeout(j(this,ii)),W(this,ii,void 0))}},ii=new WeakMap,f0),oi,uo,Ut,ai,qe,el,li,tn,An,p0,Vz=(p0=class extends tw{constructor(t){super();X(this,tn);X(this,oi);X(this,uo);X(this,Ut);X(this,ai);X(this,qe);X(this,el);X(this,li);W(this,li,!1),W(this,el,t.defaultOptions),this.setOptions(t.options),this.observers=[],W(this,ai,t.client),W(this,Ut,j(this,ai).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,W(this,oi,wy(this.options)),this.state=t.state??j(this,oi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=j(this,qe))==null?void 0:t.promise}setOptions(t){if(this.options={...j(this,el),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=wy(this.options);n.data!==void 0&&(this.setState(ky(n.data,n.dataUpdatedAt)),W(this,oi,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&j(this,Ut).remove(this)}setData(t,n){const i=Qf(this.state.data,t,this.options);return le(this,tn,An).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(t,n){le(this,tn,An).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var i,r;const n=(i=j(this,qe))==null?void 0:i.promise;return(r=j(this,qe))==null||r.cancel(t),n?n.then(dt).catch(dt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(j(this,oi))}isActive(){return this.observers.some(t=>Ft(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Pm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Dr(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:!Jk(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,qe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,qe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),j(this,Ut).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(j(this,qe)&&(j(this,li)?j(this,qe).cancel({revert:!0}):j(this,qe).cancelRetry()),this.scheduleGc()),j(this,Ut).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||le(this,tn,An).call(this,{type:"invalidate"})}async fetch(t,n){var s,u,d,c,p,m,h,g,w,v,y,x;if(this.state.fetchStatus!=="idle"&&((s=j(this,qe))==null?void 0:s.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(j(this,qe))return j(this,qe).continueRetry(),j(this,qe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const k=this.observers.find(I=>I.options.queryFn);k&&this.setOptions(k.options)}const i=new AbortController,r=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(W(this,li,!0),i.signal)})},o=()=>{const k=Qk(this.options,n),N=(()=>{const P={client:j(this,ai),queryKey:this.queryKey,meta:this.meta};return r(P),P})();return W(this,li,!1),this.options.persister?this.options.persister(k,N,this):k(N)},l=(()=>{const k={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:j(this,ai),state:this.state,fetchFn:o};return r(k),k})();(u=this.options.behavior)==null||u.onFetch(l,this),W(this,uo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&le(this,tn,An).call(this,{type:"fetch",meta:(c=l.fetchOptions)==null?void 0:c.meta}),W(this,qe,ew({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:k=>{k instanceof Yf&&k.revert&&this.setState({...j(this,uo),fetchStatus:"idle"}),i.abort()},onFail:(k,I)=>{le(this,tn,An).call(this,{type:"failed",failureCount:k,error:I})},onPause:()=>{le(this,tn,An).call(this,{type:"pause"})},onContinue:()=>{le(this,tn,An).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const k=await j(this,qe).start();if(k===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(k),(m=(p=j(this,Ut).config).onSuccess)==null||m.call(p,k,this),(g=(h=j(this,Ut).config).onSettled)==null||g.call(h,k,this.state.error,this),k}catch(k){if(k instanceof Yf){if(k.silent)return j(this,qe).promise;if(k.revert){if(this.state.data===void 0)throw k;return this.state.data}}throw le(this,tn,An).call(this,{type:"error",error:k}),(v=(w=j(this,Ut).config).onError)==null||v.call(w,k,this),(x=(y=j(this,Ut).config).onSettled)==null||x.call(y,this.state.data,k,this),k}finally{this.scheduleGc()}}},oi=new WeakMap,uo=new WeakMap,Ut=new WeakMap,ai=new WeakMap,qe=new WeakMap,el=new WeakMap,li=new WeakMap,tn=new WeakSet,An=function(t){const n=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,...nw(i.data,this.options),fetchMeta:t.meta??null};case"success":const r={...i,...ky(t.data,t.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return W(this,uo,t.manual?r:void 0),r;case"error":const o=t.error;return{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=n(this.state),Be.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),j(this,Ut).notify({query:this,type:"updated",action:t})})},p0);function nw(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Yk(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function ky(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function wy(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,i=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var yt,fe,tl,st,si,co,Un,kr,nl,fo,po,ui,ci,wr,mo,ye,pa,ep,tp,np,rp,ip,op,ap,rw,m0,Hz=(m0=class extends Zo{constructor(t,n){super();X(this,ye);X(this,yt);X(this,fe);X(this,tl);X(this,st);X(this,si);X(this,co);X(this,Un);X(this,kr);X(this,nl);X(this,fo);X(this,po);X(this,ui);X(this,ci);X(this,wr);X(this,mo,new Set);this.options=n,W(this,yt,t),W(this,kr,null),W(this,Un,Xf()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(j(this,fe).addObserver(this),_y(j(this,fe),this.options)?le(this,ye,pa).call(this):this.updateResult(),le(this,ye,rp).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return lp(j(this,fe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return lp(j(this,fe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,le(this,ye,ip).call(this),le(this,ye,op).call(this),j(this,fe).removeObserver(this)}setOptions(t){const n=this.options,i=j(this,fe);if(this.options=j(this,yt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ft(this.options.enabled,j(this,fe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");le(this,ye,ap).call(this),j(this,fe).setOptions(this.options),n._defaulted&&!uu(this.options,n)&&j(this,yt).getQueryCache().notify({type:"observerOptionsUpdated",query:j(this,fe),observer:this});const r=this.hasListeners();r&&$y(j(this,fe),i,this.options,n)&&le(this,ye,pa).call(this),this.updateResult(),r&&(j(this,fe)!==i||Ft(this.options.enabled,j(this,fe))!==Ft(n.enabled,j(this,fe))||Dr(this.options.staleTime,j(this,fe))!==Dr(n.staleTime,j(this,fe)))&&le(this,ye,ep).call(this);const o=le(this,ye,tp).call(this);r&&(j(this,fe)!==i||Ft(this.options.enabled,j(this,fe))!==Ft(n.enabled,j(this,fe))||o!==j(this,wr))&&le(this,ye,np).call(this,o)}getOptimisticResult(t){const n=j(this,yt).getQueryCache().build(j(this,yt),t),i=this.createResult(n,t);return Wz(this,i)&&(W(this,st,i),W(this,co,this.options),W(this,si,j(this,fe).state)),i}getCurrentResult(){return j(this,st)}trackResult(t,n){return new Proxy(t,{get:(i,r)=>(this.trackProp(r),n==null||n(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&j(this,Un).status==="pending"&&j(this,Un).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,r))})}trackProp(t){j(this,mo).add(t)}getCurrentQuery(){return j(this,fe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=j(this,yt).defaultQueryOptions(t),i=j(this,yt).getQueryCache().build(j(this,yt),n);return i.fetch().then(()=>this.createResult(i,n))}fetch(t){return le(this,ye,pa).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),j(this,st)))}createResult(t,n){var R;const i=j(this,fe),r=this.options,o=j(this,st),a=j(this,si),l=j(this,co),u=t!==i?t.state:j(this,tl),{state:d}=t;let c={...d},p=!1,m;if(n._optimisticResults){const _=this.hasListeners(),L=!_&&_y(t,n),B=_&&$y(t,i,n,r);(L||B)&&(c={...c,...nw(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:h,errorUpdatedAt:g,status:w}=c;m=c.data;let v=!1;if(n.placeholderData!==void 0&&m===void 0&&w==="pending"){let _;o!=null&&o.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData)?(_=o.data,v=!0):_=typeof n.placeholderData=="function"?n.placeholderData((R=j(this,po))==null?void 0:R.state.data,j(this,po)):n.placeholderData,_!==void 0&&(w="success",m=Qf(o==null?void 0:o.data,_,n),p=!0)}if(n.select&&m!==void 0&&!v)if(o&&m===(a==null?void 0:a.data)&&n.select===j(this,nl))m=j(this,fo);else try{W(this,nl,n.select),m=n.select(m),m=Qf(o==null?void 0:o.data,m,n),W(this,fo,m),W(this,kr,null)}catch(_){W(this,kr,_)}j(this,kr)&&(h=j(this,kr),m=j(this,fo),g=Date.now(),w="error");const y=c.fetchStatus==="fetching",x=w==="pending",k=w==="error",I=x&&y,N=m!==void 0,A={status:w,fetchStatus:c.fetchStatus,isPending:x,isSuccess:w==="success",isError:k,isInitialLoading:I,isLoading:I,data:m,dataUpdatedAt:c.dataUpdatedAt,error:h,errorUpdatedAt:g,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:y,isRefetching:y&&!x,isLoadingError:k&&!N,isPaused:c.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:k&&N,isStale:Tm(t,n),refetch:this.refetch,promise:j(this,Un),isEnabled:Ft(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const _=te=>{A.status==="error"?te.reject(A.error):A.data!==void 0&&te.resolve(A.data)},L=()=>{const te=W(this,Un,A.promise=Xf());_(te)},B=j(this,Un);switch(B.status){case"pending":t.queryHash===i.queryHash&&_(B);break;case"fulfilled":(A.status==="error"||A.data!==B.value)&&L();break;case"rejected":(A.status!=="error"||A.error!==B.reason)&&L();break}}return A}updateResult(){const t=j(this,st),n=this.createResult(j(this,fe),this.options);if(W(this,si,j(this,fe).state),W(this,co,this.options),j(this,si).data!==void 0&&W(this,po,j(this,fe)),uu(n,t))return;W(this,st,n);const i=()=>{if(!t)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!j(this,mo).size)return!0;const a=new Set(o??j(this,mo));return this.options.throwOnError&&a.add("error"),Object.keys(j(this,st)).some(l=>{const s=l;return j(this,st)[s]!==t[s]&&a.has(s)})};le(this,ye,rw).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&le(this,ye,rp).call(this)}},yt=new WeakMap,fe=new WeakMap,tl=new WeakMap,st=new WeakMap,si=new WeakMap,co=new WeakMap,Un=new WeakMap,kr=new WeakMap,nl=new WeakMap,fo=new WeakMap,po=new WeakMap,ui=new WeakMap,ci=new WeakMap,wr=new WeakMap,mo=new WeakMap,ye=new WeakSet,pa=function(t){le(this,ye,ap).call(this);let n=j(this,fe).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(dt)),n},ep=function(){le(this,ye,ip).call(this);const t=Dr(this.options.staleTime,j(this,fe));if(bi||j(this,st).isStale||!Jf(t))return;const i=Jk(j(this,st).dataUpdatedAt,t)+1;W(this,ui,ti.setTimeout(()=>{j(this,st).isStale||this.updateResult()},i))},tp=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(j(this,fe)):this.options.refetchInterval)??!1},np=function(t){le(this,ye,op).call(this),W(this,wr,t),!(bi||Ft(this.options.enabled,j(this,fe))===!1||!Jf(j(this,wr))||j(this,wr)===0)&&W(this,ci,ti.setInterval(()=>{(this.options.refetchIntervalInBackground||Om.isFocused())&&le(this,ye,pa).call(this)},j(this,wr)))},rp=function(){le(this,ye,ep).call(this),le(this,ye,np).call(this,le(this,ye,tp).call(this))},ip=function(){j(this,ui)&&(ti.clearTimeout(j(this,ui)),W(this,ui,void 0))},op=function(){j(this,ci)&&(ti.clearInterval(j(this,ci)),W(this,ci,void 0))},ap=function(){const t=j(this,yt).getQueryCache().build(j(this,yt),this.options);if(t===j(this,fe))return;const n=j(this,fe);W(this,fe,t),W(this,tl,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},rw=function(t){Be.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(j(this,st))}),j(this,yt).getQueryCache().notify({query:j(this,fe),type:"observerResultsUpdated"})})},m0);function qz(e,t){return Ft(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function _y(e,t){return qz(e,t)||e.state.data!==void 0&&lp(e,t,t.refetchOnMount)}function lp(e,t,n){if(Ft(t.enabled,e)!==!1&&Dr(t.staleTime,e)!=="static"){const i=typeof n=="function"?n(e):n;return i==="always"||i!==!1&&Tm(e,t)}return!1}function $y(e,t,n,i){return(e!==t||Ft(i.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Tm(e,n)}function Tm(e,t){return Ft(t.enabled,e)!==!1&&e.isStaleByTime(Dr(t.staleTime,e))}function Wz(e,t){return!uu(e.getCurrentResult(),t)}function Sy(e){return{onFetch:(t,n)=>{var d,c,p,m,h;const i=t.options,r=(p=(c=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:c.fetchMore)==null?void 0:p.direction,o=((m=t.state.data)==null?void 0:m.pages)||[],a=((h=t.state.data)==null?void 0:h.pageParams)||[];let l={pages:[],pageParams:[]},s=0;const u=async()=>{let g=!1;const w=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},v=Qk(t.options,t.fetchOptions),y=async(x,k,I)=>{if(g)return Promise.reject();if(k==null&&x.pages.length)return Promise.resolve(x);const P=(()=>{const L={client:t.client,queryKey:t.queryKey,pageParam:k,direction:I?"backward":"forward",meta:t.options.meta};return w(L),L})(),A=await v(P),{maxPages:R}=t.options,_=I?Lz:Dz;return{pages:_(x.pages,A,R),pageParams:_(x.pageParams,k,R)}};if(r&&o.length){const x=r==="backward",k=x?Gz:jy,I={pages:o,pageParams:a},N=k(i,I);l=await y(I,N,x)}else{const x=e??o.length;do{const k=s===0?a[0]??i.initialPageParam:jy(i,l);if(s>0&&k==null)break;l=await y(l,k),s++}while(s<x)}return l};t.options.persister?t.fetchFn=()=>{var g,w;return(w=(g=t.options).persister)==null?void 0:w.call(g,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function jy(e,{pages:t,pageParams:n}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,n[i],n):void 0}function Gz(e,{pages:t,pageParams:n}){var i;return t.length>0?(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,n[0],n):void 0}var rl,kn,ut,di,wn,dr,h0,Jz=(h0=class extends tw{constructor(t){super();X(this,wn);X(this,rl);X(this,kn);X(this,ut);X(this,di);W(this,rl,t.client),this.mutationId=t.mutationId,W(this,ut,t.mutationCache),W(this,kn,[]),this.state=t.state||iw(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){j(this,kn).includes(t)||(j(this,kn).push(t),this.clearGcTimeout(),j(this,ut).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){W(this,kn,j(this,kn).filter(n=>n!==t)),this.scheduleGc(),j(this,ut).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){j(this,kn).length||(this.state.status==="pending"?this.scheduleGc():j(this,ut).remove(this))}continue(){var t;return((t=j(this,di))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,l,s,u,d,c,p,m,h,g,w,v,y,x,k,I,N,P,A,R;const n=()=>{le(this,wn,dr).call(this,{type:"continue"})},i={client:j(this,rl),meta:this.options.meta,mutationKey:this.options.mutationKey};W(this,di,ew({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(new Error("No mutationFn found")),onFail:(_,L)=>{le(this,wn,dr).call(this,{type:"failed",failureCount:_,error:L})},onPause:()=>{le(this,wn,dr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>j(this,ut).canRun(this)}));const r=this.state.status==="pending",o=!j(this,di).canStart();try{if(r)n();else{le(this,wn,dr).call(this,{type:"pending",variables:t,isPaused:o}),await((l=(a=j(this,ut).config).onMutate)==null?void 0:l.call(a,t,this,i));const L=await((u=(s=this.options).onMutate)==null?void 0:u.call(s,t,i));L!==this.state.context&&le(this,wn,dr).call(this,{type:"pending",context:L,variables:t,isPaused:o})}const _=await j(this,di).start();return await((c=(d=j(this,ut).config).onSuccess)==null?void 0:c.call(d,_,t,this.state.context,this,i)),await((m=(p=this.options).onSuccess)==null?void 0:m.call(p,_,t,this.state.context,i)),await((g=(h=j(this,ut).config).onSettled)==null?void 0:g.call(h,_,null,this.state.variables,this.state.context,this,i)),await((v=(w=this.options).onSettled)==null?void 0:v.call(w,_,null,t,this.state.context,i)),le(this,wn,dr).call(this,{type:"success",data:_}),_}catch(_){try{throw await((x=(y=j(this,ut).config).onError)==null?void 0:x.call(y,_,t,this.state.context,this,i)),await((I=(k=this.options).onError)==null?void 0:I.call(k,_,t,this.state.context,i)),await((P=(N=j(this,ut).config).onSettled)==null?void 0:P.call(N,void 0,_,this.state.variables,this.state.context,this,i)),await((R=(A=this.options).onSettled)==null?void 0:R.call(A,void 0,_,t,this.state.context,i)),_}finally{le(this,wn,dr).call(this,{type:"error",error:_})}}finally{j(this,ut).runNext(this)}}},rl=new WeakMap,kn=new WeakMap,ut=new WeakMap,di=new WeakMap,wn=new WeakSet,dr=function(t){const n=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=n(this.state),Be.batch(()=>{j(this,kn).forEach(i=>{i.onMutationUpdate(t)}),j(this,ut).notify({mutation:this,type:"updated",action:t})})},h0);function iw(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Fn,nn,il,g0,Kz=(g0=class extends Zo{constructor(t={}){super();X(this,Fn);X(this,nn);X(this,il);this.config=t,W(this,Fn,new Set),W(this,nn,new Map),W(this,il,0)}build(t,n,i){const r=new Jz({client:t,mutationCache:this,mutationId:++Fl(this,il)._,options:t.defaultMutationOptions(n),state:i});return this.add(r),r}add(t){j(this,Fn).add(t);const n=os(t);if(typeof n=="string"){const i=j(this,nn).get(n);i?i.push(t):j(this,nn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(j(this,Fn).delete(t)){const n=os(t);if(typeof n=="string"){const i=j(this,nn).get(n);if(i)if(i.length>1){const r=i.indexOf(t);r!==-1&&i.splice(r,1)}else i[0]===t&&j(this,nn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=os(t);if(typeof n=="string"){const i=j(this,nn).get(n),r=i==null?void 0:i.find(o=>o.state.status==="pending");return!r||r===t}else return!0}runNext(t){var i;const n=os(t);if(typeof n=="string"){const r=(i=j(this,nn).get(n))==null?void 0:i.find(o=>o!==t&&o.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Be.batch(()=>{j(this,Fn).forEach(t=>{this.notify({type:"removed",mutation:t})}),j(this,Fn).clear(),j(this,nn).clear()})}getAll(){return Array.from(j(this,Fn))}find(t){const n={exact:!0,...t};return this.getAll().find(i=>yy(n,i))}findAll(t={}){return this.getAll().filter(n=>yy(t,n))}notify(t){Be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Be.batch(()=>Promise.all(t.map(n=>n.continue().catch(dt))))}},Fn=new WeakMap,nn=new WeakMap,il=new WeakMap,g0);function os(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Mn,_r,xt,Zn,Gn,Ts,sp,v0,Qz=(v0=class extends Zo{constructor(n,i){super();X(this,Gn);X(this,Mn);X(this,_r);X(this,xt);X(this,Zn);W(this,Mn,n),this.setOptions(i),this.bindMethods(),le(this,Gn,Ts).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var r;const i=this.options;this.options=j(this,Mn).defaultMutationOptions(n),uu(this.options,i)||j(this,Mn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:j(this,xt),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&ki(i.mutationKey)!==ki(this.options.mutationKey)?this.reset():((r=j(this,xt))==null?void 0:r.state.status)==="pending"&&j(this,xt).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=j(this,xt))==null||n.removeObserver(this)}onMutationUpdate(n){le(this,Gn,Ts).call(this),le(this,Gn,sp).call(this,n)}getCurrentResult(){return j(this,_r)}reset(){var n;(n=j(this,xt))==null||n.removeObserver(this),W(this,xt,void 0),le(this,Gn,Ts).call(this),le(this,Gn,sp).call(this)}mutate(n,i){var r;return W(this,Zn,i),(r=j(this,xt))==null||r.removeObserver(this),W(this,xt,j(this,Mn).getMutationCache().build(j(this,Mn),this.options)),j(this,xt).addObserver(this),j(this,xt).execute(n)}},Mn=new WeakMap,_r=new WeakMap,xt=new WeakMap,Zn=new WeakMap,Gn=new WeakSet,Ts=function(){var i;const n=((i=j(this,xt))==null?void 0:i.state)??iw();W(this,_r,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},sp=function(n){Be.batch(()=>{var i,r,o,a,l,s,u,d;if(j(this,Zn)&&this.hasListeners()){const c=j(this,_r).variables,p=j(this,_r).context,m={client:j(this,Mn),meta:this.options.meta,mutationKey:this.options.mutationKey};(n==null?void 0:n.type)==="success"?((r=(i=j(this,Zn)).onSuccess)==null||r.call(i,n.data,c,p,m),(a=(o=j(this,Zn)).onSettled)==null||a.call(o,n.data,null,c,p,m)):(n==null?void 0:n.type)==="error"&&((s=(l=j(this,Zn)).onError)==null||s.call(l,n.error,c,p,m),(d=(u=j(this,Zn)).onSettled)==null||d.call(u,void 0,n.error,c,p,m))}this.listeners.forEach(c=>{c(j(this,_r))})})},v0),_n,y0,Xz=(y0=class extends Zo{constructor(t={}){super();X(this,_n);this.config=t,W(this,_n,new Map)}build(t,n,i){const r=n.queryKey,o=n.queryHash??zm(r,n);let a=this.get(o);return a||(a=new Vz({client:t,queryKey:r,queryHash:o,options:t.defaultQueryOptions(n),state:i,defaultOptions:t.getQueryDefaults(r)}),this.add(a)),a}add(t){j(this,_n).has(t.queryHash)||(j(this,_n).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=j(this,_n).get(t.queryHash);n&&(t.destroy(),n===t&&j(this,_n).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Be.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return j(this,_n).get(t)}getAll(){return[...j(this,_n).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(i=>vy(n,i))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(i=>vy(t,i)):n}notify(t){Be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Be.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Be.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},_n=new WeakMap,y0),Ae,$r,Sr,ho,go,jr,vo,yo,x0,Yz=(x0=class{constructor(e={}){X(this,Ae);X(this,$r);X(this,Sr);X(this,ho);X(this,go);X(this,jr);X(this,vo);X(this,yo);W(this,Ae,e.queryCache||new Xz),W(this,$r,e.mutationCache||new Kz),W(this,Sr,e.defaultOptions||{}),W(this,ho,new Map),W(this,go,new Map),W(this,jr,0)}mount(){Fl(this,jr)._++,j(this,jr)===1&&(W(this,vo,Om.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,Ae).onFocus())})),W(this,yo,cu.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,Ae).onOnline())})))}unmount(){var e,t;Fl(this,jr)._--,j(this,jr)===0&&((e=j(this,vo))==null||e.call(this),W(this,vo,void 0),(t=j(this,yo))==null||t.call(this),W(this,yo,void 0))}isFetching(e){return j(this,Ae).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return j(this,$r).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=j(this,Ae).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=j(this,Ae).build(this,t),i=n.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Dr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return j(this,Ae).findAll(e).map(({queryKey:t,state:n})=>{const i=n.data;return[t,i]})}setQueryData(e,t,n){const i=this.defaultQueryOptions({queryKey:e}),r=j(this,Ae).get(i.queryHash),o=r==null?void 0:r.state.data,a=Tz(t,o);if(a!==void 0)return j(this,Ae).build(this,i).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Be.batch(()=>j(this,Ae).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=j(this,Ae).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=j(this,Ae);Be.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=j(this,Ae);return Be.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},i=Be.batch(()=>j(this,Ae).findAll(e).map(r=>r.cancel(n)));return Promise.all(i).then(dt).catch(dt)}invalidateQueries(e,t={}){return Be.batch(()=>(j(this,Ae).findAll(e).forEach(n=>{n.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 n={...t,cancelRefetch:t.cancelRefetch??!0},i=Be.batch(()=>j(this,Ae).findAll(e).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let o=r.fetch(void 0,n);return n.throwOnError||(o=o.catch(dt)),r.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(i).then(dt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=j(this,Ae).build(this,t);return n.isStaleByTime(Dr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(dt).catch(dt)}fetchInfiniteQuery(e){return e.behavior=Sy(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(dt).catch(dt)}ensureInfiniteQueryData(e){return e.behavior=Sy(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return cu.isOnline()?j(this,$r).resumePausedMutations():Promise.resolve()}getQueryCache(){return j(this,Ae)}getMutationCache(){return j(this,$r)}getDefaultOptions(){return j(this,Sr)}setDefaultOptions(e){W(this,Sr,e)}setQueryDefaults(e,t){j(this,ho).set(ki(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...j(this,ho).values()],n={};return t.forEach(i=>{qa(e,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(e,t){j(this,go).set(ki(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...j(this,go).values()],n={};return t.forEach(i=>{qa(e,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...j(this,Sr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=zm(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===Pm&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...j(this,Sr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){j(this,Ae).clear(),j(this,$r).clear()}},Ae=new WeakMap,$r=new WeakMap,Sr=new WeakMap,ho=new WeakMap,go=new WeakMap,jr=new WeakMap,vo=new WeakMap,yo=new WeakMap,x0),ow=S.createContext(void 0),rr=e=>{const t=S.useContext(ow);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},eP=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(ow.Provider,{value:e,children:t})),aw=S.createContext(!1),tP=()=>S.useContext(aw);aw.Provider;function nP(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var rP=S.createContext(nP()),iP=()=>S.useContext(rP),oP=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},aP=e=>{S.useEffect(()=>{e.clearReset()},[e])},lP=({result:e,errorResetBoundary:t,throwOnError:n,query:i,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(r&&e.data===void 0||Xk(n,[e.error,i])),sP=e=>{if(e.suspense){const n=r=>r==="static"?r:Math.max(r??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...r)=>n(i(...r)):n(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},uP=(e,t)=>e.isLoading&&e.isFetching&&!t,cP=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Ny=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function dP(e,t,n){var c,p,m,h,g;const i=tP(),r=iP(),o=rr(),a=o.defaultQueryOptions(e);(p=(c=o.getDefaultOptions().queries)==null?void 0:c._experimental_beforeQuery)==null||p.call(c,a),a._optimisticResults=i?"isRestoring":"optimistic",sP(a),oP(a,r),aP(r);const l=!o.getQueryCache().get(a.queryHash),[s]=S.useState(()=>new t(o,a)),u=s.getOptimisticResult(a),d=!i&&e.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(w=>{const v=d?s.subscribe(Be.batchCalls(w)):dt;return s.updateResult(),v},[s,d]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),S.useEffect(()=>{s.setOptions(a)},[a,s]),cP(a,u))throw Ny(a,s,r);if(lP({result:u,errorResetBoundary:r,throwOnError:a.throwOnError,query:o.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw u.error;if((h=(m=o.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||h.call(m,a,u),a.experimental_prefetchInRender&&!bi&&uP(u,i)){const w=l?Ny(a,s,r):(g=o.getQueryCache().get(a.queryHash))==null?void 0:g.promise;w==null||w.catch(dt).finally(()=>{s.updateResult()})}return a.notifyOnChangeProps?u:s.trackResult(u)}function zt(e,t){return dP(e,Hz)}function er(e,t){const n=rr(),[i]=S.useState(()=>new Qz(n,e));S.useEffect(()=>{i.setOptions(e)},[i,e]);const r=S.useSyncExternalStore(S.useCallback(a=>i.subscribe(Be.batchCalls(a)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),o=S.useCallback((a,l)=>{i.mutate(a,l).catch(dt)},[i]);if(r.error&&Xk(i.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:o,mutateAsync:r.mutate}}/**
52
+ * @license lucide-react v0.468.0 - ISC
53
+ *
54
+ * This source code is licensed under the ISC license.
55
+ * See the LICENSE file in the root directory of this source tree.
56
+ */const fP=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),lw=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim();/**
57
+ * @license lucide-react v0.468.0 - ISC
58
+ *
59
+ * This source code is licensed under the ISC license.
60
+ * See the LICENSE file in the root directory of this source tree.
61
+ */var pP={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
62
+ * @license lucide-react v0.468.0 - ISC
63
+ *
64
+ * This source code is licensed under the ISC license.
65
+ * See the LICENSE file in the root directory of this source tree.
66
+ */const mP=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:r="",children:o,iconNode:a,...l},s)=>S.createElement("svg",{ref:s,...pP,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:lw("lucide",r),...l},[...a.map(([u,d])=>S.createElement(u,d)),...Array.isArray(o)?o:[o]]));/**
67
+ * @license lucide-react v0.468.0 - ISC
68
+ *
69
+ * This source code is licensed under the ISC license.
70
+ * See the LICENSE file in the root directory of this source tree.
71
+ */const He=(e,t)=>{const n=S.forwardRef(({className:i,...r},o)=>S.createElement(mP,{ref:o,iconNode:t,className:lw(`lucide-${fP(e)}`,i),...r}));return n.displayName=`${e}`,n};/**
72
+ * @license lucide-react v0.468.0 - ISC
73
+ *
74
+ * This source code is licensed under the ISC license.
75
+ * See the LICENSE file in the root directory of this source tree.
76
+ */const hP=He("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
77
+ * @license lucide-react v0.468.0 - ISC
78
+ *
79
+ * This source code is licensed under the ISC license.
80
+ * See the LICENSE file in the root directory of this source tree.
81
+ */const sw=He("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
82
+ * @license lucide-react v0.468.0 - ISC
83
+ *
84
+ * This source code is licensed under the ISC license.
85
+ * See the LICENSE file in the root directory of this source tree.
86
+ */const uw=He("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
87
+ * @license lucide-react v0.468.0 - ISC
88
+ *
89
+ * This source code is licensed under the ISC license.
90
+ * See the LICENSE file in the root directory of this source tree.
91
+ */const gP=He("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
92
+ * @license lucide-react v0.468.0 - ISC
93
+ *
94
+ * This source code is licensed under the ISC license.
95
+ * See the LICENSE file in the root directory of this source tree.
96
+ */const up=He("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
97
+ * @license lucide-react v0.468.0 - ISC
98
+ *
99
+ * This source code is licensed under the ISC license.
100
+ * See the LICENSE file in the root directory of this source tree.
101
+ */const vP=He("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
102
+ * @license lucide-react v0.468.0 - ISC
103
+ *
104
+ * This source code is licensed under the ISC license.
105
+ * See the LICENSE file in the root directory of this source tree.
106
+ */const Rm=He("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
107
+ * @license lucide-react v0.468.0 - ISC
108
+ *
109
+ * This source code is licensed under the ISC license.
110
+ * See the LICENSE file in the root directory of this source tree.
111
+ */const yP=He("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
112
+ * @license lucide-react v0.468.0 - ISC
113
+ *
114
+ * This source code is licensed under the ISC license.
115
+ * See the LICENSE file in the root directory of this source tree.
116
+ */const xP=He("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
117
+ * @license lucide-react v0.468.0 - ISC
118
+ *
119
+ * This source code is licensed under the ISC license.
120
+ * See the LICENSE file in the root directory of this source tree.
121
+ */const wi=He("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
122
+ * @license lucide-react v0.468.0 - ISC
123
+ *
124
+ * This source code is licensed under the ISC license.
125
+ * See the LICENSE file in the root directory of this source tree.
126
+ */const bP=He("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);/**
127
+ * @license lucide-react v0.468.0 - ISC
128
+ *
129
+ * This source code is licensed under the ISC license.
130
+ * See the LICENSE file in the root directory of this source tree.
131
+ */const kP=He("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
132
+ * @license lucide-react v0.468.0 - ISC
133
+ *
134
+ * This source code is licensed under the ISC license.
135
+ * See the LICENSE file in the root directory of this source tree.
136
+ */const Bu=He("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
137
+ * @license lucide-react v0.468.0 - ISC
138
+ *
139
+ * This source code is licensed under the ISC license.
140
+ * See the LICENSE file in the root directory of this source tree.
141
+ */const wP=He("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
142
+ * @license lucide-react v0.468.0 - ISC
143
+ *
144
+ * This source code is licensed under the ISC license.
145
+ * See the LICENSE file in the root directory of this source tree.
146
+ */const _P=He("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
147
+ * @license lucide-react v0.468.0 - ISC
148
+ *
149
+ * This source code is licensed under the ISC license.
150
+ * See the LICENSE file in the root directory of this source tree.
151
+ */const $P=He("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
152
+ * @license lucide-react v0.468.0 - ISC
153
+ *
154
+ * This source code is licensed under the ISC license.
155
+ * See the LICENSE file in the root directory of this source tree.
156
+ */const SP=He("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/**
157
+ * @license lucide-react v0.468.0 - ISC
158
+ *
159
+ * This source code is licensed under the ISC license.
160
+ * See the LICENSE file in the root directory of this source tree.
161
+ */const cp=He("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
162
+ * @license lucide-react v0.468.0 - ISC
163
+ *
164
+ * This source code is licensed under the ISC license.
165
+ * See the LICENSE file in the root directory of this source tree.
166
+ */const _i=He("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Vu="/api",jP="composer_proxy_admin_token";function Hu(){return typeof window<"u"?localStorage.getItem(jP):null}async function Ce(e,t={}){const n=Hu(),i={"Content-Type":"application/json",...t.headers};n&&(i.Authorization=`Bearer ${n}`);const r=await fetch(`${Vu}${e}`,{...t,headers:i});if(!r.ok){const o=await r.json().catch(()=>({message:"Unknown error"}));throw new Error(o.message||`HTTP ${r.status}`)}return r.json()}async function NP(){try{const t=await(await fetch(`${Vu}/auth/check`,{headers:{"Content-Type":"application/json"}})).json();return{authRequired:t.authRequired??!0,setupRequired:t.setupRequired??!1}}catch{return{authRequired:!0,setupRequired:!1}}}async function IP(e){return Ce("/setup",{method:"POST",body:JSON.stringify(e)})}async function EP(){return Ce("/stats")}async function cw(){return Ce("/repositories")}async function CP(e){return Ce("/repositories",{method:"POST",body:JSON.stringify(e)})}async function zP(e,t){return Ce(`/repositories/${e}`,{method:"PUT",body:JSON.stringify(t)})}async function PP(e){return Ce(`/repositories/${e}`,{method:"DELETE"})}async function OP(e){return Ce(`/repositories/${e}/sync`,{method:"POST"})}async function TP(){return Ce("/tokens")}async function RP(e){return Ce("/tokens",{method:"POST",body:JSON.stringify(e)})}async function AP(e,t){return Ce(`/tokens/${e}`,{method:"PATCH",body:JSON.stringify(t)})}async function DP(e){return Ce(`/tokens/${e}`,{method:"DELETE"})}async function LP(e){const t=e?`?search=${encodeURIComponent(e)}`:"";return Ce(`/packages${t}`)}async function UP(e){return Ce(`/packages/${encodeURIComponent(e)}`)}async function FP(e,t){const n=Hu(),i={"Content-Type":"text/markdown"};n&&(i.Authorization=`Bearer ${n}`);const r=await fetch(`${Vu}/packages/${encodeURIComponent(e)}/${encodeURIComponent(t)}/readme`,{headers:i});if(!r.ok){if(r.status===404)return null;throw new Error(`HTTP ${r.status}`)}return r.text()}async function MP(e,t){const n=Hu(),i={"Content-Type":"text/markdown"};n&&(i.Authorization=`Bearer ${n}`);const r=await fetch(`${Vu}/packages/${encodeURIComponent(e)}/${encodeURIComponent(t)}/changelog`,{headers:i});if(!r.ok){if(r.status===404)return null;throw new Error(`HTTP ${r.status}`)}return r.text()}async function ZP(e,t){return Ce(`/packages/${encodeURIComponent(e)}/${encodeURIComponent(t)}/stats`)}async function qu(){return Ce("/settings")}async function BP(e){return Ce("/settings/packagist-mirroring",{method:"PUT",body:JSON.stringify({enabled:e})})}async function VP(e,t){return Ce("/packages/add-from-mirror",{method:"POST",body:JSON.stringify({repository_id:e,package_names:t})})}async function HP(){return Ce("/users").then(e=>e.users)}async function qP(e){return Ce("/users",{method:"POST",body:JSON.stringify(e)})}async function WP(e){return Ce(`/users/${e}`,{method:"DELETE"})}async function GP(){return Ce("/auth/2fa/setup",{method:"POST"})}async function JP(e,t){return Ce("/auth/2fa/enable",{method:"POST",body:JSON.stringify({secret:e,code:t})})}async function KP(){return Ce("/auth/2fa/disable",{method:"POST"})}async function QP(e,t){return Ce("/auth/invite/accept",{method:"POST",body:JSON.stringify({token:e,password:t})})}const Iy="composer_proxy_sponsor_banner_dismissed";function XP(){const[e,t]=S.useState(!1);S.useEffect(()=>{if(typeof window<"u"){const i=localStorage.getItem(Iy);t(i==="true")}},[]);const n=()=>{t(!0),typeof window<"u"&&localStorage.setItem(Iy,"true")};return e?null:f.jsxs("div",{className:"relative bg-gradient-to-r from-pink-500/10 via-purple-500/10 to-pink-500/10 border border-pink-500/20 rounded-lg p-4 mb-6",children:[f.jsx("button",{onClick:n,className:"absolute top-2 right-2 text-slate-400 hover:text-slate-200 transition","aria-label":"Dismiss",children:f.jsx(_i,{className:"w-4 h-4"})}),f.jsx("div",{className:"pr-8",children:f.jsxs("div",{className:"flex items-start gap-3",children:[f.jsx(up,{className:"w-6 h-6 text-pink-400 fill-pink-400"}),f.jsxs("div",{className:"flex-1",children:[f.jsx("p",{className:"text-slate-200 font-medium mb-1",children:"Enjoying this project? Consider sponsoring!"}),f.jsx("p",{className:"text-slate-400 text-sm mb-3",children:"Built during evenings and weekends. Your support helps keep it going and funds new features, better docs, and faster bug fixes."}),f.jsxs("a",{href:"https://github.com/sponsors/lbajsarowicz",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-4 py-2 bg-gradient-to-r from-pink-500 to-purple-600 hover:from-pink-600 hover:to-purple-700 text-white text-sm font-semibold rounded-lg shadow-lg shadow-pink-500/25 transition",children:[f.jsx(up,{className:"w-4 h-4 fill-current"}),f.jsx("span",{children:"Sponsor on GitHub"})]})]})]})})]})}function YP(){const{data:e,isLoading:t,error:n}=zt({queryKey:["stats"],queryFn:EP,refetchInterval:3e4}),i=[{title:"Active Repositories",value:(e==null?void 0:e.active_repos)??0,icon:wi,color:"from-primary-500 to-primary-700"},{title:"Cached Packages",value:(e==null?void 0:e.cached_packages)??0,icon:uw,color:"from-accent-500 to-accent-700"},{title:"Total Downloads",value:(e==null?void 0:e.total_downloads)??0,icon:gP,color:"from-emerald-500 to-emerald-700"}];return n?(console.error("Dashboard Error:",n),f.jsx("div",{className:"card p-6","data-testid":"dashboard-error",children:f.jsxs("p",{className:"text-red-400",children:["Error loading stats: ",n.message]})})):f.jsxs("div",{className:"space-y-8","data-testid":"dashboard-page",children:[f.jsxs("div",{children:[f.jsx("h2",{className:"font-display text-2xl font-bold text-slate-100 mb-2","data-testid":"dashboard-heading",children:"Dashboard"}),f.jsx("p",{className:"text-slate-400",children:"Overview of your Composer proxy"})]}),f.jsx(XP,{}),f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6","data-testid":"stats-cards",children:i.map(r=>f.jsxs("div",{className:"card p-6","data-testid":`stat-card-${r.title.toLowerCase().replace(/\s+/g,"-")}`,children:[f.jsxs("div",{className:"flex items-center justify-between mb-4",children:[f.jsx("div",{className:`w-12 h-12 rounded-xl bg-gradient-to-br ${r.color} flex items-center justify-center shadow-lg`,children:f.jsx(r.icon,{className:"w-6 h-6 text-white"})}),t&&f.jsx("div",{className:"w-6 h-6 border-2 border-slate-600 border-t-primary-500 rounded-full animate-spin","aria-label":"Loading"})]}),f.jsx("p",{className:"text-slate-400 text-sm mb-1",children:r.title}),f.jsx("p",{className:"font-display text-3xl font-bold text-slate-100",children:t?"...":r.value.toLocaleString()})]},r.title))}),f.jsxs("div",{className:"card p-6","data-testid":"quick-start-section",children:[f.jsx("h3",{className:"font-display text-lg font-semibold text-slate-100 mb-4",children:"Quick Start"}),f.jsxs("div",{className:"space-y-4 text-slate-300",children:[f.jsxs("div",{className:"flex items-start gap-3",children:[f.jsx("span",{className:"text-primary-400 font-bold",children:"1."}),f.jsxs("p",{children:["Add a ",f.jsx("strong",{children:"repository source"})," in the Repositories tab"]})]}),f.jsxs("div",{className:"flex items-start gap-3",children:[f.jsx("span",{className:"text-primary-400 font-bold",children:"2."}),f.jsxs("p",{children:["Generate an ",f.jsx("strong",{children:"access token"})," in the Access Tokens tab"]})]}),f.jsxs("div",{className:"flex items-start gap-3",children:[f.jsx("span",{className:"text-primary-400 font-bold",children:"3."}),f.jsxs("div",{className:"flex-1",children:[f.jsx("p",{className:"mb-3",children:"Configure your project to use this proxy:"}),f.jsxs("div",{className:"mb-4","data-testid":"composer-cli-config",children:[f.jsx("p",{className:"text-sm text-slate-400 mb-2",children:"Using Composer CLI:"}),f.jsx("pre",{className:"bg-slate-950 rounded-lg p-4 overflow-x-auto text-sm text-slate-300",children:f.jsxs("code",{"data-testid":"composer-cli-command",children:["composer config repositories.proxy composer ",window.location.origin]})})]}),f.jsxs("div",{"data-testid":"composer-json-config",children:[f.jsx("p",{className:"text-sm text-slate-400 mb-2",children:"Or manually edit composer.json:"}),f.jsx("pre",{className:"bg-slate-950 rounded-lg p-4 overflow-x-auto text-sm text-slate-300",children:f.jsx("code",{"data-testid":"composer-json-code",children:`{
167
+ "repositories": [
168
+ {
169
+ "type": "composer",
170
+ "url": "${window.location.origin}"
171
+ }
172
+ ]
173
+ }`})})]})]})]})]})]})]})}const du={http_basic:{label:"HTTP Basic (Username/Password)",fields:[{name:"username",label:"Username",type:"text"},{name:"password",label:"Password",type:"password"}]},github_token:{label:"GitHub Token",fields:[{name:"token",label:"Personal Access Token",type:"password"}]},gitlab_token:{label:"GitLab Token",fields:[{name:"token",label:"Personal/Project Access Token",type:"password"}]},bitbucket_app_password:{label:"Bitbucket App Password",fields:[{name:"username",label:"Username",type:"text"},{name:"password",label:"App Password",type:"password"}]},bitbucket_api_token:{label:"Bitbucket API Token",fields:[{name:"token",label:"Token",type:"password"}]},bitbucket_api_key:{label:"Bitbucket API Key",fields:[{name:"key",label:"API Key",type:"password"}]},bitbucket_server_pat:{label:"Bitbucket Server PAT",fields:[{name:"token",label:"Personal Access Token",type:"password"}]},bearer_token:{label:"Bearer Token",fields:[{name:"token",label:"Token",type:"password"}]},none:{label:"No Authentication",fields:[]}},fu={composer:["http_basic","bearer_token"],git:["github_token","gitlab_token","bitbucket_app_password","bitbucket_api_token","bitbucket_api_key","bitbucket_server_pat"]};function io(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}const eO={ZodAny:"any",ZodArray:"array",ZodBigInt:"bigint",ZodBoolean:"boolean",ZodDefault:"default",ZodPrefault:"prefault",ZodTransform:"transform",ZodEnum:"enum",ZodIntersection:"intersection",ZodLiteral:"literal",ZodNever:"never",ZodNull:"null",ZodNullable:"nullable",ZodNumber:"number",ZodNonOptional:"nonoptional",ZodObject:"object",ZodOptional:"optional",ZodPipe:"pipe",ZodReadonly:"readonly",ZodRecord:"record",ZodString:"string",ZodTuple:"tuple",ZodType:"type",ZodUnion:"union",ZodDiscriminatedUnion:"union",ZodUnknown:"unknown",ZodVoid:"void",ZodDate:"date"};function fr(e,t){return(Array.isArray(t)?t:[t]).some(i=>{var r;const o=((r=e==null?void 0:e.def)===null||r===void 0?void 0:r.type)===eO[i];return i==="ZodDiscriminatedUnion"?o&&"discriminator"in e.def:o})}function Di(e){return"def"in e}let tO=class{constructor(){this._map=new Map,this._idmap=new Map}add(t,...n){const i=n[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 Map,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const i={...this.get(n)??{}};return delete i.id,{...i,...this._map.get(t)}}return this._map.get(t)}has(t){return this._map.has(t)}};function nO(){return new tO}function jd(e){return e===void 0}function rO(e,t){const n={};return Object.entries(e).forEach(([i,r])=>{t.some(o=>o===i)||(n[i]=r)}),n}function Nd(e,t){const n={};return Object.entries(e).forEach(([i,r])=>{t(r,i)||(n[i]=r)}),n}const Ey=nO();class hr{static collectMetadata(t,n){const i=this.getMetadataFromRegistry(t),r=Object.assign(Object.assign({},i==null?void 0:i._internal),n==null?void 0:n._internal),o=Object.assign(Object.assign({},i==null?void 0:i.param),n==null?void 0:n.param),a=Object.assign(Object.assign(Object.assign(Object.assign({},Object.keys(r).length>0?{_internal:r}:{}),i),n),Object.keys(o).length>0?{param:o}:{});if(fr(t,["ZodOptional","ZodNullable","ZodDefault","ZodPrefault","ZodReadonly","ZodNonOptional"])&&Di(t._zod.def.innerType))return this.collectMetadata(t._zod.def.innerType,a);if(fr(t,"ZodPipe")){const l=t._zod.def.in,s=t._zod.def.out;if(fr(l,"ZodTransform")&&Di(s))return this.collectMetadata(s,a);if(Di(l))return this.collectMetadata(l,a)}return a}static getMetadata(t){return this.collectMetadata(t)}static getOpenApiMetadata(t){const n=this.collectMetadata(t);return io(n??{},["_internal"])}static getInternalMetadata(t){var n;return(n=this.collectMetadata(t))===null||n===void 0?void 0:n._internal}static getParamMetadata(t){const n=this.collectMetadata(t);return Object.assign(Object.assign({},n),{param:Object.assign(Object.assign({},n!=null&&n.description?{description:n.description}:{}),n==null?void 0:n.param)})}static buildSchemaMetadata(t){return Nd(rO(t,["param","_internal"]),jd)}static buildParameterMetadata(t){return Nd(t,jd)}static applySchemaMetadata(t,n){return Nd(Object.assign(Object.assign({},t),this.buildSchemaMetadata(n)),jd)}static getRefId(t){var n;return(n=this.getInternalMetadata(t))===null||n===void 0?void 0:n.refId}static unwrapChained(t){return this.unwrapUntil(t)}static getDefaultValue(t){var n;const i=(n=this.unwrapUntil(t,"ZodDefault"))!==null&&n!==void 0?n:this.unwrapUntil(t,"ZodPrefault");return i==null?void 0:i._zod.def.defaultValue}static unwrapUntil(t,n){if(n&&fr(t,n))return t;if(fr(t,["ZodOptional","ZodNullable","ZodDefault","ZodPrefault","ZodReadonly","ZodNonOptional"])&&Di(t._zod.def.innerType))return this.unwrapUntil(t._zod.def.innerType,n);if(fr(t,"ZodPipe")){const i=t._zod.def.in,r=t._zod.def.out;if(fr(i,"ZodTransform")&&Di(r))return this.unwrapUntil(r,n);if(Di(i))return this.unwrapUntil(i,n)}return n?void 0:t}static getMetadataFromInternalRegistry(t){return Ey.get(t)}static getMetadataFromRegistry(t){const n=this.getMetadataFromInternalRegistry(t),i=t.meta();if(!n)return i;const{_internal:r}=n,o=io(n,["_internal"]),a=i??{},{id:l,title:s}=a,u=io(a,["id","title"]);return Object.assign(Object.assign(Object.assign({_internal:Object.assign(Object.assign({},l?{refId:l}:{}),r)},o),s?{description:s}:{}),u)}static setMetadataInRegistry(t,n){Ey.add(t,n)}}function Tn(e,t){const n=e[t];typeof n=="function"&&(e[t]=function(...i){const r=n.apply(this,i),o=hr.getMetadataFromRegistry(this);return o&&hr.setMetadataInRegistry(r,o),r})}function iO(e){typeof e.ZodType.prototype.openapi<"u"||(e.ZodType.prototype.openapi=function(...t){const{refId:n,metadata:i,options:r}=oO(...t),o=i??{},{param:a}=o,l=io(o,["param"]),s=hr.getMetadataFromRegistry(this),u=s??{},{_internal:d}=u,c=io(u,["_internal"]),p=Object.assign(Object.assign(Object.assign({},d),r),n?{refId:n}:void 0),m=Object.assign(Object.assign(Object.assign({},c),l),c!=null&&c.param||a?{param:Object.assign(Object.assign({},c==null?void 0:c.param),a)}:void 0),h=new this.constructor(this._def);if(hr.setMetadataInRegistry(h,Object.assign(Object.assign({},Object.keys(p).length>0?{_internal:p}:void 0),m)),fr(h,"ZodObject")){const w=hr.getMetadataFromRegistry(h),v=h.extend;h.extend=function(...y){const x=v.apply(h,y),k=w??{},{_internal:I}=k,N=io(k,["_internal"]);return hr.setMetadataInRegistry(x,{_internal:{extendedFrom:I!=null&&I.refId?{refId:I.refId,schema:h}:I==null?void 0:I.extendedFrom}}),x.openapi(N)},Tn(h,"catchall")}Tn(h,"optional"),Tn(h,"nullable"),Tn(h,"default"),Tn(h,"transform"),Tn(h,"refine"),Tn(h,"length"),Tn(h,"min"),Tn(h,"max");const g=h.meta;return h.meta=function(...w){const v=g.apply(this,w);if(w[0]){const y=hr.getMetadataFromInternalRegistry(this);y&&hr.setMetadataInRegistry(v,Object.assign(Object.assign({},y),w[0]))}return v},h})}function oO(e,t,n){return typeof e=="string"?{refId:e,metadata:t,options:n}:{refId:void 0,metadata:e,options:t}}new Set(".\\+*[^]$()");const dw=Object.freeze({status:"aborted"});function E(e,t,n){function i(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:a,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);const u=a.prototype,d=Object.keys(u);for(let c=0;c<d.length;c++){const p=d[c];p in l||(l[p]=u[p].bind(l))}}const r=(n==null?void 0:n.Parent)??Object;class o extends r{}Object.defineProperty(o,"name",{value:e});function a(l){var s;const u=n!=null&&n.Parent?new o:this;i(u,l),(s=u._zod).deferred??(s.deferred=[]);for(const d of u._zod.deferred)d();return u}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>{var s,u;return n!=null&&n.Parent&&l instanceof n.Parent?!0:(u=(s=l==null?void 0:l._zod)==null?void 0:s.traits)==null?void 0:u.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}const fw=Symbol("zod_brand");class mi extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Wu extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const pu={};function ot(e){return e&&Object.assign(pu,e),pu}function aO(e){return e}function lO(e){return e}function sO(e){}function uO(e){throw new Error("Unexpected value in exhaustive check")}function cO(e){}function Am(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,r])=>t.indexOf(+i)===-1).map(([i,r])=>r)}function Z(e,t="|"){return e.map(n=>ee(n)).join(t)}function mu(e,t){return typeof t=="bigint"?t.toString():t}function pl(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Ci(e){return e==null}function Gu(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function pw(e,t){const n=(e.toString().split(".")[1]||"").length,i=t.toString();let r=(i.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(i)){const s=i.match(/\d?e-(\d?)/);s!=null&&s[1]&&(r=Number.parseInt(s[1]))}const o=n>r?n:r,a=Number.parseInt(e.toFixed(o).replace(".","")),l=Number.parseInt(t.toFixed(o).replace(".",""));return a%l/10**o}const Cy=Symbol("evaluating");function ue(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==Cy)return i===void 0&&(i=Cy,i=n()),i},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function dO(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Hr(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ir(...e){const t={};for(const n of e){const i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}function fO(e){return ir(e._zod.def)}function pO(e,t){return t?t.reduce((n,i)=>n==null?void 0:n[i],e):e}function mO(e){const t=Object.keys(e),n=t.map(i=>e[i]);return Promise.all(n).then(i=>{const r={};for(let o=0;o<t.length;o++)r[t[o]]=i[o];return r})}function hO(e=10){const t="abcdefghijklmnopqrstuvwxyz";let n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}function dp(e){return JSON.stringify(e)}function mw(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Dm="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function No(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const hw=pl(()=>{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 $i(e){if(No(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(No(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Ju(e){return $i(e)?{...e}:Array.isArray(e)?[...e]:e}function gO(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}const vO=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}`)}},hu=new Set(["string","number","symbol"]),gw=new Set(["string","number","bigint","boolean","symbol","undefined"]);function tr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Qt(e,t,n){const i=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(i._zod.parent=e),i}function T(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 yO(e){let t;return new Proxy({},{get(n,i,r){return t??(t=e()),Reflect.get(t,i,r)},set(n,i,r,o){return t??(t=e()),Reflect.set(t,i,r,o)},has(n,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,r){return t??(t=e()),Reflect.defineProperty(t,i,r)}})}function ee(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function vw(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const yw={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]},xw={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function bw(e,t){const n=e._zod.def,i=ir(e._zod.def,{get shape(){const r={};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(r[o]=n.shape[o])}return Hr(this,"shape",r),r},checks:[]});return Qt(e,i)}function kw(e,t){const n=e._zod.def,i=ir(e._zod.def,{get shape(){const r={...e._zod.def.shape};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&delete r[o]}return Hr(this,"shape",r),r},checks:[]});return Qt(e,i)}function ww(e,t){if(!$i(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const r=ir(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return Hr(this,"shape",o),o},checks:[]});return Qt(e,r)}function _w(e,t){if(!$i(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...e._zod.def,get shape(){const i={...e._zod.def.shape,...t};return Hr(this,"shape",i),i},checks:e._zod.def.checks};return Qt(e,n)}function $w(e,t){const n=ir(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t._zod.def.shape};return Hr(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return Qt(e,n)}function Sw(e,t,n){const i=ir(t._zod.def,{get shape(){const r=t._zod.def.shape,o={...r};if(n)for(const a in n){if(!(a in r))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(o[a]=e?new e({type:"optional",innerType:r[a]}):r[a])}else for(const a in r)o[a]=e?new e({type:"optional",innerType:r[a]}):r[a];return Hr(this,"shape",o),o},checks:[]});return Qt(t,i)}function jw(e,t,n){const i=ir(t._zod.def,{get shape(){const r=t._zod.def.shape,o={...r};if(n)for(const a in n){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(o[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(const a in r)o[a]=new e({type:"nonoptional",innerType:r[a]});return Hr(this,"shape",o),o},checks:[]});return Qt(t,i)}function ni(e,t=0){var n;if(e.aborted===!0)return!0;for(let i=t;i<e.issues.length;i++)if(((n=e.issues[i])==null?void 0:n.continue)!==!0)return!0;return!1}function an(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function ma(e){return typeof e=="string"?e:e==null?void 0:e.message}function Kt(e,t,n){var r,o,a,l,s,u;const i={...e,path:e.path??[]};if(!e.message){const d=ma((a=(o=(r=e.inst)==null?void 0:r._zod.def)==null?void 0:o.error)==null?void 0:a.call(o,e))??ma((l=t==null?void 0:t.error)==null?void 0:l.call(t,e))??ma((s=n.customError)==null?void 0:s.call(n,e))??ma((u=n.localeError)==null?void 0:u.call(n,e))??"Invalid input";i.message=d}return delete i.inst,delete i.continue,t!=null&&t.reportInput||delete i.input,i}function Ku(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Qu(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Io(...e){const[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}function xO(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function Nw(e){const t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}function Iw(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function bO(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return Nw(t+n)}function kO(e){return Iw(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function wO(e){const t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");const n=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)n[i/2]=Number.parseInt(t.slice(i,i+2),16);return n}function _O(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}class $O{constructor(...t){}}const Ew=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:xw,Class:$O,NUMBER_FORMAT_RANGES:yw,aborted:ni,allowsEval:hw,assert:cO,assertEqual:aO,assertIs:sO,assertNever:uO,assertNotEqual:lO,assignProp:Hr,base64ToUint8Array:Nw,base64urlToUint8Array:bO,cached:pl,captureStackTrace:Dm,cleanEnum:xO,cleanRegex:Gu,clone:Qt,cloneDef:fO,createTransparentProxy:yO,defineLazy:ue,esc:dp,escapeRegex:tr,extend:ww,finalizeIssue:Kt,floatSafeRemainder:pw,getElementAtPath:pO,getEnumValues:Am,getLengthableOrigin:Qu,getParsedType:vO,getSizableOrigin:Ku,hexToUint8Array:wO,isObject:No,isPlainObject:$i,issue:Io,joinValues:Z,jsonStringifyReplacer:mu,merge:$w,mergeDefs:ir,normalizeParams:T,nullish:Ci,numKeys:gO,objectClone:dO,omit:kw,optionalKeys:vw,partial:Sw,pick:bw,prefixIssues:an,primitiveTypes:gw,promiseAllObject:mO,propertyKeyTypes:hu,randomString:hO,required:jw,safeExtend:_w,shallowClone:Ju,slugify:mw,stringifyPrimitive:ee,uint8ArrayToBase64:Iw,uint8ArrayToBase64url:kO,uint8ArrayToHex:_O,unwrapMessage:ma},Symbol.toStringTag,{value:"Module"})),Cw=(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,mu,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Lm=E("$ZodError",Cw),Dt=E("$ZodError",Cw,{Parent:Error});function Um(e,t=n=>n.message){const n={},i=[];for(const r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return{formErrors:i,fieldErrors:n}}function Fm(e,t=n=>n.message){const n={_errors:[]},i=r=>{for(const o of r.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(a=>i({issues:a}));else if(o.code==="invalid_key")i({issues:o.issues});else if(o.code==="invalid_element")i({issues:o.issues});else if(o.path.length===0)n._errors.push(t(o));else{let a=n,l=0;for(;l<o.path.length;){const s=o.path[l];l===o.path.length-1?(a[s]=a[s]||{_errors:[]},a[s]._errors.push(t(o))):a[s]=a[s]||{_errors:[]},a=a[s],l++}}};return i(e),n}function zw(e,t=n=>n.message){const n={errors:[]},i=(r,o=[])=>{var a,l;for(const s of r.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(u=>i({issues:u},s.path));else if(s.code==="invalid_key")i({issues:s.issues},s.path);else if(s.code==="invalid_element")i({issues:s.issues},s.path);else{const u=[...o,...s.path];if(u.length===0){n.errors.push(t(s));continue}let d=n,c=0;for(;c<u.length;){const p=u[c],m=c===u.length-1;typeof p=="string"?(d.properties??(d.properties={}),(a=d.properties)[p]??(a[p]={errors:[]}),d=d.properties[p]):(d.items??(d.items=[]),(l=d.items)[p]??(l[p]={errors:[]}),d=d.items[p]),m&&d.errors.push(t(s)),c++}}};return i(e),n}function Pw(e){const t=[],n=e.map(i=>typeof i=="object"?i.key:i);for(const i of n)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 Ow(e){var i;const t=[],n=[...e.issues].sort((r,o)=>(r.path??[]).length-(o.path??[]).length);for(const r of n)t.push(`✖ ${r.message}`),(i=r.path)!=null&&i.length&&t.push(` → at ${Pw(r.path)}`);return t.join(`
174
+ `)}const ml=e=>(t,n,i,r)=>{const o=i?Object.assign(i,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new mi;if(a.issues.length){const l=new((r==null?void 0:r.Err)??e)(a.issues.map(s=>Kt(s,o,ot())));throw Dm(l,r==null?void 0:r.callee),l}return a.value},fp=ml(Dt),hl=e=>async(t,n,i,r)=>{const o=i?Object.assign(i,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){const l=new((r==null?void 0:r.Err)??e)(a.issues.map(s=>Kt(s,o,ot())));throw Dm(l,r==null?void 0:r.callee),l}return a.value},pp=hl(Dt),gl=e=>(t,n,i)=>{const r=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},r);if(o instanceof Promise)throw new mi;return o.issues.length?{success:!1,error:new(e??Lm)(o.issues.map(a=>Kt(a,r,ot())))}:{success:!0,data:o.value}},Tw=gl(Dt),vl=e=>async(t,n,i)=>{const r=i?Object.assign(i,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>Kt(a,r,ot())))}:{success:!0,data:o.value}},Rw=vl(Dt),Mm=e=>(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return ml(e)(t,n,r)},SO=Mm(Dt),Zm=e=>(t,n,i)=>ml(e)(t,n,i),jO=Zm(Dt),Bm=e=>async(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return hl(e)(t,n,r)},NO=Bm(Dt),Vm=e=>async(t,n,i)=>hl(e)(t,n,i),IO=Vm(Dt),Hm=e=>(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return gl(e)(t,n,r)},EO=Hm(Dt),qm=e=>(t,n,i)=>gl(e)(t,n,i),CO=qm(Dt),Wm=e=>async(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return vl(e)(t,n,r)},zO=Wm(Dt),Gm=e=>async(t,n,i)=>vl(e)(t,n,i),PO=Gm(Dt),Aw=/^[cC][^\s-]{8,}$/,Dw=/^[0-9a-z]+$/,Lw=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Uw=/^[0-9a-vA-V]{20}$/,Fw=/^[A-Za-z0-9]{27}$/,Mw=/^[a-zA-Z0-9_-]{21}$/,Zw=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,OO=/^[-+]?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)?)??$/,Bw=/^([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})$/,Eo=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)$/,TO=Eo(4),RO=Eo(6),AO=Eo(7),Vw=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,DO=/^[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])?)*$/,LO=/^(([^<>()\[\]\\.,;:\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,}))$/,Hw=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,UO=Hw,FO=/^[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])?)*$/,MO="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function qw(){return new RegExp(MO,"u")}const Ww=/^(?:(?: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])$/,Gw=/^(([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}|:))$/,Jw=e=>{const t=tr(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Kw=/^((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])$/,Qw=/^(([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])$/,Xw=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Jm=/^[A-Za-z0-9_-]*$/,Yw=/^(?=.{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])?)*\.?$/,e_=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,t_=/^\+(?:[0-9]){6,14}[0-9]$/,n_="(?:(?:\\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])))",r_=new RegExp(`^${n_}$`);function i_(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 o_(e){return new RegExp(`^${i_(e)}$`)}function a_(e){const t=i_({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${t}(?:${n.join("|")})`;return new RegExp(`^${n_}T(?:${i})$`)}const l_=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}$`)},s_=/^-?\d+n?$/,u_=/^-?\d+$/,c_=/^-?\d+(?:\.\d+)?/,d_=/^(?:true|false)$/i,f_=/^null$/i,p_=/^undefined$/i,m_=/^[^A-Z]*$/,h_=/^[^a-z]*$/,g_=/^[0-9a-fA-F]*$/;function yl(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function xl(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const ZO=/^[0-9a-fA-F]{32}$/,BO=yl(22,"=="),VO=xl(22),HO=/^[0-9a-fA-F]{40}$/,qO=yl(27,"="),WO=xl(27),GO=/^[0-9a-fA-F]{64}$/,JO=yl(43,"="),KO=xl(43),QO=/^[0-9a-fA-F]{96}$/,XO=yl(64,""),YO=xl(64),e2=/^[0-9a-fA-F]{128}$/,t2=yl(86,"=="),n2=xl(86),Km=Object.freeze(Object.defineProperty({__proto__:null,base64:Xw,base64url:Jm,bigint:s_,boolean:d_,browserEmail:FO,cidrv4:Kw,cidrv6:Qw,cuid:Aw,cuid2:Dw,date:r_,datetime:a_,domain:e_,duration:Zw,e164:t_,email:Vw,emoji:qw,extendedDuration:OO,guid:Bw,hex:g_,hostname:Yw,html5Email:DO,idnEmail:UO,integer:u_,ipv4:Ww,ipv6:Gw,ksuid:Fw,lowercase:m_,mac:Jw,md5_base64:BO,md5_base64url:VO,md5_hex:ZO,nanoid:Mw,null:f_,number:c_,rfc5322Email:LO,sha1_base64:qO,sha1_base64url:WO,sha1_hex:HO,sha256_base64:JO,sha256_base64url:KO,sha256_hex:GO,sha384_base64:XO,sha384_base64url:YO,sha384_hex:QO,sha512_base64:t2,sha512_base64url:n2,sha512_hex:e2,string:l_,time:o_,ulid:Lw,undefined:p_,unicodeEmail:Hw,uppercase:h_,uuid:Eo,uuid4:TO,uuid6:RO,uuid7:AO,xid:Uw},Symbol.toStringTag,{value:"Module"})),ze=E("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),v_={number:"number",bigint:"bigint",object:"date"},Qm=E("$ZodCheckLessThan",(e,t)=>{ze.init(e,t);const n=v_[typeof t.value];e._zod.onattach.push(i=>{const r=i._zod.bag,o=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Xm=E("$ZodCheckGreaterThan",(e,t)=>{ze.init(e,t);const n=v_[typeof t.value];e._zod.onattach.push(i=>{const r=i._zod.bag,o=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),y_=E("$ZodCheckMultipleOf",(e,t)=>{ze.init(e,t),e._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):pw(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),x_=E("$ZodCheckNumberFormat",(e,t)=>{var a;ze.init(e,t),t.format=t.format||"float64";const n=(a=t.format)==null?void 0:a.includes("int"),i=n?"int":"number",[r,o]=yw[t.format];e._zod.onattach.push(l=>{const s=l._zod.bag;s.format=t.format,s.minimum=r,s.maximum=o,n&&(s.pattern=u_)}),e._zod.check=l=>{const s=l.value;if(n){if(!Number.isInteger(s)){l.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?l.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort}):l.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort});return}}s<r&&l.issues.push({origin:"number",input:s,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),s>o&&l.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inst:e})}}),b_=E("$ZodCheckBigIntFormat",(e,t)=>{ze.init(e,t);const[n,i]=xw[t.format];e._zod.onattach.push(r=>{const o=r._zod.bag;o.format=t.format,o.minimum=n,o.maximum=i}),e._zod.check=r=>{const o=r.value;o<n&&r.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o>i&&r.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inst:e})}}),k_=E("$ZodCheckMaxSize",(e,t)=>{var n;ze.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!Ci(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const r=i.value;r.size<=t.maximum||i.issues.push({origin:Ku(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),w_=E("$ZodCheckMinSize",(e,t)=>{var n;ze.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!Ci(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const r=i.value;r.size>=t.minimum||i.issues.push({origin:Ku(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),__=E("$ZodCheckSizeEquals",(e,t)=>{var n;ze.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!Ci(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=i=>{const r=i.value,o=r.size;if(o===t.size)return;const a=o>t.size;i.issues.push({origin:Ku(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),$_=E("$ZodCheckMaxLength",(e,t)=>{var n;ze.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!Ci(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const r=i.value;if(r.length<=t.maximum)return;const a=Qu(r);i.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),S_=E("$ZodCheckMinLength",(e,t)=>{var n;ze.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!Ci(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const r=i.value;if(r.length>=t.minimum)return;const a=Qu(r);i.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),j_=E("$ZodCheckLengthEquals",(e,t)=>{var n;ze.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!Ci(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=i=>{const r=i.value,o=r.length;if(o===t.length)return;const a=Qu(r),l=o>t.length;i.issues.push({origin:a,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),bl=E("$ZodCheckStringFormat",(e,t)=>{var n,i;ze.init(e,t),e._zod.onattach.push(r=>{const o=r._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),N_=E("$ZodCheckRegex",(e,t)=>{bl.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),I_=E("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=m_),bl.init(e,t)}),E_=E("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=h_),bl.init(e,t)}),C_=E("$ZodCheckIncludes",(e,t)=>{ze.init(e,t);const n=tr(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),z_=E("$ZodCheckStartsWith",(e,t)=>{ze.init(e,t);const n=new RegExp(`^${tr(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),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})}}),P_=E("$ZodCheckEndsWith",(e,t)=>{ze.init(e,t);const n=new RegExp(`.*${tr(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),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 zy(e,t,n){e.issues.length&&t.issues.push(...an(n,e.issues))}const O_=E("$ZodCheckProperty",(e,t)=>{ze.init(e,t),e._zod.check=n=>{const i=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(r=>zy(r,n,t.property));zy(i,n,t.property)}}),T_=E("$ZodCheckMimeType",(e,t)=>{ze.init(e,t);const n=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),R_=E("$ZodCheckOverwrite",(e,t)=>{ze.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class A_{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(`
175
+ `).filter(a=>a),r=Math.min(...i.map(a=>a.length-a.trimStart().length)),o=i.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(const a of o)this.content.push(a)}compile(){const t=Function,n=this==null?void 0:this.args,r=[...((this==null?void 0:this.content)??[""]).map(o=>` ${o}`)];return new t(...n,r.join(`
176
+ `))}}const D_={major:4,minor:2,patch:1},ne=E("$ZodType",(e,t)=>{var r;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=D_;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const o of i)for(const a of o._zod.onattach)a(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),(r=e._zod.deferred)==null||r.push(()=>{e._zod.run=e._zod.parse});else{const o=(l,s,u)=>{let d=ni(l),c;for(const p of s){if(p._zod.def.when){if(!p._zod.def.when(l))continue}else if(d)continue;const m=l.issues.length,h=p._zod.check(l);if(h instanceof Promise&&(u==null?void 0:u.async)===!1)throw new mi;if(c||h instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await h,l.issues.length!==m&&(d||(d=ni(l,m)))});else{if(l.issues.length===m)continue;d||(d=ni(l,m))}}return c?c.then(()=>l):l},a=(l,s,u)=>{if(ni(l))return l.aborted=!0,l;const d=o(s,i,u);if(d instanceof Promise){if(u.async===!1)throw new mi;return d.then(c=>e._zod.parse(c,u))}return e._zod.parse(d,u)};e._zod.run=(l,s)=>{if(s.skipChecks)return e._zod.parse(l,s);if(s.direction==="backward"){const d=e._zod.parse({value:l.value,issues:[]},{...s,skipChecks:!0});return d instanceof Promise?d.then(c=>a(c,l,s)):a(d,l,s)}const u=e._zod.parse(l,s);if(u instanceof Promise){if(s.async===!1)throw new mi;return u.then(d=>o(d,i,s))}return o(u,i,s)}}e["~standard"]={validate:o=>{var a;try{const l=Tw(e,o);return l.success?{value:l.data}:{issues:(a=l.error)==null?void 0:a.issues}}catch{return Rw(e,o).then(s=>{var u;return s.success?{value:s.data}:{issues:(u=s.error)==null?void 0:u.issues}})}},vendor:"zod",version:1}}),kl=E("$ZodString",(e,t)=>{var n;ne.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??l_(e._zod.bag),e._zod.parse=(i,r)=>{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}}),_e=E("$ZodStringFormat",(e,t)=>{bl.init(e,t),kl.init(e,t)}),L_=E("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Bw),_e.init(e,t)}),U_=E("$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=Eo(i))}else t.pattern??(t.pattern=Eo());_e.init(e,t)}),F_=E("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Vw),_e.init(e,t)}),M_=E("$ZodURL",(e,t)=>{_e.init(e,t),e._zod.check=n=>{try{const i=n.value.trim(),r=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=r.href:n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Z_=E("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=qw()),_e.init(e,t)}),B_=E("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Mw),_e.init(e,t)}),V_=E("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Aw),_e.init(e,t)}),H_=E("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Dw),_e.init(e,t)}),q_=E("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Lw),_e.init(e,t)}),W_=E("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Uw),_e.init(e,t)}),G_=E("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Fw),_e.init(e,t)}),J_=E("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=a_(t)),_e.init(e,t)}),K_=E("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=r_),_e.init(e,t)}),Q_=E("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=o_(t)),_e.init(e,t)}),X_=E("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Zw),_e.init(e,t)}),Y_=E("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Ww),_e.init(e,t),e._zod.bag.format="ipv4"}),e1=E("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Gw),_e.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),t1=E("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Jw(t.delimiter)),_e.init(e,t),e._zod.bag.format="mac"}),n1=E("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Kw),_e.init(e,t)}),r1=E("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Qw),_e.init(e,t),e._zod.check=n=>{const i=n.value.split("/");try{if(i.length!==2)throw new Error;const[r,o]=i;if(!o)throw new Error;const a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Ym(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const i1=E("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Xw),_e.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Ym(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function o1(e){if(!Jm.test(e))return!1;const t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Ym(n)}const a1=E("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Jm),_e.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{o1(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),l1=E("$ZodE164",(e,t)=>{t.pattern??(t.pattern=t_),_e.init(e,t)});function s1(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[i]=n;if(!i)return!1;const r=JSON.parse(atob(i));return!("typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}const u1=E("$ZodJWT",(e,t)=>{_e.init(e,t),e._zod.check=n=>{s1(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),c1=E("$ZodCustomStringFormat",(e,t)=>{_e.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),eh=E("$ZodNumber",(e,t)=>{ne.init(e,t),e._zod.pattern=e._zod.bag.pattern??c_,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;const o=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...o?{received:o}:{}}),n}}),d1=E("$ZodNumberFormat",(e,t)=>{x_.init(e,t),eh.init(e,t)}),th=E("$ZodBoolean",(e,t)=>{ne.init(e,t),e._zod.pattern=d_,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=!!n.value}catch{}const r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),nh=E("$ZodBigInt",(e,t)=>{ne.init(e,t),e._zod.pattern=s_,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),f1=E("$ZodBigIntFormat",(e,t)=>{b_.init(e,t),nh.init(e,t)}),p1=E("$ZodSymbol",(e,t)=>{ne.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;return typeof r=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),n}}),m1=E("$ZodUndefined",(e,t)=>{ne.init(e,t),e._zod.pattern=p_,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,i)=>{const r=n.value;return typeof r>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),n}}),h1=E("$ZodNull",(e,t)=>{ne.init(e,t),e._zod.pattern=f_,e._zod.values=new Set([null]),e._zod.parse=(n,i)=>{const r=n.value;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),n}}),g1=E("$ZodAny",(e,t)=>{ne.init(e,t),e._zod.parse=n=>n}),v1=E("$ZodUnknown",(e,t)=>{ne.init(e,t),e._zod.parse=n=>n}),y1=E("$ZodNever",(e,t)=>{ne.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),x1=E("$ZodVoid",(e,t)=>{ne.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;return typeof r>"u"||n.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),n}}),b1=E("$ZodDate",(e,t)=>{ne.init(e,t),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}const r=n.value,o=r instanceof Date;return o&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...o?{received:"Invalid Date"}:{},inst:e}),n}});function Py(e,t,n){e.issues.length&&t.issues.push(...an(n,e.issues)),t.value[n]=e.value}const k1=E("$ZodArray",(e,t)=>{ne.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);const o=[];for(let a=0;a<r.length;a++){const l=r[a],s=t.element._zod.run({value:l,issues:[]},i);s instanceof Promise?o.push(s.then(u=>Py(u,n,a))):Py(s,n,a)}return o.length?Promise.all(o).then(()=>n):n}});function gu(e,t,n,i){e.issues.length&&t.issues.push(...an(n,e.issues)),e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value}function w1(e){var i,r,o,a;const t=Object.keys(e.shape);for(const l of t)if(!((a=(o=(r=(i=e.shape)==null?void 0:i[l])==null?void 0:r._zod)==null?void 0:o.traits)!=null&&a.has("$ZodType")))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const n=vw(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function _1(e,t,n,i,r,o){const a=[],l=r.keySet,s=r.catchall._zod,u=s.def.type;for(const d in t){if(l.has(d))continue;if(u==="never"){a.push(d);continue}const c=s.run({value:t[d],issues:[]},i);c instanceof Promise?e.push(c.then(p=>gu(p,n,d,t))):gu(c,n,d,t)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}const $1=E("$ZodObject",(e,t)=>{ne.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const l=t.shape;Object.defineProperty(t,"shape",{get:()=>{const s={...l};return Object.defineProperty(t,"shape",{value:s}),s}})}const i=pl(()=>w1(t));ue(e._zod,"propValues",()=>{const l=t.shape,s={};for(const u in l){const d=l[u]._zod;if(d.values){s[u]??(s[u]=new Set);for(const c of d.values)s[u].add(c)}}return s});const r=No,o=t.catchall;let a;e._zod.parse=(l,s)=>{a??(a=i.value);const u=l.value;if(!r(u))return l.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),l;l.value={};const d=[],c=a.shape;for(const p of a.keys){const h=c[p]._zod.run({value:u[p],issues:[]},s);h instanceof Promise?d.push(h.then(g=>gu(g,l,p,u))):gu(h,l,p,u)}return o?_1(d,u,l,s,i.value,e):d.length?Promise.all(d).then(()=>l):l}}),S1=E("$ZodObjectJIT",(e,t)=>{$1.init(e,t);const n=e._zod.parse,i=pl(()=>w1(t)),r=p=>{const m=new A_(["shape","payload","ctx"]),h=i.value,g=x=>{const k=dp(x);return`shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`};m.write("const input = payload.value;");const w=Object.create(null);let v=0;for(const x of h.keys)w[x]=`key_${v++}`;m.write("const newResult = {};");for(const x of h.keys){const k=w[x],I=dp(x);m.write(`const ${k} = ${g(x)};`),m.write(`
177
+ if (${k}.issues.length) {
178
+ payload.issues = payload.issues.concat(${k}.issues.map(iss => ({
179
+ ...iss,
180
+ path: iss.path ? [${I}, ...iss.path] : [${I}]
181
+ })));
182
+ }
183
+
184
+
185
+ if (${k}.value === undefined) {
186
+ if (${I} in input) {
187
+ newResult[${I}] = undefined;
188
+ }
189
+ } else {
190
+ newResult[${I}] = ${k}.value;
191
+ }
192
+
193
+ `)}m.write("payload.value = newResult;"),m.write("return payload;");const y=m.compile();return(x,k)=>y(p,x,k)};let o;const a=No,l=!pu.jitless,u=l&&hw.value,d=t.catchall;let c;e._zod.parse=(p,m)=>{c??(c=i.value);const h=p.value;return a(h)?l&&u&&(m==null?void 0:m.async)===!1&&m.jitless!==!0?(o||(o=r(t.shape)),p=o(p,m),d?_1([],h,p,m,c,e):p):n(p,m):(p.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),p)}});function Oy(e,t,n,i){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const r=e.filter(o=>!ni(o));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>Kt(a,i,ot())))}),t)}const Xu=E("$ZodUnion",(e,t)=>{ne.init(e,t),ue(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),ue(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),ue(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),ue(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${r.map(o=>Gu(o.source)).join("|")})$`)}});const n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(r,o)=>{if(n)return i(r,o);let a=!1;const l=[];for(const s of t.options){const u=s._zod.run({value:r.value,issues:[]},o);if(u instanceof Promise)l.push(u),a=!0;else{if(u.issues.length===0)return u;l.push(u)}}return a?Promise.all(l).then(s=>Oy(s,r,e,o)):Oy(l,r,e,o)}});function Ty(e,t,n,i){const r=e.filter(o=>o.issues.length===0);return r.length===1?(t.value=r[0].value,t):(r.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>Kt(a,i,ot())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}const j1=E("$ZodXor",(e,t)=>{Xu.init(e,t),t.inclusive=!1;const n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(r,o)=>{if(n)return i(r,o);let a=!1;const l=[];for(const s of t.options){const u=s._zod.run({value:r.value,issues:[]},o);u instanceof Promise?(l.push(u),a=!0):l.push(u)}return a?Promise.all(l).then(s=>Ty(s,r,e,o)):Ty(l,r,e,o)}}),N1=E("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Xu.init(e,t);const n=e._zod.parse;ue(e._zod,"propValues",()=>{const r={};for(const o of t.options){const a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(const[l,s]of Object.entries(a)){r[l]||(r[l]=new Set);for(const u of s)r[l].add(u)}}return r});const i=pl(()=>{var a;const r=t.options,o=new Map;for(const l of r){const s=(a=l._zod.propValues)==null?void 0:a[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(const u of s){if(o.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);o.set(u,l)}}return o});e._zod.parse=(r,o)=>{const a=r.value;if(!No(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;const l=i.value.get(a==null?void 0:a[t.discriminator]);return l?l._zod.run(r,o):t.unionFallback?n(r,o):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),r)}}),I1=E("$ZodIntersection",(e,t)=>{ne.init(e,t),e._zod.parse=(n,i)=>{const r=n.value,o=t.left._zod.run({value:r,issues:[]},i),a=t.right._zod.run({value:r,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([s,u])=>Ry(n,s,u)):Ry(n,o,a)}});function mp(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($i(e)&&$i(t)){const n=Object.keys(t),i=Object.keys(e).filter(o=>n.indexOf(o)!==-1),r={...e,...t};for(const o of i){const a=mp(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r[o]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let i=0;i<e.length;i++){const r=e[i],o=t[i],a=mp(r,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ry(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),ni(e))return e;const i=mp(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const rh=E("$ZodTuple",(e,t)=>{ne.init(e,t);const n=t.items;e._zod.parse=(i,r)=>{const o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];const a=[],l=[...n].reverse().findIndex(d=>d._zod.optin!=="optional"),s=l===-1?0:n.length-l;if(!t.rest){const d=o.length>n.length,c=o.length<s-1;if(d||c)return i.issues.push({...d?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},input:o,inst:e,origin:"array"}),i}let u=-1;for(const d of n){if(u++,u>=o.length&&u>=s)continue;const c=d._zod.run({value:o[u],issues:[]},r);c instanceof Promise?a.push(c.then(p=>as(p,i,u))):as(c,i,u)}if(t.rest){const d=o.slice(n.length);for(const c of d){u++;const p=t.rest._zod.run({value:c,issues:[]},r);p instanceof Promise?a.push(p.then(m=>as(m,i,u))):as(p,i,u)}}return a.length?Promise.all(a).then(()=>i):i}});function as(e,t,n){e.issues.length&&t.issues.push(...an(n,e.issues)),t.value[n]=e.value}const E1=E("$ZodRecord",(e,t)=>{ne.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;if(!$i(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;const o=[],a=t.keyType._zod.values;if(a){n.value={};const l=new Set;for(const u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){l.add(typeof u=="number"?u.toString():u);const d=t.valueType._zod.run({value:r[u],issues:[]},i);d instanceof Promise?o.push(d.then(c=>{c.issues.length&&n.issues.push(...an(u,c.issues)),n.value[u]=c.value})):(d.issues.length&&n.issues.push(...an(u,d.issues)),n.value[u]=d.value)}let s;for(const u in r)l.has(u)||(s=s??[],s.push(u));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:s})}else{n.value={};for(const l of Reflect.ownKeys(r)){if(l==="__proto__")continue;const s=t.keyType._zod.run({value:l,issues:[]},i);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(s.issues.length){t.mode==="loose"?n.value[l]=r[l]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(d=>Kt(d,i,ot())),input:l,path:[l],inst:e});continue}const u=t.valueType._zod.run({value:r[l],issues:[]},i);u instanceof Promise?o.push(u.then(d=>{d.issues.length&&n.issues.push(...an(l,d.issues)),n.value[s.value]=d.value})):(u.issues.length&&n.issues.push(...an(l,u.issues)),n.value[s.value]=u.value)}}return o.length?Promise.all(o).then(()=>n):n}}),C1=E("$ZodMap",(e,t)=>{ne.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),n;const o=[];n.value=new Map;for(const[a,l]of r){const s=t.keyType._zod.run({value:a,issues:[]},i),u=t.valueType._zod.run({value:l,issues:[]},i);s instanceof Promise||u instanceof Promise?o.push(Promise.all([s,u]).then(([d,c])=>{Ay(d,c,n,a,r,e,i)})):Ay(s,u,n,a,r,e,i)}return o.length?Promise.all(o).then(()=>n):n}});function Ay(e,t,n,i,r,o,a){e.issues.length&&(hu.has(typeof i)?n.issues.push(...an(i,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:o,issues:e.issues.map(l=>Kt(l,a,ot()))})),t.issues.length&&(hu.has(typeof i)?n.issues.push(...an(i,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:o,key:i,issues:t.issues.map(l=>Kt(l,a,ot()))})),n.value.set(e.value,t.value)}const z1=E("$ZodSet",(e,t)=>{ne.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),n;const o=[];n.value=new Set;for(const a of r){const l=t.valueType._zod.run({value:a,issues:[]},i);l instanceof Promise?o.push(l.then(s=>Dy(s,n))):Dy(l,n)}return o.length?Promise.all(o).then(()=>n):n}});function Dy(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}const P1=E("$ZodEnum",(e,t)=>{ne.init(e,t);const n=Am(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(r=>hu.has(typeof r)).map(r=>typeof r=="string"?tr(r):r.toString()).join("|")})$`),e._zod.parse=(r,o)=>{const a=r.value;return i.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:e}),r}}),O1=E("$ZodLiteral",(e,t)=>{if(ne.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?tr(i):i?tr(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,r)=>{const o=i.value;return n.has(o)||i.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),i}}),T1=E("$ZodFile",(e,t)=>{ne.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),n}}),R1=E("$ZodTransform",(e,t)=>{ne.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Wu(e.constructor.name);const r=t.transform(n.value,n);if(i.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n));if(r instanceof Promise)throw new mi;return n.value=r,n}});function Ly(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const A1=E("$ZodOptional",(e,t)=>{ne.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ue(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ue(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Gu(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>Ly(o,n.value)):Ly(r,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),D1=E("$ZodNullable",(e,t)=>{ne.init(e,t),ue(e._zod,"optin",()=>t.innerType._zod.optin),ue(e._zod,"optout",()=>t.innerType._zod.optout),ue(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Gu(n.source)}|null)$`):void 0}),ue(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),L1=E("$ZodDefault",(e,t)=>{ne.init(e,t),e._zod.optin="optional",ue(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);if(n.value===void 0)return n.value=t.defaultValue,n;const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>Uy(o,t)):Uy(r,t)}});function Uy(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const U1=E("$ZodPrefault",(e,t)=>{ne.init(e,t),e._zod.optin="optional",ue(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),F1=E("$ZodNonOptional",(e,t)=>{ne.init(e,t),ue(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>Fy(o,e)):Fy(r,e)}});function Fy(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 M1=E("$ZodSuccess",(e,t)=>{ne.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Wu("ZodSuccess");const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.issues.length===0,n)):(n.value=r.issues.length===0,n)}}),Z1=E("$ZodCatch",(e,t)=>{ne.init(e,t),ue(e._zod,"optin",()=>t.innerType._zod.optin),ue(e._zod,"optout",()=>t.innerType._zod.optout),ue(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=>Kt(a,i,ot()))},input:n.value}),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(o=>Kt(o,i,ot()))},input:n.value}),n.issues=[]),n)}}),B1=E("$ZodNaN",(e,t)=>{ne.init(e,t),e._zod.parse=(n,i)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),V1=E("$ZodPipe",(e,t)=>{ne.init(e,t),ue(e._zod,"values",()=>t.in._zod.values),ue(e._zod,"optin",()=>t.in._zod.optin),ue(e._zod,"optout",()=>t.out._zod.optout),ue(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){const o=t.out._zod.run(n,i);return o instanceof Promise?o.then(a=>ls(a,t.in,i)):ls(o,t.in,i)}const r=t.in._zod.run(n,i);return r instanceof Promise?r.then(o=>ls(o,t.out,i)):ls(r,t.out,i)}});function ls(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const ih=E("$ZodCodec",(e,t)=>{ne.init(e,t),ue(e._zod,"values",()=>t.in._zod.values),ue(e._zod,"optin",()=>t.in._zod.optin),ue(e._zod,"optout",()=>t.out._zod.optout),ue(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if((i.direction||"forward")==="forward"){const o=t.in._zod.run(n,i);return o instanceof Promise?o.then(a=>ss(a,t,i)):ss(o,t,i)}else{const o=t.out._zod.run(n,i);return o instanceof Promise?o.then(a=>ss(a,t,i)):ss(o,t,i)}}});function ss(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){const r=t.transform(e.value,e);return r instanceof Promise?r.then(o=>us(e,o,t.out,n)):us(e,r,t.out,n)}else{const r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(o=>us(e,o,t.in,n)):us(e,r,t.in,n)}}function us(e,t,n,i){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},i)}const H1=E("$ZodReadonly",(e,t)=>{ne.init(e,t),ue(e._zod,"propValues",()=>t.innerType._zod.propValues),ue(e._zod,"values",()=>t.innerType._zod.values),ue(e._zod,"optin",()=>{var n,i;return(i=(n=t.innerType)==null?void 0:n._zod)==null?void 0:i.optin}),ue(e._zod,"optout",()=>{var n,i;return(i=(n=t.innerType)==null?void 0:n._zod)==null?void 0:i.optout}),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);const r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(My):My(r)}});function My(e){return e.value=Object.freeze(e.value),e}const q1=E("$ZodTemplateLiteral",(e,t)=>{ne.init(e,t);const n=[];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 r=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${i._zod.traits}`);const o=r.startsWith("^")?1:0,a=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(o,a))}else if(i===null||gw.has(typeof i))n.push(tr(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(i,r)=>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)}),W1=E("$ZodFunction",(e,t)=>(ne.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...i){const r=e._def.input?fp(e._def.input,i):i,o=Reflect.apply(n,this,r);return e._def.output?fp(e._def.output,o):o}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){const r=e._def.input?await pp(e._def.input,i):i,o=await Reflect.apply(n,this,r);return e._def.output?await pp(e._def.output,o):o}},e._zod.parse=(n,i)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{const i=e.constructor;return Array.isArray(n[0])?new i({type:"function",input:new rh({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new i({type:"function",input:n[0],output:e._def.output})},e.output=n=>{const i=e.constructor;return new i({type:"function",input:e._def.input,output:n})},e)),G1=E("$ZodPromise",(e,t)=>{ne.init(e,t),e._zod.parse=(n,i)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},i))}),J1=E("$ZodLazy",(e,t)=>{ne.init(e,t),ue(e._zod,"innerType",()=>t.getter()),ue(e._zod,"pattern",()=>{var n,i;return(i=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:i.pattern}),ue(e._zod,"propValues",()=>{var n,i;return(i=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:i.propValues}),ue(e._zod,"optin",()=>{var n,i;return((i=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:i.optin)??void 0}),ue(e._zod,"optout",()=>{var n,i;return((i=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:i.optout)??void 0}),e._zod.parse=(n,i)=>e._zod.innerType._zod.run(n,i)}),K1=E("$ZodCustom",(e,t)=>{ze.init(e,t),ne.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{const i=n.value,r=t.fn(i);if(r instanceof Promise)return r.then(o=>Zy(o,n,i,e));Zy(r,n,i,e)}});function Zy(e,t,n,i){if(!e){const r={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(r.params=i._zod.def.params),t.issues.push(Io(r))}}const r2=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${r.expected}، ولكن تم إدخال ${n(r.input)}`;case"invalid_value":return r.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${ee(r.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?` أكبر من اللازم: يفترض أن تكون ${r.origin??"القيمة"} ${o} ${r.maximum.toString()} ${a.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${r.origin??"القيمة"} ${o} ${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`أصغر من اللازم: يفترض لـ ${r.origin} أن يكون ${o} ${r.minimum.toString()} ${a.unit}`:`أصغر من اللازم: يفترض لـ ${r.origin} أن يكون ${o} ${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${r.prefix}"`:o.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${o.suffix}"`:o.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${o.includes}"`:o.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${o.pattern}`:`${i[o.format]??r.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${r.divisor}`;case"unrecognized_keys":return`معرف${r.keys.length>1?"ات":""} غريب${r.keys.length>1?"ة":""}: ${Z(r.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${r.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${r.origin}`;default:return"مدخل غير مقبول"}}};function i2(){return{localeError:r2()}}const o2=()=>{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(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${r.expected}, daxil olan ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Yanlış dəyər: gözlənilən ${ee(r.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Çox böyük: gözlənilən ${r.origin??"dəyər"} ${o}${r.maximum.toString()} ${a.unit??"element"}`:`Çox böyük: gözlənilən ${r.origin??"dəyər"} ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`Çox kiçik: gözlənilən ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`Çox kiçik: gözlənilən ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Yanlış mətn: "${o.prefix}" ilə başlamalıdır`:o.format==="ends_with"?`Yanlış mətn: "${o.suffix}" ilə bitməlidir`:o.format==="includes"?`Yanlış mətn: "${o.includes}" daxil olmalıdır`:o.format==="regex"?`Yanlış mətn: ${o.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${i[o.format]??r.format}`}case"not_multiple_of":return`Yanlış ədəd: ${r.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${r.keys.length>1?"lar":""}: ${Z(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${r.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function a2(){return{localeError:o2()}}function By(e,t,n,i){const r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?n:i}const l2=()=>{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(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"лік";case"object":{if(Array.isArray(r))return"масіў";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${r.expected}, атрымана ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Няправільны ўвод: чакалася ${ee(r.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);if(a){const l=Number(r.maximum),s=By(l,a.unit.one,a.unit.few,a.unit.many);return`Занадта вялікі: чакалася, што ${r.origin??"значэнне"} павінна ${a.verb} ${o}${r.maximum.toString()} ${s}`}return`Занадта вялікі: чакалася, што ${r.origin??"значэнне"} павінна быць ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);if(a){const l=Number(r.minimum),s=By(l,a.unit.one,a.unit.few,a.unit.many);return`Занадта малы: чакалася, што ${r.origin} павінна ${a.verb} ${o}${r.minimum.toString()} ${s}`}return`Занадта малы: чакалася, што ${r.origin} павінна быць ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${o.prefix}"`:o.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${o.suffix}"`:o.format==="includes"?`Няправільны радок: павінен змяшчаць "${o.includes}"`:o.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${o.pattern}`:`Няправільны ${i[o.format]??r.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${r.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${r.keys.length>1?"ключы":"ключ"}: ${Z(r.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${r.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${r.origin}`;default:return"Няправільны ўвод"}}};function s2(){return{localeError:l2()}}const u2=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},c2=()=>{const e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function t(i){return e[i]??null}const n={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}, получен ${u2(i.input)}`;case"invalid_value":return i.values.length===1?`Невалиден вход: очакван ${ee(i.values[0])}`:`Невалидна опция: очаквано едно от ${Z(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",o=t(i.origin);return o?`Твърде голямо: очаква се ${i.origin??"стойност"} да съдържа ${r}${i.maximum.toString()} ${o.unit??"елемента"}`:`Твърде голямо: очаква се ${i.origin??"стойност"} да бъде ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",o=t(i.origin);return o?`Твърде малко: очаква се ${i.origin} да съдържа ${r}${i.minimum.toString()} ${o.unit}`:`Твърде малко: очаква се ${i.origin} да бъде ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;if(r.format==="starts_with")return`Невалиден низ: трябва да започва с "${r.prefix}"`;if(r.format==="ends_with")return`Невалиден низ: трябва да завършва с "${r.suffix}"`;if(r.format==="includes")return`Невалиден низ: трябва да включва "${r.includes}"`;if(r.format==="regex")return`Невалиден низ: трябва да съвпада с ${r.pattern}`;let o="Невалиден";return r.format==="emoji"&&(o="Невалидно"),r.format==="datetime"&&(o="Невалидно"),r.format==="date"&&(o="Невалидна"),r.format==="time"&&(o="Невалидно"),r.format==="duration"&&(o="Невалидна"),`${o} ${n[r.format]??i.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${i.divisor}`;case"unrecognized_keys":return`Неразпознат${i.keys.length>1?"и":""} ключ${i.keys.length>1?"ове":""}: ${Z(i.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${i.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${i.origin}`;default:return"Невалиден вход"}}};function d2(){return{localeError:c2()}}const f2=()=>{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(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`Tipus invàlid: s'esperava ${r.expected}, s'ha rebut ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Valor invàlid: s'esperava ${ee(r.values[0])}`:`Opció invàlida: s'esperava una de ${Z(r.values," o ")}`;case"too_big":{const o=r.inclusive?"com a màxim":"menys de",a=t(r.origin);return a?`Massa gran: s'esperava que ${r.origin??"el valor"} contingués ${o} ${r.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${o} ${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?"com a mínim":"més de",a=t(r.origin);return a?`Massa petit: s'esperava que ${r.origin} contingués ${o} ${r.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${o} ${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Format invàlid: ha de començar amb "${o.prefix}"`:o.format==="ends_with"?`Format invàlid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format invàlid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${o.pattern}`:`Format invàlid per a ${i[o.format]??r.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${Z(r.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${r.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${r.origin}`;default:return"Entrada invàlida"}}};function p2(){return{localeError:f2()}}const m2=()=>{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(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"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(r))return"pole";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`Neplatný vstup: očekáváno ${r.expected}, obdrženo ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Neplatný vstup: očekáváno ${ee(r.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je příliš velká: ${r.origin??"hodnota"} musí mít ${o}${r.maximum.toString()} ${a.unit??"prvků"}`:`Hodnota je příliš velká: ${r.origin??"hodnota"} musí být ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`Hodnota je příliš malá: ${r.origin??"hodnota"} musí mít ${o}${r.minimum.toString()} ${a.unit??"prvků"}`:`Hodnota je příliš malá: ${r.origin??"hodnota"} musí být ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Neplatný řetězec: musí začínat na "${o.prefix}"`:o.format==="ends_with"?`Neplatný řetězec: musí končit na "${o.suffix}"`:o.format==="includes"?`Neplatný řetězec: musí obsahovat "${o.includes}"`:o.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${o.pattern}`:`Neplatný formát ${i[o.format]??r.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${r.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${Z(r.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${r.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${r.origin}`;default:return"Neplatný vstup"}}};function h2(){return{localeError:m2()}}const g2=()=>{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 n(a){return e[a]??null}function i(a){return t[a]??a}const r=a=>{const l=typeof a;switch(l){case"number":return Number.isNaN(a)?"NaN":"tal";case"object":return Array.isArray(a)?"liste":a===null?"null":Object.getPrototypeOf(a)!==Object.prototype&&a.constructor?a.constructor.name:"objekt"}return l},o={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return a=>{switch(a.code){case"invalid_type":return`Ugyldigt input: forventede ${i(a.expected)}, fik ${i(r(a.input))}`;case"invalid_value":return a.values.length===1?`Ugyldig værdi: forventede ${ee(a.values[0])}`:`Ugyldigt valg: forventede en af følgende ${Z(a.values,"|")}`;case"too_big":{const l=a.inclusive?"<=":"<",s=n(a.origin),u=i(a.origin);return s?`For stor: forventede ${u??"value"} ${s.verb} ${l} ${a.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${u??"value"} havde ${l} ${a.maximum.toString()}`}case"too_small":{const l=a.inclusive?">=":">",s=n(a.origin),u=i(a.origin);return s?`For lille: forventede ${u} ${s.verb} ${l} ${a.minimum.toString()} ${s.unit}`:`For lille: forventede ${u} havde ${l} ${a.minimum.toString()}`}case"invalid_format":{const l=a;return l.format==="starts_with"?`Ugyldig streng: skal starte med "${l.prefix}"`:l.format==="ends_with"?`Ugyldig streng: skal ende med "${l.suffix}"`:l.format==="includes"?`Ugyldig streng: skal indeholde "${l.includes}"`:l.format==="regex"?`Ugyldig streng: skal matche mønsteret ${l.pattern}`:`Ugyldig ${o[l.format]??a.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${Z(a.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${a.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${a.origin}`;default:return"Ugyldigt input"}}};function v2(){return{localeError:g2()}}const y2=()=>{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(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"Zahl";case"object":{if(Array.isArray(r))return"Array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`Ungültige Eingabe: erwartet ${r.expected}, erhalten ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ungültige Eingabe: erwartet ${ee(r.values[0])}`:`Ungültige Option: erwartet eine von ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Zu groß: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ist`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ist`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Ungültiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ungültiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ungültiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ungültiger String: muss dem Muster ${o.pattern} entsprechen`:`Ungültig: ${i[o.format]??r.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${Z(r.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${r.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${r.origin}`;default:return"Ungültige Eingabe"}}};function x2(){return{localeError:y2()}}const b2=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},k2=()=>{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 n={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 ${b2(i.input)}`;case"invalid_value":return i.values.length===1?`Invalid input: expected ${ee(i.values[0])}`:`Invalid option: expected one of ${Z(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",o=t(i.origin);return o?`Too big: expected ${i.origin??"value"} to have ${r}${i.maximum.toString()} ${o.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",o=t(i.origin);return o?`Too small: expected ${i.origin} to have ${r}${i.minimum.toString()} ${o.unit}`:`Too small: expected ${i.origin} to be ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Invalid string: must start with "${r.prefix}"`:r.format==="ends_with"?`Invalid string: must end with "${r.suffix}"`:r.format==="includes"?`Invalid string: must include "${r.includes}"`:r.format==="regex"?`Invalid string: must match pattern ${r.pattern}`:`Invalid ${n[r.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":""}: ${Z(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 Q1(){return{localeError:k2()}}const w2=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},_2=()=>{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 n={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 ${w2(i.input)}`;case"invalid_value":return i.values.length===1?`Nevalida enigo: atendiĝis ${ee(i.values[0])}`:`Nevalida opcio: atendiĝis unu el ${Z(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",o=t(i.origin);return o?`Tro granda: atendiĝis ke ${i.origin??"valoro"} havu ${r}${i.maximum.toString()} ${o.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${i.origin??"valoro"} havu ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",o=t(i.origin);return o?`Tro malgranda: atendiĝis ke ${i.origin} havu ${r}${i.minimum.toString()} ${o.unit}`:`Tro malgranda: atendiĝis ke ${i.origin} estu ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${r.prefix}"`:r.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${r.suffix}"`:r.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${r.includes}"`:r.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${r.pattern}`:`Nevalida ${n[r.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":""}: ${Z(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 $2(){return{localeError:_2()}}const S2=()=>{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 n(a){return e[a]??null}function i(a){return t[a]??a}const r=a=>{const l=typeof a;switch(l){case"number":return Number.isNaN(a)?"NaN":"number";case"object":return Array.isArray(a)?"array":a===null?"null":Object.getPrototypeOf(a)!==Object.prototype?a.constructor.name:"object"}return l},o={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return a=>{switch(a.code){case"invalid_type":return`Entrada inválida: se esperaba ${i(a.expected)}, recibido ${i(r(a.input))}`;case"invalid_value":return a.values.length===1?`Entrada inválida: se esperaba ${ee(a.values[0])}`:`Opción inválida: se esperaba una de ${Z(a.values,"|")}`;case"too_big":{const l=a.inclusive?"<=":"<",s=n(a.origin),u=i(a.origin);return s?`Demasiado grande: se esperaba que ${u??"valor"} tuviera ${l}${a.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${u??"valor"} fuera ${l}${a.maximum.toString()}`}case"too_small":{const l=a.inclusive?">=":">",s=n(a.origin),u=i(a.origin);return s?`Demasiado pequeño: se esperaba que ${u} tuviera ${l}${a.minimum.toString()} ${s.unit}`:`Demasiado pequeño: se esperaba que ${u} fuera ${l}${a.minimum.toString()}`}case"invalid_format":{const l=a;return l.format==="starts_with"?`Cadena inválida: debe comenzar con "${l.prefix}"`:l.format==="ends_with"?`Cadena inválida: debe terminar en "${l.suffix}"`:l.format==="includes"?`Cadena inválida: debe incluir "${l.includes}"`:l.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${l.pattern}`:`Inválido ${o[l.format]??a.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${a.divisor}`;case"unrecognized_keys":return`Llave${a.keys.length>1?"s":""} desconocida${a.keys.length>1?"s":""}: ${Z(a.keys,", ")}`;case"invalid_key":return`Llave inválida en ${i(a.origin)}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${i(a.origin)}`;default:return"Entrada inválida"}}};function j2(){return{localeError:S2()}}const N2=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"عدد";case"object":{if(Array.isArray(r))return"آرایه";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`ورودی نامعتبر: می‌بایست ${r.expected} می‌بود، ${n(r.input)} دریافت شد`;case"invalid_value":return r.values.length===1?`ورودی نامعتبر: می‌بایست ${ee(r.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${Z(r.values,"|")} می‌بود`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`خیلی بزرگ: ${r.origin??"مقدار"} باید ${o}${r.maximum.toString()} ${a.unit??"عنصر"} باشد`:`خیلی بزرگ: ${r.origin??"مقدار"} باید ${o}${r.maximum.toString()} باشد`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`خیلی کوچک: ${r.origin} باید ${o}${r.minimum.toString()} ${a.unit} باشد`:`خیلی کوچک: ${r.origin} باید ${o}${r.minimum.toString()} باشد`}case"invalid_format":{const o=r;return o.format==="starts_with"?`رشته نامعتبر: باید با "${o.prefix}" شروع شود`:o.format==="ends_with"?`رشته نامعتبر: باید با "${o.suffix}" تمام شود`:o.format==="includes"?`رشته نامعتبر: باید شامل "${o.includes}" باشد`:o.format==="regex"?`رشته نامعتبر: باید با الگوی ${o.pattern} مطابقت داشته باشد`:`${i[o.format]??r.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${r.divisor} باشد`;case"unrecognized_keys":return`کلید${r.keys.length>1?"های":""} ناشناس: ${Z(r.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${r.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${r.origin}`;default:return"ورودی نامعتبر"}}};function I2(){return{localeError:N2()}}const E2=()=>{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(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${r.expected}, oli ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Virheellinen syöte: täytyy olla ${ee(r.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Liian suuri: ${a.subject} täytyy olla ${o}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon täytyy olla ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`Liian pieni: ${a.subject} täytyy olla ${o}${r.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon täytyy olla ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen syöte: täytyy sisältää "${o.includes}"`:o.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${o.pattern}`:`Virheellinen ${i[o.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${Z(r.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 C2(){return{localeError:E2()}}const z2=()=>{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(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"nombre";case"object":{if(Array.isArray(r))return"tableau";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`Entrée invalide : ${r.expected} attendu, ${n(r.input)} reçu`;case"invalid_value":return r.values.length===1?`Entrée invalide : ${ee(r.values[0])} attendu`:`Option invalide : une valeur parmi ${Z(r.values,"|")} attendue`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Trop grand : ${r.origin??"valeur"} doit ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"élément(s)"}`:`Trop grand : ${r.origin??"valeur"} doit être ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`Trop petit : ${r.origin} doit ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : ${r.origin} doit être ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Chaîne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Chaîne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Chaîne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${o.pattern}`:`${i[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${r.divisor}`;case"unrecognized_keys":return`Clé${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${Z(r.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${r.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entrée invalide"}}};function P2(){return{localeError:z2()}}const O2=()=>{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(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`Entrée invalide : attendu ${r.expected}, reçu ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Entrée invalide : attendu ${ee(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"≤":"<",a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${o}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?"≥":">",a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${r.origin} soit ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Chaîne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Chaîne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Chaîne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Chaîne invalide : doit correspondre au motif ${o.pattern}`:`${i[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${r.divisor}`;case"unrecognized_keys":return`Clé${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${Z(r.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${r.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entrée invalide"}}};function T2(){return{localeError:O2()}}const R2=()=>{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:"גדול"}},n=u=>u?e[u]:void 0,i=u=>{const d=n(u);return d?d.label:u??e.unknown.label},r=u=>`ה${i(u)}`,o=u=>{const d=n(u);return((d==null?void 0:d.gender)??"m")==="f"?"צריכה להיות":"צריך להיות"},a=u=>u?t[u]??null:null,l=u=>{const d=typeof u;switch(d){case"number":return Number.isNaN(u)?"NaN":"number";case"object":return Array.isArray(u)?"array":u===null?"null":Object.getPrototypeOf(u)!==Object.prototype&&u.constructor?u.constructor.name:"object";default:return d}},s={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 u=>{var d;switch(u.code){case"invalid_type":{const c=u.expected,p=i(c),m=l(u.input),h=((d=e[m])==null?void 0:d.label)??m;return`קלט לא תקין: צריך להיות ${p}, התקבל ${h}`}case"invalid_value":{if(u.values.length===1)return`ערך לא תקין: הערך חייב להיות ${ee(u.values[0])}`;const c=u.values.map(h=>ee(h));if(u.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${c[0]} או ${c[1]}`;const p=c[c.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${c.slice(0,-1).join(", ")} או ${p}`}case"too_big":{const c=a(u.origin),p=r(u.origin??"value");if(u.origin==="string")return`${(c==null?void 0:c.longLabel)??"ארוך"} מדי: ${p} צריכה להכיל ${u.maximum.toString()} ${(c==null?void 0:c.unit)??""} ${u.inclusive?"או פחות":"לכל היותר"}`.trim();if(u.origin==="number"){const g=u.inclusive?`קטן או שווה ל-${u.maximum}`:`קטן מ-${u.maximum}`;return`גדול מדי: ${p} צריך להיות ${g}`}if(u.origin==="array"||u.origin==="set"){const g=u.origin==="set"?"צריכה":"צריך",w=u.inclusive?`${u.maximum} ${(c==null?void 0:c.unit)??""} או פחות`:`פחות מ-${u.maximum} ${(c==null?void 0:c.unit)??""}`;return`גדול מדי: ${p} ${g} להכיל ${w}`.trim()}const m=u.inclusive?"<=":"<",h=o(u.origin??"value");return c!=null&&c.unit?`${c.longLabel} מדי: ${p} ${h} ${m}${u.maximum.toString()} ${c.unit}`:`${(c==null?void 0:c.longLabel)??"גדול"} מדי: ${p} ${h} ${m}${u.maximum.toString()}`}case"too_small":{const c=a(u.origin),p=r(u.origin??"value");if(u.origin==="string")return`${(c==null?void 0:c.shortLabel)??"קצר"} מדי: ${p} צריכה להכיל ${u.minimum.toString()} ${(c==null?void 0:c.unit)??""} ${u.inclusive?"או יותר":"לפחות"}`.trim();if(u.origin==="number"){const g=u.inclusive?`גדול או שווה ל-${u.minimum}`:`גדול מ-${u.minimum}`;return`קטן מדי: ${p} צריך להיות ${g}`}if(u.origin==="array"||u.origin==="set"){const g=u.origin==="set"?"צריכה":"צריך";if(u.minimum===1&&u.inclusive){const v=(u.origin==="set","לפחות פריט אחד");return`קטן מדי: ${p} ${g} להכיל ${v}`}const w=u.inclusive?`${u.minimum} ${(c==null?void 0:c.unit)??""} או יותר`:`יותר מ-${u.minimum} ${(c==null?void 0:c.unit)??""}`;return`קטן מדי: ${p} ${g} להכיל ${w}`.trim()}const m=u.inclusive?">=":">",h=o(u.origin??"value");return c!=null&&c.unit?`${c.shortLabel} מדי: ${p} ${h} ${m}${u.minimum.toString()} ${c.unit}`:`${(c==null?void 0:c.shortLabel)??"קטן"} מדי: ${p} ${h} ${m}${u.minimum.toString()}`}case"invalid_format":{const c=u;if(c.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${c.prefix}"`;if(c.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${c.suffix}"`;if(c.format==="includes")return`המחרוזת חייבת לכלול "${c.includes}"`;if(c.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${c.pattern}`;const p=s[c.format],m=(p==null?void 0:p.label)??c.format,g=((p==null?void 0:p.gender)??"m")==="f"?"תקינה":"תקין";return`${m} לא ${g}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${u.divisor}`;case"unrecognized_keys":return`מפתח${u.keys.length>1?"ות":""} לא מזוה${u.keys.length>1?"ים":"ה"}: ${Z(u.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${r(u.origin??"array")}`;default:return"קלט לא תקין"}}};function A2(){return{localeError:R2()}}const D2=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"szám";case"object":{if(Array.isArray(r))return"tömb";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${r.expected}, a kapott érték ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Érvénytelen bemenet: a várt érték ${ee(r.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Túl nagy: ${r.origin??"érték"} mérete túl nagy ${o}${r.maximum.toString()} ${a.unit??"elem"}`:`Túl nagy: a bemeneti érték ${r.origin??"érték"} túl nagy: ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`Túl kicsi: a bemeneti érték ${r.origin} mérete túl kicsi ${o}${r.minimum.toString()} ${a.unit}`:`Túl kicsi: a bemeneti érték ${r.origin} túl kicsi ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Érvénytelen string: "${o.prefix}" értékkel kell kezdődnie`:o.format==="ends_with"?`Érvénytelen string: "${o.suffix}" értékkel kell végződnie`:o.format==="includes"?`Érvénytelen string: "${o.includes}" értéket kell tartalmaznia`:o.format==="regex"?`Érvénytelen string: ${o.pattern} mintának kell megfelelnie`:`Érvénytelen ${i[o.format]??r.format}`}case"not_multiple_of":return`Érvénytelen szám: ${r.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${Z(r.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${r.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${r.origin}`;default:return"Érvénytelen bemenet"}}};function L2(){return{localeError:D2()}}const U2=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`Input tidak valid: diharapkan ${r.expected}, diterima ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${ee(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${o}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${i[o.format]??r.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${Z(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}};function F2(){return{localeError:U2()}}const M2=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},Z2=()=>{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 n={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 ${M2(i.input)} þar sem á að vera ${i.expected}`;case"invalid_value":return i.values.length===1?`Rangt gildi: gert ráð fyrir ${ee(i.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${Z(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",o=t(i.origin);return o?`Of stórt: gert er ráð fyrir að ${i.origin??"gildi"} hafi ${r}${i.maximum.toString()} ${o.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${i.origin??"gildi"} sé ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",o=t(i.origin);return o?`Of lítið: gert er ráð fyrir að ${i.origin} hafi ${r}${i.minimum.toString()} ${o.unit}`:`Of lítið: gert er ráð fyrir að ${i.origin} sé ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Ógildur strengur: verður að byrja á "${r.prefix}"`:r.format==="ends_with"?`Ógildur strengur: verður að enda á "${r.suffix}"`:r.format==="includes"?`Ógildur strengur: verður að innihalda "${r.includes}"`:r.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${r.pattern}`:`Rangt ${n[r.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"}: ${Z(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 B2(){return{localeError:Z2()}}const V2=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"numero";case"object":{if(Array.isArray(r))return"vettore";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`Input non valido: atteso ${r.expected}, ricevuto ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Input non valido: atteso ${ee(r.values[0])}`:`Opzione non valida: atteso uno tra ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Troppo grande: ${r.origin??"valore"} deve avere ${o}${r.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${o}${r.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${r.origin} deve essere ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${i[o.format]??r.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${Z(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}};function H2(){return{localeError:V2()}}const q2=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"数値";case"object":{if(Array.isArray(r))return"配列";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`無効な入力: ${r.expected}が期待されましたが、${n(r.input)}が入力されました`;case"invalid_value":return r.values.length===1?`無効な入力: ${ee(r.values[0])}が期待されました`:`無効な選択: ${Z(r.values,"、")}のいずれかである必要があります`;case"too_big":{const o=r.inclusive?"以下である":"より小さい",a=t(r.origin);return a?`大きすぎる値: ${r.origin??"値"}は${r.maximum.toString()}${a.unit??"要素"}${o}必要があります`:`大きすぎる値: ${r.origin??"値"}は${r.maximum.toString()}${o}必要があります`}case"too_small":{const o=r.inclusive?"以上である":"より大きい",a=t(r.origin);return a?`小さすぎる値: ${r.origin}は${r.minimum.toString()}${a.unit}${o}必要があります`:`小さすぎる値: ${r.origin}は${r.minimum.toString()}${o}必要があります`}case"invalid_format":{const o=r;return o.format==="starts_with"?`無効な文字列: "${o.prefix}"で始まる必要があります`:o.format==="ends_with"?`無効な文字列: "${o.suffix}"で終わる必要があります`:o.format==="includes"?`無効な文字列: "${o.includes}"を含む必要があります`:o.format==="regex"?`無効な文字列: パターン${o.pattern}に一致する必要があります`:`無効な${i[o.format]??r.format}`}case"not_multiple_of":return`無効な数値: ${r.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${r.keys.length>1?"群":""}: ${Z(r.keys,"、")}`;case"invalid_key":return`${r.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${r.origin}内の無効な値`;default:return"無効な入力"}}};function W2(){return{localeError:q2()}}const G2=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},J2=()=>{const e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function t(i){return e[i]??null}const n={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}, მიღებული ${G2(i.input)}`;case"invalid_value":return i.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${ee(i.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${Z(i.values,"|")}-დან`;case"too_big":{const r=i.inclusive?"<=":"<",o=t(i.origin);return o?`ზედმეტად დიდი: მოსალოდნელი ${i.origin??"მნიშვნელობა"} ${o.verb} ${r}${i.maximum.toString()} ${o.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${i.origin??"მნიშვნელობა"} იყოს ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",o=t(i.origin);return o?`ზედმეტად პატარა: მოსალოდნელი ${i.origin} ${o.verb} ${r}${i.minimum.toString()} ${o.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${i.origin} იყოს ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`არასწორი სტრინგი: უნდა იწყებოდეს "${r.prefix}"-ით`:r.format==="ends_with"?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${r.suffix}"-ით`:r.format==="includes"?`არასწორი სტრინგი: უნდა შეიცავდეს "${r.includes}"-ს`:r.format==="regex"?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${r.pattern}`:`არასწორი ${n[r.format]??i.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${i.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${i.keys.length>1?"ები":"ი"}: ${Z(i.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${i.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${i.origin}-ში`;default:return"არასწორი შეყვანა"}}};function K2(){return{localeError:J2()}}const Q2=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":{if(Array.isArray(r))return"អារេ (Array)";if(r===null)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${r.expected} ប៉ុន្តែទទួលបាន ${n(r.input)}`;case"invalid_value":return r.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${ee(r.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`ធំពេក៖ ត្រូវការ ${r.origin??"តម្លៃ"} ${o} ${r.maximum.toString()} ${a.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${r.origin??"តម្លៃ"} ${o} ${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`តូចពេក៖ ត្រូវការ ${r.origin} ${o} ${r.minimum.toString()} ${a.unit}`:`តូចពេក៖ ត្រូវការ ${r.origin} ${o} ${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${o.prefix}"`:o.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${o.suffix}"`:o.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${o.includes}"`:o.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${o.pattern}`:`មិនត្រឹមត្រូវ៖ ${i[o.format]??r.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${r.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${Z(r.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${r.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${r.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function X1(){return{localeError:Q2()}}function X2(){return X1()}const Y2=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${r.expected}, 받은 타입은 ${n(r.input)}입니다`;case"invalid_value":return r.values.length===1?`잘못된 입력: 값은 ${ee(r.values[0])} 이어야 합니다`:`잘못된 옵션: ${Z(r.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const o=r.inclusive?"이하":"미만",a=o==="미만"?"이어야 합니다":"여야 합니다",l=t(r.origin),s=(l==null?void 0:l.unit)??"요소";return l?`${r.origin??"값"}이 너무 큽니다: ${r.maximum.toString()}${s} ${o}${a}`:`${r.origin??"값"}이 너무 큽니다: ${r.maximum.toString()} ${o}${a}`}case"too_small":{const o=r.inclusive?"이상":"초과",a=o==="이상"?"이어야 합니다":"여야 합니다",l=t(r.origin),s=(l==null?void 0:l.unit)??"요소";return l?`${r.origin??"값"}이 너무 작습니다: ${r.minimum.toString()}${s} ${o}${a}`:`${r.origin??"값"}이 너무 작습니다: ${r.minimum.toString()} ${o}${a}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`잘못된 문자열: "${o.prefix}"(으)로 시작해야 합니다`:o.format==="ends_with"?`잘못된 문자열: "${o.suffix}"(으)로 끝나야 합니다`:o.format==="includes"?`잘못된 문자열: "${o.includes}"을(를) 포함해야 합니다`:o.format==="regex"?`잘못된 문자열: 정규식 ${o.pattern} 패턴과 일치해야 합니다`:`잘못된 ${i[o.format]??r.format}`}case"not_multiple_of":return`잘못된 숫자: ${r.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${Z(r.keys,", ")}`;case"invalid_key":return`잘못된 키: ${r.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${r.origin}`;default:return"잘못된 입력"}}};function eT(){return{localeError:Y2()}}const tT=e=>ha(typeof e,e),ha=(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},oa=e=>e.charAt(0).toUpperCase()+e.slice(1);function Vy(e){const t=Math.abs(e),n=t%10,i=t%100;return i>=11&&i<=19||n===0?"many":n===1?"one":"few"}const nT=()=>{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,r,o,a){const l=e[i]??null;return l===null?l:{unit:l.unit[r],verb:l.verb[a][o?"inclusive":"notInclusive"]}}const n={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 ${tT(i.input)}, o tikėtasi - ${ha(i.expected)}`;case"invalid_value":return i.values.length===1?`Privalo būti ${ee(i.values[0])}`:`Privalo būti vienas iš ${Z(i.values,"|")} pasirinkimų`;case"too_big":{const r=ha(i.origin),o=t(i.origin,Vy(Number(i.maximum)),i.inclusive??!1,"smaller");if(o!=null&&o.verb)return`${oa(r??i.origin??"reikšmė")} ${o.verb} ${i.maximum.toString()} ${o.unit??"elementų"}`;const a=i.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${oa(r??i.origin??"reikšmė")} turi būti ${a} ${i.maximum.toString()} ${o==null?void 0:o.unit}`}case"too_small":{const r=ha(i.origin),o=t(i.origin,Vy(Number(i.minimum)),i.inclusive??!1,"bigger");if(o!=null&&o.verb)return`${oa(r??i.origin??"reikšmė")} ${o.verb} ${i.minimum.toString()} ${o.unit??"elementų"}`;const a=i.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${oa(r??i.origin??"reikšmė")} turi būti ${a} ${i.minimum.toString()} ${o==null?void 0:o.unit}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Eilutė privalo prasidėti "${r.prefix}"`:r.format==="ends_with"?`Eilutė privalo pasibaigti "${r.suffix}"`:r.format==="includes"?`Eilutė privalo įtraukti "${r.includes}"`:r.format==="regex"?`Eilutė privalo atitikti ${r.pattern}`:`Neteisingas ${n[r.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"}: ${Z(i.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const r=ha(i.origin);return`${oa(r??i.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function rT(){return{localeError:nT()}}const iT=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"број";case"object":{if(Array.isArray(r))return"низа";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`Грешен внес: се очекува ${r.expected}, примено ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Invalid input: expected ${ee(r.values[0])}`:`Грешана опција: се очекува една ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Премногу голем: се очекува ${r.origin??"вредноста"} да има ${o}${r.maximum.toString()} ${a.unit??"елементи"}`:`Премногу голем: се очекува ${r.origin??"вредноста"} да биде ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`Премногу мал: се очекува ${r.origin} да има ${o}${r.minimum.toString()} ${a.unit}`:`Премногу мал: се очекува ${r.origin} да биде ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Неважечка низа: мора да започнува со "${o.prefix}"`:o.format==="ends_with"?`Неважечка низа: мора да завршува со "${o.suffix}"`:o.format==="includes"?`Неважечка низа: мора да вклучува "${o.includes}"`:o.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${o.pattern}`:`Invalid ${i[o.format]??r.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${Z(r.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${r.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${r.origin}`;default:return"Грешен внес"}}};function oT(){return{localeError:iT()}}const aT=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"nombor";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`Input tidak sah: dijangka ${r.expected}, diterima ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${ee(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??"nilai"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${i[o.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${Z(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}};function lT(){return{localeError:aT()}}const sT=()=>{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(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"getal";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`Ongeldige invoer: verwacht ${r.expected}, ontving ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${ee(r.values[0])}`:`Ongeldige optie: verwacht één van ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Te groot: verwacht dat ${r.origin??"waarde"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"elementen"}`:`Te groot: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} is`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`Te klein: verwacht dat ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Te klein: verwacht dat ${r.origin} ${o}${r.minimum.toString()} is`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${i[o.format]??r.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${Z(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}};function uT(){return{localeError:sT()}}const cT=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"tall";case"object":{if(Array.isArray(r))return"liste";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`Ugyldig input: forventet ${r.expected}, fikk ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${ee(r.values[0])}`:`Ugyldig valg: forventet en av ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventet ${r.origin??"value"} til å ha ${o}${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til å ha ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til å ha ${o}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${r.origin} til å ha ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Ugyldig streng: må starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: må ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: må inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: må matche mønsteret ${o.pattern}`:`Ugyldig ${i[o.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${Z(r.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function dT(){return{localeError:cT()}}const fT=()=>{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(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"numara";case"object":{if(Array.isArray(r))return"saf";if(r===null)return"gayb";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`Fâsit giren: umulan ${r.expected}, alınan ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Fâsit giren: umulan ${ee(r.values[0])}`:`Fâsit tercih: mûteberler ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Fazla büyük: ${r.origin??"value"}, ${o}${r.maximum.toString()} ${a.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${r.origin??"value"}, ${o}${r.maximum.toString()} olmalıydı.`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`Fazla küçük: ${r.origin}, ${o}${r.minimum.toString()} ${a.unit} sahip olmalıydı.`:`Fazla küçük: ${r.origin}, ${o}${r.minimum.toString()} olmalıydı.`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Fâsit metin: "${o.prefix}" ile başlamalı.`:o.format==="ends_with"?`Fâsit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`Fâsit metin: "${o.includes}" ihtivâ etmeli.`:o.format==="regex"?`Fâsit metin: ${o.pattern} nakşına uymalı.`:`Fâsit ${i[o.format]??r.format}`}case"not_multiple_of":return`Fâsit sayı: ${r.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${r.keys.length>1?"s":""}: ${Z(r.keys,", ")}`;case"invalid_key":return`${r.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${r.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function pT(){return{localeError:fT()}}const mT=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"عدد";case"object":{if(Array.isArray(r))return"ارې";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`ناسم ورودي: باید ${r.expected} وای, مګر ${n(r.input)} ترلاسه شو`;case"invalid_value":return r.values.length===1?`ناسم ورودي: باید ${ee(r.values[0])} وای`:`ناسم انتخاب: باید یو له ${Z(r.values,"|")} څخه وای`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`ډیر لوی: ${r.origin??"ارزښت"} باید ${o}${r.maximum.toString()} ${a.unit??"عنصرونه"} ولري`:`ډیر لوی: ${r.origin??"ارزښت"} باید ${o}${r.maximum.toString()} وي`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`ډیر کوچنی: ${r.origin} باید ${o}${r.minimum.toString()} ${a.unit} ولري`:`ډیر کوچنی: ${r.origin} باید ${o}${r.minimum.toString()} وي`}case"invalid_format":{const o=r;return o.format==="starts_with"?`ناسم متن: باید د "${o.prefix}" سره پیل شي`:o.format==="ends_with"?`ناسم متن: باید د "${o.suffix}" سره پای ته ورسيږي`:o.format==="includes"?`ناسم متن: باید "${o.includes}" ولري`:o.format==="regex"?`ناسم متن: باید د ${o.pattern} سره مطابقت ولري`:`${i[o.format]??r.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${r.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${r.keys.length>1?"کلیډونه":"کلیډ"}: ${Z(r.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${r.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${r.origin} کې`;default:return"ناسمه ورودي"}}};function hT(){return{localeError:mT()}}const gT=()=>{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(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"liczba";case"object":{if(Array.isArray(r))return"tablica";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${r.expected}, otrzymano ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${ee(r.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Za duża wartość: oczekiwano, że ${r.origin??"wartość"} będzie mieć ${o}${r.maximum.toString()} ${a.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${r.origin??"wartość"} będzie wynosić ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`Za mała wartość: oczekiwano, że ${r.origin??"wartość"} będzie mieć ${o}${r.minimum.toString()} ${a.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${r.origin??"wartość"} będzie wynosić ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${o.prefix}"`:o.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${o.suffix}"`:o.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${o.includes}"`:o.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${o.pattern}`:`Nieprawidłow(y/a/e) ${i[o.format]??r.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${Z(r.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${r.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${r.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function vT(){return{localeError:gT()}}const yT=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"número";case"object":{if(Array.isArray(r))return"array";if(r===null)return"nulo";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`Tipo inválido: esperado ${r.expected}, recebido ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Entrada inválida: esperado ${ee(r.values[0])}`:`Opção inválida: esperada uma das ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${o}${r.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`Muito pequeno: esperado que ${r.origin} tivesse ${o}${r.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Texto inválido: deve começar com "${o.prefix}"`:o.format==="ends_with"?`Texto inválido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inválido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inválido: deve corresponder ao padrão ${o.pattern}`:`${i[o.format]??r.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${Z(r.keys,", ")}`;case"invalid_key":return`Chave inválida em ${r.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${r.origin}`;default:return"Campo inválido"}}};function xT(){return{localeError:yT()}}function Hy(e,t,n,i){const r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?n:i}const bT=()=>{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(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"число";case"object":{if(Array.isArray(r))return"массив";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`Неверный ввод: ожидалось ${r.expected}, получено ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Неверный ввод: ожидалось ${ee(r.values[0])}`:`Неверный вариант: ожидалось одно из ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);if(a){const l=Number(r.maximum),s=Hy(l,a.unit.one,a.unit.few,a.unit.many);return`Слишком большое значение: ожидалось, что ${r.origin??"значение"} будет иметь ${o}${r.maximum.toString()} ${s}`}return`Слишком большое значение: ожидалось, что ${r.origin??"значение"} будет ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);if(a){const l=Number(r.minimum),s=Hy(l,a.unit.one,a.unit.few,a.unit.many);return`Слишком маленькое значение: ожидалось, что ${r.origin} будет иметь ${o}${r.minimum.toString()} ${s}`}return`Слишком маленькое значение: ожидалось, что ${r.origin} будет ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Неверная строка: должна начинаться с "${o.prefix}"`:o.format==="ends_with"?`Неверная строка: должна заканчиваться на "${o.suffix}"`:o.format==="includes"?`Неверная строка: должна содержать "${o.includes}"`:o.format==="regex"?`Неверная строка: должна соответствовать шаблону ${o.pattern}`:`Неверный ${i[o.format]??r.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${r.divisor}`;case"unrecognized_keys":return`Нераспознанн${r.keys.length>1?"ые":"ый"} ключ${r.keys.length>1?"и":""}: ${Z(r.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${r.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${r.origin}`;default:return"Неверные входные данные"}}};function kT(){return{localeError:bT()}}const wT=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"število";case"object":{if(Array.isArray(r))return"tabela";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${r.expected}, prejeto ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Neveljaven vnos: pričakovano ${ee(r.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Preveliko: pričakovano, da bo ${r.origin??"vrednost"} imelo ${o}${r.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${r.origin??"vrednost"} ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`Premajhno: pričakovano, da bo ${r.origin} imelo ${o}${r.minimum.toString()} ${a.unit}`:`Premajhno: pričakovano, da bo ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Neveljaven niz: mora se začeti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se končati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${i[o.format]??r.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i ključi":" ključ"}: ${Z(r.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}};function _T(){return{localeError:wT()}}const $T=()=>{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(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"antal";case"object":{if(Array.isArray(r))return"lista";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${r.expected}, fick ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ogiltig inmatning: förväntat ${ee(r.values[0])}`:`Ogiltigt val: förväntade en av ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`För stor(t): förväntade ${r.origin??"värdet"} att ha ${o}${r.maximum.toString()} ${a.unit??"element"}`:`För stor(t): förväntat ${r.origin??"värdet"} att ha ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`För lite(t): förväntade ${r.origin??"värdet"} att ha ${o}${r.minimum.toString()} ${a.unit}`:`För lite(t): förväntade ${r.origin??"värdet"} att ha ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Ogiltig sträng: måste börja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig sträng: måste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig sträng: måste innehålla "${o.includes}"`:o.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${o.pattern}"`:`Ogiltig(t) ${i[o.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${Z(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${r.origin??"värdet"}`;default:return"Ogiltig input"}}};function ST(){return{localeError:$T()}}const jT=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"எண் அல்லாதது":"எண்";case"object":{if(Array.isArray(r))return"அணி";if(r===null)return"வெறுமை";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${r.expected}, பெறப்பட்டது ${n(r.input)}`;case"invalid_value":return r.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${ee(r.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${Z(r.values,"|")} இல் ஒன்று`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${r.origin??"மதிப்பு"} ${o}${r.maximum.toString()} ${a.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${r.origin??"மதிப்பு"} ${o}${r.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${r.origin} ${o}${r.minimum.toString()} ${a.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${r.origin} ${o}${r.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const o=r;return o.format==="starts_with"?`தவறான சரம்: "${o.prefix}" இல் தொடங்க வேண்டும்`:o.format==="ends_with"?`தவறான சரம்: "${o.suffix}" இல் முடிவடைய வேண்டும்`:o.format==="includes"?`தவறான சரம்: "${o.includes}" ஐ உள்ளடக்க வேண்டும்`:o.format==="regex"?`தவறான சரம்: ${o.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${i[o.format]??r.format}`}case"not_multiple_of":return`தவறான எண்: ${r.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${r.keys.length>1?"கள்":""}: ${Z(r.keys,", ")}`;case"invalid_key":return`${r.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${r.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function NT(){return{localeError:jT()}}const IT=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";case"object":{if(Array.isArray(r))return"อาร์เรย์ (Array)";if(r===null)return"ไม่มีค่า (null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${r.expected} แต่ได้รับ ${n(r.input)}`;case"invalid_value":return r.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${ee(r.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"ไม่เกิน":"น้อยกว่า",a=t(r.origin);return a?`เกินกำหนด: ${r.origin??"ค่า"} ควรมี${o} ${r.maximum.toString()} ${a.unit??"รายการ"}`:`เกินกำหนด: ${r.origin??"ค่า"} ควรมี${o} ${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?"อย่างน้อย":"มากกว่า",a=t(r.origin);return a?`น้อยกว่ากำหนด: ${r.origin} ควรมี${o} ${r.minimum.toString()} ${a.unit}`:`น้อยกว่ากำหนด: ${r.origin} ควรมี${o} ${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${o.prefix}"`:o.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${o.suffix}"`:o.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${o.includes}" อยู่ในข้อความ`:o.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${o.pattern}`:`รูปแบบไม่ถูกต้อง: ${i[o.format]??r.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${r.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${Z(r.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${r.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${r.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function ET(){return{localeError:IT()}}const CT=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},zT=()=>{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 n={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 ${CT(i.input)}`;case"invalid_value":return i.values.length===1?`Geçersiz değer: beklenen ${ee(i.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${Z(i.values,"|")}`;case"too_big":{const r=i.inclusive?"<=":"<",o=t(i.origin);return o?`Çok büyük: beklenen ${i.origin??"değer"} ${r}${i.maximum.toString()} ${o.unit??"öğe"}`:`Çok büyük: beklenen ${i.origin??"değer"} ${r}${i.maximum.toString()}`}case"too_small":{const r=i.inclusive?">=":">",o=t(i.origin);return o?`Çok küçük: beklenen ${i.origin} ${r}${i.minimum.toString()} ${o.unit}`:`Çok küçük: beklenen ${i.origin} ${r}${i.minimum.toString()}`}case"invalid_format":{const r=i;return r.format==="starts_with"?`Geçersiz metin: "${r.prefix}" ile başlamalı`:r.format==="ends_with"?`Geçersiz metin: "${r.suffix}" ile bitmeli`:r.format==="includes"?`Geçersiz metin: "${r.includes}" içermeli`:r.format==="regex"?`Geçersiz metin: ${r.pattern} desenine uymalı`:`Geçersiz ${n[r.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":""}: ${Z(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 PT(){return{localeError:zT()}}const OT=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"число";case"object":{if(Array.isArray(r))return"масив";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${r.expected}, отримано ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Неправильні вхідні дані: очікується ${ee(r.values[0])}`:`Неправильна опція: очікується одне з ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Занадто велике: очікується, що ${r.origin??"значення"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"елементів"}`:`Занадто велике: очікується, що ${r.origin??"значення"} буде ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`Занадто мале: очікується, що ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Занадто мале: очікується, що ${r.origin} буде ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Неправильний рядок: повинен починатися з "${o.prefix}"`:o.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${o.suffix}"`:o.format==="includes"?`Неправильний рядок: повинен містити "${o.includes}"`:o.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${o.pattern}`:`Неправильний ${i[o.format]??r.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${r.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${r.keys.length>1?"і":""}: ${Z(r.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${r.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${r.origin}`;default:return"Неправильні вхідні дані"}}};function Y1(){return{localeError:OT()}}function TT(){return Y1()}const RT=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"نمبر";case"object":{if(Array.isArray(r))return"آرے";if(r===null)return"نل";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`غلط ان پٹ: ${r.expected} متوقع تھا، ${n(r.input)} موصول ہوا`;case"invalid_value":return r.values.length===1?`غلط ان پٹ: ${ee(r.values[0])} متوقع تھا`:`غلط آپشن: ${Z(r.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`بہت بڑا: ${r.origin??"ویلیو"} کے ${o}${r.maximum.toString()} ${a.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${r.origin??"ویلیو"} کا ${o}${r.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`بہت چھوٹا: ${r.origin} کے ${o}${r.minimum.toString()} ${a.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${r.origin} کا ${o}${r.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const o=r;return o.format==="starts_with"?`غلط سٹرنگ: "${o.prefix}" سے شروع ہونا چاہیے`:o.format==="ends_with"?`غلط سٹرنگ: "${o.suffix}" پر ختم ہونا چاہیے`:o.format==="includes"?`غلط سٹرنگ: "${o.includes}" شامل ہونا چاہیے`:o.format==="regex"?`غلط سٹرنگ: پیٹرن ${o.pattern} سے میچ ہونا چاہیے`:`غلط ${i[o.format]??r.format}`}case"not_multiple_of":return`غلط نمبر: ${r.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${r.keys.length>1?"ز":""}: ${Z(r.keys,"، ")}`;case"invalid_key":return`${r.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${r.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function AT(){return{localeError:RT()}}const DT=()=>{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(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"số";case"object":{if(Array.isArray(r))return"mảng";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${r.expected}, nhận được ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Đầu vào không hợp lệ: mong đợi ${ee(r.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Quá lớn: mong đợi ${r.origin??"giá trị"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"phần tử"}`:`Quá lớn: mong đợi ${r.origin??"giá trị"} ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`Quá nhỏ: mong đợi ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Quá nhỏ: mong đợi ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${o.prefix}"`:o.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${o.suffix}"`:o.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${o.includes}"`:o.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${o.pattern}`:`${i[o.format]??r.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 ${r.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${Z(r.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${r.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 ${r.origin}`;default:return"Đầu vào không hợp lệ"}}};function LT(){return{localeError:DT()}}const UT=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"非数字(NaN)":"数字";case"object":{if(Array.isArray(r))return"数组";if(r===null)return"空值(null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`无效输入:期望 ${r.expected},实际接收 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`无效输入:期望 ${ee(r.values[0])}`:`无效选项:期望以下之一 ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`数值过大:期望 ${r.origin??"值"} ${o}${r.maximum.toString()} ${a.unit??"个元素"}`:`数值过大:期望 ${r.origin??"值"} ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`数值过小:期望 ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`数值过小:期望 ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`无效字符串:必须以 "${o.prefix}" 开头`:o.format==="ends_with"?`无效字符串:必须以 "${o.suffix}" 结尾`:o.format==="includes"?`无效字符串:必须包含 "${o.includes}"`:o.format==="regex"?`无效字符串:必须满足正则表达式 ${o.pattern}`:`无效${i[o.format]??r.format}`}case"not_multiple_of":return`无效数字:必须是 ${r.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${Z(r.keys,", ")}`;case"invalid_key":return`${r.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${r.origin} 中包含无效值(value)`;default:return"无效输入"}}};function FT(){return{localeError:UT()}}const MT=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`無效的輸入值:預期為 ${r.expected},但收到 ${n(r.input)}`;case"invalid_value":return r.values.length===1?`無效的輸入值:預期為 ${ee(r.values[0])}`:`無效的選項:預期為以下其中之一 ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`數值過大:預期 ${r.origin??"值"} 應為 ${o}${r.maximum.toString()} ${a.unit??"個元素"}`:`數值過大:預期 ${r.origin??"值"} 應為 ${o}${r.maximum.toString()}`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`數值過小:預期 ${r.origin} 應為 ${o}${r.minimum.toString()} ${a.unit}`:`數值過小:預期 ${r.origin} 應為 ${o}${r.minimum.toString()}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`無效的字串:必須以 "${o.prefix}" 開頭`:o.format==="ends_with"?`無效的字串:必須以 "${o.suffix}" 結尾`:o.format==="includes"?`無效的字串:必須包含 "${o.includes}"`:o.format==="regex"?`無效的字串:必須符合格式 ${o.pattern}`:`無效的 ${i[o.format]??r.format}`}case"not_multiple_of":return`無效的數字:必須為 ${r.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${r.keys.length>1?"們":""}:${Z(r.keys,"、")}`;case"invalid_key":return`${r.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${r.origin} 中有無效的值`;default:return"無效的輸入值"}}};function ZT(){return{localeError:MT()}}const BT=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function t(r){return e[r]??null}const n=r=>{const o=typeof r;switch(o){case"number":return Number.isNaN(r)?"NaN":"nọ́mbà";case"object":{if(Array.isArray(r))return"akopọ";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return o},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 r=>{switch(r.code){case"invalid_type":return`Ìbáwọlé aṣìṣe: a ní láti fi ${r.expected}, àmọ̀ a rí ${n(r.input)}`;case"invalid_value":return r.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${ee(r.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${Z(r.values,"|")}`;case"too_big":{const o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Tó pọ̀ jù: a ní láti jẹ́ pé ${r.origin??"iye"} ${a.verb} ${o}${r.maximum} ${a.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${o}${r.maximum}`}case"too_small":{const o=r.inclusive?">=":">",a=t(r.origin);return a?`Kéré ju: a ní láti jẹ́ pé ${r.origin} ${a.verb} ${o}${r.minimum} ${a.unit}`:`Kéré ju: a ní láti jẹ́ ${o}${r.minimum}`}case"invalid_format":{const o=r;return o.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${o.prefix}"`:o.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${o.suffix}"`:o.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${o.includes}"`:o.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${o.pattern}`:`Aṣìṣe: ${i[o.format]??r.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${r.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${Z(r.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${r.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${r.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function VT(){return{localeError:BT()}}const e$=Object.freeze(Object.defineProperty({__proto__:null,ar:i2,az:a2,be:s2,bg:d2,ca:p2,cs:h2,da:v2,de:x2,en:Q1,eo:$2,es:j2,fa:I2,fi:C2,fr:P2,frCA:T2,he:A2,hu:L2,id:F2,is:B2,it:H2,ja:W2,ka:K2,kh:X2,km:X1,ko:eT,lt:rT,mk:oT,ms:lT,nl:uT,no:dT,ota:pT,pl:vT,ps:hT,pt:xT,ru:kT,sl:_T,sv:ST,ta:NT,th:ET,tr:PT,ua:TT,uk:Y1,ur:AT,vi:LT,yo:VT,zhCN:FT,zhTW:ZT},Symbol.toStringTag,{value:"Module"}));var qy;const t$=Symbol("ZodOutput"),n$=Symbol("ZodInput");class r${constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const i=n[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 n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const i={...this.get(n)??{}};delete i.id;const r={...i,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function oh(){return new r$}(qy=globalThis).__zod_globalRegistry??(qy.__zod_globalRegistry=oh());const ln=globalThis.__zod_globalRegistry;function i$(e,t){return new e({type:"string",...T(t)})}function o$(e,t){return new e({type:"string",coerce:!0,...T(t)})}function ah(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...T(t)})}function vu(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...T(t)})}function lh(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...T(t)})}function sh(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...T(t)})}function uh(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...T(t)})}function ch(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...T(t)})}function Yu(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...T(t)})}function dh(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...T(t)})}function fh(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...T(t)})}function ph(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...T(t)})}function mh(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...T(t)})}function hh(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...T(t)})}function gh(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...T(t)})}function vh(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...T(t)})}function yh(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...T(t)})}function xh(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...T(t)})}function a$(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...T(t)})}function bh(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...T(t)})}function kh(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...T(t)})}function wh(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...T(t)})}function _h(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...T(t)})}function $h(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...T(t)})}function Sh(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...T(t)})}const l$={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function s$(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...T(t)})}function u$(e,t){return new e({type:"string",format:"date",check:"string_format",...T(t)})}function c$(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...T(t)})}function d$(e,t){return new e({type:"string",format:"duration",check:"string_format",...T(t)})}function f$(e,t){return new e({type:"number",checks:[],...T(t)})}function p$(e,t){return new e({type:"number",coerce:!0,checks:[],...T(t)})}function m$(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...T(t)})}function h$(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...T(t)})}function g$(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...T(t)})}function v$(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...T(t)})}function y$(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...T(t)})}function x$(e,t){return new e({type:"boolean",...T(t)})}function b$(e,t){return new e({type:"boolean",coerce:!0,...T(t)})}function k$(e,t){return new e({type:"bigint",...T(t)})}function w$(e,t){return new e({type:"bigint",coerce:!0,...T(t)})}function _$(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...T(t)})}function $$(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...T(t)})}function S$(e,t){return new e({type:"symbol",...T(t)})}function j$(e,t){return new e({type:"undefined",...T(t)})}function N$(e,t){return new e({type:"null",...T(t)})}function I$(e){return new e({type:"any"})}function E$(e){return new e({type:"unknown"})}function C$(e,t){return new e({type:"never",...T(t)})}function z$(e,t){return new e({type:"void",...T(t)})}function P$(e,t){return new e({type:"date",...T(t)})}function O$(e,t){return new e({type:"date",coerce:!0,...T(t)})}function T$(e,t){return new e({type:"nan",...T(t)})}function Fr(e,t){return new Qm({check:"less_than",...T(t),value:e,inclusive:!1})}function qt(e,t){return new Qm({check:"less_than",...T(t),value:e,inclusive:!0})}function Mr(e,t){return new Xm({check:"greater_than",...T(t),value:e,inclusive:!1})}function kt(e,t){return new Xm({check:"greater_than",...T(t),value:e,inclusive:!0})}function jh(e){return Mr(0,e)}function Nh(e){return Fr(0,e)}function Ih(e){return qt(0,e)}function Eh(e){return kt(0,e)}function Co(e,t){return new y_({check:"multiple_of",...T(t),value:e})}function wl(e,t){return new k_({check:"max_size",...T(t),maximum:e})}function zo(e,t){return new w_({check:"min_size",...T(t),minimum:e})}function ec(e,t){return new __({check:"size_equals",...T(t),size:e})}function _l(e,t){return new $_({check:"max_length",...T(t),maximum:e})}function Si(e,t){return new S_({check:"min_length",...T(t),minimum:e})}function $l(e,t){return new j_({check:"length_equals",...T(t),length:e})}function tc(e,t){return new N_({check:"string_format",format:"regex",...T(t),pattern:e})}function nc(e){return new I_({check:"string_format",format:"lowercase",...T(e)})}function rc(e){return new E_({check:"string_format",format:"uppercase",...T(e)})}function ic(e,t){return new C_({check:"string_format",format:"includes",...T(t),includes:e})}function oc(e,t){return new z_({check:"string_format",format:"starts_with",...T(t),prefix:e})}function ac(e,t){return new P_({check:"string_format",format:"ends_with",...T(t),suffix:e})}function Ch(e,t,n){return new O_({check:"property",property:e,schema:t,...T(n)})}function lc(e,t){return new T_({check:"mime_type",mime:e,...T(t)})}function or(e){return new R_({check:"overwrite",tx:e})}function sc(e){return or(t=>t.normalize(e))}function uc(){return or(e=>e.trim())}function cc(){return or(e=>e.toLowerCase())}function dc(){return or(e=>e.toUpperCase())}function fc(){return or(e=>mw(e))}function R$(e,t,n){return new e({type:"array",element:t,...T(n)})}function HT(e,t,n){return new e({type:"union",options:t,...T(n)})}function qT(e,t,n){return new e({type:"union",options:t,inclusive:!1,...T(n)})}function WT(e,t,n,i){return new e({type:"union",options:n,discriminator:t,...T(i)})}function GT(e,t,n){return new e({type:"intersection",left:t,right:n})}function JT(e,t,n,i){const r=n instanceof ne,o=r?i:n,a=r?n:null;return new e({type:"tuple",items:t,rest:a,...T(o)})}function KT(e,t,n,i){return new e({type:"record",keyType:t,valueType:n,...T(i)})}function QT(e,t,n,i){return new e({type:"map",keyType:t,valueType:n,...T(i)})}function XT(e,t,n){return new e({type:"set",valueType:t,...T(n)})}function YT(e,t,n){const i=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:i,...T(n)})}function e6(e,t,n){return new e({type:"enum",entries:t,...T(n)})}function t6(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...T(n)})}function A$(e,t){return new e({type:"file",...T(t)})}function n6(e,t){return new e({type:"transform",transform:t})}function r6(e,t){return new e({type:"optional",innerType:t})}function i6(e,t){return new e({type:"nullable",innerType:t})}function o6(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():Ju(n)}})}function a6(e,t,n){return new e({type:"nonoptional",innerType:t,...T(n)})}function l6(e,t){return new e({type:"success",innerType:t})}function s6(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function u6(e,t,n){return new e({type:"pipe",in:t,out:n})}function c6(e,t){return new e({type:"readonly",innerType:t})}function d6(e,t,n){return new e({type:"template_literal",parts:t,...T(n)})}function f6(e,t){return new e({type:"lazy",getter:t})}function p6(e,t){return new e({type:"promise",innerType:t})}function D$(e,t,n){const i=T(n);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function L$(e,t,n){return new e({type:"custom",check:"custom",fn:t,...T(n)})}function U$(e){const t=F$(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(Io(i,n.value,t._zod.def));else{const r=i;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),n.issues.push(Io(r))}},e(n.value,n)));return t}function F$(e,t){const n=new ze({check:"custom",...T(t)});return n._zod.check=e,n}function M$(e){const t=new ze({check:"describe"});return t._zod.onattach=[n=>{const i=ln.get(n)??{};ln.add(n,{...i,description:e})}],t._zod.check=()=>{},t}function Z$(e){const t=new ze({check:"meta"});return t._zod.onattach=[n=>{const i=ln.get(n)??{};ln.add(n,{...i,...e})}],t._zod.check=()=>{},t}function B$(e,t){const n=T(t);let i=n.truthy??["true","1","yes","on","y","enabled"],r=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(i=i.map(m=>typeof m=="string"?m.toLowerCase():m),r=r.map(m=>typeof m=="string"?m.toLowerCase():m));const o=new Set(i),a=new Set(r),l=e.Codec??ih,s=e.Boolean??th,u=e.String??kl,d=new u({type:"string",error:n.error}),c=new s({type:"boolean",error:n.error}),p=new l({type:"pipe",in:d,out:c,transform:(m,h)=>{let g=m;return n.case!=="sensitive"&&(g=g.toLowerCase()),o.has(g)?!0:a.has(g)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:h.value,inst:p,continue:!1}),{})},reverseTransform:(m,h)=>m===!0?i[0]||"true":r[0]||"false",error:n.error});return p}function Sl(e,t,n,i={}){const r=T(i),o={...T(i),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:l=>n.test(l),...r};return n instanceof RegExp&&(o.pattern=n),new e(o)}function Po(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??ln,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function we(e,t,n={path:[],schemaPath:[]}){var d,c;var i;const r=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;const a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);const l=(c=(d=e._zod).toJSONSchema)==null?void 0:c.call(d);if(l)a.schema=l;else{const p={...n,schemaPath:[...n.schemaPath,e],path:n.path},m=e._zod.parent;if(m)a.ref=m,we(m,t,p),t.seen.get(m).isParent=!0;else if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,p);else{const h=a.schema,g=t.processors[r.type];if(!g)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);g(e,t,h,p)}}const s=t.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),t.io==="input"&&lt(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function Oo(e,t){var o,a,l;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=s=>{var m;const u=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const h=(m=e.external.registry.get(s[0]))==null?void 0:m.id,g=e.external.uri??(v=>v);if(h)return{ref:g(h)};const w=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=w,{defId:w,ref:`${g("__shared")}#/${u}/${w}`}}if(s[1]===n)return{ref:"#"};const c=`#/${u}/`,p=s[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:c+p}},r=s=>{if(s[1].schema.$ref)return;const u=s[1],{ref:d,defId:c}=i(s);u.def={...u.schema},c&&(u.defId=c);const p=u.schema;for(const m in p)delete p[m];p.$ref=d};if(e.cycles==="throw")for(const s of e.seen.entries()){const u=s[1];if(u.cycle)throw new Error(`Cycle detected: #/${(o=u.cycle)==null?void 0:o.join("/")}/<root>
194
+
195
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const s of e.seen.entries()){const u=s[1];if(t===s[0]){r(s);continue}if(e.external){const c=(a=e.external.registry.get(s[0]))==null?void 0:a.id;if(t!==s[0]&&c){r(s);continue}}if((l=e.metadataRegistry.get(s[0]))==null?void 0:l.id){r(s);continue}if(u.cycle){r(s);continue}if(u.count>1&&e.reused==="ref"){r(s);continue}}}function To(e,t){var a,l,s;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=u=>{const d=e.seen.get(u),c=d.def??d.schema,p={...c};if(d.ref===null)return;const m=d.ref;if(d.ref=null,m){i(m);const h=e.seen.get(m).schema;h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(h)):(Object.assign(c,h),Object.assign(c,p))}d.isParent||e.override({zodSchema:u,jsonSchema:c,path:d.path??[]})};for(const u of[...e.seen.entries()].reverse())i(u[0]);const r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,(a=e.external)!=null&&a.uri){const u=(l=e.external.registry.get(t))==null?void 0:l.id;if(!u)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(u)}Object.assign(r,n.def??n.schema);const o=((s=e.external)==null?void 0:s.defs)??{};for(const u of e.seen.entries()){const d=u[1];d.def&&d.defId&&(o[d.defId]=d.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?r.$defs=o:r.definitions=o);try{const u=JSON.parse(JSON.stringify(r));return Object.defineProperty(u,"~standard",{value:{...t["~standard"],jsonSchema:{input:Wa(t,"input"),output:Wa(t,"output")}},enumerable:!1,writable:!1}),u}catch{throw new Error("Error converting schema to JSON.")}}function lt(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return lt(i.element,n);if(i.type==="set")return lt(i.valueType,n);if(i.type==="lazy")return lt(i.getter(),n);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return lt(i.innerType,n);if(i.type==="intersection")return lt(i.left,n)||lt(i.right,n);if(i.type==="record"||i.type==="map")return lt(i.keyType,n)||lt(i.valueType,n);if(i.type==="pipe")return lt(i.in,n)||lt(i.out,n);if(i.type==="object"){for(const r in i.shape)if(lt(i.shape[r],n))return!0;return!1}if(i.type==="union"){for(const r of i.options)if(lt(r,n))return!0;return!1}if(i.type==="tuple"){for(const r of i.items)if(lt(r,n))return!0;return!!(i.rest&&lt(i.rest,n))}return!1}const V$=(e,t={})=>n=>{const i=Po({...n,processors:t});return we(e,i),Oo(i,e),To(i,e)},Wa=(e,t)=>n=>{const{libraryOptions:i,target:r}=n??{},o=Po({...i??{},target:r,io:t,processors:{}});return we(e,o),Oo(o,e),To(o,e)},m6={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},H$=(e,t,n,i)=>{const r=n;r.type="string";const{minimum:o,maximum:a,format:l,patterns:s,contentEncoding:u}=e._zod.bag;if(typeof o=="number"&&(r.minLength=o),typeof a=="number"&&(r.maxLength=a),l&&(r.format=m6[l]??l,r.format===""&&delete r.format),u&&(r.contentEncoding=u),s&&s.size>0){const d=[...s];d.length===1?r.pattern=d[0].source:d.length>1&&(r.allOf=[...d.map(c=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:c.source}))])}},q$=(e,t,n,i)=>{const r=n,{minimum:o,maximum:a,format:l,multipleOf:s,exclusiveMaximum:u,exclusiveMinimum:d}=e._zod.bag;typeof l=="string"&&l.includes("int")?r.type="integer":r.type="number",typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.minimum=d,r.exclusiveMinimum=!0):r.exclusiveMinimum=d),typeof o=="number"&&(r.minimum=o,typeof d=="number"&&t.target!=="draft-04"&&(d>=o?delete r.minimum:delete r.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.maximum=u,r.exclusiveMaximum=!0):r.exclusiveMaximum=u),typeof a=="number"&&(r.maximum=a,typeof u=="number"&&t.target!=="draft-04"&&(u<=a?delete r.maximum:delete r.exclusiveMaximum)),typeof s=="number"&&(r.multipleOf=s)},W$=(e,t,n,i)=>{n.type="boolean"},G$=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},J$=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},K$=(e,t,n,i)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},Q$=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},X$=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Y$=(e,t,n,i)=>{n.not={}},eS=(e,t,n,i)=>{},tS=(e,t,n,i)=>{},nS=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},rS=(e,t,n,i)=>{const r=e._zod.def,o=Am(r.entries);o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),n.enum=o},iS=(e,t,n,i)=>{const r=e._zod.def,o=[];for(const a of r.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(a))}else o.push(a);if(o.length!==0)if(o.length===1){const a=o[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),o.every(a=>typeof a=="boolean")&&(n.type="boolean"),o.every(a=>a===null)&&(n.type="null"),n.enum=o},oS=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},aS=(e,t,n,i)=>{const r=n,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=o.source},lS=(e,t,n,i)=>{const r=n,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:l,mime:s}=e._zod.bag;a!==void 0&&(o.minLength=a),l!==void 0&&(o.maxLength=l),s?s.length===1?(o.contentMediaType=s[0],Object.assign(r,o)):r.anyOf=s.map(u=>({...o,contentMediaType:u})):Object.assign(r,o)},sS=(e,t,n,i)=>{n.type="boolean"},uS=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},cS=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},dS=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},fS=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},pS=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},mS=(e,t,n,i)=>{const r=n,o=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof l=="number"&&(r.maxItems=l),r.type="array",r.items=we(o.element,t,{...i,path:[...i.path,"items"]})},hS=(e,t,n,i)=>{var u;const r=n,o=e._zod.def;r.type="object",r.properties={};const a=o.shape;for(const d in a)r.properties[d]=we(a[d],t,{...i,path:[...i.path,"properties",d]});const l=new Set(Object.keys(a)),s=new Set([...l].filter(d=>{const c=o.shape[d]._zod;return t.io==="input"?c.optin===void 0:c.optout===void 0}));s.size>0&&(r.required=Array.from(s)),((u=o.catchall)==null?void 0:u._zod.def.type)==="never"?r.additionalProperties=!1:o.catchall?o.catchall&&(r.additionalProperties=we(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},zh=(e,t,n,i)=>{const r=e._zod.def,o=r.inclusive===!1,a=r.options.map((l,s)=>we(l,t,{...i,path:[...i.path,o?"oneOf":"anyOf",s]}));o?n.oneOf=a:n.anyOf=a},gS=(e,t,n,i)=>{const r=e._zod.def,o=we(r.left,t,{...i,path:[...i.path,"allOf",0]}),a=we(r.right,t,{...i,path:[...i.path,"allOf",1]}),l=u=>"allOf"in u&&Object.keys(u).length===1,s=[...l(o)?o.allOf:[o],...l(a)?a.allOf:[a]];n.allOf=s},vS=(e,t,n,i)=>{const r=n,o=e._zod.def;r.type="array";const a=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=o.items.map((p,m)=>we(p,t,{...i,path:[...i.path,a,m]})),u=o.rest?we(o.rest,t,{...i,path:[...i.path,l,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=s,u&&(r.items=u)):t.target==="openapi-3.0"?(r.items={anyOf:s},u&&r.items.anyOf.push(u),r.minItems=s.length,u||(r.maxItems=s.length)):(r.items=s,u&&(r.additionalItems=u));const{minimum:d,maximum:c}=e._zod.bag;typeof d=="number"&&(r.minItems=d),typeof c=="number"&&(r.maxItems=c)},yS=(e,t,n,i)=>{const r=n,o=e._zod.def;r.type="object",(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=we(o.keyType,t,{...i,path:[...i.path,"propertyNames"]})),r.additionalProperties=we(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]})},xS=(e,t,n,i)=>{const r=e._zod.def,o=we(r.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},bS=(e,t,n,i)=>{const r=e._zod.def;we(r.innerType,t,i);const o=t.seen.get(e);o.ref=r.innerType},kS=(e,t,n,i)=>{const r=e._zod.def;we(r.innerType,t,i);const o=t.seen.get(e);o.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},wS=(e,t,n,i)=>{const r=e._zod.def;we(r.innerType,t,i);const o=t.seen.get(e);o.ref=r.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},_S=(e,t,n,i)=>{const r=e._zod.def;we(r.innerType,t,i);const o=t.seen.get(e);o.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},$S=(e,t,n,i)=>{const r=e._zod.def,o=t.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;we(o,t,i);const a=t.seen.get(e);a.ref=o},SS=(e,t,n,i)=>{const r=e._zod.def;we(r.innerType,t,i);const o=t.seen.get(e);o.ref=r.innerType,n.readOnly=!0},jS=(e,t,n,i)=>{const r=e._zod.def;we(r.innerType,t,i);const o=t.seen.get(e);o.ref=r.innerType},NS=(e,t,n,i)=>{const r=e._zod.def;we(r.innerType,t,i);const o=t.seen.get(e);o.ref=r.innerType},IS=(e,t,n,i)=>{const r=e._zod.innerType;we(r,t,i);const o=t.seen.get(e);o.ref=r},hp={string:H$,number:q$,boolean:W$,bigint:G$,symbol:J$,null:K$,undefined:Q$,void:X$,never:Y$,any:eS,unknown:tS,date:nS,enum:rS,literal:iS,nan:oS,template_literal:aS,file:lS,success:sS,custom:uS,function:cS,transform:dS,map:fS,set:pS,array:mS,object:hS,union:zh,intersection:gS,tuple:vS,record:yS,nullable:xS,nonoptional:bS,default:kS,prefault:wS,catch:_S,pipe:$S,readonly:SS,promise:jS,optional:NS,lazy:IS};function ES(e,t){if("_idmap"in e){const i=e,r=Po({...t,processors:hp}),o={};for(const s of i._idmap.entries()){const[u,d]=s;we(d,r)}const a={},l={registry:i,uri:t==null?void 0:t.uri,defs:o};r.external=l;for(const s of i._idmap.entries()){const[u,d]=s;Oo(r,d),a[u]=To(r,d)}if(Object.keys(o).length>0){const s=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[s]:o}}return{schemas:a}}const n=Po({...t,processors:hp});return we(e,n),Oo(n,e),To(n,e)}class h6{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=(t==null?void 0:t.target)??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=Po({processors:hp,target:n,...(t==null?void 0:t.metadata)&&{metadata:t.metadata},...(t==null?void 0:t.unrepresentable)&&{unrepresentable:t.unrepresentable},...(t==null?void 0:t.override)&&{override:t.override},...(t==null?void 0:t.io)&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return we(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),Oo(this.ctx,t);const i=To(this.ctx,t),{"~standard":r,...o}=i;return o}}const g6=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),v6=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:g1,$ZodArray:k1,$ZodAsyncError:mi,$ZodBase64:i1,$ZodBase64URL:a1,$ZodBigInt:nh,$ZodBigIntFormat:f1,$ZodBoolean:th,$ZodCIDRv4:n1,$ZodCIDRv6:r1,$ZodCUID:V_,$ZodCUID2:H_,$ZodCatch:Z1,$ZodCheck:ze,$ZodCheckBigIntFormat:b_,$ZodCheckEndsWith:P_,$ZodCheckGreaterThan:Xm,$ZodCheckIncludes:C_,$ZodCheckLengthEquals:j_,$ZodCheckLessThan:Qm,$ZodCheckLowerCase:I_,$ZodCheckMaxLength:$_,$ZodCheckMaxSize:k_,$ZodCheckMimeType:T_,$ZodCheckMinLength:S_,$ZodCheckMinSize:w_,$ZodCheckMultipleOf:y_,$ZodCheckNumberFormat:x_,$ZodCheckOverwrite:R_,$ZodCheckProperty:O_,$ZodCheckRegex:N_,$ZodCheckSizeEquals:__,$ZodCheckStartsWith:z_,$ZodCheckStringFormat:bl,$ZodCheckUpperCase:E_,$ZodCodec:ih,$ZodCustom:K1,$ZodCustomStringFormat:c1,$ZodDate:b1,$ZodDefault:L1,$ZodDiscriminatedUnion:N1,$ZodE164:l1,$ZodEmail:F_,$ZodEmoji:Z_,$ZodEncodeError:Wu,$ZodEnum:P1,$ZodError:Lm,$ZodFile:T1,$ZodFunction:W1,$ZodGUID:L_,$ZodIPv4:Y_,$ZodIPv6:e1,$ZodISODate:K_,$ZodISODateTime:J_,$ZodISODuration:X_,$ZodISOTime:Q_,$ZodIntersection:I1,$ZodJWT:u1,$ZodKSUID:G_,$ZodLazy:J1,$ZodLiteral:O1,$ZodMAC:t1,$ZodMap:C1,$ZodNaN:B1,$ZodNanoID:B_,$ZodNever:y1,$ZodNonOptional:F1,$ZodNull:h1,$ZodNullable:D1,$ZodNumber:eh,$ZodNumberFormat:d1,$ZodObject:$1,$ZodObjectJIT:S1,$ZodOptional:A1,$ZodPipe:V1,$ZodPrefault:U1,$ZodPromise:G1,$ZodReadonly:H1,$ZodRealError:Dt,$ZodRecord:E1,$ZodRegistry:r$,$ZodSet:z1,$ZodString:kl,$ZodStringFormat:_e,$ZodSuccess:M1,$ZodSymbol:p1,$ZodTemplateLiteral:q1,$ZodTransform:R1,$ZodTuple:rh,$ZodType:ne,$ZodULID:q_,$ZodURL:M_,$ZodUUID:U_,$ZodUndefined:m1,$ZodUnion:Xu,$ZodUnknown:v1,$ZodVoid:x1,$ZodXID:W_,$ZodXor:j1,$brand:fw,$constructor:E,$input:n$,$output:t$,Doc:A_,JSONSchema:g6,JSONSchemaGenerator:h6,NEVER:dw,TimePrecision:l$,_any:I$,_array:R$,_base64:wh,_base64url:_h,_bigint:k$,_boolean:x$,_catch:s6,_check:F$,_cidrv4:bh,_cidrv6:kh,_coercedBigint:w$,_coercedBoolean:b$,_coercedDate:O$,_coercedNumber:p$,_coercedString:o$,_cuid:ph,_cuid2:mh,_custom:D$,_date:P$,_decode:Zm,_decodeAsync:Vm,_default:o6,_discriminatedUnion:WT,_e164:$h,_email:ah,_emoji:dh,_encode:Mm,_encodeAsync:Bm,_endsWith:ac,_enum:YT,_file:A$,_float32:h$,_float64:g$,_gt:Mr,_gte:kt,_guid:vu,_includes:ic,_int:m$,_int32:v$,_int64:_$,_intersection:GT,_ipv4:yh,_ipv6:xh,_isoDate:u$,_isoDateTime:s$,_isoDuration:d$,_isoTime:c$,_jwt:Sh,_ksuid:vh,_lazy:f6,_length:$l,_literal:t6,_lowercase:nc,_lt:Fr,_lte:qt,_mac:a$,_map:QT,_max:qt,_maxLength:_l,_maxSize:wl,_mime:lc,_min:kt,_minLength:Si,_minSize:zo,_multipleOf:Co,_nan:T$,_nanoid:fh,_nativeEnum:e6,_negative:Nh,_never:C$,_nonnegative:Eh,_nonoptional:a6,_nonpositive:Ih,_normalize:sc,_null:N$,_nullable:i6,_number:f$,_optional:r6,_overwrite:or,_parse:ml,_parseAsync:hl,_pipe:u6,_positive:jh,_promise:p6,_property:Ch,_readonly:c6,_record:KT,_refine:L$,_regex:tc,_safeDecode:qm,_safeDecodeAsync:Gm,_safeEncode:Hm,_safeEncodeAsync:Wm,_safeParse:gl,_safeParseAsync:vl,_set:XT,_size:ec,_slugify:fc,_startsWith:oc,_string:i$,_stringFormat:Sl,_stringbool:B$,_success:l6,_superRefine:U$,_symbol:S$,_templateLiteral:d6,_toLowerCase:cc,_toUpperCase:dc,_transform:n6,_trim:uc,_tuple:JT,_uint32:y$,_uint64:$$,_ulid:hh,_undefined:j$,_union:HT,_unknown:E$,_uppercase:rc,_url:Yu,_uuid:lh,_uuidv4:sh,_uuidv6:uh,_uuidv7:ch,_void:z$,_xid:gh,_xor:qT,clone:Qt,config:ot,createStandardJSONSchemaMethod:Wa,createToJSONSchemaMethod:V$,decode:jO,decodeAsync:IO,describe:M$,encode:SO,encodeAsync:NO,extractDefs:Oo,finalize:To,flattenError:Um,formatError:Fm,globalConfig:pu,globalRegistry:ln,initializeContext:Po,isValidBase64:Ym,isValidBase64URL:o1,isValidJWT:s1,locales:e$,meta:Z$,parse:fp,parseAsync:pp,prettifyError:Ow,process:we,regexes:Km,registry:oh,safeDecode:CO,safeDecodeAsync:PO,safeEncode:EO,safeEncodeAsync:zO,safeParse:Tw,safeParseAsync:Rw,toDotPath:Pw,toJSONSchema:ES,treeifyError:zw,util:Ew,version:D_},Symbol.toStringTag,{value:"Module"})),y6=Object.freeze(Object.defineProperty({__proto__:null,endsWith:ac,gt:Mr,gte:kt,includes:ic,length:$l,lowercase:nc,lt:Fr,lte:qt,maxLength:_l,maxSize:wl,mime:lc,minLength:Si,minSize:zo,multipleOf:Co,negative:Nh,nonnegative:Eh,nonpositive:Ih,normalize:sc,overwrite:or,positive:jh,property:Ch,regex:tc,size:ec,slugify:fc,startsWith:oc,toLowerCase:cc,toUpperCase:dc,trim:uc,uppercase:rc},Symbol.toStringTag,{value:"Module"})),Ph=E("ZodISODateTime",(e,t)=>{J_.init(e,t),$e.init(e,t)});function CS(e){return s$(Ph,e)}const Oh=E("ZodISODate",(e,t)=>{K_.init(e,t),$e.init(e,t)});function zS(e){return u$(Oh,e)}const Th=E("ZodISOTime",(e,t)=>{Q_.init(e,t),$e.init(e,t)});function PS(e){return c$(Th,e)}const Rh=E("ZodISODuration",(e,t)=>{X_.init(e,t),$e.init(e,t)});function OS(e){return d$(Rh,e)}const TS=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:Oh,ZodISODateTime:Ph,ZodISODuration:Rh,ZodISOTime:Th,date:zS,datetime:CS,duration:OS,time:PS},Symbol.toStringTag,{value:"Module"})),RS=(e,t)=>{Lm.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Fm(e,n)},flatten:{value:n=>Um(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,mu,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,mu,2)}},isEmpty:{get(){return e.issues.length===0}}})},x6=E("ZodError",RS),Lt=E("ZodError",RS,{Parent:Error}),AS=ml(Lt),DS=hl(Lt),LS=gl(Lt),US=vl(Lt),FS=Mm(Lt),MS=Zm(Lt),ZS=Bm(Lt),BS=Vm(Lt),VS=Hm(Lt),HS=qm(Lt),qS=Wm(Lt),WS=Gm(Lt),ae=E("ZodType",(e,t)=>(ne.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Wa(e,"input"),output:Wa(e,"output")}}),e.toJSONSchema=V$(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(ir(t,{checks:[...t.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]})),e.clone=(n,i)=>Qt(e,n,i),e.brand=()=>e,e.register=(n,i)=>(n.add(e,i),e),e.parse=(n,i)=>AS(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>LS(e,n,i),e.parseAsync=async(n,i)=>DS(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>US(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>FS(e,n,i),e.decode=(n,i)=>MS(e,n,i),e.encodeAsync=async(n,i)=>ZS(e,n,i),e.decodeAsync=async(n,i)=>BS(e,n,i),e.safeEncode=(n,i)=>VS(e,n,i),e.safeDecode=(n,i)=>HS(e,n,i),e.safeEncodeAsync=async(n,i)=>qS(e,n,i),e.safeDecodeAsync=async(n,i)=>WS(e,n,i),e.refine=(n,i)=>e.check(bg(n,i)),e.superRefine=n=>e.check(kg(n)),e.overwrite=n=>e.check(or(n)),e.optional=()=>Ja(e),e.nullable=()=>Ka(e),e.nullish=()=>Ja(Ka(e)),e.nonoptional=n=>sg(e,n),e.array=()=>ar(e),e.or=n=>Oc([e,n]),e.and=n=>Jh(e,n),e.transform=n=>Qa(e,Rc(n)),e.default=n=>og(e,n),e.prefault=n=>lg(e,n),e.catch=n=>dg(e,n),e.pipe=n=>Qa(e,n),e.readonly=()=>mg(e),e.describe=n=>{const i=e.clone();return ln.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){var n;return(n=ln.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return ln.get(e);const i=e.clone();return ln.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),pc=E("_ZodString",(e,t)=>{kl.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(i,r,o)=>H$(e,i,r);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...i)=>e.check(tc(...i)),e.includes=(...i)=>e.check(ic(...i)),e.startsWith=(...i)=>e.check(oc(...i)),e.endsWith=(...i)=>e.check(ac(...i)),e.min=(...i)=>e.check(Si(...i)),e.max=(...i)=>e.check(_l(...i)),e.length=(...i)=>e.check($l(...i)),e.nonempty=(...i)=>e.check(Si(1,...i)),e.lowercase=i=>e.check(nc(i)),e.uppercase=i=>e.check(rc(i)),e.trim=()=>e.check(uc()),e.normalize=(...i)=>e.check(sc(...i)),e.toLowerCase=()=>e.check(cc()),e.toUpperCase=()=>e.check(dc()),e.slugify=()=>e.check(fc())}),jl=E("ZodString",(e,t)=>{kl.init(e,t),pc.init(e,t),e.email=n=>e.check(ah(mc,n)),e.url=n=>e.check(Yu(Nl,n)),e.jwt=n=>e.check(Sh(Ec,n)),e.emoji=n=>e.check(dh(hc,n)),e.guid=n=>e.check(vu(Ga,n)),e.uuid=n=>e.check(lh(jn,n)),e.uuidv4=n=>e.check(sh(jn,n)),e.uuidv6=n=>e.check(uh(jn,n)),e.uuidv7=n=>e.check(ch(jn,n)),e.nanoid=n=>e.check(fh(gc,n)),e.guid=n=>e.check(vu(Ga,n)),e.cuid=n=>e.check(ph(vc,n)),e.cuid2=n=>e.check(mh(yc,n)),e.ulid=n=>e.check(hh(xc,n)),e.base64=n=>e.check(wh(jc,n)),e.base64url=n=>e.check(_h(Nc,n)),e.xid=n=>e.check(gh(bc,n)),e.ksuid=n=>e.check(vh(kc,n)),e.ipv4=n=>e.check(yh(wc,n)),e.ipv6=n=>e.check(xh(_c,n)),e.cidrv4=n=>e.check(bh($c,n)),e.cidrv6=n=>e.check(kh(Sc,n)),e.e164=n=>e.check($h(Ic,n)),e.datetime=n=>e.check(CS(n)),e.date=n=>e.check(zS(n)),e.time=n=>e.check(PS(n)),e.duration=n=>e.check(OS(n))});function ie(e){return i$(jl,e)}const $e=E("ZodStringFormat",(e,t)=>{_e.init(e,t),pc.init(e,t)}),mc=E("ZodEmail",(e,t)=>{F_.init(e,t),$e.init(e,t)});function GS(e){return ah(mc,e)}const Ga=E("ZodGUID",(e,t)=>{L_.init(e,t),$e.init(e,t)});function JS(e){return vu(Ga,e)}const jn=E("ZodUUID",(e,t)=>{U_.init(e,t),$e.init(e,t)});function KS(e){return lh(jn,e)}function QS(e){return sh(jn,e)}function XS(e){return uh(jn,e)}function YS(e){return ch(jn,e)}const Nl=E("ZodURL",(e,t)=>{M_.init(e,t),$e.init(e,t)});function ej(e){return Yu(Nl,e)}function tj(e){return Yu(Nl,{protocol:/^https?$/,hostname:e_,...T(e)})}const hc=E("ZodEmoji",(e,t)=>{Z_.init(e,t),$e.init(e,t)});function nj(e){return dh(hc,e)}const gc=E("ZodNanoID",(e,t)=>{B_.init(e,t),$e.init(e,t)});function rj(e){return fh(gc,e)}const vc=E("ZodCUID",(e,t)=>{V_.init(e,t),$e.init(e,t)});function ij(e){return ph(vc,e)}const yc=E("ZodCUID2",(e,t)=>{H_.init(e,t),$e.init(e,t)});function oj(e){return mh(yc,e)}const xc=E("ZodULID",(e,t)=>{q_.init(e,t),$e.init(e,t)});function aj(e){return hh(xc,e)}const bc=E("ZodXID",(e,t)=>{W_.init(e,t),$e.init(e,t)});function lj(e){return gh(bc,e)}const kc=E("ZodKSUID",(e,t)=>{G_.init(e,t),$e.init(e,t)});function sj(e){return vh(kc,e)}const wc=E("ZodIPv4",(e,t)=>{Y_.init(e,t),$e.init(e,t)});function uj(e){return yh(wc,e)}const Ah=E("ZodMAC",(e,t)=>{t1.init(e,t),$e.init(e,t)});function cj(e){return a$(Ah,e)}const _c=E("ZodIPv6",(e,t)=>{e1.init(e,t),$e.init(e,t)});function dj(e){return xh(_c,e)}const $c=E("ZodCIDRv4",(e,t)=>{n1.init(e,t),$e.init(e,t)});function fj(e){return bh($c,e)}const Sc=E("ZodCIDRv6",(e,t)=>{r1.init(e,t),$e.init(e,t)});function pj(e){return kh(Sc,e)}const jc=E("ZodBase64",(e,t)=>{i1.init(e,t),$e.init(e,t)});function mj(e){return wh(jc,e)}const Nc=E("ZodBase64URL",(e,t)=>{a1.init(e,t),$e.init(e,t)});function hj(e){return _h(Nc,e)}const Ic=E("ZodE164",(e,t)=>{l1.init(e,t),$e.init(e,t)});function gj(e){return $h(Ic,e)}const Ec=E("ZodJWT",(e,t)=>{u1.init(e,t),$e.init(e,t)});function vj(e){return Sh(Ec,e)}const Bo=E("ZodCustomStringFormat",(e,t)=>{c1.init(e,t),$e.init(e,t)});function yj(e,t,n={}){return Sl(Bo,e,t,n)}function xj(e){return Sl(Bo,"hostname",Yw,e)}function bj(e){return Sl(Bo,"hex",g_,e)}function kj(e,t){const n=(t==null?void 0:t.enc)??"hex",i=`${e}_${n}`,r=Km[i];if(!r)throw new Error(`Unrecognized hash format: ${i}`);return Sl(Bo,i,r,t)}const Il=E("ZodNumber",(e,t)=>{eh.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(i,r,o)=>q$(e,i,r),e.gt=(i,r)=>e.check(Mr(i,r)),e.gte=(i,r)=>e.check(kt(i,r)),e.min=(i,r)=>e.check(kt(i,r)),e.lt=(i,r)=>e.check(Fr(i,r)),e.lte=(i,r)=>e.check(qt(i,r)),e.max=(i,r)=>e.check(qt(i,r)),e.int=i=>e.check(yu(i)),e.safe=i=>e.check(yu(i)),e.positive=i=>e.check(Mr(0,i)),e.nonnegative=i=>e.check(kt(0,i)),e.negative=i=>e.check(Fr(0,i)),e.nonpositive=i=>e.check(qt(0,i)),e.multipleOf=(i,r)=>e.check(Co(i,r)),e.step=(i,r)=>e.check(Co(i,r)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Ge(e){return f$(Il,e)}const zi=E("ZodNumberFormat",(e,t)=>{d1.init(e,t),Il.init(e,t)});function yu(e){return m$(zi,e)}function wj(e){return h$(zi,e)}function _j(e){return g$(zi,e)}function $j(e){return v$(zi,e)}function Sj(e){return y$(zi,e)}const El=E("ZodBoolean",(e,t)=>{th.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>W$(e,n,i)});function Wn(e){return x$(El,e)}const Cl=E("ZodBigInt",(e,t)=>{nh.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(i,r,o)=>G$(e,i),e.gte=(i,r)=>e.check(kt(i,r)),e.min=(i,r)=>e.check(kt(i,r)),e.gt=(i,r)=>e.check(Mr(i,r)),e.gte=(i,r)=>e.check(kt(i,r)),e.min=(i,r)=>e.check(kt(i,r)),e.lt=(i,r)=>e.check(Fr(i,r)),e.lte=(i,r)=>e.check(qt(i,r)),e.max=(i,r)=>e.check(qt(i,r)),e.positive=i=>e.check(Mr(BigInt(0),i)),e.negative=i=>e.check(Fr(BigInt(0),i)),e.nonpositive=i=>e.check(qt(BigInt(0),i)),e.nonnegative=i=>e.check(kt(BigInt(0),i)),e.multipleOf=(i,r)=>e.check(Co(i,r));const n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function jj(e){return k$(Cl,e)}const Cc=E("ZodBigIntFormat",(e,t)=>{f1.init(e,t),Cl.init(e,t)});function Nj(e){return _$(Cc,e)}function Ij(e){return $$(Cc,e)}const Dh=E("ZodSymbol",(e,t)=>{p1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>J$(e,n)});function Ej(e){return S$(Dh,e)}const Lh=E("ZodUndefined",(e,t)=>{m1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Q$(e,n)});function Cj(e){return j$(Lh,e)}const Uh=E("ZodNull",(e,t)=>{h1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>K$(e,n,i)});function Fh(e){return N$(Uh,e)}const Mh=E("ZodAny",(e,t)=>{g1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>eS()});function zj(){return I$(Mh)}const Zh=E("ZodUnknown",(e,t)=>{v1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>tS()});function ji(){return E$(Zh)}const Bh=E("ZodNever",(e,t)=>{y1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Y$(e,n,i)});function zc(e){return C$(Bh,e)}const Vh=E("ZodVoid",(e,t)=>{x1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>X$(e,n)});function Pj(e){return z$(Vh,e)}const Pc=E("ZodDate",(e,t)=>{b1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(i,r,o)=>nS(e,i),e.min=(i,r)=>e.check(kt(i,r)),e.max=(i,r)=>e.check(qt(i,r));const n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function Oj(e){return P$(Pc,e)}const Hh=E("ZodArray",(e,t)=>{k1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>mS(e,n,i,r),e.element=t.element,e.min=(n,i)=>e.check(Si(n,i)),e.nonempty=n=>e.check(Si(1,n)),e.max=(n,i)=>e.check(_l(n,i)),e.length=(n,i)=>e.check($l(n,i)),e.unwrap=()=>e.element});function ar(e,t){return R$(Hh,e,t)}function Tj(e){const t=e._zod.def.shape;return pn(Object.keys(t))}const zl=E("ZodObject",(e,t)=>{S1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>hS(e,n,i,r),ue(e,"shape",()=>t.shape),e.keyof=()=>pn(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ji()}),e.loose=()=>e.clone({...e._zod.def,catchall:ji()}),e.strict=()=>e.clone({...e._zod.def,catchall:zc()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>ww(e,n),e.safeExtend=n=>_w(e,n),e.merge=n=>$w(e,n),e.pick=n=>bw(e,n),e.omit=n=>kw(e,n),e.partial=(...n)=>Sw(Ac,e,n[0]),e.required=(...n)=>jw(Dc,e,n[0])});function Ue(e,t){const n={type:"object",shape:e??{},...T(t)};return new zl(n)}function Rj(e,t){return new zl({type:"object",shape:e,catchall:zc(),...T(t)})}function Aj(e,t){return new zl({type:"object",shape:e,catchall:ji(),...T(t)})}const Pl=E("ZodUnion",(e,t)=>{Xu.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>zh(e,n,i,r),e.options=t.options});function Oc(e,t){return new Pl({type:"union",options:e,...T(t)})}const qh=E("ZodXor",(e,t)=>{Pl.init(e,t),j1.init(e,t),e._zod.processJSONSchema=(n,i,r)=>zh(e,n,i,r),e.options=t.options});function Dj(e,t){return new qh({type:"union",options:e,inclusive:!1,...T(t)})}const Wh=E("ZodDiscriminatedUnion",(e,t)=>{Pl.init(e,t),N1.init(e,t)});function Lj(e,t,n){return new Wh({type:"union",options:t,discriminator:e,...T(n)})}const Gh=E("ZodIntersection",(e,t)=>{I1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>gS(e,n,i,r)});function Jh(e,t){return new Gh({type:"intersection",left:e,right:t})}const Kh=E("ZodTuple",(e,t)=>{rh.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>vS(e,n,i,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});function Qh(e,t,n){const i=t instanceof ne,r=i?n:t,o=i?t:null;return new Kh({type:"tuple",items:e,rest:o,...T(r)})}const Ol=E("ZodRecord",(e,t)=>{E1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>yS(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType});function Tc(e,t,n){return new Ol({type:"record",keyType:e,valueType:t,...T(n)})}function Uj(e,t,n){const i=Qt(e);return i._zod.values=void 0,new Ol({type:"record",keyType:i,valueType:t,...T(n)})}function Fj(e,t,n){return new Ol({type:"record",keyType:e,valueType:t,mode:"loose",...T(n)})}const Xh=E("ZodMap",(e,t)=>{C1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>fS(e,n),e.keyType=t.keyType,e.valueType=t.valueType});function Mj(e,t,n){return new Xh({type:"map",keyType:e,valueType:t,...T(n)})}const Yh=E("ZodSet",(e,t)=>{z1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>pS(e,n),e.min=(...n)=>e.check(zo(...n)),e.nonempty=n=>e.check(zo(1,n)),e.max=(...n)=>e.check(wl(...n)),e.size=(...n)=>e.check(ec(...n))});function Zj(e,t){return new Yh({type:"set",valueType:e,...T(t)})}const Ro=E("ZodEnum",(e,t)=>{P1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(i,r,o)=>rS(e,i,r),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(i,r)=>{const o={};for(const a of i)if(n.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Ro({...t,checks:[],...T(r),entries:o})},e.exclude=(i,r)=>{const o={...t.entries};for(const a of i)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new Ro({...t,checks:[],...T(r),entries:o})}});function pn(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Ro({type:"enum",entries:n,...T(t)})}function Bj(e,t){return new Ro({type:"enum",entries:e,...T(t)})}const eg=E("ZodLiteral",(e,t)=>{O1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>iS(e,n,i),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 Vj(e,t){return new eg({type:"literal",values:Array.isArray(e)?e:[e],...T(t)})}const tg=E("ZodFile",(e,t)=>{T1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>lS(e,n,i),e.min=(n,i)=>e.check(zo(n,i)),e.max=(n,i)=>e.check(wl(n,i)),e.mime=(n,i)=>e.check(lc(Array.isArray(n)?n:[n],i))});function Hj(e){return A$(tg,e)}const ng=E("ZodTransform",(e,t)=>{R1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>dS(e,n),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Wu(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(Io(o,n.value,t));else{const a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(Io(a))}};const r=t.transform(n.value,n);return r instanceof Promise?r.then(o=>(n.value=o,n)):(n.value=r,n)}});function Rc(e){return new ng({type:"transform",transform:e})}const Ac=E("ZodOptional",(e,t)=>{A1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>NS(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function Ja(e){return new Ac({type:"optional",innerType:e})}const rg=E("ZodNullable",(e,t)=>{D1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>xS(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function Ka(e){return new rg({type:"nullable",innerType:e})}function qj(e){return Ja(Ka(e))}const ig=E("ZodDefault",(e,t)=>{L1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>kS(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function og(e,t){return new ig({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Ju(t)}})}const ag=E("ZodPrefault",(e,t)=>{U1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>wS(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function lg(e,t){return new ag({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Ju(t)}})}const Dc=E("ZodNonOptional",(e,t)=>{F1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>bS(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function sg(e,t){return new Dc({type:"nonoptional",innerType:e,...T(t)})}const ug=E("ZodSuccess",(e,t)=>{M1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>sS(e,n,i),e.unwrap=()=>e._zod.def.innerType});function Wj(e){return new ug({type:"success",innerType:e})}const cg=E("ZodCatch",(e,t)=>{Z1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>_S(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function dg(e,t){return new cg({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const fg=E("ZodNaN",(e,t)=>{B1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>oS(e,n)});function Gj(e){return T$(fg,e)}const Lc=E("ZodPipe",(e,t)=>{V1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>$S(e,n,i,r),e.in=t.in,e.out=t.out});function Qa(e,t){return new Lc({type:"pipe",in:e,out:t})}const Uc=E("ZodCodec",(e,t)=>{Lc.init(e,t),ih.init(e,t)});function Jj(e,t,n){return new Uc({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}const pg=E("ZodReadonly",(e,t)=>{H1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>SS(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function mg(e){return new pg({type:"readonly",innerType:e})}const hg=E("ZodTemplateLiteral",(e,t)=>{q1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>aS(e,n,i)});function Kj(e,t){return new hg({type:"template_literal",parts:e,...T(t)})}const gg=E("ZodLazy",(e,t)=>{J1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>IS(e,n,i,r),e.unwrap=()=>e._zod.def.getter()});function vg(e){return new gg({type:"lazy",getter:e})}const yg=E("ZodPromise",(e,t)=>{G1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>jS(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function Qj(e){return new yg({type:"promise",innerType:e})}const xg=E("ZodFunction",(e,t)=>{W1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>cS(e,n)});function xu(e){return new xg({type:"function",input:Array.isArray(e==null?void 0:e.input)?Qh(e==null?void 0:e.input):(e==null?void 0:e.input)??ar(ji()),output:(e==null?void 0:e.output)??ji()})}const Tl=E("ZodCustom",(e,t)=>{K1.init(e,t),ae.init(e,t),e._zod.processJSONSchema=(n,i,r)=>uS(e,n)});function Xj(e){const t=new ze({check:"custom"});return t._zod.check=e,t}function Yj(e,t){return D$(Tl,e??(()=>!0),t)}function bg(e,t={}){return L$(Tl,e,t)}function kg(e){return U$(e)}const eN=M$,tN=Z$;function nN(e,t={error:`Input not instance of ${e.name}`}){const n=new Tl({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...T(t)});return n._zod.bag.Class=e,n}const rN=(...e)=>B$({Codec:Uc,Boolean:El,String:jl},...e);function iN(e){const t=vg(()=>Oc([ie(e),Ge(),Wn(),Fh(),ar(t),Tc(ie(),t)]));return t}function oN(e,t){return Qa(Rc(e),t)}const b6=Object.freeze(Object.defineProperty({__proto__:null,ZodAny:Mh,ZodArray:Hh,ZodBase64:jc,ZodBase64URL:Nc,ZodBigInt:Cl,ZodBigIntFormat:Cc,ZodBoolean:El,ZodCIDRv4:$c,ZodCIDRv6:Sc,ZodCUID:vc,ZodCUID2:yc,ZodCatch:cg,ZodCodec:Uc,ZodCustom:Tl,ZodCustomStringFormat:Bo,ZodDate:Pc,ZodDefault:ig,ZodDiscriminatedUnion:Wh,ZodE164:Ic,ZodEmail:mc,ZodEmoji:hc,ZodEnum:Ro,ZodFile:tg,ZodFunction:xg,ZodGUID:Ga,ZodIPv4:wc,ZodIPv6:_c,ZodIntersection:Gh,ZodJWT:Ec,ZodKSUID:kc,ZodLazy:gg,ZodLiteral:eg,ZodMAC:Ah,ZodMap:Xh,ZodNaN:fg,ZodNanoID:gc,ZodNever:Bh,ZodNonOptional:Dc,ZodNull:Uh,ZodNullable:rg,ZodNumber:Il,ZodNumberFormat:zi,ZodObject:zl,ZodOptional:Ac,ZodPipe:Lc,ZodPrefault:ag,ZodPromise:yg,ZodReadonly:pg,ZodRecord:Ol,ZodSet:Yh,ZodString:jl,ZodStringFormat:$e,ZodSuccess:ug,ZodSymbol:Dh,ZodTemplateLiteral:hg,ZodTransform:ng,ZodTuple:Kh,ZodType:ae,ZodULID:xc,ZodURL:Nl,ZodUUID:jn,ZodUndefined:Lh,ZodUnion:Pl,ZodUnknown:Zh,ZodVoid:Vh,ZodXID:bc,ZodXor:qh,_ZodString:pc,_default:og,_function:xu,any:zj,array:ar,base64:mj,base64url:hj,bigint:jj,boolean:Wn,catch:dg,check:Xj,cidrv4:fj,cidrv6:pj,codec:Jj,cuid:ij,cuid2:oj,custom:Yj,date:Oj,describe:eN,discriminatedUnion:Lj,e164:gj,email:GS,emoji:nj,enum:pn,file:Hj,float32:wj,float64:_j,function:xu,guid:JS,hash:kj,hex:bj,hostname:xj,httpUrl:tj,instanceof:nN,int:yu,int32:$j,int64:Nj,intersection:Jh,ipv4:uj,ipv6:dj,json:iN,jwt:vj,keyof:Tj,ksuid:sj,lazy:vg,literal:Vj,looseObject:Aj,looseRecord:Fj,mac:cj,map:Mj,meta:tN,nan:Gj,nanoid:rj,nativeEnum:Bj,never:zc,nonoptional:sg,null:Fh,nullable:Ka,nullish:qj,number:Ge,object:Ue,optional:Ja,partialRecord:Uj,pipe:Qa,prefault:lg,preprocess:oN,promise:Qj,readonly:mg,record:Tc,refine:bg,set:Zj,strictObject:Rj,string:ie,stringFormat:yj,stringbool:rN,success:Wj,superRefine:kg,symbol:Ej,templateLiteral:Kj,transform:Rc,tuple:Qh,uint32:Sj,uint64:Ij,ulid:aj,undefined:Cj,union:Oc,unknown:ji,url:ej,uuid:KS,uuidv4:QS,uuidv6:XS,uuidv7:YS,void:Pj,xid:lj,xor:Dj},Symbol.toStringTag,{value:"Module"})),k6={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 w6(e){ot({customError:e})}function _6(){return ot().customError}var gp;gp||(gp={});const q={...b6,...y6,iso:TS};function $6(e,t){const n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function S6(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");const n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;const i=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===i){const r=n[1];if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}function aN(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return q.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){const r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return q.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);const o=S6(r,t),a=tt(o,t);return t.refs.set(r,a),t.processing.delete(r),a}if(e.enum!==void 0){const r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&r.length===1&&r[0]===null)return q.null();if(r.length===0)return q.never();if(r.length===1)return q.literal(r[0]);if(r.every(a=>typeof a=="string"))return q.enum(r);const o=r.map(a=>q.literal(a));return o.length<2?o[0]:q.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return q.literal(e.const);const n=e.type;if(Array.isArray(n)){const r=n.map(o=>{const a={...e,type:o};return aN(a,t)});return r.length===0?q.never():r.length===1?r[0]:q.union(r)}if(!n)return q.any();let i;switch(n){case"string":{let r=q.string();if(e.format){const o=e.format;o==="email"?r=r.check(q.email()):o==="uri"||o==="uri-reference"?r=r.check(q.url()):o==="uuid"||o==="guid"?r=r.check(q.uuid()):o==="date-time"?r=r.check(q.iso.datetime()):o==="date"?r=r.check(q.iso.date()):o==="time"?r=r.check(q.iso.time()):o==="duration"?r=r.check(q.iso.duration()):o==="ipv4"?r=r.check(q.ipv4()):o==="ipv6"?r=r.check(q.ipv6()):o==="mac"?r=r.check(q.mac()):o==="cidr"?r=r.check(q.cidrv4()):o==="cidr-v6"?r=r.check(q.cidrv6()):o==="base64"?r=r.check(q.base64()):o==="base64url"?r=r.check(q.base64url()):o==="e164"?r=r.check(q.e164()):o==="jwt"?r=r.check(q.jwt()):o==="emoji"?r=r.check(q.emoji()):o==="nanoid"?r=r.check(q.nanoid()):o==="cuid"?r=r.check(q.cuid()):o==="cuid2"?r=r.check(q.cuid2()):o==="ulid"?r=r.check(q.ulid()):o==="xid"?r=r.check(q.xid()):o==="ksuid"&&(r=r.check(q.ksuid()))}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),i=r;break}case"number":case"integer":{let r=n==="integer"?q.number().int():q.number();typeof e.minimum=="number"&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),i=r;break}case"boolean":{i=q.boolean();break}case"null":{i=q.null();break}case"object":{const r={},o=e.properties||{},a=new Set(e.required||[]);for(const[s,u]of Object.entries(o)){const d=tt(u,t);r[s]=a.has(s)?d:d.optional()}if(e.propertyNames){const s=tt(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?tt(e.additionalProperties,t):q.any();if(Object.keys(r).length===0){i=q.record(s,u);break}const d=q.object(r).passthrough(),c=q.looseRecord(s,u);i=q.intersection(d,c);break}if(e.patternProperties){const s=e.patternProperties,u=Object.keys(s),d=[];for(const p of u){const m=tt(s[p],t),h=q.string().regex(new RegExp(p));d.push(q.looseRecord(h,m))}const c=[];if(Object.keys(r).length>0&&c.push(q.object(r).passthrough()),c.push(...d),c.length===0)i=q.object({}).passthrough();else if(c.length===1)i=c[0];else{let p=q.intersection(c[0],c[1]);for(let m=2;m<c.length;m++)p=q.intersection(p,c[m]);i=p}break}const l=q.object(r);e.additionalProperties===!1?i=l.strict():typeof e.additionalProperties=="object"?i=l.catchall(tt(e.additionalProperties,t)):i=l.passthrough();break}case"array":{const r=e.prefixItems,o=e.items;if(r&&Array.isArray(r)){const a=r.map(s=>tt(s,t)),l=o&&typeof o=="object"&&!Array.isArray(o)?tt(o,t):void 0;l?i=q.tuple(a).rest(l):i=q.tuple(a),typeof e.minItems=="number"&&(i=i.check(q.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(q.maxLength(e.maxItems)))}else if(Array.isArray(o)){const a=o.map(s=>tt(s,t)),l=e.additionalItems&&typeof e.additionalItems=="object"?tt(e.additionalItems,t):void 0;l?i=q.tuple(a).rest(l):i=q.tuple(a),typeof e.minItems=="number"&&(i=i.check(q.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(q.maxLength(e.maxItems)))}else if(o!==void 0){const a=tt(o,t);let l=q.array(a);typeof e.minItems=="number"&&(l=l.min(e.minItems)),typeof e.maxItems=="number"&&(l=l.max(e.maxItems)),i=l}else i=q.array(q.any());break}default:throw new Error(`Unsupported type: ${n}`)}return e.description&&(i=i.describe(e.description)),e.default!==void 0&&(i=i.default(e.default)),i}function tt(e,t){if(typeof e=="boolean")return e?q.any():q.never();let n=aN(e,t);const i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){const r=e.anyOf.map(a=>tt(a,t)),o=q.union(r);n=i?q.intersection(n,o):o}if(e.oneOf&&Array.isArray(e.oneOf)){const r=e.oneOf.map(a=>tt(a,t)),o=q.xor(r);n=i?q.intersection(n,o):o}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=i?n:q.any();else{let r=i?n:tt(e.allOf[0],t);const o=i?0:1;for(let a=o;a<e.allOf.length;a++)r=q.intersection(r,tt(e.allOf[a],t));n=r}return e.nullable===!0&&t.version==="openapi-3.0"&&(n=q.nullable(n)),e.readOnly===!0&&(n=q.readonly(n)),n}function j6(e,t){if(typeof e=="boolean")return e?q.any():q.never();const n=$6(e,t==null?void 0:t.defaultTarget),i=e.$defs||e.definitions||{};return tt(e,{version:n,defs:i,refs:new Map,processing:new Set,rootSchema:e})}function N6(e){return o$(jl,e)}function I6(e){return p$(Il,e)}function E6(e){return b$(El,e)}function C6(e){return w$(Cl,e)}function z6(e){return O$(Pc,e)}const P6=Object.freeze(Object.defineProperty({__proto__:null,bigint:C6,boolean:E6,date:z6,number:I6,string:N6},Symbol.toStringTag,{value:"Module"}));ot(Q1());const O6=Object.freeze(Object.defineProperty({__proto__:null,$brand:fw,$input:n$,$output:t$,NEVER:dw,TimePrecision:l$,ZodAny:Mh,ZodArray:Hh,ZodBase64:jc,ZodBase64URL:Nc,ZodBigInt:Cl,ZodBigIntFormat:Cc,ZodBoolean:El,ZodCIDRv4:$c,ZodCIDRv6:Sc,ZodCUID:vc,ZodCUID2:yc,ZodCatch:cg,ZodCodec:Uc,ZodCustom:Tl,ZodCustomStringFormat:Bo,ZodDate:Pc,ZodDefault:ig,ZodDiscriminatedUnion:Wh,ZodE164:Ic,ZodEmail:mc,ZodEmoji:hc,ZodEnum:Ro,ZodError:x6,ZodFile:tg,get ZodFirstPartyTypeKind(){return gp},ZodFunction:xg,ZodGUID:Ga,ZodIPv4:wc,ZodIPv6:_c,ZodISODate:Oh,ZodISODateTime:Ph,ZodISODuration:Rh,ZodISOTime:Th,ZodIntersection:Gh,ZodIssueCode:k6,ZodJWT:Ec,ZodKSUID:kc,ZodLazy:gg,ZodLiteral:eg,ZodMAC:Ah,ZodMap:Xh,ZodNaN:fg,ZodNanoID:gc,ZodNever:Bh,ZodNonOptional:Dc,ZodNull:Uh,ZodNullable:rg,ZodNumber:Il,ZodNumberFormat:zi,ZodObject:zl,ZodOptional:Ac,ZodPipe:Lc,ZodPrefault:ag,ZodPromise:yg,ZodReadonly:pg,ZodRealError:Lt,ZodRecord:Ol,ZodSet:Yh,ZodString:jl,ZodStringFormat:$e,ZodSuccess:ug,ZodSymbol:Dh,ZodTemplateLiteral:hg,ZodTransform:ng,ZodTuple:Kh,ZodType:ae,ZodULID:xc,ZodURL:Nl,ZodUUID:jn,ZodUndefined:Lh,ZodUnion:Pl,ZodUnknown:Zh,ZodVoid:Vh,ZodXID:bc,ZodXor:qh,_ZodString:pc,_default:og,_function:xu,any:zj,array:ar,base64:mj,base64url:hj,bigint:jj,boolean:Wn,catch:dg,check:Xj,cidrv4:fj,cidrv6:pj,clone:Qt,codec:Jj,coerce:P6,config:ot,core:v6,cuid:ij,cuid2:oj,custom:Yj,date:Oj,decode:MS,decodeAsync:BS,describe:eN,discriminatedUnion:Lj,e164:gj,email:GS,emoji:nj,encode:FS,encodeAsync:ZS,endsWith:ac,enum:pn,file:Hj,flattenError:Um,float32:wj,float64:_j,formatError:Fm,fromJSONSchema:j6,function:xu,getErrorMap:_6,globalRegistry:ln,gt:Mr,gte:kt,guid:JS,hash:kj,hex:bj,hostname:xj,httpUrl:tj,includes:ic,instanceof:nN,int:yu,int32:$j,int64:Nj,intersection:Jh,ipv4:uj,ipv6:dj,iso:TS,json:iN,jwt:vj,keyof:Tj,ksuid:sj,lazy:vg,length:$l,literal:Vj,locales:e$,looseObject:Aj,looseRecord:Fj,lowercase:nc,lt:Fr,lte:qt,mac:cj,map:Mj,maxLength:_l,maxSize:wl,meta:tN,mime:lc,minLength:Si,minSize:zo,multipleOf:Co,nan:Gj,nanoid:rj,nativeEnum:Bj,negative:Nh,never:zc,nonnegative:Eh,nonoptional:sg,nonpositive:Ih,normalize:sc,null:Fh,nullable:Ka,nullish:qj,number:Ge,object:Ue,optional:Ja,overwrite:or,parse:AS,parseAsync:DS,partialRecord:Uj,pipe:Qa,positive:jh,prefault:lg,preprocess:oN,prettifyError:Ow,promise:Qj,property:Ch,readonly:mg,record:Tc,refine:bg,regex:tc,regexes:Km,registry:oh,safeDecode:HS,safeDecodeAsync:WS,safeEncode:VS,safeEncodeAsync:qS,safeParse:LS,safeParseAsync:US,set:Zj,setErrorMap:w6,size:ec,slugify:fc,startsWith:oc,strictObject:Rj,string:ie,stringFormat:yj,stringbool:rN,success:Wj,superRefine:kg,symbol:Ej,templateLiteral:Kj,toJSONSchema:ES,toLowerCase:cc,toUpperCase:dc,transform:Rc,treeifyError:zw,trim:uc,tuple:Qh,uint32:Sj,uint64:Ij,ulid:aj,undefined:Cj,union:Oc,unknown:ji,uppercase:rc,url:ej,util:Ew,uuid:KS,uuidv4:QS,uuidv6:XS,uuidv7:YS,void:Pj,xid:lj,xor:Dj},Symbol.toStringTag,{value:"Module"}));iO(O6);const lN=pn(["http_basic","github_token","gitlab_token","bitbucket_app_password","bitbucket_api_token","bitbucket_api_key","bitbucket_server_pat","bearer_token"]),sN=pn(["git","composer","artifact"]),T6=Ue({url:ie().url("Invalid repository URL"),vcs_type:sN,credential_type:lN,auth_credentials:Tc(ie(),ie()).refine(e=>Object.keys(e).length>0,"At least one credential field is required"),composer_json_path:ie().optional(),package_filter:ie().optional()});T6.partial();const R6=Ue({id:ie(),url:ie(),vcs_type:sN,credential_type:lN,composer_json_path:ie().nullable(),package_filter:ie().nullable(),status:pn(["pending","active","error","syncing"]),error_message:ie().nullable(),last_synced_at:Ge().nullable(),created_at:Ge()}),uN=pn(["readonly","write"]);Ue({description:ie().min(1,"Description is required"),permissions:uN.default("readonly"),rate_limit_max:Ge().int().min(0).max(25e3,"Rate limit cannot exceed 25,000 requests/hour").nullable().default(1e3),expires_at:Ge().int().positive().optional()});Ue({description:ie().min(1,"Description is required").optional(),rate_limit_max:Ge().int().min(0).max(25e3,"Rate limit cannot exceed 25,000 requests/hour").nullable().optional()});const A6=Ue({id:ie(),description:ie(),permissions:uN,rate_limit_max:Ge().nullable(),created_at:Ge(),expires_at:Ge().nullable(),last_used_at:Ge().nullable()});Ue({email:ie().email("Invalid email address"),password:ie().min(1,"Password is required"),code:ie().optional()});Ue({token:ie(),user:Ue({id:ie(),email:ie(),role:pn(["admin","viewer"]),two_factor_enabled:Wn()})});const cN=Ue({id:ie(),email:ie(),role:pn(["admin","viewer"]),two_factor_enabled:Wn()});Ue({users:ar(cN)});Ue({email:ie().email("Invalid email address"),password:ie().optional(),role:pn(["admin","viewer"]).default("viewer")});Ue({message:ie(),user:cN});Ue({error:ie(),message:ie().optional(),code:ie().optional(),requestId:ie().optional()});Ue({status:ie(),timestamp:Ge()});Ue({active_repos:Ge(),cached_packages:Ge(),total_downloads:Ge()});Ue({kv_available:Wn(),packagist_mirroring_enabled:Wn(),package_caching_enabled:Wn()});Ue({enabled:Wn()});const dN=Ue({id:ie(),name:ie(),version:ie(),repo_id:ie(),dist_url:ie().nullable(),source_dist_url:ie().nullable(),released_at:Ge().nullable(),created_at:Ge()});ar(dN);Ue({name:ie(),versions:ar(dN)});A6.extend({token:ie()});ar(R6);const fN=S.createContext(void 0),Id="composer_proxy_admin_token";function D6({children:e}){const[t,n]=S.useState(()=>typeof window<"u"?localStorage.getItem(Id):null),[i,r]=S.useState(null),[o,a]=S.useState(null);S.useEffect(()=>{t?fetch("/api/auth/me",{headers:{Authorization:`Bearer ${t}`}}).then(c=>{if(c.ok)return c.json();throw new Error("Failed to fetch user")}).then(c=>r(c.user)).catch(c=>{console.error("AuthContext: Failed to fetch user",c),a(c.message||"Unknown auth error"),s()}):r(null)},[t]);const l=c=>{n(c),localStorage.setItem(Id,c),a(null)},s=()=>{n(null),r(null),localStorage.removeItem(Id)},u=t!==null&&t.length>0,d=(i==null?void 0:i.role)==="admin";return f.jsx(fN.Provider,{value:{adminToken:t,isAuthenticated:u,user:i,isAdmin:d,login:l,logout:s,authError:o},children:e})}function Vo(){const e=S.useContext(fN);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e}function L6(){const[e,t]=S.useState(!1),[n,i]=S.useState(null),r=rr(),{data:o=[],isLoading:a}=zt({queryKey:["repositories"],queryFn:cw}),{data:l}=zt({queryKey:["settings"],queryFn:qu}),s=(l==null?void 0:l.packagist_mirroring_enabled)??!0,u=o.filter(h=>h.id!=="packagist"||s),d=er({mutationFn:PP,onSuccess:()=>{r.invalidateQueries({queryKey:["repositories"]})}}),c=er({mutationFn:OP,onSuccess:()=>{r.invalidateQueries({queryKey:["repositories"]})}}),p=h=>{const g={active:"bg-emerald-500/20 text-emerald-400 border-emerald-500/30",error:"bg-red-500/20 text-red-400 border-red-500/30",pending:"bg-yellow-500/20 text-yellow-400 border-yellow-500/30",syncing:"bg-blue-500/20 text-blue-400 border-blue-500/30"};return f.jsx("span",{className:`px-2 py-1 text-xs font-medium rounded-full border ${g[h]}`,children:h})},{isAdmin:m}=Vo();return f.jsxs("div",{className:"space-y-8","data-testid":"repositories-page",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h2",{className:"font-display text-2xl font-bold text-slate-100 mb-2","data-testid":"repositories-heading",children:"Repositories"}),f.jsx("p",{className:"text-slate-400",children:"Manage your package sources. Packages are loaded on-demand when requested."})]}),m&&f.jsx("button",{onClick:()=>t(!0),className:"btn-primary","data-testid":"add-repository-button","aria-label":"Add new repository",children:"+ Add Repository"})]}),f.jsx("div",{className:"card overflow-hidden",children:a?f.jsx("div",{className:"p-8 text-center",children:f.jsx("div",{className:"w-8 h-8 border-2 border-slate-600 border-t-primary-500 rounded-full animate-spin mx-auto"})}):u.length===0?f.jsxs("div",{className:"p-8 text-center text-slate-400",children:["No repositories configured yet. ",m?"Add your first repository to get started.":"Ask an admin to configure repositories."]}):f.jsxs("table",{className:"w-full",children:[f.jsx("thead",{className:"bg-slate-800/50 border-b border-slate-700",children:f.jsxs("tr",{children:[f.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-400 uppercase tracking-wider",children:"URL"}),f.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-400 uppercase tracking-wider",children:"Type"}),f.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-400 uppercase tracking-wider",children:"Status"}),f.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-400 uppercase tracking-wider",children:"Last Tested"}),m&&f.jsx("th",{className:"px-6 py-3 text-right text-xs font-medium text-slate-400 uppercase tracking-wider",children:"Actions"})]})}),f.jsx("tbody",{className:"divide-y divide-slate-800",children:u.map(h=>{const g=h.id==="packagist";return f.jsxs("tr",{className:"hover:bg-slate-800/30",children:[f.jsxs("td",{className:"px-6 py-4",children:[f.jsxs("div",{className:"text-sm text-slate-200 font-medium truncate max-w-xs",children:[h.url,g&&f.jsx("span",{className:"ml-2 text-xs text-slate-500",children:"(Public Packagist)"})]}),h.error_message&&f.jsx("div",{className:"text-xs text-red-400 mt-1",children:h.error_message})]}),f.jsxs("td",{className:"px-6 py-4 text-sm text-slate-400",children:[h.vcs_type," / ",h.credential_type]}),f.jsx("td",{className:"px-6 py-4",children:p(h.status)}),f.jsx("td",{className:"px-6 py-4 text-sm text-slate-400",children:h.last_synced_at?new Date(h.last_synced_at*1e3).toLocaleString():"Never"}),m&&f.jsxs("td",{className:"px-6 py-4 text-right space-x-3",children:[!g&&f.jsxs(f.Fragment,{children:[f.jsx("button",{onClick:()=>c.mutate(h.id),disabled:c.isPending||h.status==="syncing",className:"text-primary-400 hover:text-primary-300 text-sm disabled:opacity-50",title:"Test connection and validate credentials. Packages are loaded on-demand when requested.",children:h.status==="syncing"?"Testing...":"Test"}),f.jsx("button",{onClick:()=>i(h),className:"text-slate-400 hover:text-slate-200 text-sm",children:"Edit"}),f.jsx("button",{onClick:()=>{confirm("Delete this repository?")&&d.mutate(h.id)},className:"text-red-400 hover:text-red-300 text-sm",children:"Delete"})]}),g&&f.jsx("span",{className:"text-xs text-slate-500 italic",children:"Managed by system"})]})]},h.id)})})]})}),f.jsx(M6,{}),e&&f.jsx(U6,{onClose:()=>t(!1)}),n&&f.jsx(F6,{repository:n,onClose:()=>i(null)})]})}function U6({onClose:e}){var x;const[t,n]=S.useState(""),[i,r]=S.useState("composer"),[o,a]=S.useState("http_basic"),[l,s]=S.useState({}),[u,d]=S.useState(""),[c,p]=S.useState(""),m=rr(),h=er({mutationFn:CP,onSuccess:()=>{m.invalidateQueries({queryKey:["repositories"]}),e()}}),g=fu[i]||[],w=((x=du[o])==null?void 0:x.fields)||[],v=k=>{r(k);const I=fu[k]||[];I.length>0&&!I.includes(o)&&(a(I[0]),s({}))},y=k=>{k.preventDefault(),h.mutate({url:t,vcs_type:i,credential_type:o,auth_credentials:l,composer_json_path:u||void 0,package_filter:c||void 0})};return f.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50",children:f.jsxs("div",{className:"card max-w-lg w-full mx-4 p-6",children:[f.jsxs("div",{className:"flex items-center justify-between mb-6",children:[f.jsx("h3",{className:"font-display text-xl font-bold text-slate-100",children:"Add Repository"}),f.jsx("button",{onClick:e,className:"text-slate-400 hover:text-slate-200",children:f.jsx(_i,{className:"w-4 h-4"})})]}),f.jsxs("form",{onSubmit:y,className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"label",children:"Repository URL"}),f.jsx("input",{type:"url",value:t,onChange:k=>n(k.target.value),placeholder:"https://github.com/owner/repo or https://composer.example.com",className:"input w-full",required:!0})]}),f.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"label",children:"Source Type"}),f.jsxs("select",{value:i,onChange:k=>v(k.target.value),className:"input w-full",children:[f.jsx("option",{value:"composer",children:"Composer Repository"}),f.jsx("option",{value:"git",children:"Git Repository"})]})]}),f.jsxs("div",{children:[f.jsx("label",{className:"label",children:"Credential Type"}),f.jsx("select",{value:o,onChange:k=>{a(k.target.value),s({})},className:"input w-full",children:g.map(k=>{var I;return f.jsx("option",{value:k,children:((I=du[k])==null?void 0:I.label)||k},k)})})]})]}),w.map(k=>f.jsxs("div",{children:[f.jsx("label",{className:"label",children:k.label}),f.jsx("input",{type:k.type,value:l[k.name]||"",onChange:I=>s(N=>({...N,[k.name]:I.target.value})),className:"input w-full",required:!0})]},k.name)),i==="git"&&f.jsxs("div",{children:[f.jsx("label",{className:"label",children:"Composer.json Path (optional)"}),f.jsx("input",{type:"text",value:u,onChange:k=>d(k.target.value),placeholder:"**/composer.json",className:"input w-full"}),f.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"Glob pattern to find composer.json files. Default: **/composer.json"})]}),i==="composer"&&f.jsxs("div",{children:[f.jsx("label",{className:"label",children:"Package Filter (optional)"}),f.jsx("input",{type:"text",value:c,onChange:k=>p(k.target.value),placeholder:"vendor/package1, vendor/package2",className:"input w-full"}),f.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"Comma-separated list of packages to filter. Optional - leave empty to allow all packages. Packages are loaded on-demand when requested by Composer."})]}),f.jsxs("div",{className:"flex justify-end gap-3 pt-4",children:[f.jsx("button",{type:"button",onClick:e,className:"btn-secondary",children:"Cancel"}),f.jsx("button",{type:"submit",className:"btn-primary",disabled:h.isPending,children:h.isPending?"Adding...":"Add Repository"})]}),h.error&&f.jsx("p",{className:"text-red-400 text-sm",children:h.error.message})]})]})})}function F6({repository:e,onClose:t}){var k;const[n,i]=S.useState(e.url),[r,o]=S.useState(e.vcs_type),[a,l]=S.useState(e.credential_type),[s,u]=S.useState({}),[d,c]=S.useState(e.composer_json_path||""),[p,m]=S.useState(e.package_filter||""),h=rr(),g=er({mutationFn:I=>zP(e.id,I),onSuccess:()=>{h.invalidateQueries({queryKey:["repositories"]}),t()}}),w=fu[r]||[],v=((k=du[a])==null?void 0:k.fields)||[],y=I=>{o(I);const N=fu[I]||[];N.length>0&&!N.includes(a)&&(l(N[0]),u({}))},x=I=>{I.preventDefault();const N={};if(n!==e.url&&(N.url=n),r!==e.vcs_type&&(N.vcs_type=r),a!==e.credential_type&&(N.credential_type=a),Object.values(s).some(A=>A.trim()!=="")&&(N.auth_credentials=s),d!==(e.composer_json_path||"")&&(N.composer_json_path=d||void 0),p!==(e.package_filter||"")&&(N.package_filter=p||void 0),Object.keys(N).length===0){t();return}g.mutate(N)};return f.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50",children:f.jsxs("div",{className:"card max-w-lg w-full mx-4 p-6",children:[f.jsxs("div",{className:"flex items-center justify-between mb-6",children:[f.jsx("h3",{className:"font-display text-xl font-bold text-slate-100",children:"Edit Repository"}),f.jsx("button",{onClick:t,className:"text-slate-400 hover:text-slate-200",children:f.jsx(_i,{className:"w-4 h-4"})})]}),f.jsxs("form",{onSubmit:x,className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"label",children:"Repository URL"}),f.jsx("input",{type:"url",value:n,onChange:I=>i(I.target.value),placeholder:"https://github.com/owner/repo or https://composer.example.com",className:"input w-full",required:!0})]}),f.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"label",children:"Source Type"}),f.jsxs("select",{value:r,onChange:I=>y(I.target.value),className:"input w-full",children:[f.jsx("option",{value:"composer",children:"Composer Repository"}),f.jsx("option",{value:"git",children:"Git Repository"})]})]}),f.jsxs("div",{children:[f.jsx("label",{className:"label",children:"Credential Type"}),f.jsx("select",{value:a,onChange:I=>{l(I.target.value),u({})},className:"input w-full",children:w.map(I=>{var N;return f.jsx("option",{value:I,children:((N=du[I])==null?void 0:N.label)||I},I)})})]})]}),f.jsxs("div",{className:"space-y-4",children:[f.jsx("p",{className:"text-xs text-slate-500",children:"Leave credential fields empty to keep current values."}),v.map(I=>f.jsxs("div",{children:[f.jsx("label",{className:"label",children:I.label}),f.jsx("input",{type:I.type,value:s[I.name]||"",onChange:N=>u(P=>({...P,[I.name]:N.target.value})),placeholder:"Leave empty to keep current",className:"input w-full"})]},I.name))]}),r==="git"&&f.jsxs("div",{children:[f.jsx("label",{className:"label",children:"Composer.json Path (optional)"}),f.jsx("input",{type:"text",value:d,onChange:I=>c(I.target.value),placeholder:"**/composer.json",className:"input w-full"}),f.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"Glob pattern to find composer.json files. Default: **/composer.json"})]}),r==="composer"&&f.jsxs("div",{children:[f.jsx("label",{className:"label",children:"Package Filter (optional)"}),f.jsx("input",{type:"text",value:p,onChange:I=>m(I.target.value),placeholder:"vendor/package1, vendor/package2",className:"input w-full"}),f.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"Comma-separated list of packages to filter. Optional - leave empty to allow all packages. Packages are loaded on-demand when requested by Composer."})]}),f.jsxs("div",{className:"flex justify-end gap-3 pt-4",children:[f.jsx("button",{type:"button",onClick:t,className:"btn-secondary",children:"Cancel"}),f.jsx("button",{type:"submit",className:"btn-primary",disabled:g.isPending,children:g.isPending?"Saving...":"Save Changes"})]}),g.error&&f.jsx("p",{className:"text-red-400 text-sm",children:g.error.message})]})]})})}function M6(){const e=rr(),{isAdmin:t}=Vo(),{data:n,isLoading:i}=zt({queryKey:["settings"],queryFn:qu}),r=er({mutationFn:BP,onSuccess:()=>{e.invalidateQueries({queryKey:["settings"]})}}),o=(n==null?void 0:n.packagist_mirroring_enabled)??!0,a=()=>{t&&r.mutate(!o)};return f.jsxs("div",{className:"card p-6 mt-8",children:[f.jsxs("div",{className:"flex items-start justify-between",children:[f.jsxs("div",{className:"flex-1",children:[f.jsx("h3",{className:"font-display text-lg font-semibold text-slate-100 mb-2",children:"Public Packagist Mirroring"}),f.jsxs("p",{className:"text-slate-400 text-sm mb-4",children:["When enabled, packages not found in your private repositories will be proxied from"," ",f.jsx("a",{href:"https://packagist.org",target:"_blank",rel:"noopener noreferrer",className:"text-primary-400 hover:underline",children:"packagist.org"}),". This allows Composer to resolve public dependencies through this proxy."]}),f.jsxs("div",{className:"bg-slate-800/50 rounded-lg p-4 text-sm",children:[f.jsx("p",{className:"text-slate-300 mb-2",children:f.jsx("strong",{children:"When to disable:"})}),f.jsxs("ul",{className:"list-disc list-inside text-slate-400 space-y-1",children:[f.jsx("li",{children:"You're using Magento Marketplace or another private repository as your primary source"}),f.jsx("li",{children:"You want to ensure only private packages are served by this proxy"}),f.jsx("li",{children:"You have a separate Packagist mirror configured in your Composer"})]})]})]}),f.jsxs("div",{className:"ml-8 flex flex-col items-center",children:[f.jsx("button",{onClick:a,disabled:i||r.isPending||!t,className:`relative inline-flex h-7 w-14 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 focus:ring-offset-slate-900 disabled:opacity-50 ${o?"bg-primary-600":"bg-slate-700"}`,role:"switch","aria-checked":o,children:f.jsx("span",{className:`pointer-events-none inline-block h-6 w-6 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out ${o?"translate-x-7":"translate-x-0"}`})}),f.jsx("span",{className:"mt-2 text-xs text-slate-500",children:i?"Loading...":o?"Enabled":"Disabled"})]})]}),r.isError&&f.jsxs("p",{className:"text-red-400 text-sm mt-4",children:["Failed to update setting: ",r.error.message]})]})}function Z6(){const[e,t]=S.useState(!1),[n,i]=S.useState(null),r=rr(),{isAdmin:o}=Vo(),{data:a=[],isLoading:l}=zt({queryKey:["tokens"],queryFn:TP}),{data:s,isLoading:u}=zt({queryKey:["settings"],queryFn:qu}),d=(s==null?void 0:s.kv_available)??!1,c=l||u,p=er({mutationFn:({id:h,data:g})=>AP(h,g),onSuccess:()=>{r.invalidateQueries({queryKey:["tokens"]})}}),m=er({mutationFn:DP,onSuccess:()=>{r.invalidateQueries({queryKey:["tokens"]})}});return f.jsxs("div",{className:"space-y-8","data-testid":"tokens-page",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h2",{className:"font-display text-2xl font-bold text-slate-100 mb-2","data-testid":"tokens-heading",children:"Access Tokens"}),f.jsx("p",{className:"text-slate-400",children:"Manage tokens for Composer authentication"})]}),o&&f.jsx("button",{onClick:()=>t(!0),className:"btn-primary","data-testid":"generate-token-button","aria-label":"Generate new access token",children:"+ Generate Token"})]}),f.jsx("div",{className:"card overflow-hidden",children:c?f.jsx("div",{className:"p-8 text-center",children:f.jsx("div",{className:"w-8 h-8 border-2 border-slate-600 border-t-primary-500 rounded-full animate-spin mx-auto"})}):a.length===0?f.jsxs("div",{className:"p-8 text-center text-slate-400",children:["No tokens generated yet. ",o?"Create your first token to authenticate Composer.":"Ask an admin to generate tokens."]}):f.jsxs("table",{className:"w-full",children:[f.jsx("thead",{className:"bg-slate-800/50 border-b border-slate-700",children:f.jsxs("tr",{children:[f.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-400 uppercase tracking-wider",children:"Description"}),f.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-400 uppercase tracking-wider",children:"Permissions"}),d&&f.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-400 uppercase tracking-wider",children:"Rate Limit"}),f.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-400 uppercase tracking-wider",children:"Created"}),f.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-400 uppercase tracking-wider",children:"Last Used"}),o&&f.jsx("th",{className:"px-6 py-3 text-right text-xs font-medium text-slate-400 uppercase tracking-wider",children:"Actions"})]})}),f.jsx("tbody",{className:"divide-y divide-slate-800",children:a.map(h=>f.jsx(B6,{token:h,onUpdate:g=>p.mutate({id:h.id,data:g}),onDelete:()=>{confirm("Revoke this token?")&&m.mutate(h.id)},isUpdating:p.isPending,kvAvailable:d,isAdmin:o},h.id))})]})}),e&&f.jsx(V6,{onClose:()=>{t(!1),i(null)},onCreated:h=>{i(h)},newToken:n,kvAvailable:d})]})}function B6({token:e,onUpdate:t,onDelete:n,isUpdating:i,kvAvailable:r,isAdmin:o}){const[a,l]=S.useState(!1),[s,u]=S.useState(e.description),d=()=>{t({description:s}),l(!1)},c=()=>{u(e.description),l(!1)};return f.jsxs("tr",{className:"hover:bg-slate-800/30",children:[f.jsx("td",{className:"px-6 py-4 text-sm text-slate-200 font-medium",children:a?f.jsx("input",{type:"text",value:s,onChange:p=>u(p.target.value),className:"input w-full text-sm",autoFocus:!0}):e.description}),f.jsx("td",{className:"px-6 py-4 text-sm text-slate-400",children:f.jsx("div",{className:"flex items-center gap-2",children:e.permissions==="readonly"?f.jsxs(f.Fragment,{children:[f.jsx(Bu,{className:"w-4 h-4"}),f.jsx("span",{children:"Read-only"})]}):f.jsxs(f.Fragment,{children:[f.jsx(Rm,{className:"w-4 h-4"}),f.jsx("span",{children:"Write"})]})})}),r&&f.jsx("td",{className:"px-6 py-4 text-sm text-slate-400",children:e.rate_limit_max===null||e.rate_limit_max===0?"Unlimited":`${e.rate_limit_max.toLocaleString()}/hour`}),f.jsx("td",{className:"px-6 py-4 text-sm text-slate-400",children:new Date(e.created_at*1e3).toLocaleString()}),f.jsx("td",{className:"px-6 py-4 text-sm text-slate-400",children:e.last_used_at?new Date(e.last_used_at*1e3).toLocaleString():"Never"}),o&&f.jsx("td",{className:"px-6 py-4 text-right",children:f.jsx("div",{className:"flex items-center justify-end gap-2",children:a?f.jsxs(f.Fragment,{children:[f.jsx("button",{onClick:d,disabled:i,className:"text-green-400 hover:text-green-300 text-sm flex items-center gap-1",title:"Save",children:f.jsx(kP,{className:"w-4 h-4"})}),f.jsx("button",{onClick:c,disabled:i,className:"text-slate-400 hover:text-slate-200 text-sm",title:"Cancel",children:f.jsx(_i,{className:"w-4 h-4"})})]}):f.jsxs(f.Fragment,{children:[f.jsx("button",{onClick:()=>l(!0),className:"text-blue-400 hover:text-blue-300 text-sm flex items-center gap-1",title:"Edit",children:f.jsx(bP,{className:"w-4 h-4"})}),f.jsx("button",{onClick:n,className:"text-red-400 hover:text-red-300 text-sm",title:"Revoke",children:"Revoke"})]})})})]})}function V6({onClose:e,onCreated:t,newToken:n,kvAvailable:i}){const[r,o]=S.useState(""),[a,l]=S.useState("readonly"),[s,u]=S.useState("1000"),[d,c]=S.useState(!1),p=rr(),m=er({mutationFn:RP,onSuccess:w=>{p.invalidateQueries({queryKey:["tokens"]}),t(w)}}),h=w=>{w.preventDefault();const v=i&&s!==""?parseInt(s):null;m.mutate({description:r,permissions:a,rate_limit_max:v===null||isNaN(v)?null:v})},g=w=>{navigator.clipboard.writeText(w),c(!0),setTimeout(()=>c(!1),2e3)};if(n){const w=JSON.stringify({"http-basic":{[window.location.host]:{username:"token",password:n.token}}},null,2);return f.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50",children:f.jsxs("div",{className:"card max-w-lg w-full mx-4 p-6",children:[f.jsxs("div",{className:"flex items-center justify-between mb-6",children:[f.jsx("h3",{className:"font-display text-xl font-bold text-slate-100",children:"Token Generated!"}),f.jsx("button",{onClick:e,className:"text-slate-400 hover:text-slate-200",children:f.jsx(_i,{className:"w-4 h-4"})})]}),f.jsxs("div",{className:"bg-yellow-500/10 border border-yellow-500/30 rounded-lg p-4 mb-6 flex items-start gap-2",children:[f.jsx($P,{className:"w-4 h-4 text-yellow-400 mt-0.5 flex-shrink-0"}),f.jsx("p",{className:"text-yellow-400 text-sm",children:"Copy this token now! It won't be shown again."})]}),f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"label",children:"Token"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"text",value:n.token,readOnly:!0,className:"input w-full font-mono text-xs"}),f.jsxs("button",{onClick:()=>g(n.token),className:"btn-secondary flex items-center gap-1",children:[d?f.jsx(sw,{className:"w-4 h-4"}):null,d?"Copied":"Copy"]})]})]}),f.jsxs("div",{children:[f.jsx("label",{className:"label",children:"auth.json snippet"}),f.jsx("pre",{className:"bg-slate-950 rounded-lg p-4 overflow-x-auto text-xs text-slate-300",children:f.jsx("code",{children:w})}),f.jsx("button",{onClick:()=>g(w),className:"btn-secondary mt-2 text-sm",children:"Copy auth.json"})]})]}),f.jsx("div",{className:"flex justify-end mt-6",children:f.jsx("button",{onClick:e,className:"btn-primary",children:"Done"})})]})})}return f.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50",children:f.jsxs("div",{className:"card max-w-md w-full mx-4 p-6",children:[f.jsxs("div",{className:"flex items-center justify-between mb-6",children:[f.jsx("h3",{className:"font-display text-xl font-bold text-slate-100",children:"Generate Token"}),f.jsx("button",{onClick:e,className:"text-slate-400 hover:text-slate-200",children:f.jsx(_i,{className:"w-4 h-4"})})]}),f.jsxs("form",{onSubmit:h,className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"label",children:"Description"}),f.jsx("input",{type:"text",value:r,onChange:w=>o(w.target.value),placeholder:"e.g., CI/CD Pipeline",className:"input w-full",required:!0})]}),f.jsxs("div",{children:[f.jsx("label",{className:"label",children:"Permissions"}),f.jsxs("div",{className:"space-y-2",children:[f.jsxs("label",{className:"flex items-start gap-3 p-3 rounded-lg border border-slate-700 bg-slate-800/50 cursor-pointer hover:bg-slate-800/70 transition-colors",children:[f.jsx("input",{type:"radio",name:"permissions",value:"readonly",checked:a==="readonly",onChange:w=>l(w.target.value),className:"mt-0.5"}),f.jsxs("div",{className:"flex-1",children:[f.jsxs("div",{className:"flex items-center gap-2 text-slate-200 font-medium",children:[f.jsx(Bu,{className:"w-4 h-4"}),"Read-only"]}),f.jsx("p",{className:"text-xs text-slate-400 mt-1",children:"Can only download packages (composer install)"})]})]}),f.jsxs("label",{className:"flex items-start gap-3 p-3 rounded-lg border border-slate-700 bg-slate-800/50 cursor-pointer hover:bg-slate-800/70 transition-colors",children:[f.jsx("input",{type:"radio",name:"permissions",value:"write",checked:a==="write",onChange:w=>l(w.target.value),className:"mt-0.5"}),f.jsxs("div",{className:"flex-1",children:[f.jsxs("div",{className:"flex items-center gap-2 text-slate-200 font-medium",children:[f.jsx(Rm,{className:"w-4 h-4"}),"Write"]}),f.jsx("p",{className:"text-xs text-slate-400 mt-1",children:"Can fetch metadata and sync packages (composer require/update)"})]})]})]})]}),i&&f.jsxs("div",{children:[f.jsx("label",{className:"label",children:"Rate Limit (requests/hour)"}),f.jsxs("div",{className:"space-y-2",children:[f.jsx("input",{type:"number",value:s,onChange:w=>u(w.target.value),placeholder:"Unlimited",min:0,max:25e3,className:"input w-full"}),f.jsx("p",{className:"text-xs text-slate-400",children:"Leave empty or set to 0 for unlimited (no rate limiting)"})]})]}),f.jsxs("div",{className:"flex justify-end gap-3 pt-4",children:[f.jsx("button",{type:"button",onClick:e,className:"btn-secondary",children:"Cancel"}),f.jsx("button",{type:"submit",className:"btn-primary",disabled:m.isPending,children:m.isPending?"Generating...":"Generate Token"})]}),m.error&&f.jsx("p",{className:"text-red-400 text-sm",children:m.error.message})]})]})})}var vp={exports:{}};const H6="2.0.0",pN=256,q6=Number.MAX_SAFE_INTEGER||9007199254740991,W6=16,G6=pN-6,J6=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var Fc={MAX_LENGTH:pN,MAX_SAFE_COMPONENT_LENGTH:W6,MAX_SAFE_BUILD_LENGTH:G6,MAX_SAFE_INTEGER:q6,RELEASE_TYPES:J6,SEMVER_SPEC_VERSION:H6,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Ed={};const K6=typeof process=="object"&&Ed&&Ed.NODE_DEBUG&&/\bsemver\b/i.test(Ed.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var Mc=K6;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:r}=Fc,o=Mc;t=e.exports={};const a=t.re=[],l=t.safeRe=[],s=t.src=[],u=t.safeSrc=[],d=t.t={};let c=0;const p="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",r],[p,i]],h=w=>{for(const[v,y]of m)w=w.split(`${v}*`).join(`${v}{0,${y}}`).split(`${v}+`).join(`${v}{1,${y}}`);return w},g=(w,v,y)=>{const x=h(v),k=c++;o(w,k,v),d[w]=k,s[k]=v,u[k]=x,a[k]=new RegExp(v,y?"g":void 0),l[k]=new RegExp(x,y?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),g("MAINVERSION",`(${s[d.NUMERICIDENTIFIER]})\\.(${s[d.NUMERICIDENTIFIER]})\\.(${s[d.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${s[d.NUMERICIDENTIFIERLOOSE]})\\.(${s[d.NUMERICIDENTIFIERLOOSE]})\\.(${s[d.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${s[d.NONNUMERICIDENTIFIER]}|${s[d.NUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${s[d.NONNUMERICIDENTIFIER]}|${s[d.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASE",`(?:-(${s[d.PRERELEASEIDENTIFIER]}(?:\\.${s[d.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${s[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[d.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",`${p}+`),g("BUILD",`(?:\\+(${s[d.BUILDIDENTIFIER]}(?:\\.${s[d.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${s[d.MAINVERSION]}${s[d.PRERELEASE]}?${s[d.BUILD]}?`),g("FULL",`^${s[d.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${s[d.MAINVERSIONLOOSE]}${s[d.PRERELEASELOOSE]}?${s[d.BUILD]}?`),g("LOOSE",`^${s[d.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",`${s[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),g("XRANGEIDENTIFIER",`${s[d.NUMERICIDENTIFIER]}|x|X|\\*`),g("XRANGEPLAIN",`[v=\\s]*(${s[d.XRANGEIDENTIFIER]})(?:\\.(${s[d.XRANGEIDENTIFIER]})(?:\\.(${s[d.XRANGEIDENTIFIER]})(?:${s[d.PRERELEASE]})?${s[d.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${s[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[d.XRANGEIDENTIFIERLOOSE]})(?:${s[d.PRERELEASELOOSE]})?${s[d.BUILD]}?)?)?`),g("XRANGE",`^${s[d.GTLT]}\\s*${s[d.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${s[d.GTLT]}\\s*${s[d.XRANGEPLAINLOOSE]}$`),g("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),g("COERCE",`${s[d.COERCEPLAIN]}(?:$|[^\\d])`),g("COERCEFULL",s[d.COERCEPLAIN]+`(?:${s[d.PRERELEASE]})?(?:${s[d.BUILD]})?(?:$|[^\\d])`),g("COERCERTL",s[d.COERCE],!0),g("COERCERTLFULL",s[d.COERCEFULL],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${s[d.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",g("TILDE",`^${s[d.LONETILDE]}${s[d.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${s[d.LONETILDE]}${s[d.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${s[d.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",g("CARET",`^${s[d.LONECARET]}${s[d.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${s[d.LONECARET]}${s[d.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${s[d.GTLT]}\\s*(${s[d.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${s[d.GTLT]}\\s*(${s[d.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${s[d.GTLT]}\\s*(${s[d.LOOSEPLAIN]}|${s[d.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${s[d.XRANGEPLAIN]})\\s+-\\s+(${s[d.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${s[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[d.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(vp,vp.exports);var Rl=vp.exports;const Q6=Object.freeze({loose:!0}),X6=Object.freeze({}),Y6=e=>e?typeof e!="object"?Q6:e:X6;var wg=Y6;const Wy=/^[0-9]+$/,mN=(e,t)=>{if(typeof e=="number"&&typeof t=="number")return e===t?0:e<t?-1:1;const n=Wy.test(e),i=Wy.test(t);return n&&i&&(e=+e,t=+t),e===t?0:n&&!i?-1:i&&!n?1:e<t?-1:1},eR=(e,t)=>mN(t,e);var hN={compareIdentifiers:mN,rcompareIdentifiers:eR};const cs=Mc,{MAX_LENGTH:Gy,MAX_SAFE_INTEGER:ds}=Fc,{safeRe:fs,t:ps}=Rl,tR=wg,{compareIdentifiers:Cd}=hN;let nR=class yn{constructor(t,n){if(n=tR(n),t instanceof yn){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>Gy)throw new TypeError(`version is longer than ${Gy} characters`);cs("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const i=t.trim().match(n.loose?fs[ps.LOOSE]:fs[ps.FULL]);if(!i)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>ds||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ds||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ds||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(r=>{if(/^[0-9]+$/.test(r)){const o=+r;if(o>=0&&o<ds)return o}return r}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(cs("SemVer.compare",this.version,this.options,t),!(t instanceof yn)){if(typeof t=="string"&&t===this.version)return 0;t=new yn(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof yn||(t=new yn(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof yn||(t=new yn(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const i=this.prerelease[n],r=t.prerelease[n];if(cs("prerelease compare",n,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return-1;if(i===r)continue;return Cd(i,r)}while(++n)}compareBuild(t){t instanceof yn||(t=new yn(t,this.options));let n=0;do{const i=this.build[n],r=t.build[n];if(cs("build compare",n,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return-1;if(i===r)continue;return Cd(i,r)}while(++n)}inc(t,n,i){if(t.startsWith("pre")){if(!n&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(n){const r=`-${n}`.match(this.options.loose?fs[ps.PRERELEASELOOSE]:fs[ps.PRERELEASE]);if(!r||r[1]!==n)throw new Error(`invalid identifier: ${n}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,i),this.inc("pre",n,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,i),this.inc("pre",n,i);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const r=Number(i)?1:0;if(this.prerelease.length===0)this.prerelease=[r];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(n===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(r)}}if(n){let o=[n,r];i===!1&&(o=[n]),Cd(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var gt=nR;const Jy=gt,rR=(e,t,n=!1)=>{if(e instanceof Jy)return e;try{return new Jy(e,t)}catch(i){if(!n)return null;throw i}};var Ho=rR;const iR=Ho,oR=(e,t)=>{const n=iR(e,t);return n?n.version:null};var aR=oR;const lR=Ho,sR=(e,t)=>{const n=lR(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};var uR=sR;const Ky=gt,cR=(e,t,n,i,r)=>{typeof n=="string"&&(r=i,i=n,n=void 0);try{return new Ky(e instanceof Ky?e.version:e,n).inc(t,i,r).version}catch{return null}};var dR=cR;const Qy=Ho,fR=(e,t)=>{const n=Qy(e,null,!0),i=Qy(t,null,!0),r=n.compare(i);if(r===0)return null;const o=r>0,a=o?n:i,l=o?i:n,s=!!a.prerelease.length;if(!!l.prerelease.length&&!s){if(!l.patch&&!l.minor)return"major";if(l.compareMain(a)===0)return l.minor&&!l.patch?"minor":"patch"}const d=s?"pre":"";return n.major!==i.major?d+"major":n.minor!==i.minor?d+"minor":n.patch!==i.patch?d+"patch":"prerelease"};var pR=fR;const mR=gt,hR=(e,t)=>new mR(e,t).major;var gR=hR;const vR=gt,yR=(e,t)=>new vR(e,t).minor;var xR=yR;const bR=gt,kR=(e,t)=>new bR(e,t).patch;var wR=kR;const _R=Ho,$R=(e,t)=>{const n=_R(e,t);return n&&n.prerelease.length?n.prerelease:null};var SR=$R;const Xy=gt,jR=(e,t,n)=>new Xy(e,n).compare(new Xy(t,n));var mn=jR;const NR=mn,IR=(e,t,n)=>NR(t,e,n);var ER=IR;const CR=mn,zR=(e,t)=>CR(e,t,!0);var PR=zR;const Yy=gt,OR=(e,t,n)=>{const i=new Yy(e,n),r=new Yy(t,n);return i.compare(r)||i.compareBuild(r)};var _g=OR;const TR=_g,RR=(e,t)=>e.sort((n,i)=>TR(n,i,t));var AR=RR;const DR=_g,LR=(e,t)=>e.sort((n,i)=>DR(i,n,t));var UR=LR;const FR=mn,MR=(e,t,n)=>FR(e,t,n)>0;var Zc=MR;const ZR=mn,BR=(e,t,n)=>ZR(e,t,n)<0;var $g=BR;const VR=mn,HR=(e,t,n)=>VR(e,t,n)===0;var gN=HR;const qR=mn,WR=(e,t,n)=>qR(e,t,n)!==0;var vN=WR;const GR=mn,JR=(e,t,n)=>GR(e,t,n)>=0;var Sg=JR;const KR=mn,QR=(e,t,n)=>KR(e,t,n)<=0;var jg=QR;const XR=gN,YR=vN,eA=Zc,tA=Sg,nA=$g,rA=jg,iA=(e,t,n,i)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e===n;case"!==":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e!==n;case"":case"=":case"==":return XR(e,n,i);case"!=":return YR(e,n,i);case">":return eA(e,n,i);case">=":return tA(e,n,i);case"<":return nA(e,n,i);case"<=":return rA(e,n,i);default:throw new TypeError(`Invalid operator: ${t}`)}};var yN=iA;const oA=gt,aA=Ho,{safeRe:ms,t:hs}=Rl,lA=(e,t)=>{if(e instanceof oA)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let n=null;if(!t.rtl)n=e.match(t.includePrerelease?ms[hs.COERCEFULL]:ms[hs.COERCE]);else{const s=t.includePrerelease?ms[hs.COERCERTLFULL]:ms[hs.COERCERTL];let u;for(;(u=s.exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||u.index+u[0].length!==n.index+n[0].length)&&(n=u),s.lastIndex=u.index+u[1].length+u[2].length;s.lastIndex=-1}if(n===null)return null;const i=n[2],r=n[3]||"0",o=n[4]||"0",a=t.includePrerelease&&n[5]?`-${n[5]}`:"",l=t.includePrerelease&&n[6]?`+${n[6]}`:"";return aA(`${i}.${r}.${o}${a}${l}`,t)};var sA=lA;class uA{constructor(){this.max=1e3,this.map=new Map}get(t){const n=this.map.get(t);if(n!==void 0)return this.map.delete(t),this.map.set(t,n),n}delete(t){return this.map.delete(t)}set(t,n){if(!this.delete(t)&&n!==void 0){if(this.map.size>=this.max){const r=this.map.keys().next().value;this.delete(r)}this.map.set(t,n)}return this}}var cA=uA,zd,ex;function hn(){if(ex)return zd;ex=1;const e=/\s+/g;class t{constructor(O,G){if(G=r(G),O instanceof t)return O.loose===!!G.loose&&O.includePrerelease===!!G.includePrerelease?O:new t(O.raw,G);if(O instanceof o)return this.raw=O.value,this.set=[[O]],this.formatted=void 0,this;if(this.options=G,this.loose=!!G.loose,this.includePrerelease=!!G.includePrerelease,this.raw=O.trim().replace(e," "),this.set=this.raw.split("||").map(V=>this.parseRange(V.trim())).filter(V=>V.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const V=this.set[0];if(this.set=this.set.filter(C=>!g(C[0])),this.set.length===0)this.set=[V];else if(this.set.length>1){for(const C of this.set)if(C.length===1&&w(C[0])){this.set=[C];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let O=0;O<this.set.length;O++){O>0&&(this.formatted+="||");const G=this.set[O];for(let V=0;V<G.length;V++)V>0&&(this.formatted+=" "),this.formatted+=G[V].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(O){const V=((this.options.includePrerelease&&m)|(this.options.loose&&h))+":"+O,C=i.get(V);if(C)return C;const D=this.options.loose,b=D?s[u.HYPHENRANGELOOSE]:s[u.HYPHENRANGE];O=O.replace(b,B(this.options.includePrerelease)),a("hyphen replace",O),O=O.replace(s[u.COMPARATORTRIM],d),a("comparator trim",O),O=O.replace(s[u.TILDETRIM],c),a("tilde trim",O),O=O.replace(s[u.CARETTRIM],p),a("caret trim",O);let Q=O.split(" ").map(ge=>y(ge,this.options)).join(" ").split(/\s+/).map(ge=>L(ge,this.options));D&&(Q=Q.filter(ge=>(a("loose invalid filter",ge,this.options),!!ge.match(s[u.COMPARATORLOOSE])))),a("range list",Q);const K=new Map,$=Q.map(ge=>new o(ge,this.options));for(const ge of $){if(g(ge))return[ge];K.set(ge.value,ge)}K.size>1&&K.has("")&&K.delete("");const me=[...K.values()];return i.set(V,me),me}intersects(O,G){if(!(O instanceof t))throw new TypeError("a Range is required");return this.set.some(V=>v(V,G)&&O.set.some(C=>v(C,G)&&V.every(D=>C.every(b=>D.intersects(b,G)))))}test(O){if(!O)return!1;if(typeof O=="string")try{O=new l(O,this.options)}catch{return!1}for(let G=0;G<this.set.length;G++)if(te(this.set[G],O,this.options))return!0;return!1}}zd=t;const n=cA,i=new n,r=wg,o=Bc(),a=Mc,l=gt,{safeRe:s,t:u,comparatorTrimReplace:d,tildeTrimReplace:c,caretTrimReplace:p}=Rl,{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:h}=Fc,g=U=>U.value==="<0.0.0-0",w=U=>U.value==="",v=(U,O)=>{let G=!0;const V=U.slice();let C=V.pop();for(;G&&V.length;)G=V.every(D=>C.intersects(D,O)),C=V.pop();return G},y=(U,O)=>(U=U.replace(s[u.BUILD],""),a("comp",U,O),U=N(U,O),a("caret",U),U=k(U,O),a("tildes",U),U=A(U,O),a("xrange",U),U=_(U,O),a("stars",U),U),x=U=>!U||U.toLowerCase()==="x"||U==="*",k=(U,O)=>U.trim().split(/\s+/).map(G=>I(G,O)).join(" "),I=(U,O)=>{const G=O.loose?s[u.TILDELOOSE]:s[u.TILDE];return U.replace(G,(V,C,D,b,Q)=>{a("tilde",U,V,C,D,b,Q);let K;return x(C)?K="":x(D)?K=`>=${C}.0.0 <${+C+1}.0.0-0`:x(b)?K=`>=${C}.${D}.0 <${C}.${+D+1}.0-0`:Q?(a("replaceTilde pr",Q),K=`>=${C}.${D}.${b}-${Q} <${C}.${+D+1}.0-0`):K=`>=${C}.${D}.${b} <${C}.${+D+1}.0-0`,a("tilde return",K),K})},N=(U,O)=>U.trim().split(/\s+/).map(G=>P(G,O)).join(" "),P=(U,O)=>{a("caret",U,O);const G=O.loose?s[u.CARETLOOSE]:s[u.CARET],V=O.includePrerelease?"-0":"";return U.replace(G,(C,D,b,Q,K)=>{a("caret",U,C,D,b,Q,K);let $;return x(D)?$="":x(b)?$=`>=${D}.0.0${V} <${+D+1}.0.0-0`:x(Q)?D==="0"?$=`>=${D}.${b}.0${V} <${D}.${+b+1}.0-0`:$=`>=${D}.${b}.0${V} <${+D+1}.0.0-0`:K?(a("replaceCaret pr",K),D==="0"?b==="0"?$=`>=${D}.${b}.${Q}-${K} <${D}.${b}.${+Q+1}-0`:$=`>=${D}.${b}.${Q}-${K} <${D}.${+b+1}.0-0`:$=`>=${D}.${b}.${Q}-${K} <${+D+1}.0.0-0`):(a("no pr"),D==="0"?b==="0"?$=`>=${D}.${b}.${Q}${V} <${D}.${b}.${+Q+1}-0`:$=`>=${D}.${b}.${Q}${V} <${D}.${+b+1}.0-0`:$=`>=${D}.${b}.${Q} <${+D+1}.0.0-0`),a("caret return",$),$})},A=(U,O)=>(a("replaceXRanges",U,O),U.split(/\s+/).map(G=>R(G,O)).join(" ")),R=(U,O)=>{U=U.trim();const G=O.loose?s[u.XRANGELOOSE]:s[u.XRANGE];return U.replace(G,(V,C,D,b,Q,K)=>{a("xRange",U,V,C,D,b,Q,K);const $=x(D),me=$||x(b),ge=me||x(Q),ve=ge;return C==="="&&ve&&(C=""),K=O.includePrerelease?"-0":"",$?C===">"||C==="<"?V="<0.0.0-0":V="*":C&&ve?(me&&(b=0),Q=0,C===">"?(C=">=",me?(D=+D+1,b=0,Q=0):(b=+b+1,Q=0)):C==="<="&&(C="<",me?D=+D+1:b=+b+1),C==="<"&&(K="-0"),V=`${C+D}.${b}.${Q}${K}`):me?V=`>=${D}.0.0${K} <${+D+1}.0.0-0`:ge&&(V=`>=${D}.${b}.0${K} <${D}.${+b+1}.0-0`),a("xRange return",V),V})},_=(U,O)=>(a("replaceStars",U,O),U.trim().replace(s[u.STAR],"")),L=(U,O)=>(a("replaceGTE0",U,O),U.trim().replace(s[O.includePrerelease?u.GTE0PRE:u.GTE0],"")),B=U=>(O,G,V,C,D,b,Q,K,$,me,ge,ve)=>(x(V)?G="":x(C)?G=`>=${V}.0.0${U?"-0":""}`:x(D)?G=`>=${V}.${C}.0${U?"-0":""}`:b?G=`>=${G}`:G=`>=${G}${U?"-0":""}`,x($)?K="":x(me)?K=`<${+$+1}.0.0-0`:x(ge)?K=`<${$}.${+me+1}.0-0`:ve?K=`<=${$}.${me}.${ge}-${ve}`:U?K=`<${$}.${me}.${+ge+1}-0`:K=`<=${K}`,`${G} ${K}`.trim()),te=(U,O,G)=>{for(let V=0;V<U.length;V++)if(!U[V].test(O))return!1;if(O.prerelease.length&&!G.includePrerelease){for(let V=0;V<U.length;V++)if(a(U[V].semver),U[V].semver!==o.ANY&&U[V].semver.prerelease.length>0){const C=U[V].semver;if(C.major===O.major&&C.minor===O.minor&&C.patch===O.patch)return!0}return!1}return!0};return zd}var Pd,tx;function Bc(){if(tx)return Pd;tx=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(d,c){if(c=n(c),d instanceof t){if(d.loose===!!c.loose)return d;d=d.value}d=d.trim().split(/\s+/).join(" "),a("comparator",d,c),this.options=c,this.loose=!!c.loose,this.parse(d),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(d){const c=this.options.loose?i[r.COMPARATORLOOSE]:i[r.COMPARATOR],p=d.match(c);if(!p)throw new TypeError(`Invalid comparator: ${d}`);this.operator=p[1]!==void 0?p[1]:"",this.operator==="="&&(this.operator=""),p[2]?this.semver=new l(p[2],this.options.loose):this.semver=e}toString(){return this.value}test(d){if(a("Comparator.test",d,this.options.loose),this.semver===e||d===e)return!0;if(typeof d=="string")try{d=new l(d,this.options)}catch{return!1}return o(d,this.operator,this.semver,this.options)}intersects(d,c){if(!(d instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new s(d.value,c).test(this.value):d.operator===""?d.value===""?!0:new s(this.value,c).test(d.semver):(c=n(c),c.includePrerelease&&(this.value==="<0.0.0-0"||d.value==="<0.0.0-0")||!c.includePrerelease&&(this.value.startsWith("<0.0.0")||d.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&d.operator.startsWith(">")||this.operator.startsWith("<")&&d.operator.startsWith("<")||this.semver.version===d.semver.version&&this.operator.includes("=")&&d.operator.includes("=")||o(this.semver,"<",d.semver,c)&&this.operator.startsWith(">")&&d.operator.startsWith("<")||o(this.semver,">",d.semver,c)&&this.operator.startsWith("<")&&d.operator.startsWith(">")))}}Pd=t;const n=wg,{safeRe:i,t:r}=Rl,o=yN,a=Mc,l=gt,s=hn();return Pd}const dA=hn(),fA=(e,t,n)=>{try{t=new dA(t,n)}catch{return!1}return t.test(e)};var Vc=fA;const pA=hn(),mA=(e,t)=>new pA(e,t).set.map(n=>n.map(i=>i.value).join(" ").trim().split(" "));var hA=mA;const gA=gt,vA=hn(),yA=(e,t,n)=>{let i=null,r=null,o=null;try{o=new vA(t,n)}catch{return null}return e.forEach(a=>{o.test(a)&&(!i||r.compare(a)===-1)&&(i=a,r=new gA(i,n))}),i};var xA=yA;const bA=gt,kA=hn(),wA=(e,t,n)=>{let i=null,r=null,o=null;try{o=new kA(t,n)}catch{return null}return e.forEach(a=>{o.test(a)&&(!i||r.compare(a)===1)&&(i=a,r=new bA(i,n))}),i};var _A=wA;const Od=gt,$A=hn(),nx=Zc,SA=(e,t)=>{e=new $A(e,t);let n=new Od("0.0.0");if(e.test(n)||(n=new Od("0.0.0-0"),e.test(n)))return n;n=null;for(let i=0;i<e.set.length;++i){const r=e.set[i];let o=null;r.forEach(a=>{const l=new Od(a.semver.version);switch(a.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!o||nx(l,o))&&(o=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!n||nx(n,o))&&(n=o)}return n&&e.test(n)?n:null};var jA=SA;const NA=hn(),IA=(e,t)=>{try{return new NA(e,t).range||"*"}catch{return null}};var EA=IA;const CA=gt,xN=Bc(),{ANY:zA}=xN,PA=hn(),OA=Vc,rx=Zc,ix=$g,TA=jg,RA=Sg,AA=(e,t,n,i)=>{e=new CA(e,i),t=new PA(t,i);let r,o,a,l,s;switch(n){case">":r=rx,o=TA,a=ix,l=">",s=">=";break;case"<":r=ix,o=RA,a=rx,l="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(OA(e,t,i))return!1;for(let u=0;u<t.set.length;++u){const d=t.set[u];let c=null,p=null;if(d.forEach(m=>{m.semver===zA&&(m=new xN(">=0.0.0")),c=c||m,p=p||m,r(m.semver,c.semver,i)?c=m:a(m.semver,p.semver,i)&&(p=m)}),c.operator===l||c.operator===s||(!p.operator||p.operator===l)&&o(e,p.semver))return!1;if(p.operator===s&&a(e,p.semver))return!1}return!0};var Ng=AA;const DA=Ng,LA=(e,t,n)=>DA(e,t,">",n);var UA=LA;const FA=Ng,MA=(e,t,n)=>FA(e,t,"<",n);var ZA=MA;const ox=hn(),BA=(e,t,n)=>(e=new ox(e,n),t=new ox(t,n),e.intersects(t,n));var VA=BA;const HA=Vc,qA=mn;var WA=(e,t,n)=>{const i=[];let r=null,o=null;const a=e.sort((d,c)=>qA(d,c,n));for(const d of a)HA(d,t,n)?(o=d,r||(r=d)):(o&&i.push([r,o]),o=null,r=null);r&&i.push([r,null]);const l=[];for(const[d,c]of i)d===c?l.push(d):!c&&d===a[0]?l.push("*"):c?d===a[0]?l.push(`<=${c}`):l.push(`${d} - ${c}`):l.push(`>=${d}`);const s=l.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return s.length<u.length?s:t};const ax=hn(),Ig=Bc(),{ANY:Td}=Ig,aa=Vc,Eg=mn,GA=(e,t,n={})=>{if(e===t)return!0;e=new ax(e,n),t=new ax(t,n);let i=!1;e:for(const r of e.set){for(const o of t.set){const a=KA(r,o,n);if(i=i||a!==null,a)continue e}if(i)return!1}return!0},JA=[new Ig(">=0.0.0-0")],lx=[new Ig(">=0.0.0")],KA=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Td){if(t.length===1&&t[0].semver===Td)return!0;n.includePrerelease?e=JA:e=lx}if(t.length===1&&t[0].semver===Td){if(n.includePrerelease)return!0;t=lx}const i=new Set;let r,o;for(const m of e)m.operator===">"||m.operator===">="?r=sx(r,m,n):m.operator==="<"||m.operator==="<="?o=ux(o,m,n):i.add(m.semver);if(i.size>1)return null;let a;if(r&&o){if(a=Eg(r.semver,o.semver,n),a>0)return null;if(a===0&&(r.operator!==">="||o.operator!=="<="))return null}for(const m of i){if(r&&!aa(m,String(r),n)||o&&!aa(m,String(o),n))return null;for(const h of t)if(!aa(m,String(h),n))return!1;return!0}let l,s,u,d,c=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:!1,p=r&&!n.includePrerelease&&r.semver.prerelease.length?r.semver:!1;c&&c.prerelease.length===1&&o.operator==="<"&&c.prerelease[0]===0&&(c=!1);for(const m of t){if(d=d||m.operator===">"||m.operator===">=",u=u||m.operator==="<"||m.operator==="<=",r){if(p&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===p.major&&m.semver.minor===p.minor&&m.semver.patch===p.patch&&(p=!1),m.operator===">"||m.operator===">="){if(l=sx(r,m,n),l===m&&l!==r)return!1}else if(r.operator===">="&&!aa(r.semver,String(m),n))return!1}if(o){if(c&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===c.major&&m.semver.minor===c.minor&&m.semver.patch===c.patch&&(c=!1),m.operator==="<"||m.operator==="<="){if(s=ux(o,m,n),s===m&&s!==o)return!1}else if(o.operator==="<="&&!aa(o.semver,String(m),n))return!1}if(!m.operator&&(o||r)&&a!==0)return!1}return!(r&&u&&!o&&a!==0||o&&d&&!r&&a!==0||p||c)},sx=(e,t,n)=>{if(!e)return t;const i=Eg(e.semver,t.semver,n);return i>0?e:i<0||t.operator===">"&&e.operator===">="?t:e},ux=(e,t,n)=>{if(!e)return t;const i=Eg(e.semver,t.semver,n);return i<0?e:i>0||t.operator==="<"&&e.operator==="<="?t:e};var QA=GA;const Rd=Rl,cx=Fc,XA=gt,dx=hN,YA=Ho,eD=aR,tD=uR,nD=dR,rD=pR,iD=gR,oD=xR,aD=wR,lD=SR,sD=mn,uD=ER,cD=PR,dD=_g,fD=AR,pD=UR,mD=Zc,hD=$g,gD=gN,vD=vN,yD=Sg,xD=jg,bD=yN,kD=sA,wD=Bc(),_D=hn(),$D=Vc,SD=hA,jD=xA,ND=_A,ID=jA,ED=EA,CD=Ng,zD=UA,PD=ZA,OD=VA,TD=WA,RD=QA;var AD={parse:YA,valid:eD,clean:tD,inc:nD,diff:rD,major:iD,minor:oD,patch:aD,prerelease:lD,compare:sD,rcompare:uD,compareLoose:cD,compareBuild:dD,sort:fD,rsort:pD,gt:mD,lt:hD,eq:gD,neq:vD,gte:yD,lte:xD,cmp:bD,coerce:kD,Comparator:wD,Range:_D,satisfies:$D,toComparators:SD,maxSatisfying:jD,minSatisfying:ND,minVersion:ID,validRange:ED,outside:CD,gtr:zD,ltr:PD,intersects:OD,simplifyRange:TD,subset:RD,SemVer:XA,re:Rd.re,src:Rd.src,tokens:Rd.t,SEMVER_SPEC_VERSION:cx.SEMVER_SPEC_VERSION,RELEASE_TYPES:cx.RELEASE_TYPES,compareIdentifiers:dx.compareIdentifiers,rcompareIdentifiers:dx.rcompareIdentifiers};const Sn=$u(AD),DD="composer_proxy_admin_token";function LD(){return typeof window<"u"?localStorage.getItem(DD):null}function UD({distUrl:e}){const[t,n]=S.useState(!1),[i,r]=S.useState(null),o=async a=>{a.stopPropagation(),n(!0),r(null);try{const l=LD(),s={};l&&(s.Authorization=`Bearer ${l}`);const u=await fetch(e,{headers:s});if(!u.ok)throw new Error(`Download failed: ${u.status} ${u.statusText}`);const d=await u.blob(),c=window.URL.createObjectURL(d),p=document.createElement("a");p.href=c,p.download=e.split("/").pop()||"package.zip",document.body.appendChild(p),p.click(),document.body.removeChild(p),window.URL.revokeObjectURL(c)}catch(l){r(l instanceof Error?l.message:"Download failed")}finally{n(!1)}};return i?f.jsxs("div",{className:"flex flex-col items-end gap-1",children:[f.jsx("button",{onClick:o,className:"text-red-400 hover:text-red-300 text-sm","data-testid":"download-button",children:"Retry"}),f.jsx("span",{className:"text-xs text-red-500",children:i})]}):f.jsx("button",{onClick:o,disabled:t,className:"text-primary-400 hover:text-primary-300 text-sm disabled:opacity-50 disabled:cursor-not-allowed","data-testid":"download-button",children:t?"Downloading...":"Download"})}function FD(){const[e,t]=S.useState(""),[n,i]=S.useState(!1),{data:r=[],isLoading:o}=zt({queryKey:["packages",e],queryFn:()=>LP(e||void 0)}),a=r.reduce((l,s)=>(l[s.name]||(l[s.name]=[]),l[s.name].push(s),l),{});return f.jsxs("div",{className:"space-y-8","data-testid":"packages-page",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h2",{className:"font-display text-2xl font-bold text-slate-100 mb-2","data-testid":"packages-heading",children:"Packages"}),f.jsx("p",{className:"text-slate-400",children:"Browse cached packages"})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"w-72",children:f.jsx("input",{type:"text",value:e,onChange:l=>t(l.target.value),placeholder:"Search packages...",className:"input w-full","data-testid":"package-search-input","aria-label":"Search packages"})}),f.jsx("button",{onClick:()=>i(!0),className:"btn-primary","data-testid":"add-packages-button",children:"Add Package"})]})]}),n&&f.jsx(ZD,{onClose:()=>i(!1)}),f.jsx("div",{className:"space-y-4","data-testid":"packages-list",children:o?f.jsx("div",{className:"card p-8 text-center","data-testid":"packages-loading",children:f.jsx("div",{className:"w-8 h-8 border-2 border-slate-600 border-t-primary-500 rounded-full animate-spin mx-auto","aria-label":"Loading packages"})}):Object.keys(a).length===0?f.jsx("div",{className:"card p-8 text-center text-slate-400","data-testid":"packages-empty",role:"status","aria-live":"polite",children:"No packages found matching your search."}):Object.entries(a).map(([l,s])=>f.jsx(MD,{name:l,versions:s},l))})]})}function MD({name:e,versions:t}){const[n,i]=S.useState(!1),[r,o]=S.useState(!1),a=S.useMemo(()=>[...t].sort((p,m)=>{const h=/^\d+$/.test(p.version),g=/^\d+$/.test(m.version);if(h&&g){const k=parseInt(p.version,10);return parseInt(m.version,10)-k}if(h&&!g&&Sn.valid(m.version))return 1;if(!h&&g&&Sn.valid(p.version))return-1;const w=Sn.valid(p.version),v=Sn.valid(m.version);if(w&&v)return Sn.rcompare(p.version,m.version);if(w&&!v)return-1;if(!w&&v)return 1;const y=p.version.match(/^(\d+)/),x=m.version.match(/^(\d+)/);if(y&&x){const k=parseInt(y[1],10),I=parseInt(x[1],10);if(k!==I)return I-k}return m.version.localeCompare(p.version,void 0,{numeric:!0,sensitivity:"base"})}),[t]),l=a[0],s=r?a:a.slice(0,5),u=a.length>5,c=(p=>{if(!p)return[];try{const m=JSON.parse(p);return Array.isArray(m)?m:[m]}catch{return[p]}})(l.license);return f.jsxs("div",{className:"card","data-testid":"package-card","data-package-name":e,children:[f.jsxs("div",{className:"p-4 flex items-center justify-between cursor-pointer hover:bg-slate-800/30",onClick:()=>i(!n),role:"button","aria-expanded":n,"aria-label":`${e} package, ${t.length} versions`,"data-testid":"package-header",children:[f.jsxs("div",{className:"flex items-center gap-4 flex-1",children:[f.jsx("div",{className:"w-10 h-10 bg-gradient-to-br from-primary-500/20 to-accent-500/20 rounded-lg flex items-center justify-center",children:f.jsx(wi,{className:"w-5 h-5 text-primary-400"})}),f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[f.jsx(jo,{to:(()=>{const[p,...m]=e.split("/"),h=m.join("/");return`/packages/${p}/${h}`})(),onClick:p=>p.stopPropagation(),className:"font-medium text-slate-100 hover:text-primary-400 transition-colors",children:e}),l.package_type&&f.jsx("span",{className:"px-2 py-0.5 text-xs bg-slate-700 text-slate-300 rounded",children:l.package_type}),c.length>0&&f.jsx("span",{className:"px-2 py-0.5 text-xs bg-slate-700 text-slate-300 rounded",children:c[0]})]}),l.description&&f.jsx("p",{className:"text-sm text-slate-400 truncate mb-1",children:l.description}),f.jsxs("p",{className:"text-sm text-slate-500",children:[t.length," version",t.length!==1?"s":""," • Latest:"," ",f.jsx("span",{className:"text-primary-400",children:l.version})]})]})]}),f.jsx("span",{className:"text-slate-400","aria-hidden":"true","data-testid":"package-expand-toggle",children:n?"▼":"▶"})]}),n&&f.jsxs("div",{className:"border-t border-slate-800 p-4",role:"region","aria-label":`Versions for ${e}`,children:[f.jsx("h4",{className:"text-sm font-medium text-slate-400 mb-3",children:"Versions"}),f.jsx("div",{className:"space-y-2",role:"list",children:s.map(p=>f.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-800/50 rounded-lg","data-testid":"version-row","data-version":p.version,role:"listitem",children:[f.jsxs("div",{children:[f.jsx("span",{className:"font-medium text-slate-200",children:p.version}),p.released_at&&f.jsxs("span",{className:"text-sm text-slate-500 ml-2","aria-label":`Released ${new Date(p.released_at*1e3).toLocaleDateString()}`,children:["Released ",new Date(p.released_at*1e3).toLocaleDateString()]})]}),f.jsx(UD,{distUrl:p.dist_url})]},p.id))}),u&&!r&&f.jsx("button",{onClick:p=>{p.stopPropagation(),o(!0)},className:"mt-3 text-sm text-primary-400 hover:text-primary-300","data-testid":"show-all-versions-button","aria-label":"Show all versions",children:"Show all"})]})]})}function ZD({onClose:e}){const[t,n]=S.useState(""),[i,r]=S.useState(""),o=rr(),{data:a=[]}=zt({queryKey:["repositories"],queryFn:cw}),{data:l}=zt({queryKey:["settings"],queryFn:qu}),s=S.useMemo(()=>{const p=a.filter(m=>m.vcs_type==="composer"&&m.status==="active").filter(m=>!(l!=null&&l.packagist_mirroring_enabled&&m.url==="https://repo.packagist.org")).map(m=>({...m,displayName:m.url}));return l!=null&&l.packagist_mirroring_enabled&&p.unshift({id:"packagist",url:"https://repo.packagist.org",vcs_type:"composer",credential_type:"none",composer_json_path:null,package_filter:null,status:"active",error_message:null,last_synced_at:null,created_at:0,displayName:"Packagist.org"}),p},[a,l]);S.useMemo(()=>{s.length>0&&!i&&r(s[0].id)},[s,i]);const u=er({mutationFn:c=>VP(c.repositoryId,c.packageNames),onSuccess:()=>{o.invalidateQueries({queryKey:["packages"]}),e()}}),d=c=>{c.preventDefault();const p=t.split(/[,\s\n]+/).map(m=>m.trim()).filter(m=>m.length>0);p.length!==0&&i&&u.mutate({repositoryId:i,packageNames:p})};return f.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50",children:f.jsxs("div",{className:"card max-w-2xl w-full mx-4 p-6 max-h-[90vh] overflow-y-auto",children:[f.jsxs("div",{className:"flex items-center justify-between mb-6",children:[f.jsx("h3",{className:"font-display text-xl font-bold text-slate-100",children:"Add Mirrored Package(s)"}),f.jsx("button",{onClick:e,className:"text-slate-400 hover:text-slate-200",children:f.jsx(_i,{className:"w-4 h-4"})})]}),f.jsxs("form",{onSubmit:d,className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"label",children:"Package name(s), separated by comma, spaces or newlines"}),f.jsx("textarea",{value:t,onChange:c=>n(c.target.value),placeholder:`vendor/package1
196
+ vendor/package2
197
+ vendor/package3`,className:"input w-full min-h-[120px] resize-y font-mono text-sm",required:!0})]}),f.jsxs("div",{children:[f.jsx("label",{className:"label",children:"Mirrored Repository"}),f.jsx("select",{value:i,onChange:c=>r(c.target.value),className:"input w-full",required:!0,children:s.length===0?f.jsx("option",{value:"",children:"No repositories available"}):s.map(c=>f.jsx("option",{value:c.id,children:c.displayName},c.id))}),f.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"You can set up mirrored third party repositories on the settings page."})]}),u.error&&f.jsx("div",{className:"bg-red-500/10 border border-red-500/50 rounded-lg p-3",children:f.jsx("p",{className:"text-red-400 text-sm",children:u.error.message})}),u.data&&f.jsxs("div",{className:"bg-slate-800/50 rounded-lg p-4",children:[f.jsx("p",{className:"text-slate-200 text-sm mb-2",children:u.data.message}),f.jsx("div",{className:"space-y-1 text-xs",children:u.data.results.map((c,p)=>f.jsxs("div",{className:c.success?"text-green-400":"text-red-400",children:[c.package,": ",c.success?`✓ ${c.versions} version(s) stored`:`✗ ${c.error}`]},p))})]}),f.jsxs("div",{className:"flex justify-end gap-3 pt-4",children:[f.jsx("button",{type:"button",onClick:e,className:"btn-secondary",children:"Cancel"}),f.jsx("button",{type:"submit",className:"btn-primary",disabled:u.isPending||s.length===0,children:u.isPending?"Adding...":"Add"})]})]})]})})}function BD(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const VD=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,HD=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qD={};function fx(e,t){return(qD.jsx?HD:VD).test(e)}const WD=/[ \t\n\f\r]/g;function GD(e){return typeof e=="object"?e.type==="text"?px(e.value):!1:px(e)}function px(e){return e.replace(WD,"")===""}class Al{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}Al.prototype.normal={};Al.prototype.property={};Al.prototype.space=void 0;function bN(e,t){const n={},i={};for(const r of e)Object.assign(n,r.property),Object.assign(i,r.normal);return new Al(n,i,t)}function yp(e){return e.toLowerCase()}class jt{constructor(t,n){this.attribute=n,this.property=t}}jt.prototype.attribute="";jt.prototype.booleanish=!1;jt.prototype.boolean=!1;jt.prototype.commaOrSpaceSeparated=!1;jt.prototype.commaSeparated=!1;jt.prototype.defined=!1;jt.prototype.mustUseProperty=!1;jt.prototype.number=!1;jt.prototype.overloadedBoolean=!1;jt.prototype.property="";jt.prototype.spaceSeparated=!1;jt.prototype.space=void 0;let JD=0;const oe=Pi(),Fe=Pi(),xp=Pi(),M=Pi(),Se=Pi(),oo=Pi(),It=Pi();function Pi(){return 2**++JD}const bp=Object.freeze(Object.defineProperty({__proto__:null,boolean:oe,booleanish:Fe,commaOrSpaceSeparated:It,commaSeparated:oo,number:M,overloadedBoolean:xp,spaceSeparated:Se},Symbol.toStringTag,{value:"Module"})),Ad=Object.keys(bp);class Cg extends jt{constructor(t,n,i,r){let o=-1;if(super(t,n),mx(this,"space",r),typeof i=="number")for(;++o<Ad.length;){const a=Ad[o];mx(this,Ad[o],(i&bp[a])===bp[a])}}}Cg.prototype.defined=!0;function mx(e,t,n){n&&(e[t]=n)}function qo(e){const t={},n={};for(const[i,r]of Object.entries(e.properties)){const o=new Cg(i,e.transform(e.attributes||{},i),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(o.mustUseProperty=!0),t[i]=o,n[yp(i)]=i,n[yp(o.attribute)]=i}return new Al(t,n,e.space)}const kN=qo({properties:{ariaActiveDescendant:null,ariaAtomic:Fe,ariaAutoComplete:null,ariaBusy:Fe,ariaChecked:Fe,ariaColCount:M,ariaColIndex:M,ariaColSpan:M,ariaControls:Se,ariaCurrent:null,ariaDescribedBy:Se,ariaDetails:null,ariaDisabled:Fe,ariaDropEffect:Se,ariaErrorMessage:null,ariaExpanded:Fe,ariaFlowTo:Se,ariaGrabbed:Fe,ariaHasPopup:null,ariaHidden:Fe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Se,ariaLevel:M,ariaLive:null,ariaModal:Fe,ariaMultiLine:Fe,ariaMultiSelectable:Fe,ariaOrientation:null,ariaOwns:Se,ariaPlaceholder:null,ariaPosInSet:M,ariaPressed:Fe,ariaReadOnly:Fe,ariaRelevant:null,ariaRequired:Fe,ariaRoleDescription:Se,ariaRowCount:M,ariaRowIndex:M,ariaRowSpan:M,ariaSelected:Fe,ariaSetSize:M,ariaSort:null,ariaValueMax:M,ariaValueMin:M,ariaValueNow:M,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function wN(e,t){return t in e?e[t]:t}function _N(e,t){return wN(e,t.toLowerCase())}const KD=qo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:oo,acceptCharset:Se,accessKey:Se,action:null,allow:null,allowFullScreen:oe,allowPaymentRequest:oe,allowUserMedia:oe,alt:null,as:null,async:oe,autoCapitalize:null,autoComplete:Se,autoFocus:oe,autoPlay:oe,blocking:Se,capture:null,charSet:null,checked:oe,cite:null,className:Se,cols:M,colSpan:null,content:null,contentEditable:Fe,controls:oe,controlsList:Se,coords:M|oo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:oe,defer:oe,dir:null,dirName:null,disabled:oe,download:xp,draggable:Fe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:oe,formTarget:null,headers:Se,height:M,hidden:xp,high:M,href:null,hrefLang:null,htmlFor:Se,httpEquiv:Se,id:null,imageSizes:null,imageSrcSet:null,inert:oe,inputMode:null,integrity:null,is:null,isMap:oe,itemId:null,itemProp:Se,itemRef:Se,itemScope:oe,itemType:Se,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:oe,low:M,manifest:null,max:null,maxLength:M,media:null,method:null,min:null,minLength:M,multiple:oe,muted:oe,name:null,nonce:null,noModule:oe,noValidate:oe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:oe,optimum:M,pattern:null,ping:Se,placeholder:null,playsInline:oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:oe,referrerPolicy:null,rel:Se,required:oe,reversed:oe,rows:M,rowSpan:M,sandbox:Se,scope:null,scoped:oe,seamless:oe,selected:oe,shadowRootClonable:oe,shadowRootDelegatesFocus:oe,shadowRootMode:null,shape:null,size:M,sizes:null,slot:null,span:M,spellCheck:Fe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:M,step:null,style:null,tabIndex:M,target:null,title:null,translate:null,type:null,typeMustMatch:oe,useMap:null,value:Fe,width:M,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Se,axis:null,background:null,bgColor:null,border:M,borderColor:null,bottomMargin:M,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:oe,declare:oe,event:null,face:null,frame:null,frameBorder:null,hSpace:M,leftMargin:M,link:null,longDesc:null,lowSrc:null,marginHeight:M,marginWidth:M,noResize:oe,noHref:oe,noShade:oe,noWrap:oe,object:null,profile:null,prompt:null,rev:null,rightMargin:M,rules:null,scheme:null,scrolling:Fe,standby:null,summary:null,text:null,topMargin:M,valueType:null,version:null,vAlign:null,vLink:null,vSpace:M,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:oe,disableRemotePlayback:oe,prefix:null,property:null,results:M,security:null,unselectable:null},space:"html",transform:_N}),QD=qo({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:It,accentHeight:M,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:M,amplitude:M,arabicForm:null,ascent:M,attributeName:null,attributeType:null,azimuth:M,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:M,by:null,calcMode:null,capHeight:M,className:Se,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:M,diffuseConstant:M,direction:null,display:null,dur:null,divisor:M,dominantBaseline:null,download:oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:M,enableBackground:null,end:null,event:null,exponent:M,externalResourcesRequired:null,fill:null,fillOpacity:M,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:oo,g2:oo,glyphName:oo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:M,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:M,horizOriginX:M,horizOriginY:M,id:null,ideographic:M,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:M,k:M,k1:M,k2:M,k3:M,k4:M,kernelMatrix:It,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:M,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:M,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:M,overlineThickness:M,paintOrder:null,panose1:null,path:null,pathLength:M,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Se,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:M,pointsAtY:M,pointsAtZ:M,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:It,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:It,rev:It,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:It,requiredFeatures:It,requiredFonts:It,requiredFormats:It,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:M,specularExponent:M,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:M,strikethroughThickness:M,string:null,stroke:null,strokeDashArray:It,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:M,strokeOpacity:M,strokeWidth:null,style:null,surfaceScale:M,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:It,tabIndex:M,tableValues:null,target:null,targetX:M,targetY:M,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:It,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:M,underlineThickness:M,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:M,values:null,vAlphabetic:M,vMathematical:M,vectorEffect:null,vHanging:M,vIdeographic:M,version:null,vertAdvY:M,vertOriginX:M,vertOriginY:M,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:M,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:wN}),$N=qo({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),SN=qo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:_N}),jN=qo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),XD={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},YD=/[A-Z]/g,hx=/-[a-z]/g,eL=/^data[-\w.:]+$/i;function tL(e,t){const n=yp(t);let i=t,r=jt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&eL.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(hx,rL);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!hx.test(o)){let a=o.replace(YD,nL);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}r=Cg}return new r(i,t)}function nL(e){return"-"+e.toLowerCase()}function rL(e){return e.charAt(1).toUpperCase()}const iL=bN([kN,KD,$N,SN,jN],"html"),zg=bN([kN,QD,$N,SN,jN],"svg");function oL(e){return e.join(" ").trim()}var Pg={},gx=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,aL=/\n/g,lL=/^\s*/,sL=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,uL=/^:\s*/,cL=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,dL=/^[;\s]*/,fL=/^\s+|\s+$/g,pL=`
198
+ `,vx="/",yx="*",Qr="",mL="comment",hL="declaration";function gL(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,i=1;function r(h){var g=h.match(aL);g&&(n+=g.length);var w=h.lastIndexOf(pL);i=~w?h.length-w:i+h.length}function o(){var h={line:n,column:i};return function(g){return g.position=new a(h),u(),g}}function a(h){this.start=h,this.end={line:n,column:i},this.source=t.source}a.prototype.content=e;function l(h){var g=new Error(t.source+":"+n+":"+i+": "+h);if(g.reason=h,g.filename=t.source,g.line=n,g.column=i,g.source=e,!t.silent)throw g}function s(h){var g=h.exec(e);if(g){var w=g[0];return r(w),e=e.slice(w.length),g}}function u(){s(lL)}function d(h){var g;for(h=h||[];g=c();)g!==!1&&h.push(g);return h}function c(){var h=o();if(!(vx!=e.charAt(0)||yx!=e.charAt(1))){for(var g=2;Qr!=e.charAt(g)&&(yx!=e.charAt(g)||vx!=e.charAt(g+1));)++g;if(g+=2,Qr===e.charAt(g-1))return l("End of comment missing");var w=e.slice(2,g-2);return i+=2,r(w),e=e.slice(g),i+=2,h({type:mL,comment:w})}}function p(){var h=o(),g=s(sL);if(g){if(c(),!s(uL))return l("property missing ':'");var w=s(cL),v=h({type:hL,property:xx(g[0].replace(gx,Qr)),value:w?xx(w[0].replace(gx,Qr)):Qr});return s(dL),v}}function m(){var h=[];d(h);for(var g;g=p();)g!==!1&&(h.push(g),d(h));return h}return u(),m()}function xx(e){return e?e.replace(fL,Qr):Qr}var vL=gL,yL=Ds&&Ds.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pg,"__esModule",{value:!0});Pg.default=bL;const xL=yL(vL);function bL(e,t){let n=null;if(!e||typeof e!="string")return n;const i=(0,xL.default)(e),r=typeof t=="function";return i.forEach(o=>{if(o.type!=="declaration")return;const{property:a,value:l}=o;r?t(a,l,o):l&&(n=n||{},n[a]=l)}),n}var Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});Hc.camelCase=void 0;var kL=/^--[a-zA-Z0-9_-]+$/,wL=/-([a-z])/g,_L=/^[^-]+$/,$L=/^-(webkit|moz|ms|o|khtml)-/,SL=/^-(ms)-/,jL=function(e){return!e||_L.test(e)||kL.test(e)},NL=function(e,t){return t.toUpperCase()},bx=function(e,t){return"".concat(t,"-")},IL=function(e,t){return t===void 0&&(t={}),jL(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(SL,bx):e=e.replace($L,bx),e.replace(wL,NL))};Hc.camelCase=IL;var EL=Ds&&Ds.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},CL=EL(Pg),zL=Hc;function kp(e,t){var n={};return!e||typeof e!="string"||(0,CL.default)(e,function(i,r){i&&r&&(n[(0,zL.camelCase)(i,t)]=r)}),n}kp.default=kp;var PL=kp;const OL=$u(PL),NN=IN("end"),Og=IN("start");function IN(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function TL(e){const t=Og(e),n=NN(e);if(t&&n)return{start:t,end:n}}function Sa(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?kx(e.position):"start"in e||"end"in e?kx(e):"line"in e||"column"in e?wp(e):""}function wp(e){return wx(e&&e.line)+":"+wx(e&&e.column)}function kx(e){return wp(e&&e.start)+"-"+wp(e&&e.end)}function wx(e){return e&&typeof e=="number"?e:1}class at extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let r="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?r=t:!o.cause&&t&&(a=!0,r=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof i=="string"){const s=i.indexOf(":");s===-1?o.ruleId=i:(o.source=i.slice(0,s),o.ruleId=i.slice(s+1))}if(!o.place&&o.ancestors&&o.ancestors){const s=o.ancestors[o.ancestors.length-1];s&&(o.place=s.position)}const l=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=Sa(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}at.prototype.file="";at.prototype.name="";at.prototype.reason="";at.prototype.message="";at.prototype.stack="";at.prototype.column=void 0;at.prototype.line=void 0;at.prototype.ancestors=void 0;at.prototype.cause=void 0;at.prototype.fatal=void 0;at.prototype.place=void 0;at.prototype.ruleId=void 0;at.prototype.source=void 0;const Tg={}.hasOwnProperty,RL=new Map,AL=/[A-Z]/g,DL=new Set(["table","tbody","thead","tfoot","tr"]),LL=new Set(["td","th"]),EN="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function UL(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=WL(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=qL(n,t.jsx,t.jsxs)}const r={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?zg:iL,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=CN(r,e,void 0);return o&&typeof o!="string"?o:r.create(e,r.Fragment,{children:o||void 0},void 0)}function CN(e,t,n){if(t.type==="element")return FL(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return ML(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return BL(e,t,n);if(t.type==="mdxjsEsm")return ZL(e,t);if(t.type==="root")return VL(e,t,n);if(t.type==="text")return HL(e,t)}function FL(e,t,n){const i=e.schema;let r=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(r=zg,e.schema=r),e.ancestors.push(t);const o=PN(e,t.tagName,!1),a=GL(e,t);let l=Ag(e,t);return DL.has(t.tagName)&&(l=l.filter(function(s){return typeof s=="string"?!GD(s):!0})),zN(e,a,o,t),Rg(a,l),e.ancestors.pop(),e.schema=i,e.create(t,o,a,n)}function ML(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Xa(e,t.position)}function ZL(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Xa(e,t.position)}function BL(e,t,n){const i=e.schema;let r=i;t.name==="svg"&&i.space==="html"&&(r=zg,e.schema=r),e.ancestors.push(t);const o=t.name===null?e.Fragment:PN(e,t.name,!0),a=JL(e,t),l=Ag(e,t);return zN(e,a,o,t),Rg(a,l),e.ancestors.pop(),e.schema=i,e.create(t,o,a,n)}function VL(e,t,n){const i={};return Rg(i,Ag(e,t)),e.create(t,e.Fragment,i,n)}function HL(e,t){return t.value}function zN(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function Rg(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function qL(e,t,n){return i;function i(r,o,a,l){const u=Array.isArray(a.children)?n:t;return l?u(o,a,l):u(o,a)}}function WL(e,t){return n;function n(i,r,o,a){const l=Array.isArray(o.children),s=Og(i);return t(r,o,a,l,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function GL(e,t){const n={};let i,r;for(r in t.properties)if(r!=="children"&&Tg.call(t.properties,r)){const o=KL(e,r,t.properties[r]);if(o){const[a,l]=o;e.tableCellAlignToStyle&&a==="align"&&typeof l=="string"&&LL.has(t.tagName)?i=l:n[a]=l}}if(i){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function JL(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const o=i.data.estree.body[0];o.type;const a=o.expression;a.type;const l=a.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else Xa(e,t.position);else{const r=i.name;let o;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const l=i.value.data.estree.body[0];l.type,o=e.evaluater.evaluateExpression(l.expression)}else Xa(e,t.position);else o=i.value===null?!0:i.value;n[r]=o}return n}function Ag(e,t){const n=[];let i=-1;const r=e.passKeys?new Map:RL;for(;++i<t.children.length;){const o=t.children[i];let a;if(e.passKeys){const s=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(s){const u=r.get(s)||0;a=s+"-"+u,r.set(s,u+1)}}const l=CN(e,o,a);l!==void 0&&n.push(l)}return n}function KL(e,t,n){const i=tL(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?BD(n):oL(n)),i.property==="style"){let r=typeof n=="object"?n:QL(e,String(n));return e.stylePropertyNameCase==="css"&&(r=XL(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&i.space?XD[i.property]||i.property:i.attribute,n]}}function QL(e,t){try{return OL(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,r=new at("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=EN+"#cannot-parse-style-attribute",r}}function PN(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const r=t.split(".");let o=-1,a;for(;++o<r.length;){const l=fx(r[o])?{type:"Identifier",name:r[o]}:{type:"Literal",value:r[o]};a=a?{type:"MemberExpression",object:a,property:l,computed:!!(o&&l.type==="Literal"),optional:!1}:l}i=a}else i=fx(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const r=i.value;return Tg.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(i);Xa(e)}function Xa(e,t){const n=new at("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=EN+"#cannot-handle-mdx-estrees-without-createevaluater",n}function XL(e){const t={};let n;for(n in e)Tg.call(e,n)&&(t[YL(n)]=e[n]);return t}function YL(e){let t=e.replace(AL,eU);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function eU(e){return"-"+e.toLowerCase()}const Dd={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},tU={};function Dg(e,t){const n=tU,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return ON(e,i,r)}function ON(e,t,n){if(nU(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return _x(e.children,t,n)}return Array.isArray(e)?_x(e,t,n):""}function _x(e,t,n){const i=[];let r=-1;for(;++r<e.length;)i[r]=ON(e[r],t,n);return i.join("")}function nU(e){return!!(e&&typeof e=="object")}const $x=document.createElement("i");function Lg(e){const t="&"+e+";";$x.innerHTML=t;const n=$x.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Ot(e,t,n,i){const r=e.length;let o=0,a;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,n=n>0?n:0,i.length<1e4)a=Array.from(i),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<i.length;)a=i.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function Bt(e,t){return e.length>0?(Ot(e,e.length,0,t),e):t}const Sx={}.hasOwnProperty;function TN(e){const t={};let n=-1;for(;++n<e.length;)rU(t,e[n]);return t}function rU(e,t){let n;for(n in t){const r=(Sx.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){Sx.call(r,a)||(r[a]=[]);const l=o[a];iU(r[a],Array.isArray(l)?l:l?[l]:[])}}}function iU(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);Ot(e,0,0,i)}function RN(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function cn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ft=qr(/[A-Za-z]/),rt=qr(/[\dA-Za-z]/),oU=qr(/[#-'*+\--9=?A-Z^-~]/);function bu(e){return e!==null&&(e<32||e===127)}const _p=qr(/\d/),aU=qr(/[\dA-Fa-f]/),lU=qr(/[!-/:-@[-`{-~]/);function Y(e){return e!==null&&e<-2}function ke(e){return e!==null&&(e<0||e===32)}function se(e){return e===-2||e===-1||e===32}const qc=qr(new RegExp("\\p{P}|\\p{S}","u")),Ni=qr(/\s/);function qr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Wo(e){const t=[];let n=-1,i=0,r=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&rt(e.charCodeAt(n+1))&&rt(e.charCodeAt(n+2)))r=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const l=e.charCodeAt(n+1);o<56320&&l>56319&&l<57344?(a=String.fromCharCode(o,l),r=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(i,n),encodeURIComponent(a)),i=n+r+1,a=""),r&&(n+=r,r=0)}return t.join("")+e.slice(i)}function pe(e,t,n,i){const r=i?i-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(s){return se(s)?(e.enter(n),l(s)):t(s)}function l(s){return se(s)&&o++<r?(e.consume(s),l):(e.exit(n),t(s))}}const sU={tokenize:uU};function uU(e){const t=e.attempt(this.parser.constructs.contentInitial,i,r);let n;return t;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),pe(e,t,"linePrefix")}function r(l){return e.enter("paragraph"),o(l)}function o(l){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,a(l)}function a(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return Y(l)?(e.consume(l),e.exit("chunkText"),o):(e.consume(l),a)}}const cU={tokenize:dU},jx={tokenize:fU};function dU(e){const t=this,n=[];let i=0,r,o,a;return l;function l(x){if(i<n.length){const k=n[i];return t.containerState=k[1],e.attempt(k[0].continuation,s,u)(x)}return u(x)}function s(x){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const k=t.events.length;let I=k,N;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){N=t.events[I][1].end;break}v(i);let P=k;for(;P<t.events.length;)t.events[P][1].end={...N},P++;return Ot(t.events,I+1,0,t.events.slice(k)),t.events.length=P,u(x)}return l(x)}function u(x){if(i===n.length){if(!r)return p(x);if(r.currentConstruct&&r.currentConstruct.concrete)return h(x);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(jx,d,c)(x)}function d(x){return r&&y(),v(i),p(x)}function c(x){return t.parser.lazy[t.now().line]=i!==n.length,a=t.now().offset,h(x)}function p(x){return t.containerState={},e.attempt(jx,m,h)(x)}function m(x){return i++,n.push([t.currentConstruct,t.containerState]),p(x)}function h(x){if(x===null){r&&y(),v(0),e.consume(x);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),g(x)}function g(x){if(x===null){w(e.exit("chunkFlow"),!0),v(0),e.consume(x);return}return Y(x)?(e.consume(x),w(e.exit("chunkFlow")),i=0,t.interrupt=void 0,l):(e.consume(x),g)}function w(x,k){const I=t.sliceStream(x);if(k&&I.push(null),x.previous=o,o&&(o.next=x),o=x,r.defineSkip(x.start),r.write(I),t.parser.lazy[x.start.line]){let N=r.events.length;for(;N--;)if(r.events[N][1].start.offset<a&&(!r.events[N][1].end||r.events[N][1].end.offset>a))return;const P=t.events.length;let A=P,R,_;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){if(R){_=t.events[A][1].end;break}R=!0}for(v(i),N=P;N<t.events.length;)t.events[N][1].end={..._},N++;Ot(t.events,A+1,0,t.events.slice(P)),t.events.length=N}}function v(x){let k=n.length;for(;k-- >x;){const I=n[k];t.containerState=I[1],I[0].exit.call(t,e)}n.length=x}function y(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}function fU(e,t,n){return pe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ao(e){if(e===null||ke(e)||Ni(e))return 1;if(qc(e))return 2}function Wc(e,t,n){const i=[];let r=-1;for(;++r<e.length;){const o=e[r].resolveAll;o&&!i.includes(o)&&(t=o(t,n),i.push(o))}return t}const $p={name:"attention",resolveAll:pU,tokenize:mU};function pU(e,t){let n=-1,i,r,o,a,l,s,u,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[i][1].end},p={...e[n][1].start};Nx(c,-s),Nx(p,s),a={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[i][1].end}},l={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},o={type:s>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},r={type:s>1?"strong":"emphasis",start:{...a.start},end:{...l.end}},e[i][1].end={...a.start},e[n][1].start={...l.end},u=[],e[i][1].end.offset-e[i][1].start.offset&&(u=Bt(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=Bt(u,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=Bt(u,Wc(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),u=Bt(u,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=Bt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Ot(e,i-1,n-i+3,u),n=i+u.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function mU(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,r=Ao(i);let o;return a;function a(s){return o=s,e.enter("attentionSequence"),l(s)}function l(s){if(s===o)return e.consume(s),l;const u=e.exit("attentionSequence"),d=Ao(s),c=!d||d===2&&r||n.includes(s),p=!r||r===2&&d||n.includes(i);return u._open=!!(o===42?c:c&&(r||!p)),u._close=!!(o===42?p:p&&(d||!c)),t(s)}}function Nx(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const hU={name:"autolink",tokenize:gU};function gU(e,t,n){let i=0;return r;function r(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(m){return ft(m)?(e.consume(m),a):m===64?n(m):u(m)}function a(m){return m===43||m===45||m===46||rt(m)?(i=1,l(m)):u(m)}function l(m){return m===58?(e.consume(m),i=0,s):(m===43||m===45||m===46||rt(m))&&i++<32?(e.consume(m),l):(i=0,u(m))}function s(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||bu(m)?n(m):(e.consume(m),s)}function u(m){return m===64?(e.consume(m),d):oU(m)?(e.consume(m),u):n(m)}function d(m){return rt(m)?c(m):n(m)}function c(m){return m===46?(e.consume(m),i=0,d):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):p(m)}function p(m){if((m===45||rt(m))&&i++<63){const h=m===45?p:c;return e.consume(m),h}return n(m)}}const Dl={partial:!0,tokenize:vU};function vU(e,t,n){return i;function i(o){return se(o)?pe(e,r,"linePrefix")(o):r(o)}function r(o){return o===null||Y(o)?t(o):n(o)}}const AN={continuation:{tokenize:xU},exit:bU,name:"blockQuote",tokenize:yU};function yU(e,t,n){const i=this;return r;function r(a){if(a===62){const l=i.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return se(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function xU(e,t,n){const i=this;return r;function r(a){return se(a)?pe(e,o,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(AN,t,n)(a)}}function bU(e){e.exit("blockQuote")}const DN={name:"characterEscape",tokenize:kU};function kU(e,t,n){return i;function i(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),r}function r(o){return lU(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const LN={name:"characterReference",tokenize:wU};function wU(e,t,n){const i=this;let r=0,o,a;return l;function l(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,a=rt,d(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=aU,d):(e.enter("characterReferenceValue"),o=7,a=_p,d(c))}function d(c){if(c===59&&r){const p=e.exit("characterReferenceValue");return a===rt&&!Lg(i.sliceSerialize(p))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(c)&&r++<o?(e.consume(c),d):n(c)}}const Ix={partial:!0,tokenize:$U},Ex={concrete:!0,name:"codeFenced",tokenize:_U};function _U(e,t,n){const i=this,r={partial:!0,tokenize:I};let o=0,a=0,l;return s;function s(N){return u(N)}function u(N){const P=i.events[i.events.length-1];return o=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,l=N,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(N)}function d(N){return N===l?(a++,e.consume(N),d):a<3?n(N):(e.exit("codeFencedFenceSequence"),se(N)?pe(e,c,"whitespace")(N):c(N))}function c(N){return N===null||Y(N)?(e.exit("codeFencedFence"),i.interrupt?t(N):e.check(Ix,g,k)(N)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(N))}function p(N){return N===null||Y(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(N)):se(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),pe(e,m,"whitespace")(N)):N===96&&N===l?n(N):(e.consume(N),p)}function m(N){return N===null||Y(N)?c(N):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(N))}function h(N){return N===null||Y(N)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(N)):N===96&&N===l?n(N):(e.consume(N),h)}function g(N){return e.attempt(r,k,w)(N)}function w(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),v}function v(N){return o>0&&se(N)?pe(e,y,"linePrefix",o+1)(N):y(N)}function y(N){return N===null||Y(N)?e.check(Ix,g,k)(N):(e.enter("codeFlowValue"),x(N))}function x(N){return N===null||Y(N)?(e.exit("codeFlowValue"),y(N)):(e.consume(N),x)}function k(N){return e.exit("codeFenced"),t(N)}function I(N,P,A){let R=0;return _;function _(O){return N.enter("lineEnding"),N.consume(O),N.exit("lineEnding"),L}function L(O){return N.enter("codeFencedFence"),se(O)?pe(N,B,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):B(O)}function B(O){return O===l?(N.enter("codeFencedFenceSequence"),te(O)):A(O)}function te(O){return O===l?(R++,N.consume(O),te):R>=a?(N.exit("codeFencedFenceSequence"),se(O)?pe(N,U,"whitespace")(O):U(O)):A(O)}function U(O){return O===null||Y(O)?(N.exit("codeFencedFence"),P(O)):A(O)}}}function $U(e,t,n){const i=this;return r;function r(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return i.parser.lazy[i.now().line]?n(a):t(a)}}const Ld={name:"codeIndented",tokenize:jU},SU={partial:!0,tokenize:NU};function jU(e,t,n){const i=this;return r;function r(u){return e.enter("codeIndented"),pe(e,o,"linePrefix",5)(u)}function o(u){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?s(u):Y(u)?e.attempt(SU,a,s)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||Y(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),l)}function s(u){return e.exit("codeIndented"),t(u)}}function NU(e,t,n){const i=this;return r;function r(a){return i.parser.lazy[i.now().line]?n(a):Y(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r):pe(e,o,"linePrefix",5)(a)}function o(a){const l=i.events[i.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(a):Y(a)?r(a):n(a)}}const IU={name:"codeText",previous:CU,resolve:EU,tokenize:zU};function EU(e){let t=e.length-4,n=3,i,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)r===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(r=i):(i===t||e[i][1].type==="lineEnding")&&(e[r][1].type="codeTextData",i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),t-=i-r-2,i=r+2),r=void 0);return e}function CU(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function zU(e,t,n){let i=0,r,o;return a;function a(c){return e.enter("codeText"),e.enter("codeTextSequence"),l(c)}function l(c){return c===96?(e.consume(c),i++,l):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(o=e.enter("codeTextSequence"),r=0,d(c)):Y(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||Y(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),u)}function d(c){return c===96?(e.consume(c),r++,d):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",u(c))}}class PU{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const r=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&la(this.left,i),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),la(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),la(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);la(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);la(this.left,n.reverse())}}}function la(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function UN(e){const t={};let n=-1,i,r,o,a,l,s,u;const d=new PU(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(i=d.get(n),n&&i[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(s=i[1]._tokenizer.events,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,OU(d,n)),n=t[n],u=!0);else if(i[1]._container){for(o=n,r=void 0;o--;)if(a=d.get(o),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(r&&(d.get(r)[1].type="lineEndingBlank"),a[1].type="lineEnding",r=o);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;r&&(i[1].end={...d.get(r)[1].start},l=d.slice(r,n),l.unshift(i),d.splice(r,n-r+1,l))}}return Ot(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function OU(e,t){const n=e.get(t)[1],i=e.get(t)[2];let r=t-1;const o=[];let a=n._tokenizer;a||(a=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const l=a.events,s=[],u={};let d,c,p=-1,m=n,h=0,g=0;const w=[g];for(;m;){for(;e.get(++r)[1]!==m;);o.push(r),m._tokenizer||(d=i.sliceStream(m),m.next||d.push(null),c&&a.defineSkip(m.start),m._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(d),m._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),c=m,m=m.next}for(m=n;++p<l.length;)l[p][0]==="exit"&&l[p-1][0]==="enter"&&l[p][1].type===l[p-1][1].type&&l[p][1].start.line!==l[p][1].end.line&&(g=p+1,w.push(g),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(a.events=[],m?(m._tokenizer=void 0,m.previous=void 0):w.pop(),p=w.length;p--;){const v=l.slice(w[p],w[p+1]),y=o.pop();s.push([y,y+v.length-1]),e.splice(y,2,v)}for(s.reverse(),p=-1;++p<s.length;)u[h+s[p][0]]=h+s[p][1],h+=s[p][1]-s[p][0]-1;return u}const TU={resolve:AU,tokenize:DU},RU={partial:!0,tokenize:LU};function AU(e){return UN(e),e}function DU(e,t){let n;return i;function i(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(l)}function r(l){return l===null?o(l):Y(l)?e.check(RU,a,o)(l):(e.consume(l),r)}function o(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function a(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function LU(e,t,n){const i=this;return r;function r(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),pe(e,o,"linePrefix")}function o(a){if(a===null||Y(a))return n(a);const l=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(a):e.interrupt(i.parser.constructs.flow,n,t)(a)}}function FN(e,t,n,i,r,o,a,l,s){const u=s||Number.POSITIVE_INFINITY;let d=0;return c;function c(v){return v===60?(e.enter(i),e.enter(r),e.enter(o),e.consume(v),e.exit(o),p):v===null||v===32||v===41||bu(v)?n(v):(e.enter(i),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),g(v))}function p(v){return v===62?(e.enter(o),e.consume(v),e.exit(o),e.exit(r),e.exit(i),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),m(v))}function m(v){return v===62?(e.exit("chunkString"),e.exit(l),p(v)):v===null||v===60||Y(v)?n(v):(e.consume(v),v===92?h:m)}function h(v){return v===60||v===62||v===92?(e.consume(v),m):m(v)}function g(v){return!d&&(v===null||v===41||ke(v))?(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(i),t(v)):d<u&&v===40?(e.consume(v),d++,g):v===41?(e.consume(v),d--,g):v===null||v===32||v===40||bu(v)?n(v):(e.consume(v),v===92?w:g)}function w(v){return v===40||v===41||v===92?(e.consume(v),g):g(v)}}function MN(e,t,n,i,r,o){const a=this;let l=0,s;return u;function u(m){return e.enter(i),e.enter(r),e.consume(m),e.exit(r),e.enter(o),d}function d(m){return l>999||m===null||m===91||m===93&&!s||m===94&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(m):m===93?(e.exit(o),e.enter(r),e.consume(m),e.exit(r),e.exit(i),t):Y(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),c(m))}function c(m){return m===null||m===91||m===93||Y(m)||l++>999?(e.exit("chunkString"),d(m)):(e.consume(m),s||(s=!se(m)),m===92?p:c)}function p(m){return m===91||m===92||m===93?(e.consume(m),l++,c):c(m)}}function ZN(e,t,n,i,r,o){let a;return l;function l(p){return p===34||p===39||p===40?(e.enter(i),e.enter(r),e.consume(p),e.exit(r),a=p===40?41:p,s):n(p)}function s(p){return p===a?(e.enter(r),e.consume(p),e.exit(r),e.exit(i),t):(e.enter(o),u(p))}function u(p){return p===a?(e.exit(o),s(a)):p===null?n(p):Y(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),pe(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===a||p===null||Y(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?c:d)}function c(p){return p===a||p===92?(e.consume(p),d):d(p)}}function ja(e,t){let n;return i;function i(r){return Y(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,i):se(r)?pe(e,i,n?"linePrefix":"lineSuffix")(r):t(r)}}const UU={name:"definition",tokenize:MU},FU={partial:!0,tokenize:ZU};function MU(e,t,n){const i=this;let r;return o;function o(m){return e.enter("definition"),a(m)}function a(m){return MN.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function l(m){return r=cn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),s):n(m)}function s(m){return ke(m)?ja(e,u)(m):u(m)}function u(m){return FN(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function d(m){return e.attempt(FU,c,c)(m)}function c(m){return se(m)?pe(e,p,"whitespace")(m):p(m)}function p(m){return m===null||Y(m)?(e.exit("definition"),i.parser.defined.push(r),t(m)):n(m)}}function ZU(e,t,n){return i;function i(l){return ke(l)?ja(e,r)(l):n(l)}function r(l){return ZN(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function o(l){return se(l)?pe(e,a,"whitespace")(l):a(l)}function a(l){return l===null||Y(l)?t(l):n(l)}}const BU={name:"hardBreakEscape",tokenize:VU};function VU(e,t,n){return i;function i(o){return e.enter("hardBreakEscape"),e.consume(o),r}function r(o){return Y(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const HU={name:"headingAtx",resolve:qU,tokenize:WU};function qU(e,t){let n=e.length-2,i=3,r,o;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},o={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},Ot(e,i,n-i+1,[["enter",r,t],["enter",o,t],["exit",o,t],["exit",r,t]])),e}function WU(e,t,n){let i=0;return r;function r(d){return e.enter("atxHeading"),o(d)}function o(d){return e.enter("atxHeadingSequence"),a(d)}function a(d){return d===35&&i++<6?(e.consume(d),a):d===null||ke(d)?(e.exit("atxHeadingSequence"),l(d)):n(d)}function l(d){return d===35?(e.enter("atxHeadingSequence"),s(d)):d===null||Y(d)?(e.exit("atxHeading"),t(d)):se(d)?pe(e,l,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function s(d){return d===35?(e.consume(d),s):(e.exit("atxHeadingSequence"),l(d))}function u(d){return d===null||d===35||ke(d)?(e.exit("atxHeadingText"),l(d)):(e.consume(d),u)}}const GU=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Cx=["pre","script","style","textarea"],JU={concrete:!0,name:"htmlFlow",resolveTo:XU,tokenize:YU},KU={partial:!0,tokenize:tF},QU={partial:!0,tokenize:eF};function XU(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function YU(e,t,n){const i=this;let r,o,a,l,s;return u;function u($){return d($)}function d($){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume($),c}function c($){return $===33?(e.consume($),p):$===47?(e.consume($),o=!0,g):$===63?(e.consume($),r=3,i.interrupt?t:b):ft($)?(e.consume($),a=String.fromCharCode($),w):n($)}function p($){return $===45?(e.consume($),r=2,m):$===91?(e.consume($),r=5,l=0,h):ft($)?(e.consume($),r=4,i.interrupt?t:b):n($)}function m($){return $===45?(e.consume($),i.interrupt?t:b):n($)}function h($){const me="CDATA[";return $===me.charCodeAt(l++)?(e.consume($),l===me.length?i.interrupt?t:B:h):n($)}function g($){return ft($)?(e.consume($),a=String.fromCharCode($),w):n($)}function w($){if($===null||$===47||$===62||ke($)){const me=$===47,ge=a.toLowerCase();return!me&&!o&&Cx.includes(ge)?(r=1,i.interrupt?t($):B($)):GU.includes(a.toLowerCase())?(r=6,me?(e.consume($),v):i.interrupt?t($):B($)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n($):o?y($):x($))}return $===45||rt($)?(e.consume($),a+=String.fromCharCode($),w):n($)}function v($){return $===62?(e.consume($),i.interrupt?t:B):n($)}function y($){return se($)?(e.consume($),y):_($)}function x($){return $===47?(e.consume($),_):$===58||$===95||ft($)?(e.consume($),k):se($)?(e.consume($),x):_($)}function k($){return $===45||$===46||$===58||$===95||rt($)?(e.consume($),k):I($)}function I($){return $===61?(e.consume($),N):se($)?(e.consume($),I):x($)}function N($){return $===null||$===60||$===61||$===62||$===96?n($):$===34||$===39?(e.consume($),s=$,P):se($)?(e.consume($),N):A($)}function P($){return $===s?(e.consume($),s=null,R):$===null||Y($)?n($):(e.consume($),P)}function A($){return $===null||$===34||$===39||$===47||$===60||$===61||$===62||$===96||ke($)?I($):(e.consume($),A)}function R($){return $===47||$===62||se($)?x($):n($)}function _($){return $===62?(e.consume($),L):n($)}function L($){return $===null||Y($)?B($):se($)?(e.consume($),L):n($)}function B($){return $===45&&r===2?(e.consume($),G):$===60&&r===1?(e.consume($),V):$===62&&r===4?(e.consume($),Q):$===63&&r===3?(e.consume($),b):$===93&&r===5?(e.consume($),D):Y($)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(KU,K,te)($)):$===null||Y($)?(e.exit("htmlFlowData"),te($)):(e.consume($),B)}function te($){return e.check(QU,U,K)($)}function U($){return e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),O}function O($){return $===null||Y($)?te($):(e.enter("htmlFlowData"),B($))}function G($){return $===45?(e.consume($),b):B($)}function V($){return $===47?(e.consume($),a="",C):B($)}function C($){if($===62){const me=a.toLowerCase();return Cx.includes(me)?(e.consume($),Q):B($)}return ft($)&&a.length<8?(e.consume($),a+=String.fromCharCode($),C):B($)}function D($){return $===93?(e.consume($),b):B($)}function b($){return $===62?(e.consume($),Q):$===45&&r===2?(e.consume($),b):B($)}function Q($){return $===null||Y($)?(e.exit("htmlFlowData"),K($)):(e.consume($),Q)}function K($){return e.exit("htmlFlow"),t($)}}function eF(e,t,n){const i=this;return r;function r(a){return Y(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return i.parser.lazy[i.now().line]?n(a):t(a)}}function tF(e,t,n){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Dl,t,n)}}const nF={name:"htmlText",tokenize:rF};function rF(e,t,n){const i=this;let r,o,a;return l;function l(b){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(b),s}function s(b){return b===33?(e.consume(b),u):b===47?(e.consume(b),I):b===63?(e.consume(b),x):ft(b)?(e.consume(b),A):n(b)}function u(b){return b===45?(e.consume(b),d):b===91?(e.consume(b),o=0,h):ft(b)?(e.consume(b),y):n(b)}function d(b){return b===45?(e.consume(b),m):n(b)}function c(b){return b===null?n(b):b===45?(e.consume(b),p):Y(b)?(a=c,V(b)):(e.consume(b),c)}function p(b){return b===45?(e.consume(b),m):c(b)}function m(b){return b===62?G(b):b===45?p(b):c(b)}function h(b){const Q="CDATA[";return b===Q.charCodeAt(o++)?(e.consume(b),o===Q.length?g:h):n(b)}function g(b){return b===null?n(b):b===93?(e.consume(b),w):Y(b)?(a=g,V(b)):(e.consume(b),g)}function w(b){return b===93?(e.consume(b),v):g(b)}function v(b){return b===62?G(b):b===93?(e.consume(b),v):g(b)}function y(b){return b===null||b===62?G(b):Y(b)?(a=y,V(b)):(e.consume(b),y)}function x(b){return b===null?n(b):b===63?(e.consume(b),k):Y(b)?(a=x,V(b)):(e.consume(b),x)}function k(b){return b===62?G(b):x(b)}function I(b){return ft(b)?(e.consume(b),N):n(b)}function N(b){return b===45||rt(b)?(e.consume(b),N):P(b)}function P(b){return Y(b)?(a=P,V(b)):se(b)?(e.consume(b),P):G(b)}function A(b){return b===45||rt(b)?(e.consume(b),A):b===47||b===62||ke(b)?R(b):n(b)}function R(b){return b===47?(e.consume(b),G):b===58||b===95||ft(b)?(e.consume(b),_):Y(b)?(a=R,V(b)):se(b)?(e.consume(b),R):G(b)}function _(b){return b===45||b===46||b===58||b===95||rt(b)?(e.consume(b),_):L(b)}function L(b){return b===61?(e.consume(b),B):Y(b)?(a=L,V(b)):se(b)?(e.consume(b),L):R(b)}function B(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),r=b,te):Y(b)?(a=B,V(b)):se(b)?(e.consume(b),B):(e.consume(b),U)}function te(b){return b===r?(e.consume(b),r=void 0,O):b===null?n(b):Y(b)?(a=te,V(b)):(e.consume(b),te)}function U(b){return b===null||b===34||b===39||b===60||b===61||b===96?n(b):b===47||b===62||ke(b)?R(b):(e.consume(b),U)}function O(b){return b===47||b===62||ke(b)?R(b):n(b)}function G(b){return b===62?(e.consume(b),e.exit("htmlTextData"),e.exit("htmlText"),t):n(b)}function V(b){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),C}function C(b){return se(b)?pe(e,D,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):D(b)}function D(b){return e.enter("htmlTextData"),a(b)}}const Ug={name:"labelEnd",resolveAll:lF,resolveTo:sF,tokenize:uF},iF={tokenize:cF},oF={tokenize:dF},aF={tokenize:fF};function lF(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const r=i.type==="labelImage"?4:2;i.type="data",t+=r}}return e.length!==n.length&&Ot(e,0,e.length,n),e}function sF(e,t){let n=e.length,i=0,r,o,a,l;for(;n--;)if(r=e[n][1],o){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(o=n,r.type!=="labelLink")){i=2;break}}else r.type==="labelEnd"&&(a=n);const s={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[a][1].end}},d={type:"labelText",start:{...e[o+i+2][1].end},end:{...e[a-2][1].start}};return l=[["enter",s,t],["enter",u,t]],l=Bt(l,e.slice(o+1,o+i+3)),l=Bt(l,[["enter",d,t]]),l=Bt(l,Wc(t.parser.constructs.insideSpan.null,e.slice(o+i+4,a-3),t)),l=Bt(l,[["exit",d,t],e[a-2],e[a-1],["exit",u,t]]),l=Bt(l,e.slice(a+1)),l=Bt(l,[["exit",s,t]]),Ot(e,o,e.length,l),e}function uF(e,t,n){const i=this;let r=i.events.length,o,a;for(;r--;)if((i.events[r][1].type==="labelImage"||i.events[r][1].type==="labelLink")&&!i.events[r][1]._balanced){o=i.events[r][1];break}return l;function l(p){return o?o._inactive?c(p):(a=i.parser.defined.includes(cn(i.sliceSerialize({start:o.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):n(p)}function s(p){return p===40?e.attempt(iF,d,a?d:c)(p):p===91?e.attempt(oF,d,a?u:c)(p):a?d(p):c(p)}function u(p){return e.attempt(aF,d,c)(p)}function d(p){return t(p)}function c(p){return o._balanced=!0,n(p)}}function cF(e,t,n){return i;function i(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),r}function r(c){return ke(c)?ja(e,o)(c):o(c)}function o(c){return c===41?d(c):FN(e,a,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function a(c){return ke(c)?ja(e,s)(c):d(c)}function l(c){return n(c)}function s(c){return c===34||c===39||c===40?ZN(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):d(c)}function u(c){return ke(c)?ja(e,d)(c):d(c)}function d(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function dF(e,t,n){const i=this;return r;function r(l){return MN.call(i,e,o,a,"reference","referenceMarker","referenceString")(l)}function o(l){return i.parser.defined.includes(cn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function a(l){return n(l)}}function fF(e,t,n){return i;function i(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),r}function r(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const pF={name:"labelStartImage",resolveAll:Ug.resolveAll,tokenize:mF};function mF(e,t,n){const i=this;return r;function r(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),o}function o(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),a):n(l)}function a(l){return l===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(l):t(l)}}const hF={name:"labelStartLink",resolveAll:Ug.resolveAll,tokenize:gF};function gF(e,t,n){const i=this;return r;function r(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(a):t(a)}}const Ud={name:"lineEnding",tokenize:vF};function vF(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),pe(e,t,"linePrefix")}}const Rs={name:"thematicBreak",tokenize:yF};function yF(e,t,n){let i=0,r;return o;function o(u){return e.enter("thematicBreak"),a(u)}function a(u){return r=u,l(u)}function l(u){return u===r?(e.enter("thematicBreakSequence"),s(u)):i>=3&&(u===null||Y(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===r?(e.consume(u),i++,s):(e.exit("thematicBreakSequence"),se(u)?pe(e,l,"whitespace")(u):l(u))}}const vt={continuation:{tokenize:wF},exit:$F,name:"list",tokenize:kF},xF={partial:!0,tokenize:SF},bF={partial:!0,tokenize:_F};function kF(e,t,n){const i=this,r=i.events[i.events.length-1];let o=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,a=0;return l;function l(m){const h=i.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!i.containerState.marker||m===i.containerState.marker:_p(m)){if(i.containerState.type||(i.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(Rs,n,u)(m):u(m);if(!i.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(m)}return n(m)}function s(m){return _p(m)&&++a<10?(e.consume(m),s):(!i.interrupt||a<2)&&(i.containerState.marker?m===i.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),u(m)):n(m)}function u(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||m,e.check(Dl,i.interrupt?n:d,e.attempt(xF,p,c))}function d(m){return i.containerState.initialBlankLine=!0,o++,p(m)}function c(m){return se(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),p):n(m)}function p(m){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function wF(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Dl,r,o);function r(l){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,pe(e,t,"listItemIndent",i.containerState.size+1)(l)}function o(l){return i.containerState.furtherBlankLines||!se(l)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,a(l)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(bF,t,a)(l))}function a(l){return i.containerState._closeFlow=!0,i.interrupt=void 0,pe(e,e.attempt(vt,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function _F(e,t,n){const i=this;return pe(e,r,"listItemIndent",i.containerState.size+1);function r(o){const a=i.events[i.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===i.containerState.size?t(o):n(o)}}function $F(e){e.exit(this.containerState.type)}function SF(e,t,n){const i=this;return pe(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(o){const a=i.events[i.events.length-1];return!se(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const zx={name:"setextUnderline",resolveTo:jF,tokenize:NF};function jF(e,t){let n=e.length,i,r,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(r=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[i][1],t]),e[i][1].end={...e[o][1].end}):e[i][1]=a,e.push(["exit",a,t]),e}function NF(e,t,n){const i=this;let r;return o;function o(u){let d=i.events.length,c;for(;d--;)if(i.events[d][1].type!=="lineEnding"&&i.events[d][1].type!=="linePrefix"&&i.events[d][1].type!=="content"){c=i.events[d][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||c)?(e.enter("setextHeadingLine"),r=u,a(u)):n(u)}function a(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===r?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),se(u)?pe(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||Y(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const IF={tokenize:EF};function EF(e){const t=this,n=e.attempt(Dl,i,e.attempt(this.parser.constructs.flowInitial,r,pe(e,e.attempt(this.parser.constructs.flow,r,e.attempt(TU,r)),"linePrefix")));return n;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const CF={resolveAll:VN()},zF=BN("string"),PF=BN("text");function BN(e){return{resolveAll:VN(e==="text"?OF:void 0),tokenize:t};function t(n){const i=this,r=this.parser.constructs[e],o=n.attempt(r,a,l);return a;function a(d){return u(d)?o(d):l(d)}function l(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),s}function s(d){return u(d)?(n.exit("data"),o(d)):(n.consume(d),s)}function u(d){if(d===null)return!0;const c=r[d];let p=-1;if(c)for(;++p<c.length;){const m=c[p];if(!m.previous||m.previous.call(i,i.previous))return!0}return!1}}}function VN(e){return t;function t(n,i){let r=-1,o;for(;++r<=n.length;)o===void 0?n[r]&&n[r][1].type==="data"&&(o=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==o+2&&(n[o][1].end=n[r-1][1].end,n.splice(o+2,r-o-2),r=o+2),o=void 0);return e?e(n,i):n}}function OF(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],r=t.sliceStream(i);let o=r.length,a=-1,l=0,s;for(;o--;){const u=r[o];if(typeof u=="string"){for(a=u.length;u.charCodeAt(a-1)===32;)l++,a--;if(a)break;a=-1}else if(u===-2)s=!0,l++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const u={type:n===e.length||s||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:i.start._bufferIndex+a,_index:i.start._index+o,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...u.start},i.start.offset===i.end.offset?Object.assign(i,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const TF={42:vt,43:vt,45:vt,48:vt,49:vt,50:vt,51:vt,52:vt,53:vt,54:vt,55:vt,56:vt,57:vt,62:AN},RF={91:UU},AF={[-2]:Ld,[-1]:Ld,32:Ld},DF={35:HU,42:Rs,45:[zx,Rs],60:JU,61:zx,95:Rs,96:Ex,126:Ex},LF={38:LN,92:DN},UF={[-5]:Ud,[-4]:Ud,[-3]:Ud,33:pF,38:LN,42:$p,60:[hU,nF],91:hF,92:[BU,DN],93:Ug,95:$p,96:IU},FF={null:[$p,CF]},MF={null:[42,95]},ZF={null:[]},BF=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:MF,contentInitial:RF,disable:ZF,document:TF,flow:DF,flowInitial:AF,insideSpan:FF,string:LF,text:UF},Symbol.toStringTag,{value:"Module"}));function VF(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={},o=[];let a=[],l=[];const s={attempt:P(I),check:P(N),consume:y,enter:x,exit:k,interrupt:P(N,{interrupt:!0})},u={code:null,containerState:{},defineSkip:g,events:[],now:h,parser:e,previous:null,sliceSerialize:p,sliceStream:m,write:c};let d=t.tokenize.call(u,s);return t.resolveAll&&o.push(t),u;function c(L){return a=Bt(a,L),w(),a[a.length-1]!==null?[]:(A(t,0),u.events=Wc(o,u.events,u),u.events)}function p(L,B){return qF(m(L),B)}function m(L){return HF(a,L)}function h(){const{_bufferIndex:L,_index:B,line:te,column:U,offset:O}=i;return{_bufferIndex:L,_index:B,line:te,column:U,offset:O}}function g(L){r[L.line]=L.column,_()}function w(){let L;for(;i._index<a.length;){const B=a[i._index];if(typeof B=="string")for(L=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===L&&i._bufferIndex<B.length;)v(B.charCodeAt(i._bufferIndex));else v(B)}}function v(L){d=d(L)}function y(L){Y(L)?(i.line++,i.column=1,i.offset+=L===-3?2:1,_()):L!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===a[i._index].length&&(i._bufferIndex=-1,i._index++)),u.previous=L}function x(L,B){const te=B||{};return te.type=L,te.start=h(),u.events.push(["enter",te,u]),l.push(te),te}function k(L){const B=l.pop();return B.end=h(),u.events.push(["exit",B,u]),B}function I(L,B){A(L,B.from)}function N(L,B){B.restore()}function P(L,B){return te;function te(U,O,G){let V,C,D,b;return Array.isArray(U)?K(U):"tokenize"in U?K([U]):Q(U);function Q(ve){return gn;function gn(sr){const Oi=sr!==null&&ve[sr],Ti=sr!==null&&ve.null,Ul=[...Array.isArray(Oi)?Oi:Oi?[Oi]:[],...Array.isArray(Ti)?Ti:Ti?[Ti]:[]];return K(Ul)(sr)}}function K(ve){return V=ve,C=0,ve.length===0?G:$(ve[C])}function $(ve){return gn;function gn(sr){return b=R(),D=ve,ve.partial||(u.currentConstruct=ve),ve.name&&u.parser.constructs.disable.null.includes(ve.name)?ge():ve.tokenize.call(B?Object.assign(Object.create(u),B):u,s,me,ge)(sr)}}function me(ve){return L(D,b),O}function ge(ve){return b.restore(),++C<V.length?$(V[C]):G}}}function A(L,B){L.resolveAll&&!o.includes(L)&&o.push(L),L.resolve&&Ot(u.events,B,u.events.length-B,L.resolve(u.events.slice(B),u)),L.resolveTo&&(u.events=L.resolveTo(u.events,u))}function R(){const L=h(),B=u.previous,te=u.currentConstruct,U=u.events.length,O=Array.from(l);return{from:U,restore:G};function G(){i=L,u.previous=B,u.currentConstruct=te,u.events.length=U,l=O,_()}}function _(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}function HF(e,t){const n=t.start._index,i=t.start._bufferIndex,r=t.end._index,o=t.end._bufferIndex;let a;if(n===r)a=[e[n].slice(i,o)];else{if(a=e.slice(n,r),i>-1){const l=a[0];typeof l=="string"?a[0]=l.slice(i):a.shift()}o>0&&a.push(e[r].slice(0,o))}return a}function qF(e,t){let n=-1;const i=[];let r;for(;++n<e.length;){const o=e[n];let a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
199
+ `;break}case-3:{a=`\r
200
+ `;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&r)continue;a=" ";break}default:a=String.fromCharCode(o)}r=o===-2,i.push(a)}return i.join("")}function WF(e){const i={constructs:TN([BF,...(e||{}).extensions||[]]),content:r(sU),defined:[],document:r(cU),flow:r(IF),lazy:{},string:r(zF),text:r(PF)};return i;function r(o){return a;function a(l){return VF(i,o,l)}}}function GF(e){for(;!UN(e););return e}const Px=/[\0\t\n\r]/g;function JF(){let e=1,t="",n=!0,i;return r;function r(o,a,l){const s=[];let u,d,c,p,m;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(a||void 0).decode(o)),c=0,t="",n&&(o.charCodeAt(0)===65279&&c++,n=void 0);c<o.length;){if(Px.lastIndex=c,u=Px.exec(o),p=u&&u.index!==void 0?u.index:o.length,m=o.charCodeAt(p),!u){t=o.slice(c);break}if(m===10&&c===p&&i)s.push(-3),i=void 0;else switch(i&&(s.push(-5),i=void 0),c<p&&(s.push(o.slice(c,p)),e+=p-c),m){case 0:{s.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,s.push(-2);e++<d;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:i=!0,e=1}c=p+1}return l&&(i&&s.push(-5),t&&s.push(t),s.push(null)),s}}const KF=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function QF(e){return e.replace(KF,XF)}function XF(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return RN(n.slice(o?2:1),o?16:10)}return Lg(n)||e}const HN={}.hasOwnProperty;function YF(e,t,n){return typeof t!="string"&&(n=t,t=void 0),e3(n)(GF(WF(n).document().write(JF()(e,t,!0))))}function e3(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Xg),autolinkProtocol:R,autolinkEmail:R,atxHeading:o(Jg),blockQuote:o(Ti),characterEscape:R,characterReference:R,codeFenced:o(Ul),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(Ul,a),codeText:o(SI,a),codeTextData:R,data:R,codeFlowValue:R,definition:o(jI),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o(NI),hardBreakEscape:o(Kg),hardBreakTrailing:o(Kg),htmlFlow:o(Qg,a),htmlFlowData:R,htmlText:o(Qg,a),htmlTextData:R,image:o(II),label:a,link:o(Xg),listItem:o(EI),listItemValue:p,listOrdered:o(Yg,c),listUnordered:o(Yg),paragraph:o(CI),reference:$,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(Jg),strong:o(zI),thematicBreak:o(OI)},exit:{atxHeading:s(),atxHeadingSequence:I,autolink:s(),autolinkEmail:Oi,autolinkProtocol:sr,blockQuote:s(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:ve,characterReference:gn,codeFenced:s(w),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:_,codeIndented:s(v),codeText:s(O),codeTextData:_,data:_,definition:s(),definitionDestinationString:k,definitionLabelString:y,definitionTitleString:x,emphasis:s(),hardBreakEscape:s(B),hardBreakTrailing:s(B),htmlFlow:s(te),htmlFlowData:_,htmlText:s(U),htmlTextData:_,image:s(V),label:D,labelText:C,lineEnding:L,link:s(G),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:me,resourceDestinationString:b,resourceTitleString:Q,resource:K,setextHeading:s(A),setextHeadingLineSequence:P,setextHeadingText:N,strong:s(),thematicBreak:s()}};qN(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(z){let H={type:"root",children:[]};const re={stack:[H],tokenStack:[],config:t,enter:l,exit:u,buffer:a,resume:d,data:n},de=[];let be=-1;for(;++be<z.length;)if(z[be][1].type==="listOrdered"||z[be][1].type==="listUnordered")if(z[be][0]==="enter")de.push(be);else{const Xt=de.pop();be=r(z,Xt,be)}for(be=-1;++be<z.length;){const Xt=t[z[be][0]];HN.call(Xt,z[be][1].type)&&Xt[z[be][1].type].call(Object.assign({sliceSerialize:z[be][2].sliceSerialize},re),z[be][1])}if(re.tokenStack.length>0){const Xt=re.tokenStack[re.tokenStack.length-1];(Xt[1]||Ox).call(re,void 0,Xt[0])}for(H.position={start:cr(z.length>0?z[0][1].start:{line:1,column:1,offset:0}),end:cr(z.length>0?z[z.length-2][1].end:{line:1,column:1,offset:0})},be=-1;++be<t.transforms.length;)H=t.transforms[be](H)||H;return H}function r(z,H,re){let de=H-1,be=-1,Xt=!1,Wr,Pn,Go,Jo;for(;++de<=re;){const Nt=z[de];switch(Nt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Nt[0]==="enter"?be++:be--,Jo=void 0;break}case"lineEndingBlank":{Nt[0]==="enter"&&(Wr&&!Jo&&!be&&!Go&&(Go=de),Jo=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Jo=void 0}if(!be&&Nt[0]==="enter"&&Nt[1].type==="listItemPrefix"||be===-1&&Nt[0]==="exit"&&(Nt[1].type==="listUnordered"||Nt[1].type==="listOrdered")){if(Wr){let Ri=de;for(Pn=void 0;Ri--;){const On=z[Ri];if(On[1].type==="lineEnding"||On[1].type==="lineEndingBlank"){if(On[0]==="exit")continue;Pn&&(z[Pn][1].type="lineEndingBlank",Xt=!0),On[1].type="lineEnding",Pn=Ri}else if(!(On[1].type==="linePrefix"||On[1].type==="blockQuotePrefix"||On[1].type==="blockQuotePrefixWhitespace"||On[1].type==="blockQuoteMarker"||On[1].type==="listItemIndent"))break}Go&&(!Pn||Go<Pn)&&(Wr._spread=!0),Wr.end=Object.assign({},Pn?z[Pn][1].start:Nt[1].end),z.splice(Pn||de,0,["exit",Wr,Nt[2]]),de++,re++}if(Nt[1].type==="listItemPrefix"){const Ri={type:"listItem",_spread:!1,start:Object.assign({},Nt[1].start),end:void 0};Wr=Ri,z.splice(de,0,["enter",Ri,Nt[2]]),de++,re++,Go=void 0,Jo=!0}}}return z[H][1]._spread=Xt,re}function o(z,H){return re;function re(de){l.call(this,z(de),de),H&&H.call(this,de)}}function a(){this.stack.push({type:"fragment",children:[]})}function l(z,H,re){this.stack[this.stack.length-1].children.push(z),this.stack.push(z),this.tokenStack.push([H,re||void 0]),z.position={start:cr(H.start),end:void 0}}function s(z){return H;function H(re){z&&z.call(this,re),u.call(this,re)}}function u(z,H){const re=this.stack.pop(),de=this.tokenStack.pop();if(de)de[0].type!==z.type&&(H?H.call(this,z,de[0]):(de[1]||Ox).call(this,z,de[0]));else throw new Error("Cannot close `"+z.type+"` ("+Sa({start:z.start,end:z.end})+"): it’s not open");re.position.end=cr(z.end)}function d(){return Dg(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(z){if(this.data.expectingFirstListItemValue){const H=this.stack[this.stack.length-2];H.start=Number.parseInt(this.sliceSerialize(z),10),this.data.expectingFirstListItemValue=void 0}}function m(){const z=this.resume(),H=this.stack[this.stack.length-1];H.lang=z}function h(){const z=this.resume(),H=this.stack[this.stack.length-1];H.meta=z}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const z=this.resume(),H=this.stack[this.stack.length-1];H.value=z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const z=this.resume(),H=this.stack[this.stack.length-1];H.value=z.replace(/(\r?\n|\r)$/g,"")}function y(z){const H=this.resume(),re=this.stack[this.stack.length-1];re.label=H,re.identifier=cn(this.sliceSerialize(z)).toLowerCase()}function x(){const z=this.resume(),H=this.stack[this.stack.length-1];H.title=z}function k(){const z=this.resume(),H=this.stack[this.stack.length-1];H.url=z}function I(z){const H=this.stack[this.stack.length-1];if(!H.depth){const re=this.sliceSerialize(z).length;H.depth=re}}function N(){this.data.setextHeadingSlurpLineEnding=!0}function P(z){const H=this.stack[this.stack.length-1];H.depth=this.sliceSerialize(z).codePointAt(0)===61?1:2}function A(){this.data.setextHeadingSlurpLineEnding=void 0}function R(z){const re=this.stack[this.stack.length-1].children;let de=re[re.length-1];(!de||de.type!=="text")&&(de=PI(),de.position={start:cr(z.start),end:void 0},re.push(de)),this.stack.push(de)}function _(z){const H=this.stack.pop();H.value+=this.sliceSerialize(z),H.position.end=cr(z.end)}function L(z){const H=this.stack[this.stack.length-1];if(this.data.atHardBreak){const re=H.children[H.children.length-1];re.position.end=cr(z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(H.type)&&(R.call(this,z),_.call(this,z))}function B(){this.data.atHardBreak=!0}function te(){const z=this.resume(),H=this.stack[this.stack.length-1];H.value=z}function U(){const z=this.resume(),H=this.stack[this.stack.length-1];H.value=z}function O(){const z=this.resume(),H=this.stack[this.stack.length-1];H.value=z}function G(){const z=this.stack[this.stack.length-1];if(this.data.inReference){const H=this.data.referenceType||"shortcut";z.type+="Reference",z.referenceType=H,delete z.url,delete z.title}else delete z.identifier,delete z.label;this.data.referenceType=void 0}function V(){const z=this.stack[this.stack.length-1];if(this.data.inReference){const H=this.data.referenceType||"shortcut";z.type+="Reference",z.referenceType=H,delete z.url,delete z.title}else delete z.identifier,delete z.label;this.data.referenceType=void 0}function C(z){const H=this.sliceSerialize(z),re=this.stack[this.stack.length-2];re.label=QF(H),re.identifier=cn(H).toLowerCase()}function D(){const z=this.stack[this.stack.length-1],H=this.resume(),re=this.stack[this.stack.length-1];if(this.data.inReference=!0,re.type==="link"){const de=z.children;re.children=de}else re.alt=H}function b(){const z=this.resume(),H=this.stack[this.stack.length-1];H.url=z}function Q(){const z=this.resume(),H=this.stack[this.stack.length-1];H.title=z}function K(){this.data.inReference=void 0}function $(){this.data.referenceType="collapsed"}function me(z){const H=this.resume(),re=this.stack[this.stack.length-1];re.label=H,re.identifier=cn(this.sliceSerialize(z)).toLowerCase(),this.data.referenceType="full"}function ge(z){this.data.characterReferenceType=z.type}function ve(z){const H=this.sliceSerialize(z),re=this.data.characterReferenceType;let de;re?(de=RN(H,re==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):de=Lg(H);const be=this.stack[this.stack.length-1];be.value+=de}function gn(z){const H=this.stack.pop();H.position.end=cr(z.end)}function sr(z){_.call(this,z);const H=this.stack[this.stack.length-1];H.url=this.sliceSerialize(z)}function Oi(z){_.call(this,z);const H=this.stack[this.stack.length-1];H.url="mailto:"+this.sliceSerialize(z)}function Ti(){return{type:"blockquote",children:[]}}function Ul(){return{type:"code",lang:null,meta:null,value:""}}function SI(){return{type:"inlineCode",value:""}}function jI(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function NI(){return{type:"emphasis",children:[]}}function Jg(){return{type:"heading",depth:0,children:[]}}function Kg(){return{type:"break"}}function Qg(){return{type:"html",value:""}}function II(){return{type:"image",title:null,url:"",alt:null}}function Xg(){return{type:"link",title:null,url:"",children:[]}}function Yg(z){return{type:"list",ordered:z.type==="listOrdered",start:null,spread:z._spread,children:[]}}function EI(z){return{type:"listItem",spread:z._spread,checked:null,children:[]}}function CI(){return{type:"paragraph",children:[]}}function zI(){return{type:"strong",children:[]}}function PI(){return{type:"text",value:""}}function OI(){return{type:"thematicBreak"}}}function cr(e){return{line:e.line,column:e.column,offset:e.offset}}function qN(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?qN(e,i):t3(e,i)}}function t3(e,t){let n;for(n in t)if(HN.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function Ox(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Sa({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Sa({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Sa({start:t.start,end:t.end})+") is still open")}function n3(e){const t=this;t.parser=n;function n(i){return YF(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function r3(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function i3(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
201
+ `}]}function o3(e,t){const n=t.value?t.value+`
202
+ `:"",i={},r=t.lang?t.lang.split(/\s+/):[];r.length>0&&(i.className=["language-"+r[0]]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function a3(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function l3(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function s3(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),r=Wo(i.toLowerCase()),o=e.footnoteOrder.indexOf(i);let a,l=e.footnoteCounts.get(i);l===void 0?(l=0,e.footnoteOrder.push(i),a=e.footnoteOrder.length):a=o+1,l+=1,e.footnoteCounts.set(i,l);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+r,id:n+"fnref-"+r+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function u3(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function c3(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function WN(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const r=e.all(t),o=r[0];o&&o.type==="text"?o.value="["+o.value:r.unshift({type:"text",value:"["});const a=r[r.length-1];return a&&a.type==="text"?a.value+=i:r.push({type:"text",value:i}),r}function d3(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return WN(e,t);const r={src:Wo(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)}function f3(e,t){const n={src:Wo(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function p3(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function m3(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return WN(e,t);const r={href:Wo(i.url||"")};i.title!==null&&i.title!==void 0&&(r.title=i.title);const o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function h3(e,t){const n={href:Wo(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function g3(e,t,n){const i=e.all(t),r=n?v3(n):GN(t),o={},a=[];if(typeof t.checked=="boolean"){const d=i[0];let c;d&&d.type==="element"&&d.tagName==="p"?c=d:(c={type:"element",tagName:"p",properties:{},children:[]},i.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<i.length;){const d=i[l];(r||l!==0||d.type!=="element"||d.tagName!=="p")&&a.push({type:"text",value:`
203
+ `}),d.type==="element"&&d.tagName==="p"&&!r?a.push(...d.children):a.push(d)}const s=i[i.length-1];s&&(r||s.type!=="element"||s.tagName!=="p")&&a.push({type:"text",value:`
204
+ `});const u={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,u),e.applyData(t,u)}function v3(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=GN(n[i])}return t}function GN(e){const t=e.spread;return t??e.children.length>1}function y3(e,t){const n={},i=e.all(t);let r=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++r<i.length;){const a=i[r];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function x3(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function b3(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function k3(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function w3(e,t){const n=e.all(t),i=n.shift(),r=[];if(i){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],a),r.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=Og(t.children[1]),s=NN(t.children[t.children.length-1]);l&&s&&(a.position={start:l,end:s}),r.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function _3(e,t,n){const i=n?n.children:void 0,o=(i?i.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,l=a?a.length:t.children.length;let s=-1;const u=[];for(;++s<l;){const c=t.children[s],p={},m=a?a[s]:void 0;m&&(p.align=m);let h={type:"element",tagName:o,properties:p,children:[]};c&&(h.children=e.all(c),e.patch(c,h),h=e.applyData(c,h)),u.push(h)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function $3(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Tx=9,Rx=32;function S3(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),r=0;const o=[];for(;i;)o.push(Ax(t.slice(r,i.index),r>0,!0),i[0]),r=i.index+i[0].length,i=n.exec(t);return o.push(Ax(t.slice(r),r>0,!1)),o.join("")}function Ax(e,t,n){let i=0,r=e.length;if(t){let o=e.codePointAt(i);for(;o===Tx||o===Rx;)i++,o=e.codePointAt(i)}if(n){let o=e.codePointAt(r-1);for(;o===Tx||o===Rx;)r--,o=e.codePointAt(r-1)}return r>i?e.slice(i,r):""}function j3(e,t){const n={type:"text",value:S3(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function N3(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const I3={blockquote:r3,break:i3,code:o3,delete:a3,emphasis:l3,footnoteReference:s3,heading:u3,html:c3,imageReference:d3,image:f3,inlineCode:p3,linkReference:m3,link:h3,listItem:g3,list:y3,paragraph:x3,root:b3,strong:k3,table:w3,tableCell:$3,tableRow:_3,text:j3,thematicBreak:N3,toml:gs,yaml:gs,definition:gs,footnoteDefinition:gs};function gs(){}const JN=-1,Gc=0,Na=1,ku=2,Fg=3,Mg=4,Zg=5,Bg=6,KN=7,QN=8,Dx=typeof self=="object"?self:globalThis,E3=(e,t)=>{const n=(r,o)=>(e.set(o,r),r),i=r=>{if(e.has(r))return e.get(r);const[o,a]=t[r];switch(o){case Gc:case JN:return n(a,r);case Na:{const l=n([],r);for(const s of a)l.push(i(s));return l}case ku:{const l=n({},r);for(const[s,u]of a)l[i(s)]=i(u);return l}case Fg:return n(new Date(a),r);case Mg:{const{source:l,flags:s}=a;return n(new RegExp(l,s),r)}case Zg:{const l=n(new Map,r);for(const[s,u]of a)l.set(i(s),i(u));return l}case Bg:{const l=n(new Set,r);for(const s of a)l.add(i(s));return l}case KN:{const{name:l,message:s}=a;return n(new Dx[l](s),r)}case QN:return n(BigInt(a),r);case"BigInt":return n(Object(BigInt(a)),r);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:l}=new Uint8Array(a);return n(new DataView(l),a)}}return n(new Dx[o](a),r)};return i},Lx=e=>E3(new Map,e)(0),Li="",{toString:C3}={},{keys:z3}=Object,sa=e=>{const t=typeof e;if(t!=="object"||!e)return[Gc,t];const n=C3.call(e).slice(8,-1);switch(n){case"Array":return[Na,Li];case"Object":return[ku,Li];case"Date":return[Fg,Li];case"RegExp":return[Mg,Li];case"Map":return[Zg,Li];case"Set":return[Bg,Li];case"DataView":return[Na,n]}return n.includes("Array")?[Na,n]:n.includes("Error")?[KN,n]:[ku,n]},vs=([e,t])=>e===Gc&&(t==="function"||t==="symbol"),P3=(e,t,n,i)=>{const r=(a,l)=>{const s=i.push(a)-1;return n.set(l,s),s},o=a=>{if(n.has(a))return n.get(a);let[l,s]=sa(a);switch(l){case Gc:{let d=a;switch(s){case"bigint":l=QN,d=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);d=null;break;case"undefined":return r([JN],a)}return r([l,d],a)}case Na:{if(s){let p=a;return s==="DataView"?p=new Uint8Array(a.buffer):s==="ArrayBuffer"&&(p=new Uint8Array(a)),r([s,[...p]],a)}const d=[],c=r([l,d],a);for(const p of a)d.push(o(p));return c}case ku:{if(s)switch(s){case"BigInt":return r([s,a.toString()],a);case"Boolean":case"Number":case"String":return r([s,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const d=[],c=r([l,d],a);for(const p of z3(a))(e||!vs(sa(a[p])))&&d.push([o(p),o(a[p])]);return c}case Fg:return r([l,a.toISOString()],a);case Mg:{const{source:d,flags:c}=a;return r([l,{source:d,flags:c}],a)}case Zg:{const d=[],c=r([l,d],a);for(const[p,m]of a)(e||!(vs(sa(p))||vs(sa(m))))&&d.push([o(p),o(m)]);return c}case Bg:{const d=[],c=r([l,d],a);for(const p of a)(e||!vs(sa(p)))&&d.push(o(p));return c}}const{message:u}=a;return r([l,{name:s,message:u}],a)};return o},Ux=(e,{json:t,lossy:n}={})=>{const i=[];return P3(!(t||n),!!t,new Map,i)(e),i},wu=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Lx(Ux(e,t)):structuredClone(e):(e,t)=>Lx(Ux(e,t));function O3(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function T3(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function R3(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||O3,i=e.options.footnoteBackLabel||T3,r=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let s=-1;for(;++s<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[s]);if(!u)continue;const d=e.all(u),c=String(u.identifier).toUpperCase(),p=Wo(c.toLowerCase());let m=0;const h=[],g=e.footnoteCounts.get(c);for(;g!==void 0&&++m<=g;){h.length>0&&h.push({type:"text",value:" "});let y=typeof n=="string"?n:n(s,m);typeof y=="string"&&(y={type:"text",value:y}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(s,m),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const w=d[d.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const y=w.children[w.children.length-1];y&&y.type==="text"?y.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...h)}else d.push(...h);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(d,!0)};e.patch(u,v),l.push(v)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...wu(a),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:`
205
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:`
206
+ `}]}}const Jc=function(e){if(e==null)return U3;if(typeof e=="function")return Kc(e);if(typeof e=="object")return Array.isArray(e)?A3(e):D3(e);if(typeof e=="string")return L3(e);throw new Error("Expected function, string, or object as test")};function A3(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Jc(e[n]);return Kc(i);function i(...r){let o=-1;for(;++o<t.length;)if(t[o].apply(this,r))return!0;return!1}}function D3(e){const t=e;return Kc(n);function n(i){const r=i;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}function L3(e){return Kc(t);function t(n){return n&&n.type===e}}function Kc(e){return t;function t(n,i,r){return!!(F3(n)&&e.call(this,n,typeof i=="number"?i:void 0,r||void 0))}}function U3(){return!0}function F3(e){return e!==null&&typeof e=="object"&&"type"in e}const XN=[],M3=!0,Sp=!1,Z3="skip";function YN(e,t,n,i){let r;typeof t=="function"&&typeof n!="function"?(i=n,n=t):r=t;const o=Jc(r),a=i?-1:1;l(e,void 0,[])();function l(s,u,d){const c=s&&typeof s=="object"?s:{};if(typeof c.type=="string"){const m=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(s.type+(m?"<"+m+">":""))+")"})}return p;function p(){let m=XN,h,g,w;if((!t||o(s,u,d[d.length-1]||void 0))&&(m=B3(n(s,d)),m[0]===Sp))return m;if("children"in s&&s.children){const v=s;if(v.children&&m[0]!==Z3)for(g=(i?v.children.length:-1)+a,w=d.concat(v);g>-1&&g<v.children.length;){const y=v.children[g];if(h=l(y,g,w)(),h[0]===Sp)return h;g=typeof h[1]=="number"?h[1]:g+a}}return m}}}function B3(e){return Array.isArray(e)?e:typeof e=="number"?[M3,e]:e==null?XN:[e]}function Vg(e,t,n,i){let r,o,a;typeof t=="function"&&typeof n!="function"?(o=void 0,a=t,r=n):(o=t,a=n,r=i),YN(e,o,l,r);function l(s,u){const d=u[u.length-1],c=d?d.children.indexOf(s):void 0;return a(s,c,d)}}const jp={}.hasOwnProperty,V3={};function H3(e,t){const n=t||V3,i=new Map,r=new Map,o=new Map,a={...I3,...n.handlers},l={all:u,applyData:W3,definitionById:i,footnoteById:r,footnoteCounts:o,footnoteOrder:[],handlers:a,one:s,options:n,patch:q3,wrap:J3};return Vg(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const c=d.type==="definition"?i:r,p=String(d.identifier).toUpperCase();c.has(p)||c.set(p,d)}}),l;function s(d,c){const p=d.type,m=l.handlers[p];if(jp.call(l.handlers,p)&&m)return m(l,d,c);if(l.options.passThrough&&l.options.passThrough.includes(p)){if("children"in d){const{children:g,...w}=d,v=wu(w);return v.children=l.all(d),v}return wu(d)}return(l.options.unknownHandler||G3)(l,d,c)}function u(d){const c=[];if("children"in d){const p=d.children;let m=-1;for(;++m<p.length;){const h=l.one(p[m],d);if(h){if(m&&p[m-1].type==="break"&&(!Array.isArray(h)&&h.type==="text"&&(h.value=Fx(h.value)),!Array.isArray(h)&&h.type==="element")){const g=h.children[0];g&&g.type==="text"&&(g.value=Fx(g.value))}Array.isArray(h)?c.push(...h):c.push(h)}}}return c}}function q3(e,t){e.position&&(t.position=TL(e))}function W3(e,t){let n=t;if(e&&e.data){const i=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const a="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:a}}n.type==="element"&&o&&Object.assign(n.properties,wu(o)),"children"in n&&n.children&&r!==null&&r!==void 0&&(n.children=r)}return n}function G3(e,t){const n=t.data||{},i="value"in t&&!(jp.call(n,"hProperties")||jp.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function J3(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
207
+ `});++i<e.length;)i&&n.push({type:"text",value:`
208
+ `}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
209
+ `}),n}function Fx(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Mx(e,t){const n=H3(e,t),i=n.one(e,void 0),r=R3(n),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&o.children.push({type:"text",value:`
210
+ `},r),o}function K3(e,t){return e&&"run"in e?async function(n,i){const r=Mx(n,{file:i,...t});await e.run(r,i)}:function(n,i){return Mx(n,{file:i,...e||t})}}function Zx(e){if(e)throw e}var As=Object.prototype.hasOwnProperty,eI=Object.prototype.toString,Bx=Object.defineProperty,Vx=Object.getOwnPropertyDescriptor,Hx=function(t){return typeof Array.isArray=="function"?Array.isArray(t):eI.call(t)==="[object Array]"},qx=function(t){if(!t||eI.call(t)!=="[object Object]")return!1;var n=As.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&As.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!i)return!1;var r;for(r in t);return typeof r>"u"||As.call(t,r)},Wx=function(t,n){Bx&&n.name==="__proto__"?Bx(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Gx=function(t,n){if(n==="__proto__")if(As.call(t,n)){if(Vx)return Vx(t,n).value}else return;return t[n]},Q3=function e(){var t,n,i,r,o,a,l=arguments[0],s=1,u=arguments.length,d=!1;for(typeof l=="boolean"&&(d=l,l=arguments[1]||{},s=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});s<u;++s)if(t=arguments[s],t!=null)for(n in t)i=Gx(l,n),r=Gx(t,n),l!==r&&(d&&r&&(qx(r)||(o=Hx(r)))?(o?(o=!1,a=i&&Hx(i)?i:[]):a=i&&qx(i)?i:{},Wx(l,{name:n,newValue:e(d,a,r)})):typeof r<"u"&&Wx(l,{name:n,newValue:r}));return l};const Fd=$u(Q3);function Np(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function X3(){const e=[],t={run:n,use:i};return t;function n(...r){let o=-1;const a=r.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);l(null,...r);function l(s,...u){const d=e[++o];let c=-1;if(s){a(s);return}for(;++c<r.length;)(u[c]===null||u[c]===void 0)&&(u[c]=r[c]);r=u,d?Y3(d,l)(...u):a(null,...u)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function Y3(e,t){let n;return i;function i(...a){const l=e.length>a.length;let s;l&&a.push(r);try{s=e.apply(this,a)}catch(u){const d=u;if(l&&n)throw d;return r(d)}l||(s&&s.then&&typeof s.then=="function"?s.then(o,r):s instanceof Error?r(s):o(s))}function r(a,...l){n||(n=!0,t(a,...l))}function o(a){r(null,a)}}const bn={basename:eM,dirname:tM,extname:nM,join:rM,sep:"/"};function eM(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ll(e);let n=0,i=-1,r=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(o){n=r+1;break}}else i<0&&(o=!0,i=r+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let a=-1,l=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(o){n=r+1;break}}else a<0&&(o=!0,a=r+1),l>-1&&(e.codePointAt(r)===t.codePointAt(l--)?l<0&&(i=r):(l=-1,i=a));return n===i?i=a:i<0&&(i=e.length),e.slice(n,i)}function tM(e){if(Ll(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function nM(e){Ll(e);let t=e.length,n=-1,i=0,r=-1,o=0,a;for(;t--;){const l=e.codePointAt(t);if(l===47){if(a){i=t+1;break}continue}n<0&&(a=!0,n=t+1),l===46?r<0?r=t:o!==1&&(o=1):r>-1&&(o=-1)}return r<0||n<0||o===0||o===1&&r===n-1&&r===i+1?"":e.slice(r,n)}function rM(...e){let t=-1,n;for(;++t<e.length;)Ll(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":iM(n)}function iM(e){Ll(e);const t=e.codePointAt(0)===47;let n=oM(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function oM(e,t){let n="",i=0,r=-1,o=0,a=-1,l,s;for(;++a<=e.length;){if(a<e.length)l=e.codePointAt(a);else{if(l===47)break;l=47}if(l===47){if(!(r===a-1||o===1))if(r!==a-1&&o===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",i=0):(n=n.slice(0,s),i=n.length-1-n.lastIndexOf("/")),r=a,o=0;continue}}else if(n.length>0){n="",i=0,r=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(r+1,a):n=e.slice(r+1,a),i=a-r-1;r=a,o=0}else l===46&&o>-1?o++:o=-1}return n}function Ll(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const aM={cwd:lM};function lM(){return"/"}function Ip(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function sM(e){if(typeof e=="string")e=new URL(e);else if(!Ip(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return uM(e)}function uM(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}const Md=["history","path","basename","stem","extname","dirname"];class tI{constructor(t){let n;t?Ip(t)?n={path:t}:typeof t=="string"||cM(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":aM.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Md.length;){const o=Md[i];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let r;for(r in n)Md.includes(r)||(this[r]=n[r])}get basename(){return typeof this.path=="string"?bn.basename(this.path):void 0}set basename(t){Bd(t,"basename"),Zd(t,"basename"),this.path=bn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?bn.dirname(this.path):void 0}set dirname(t){Jx(this.basename,"dirname"),this.path=bn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?bn.extname(this.path):void 0}set extname(t){if(Zd(t,"extname"),Jx(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=bn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ip(t)&&(t=sM(t)),Bd(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?bn.basename(this.path,this.extname):void 0}set stem(t){Bd(t,"stem"),Zd(t,"stem"),this.path=bn.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const r=this.message(t,n,i);throw r.fatal=!0,r}info(t,n,i){const r=this.message(t,n,i);return r.fatal=void 0,r}message(t,n,i){const r=new at(t,n,i);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Zd(e,t){if(e&&e.includes(bn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+bn.sep+"`")}function Bd(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Jx(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function cM(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const dM=function(e){const i=this.constructor.prototype,r=i[e],o=function(){return r.apply(o,arguments)};return Object.setPrototypeOf(o,i),o},fM={}.hasOwnProperty;class Hg extends dM{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=X3()}copy(){const t=new Hg;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(Fd(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(qd("data",this.frozen),this.namespace[t]=n,this):fM.call(this.namespace,t)&&this.namespace[t]||void 0:t?(qd("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const r=n.call(t,...i);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=ys(t),i=this.parser||this.Parser;return Vd("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),Vd("process",this.parser||this.Parser),Hd("process",this.compiler||this.Compiler),n?r(void 0,n):new Promise(r);function r(o,a){const l=ys(t),s=i.parse(l);i.run(s,l,function(d,c,p){if(d||!c||!p)return u(d);const m=c,h=i.stringify(m,p);hM(h)?p.value=h:p.result=h,u(d,p)});function u(d,c){d||!c?a(d):o?o(c):n(void 0,c)}}}processSync(t){let n=!1,i;return this.freeze(),Vd("processSync",this.parser||this.Parser),Hd("processSync",this.compiler||this.Compiler),this.process(t,r),Qx("processSync","process",n),i;function r(o,a){n=!0,Zx(o),i=a}}run(t,n,i){Kx(t),this.freeze();const r=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?o(void 0,i):new Promise(o);function o(a,l){const s=ys(n);r.run(t,s,u);function u(d,c,p){const m=c||t;d?l(d):a?a(m):i(void 0,m,p)}}}runSync(t,n){let i=!1,r;return this.run(t,n,o),Qx("runSync","run",i),r;function o(a,l){Zx(a),r=l,i=!0}}stringify(t,n){this.freeze();const i=ys(n),r=this.compiler||this.Compiler;return Hd("stringify",r),Kx(t),r(t,i)}use(t,...n){const i=this.attachers,r=this.namespace;if(qd("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...c]=u;s(d,c)}else a(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function a(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(u.plugins),u.settings&&(r.settings=Fd(!0,r.settings,u.settings))}function l(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const c=u[d];o(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,d){let c=-1,p=-1;for(;++c<i.length;)if(i[c][0]===u){p=c;break}if(p===-1)i.push([u,...d]);else if(d.length>0){let[m,...h]=d;const g=i[p][1];Np(g)&&Np(m)&&(m=Fd(!0,g,m)),i[p]=[u,m,...h]}}}}const pM=new Hg().freeze();function Vd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Hd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function qd(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Kx(e){if(!Np(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Qx(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ys(e){return mM(e)?e:new tI(e)}function mM(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function hM(e){return typeof e=="string"||gM(e)}function gM(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const vM="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Xx=[],Yx={allowDangerousHtml:!0},yM=/^(https?|ircs?|mailto|xmpp)$/i,xM=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function e0(e){const t=bM(e),n=kM(e);return wM(t.runSync(t.parse(n),n),e)}function bM(e){const t=e.rehypePlugins||Xx,n=e.remarkPlugins||Xx,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Yx}:Yx;return pM().use(n3).use(n).use(K3,i).use(t)}function kM(e){const t=e.children||"",n=new tI;return typeof t=="string"&&(n.value=t),n}function wM(e,t){const n=t.allowedElements,i=t.allowElement,r=t.components,o=t.disallowedElements,a=t.skipHtml,l=t.unwrapDisallowed,s=t.urlTransform||_M;for(const d of xM)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+vM+d.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),Vg(e,u),UL(e,{Fragment:f.Fragment,components:r,ignoreInvalidStyle:!0,jsx:f.jsx,jsxs:f.jsxs,passKeys:!0,passNode:!0});function u(d,c,p){if(d.type==="raw"&&p&&typeof c=="number")return a?p.children.splice(c,1):p.children[c]={type:"text",value:d.value},c;if(d.type==="element"){let m;for(m in Dd)if(Object.hasOwn(Dd,m)&&Object.hasOwn(d.properties,m)){const h=d.properties[m],g=Dd[m];(g===null||g.includes(d.tagName))&&(d.properties[m]=s(String(h||""),m,d))}}if(d.type==="element"){let m=n?!n.includes(d.tagName):o?o.includes(d.tagName):!1;if(!m&&i&&typeof c=="number"&&(m=!i(d,c,p)),m&&p&&typeof c=="number")return l&&d.children?p.children.splice(c,1,...d.children):p.children.splice(c,1),c}}}function _M(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),r=e.indexOf("/");return t===-1||r!==-1&&t>r||n!==-1&&t>n||i!==-1&&t>i||yM.test(e.slice(0,t))?e:""}function t0(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,r=n.indexOf(t);for(;r!==-1;)i++,r=n.indexOf(t,r+t.length);return i}function $M(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function SM(e,t,n){const r=Jc((n||{}).ignore||[]),o=jM(t);let a=-1;for(;++a<o.length;)YN(e,"text",l);function l(u,d){let c=-1,p;for(;++c<d.length;){const m=d[c],h=p?p.children:void 0;if(r(m,h?h.indexOf(m):void 0,p))return;p=m}if(p)return s(u,d)}function s(u,d){const c=d[d.length-1],p=o[a][0],m=o[a][1];let h=0;const w=c.children.indexOf(u);let v=!1,y=[];p.lastIndex=0;let x=p.exec(u.value);for(;x;){const k=x.index,I={index:x.index,input:x.input,stack:[...d,u]};let N=m(...x,I);if(typeof N=="string"&&(N=N.length>0?{type:"text",value:N}:void 0),N===!1?p.lastIndex=k+1:(h!==k&&y.push({type:"text",value:u.value.slice(h,k)}),Array.isArray(N)?y.push(...N):N&&y.push(N),h=k+x[0].length,v=!0),!p.global)break;x=p.exec(u.value)}return v?(h<u.value.length&&y.push({type:"text",value:u.value.slice(h)}),c.children.splice(w,1,...y)):y=[u],w+y.length}}function jM(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const r=n[i];t.push([NM(r[0]),IM(r[1])])}return t}function NM(e){return typeof e=="string"?new RegExp($M(e),"g"):e}function IM(e){return typeof e=="function"?e:function(){return e}}const Wd="phrasing",Gd=["autolink","link","image","label"];function EM(){return{transforms:[AM],enter:{literalAutolink:zM,literalAutolinkEmail:Jd,literalAutolinkHttp:Jd,literalAutolinkWww:Jd},exit:{literalAutolink:RM,literalAutolinkEmail:TM,literalAutolinkHttp:PM,literalAutolinkWww:OM}}}function CM(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Wd,notInConstruct:Gd},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Wd,notInConstruct:Gd},{character:":",before:"[ps]",after:"\\/",inConstruct:Wd,notInConstruct:Gd}]}}function zM(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Jd(e){this.config.enter.autolinkProtocol.call(this,e)}function PM(e){this.config.exit.autolinkProtocol.call(this,e)}function OM(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function TM(e){this.config.exit.autolinkEmail.call(this,e)}function RM(e){this.exit(e)}function AM(e){SM(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,DM],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),LM]],{ignore:["link","linkReference"]})}function DM(e,t,n,i,r){let o="";if(!nI(r)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!UM(n)))return!1;const a=FM(n+i);if(!a[0])return!1;const l={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[l,{type:"text",value:a[1]}]:l}function LM(e,t,n,i){return!nI(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function UM(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function FM(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const r=t0(e,"(");let o=t0(e,")");for(;i!==-1&&r>o;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),o++;return[e,n]}function nI(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ni(n)||qc(n))&&(!t||n!==47)}rI.peek=JM;function MM(){this.buffer()}function ZM(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function BM(){this.buffer()}function VM(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function HM(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=cn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function qM(e){this.exit(e)}function WM(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=cn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function GM(e){this.exit(e)}function JM(){return"["}function rI(e,t,n,i){const r=n.createTracker(i);let o=r.move("[^");const a=n.enter("footnoteReference"),l=n.enter("reference");return o+=r.move(n.safe(n.associationId(e),{after:"]",before:o})),l(),a(),o+=r.move("]"),o}function KM(){return{enter:{gfmFootnoteCallString:MM,gfmFootnoteCall:ZM,gfmFootnoteDefinitionLabelString:BM,gfmFootnoteDefinition:VM},exit:{gfmFootnoteCallString:HM,gfmFootnoteCall:qM,gfmFootnoteDefinitionLabelString:WM,gfmFootnoteDefinition:GM}}}function QM(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:rI},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,r,o,a){const l=o.createTracker(a);let s=l.move("[^");const u=o.enter("footnoteDefinition"),d=o.enter("label");return s+=l.move(o.safe(o.associationId(i),{before:s,after:"]"})),d(),s+=l.move("]:"),i.children&&i.children.length>0&&(l.shift(4),s+=l.move((t?`
211
+ `:" ")+o.indentLines(o.containerFlow(i,l.current()),t?iI:XM))),u(),s}}function XM(e,t,n){return t===0?e:iI(e,t,n)}function iI(e,t,n){return(n?"":" ")+e}const YM=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];oI.peek=i5;function e5(){return{canContainEols:["delete"],enter:{strikethrough:n5},exit:{strikethrough:r5}}}function t5(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:YM}],handlers:{delete:oI}}}function n5(e){this.enter({type:"delete",children:[]},e)}function r5(e){this.exit(e)}function oI(e,t,n,i){const r=n.createTracker(i),o=n.enter("strikethrough");let a=r.move("~~");return a+=n.containerPhrasing(e,{...r.current(),before:a,after:"~"}),a+=r.move("~~"),o(),a}function i5(){return"~"}function o5(e){return e.length}function a5(e,t){const n=t||{},i=(n.align||[]).concat(),r=n.stringLength||o5,o=[],a=[],l=[],s=[];let u=0,d=-1;for(;++d<e.length;){const g=[],w=[];let v=-1;for(e[d].length>u&&(u=e[d].length);++v<e[d].length;){const y=l5(e[d][v]);if(n.alignDelimiters!==!1){const x=r(y);w[v]=x,(s[v]===void 0||x>s[v])&&(s[v]=x)}g.push(y)}a[d]=g,l[d]=w}let c=-1;if(typeof i=="object"&&"length"in i)for(;++c<u;)o[c]=n0(i[c]);else{const g=n0(i);for(;++c<u;)o[c]=g}c=-1;const p=[],m=[];for(;++c<u;){const g=o[c];let w="",v="";g===99?(w=":",v=":"):g===108?w=":":g===114&&(v=":");let y=n.alignDelimiters===!1?1:Math.max(1,s[c]-w.length-v.length);const x=w+"-".repeat(y)+v;n.alignDelimiters!==!1&&(y=w.length+y+v.length,y>s[c]&&(s[c]=y),m[c]=y),p[c]=x}a.splice(1,0,p),l.splice(1,0,m),d=-1;const h=[];for(;++d<a.length;){const g=a[d],w=l[d];c=-1;const v=[];for(;++c<u;){const y=g[c]||"";let x="",k="";if(n.alignDelimiters!==!1){const I=s[c]-(w[c]||0),N=o[c];N===114?x=" ".repeat(I):N===99?I%2?(x=" ".repeat(I/2+.5),k=" ".repeat(I/2-.5)):(x=" ".repeat(I/2),k=x):k=" ".repeat(I)}n.delimiterStart!==!1&&!c&&v.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&y==="")&&(n.delimiterStart!==!1||c)&&v.push(" "),n.alignDelimiters!==!1&&v.push(x),v.push(y),n.alignDelimiters!==!1&&v.push(k),n.padding!==!1&&v.push(" "),(n.delimiterEnd!==!1||c!==u-1)&&v.push("|")}h.push(n.delimiterEnd===!1?v.join("").replace(/ +$/,""):v.join(""))}return h.join(`
212
+ `)}function l5(e){return e==null?"":String(e)}function n0(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function s5(e,t,n,i){const r=n.enter("blockquote"),o=n.createTracker(i);o.move("> "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),u5);return r(),a}function u5(e,t,n){return">"+(n?"":" ")+e}function c5(e,t){return r0(e,t.inConstruct,!0)&&!r0(e,t.notInConstruct,!1)}function r0(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function i0(e,t,n,i){let r=-1;for(;++r<n.unsafe.length;)if(n.unsafe[r].character===`
213
+ `&&c5(n.stack,n.unsafe[r]))return/[ \t]/.test(i.before)?"":" ";return`\\
214
+ `}function d5(e,t){const n=String(e);let i=n.indexOf(t),r=i,o=0,a=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===r?++o>a&&(a=o):o=1,r=i+t.length,i=n.indexOf(t,r);return a}function f5(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function p5(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function m5(e,t,n,i){const r=p5(n),o=e.value||"",a=r==="`"?"GraveAccent":"Tilde";if(f5(e,n)){const c=n.enter("codeIndented"),p=n.indentLines(o,h5);return c(),p}const l=n.createTracker(i),s=r.repeat(Math.max(d5(o,r)+1,3)),u=n.enter("codeFenced");let d=l.move(s);if(e.lang){const c=n.enter(`codeFencedLang${a}`);d+=l.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...l.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${a}`);d+=l.move(" "),d+=l.move(n.safe(e.meta,{before:d,after:`
215
+ `,encode:["`"],...l.current()})),c()}return d+=l.move(`
216
+ `),o&&(d+=l.move(o+`
217
+ `)),d+=l.move(s),u(),d}function h5(e,t,n){return(n?"":" ")+e}function qg(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function g5(e,t,n,i){const r=qg(n),o=r==='"'?"Quote":"Apostrophe",a=n.enter("definition");let l=n.enter("label");const s=n.createTracker(i);let u=s.move("[");return u+=s.move(n.safe(n.associationId(e),{before:u,after:"]",...s.current()})),u+=s.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":`
218
+ `,...s.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=s.move(" "+r),u+=s.move(n.safe(e.title,{before:u,after:r,...s.current()})),u+=s.move(r),l()),a(),u}function v5(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Ya(e){return"&#x"+e.toString(16).toUpperCase()+";"}function _u(e,t,n){const i=Ao(e),r=Ao(t);return i===void 0?r===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}aI.peek=y5;function aI(e,t,n,i){const r=v5(n),o=n.enter("emphasis"),a=n.createTracker(i),l=a.move(r);let s=a.move(n.containerPhrasing(e,{after:r,before:l,...a.current()}));const u=s.charCodeAt(0),d=_u(i.before.charCodeAt(i.before.length-1),u,r);d.inside&&(s=Ya(u)+s.slice(1));const c=s.charCodeAt(s.length-1),p=_u(i.after.charCodeAt(0),c,r);p.inside&&(s=s.slice(0,-1)+Ya(c));const m=a.move(r);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:d.outside},l+s+m}function y5(e,t,n){return n.options.emphasis||"*"}function x5(e,t){let n=!1;return Vg(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,Sp}),!!((!e.depth||e.depth<3)&&Dg(e)&&(t.options.setext||n))}function b5(e,t,n,i){const r=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(i);if(x5(e,n)){const d=n.enter("headingSetext"),c=n.enter("phrasing"),p=n.containerPhrasing(e,{...o.current(),before:`
219
+ `,after:`
220
+ `});return c(),d(),p+`
221
+ `+(r===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
222
+ `))+1))}const a="#".repeat(r),l=n.enter("headingAtx"),s=n.enter("phrasing");o.move(a+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
223
+ `,...o.current()});return/^[\t ]/.test(u)&&(u=Ya(u.charCodeAt(0))+u.slice(1)),u=u?a+" "+u:a,n.options.closeAtx&&(u+=" "+a),s(),l(),u}lI.peek=k5;function lI(e){return e.value||""}function k5(){return"<"}sI.peek=w5;function sI(e,t,n,i){const r=qg(n),o=r==='"'?"Quote":"Apostrophe",a=n.enter("image");let l=n.enter("label");const s=n.createTracker(i);let u=s.move("![");return u+=s.move(n.safe(e.alt,{before:u,after:"]",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=s.move(" "+r),u+=s.move(n.safe(e.title,{before:u,after:r,...s.current()})),u+=s.move(r),l()),u+=s.move(")"),a(),u}function w5(){return"!"}uI.peek=_5;function uI(e,t,n,i){const r=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const l=n.createTracker(i);let s=l.move("![");const u=n.safe(e.alt,{before:s,after:"]",...l.current()});s+=l.move(u+"]["),a();const d=n.stack;n.stack=[],a=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...l.current()});return a(),n.stack=d,o(),r==="full"||!u||u!==c?s+=l.move(c+"]"):r==="shortcut"?s=s.slice(0,-1):s+=l.move("]"),s}function _5(){return"!"}cI.peek=$5;function cI(e,t,n){let i=e.value||"",r="`",o=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(i);)r+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++o<n.unsafe.length;){const a=n.unsafe[o],l=n.compilePattern(a);let s;if(a.atBreak)for(;s=l.exec(i);){let u=s.index;i.charCodeAt(u)===10&&i.charCodeAt(u-1)===13&&u--,i=i.slice(0,u)+" "+i.slice(s.index+1)}}return r+i+r}function $5(){return"`"}function dI(e,t){const n=Dg(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}fI.peek=S5;function fI(e,t,n,i){const r=qg(n),o=r==='"'?"Quote":"Apostrophe",a=n.createTracker(i);let l,s;if(dI(e,n)){const d=n.stack;n.stack=[],l=n.enter("autolink");let c=a.move("<");return c+=a.move(n.containerPhrasing(e,{before:c,after:">",...a.current()})),c+=a.move(">"),l(),n.stack=d,c}l=n.enter("link"),s=n.enter("label");let u=a.move("[");return u+=a.move(n.containerPhrasing(e,{before:u,after:"](",...a.current()})),u+=a.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(s=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=a.move(" "+r),u+=a.move(n.safe(e.title,{before:u,after:r,...a.current()})),u+=a.move(r),s()),u+=a.move(")"),l(),u}function S5(e,t,n){return dI(e,n)?"<":"["}pI.peek=j5;function pI(e,t,n,i){const r=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const l=n.createTracker(i);let s=l.move("[");const u=n.containerPhrasing(e,{before:s,after:"]",...l.current()});s+=l.move(u+"]["),a();const d=n.stack;n.stack=[],a=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...l.current()});return a(),n.stack=d,o(),r==="full"||!u||u!==c?s+=l.move(c+"]"):r==="shortcut"?s=s.slice(0,-1):s+=l.move("]"),s}function j5(){return"["}function Wg(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function N5(e){const t=Wg(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function I5(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function mI(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function E5(e,t,n,i){const r=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?I5(n):Wg(n);const l=e.ordered?a==="."?")":".":N5(n);let s=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(s=!0),mI(n)===a&&d){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(a=l),n.bulletCurrent=a;const u=n.containerFlow(e,i);return n.bulletLastUsed=a,n.bulletCurrent=o,r(),u}function C5(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function z5(e,t,n,i){const r=C5(n);let o=n.bulletCurrent||Wg(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(r==="tab"||r==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const l=n.createTracker(i);l.move(o+" ".repeat(a-o.length)),l.shift(a);const s=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,l.current()),d);return s(),u;function d(c,p,m){return p?(m?"":" ".repeat(a))+c:(m?o:o+" ".repeat(a-o.length))+c}}function P5(e,t,n,i){const r=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,i);return o(),r(),a}const O5=Jc(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function T5(e,t,n,i){return(e.children.some(function(a){return O5(a)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function R5(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}hI.peek=A5;function hI(e,t,n,i){const r=R5(n),o=n.enter("strong"),a=n.createTracker(i),l=a.move(r+r);let s=a.move(n.containerPhrasing(e,{after:r,before:l,...a.current()}));const u=s.charCodeAt(0),d=_u(i.before.charCodeAt(i.before.length-1),u,r);d.inside&&(s=Ya(u)+s.slice(1));const c=s.charCodeAt(s.length-1),p=_u(i.after.charCodeAt(0),c,r);p.inside&&(s=s.slice(0,-1)+Ya(c));const m=a.move(r+r);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:d.outside},l+s+m}function A5(e,t,n){return n.options.strong||"*"}function D5(e,t,n,i){return n.safe(e.value,i)}function L5(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function U5(e,t,n){const i=(mI(n)+(n.options.ruleSpaces?" ":"")).repeat(L5(n));return n.options.ruleSpaces?i.slice(0,-1):i}const gI={blockquote:s5,break:i0,code:m5,definition:g5,emphasis:aI,hardBreak:i0,heading:b5,html:lI,image:sI,imageReference:uI,inlineCode:cI,link:fI,linkReference:pI,list:E5,listItem:z5,paragraph:P5,root:T5,strong:hI,text:D5,thematicBreak:U5};function F5(){return{enter:{table:M5,tableData:o0,tableHeader:o0,tableRow:B5},exit:{codeText:V5,table:Z5,tableData:Kd,tableHeader:Kd,tableRow:Kd}}}function M5(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Z5(e){this.exit(e),this.data.inTable=void 0}function B5(e){this.enter({type:"tableRow",children:[]},e)}function Kd(e){this.exit(e)}function o0(e){this.enter({type:"tableCell",children:[]},e)}function V5(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,H5));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function H5(e,t){return t==="|"?t:e}function q5(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,r=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
224
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:a,tableCell:s,tableRow:l}};function a(m,h,g,w){return u(d(m,g,w),m.align)}function l(m,h,g,w){const v=c(m,g,w),y=u([v]);return y.slice(0,y.indexOf(`
225
+ `))}function s(m,h,g,w){const v=g.enter("tableCell"),y=g.enter("phrasing"),x=g.containerPhrasing(m,{...w,before:o,after:o});return y(),v(),x}function u(m,h){return a5(m,{align:h,alignDelimiters:i,padding:n,stringLength:r})}function d(m,h,g){const w=m.children;let v=-1;const y=[],x=h.enter("table");for(;++v<w.length;)y[v]=c(w[v],h,g);return x(),y}function c(m,h,g){const w=m.children;let v=-1;const y=[],x=h.enter("tableRow");for(;++v<w.length;)y[v]=s(w[v],m,h,g);return x(),y}function p(m,h,g){let w=gI.inlineCode(m,h,g);return g.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function W5(){return{exit:{taskListCheckValueChecked:a0,taskListCheckValueUnchecked:a0,paragraph:J5}}}function G5(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:K5}}}function a0(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function J5(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const r=t.children;let o=-1,a;for(;++o<r.length;){const l=r[o];if(l.type==="paragraph"){a=l;break}}a===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function K5(e,t,n,i){const r=e.children[0],o=typeof e.checked=="boolean"&&r&&r.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",l=n.createTracker(i);o&&l.move(a);let s=gI.listItem(e,t,n,{...i,...l.current()});return o&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(d){return d+a}}function Q5(){return[EM(),KM(),e5(),F5(),W5()]}function X5(e){return{extensions:[CM(),QM(e),t5(),q5(e),G5()]}}const Y5={tokenize:o9,partial:!0},vI={tokenize:a9,partial:!0},yI={tokenize:l9,partial:!0},xI={tokenize:s9,partial:!0},e9={tokenize:u9,partial:!0},bI={name:"wwwAutolink",tokenize:r9,previous:wI},kI={name:"protocolAutolink",tokenize:i9,previous:_I},lr={name:"emailAutolink",tokenize:n9,previous:$I},zn={};function t9(){return{text:zn}}let Gr=48;for(;Gr<123;)zn[Gr]=lr,Gr++,Gr===58?Gr=65:Gr===91&&(Gr=97);zn[43]=lr;zn[45]=lr;zn[46]=lr;zn[95]=lr;zn[72]=[lr,kI];zn[104]=[lr,kI];zn[87]=[lr,bI];zn[119]=[lr,bI];function n9(e,t,n){const i=this;let r,o;return a;function a(c){return!Ep(c)||!$I.call(i,i.previous)||Gg(i.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(c))}function l(c){return Ep(c)?(e.consume(c),l):c===64?(e.consume(c),s):n(c)}function s(c){return c===46?e.check(e9,d,u)(c):c===45||c===95||rt(c)?(o=!0,e.consume(c),s):d(c)}function u(c){return e.consume(c),r=!0,s}function d(c){return o&&r&&ft(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function r9(e,t,n){const i=this;return r;function r(a){return a!==87&&a!==119||!wI.call(i,i.previous)||Gg(i.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Y5,e.attempt(vI,e.attempt(yI,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function i9(e,t,n){const i=this;let r="",o=!1;return a;function a(c){return(c===72||c===104)&&_I.call(i,i.previous)&&!Gg(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(c),e.consume(c),l):n(c)}function l(c){if(ft(c)&&r.length<5)return r+=String.fromCodePoint(c),e.consume(c),l;if(c===58){const p=r.toLowerCase();if(p==="http"||p==="https")return e.consume(c),s}return n(c)}function s(c){return c===47?(e.consume(c),o?u:(o=!0,s)):n(c)}function u(c){return c===null||bu(c)||ke(c)||Ni(c)||qc(c)?n(c):e.attempt(vI,e.attempt(yI,d),n)(c)}function d(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function o9(e,t,n){let i=0;return r;function r(a){return(a===87||a===119)&&i<3?(i++,e.consume(a),r):a===46&&i===3?(e.consume(a),o):n(a)}function o(a){return a===null?n(a):t(a)}}function a9(e,t,n){let i,r,o;return a;function a(u){return u===46||u===95?e.check(xI,s,l)(u):u===null||ke(u)||Ni(u)||u!==45&&qc(u)?s(u):(o=!0,e.consume(u),a)}function l(u){return u===95?i=!0:(r=i,i=void 0),e.consume(u),a}function s(u){return r||i||!o?n(u):t(u)}}function l9(e,t){let n=0,i=0;return r;function r(a){return a===40?(n++,e.consume(a),r):a===41&&i<n?o(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(xI,t,o)(a):a===null||ke(a)||Ni(a)?t(a):(e.consume(a),r)}function o(a){return a===41&&i++,e.consume(a),r}}function s9(e,t,n){return i;function i(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),i):l===38?(e.consume(l),o):l===93?(e.consume(l),r):l===60||l===null||ke(l)||Ni(l)?t(l):n(l)}function r(l){return l===null||l===40||l===91||ke(l)||Ni(l)?t(l):i(l)}function o(l){return ft(l)?a(l):n(l)}function a(l){return l===59?(e.consume(l),i):ft(l)?(e.consume(l),a):n(l)}}function u9(e,t,n){return i;function i(o){return e.consume(o),r}function r(o){return rt(o)?n(o):t(o)}}function wI(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ke(e)}function _I(e){return!ft(e)}function $I(e){return!(e===47||Ep(e))}function Ep(e){return e===43||e===45||e===46||e===95||rt(e)}function Gg(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const c9={tokenize:y9,partial:!0};function d9(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:h9,continuation:{tokenize:g9},exit:v9}},text:{91:{name:"gfmFootnoteCall",tokenize:m9},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:f9,resolveTo:p9}}}}function f9(e,t,n){const i=this;let r=i.events.length;const o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a;for(;r--;){const s=i.events[r][1];if(s.type==="labelImage"){a=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return l;function l(s){if(!a||!a._balanced)return n(s);const u=cn(i.sliceSerialize({start:a.end,end:i.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function p9(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},l=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...l),e}function m9(e,t,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o=0,a;return l;function l(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(o>999||c===93&&!a||c===null||c===91||ke(c))return n(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return r.includes(cn(i.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return ke(c)||(a=!0),o++,e.consume(c),c===92?d:u}function d(c){return c===91||c===92||c===93?(e.consume(c),o++,u):u(c)}}function h9(e,t,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o,a=0,l;return s;function s(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(h)}function d(h){if(a>999||h===93&&!l||h===null||h===91||ke(h))return n(h);if(h===93){e.exit("chunkString");const g=e.exit("gfmFootnoteDefinitionLabelString");return o=cn(i.sliceSerialize(g)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return ke(h)||(l=!0),a++,e.consume(h),h===92?c:d}function c(h){return h===91||h===92||h===93?(e.consume(h),a++,d):d(h)}function p(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),r.includes(o)||r.push(o),pe(e,m,"gfmFootnoteDefinitionWhitespace")):n(h)}function m(h){return t(h)}}function g9(e,t,n){return e.check(Dl,t,e.attempt(c9,t,n))}function v9(e){e.exit("gfmFootnoteDefinition")}function y9(e,t,n){const i=this;return pe(e,r,"gfmFootnoteDefinitionIndent",5);function r(o){const a=i.events[i.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function x9(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:o,resolveAll:r};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function r(a,l){let s=-1;for(;++s<a.length;)if(a[s][0]==="enter"&&a[s][1].type==="strikethroughSequenceTemporary"&&a[s][1]._close){let u=s;for(;u--;)if(a[u][0]==="exit"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._open&&a[s][1].end.offset-a[s][1].start.offset===a[u][1].end.offset-a[u][1].start.offset){a[s][1].type="strikethroughSequence",a[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},a[u][1].start),end:Object.assign({},a[s][1].end)},c={type:"strikethroughText",start:Object.assign({},a[u][1].end),end:Object.assign({},a[s][1].start)},p=[["enter",d,l],["enter",a[u][1],l],["exit",a[u][1],l],["enter",c,l]],m=l.parser.constructs.insideSpan.null;m&&Ot(p,p.length,0,Wc(m,a.slice(u+1,s),l)),Ot(p,p.length,0,[["exit",c,l],["enter",a[s][1],l],["exit",a[s][1],l],["exit",d,l]]),Ot(a,u-1,s-u+3,p),s=u+p.length-2;break}}for(s=-1;++s<a.length;)a[s][1].type==="strikethroughSequenceTemporary"&&(a[s][1].type="data");return a}function o(a,l,s){const u=this.previous,d=this.events;let c=0;return p;function p(h){return u===126&&d[d.length-1][1].type!=="characterEscape"?s(h):(a.enter("strikethroughSequenceTemporary"),m(h))}function m(h){const g=Ao(u);if(h===126)return c>1?s(h):(a.consume(h),c++,m);if(c<2&&!n)return s(h);const w=a.exit("strikethroughSequenceTemporary"),v=Ao(h);return w._open=!v||v===2&&!!g,w._close=!g||g===2&&!!v,l(h)}}}class b9{constructor(){this.map=[]}add(t,n,i){k9(this,t,n,i)}consume(t){if(this.map.sort(function(o,a){return o[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let r=i.pop();for(;r;){for(const o of r)t.push(o);r=i.pop()}this.map.length=0}}function k9(e,t,n,i){let r=0;if(!(n===0&&i.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=n,e.map[r][2].push(...i);return}r+=1}e.map.push([t,n,i])}}function w9(e,t){let n=!1;const i=[];for(;t<e.length;){const r=e[t];if(n){if(r[0]==="enter")r[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=i.length-1;i[o]=i[o]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function _9(){return{flow:{null:{name:"table",tokenize:$9,resolveAll:S9}}}}function $9(e,t,n){const i=this;let r=0,o=0,a;return l;function l(_){let L=i.events.length-1;for(;L>-1;){const U=i.events[L][1].type;if(U==="lineEnding"||U==="linePrefix")L--;else break}const B=L>-1?i.events[L][1].type:null,te=B==="tableHead"||B==="tableRow"?N:s;return te===N&&i.parser.lazy[i.now().line]?n(_):te(_)}function s(_){return e.enter("tableHead"),e.enter("tableRow"),u(_)}function u(_){return _===124||(a=!0,o+=1),d(_)}function d(_){return _===null?n(_):Y(_)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),m):n(_):se(_)?pe(e,d,"whitespace")(_):(o+=1,a&&(a=!1,r+=1),_===124?(e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),a=!0,d):(e.enter("data"),c(_)))}function c(_){return _===null||_===124||ke(_)?(e.exit("data"),d(_)):(e.consume(_),_===92?p:c)}function p(_){return _===92||_===124?(e.consume(_),c):c(_)}function m(_){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(_):(e.enter("tableDelimiterRow"),a=!1,se(_)?pe(e,h,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):h(_))}function h(_){return _===45||_===58?w(_):_===124?(a=!0,e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),g):I(_)}function g(_){return se(_)?pe(e,w,"whitespace")(_):w(_)}function w(_){return _===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(_),e.exit("tableDelimiterMarker"),v):_===45?(o+=1,v(_)):_===null||Y(_)?k(_):I(_)}function v(_){return _===45?(e.enter("tableDelimiterFiller"),y(_)):I(_)}function y(_){return _===45?(e.consume(_),y):_===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(_),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(_))}function x(_){return se(_)?pe(e,k,"whitespace")(_):k(_)}function k(_){return _===124?h(_):_===null||Y(_)?!a||r!==o?I(_):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(_)):I(_)}function I(_){return n(_)}function N(_){return e.enter("tableRow"),P(_)}function P(_){return _===124?(e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),P):_===null||Y(_)?(e.exit("tableRow"),t(_)):se(_)?pe(e,P,"whitespace")(_):(e.enter("data"),A(_))}function A(_){return _===null||_===124||ke(_)?(e.exit("data"),P(_)):(e.consume(_),_===92?R:A)}function R(_){return _===92||_===124?(e.consume(_),A):A(_)}}function S9(e,t){let n=-1,i=!0,r=0,o=[0,0,0,0],a=[0,0,0,0],l=!1,s=0,u,d,c;const p=new b9;for(;++n<e.length;){const m=e[n],h=m[1];m[0]==="enter"?h.type==="tableHead"?(l=!1,s!==0&&(l0(p,t,s,u,d),d=void 0,s=0),u={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",u,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(i=!0,c=void 0,o=[0,0,0,0],a=[0,n+1,0,0],l&&(l=!1,d={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",d,t]])),r=h.type==="tableDelimiterRow"?2:d?3:1):r&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(i=!1,a[2]===0&&(o[1]!==0&&(a[0]=a[1],c=xs(p,t,o,r,void 0,c),o=[0,0,0,0]),a[2]=n)):h.type==="tableCellDivider"&&(i?i=!1:(o[1]!==0&&(a[0]=a[1],c=xs(p,t,o,r,void 0,c)),o=a,a=[o[1],n,0,0])):h.type==="tableHead"?(l=!0,s=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(s=n,o[1]!==0?(a[0]=a[1],c=xs(p,t,o,r,n,c)):a[1]!==0&&(c=xs(p,t,a,r,n,c)),r=0):r&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(a[3]=n)}for(s!==0&&l0(p,t,s,u,d),p.consume(t.events),n=-1;++n<t.events.length;){const m=t.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=w9(t.events,n))}return e}function xs(e,t,n,i,r,o){const a=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(o.end=Object.assign({},Ui(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=Ui(t.events,n[1]);if(o={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const u=Ui(t.events,n[2]),d=Ui(t.events,n[3]),c={type:l,start:Object.assign({},u),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",c,t]]),i!==2){const p=t.events[n[2]],m=t.events[n[3]];if(p[1].end=Object.assign({},m[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const h=n[2]+1,g=n[3]-n[2]-1;e.add(h,g,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return r!==void 0&&(o.end=Object.assign({},Ui(t.events,r)),e.add(r,0,[["exit",o,t]]),o=void 0),o}function l0(e,t,n,i,r){const o=[],a=Ui(t.events,n);r&&(r.end=Object.assign({},a),o.push(["exit",r,t])),i.end=Object.assign({},a),o.push(["exit",i,t]),e.add(n+1,0,o)}function Ui(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const j9={name:"tasklistCheck",tokenize:I9};function N9(){return{text:{91:j9}}}function I9(e,t,n){const i=this;return r;function r(s){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),o)}function o(s){return ke(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),a):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),a):n(s)}function a(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(s)}function l(s){return Y(s)?t(s):se(s)?e.check({tokenize:E9},t,n)(s):n(s)}}function E9(e,t,n){return pe(e,i,"whitespace");function i(r){return r===null?n(r):t(r)}}function C9(e){return TN([t9(),d9(),x9(e),_9(),N9()])}const z9={};function s0(e){const t=this,n=e||z9,i=t.data(),r=i.micromarkExtensions||(i.micromarkExtensions=[]),o=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),a=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(C9(n)),o.push(Q5()),a.push(X5(n))}const P9="composer_proxy_admin_token";function O9(){return typeof window<"u"?localStorage.getItem(P9):null}function T9({distUrl:e,version:t}){const[n,i]=S.useState(!1),[r,o]=S.useState(null),a=async l=>{l.stopPropagation(),i(!0),o(null);try{const s=O9(),u={};s&&(u.Authorization=`Bearer ${s}`);const d=await fetch(e,{headers:u});if(!d.ok)throw new Error(`Download failed: ${d.status} ${d.statusText}`);const c=await d.blob(),p=window.URL.createObjectURL(c),m=document.createElement("a");m.href=p,m.download=e.split("/").pop()||"package.zip",document.body.appendChild(m),m.click(),document.body.removeChild(m),window.URL.revokeObjectURL(p)}catch(s){o(s instanceof Error?s.message:"Download failed")}finally{i(!1)}};return r?f.jsxs("div",{className:"flex flex-col items-end gap-1",children:[f.jsx("button",{onClick:a,className:"text-red-400 hover:text-red-300 text-sm",children:"Retry"}),f.jsx("span",{className:"text-xs text-red-500",children:r})]}):f.jsx("button",{onClick:a,disabled:n,className:"btn-primary text-sm disabled:opacity-50 disabled:cursor-not-allowed",children:n?"Downloading...":`Download ${t}`})}function R9({text:e,label:t}){const[n,i]=S.useState(!1),r=async()=>{try{await navigator.clipboard.writeText(e),i(!0),setTimeout(()=>i(!1),2e3)}catch(o){console.error("Failed to copy:",o)}};return f.jsx("button",{onClick:r,className:"px-3 py-1.5 bg-slate-800 hover:bg-slate-700 border border-slate-700 rounded-lg text-sm text-slate-300 hover:text-slate-100 transition-colors flex items-center gap-2",title:n?"Copied!":`Copy ${t||"command"}`,children:n?f.jsxs(f.Fragment,{children:[f.jsx("span",{children:"✓"}),f.jsx("span",{children:"Copied!"})]}):f.jsxs(f.Fragment,{children:[f.jsx("span",{children:"📋"}),f.jsx("span",{children:"Copy"})]})})}function A9(){const{vendor:e,package:t}=Mk(),n=Cn(),i=e&&t?`${e}/${t}`:null,r=()=>{const R=n.hash;return R.startsWith("#version--")?R.replace("#version--",""):null},[o,a]=S.useState(r()),[l,s]=S.useState(!1),[u,d]=S.useState(!1);S.useEffect(()=>{const R=r();R!==o&&a(R)},[n.hash]);const c=R=>{a(R),window.location.hash=`version--${R}`},{data:p,isLoading:m}=zt({queryKey:["package",i],queryFn:()=>UP(i),enabled:!!i}),h=S.useMemo(()=>p!=null&&p.versions?[...p.versions].sort((R,_)=>{const L=/^\d+$/.test(R.version),B=/^\d+$/.test(_.version);if(L&&B){const V=parseInt(R.version,10);return parseInt(_.version,10)-V}if(L&&!B&&Sn.valid(_.version))return 1;if(!L&&B&&Sn.valid(R.version))return-1;const te=Sn.valid(R.version),U=Sn.valid(_.version);if(te&&U)return Sn.rcompare(R.version,_.version);if(te&&!U)return-1;if(!te&&U)return 1;const O=R.version.match(/^(\d+)/),G=_.version.match(/^(\d+)/);if(O&&G){const V=parseInt(O[1],10),C=parseInt(G[1],10);if(V!==C)return C-V}return _.version.localeCompare(R.version,void 0,{numeric:!0,sensitivity:"base"})}):[],[p]),g=S.useMemo(()=>h.length?o&&h.find(R=>R.version===o)||h[0]:null,[h,o]),{data:w,isLoading:v}=zt({queryKey:["readme",i,g==null?void 0:g.version],queryFn:()=>FP(i,g.version),enabled:!!i&&!!g}),y=S.useMemo(()=>!h.length||!g?!1:g.version===h[0].version,[h,g]),{data:x,isLoading:k}=zt({queryKey:["changelog",i,g==null?void 0:g.version],queryFn:()=>MP(i,g.version),enabled:!!i&&!!g&&y}),{data:I,isLoading:N}=zt({queryKey:["stats",i,g==null?void 0:g.version],queryFn:()=>ZP(i,g.version),enabled:!!i&&!!g}),P=R=>{if(!R)return[];try{const _=JSON.parse(R);return Array.isArray(_)?_:[_]}catch{return[R]}};if(m)return f.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:f.jsx("div",{className:"w-8 h-8 border-2 border-slate-600 border-t-primary-500 rounded-full animate-spin"})});if(!i)return f.jsxs("div",{className:"card p-8 text-center",children:[f.jsx("p",{className:"text-slate-400",children:"Invalid package name"}),f.jsx(jo,{to:"/packages",className:"text-primary-400 hover:text-primary-300 mt-4 inline-block",children:"← Back to packages"})]});if(!p||!g)return f.jsxs("div",{className:"card p-8 text-center",children:[f.jsxs("p",{className:"text-slate-400",children:["Package not found: ",i]}),f.jsx(jo,{to:"/packages",className:"text-primary-400 hover:text-primary-300 mt-4 inline-block",children:"← Back to packages"})]});const A=P(g.license);return f.jsxs("div",{className:"space-y-6",children:[f.jsx("div",{className:"card p-6",children:f.jsx("div",{className:"flex items-start justify-between gap-4",children:f.jsxs("div",{className:"flex-1",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-2 flex-wrap",children:[f.jsx("h1",{className:"font-display text-3xl font-bold text-slate-100",children:p.name}),f.jsx("select",{value:o||g.version,onChange:R=>c(R.target.value),className:"px-3 py-1.5 bg-slate-800 border border-slate-700 rounded-lg text-slate-100 focus:outline-none focus:ring-2 focus:ring-primary-500 text-sm",children:h.map(R=>f.jsx("option",{value:R.version,children:R.version},R.version))})]}),g.description&&f.jsx("p",{className:"text-slate-300 text-lg",children:g.description})]})})}),f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[f.jsxs("div",{className:"lg:col-span-2",children:[f.jsxs("div",{className:"card p-6",children:[f.jsx("h2",{className:"text-xl font-bold text-slate-100 mb-4",children:"README.md"}),v?f.jsx("div",{className:"flex items-center justify-center py-12",children:f.jsx("div",{className:"w-6 h-6 border-2 border-slate-600 border-t-primary-500 rounded-full animate-spin"})}):w?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:`prose prose-invert max-w-none ${l?"":"max-h-[300px] overflow-hidden relative"}`,children:[!l&&f.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-20 bg-gradient-to-t from-slate-900 to-transparent pointer-events-none"}),f.jsx(e0,{remarkPlugins:[s0],className:"markdown-content",components:{a:({node:R,..._})=>f.jsx("a",{..._,className:"text-primary-400 hover:text-primary-300",target:"_blank",rel:"noopener noreferrer"}),code:({node:R,className:_,children:L,...B})=>!_?f.jsx("code",{className:"px-1.5 py-0.5 bg-slate-800 rounded text-sm text-primary-300",...B,children:L}):f.jsx("code",{className:"block p-4 bg-slate-900 rounded-lg overflow-x-auto text-sm",...B,children:L})},children:w})]}),!l&&f.jsx("button",{onClick:()=>s(!0),className:"mt-4 text-primary-400 hover:text-primary-300 text-sm font-medium transition-colors",children:"Expand full README →"}),l&&f.jsx("button",{onClick:()=>s(!1),className:"mt-4 text-primary-400 hover:text-primary-300 text-sm font-medium transition-colors",children:"Collapse README ↑"})]}):f.jsxs("div",{className:"text-center py-12 text-slate-500",children:[f.jsx("p",{className:"mb-2",children:"📄 No README available for this version"}),f.jsx("p",{className:"text-sm text-slate-600",children:"No README file exists in this package version"})]})]}),y&&f.jsxs("div",{className:"card p-6 mt-6",children:[f.jsx("h2",{className:"text-xl font-bold text-slate-100 mb-4",children:"CHANGELOG"}),k?f.jsx("div",{className:"flex items-center justify-center py-12",children:f.jsx("div",{className:"w-6 h-6 border-2 border-slate-600 border-t-primary-500 rounded-full animate-spin"})}):x?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:`prose prose-invert max-w-none ${u?"":"max-h-[300px] overflow-hidden relative"}`,children:[!u&&f.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-20 bg-gradient-to-t from-slate-900 to-transparent pointer-events-none"}),f.jsx(e0,{remarkPlugins:[s0],className:"markdown-content",components:{a:({node:R,..._})=>f.jsx("a",{..._,className:"text-primary-400 hover:text-primary-300",target:"_blank",rel:"noopener noreferrer"}),code:({node:R,className:_,children:L,...B})=>!_?f.jsx("code",{className:"px-1.5 py-0.5 bg-slate-800 rounded text-sm text-primary-300",...B,children:L}):f.jsx("code",{className:"block p-4 bg-slate-900 rounded-lg overflow-x-auto text-sm",...B,children:L})},children:x})]}),!u&&f.jsx("button",{onClick:()=>d(!0),className:"mt-4 text-primary-400 hover:text-primary-300 text-sm font-medium transition-colors",children:"Expand full CHANGELOG →"}),u&&f.jsx("button",{onClick:()=>d(!1),className:"mt-4 text-primary-400 hover:text-primary-300 text-sm font-medium transition-colors",children:"Collapse CHANGELOG ↑"})]}):f.jsxs("div",{className:"text-center py-12 text-slate-500",children:[f.jsx("p",{className:"mb-2",children:"📝 No CHANGELOG available"}),f.jsx("p",{className:"text-sm text-slate-600",children:"No CHANGELOG file exists in this package version"})]})]})]}),f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{className:"card p-6",children:[f.jsx("h3",{className:"text-lg font-semibold text-slate-100 mb-4",children:"Get Package"}),f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm text-slate-400 mb-2",children:"Install via Composer"}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs("code",{className:"flex-1 px-3 py-2 bg-slate-900 border border-slate-700 rounded-lg text-sm text-primary-300 font-mono break-all",children:["composer require ",p.name,":",g.version]}),f.jsx(R9,{text:`composer require ${p.name}:${g.version}`})]})]}),f.jsx("div",{className:"pt-2 border-t border-slate-700",children:f.jsx(T9,{distUrl:g.dist_url,version:g.version})})]})]}),f.jsxs("div",{className:"card p-6",children:[f.jsx("h3",{className:"text-lg font-semibold text-slate-100 mb-4",children:"About Package"}),f.jsxs("div",{className:"space-y-4",children:[g.package_type&&f.jsxs("div",{children:[f.jsx("span",{className:"text-sm text-slate-400 block mb-1",children:"Type"}),f.jsx("span",{className:"px-3 py-1 text-sm bg-slate-700 text-slate-200 rounded-lg inline-block",children:g.package_type})]}),A.length>0&&f.jsxs("div",{children:[f.jsx("span",{className:"text-sm text-slate-400 block mb-1",children:"License"}),f.jsx("span",{className:"px-3 py-1 text-sm bg-slate-700 text-slate-200 rounded-lg inline-block",children:A.join(", ")})]}),g.homepage&&f.jsxs("div",{children:[f.jsx("span",{className:"text-sm text-slate-400 block mb-1",children:"Homepage"}),f.jsxs("a",{href:g.homepage,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-primary-400 hover:text-primary-300 transition-colors text-sm",children:[f.jsx("span",{children:"🌐"}),f.jsx("span",{children:g.homepage}),f.jsx("span",{className:"text-slate-500",children:"→"})]})]}),f.jsxs("div",{className:"pt-2 border-t border-slate-700 space-y-2",children:[f.jsx("span",{className:"text-sm text-slate-400 block mb-1",children:"Statistics"}),N?f.jsxs("div",{className:"flex items-center gap-2 text-sm text-slate-500",children:[f.jsx("div",{className:"w-4 h-4 border-2 border-slate-600 border-t-primary-500 rounded-full animate-spin"}),f.jsx("span",{children:"Loading stats..."})]}):I?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"text-sm",children:[f.jsx("span",{className:"text-slate-400",children:"Downloads: "}),f.jsx("span",{className:"text-slate-200 font-medium",children:I.downloads.toLocaleString()})]}),I.lastDownloadedAt?f.jsxs("div",{className:"text-sm",children:[f.jsx("span",{className:"text-slate-400",children:"Last downloaded: "}),f.jsx("span",{className:"text-slate-200",children:new Date(I.lastDownloadedAt*1e3).toLocaleDateString()})]}):f.jsx("div",{className:"text-sm text-slate-500",children:"Never downloaded"})]}):f.jsx("div",{className:"text-sm text-slate-500",children:"No download statistics available"})]})]})]}),f.jsxs("div",{className:"card p-6",children:[f.jsxs("h3",{className:"text-lg font-semibold text-slate-100 mb-4",children:["Versions (",h.length,")"]}),f.jsx("div",{className:"space-y-2 max-h-96 overflow-y-auto",children:h.map(R=>f.jsx("button",{onClick:()=>c(R.version),className:`w-full text-left px-3 py-2 rounded-lg transition-colors ${(o||g.version)===R.version?"bg-primary-500/20 text-primary-400":"bg-slate-800/50 text-slate-300 hover:bg-slate-800"}`,children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"font-medium",children:R.version}),R.released_at&&f.jsx("span",{className:"text-xs text-slate-500",children:new Date(R.released_at*1e3).toLocaleDateString()})]})},R.version))})]})]})]})]})}function D9({onSuccess:e}){const{login:t,authError:n}=Vo(),[i,r]=S.useState(""),[o,a]=S.useState(""),[l,s]=S.useState(""),[u,d]=S.useState(null),[c,p]=S.useState(!1),m=async h=>{h.preventDefault(),u!=="2FA required"&&d(null),p(!0);try{const g=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,password:o,code:l})}),w=await g.json();g.ok&&w.token?(t(w.token),e()):w.code==="2fa_required"?d("2FA required"):d(w.message||w.error||"Invalid credentials")}catch{d("Failed to connect to server")}finally{p(!1)}};return f.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900",children:f.jsx("div",{className:"max-w-md w-full mx-4",children:f.jsxs("div",{className:"bg-slate-800/50 backdrop-blur-sm rounded-2xl shadow-2xl border border-slate-700/50 p-8",children:[f.jsxs("div",{className:"text-center mb-8",children:[f.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-gradient-to-br from-orange-500 to-amber-600 mb-4",children:f.jsx(wi,{className:"w-8 h-8 text-white"})}),f.jsx("h1",{className:"text-2xl font-bold text-white",children:"Composer Proxy"}),f.jsx("p",{className:"text-slate-400 mt-1",children:"Sign in to manage your packages"})]}),f.jsxs("form",{onSubmit:m,className:"space-y-5","data-testid":"login-form",children:[n&&f.jsxs("div",{role:"alert","aria-live":"polite","data-testid":"auth-context-error",className:"bg-red-500/10 border border-red-500/50 rounded-lg p-4 text-red-400 text-sm mb-4",children:["Auth Error: ",n]}),u&&f.jsx("div",{role:"alert","aria-live":"polite","data-testid":"login-error",className:"bg-red-500/10 border border-red-500/50 rounded-lg p-4 text-red-400 text-sm",children:u}),f.jsxs("div",{children:[f.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-slate-300 mb-2",children:"Email"}),f.jsx("input",{id:"email",type:"email",value:i,onChange:h=>r(h.target.value),className:"w-full px-4 py-3 bg-slate-900/50 border border-slate-600 rounded-lg text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-orange-500 focus:border-transparent transition",placeholder:"admin@example.com",required:!0,"aria-label":"Email address",disabled:c})]}),f.jsxs("div",{children:[f.jsx("label",{htmlFor:"password",className:"block text-sm font-medium text-slate-300 mb-2",children:"Password"}),f.jsx("input",{id:"password",type:"password",value:o,onChange:h=>a(h.target.value),className:"w-full px-4 py-3 bg-slate-900/50 border border-slate-600 rounded-lg text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-orange-500 focus:border-transparent transition",placeholder:"Enter your password",required:!0,"aria-label":"Password",disabled:c})]}),u==="2FA required"&&f.jsxs("div",{className:"animate-in fade-in slide-in-from-top-2 duration-300",children:[f.jsx("label",{htmlFor:"code",className:"block text-sm font-medium text-slate-300 mb-2",children:"2FA Code"}),f.jsx("input",{id:"code",type:"text",value:l,onChange:h=>s(h.target.value),className:"w-full px-4 py-3 bg-slate-900/50 border border-slate-600 rounded-lg text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-orange-500 focus:border-transparent transition",placeholder:"000000",required:!0,autoFocus:!0,maxLength:6,pattern:"\\d{6}","aria-label":"2FA Code",disabled:c})]}),f.jsx("button",{type:"submit",disabled:c||!i||!o||u==="2FA required"&&l.length!==6,className:"w-full py-3 px-4 bg-gradient-to-r from-orange-500 to-amber-600 hover:from-orange-600 hover:to-amber-700 text-white font-semibold rounded-lg shadow-lg shadow-orange-500/25 transition disabled:opacity-50 disabled:cursor-not-allowed","aria-label":"Sign in",children:c?"Signing in...":"Sign In"})]})]})})})}function L9(){const{token:e}=Mk(),t=jm(),[n,i]=S.useState(""),[r,o]=S.useState(""),[a,l]=S.useState(""),[s,u]=S.useState(!1),[d]=Sz(),c=d.get("token"),p=e||c,m=async h=>{if(h.preventDefault(),!p){l("Invalid invite link");return}if(n!==r){l("Passwords do not match");return}if(n.length<8){l("Password must be at least 8 characters");return}u(!0),l("");try{await QP(p,n),t("/login",{state:{message:"Password set successfully! Please login."}})}catch(g){l(g.message||"Failed to accept invite")}finally{u(!1)}};return p?f.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900",children:f.jsx("div",{className:"max-w-md w-full mx-4",children:f.jsxs("div",{className:"bg-slate-800/50 backdrop-blur-sm rounded-2xl shadow-2xl border border-slate-700/50 p-8",children:[f.jsxs("div",{className:"text-center mb-8",children:[f.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-gradient-to-br from-orange-500 to-amber-600 mb-4",children:f.jsx(wi,{className:"w-8 h-8 text-white"})}),f.jsx("h1",{className:"text-2xl font-bold text-white",children:"Welcome"}),f.jsx("p",{className:"text-slate-400 mt-1",children:"Set your password to accept the invitation"})]}),f.jsxs("form",{className:"space-y-5",onSubmit:m,children:[f.jsxs("div",{children:[f.jsx("label",{htmlFor:"password",className:"block text-sm font-medium text-slate-300 mb-2",children:"New Password"}),f.jsx("input",{id:"password",name:"password",type:"password",required:!0,value:n,onChange:h=>i(h.target.value),className:"w-full px-4 py-3 bg-slate-900/50 border border-slate-600 rounded-lg text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-orange-500 focus:border-transparent transition",placeholder:"Minimum 8 characters",minLength:8})]}),f.jsxs("div",{children:[f.jsx("label",{htmlFor:"confirmPassword",className:"block text-sm font-medium text-slate-300 mb-2",children:"Confirm Password"}),f.jsx("input",{id:"confirmPassword",name:"confirmPassword",type:"password",required:!0,value:r,onChange:h=>o(h.target.value),className:"w-full px-4 py-3 bg-slate-900/50 border border-slate-600 rounded-lg text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-orange-500 focus:border-transparent transition",placeholder:"Confirm your password"})]}),a&&f.jsx("div",{className:"bg-red-500/10 border border-red-500/50 rounded-lg p-4 text-red-400 text-sm",children:a}),f.jsx("button",{type:"submit",disabled:s,className:"w-full py-3 px-4 bg-gradient-to-r from-orange-500 to-amber-600 hover:from-orange-600 hover:to-amber-700 text-white font-semibold rounded-lg shadow-lg shadow-orange-500/25 transition disabled:opacity-50 disabled:cursor-not-allowed",children:s?"Setting password...":"Set Password and Login"})]})]})})}):f.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900",children:f.jsx("div",{className:"max-w-md w-full mx-4",children:f.jsxs("div",{className:"bg-slate-800/50 backdrop-blur-sm rounded-2xl shadow-2xl border border-slate-700/50 p-8 text-center",children:[f.jsx("h2",{className:"text-2xl font-bold text-white mb-2",children:"Invalid Invite Link"}),f.jsx("p",{className:"text-slate-400",children:"Please check the link in your email."})]})})})}function U9({onSuccess:e}){const[t,n]=S.useState(""),[i,r]=S.useState(""),[o,a]=S.useState(null),[l,s]=S.useState(!1),u=async d=>{d.preventDefault(),a(null),s(!0);try{await IP({email:t,password:i}),e()}catch(c){a(c.message||"Failed to complete setup")}finally{s(!1)}};return f.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900",children:f.jsx("div",{className:"max-w-md w-full mx-4",children:f.jsxs("div",{className:"bg-slate-800/50 backdrop-blur-sm rounded-2xl shadow-2xl border border-slate-700/50 p-8",children:[f.jsxs("div",{className:"text-center mb-8",children:[f.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-gradient-to-br from-green-500 to-emerald-600 mb-4",children:f.jsx(wi,{className:"w-8 h-8 text-white"})}),f.jsx("h1",{className:"text-2xl font-bold text-white",children:"Welcome!"}),f.jsx("p",{className:"text-slate-400 mt-1",children:"Create your Admin account to get started"})]}),f.jsxs("form",{onSubmit:u,className:"space-y-5","data-testid":"setup-form",children:[o&&f.jsx("div",{role:"alert","aria-live":"polite","data-testid":"setup-error",className:"bg-red-500/10 border border-red-500/50 rounded-lg p-4 text-red-400 text-sm",children:o}),f.jsxs("div",{children:[f.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-slate-300 mb-2",children:"Admin Email"}),f.jsx("input",{id:"email",type:"email",value:t,onChange:d=>n(d.target.value),className:"w-full px-4 py-3 bg-slate-900/50 border border-slate-600 rounded-lg text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-green-500 focus:border-transparent transition",placeholder:"admin@example.com",required:!0,"aria-label":"Email address"})]}),f.jsxs("div",{children:[f.jsx("label",{htmlFor:"password",className:"block text-sm font-medium text-slate-300 mb-2",children:"Create Password"}),f.jsx("input",{id:"password",type:"password",value:i,onChange:d=>r(d.target.value),className:"w-full px-4 py-3 bg-slate-900/50 border border-slate-600 rounded-lg text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-green-500 focus:border-transparent transition",placeholder:"Choose a strong password",required:!0,minLength:8,"aria-label":"Password"})]}),f.jsx("button",{type:"submit",disabled:l||!t||!i,className:"w-full py-3 px-4 bg-gradient-to-r from-green-500 to-emerald-600 hover:from-green-600 hover:to-emerald-700 text-white font-semibold rounded-lg shadow-lg shadow-green-500/25 transition disabled:opacity-50 disabled:cursor-not-allowed","aria-label":"Create Account",children:l?"Setting up...":"Create Account"})]})]})})})}function F9(){const[e,t]=S.useState([]),[n,i]=S.useState(!0),[r,o]=S.useState(null),[a,l]=S.useState(!1),{isAdmin:s}=Vo(),[u,d]=S.useState(""),[c,p]=S.useState("viewer"),[m,h]=S.useState(!1);S.useEffect(()=>{g()},[]);const g=async()=>{try{const y=await HP();t(y)}catch(y){o(y.message)}finally{i(!1)}},w=async y=>{if(window.confirm("Are you sure you want to delete this user?"))try{await WP(y),t(e.filter(x=>x.id!==y))}catch(x){alert(x.message)}},v=async y=>{y.preventDefault(),h(!0);try{await qP({email:u,role:c}),l(!1),d(""),g(),alert("User invited successfully. They will receive an email to set their password.")}catch(x){alert(x.message)}finally{h(!1)}};return n?f.jsx("div",{className:"text-slate-400",children:"Loading users..."}):f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"text-2xl font-bold text-slate-100",children:"Users"}),f.jsx("p",{className:"text-slate-400",children:"Manage access to the Composer Proxy"})]}),s&&f.jsxs("button",{onClick:()=>l(!0),className:"flex items-center gap-2 px-4 py-2 bg-primary-600 hover:bg-primary-500 text-white rounded-lg transition",children:[f.jsx(SP,{className:"w-5 h-5"}),"Invite User"]})]}),r&&f.jsx("div",{className:"bg-red-500/10 border border-red-500/50 rounded-lg p-4 text-red-400",children:r}),f.jsx("div",{className:"bg-slate-800/50 border border-slate-700 rounded-xl overflow-hidden",children:f.jsxs("table",{className:"w-full text-left border-collapse",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"bg-slate-800 border-b border-slate-700",children:[f.jsx("th",{className:"px-6 py-4 text-sm font-semibold text-slate-300",children:"User"}),f.jsx("th",{className:"px-6 py-4 text-sm font-semibold text-slate-300",children:"Role"}),f.jsx("th",{className:"px-6 py-4 text-sm font-semibold text-slate-300",children:"Status"}),f.jsx("th",{className:"px-6 py-4 text-sm font-semibold text-slate-300",children:"Created"}),s&&f.jsx("th",{className:"px-6 py-4 text-right text-sm font-semibold text-slate-300",children:"Actions"})]})}),f.jsx("tbody",{className:"divide-y divide-slate-700",children:e.map(y=>f.jsxs("tr",{className:"hover:bg-slate-800/30 transition",children:[f.jsx("td",{className:"px-6 py-4",children:f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"w-8 h-8 rounded-full bg-slate-700 flex items-center justify-center",children:f.jsx(cp,{className:"w-4 h-4 text-slate-400"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-slate-200 font-medium",children:y.email}),f.jsx("div",{className:"text-xs text-slate-500 font-mono",children:y.id})]})]})}),f.jsx("td",{className:"px-6 py-4",children:f.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-slate-700/50 border border-slate-600 w-fit",children:[f.jsx(Bu,{className:"w-3 h-3 text-primary-400"}),f.jsx("span",{className:"text-xs font-medium text-slate-300 capitalize",children:y.role})]})}),f.jsx("td",{className:"px-6 py-4",children:f.jsx("span",{className:`inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium ${y.status==="active"?"bg-green-500/10 text-green-400 border border-green-500/20":"bg-yellow-500/10 text-yellow-400 border border-yellow-500/20"}`,children:y.status})}),f.jsx("td",{className:"px-6 py-4 text-sm text-slate-400",children:new Date(y.created_at*1e3).toLocaleDateString()}),s&&f.jsx("td",{className:"px-6 py-4 text-right",children:f.jsx("button",{onClick:()=>w(y.id),className:"p-2 text-slate-400 hover:text-red-400 hover:bg-red-500/10 rounded-lg transition",title:"Delete User",children:f.jsx(_P,{className:"w-4 h-4"})})})]},y.id))})]})}),a&&f.jsx("div",{className:"fixed inset-0 bg-slate-900/80 backdrop-blur-sm z-50 flex items-center justify-center p-4",children:f.jsxs("div",{className:"bg-slate-800 border border-slate-700 rounded-xl shadow-2xl max-w-md w-full p-6",children:[f.jsx("h2",{className:"text-xl font-bold text-white mb-4",children:"Invite New User"}),f.jsxs("form",{onSubmit:v,className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Email"}),f.jsxs("div",{className:"relative",children:[f.jsx(xP,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-500"}),f.jsx("input",{type:"email",value:u,onChange:y=>d(y.target.value),className:"w-full bg-slate-900 border border-slate-700 rounded-lg pl-9 pr-4 py-2 text-slate-200 focus:outline-none focus:ring-2 focus:ring-primary-500",placeholder:"user@example.com",required:!0})]})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Role"}),f.jsxs("select",{value:c,onChange:y=>p(y.target.value),className:"w-full bg-slate-900 border border-slate-700 rounded-lg px-4 py-2 text-slate-200 focus:outline-none focus:ring-2 focus:ring-primary-500",children:[f.jsx("option",{value:"viewer",children:"Viewer"}),f.jsx("option",{value:"admin",children:"Admin"})]})]}),f.jsxs("div",{className:"flex justify-end gap-3 mt-6",children:[f.jsx("button",{type:"button",onClick:()=>l(!1),className:"px-4 py-2 text-slate-300 hover:text-white transition",children:"Cancel"}),f.jsx("button",{type:"submit",disabled:m,className:"px-4 py-2 bg-primary-600 hover:bg-primary-500 text-white rounded-lg transition disabled:opacity-50",children:m?"Inviting...":"Invite User"})]})]})]})})]})}function M9(){const[e,t]=S.useState(null),[n,i]=S.useState(!0),[r,o]=S.useState(null),[a,l]=S.useState(""),[s,u]=S.useState(null),[d,c]=S.useState(null),[p,m]=S.useState(!1);S.useEffect(()=>{h()},[]);const h=async()=>{try{const y=Hu(),k=await(await fetch("/api/auth/me",{headers:{Authorization:`Bearer ${y}`}})).json();k.user&&t(k.user)}catch(y){console.error("Failed to fetch user",y)}finally{i(!1)}},g=async()=>{m(!0),c(null);try{const y=await GP();o(y)}catch{c("Failed to start 2FA setup")}finally{m(!1)}},w=async()=>{if(r){m(!0),c(null);try{const y=await JP(r.secret,a);u(y.recoveryCodes),o(null),l(""),await h()}catch{c("Invalid code")}finally{m(!1)}}},v=async()=>{if(confirm("Are you sure you want to disable 2FA? Your account will be less secure.")){m(!0),c(null);try{await KP(),await h()}catch{c("Failed to disable 2FA")}finally{m(!1)}}};return n?f.jsx("div",{className:"p-8 text-center text-slate-400",children:"Loading profile..."}):f.jsxs("div",{className:"space-y-6",children:[f.jsx("div",{className:"flex items-center justify-between",children:f.jsx("h1",{className:"text-2xl font-bold text-slate-100 font-display",children:"My Profile"})}),f.jsxs("div",{className:"bg-slate-800 rounded-lg border border-slate-700 p-6",children:[f.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[f.jsx("div",{className:"w-16 h-16 bg-slate-700 rounded-full flex items-center justify-center text-2xl font-bold text-slate-300",children:e==null?void 0:e.email[0].toUpperCase()}),f.jsxs("div",{children:[f.jsx("h2",{className:"text-xl font-semibold text-white",children:e==null?void 0:e.email}),f.jsx("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-500/10 text-blue-400 border border-blue-500/20 capitalize",children:e==null?void 0:e.role})]})]}),f.jsxs("div",{className:"border-t border-slate-700 pt-6",children:[f.jsxs("h3",{className:"text-lg font-medium text-white mb-4 flex items-center gap-2",children:[f.jsx(Bu,{className:"w-5 h-5 text-orange-500"}),"Security"]}),f.jsxs("div",{className:"bg-slate-900/50 rounded-lg p-6 border border-slate-700/50",children:[f.jsxs("div",{className:"flex items-start justify-between mb-4",children:[f.jsxs("div",{children:[f.jsxs("h4",{className:"font-medium text-slate-200 flex items-center gap-2",children:["Two-Factor Authentication (2FA)",(e==null?void 0:e.two_factor_enabled)&&f.jsx("span",{className:"text-xs bg-green-500/10 text-green-400 border border-green-500/20 px-2 py-0.5 rounded-full",children:"Enabled"})]}),f.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"Add an extra layer of security to your account by requiring a code from your authenticator app."})]}),!(e!=null&&e.two_factor_enabled)&&!r&&f.jsx("button",{onClick:g,disabled:p,className:"px-4 py-2 bg-orange-600 hover:bg-orange-700 text-white rounded-lg text-sm font-medium transition",children:"Enable 2FA"}),(e==null?void 0:e.two_factor_enabled)&&f.jsx("button",{onClick:v,disabled:p,className:"px-4 py-2 bg-red-500/10 hover:bg-red-500/20 text-red-400 border border-red-500/20 rounded-lg text-sm font-medium transition",children:"Disable"})]}),r&&f.jsxs("div",{className:"mt-6 p-4 bg-slate-800 rounded-lg border border-slate-700 animate-in fade-in slide-in-from-top-4",children:[f.jsxs("h5",{className:"font-medium text-white mb-4 flex items-center gap-2",children:[f.jsx(wP,{className:"w-4 h-4"}),"Scan QR Code"]}),f.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[f.jsxs("div",{className:"flex flex-col items-center",children:[f.jsx("div",{className:"bg-white p-2 rounded-lg mb-4",children:f.jsx("img",{src:r.qrCode,alt:"2FA QR Code",className:"w-48 h-48"})}),f.jsx("p",{className:"text-xs text-slate-500 text-center max-w-xs",children:"Scan this code with Google Authenticator, Authy, or 1Password."})]}),f.jsxs("div",{className:"flex flex-col justify-center space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Manual Entry Code"}),f.jsx("code",{className:"block w-full p-2 bg-slate-900 rounded text-slate-300 font-mono text-sm select-all",children:r.secret})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Verification Code"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"text",value:a,onChange:y=>l(y.target.value),placeholder:"000000",maxLength:6,className:"bg-slate-900 border border-slate-600 rounded px-3 py-2 text-white w-32 focus:ring-2 focus:ring-orange-500 outline-none"}),f.jsx("button",{onClick:w,disabled:a.length!==6||p,className:"px-4 py-2 bg-orange-600 hover:bg-orange-700 text-white rounded font-medium disabled:opacity-50",children:"Verify & Enable"})]}),d&&f.jsx("p",{className:"text-red-400 text-sm mt-2",children:d})]})]})]})]}),s&&f.jsxs("div",{className:"mt-6 p-4 bg-green-500/10 border border-green-500/20 rounded-lg",children:[f.jsxs("div",{className:"flex items-center gap-2 text-green-400 font-medium mb-2",children:[f.jsx(sw,{className:"w-5 h-5"}),"2FA Enabled Successfully!"]}),f.jsx("div",{className:"mb-4 text-slate-300 text-sm",children:"Please save these recovery codes in a secure place. You will need them if you lose access to your authenticator device."}),f.jsx("div",{className:"grid grid-cols-2 gap-2 font-mono text-sm bg-slate-900 p-4 rounded border border-slate-700",children:s.map(y=>f.jsx("div",{className:"text-slate-300 select-all",children:y},y))}),f.jsx("button",{onClick:()=>u(null),className:"mt-4 text-sm text-slate-400 hover:text-white underline",children:"I have saved these codes"})]})]})]})]})]})}function Z9(){const{isAuthenticated:e,logout:t}=Vo(),[n,i]=S.useState(null),[r,o]=S.useState(!1),[a,l]=S.useState(!0);if(S.useEffect(()=>{NP().then(({authRequired:d,setupRequired:c})=>{i(d),o(c),l(!1)})},[]),a)return f.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900",children:f.jsx("div",{className:"text-slate-400",children:"Loading..."})});const s=Cn();if(r)return f.jsx(U9,{onSuccess:()=>o(!1)});if(s.pathname.startsWith("/invite/"))return f.jsx(hy,{children:f.jsx(Rn,{path:"/invite/:token",element:f.jsx(L9,{})})});if(n&&!e)return f.jsx(D9,{onSuccess:()=>{}});const u=[{path:"/",label:"Dashboard",icon:hP},{path:"/repositories",label:"Repositories",icon:wi},{path:"/tokens",label:"Access Tokens",icon:Rm},{path:"/packages",label:"Packages",icon:uw},{path:"/users",label:"Users",icon:cp}];return f.jsxs("div",{className:"min-h-screen",children:[f.jsx("header",{className:"bg-slate-900/90 backdrop-blur-sm border-b border-slate-800 sticky top-0 z-50",children:f.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:f.jsxs("div",{className:"flex items-center justify-between h-16",children:[f.jsxs(jo,{to:"/",className:"flex items-center gap-3 hover:opacity-80 transition-opacity",children:[f.jsx("div",{className:"w-10 h-10 bg-gradient-to-br from-primary-500 to-accent-600 rounded-lg flex items-center justify-center",children:f.jsx(wi,{className:"w-6 h-6 text-white"})}),f.jsxs("div",{children:[f.jsx("h1",{className:"font-display font-bold text-lg text-slate-100",children:"PACKAGE.broker"}),f.jsx("p",{className:"text-xs text-slate-500",children:"Serverless Edition"})]})]}),f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsxs("nav",{className:"flex items-center gap-1",role:"navigation","aria-label":"Main navigation",children:[u.map(d=>f.jsxs(Gf,{to:d.path,end:d.path==="/","data-testid":`nav-${d.path==="/"?"dashboard":d.path.slice(1)}`,className:({isActive:c})=>`px-4 py-2 rounded-lg font-medium text-sm transition-all duration-200 flex items-center gap-2 ${c?"bg-slate-800 text-primary-400 shadow-lg":"text-slate-400 hover:text-slate-200 hover:bg-slate-800/50"}`,children:[f.jsx(d.icon,{className:"w-5 h-5 flex-shrink-0"}),f.jsx("span",{children:d.label})]},d.path)),f.jsxs("a",{href:"https://package.broker",target:"_blank",rel:"noopener noreferrer",className:"px-4 py-2 rounded-lg font-medium text-sm text-slate-400 hover:text-slate-200 hover:bg-slate-800/50 transition-all duration-200 flex items-center gap-2","data-testid":"nav-about",children:[f.jsx(vP,{className:"w-5 h-5 flex-shrink-0"}),f.jsx("span",{children:"About"})]})]}),e&&f.jsxs("div",{className:"flex items-center gap-2 pl-2 border-l border-slate-700 ml-2",children:[f.jsx(Gf,{to:"/profile",className:({isActive:d})=>`px-3 py-2 text-sm rounded-lg transition flex items-center gap-1 ${d?"text-white bg-slate-800":"text-slate-400 hover:text-slate-200"}`,title:"Profile Settings",children:f.jsx(cp,{className:"w-4 h-4"})}),f.jsx("button",{onClick:t,className:"px-3 py-2 text-sm text-slate-400 hover:text-red-400 transition flex items-center gap-1",title:"Sign out","aria-label":"Sign out","data-testid":"logout-button",children:f.jsx(yP,{className:"w-4 h-4"})})]})]})]})})}),f.jsx("main",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:f.jsxs(hy,{children:[f.jsx(Rn,{path:"/",element:f.jsx(YP,{})}),f.jsx(Rn,{path:"/repositories",element:f.jsx(L6,{})}),f.jsx(Rn,{path:"/tokens",element:f.jsx(Z6,{})}),f.jsx(Rn,{path:"/packages",element:f.jsx(FD,{})}),f.jsx(Rn,{path:"/packages/:vendor/:package",element:f.jsx(A9,{})}),f.jsx(Rn,{path:"/users",element:f.jsx(F9,{})}),f.jsx(Rn,{path:"/profile",element:f.jsx(M9,{})})]})}),f.jsx("footer",{className:"border-t border-slate-800 mt-16 py-8",children:f.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:f.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-4",children:[f.jsxs("div",{className:"text-center md:text-left",children:[f.jsx("p",{className:"text-slate-300 font-medium mb-1",children:"PACKAGE.broker"}),f.jsx("p",{className:"text-slate-500 text-sm",children:"A lightweight, self-hosted Composer proxy running on Cloudflare's edge network"})]}),f.jsxs("div",{className:"flex flex-col items-center md:items-end gap-2",children:[f.jsxs("div",{className:"flex items-center gap-4 text-sm",children:[f.jsx("a",{href:"https://github.com/package-broker/server",target:"_blank",rel:"noopener noreferrer",className:"text-slate-400 hover:text-slate-200 transition",children:"GitHub"}),f.jsxs("a",{href:"https://github.com/sponsors/lbajsarowicz",target:"_blank",rel:"noopener noreferrer",className:"text-pink-400 hover:text-pink-300 transition flex items-center gap-1",children:[f.jsx(up,{className:"w-4 h-4 fill-current"}),"Sponsor"]})]}),f.jsxs("p",{className:"text-slate-500 text-xs",children:["© ",new Date().getFullYear()," Łukasz Bajsarowicz • Licensed under AGPL-3.0"]})]})]})})})]})}function B9(){return f.jsx(D6,{children:f.jsx(Z9,{})})}const V9=new Yz({defaultOptions:{queries:{staleTime:1e3*60,refetchOnWindowFocus:!1}}});Qd.createRoot(document.getElementById("root")).render(f.jsx(JI.StrictMode,{children:f.jsx(kz,{children:f.jsx(eP,{client:V9,children:f.jsx(B9,{})})})}));