@modelcontextprotocol/inspector-client 0.2.3 → 0.2.6
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.
- package/dist/assets/index-DY7RF803.css +2303 -0
- package/dist/assets/index-Dp6cG-Sy.js +22525 -0
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/assets/index-CeTDqh-y.css +0 -1
- package/dist/assets/index-k3fLs7fd.js +0 -185
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
function _y(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function Sp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _p={exports:{}},wa={},Cp={exports:{}},te={};/**
|
|
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 Ds=Symbol.for("react.element"),Cy=Symbol.for("react.portal"),ky=Symbol.for("react.fragment"),Ey=Symbol.for("react.strict_mode"),by=Symbol.for("react.profiler"),Ny=Symbol.for("react.provider"),Ty=Symbol.for("react.context"),Ry=Symbol.for("react.forward_ref"),Py=Symbol.for("react.suspense"),jy=Symbol.for("react.memo"),Iy=Symbol.for("react.lazy"),Od=Symbol.iterator;function Oy(e){return e===null||typeof e!="object"?null:(e=Od&&e[Od]||e["@@iterator"],typeof e=="function"?e:null)}var kp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ep=Object.assign,bp={};function wo(e,t,n){this.props=e,this.context=t,this.refs=bp,this.updater=n||kp}wo.prototype.isReactComponent={};wo.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")};wo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Np(){}Np.prototype=wo.prototype;function au(e,t,n){this.props=e,this.context=t,this.refs=bp,this.updater=n||kp}var lu=au.prototype=new Np;lu.constructor=au;Ep(lu,wo.prototype);lu.isPureReactComponent=!0;var Md=Array.isArray,Tp=Object.prototype.hasOwnProperty,cu={current:null},Rp={key:!0,ref:!0,__self:!0,__source:!0};function Pp(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)Tp.call(t,r)&&!Rp.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:Ds,type:e,key:s,ref:i,props:o,_owner:cu.current}}function My(e,t){return{$$typeof:Ds,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function uu(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ds}function Ay(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ad=/\/+/g;function il(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Ay(""+e.key):t.toString(36)}function xi(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Ds:case Cy:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+il(i,0):r,Md(o)?(n="",e!=null&&(n=e.replace(Ad,"$&/")+"/"),xi(o,t,n,"",function(c){return c})):o!=null&&(uu(o)&&(o=My(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Ad,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",Md(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+il(s,a);i+=xi(s,t,n,l,o)}else if(l=Oy(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+il(s,a++),i+=xi(s,t,n,l,o);else if(s==="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 i}function Ks(e,t,n){if(e==null)return e;var r=[],o=0;return xi(e,r,"","",function(s){return t.call(n,s,o++)}),r}function Ly(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 tt={current:null},wi={transition:null},Dy={ReactCurrentDispatcher:tt,ReactCurrentBatchConfig:wi,ReactCurrentOwner:cu};function jp(){throw Error("act(...) is not supported in production builds of React.")}te.Children={map:Ks,forEach:function(e,t,n){Ks(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ks(e,function(){t++}),t},toArray:function(e){return Ks(e,function(t){return t})||[]},only:function(e){if(!uu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};te.Component=wo;te.Fragment=ky;te.Profiler=by;te.PureComponent=au;te.StrictMode=Ey;te.Suspense=Py;te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Dy;te.act=jp;te.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Ep({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=cu.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Tp.call(t,l)&&!Rp.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:Ds,type:e.type,key:o,ref:s,props:r,_owner:i}};te.createContext=function(e){return e={$$typeof:Ty,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ny,_context:e},e.Consumer=e};te.createElement=Pp;te.createFactory=function(e){var t=Pp.bind(null,e);return t.type=e,t};te.createRef=function(){return{current:null}};te.forwardRef=function(e){return{$$typeof:Ry,render:e}};te.isValidElement=uu;te.lazy=function(e){return{$$typeof:Iy,_payload:{_status:-1,_result:e},_init:Ly}};te.memo=function(e,t){return{$$typeof:jy,type:e,compare:t===void 0?null:t}};te.startTransition=function(e){var t=wi.transition;wi.transition={};try{e()}finally{wi.transition=t}};te.unstable_act=jp;te.useCallback=function(e,t){return tt.current.useCallback(e,t)};te.useContext=function(e){return tt.current.useContext(e)};te.useDebugValue=function(){};te.useDeferredValue=function(e){return tt.current.useDeferredValue(e)};te.useEffect=function(e,t){return tt.current.useEffect(e,t)};te.useId=function(){return tt.current.useId()};te.useImperativeHandle=function(e,t,n){return tt.current.useImperativeHandle(e,t,n)};te.useInsertionEffect=function(e,t){return tt.current.useInsertionEffect(e,t)};te.useLayoutEffect=function(e,t){return tt.current.useLayoutEffect(e,t)};te.useMemo=function(e,t){return tt.current.useMemo(e,t)};te.useReducer=function(e,t,n){return tt.current.useReducer(e,t,n)};te.useRef=function(e){return tt.current.useRef(e)};te.useState=function(e){return tt.current.useState(e)};te.useSyncExternalStore=function(e,t,n){return tt.current.useSyncExternalStore(e,t,n)};te.useTransition=function(){return tt.current.useTransition()};te.version="18.3.1";Cp.exports=te;var h=Cp.exports;const ne=Sp(h),zy=_y({__proto__:null,default:ne},[h]);/**
|
|
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 $y=h,Fy=Symbol.for("react.element"),Vy=Symbol.for("react.fragment"),By=Object.prototype.hasOwnProperty,Uy=$y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Hy={key:!0,ref:!0,__self:!0,__source:!0};function Ip(e,t,n){var r,o={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)By.call(t,r)&&!Hy.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Fy,type:e,key:s,ref:i,props:o,_owner:Uy.current}}wa.Fragment=Vy;wa.jsx=Ip;wa.jsxs=Ip;_p.exports=wa;var p=_p.exports,Op={exports:{}},yt={},Mp={exports:{}},Ap={};/**
|
|
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(N,O){var z=N.length;N.push(O);e:for(;0<z;){var H=z-1>>>1,J=N[H];if(0<o(J,O))N[H]=O,N[z]=J,z=H;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var O=N[0],z=N.pop();if(z!==O){N[0]=z;e:for(var H=0,J=N.length,pe=J>>>1;H<pe;){var ie=2*(H+1)-1,Se=N[ie],ve=ie+1,B=N[ve];if(0>o(Se,z))ve<J&&0>o(B,Se)?(N[H]=B,N[ve]=z,H=ve):(N[H]=Se,N[ie]=z,H=ie);else if(ve<J&&0>o(B,z))N[H]=B,N[ve]=z,H=ve;else break e}}return O}function o(N,O){var z=N.sortIndex-O.sortIndex;return z!==0?z:N.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],c=[],u=1,f=null,g=3,x=!1,w=!1,v=!1,_=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(N){for(var O=n(c);O!==null;){if(O.callback===null)r(c);else if(O.startTime<=N)r(c),O.sortIndex=O.expirationTime,t(l,O);else break;O=n(c)}}function C(N){if(v=!1,y(N),!w)if(n(l)!==null)w=!0,F(k);else{var O=n(c);O!==null&&K(C,O.startTime-N)}}function k(N,O){w=!1,v&&(v=!1,m(E),E=-1),x=!0;var z=g;try{for(y(O),f=n(l);f!==null&&(!(f.expirationTime>O)||N&&!V());){var H=f.callback;if(typeof H=="function"){f.callback=null,g=f.priorityLevel;var J=H(f.expirationTime<=O);O=e.unstable_now(),typeof J=="function"?f.callback=J:f===n(l)&&r(l),y(O)}else r(l);f=n(l)}if(f!==null)var pe=!0;else{var ie=n(c);ie!==null&&K(C,ie.startTime-O),pe=!1}return pe}finally{f=null,g=z,x=!1}}var T=!1,b=null,E=-1,I=5,j=-1;function V(){return!(e.unstable_now()-j<I)}function M(){if(b!==null){var N=e.unstable_now();j=N;var O=!0;try{O=b(!0,N)}finally{O?q():(T=!1,b=null)}}else T=!1}var q;if(typeof d=="function")q=function(){d(M)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,ee=W.port2;W.port1.onmessage=M,q=function(){ee.postMessage(null)}}else q=function(){_(M,0)};function F(N){b=N,T||(T=!0,q())}function K(N,O){E=_(function(){N(e.unstable_now())},O)}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(N){N.callback=null},e.unstable_continueExecution=function(){w||x||(w=!0,F(k))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(N){switch(g){case 1:case 2:case 3:var O=3;break;default:O=g}var z=g;g=O;try{return N()}finally{g=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,O){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var z=g;g=N;try{return O()}finally{g=z}},e.unstable_scheduleCallback=function(N,O,z){var H=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?H+z:H):z=H,N){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=z+J,N={id:u++,callback:O,priorityLevel:N,startTime:z,expirationTime:J,sortIndex:-1},z>H?(N.sortIndex=z,t(c,N),n(l)===null&&N===n(c)&&(v?(m(E),E=-1):v=!0,K(C,z-H))):(N.sortIndex=J,t(l,N),w||x||(w=!0,F(k))),N},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(N){var O=g;return function(){var z=g;g=O;try{return N.apply(this,arguments)}finally{g=z}}}})(Ap);Mp.exports=Ap;var Wy=Mp.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 Zy=h,vt=Wy;function R(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 Lp=new Set,ns={};function Tr(e,t){ao(e,t),ao(e+"Capture",t)}function ao(e,t){for(ns[e]=t,e=0;e<t.length;e++)Lp.add(t[e])}var mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ql=Object.prototype.hasOwnProperty,qy=/^[: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]*$/,Ld={},Dd={};function Ky(e){return ql.call(Dd,e)?!0:ql.call(Ld,e)?!1:qy.test(e)?Dd[e]=!0:(Ld[e]=!0,!1)}function Gy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Qy(e,t,n,r){if(t===null||typeof t>"u"||Gy(e,t,n,r))return!0;if(r)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 nt(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var Ve={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ve[e]=new nt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ve[t]=new nt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ve[e]=new nt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ve[e]=new nt(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){Ve[e]=new nt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ve[e]=new nt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ve[e]=new nt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ve[e]=new nt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ve[e]=new nt(e,5,!1,e.toLowerCase(),null,!1,!1)});var du=/[\-:]([a-z])/g;function fu(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(du,fu);Ve[t]=new nt(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(du,fu);Ve[t]=new nt(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(du,fu);Ve[t]=new nt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ve[e]=new nt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ve.xlinkHref=new nt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ve[e]=new nt(e,1,!1,e.toLowerCase(),null,!0,!0)});function pu(e,t,n,r){var o=Ve.hasOwnProperty(t)?Ve[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Qy(t,n,o,r)&&(n=null),r||o===null?Ky(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Cn=Zy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Gs=Symbol.for("react.element"),Dr=Symbol.for("react.portal"),zr=Symbol.for("react.fragment"),mu=Symbol.for("react.strict_mode"),Kl=Symbol.for("react.profiler"),Dp=Symbol.for("react.provider"),zp=Symbol.for("react.context"),hu=Symbol.for("react.forward_ref"),Gl=Symbol.for("react.suspense"),Ql=Symbol.for("react.suspense_list"),gu=Symbol.for("react.memo"),Rn=Symbol.for("react.lazy"),$p=Symbol.for("react.offscreen"),zd=Symbol.iterator;function Ro(e){return e===null||typeof e!="object"?null:(e=zd&&e[zd]||e["@@iterator"],typeof e=="function"?e:null)}var be=Object.assign,al;function $o(e){if(al===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);al=t&&t[1]||""}return`
|
|
34
|
-
`+al+e}var ll=!1;function cl(e,t){if(!e||ll)return"";ll=!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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`
|
|
35
|
-
`),s=r.stack.split(`
|
|
36
|
-
`),i=o.length-1,a=s.length-1;1<=i&&0<=a&&o[i]!==s[a];)a--;for(;1<=i&&0<=a;i--,a--)if(o[i]!==s[a]){if(i!==1||a!==1)do if(i--,a--,0>a||o[i]!==s[a]){var l=`
|
|
37
|
-
`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{ll=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?$o(e):""}function Yy(e){switch(e.tag){case 5:return $o(e.type);case 16:return $o("Lazy");case 13:return $o("Suspense");case 19:return $o("SuspenseList");case 0:case 2:case 15:return e=cl(e.type,!1),e;case 11:return e=cl(e.type.render,!1),e;case 1:return e=cl(e.type,!0),e;default:return""}}function Yl(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 zr:return"Fragment";case Dr:return"Portal";case Kl:return"Profiler";case mu:return"StrictMode";case Gl:return"Suspense";case Ql:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case zp:return(e.displayName||"Context")+".Consumer";case Dp:return(e._context.displayName||"Context")+".Provider";case hu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case gu:return t=e.displayName||null,t!==null?t:Yl(e.type)||"Memo";case Rn:t=e._payload,e=e._init;try{return Yl(e(t))}catch{}}return null}function Xy(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 Yl(t);case 8:return t===mu?"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 Hn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Jy(e){var t=Fp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qs(e){e._valueTracker||(e._valueTracker=Jy(e))}function Vp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Fp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ai(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 Xl(e,t){var n=t.checked;return be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $d(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Hn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Bp(e,t){t=t.checked,t!=null&&pu(e,"checked",t,!1)}function Jl(e,t){Bp(e,t);var n=Hn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ec(e,t.type,n):t.hasOwnProperty("defaultValue")&&ec(e,t.type,Hn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Fd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="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 ec(e,t,n){(t!=="number"||Ai(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fo=Array.isArray;function Yr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Hn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function tc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return be({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Vd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(R(92));if(Fo(n)){if(1<n.length)throw Error(R(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Hn(n)}}function Up(e,t){var n=Hn(t.value),r=Hn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Bd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Hp(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 nc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Hp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ys,Wp=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ys=Ys||document.createElement("div"),Ys.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ys.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zo={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},e0=["Webkit","ms","Moz","O"];Object.keys(Zo).forEach(function(e){e0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zo[t]=Zo[e]})});function Zp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Zo.hasOwnProperty(e)&&Zo[e]?(""+t).trim():t+"px"}function qp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Zp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var t0=be({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 rc(e,t){if(t){if(t0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function oc(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 sc=null;function vu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ic=null,Xr=null,Jr=null;function Ud(e){if(e=Fs(e)){if(typeof ic!="function")throw Error(R(280));var t=e.stateNode;t&&(t=Ea(t),ic(e.stateNode,e.type,t))}}function Kp(e){Xr?Jr?Jr.push(e):Jr=[e]:Xr=e}function Gp(){if(Xr){var e=Xr,t=Jr;if(Jr=Xr=null,Ud(e),t)for(e=0;e<t.length;e++)Ud(t[e])}}function Qp(e,t){return e(t)}function Yp(){}var ul=!1;function Xp(e,t,n){if(ul)return e(t,n);ul=!0;try{return Qp(e,t,n)}finally{ul=!1,(Xr!==null||Jr!==null)&&(Yp(),Gp())}}function os(e,t){var n=e.stateNode;if(n===null)return null;var r=Ea(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(R(231,t,typeof n));return n}var ac=!1;if(mn)try{var Po={};Object.defineProperty(Po,"passive",{get:function(){ac=!0}}),window.addEventListener("test",Po,Po),window.removeEventListener("test",Po,Po)}catch{ac=!1}function n0(e,t,n,r,o,s,i,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var qo=!1,Li=null,Di=!1,lc=null,r0={onError:function(e){qo=!0,Li=e}};function o0(e,t,n,r,o,s,i,a,l){qo=!1,Li=null,n0.apply(r0,arguments)}function s0(e,t,n,r,o,s,i,a,l){if(o0.apply(this,arguments),qo){if(qo){var c=Li;qo=!1,Li=null}else throw Error(R(198));Di||(Di=!0,lc=c)}}function Rr(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 Jp(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 Hd(e){if(Rr(e)!==e)throw Error(R(188))}function i0(e){var t=e.alternate;if(!t){if(t=Rr(e),t===null)throw Error(R(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return Hd(o),e;if(s===r)return Hd(o),t;s=s.sibling}throw Error(R(188))}if(n.return!==r.return)n=o,r=s;else{for(var i=!1,a=o.child;a;){if(a===n){i=!0,n=o,r=s;break}if(a===r){i=!0,r=o,n=s;break}a=a.sibling}if(!i){for(a=s.child;a;){if(a===n){i=!0,n=s,r=o;break}if(a===r){i=!0,r=s,n=o;break}a=a.sibling}if(!i)throw Error(R(189))}}if(n.alternate!==r)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?e:t}function em(e){return e=i0(e),e!==null?tm(e):null}function tm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=tm(e);if(t!==null)return t;e=e.sibling}return null}var nm=vt.unstable_scheduleCallback,Wd=vt.unstable_cancelCallback,a0=vt.unstable_shouldYield,l0=vt.unstable_requestPaint,Re=vt.unstable_now,c0=vt.unstable_getCurrentPriorityLevel,yu=vt.unstable_ImmediatePriority,rm=vt.unstable_UserBlockingPriority,zi=vt.unstable_NormalPriority,u0=vt.unstable_LowPriority,om=vt.unstable_IdlePriority,Sa=null,Qt=null;function d0(e){if(Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(Sa,e,void 0,(e.current.flags&128)===128)}catch{}}var Mt=Math.clz32?Math.clz32:m0,f0=Math.log,p0=Math.LN2;function m0(e){return e>>>=0,e===0?32:31-(f0(e)/p0|0)|0}var Xs=64,Js=4194304;function Vo(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 $i(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=Vo(a):(s&=i,s!==0&&(r=Vo(s)))}else i=n&~o,i!==0?r=Vo(i):s!==0&&(r=Vo(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Mt(t),o=1<<n,r|=e[n],t&=~o;return r}function h0(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 g0(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-Mt(s),a=1<<i,l=o[i];l===-1?(!(a&n)||a&r)&&(o[i]=h0(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function cc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function sm(){var e=Xs;return Xs<<=1,!(Xs&4194240)&&(Xs=64),e}function dl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function zs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Mt(t),e[t]=n}function v0(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 r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Mt(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function xu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Mt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var de=0;function im(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var am,wu,lm,cm,um,uc=!1,ei=[],Ln=null,Dn=null,zn=null,ss=new Map,is=new Map,jn=[],y0="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 Zd(e,t){switch(e){case"focusin":case"focusout":Ln=null;break;case"dragenter":case"dragleave":Dn=null;break;case"mouseover":case"mouseout":zn=null;break;case"pointerover":case"pointerout":ss.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":is.delete(t.pointerId)}}function jo(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=Fs(t),t!==null&&wu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function x0(e,t,n,r,o){switch(t){case"focusin":return Ln=jo(Ln,e,t,n,r,o),!0;case"dragenter":return Dn=jo(Dn,e,t,n,r,o),!0;case"mouseover":return zn=jo(zn,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return ss.set(s,jo(ss.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,is.set(s,jo(is.get(s)||null,e,t,n,r,o)),!0}return!1}function dm(e){var t=dr(e.target);if(t!==null){var n=Rr(t);if(n!==null){if(t=n.tag,t===13){if(t=Jp(n),t!==null){e.blockedOn=t,um(e.priority,function(){lm(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 Si(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);sc=r,n.target.dispatchEvent(r),sc=null}else return t=Fs(n),t!==null&&wu(t),e.blockedOn=n,!1;t.shift()}return!0}function qd(e,t,n){Si(e)&&n.delete(t)}function w0(){uc=!1,Ln!==null&&Si(Ln)&&(Ln=null),Dn!==null&&Si(Dn)&&(Dn=null),zn!==null&&Si(zn)&&(zn=null),ss.forEach(qd),is.forEach(qd)}function Io(e,t){e.blockedOn===t&&(e.blockedOn=null,uc||(uc=!0,vt.unstable_scheduleCallback(vt.unstable_NormalPriority,w0)))}function as(e){function t(o){return Io(o,e)}if(0<ei.length){Io(ei[0],e);for(var n=1;n<ei.length;n++){var r=ei[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ln!==null&&Io(Ln,e),Dn!==null&&Io(Dn,e),zn!==null&&Io(zn,e),ss.forEach(t),is.forEach(t),n=0;n<jn.length;n++)r=jn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<jn.length&&(n=jn[0],n.blockedOn===null);)dm(n),n.blockedOn===null&&jn.shift()}var eo=Cn.ReactCurrentBatchConfig,Fi=!0;function S0(e,t,n,r){var o=de,s=eo.transition;eo.transition=null;try{de=1,Su(e,t,n,r)}finally{de=o,eo.transition=s}}function _0(e,t,n,r){var o=de,s=eo.transition;eo.transition=null;try{de=4,Su(e,t,n,r)}finally{de=o,eo.transition=s}}function Su(e,t,n,r){if(Fi){var o=dc(e,t,n,r);if(o===null)Sl(e,t,r,Vi,n),Zd(e,r);else if(x0(o,e,t,n,r))r.stopPropagation();else if(Zd(e,r),t&4&&-1<y0.indexOf(e)){for(;o!==null;){var s=Fs(o);if(s!==null&&am(s),s=dc(e,t,n,r),s===null&&Sl(e,t,r,Vi,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else Sl(e,t,r,null,n)}}var Vi=null;function dc(e,t,n,r){if(Vi=null,e=vu(r),e=dr(e),e!==null)if(t=Rr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Jp(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 Vi=e,null}function fm(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(c0()){case yu:return 1;case rm:return 4;case zi:case u0:return 16;case om:return 536870912;default:return 16}default:return 16}}var Mn=null,_u=null,_i=null;function pm(){if(_i)return _i;var e,t=_u,n=t.length,r,o="value"in Mn?Mn.value:Mn.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[s-r];r++);return _i=o.slice(e,1<r?1-r:void 0)}function Ci(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 ti(){return!0}function Kd(){return!1}function xt(e){function t(n,r,o,s,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?ti:Kd,this.isPropagationStopped=Kd,this}return be(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=ti)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ti)},persist:function(){},isPersistent:ti}),t}var So={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cu=xt(So),$s=be({},So,{view:0,detail:0}),C0=xt($s),fl,pl,Oo,_a=be({},$s,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ku,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!==Oo&&(Oo&&e.type==="mousemove"?(fl=e.screenX-Oo.screenX,pl=e.screenY-Oo.screenY):pl=fl=0,Oo=e),fl)},movementY:function(e){return"movementY"in e?e.movementY:pl}}),Gd=xt(_a),k0=be({},_a,{dataTransfer:0}),E0=xt(k0),b0=be({},$s,{relatedTarget:0}),ml=xt(b0),N0=be({},So,{animationName:0,elapsedTime:0,pseudoElement:0}),T0=xt(N0),R0=be({},So,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),P0=xt(R0),j0=be({},So,{data:0}),Qd=xt(j0),I0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},O0={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"},M0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function A0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=M0[e])?!!t[e]:!1}function ku(){return A0}var L0=be({},$s,{key:function(e){if(e.key){var t=I0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ci(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?O0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ku,charCode:function(e){return e.type==="keypress"?Ci(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ci(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),D0=xt(L0),z0=be({},_a,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yd=xt(z0),$0=be({},$s,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ku}),F0=xt($0),V0=be({},So,{propertyName:0,elapsedTime:0,pseudoElement:0}),B0=xt(V0),U0=be({},_a,{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}),H0=xt(U0),W0=[9,13,27,32],Eu=mn&&"CompositionEvent"in window,Ko=null;mn&&"documentMode"in document&&(Ko=document.documentMode);var Z0=mn&&"TextEvent"in window&&!Ko,mm=mn&&(!Eu||Ko&&8<Ko&&11>=Ko),Xd=" ",Jd=!1;function hm(e,t){switch(e){case"keyup":return W0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $r=!1;function q0(e,t){switch(e){case"compositionend":return gm(t);case"keypress":return t.which!==32?null:(Jd=!0,Xd);case"textInput":return e=t.data,e===Xd&&Jd?null:e;default:return null}}function K0(e,t){if($r)return e==="compositionend"||!Eu&&hm(e,t)?(e=pm(),_i=_u=Mn=null,$r=!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 mm&&t.locale!=="ko"?null:t.data;default:return null}}var G0={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 ef(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!G0[e.type]:t==="textarea"}function vm(e,t,n,r){Kp(r),t=Bi(t,"onChange"),0<t.length&&(n=new Cu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Go=null,ls=null;function Q0(e){Tm(e,0)}function Ca(e){var t=Br(e);if(Vp(t))return e}function Y0(e,t){if(e==="change")return t}var ym=!1;if(mn){var hl;if(mn){var gl="oninput"in document;if(!gl){var tf=document.createElement("div");tf.setAttribute("oninput","return;"),gl=typeof tf.oninput=="function"}hl=gl}else hl=!1;ym=hl&&(!document.documentMode||9<document.documentMode)}function nf(){Go&&(Go.detachEvent("onpropertychange",xm),ls=Go=null)}function xm(e){if(e.propertyName==="value"&&Ca(ls)){var t=[];vm(t,ls,e,vu(e)),Xp(Q0,t)}}function X0(e,t,n){e==="focusin"?(nf(),Go=t,ls=n,Go.attachEvent("onpropertychange",xm)):e==="focusout"&&nf()}function J0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ca(ls)}function ex(e,t){if(e==="click")return Ca(t)}function tx(e,t){if(e==="input"||e==="change")return Ca(t)}function nx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dt=typeof Object.is=="function"?Object.is:nx;function cs(e,t){if(Dt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!ql.call(t,o)||!Dt(e[o],t[o]))return!1}return!0}function rf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function of(e,t){var n=rf(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=rf(n)}}function wm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sm(){for(var e=window,t=Ai();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ai(e.document)}return t}function bu(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 rx(e){var t=Sm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&wm(n.ownerDocument.documentElement,n)){if(r!==null&&bu(n)){if(t=r.start,e=r.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 o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=of(n,s);var i=of(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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 ox=mn&&"documentMode"in document&&11>=document.documentMode,Fr=null,fc=null,Qo=null,pc=!1;function sf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pc||Fr==null||Fr!==Ai(r)||(r=Fr,"selectionStart"in r&&bu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Qo&&cs(Qo,r)||(Qo=r,r=Bi(fc,"onSelect"),0<r.length&&(t=new Cu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Fr)))}function ni(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Vr={animationend:ni("Animation","AnimationEnd"),animationiteration:ni("Animation","AnimationIteration"),animationstart:ni("Animation","AnimationStart"),transitionend:ni("Transition","TransitionEnd")},vl={},_m={};mn&&(_m=document.createElement("div").style,"AnimationEvent"in window||(delete Vr.animationend.animation,delete Vr.animationiteration.animation,delete Vr.animationstart.animation),"TransitionEvent"in window||delete Vr.transitionend.transition);function ka(e){if(vl[e])return vl[e];if(!Vr[e])return e;var t=Vr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in _m)return vl[e]=t[n];return e}var Cm=ka("animationend"),km=ka("animationiteration"),Em=ka("animationstart"),bm=ka("transitionend"),Nm=new Map,af="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 Jn(e,t){Nm.set(e,t),Tr(t,[e])}for(var yl=0;yl<af.length;yl++){var xl=af[yl],sx=xl.toLowerCase(),ix=xl[0].toUpperCase()+xl.slice(1);Jn(sx,"on"+ix)}Jn(Cm,"onAnimationEnd");Jn(km,"onAnimationIteration");Jn(Em,"onAnimationStart");Jn("dblclick","onDoubleClick");Jn("focusin","onFocus");Jn("focusout","onBlur");Jn(bm,"onTransitionEnd");ao("onMouseEnter",["mouseout","mouseover"]);ao("onMouseLeave",["mouseout","mouseover"]);ao("onPointerEnter",["pointerout","pointerover"]);ao("onPointerLeave",["pointerout","pointerover"]);Tr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Tr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Tr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Tr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Tr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Tr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bo="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(" "),ax=new Set("cancel close invalid load scroll toggle".split(" ").concat(Bo));function lf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,s0(r,t,void 0,e),e.currentTarget=null}function Tm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==s&&o.isPropagationStopped())break e;lf(o,a,c),s=l}else for(i=0;i<r.length;i++){if(a=r[i],l=a.instance,c=a.currentTarget,a=a.listener,l!==s&&o.isPropagationStopped())break e;lf(o,a,c),s=l}}}if(Di)throw e=lc,Di=!1,lc=null,e}function xe(e,t){var n=t[yc];n===void 0&&(n=t[yc]=new Set);var r=e+"__bubble";n.has(r)||(Rm(t,e,2,!1),n.add(r))}function wl(e,t,n){var r=0;t&&(r|=4),Rm(n,e,r,t)}var ri="_reactListening"+Math.random().toString(36).slice(2);function us(e){if(!e[ri]){e[ri]=!0,Lp.forEach(function(n){n!=="selectionchange"&&(ax.has(n)||wl(n,!1,e),wl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ri]||(t[ri]=!0,wl("selectionchange",!1,t))}}function Rm(e,t,n,r){switch(fm(t)){case 1:var o=S0;break;case 4:o=_0;break;default:o=Su}n=o.bind(null,t,n,e),o=void 0,!ac||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Sl(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;i=i.return}for(;a!==null;){if(i=dr(a),i===null)return;if(l=i.tag,l===5||l===6){r=s=i;continue e}a=a.parentNode}}r=r.return}Xp(function(){var c=s,u=vu(n),f=[];e:{var g=Nm.get(e);if(g!==void 0){var x=Cu,w=e;switch(e){case"keypress":if(Ci(n)===0)break e;case"keydown":case"keyup":x=D0;break;case"focusin":w="focus",x=ml;break;case"focusout":w="blur",x=ml;break;case"beforeblur":case"afterblur":x=ml;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":x=Gd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=E0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=F0;break;case Cm:case km:case Em:x=T0;break;case bm:x=B0;break;case"scroll":x=C0;break;case"wheel":x=H0;break;case"copy":case"cut":case"paste":x=P0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=Yd}var v=(t&4)!==0,_=!v&&e==="scroll",m=v?g!==null?g+"Capture":null:g;v=[];for(var d=c,y;d!==null;){y=d;var C=y.stateNode;if(y.tag===5&&C!==null&&(y=C,m!==null&&(C=os(d,m),C!=null&&v.push(ds(d,C,y)))),_)break;d=d.return}0<v.length&&(g=new x(g,w,null,n,u),f.push({event:g,listeners:v}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",g&&n!==sc&&(w=n.relatedTarget||n.fromElement)&&(dr(w)||w[hn]))break e;if((x||g)&&(g=u.window===u?u:(g=u.ownerDocument)?g.defaultView||g.parentWindow:window,x?(w=n.relatedTarget||n.toElement,x=c,w=w?dr(w):null,w!==null&&(_=Rr(w),w!==_||w.tag!==5&&w.tag!==6)&&(w=null)):(x=null,w=c),x!==w)){if(v=Gd,C="onMouseLeave",m="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(v=Yd,C="onPointerLeave",m="onPointerEnter",d="pointer"),_=x==null?g:Br(x),y=w==null?g:Br(w),g=new v(C,d+"leave",x,n,u),g.target=_,g.relatedTarget=y,C=null,dr(u)===c&&(v=new v(m,d+"enter",w,n,u),v.target=y,v.relatedTarget=_,C=v),_=C,x&&w)t:{for(v=x,m=w,d=0,y=v;y;y=jr(y))d++;for(y=0,C=m;C;C=jr(C))y++;for(;0<d-y;)v=jr(v),d--;for(;0<y-d;)m=jr(m),y--;for(;d--;){if(v===m||m!==null&&v===m.alternate)break t;v=jr(v),m=jr(m)}v=null}else v=null;x!==null&&cf(f,g,x,v,!1),w!==null&&_!==null&&cf(f,_,w,v,!0)}}e:{if(g=c?Br(c):window,x=g.nodeName&&g.nodeName.toLowerCase(),x==="select"||x==="input"&&g.type==="file")var k=Y0;else if(ef(g))if(ym)k=tx;else{k=J0;var T=X0}else(x=g.nodeName)&&x.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(k=ex);if(k&&(k=k(e,c))){vm(f,k,n,u);break e}T&&T(e,g,c),e==="focusout"&&(T=g._wrapperState)&&T.controlled&&g.type==="number"&&ec(g,"number",g.value)}switch(T=c?Br(c):window,e){case"focusin":(ef(T)||T.contentEditable==="true")&&(Fr=T,fc=c,Qo=null);break;case"focusout":Qo=fc=Fr=null;break;case"mousedown":pc=!0;break;case"contextmenu":case"mouseup":case"dragend":pc=!1,sf(f,n,u);break;case"selectionchange":if(ox)break;case"keydown":case"keyup":sf(f,n,u)}var b;if(Eu)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else $r?hm(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(mm&&n.locale!=="ko"&&($r||E!=="onCompositionStart"?E==="onCompositionEnd"&&$r&&(b=pm()):(Mn=u,_u="value"in Mn?Mn.value:Mn.textContent,$r=!0)),T=Bi(c,E),0<T.length&&(E=new Qd(E,e,null,n,u),f.push({event:E,listeners:T}),b?E.data=b:(b=gm(n),b!==null&&(E.data=b)))),(b=Z0?q0(e,n):K0(e,n))&&(c=Bi(c,"onBeforeInput"),0<c.length&&(u=new Qd("onBeforeInput","beforeinput",null,n,u),f.push({event:u,listeners:c}),u.data=b))}Tm(f,t)})}function ds(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Bi(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=os(e,n),s!=null&&r.unshift(ds(e,s,o)),s=os(e,t),s!=null&&r.push(ds(e,s,o))),e=e.return}return r}function jr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function cf(e,t,n,r,o){for(var s=t._reactName,i=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,o?(l=os(n,s),l!=null&&i.unshift(ds(n,l,a))):o||(l=os(n,s),l!=null&&i.push(ds(n,l,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var lx=/\r\n?/g,cx=/\u0000|\uFFFD/g;function uf(e){return(typeof e=="string"?e:""+e).replace(lx,`
|
|
38
|
-
`).replace(cx,"")}function oi(e,t,n){if(t=uf(t),uf(e)!==t&&n)throw Error(R(425))}function Ui(){}var mc=null,hc=null;function gc(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 vc=typeof setTimeout=="function"?setTimeout:void 0,ux=typeof clearTimeout=="function"?clearTimeout:void 0,df=typeof Promise=="function"?Promise:void 0,dx=typeof queueMicrotask=="function"?queueMicrotask:typeof df<"u"?function(e){return df.resolve(null).then(e).catch(fx)}:vc;function fx(e){setTimeout(function(){throw e})}function _l(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),as(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);as(t)}function $n(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 ff(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 _o=Math.random().toString(36).slice(2),Zt="__reactFiber$"+_o,fs="__reactProps$"+_o,hn="__reactContainer$"+_o,yc="__reactEvents$"+_o,px="__reactListeners$"+_o,mx="__reactHandles$"+_o;function dr(e){var t=e[Zt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hn]||n[Zt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ff(e);e!==null;){if(n=e[Zt])return n;e=ff(e)}return t}e=n,n=e.parentNode}return null}function Fs(e){return e=e[Zt]||e[hn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Br(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function Ea(e){return e[fs]||null}var xc=[],Ur=-1;function er(e){return{current:e}}function we(e){0>Ur||(e.current=xc[Ur],xc[Ur]=null,Ur--)}function ge(e,t){Ur++,xc[Ur]=e.current,e.current=t}var Wn={},qe=er(Wn),at=er(!1),xr=Wn;function lo(e,t){var n=e.type.contextTypes;if(!n)return Wn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function lt(e){return e=e.childContextTypes,e!=null}function Hi(){we(at),we(qe)}function pf(e,t,n){if(qe.current!==Wn)throw Error(R(168));ge(qe,t),ge(at,n)}function Pm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,Xy(e)||"Unknown",o));return be({},n,r)}function Wi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wn,xr=qe.current,ge(qe,e),ge(at,at.current),!0}function mf(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Pm(e,t,xr),r.__reactInternalMemoizedMergedChildContext=e,we(at),we(qe),ge(qe,e)):we(at),ge(at,n)}var un=null,ba=!1,Cl=!1;function jm(e){un===null?un=[e]:un.push(e)}function hx(e){ba=!0,jm(e)}function tr(){if(!Cl&&un!==null){Cl=!0;var e=0,t=de;try{var n=un;for(de=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}un=null,ba=!1}catch(o){throw un!==null&&(un=un.slice(e+1)),nm(yu,tr),o}finally{de=t,Cl=!1}}return null}var Hr=[],Wr=0,Zi=null,qi=0,St=[],_t=0,wr=null,dn=1,fn="";function lr(e,t){Hr[Wr++]=qi,Hr[Wr++]=Zi,Zi=e,qi=t}function Im(e,t,n){St[_t++]=dn,St[_t++]=fn,St[_t++]=wr,wr=e;var r=dn;e=fn;var o=32-Mt(r)-1;r&=~(1<<o),n+=1;var s=32-Mt(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,dn=1<<32-Mt(t)+o|n<<o|r,fn=s+e}else dn=1<<s|n<<o|r,fn=e}function Nu(e){e.return!==null&&(lr(e,1),Im(e,1,0))}function Tu(e){for(;e===Zi;)Zi=Hr[--Wr],Hr[Wr]=null,qi=Hr[--Wr],Hr[Wr]=null;for(;e===wr;)wr=St[--_t],St[_t]=null,fn=St[--_t],St[_t]=null,dn=St[--_t],St[_t]=null}var mt=null,ft=null,_e=!1,It=null;function Om(e,t){var n=Ct(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 hf(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,mt=e,ft=$n(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,mt=e,ft=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=wr!==null?{id:dn,overflow:fn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ct(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,mt=e,ft=null,!0):!1;default:return!1}}function wc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Sc(e){if(_e){var t=ft;if(t){var n=t;if(!hf(e,t)){if(wc(e))throw Error(R(418));t=$n(n.nextSibling);var r=mt;t&&hf(e,t)?Om(r,n):(e.flags=e.flags&-4097|2,_e=!1,mt=e)}}else{if(wc(e))throw Error(R(418));e.flags=e.flags&-4097|2,_e=!1,mt=e}}}function gf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;mt=e}function si(e){if(e!==mt)return!1;if(!_e)return gf(e),_e=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!gc(e.type,e.memoizedProps)),t&&(t=ft)){if(wc(e))throw Mm(),Error(R(418));for(;t;)Om(e,t),t=$n(t.nextSibling)}if(gf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ft=$n(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ft=null}}else ft=mt?$n(e.stateNode.nextSibling):null;return!0}function Mm(){for(var e=ft;e;)e=$n(e.nextSibling)}function co(){ft=mt=null,_e=!1}function Ru(e){It===null?It=[e]:It.push(e)}var gx=Cn.ReactCurrentBatchConfig;function Mo(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(R(309));var r=n.stateNode}if(!r)throw Error(R(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var a=o.refs;i===null?delete a[s]:a[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(R(284));if(!n._owner)throw Error(R(290,e))}return e}function ii(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function vf(e){var t=e._init;return t(e._payload)}function Am(e){function t(m,d){if(e){var y=m.deletions;y===null?(m.deletions=[d],m.flags|=16):y.push(d)}}function n(m,d){if(!e)return null;for(;d!==null;)t(m,d),d=d.sibling;return null}function r(m,d){for(m=new Map;d!==null;)d.key!==null?m.set(d.key,d):m.set(d.index,d),d=d.sibling;return m}function o(m,d){return m=Un(m,d),m.index=0,m.sibling=null,m}function s(m,d,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<d?(m.flags|=2,d):y):(m.flags|=2,d)):(m.flags|=1048576,d)}function i(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,d,y,C){return d===null||d.tag!==6?(d=Pl(y,m.mode,C),d.return=m,d):(d=o(d,y),d.return=m,d)}function l(m,d,y,C){var k=y.type;return k===zr?u(m,d,y.props.children,C,y.key):d!==null&&(d.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Rn&&vf(k)===d.type)?(C=o(d,y.props),C.ref=Mo(m,d,y),C.return=m,C):(C=Pi(y.type,y.key,y.props,null,m.mode,C),C.ref=Mo(m,d,y),C.return=m,C)}function c(m,d,y,C){return d===null||d.tag!==4||d.stateNode.containerInfo!==y.containerInfo||d.stateNode.implementation!==y.implementation?(d=jl(y,m.mode,C),d.return=m,d):(d=o(d,y.children||[]),d.return=m,d)}function u(m,d,y,C,k){return d===null||d.tag!==7?(d=gr(y,m.mode,C,k),d.return=m,d):(d=o(d,y),d.return=m,d)}function f(m,d,y){if(typeof d=="string"&&d!==""||typeof d=="number")return d=Pl(""+d,m.mode,y),d.return=m,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Gs:return y=Pi(d.type,d.key,d.props,null,m.mode,y),y.ref=Mo(m,null,d),y.return=m,y;case Dr:return d=jl(d,m.mode,y),d.return=m,d;case Rn:var C=d._init;return f(m,C(d._payload),y)}if(Fo(d)||Ro(d))return d=gr(d,m.mode,y,null),d.return=m,d;ii(m,d)}return null}function g(m,d,y,C){var k=d!==null?d.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return k!==null?null:a(m,d,""+y,C);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Gs:return y.key===k?l(m,d,y,C):null;case Dr:return y.key===k?c(m,d,y,C):null;case Rn:return k=y._init,g(m,d,k(y._payload),C)}if(Fo(y)||Ro(y))return k!==null?null:u(m,d,y,C,null);ii(m,y)}return null}function x(m,d,y,C,k){if(typeof C=="string"&&C!==""||typeof C=="number")return m=m.get(y)||null,a(d,m,""+C,k);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Gs:return m=m.get(C.key===null?y:C.key)||null,l(d,m,C,k);case Dr:return m=m.get(C.key===null?y:C.key)||null,c(d,m,C,k);case Rn:var T=C._init;return x(m,d,y,T(C._payload),k)}if(Fo(C)||Ro(C))return m=m.get(y)||null,u(d,m,C,k,null);ii(d,C)}return null}function w(m,d,y,C){for(var k=null,T=null,b=d,E=d=0,I=null;b!==null&&E<y.length;E++){b.index>E?(I=b,b=null):I=b.sibling;var j=g(m,b,y[E],C);if(j===null){b===null&&(b=I);break}e&&b&&j.alternate===null&&t(m,b),d=s(j,d,E),T===null?k=j:T.sibling=j,T=j,b=I}if(E===y.length)return n(m,b),_e&&lr(m,E),k;if(b===null){for(;E<y.length;E++)b=f(m,y[E],C),b!==null&&(d=s(b,d,E),T===null?k=b:T.sibling=b,T=b);return _e&&lr(m,E),k}for(b=r(m,b);E<y.length;E++)I=x(b,m,E,y[E],C),I!==null&&(e&&I.alternate!==null&&b.delete(I.key===null?E:I.key),d=s(I,d,E),T===null?k=I:T.sibling=I,T=I);return e&&b.forEach(function(V){return t(m,V)}),_e&&lr(m,E),k}function v(m,d,y,C){var k=Ro(y);if(typeof k!="function")throw Error(R(150));if(y=k.call(y),y==null)throw Error(R(151));for(var T=k=null,b=d,E=d=0,I=null,j=y.next();b!==null&&!j.done;E++,j=y.next()){b.index>E?(I=b,b=null):I=b.sibling;var V=g(m,b,j.value,C);if(V===null){b===null&&(b=I);break}e&&b&&V.alternate===null&&t(m,b),d=s(V,d,E),T===null?k=V:T.sibling=V,T=V,b=I}if(j.done)return n(m,b),_e&&lr(m,E),k;if(b===null){for(;!j.done;E++,j=y.next())j=f(m,j.value,C),j!==null&&(d=s(j,d,E),T===null?k=j:T.sibling=j,T=j);return _e&&lr(m,E),k}for(b=r(m,b);!j.done;E++,j=y.next())j=x(b,m,E,j.value,C),j!==null&&(e&&j.alternate!==null&&b.delete(j.key===null?E:j.key),d=s(j,d,E),T===null?k=j:T.sibling=j,T=j);return e&&b.forEach(function(M){return t(m,M)}),_e&&lr(m,E),k}function _(m,d,y,C){if(typeof y=="object"&&y!==null&&y.type===zr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Gs:e:{for(var k=y.key,T=d;T!==null;){if(T.key===k){if(k=y.type,k===zr){if(T.tag===7){n(m,T.sibling),d=o(T,y.props.children),d.return=m,m=d;break e}}else if(T.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Rn&&vf(k)===T.type){n(m,T.sibling),d=o(T,y.props),d.ref=Mo(m,T,y),d.return=m,m=d;break e}n(m,T);break}else t(m,T);T=T.sibling}y.type===zr?(d=gr(y.props.children,m.mode,C,y.key),d.return=m,m=d):(C=Pi(y.type,y.key,y.props,null,m.mode,C),C.ref=Mo(m,d,y),C.return=m,m=C)}return i(m);case Dr:e:{for(T=y.key;d!==null;){if(d.key===T)if(d.tag===4&&d.stateNode.containerInfo===y.containerInfo&&d.stateNode.implementation===y.implementation){n(m,d.sibling),d=o(d,y.children||[]),d.return=m,m=d;break e}else{n(m,d);break}else t(m,d);d=d.sibling}d=jl(y,m.mode,C),d.return=m,m=d}return i(m);case Rn:return T=y._init,_(m,d,T(y._payload),C)}if(Fo(y))return w(m,d,y,C);if(Ro(y))return v(m,d,y,C);ii(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,d!==null&&d.tag===6?(n(m,d.sibling),d=o(d,y),d.return=m,m=d):(n(m,d),d=Pl(y,m.mode,C),d.return=m,m=d),i(m)):n(m,d)}return _}var uo=Am(!0),Lm=Am(!1),Ki=er(null),Gi=null,Zr=null,Pu=null;function ju(){Pu=Zr=Gi=null}function Iu(e){var t=Ki.current;we(Ki),e._currentValue=t}function _c(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function to(e,t){Gi=e,Pu=Zr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(it=!0),e.firstContext=null)}function Et(e){var t=e._currentValue;if(Pu!==e)if(e={context:e,memoizedValue:t,next:null},Zr===null){if(Gi===null)throw Error(R(308));Zr=e,Gi.dependencies={lanes:0,firstContext:e}}else Zr=Zr.next=e;return t}var fr=null;function Ou(e){fr===null?fr=[e]:fr.push(e)}function Dm(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ou(t)):(n.next=o.next,o.next=n),t.interleaved=n,gn(e,r)}function gn(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 Pn=!1;function Mu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zm(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 pn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,se&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,gn(e,n)}return o=r.interleaved,o===null?(t.next=t,Ou(r)):(t.next=o.next,o.next=t),r.interleaved=t,gn(e,n)}function ki(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,xu(e,n)}}function yf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Qi(e,t,n,r){var o=e.updateQueue;Pn=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,c=l.next;l.next=null,i===null?s=c:i.next=c,i=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==i&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(s!==null){var f=o.baseState;i=0,u=c=l=null,a=s;do{var g=a.lane,x=a.eventTime;if((r&g)===g){u!==null&&(u=u.next={eventTime:x,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,v=a;switch(g=t,x=n,v.tag){case 1:if(w=v.payload,typeof w=="function"){f=w.call(x,f,g);break e}f=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=v.payload,g=typeof w=="function"?w.call(x,f,g):w,g==null)break e;f=be({},f,g);break e;case 2:Pn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[a]:g.push(a))}else x={eventTime:x,lane:g,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=x,l=f):u=u.next=x,i|=g;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;g=a,a=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(u===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);_r|=i,e.lanes=i,e.memoizedState=f}}function xf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(R(191,o));o.call(r)}}}var Vs={},Yt=er(Vs),ps=er(Vs),ms=er(Vs);function pr(e){if(e===Vs)throw Error(R(174));return e}function Au(e,t){switch(ge(ms,t),ge(ps,e),ge(Yt,Vs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:nc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=nc(t,e)}we(Yt),ge(Yt,t)}function fo(){we(Yt),we(ps),we(ms)}function $m(e){pr(ms.current);var t=pr(Yt.current),n=nc(t,e.type);t!==n&&(ge(ps,e),ge(Yt,n))}function Lu(e){ps.current===e&&(we(Yt),we(ps))}var ke=er(0);function Yi(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 kl=[];function Du(){for(var e=0;e<kl.length;e++)kl[e]._workInProgressVersionPrimary=null;kl.length=0}var Ei=Cn.ReactCurrentDispatcher,El=Cn.ReactCurrentBatchConfig,Sr=0,Ee=null,Ie=null,Le=null,Xi=!1,Yo=!1,hs=0,vx=0;function Ue(){throw Error(R(321))}function zu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Dt(e[n],t[n]))return!1;return!0}function $u(e,t,n,r,o,s){if(Sr=s,Ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ei.current=e===null||e.memoizedState===null?Sx:_x,e=n(r,o),Yo){s=0;do{if(Yo=!1,hs=0,25<=s)throw Error(R(301));s+=1,Le=Ie=null,t.updateQueue=null,Ei.current=Cx,e=n(r,o)}while(Yo)}if(Ei.current=Ji,t=Ie!==null&&Ie.next!==null,Sr=0,Le=Ie=Ee=null,Xi=!1,t)throw Error(R(300));return e}function Fu(){var e=hs!==0;return hs=0,e}function Wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Le===null?Ee.memoizedState=Le=e:Le=Le.next=e,Le}function bt(){if(Ie===null){var e=Ee.alternate;e=e!==null?e.memoizedState:null}else e=Ie.next;var t=Le===null?Ee.memoizedState:Le.next;if(t!==null)Le=t,Ie=e;else{if(e===null)throw Error(R(310));Ie=e,e={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},Le===null?Ee.memoizedState=Le=e:Le=Le.next=e}return Le}function gs(e,t){return typeof t=="function"?t(e):t}function bl(e){var t=bt(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=Ie,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var i=o.next;o.next=s.next,s.next=i}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var a=i=null,l=null,c=s;do{var u=c.lane;if((Sr&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=f,i=r):l=l.next=f,Ee.lanes|=u,_r|=u}c=c.next}while(c!==null&&c!==s);l===null?i=r:l.next=a,Dt(r,t.memoizedState)||(it=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,Ee.lanes|=s,_r|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Nl(e){var t=bt(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do s=e(s,i.action),i=i.next;while(i!==o);Dt(s,t.memoizedState)||(it=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Fm(){}function Vm(e,t){var n=Ee,r=bt(),o=t(),s=!Dt(r.memoizedState,o);if(s&&(r.memoizedState=o,it=!0),r=r.queue,Vu(Hm.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Le!==null&&Le.memoizedState.tag&1){if(n.flags|=2048,vs(9,Um.bind(null,n,r,o,t),void 0,null),De===null)throw Error(R(349));Sr&30||Bm(n,t,o)}return o}function Bm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ee.updateQueue,t===null?(t={lastEffect:null,stores:null},Ee.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Um(e,t,n,r){t.value=n,t.getSnapshot=r,Wm(t)&&Zm(e)}function Hm(e,t,n){return n(function(){Wm(t)&&Zm(e)})}function Wm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dt(e,n)}catch{return!0}}function Zm(e){var t=gn(e,1);t!==null&&At(t,e,1,-1)}function wf(e){var t=Wt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:gs,lastRenderedState:e},t.queue=e,e=e.dispatch=wx.bind(null,Ee,e),[t.memoizedState,e]}function vs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ee.updateQueue,t===null?(t={lastEffect:null,stores:null},Ee.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function qm(){return bt().memoizedState}function bi(e,t,n,r){var o=Wt();Ee.flags|=e,o.memoizedState=vs(1|t,n,void 0,r===void 0?null:r)}function Na(e,t,n,r){var o=bt();r=r===void 0?null:r;var s=void 0;if(Ie!==null){var i=Ie.memoizedState;if(s=i.destroy,r!==null&&zu(r,i.deps)){o.memoizedState=vs(t,n,s,r);return}}Ee.flags|=e,o.memoizedState=vs(1|t,n,s,r)}function Sf(e,t){return bi(8390656,8,e,t)}function Vu(e,t){return Na(2048,8,e,t)}function Km(e,t){return Na(4,2,e,t)}function Gm(e,t){return Na(4,4,e,t)}function Qm(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 Ym(e,t,n){return n=n!=null?n.concat([e]):null,Na(4,4,Qm.bind(null,t,e),n)}function Bu(){}function Xm(e,t){var n=bt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&zu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Jm(e,t){var n=bt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&zu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function eh(e,t,n){return Sr&21?(Dt(n,t)||(n=sm(),Ee.lanes|=n,_r|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,it=!0),e.memoizedState=n)}function yx(e,t){var n=de;de=n!==0&&4>n?n:4,e(!0);var r=El.transition;El.transition={};try{e(!1),t()}finally{de=n,El.transition=r}}function th(){return bt().memoizedState}function xx(e,t,n){var r=Bn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},nh(e))rh(t,n);else if(n=Dm(e,t,n,r),n!==null){var o=Xe();At(n,e,r,o),oh(n,t,r)}}function wx(e,t,n){var r=Bn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(nh(e))rh(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,a=s(i,n);if(o.hasEagerState=!0,o.eagerState=a,Dt(a,i)){var l=t.interleaved;l===null?(o.next=o,Ou(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Dm(e,t,o,r),n!==null&&(o=Xe(),At(n,e,r,o),oh(n,t,r))}}function nh(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function rh(e,t){Yo=Xi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function oh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,xu(e,n)}}var Ji={readContext:Et,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},Sx={readContext:Et,useCallback:function(e,t){return Wt().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:Sf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,bi(4194308,4,Qm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return bi(4194308,4,e,t)},useInsertionEffect:function(e,t){return bi(4,2,e,t)},useMemo:function(e,t){var n=Wt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=xx.bind(null,Ee,e),[r.memoizedState,e]},useRef:function(e){var t=Wt();return e={current:e},t.memoizedState=e},useState:wf,useDebugValue:Bu,useDeferredValue:function(e){return Wt().memoizedState=e},useTransition:function(){var e=wf(!1),t=e[0];return e=yx.bind(null,e[1]),Wt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ee,o=Wt();if(_e){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),De===null)throw Error(R(349));Sr&30||Bm(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Sf(Hm.bind(null,r,s,e),[e]),r.flags|=2048,vs(9,Um.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Wt(),t=De.identifierPrefix;if(_e){var n=fn,r=dn;n=(r&~(1<<32-Mt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=hs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=vx++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},_x={readContext:Et,useCallback:Xm,useContext:Et,useEffect:Vu,useImperativeHandle:Ym,useInsertionEffect:Km,useLayoutEffect:Gm,useMemo:Jm,useReducer:bl,useRef:qm,useState:function(){return bl(gs)},useDebugValue:Bu,useDeferredValue:function(e){var t=bt();return eh(t,Ie.memoizedState,e)},useTransition:function(){var e=bl(gs)[0],t=bt().memoizedState;return[e,t]},useMutableSource:Fm,useSyncExternalStore:Vm,useId:th,unstable_isNewReconciler:!1},Cx={readContext:Et,useCallback:Xm,useContext:Et,useEffect:Vu,useImperativeHandle:Ym,useInsertionEffect:Km,useLayoutEffect:Gm,useMemo:Jm,useReducer:Nl,useRef:qm,useState:function(){return Nl(gs)},useDebugValue:Bu,useDeferredValue:function(e){var t=bt();return Ie===null?t.memoizedState=e:eh(t,Ie.memoizedState,e)},useTransition:function(){var e=Nl(gs)[0],t=bt().memoizedState;return[e,t]},useMutableSource:Fm,useSyncExternalStore:Vm,useId:th,unstable_isNewReconciler:!1};function Pt(e,t){if(e&&e.defaultProps){t=be({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Cc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:be({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ta={isMounted:function(e){return(e=e._reactInternals)?Rr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Xe(),o=Bn(e),s=pn(r,o);s.payload=t,n!=null&&(s.callback=n),t=Fn(e,s,o),t!==null&&(At(t,e,o,r),ki(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Xe(),o=Bn(e),s=pn(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Fn(e,s,o),t!==null&&(At(t,e,o,r),ki(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xe(),r=Bn(e),o=pn(n,r);o.tag=2,t!=null&&(o.callback=t),t=Fn(e,o,r),t!==null&&(At(t,e,r,n),ki(t,e,r))}};function _f(e,t,n,r,o,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,i):t.prototype&&t.prototype.isPureReactComponent?!cs(n,r)||!cs(o,s):!0}function sh(e,t,n){var r=!1,o=Wn,s=t.contextType;return typeof s=="object"&&s!==null?s=Et(s):(o=lt(t)?xr:qe.current,r=t.contextTypes,s=(r=r!=null)?lo(e,o):Wn),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ta,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function Cf(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ta.enqueueReplaceState(t,t.state,null)}function kc(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Mu(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=Et(s):(s=lt(t)?xr:qe.current,o.context=lo(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Cc(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Ta.enqueueReplaceState(o,o.state,null),Qi(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function po(e,t){try{var n="",r=t;do n+=Yy(r),r=r.return;while(r);var o=n}catch(s){o=`
|
|
39
|
-
Error generating stack: `+s.message+`
|
|
40
|
-
`+s.stack}return{value:e,source:t,stack:o,digest:null}}function Tl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ec(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var kx=typeof WeakMap=="function"?WeakMap:Map;function ih(e,t,n){n=pn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ta||(ta=!0,Ac=r),Ec(e,t)},n}function ah(e,t,n){n=pn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Ec(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Ec(e,t),typeof r!="function"&&(Vn===null?Vn=new Set([this]):Vn.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function kf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new kx;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=zx.bind(null,e,t,n),t.then(e,e))}function Ef(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 bf(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,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=pn(-1,1),t.tag=2,Fn(n,t,1))),n.lanes|=1),e)}var Ex=Cn.ReactCurrentOwner,it=!1;function Qe(e,t,n,r){t.child=e===null?Lm(t,null,n,r):uo(t,e.child,n,r)}function Nf(e,t,n,r,o){n=n.render;var s=t.ref;return to(t,o),r=$u(e,t,n,r,s,o),n=Fu(),e!==null&&!it?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,vn(e,t,o)):(_e&&n&&Nu(t),t.flags|=1,Qe(e,t,r,o),t.child)}function Tf(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!Qu(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,lh(e,t,s,r,o)):(e=Pi(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:cs,n(i,r)&&e.ref===t.ref)return vn(e,t,o)}return t.flags|=1,e=Un(s,r),e.ref=t.ref,e.return=t,t.child=e}function lh(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(cs(s,r)&&e.ref===t.ref)if(it=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(it=!0);else return t.lanes=e.lanes,vn(e,t,o)}return bc(e,t,n,r,o)}function ch(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ge(Kr,ut),ut|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ge(Kr,ut),ut|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ge(Kr,ut),ut|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ge(Kr,ut),ut|=r;return Qe(e,t,o,n),t.child}function uh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function bc(e,t,n,r,o){var s=lt(n)?xr:qe.current;return s=lo(t,s),to(t,o),n=$u(e,t,n,r,s,o),r=Fu(),e!==null&&!it?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,vn(e,t,o)):(_e&&r&&Nu(t),t.flags|=1,Qe(e,t,n,o),t.child)}function Rf(e,t,n,r,o){if(lt(n)){var s=!0;Wi(t)}else s=!1;if(to(t,o),t.stateNode===null)Ni(e,t),sh(t,n,r),kc(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var l=i.context,c=n.contextType;typeof c=="object"&&c!==null?c=Et(c):(c=lt(n)?xr:qe.current,c=lo(t,c));var u=n.getDerivedStateFromProps,f=typeof u=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||l!==c)&&Cf(t,i,r,c),Pn=!1;var g=t.memoizedState;i.state=g,Qi(t,r,i,o),l=t.memoizedState,a!==r||g!==l||at.current||Pn?(typeof u=="function"&&(Cc(t,n,u,r),l=t.memoizedState),(a=Pn||_f(t,n,a,r,g,l,c))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=c,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,zm(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Pt(t.type,a),i.props=c,f=t.pendingProps,g=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=Et(l):(l=lt(n)?xr:qe.current,l=lo(t,l));var x=n.getDerivedStateFromProps;(u=typeof x=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==f||g!==l)&&Cf(t,i,r,l),Pn=!1,g=t.memoizedState,i.state=g,Qi(t,r,i,o);var w=t.memoizedState;a!==f||g!==w||at.current||Pn?(typeof x=="function"&&(Cc(t,n,x,r),w=t.memoizedState),(c=Pn||_f(t,n,c,r,g,w,l)||!1)?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,w,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,w,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),i.props=r,i.state=w,i.context=l,r=c):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return Nc(e,t,n,r,s,o)}function Nc(e,t,n,r,o,s){uh(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&mf(t,n,!1),vn(e,t,s);r=t.stateNode,Ex.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=uo(t,e.child,null,s),t.child=uo(t,null,a,s)):Qe(e,t,a,s),t.memoizedState=r.state,o&&mf(t,n,!0),t.child}function dh(e){var t=e.stateNode;t.pendingContext?pf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&pf(e,t.context,!1),Au(e,t.containerInfo)}function Pf(e,t,n,r,o){return co(),Ru(o),t.flags|=256,Qe(e,t,n,r),t.child}var Tc={dehydrated:null,treeContext:null,retryLane:0};function Rc(e){return{baseLanes:e,cachePool:null,transitions:null}}function fh(e,t,n){var r=t.pendingProps,o=ke.current,s=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ge(ke,o&1),e===null)return Sc(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):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=ja(i,r,0,null),e=gr(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Rc(n),t.memoizedState=Tc,e):Uu(t,i));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return bx(e,t,i,r,a,o,n);if(s){s=r.fallback,i=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Un(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?s=Un(a,s):(s=gr(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,i=e.child.memoizedState,i=i===null?Rc(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=Tc,r}return s=e.child,e=s.sibling,r=Un(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Uu(e,t){return t=ja({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ai(e,t,n,r){return r!==null&&Ru(r),uo(t,e.child,null,n),e=Uu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bx(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=Tl(Error(R(422))),ai(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=ja({mode:"visible",children:r.children},o,0,null),s=gr(s,o,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&uo(t,e.child,null,i),t.child.memoizedState=Rc(i),t.memoizedState=Tc,s);if(!(t.mode&1))return ai(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(R(419)),r=Tl(s,r,void 0),ai(e,t,i,r)}if(a=(i&e.childLanes)!==0,it||a){if(r=De,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,gn(e,o),At(r,e,o,-1))}return Gu(),r=Tl(Error(R(421))),ai(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=$x.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,ft=$n(o.nextSibling),mt=t,_e=!0,It=null,e!==null&&(St[_t++]=dn,St[_t++]=fn,St[_t++]=wr,dn=e.id,fn=e.overflow,wr=t),t=Uu(t,r.children),t.flags|=4096,t)}function jf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),_c(e.return,t,n)}function Rl(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function ph(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(Qe(e,t,r.children,n),r=ke.current,r&2)r=r&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&&jf(e,n,t);else if(e.tag===19)jf(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}r&=1}if(ge(ke,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Yi(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Rl(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Yi(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Rl(t,!0,n,null,s);break;case"together":Rl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ni(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function vn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_r|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=Un(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Un(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Nx(e,t,n){switch(t.tag){case 3:dh(t),co();break;case 5:$m(t);break;case 1:lt(t.type)&&Wi(t);break;case 4:Au(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ge(Ki,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ge(ke,ke.current&1),t.flags|=128,null):n&t.child.childLanes?fh(e,t,n):(ge(ke,ke.current&1),e=vn(e,t,n),e!==null?e.sibling:null);ge(ke,ke.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return ph(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ge(ke,ke.current),r)break;return null;case 22:case 23:return t.lanes=0,ch(e,t,n)}return vn(e,t,n)}var mh,Pc,hh,gh;mh=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}};Pc=function(){};hh=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,pr(Yt.current);var s=null;switch(n){case"input":o=Xl(e,o),r=Xl(e,r),s=[];break;case"select":o=be({},o,{value:void 0}),r=be({},r,{value:void 0}),s=[];break;case"textarea":o=tc(e,o),r=tc(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ui)}rc(n,r);var i;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var a=o[c];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(ns.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var l=r[c];if(a=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(s||(s=[]),s.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(ns.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&xe("scroll",e),s||a===l||(s=[])):(s=s||[]).push(c,l))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};gh=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ao(e,t){if(!_e)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 r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function He(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Tx(e,t,n){var r=t.pendingProps;switch(Tu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return lt(t.type)&&Hi(),He(t),null;case 3:return r=t.stateNode,fo(),we(at),we(qe),Du(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(si(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,It!==null&&(zc(It),It=null))),Pc(e,t),He(t),null;case 5:Lu(t);var o=pr(ms.current);if(n=t.type,e!==null&&t.stateNode!=null)hh(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(R(166));return He(t),null}if(e=pr(Yt.current),si(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Zt]=t,r[fs]=s,e=(t.mode&1)!==0,n){case"dialog":xe("cancel",r),xe("close",r);break;case"iframe":case"object":case"embed":xe("load",r);break;case"video":case"audio":for(o=0;o<Bo.length;o++)xe(Bo[o],r);break;case"source":xe("error",r);break;case"img":case"image":case"link":xe("error",r),xe("load",r);break;case"details":xe("toggle",r);break;case"input":$d(r,s),xe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},xe("invalid",r);break;case"textarea":Vd(r,s),xe("invalid",r)}rc(n,s),o=null;for(var i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&oi(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&oi(r.textContent,a,e),o=["children",""+a]):ns.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&xe("scroll",r)}switch(n){case"input":Qs(r),Fd(r,s,!0);break;case"textarea":Qs(r),Bd(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Ui)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Hp(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Zt]=t,e[fs]=r,mh(e,t,!1,!1),t.stateNode=e;e:{switch(i=oc(n,r),n){case"dialog":xe("cancel",e),xe("close",e),o=r;break;case"iframe":case"object":case"embed":xe("load",e),o=r;break;case"video":case"audio":for(o=0;o<Bo.length;o++)xe(Bo[o],e);o=r;break;case"source":xe("error",e),o=r;break;case"img":case"image":case"link":xe("error",e),xe("load",e),o=r;break;case"details":xe("toggle",e),o=r;break;case"input":$d(e,r),o=Xl(e,r),xe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=be({},r,{value:void 0}),xe("invalid",e);break;case"textarea":Vd(e,r),o=tc(e,r),xe("invalid",e);break;default:o=r}rc(n,o),a=o;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?qp(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Wp(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&rs(e,l):typeof l=="number"&&rs(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(ns.hasOwnProperty(s)?l!=null&&s==="onScroll"&&xe("scroll",e):l!=null&&pu(e,s,l,i))}switch(n){case"input":Qs(e),Fd(e,r,!1);break;case"textarea":Qs(e),Bd(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Hn(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Yr(e,!!r.multiple,s,!1):r.defaultValue!=null&&Yr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ui)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return He(t),null;case 6:if(e&&t.stateNode!=null)gh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(R(166));if(n=pr(ms.current),pr(Yt.current),si(t)){if(r=t.stateNode,n=t.memoizedProps,r[Zt]=t,(s=r.nodeValue!==n)&&(e=mt,e!==null))switch(e.tag){case 3:oi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&oi(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Zt]=t,t.stateNode=r}return He(t),null;case 13:if(we(ke),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(_e&&ft!==null&&t.mode&1&&!(t.flags&128))Mm(),co(),t.flags|=98560,s=!1;else if(s=si(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(R(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(R(317));s[Zt]=t}else co(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;He(t),s=!1}else It!==null&&(zc(It),It=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ke.current&1?Oe===0&&(Oe=3):Gu())),t.updateQueue!==null&&(t.flags|=4),He(t),null);case 4:return fo(),Pc(e,t),e===null&&us(t.stateNode.containerInfo),He(t),null;case 10:return Iu(t.type._context),He(t),null;case 17:return lt(t.type)&&Hi(),He(t),null;case 19:if(we(ke),s=t.memoizedState,s===null)return He(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)Ao(s,!1);else{if(Oe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Yi(e),i!==null){for(t.flags|=128,Ao(s,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ge(ke,ke.current&1|2),t.child}e=e.sibling}s.tail!==null&&Re()>mo&&(t.flags|=128,r=!0,Ao(s,!1),t.lanes=4194304)}else{if(!r)if(e=Yi(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ao(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!_e)return He(t),null}else 2*Re()-s.renderingStartTime>mo&&n!==1073741824&&(t.flags|=128,r=!0,Ao(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Re(),t.sibling=null,n=ke.current,ge(ke,r?n&1|2:n&1),t):(He(t),null);case 22:case 23:return Ku(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ut&1073741824&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function Rx(e,t){switch(Tu(t),t.tag){case 1:return lt(t.type)&&Hi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fo(),we(at),we(qe),Du(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Lu(t),null;case 13:if(we(ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));co()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return we(ke),null;case 4:return fo(),null;case 10:return Iu(t.type._context),null;case 22:case 23:return Ku(),null;case 24:return null;default:return null}}var li=!1,We=!1,Px=typeof WeakSet=="function"?WeakSet:Set,$=null;function qr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ne(e,t,r)}else n.current=null}function jc(e,t,n){try{n()}catch(r){Ne(e,t,r)}}var If=!1;function jx(e,t){if(mc=Fi,e=Sm(),bu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,c=0,u=0,f=e,g=null;t:for(;;){for(var x;f!==n||o!==0&&f.nodeType!==3||(a=i+o),f!==s||r!==0&&f.nodeType!==3||(l=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(x=f.firstChild)!==null;)g=f,f=x;for(;;){if(f===e)break t;if(g===n&&++c===o&&(a=i),g===s&&++u===r&&(l=i),(x=f.nextSibling)!==null)break;f=g,g=f.parentNode}f=x}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(hc={focusedElem:e,selectionRange:n},Fi=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,_=w.memoizedState,m=t.stateNode,d=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:Pt(t.type,v),_);m.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(C){Ne(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return w=If,If=!1,w}function Xo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&jc(t,n,s)}o=o.next}while(o!==r)}}function Ra(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 r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ic(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 vh(e){var t=e.alternate;t!==null&&(e.alternate=null,vh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Zt],delete t[fs],delete t[yc],delete t[px],delete t[mx])),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 yh(e){return e.tag===5||e.tag===3||e.tag===4}function Of(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yh(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 Oc(e,t,n){var r=e.tag;if(r===5||r===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=Ui));else if(r!==4&&(e=e.child,e!==null))for(Oc(e,t,n),e=e.sibling;e!==null;)Oc(e,t,n),e=e.sibling}function Mc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Mc(e,t,n),e=e.sibling;e!==null;)Mc(e,t,n),e=e.sibling}var $e=null,jt=!1;function En(e,t,n){for(n=n.child;n!==null;)xh(e,t,n),n=n.sibling}function xh(e,t,n){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(Sa,n)}catch{}switch(n.tag){case 5:We||qr(n,t);case 6:var r=$e,o=jt;$e=null,En(e,t,n),$e=r,jt=o,$e!==null&&(jt?(e=$e,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):$e.removeChild(n.stateNode));break;case 18:$e!==null&&(jt?(e=$e,n=n.stateNode,e.nodeType===8?_l(e.parentNode,n):e.nodeType===1&&_l(e,n),as(e)):_l($e,n.stateNode));break;case 4:r=$e,o=jt,$e=n.stateNode.containerInfo,jt=!0,En(e,t,n),$e=r,jt=o;break;case 0:case 11:case 14:case 15:if(!We&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&jc(n,t,i),o=o.next}while(o!==r)}En(e,t,n);break;case 1:if(!We&&(qr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ne(n,t,a)}En(e,t,n);break;case 21:En(e,t,n);break;case 22:n.mode&1?(We=(r=We)||n.memoizedState!==null,En(e,t,n),We=r):En(e,t,n);break;default:En(e,t,n)}}function Mf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Px),t.forEach(function(r){var o=Fx.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Tt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:$e=a.stateNode,jt=!1;break e;case 3:$e=a.stateNode.containerInfo,jt=!0;break e;case 4:$e=a.stateNode.containerInfo,jt=!0;break e}a=a.return}if($e===null)throw Error(R(160));xh(s,i,o),$e=null,jt=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(c){Ne(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)wh(t,e),t=t.sibling}function wh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Tt(t,e),Ht(e),r&4){try{Xo(3,e,e.return),Ra(3,e)}catch(v){Ne(e,e.return,v)}try{Xo(5,e,e.return)}catch(v){Ne(e,e.return,v)}}break;case 1:Tt(t,e),Ht(e),r&512&&n!==null&&qr(n,n.return);break;case 5:if(Tt(t,e),Ht(e),r&512&&n!==null&&qr(n,n.return),e.flags&32){var o=e.stateNode;try{rs(o,"")}catch(v){Ne(e,e.return,v)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&Bp(o,s),oc(a,i);var c=oc(a,s);for(i=0;i<l.length;i+=2){var u=l[i],f=l[i+1];u==="style"?qp(o,f):u==="dangerouslySetInnerHTML"?Wp(o,f):u==="children"?rs(o,f):pu(o,u,f,c)}switch(a){case"input":Jl(o,s);break;case"textarea":Up(o,s);break;case"select":var g=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var x=s.value;x!=null?Yr(o,!!s.multiple,x,!1):g!==!!s.multiple&&(s.defaultValue!=null?Yr(o,!!s.multiple,s.defaultValue,!0):Yr(o,!!s.multiple,s.multiple?[]:"",!1))}o[fs]=s}catch(v){Ne(e,e.return,v)}}break;case 6:if(Tt(t,e),Ht(e),r&4){if(e.stateNode===null)throw Error(R(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(v){Ne(e,e.return,v)}}break;case 3:if(Tt(t,e),Ht(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{as(t.containerInfo)}catch(v){Ne(e,e.return,v)}break;case 4:Tt(t,e),Ht(e);break;case 13:Tt(t,e),Ht(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(Zu=Re())),r&4&&Mf(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(We=(c=We)||u,Tt(t,e),We=c):Tt(t,e),Ht(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for($=e,u=e.child;u!==null;){for(f=$=u;$!==null;){switch(g=$,x=g.child,g.tag){case 0:case 11:case 14:case 15:Xo(4,g,g.return);break;case 1:qr(g,g.return);var w=g.stateNode;if(typeof w.componentWillUnmount=="function"){r=g,n=g.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(v){Ne(r,n,v)}}break;case 5:qr(g,g.return);break;case 22:if(g.memoizedState!==null){Lf(f);continue}}x!==null?(x.return=g,$=x):Lf(f)}u=u.sibling}e:for(u=null,f=e;;){if(f.tag===5){if(u===null){u=f;try{o=f.stateNode,c?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=f.stateNode,l=f.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Zp("display",i))}catch(v){Ne(e,e.return,v)}}}else if(f.tag===6){if(u===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(v){Ne(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;u===f&&(u=null),f=f.return}u===f&&(u=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Tt(t,e),Ht(e),r&4&&Mf(e);break;case 21:break;default:Tt(t,e),Ht(e)}}function Ht(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(yh(n)){var r=n;break e}n=n.return}throw Error(R(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(rs(o,""),r.flags&=-33);var s=Of(e);Mc(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,a=Of(e);Oc(e,a,i);break;default:throw Error(R(161))}}catch(l){Ne(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ix(e,t,n){$=e,Sh(e)}function Sh(e,t,n){for(var r=(e.mode&1)!==0;$!==null;){var o=$,s=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||li;if(!i){var a=o.alternate,l=a!==null&&a.memoizedState!==null||We;a=li;var c=We;if(li=i,(We=l)&&!c)for($=o;$!==null;)i=$,l=i.child,i.tag===22&&i.memoizedState!==null?Df(o):l!==null?(l.return=i,$=l):Df(o);for(;s!==null;)$=s,Sh(s),s=s.sibling;$=o,li=a,We=c}Af(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,$=s):Af(e)}}function Af(e){for(;$!==null;){var t=$;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:We||Ra(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!We)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Pt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&xf(t,s,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}xf(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var f=u.dehydrated;f!==null&&as(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}We||t.flags&512&&Ic(t)}catch(g){Ne(t,t.return,g)}}if(t===e){$=null;break}if(n=t.sibling,n!==null){n.return=t.return,$=n;break}$=t.return}}function Lf(e){for(;$!==null;){var t=$;if(t===e){$=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$=n;break}$=t.return}}function Df(e){for(;$!==null;){var t=$;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ra(4,t)}catch(l){Ne(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){Ne(t,o,l)}}var s=t.return;try{Ic(t)}catch(l){Ne(t,s,l)}break;case 5:var i=t.return;try{Ic(t)}catch(l){Ne(t,i,l)}}}catch(l){Ne(t,t.return,l)}if(t===e){$=null;break}var a=t.sibling;if(a!==null){a.return=t.return,$=a;break}$=t.return}}var Ox=Math.ceil,ea=Cn.ReactCurrentDispatcher,Hu=Cn.ReactCurrentOwner,kt=Cn.ReactCurrentBatchConfig,se=0,De=null,je=null,Fe=0,ut=0,Kr=er(0),Oe=0,ys=null,_r=0,Pa=0,Wu=0,Jo=null,st=null,Zu=0,mo=1/0,cn=null,ta=!1,Ac=null,Vn=null,ci=!1,An=null,na=0,es=0,Lc=null,Ti=-1,Ri=0;function Xe(){return se&6?Re():Ti!==-1?Ti:Ti=Re()}function Bn(e){return e.mode&1?se&2&&Fe!==0?Fe&-Fe:gx.transition!==null?(Ri===0&&(Ri=sm()),Ri):(e=de,e!==0||(e=window.event,e=e===void 0?16:fm(e.type)),e):1}function At(e,t,n,r){if(50<es)throw es=0,Lc=null,Error(R(185));zs(e,n,r),(!(se&2)||e!==De)&&(e===De&&(!(se&2)&&(Pa|=n),Oe===4&&In(e,Fe)),ct(e,r),n===1&&se===0&&!(t.mode&1)&&(mo=Re()+500,ba&&tr()))}function ct(e,t){var n=e.callbackNode;g0(e,t);var r=$i(e,e===De?Fe:0);if(r===0)n!==null&&Wd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Wd(n),t===1)e.tag===0?hx(zf.bind(null,e)):jm(zf.bind(null,e)),dx(function(){!(se&6)&&tr()}),n=null;else{switch(im(r)){case 1:n=yu;break;case 4:n=rm;break;case 16:n=zi;break;case 536870912:n=om;break;default:n=zi}n=Rh(n,_h.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function _h(e,t){if(Ti=-1,Ri=0,se&6)throw Error(R(327));var n=e.callbackNode;if(no()&&e.callbackNode!==n)return null;var r=$i(e,e===De?Fe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ra(e,r);else{t=r;var o=se;se|=2;var s=kh();(De!==e||Fe!==t)&&(cn=null,mo=Re()+500,hr(e,t));do try{Lx();break}catch(a){Ch(e,a)}while(!0);ju(),ea.current=s,se=o,je!==null?t=0:(De=null,Fe=0,t=Oe)}if(t!==0){if(t===2&&(o=cc(e),o!==0&&(r=o,t=Dc(e,o))),t===1)throw n=ys,hr(e,0),In(e,r),ct(e,Re()),n;if(t===6)In(e,r);else{if(o=e.current.alternate,!(r&30)&&!Mx(o)&&(t=ra(e,r),t===2&&(s=cc(e),s!==0&&(r=s,t=Dc(e,s))),t===1))throw n=ys,hr(e,0),In(e,r),ct(e,Re()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(R(345));case 2:cr(e,st,cn);break;case 3:if(In(e,r),(r&130023424)===r&&(t=Zu+500-Re(),10<t)){if($i(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Xe(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=vc(cr.bind(null,e,st,cn),t);break}cr(e,st,cn);break;case 4:if(In(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-Mt(r);s=1<<i,i=t[i],i>o&&(o=i),r&=~s}if(r=o,r=Re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ox(r/1960))-r,10<r){e.timeoutHandle=vc(cr.bind(null,e,st,cn),r);break}cr(e,st,cn);break;case 5:cr(e,st,cn);break;default:throw Error(R(329))}}}return ct(e,Re()),e.callbackNode===n?_h.bind(null,e):null}function Dc(e,t){var n=Jo;return e.current.memoizedState.isDehydrated&&(hr(e,t).flags|=256),e=ra(e,t),e!==2&&(t=st,st=n,t!==null&&zc(t)),e}function zc(e){st===null?st=e:st.push.apply(st,e)}function Mx(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!Dt(s(),o))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 In(e,t){for(t&=~Wu,t&=~Pa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Mt(t),r=1<<n;e[n]=-1,t&=~r}}function zf(e){if(se&6)throw Error(R(327));no();var t=$i(e,0);if(!(t&1))return ct(e,Re()),null;var n=ra(e,t);if(e.tag!==0&&n===2){var r=cc(e);r!==0&&(t=r,n=Dc(e,r))}if(n===1)throw n=ys,hr(e,0),In(e,t),ct(e,Re()),n;if(n===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,cr(e,st,cn),ct(e,Re()),null}function qu(e,t){var n=se;se|=1;try{return e(t)}finally{se=n,se===0&&(mo=Re()+500,ba&&tr())}}function Cr(e){An!==null&&An.tag===0&&!(se&6)&&no();var t=se;se|=1;var n=kt.transition,r=de;try{if(kt.transition=null,de=1,e)return e()}finally{de=r,kt.transition=n,se=t,!(se&6)&&tr()}}function Ku(){ut=Kr.current,we(Kr)}function hr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ux(n)),je!==null)for(n=je.return;n!==null;){var r=n;switch(Tu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Hi();break;case 3:fo(),we(at),we(qe),Du();break;case 5:Lu(r);break;case 4:fo();break;case 13:we(ke);break;case 19:we(ke);break;case 10:Iu(r.type._context);break;case 22:case 23:Ku()}n=n.return}if(De=e,je=e=Un(e.current,null),Fe=ut=t,Oe=0,ys=null,Wu=Pa=_r=0,st=Jo=null,fr!==null){for(t=0;t<fr.length;t++)if(n=fr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var i=s.next;s.next=o,r.next=i}n.pending=r}fr=null}return e}function Ch(e,t){do{var n=je;try{if(ju(),Ei.current=Ji,Xi){for(var r=Ee.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Xi=!1}if(Sr=0,Le=Ie=Ee=null,Yo=!1,hs=0,Hu.current=null,n===null||n.return===null){Oe=1,ys=t,je=null;break}e:{var s=e,i=n.return,a=n,l=t;if(t=Fe,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=a,f=u.tag;if(!(u.mode&1)&&(f===0||f===11||f===15)){var g=u.alternate;g?(u.updateQueue=g.updateQueue,u.memoizedState=g.memoizedState,u.lanes=g.lanes):(u.updateQueue=null,u.memoizedState=null)}var x=Ef(i);if(x!==null){x.flags&=-257,bf(x,i,a,s,t),x.mode&1&&kf(s,c,t),t=x,l=c;var w=t.updateQueue;if(w===null){var v=new Set;v.add(l),t.updateQueue=v}else w.add(l);break e}else{if(!(t&1)){kf(s,c,t),Gu();break e}l=Error(R(426))}}else if(_e&&a.mode&1){var _=Ef(i);if(_!==null){!(_.flags&65536)&&(_.flags|=256),bf(_,i,a,s,t),Ru(po(l,a));break e}}s=l=po(l,a),Oe!==4&&(Oe=2),Jo===null?Jo=[s]:Jo.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var m=ih(s,l,t);yf(s,m);break e;case 1:a=l;var d=s.type,y=s.stateNode;if(!(s.flags&128)&&(typeof d.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Vn===null||!Vn.has(y)))){s.flags|=65536,t&=-t,s.lanes|=t;var C=ah(s,a,t);yf(s,C);break e}}s=s.return}while(s!==null)}bh(n)}catch(k){t=k,je===n&&n!==null&&(je=n=n.return);continue}break}while(!0)}function kh(){var e=ea.current;return ea.current=Ji,e===null?Ji:e}function Gu(){(Oe===0||Oe===3||Oe===2)&&(Oe=4),De===null||!(_r&268435455)&&!(Pa&268435455)||In(De,Fe)}function ra(e,t){var n=se;se|=2;var r=kh();(De!==e||Fe!==t)&&(cn=null,hr(e,t));do try{Ax();break}catch(o){Ch(e,o)}while(!0);if(ju(),se=n,ea.current=r,je!==null)throw Error(R(261));return De=null,Fe=0,Oe}function Ax(){for(;je!==null;)Eh(je)}function Lx(){for(;je!==null&&!a0();)Eh(je)}function Eh(e){var t=Th(e.alternate,e,ut);e.memoizedProps=e.pendingProps,t===null?bh(e):je=t,Hu.current=null}function bh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Rx(n,t),n!==null){n.flags&=32767,je=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Oe=6,je=null;return}}else if(n=Tx(n,t,ut),n!==null){je=n;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);Oe===0&&(Oe=5)}function cr(e,t,n){var r=de,o=kt.transition;try{kt.transition=null,de=1,Dx(e,t,n,r)}finally{kt.transition=o,de=r}return null}function Dx(e,t,n,r){do no();while(An!==null);if(se&6)throw Error(R(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(v0(e,s),e===De&&(je=De=null,Fe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ci||(ci=!0,Rh(zi,function(){return no(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=kt.transition,kt.transition=null;var i=de;de=1;var a=se;se|=4,Hu.current=null,jx(e,n),wh(n,e),rx(hc),Fi=!!mc,hc=mc=null,e.current=n,Ix(n),l0(),se=a,de=i,kt.transition=s}else e.current=n;if(ci&&(ci=!1,An=e,na=o),s=e.pendingLanes,s===0&&(Vn=null),d0(n.stateNode),ct(e,Re()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(ta)throw ta=!1,e=Ac,Ac=null,e;return na&1&&e.tag!==0&&no(),s=e.pendingLanes,s&1?e===Lc?es++:(es=0,Lc=e):es=0,tr(),null}function no(){if(An!==null){var e=im(na),t=kt.transition,n=de;try{if(kt.transition=null,de=16>e?16:e,An===null)var r=!1;else{if(e=An,An=null,na=0,se&6)throw Error(R(331));var o=se;for(se|=4,$=e.current;$!==null;){var s=$,i=s.child;if($.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for($=c;$!==null;){var u=$;switch(u.tag){case 0:case 11:case 15:Xo(8,u,s)}var f=u.child;if(f!==null)f.return=u,$=f;else for(;$!==null;){u=$;var g=u.sibling,x=u.return;if(vh(u),u===c){$=null;break}if(g!==null){g.return=x,$=g;break}$=x}}}var w=s.alternate;if(w!==null){var v=w.child;if(v!==null){w.child=null;do{var _=v.sibling;v.sibling=null,v=_}while(v!==null)}}$=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,$=i;else e:for(;$!==null;){if(s=$,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Xo(9,s,s.return)}var m=s.sibling;if(m!==null){m.return=s.return,$=m;break e}$=s.return}}var d=e.current;for($=d;$!==null;){i=$;var y=i.child;if(i.subtreeFlags&2064&&y!==null)y.return=i,$=y;else e:for(i=d;$!==null;){if(a=$,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Ra(9,a)}}catch(k){Ne(a,a.return,k)}if(a===i){$=null;break e}var C=a.sibling;if(C!==null){C.return=a.return,$=C;break e}$=a.return}}if(se=o,tr(),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(Sa,e)}catch{}r=!0}return r}finally{de=n,kt.transition=t}}return!1}function $f(e,t,n){t=po(n,t),t=ih(e,t,1),e=Fn(e,t,1),t=Xe(),e!==null&&(zs(e,1,t),ct(e,t))}function Ne(e,t,n){if(e.tag===3)$f(e,e,n);else for(;t!==null;){if(t.tag===3){$f(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Vn===null||!Vn.has(r))){e=po(n,e),e=ah(t,e,1),t=Fn(t,e,1),e=Xe(),t!==null&&(zs(t,1,e),ct(t,e));break}}t=t.return}}function zx(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Xe(),e.pingedLanes|=e.suspendedLanes&n,De===e&&(Fe&n)===n&&(Oe===4||Oe===3&&(Fe&130023424)===Fe&&500>Re()-Zu?hr(e,0):Wu|=n),ct(e,t)}function Nh(e,t){t===0&&(e.mode&1?(t=Js,Js<<=1,!(Js&130023424)&&(Js=4194304)):t=1);var n=Xe();e=gn(e,t),e!==null&&(zs(e,t,n),ct(e,n))}function $x(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Nh(e,n)}function Fx(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),Nh(e,n)}var Th;Th=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||at.current)it=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return it=!1,Nx(e,t,n);it=!!(e.flags&131072)}else it=!1,_e&&t.flags&1048576&&Im(t,qi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ni(e,t),e=t.pendingProps;var o=lo(t,qe.current);to(t,n),o=$u(null,t,r,e,o,n);var s=Fu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,lt(r)?(s=!0,Wi(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Mu(t),o.updater=Ta,t.stateNode=o,o._reactInternals=t,kc(t,r,e,n),t=Nc(null,t,r,!0,s,n)):(t.tag=0,_e&&s&&Nu(t),Qe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ni(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Bx(r),e=Pt(r,e),o){case 0:t=bc(null,t,r,e,n);break e;case 1:t=Rf(null,t,r,e,n);break e;case 11:t=Nf(null,t,r,e,n);break e;case 14:t=Tf(null,t,r,Pt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Pt(r,o),bc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Pt(r,o),Rf(e,t,r,o,n);case 3:e:{if(dh(t),e===null)throw Error(R(387));r=t.pendingProps,s=t.memoizedState,o=s.element,zm(e,t),Qi(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=po(Error(R(423)),t),t=Pf(e,t,r,n,o);break e}else if(r!==o){o=po(Error(R(424)),t),t=Pf(e,t,r,n,o);break e}else for(ft=$n(t.stateNode.containerInfo.firstChild),mt=t,_e=!0,It=null,n=Lm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(co(),r===o){t=vn(e,t,n);break e}Qe(e,t,r,n)}t=t.child}return t;case 5:return $m(t),e===null&&Sc(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,gc(r,o)?i=null:s!==null&&gc(r,s)&&(t.flags|=32),uh(e,t),Qe(e,t,i,n),t.child;case 6:return e===null&&Sc(t),null;case 13:return fh(e,t,n);case 4:return Au(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=uo(t,null,r,n):Qe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Pt(r,o),Nf(e,t,r,o,n);case 7:return Qe(e,t,t.pendingProps,n),t.child;case 8:return Qe(e,t,t.pendingProps.children,n),t.child;case 12:return Qe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,ge(Ki,r._currentValue),r._currentValue=i,s!==null)if(Dt(s.value,i)){if(s.children===o.children&&!at.current){t=vn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){i=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=pn(-1,n&-n),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),_c(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(R(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),_c(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}Qe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,to(t,n),o=Et(o),r=r(o),t.flags|=1,Qe(e,t,r,n),t.child;case 14:return r=t.type,o=Pt(r,t.pendingProps),o=Pt(r.type,o),Tf(e,t,r,o,n);case 15:return lh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Pt(r,o),Ni(e,t),t.tag=1,lt(r)?(e=!0,Wi(t)):e=!1,to(t,n),sh(t,r,o),kc(t,r,o,n),Nc(null,t,r,!0,e,n);case 19:return ph(e,t,n);case 22:return ch(e,t,n)}throw Error(R(156,t.tag))};function Rh(e,t){return nm(e,t)}function Vx(e,t,n,r){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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ct(e,t,n,r){return new Vx(e,t,n,r)}function Qu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bx(e){if(typeof e=="function")return Qu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===hu)return 11;if(e===gu)return 14}return 2}function Un(e,t){var n=e.alternate;return n===null?(n=Ct(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 Pi(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")Qu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case zr:return gr(n.children,o,s,t);case mu:i=8,o|=8;break;case Kl:return e=Ct(12,n,t,o|2),e.elementType=Kl,e.lanes=s,e;case Gl:return e=Ct(13,n,t,o),e.elementType=Gl,e.lanes=s,e;case Ql:return e=Ct(19,n,t,o),e.elementType=Ql,e.lanes=s,e;case $p:return ja(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Dp:i=10;break e;case zp:i=9;break e;case hu:i=11;break e;case gu:i=14;break e;case Rn:i=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Ct(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function gr(e,t,n,r){return e=Ct(7,e,r,t),e.lanes=n,e}function ja(e,t,n,r){return e=Ct(22,e,r,t),e.elementType=$p,e.lanes=n,e.stateNode={isHidden:!1},e}function Pl(e,t,n){return e=Ct(6,e,null,t),e.lanes=n,e}function jl(e,t,n){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ux(e,t,n,r,o){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=dl(0),this.expirationTimes=dl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Yu(e,t,n,r,o,s,i,a,l){return e=new Ux(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ct(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mu(s),e}function Hx(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Dr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ph(e){if(!e)return Wn;e=e._reactInternals;e:{if(Rr(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(lt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var n=e.type;if(lt(n))return Pm(e,n,t)}return t}function jh(e,t,n,r,o,s,i,a,l){return e=Yu(n,r,!0,e,o,s,i,a,l),e.context=Ph(null),n=e.current,r=Xe(),o=Bn(n),s=pn(r,o),s.callback=t??null,Fn(n,s,o),e.current.lanes=o,zs(e,o,r),ct(e,r),e}function Ia(e,t,n,r){var o=t.current,s=Xe(),i=Bn(o);return n=Ph(n),t.context===null?t.context=n:t.pendingContext=n,t=pn(s,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Fn(o,t,i),e!==null&&(At(e,o,i,s),ki(e,o,i)),i}function oa(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 Ff(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Xu(e,t){Ff(e,t),(e=e.alternate)&&Ff(e,t)}function Wx(){return null}var Ih=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ju(e){this._internalRoot=e}Oa.prototype.render=Ju.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));Ia(e,t,null,null)};Oa.prototype.unmount=Ju.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Cr(function(){Ia(null,e,null,null)}),t[hn]=null}};function Oa(e){this._internalRoot=e}Oa.prototype.unstable_scheduleHydration=function(e){if(e){var t=cm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jn.length&&t!==0&&t<jn[n].priority;n++);jn.splice(n,0,e),n===0&&dm(e)}};function ed(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ma(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Vf(){}function Zx(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var c=oa(i);s.call(c)}}var i=jh(t,r,e,0,null,!1,!1,"",Vf);return e._reactRootContainer=i,e[hn]=i.current,us(e.nodeType===8?e.parentNode:e),Cr(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var c=oa(l);a.call(c)}}var l=Yu(e,0,!1,null,null,!1,!1,"",Vf);return e._reactRootContainer=l,e[hn]=l.current,us(e.nodeType===8?e.parentNode:e),Cr(function(){Ia(t,l,n,r)}),l}function Aa(e,t,n,r,o){var s=n._reactRootContainer;if(s){var i=s;if(typeof o=="function"){var a=o;o=function(){var l=oa(i);a.call(l)}}Ia(t,i,e,o)}else i=Zx(n,t,e,o,r);return oa(i)}am=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Vo(t.pendingLanes);n!==0&&(xu(t,n|1),ct(t,Re()),!(se&6)&&(mo=Re()+500,tr()))}break;case 13:Cr(function(){var r=gn(e,1);if(r!==null){var o=Xe();At(r,e,1,o)}}),Xu(e,1)}};wu=function(e){if(e.tag===13){var t=gn(e,134217728);if(t!==null){var n=Xe();At(t,e,134217728,n)}Xu(e,134217728)}};lm=function(e){if(e.tag===13){var t=Bn(e),n=gn(e,t);if(n!==null){var r=Xe();At(n,e,t,r)}Xu(e,t)}};cm=function(){return de};um=function(e,t){var n=de;try{return de=e,t()}finally{de=n}};ic=function(e,t,n){switch(t){case"input":if(Jl(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 r=n[t];if(r!==e&&r.form===e.form){var o=Ea(r);if(!o)throw Error(R(90));Vp(r),Jl(r,o)}}}break;case"textarea":Up(e,n);break;case"select":t=n.value,t!=null&&Yr(e,!!n.multiple,t,!1)}};Qp=qu;Yp=Cr;var qx={usingClientEntryPoint:!1,Events:[Fs,Br,Ea,Kp,Gp,qu]},Lo={findFiberByHostInstance:dr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Kx={bundleType:Lo.bundleType,version:Lo.version,rendererPackageName:Lo.rendererPackageName,rendererConfig:Lo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Cn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=em(e),e===null?null:e.stateNode},findFiberByHostInstance:Lo.findFiberByHostInstance||Wx,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 ui=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ui.isDisabled&&ui.supportsFiber)try{Sa=ui.inject(Kx),Qt=ui}catch{}}yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qx;yt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ed(t))throw Error(R(200));return Hx(e,t,null,n)};yt.createRoot=function(e,t){if(!ed(e))throw Error(R(299));var n=!1,r="",o=Ih;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Yu(e,1,!1,null,null,n,!1,r,o),e[hn]=t.current,us(e.nodeType===8?e.parentNode:e),new Ju(t)};yt.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(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=em(t),e=e===null?null:e.stateNode,e};yt.flushSync=function(e){return Cr(e)};yt.hydrate=function(e,t,n){if(!Ma(t))throw Error(R(200));return Aa(null,e,t,!0,n)};yt.hydrateRoot=function(e,t,n){if(!ed(e))throw Error(R(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=Ih;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=jh(t,null,e,1,n??null,o,!1,s,i),e[hn]=t.current,us(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Oa(t)};yt.render=function(e,t,n){if(!Ma(t))throw Error(R(200));return Aa(null,e,t,!1,n)};yt.unmountComponentAtNode=function(e){if(!Ma(e))throw Error(R(40));return e._reactRootContainer?(Cr(function(){Aa(null,null,e,!1,function(){e._reactRootContainer=null,e[hn]=null})}),!0):!1};yt.unstable_batchedUpdates=qu;yt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ma(n))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return Aa(e,t,n,!1,r)};yt.version="18.3.1-next-f1338f8080-20240426";function Oh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Oh)}catch(e){console.error(e)}}Oh(),Op.exports=yt;var Co=Op.exports;const Gx=Sp(Co);var Mh,Bf=Co;Mh=Bf.createRoot,Bf.hydrateRoot;function Ah(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ah(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Gt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ah(e))&&(r&&(r+=" "),r+=t);return r}const xs=e=>typeof e=="number"&&!isNaN(e),vr=e=>typeof e=="string",pt=e=>typeof e=="function",ji=e=>vr(e)||pt(e)?e:null,$c=e=>h.isValidElement(e)||vr(e)||pt(e)||xs(e);function Qx(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}function La(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:o=!0,collapseDuration:s=300}=e;return function(i){let{children:a,position:l,preventExitTransition:c,done:u,nodeRef:f,isIn:g,playToast:x}=i;const w=r?`${t}--${l}`:t,v=r?`${n}--${l}`:n,_=h.useRef(0);return h.useLayoutEffect(()=>{const m=f.current,d=w.split(" "),y=C=>{C.target===f.current&&(x(),m.removeEventListener("animationend",y),m.removeEventListener("animationcancel",y),_.current===0&&C.type!=="animationcancel"&&m.classList.remove(...d))};m.classList.add(...d),m.addEventListener("animationend",y),m.addEventListener("animationcancel",y)},[]),h.useEffect(()=>{const m=f.current,d=()=>{m.removeEventListener("animationend",d),o?Qx(m,u,s):u()};g||(c?d():(_.current=1,m.className+=` ${v}`,m.addEventListener("animationend",d)))},[g]),ne.createElement(ne.Fragment,null,a)}}function Uf(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Ye=new Map;let ws=[];const Fc=new Set,Yx=e=>Fc.forEach(t=>t(e)),Lh=()=>Ye.size>0;function Dh(e,t){var n;if(t)return!((n=Ye.get(t))==null||!n.isToastActive(e));let r=!1;return Ye.forEach(o=>{o.isToastActive(e)&&(r=!0)}),r}function zh(e,t){$c(e)&&(Lh()||ws.push({content:e,options:t}),Ye.forEach(n=>{n.buildToast(e,t)}))}function Hf(e,t){Ye.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function Xx(e){const{subscribe:t,getSnapshot:n,setProps:r}=h.useRef(function(s){const i=s.containerId||1;return{subscribe(a){const l=function(u,f,g){let x=1,w=0,v=[],_=[],m=[],d=f;const y=new Map,C=new Set,k=()=>{m=Array.from(y.values()),C.forEach(E=>E())},T=E=>{_=E==null?[]:_.filter(I=>I!==E),k()},b=E=>{const{toastId:I,onOpen:j,updateId:V,children:M}=E.props,q=V==null;E.staleId&&y.delete(E.staleId),y.set(I,E),_=[..._,E.props.toastId].filter(W=>W!==E.staleId),k(),g(Uf(E,q?"added":"updated")),q&&pt(j)&&j(h.isValidElement(M)&&M.props)};return{id:u,props:d,observe:E=>(C.add(E),()=>C.delete(E)),toggle:(E,I)=>{y.forEach(j=>{I!=null&&I!==j.props.toastId||pt(j.toggle)&&j.toggle(E)})},removeToast:T,toasts:y,clearQueue:()=>{w-=v.length,v=[]},buildToast:(E,I)=>{if((J=>{let{containerId:pe,toastId:ie,updateId:Se}=J;const ve=pe?pe!==u:u!==1,B=y.has(ie)&&Se==null;return ve||B})(I))return;const{toastId:j,updateId:V,data:M,staleId:q,delay:W}=I,ee=()=>{T(j)},F=V==null;F&&w++;const K={...d,style:d.toastStyle,key:x++,...Object.fromEntries(Object.entries(I).filter(J=>{let[pe,ie]=J;return ie!=null})),toastId:j,updateId:V,data:M,closeToast:ee,isIn:!1,className:ji(I.className||d.toastClassName),bodyClassName:ji(I.bodyClassName||d.bodyClassName),progressClassName:ji(I.progressClassName||d.progressClassName),autoClose:!I.isLoading&&(N=I.autoClose,O=d.autoClose,N===!1||xs(N)&&N>0?N:O),deleteToast(){const J=y.get(j),{onClose:pe,children:ie}=J.props;pt(pe)&&pe(h.isValidElement(ie)&&ie.props),g(Uf(J,"removed")),y.delete(j),w--,w<0&&(w=0),v.length>0?b(v.shift()):k()}};var N,O;K.closeButton=d.closeButton,I.closeButton===!1||$c(I.closeButton)?K.closeButton=I.closeButton:I.closeButton===!0&&(K.closeButton=!$c(d.closeButton)||d.closeButton);let z=E;h.isValidElement(E)&&!vr(E.type)?z=h.cloneElement(E,{closeToast:ee,toastProps:K,data:M}):pt(E)&&(z=E({closeToast:ee,toastProps:K,data:M}));const H={content:z,props:K,staleId:q};d.limit&&d.limit>0&&w>d.limit&&F?v.push(H):xs(W)?setTimeout(()=>{b(H)},W):b(H)},setProps(E){d=E},setToggle:(E,I)=>{y.get(E).toggle=I},isToastActive:E=>_.some(I=>I===E),getSnapshot:()=>m}}(i,s,Yx);Ye.set(i,l);const c=l.observe(a);return ws.forEach(u=>zh(u.content,u.options)),ws=[],()=>{c(),Ye.delete(i)}},setProps(a){var l;(l=Ye.get(i))==null||l.setProps(a)},getSnapshot(){var a;return(a=Ye.get(i))==null?void 0:a.getSnapshot()}}}(e)).current;r(e);const o=h.useSyncExternalStore(t,n,n);return{getToastToRender:function(s){if(!o)return[];const i=new Map;return e.newestOnTop&&o.reverse(),o.forEach(a=>{const{position:l}=a.props;i.has(l)||i.set(l,[]),i.get(l).push(a)}),Array.from(i,a=>s(a[0],a[1]))},isToastActive:Dh,count:o==null?void 0:o.length}}function Jx(e){const[t,n]=h.useState(!1),[r,o]=h.useState(!1),s=h.useRef(null),i=h.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:l,closeToast:c,onClick:u,closeOnClick:f}=e;var g,x;function w(){n(!0)}function v(){n(!1)}function _(y){const C=s.current;i.canDrag&&C&&(i.didMove=!0,t&&v(),i.delta=e.draggableDirection==="x"?y.clientX-i.start:y.clientY-i.start,i.start!==y.clientX&&(i.canCloseOnClick=!1),C.style.transform=`translate3d(${e.draggableDirection==="x"?`${i.delta}px, var(--y)`:`0, calc(${i.delta}px + var(--y))`},0)`,C.style.opacity=""+(1-Math.abs(i.delta/i.removalDistance)))}function m(){document.removeEventListener("pointermove",_),document.removeEventListener("pointerup",m);const y=s.current;if(i.canDrag&&i.didMove&&y){if(i.canDrag=!1,Math.abs(i.delta)>i.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();y.style.transition="transform 0.2s, opacity 0.2s",y.style.removeProperty("transform"),y.style.removeProperty("opacity")}}(x=Ye.get((g={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||x.setToggle(g.id,g.fn),h.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||v(),window.addEventListener("focus",w),window.addEventListener("blur",v),()=>{window.removeEventListener("focus",w),window.removeEventListener("blur",v)}},[e.pauseOnFocusLoss]);const d={onPointerDown:function(y){if(e.draggable===!0||e.draggable===y.pointerType){i.didMove=!1,document.addEventListener("pointermove",_),document.addEventListener("pointerup",m);const C=s.current;i.canCloseOnClick=!0,i.canDrag=!0,C.style.transition="none",e.draggableDirection==="x"?(i.start=y.clientX,i.removalDistance=C.offsetWidth*(e.draggablePercent/100)):(i.start=y.clientY,i.removalDistance=C.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(y){const{top:C,bottom:k,left:T,right:b}=s.current.getBoundingClientRect();y.nativeEvent.type!=="touchend"&&e.pauseOnHover&&y.clientX>=T&&y.clientX<=b&&y.clientY>=C&&y.clientY<=k?v():w()}};return a&&l&&(d.onMouseEnter=v,e.stacked||(d.onMouseLeave=w)),f&&(d.onClick=y=>{u&&u(y),i.canCloseOnClick&&c()}),{playToast:w,pauseToast:v,isRunning:t,preventExitTransition:r,toastRef:s,eventHandlers:d}}function e1(e){let{delay:t,isRunning:n,closeToast:r,type:o="default",hide:s,className:i,style:a,controlledProgress:l,progress:c,rtl:u,isIn:f,theme:g}=e;const x=s||l&&c===0,w={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};l&&(w.transform=`scaleX(${c})`);const v=Gt("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":u}),_=pt(i)?i({rtl:u,type:o,defaultClassName:v}):Gt(v,i),m={[l&&c>=1?"onTransitionEnd":"onAnimationEnd"]:l&&c<1?null:()=>{f&&r()}};return ne.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":x},ne.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${g} Toastify__progress-bar--${o}`}),ne.createElement("div",{role:"progressbar","aria-hidden":x?"true":"false","aria-label":"notification timer",className:_,style:w,...m}))}let t1=1;const $h=()=>""+t1++;function n1(e){return e&&(vr(e.toastId)||xs(e.toastId))?e.toastId:$h()}function ts(e,t){return zh(e,t),t.toastId}function sa(e,t){return{...t,type:t&&t.type||e,toastId:n1(t)}}function di(e){return(t,n)=>ts(t,sa(e,n))}function me(e,t){return ts(e,sa("default",t))}me.loading=(e,t)=>ts(e,sa("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),me.promise=function(e,t,n){let r,{pending:o,error:s,success:i}=t;o&&(r=vr(o)?me.loading(o,n):me.loading(o.render,{...n,...o}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(u,f,g)=>{if(f==null)return void me.dismiss(r);const x={type:u,...a,...n,data:g},w=vr(f)?{render:f}:f;return r?me.update(r,{...x,...w}):me(w.render,{...x,...w}),g},c=pt(e)?e():e;return c.then(u=>l("success",i,u)).catch(u=>l("error",s,u)),c},me.success=di("success"),me.info=di("info"),me.error=di("error"),me.warning=di("warning"),me.warn=me.warning,me.dark=(e,t)=>ts(e,sa("default",{theme:"dark",...t})),me.dismiss=function(e){(function(t){var n;if(Lh()){if(t==null||vr(n=t)||xs(n))Ye.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=Ye.get(t.containerId);r?r.removeToast(t.id):Ye.forEach(o=>{o.removeToast(t.id)})}}else ws=ws.filter(r=>t!=null&&r.options.toastId!==t)})(e)},me.clearWaitingQueue=function(e){e===void 0&&(e={}),Ye.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},me.isActive=Dh,me.update=function(e,t){t===void 0&&(t={});const n=((r,o)=>{var s;let{containerId:i}=o;return(s=Ye.get(i||1))==null?void 0:s.toasts.get(r)})(e,t);if(n){const{props:r,content:o}=n,s={delay:100,...r,...t,toastId:t.toastId||e,updateId:$h()};s.toastId!==e&&(s.staleId=e);const i=s.render||o;delete s.render,ts(i,s)}},me.done=e=>{me.update(e,{progress:1})},me.onChange=function(e){return Fc.add(e),()=>{Fc.delete(e)}},me.play=e=>Hf(!0,e),me.pause=e=>Hf(!1,e);const r1=typeof window<"u"?h.useLayoutEffect:h.useEffect,fi=e=>{let{theme:t,type:n,isLoading:r,...o}=e;return ne.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...o})},Il={info:function(e){return ne.createElement(fi,{...e},ne.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return ne.createElement(fi,{...e},ne.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return ne.createElement(fi,{...e},ne.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return ne.createElement(fi,{...e},ne.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return ne.createElement("div",{className:"Toastify__spinner"})}},o1=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:o,playToast:s}=Jx(e),{closeButton:i,children:a,autoClose:l,onClick:c,type:u,hideProgressBar:f,closeToast:g,transition:x,position:w,className:v,style:_,bodyClassName:m,bodyStyle:d,progressClassName:y,progressStyle:C,updateId:k,role:T,progress:b,rtl:E,toastId:I,deleteToast:j,isIn:V,isLoading:M,closeOnClick:q,theme:W}=e,ee=Gt("Toastify__toast",`Toastify__toast-theme--${W}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":E},{"Toastify__toast--close-on-click":q}),F=pt(v)?v({rtl:E,position:w,type:u,defaultClassName:ee}):Gt(ee,v),K=function(H){let{theme:J,type:pe,isLoading:ie,icon:Se}=H,ve=null;const B={theme:J,type:pe};return Se===!1||(pt(Se)?ve=Se({...B,isLoading:ie}):h.isValidElement(Se)?ve=h.cloneElement(Se,B):ie?ve=Il.spinner():(ce=>ce in Il)(pe)&&(ve=Il[pe](B))),ve}(e),N=!!b||!l,O={closeToast:g,type:u,theme:W};let z=null;return i===!1||(z=pt(i)?i(O):h.isValidElement(i)?h.cloneElement(i,O):function(H){let{closeToast:J,theme:pe,ariaLabel:ie="close"}=H;return ne.createElement("button",{className:`Toastify__close-button Toastify__close-button--${pe}`,type:"button",onClick:Se=>{Se.stopPropagation(),J(Se)},"aria-label":ie},ne.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},ne.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(O)),ne.createElement(x,{isIn:V,done:j,position:w,preventExitTransition:n,nodeRef:r,playToast:s},ne.createElement("div",{id:I,onClick:c,"data-in":V,className:F,...o,style:_,ref:r},ne.createElement("div",{...V&&{role:T},className:pt(m)?m({type:u}):Gt("Toastify__toast-body",m),style:d},K!=null&&ne.createElement("div",{className:Gt("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!M})},K),ne.createElement("div",null,a)),z,ne.createElement(e1,{...k&&!N?{key:`pb-${k}`}:{},rtl:E,theme:W,delay:l,isRunning:t,isIn:V,closeToast:g,hide:f,type:u,style:C,className:y,controlledProgress:N,progress:b||0})))},Da=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},s1=La(Da("bounce",!0));La(Da("slide",!0));La(Da("zoom"));La(Da("flip"));const i1={position:"top-right",transition:s1,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function a1(e){let t={...i1,...e};const n=e.stacked,[r,o]=h.useState(!0),s=h.useRef(null),{getToastToRender:i,isToastActive:a,count:l}=Xx(t),{className:c,style:u,rtl:f,containerId:g}=t;function x(v){const _=Gt("Toastify__toast-container",`Toastify__toast-container--${v}`,{"Toastify__toast-container--rtl":f});return pt(c)?c({position:v,rtl:f,defaultClassName:_}):Gt(_,ji(c))}function w(){n&&(o(!0),me.play())}return r1(()=>{if(n){var v;const _=s.current.querySelectorAll('[data-in="true"]'),m=12,d=(v=t.position)==null?void 0:v.includes("top");let y=0,C=0;Array.from(_).reverse().forEach((k,T)=>{const b=k;b.classList.add("Toastify__toast--stacked"),T>0&&(b.dataset.collapsed=`${r}`),b.dataset.pos||(b.dataset.pos=d?"top":"bot");const E=y*(r?.2:1)+(r?0:m*T);b.style.setProperty("--y",`${d?E:-1*E}px`),b.style.setProperty("--g",`${m}`),b.style.setProperty("--s",""+(1-(r?C:0))),y+=b.offsetHeight,C+=.025})}},[r,l,n]),ne.createElement("div",{ref:s,className:"Toastify",id:g,onMouseEnter:()=>{n&&(o(!1),me.pause())},onMouseLeave:w},i((v,_)=>{const m=_.length?{...u}:{...u,pointerEvents:"none"};return ne.createElement("div",{className:x(v),style:m,key:`container-${v}`},_.map(d=>{let{content:y,props:C}=d;return ne.createElement(o1,{...C,stacked:n,collapseAll:w,isIn:a(C.toastId,C.containerId),style:C.style,key:`toast-${C.key}`},y)}))}))}var oe;(function(e){e.assertEqual=o=>o;function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{const s={};for(const i of o)s[i]=i;return s},e.getValidEnumValues=o=>{const s=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),i={};for(const a of s)i[a]=o[a];return e.objectValues(i)},e.objectValues=o=>e.objectKeys(o).map(function(s){return o[s]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const s=[];for(const i in o)Object.prototype.hasOwnProperty.call(o,i)&&s.push(i);return s},e.find=(o,s)=>{for(const i of o)if(s(i))return i},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&isFinite(o)&&Math.floor(o)===o;function r(o,s=" | "){return o.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}e.joinValues=r,e.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(oe||(oe={}));var Vc;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Vc||(Vc={}));const L=oe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),On=e=>{switch(typeof e){case"undefined":return L.undefined;case"string":return L.string;case"number":return isNaN(e)?L.nan:L.number;case"boolean":return L.boolean;case"function":return L.function;case"bigint":return L.bigint;case"symbol":return L.symbol;case"object":return Array.isArray(e)?L.array:e===null?L.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?L.promise:typeof Map<"u"&&e instanceof Map?L.map:typeof Set<"u"&&e instanceof Set?L.set:typeof Date<"u"&&e instanceof Date?L.date:L.object;default:return L.unknown}},P=oe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),l1=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class ht extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(s){return s.message},r={_errors:[]},o=s=>{for(const i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(o);else if(i.code==="invalid_return_type")o(i.returnTypeError);else if(i.code==="invalid_arguments")o(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let a=r,l=0;for(;l<i.path.length;){const c=i.path[l];l===i.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(n(i))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return o(this),r}static assert(t){if(!(t instanceof ht))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,oe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const o of this.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}ht.create=e=>new ht(e);const ho=(e,t)=>{let n;switch(e.code){case P.invalid_type:e.received===L.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case P.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,oe.jsonStringifyReplacer)}`;break;case P.unrecognized_keys:n=`Unrecognized key(s) in object: ${oe.joinValues(e.keys,", ")}`;break;case P.invalid_union:n="Invalid input";break;case P.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${oe.joinValues(e.options)}`;break;case P.invalid_enum_value:n=`Invalid enum value. Expected ${oe.joinValues(e.options)}, received '${e.received}'`;break;case P.invalid_arguments:n="Invalid function arguments";break;case P.invalid_return_type:n="Invalid function return type";break;case P.invalid_date:n="Invalid date";break;case P.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:oe.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case P.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case P.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case P.custom:n="Invalid input";break;case P.invalid_intersection_types:n="Intersection results could not be merged";break;case P.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case P.not_finite:n="Number must be finite";break;default:n=t.defaultError,oe.assertNever(e)}return{message:n}};let Fh=ho;function c1(e){Fh=e}function ia(){return Fh}const aa=e=>{const{data:t,path:n,errorMaps:r,issueData:o}=e,s=[...n,...o.path||[]],i={...o,path:s};if(o.message!==void 0)return{...o,path:s,message:o.message};let a="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)a=c(i,{data:t,defaultError:a}).message;return{...o,path:s,message:a}},u1=[];function A(e,t){const n=ia(),r=aa({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===ho?void 0:ho].filter(o=>!!o)});e.common.issues.push(r)}class Ke{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const o of n){if(o.status==="aborted")return G;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const o of n){const s=await o.key,i=await o.value;r.push({key:s,value:i})}return Ke.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const o of n){const{key:s,value:i}=o;if(s.status==="aborted"||i.status==="aborted")return G;s.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||o.alwaysSet)&&(r[s.value]=i.value)}return{status:t.value,value:r}}}const G=Object.freeze({status:"aborted"}),Gr=e=>({status:"dirty",value:e}),Je=e=>({status:"valid",value:e}),Bc=e=>e.status==="aborted",Uc=e=>e.status==="dirty",Ss=e=>e.status==="valid",_s=e=>typeof Promise<"u"&&e instanceof Promise;function la(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function Vh(e,t,n,r,o){if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var U;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(U||(U={}));var Uo,Ho;class en{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Wf=(e,t)=>{if(Ss(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new ht(e.common.issues);return this._error=n,this._error}}};function Q(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(i,a)=>{var l,c;const{message:u}=e;return i.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(l=u??r)!==null&&l!==void 0?l:a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:(c=u??n)!==null&&c!==void 0?c:a.defaultError}},description:o}}class X{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return On(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:On(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Ke,ctx:{common:t.parent.common,data:t.data,parsedType:On(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(_s(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const o={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:On(t)},s=this._parseSync({data:t,path:o.path,parent:o});return Wf(o,s)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:On(t)},o=this._parse({data:t,path:r.path,parent:r}),s=await(_s(o)?o:Promise.resolve(o));return Wf(r,s)}refine(t,n){const r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,s)=>{const i=t(o),a=()=>s.addIssue({code:P.custom,...r(o)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(t){return new zt({schema:this,typeName:Z.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Xt.create(this,this._def)}nullable(){return Gn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Lt.create(this,this._def)}promise(){return vo.create(this,this._def)}or(t){return bs.create([this,t],this._def)}and(t){return Ns.create(this,t,this._def)}transform(t){return new zt({...Q(this._def),schema:this,typeName:Z.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Is({...Q(this._def),innerType:this,defaultValue:n,typeName:Z.ZodDefault})}brand(){return new td({typeName:Z.ZodBranded,type:this,...Q(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Os({...Q(this._def),innerType:this,catchValue:n,typeName:Z.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Bs.create(this,t)}readonly(){return Ms.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const d1=/^c[^\s-]{8,}$/i,f1=/^[0-9a-z]+$/,p1=/^[0-9A-HJKMNP-TV-Z]{26}$/,m1=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,h1=/^[a-z0-9_-]{21}$/i,g1=/^[-+]?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)?)??$/,v1=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,y1="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Ol;const x1=/^(?:(?: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])$/,w1=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,S1=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Bh="((\\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])))",_1=new RegExp(`^${Bh}$`);function Uh(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function C1(e){return new RegExp(`^${Uh(e)}$`)}function Hh(e){let t=`${Bh}T${Uh(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function k1(e,t){return!!((t==="v4"||!t)&&x1.test(e)||(t==="v6"||!t)&&w1.test(e))}class Ot extends X{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==L.string){const s=this._getOrReturnCtx(t);return A(s,{code:P.invalid_type,expected:L.string,received:s.parsedType}),G}const r=new Ke;let o;for(const s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(o=this._getOrReturnCtx(t,o),A(o,{code:P.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="max")t.data.length>s.value&&(o=this._getOrReturnCtx(t,o),A(o,{code:P.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const i=t.data.length>s.value,a=t.data.length<s.value;(i||a)&&(o=this._getOrReturnCtx(t,o),i?A(o,{code:P.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&A(o,{code:P.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),r.dirty())}else if(s.kind==="email")v1.test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{validation:"email",code:P.invalid_string,message:s.message}),r.dirty());else if(s.kind==="emoji")Ol||(Ol=new RegExp(y1,"u")),Ol.test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{validation:"emoji",code:P.invalid_string,message:s.message}),r.dirty());else if(s.kind==="uuid")m1.test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{validation:"uuid",code:P.invalid_string,message:s.message}),r.dirty());else if(s.kind==="nanoid")h1.test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{validation:"nanoid",code:P.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid")d1.test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{validation:"cuid",code:P.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid2")f1.test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{validation:"cuid2",code:P.invalid_string,message:s.message}),r.dirty());else if(s.kind==="ulid")p1.test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{validation:"ulid",code:P.invalid_string,message:s.message}),r.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),A(o,{validation:"url",code:P.invalid_string,message:s.message}),r.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{validation:"regex",code:P.invalid_string,message:s.message}),r.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(o=this._getOrReturnCtx(t,o),A(o,{code:P.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),r.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(o=this._getOrReturnCtx(t,o),A(o,{code:P.invalid_string,validation:{startsWith:s.value},message:s.message}),r.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(o=this._getOrReturnCtx(t,o),A(o,{code:P.invalid_string,validation:{endsWith:s.value},message:s.message}),r.dirty()):s.kind==="datetime"?Hh(s).test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{code:P.invalid_string,validation:"datetime",message:s.message}),r.dirty()):s.kind==="date"?_1.test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{code:P.invalid_string,validation:"date",message:s.message}),r.dirty()):s.kind==="time"?C1(s).test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{code:P.invalid_string,validation:"time",message:s.message}),r.dirty()):s.kind==="duration"?g1.test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{validation:"duration",code:P.invalid_string,message:s.message}),r.dirty()):s.kind==="ip"?k1(t.data,s.version)||(o=this._getOrReturnCtx(t,o),A(o,{validation:"ip",code:P.invalid_string,message:s.message}),r.dirty()):s.kind==="base64"?S1.test(t.data)||(o=this._getOrReturnCtx(t,o),A(o,{validation:"base64",code:P.invalid_string,message:s.message}),r.dirty()):oe.assertNever(s);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(o=>t.test(o),{validation:n,code:P.invalid_string,...U.errToObj(r)})}_addCheck(t){return new Ot({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...U.errToObj(t)})}url(t){return this._addCheck({kind:"url",...U.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...U.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...U.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...U.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...U.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...U.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...U.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...U.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...U.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...U.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...U.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...U.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...U.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...U.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...U.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...U.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...U.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...U.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...U.errToObj(n)})}nonempty(t){return this.min(1,U.errToObj(t))}trim(){return new Ot({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ot({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ot({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Ot.create=e=>{var t;return new Ot({checks:[],typeName:Z.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Q(e)})};function E1(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,s=parseInt(e.toFixed(o).replace(".","")),i=parseInt(t.toFixed(o).replace(".",""));return s%i/Math.pow(10,o)}class Zn extends X{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==L.number){const s=this._getOrReturnCtx(t);return A(s,{code:P.invalid_type,expected:L.number,received:s.parsedType}),G}let r;const o=new Ke;for(const s of this._def.checks)s.kind==="int"?oe.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),A(r,{code:P.invalid_type,expected:"integer",received:"float",message:s.message}),o.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),A(r,{code:P.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),A(r,{code:P.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?E1(t.data,s.value)!==0&&(r=this._getOrReturnCtx(t,r),A(r,{code:P.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),A(r,{code:P.not_finite,message:s.message}),o.dirty()):oe.assertNever(s);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,U.toString(n))}gt(t,n){return this.setLimit("min",t,!1,U.toString(n))}lte(t,n){return this.setLimit("max",t,!0,U.toString(n))}lt(t,n){return this.setLimit("max",t,!1,U.toString(n))}setLimit(t,n,r,o){return new Zn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:U.toString(o)}]})}_addCheck(t){return new Zn({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:U.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:U.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:U.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:U.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:U.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:U.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:U.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:U.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:U.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&oe.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Zn.create=e=>new Zn({checks:[],typeName:Z.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Q(e)});class qn extends X{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==L.bigint){const s=this._getOrReturnCtx(t);return A(s,{code:P.invalid_type,expected:L.bigint,received:s.parsedType}),G}let r;const o=new Ke;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(r=this._getOrReturnCtx(t,r),A(r,{code:P.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),A(r,{code:P.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),A(r,{code:P.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):oe.assertNever(s);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,U.toString(n))}gt(t,n){return this.setLimit("min",t,!1,U.toString(n))}lte(t,n){return this.setLimit("max",t,!0,U.toString(n))}lt(t,n){return this.setLimit("max",t,!1,U.toString(n))}setLimit(t,n,r,o){return new qn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:U.toString(o)}]})}_addCheck(t){return new qn({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:U.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:U.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:U.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:U.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:U.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}qn.create=e=>{var t;return new qn({checks:[],typeName:Z.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Q(e)})};class Cs extends X{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==L.boolean){const r=this._getOrReturnCtx(t);return A(r,{code:P.invalid_type,expected:L.boolean,received:r.parsedType}),G}return Je(t.data)}}Cs.create=e=>new Cs({typeName:Z.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Q(e)});class kr extends X{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==L.date){const s=this._getOrReturnCtx(t);return A(s,{code:P.invalid_type,expected:L.date,received:s.parsedType}),G}if(isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return A(s,{code:P.invalid_date}),G}const r=new Ke;let o;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(o=this._getOrReturnCtx(t,o),A(o,{code:P.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),r.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(o=this._getOrReturnCtx(t,o),A(o,{code:P.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):oe.assertNever(s);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new kr({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:U.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:U.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}kr.create=e=>new kr({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Z.ZodDate,...Q(e)});class ca extends X{_parse(t){if(this._getType(t)!==L.symbol){const r=this._getOrReturnCtx(t);return A(r,{code:P.invalid_type,expected:L.symbol,received:r.parsedType}),G}return Je(t.data)}}ca.create=e=>new ca({typeName:Z.ZodSymbol,...Q(e)});class ks extends X{_parse(t){if(this._getType(t)!==L.undefined){const r=this._getOrReturnCtx(t);return A(r,{code:P.invalid_type,expected:L.undefined,received:r.parsedType}),G}return Je(t.data)}}ks.create=e=>new ks({typeName:Z.ZodUndefined,...Q(e)});class Es extends X{_parse(t){if(this._getType(t)!==L.null){const r=this._getOrReturnCtx(t);return A(r,{code:P.invalid_type,expected:L.null,received:r.parsedType}),G}return Je(t.data)}}Es.create=e=>new Es({typeName:Z.ZodNull,...Q(e)});class go extends X{constructor(){super(...arguments),this._any=!0}_parse(t){return Je(t.data)}}go.create=e=>new go({typeName:Z.ZodAny,...Q(e)});class yr extends X{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Je(t.data)}}yr.create=e=>new yr({typeName:Z.ZodUnknown,...Q(e)});class yn extends X{_parse(t){const n=this._getOrReturnCtx(t);return A(n,{code:P.invalid_type,expected:L.never,received:n.parsedType}),G}}yn.create=e=>new yn({typeName:Z.ZodNever,...Q(e)});class ua extends X{_parse(t){if(this._getType(t)!==L.undefined){const r=this._getOrReturnCtx(t);return A(r,{code:P.invalid_type,expected:L.void,received:r.parsedType}),G}return Je(t.data)}}ua.create=e=>new ua({typeName:Z.ZodVoid,...Q(e)});class Lt extends X{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==L.array)return A(n,{code:P.invalid_type,expected:L.array,received:n.parsedType}),G;if(o.exactLength!==null){const i=n.data.length>o.exactLength.value,a=n.data.length<o.exactLength.value;(i||a)&&(A(n,{code:i?P.too_big:P.too_small,minimum:a?o.exactLength.value:void 0,maximum:i?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(A(n,{code:P.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(A(n,{code:P.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,a)=>o.type._parseAsync(new en(n,i,n.path,a)))).then(i=>Ke.mergeArray(r,i));const s=[...n.data].map((i,a)=>o.type._parseSync(new en(n,i,n.path,a)));return Ke.mergeArray(r,s)}get element(){return this._def.type}min(t,n){return new Lt({...this._def,minLength:{value:t,message:U.toString(n)}})}max(t,n){return new Lt({...this._def,maxLength:{value:t,message:U.toString(n)}})}length(t,n){return new Lt({...this._def,exactLength:{value:t,message:U.toString(n)}})}nonempty(t){return this.min(1,t)}}Lt.create=(e,t)=>new Lt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Z.ZodArray,...Q(t)});function Ar(e){if(e instanceof Ce){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Xt.create(Ar(r))}return new Ce({...e._def,shape:()=>t})}else return e instanceof Lt?new Lt({...e._def,type:Ar(e.element)}):e instanceof Xt?Xt.create(Ar(e.unwrap())):e instanceof Gn?Gn.create(Ar(e.unwrap())):e instanceof tn?tn.create(e.items.map(t=>Ar(t))):e}class Ce extends X{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=oe.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==L.object){const c=this._getOrReturnCtx(t);return A(c,{code:P.invalid_type,expected:L.object,received:c.parsedType}),G}const{status:r,ctx:o}=this._processInputParams(t),{shape:s,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof yn&&this._def.unknownKeys==="strip"))for(const c in o.data)i.includes(c)||a.push(c);const l=[];for(const c of i){const u=s[c],f=o.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new en(o,f,o.path,c)),alwaysSet:c in o.data})}if(this._def.catchall instanceof yn){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of a)l.push({key:{status:"valid",value:u},value:{status:"valid",value:o.data[u]}});else if(c==="strict")a.length>0&&(A(o,{code:P.unrecognized_keys,keys:a}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of a){const f=o.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new en(o,f,o.path,u)),alwaysSet:u in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const f=await u.key,g=await u.value;c.push({key:f,value:g,alwaysSet:u.alwaysSet})}return c}).then(c=>Ke.mergeObjectSync(r,c)):Ke.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return U.errToObj,new Ce({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var o,s,i,a;const l=(i=(s=(o=this._def).errorMap)===null||s===void 0?void 0:s.call(o,n,r).message)!==null&&i!==void 0?i:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=U.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new Ce({...this._def,unknownKeys:"strip"})}passthrough(){return new Ce({...this._def,unknownKeys:"passthrough"})}extend(t){return new Ce({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Ce({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Z.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Ce({...this._def,catchall:t})}pick(t){const n={};return oe.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Ce({...this._def,shape:()=>n})}omit(t){const n={};return oe.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Ce({...this._def,shape:()=>n})}deepPartial(){return Ar(this)}partial(t){const n={};return oe.objectKeys(this.shape).forEach(r=>{const o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}),new Ce({...this._def,shape:()=>n})}required(t){const n={};return oe.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof Xt;)s=s._def.innerType;n[r]=s}}),new Ce({...this._def,shape:()=>n})}keyof(){return Wh(oe.objectKeys(this.shape))}}Ce.create=(e,t)=>new Ce({shape:()=>e,unknownKeys:"strip",catchall:yn.create(),typeName:Z.ZodObject,...Q(t)});Ce.strictCreate=(e,t)=>new Ce({shape:()=>e,unknownKeys:"strict",catchall:yn.create(),typeName:Z.ZodObject,...Q(t)});Ce.lazycreate=(e,t)=>new Ce({shape:e,unknownKeys:"strip",catchall:yn.create(),typeName:Z.ZodObject,...Q(t)});class bs extends X{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function o(s){for(const a of s)if(a.result.status==="valid")return a.result;for(const a of s)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const i=s.map(a=>new ht(a.ctx.common.issues));return A(n,{code:P.invalid_union,unionErrors:i}),G}if(n.common.async)return Promise.all(r.map(async s=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(o);{let s;const i=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!s&&(s={result:u,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const a=i.map(l=>new ht(l));return A(n,{code:P.invalid_union,unionErrors:a}),G}}get options(){return this._def.options}}bs.create=(e,t)=>new bs({options:e,typeName:Z.ZodUnion,...Q(t)});const ln=e=>e instanceof Rs?ln(e.schema):e instanceof zt?ln(e.innerType()):e instanceof Ps?[e.value]:e instanceof Kn?e.options:e instanceof js?oe.objectValues(e.enum):e instanceof Is?ln(e._def.innerType):e instanceof ks?[void 0]:e instanceof Es?[null]:e instanceof Xt?[void 0,...ln(e.unwrap())]:e instanceof Gn?[null,...ln(e.unwrap())]:e instanceof td||e instanceof Ms?ln(e.unwrap()):e instanceof Os?ln(e._def.innerType):[];class za extends X{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==L.object)return A(n,{code:P.invalid_type,expected:L.object,received:n.parsedType}),G;const r=this.discriminator,o=n.data[r],s=this.optionsMap.get(o);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(A(n,{code:P.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),G)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const o=new Map;for(const s of n){const i=ln(s.shape[t]);if(!i.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of i){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,s)}}return new za({typeName:Z.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...Q(r)})}}function Hc(e,t){const n=On(e),r=On(t);if(e===t)return{valid:!0,data:e};if(n===L.object&&r===L.object){const o=oe.objectKeys(t),s=oe.objectKeys(e).filter(a=>o.indexOf(a)!==-1),i={...e,...t};for(const a of s){const l=Hc(e[a],t[a]);if(!l.valid)return{valid:!1};i[a]=l.data}return{valid:!0,data:i}}else if(n===L.array&&r===L.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let s=0;s<e.length;s++){const i=e[s],a=t[s],l=Hc(i,a);if(!l.valid)return{valid:!1};o.push(l.data)}return{valid:!0,data:o}}else return n===L.date&&r===L.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Ns extends X{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=(s,i)=>{if(Bc(s)||Bc(i))return G;const a=Hc(s.value,i.value);return a.valid?((Uc(s)||Uc(i))&&n.dirty(),{status:n.value,value:a.data}):(A(r,{code:P.invalid_intersection_types}),G)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,i])=>o(s,i)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Ns.create=(e,t,n)=>new Ns({left:e,right:t,typeName:Z.ZodIntersection,...Q(n)});class tn extends X{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==L.array)return A(r,{code:P.invalid_type,expected:L.array,received:r.parsedType}),G;if(r.data.length<this._def.items.length)return A(r,{code:P.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),G;!this._def.rest&&r.data.length>this._def.items.length&&(A(r,{code:P.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((i,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new en(r,i,r.path,a)):null}).filter(i=>!!i);return r.common.async?Promise.all(s).then(i=>Ke.mergeArray(n,i)):Ke.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new tn({...this._def,rest:t})}}tn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new tn({items:e,typeName:Z.ZodTuple,rest:null,...Q(t)})};class Ts extends X{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==L.object)return A(r,{code:P.invalid_type,expected:L.object,received:r.parsedType}),G;const o=[],s=this._def.keyType,i=this._def.valueType;for(const a in r.data)o.push({key:s._parse(new en(r,a,r.path,a)),value:i._parse(new en(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?Ke.mergeObjectAsync(n,o):Ke.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof X?new Ts({keyType:t,valueType:n,typeName:Z.ZodRecord,...Q(r)}):new Ts({keyType:Ot.create(),valueType:t,typeName:Z.ZodRecord,...Q(n)})}}class da extends X{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==L.map)return A(r,{code:P.invalid_type,expected:L.map,received:r.parsedType}),G;const o=this._def.keyType,s=this._def.valueType,i=[...r.data.entries()].map(([a,l],c)=>({key:o._parse(new en(r,a,r.path,[c,"key"])),value:s._parse(new en(r,l,r.path,[c,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of i){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return G;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of i){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return G;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}}}}da.create=(e,t,n)=>new da({valueType:t,keyType:e,typeName:Z.ZodMap,...Q(n)});class Er extends X{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==L.set)return A(r,{code:P.invalid_type,expected:L.set,received:r.parsedType}),G;const o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(A(r,{code:P.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(A(r,{code:P.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const s=this._def.valueType;function i(l){const c=new Set;for(const u of l){if(u.status==="aborted")return G;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const a=[...r.data.values()].map((l,c)=>s._parse(new en(r,l,r.path,c)));return r.common.async?Promise.all(a).then(l=>i(l)):i(a)}min(t,n){return new Er({...this._def,minSize:{value:t,message:U.toString(n)}})}max(t,n){return new Er({...this._def,maxSize:{value:t,message:U.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Er.create=(e,t)=>new Er({valueType:e,minSize:null,maxSize:null,typeName:Z.ZodSet,...Q(t)});class ro extends X{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==L.function)return A(n,{code:P.invalid_type,expected:L.function,received:n.parsedType}),G;function r(a,l){return aa({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ia(),ho].filter(c=>!!c),issueData:{code:P.invalid_arguments,argumentsError:l}})}function o(a,l){return aa({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ia(),ho].filter(c=>!!c),issueData:{code:P.invalid_return_type,returnTypeError:l}})}const s={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof vo){const a=this;return Je(async function(...l){const c=new ht([]),u=await a._def.args.parseAsync(l,s).catch(x=>{throw c.addIssue(r(l,x)),c}),f=await Reflect.apply(i,this,u);return await a._def.returns._def.type.parseAsync(f,s).catch(x=>{throw c.addIssue(o(f,x)),c})})}else{const a=this;return Je(function(...l){const c=a._def.args.safeParse(l,s);if(!c.success)throw new ht([r(l,c.error)]);const u=Reflect.apply(i,this,c.data),f=a._def.returns.safeParse(u,s);if(!f.success)throw new ht([o(u,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new ro({...this._def,args:tn.create(t).rest(yr.create())})}returns(t){return new ro({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new ro({args:t||tn.create([]).rest(yr.create()),returns:n||yr.create(),typeName:Z.ZodFunction,...Q(r)})}}class Rs extends X{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Rs.create=(e,t)=>new Rs({getter:e,typeName:Z.ZodLazy,...Q(t)});class Ps extends X{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return A(n,{received:n.data,code:P.invalid_literal,expected:this._def.value}),G}return{status:"valid",value:t.data}}get value(){return this._def.value}}Ps.create=(e,t)=>new Ps({value:e,typeName:Z.ZodLiteral,...Q(t)});function Wh(e,t){return new Kn({values:e,typeName:Z.ZodEnum,...Q(t)})}class Kn extends X{constructor(){super(...arguments),Uo.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return A(n,{expected:oe.joinValues(r),received:n.parsedType,code:P.invalid_type}),G}if(la(this,Uo)||Vh(this,Uo,new Set(this._def.values)),!la(this,Uo).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return A(n,{received:n.data,code:P.invalid_enum_value,options:r}),G}return Je(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Kn.create(t,{...this._def,...n})}exclude(t,n=this._def){return Kn.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Uo=new WeakMap;Kn.create=Wh;class js extends X{constructor(){super(...arguments),Ho.set(this,void 0)}_parse(t){const n=oe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==L.string&&r.parsedType!==L.number){const o=oe.objectValues(n);return A(r,{expected:oe.joinValues(o),received:r.parsedType,code:P.invalid_type}),G}if(la(this,Ho)||Vh(this,Ho,new Set(oe.getValidEnumValues(this._def.values))),!la(this,Ho).has(t.data)){const o=oe.objectValues(n);return A(r,{received:r.data,code:P.invalid_enum_value,options:o}),G}return Je(t.data)}get enum(){return this._def.values}}Ho=new WeakMap;js.create=(e,t)=>new js({values:e,typeName:Z.ZodNativeEnum,...Q(t)});class vo extends X{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==L.promise&&n.common.async===!1)return A(n,{code:P.invalid_type,expected:L.promise,received:n.parsedType}),G;const r=n.parsedType===L.promise?n.data:Promise.resolve(n.data);return Je(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}vo.create=(e,t)=>new vo({type:e,typeName:Z.ZodPromise,...Q(t)});class zt extends X{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Z.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,s={addIssue:i=>{A(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){const i=o.transform(r.data,s);if(r.common.async)return Promise.resolve(i).then(async a=>{if(n.value==="aborted")return G;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?G:l.status==="dirty"||n.value==="dirty"?Gr(l.value):l});{if(n.value==="aborted")return G;const a=this._def.schema._parseSync({data:i,path:r.path,parent:r});return a.status==="aborted"?G:a.status==="dirty"||n.value==="dirty"?Gr(a.value):a}}if(o.type==="refinement"){const i=a=>{const l=o.refinement(a,s);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?G:(a.status==="dirty"&&n.dirty(),i(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?G:(a.status==="dirty"&&n.dirty(),i(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Ss(i))return i;const a=o.transform(i.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>Ss(i)?Promise.resolve(o.transform(i.value,s)).then(a=>({status:n.value,value:a})):i);oe.assertNever(o)}}zt.create=(e,t,n)=>new zt({schema:e,typeName:Z.ZodEffects,effect:t,...Q(n)});zt.createWithPreprocess=(e,t,n)=>new zt({schema:t,effect:{type:"preprocess",transform:e},typeName:Z.ZodEffects,...Q(n)});class Xt extends X{_parse(t){return this._getType(t)===L.undefined?Je(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Xt.create=(e,t)=>new Xt({innerType:e,typeName:Z.ZodOptional,...Q(t)});class Gn extends X{_parse(t){return this._getType(t)===L.null?Je(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Gn.create=(e,t)=>new Gn({innerType:e,typeName:Z.ZodNullable,...Q(t)});class Is extends X{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===L.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Is.create=(e,t)=>new Is({innerType:e,typeName:Z.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Q(t)});class Os extends X{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return _s(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new ht(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new ht(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Os.create=(e,t)=>new Os({innerType:e,typeName:Z.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Q(t)});class fa extends X{_parse(t){if(this._getType(t)!==L.nan){const r=this._getOrReturnCtx(t);return A(r,{code:P.invalid_type,expected:L.nan,received:r.parsedType}),G}return{status:"valid",value:t.data}}}fa.create=e=>new fa({typeName:Z.ZodNaN,...Q(e)});const b1=Symbol("zod_brand");class td extends X{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Bs extends X{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?G:s.status==="dirty"?(n.dirty(),Gr(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?G:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new Bs({in:t,out:n,typeName:Z.ZodPipeline})}}class Ms extends X{_parse(t){const n=this._def.innerType._parse(t),r=o=>(Ss(o)&&(o.value=Object.freeze(o.value)),o);return _s(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}}Ms.create=(e,t)=>new Ms({innerType:e,typeName:Z.ZodReadonly,...Q(t)});function Zh(e,t={},n){return e?go.create().superRefine((r,o)=>{var s,i;if(!e(r)){const a=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(i=(s=a.fatal)!==null&&s!==void 0?s:n)!==null&&i!==void 0?i:!0,c=typeof a=="string"?{message:a}:a;o.addIssue({code:"custom",...c,fatal:l})}}):go.create()}const N1={object:Ce.lazycreate};var Z;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Z||(Z={}));const T1=(e,t={message:`Input not instance of ${e.name}`})=>Zh(n=>n instanceof e,t),qh=Ot.create,Kh=Zn.create,R1=fa.create,P1=qn.create,Gh=Cs.create,j1=kr.create,I1=ca.create,O1=ks.create,M1=Es.create,A1=go.create,L1=yr.create,D1=yn.create,z1=ua.create,$1=Lt.create,F1=Ce.create,V1=Ce.strictCreate,B1=bs.create,U1=za.create,H1=Ns.create,W1=tn.create,Z1=Ts.create,q1=da.create,K1=Er.create,G1=ro.create,Q1=Rs.create,Y1=Ps.create,X1=Kn.create,J1=js.create,ew=vo.create,Zf=zt.create,tw=Xt.create,nw=Gn.create,rw=zt.createWithPreprocess,ow=Bs.create,sw=()=>qh().optional(),iw=()=>Kh().optional(),aw=()=>Gh().optional(),lw={string:e=>Ot.create({...e,coerce:!0}),number:e=>Zn.create({...e,coerce:!0}),boolean:e=>Cs.create({...e,coerce:!0}),bigint:e=>qn.create({...e,coerce:!0}),date:e=>kr.create({...e,coerce:!0})},cw=G;var S=Object.freeze({__proto__:null,defaultErrorMap:ho,setErrorMap:c1,getErrorMap:ia,makeIssue:aa,EMPTY_PATH:u1,addIssueToContext:A,ParseStatus:Ke,INVALID:G,DIRTY:Gr,OK:Je,isAborted:Bc,isDirty:Uc,isValid:Ss,isAsync:_s,get util(){return oe},get objectUtil(){return Vc},ZodParsedType:L,getParsedType:On,ZodType:X,datetimeRegex:Hh,ZodString:Ot,ZodNumber:Zn,ZodBigInt:qn,ZodBoolean:Cs,ZodDate:kr,ZodSymbol:ca,ZodUndefined:ks,ZodNull:Es,ZodAny:go,ZodUnknown:yr,ZodNever:yn,ZodVoid:ua,ZodArray:Lt,ZodObject:Ce,ZodUnion:bs,ZodDiscriminatedUnion:za,ZodIntersection:Ns,ZodTuple:tn,ZodRecord:Ts,ZodMap:da,ZodSet:Er,ZodFunction:ro,ZodLazy:Rs,ZodLiteral:Ps,ZodEnum:Kn,ZodNativeEnum:js,ZodPromise:vo,ZodEffects:zt,ZodTransformer:zt,ZodOptional:Xt,ZodNullable:Gn,ZodDefault:Is,ZodCatch:Os,ZodNaN:fa,BRAND:b1,ZodBranded:td,ZodPipeline:Bs,ZodReadonly:Ms,custom:Zh,Schema:X,ZodSchema:X,late:N1,get ZodFirstPartyTypeKind(){return Z},coerce:lw,any:A1,array:$1,bigint:P1,boolean:Gh,date:j1,discriminatedUnion:U1,effect:Zf,enum:X1,function:G1,instanceof:T1,intersection:H1,lazy:Q1,literal:Y1,map:q1,nan:R1,nativeEnum:J1,never:D1,null:M1,nullable:nw,number:Kh,object:F1,oboolean:aw,onumber:iw,optional:tw,ostring:sw,pipeline:ow,preprocess:rw,promise:ew,record:Z1,set:K1,strictObject:V1,string:qh,symbol:I1,transformer:Zf,tuple:W1,undefined:O1,union:B1,unknown:L1,void:z1,NEVER:cw,ZodIssueCode:P,quotelessJson:l1,ZodError:ht});const Qh="2024-11-05",uw=[Qh,"2024-10-07"],$a="2.0",Yh=S.union([S.string(),S.number().int()]),Xh=S.string(),Vt=S.object({_meta:S.optional(S.object({progressToken:S.optional(Yh)}).passthrough())}).passthrough(),wt=S.object({method:S.string(),params:S.optional(Vt)}),Us=S.object({_meta:S.optional(S.object({}).passthrough())}).passthrough(),Bt=S.object({method:S.string(),params:S.optional(Us)}),Ut=S.object({_meta:S.optional(S.object({}).passthrough())}).passthrough(),Fa=S.union([S.string(),S.number().int()]),dw=S.object({jsonrpc:S.literal($a),id:Fa}).merge(wt).strict(),fw=S.object({jsonrpc:S.literal($a)}).merge(Bt).strict(),pw=S.object({jsonrpc:S.literal($a),id:Fa,result:Ut}).strict();var Qr;(function(e){e[e.ConnectionClosed=-1]="ConnectionClosed",e[e.RequestTimeout=-2]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError"})(Qr||(Qr={}));const mw=S.object({jsonrpc:S.literal($a),id:Fa,error:S.object({code:S.number().int(),message:S.string(),data:S.optional(S.unknown())})}).strict(),hw=S.union([dw,fw,pw,mw]),mr=Ut.strict(),nd=Bt.extend({method:S.literal("notifications/cancelled"),params:Us.extend({requestId:Fa,reason:S.string().optional()})}),Jh=S.object({name:S.string(),version:S.string()}).passthrough(),gw=S.object({experimental:S.optional(S.object({}).passthrough()),sampling:S.optional(S.object({}).passthrough()),roots:S.optional(S.object({listChanged:S.optional(S.boolean())}).passthrough())}).passthrough(),vw=wt.extend({method:S.literal("initialize"),params:Vt.extend({protocolVersion:S.string(),capabilities:gw,clientInfo:Jh})}),yw=S.object({experimental:S.optional(S.object({}).passthrough()),logging:S.optional(S.object({}).passthrough()),prompts:S.optional(S.object({listChanged:S.optional(S.boolean())}).passthrough()),resources:S.optional(S.object({subscribe:S.optional(S.boolean()),listChanged:S.optional(S.boolean())}).passthrough()),tools:S.optional(S.object({listChanged:S.optional(S.boolean())}).passthrough())}).passthrough(),eg=Ut.extend({protocolVersion:S.string(),capabilities:yw,serverInfo:Jh}),xw=Bt.extend({method:S.literal("notifications/initialized")}),rd=wt.extend({method:S.literal("ping")}),ww=S.object({progress:S.number(),total:S.optional(S.number())}).passthrough(),Va=Bt.extend({method:S.literal("notifications/progress"),params:Us.merge(ww).extend({progressToken:Yh})}),Ba=wt.extend({params:Vt.extend({cursor:S.optional(Xh)}).optional()}),Ua=Ut.extend({nextCursor:S.optional(Xh)}),tg=S.object({uri:S.string(),mimeType:S.optional(S.string())}).passthrough(),ng=tg.extend({text:S.string()}),rg=tg.extend({blob:S.string().base64()}),Sw=S.object({uri:S.string(),name:S.string(),description:S.optional(S.string()),mimeType:S.optional(S.string())}).passthrough(),_w=S.object({uriTemplate:S.string(),name:S.string(),description:S.optional(S.string()),mimeType:S.optional(S.string())}).passthrough(),Cw=Ba.extend({method:S.literal("resources/list")}),od=Ua.extend({resources:S.array(Sw)}),kw=Ba.extend({method:S.literal("resources/templates/list")}),sd=Ua.extend({resourceTemplates:S.array(_w)}),Ew=wt.extend({method:S.literal("resources/read"),params:Vt.extend({uri:S.string()})}),id=Ut.extend({contents:S.array(S.union([ng,rg]))}),bw=Bt.extend({method:S.literal("notifications/resources/list_changed")}),Nw=wt.extend({method:S.literal("resources/subscribe"),params:Vt.extend({uri:S.string()})}),Tw=wt.extend({method:S.literal("resources/unsubscribe"),params:Vt.extend({uri:S.string()})}),Rw=Bt.extend({method:S.literal("notifications/resources/updated"),params:Us.extend({uri:S.string()})}),Pw=S.object({name:S.string(),description:S.optional(S.string()),required:S.optional(S.boolean())}).passthrough(),jw=S.object({name:S.string(),description:S.optional(S.string()),arguments:S.optional(S.array(Pw))}).passthrough(),Iw=Ba.extend({method:S.literal("prompts/list")}),ad=Ua.extend({prompts:S.array(jw)}),Ow=wt.extend({method:S.literal("prompts/get"),params:Vt.extend({name:S.string(),arguments:S.optional(S.record(S.string()))})}),Ha=S.object({type:S.literal("text"),text:S.string()}).passthrough(),Wa=S.object({type:S.literal("image"),data:S.string().base64(),mimeType:S.string()}).passthrough(),og=S.object({type:S.literal("resource"),resource:S.union([ng,rg])}).passthrough(),Mw=S.object({role:S.enum(["user","assistant"]),content:S.union([Ha,Wa,og])}).passthrough(),ld=Ut.extend({description:S.optional(S.string()),messages:S.array(Mw)}),Aw=Bt.extend({method:S.literal("notifications/prompts/list_changed")}),Lw=S.object({name:S.string(),description:S.optional(S.string()),inputSchema:S.object({type:S.literal("object"),properties:S.optional(S.object({}).passthrough())}).passthrough()}).passthrough(),Dw=Ba.extend({method:S.literal("tools/list")}),cd=Ua.extend({tools:S.array(Lw)}),ud=Ut.extend({content:S.array(S.union([Ha,Wa,og])),isError:S.boolean().default(!1).optional()}),zw=ud.or(Ut.extend({toolResult:S.unknown()})),$w=wt.extend({method:S.literal("tools/call"),params:Vt.extend({name:S.string(),arguments:S.optional(S.record(S.unknown()))})}),Fw=Bt.extend({method:S.literal("notifications/tools/list_changed")}),sg=S.enum(["debug","info","notice","warning","error","critical","alert","emergency"]),Vw=wt.extend({method:S.literal("logging/setLevel"),params:Vt.extend({level:sg})}),Bw=Bt.extend({method:S.literal("notifications/message"),params:Us.extend({level:sg,logger:S.optional(S.string()),data:S.unknown()})}),Uw=S.object({name:S.string().optional()}).passthrough(),Hw=S.object({hints:S.optional(S.array(Uw)),costPriority:S.optional(S.number().min(0).max(1)),speedPriority:S.optional(S.number().min(0).max(1)),intelligencePriority:S.optional(S.number().min(0).max(1))}).passthrough(),Ww=S.object({role:S.enum(["user","assistant"]),content:S.union([Ha,Wa])}).passthrough(),ig=wt.extend({method:S.literal("sampling/createMessage"),params:Vt.extend({messages:S.array(Ww),systemPrompt:S.optional(S.string()),includeContext:S.optional(S.enum(["none","thisServer","allServers"])),temperature:S.optional(S.number()),maxTokens:S.number().int(),stopSequences:S.optional(S.array(S.string())),metadata:S.optional(S.object({}).passthrough()),modelPreferences:S.optional(Hw)})}),Zw=Ut.extend({model:S.string(),stopReason:S.optional(S.enum(["endTurn","stopSequence","maxTokens"]).or(S.string())),role:S.enum(["user","assistant"]),content:S.discriminatedUnion("type",[Ha,Wa])}),qw=S.object({type:S.literal("ref/resource"),uri:S.string()}).passthrough(),Kw=S.object({type:S.literal("ref/prompt"),name:S.string()}).passthrough(),Gw=wt.extend({method:S.literal("completion/complete"),params:Vt.extend({ref:S.union([Kw,qw]),argument:S.object({name:S.string(),value:S.string()}).passthrough()})}),ag=Ut.extend({completion:S.object({values:S.array(S.string()).max(100),total:S.optional(S.number().int()),hasMore:S.optional(S.boolean())}).passthrough()}),Qw=S.object({uri:S.string().startsWith("file://"),name:S.optional(S.string())}).passthrough(),lg=wt.extend({method:S.literal("roots/list")}),Yw=Ut.extend({roots:S.array(Qw)}),Xw=Bt.extend({method:S.literal("notifications/roots/list_changed")});S.union([rd,vw,Gw,Vw,Ow,Iw,Cw,kw,Ew,Nw,Tw,$w,Dw]);const Jw=S.union([nd,Va,xw,Xw]);S.union([mr,Zw,Yw]);S.union([rd,ig,lg]);S.union([nd,Va,Bw,Rw,bw,Fw,Aw]);S.union([mr,eg,ag,ld,ad,od,sd,id,ud,cd]);class Ml extends Error{constructor(t,n,r){super(`MCP error ${t}: ${n}`),this.code=t,this.data=r}}const eS=6e4;class tS{constructor(t){this._options=t,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this.setNotificationHandler(nd,n=>{const r=this._requestHandlerAbortControllers.get(n.params.requestId);r==null||r.abort(n.params.reason)}),this.setNotificationHandler(Va,n=>{this._onprogress(n)}),this.setRequestHandler(rd,n=>({}))}async connect(t){this._transport=t,this._transport.onclose=()=>{this._onclose()},this._transport.onerror=n=>{this._onerror(n)},this._transport.onmessage=n=>{"method"in n?"id"in n?this._onrequest(n):this._onnotification(n):this._onresponse(n)},await this._transport.start()}_onclose(){var t;const n=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._transport=void 0,(t=this.onclose)===null||t===void 0||t.call(this);const r=new Ml(Qr.ConnectionClosed,"Connection closed");for(const o of n.values())o(r)}_onerror(t){var n;(n=this.onerror)===null||n===void 0||n.call(this,t)}_onnotification(t){var n;const r=(n=this._notificationHandlers.get(t.method))!==null&&n!==void 0?n:this.fallbackNotificationHandler;r!==void 0&&Promise.resolve().then(()=>r(t)).catch(o=>this._onerror(new Error(`Uncaught error in notification handler: ${o}`)))}_onrequest(t){var n,r;const o=(n=this._requestHandlers.get(t.method))!==null&&n!==void 0?n:this.fallbackRequestHandler;if(o===void 0){(r=this._transport)===null||r===void 0||r.send({jsonrpc:"2.0",id:t.id,error:{code:Qr.MethodNotFound,message:"Method not found"}}).catch(i=>this._onerror(new Error(`Failed to send an error response: ${i}`)));return}const s=new AbortController;this._requestHandlerAbortControllers.set(t.id,s),Promise.resolve().then(()=>o(t,{signal:s.signal})).then(i=>{var a;if(!s.signal.aborted)return(a=this._transport)===null||a===void 0?void 0:a.send({result:i,jsonrpc:"2.0",id:t.id})},i=>{var a,l;if(!s.signal.aborted)return(a=this._transport)===null||a===void 0?void 0:a.send({jsonrpc:"2.0",id:t.id,error:{code:Number.isSafeInteger(i.code)?i.code:Qr.InternalError,message:(l=i.message)!==null&&l!==void 0?l:"Internal error"}})}).catch(i=>this._onerror(new Error(`Failed to send response: ${i}`))).finally(()=>{this._requestHandlerAbortControllers.delete(t.id)})}_onprogress(t){const{progress:n,total:r,progressToken:o}=t.params,s=this._progressHandlers.get(Number(o));if(s===void 0){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(t)}`));return}s({progress:n,total:r})}_onresponse(t){const n=t.id,r=this._responseHandlers.get(Number(n));if(r===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(t)}`));return}if(this._responseHandlers.delete(Number(n)),this._progressHandlers.delete(Number(n)),"result"in t)r(t);else{const o=new Ml(t.error.code,t.error.message,t.error.data);r(o)}}get transport(){return this._transport}async close(){var t;await((t=this._transport)===null||t===void 0?void 0:t.close())}request(t,n,r){return new Promise((o,s)=>{var i,a,l,c;if(!this._transport){s(new Error("Not connected"));return}((i=this._options)===null||i===void 0?void 0:i.enforceStrictCapabilities)===!0&&this.assertCapabilityForMethod(t.method),(a=r==null?void 0:r.signal)===null||a===void 0||a.throwIfAborted();const u=this._requestMessageId++,f={...t,jsonrpc:"2.0",id:u};r!=null&&r.onprogress&&(this._progressHandlers.set(u,r.onprogress),f.params={...t.params,_meta:{progressToken:u}});let g;this._responseHandlers.set(u,v=>{var _;if(g!==void 0&&clearTimeout(g),!(!((_=r==null?void 0:r.signal)===null||_===void 0)&&_.aborted)){if(v instanceof Error)return s(v);try{const m=n.parse(v.result);o(m)}catch(m){s(m)}}});const x=v=>{var _;this._responseHandlers.delete(u),this._progressHandlers.delete(u),(_=this._transport)===null||_===void 0||_.send({jsonrpc:"2.0",method:"cancelled",params:{requestId:u,reason:String(v)}}).catch(m=>this._onerror(new Error(`Failed to send cancellation: ${m}`))),s(v)};(l=r==null?void 0:r.signal)===null||l===void 0||l.addEventListener("abort",()=>{var v;g!==void 0&&clearTimeout(g),x((v=r==null?void 0:r.signal)===null||v===void 0?void 0:v.reason)});const w=(c=r==null?void 0:r.timeout)!==null&&c!==void 0?c:eS;g=setTimeout(()=>x(new Ml(Qr.RequestTimeout,"Request timed out",{timeout:w})),w),this._transport.send(f).catch(v=>{g!==void 0&&clearTimeout(g),s(v)})})}async notification(t){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(t.method);const n={...t,jsonrpc:"2.0"};await this._transport.send(n)}setRequestHandler(t,n){const r=t.shape.method.value;this.assertRequestHandlerCapability(r),this._requestHandlers.set(r,(o,s)=>Promise.resolve(n(t.parse(o),s)))}removeRequestHandler(t){this._requestHandlers.delete(t)}setNotificationHandler(t,n){this._notificationHandlers.set(t.shape.method.value,r=>Promise.resolve(n(t.parse(r))))}removeNotificationHandler(t){this._notificationHandlers.delete(t)}}class nS extends tS{constructor(t,n){super(n),this._clientInfo=t,this._capabilities=n.capabilities}assertCapability(t,n){var r;if(!(!((r=this._serverCapabilities)===null||r===void 0)&&r[t]))throw new Error(`Server does not support ${t} (required for ${n})`)}async connect(t){await super.connect(t);try{const n=await this.request({method:"initialize",params:{protocolVersion:Qh,capabilities:this._capabilities,clientInfo:this._clientInfo}},eg);if(n===void 0)throw new Error(`Server sent invalid initialize result: ${n}`);if(!uw.includes(n.protocolVersion))throw new Error(`Server's protocol version is not supported: ${n.protocolVersion}`);this._serverCapabilities=n.capabilities,this._serverVersion=n.serverInfo,await this.notification({method:"notifications/initialized"})}catch(n){throw this.close(),n}}getServerCapabilities(){return this._serverCapabilities}getServerVersion(){return this._serverVersion}assertCapabilityForMethod(t){var n,r,o,s,i;switch(t){case"logging/setLevel":if(!(!((n=this._serverCapabilities)===null||n===void 0)&&n.logging))throw new Error(`Server does not support logging (required for ${t})`);break;case"prompts/get":case"prompts/list":if(!(!((r=this._serverCapabilities)===null||r===void 0)&&r.prompts))throw new Error(`Server does not support prompts (required for ${t})`);break;case"resources/list":case"resources/templates/list":case"resources/read":case"resources/subscribe":case"resources/unsubscribe":if(!(!((o=this._serverCapabilities)===null||o===void 0)&&o.resources))throw new Error(`Server does not support resources (required for ${t})`);if(t==="resources/subscribe"&&!this._serverCapabilities.resources.subscribe)throw new Error(`Server does not support resource subscriptions (required for ${t})`);break;case"tools/call":case"tools/list":if(!(!((s=this._serverCapabilities)===null||s===void 0)&&s.tools))throw new Error(`Server does not support tools (required for ${t})`);break;case"completion/complete":if(!(!((i=this._serverCapabilities)===null||i===void 0)&&i.prompts))throw new Error(`Server does not support prompts (required for ${t})`);break}}assertNotificationCapability(t){var n;switch(t){case"notifications/roots/list_changed":if(!(!((n=this._capabilities.roots)===null||n===void 0)&&n.listChanged))throw new Error(`Client does not support roots list changed notifications (required for ${t})`);break}}assertRequestHandlerCapability(t){switch(t){case"sampling/createMessage":if(!this._capabilities.sampling)throw new Error(`Client does not support sampling capability (required for ${t})`);break;case"roots/list":if(!this._capabilities.roots)throw new Error(`Client does not support roots capability (required for ${t})`);break}}async ping(t){return this.request({method:"ping"},mr,t)}async complete(t,n){return this.request({method:"completion/complete",params:t},ag,n)}async setLoggingLevel(t,n){return this.request({method:"logging/setLevel",params:{level:t}},mr,n)}async getPrompt(t,n){return this.request({method:"prompts/get",params:t},ld,n)}async listPrompts(t,n){return this.request({method:"prompts/list",params:t},ad,n)}async listResources(t,n){return this.request({method:"resources/list",params:t},od,n)}async listResourceTemplates(t,n){return this.request({method:"resources/templates/list",params:t},sd,n)}async readResource(t,n){return this.request({method:"resources/read",params:t},id,n)}async subscribeResource(t,n){return this.request({method:"resources/subscribe",params:t},mr,n)}async unsubscribeResource(t,n){return this.request({method:"resources/unsubscribe",params:t},mr,n)}async callTool(t,n=ud,r){return this.request({method:"tools/call",params:t},n,r)}async listTools(t,n){return this.request({method:"tools/list",params:t},cd,n)}async sendRootsListChanged(){return this.notification({method:"notifications/roots/list_changed"})}}class rS{constructor(t){this._url=t}start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((t,n)=>{this._eventSource=new EventSource(this._url.href),this._abortController=new AbortController,this._eventSource.onerror=r=>{var o;const s=new Error(`SSE error: ${JSON.stringify(r)}`);n(s),(o=this.onerror)===null||o===void 0||o.call(this,s)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",r=>{var o;const s=r;try{if(this._endpoint=new URL(s.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(i){n(i),(o=this.onerror)===null||o===void 0||o.call(this,i),this.close();return}t()}),this._eventSource.onmessage=r=>{var o,s;const i=r;let a;try{a=hw.parse(JSON.parse(i.data))}catch(l){(o=this.onerror)===null||o===void 0||o.call(this,l);return}(s=this.onmessage)===null||s===void 0||s.call(this,a)}})}async close(){var t,n,r;(t=this._abortController)===null||t===void 0||t.abort(),(n=this._eventSource)===null||n===void 0||n.close(),(r=this.onclose)===null||r===void 0||r.call(this)}async send(t){var n,r;if(!this._endpoint)throw new Error("Not connected");try{const o=await fetch(this._endpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),signal:(n=this._abortController)===null||n===void 0?void 0:n.signal});if(!o.ok){const s=await o.text().catch(()=>null);throw new Error(`Error POSTing to endpoint (HTTP ${o.status}): ${s}`)}}catch(o){throw(r=this.onerror)===null||r===void 0||r.call(this,o),o}}}const cg=Bt.extend({method:S.literal("notifications/stderr"),params:S.object({content:S.string()})});Jw.or(cg);function ue(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ug(e,t=[]){let n=[];function r(s,i){const a=h.createContext(i),l=n.length;n=[...n,i];const c=f=>{var m;const{scope:g,children:x,...w}=f,v=((m=g==null?void 0:g[e])==null?void 0:m[l])||a,_=h.useMemo(()=>w,Object.values(w));return p.jsx(v.Provider,{value:_,children:x})};c.displayName=s+"Provider";function u(f,g){var v;const x=((v=g==null?void 0:g[e])==null?void 0:v[l])||a,w=h.useContext(x);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[c,u]}const o=()=>{const s=n.map(i=>h.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return h.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,oS(o,...t)]}function oS(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(s)[`__scope${c}`];return{...a,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function sS(e,t=[]){let n=[];function r(s,i){const a=h.createContext(i),l=n.length;n=[...n,i];function c(f){const{scope:g,children:x,...w}=f,v=(g==null?void 0:g[e][l])||a,_=h.useMemo(()=>w,Object.values(w));return p.jsx(v.Provider,{value:_,children:x})}function u(f,g){const x=(g==null?void 0:g[e][l])||a,w=h.useContext(x);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return c.displayName=s+"Provider",[c,u]}const o=()=>{const s=n.map(i=>h.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return h.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,iS(o,...t)]}function iS(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(s)[`__scope${c}`];return{...a,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function aS(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function dg(...e){return t=>e.forEach(n=>aS(n,t))}function Me(...e){return h.useCallback(dg(...e),e)}var yo=h.forwardRef((e,t)=>{const{children:n,...r}=e,o=h.Children.toArray(n),s=o.find(cS);if(s){const i=s.props.children,a=o.map(l=>l===s?h.Children.count(i)>1?h.Children.only(null):h.isValidElement(i)?i.props.children:null:l);return p.jsx(Wc,{...r,ref:t,children:h.isValidElement(i)?h.cloneElement(i,void 0,a):null})}return p.jsx(Wc,{...r,ref:t,children:n})});yo.displayName="Slot";var Wc=h.forwardRef((e,t)=>{const{children:n,...r}=e;if(h.isValidElement(n)){const o=dS(n);return h.cloneElement(n,{...uS(r,n.props),ref:t?dg(t,o):o})}return h.Children.count(n)>1?h.Children.only(null):null});Wc.displayName="SlotClone";var lS=({children:e})=>p.jsx(p.Fragment,{children:e});function cS(e){return h.isValidElement(e)&&e.type===lS}function uS(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{s(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function dS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function fg(e){const t=e+"CollectionProvider",[n,r]=sS(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=x=>{const{scope:w,children:v}=x,_=ne.useRef(null),m=ne.useRef(new Map).current;return p.jsx(o,{scope:w,itemMap:m,collectionRef:_,children:v})};i.displayName=t;const a=e+"CollectionSlot",l=ne.forwardRef((x,w)=>{const{scope:v,children:_}=x,m=s(a,v),d=Me(w,m.collectionRef);return p.jsx(yo,{ref:d,children:_})});l.displayName=a;const c=e+"CollectionItemSlot",u="data-radix-collection-item",f=ne.forwardRef((x,w)=>{const{scope:v,children:_,...m}=x,d=ne.useRef(null),y=Me(w,d),C=s(c,v);return ne.useEffect(()=>(C.itemMap.set(d,{ref:d,...m}),()=>void C.itemMap.delete(d))),p.jsx(yo,{[u]:"",ref:y,children:_})});f.displayName=c;function g(x){const w=s(e+"CollectionConsumer",x);return ne.useCallback(()=>{const _=w.collectionRef.current;if(!_)return[];const m=Array.from(_.querySelectorAll(`[${u}]`));return Array.from(w.itemMap.values()).sort((C,k)=>m.indexOf(C.ref.current)-m.indexOf(k.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:l,ItemSlot:f},g,r]}function fS(e,t=[]){let n=[];function r(s,i){const a=h.createContext(i),l=n.length;n=[...n,i];function c(f){const{scope:g,children:x,...w}=f,v=(g==null?void 0:g[e][l])||a,_=h.useMemo(()=>w,Object.values(w));return p.jsx(v.Provider,{value:_,children:x})}function u(f,g){const x=(g==null?void 0:g[e][l])||a,w=h.useContext(x);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return c.displayName=s+"Provider",[c,u]}const o=()=>{const s=n.map(i=>h.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return h.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,pS(o,...t)]}function pS(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(s)[`__scope${c}`];return{...a,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var et=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},mS=zy.useId||(()=>{}),hS=0;function Hs(e){const[t,n]=h.useState(mS());return et(()=>{e||n(r=>r??String(hS++))},[e]),e||(t?`radix-${t}`:"")}var gS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],he=gS.reduce((e,t)=>{const n=h.forwardRef((r,o)=>{const{asChild:s,...i}=r,a=s?yo:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(a,{...i,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function vS(e,t){e&&Co.flushSync(()=>e.dispatchEvent(t))}function nn(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function pa({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=yS({defaultProp:t,onChange:n}),s=e!==void 0,i=s?e:r,a=nn(n),l=h.useCallback(c=>{if(s){const f=typeof c=="function"?c(e):c;f!==e&&a(f)}else o(c)},[s,e,o,a]);return[i,l]}function yS({defaultProp:e,onChange:t}){const n=h.useState(e),[r]=n,o=h.useRef(r),s=nn(t);return h.useEffect(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}var xS=h.createContext(void 0);function dd(e){const t=h.useContext(xS);return e||t||"ltr"}var Al="rovingFocusGroup.onEntryFocus",wS={bubbles:!1,cancelable:!0},Za="RovingFocusGroup",[Zc,pg,SS]=fg(Za),[_S,mg]=fS(Za,[SS]),[CS,kS]=_S(Za),hg=h.forwardRef((e,t)=>p.jsx(Zc.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Zc.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(ES,{...e,ref:t})})}));hg.displayName=Za;var ES=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...f}=e,g=h.useRef(null),x=Me(t,g),w=dd(s),[v=null,_]=pa({prop:i,defaultProp:a,onChange:l}),[m,d]=h.useState(!1),y=nn(c),C=pg(n),k=h.useRef(!1),[T,b]=h.useState(0);return h.useEffect(()=>{const E=g.current;if(E)return E.addEventListener(Al,y),()=>E.removeEventListener(Al,y)},[y]),p.jsx(CS,{scope:n,orientation:r,dir:w,loop:o,currentTabStopId:v,onItemFocus:h.useCallback(E=>_(E),[_]),onItemShiftTab:h.useCallback(()=>d(!0),[]),onFocusableItemAdd:h.useCallback(()=>b(E=>E+1),[]),onFocusableItemRemove:h.useCallback(()=>b(E=>E-1),[]),children:p.jsx(he.div,{tabIndex:m||T===0?-1:0,"data-orientation":r,...f,ref:x,style:{outline:"none",...e.style},onMouseDown:ue(e.onMouseDown,()=>{k.current=!0}),onFocus:ue(e.onFocus,E=>{const I=!k.current;if(E.target===E.currentTarget&&I&&!m){const j=new CustomEvent(Al,wS);if(E.currentTarget.dispatchEvent(j),!j.defaultPrevented){const V=C().filter(F=>F.focusable),M=V.find(F=>F.active),q=V.find(F=>F.id===v),ee=[M,q,...V].filter(Boolean).map(F=>F.ref.current);yg(ee,u)}}k.current=!1}),onBlur:ue(e.onBlur,()=>d(!1))})})}),gg="RovingFocusGroupItem",vg=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,...i}=e,a=Hs(),l=s||a,c=kS(gg,n),u=c.currentTabStopId===l,f=pg(n),{onFocusableItemAdd:g,onFocusableItemRemove:x}=c;return h.useEffect(()=>{if(r)return g(),()=>x()},[r,g,x]),p.jsx(Zc.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:p.jsx(he.span,{tabIndex:u?0:-1,"data-orientation":c.orientation,...i,ref:t,onMouseDown:ue(e.onMouseDown,w=>{r?c.onItemFocus(l):w.preventDefault()}),onFocus:ue(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:ue(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){c.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const v=TS(w,c.orientation,c.dir);if(v!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let m=f().filter(d=>d.focusable).map(d=>d.ref.current);if(v==="last")m.reverse();else if(v==="prev"||v==="next"){v==="prev"&&m.reverse();const d=m.indexOf(w.currentTarget);m=c.loop?RS(m,d+1):m.slice(d+1)}setTimeout(()=>yg(m))}})})})});vg.displayName=gg;var bS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function NS(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function TS(e,t,n){const r=NS(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return bS[r]}function yg(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function RS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var PS=hg,jS=vg;function IS(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var xg=e=>{const{present:t,children:n}=e,r=OS(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),s=Me(r.ref,MS(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:s}):null};xg.displayName="Presence";function OS(e){const[t,n]=h.useState(),r=h.useRef({}),o=h.useRef(e),s=h.useRef("none"),i=e?"mounted":"unmounted",[a,l]=IS(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const c=pi(r.current);s.current=a==="mounted"?c:"none"},[a]),et(()=>{const c=r.current,u=o.current;if(u!==e){const g=s.current,x=pi(c);e?l("MOUNT"):x==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&g!==x?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),et(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,f=x=>{const v=pi(r.current).includes(x.animationName);if(x.target===t&&v&&(l("ANIMATION_END"),!o.current)){const _=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=_)})}},g=x=>{x.target===t&&(s.current=pi(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:h.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function pi(e){return(e==null?void 0:e.animationName)||"none"}function MS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var fd="Tabs",[AS,KE]=ug(fd,[mg]),wg=mg(),[LS,pd]=AS(fd),Sg=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:i="horizontal",dir:a,activationMode:l="automatic",...c}=e,u=dd(a),[f,g]=pa({prop:r,onChange:o,defaultProp:s});return p.jsx(LS,{scope:n,baseId:Hs(),value:f,onValueChange:g,orientation:i,dir:u,activationMode:l,children:p.jsx(he.div,{dir:u,"data-orientation":i,...c,ref:t})})});Sg.displayName=fd;var _g="TabsList",Cg=h.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,s=pd(_g,n),i=wg(n);return p.jsx(PS,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:r,children:p.jsx(he.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});Cg.displayName=_g;var kg="TabsTrigger",Eg=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,i=pd(kg,n),a=wg(n),l=Tg(i.baseId,r),c=Rg(i.baseId,r),u=r===i.value;return p.jsx(jS,{asChild:!0,...a,focusable:!o,active:u,children:p.jsx(he.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...s,ref:t,onMouseDown:ue(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?i.onValueChange(r):f.preventDefault()}),onKeyDown:ue(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&i.onValueChange(r)}),onFocus:ue(e.onFocus,()=>{const f=i.activationMode!=="manual";!u&&!o&&f&&i.onValueChange(r)})})})});Eg.displayName=kg;var bg="TabsContent",Ng=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:s,...i}=e,a=pd(bg,n),l=Tg(a.baseId,r),c=Rg(a.baseId,r),u=r===a.value,f=h.useRef(u);return h.useEffect(()=>{const g=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(g)},[]),p.jsx(xg,{present:o||u,children:({present:g})=>p.jsx(he.div,{"data-state":u?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":l,hidden:!g,id:c,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:g&&s})})});Ng.displayName=bg;function Tg(e,t){return`${e}-trigger-${t}`}function Rg(e,t){return`${e}-content-${t}`}var DS=Sg,Pg=Cg,jg=Eg,Ig=Ng;const md="-",zS=e=>{const t=FS(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(md);return a[0]===""&&a.length!==1&&a.shift(),Og(a,t)||$S(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},Og=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Og(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(md);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},qf=/^\[(.+)\]$/,$S=e=>{if(qf.test(e)){const t=qf.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},FS=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return BS(Object.entries(e.classGroups),n).forEach(([s,i])=>{qc(i,r,s,t)}),r},qc=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Kf(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(VS(o)){qc(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{qc(i,Kf(t,s),n,r)})})},Kf=(e,t)=>{let n=e;return t.split(md).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},VS=e=>e.isThemeGetter,BS=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e,US=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},Mg="!",HS=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=a=>{const l=[];let c=0,u=0,f;for(let _=0;_<a.length;_++){let m=a[_];if(c===0){if(m===o&&(r||a.slice(_,_+s)===t)){l.push(a.slice(u,_)),u=_+s;continue}if(m==="/"){f=_;continue}}m==="["?c++:m==="]"&&c--}const g=l.length===0?a:a.substring(u),x=g.startsWith(Mg),w=x?g.substring(1):g,v=f&&f>u?f-u:void 0;return{modifiers:l,hasImportantModifier:x,baseClassName:w,maybePostfixModifierPosition:v}};return n?a=>n({className:a,parseClassName:i}):i},WS=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},ZS=e=>({cache:US(e.cacheSize),parseClassName:HS(e),...zS(e)}),qS=/\s+/,KS=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(qS);let a="";for(let l=i.length-1;l>=0;l-=1){const c=i[l],{modifiers:u,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:x}=n(c);let w=!!x,v=r(w?g.substring(0,x):g);if(!v){if(!w){a=c+(a.length>0?" "+a:a);continue}if(v=r(g),!v){a=c+(a.length>0?" "+a:a);continue}w=!1}const _=WS(u).join(":"),m=f?_+Mg:_,d=m+v;if(s.includes(d))continue;s.push(d);const y=o(v,w);for(let C=0;C<y.length;++C){const k=y[C];s.push(m+k)}a=c+(a.length>0?" "+a:a)}return a};function GS(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Ag(t))&&(r&&(r+=" "),r+=n);return r}const Ag=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Ag(e[r]))&&(n&&(n+=" "),n+=t);return n};function QS(e,...t){let n,r,o,s=i;function i(l){const c=t.reduce((u,f)=>f(u),e());return n=ZS(c),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=KS(l,n);return o(l,u),u}return function(){return s(GS.apply(null,arguments))}}const ye=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Lg=/^\[(?:([a-z-]+):)?(.+)\]$/i,YS=/^\d+\/\d+$/,XS=new Set(["px","full","screen"]),JS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,e_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,t_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,n_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,r_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,an=e=>oo(e)||XS.has(e)||YS.test(e),bn=e=>ko(e,"length",d_),oo=e=>!!e&&!Number.isNaN(Number(e)),Ll=e=>ko(e,"number",oo),Do=e=>!!e&&Number.isInteger(Number(e)),o_=e=>e.endsWith("%")&&oo(e.slice(0,-1)),Y=e=>Lg.test(e),Nn=e=>JS.test(e),s_=new Set(["length","size","percentage"]),i_=e=>ko(e,s_,Dg),a_=e=>ko(e,"position",Dg),l_=new Set(["image","url"]),c_=e=>ko(e,l_,p_),u_=e=>ko(e,"",f_),zo=()=>!0,ko=(e,t,n)=>{const r=Lg.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},d_=e=>e_.test(e)&&!t_.test(e),Dg=()=>!1,f_=e=>n_.test(e),p_=e=>r_.test(e),m_=()=>{const e=ye("colors"),t=ye("spacing"),n=ye("blur"),r=ye("brightness"),o=ye("borderColor"),s=ye("borderRadius"),i=ye("borderSpacing"),a=ye("borderWidth"),l=ye("contrast"),c=ye("grayscale"),u=ye("hueRotate"),f=ye("invert"),g=ye("gap"),x=ye("gradientColorStops"),w=ye("gradientColorStopPositions"),v=ye("inset"),_=ye("margin"),m=ye("opacity"),d=ye("padding"),y=ye("saturate"),C=ye("scale"),k=ye("sepia"),T=ye("skew"),b=ye("space"),E=ye("translate"),I=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",Y,t],M=()=>[Y,t],q=()=>["",an,bn],W=()=>["auto",oo,Y],ee=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",Y],z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[oo,Y];return{cacheSize:500,separator:":",theme:{colors:[zo],spacing:[an,bn],blur:["none","",Nn,Y],brightness:H(),borderColor:[e],borderRadius:["none","","full",Nn,Y],borderSpacing:M(),borderWidth:q(),contrast:H(),grayscale:O(),hueRotate:H(),invert:O(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[o_,bn],inset:V(),margin:V(),opacity:H(),padding:M(),saturate:H(),scale:H(),sepia:O(),skew:H(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",Y]}],container:["container"],columns:[{columns:[Nn]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ee(),Y]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Do,Y]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Y]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",Do,Y]}],"grid-cols":[{"grid-cols":[zo]}],"col-start-end":[{col:["auto",{span:["full",Do,Y]},Y]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[zo]}],"row-start-end":[{row:["auto",{span:[Do,Y]},Y]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Y]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[d]}],px:[{px:[d]}],py:[{py:[d]}],ps:[{ps:[d]}],pe:[{pe:[d]}],pt:[{pt:[d]}],pr:[{pr:[d]}],pb:[{pb:[d]}],pl:[{pl:[d]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"space-x":[{"space-x":[b]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[b]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Y,t]}],"min-w":[{"min-w":[Y,t,"min","max","fit"]}],"max-w":[{"max-w":[Y,t,"none","full","min","max","fit","prose",{screen:[Nn]},Nn]}],h:[{h:[Y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Nn,bn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ll]}],"font-family":[{font:[zo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Y]}],"line-clamp":[{"line-clamp":["none",oo,Ll]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",an,Y]}],"list-image":[{"list-image":["none",Y]}],"list-style-type":[{list:["none","disc","decimal",Y]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",an,bn]}],"underline-offset":[{"underline-offset":["auto",an,Y]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ee(),a_]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",i_]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},c_]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...F(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:F()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...F()]}],"outline-offset":[{"outline-offset":[an,Y]}],"outline-w":[{outline:[an,bn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[an,bn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Nn,u_]}],"shadow-color":[{shadow:[zo]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Nn,Y]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[y]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Y]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",Y]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",Y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Do,Y]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Y]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Y]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Y]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[an,bn,Ll]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},h_=QS(m_);function ze(...e){return h_(Gt(e))}const g_=DS,zg=h.forwardRef(({className:e,...t},n)=>p.jsx(Pg,{ref:n,className:ze("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));zg.displayName=Pg.displayName;const ur=h.forwardRef(({className:e,...t},n)=>p.jsx(jg,{ref:n,className:ze("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-muted data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));ur.displayName=jg.displayName;const nr=h.forwardRef(({className:e,...t},n)=>p.jsx(Ig,{ref:n,className:ze("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));nr.displayName=Ig.displayName;/**
|
|
41
|
-
* @license lucide-react v0.447.0 - ISC
|
|
42
|
-
*
|
|
43
|
-
* This source code is licensed under the ISC license.
|
|
44
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/const v_=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$g=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
|
|
46
|
-
* @license lucide-react v0.447.0 - ISC
|
|
47
|
-
*
|
|
48
|
-
* This source code is licensed under the ISC license.
|
|
49
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/var y_={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"};/**
|
|
51
|
-
* @license lucide-react v0.447.0 - ISC
|
|
52
|
-
*
|
|
53
|
-
* This source code is licensed under the ISC license.
|
|
54
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/const x_=h.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>h.createElement("svg",{ref:l,...y_,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:$g("lucide",o),...a},[...i.map(([c,u])=>h.createElement(c,u)),...Array.isArray(s)?s:[s]]));/**
|
|
56
|
-
* @license lucide-react v0.447.0 - ISC
|
|
57
|
-
*
|
|
58
|
-
* This source code is licensed under the ISC license.
|
|
59
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
-
*/const Be=(e,t)=>{const n=h.forwardRef(({className:r,...o},s)=>h.createElement(x_,{ref:s,iconNode:t,className:$g(`lucide-${v_(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
|
|
61
|
-
* @license lucide-react v0.447.0 - ISC
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the ISC license.
|
|
64
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/const w_=Be("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
|
|
66
|
-
* @license lucide-react v0.447.0 - ISC
|
|
67
|
-
*
|
|
68
|
-
* This source code is licensed under the ISC license.
|
|
69
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/const S_=Be("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
71
|
-
* @license lucide-react v0.447.0 - ISC
|
|
72
|
-
*
|
|
73
|
-
* This source code is licensed under the ISC license.
|
|
74
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/const Kc=Be("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
76
|
-
* @license lucide-react v0.447.0 - ISC
|
|
77
|
-
*
|
|
78
|
-
* This source code is licensed under the ISC license.
|
|
79
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/const hd=Be("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
81
|
-
* @license lucide-react v0.447.0 - ISC
|
|
82
|
-
*
|
|
83
|
-
* This source code is licensed under the ISC license.
|
|
84
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/const Dl=Be("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
86
|
-
* @license lucide-react v0.447.0 - ISC
|
|
87
|
-
*
|
|
88
|
-
* This source code is licensed under the ISC license.
|
|
89
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
-
*/const Gf=Be("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
91
|
-
* @license lucide-react v0.447.0 - ISC
|
|
92
|
-
*
|
|
93
|
-
* This source code is licensed under the ISC license.
|
|
94
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
-
*/const __=Be("Files",[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]]);/**
|
|
96
|
-
* @license lucide-react v0.447.0 - ISC
|
|
97
|
-
*
|
|
98
|
-
* This source code is licensed under the ISC license.
|
|
99
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/const C_=Be("FolderTree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]);/**
|
|
101
|
-
* @license lucide-react v0.447.0 - ISC
|
|
102
|
-
*
|
|
103
|
-
* This source code is licensed under the ISC license.
|
|
104
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/const k_=Be("Hammer",[["path",{d:"m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9",key:"eefl8a"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"b7pghm"}]]);/**
|
|
106
|
-
* @license lucide-react v0.447.0 - ISC
|
|
107
|
-
*
|
|
108
|
-
* This source code is licensed under the ISC license.
|
|
109
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/const E_=Be("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
|
|
111
|
-
* @license lucide-react v0.447.0 - ISC
|
|
112
|
-
*
|
|
113
|
-
* This source code is licensed under the ISC license.
|
|
114
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/const b_=Be("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|
116
|
-
* @license lucide-react v0.447.0 - ISC
|
|
117
|
-
*
|
|
118
|
-
* This source code is licensed under the ISC license.
|
|
119
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
-
*/const N_=Be("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
|
|
121
|
-
* @license lucide-react v0.447.0 - ISC
|
|
122
|
-
*
|
|
123
|
-
* This source code is licensed under the ISC license.
|
|
124
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/const T_=Be("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
126
|
-
* @license lucide-react v0.447.0 - ISC
|
|
127
|
-
*
|
|
128
|
-
* This source code is licensed under the ISC license.
|
|
129
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
-
*/const R_=Be("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
131
|
-
* @license lucide-react v0.447.0 - ISC
|
|
132
|
-
*
|
|
133
|
-
* This source code is licensed under the ISC license.
|
|
134
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/const P_=Be("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
136
|
-
* @license lucide-react v0.447.0 - ISC
|
|
137
|
-
*
|
|
138
|
-
* This source code is licensed under the ISC license.
|
|
139
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
-
*/const j_=Be("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"}]]);/**
|
|
141
|
-
* @license lucide-react v0.447.0 - ISC
|
|
142
|
-
*
|
|
143
|
-
* This source code is licensed under the ISC license.
|
|
144
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
-
*/const I_=Be("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),O_=()=>p.jsx(nr,{value:"console",className:"h-96",children:p.jsx("div",{className:"bg-gray-900 text-gray-100 p-4 rounded-lg h-full font-mono text-sm overflow-auto",children:p.jsx("div",{className:"opacity-50",children:"Welcome to MCP Client Console"})})}),M_=({requestHistory:e,serverNotifications:t})=>{const[n,r]=h.useState({}),[o,s]=h.useState({}),i=c=>{r(u=>({...u,[c]:!u[c]}))},a=c=>{s(u=>({...u,[c]:!u[c]}))},l=c=>{navigator.clipboard.writeText(c)};return p.jsxs("div",{className:"bg-card overflow-hidden flex h-full",children:[p.jsxs("div",{className:"flex-1 overflow-y-auto p-4 border-r",children:[p.jsx("h2",{className:"text-lg font-semibold mb-4",children:"History"}),e.length===0?p.jsx("p",{className:"text-sm text-gray-500 italic",children:"No history yet"}):p.jsx("ul",{className:"space-y-3",children:e.slice().reverse().map((c,u)=>p.jsxs("li",{className:"text-sm text-foreground bg-secondary p-2 rounded",children:[p.jsxs("div",{className:"flex justify-between items-center cursor-pointer",onClick:()=>i(e.length-1-u),children:[p.jsxs("span",{className:"font-mono",children:[e.length-u,"."," ",JSON.parse(c.request).method]}),p.jsx("span",{children:n[e.length-1-u]?"▼":"▶"})]}),n[e.length-1-u]&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"mt-2",children:[p.jsxs("div",{className:"flex justify-between items-center mb-1",children:[p.jsx("span",{className:"font-semibold text-blue-600",children:"Request:"}),p.jsx("button",{onClick:()=>l(c.request),className:"text-blue-500 hover:text-blue-700",children:p.jsx(Dl,{size:16})})]}),p.jsx("pre",{className:"whitespace-pre-wrap break-words bg-background p-2 rounded",children:JSON.stringify(JSON.parse(c.request),null,2)})]}),c.response&&p.jsxs("div",{className:"mt-2",children:[p.jsxs("div",{className:"flex justify-between items-center mb-1",children:[p.jsx("span",{className:"font-semibold text-green-600",children:"Response:"}),p.jsx("button",{onClick:()=>l(c.response),className:"text-blue-500 hover:text-blue-700",children:p.jsx(Dl,{size:16})})]}),p.jsx("pre",{className:"whitespace-pre-wrap break-words bg-background p-2 rounded",children:JSON.stringify(JSON.parse(c.response),null,2)})]})]})]},u))})]}),p.jsxs("div",{className:"flex-1 overflow-y-auto p-4",children:[p.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Server Notifications"}),t.length===0?p.jsx("p",{className:"text-sm text-gray-500 italic",children:"No notifications yet"}):p.jsx("ul",{className:"space-y-3",children:t.slice().reverse().map((c,u)=>p.jsxs("li",{className:"text-sm text-foreground bg-secondary p-2 rounded",children:[p.jsxs("div",{className:"flex justify-between items-center cursor-pointer",onClick:()=>a(u),children:[p.jsxs("span",{className:"font-mono",children:[t.length-u,"."," ",c.method]}),p.jsx("span",{children:o[u]?"▼":"▶"})]}),o[u]&&p.jsxs("div",{className:"mt-2",children:[p.jsxs("div",{className:"flex justify-between items-center mb-1",children:[p.jsx("span",{className:"font-semibold text-purple-600",children:"Details:"}),p.jsx("button",{onClick:()=>l(JSON.stringify(c)),className:"text-blue-500 hover:text-blue-700",children:p.jsx(Dl,{size:16})})]}),p.jsx("pre",{className:"whitespace-pre-wrap break-words bg-background p-2 rounded",children:JSON.stringify(c,null,2)})]})]},u))})]})]})},Qf=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Yf=Gt,gd=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Yf(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(c=>{const u=n==null?void 0:n[c],f=s==null?void 0:s[c];if(u===null)return null;const g=Qf(u)||Qf(f);return o[c][g]}),a=n&&Object.entries(n).reduce((c,u)=>{let[f,g]=u;return g===void 0||(c[f]=g),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:f,className:g,...x}=u;return Object.entries(x).every(w=>{let[v,_]=w;return Array.isArray(_)?_.includes({...s,...a}[v]):{...s,...a}[v]===_})?[...c,f,g]:c},[]);return Yf(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)},A_=gd("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90 dark:bg-gray-800 dark:text-white dark:hover:bg-gray-700",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Ze=h.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?yo:"button";return p.jsx(i,{className:ze(A_({variant:t,size:n,className:e})),ref:s,...o})});Ze.displayName="Button";const L_=({onPingClick:e})=>p.jsx(nr,{value:"ping",className:"grid grid-cols-2 gap-4",children:p.jsx("div",{className:"col-span-2 flex justify-center items-center",children:p.jsxs(Ze,{onClick:e,className:"bg-gradient-to-r from-purple-500 to-pink-500 hover:from-purple-600 hover:to-pink-600 text-white font-bold py-6 px-12 rounded-full shadow-lg transform transition duration-300 hover:scale-110 focus:outline-none focus:ring-4 focus:ring-purple-300 animate-pulse",children:[p.jsx("span",{className:"text-3xl mr-2",children:"🚀"}),"MEGA PING",p.jsx("span",{className:"text-3xl ml-2",children:"💥"})]})})}),D_=gd("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),xn=h.forwardRef(({className:e,variant:t,...n},r)=>p.jsx("div",{ref:r,role:"alert",className:ze(D_({variant:t}),e),...n}));xn.displayName="Alert";const qa=h.forwardRef(({className:e,...t},n)=>p.jsx("h5",{ref:n,className:ze("mb-1 font-medium leading-none tracking-tight",e),...t}));qa.displayName="AlertTitle";const wn=h.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:ze("text-sm [&_p]:leading-relaxed",e),...t}));wn.displayName="AlertDescription";const qt=h.forwardRef(({className:e,type:t,...n},r)=>p.jsx("input",{type:t,className:ze("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));qt.displayName="Input";var z_="Label",Fg=h.forwardRef((e,t)=>p.jsx(he.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Fg.displayName=z_;var Vg=Fg;const $_=gd("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),vd=h.forwardRef(({className:e,...t},n)=>p.jsx(Vg,{ref:n,className:ze($_(),e),...t}));vd.displayName=Vg.displayName;const yd=h.forwardRef(({className:e,...t},n)=>p.jsx("textarea",{className:ze("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));yd.displayName="Textarea";const ma=({items:e,listItems:t,setSelectedItem:n,renderItem:r,title:o,buttonText:s,isButtonDisabled:i})=>p.jsxs("div",{className:"bg-card rounded-lg shadow",children:[p.jsx("div",{className:"p-4 border-b border-gray-200 dark:border-gray-700",children:p.jsx("h3",{className:"font-semibold dark:text-white",children:o})}),p.jsxs("div",{className:"p-4",children:[p.jsx(Ze,{variant:"outline",className:"w-full mb-4",onClick:t,disabled:i,children:s}),p.jsx("div",{className:"space-y-2 overflow-y-auto max-h-96",children:e.map((a,l)=>p.jsx("div",{className:"flex items-center p-2 rounded hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer",onClick:()=>n(a),children:r(a)},l))})]})]}),F_=({prompts:e,listPrompts:t,getPrompt:n,selectedPrompt:r,setSelectedPrompt:o,promptContent:s,nextCursor:i,error:a})=>{var g;const[l,c]=h.useState({}),u=(x,w)=>{c(v=>({...v,[x]:w}))},f=()=>{r&&n(r.name,l)};return p.jsxs(nr,{value:"prompts",className:"grid grid-cols-2 gap-4",children:[p.jsx(ma,{items:e,listItems:t,setSelectedItem:x=>{o(x),c({})},renderItem:x=>p.jsxs(p.Fragment,{children:[p.jsx("span",{className:"flex-1",children:x.name}),p.jsx("span",{className:"text-sm text-gray-500",children:x.description})]}),title:"Prompts",buttonText:i?"List More Prompts":"List Prompts",isButtonDisabled:!i&&e.length>0}),p.jsxs("div",{className:"bg-card rounded-lg shadow",children:[p.jsx("div",{className:"p-4 border-b border-gray-200",children:p.jsx("h3",{className:"font-semibold",children:r?r.name:"Select a prompt"})}),p.jsx("div",{className:"p-4",children:a?p.jsxs(xn,{variant:"destructive",children:[p.jsx(hd,{className:"h-4 w-4"}),p.jsx(qa,{children:"Error"}),p.jsx(wn,{children:a})]}):r?p.jsxs("div",{className:"space-y-4",children:[r.description&&p.jsx("p",{className:"text-sm text-gray-600",children:r.description}),(g=r.arguments)==null?void 0:g.map(x=>p.jsxs("div",{children:[p.jsx(vd,{htmlFor:x.name,children:x.name}),p.jsx(qt,{id:x.name,placeholder:`Enter ${x.name}`,value:l[x.name]||"",onChange:w=>u(x.name,w.target.value)}),x.description&&p.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:[x.description,x.required&&p.jsx("span",{className:"text-xs mt-1 ml-1",children:"(Required)"})]})]},x.name)),p.jsx(Ze,{onClick:f,className:"w-full",children:"Get Prompt"}),s&&p.jsx(yd,{value:s,readOnly:!0,className:"h-64 font-mono"})]}):p.jsx(xn,{children:p.jsx(wn,{children:"Select a prompt from the list to view and use it"})})})]})]})},V_=({resources:e,resourceTemplates:t,listResources:n,listResourceTemplates:r,readResource:o,selectedResource:s,setSelectedResource:i,resourceContent:a,nextCursor:l,nextTemplateCursor:c,error:u})=>{var m;const[f,g]=h.useState(null),[x,w]=h.useState({}),v=(d,y)=>d.replace(/{([^}]+)}/g,(C,k)=>y[k]||`{${k}}`),_=()=>{if(f){const d=v(f.uriTemplate,x);o(d),g(null),i({uri:d,name:d})}};return p.jsxs(nr,{value:"resources",className:"grid grid-cols-3 gap-4",children:[p.jsx(ma,{items:e,listItems:n,setSelectedItem:d=>{i(d),o(d.uri),g(null)},renderItem:d=>p.jsxs("div",{className:"flex items-center w-full",children:[p.jsx(Gf,{className:"w-4 h-4 mr-2 flex-shrink-0 text-gray-500"}),p.jsx("span",{className:"flex-1 truncate",title:d.uri.toString(),children:d.name}),p.jsx(Kc,{className:"w-4 h-4 flex-shrink-0 text-gray-400"})]}),title:"Resources",buttonText:l?"List More Resources":"List Resources",isButtonDisabled:!l&&e.length>0}),p.jsx(ma,{items:t,listItems:r,setSelectedItem:d=>{g(d),i(null),w({})},renderItem:d=>p.jsxs("div",{className:"flex items-center w-full",children:[p.jsx(Gf,{className:"w-4 h-4 mr-2 flex-shrink-0 text-gray-500"}),p.jsx("span",{className:"flex-1 truncate",title:d.uriTemplate,children:d.name}),p.jsx(Kc,{className:"w-4 h-4 flex-shrink-0 text-gray-400"})]}),title:"Resource Templates",buttonText:c?"List More Templates":"List Templates",isButtonDisabled:!c&&t.length>0}),p.jsxs("div",{className:"bg-card rounded-lg shadow",children:[p.jsxs("div",{className:"p-4 border-b border-gray-200 flex justify-between items-center",children:[p.jsx("h3",{className:"font-semibold truncate",title:(s==null?void 0:s.name)||(f==null?void 0:f.name),children:s?s.name:f?f.name:"Select a resource or template"}),s&&p.jsxs(Ze,{variant:"outline",size:"sm",onClick:()=>o(s.uri),children:[p.jsx(P_,{className:"w-4 h-4 mr-2"}),"Refresh"]})]}),p.jsx("div",{className:"p-4",children:u?p.jsxs(xn,{variant:"destructive",children:[p.jsx(hd,{className:"h-4 w-4"}),p.jsx(qa,{children:"Error"}),p.jsx(wn,{children:u})]}):s?p.jsx("pre",{className:"bg-gray-50 dark:bg-gray-800 p-4 rounded text-sm overflow-auto max-h-96 whitespace-pre-wrap break-words text-gray-900 dark:text-gray-100",children:a}):f?p.jsxs("div",{className:"space-y-4",children:[p.jsx("p",{className:"text-sm text-gray-600",children:f.description}),(m=f.uriTemplate.match(/{([^}]+)}/g))==null?void 0:m.map(d=>{const y=d.slice(1,-1);return p.jsxs("div",{children:[p.jsx("label",{htmlFor:y,className:"block text-sm font-medium text-gray-700",children:y}),p.jsx(qt,{id:y,value:x[y]||"",onChange:C=>w({...x,[y]:C.target.value}),className:"mt-1"})]},y)}),p.jsx(Ze,{onClick:_,disabled:Object.keys(x).length===0,children:"Read Resource"})]}):p.jsx(xn,{children:p.jsx(wn,{children:"Select a resource or template from the list to view its contents"})})})]})]})},B_=({roots:e,setRoots:t,onRootsChange:n})=>{const r=()=>{t(a=>[...a,{uri:"file://",name:""}])},o=a=>{t(l=>l.filter((c,u)=>u!==a))},s=(a,l,c)=>{t(u=>u.map((f,g)=>g===a?{...f,[l]:c}:f))},i=()=>{n()};return p.jsxs(nr,{value:"roots",className:"space-y-4",children:[p.jsx(xn,{children:p.jsx(wn,{children:"Configure the root directories that the server can access"})}),e.map((a,l)=>p.jsxs("div",{className:"flex gap-2 items-center",children:[p.jsx(qt,{placeholder:"file:// URI",value:a.uri,onChange:c=>s(l,"uri",c.target.value),className:"flex-1"}),p.jsx(Ze,{variant:"destructive",size:"sm",onClick:()=>o(l),children:p.jsx(N_,{className:"h-4 w-4"})})]},l)),p.jsxs("div",{className:"flex gap-2",children:[p.jsxs(Ze,{variant:"outline",onClick:r,children:[p.jsx(R_,{className:"h-4 w-4 mr-2"}),"Add Root"]}),p.jsxs(Ze,{onClick:i,children:[p.jsx(j_,{className:"h-4 w-4 mr-2"}),"Save Changes"]})]})]})},U_=({pendingRequests:e,onApprove:t,onReject:n})=>{const r=o=>{t(o,{model:"stub-model",stopReason:"endTurn",role:"assistant",content:{type:"text",text:"This is a stub response."}})};return p.jsxs(nr,{value:"sampling",className:"h-96",children:[p.jsx(xn,{children:p.jsx(wn,{children:"When the server requests LLM sampling, requests will appear here for approval."})}),p.jsxs("div",{className:"mt-4 space-y-4",children:[p.jsx("h3",{className:"text-lg font-semibold",children:"Recent Requests"}),e.map(o=>p.jsxs("div",{className:"p-4 border rounded-lg space-y-4",children:[p.jsx("pre",{className:"bg-gray-50 p-2 rounded",children:JSON.stringify(o.request,null,2)}),p.jsxs("div",{className:"flex space-x-2",children:[p.jsx(Ze,{onClick:()=>r(o.id),children:"Approve"}),p.jsx(Ze,{variant:"outline",onClick:()=>n(o.id),children:"Reject"})]})]},o.id)),e.length===0&&p.jsx("p",{className:"text-gray-500",children:"No pending requests"})]})]})};function Ka(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var H_=["color"],W_=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Ka(e,H_);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Z_=["color"],q_=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Ka(e,Z_);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),K_=["color"],G_=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Ka(e,K_);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Q_=["color"],Y_=h.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Ka(e,Q_);return h.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),h.createElement("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});function Xf(e,[t,n]){return Math.min(n,Math.max(t,e))}function X_(e,t=globalThis==null?void 0:globalThis.document){const n=nn(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var J_="DismissableLayer",Gc="dismissableLayer.update",eC="dismissableLayer.pointerDownOutside",tC="dismissableLayer.focusOutside",Jf,Bg=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ug=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,c=h.useContext(Bg),[u,f]=h.useState(null),g=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=h.useState({}),w=Me(t,b=>f(b)),v=Array.from(c.layers),[_]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=v.indexOf(_),d=u?v.indexOf(u):-1,y=c.layersWithOutsidePointerEventsDisabled.size>0,C=d>=m,k=oC(b=>{const E=b.target,I=[...c.branches].some(j=>j.contains(E));!C||I||(o==null||o(b),i==null||i(b),b.defaultPrevented||a==null||a())},g),T=sC(b=>{const E=b.target;[...c.branches].some(j=>j.contains(E))||(s==null||s(b),i==null||i(b),b.defaultPrevented||a==null||a())},g);return X_(b=>{d===c.layers.size-1&&(r==null||r(b),!b.defaultPrevented&&a&&(b.preventDefault(),a()))},g),h.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Jf=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),ep(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Jf)}},[u,g,n,c]),h.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),ep())},[u,c]),h.useEffect(()=>{const b=()=>x({});return document.addEventListener(Gc,b),()=>document.removeEventListener(Gc,b)},[]),p.jsx(he.div,{...l,ref:w,style:{pointerEvents:y?C?"auto":"none":void 0,...e.style},onFocusCapture:ue(e.onFocusCapture,T.onFocusCapture),onBlurCapture:ue(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:ue(e.onPointerDownCapture,k.onPointerDownCapture)})});Ug.displayName=J_;var nC="DismissableLayerBranch",rC=h.forwardRef((e,t)=>{const n=h.useContext(Bg),r=h.useRef(null),o=Me(t,r);return h.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p.jsx(he.div,{...e,ref:o})});rC.displayName=nC;function oC(e,t=globalThis==null?void 0:globalThis.document){const n=nn(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){Hg(eC,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function sC(e,t=globalThis==null?void 0:globalThis.document){const n=nn(e),r=h.useRef(!1);return h.useEffect(()=>{const o=s=>{s.target&&!r.current&&Hg(tC,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ep(){const e=new CustomEvent(Gc);document.dispatchEvent(e)}function Hg(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?vS(o,s):o.dispatchEvent(s)}var zl=0;function iC(){h.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??tp()),document.body.insertAdjacentElement("beforeend",e[1]??tp()),zl++,()=>{zl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),zl--}},[])}function tp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var $l="focusScope.autoFocusOnMount",Fl="focusScope.autoFocusOnUnmount",np={bubbles:!1,cancelable:!0},aC="FocusScope",Wg=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=h.useState(null),c=nn(o),u=nn(s),f=h.useRef(null),g=Me(t,v=>l(v)),x=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let v=function(y){if(x.paused||!a)return;const C=y.target;a.contains(C)?f.current=C:Tn(f.current,{select:!0})},_=function(y){if(x.paused||!a)return;const C=y.relatedTarget;C!==null&&(a.contains(C)||Tn(f.current,{select:!0}))},m=function(y){if(document.activeElement===document.body)for(const k of y)k.removedNodes.length>0&&Tn(a)};document.addEventListener("focusin",v),document.addEventListener("focusout",_);const d=new MutationObserver(m);return a&&d.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",_),d.disconnect()}}},[r,a,x.paused]),h.useEffect(()=>{if(a){op.add(x);const v=document.activeElement;if(!a.contains(v)){const m=new CustomEvent($l,np);a.addEventListener($l,c),a.dispatchEvent(m),m.defaultPrevented||(lC(pC(Zg(a)),{select:!0}),document.activeElement===v&&Tn(a))}return()=>{a.removeEventListener($l,c),setTimeout(()=>{const m=new CustomEvent(Fl,np);a.addEventListener(Fl,u),a.dispatchEvent(m),m.defaultPrevented||Tn(v??document.body,{select:!0}),a.removeEventListener(Fl,u),op.remove(x)},0)}}},[a,c,u,x]);const w=h.useCallback(v=>{if(!n&&!r||x.paused)return;const _=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,m=document.activeElement;if(_&&m){const d=v.currentTarget,[y,C]=cC(d);y&&C?!v.shiftKey&&m===C?(v.preventDefault(),n&&Tn(y,{select:!0})):v.shiftKey&&m===y&&(v.preventDefault(),n&&Tn(C,{select:!0})):m===d&&v.preventDefault()}},[n,r,x.paused]);return p.jsx(he.div,{tabIndex:-1,...i,ref:g,onKeyDown:w})});Wg.displayName=aC;function lC(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Tn(r,{select:t}),document.activeElement!==n)return}function cC(e){const t=Zg(e),n=rp(t,e),r=rp(t.reverse(),e);return[n,r]}function Zg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function rp(e,t){for(const n of e)if(!uC(n,{upTo:t}))return n}function uC(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function dC(e){return e instanceof HTMLInputElement&&"select"in e}function Tn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&dC(e)&&t&&e.select()}}var op=fC();function fC(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=sp(e,t),e.unshift(t)},remove(t){var n;e=sp(e,t),(n=e[0])==null||n.resume()}}}function sp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function pC(e){return e.filter(t=>t.tagName!=="A")}const mC=["top","right","bottom","left"],Qn=Math.min,dt=Math.max,ha=Math.round,mi=Math.floor,Jt=e=>({x:e,y:e}),hC={left:"right",right:"left",bottom:"top",top:"bottom"},gC={start:"end",end:"start"};function Qc(e,t,n){return dt(e,Qn(t,n))}function Sn(e,t){return typeof e=="function"?e(t):e}function _n(e){return e.split("-")[0]}function Eo(e){return e.split("-")[1]}function xd(e){return e==="x"?"y":"x"}function wd(e){return e==="y"?"height":"width"}function Yn(e){return["top","bottom"].includes(_n(e))?"y":"x"}function Sd(e){return xd(Yn(e))}function vC(e,t,n){n===void 0&&(n=!1);const r=Eo(e),o=Sd(e),s=wd(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=ga(i)),[i,ga(i)]}function yC(e){const t=ga(e);return[Yc(e),t,Yc(t)]}function Yc(e){return e.replace(/start|end/g,t=>gC[t])}function xC(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:i;default:return[]}}function wC(e,t,n,r){const o=Eo(e);let s=xC(_n(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Yc)))),s}function ga(e){return e.replace(/left|right|bottom|top/g,t=>hC[t])}function SC(e){return{top:0,right:0,bottom:0,left:0,...e}}function qg(e){return typeof e!="number"?SC(e):{top:e,right:e,bottom:e,left:e}}function va(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ip(e,t,n){let{reference:r,floating:o}=e;const s=Yn(t),i=Sd(t),a=wd(i),l=_n(t),c=s==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,g=r[a]/2-o[a]/2;let x;switch(l){case"top":x={x:u,y:r.y-o.height};break;case"bottom":x={x:u,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:f};break;case"left":x={x:r.x-o.width,y:f};break;default:x={x:r.x,y:r.y}}switch(Eo(t)){case"start":x[i]-=g*(n&&c?-1:1);break;case"end":x[i]+=g*(n&&c?-1:1);break}return x}const _C=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=ip(c,r,l),g=r,x={},w=0;for(let v=0;v<a.length;v++){const{name:_,fn:m}=a[v],{x:d,y,data:C,reset:k}=await m({x:u,y:f,initialPlacement:r,placement:g,strategy:o,middlewareData:x,rects:c,platform:i,elements:{reference:e,floating:t}});u=d??u,f=y??f,x={...x,[_]:{...x[_],...C}},k&&w<=50&&(w++,typeof k=="object"&&(k.placement&&(g=k.placement),k.rects&&(c=k.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:u,y:f}=ip(c,g,l)),v=-1)}return{x:u,y:f,placement:g,strategy:o,middlewareData:x}};async function As(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:g=!1,padding:x=0}=Sn(t,e),w=qg(x),_=a[g?f==="floating"?"reference":"floating":f],m=va(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(_)))==null||n?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),d=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),C=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},k=va(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:d,offsetParent:y,strategy:l}):d);return{top:(m.top-k.top+w.top)/C.y,bottom:(k.bottom-m.bottom+w.bottom)/C.y,left:(m.left-k.left+w.left)/C.x,right:(k.right-m.right+w.right)/C.x}}const CC=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Sn(e,t)||{};if(c==null)return{};const f=qg(u),g={x:n,y:r},x=Sd(o),w=wd(x),v=await i.getDimensions(c),_=x==="y",m=_?"top":"left",d=_?"bottom":"right",y=_?"clientHeight":"clientWidth",C=s.reference[w]+s.reference[x]-g[x]-s.floating[w],k=g[x]-s.reference[x],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let b=T?T[y]:0;(!b||!await(i.isElement==null?void 0:i.isElement(T)))&&(b=a.floating[y]||s.floating[w]);const E=C/2-k/2,I=b/2-v[w]/2-1,j=Qn(f[m],I),V=Qn(f[d],I),M=j,q=b-v[w]-V,W=b/2-v[w]/2+E,ee=Qc(M,W,q),F=!l.arrow&&Eo(o)!=null&&W!==ee&&s.reference[w]/2-(W<M?j:V)-v[w]/2<0,K=F?W<M?W-M:W-q:0;return{[x]:g[x]+K,data:{[x]:ee,centerOffset:W-ee-K,...F&&{alignmentOffset:K}},reset:F}}}),kC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:v=!0,..._}=Sn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const m=_n(o),d=Yn(a),y=_n(a)===a,C=await(l.isRTL==null?void 0:l.isRTL(c.floating)),k=g||(y||!v?[ga(a)]:yC(a)),T=w!=="none";!g&&T&&k.push(...wC(a,v,w,C));const b=[a,...k],E=await As(t,_),I=[];let j=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&I.push(E[m]),f){const W=vC(o,i,C);I.push(E[W[0]],E[W[1]])}if(j=[...j,{placement:o,overflows:I}],!I.every(W=>W<=0)){var V,M;const W=(((V=s.flip)==null?void 0:V.index)||0)+1,ee=b[W];if(ee)return{data:{index:W,overflows:j},reset:{placement:ee}};let F=(M=j.filter(K=>K.overflows[0]<=0).sort((K,N)=>K.overflows[1]-N.overflows[1])[0])==null?void 0:M.placement;if(!F)switch(x){case"bestFit":{var q;const K=(q=j.filter(N=>{if(T){const O=Yn(N.placement);return O===d||O==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(O=>O>0).reduce((O,z)=>O+z,0)]).sort((N,O)=>N[1]-O[1])[0])==null?void 0:q[0];K&&(F=K);break}case"initialPlacement":F=a;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function ap(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function lp(e){return mC.some(t=>e[t]>=0)}const EC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Sn(e,t);switch(r){case"referenceHidden":{const s=await As(t,{...o,elementContext:"reference"}),i=ap(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:lp(i)}}}case"escaped":{const s=await As(t,{...o,altBoundary:!0}),i=ap(s,n.floating);return{data:{escapedOffsets:i,escaped:lp(i)}}}default:return{}}}}};async function bC(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=_n(n),a=Eo(n),l=Yn(n)==="y",c=["left","top"].includes(i)?-1:1,u=s&&l?-1:1,f=Sn(t,e);let{mainAxis:g,crossAxis:x,alignmentAxis:w}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof w=="number"&&(x=a==="end"?w*-1:w),l?{x:x*u,y:g*c}:{x:g*c,y:x*u}}const NC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await bC(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},TC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:_=>{let{x:m,y:d}=_;return{x:m,y:d}}},...l}=Sn(e,t),c={x:n,y:r},u=await As(t,l),f=Yn(_n(o)),g=xd(f);let x=c[g],w=c[f];if(s){const _=g==="y"?"top":"left",m=g==="y"?"bottom":"right",d=x+u[_],y=x-u[m];x=Qc(d,x,y)}if(i){const _=f==="y"?"top":"left",m=f==="y"?"bottom":"right",d=w+u[_],y=w-u[m];w=Qc(d,w,y)}const v=a.fn({...t,[g]:x,[f]:w});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[g]:s,[f]:i}}}}}},RC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Sn(e,t),u={x:n,y:r},f=Yn(o),g=xd(f);let x=u[g],w=u[f];const v=Sn(a,t),_=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const y=g==="y"?"height":"width",C=s.reference[g]-s.floating[y]+_.mainAxis,k=s.reference[g]+s.reference[y]-_.mainAxis;x<C?x=C:x>k&&(x=k)}if(c){var m,d;const y=g==="y"?"width":"height",C=["top","left"].includes(_n(o)),k=s.reference[f]-s.floating[y]+(C&&((m=i.offset)==null?void 0:m[f])||0)+(C?0:_.crossAxis),T=s.reference[f]+s.reference[y]+(C?0:((d=i.offset)==null?void 0:d[f])||0)-(C?_.crossAxis:0);w<k?w=k:w>T&&(w=T)}return{[g]:x,[f]:w}}}},PC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...c}=Sn(e,t),u=await As(t,c),f=_n(o),g=Eo(o),x=Yn(o)==="y",{width:w,height:v}=s.floating;let _,m;f==="top"||f==="bottom"?(_=f,m=g===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(m=f,_=g==="end"?"top":"bottom");const d=v-u.top-u.bottom,y=w-u.left-u.right,C=Qn(v-u[_],d),k=Qn(w-u[m],y),T=!t.middlewareData.shift;let b=C,E=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(b=d),T&&!g){const j=dt(u.left,0),V=dt(u.right,0),M=dt(u.top,0),q=dt(u.bottom,0);x?E=w-2*(j!==0||V!==0?j+V:dt(u.left,u.right)):b=v-2*(M!==0||q!==0?M+q:dt(u.top,u.bottom))}await l({...t,availableWidth:E,availableHeight:b});const I=await i.getDimensions(a.floating);return w!==I.width||v!==I.height?{reset:{rects:!0}}:{}}}};function Ga(){return typeof window<"u"}function bo(e){return Kg(e)?(e.nodeName||"").toLowerCase():"#document"}function gt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function on(e){var t;return(t=(Kg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Kg(e){return Ga()?e instanceof Node||e instanceof gt(e).Node:!1}function $t(e){return Ga()?e instanceof Element||e instanceof gt(e).Element:!1}function rn(e){return Ga()?e instanceof HTMLElement||e instanceof gt(e).HTMLElement:!1}function cp(e){return!Ga()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof gt(e).ShadowRoot}function Ws(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ft(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function jC(e){return["table","td","th"].includes(bo(e))}function Qa(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function _d(e){const t=Cd(),n=$t(e)?Ft(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function IC(e){let t=Xn(e);for(;rn(t)&&!xo(t);){if(_d(t))return t;if(Qa(t))return null;t=Xn(t)}return null}function Cd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function xo(e){return["html","body","#document"].includes(bo(e))}function Ft(e){return gt(e).getComputedStyle(e)}function Ya(e){return $t(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xn(e){if(bo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||cp(e)&&e.host||on(e);return cp(t)?t.host:t}function Gg(e){const t=Xn(e);return xo(t)?e.ownerDocument?e.ownerDocument.body:e.body:rn(t)&&Ws(t)?t:Gg(t)}function Ls(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Gg(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=gt(o);if(s){const a=Xc(i);return t.concat(i,i.visualViewport||[],Ws(o)?o:[],a&&n?Ls(a):[])}return t.concat(o,Ls(o,[],n))}function Xc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qg(e){const t=Ft(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=rn(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=ha(n)!==s||ha(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function kd(e){return $t(e)?e:e.contextElement}function so(e){const t=kd(e);if(!rn(t))return Jt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Qg(t);let i=(s?ha(n.width):n.width)/r,a=(s?ha(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const OC=Jt(0);function Yg(e){const t=gt(e);return!Cd()||!t.visualViewport?OC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function MC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==gt(e)?!1:t}function br(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=kd(e);let i=Jt(1);t&&(r?$t(r)&&(i=so(r)):i=so(e));const a=MC(s,n,r)?Yg(s):Jt(0);let l=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,u=o.width/i.x,f=o.height/i.y;if(s){const g=gt(s),x=r&&$t(r)?gt(r):r;let w=g,v=Xc(w);for(;v&&r&&x!==w;){const _=so(v),m=v.getBoundingClientRect(),d=Ft(v),y=m.left+(v.clientLeft+parseFloat(d.paddingLeft))*_.x,C=m.top+(v.clientTop+parseFloat(d.paddingTop))*_.y;l*=_.x,c*=_.y,u*=_.x,f*=_.y,l+=y,c+=C,w=gt(v),v=Xc(w)}}return va({width:u,height:f,x:l,y:c})}function Ed(e,t){const n=Ya(e).scrollLeft;return t?t.left+n:br(on(e)).left+n}function Xg(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Ed(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function AC(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=on(r),a=t?Qa(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=Jt(1);const u=Jt(0),f=rn(r);if((f||!f&&!s)&&((bo(r)!=="body"||Ws(i))&&(l=Ya(r)),rn(r))){const x=br(r);c=so(r),u.x=x.x+r.clientLeft,u.y=x.y+r.clientTop}const g=i&&!f&&!s?Xg(i,l,!0):Jt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+g.x,y:n.y*c.y-l.scrollTop*c.y+u.y+g.y}}function LC(e){return Array.from(e.getClientRects())}function DC(e){const t=on(e),n=Ya(e),r=e.ownerDocument.body,o=dt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=dt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Ed(e);const a=-n.scrollTop;return Ft(r).direction==="rtl"&&(i+=dt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function zC(e,t){const n=gt(e),r=on(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const c=Cd();(!c||c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a,y:l}}function $C(e,t){const n=br(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=rn(e)?so(e):Jt(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,c=r*s.y;return{width:i,height:a,x:l,y:c}}function up(e,t,n){let r;if(t==="viewport")r=zC(e,n);else if(t==="document")r=DC(on(e));else if($t(t))r=$C(t,n);else{const o=Yg(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return va(r)}function Jg(e,t){const n=Xn(e);return n===t||!$t(n)||xo(n)?!1:Ft(n).position==="fixed"||Jg(n,t)}function FC(e,t){const n=t.get(e);if(n)return n;let r=Ls(e,[],!1).filter(a=>$t(a)&&bo(a)!=="body"),o=null;const s=Ft(e).position==="fixed";let i=s?Xn(e):e;for(;$t(i)&&!xo(i);){const a=Ft(i),l=_d(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ws(i)&&!l&&Jg(e,i))?r=r.filter(u=>u!==i):o=a,i=Xn(i)}return t.set(e,r),r}function VC(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Qa(t)?[]:FC(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((c,u)=>{const f=up(t,u,o);return c.top=dt(f.top,c.top),c.right=Qn(f.right,c.right),c.bottom=Qn(f.bottom,c.bottom),c.left=dt(f.left,c.left),c},up(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function BC(e){const{width:t,height:n}=Qg(e);return{width:t,height:n}}function UC(e,t,n){const r=rn(t),o=on(t),s=n==="fixed",i=br(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Jt(0);if(r||!r&&!s)if((bo(t)!=="body"||Ws(o))&&(a=Ya(t)),r){const g=br(t,!0,s,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&(l.x=Ed(o));const c=o&&!r&&!s?Xg(o,a):Jt(0),u=i.left+a.scrollLeft-l.x-c.x,f=i.top+a.scrollTop-l.y-c.y;return{x:u,y:f,width:i.width,height:i.height}}function Vl(e){return Ft(e).position==="static"}function dp(e,t){if(!rn(e)||Ft(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return on(e)===n&&(n=n.ownerDocument.body),n}function ev(e,t){const n=gt(e);if(Qa(e))return n;if(!rn(e)){let o=Xn(e);for(;o&&!xo(o);){if($t(o)&&!Vl(o))return o;o=Xn(o)}return n}let r=dp(e,t);for(;r&&jC(r)&&Vl(r);)r=dp(r,t);return r&&xo(r)&&Vl(r)&&!_d(r)?n:r||IC(e)||n}const HC=async function(e){const t=this.getOffsetParent||ev,n=this.getDimensions,r=await n(e.floating);return{reference:UC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function WC(e){return Ft(e).direction==="rtl"}const ZC={convertOffsetParentRelativeRectToViewportRelativeRect:AC,getDocumentElement:on,getClippingRect:VC,getOffsetParent:ev,getElementRects:HC,getClientRects:LC,getDimensions:BC,getScale:so,isElement:$t,isRTL:WC};function qC(e,t){let n=null,r;const o=on(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const{left:c,top:u,width:f,height:g}=e.getBoundingClientRect();if(a||t(),!f||!g)return;const x=mi(u),w=mi(o.clientWidth-(c+f)),v=mi(o.clientHeight-(u+g)),_=mi(c),d={rootMargin:-x+"px "+-w+"px "+-v+"px "+-_+"px",threshold:dt(0,Qn(1,l))||1};let y=!0;function C(k){const T=k[0].intersectionRatio;if(T!==l){if(!y)return i();T?i(!1,T):r=setTimeout(()=>{i(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(C,{...d,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,d)}n.observe(e)}return i(!0),s}function KC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=kd(e),u=o||s?[...c?Ls(c):[],...Ls(t)]:[];u.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),s&&m.addEventListener("resize",n)});const f=c&&a?qC(c,n):null;let g=-1,x=null;i&&(x=new ResizeObserver(m=>{let[d]=m;d&&d.target===c&&x&&(x.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var y;(y=x)==null||y.observe(t)})),n()}),c&&!l&&x.observe(c),x.observe(t));let w,v=l?br(e):null;l&&_();function _(){const m=br(e);v&&(m.x!==v.x||m.y!==v.y||m.width!==v.width||m.height!==v.height)&&n(),v=m,w=requestAnimationFrame(_)}return n(),()=>{var m;u.forEach(d=>{o&&d.removeEventListener("scroll",n),s&&d.removeEventListener("resize",n)}),f==null||f(),(m=x)==null||m.disconnect(),x=null,l&&cancelAnimationFrame(w)}}const GC=NC,QC=TC,YC=kC,XC=PC,JC=EC,fp=CC,ek=RC,tk=(e,t,n)=>{const r=new Map,o={platform:ZC,...n},s={...o.platform,_c:r};return _C(e,t,{...o,platform:s})};var Ii=typeof document<"u"?h.useLayoutEffect:h.useEffect;function ya(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ya(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!ya(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function tv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pp(e,t){const n=tv(e);return Math.round(t*n)/n}function Bl(e){const t=h.useRef(e);return Ii(()=>{t.current=e}),t}function nk(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,f]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,x]=h.useState(r);ya(g,r)||x(r);const[w,v]=h.useState(null),[_,m]=h.useState(null),d=h.useCallback(N=>{N!==T.current&&(T.current=N,v(N))},[]),y=h.useCallback(N=>{N!==b.current&&(b.current=N,m(N))},[]),C=s||w,k=i||_,T=h.useRef(null),b=h.useRef(null),E=h.useRef(u),I=l!=null,j=Bl(l),V=Bl(o),M=Bl(c),q=h.useCallback(()=>{if(!T.current||!b.current)return;const N={placement:t,strategy:n,middleware:g};V.current&&(N.platform=V.current),tk(T.current,b.current,N).then(O=>{const z={...O,isPositioned:M.current!==!1};W.current&&!ya(E.current,z)&&(E.current=z,Co.flushSync(()=>{f(z)}))})},[g,t,n,V,M]);Ii(()=>{c===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(N=>({...N,isPositioned:!1})))},[c]);const W=h.useRef(!1);Ii(()=>(W.current=!0,()=>{W.current=!1}),[]),Ii(()=>{if(C&&(T.current=C),k&&(b.current=k),C&&k){if(j.current)return j.current(C,k,q);q()}},[C,k,q,j,I]);const ee=h.useMemo(()=>({reference:T,floating:b,setReference:d,setFloating:y}),[d,y]),F=h.useMemo(()=>({reference:C,floating:k}),[C,k]),K=h.useMemo(()=>{const N={position:n,left:0,top:0};if(!F.floating)return N;const O=pp(F.floating,u.x),z=pp(F.floating,u.y);return a?{...N,transform:"translate("+O+"px, "+z+"px)",...tv(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:z}},[n,a,F.floating,u.x,u.y]);return h.useMemo(()=>({...u,update:q,refs:ee,elements:F,floatingStyles:K}),[u,q,ee,F,K])}const rk=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?fp({element:r.current,padding:o}).fn(n):{}:r?fp({element:r,padding:o}).fn(n):{}}}},ok=(e,t)=>({...GC(e),options:[e,t]}),sk=(e,t)=>({...QC(e),options:[e,t]}),ik=(e,t)=>({...ek(e),options:[e,t]}),ak=(e,t)=>({...YC(e),options:[e,t]}),lk=(e,t)=>({...XC(e),options:[e,t]}),ck=(e,t)=>({...JC(e),options:[e,t]}),uk=(e,t)=>({...rk(e),options:[e,t]});var dk="Arrow",nv=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return p.jsx(he.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});nv.displayName=dk;var fk=nv;function pk(e,t=[]){let n=[];function r(s,i){const a=h.createContext(i),l=n.length;n=[...n,i];function c(f){const{scope:g,children:x,...w}=f,v=(g==null?void 0:g[e][l])||a,_=h.useMemo(()=>w,Object.values(w));return p.jsx(v.Provider,{value:_,children:x})}function u(f,g){const x=(g==null?void 0:g[e][l])||a,w=h.useContext(x);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return c.displayName=s+"Provider",[c,u]}const o=()=>{const s=n.map(i=>h.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return h.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,mk(o,...t)]}function mk(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(s)[`__scope${c}`];return{...a,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function hk(e){const[t,n]=h.useState(void 0);return et(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,a=c.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var bd="Popper",[rv,ov]=pk(bd),[gk,sv]=rv(bd),iv=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return p.jsx(gk,{scope:t,anchor:r,onAnchorChange:o,children:n})};iv.displayName=bd;var av="PopperAnchor",lv=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=sv(av,n),i=h.useRef(null),a=Me(t,i);return h.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:p.jsx(he.div,{...o,ref:a})});lv.displayName=av;var Nd="PopperContent",[vk,yk]=rv(Nd),cv=h.forwardRef((e,t)=>{var B,ce,Ae,fe,ae,le;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:f="partial",hideWhenDetached:g=!1,updatePositionStrategy:x="optimized",onPlaced:w,...v}=e,_=sv(Nd,n),[m,d]=h.useState(null),y=Me(t,Ge=>d(Ge)),[C,k]=h.useState(null),T=hk(C),b=(T==null?void 0:T.width)??0,E=(T==null?void 0:T.height)??0,I=r+(s!=="center"?"-"+s:""),j=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},V=Array.isArray(c)?c:[c],M=V.length>0,q={padding:j,boundary:V.filter(wk),altBoundary:M},{refs:W,floatingStyles:ee,placement:F,isPositioned:K,middlewareData:N}=nk({strategy:"fixed",placement:I,whileElementsMounted:(...Ge)=>KC(...Ge,{animationFrame:x==="always"}),elements:{reference:_.anchor},middleware:[ok({mainAxis:o+E,alignmentAxis:i}),l&&sk({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?ik():void 0,...q}),l&&ak({...q}),lk({...q,apply:({elements:Ge,rects:rt,availableWidth:sr,availableHeight:sn})=>{const{width:ir,height:To}=rt.reference,Pr=Ge.floating.style;Pr.setProperty("--radix-popper-available-width",`${sr}px`),Pr.setProperty("--radix-popper-available-height",`${sn}px`),Pr.setProperty("--radix-popper-anchor-width",`${ir}px`),Pr.setProperty("--radix-popper-anchor-height",`${To}px`)}}),C&&uk({element:C,padding:a}),Sk({arrowWidth:b,arrowHeight:E}),g&&ck({strategy:"referenceHidden",...q})]}),[O,z]=fv(F),H=nn(w);et(()=>{K&&(H==null||H())},[K,H]);const J=(B=N.arrow)==null?void 0:B.x,pe=(ce=N.arrow)==null?void 0:ce.y,ie=((Ae=N.arrow)==null?void 0:Ae.centerOffset)!==0,[Se,ve]=h.useState();return et(()=>{m&&ve(window.getComputedStyle(m).zIndex)},[m]),p.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...ee,transform:K?ee.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Se,"--radix-popper-transform-origin":[(fe=N.transformOrigin)==null?void 0:fe.x,(ae=N.transformOrigin)==null?void 0:ae.y].join(" "),...((le=N.hide)==null?void 0:le.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(vk,{scope:n,placedSide:O,onArrowChange:k,arrowX:J,arrowY:pe,shouldHideArrow:ie,children:p.jsx(he.div,{"data-side":O,"data-align":z,...v,ref:y,style:{...v.style,animation:K?void 0:"none"}})})})});cv.displayName=Nd;var uv="PopperArrow",xk={top:"bottom",right:"left",bottom:"top",left:"right"},dv=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=yk(uv,r),i=xk[s.placedSide];return p.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:p.jsx(fk,{...o,ref:n,style:{...o.style,display:"block"}})})});dv.displayName=uv;function wk(e){return e!==null}var Sk=e=>({name:"transformOrigin",options:e,fn(t){var _,m,d;const{placement:n,rects:r,middlewareData:o}=t,i=((_=o.arrow)==null?void 0:_.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,u]=fv(n),f={start:"0%",center:"50%",end:"100%"}[u],g=(((m=o.arrow)==null?void 0:m.x)??0)+a/2,x=(((d=o.arrow)==null?void 0:d.y)??0)+l/2;let w="",v="";return c==="bottom"?(w=i?f:`${g}px`,v=`${-l}px`):c==="top"?(w=i?f:`${g}px`,v=`${r.floating.height+l}px`):c==="right"?(w=`${-l}px`,v=i?f:`${x}px`):c==="left"&&(w=`${r.floating.width+l}px`,v=i?f:`${x}px`),{data:{x:w,y:v}}}});function fv(e){const[t,n="center"]=e.split("-");return[t,n]}var _k=iv,Ck=lv,kk=cv,Ek=dv,bk="Portal",pv=h.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=h.useState(!1);et(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Gx.createPortal(p.jsx(he.div,{...r,ref:t}),i):null});pv.displayName=bk;function Nk(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Tk="VisuallyHidden",mv=h.forwardRef((e,t)=>p.jsx(he.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));mv.displayName=Tk;var Rk=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ir=new WeakMap,hi=new WeakMap,gi={},Ul=0,hv=function(e){return e&&(e.host||hv(e.parentNode))},Pk=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=hv(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},jk=function(e,t,n,r){var o=Pk(t,Array.isArray(e)?e:[e]);gi[n]||(gi[n]=new WeakMap);var s=gi[n],i=[],a=new Set,l=new Set(o),c=function(f){!f||a.has(f)||(a.add(f),c(f.parentNode))};o.forEach(c);var u=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(g){if(a.has(g))u(g);else try{var x=g.getAttribute(r),w=x!==null&&x!=="false",v=(Ir.get(g)||0)+1,_=(s.get(g)||0)+1;Ir.set(g,v),s.set(g,_),i.push(g),v===1&&w&&hi.set(g,!0),_===1&&g.setAttribute(n,"true"),w||g.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",g,m)}})};return u(t),a.clear(),Ul++,function(){i.forEach(function(f){var g=Ir.get(f)-1,x=s.get(f)-1;Ir.set(f,g),s.set(f,x),g||(hi.has(f)||f.removeAttribute(r),hi.delete(f)),x||f.removeAttribute(n)}),Ul--,Ul||(Ir=new WeakMap,Ir=new WeakMap,hi=new WeakMap,gi={})}},Ik=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Rk(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),jk(r,o,n,"aria-hidden")):function(){return null}},Kt=function(){return Kt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Kt.apply(this,arguments)};function gv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Ok(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Oi="right-scroll-bar-position",Mi="width-before-scroll-bar",Mk="with-scroll-bars-hidden",Ak="--removed-body-scroll-bar-size";function Hl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Lk(e,t){var n=h.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Dk=typeof window<"u"?h.useLayoutEffect:h.useEffect,mp=new WeakMap;function zk(e,t){var n=Lk(null,function(r){return e.forEach(function(o){return Hl(o,r)})});return Dk(function(){var r=mp.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Hl(a,null)}),s.forEach(function(a){o.has(a)||Hl(a,i)})}mp.set(n,e)},[e]),n}function $k(e){return e}function Fk(e,t){t===void 0&&(t=$k);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var u=i;i=[],u.forEach(s)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){i.push(u),c()},filter:function(u){return i=i.filter(u),n}}}};return o}function Vk(e){e===void 0&&(e={});var t=Fk(null);return t.options=Kt({async:!0,ssr:!1},e),t}var vv=function(e){var t=e.sideCar,n=gv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return h.createElement(r,Kt({},n))};vv.isSideCarExport=!0;function Bk(e,t){return e.useMedium(t),vv}var yv=Vk(),Wl=function(){},Xa=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:Wl,onWheelCapture:Wl,onTouchMoveCapture:Wl}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,f=e.shards,g=e.sideCar,x=e.noIsolation,w=e.inert,v=e.allowPinchZoom,_=e.as,m=_===void 0?"div":_,d=e.gapMode,y=gv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=g,k=zk([n,t]),T=Kt(Kt({},y),o);return h.createElement(h.Fragment,null,u&&h.createElement(C,{sideCar:yv,removeScrollBar:c,shards:f,noIsolation:x,inert:w,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:d}),i?h.cloneElement(h.Children.only(a),Kt(Kt({},T),{ref:k})):h.createElement(m,Kt({},T,{className:l,ref:k}),a))});Xa.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Xa.classNames={fullWidth:Mi,zeroRight:Oi};var Uk=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Hk(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Uk();return t&&e.setAttribute("nonce",t),e}function Wk(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Zk(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var qk=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Hk())&&(Wk(t,n),Zk(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Kk=function(){var e=qk();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},xv=function(){var e=Kk(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Gk={left:0,top:0,right:0,gap:0},Zl=function(e){return parseInt(e||"",10)||0},Qk=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Zl(n),Zl(r),Zl(o)]},Yk=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Gk;var t=Qk(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Xk=xv(),io="data-scroll-locked",Jk=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
146
|
-
.`.concat(Mk,` {
|
|
147
|
-
overflow: hidden `).concat(r,`;
|
|
148
|
-
padding-right: `).concat(a,"px ").concat(r,`;
|
|
149
|
-
}
|
|
150
|
-
body[`).concat(io,`] {
|
|
151
|
-
overflow: hidden `).concat(r,`;
|
|
152
|
-
overscroll-behavior: contain;
|
|
153
|
-
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
154
|
-
padding-left: `.concat(o,`px;
|
|
155
|
-
padding-top: `).concat(s,`px;
|
|
156
|
-
padding-right: `).concat(i,`px;
|
|
157
|
-
margin-left:0;
|
|
158
|
-
margin-top:0;
|
|
159
|
-
margin-right: `).concat(a,"px ").concat(r,`;
|
|
160
|
-
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.`).concat(Oi,` {
|
|
164
|
-
right: `).concat(a,"px ").concat(r,`;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.`).concat(Mi,` {
|
|
168
|
-
margin-right: `).concat(a,"px ").concat(r,`;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.`).concat(Oi," .").concat(Oi,` {
|
|
172
|
-
right: 0 `).concat(r,`;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.`).concat(Mi," .").concat(Mi,` {
|
|
176
|
-
margin-right: 0 `).concat(r,`;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
body[`).concat(io,`] {
|
|
180
|
-
`).concat(Ak,": ").concat(a,`px;
|
|
181
|
-
}
|
|
182
|
-
`)},hp=function(){var e=parseInt(document.body.getAttribute(io)||"0",10);return isFinite(e)?e:0},eE=function(){h.useEffect(function(){return document.body.setAttribute(io,(hp()+1).toString()),function(){var e=hp()-1;e<=0?document.body.removeAttribute(io):document.body.setAttribute(io,e.toString())}},[])},tE=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;eE();var s=h.useMemo(function(){return Yk(o)},[o]);return h.createElement(Xk,{styles:Jk(s,!t,o,n?"":"!important")})},Jc=!1;if(typeof window<"u")try{var vi=Object.defineProperty({},"passive",{get:function(){return Jc=!0,!0}});window.addEventListener("test",vi,vi),window.removeEventListener("test",vi,vi)}catch{Jc=!1}var Or=Jc?{passive:!1}:!1,nE=function(e){return e.tagName==="TEXTAREA"},wv=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!nE(e)&&n[t]==="visible")},rE=function(e){return wv(e,"overflowY")},oE=function(e){return wv(e,"overflowX")},gp=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Sv(e,r);if(o){var s=_v(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},sE=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},iE=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Sv=function(e,t){return e==="v"?rE(t):oE(t)},_v=function(e,t){return e==="v"?sE(t):iE(t)},aE=function(e,t){return e==="h"&&t==="rtl"?-1:1},lE=function(e,t,n,r,o){var s=aE(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,l=t.contains(a),c=!1,u=i>0,f=0,g=0;do{var x=_v(e,a),w=x[0],v=x[1],_=x[2],m=v-_-s*w;(w||m)&&Sv(e,a)&&(f+=m,g+=w),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&(Math.abs(f)<1||!o)||!u&&(Math.abs(g)<1||!o))&&(c=!0),c},yi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},vp=function(e){return[e.deltaX,e.deltaY]},yp=function(e){return e&&"current"in e?e.current:e},cE=function(e,t){return e[0]===t[0]&&e[1]===t[1]},uE=function(e){return`
|
|
183
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
184
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
185
|
-
`)},dE=0,Mr=[];function fE(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(dE++)[0],s=h.useState(xv)[0],i=h.useRef(e);h.useEffect(function(){i.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=Ok([e.lockRef.current],(e.shards||[]).map(yp),!0).filter(Boolean);return v.forEach(function(_){return _.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=h.useCallback(function(v,_){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!i.current.allowPinchZoom;var m=yi(v),d=n.current,y="deltaX"in v?v.deltaX:d[0]-m[0],C="deltaY"in v?v.deltaY:d[1]-m[1],k,T=v.target,b=Math.abs(y)>Math.abs(C)?"h":"v";if("touches"in v&&b==="h"&&T.type==="range")return!1;var E=gp(b,T);if(!E)return!0;if(E?k=b:(k=b==="v"?"h":"v",E=gp(b,T)),!E)return!1;if(!r.current&&"changedTouches"in v&&(y||C)&&(r.current=k),!k)return!0;var I=r.current||k;return lE(I,_,v,I==="h"?y:C,!0)},[]),l=h.useCallback(function(v){var _=v;if(!(!Mr.length||Mr[Mr.length-1]!==s)){var m="deltaY"in _?vp(_):yi(_),d=t.current.filter(function(k){return k.name===_.type&&(k.target===_.target||_.target===k.shadowParent)&&cE(k.delta,m)})[0];if(d&&d.should){_.cancelable&&_.preventDefault();return}if(!d){var y=(i.current.shards||[]).map(yp).filter(Boolean).filter(function(k){return k.contains(_.target)}),C=y.length>0?a(_,y[0]):!i.current.noIsolation;C&&_.cancelable&&_.preventDefault()}}},[]),c=h.useCallback(function(v,_,m,d){var y={name:v,delta:_,target:m,should:d,shadowParent:pE(m)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(C){return C!==y})},1)},[]),u=h.useCallback(function(v){n.current=yi(v),r.current=void 0},[]),f=h.useCallback(function(v){c(v.type,vp(v),v.target,a(v,e.lockRef.current))},[]),g=h.useCallback(function(v){c(v.type,yi(v),v.target,a(v,e.lockRef.current))},[]);h.useEffect(function(){return Mr.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:g}),document.addEventListener("wheel",l,Or),document.addEventListener("touchmove",l,Or),document.addEventListener("touchstart",u,Or),function(){Mr=Mr.filter(function(v){return v!==s}),document.removeEventListener("wheel",l,Or),document.removeEventListener("touchmove",l,Or),document.removeEventListener("touchstart",u,Or)}},[]);var x=e.removeScrollBar,w=e.inert;return h.createElement(h.Fragment,null,w?h.createElement(s,{styles:uE(o)}):null,x?h.createElement(tE,{gapMode:e.gapMode}):null)}function pE(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const mE=Bk(yv,fE);var Cv=h.forwardRef(function(e,t){return h.createElement(Xa,Kt({},e,{ref:t,sideCar:mE}))});Cv.classNames=Xa.classNames;var hE=[" ","Enter","ArrowUp","ArrowDown"],gE=[" ","Enter"],Zs="Select",[Ja,el,vE]=fg(Zs),[No,GE]=ug(Zs,[vE,ov]),tl=ov(),[yE,rr]=No(Zs),[xE,wE]=No(Zs),kv=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:l,dir:c,name:u,autoComplete:f,disabled:g,required:x,form:w}=e,v=tl(t),[_,m]=h.useState(null),[d,y]=h.useState(null),[C,k]=h.useState(!1),T=dd(c),[b=!1,E]=pa({prop:r,defaultProp:o,onChange:s}),[I,j]=pa({prop:i,defaultProp:a,onChange:l}),V=h.useRef(null),M=_?w||!!_.closest("form"):!0,[q,W]=h.useState(new Set),ee=Array.from(q).map(F=>F.props.value).join(";");return p.jsx(_k,{...v,children:p.jsxs(yE,{required:x,scope:t,trigger:_,onTriggerChange:m,valueNode:d,onValueNodeChange:y,valueNodeHasChildren:C,onValueNodeHasChildrenChange:k,contentId:Hs(),value:I,onValueChange:j,open:b,onOpenChange:E,dir:T,triggerPointerDownPosRef:V,disabled:g,children:[p.jsx(Ja.Provider,{scope:t,children:p.jsx(xE,{scope:e.__scopeSelect,onNativeOptionAdd:h.useCallback(F=>{W(K=>new Set(K).add(F))},[]),onNativeOptionRemove:h.useCallback(F=>{W(K=>{const N=new Set(K);return N.delete(F),N})},[]),children:n})}),M?p.jsxs(Gv,{"aria-hidden":!0,required:x,tabIndex:-1,name:u,autoComplete:f,value:I,onChange:F=>j(F.target.value),disabled:g,form:w,children:[I===void 0?p.jsx("option",{value:""}):null,Array.from(q)]},ee):null]})})};kv.displayName=Zs;var Ev="SelectTrigger",bv=h.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=tl(n),i=rr(Ev,n),a=i.disabled||r,l=Me(t,i.onTriggerChange),c=el(n),u=h.useRef("touch"),[f,g,x]=Qv(v=>{const _=c().filter(y=>!y.disabled),m=_.find(y=>y.value===i.value),d=Yv(_,v,m);d!==void 0&&i.onValueChange(d.value)}),w=v=>{a||(i.onOpenChange(!0),x()),v&&(i.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return p.jsx(Ck,{asChild:!0,...s,children:p.jsx(he.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Kv(i.value)?"":void 0,...o,ref:l,onClick:ue(o.onClick,v=>{v.currentTarget.focus(),u.current!=="mouse"&&w(v)}),onPointerDown:ue(o.onPointerDown,v=>{u.current=v.pointerType;const _=v.target;_.hasPointerCapture(v.pointerId)&&_.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(w(v),v.preventDefault())}),onKeyDown:ue(o.onKeyDown,v=>{const _=f.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&g(v.key),!(_&&v.key===" ")&&hE.includes(v.key)&&(w(),v.preventDefault())})})})});bv.displayName=Ev;var Nv="SelectValue",Tv=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,l=rr(Nv,n),{onValueNodeHasChildrenChange:c}=l,u=s!==void 0,f=Me(t,l.onValueNodeChange);return et(()=>{c(u)},[c,u]),p.jsx(he.span,{...a,ref:f,style:{pointerEvents:"none"},children:Kv(l.value)?p.jsx(p.Fragment,{children:i}):s})});Tv.displayName=Nv;var SE="SelectIcon",Rv=h.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return p.jsx(he.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Rv.displayName=SE;var _E="SelectPortal",Pv=e=>p.jsx(pv,{asChild:!0,...e});Pv.displayName=_E;var Nr="SelectContent",jv=h.forwardRef((e,t)=>{const n=rr(Nr,e.__scopeSelect),[r,o]=h.useState();if(et(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Co.createPortal(p.jsx(Iv,{scope:e.__scopeSelect,children:p.jsx(Ja.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),s):null}return p.jsx(Ov,{...e,ref:t})});jv.displayName=Nr;var Rt=10,[Iv,or]=No(Nr),CE="SelectContentImpl",Ov=h.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:l,align:c,alignOffset:u,arrowPadding:f,collisionBoundary:g,collisionPadding:x,sticky:w,hideWhenDetached:v,avoidCollisions:_,...m}=e,d=rr(Nr,n),[y,C]=h.useState(null),[k,T]=h.useState(null),b=Me(t,B=>C(B)),[E,I]=h.useState(null),[j,V]=h.useState(null),M=el(n),[q,W]=h.useState(!1),ee=h.useRef(!1);h.useEffect(()=>{if(y)return Ik(y)},[y]),iC();const F=h.useCallback(B=>{const[ce,...Ae]=M().map(le=>le.ref.current),[fe]=Ae.slice(-1),ae=document.activeElement;for(const le of B)if(le===ae||(le==null||le.scrollIntoView({block:"nearest"}),le===ce&&k&&(k.scrollTop=0),le===fe&&k&&(k.scrollTop=k.scrollHeight),le==null||le.focus(),document.activeElement!==ae))return},[M,k]),K=h.useCallback(()=>F([E,y]),[F,E,y]);h.useEffect(()=>{q&&K()},[q,K]);const{onOpenChange:N,triggerPointerDownPosRef:O}=d;h.useEffect(()=>{if(y){let B={x:0,y:0};const ce=fe=>{var ae,le;B={x:Math.abs(Math.round(fe.pageX)-(((ae=O.current)==null?void 0:ae.x)??0)),y:Math.abs(Math.round(fe.pageY)-(((le=O.current)==null?void 0:le.y)??0))}},Ae=fe=>{B.x<=10&&B.y<=10?fe.preventDefault():y.contains(fe.target)||N(!1),document.removeEventListener("pointermove",ce),O.current=null};return O.current!==null&&(document.addEventListener("pointermove",ce),document.addEventListener("pointerup",Ae,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ce),document.removeEventListener("pointerup",Ae,{capture:!0})}}},[y,N,O]),h.useEffect(()=>{const B=()=>N(!1);return window.addEventListener("blur",B),window.addEventListener("resize",B),()=>{window.removeEventListener("blur",B),window.removeEventListener("resize",B)}},[N]);const[z,H]=Qv(B=>{const ce=M().filter(ae=>!ae.disabled),Ae=ce.find(ae=>ae.ref.current===document.activeElement),fe=Yv(ce,B,Ae);fe&&setTimeout(()=>fe.ref.current.focus())}),J=h.useCallback((B,ce,Ae)=>{const fe=!ee.current&&!Ae;(d.value!==void 0&&d.value===ce||fe)&&(I(B),fe&&(ee.current=!0))},[d.value]),pe=h.useCallback(()=>y==null?void 0:y.focus(),[y]),ie=h.useCallback((B,ce,Ae)=>{const fe=!ee.current&&!Ae;(d.value!==void 0&&d.value===ce||fe)&&V(B)},[d.value]),Se=r==="popper"?eu:Mv,ve=Se===eu?{side:a,sideOffset:l,align:c,alignOffset:u,arrowPadding:f,collisionBoundary:g,collisionPadding:x,sticky:w,hideWhenDetached:v,avoidCollisions:_}:{};return p.jsx(Iv,{scope:n,content:y,viewport:k,onViewportChange:T,itemRefCallback:J,selectedItem:E,onItemLeave:pe,itemTextRefCallback:ie,focusSelectedItem:K,selectedItemText:j,position:r,isPositioned:q,searchRef:z,children:p.jsx(Cv,{as:yo,allowPinchZoom:!0,children:p.jsx(Wg,{asChild:!0,trapped:d.open,onMountAutoFocus:B=>{B.preventDefault()},onUnmountAutoFocus:ue(o,B=>{var ce;(ce=d.trigger)==null||ce.focus({preventScroll:!0}),B.preventDefault()}),children:p.jsx(Ug,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:B=>B.preventDefault(),onDismiss:()=>d.onOpenChange(!1),children:p.jsx(Se,{role:"listbox",id:d.contentId,"data-state":d.open?"open":"closed",dir:d.dir,onContextMenu:B=>B.preventDefault(),...m,...ve,onPlaced:()=>W(!0),ref:b,style:{display:"flex",flexDirection:"column",outline:"none",...m.style},onKeyDown:ue(m.onKeyDown,B=>{const ce=B.ctrlKey||B.altKey||B.metaKey;if(B.key==="Tab"&&B.preventDefault(),!ce&&B.key.length===1&&H(B.key),["ArrowUp","ArrowDown","Home","End"].includes(B.key)){let fe=M().filter(ae=>!ae.disabled).map(ae=>ae.ref.current);if(["ArrowUp","End"].includes(B.key)&&(fe=fe.slice().reverse()),["ArrowUp","ArrowDown"].includes(B.key)){const ae=B.target,le=fe.indexOf(ae);fe=fe.slice(le+1)}setTimeout(()=>F(fe)),B.preventDefault()}})})})})})})});Ov.displayName=CE;var kE="SelectItemAlignedPosition",Mv=h.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=rr(Nr,n),i=or(Nr,n),[a,l]=h.useState(null),[c,u]=h.useState(null),f=Me(t,b=>u(b)),g=el(n),x=h.useRef(!1),w=h.useRef(!0),{viewport:v,selectedItem:_,selectedItemText:m,focusSelectedItem:d}=i,y=h.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&c&&v&&_&&m){const b=s.trigger.getBoundingClientRect(),E=c.getBoundingClientRect(),I=s.valueNode.getBoundingClientRect(),j=m.getBoundingClientRect();if(s.dir!=="rtl"){const ae=j.left-E.left,le=I.left-ae,Ge=b.left-le,rt=b.width+Ge,sr=Math.max(rt,E.width),sn=window.innerWidth-Rt,ir=Xf(le,[Rt,Math.max(Rt,sn-sr)]);a.style.minWidth=rt+"px",a.style.left=ir+"px"}else{const ae=E.right-j.right,le=window.innerWidth-I.right-ae,Ge=window.innerWidth-b.right-le,rt=b.width+Ge,sr=Math.max(rt,E.width),sn=window.innerWidth-Rt,ir=Xf(le,[Rt,Math.max(Rt,sn-sr)]);a.style.minWidth=rt+"px",a.style.right=ir+"px"}const V=g(),M=window.innerHeight-Rt*2,q=v.scrollHeight,W=window.getComputedStyle(c),ee=parseInt(W.borderTopWidth,10),F=parseInt(W.paddingTop,10),K=parseInt(W.borderBottomWidth,10),N=parseInt(W.paddingBottom,10),O=ee+F+q+N+K,z=Math.min(_.offsetHeight*5,O),H=window.getComputedStyle(v),J=parseInt(H.paddingTop,10),pe=parseInt(H.paddingBottom,10),ie=b.top+b.height/2-Rt,Se=M-ie,ve=_.offsetHeight/2,B=_.offsetTop+ve,ce=ee+F+B,Ae=O-ce;if(ce<=ie){const ae=V.length>0&&_===V[V.length-1].ref.current;a.style.bottom="0px";const le=c.clientHeight-v.offsetTop-v.offsetHeight,Ge=Math.max(Se,ve+(ae?pe:0)+le+K),rt=ce+Ge;a.style.height=rt+"px"}else{const ae=V.length>0&&_===V[0].ref.current;a.style.top="0px";const Ge=Math.max(ie,ee+v.offsetTop+(ae?J:0)+ve)+Ae;a.style.height=Ge+"px",v.scrollTop=ce-ie+v.offsetTop}a.style.margin=`${Rt}px 0`,a.style.minHeight=z+"px",a.style.maxHeight=M+"px",r==null||r(),requestAnimationFrame(()=>x.current=!0)}},[g,s.trigger,s.valueNode,a,c,v,_,m,s.dir,r]);et(()=>y(),[y]);const[C,k]=h.useState();et(()=>{c&&k(window.getComputedStyle(c).zIndex)},[c]);const T=h.useCallback(b=>{b&&w.current===!0&&(y(),d==null||d(),w.current=!1)},[y,d]);return p.jsx(bE,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:x,onScrollButtonChange:T,children:p.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:p.jsx(he.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Mv.displayName=kE;var EE="SelectPopperPosition",eu=h.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Rt,...s}=e,i=tl(n);return p.jsx(kk,{...i,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});eu.displayName=EE;var[bE,Td]=No(Nr,{}),tu="SelectViewport",Av=h.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=or(tu,n),i=Td(tu,n),a=Me(t,s.onViewportChange),l=h.useRef(0);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),p.jsx(Ja.Slot,{scope:n,children:p.jsx(he.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ue(o.onScroll,c=>{const u=c.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:g}=i;if(g!=null&&g.current&&f){const x=Math.abs(l.current-u.scrollTop);if(x>0){const w=window.innerHeight-Rt*2,v=parseFloat(f.style.minHeight),_=parseFloat(f.style.height),m=Math.max(v,_);if(m<w){const d=m+x,y=Math.min(w,d),C=d-y;f.style.height=y+"px",f.style.bottom==="0px"&&(u.scrollTop=C>0?C:0,f.style.justifyContent="flex-end")}}}l.current=u.scrollTop})})})]})});Av.displayName=tu;var Lv="SelectGroup",[NE,TE]=No(Lv),RE=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Hs();return p.jsx(NE,{scope:n,id:o,children:p.jsx(he.div,{role:"group","aria-labelledby":o,...r,ref:t})})});RE.displayName=Lv;var Dv="SelectLabel",zv=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=TE(Dv,n);return p.jsx(he.div,{id:o.id,...r,ref:t})});zv.displayName=Dv;var xa="SelectItem",[PE,$v]=No(xa),Fv=h.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=rr(xa,n),l=or(xa,n),c=a.value===r,[u,f]=h.useState(s??""),[g,x]=h.useState(!1),w=Me(t,d=>{var y;return(y=l.itemRefCallback)==null?void 0:y.call(l,d,r,o)}),v=Hs(),_=h.useRef("touch"),m=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.jsx(PE,{scope:n,value:r,disabled:o,textId:v,isSelected:c,onItemTextChange:h.useCallback(d=>{f(y=>y||((d==null?void 0:d.textContent)??"").trim())},[]),children:p.jsx(Ja.ItemSlot,{scope:n,value:r,disabled:o,textValue:u,children:p.jsx(he.div,{role:"option","aria-labelledby":v,"data-highlighted":g?"":void 0,"aria-selected":c&&g,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:w,onFocus:ue(i.onFocus,()=>x(!0)),onBlur:ue(i.onBlur,()=>x(!1)),onClick:ue(i.onClick,()=>{_.current!=="mouse"&&m()}),onPointerUp:ue(i.onPointerUp,()=>{_.current==="mouse"&&m()}),onPointerDown:ue(i.onPointerDown,d=>{_.current=d.pointerType}),onPointerMove:ue(i.onPointerMove,d=>{var y;_.current=d.pointerType,o?(y=l.onItemLeave)==null||y.call(l):_.current==="mouse"&&d.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ue(i.onPointerLeave,d=>{var y;d.currentTarget===document.activeElement&&((y=l.onItemLeave)==null||y.call(l))}),onKeyDown:ue(i.onKeyDown,d=>{var C;((C=l.searchRef)==null?void 0:C.current)!==""&&d.key===" "||(gE.includes(d.key)&&m(),d.key===" "&&d.preventDefault())})})})})});Fv.displayName=xa;var Wo="SelectItemText",Vv=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=rr(Wo,n),a=or(Wo,n),l=$v(Wo,n),c=wE(Wo,n),[u,f]=h.useState(null),g=Me(t,m=>f(m),l.onItemTextChange,m=>{var d;return(d=a.itemTextRefCallback)==null?void 0:d.call(a,m,l.value,l.disabled)}),x=u==null?void 0:u.textContent,w=h.useMemo(()=>p.jsx("option",{value:l.value,disabled:l.disabled,children:x},l.value),[l.disabled,l.value,x]),{onNativeOptionAdd:v,onNativeOptionRemove:_}=c;return et(()=>(v(w),()=>_(w)),[v,_,w]),p.jsxs(p.Fragment,{children:[p.jsx(he.span,{id:l.textId,...s,ref:g}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Co.createPortal(s.children,i.valueNode):null]})});Vv.displayName=Wo;var Bv="SelectItemIndicator",Uv=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return $v(Bv,n).isSelected?p.jsx(he.span,{"aria-hidden":!0,...r,ref:t}):null});Uv.displayName=Bv;var nu="SelectScrollUpButton",Hv=h.forwardRef((e,t)=>{const n=or(nu,e.__scopeSelect),r=Td(nu,e.__scopeSelect),[o,s]=h.useState(!1),i=Me(t,r.onScrollButtonChange);return et(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollTop>0;s(c)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?p.jsx(Zv,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});Hv.displayName=nu;var ru="SelectScrollDownButton",Wv=h.forwardRef((e,t)=>{const n=or(ru,e.__scopeSelect),r=Td(ru,e.__scopeSelect),[o,s]=h.useState(!1),i=Me(t,r.onScrollButtonChange);return et(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollHeight-l.clientHeight,u=Math.ceil(l.scrollTop)<c;s(u)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?p.jsx(Zv,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});Wv.displayName=ru;var Zv=h.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=or("SelectScrollButton",n),i=h.useRef(null),a=el(n),l=h.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return h.useEffect(()=>()=>l(),[l]),et(()=>{var u;const c=a().find(f=>f.ref.current===document.activeElement);(u=c==null?void 0:c.ref.current)==null||u.scrollIntoView({block:"nearest"})},[a]),p.jsx(he.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:ue(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:ue(o.onPointerMove,()=>{var c;(c=s.onItemLeave)==null||c.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:ue(o.onPointerLeave,()=>{l()})})}),jE="SelectSeparator",qv=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return p.jsx(he.div,{"aria-hidden":!0,...r,ref:t})});qv.displayName=jE;var ou="SelectArrow",IE=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=tl(n),s=rr(ou,n),i=or(ou,n);return s.open&&i.position==="popper"?p.jsx(Ek,{...o,...r,ref:t}):null});IE.displayName=ou;function Kv(e){return e===""||e===void 0}var Gv=h.forwardRef((e,t)=>{const{value:n,...r}=e,o=h.useRef(null),s=Me(t,o),i=Nk(n);return h.useEffect(()=>{const a=o.current,l=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==n&&u){const f=new Event("change",{bubbles:!0});u.call(a,n),a.dispatchEvent(f)}},[i,n]),p.jsx(mv,{asChild:!0,children:p.jsx("select",{...r,ref:s,defaultValue:n})})});Gv.displayName="BubbleSelect";function Qv(e){const t=nn(e),n=h.useRef(""),r=h.useRef(0),o=h.useCallback(i=>{const a=n.current+i;t(a),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),s=h.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return h.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function Yv(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=OE(e,Math.max(s,0));o.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function OE(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ME=kv,Xv=bv,AE=Tv,LE=Rv,DE=Pv,Jv=jv,zE=Av,ey=zv,ty=Fv,$E=Vv,FE=Uv,ny=Hv,ry=Wv,oy=qv;const xp=ME,wp=AE,su=h.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(Xv,{ref:r,className:ze("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,p.jsx(LE,{asChild:!0,children:p.jsx(W_,{className:"h-4 w-4 opacity-50"})})]}));su.displayName=Xv.displayName;const sy=h.forwardRef(({className:e,...t},n)=>p.jsx(ny,{ref:n,className:ze("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(Y_,{})}));sy.displayName=ny.displayName;const iy=h.forwardRef(({className:e,...t},n)=>p.jsx(ry,{ref:n,className:ze("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(G_,{})}));iy.displayName=ry.displayName;const iu=h.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>p.jsx(DE,{children:p.jsxs(Jv,{ref:o,className:ze("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[p.jsx(sy,{}),p.jsx(zE,{className:ze("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),p.jsx(iy,{})]})}));iu.displayName=Jv.displayName;const VE=h.forwardRef(({className:e,...t},n)=>p.jsx(ey,{ref:n,className:ze("px-2 py-1.5 text-sm font-semibold",e),...t}));VE.displayName=ey.displayName;const Lr=h.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(ty,{ref:r,className:ze("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[p.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(FE,{children:p.jsx(q_,{className:"h-4 w-4"})})}),p.jsx($E,{children:t})]}));Lr.displayName=ty.displayName;const BE=h.forwardRef(({className:e,...t},n)=>p.jsx(oy,{ref:n,className:ze("-mx-1 my-1 h-px bg-muted",e),...t}));BE.displayName=oy.displayName;const UE=()=>{const[e,t]=h.useState(()=>localStorage.getItem("theme")||"system");return h.useEffect(()=>{const n=window.matchMedia("(prefers-color-scheme: dark)"),r=s=>{e==="system"&&o(s.matches?"dark":"light")},o=s=>{document.documentElement.classList.toggle("dark",s==="dark")};return o(e==="system"?n.matches?"dark":"light":e),n.addEventListener("change",r),()=>{n.removeEventListener("change",r)}},[e]),[e,h.useCallback(n=>{t(n),localStorage.setItem("theme",n),n!=="system"&&document.documentElement.classList.toggle("dark",n==="dark")},[])]},HE=({connectionStatus:e,transportType:t,setTransportType:n,command:r,setCommand:o,args:s,setArgs:i,url:a,setUrl:l,env:c,setEnv:u,onConnect:f,stdErrNotifications:g})=>{const[x,w]=UE(),[v,_]=h.useState(!1);return p.jsxs("div",{className:"w-80 bg-card border-r border-border flex flex-col h-full",children:[p.jsx("div",{className:"flex items-center justify-between p-4 border-b border-gray-200",children:p.jsx("div",{className:"flex items-center",children:p.jsx("h1",{className:"ml-2 text-lg font-semibold",children:"MCP Inspector"})})}),p.jsx("div",{className:"p-4 flex-1 overflow-auto",children:p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{className:"text-sm font-medium",children:"Transport Type"}),p.jsxs(xp,{value:t,onValueChange:m=>n(m),children:[p.jsx(su,{children:p.jsx(wp,{placeholder:"Select transport type"})}),p.jsxs(iu,{children:[p.jsx(Lr,{value:"stdio",children:"STDIO"}),p.jsx(Lr,{value:"sse",children:"SSE"})]})]})]}),t==="stdio"?p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{className:"text-sm font-medium",children:"Command"}),p.jsx(qt,{placeholder:"Command",value:r,onChange:m=>o(m.target.value)})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{className:"text-sm font-medium",children:"Arguments"}),p.jsx(qt,{placeholder:"Arguments (space-separated)",value:s,onChange:m=>i(m.target.value)})]})]}):p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{className:"text-sm font-medium",children:"URL"}),p.jsx(qt,{placeholder:"URL",value:a,onChange:m=>l(m.target.value)})]}),t==="stdio"&&p.jsxs("div",{className:"space-y-2",children:[p.jsxs(Ze,{variant:"outline",onClick:()=>_(!v),className:"flex items-center w-full",children:[v?p.jsx(S_,{className:"w-4 h-4 mr-2"}):p.jsx(Kc,{className:"w-4 h-4 mr-2"}),"Environment Variables"]}),v&&p.jsxs("div",{className:"space-y-2",children:[Object.entries(c).map(([m,d],y)=>p.jsxs("div",{className:"grid grid-cols-[1fr,auto] gap-2",children:[p.jsxs("div",{className:"space-y-1",children:[p.jsx(qt,{placeholder:"Key",value:m,onChange:C=>{const k={...c};delete k[m],k[C.target.value]=d,u(k)}}),p.jsx(qt,{placeholder:"Value",value:d,onChange:C=>{const k={...c};k[m]=C.target.value,u(k)}})]}),p.jsx(Ze,{variant:"destructive",onClick:()=>{const{[m]:C,...k}=c;u(k)},children:"Remove"})]},y)),p.jsx(Ze,{variant:"outline",onClick:()=>{const m={...c};m[""]="",u(m)},children:"Add Environment Variable"})]})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsxs(Ze,{className:"w-full",onClick:f,children:[p.jsx(T_,{className:"w-4 h-4 mr-2"}),"Connect"]}),p.jsxs("div",{className:"flex items-center justify-center space-x-2 mb-4",children:[p.jsx("div",{className:`w-2 h-2 rounded-full ${e==="connected"?"bg-green-500":e==="error"?"bg-red-500":"bg-gray-500"}`}),p.jsx("span",{className:"text-sm text-gray-600",children:e==="connected"?"Connected":e==="error"?"Connection Error":"Disconnected"})]}),g.length>0&&p.jsx(p.Fragment,{children:p.jsxs("div",{className:"mt-4 border-t border-gray-200 pt-4",children:[p.jsx("h3",{className:"text-sm font-medium",children:"Error output from MCP server"}),p.jsx("div",{className:"mt-2 max-h-80 overflow-y-auto",children:g.map((m,d)=>p.jsx("div",{className:"text-sm text-red-500 font-mono py-2 border-b border-gray-200 last:border-b-0",children:m.params.content},d))})]})})]})]})}),p.jsx("div",{className:"p-4 border-t",children:p.jsx("div",{className:"flex items-center space-x-2",children:p.jsxs(xp,{value:x,onValueChange:m=>w(m),children:[p.jsx(su,{className:"w-[120px]",id:"theme-select",children:p.jsx(wp,{})}),p.jsxs(iu,{children:[p.jsx(Lr,{value:"system",children:"System"}),p.jsx(Lr,{value:"light",children:"Light"}),p.jsx(Lr,{value:"dark",children:"Dark"})]})]})})})]})},WE=({tools:e,listTools:t,callTool:n,selectedTool:r,setSelectedTool:o,toolResult:s,nextCursor:i,error:a})=>{const[l,c]=h.useState({}),u=()=>{if(!s)return null;if("content"in s){const f=s,g=f.isError??!1;return p.jsxs(p.Fragment,{children:[p.jsxs("h4",{className:"font-semibold mb-2",children:["Tool Result: ",g?"Error":"Success"]}),f.content.map((x,w)=>p.jsxs("div",{className:"mb-2",children:[x.type==="text"&&p.jsx("pre",{className:"bg-gray-50 dark:bg-gray-800 dark:text-gray-100 p-4 rounded text-sm overflow-auto max-h-64",children:x.text}),x.type==="image"&&p.jsx("img",{src:`data:${x.mimeType};base64,${x.data}`,alt:"Tool result image",className:"max-w-full h-auto"}),x.type==="resource"&&p.jsx("pre",{className:"bg-gray-50 p-4 rounded text-sm overflow-auto max-h-64",children:JSON.stringify(x.resource,null,2)})]},w))]})}else if("toolResult"in s)return p.jsxs(p.Fragment,{children:[p.jsx("h4",{className:"font-semibold mb-2",children:"Tool Result (Legacy):"}),p.jsx("pre",{className:"bg-gray-50 p-4 rounded text-sm overflow-auto max-h-64",children:JSON.stringify(s.toolResult,null,2)})]})};return p.jsxs(nr,{value:"tools",className:"grid grid-cols-2 gap-4",children:[p.jsx(ma,{items:e,listItems:t,setSelectedItem:o,renderItem:f=>p.jsxs(p.Fragment,{children:[p.jsx("span",{className:"flex-1",children:f.name}),p.jsx("span",{className:"text-sm text-gray-500 text-right",children:f.description})]}),title:"Tools",buttonText:i?"List More Tools":"List Tools",isButtonDisabled:!i&&e.length>0}),p.jsxs("div",{className:"bg-card rounded-lg shadow",children:[p.jsx("div",{className:"p-4 border-b border-gray-200",children:p.jsx("h3",{className:"font-semibold",children:r?r.name:"Select a tool"})}),p.jsx("div",{className:"p-4",children:a?p.jsxs(xn,{variant:"destructive",children:[p.jsx(hd,{className:"h-4 w-4"}),p.jsx(qa,{children:"Error"}),p.jsx(wn,{children:a})]}):r?p.jsxs("div",{className:"space-y-4",children:[p.jsx("p",{className:"text-sm text-gray-600",children:r.description}),Object.entries(r.inputSchema.properties??[]).map(([f,g])=>p.jsxs("div",{children:[p.jsx(vd,{htmlFor:f,className:"block text-sm font-medium text-gray-700",children:f}),g.type==="string"?p.jsx(yd,{id:f,name:f,placeholder:g.description,onChange:x=>c({...l,[f]:x.target.value}),className:"mt-1"}):p.jsx(qt,{type:g.type==="number"?"number":"text",id:f,name:f,placeholder:g.description,onChange:x=>c({...l,[f]:g.type==="number"?Number(x.target.value):x.target.value}),className:"mt-1"})]},f)),p.jsxs(Ze,{onClick:()=>n(r.name,l),children:[p.jsx(I_,{className:"w-4 h-4 mr-2"}),"Run Tool"]}),s&&u()]}):p.jsx(xn,{children:p.jsx(wn,{children:"Select a tool from the list to view its details and run it"})})})]})]})},ZE=1e4,qE=()=>{const[e,t]=h.useState("disconnected"),[n,r]=h.useState([]),[o,s]=h.useState([]),[i,a]=h.useState(""),[l,c]=h.useState([]),[u,f]=h.useState(""),[g,x]=h.useState([]),[w,v]=h.useState(null),[_,m]=h.useState({resources:null,prompts:null,tools:null}),[d,y]=h.useState(()=>localStorage.getItem("lastCommand")||"mcp-server-everything"),[C,k]=h.useState(()=>localStorage.getItem("lastArgs")||""),[T,b]=h.useState("http://localhost:3001/sse"),[E,I]=h.useState("stdio"),[j,V]=h.useState([]),[M,q]=h.useState(null),[W,ee]=h.useState([]),[F,K]=h.useState([]),[N,O]=h.useState([]),[z,H]=h.useState({}),[J,pe]=h.useState([]),ie=h.useRef(0),Se=h.useRef([]),ve=(D,re)=>{pe(Te=>{const Pe=Te.find(ot=>ot.id===D);return Pe==null||Pe.resolve(re),Te.filter(ot=>ot.id!==D)})},B=D=>{pe(re=>{const Te=re.find(Pe=>Pe.id===D);return Te==null||Te.reject(new Error("Sampling request rejected")),re.filter(Pe=>Pe.id!==D)})},[ce,Ae]=h.useState(null),[fe,ae]=h.useState(null),[le,Ge]=h.useState(null),[rt,sr]=h.useState(),[sn,ir]=h.useState(),[To,Pr]=h.useState(),[nl,ay]=h.useState(),ly=h.useRef(0),[rl,cy]=h.useState(300),[qs,Rd]=h.useState(!1),Pd=h.useRef(0),jd=h.useRef(0),uy=h.useCallback(D=>{Rd(!0),Pd.current=D.clientY,jd.current=rl,document.body.style.userSelect="none"},[rl]),ol=h.useCallback(D=>{if(!qs)return;const re=Pd.current-D.clientY,Te=Math.max(100,Math.min(800,jd.current+re));cy(Te)},[qs]),sl=h.useCallback(()=>{Rd(!1),document.body.style.userSelect=""},[]);h.useEffect(()=>{if(qs)return window.addEventListener("mousemove",ol),window.addEventListener("mouseup",sl),()=>{window.removeEventListener("mousemove",ol),window.removeEventListener("mouseup",sl)}},[qs,ol,sl]),h.useEffect(()=>{localStorage.setItem("lastCommand",d)},[d]),h.useEffect(()=>{localStorage.setItem("lastArgs",C)},[C]),h.useEffect(()=>{fetch("http://localhost:3000/config").then(D=>D.json()).then(D=>{H(D.defaultEnvironment),D.defaultCommand&&y(D.defaultCommand),D.defaultArgs&&k(D.defaultArgs)}).catch(D=>console.error("Error fetching default environment:",D))},[]),h.useEffect(()=>{Se.current=N},[N]);const Id=(D,re)=>{V(Te=>[...Te,{request:JSON.stringify(D),response:re!==void 0?JSON.stringify(re):void 0}])},Nt=D=>{m(re=>({...re,[D]:null}))},kn=async(D,re,Te)=>{if(!M)throw new Error("MCP client not connected");try{const Pe=new AbortController,ot=setTimeout(()=>{Pe.abort("Request timed out")},ZE);let ar;try{ar=await M.request(D,re,{signal:Pe.signal})}finally{clearTimeout(ot)}return Id(D,ar),Te!==void 0&&Nt(Te),ar}catch(Pe){const ot=Pe.message??String(Pe);throw Te===void 0?me.error(ot):m(ar=>({...ar,[Te]:ot})),Pe}},dy=async D=>{if(!M)throw new Error("MCP client not connected");try{await M.notification(D),Id(D)}catch(re){throw me.error(re.message??String(re)),re}},fy=async()=>{const D=await kn({method:"resources/list",params:rt?{cursor:rt}:{}},od,"resources");r(n.concat(D.resources??[])),sr(D.nextCursor)},py=async()=>{const D=await kn({method:"resources/templates/list",params:sn?{cursor:sn}:{}},sd,"resources");s(o.concat(D.resourceTemplates??[])),ir(D.nextCursor)},my=async D=>{const re=await kn({method:"resources/read",params:{uri:D}},id,"resources");a(JSON.stringify(re,null,2))},hy=async()=>{const D=await kn({method:"prompts/list",params:To?{cursor:To}:{}},ad,"prompts");c(D.prompts),Pr(D.nextCursor)},gy=async(D,re={})=>{const Te=await kn({method:"prompts/get",params:{name:D,arguments:re}},ld,"prompts");f(JSON.stringify(Te,null,2))},vy=async()=>{const D=await kn({method:"tools/list",params:nl?{cursor:nl}:{}},cd,"tools");x(D.tools),ay(D.nextCursor)},yy=async(D,re)=>{const Te=await kn({method:"tools/call",params:{name:D,arguments:re,_meta:{progressToken:ly.current++}}},zw,"tools");v(Te)},xy=async()=>{await dy({method:"notifications/roots/list_changed"})},wy=async()=>{try{const D=new nS({name:"mcp-inspector",version:"0.0.1"},{capabilities:{sampling:{},roots:{listChanged:!0}}}),re=new URL("http://localhost:3000/sse");re.searchParams.append("transportType",E),E==="stdio"?(re.searchParams.append("command",d),re.searchParams.append("args",C),re.searchParams.append("env",JSON.stringify(z))):re.searchParams.append("url",T);const Te=new rS(re);D.setNotificationHandler(Va,Pe=>{ee(ot=>[...ot,Pe])}),D.setNotificationHandler(cg,Pe=>{K(ot=>[...ot,Pe])}),await D.connect(Te),D.setRequestHandler(ig,Pe=>new Promise((ot,ar)=>{pe(Sy=>[...Sy,{id:ie.current++,request:Pe,resolve:ot,reject:ar}])})),D.setRequestHandler(lg,async()=>({roots:Se.current})),q(D),t("connected")}catch(D){console.error(D),t("error")}};return p.jsxs("div",{className:"flex h-screen bg-background",children:[p.jsx(HE,{connectionStatus:e,transportType:E,setTransportType:I,command:d,setCommand:y,args:C,setArgs:k,url:T,setUrl:b,env:z,setEnv:H,onConnect:wy,stdErrNotifications:F}),p.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[p.jsx("div",{className:"flex-1 overflow-auto",children:M?p.jsxs(g_,{defaultValue:"resources",className:"w-full p-4",children:[p.jsxs(zg,{className:"mb-4 p-0",children:[p.jsxs(ur,{value:"resources",children:[p.jsx(__,{className:"w-4 h-4 mr-2"}),"Resources"]}),p.jsxs(ur,{value:"prompts",children:[p.jsx(b_,{className:"w-4 h-4 mr-2"}),"Prompts"]}),p.jsxs(ur,{value:"tools",children:[p.jsx(k_,{className:"w-4 h-4 mr-2"}),"Tools"]}),p.jsxs(ur,{value:"ping",children:[p.jsx(w_,{className:"w-4 h-4 mr-2"}),"Ping"]}),p.jsxs(ur,{value:"sampling",className:"relative",children:[p.jsx(E_,{className:"w-4 h-4 mr-2"}),"Sampling",J.length>0&&p.jsx("span",{className:"absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full h-4 w-4 flex items-center justify-center",children:J.length})]}),p.jsxs(ur,{value:"roots",children:[p.jsx(C_,{className:"w-4 h-4 mr-2"}),"Roots"]})]}),p.jsxs("div",{className:"w-full",children:[p.jsx(V_,{resources:n,resourceTemplates:o,listResources:()=>{Nt("resources"),fy()},listResourceTemplates:()=>{Nt("resources"),py()},readResource:D=>{Nt("resources"),my(D)},selectedResource:ce,setSelectedResource:D=>{Nt("resources"),Ae(D)},resourceContent:i,nextCursor:rt,nextTemplateCursor:sn,error:_.resources}),p.jsx(F_,{prompts:l,listPrompts:()=>{Nt("prompts"),hy()},getPrompt:(D,re)=>{Nt("prompts"),gy(D,re)},selectedPrompt:fe,setSelectedPrompt:D=>{Nt("prompts"),ae(D)},promptContent:u,nextCursor:To,error:_.prompts}),p.jsx(WE,{tools:g,listTools:()=>{Nt("tools"),vy()},callTool:(D,re)=>{Nt("tools"),yy(D,re)},selectedTool:le,setSelectedTool:D=>{Nt("tools"),Ge(D),v(null)},toolResult:w,nextCursor:nl,error:_.tools}),p.jsx(O_,{}),p.jsx(L_,{onPingClick:()=>{kn({method:"ping"},mr)}}),p.jsx(U_,{pendingRequests:J,onApprove:ve,onReject:B}),p.jsx(B_,{roots:N,setRoots:O,onRootsChange:xy})]})]}):p.jsx("div",{className:"flex items-center justify-center h-full",children:p.jsx("p",{className:"text-lg text-gray-500",children:"Connect to an MCP server to start inspecting"})})}),p.jsxs("div",{className:"relative border-t border-border",style:{height:`${rl}px`},children:[p.jsx("div",{className:"absolute w-full h-4 -top-2 cursor-row-resize flex items-center justify-center hover:bg-accent/50",onMouseDown:uy,children:p.jsx("div",{className:"w-8 h-1 rounded-full bg-border"})}),p.jsx("div",{className:"h-full overflow-auto",children:p.jsx(M_,{requestHistory:j,serverNotifications:W})})]})]})]})};Mh(document.getElementById("root")).render(p.jsxs(h.StrictMode,{children:[p.jsx(qE,{}),p.jsx(a1,{})]}));
|