mol-healer 0.1.2__py3-none-any.whl → 0.1.3__py3-none-any.whl

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.
@@ -6,7 +6,7 @@ var uy=e=>{throw TypeError(e)};var Nf=(e,t,r)=>t.has(e)||uy("Cannot "+r);var I=(
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var cy;function wC(){if(cy)return Qe;cy=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.iterator;function w(N){return N===null||typeof N!="object"?null:(N=g&&N[g]||N["@@iterator"],typeof N=="function"?N:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,b={};function E(N,F,le){this.props=N,this.context=F,this.refs=b,this.updater=le||S}E.prototype.isReactComponent={},E.prototype.setState=function(N,F){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,F,"setState")},E.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function R(){}R.prototype=E.prototype;function k(N,F,le){this.props=N,this.context=F,this.refs=b,this.updater=le||S}var P=k.prototype=new R;P.constructor=k,x(P,E.prototype),P.isPureReactComponent=!0;var T=Array.isArray,j=Object.prototype.hasOwnProperty,O={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function M(N,F,le){var ye,X={},re=null,ve=null;if(F!=null)for(ye in F.ref!==void 0&&(ve=F.ref),F.key!==void 0&&(re=""+F.key),F)j.call(F,ye)&&!L.hasOwnProperty(ye)&&(X[ye]=F[ye]);var fe=arguments.length-2;if(fe===1)X.children=le;else if(1<fe){for(var we=Array(fe),je=0;je<fe;je++)we[je]=arguments[je+2];X.children=we}if(N&&N.defaultProps)for(ye in fe=N.defaultProps,fe)X[ye]===void 0&&(X[ye]=fe[ye]);return{$$typeof:e,type:N,key:re,ref:ve,props:X,_owner:O.current}}function Q(N,F){return{$$typeof:e,type:N.type,key:F,ref:N.ref,props:N.props,_owner:N._owner}}function q(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function te(N){var F={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(le){return F[le]})}var ee=/\/+/g;function ne(N,F){return typeof N=="object"&&N!==null&&N.key!=null?te(""+N.key):F.toString(36)}function G(N,F,le,ye,X){var re=typeof N;(re==="undefined"||re==="boolean")&&(N=null);var ve=!1;if(N===null)ve=!0;else switch(re){case"string":case"number":ve=!0;break;case"object":switch(N.$$typeof){case e:case t:ve=!0}}if(ve)return ve=N,X=X(ve),N=ye===""?"."+ne(ve,0):ye,T(X)?(le="",N!=null&&(le=N.replace(ee,"$&/")+"/"),G(X,F,le,"",function(je){return je})):X!=null&&(q(X)&&(X=Q(X,le+(!X.key||ve&&ve.key===X.key?"":(""+X.key).replace(ee,"$&/")+"/")+N)),F.push(X)),1;if(ve=0,ye=ye===""?".":ye+":",T(N))for(var fe=0;fe<N.length;fe++){re=N[fe];var we=ye+ne(re,fe);ve+=G(re,F,le,we,X)}else if(we=w(N),typeof we=="function")for(N=we.call(N),fe=0;!(re=N.next()).done;)re=re.value,we=ye+ne(re,fe++),ve+=G(re,F,le,we,X);else if(re==="object")throw F=String(N),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.");return ve}function Z(N,F,le){if(N==null)return N;var ye=[],X=0;return G(N,ye,"","",function(re){return F.call(le,re,X++)}),ye}function B(N){if(N._status===-1){var F=N._result;F=F(),F.then(function(le){(N._status===0||N._status===-1)&&(N._status=1,N._result=le)},function(le){(N._status===0||N._status===-1)&&(N._status=2,N._result=le)}),N._status===-1&&(N._status=0,N._result=F)}if(N._status===1)return N._result.default;throw N._result}var U={current:null},A={transition:null},V={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:A,ReactCurrentOwner:O};function W(){throw Error("act(...) is not supported in production builds of React.")}return Qe.Children={map:Z,forEach:function(N,F,le){Z(N,function(){F.apply(this,arguments)},le)},count:function(N){var F=0;return Z(N,function(){F++}),F},toArray:function(N){return Z(N,function(F){return F})||[]},only:function(N){if(!q(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},Qe.Component=E,Qe.Fragment=r,Qe.Profiler=i,Qe.PureComponent=k,Qe.StrictMode=s,Qe.Suspense=p,Qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,Qe.act=W,Qe.cloneElement=function(N,F,le){if(N==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+N+".");var ye=x({},N.props),X=N.key,re=N.ref,ve=N._owner;if(F!=null){if(F.ref!==void 0&&(re=F.ref,ve=O.current),F.key!==void 0&&(X=""+F.key),N.type&&N.type.defaultProps)var fe=N.type.defaultProps;for(we in F)j.call(F,we)&&!L.hasOwnProperty(we)&&(ye[we]=F[we]===void 0&&fe!==void 0?fe[we]:F[we])}var we=arguments.length-2;if(we===1)ye.children=le;else if(1<we){fe=Array(we);for(var je=0;je<we;je++)fe[je]=arguments[je+2];ye.children=fe}return{$$typeof:e,type:N.type,key:X,ref:re,props:ye,_owner:ve}},Qe.createContext=function(N){return N={$$typeof:u,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},N.Provider={$$typeof:l,_context:N},N.Consumer=N},Qe.createElement=M,Qe.createFactory=function(N){var F=M.bind(null,N);return F.type=N,F},Qe.createRef=function(){return{current:null}},Qe.forwardRef=function(N){return{$$typeof:d,render:N}},Qe.isValidElement=q,Qe.lazy=function(N){return{$$typeof:m,_payload:{_status:-1,_result:N},_init:B}},Qe.memo=function(N,F){return{$$typeof:f,type:N,compare:F===void 0?null:F}},Qe.startTransition=function(N){var F=A.transition;A.transition={};try{N()}finally{A.transition=F}},Qe.unstable_act=W,Qe.useCallback=function(N,F){return U.current.useCallback(N,F)},Qe.useContext=function(N){return U.current.useContext(N)},Qe.useDebugValue=function(){},Qe.useDeferredValue=function(N){return U.current.useDeferredValue(N)},Qe.useEffect=function(N,F){return U.current.useEffect(N,F)},Qe.useId=function(){return U.current.useId()},Qe.useImperativeHandle=function(N,F,le){return U.current.useImperativeHandle(N,F,le)},Qe.useInsertionEffect=function(N,F){return U.current.useInsertionEffect(N,F)},Qe.useLayoutEffect=function(N,F){return U.current.useLayoutEffect(N,F)},Qe.useMemo=function(N,F){return U.current.useMemo(N,F)},Qe.useReducer=function(N,F,le){return U.current.useReducer(N,F,le)},Qe.useRef=function(N){return U.current.useRef(N)},Qe.useState=function(N){return U.current.useState(N)},Qe.useSyncExternalStore=function(N,F,le){return U.current.useSyncExternalStore(N,F,le)},Qe.useTransition=function(){return U.current.useTransition()},Qe.version="18.3.1",Qe}var dy;function sh(){return dy||(dy=1,Of.exports=wC()),Of.exports}/**
9
+ */var cy;function wC(){if(cy)return Qe;cy=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.iterator;function w(N){return N===null||typeof N!="object"?null:(N=g&&N[g]||N["@@iterator"],typeof N=="function"?N:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,b={};function E(N,F,le){this.props=N,this.context=F,this.refs=b,this.updater=le||S}E.prototype.isReactComponent={},E.prototype.setState=function(N,F){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,F,"setState")},E.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function R(){}R.prototype=E.prototype;function P(N,F,le){this.props=N,this.context=F,this.refs=b,this.updater=le||S}var k=P.prototype=new R;k.constructor=P,x(k,E.prototype),k.isPureReactComponent=!0;var T=Array.isArray,j=Object.prototype.hasOwnProperty,O={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function M(N,F,le){var ye,X={},re=null,ve=null;if(F!=null)for(ye in F.ref!==void 0&&(ve=F.ref),F.key!==void 0&&(re=""+F.key),F)j.call(F,ye)&&!L.hasOwnProperty(ye)&&(X[ye]=F[ye]);var fe=arguments.length-2;if(fe===1)X.children=le;else if(1<fe){for(var we=Array(fe),je=0;je<fe;je++)we[je]=arguments[je+2];X.children=we}if(N&&N.defaultProps)for(ye in fe=N.defaultProps,fe)X[ye]===void 0&&(X[ye]=fe[ye]);return{$$typeof:e,type:N,key:re,ref:ve,props:X,_owner:O.current}}function Q(N,F){return{$$typeof:e,type:N.type,key:F,ref:N.ref,props:N.props,_owner:N._owner}}function q(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function te(N){var F={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(le){return F[le]})}var ee=/\/+/g;function ne(N,F){return typeof N=="object"&&N!==null&&N.key!=null?te(""+N.key):F.toString(36)}function G(N,F,le,ye,X){var re=typeof N;(re==="undefined"||re==="boolean")&&(N=null);var ve=!1;if(N===null)ve=!0;else switch(re){case"string":case"number":ve=!0;break;case"object":switch(N.$$typeof){case e:case t:ve=!0}}if(ve)return ve=N,X=X(ve),N=ye===""?"."+ne(ve,0):ye,T(X)?(le="",N!=null&&(le=N.replace(ee,"$&/")+"/"),G(X,F,le,"",function(je){return je})):X!=null&&(q(X)&&(X=Q(X,le+(!X.key||ve&&ve.key===X.key?"":(""+X.key).replace(ee,"$&/")+"/")+N)),F.push(X)),1;if(ve=0,ye=ye===""?".":ye+":",T(N))for(var fe=0;fe<N.length;fe++){re=N[fe];var we=ye+ne(re,fe);ve+=G(re,F,le,we,X)}else if(we=w(N),typeof we=="function")for(N=we.call(N),fe=0;!(re=N.next()).done;)re=re.value,we=ye+ne(re,fe++),ve+=G(re,F,le,we,X);else if(re==="object")throw F=String(N),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.");return ve}function Z(N,F,le){if(N==null)return N;var ye=[],X=0;return G(N,ye,"","",function(re){return F.call(le,re,X++)}),ye}function B(N){if(N._status===-1){var F=N._result;F=F(),F.then(function(le){(N._status===0||N._status===-1)&&(N._status=1,N._result=le)},function(le){(N._status===0||N._status===-1)&&(N._status=2,N._result=le)}),N._status===-1&&(N._status=0,N._result=F)}if(N._status===1)return N._result.default;throw N._result}var U={current:null},A={transition:null},V={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:A,ReactCurrentOwner:O};function W(){throw Error("act(...) is not supported in production builds of React.")}return Qe.Children={map:Z,forEach:function(N,F,le){Z(N,function(){F.apply(this,arguments)},le)},count:function(N){var F=0;return Z(N,function(){F++}),F},toArray:function(N){return Z(N,function(F){return F})||[]},only:function(N){if(!q(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},Qe.Component=E,Qe.Fragment=r,Qe.Profiler=i,Qe.PureComponent=P,Qe.StrictMode=s,Qe.Suspense=p,Qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,Qe.act=W,Qe.cloneElement=function(N,F,le){if(N==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+N+".");var ye=x({},N.props),X=N.key,re=N.ref,ve=N._owner;if(F!=null){if(F.ref!==void 0&&(re=F.ref,ve=O.current),F.key!==void 0&&(X=""+F.key),N.type&&N.type.defaultProps)var fe=N.type.defaultProps;for(we in F)j.call(F,we)&&!L.hasOwnProperty(we)&&(ye[we]=F[we]===void 0&&fe!==void 0?fe[we]:F[we])}var we=arguments.length-2;if(we===1)ye.children=le;else if(1<we){fe=Array(we);for(var je=0;je<we;je++)fe[je]=arguments[je+2];ye.children=fe}return{$$typeof:e,type:N.type,key:X,ref:re,props:ye,_owner:ve}},Qe.createContext=function(N){return N={$$typeof:u,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},N.Provider={$$typeof:l,_context:N},N.Consumer=N},Qe.createElement=M,Qe.createFactory=function(N){var F=M.bind(null,N);return F.type=N,F},Qe.createRef=function(){return{current:null}},Qe.forwardRef=function(N){return{$$typeof:d,render:N}},Qe.isValidElement=q,Qe.lazy=function(N){return{$$typeof:m,_payload:{_status:-1,_result:N},_init:B}},Qe.memo=function(N,F){return{$$typeof:f,type:N,compare:F===void 0?null:F}},Qe.startTransition=function(N){var F=A.transition;A.transition={};try{N()}finally{A.transition=F}},Qe.unstable_act=W,Qe.useCallback=function(N,F){return U.current.useCallback(N,F)},Qe.useContext=function(N){return U.current.useContext(N)},Qe.useDebugValue=function(){},Qe.useDeferredValue=function(N){return U.current.useDeferredValue(N)},Qe.useEffect=function(N,F){return U.current.useEffect(N,F)},Qe.useId=function(){return U.current.useId()},Qe.useImperativeHandle=function(N,F,le){return U.current.useImperativeHandle(N,F,le)},Qe.useInsertionEffect=function(N,F){return U.current.useInsertionEffect(N,F)},Qe.useLayoutEffect=function(N,F){return U.current.useLayoutEffect(N,F)},Qe.useMemo=function(N,F){return U.current.useMemo(N,F)},Qe.useReducer=function(N,F,le){return U.current.useReducer(N,F,le)},Qe.useRef=function(N){return U.current.useRef(N)},Qe.useState=function(N){return U.current.useState(N)},Qe.useSyncExternalStore=function(N,F,le){return U.current.useSyncExternalStore(N,F,le)},Qe.useTransition=function(){return U.current.useTransition()},Qe.version="18.3.1",Qe}var dy;function sh(){return dy||(dy=1,Of.exports=wC()),Of.exports}/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
12
12
  *
@@ -22,7 +22,7 @@ var uy=e=>{throw TypeError(e)};var Nf=(e,t,r)=>t.has(e)||uy("Cannot "+r);var I=(
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var hy;function EC(){return hy||(hy=1,(function(e){function t(A,V){var W=A.length;A.push(V);e:for(;0<W;){var N=W-1>>>1,F=A[N];if(0<i(F,V))A[N]=V,A[W]=F,W=N;else break e}}function r(A){return A.length===0?null:A[0]}function s(A){if(A.length===0)return null;var V=A[0],W=A.pop();if(W!==V){A[0]=W;e:for(var N=0,F=A.length,le=F>>>1;N<le;){var ye=2*(N+1)-1,X=A[ye],re=ye+1,ve=A[re];if(0>i(X,W))re<F&&0>i(ve,X)?(A[N]=ve,A[re]=W,N=re):(A[N]=X,A[ye]=W,N=ye);else if(re<F&&0>i(ve,W))A[N]=ve,A[re]=W,N=re;else break e}}return V}function i(A,V){var W=A.sortIndex-V.sortIndex;return W!==0?W:A.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var p=[],f=[],m=1,g=null,w=3,S=!1,x=!1,b=!1,E=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(A){for(var V=r(f);V!==null;){if(V.callback===null)s(f);else if(V.startTime<=A)s(f),V.sortIndex=V.expirationTime,t(p,V);else break;V=r(f)}}function T(A){if(b=!1,P(A),!x)if(r(p)!==null)x=!0,B(j);else{var V=r(f);V!==null&&U(T,V.startTime-A)}}function j(A,V){x=!1,b&&(b=!1,R(M),M=-1),S=!0;var W=w;try{for(P(V),g=r(p);g!==null&&(!(g.expirationTime>V)||A&&!te());){var N=g.callback;if(typeof N=="function"){g.callback=null,w=g.priorityLevel;var F=N(g.expirationTime<=V);V=e.unstable_now(),typeof F=="function"?g.callback=F:g===r(p)&&s(p),P(V)}else s(p);g=r(p)}if(g!==null)var le=!0;else{var ye=r(f);ye!==null&&U(T,ye.startTime-V),le=!1}return le}finally{g=null,w=W,S=!1}}var O=!1,L=null,M=-1,Q=5,q=-1;function te(){return!(e.unstable_now()-q<Q)}function ee(){if(L!==null){var A=e.unstable_now();q=A;var V=!0;try{V=L(!0,A)}finally{V?ne():(O=!1,L=null)}}else O=!1}var ne;if(typeof k=="function")ne=function(){k(ee)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,Z=G.port2;G.port1.onmessage=ee,ne=function(){Z.postMessage(null)}}else ne=function(){E(ee,0)};function B(A){L=A,O||(O=!0,ne())}function U(A,V){M=E(function(){A(e.unstable_now())},V)}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(A){A.callback=null},e.unstable_continueExecution=function(){x||S||(x=!0,B(j))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return w},e.unstable_getFirstCallbackNode=function(){return r(p)},e.unstable_next=function(A){switch(w){case 1:case 2:case 3:var V=3;break;default:V=w}var W=w;w=V;try{return A()}finally{w=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,V){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var W=w;w=A;try{return V()}finally{w=W}},e.unstable_scheduleCallback=function(A,V,W){var N=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?N+W:N):W=N,A){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=W+F,A={id:m++,callback:V,priorityLevel:A,startTime:W,expirationTime:F,sortIndex:-1},W>N?(A.sortIndex=W,t(f,A),r(p)===null&&A===r(f)&&(b?(R(M),M=-1):b=!0,U(T,W-N))):(A.sortIndex=F,t(p,A),x||S||(x=!0,B(j))),A},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(A){var V=w;return function(){var W=w;w=V;try{return A.apply(this,arguments)}finally{w=W}}}})(If)),If}var my;function RC(){return my||(my=1,Df.exports=EC()),Df.exports}/**
25
+ */var hy;function EC(){return hy||(hy=1,(function(e){function t(A,V){var W=A.length;A.push(V);e:for(;0<W;){var N=W-1>>>1,F=A[N];if(0<i(F,V))A[N]=V,A[W]=F,W=N;else break e}}function r(A){return A.length===0?null:A[0]}function s(A){if(A.length===0)return null;var V=A[0],W=A.pop();if(W!==V){A[0]=W;e:for(var N=0,F=A.length,le=F>>>1;N<le;){var ye=2*(N+1)-1,X=A[ye],re=ye+1,ve=A[re];if(0>i(X,W))re<F&&0>i(ve,X)?(A[N]=ve,A[re]=W,N=re):(A[N]=X,A[ye]=W,N=ye);else if(re<F&&0>i(ve,W))A[N]=ve,A[re]=W,N=re;else break e}}return V}function i(A,V){var W=A.sortIndex-V.sortIndex;return W!==0?W:A.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var p=[],f=[],m=1,g=null,w=3,S=!1,x=!1,b=!1,E=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(A){for(var V=r(f);V!==null;){if(V.callback===null)s(f);else if(V.startTime<=A)s(f),V.sortIndex=V.expirationTime,t(p,V);else break;V=r(f)}}function T(A){if(b=!1,k(A),!x)if(r(p)!==null)x=!0,B(j);else{var V=r(f);V!==null&&U(T,V.startTime-A)}}function j(A,V){x=!1,b&&(b=!1,R(M),M=-1),S=!0;var W=w;try{for(k(V),g=r(p);g!==null&&(!(g.expirationTime>V)||A&&!te());){var N=g.callback;if(typeof N=="function"){g.callback=null,w=g.priorityLevel;var F=N(g.expirationTime<=V);V=e.unstable_now(),typeof F=="function"?g.callback=F:g===r(p)&&s(p),k(V)}else s(p);g=r(p)}if(g!==null)var le=!0;else{var ye=r(f);ye!==null&&U(T,ye.startTime-V),le=!1}return le}finally{g=null,w=W,S=!1}}var O=!1,L=null,M=-1,Q=5,q=-1;function te(){return!(e.unstable_now()-q<Q)}function ee(){if(L!==null){var A=e.unstable_now();q=A;var V=!0;try{V=L(!0,A)}finally{V?ne():(O=!1,L=null)}}else O=!1}var ne;if(typeof P=="function")ne=function(){P(ee)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,Z=G.port2;G.port1.onmessage=ee,ne=function(){Z.postMessage(null)}}else ne=function(){E(ee,0)};function B(A){L=A,O||(O=!0,ne())}function U(A,V){M=E(function(){A(e.unstable_now())},V)}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(A){A.callback=null},e.unstable_continueExecution=function(){x||S||(x=!0,B(j))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return w},e.unstable_getFirstCallbackNode=function(){return r(p)},e.unstable_next=function(A){switch(w){case 1:case 2:case 3:var V=3;break;default:V=w}var W=w;w=V;try{return A()}finally{w=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,V){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var W=w;w=A;try{return V()}finally{w=W}},e.unstable_scheduleCallback=function(A,V,W){var N=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?N+W:N):W=N,A){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=W+F,A={id:m++,callback:V,priorityLevel:A,startTime:W,expirationTime:F,sortIndex:-1},W>N?(A.sortIndex=W,t(f,A),r(p)===null&&A===r(f)&&(b?(R(M),M=-1):b=!0,U(T,W-N))):(A.sortIndex=F,t(p,A),x||S||(x=!0,B(j))),A},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(A){var V=w;return function(){var W=w;w=V;try{return A.apply(this,arguments)}finally{w=W}}}})(If)),If}var my;function RC(){return my||(my=1,Df.exports=EC()),Df.exports}/**
26
26
  * @license React
27
27
  * react-dom.production.min.js
28
28
  *
@@ -30,14 +30,14 @@ var uy=e=>{throw TypeError(e)};var Nf=(e,t,r)=>t.has(e)||uy("Cannot "+r);var I=(
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var gy;function _C(){if(gy)return cn;gy=1;var e=sh(),t=RC();function r(n){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+n,a=1;a<arguments.length;a++)o+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+n+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,i={};function l(n,o){u(n,o),u(n+"Capture",o)}function u(n,o){for(i[n]=o,n=0;n<o.length;n++)s.add(o[n])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,f=/^[: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]*$/,m={},g={};function w(n){return p.call(g,n)?!0:p.call(m,n)?!1:f.test(n)?g[n]=!0:(m[n]=!0,!1)}function S(n,o,a,c){if(a!==null&&a.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return c?!1:a!==null?!a.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function x(n,o,a,c){if(o===null||typeof o>"u"||S(n,o,a,c))return!0;if(c)return!1;if(a!==null)switch(a.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function b(n,o,a,c,h,v,_){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=c,this.attributeNamespace=h,this.mustUseProperty=a,this.propertyName=n,this.type=o,this.sanitizeURL=v,this.removeEmptyString=_}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){E[n]=new b(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var o=n[0];E[o]=new b(o,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){E[n]=new b(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){E[n]=new b(n,2,!1,n,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(n){E[n]=new b(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){E[n]=new b(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){E[n]=new b(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){E[n]=new b(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){E[n]=new b(n,5,!1,n.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function k(n){return n[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(n){var o=n.replace(R,k);E[o]=new b(o,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var o=n.replace(R,k);E[o]=new b(o,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var o=n.replace(R,k);E[o]=new b(o,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){E[n]=new b(n,1,!1,n.toLowerCase(),null,!1,!1)}),E.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){E[n]=new b(n,1,!1,n.toLowerCase(),null,!0,!0)});function P(n,o,a,c){var h=E.hasOwnProperty(o)?E[o]:null;(h!==null?h.type!==0:c||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(x(o,a,h,c)&&(a=null),c||h===null?w(o)&&(a===null?n.removeAttribute(o):n.setAttribute(o,""+a)):h.mustUseProperty?n[h.propertyName]=a===null?h.type===3?!1:"":a:(o=h.attributeName,c=h.attributeNamespace,a===null?n.removeAttribute(o):(h=h.type,a=h===3||h===4&&a===!0?"":""+a,c?n.setAttributeNS(c,o,a):n.setAttribute(o,a))))}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,j=Symbol.for("react.element"),O=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),q=Symbol.for("react.provider"),te=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),U=Symbol.for("react.offscreen"),A=Symbol.iterator;function V(n){return n===null||typeof n!="object"?null:(n=A&&n[A]||n["@@iterator"],typeof n=="function"?n:null)}var W=Object.assign,N;function F(n){if(N===void 0)try{throw Error()}catch(a){var o=a.stack.trim().match(/\n( *(at )?)/);N=o&&o[1]||""}return`
33
+ */var gy;function _C(){if(gy)return cn;gy=1;var e=sh(),t=RC();function r(n){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+n,a=1;a<arguments.length;a++)o+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+n+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,i={};function l(n,o){u(n,o),u(n+"Capture",o)}function u(n,o){for(i[n]=o,n=0;n<o.length;n++)s.add(o[n])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,f=/^[: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]*$/,m={},g={};function w(n){return p.call(g,n)?!0:p.call(m,n)?!1:f.test(n)?g[n]=!0:(m[n]=!0,!1)}function S(n,o,a,c){if(a!==null&&a.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return c?!1:a!==null?!a.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function x(n,o,a,c){if(o===null||typeof o>"u"||S(n,o,a,c))return!0;if(c)return!1;if(a!==null)switch(a.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function b(n,o,a,c,h,v,_){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=c,this.attributeNamespace=h,this.mustUseProperty=a,this.propertyName=n,this.type=o,this.sanitizeURL=v,this.removeEmptyString=_}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){E[n]=new b(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var o=n[0];E[o]=new b(o,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){E[n]=new b(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){E[n]=new b(n,2,!1,n,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(n){E[n]=new b(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){E[n]=new b(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){E[n]=new b(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){E[n]=new b(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){E[n]=new b(n,5,!1,n.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function P(n){return n[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(n){var o=n.replace(R,P);E[o]=new b(o,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var o=n.replace(R,P);E[o]=new b(o,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var o=n.replace(R,P);E[o]=new b(o,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){E[n]=new b(n,1,!1,n.toLowerCase(),null,!1,!1)}),E.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){E[n]=new b(n,1,!1,n.toLowerCase(),null,!0,!0)});function k(n,o,a,c){var h=E.hasOwnProperty(o)?E[o]:null;(h!==null?h.type!==0:c||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(x(o,a,h,c)&&(a=null),c||h===null?w(o)&&(a===null?n.removeAttribute(o):n.setAttribute(o,""+a)):h.mustUseProperty?n[h.propertyName]=a===null?h.type===3?!1:"":a:(o=h.attributeName,c=h.attributeNamespace,a===null?n.removeAttribute(o):(h=h.type,a=h===3||h===4&&a===!0?"":""+a,c?n.setAttributeNS(c,o,a):n.setAttribute(o,a))))}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,j=Symbol.for("react.element"),O=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),q=Symbol.for("react.provider"),te=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),U=Symbol.for("react.offscreen"),A=Symbol.iterator;function V(n){return n===null||typeof n!="object"?null:(n=A&&n[A]||n["@@iterator"],typeof n=="function"?n:null)}var W=Object.assign,N;function F(n){if(N===void 0)try{throw Error()}catch(a){var o=a.stack.trim().match(/\n( *(at )?)/);N=o&&o[1]||""}return`
34
34
  `+N+n}var le=!1;function ye(n,o){if(!n||le)return"";le=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(Y){var c=Y}Reflect.construct(n,[],o)}else{try{o.call()}catch(Y){c=Y}n.call(o.prototype)}else{try{throw Error()}catch(Y){c=Y}n()}}catch(Y){if(Y&&c&&typeof Y.stack=="string"){for(var h=Y.stack.split(`
35
35
  `),v=c.stack.split(`
36
36
  `),_=h.length-1,D=v.length-1;1<=_&&0<=D&&h[_]!==v[D];)D--;for(;1<=_&&0<=D;_--,D--)if(h[_]!==v[D]){if(_!==1||D!==1)do if(_--,D--,0>D||h[_]!==v[D]){var $=`
37
- `+h[_].replace(" at new "," at ");return n.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",n.displayName)),$}while(1<=_&&0<=D);break}}}finally{le=!1,Error.prepareStackTrace=a}return(n=n?n.displayName||n.name:"")?F(n):""}function X(n){switch(n.tag){case 5:return F(n.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return n=ye(n.type,!1),n;case 11:return n=ye(n.type.render,!1),n;case 1:return n=ye(n.type,!0),n;default:return""}}function re(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case L:return"Fragment";case O:return"Portal";case Q:return"Profiler";case M:return"StrictMode";case ne:return"Suspense";case G:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case te:return(n.displayName||"Context")+".Consumer";case q:return(n._context.displayName||"Context")+".Provider";case ee:var o=n.render;return n=n.displayName,n||(n=o.displayName||o.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case Z:return o=n.displayName||null,o!==null?o:re(n.type)||"Memo";case B:o=n._payload,n=n._init;try{return re(n(o))}catch{}}return null}function ve(n){var o=n.type;switch(n.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=o.render,n=n.displayName||n.name||"",o.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return re(o);case 8:return o===M?"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 o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function fe(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function we(n){var o=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function je(n){var o=we(n)?"checked":"value",a=Object.getOwnPropertyDescriptor(n.constructor.prototype,o),c=""+n[o];if(!n.hasOwnProperty(o)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var h=a.get,v=a.set;return Object.defineProperty(n,o,{configurable:!0,get:function(){return h.call(this)},set:function(_){c=""+_,v.call(this,_)}}),Object.defineProperty(n,o,{enumerable:a.enumerable}),{getValue:function(){return c},setValue:function(_){c=""+_},stopTracking:function(){n._valueTracker=null,delete n[o]}}}}function Ue(n){n._valueTracker||(n._valueTracker=je(n))}function Ze(n){if(!n)return!1;var o=n._valueTracker;if(!o)return!0;var a=o.getValue(),c="";return n&&(c=we(n)?n.checked?"true":"false":n.value),n=c,n!==a?(o.setValue(n),!0):!1}function et(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function ft(n,o){var a=o.checked;return W({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??n._wrapperState.initialChecked})}function He(n,o){var a=o.defaultValue==null?"":o.defaultValue,c=o.checked!=null?o.checked:o.defaultChecked;a=fe(o.value!=null?o.value:a),n._wrapperState={initialChecked:c,initialValue:a,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Rt(n,o){o=o.checked,o!=null&&P(n,"checked",o,!1)}function ue(n,o){Rt(n,o);var a=fe(o.value),c=o.type;if(a!=null)c==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+a):n.value!==""+a&&(n.value=""+a);else if(c==="submit"||c==="reset"){n.removeAttribute("value");return}o.hasOwnProperty("value")?Ce(n,o.type,a):o.hasOwnProperty("defaultValue")&&Ce(n,o.type,fe(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(n.defaultChecked=!!o.defaultChecked)}function pe(n,o,a){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var c=o.type;if(!(c!=="submit"&&c!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+n._wrapperState.initialValue,a||o===n.value||(n.value=o),n.defaultValue=o}a=n.name,a!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,a!==""&&(n.name=a)}function Ce(n,o,a){(o!=="number"||et(n.ownerDocument)!==n)&&(a==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+a&&(n.defaultValue=""+a))}var ke=Array.isArray;function Me(n,o,a,c){if(n=n.options,o){o={};for(var h=0;h<a.length;h++)o["$"+a[h]]=!0;for(a=0;a<n.length;a++)h=o.hasOwnProperty("$"+n[a].value),n[a].selected!==h&&(n[a].selected=h),h&&c&&(n[a].defaultSelected=!0)}else{for(a=""+fe(a),o=null,h=0;h<n.length;h++){if(n[h].value===a){n[h].selected=!0,c&&(n[h].defaultSelected=!0);return}o!==null||n[h].disabled||(o=n[h])}o!==null&&(o.selected=!0)}}function Fe(n,o){if(o.dangerouslySetInnerHTML!=null)throw Error(r(91));return W({},o,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function ze(n,o){var a=o.value;if(a==null){if(a=o.children,o=o.defaultValue,a!=null){if(o!=null)throw Error(r(92));if(ke(a)){if(1<a.length)throw Error(r(93));a=a[0]}o=a}o==null&&(o=""),a=o}n._wrapperState={initialValue:fe(a)}}function ce(n,o){var a=fe(o.value),c=fe(o.defaultValue);a!=null&&(a=""+a,a!==n.value&&(n.value=a),o.defaultValue==null&&n.defaultValue!==a&&(n.defaultValue=a)),c!=null&&(n.defaultValue=""+c)}function oe(n){var o=n.textContent;o===n._wrapperState.initialValue&&o!==""&&o!==null&&(n.value=o)}function Se(n){switch(n){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 Je(n,o){return n==null||n==="http://www.w3.org/1999/xhtml"?Se(o):n==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var Ne,Be=(function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,a,c,h){MSApp.execUnsafeLocalFunction(function(){return n(o,a,c,h)})}:n})(function(n,o){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=o;else{for(Ne=Ne||document.createElement("div"),Ne.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=Ne.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;o.firstChild;)n.appendChild(o.firstChild)}});function Ge(n,o){if(o){var a=n.firstChild;if(a&&a===n.lastChild&&a.nodeType===3){a.nodeValue=o;return}}n.textContent=o}var qe={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},Er=["Webkit","ms","Moz","O"];Object.keys(qe).forEach(function(n){Er.forEach(function(o){o=o+n.charAt(0).toUpperCase()+n.substring(1),qe[o]=qe[n]})});function Rr(n,o,a){return o==null||typeof o=="boolean"||o===""?"":a||typeof o!="number"||o===0||qe.hasOwnProperty(n)&&qe[n]?(""+o).trim():o+"px"}function _r(n,o){n=n.style;for(var a in o)if(o.hasOwnProperty(a)){var c=a.indexOf("--")===0,h=Rr(a,o[a],c);a==="float"&&(a="cssFloat"),c?n.setProperty(a,h):n[a]=h}}var st=W({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 Lt(n,o){if(o){if(st[n]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(r(137,n));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(r(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(r(61))}if(o.style!=null&&typeof o.style!="object")throw Error(r(62))}}function Pr(n,o){if(n.indexOf("-")===-1)return typeof o.is=="string";switch(n){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 Gi=null;function Ms(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Ho=null,sr=null,vn=null;function Ht(n){if(n=ya(n)){if(typeof Ho!="function")throw Error(r(280));var o=n.stateNode;o&&(o=Gl(o),Ho(n.stateNode,n.type,o))}}function xl(n){sr?vn?vn.push(n):vn=[n]:sr=n}function qc(){if(sr){var n=sr,o=vn;if(vn=sr=null,Ht(n),o)for(n=0;n<o.length;n++)Ht(o[n])}}function Cl(n,o){return n(o)}function El(){}var _t=!1;function to(n,o,a){if(_t)return n(o,a);_t=!0;try{return Cl(n,o,a)}finally{_t=!1,(sr!==null||vn!==null)&&(El(),qc())}}function ir(n,o){var a=n.stateNode;if(a===null)return null;var c=Gl(a);if(c===null)return null;a=c[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(n=n.type,c=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!c;break e;default:n=!1}if(n)return null;if(a&&typeof a!="function")throw Error(r(231,o,typeof a));return a}var Xi=!1;if(d)try{var ar={};Object.defineProperty(ar,"passive",{get:function(){Xi=!0}}),window.addEventListener("test",ar,ar),window.removeEventListener("test",ar,ar)}catch{Xi=!1}function Yi(n,o,a,c,h,v,_,D,$){var Y=Array.prototype.slice.call(arguments,3);try{o.apply(a,Y)}catch(ae){this.onError(ae)}}var no=!1,Wo=null,$s=!1,Ji=null,Rl={onError:function(n){no=!0,Wo=n}};function Kc(n,o,a,c,h,v,_,D,$){no=!1,Wo=null,Yi.apply(Rl,arguments)}function _l(n,o,a,c,h,v,_,D,$){if(Kc.apply(this,arguments),no){if(no){var Y=Wo;no=!1,Wo=null}else throw Error(r(198));$s||($s=!0,Ji=Y)}}function tt(n){var o=n,a=n;if(n.alternate)for(;o.return;)o=o.return;else{n=o;do o=n,(o.flags&4098)!==0&&(a=o.return),n=o.return;while(n)}return o.tag===3?a:null}function Ls(n){if(n.tag===13){var o=n.memoizedState;if(o===null&&(n=n.alternate,n!==null&&(o=n.memoizedState)),o!==null)return o.dehydrated}return null}function Zi(n){if(tt(n)!==n)throw Error(r(188))}function Pl(n){var o=n.alternate;if(!o){if(o=tt(n),o===null)throw Error(r(188));return o!==n?null:n}for(var a=n,c=o;;){var h=a.return;if(h===null)break;var v=h.alternate;if(v===null){if(c=h.return,c!==null){a=c;continue}break}if(h.child===v.child){for(v=h.child;v;){if(v===a)return Zi(h),n;if(v===c)return Zi(h),o;v=v.sibling}throw Error(r(188))}if(a.return!==c.return)a=h,c=v;else{for(var _=!1,D=h.child;D;){if(D===a){_=!0,a=h,c=v;break}if(D===c){_=!0,c=h,a=v;break}D=D.sibling}if(!_){for(D=v.child;D;){if(D===a){_=!0,a=v,c=h;break}if(D===c){_=!0,c=v,a=h;break}D=D.sibling}if(!_)throw Error(r(189))}}if(a.alternate!==c)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?n:o}function kl(n){return n=Pl(n),n!==null?Im(n):null}function Im(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var o=Im(n);if(o!==null)return o;n=n.sibling}return null}var Mm=t.unstable_scheduleCallback,$m=t.unstable_cancelCallback,Nx=t.unstable_shouldYield,jx=t.unstable_requestPaint,bt=t.unstable_now,Ox=t.unstable_getCurrentPriorityLevel,Gc=t.unstable_ImmediatePriority,Lm=t.unstable_UserBlockingPriority,Tl=t.unstable_NormalPriority,Ax=t.unstable_LowPriority,Fm=t.unstable_IdlePriority,Nl=null,lr=null;function Dx(n){if(lr&&typeof lr.onCommitFiberRoot=="function")try{lr.onCommitFiberRoot(Nl,n,void 0,(n.current.flags&128)===128)}catch{}}var Bn=Math.clz32?Math.clz32:$x,Ix=Math.log,Mx=Math.LN2;function $x(n){return n>>>=0,n===0?32:31-(Ix(n)/Mx|0)|0}var jl=64,Ol=4194304;function ea(n){switch(n&-n){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 n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Al(n,o){var a=n.pendingLanes;if(a===0)return 0;var c=0,h=n.suspendedLanes,v=n.pingedLanes,_=a&268435455;if(_!==0){var D=_&~h;D!==0?c=ea(D):(v&=_,v!==0&&(c=ea(v)))}else _=a&~h,_!==0?c=ea(_):v!==0&&(c=ea(v));if(c===0)return 0;if(o!==0&&o!==c&&(o&h)===0&&(h=c&-c,v=o&-o,h>=v||h===16&&(v&4194240)!==0))return o;if((c&4)!==0&&(c|=a&16),o=n.entangledLanes,o!==0)for(n=n.entanglements,o&=c;0<o;)a=31-Bn(o),h=1<<a,c|=n[a],o&=~h;return c}function Lx(n,o){switch(n){case 1:case 2:case 4:return o+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 o+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 Fx(n,o){for(var a=n.suspendedLanes,c=n.pingedLanes,h=n.expirationTimes,v=n.pendingLanes;0<v;){var _=31-Bn(v),D=1<<_,$=h[_];$===-1?((D&a)===0||(D&c)!==0)&&(h[_]=Lx(D,o)):$<=o&&(n.expiredLanes|=D),v&=~D}}function Xc(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function zm(){var n=jl;return jl<<=1,(jl&4194240)===0&&(jl=64),n}function Yc(n){for(var o=[],a=0;31>a;a++)o.push(n);return o}function ta(n,o,a){n.pendingLanes|=o,o!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,o=31-Bn(o),n[o]=a}function zx(n,o){var a=n.pendingLanes&~o;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=o,n.mutableReadLanes&=o,n.entangledLanes&=o,o=n.entanglements;var c=n.eventTimes;for(n=n.expirationTimes;0<a;){var h=31-Bn(a),v=1<<h;o[h]=0,c[h]=-1,n[h]=-1,a&=~v}}function Jc(n,o){var a=n.entangledLanes|=o;for(n=n.entanglements;a;){var c=31-Bn(a),h=1<<c;h&o|n[c]&o&&(n[c]|=o),a&=~h}}var it=0;function Vm(n){return n&=-n,1<n?4<n?(n&268435455)!==0?16:536870912:4:1}var Bm,Zc,Um,Hm,Wm,ed=!1,Dl=[],ro=null,oo=null,so=null,na=new Map,ra=new Map,io=[],Vx="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 Qm(n,o){switch(n){case"focusin":case"focusout":ro=null;break;case"dragenter":case"dragleave":oo=null;break;case"mouseover":case"mouseout":so=null;break;case"pointerover":case"pointerout":na.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":ra.delete(o.pointerId)}}function oa(n,o,a,c,h,v){return n===null||n.nativeEvent!==v?(n={blockedOn:o,domEventName:a,eventSystemFlags:c,nativeEvent:v,targetContainers:[h]},o!==null&&(o=ya(o),o!==null&&Zc(o)),n):(n.eventSystemFlags|=c,o=n.targetContainers,h!==null&&o.indexOf(h)===-1&&o.push(h),n)}function Bx(n,o,a,c,h){switch(o){case"focusin":return ro=oa(ro,n,o,a,c,h),!0;case"dragenter":return oo=oa(oo,n,o,a,c,h),!0;case"mouseover":return so=oa(so,n,o,a,c,h),!0;case"pointerover":var v=h.pointerId;return na.set(v,oa(na.get(v)||null,n,o,a,c,h)),!0;case"gotpointercapture":return v=h.pointerId,ra.set(v,oa(ra.get(v)||null,n,o,a,c,h)),!0}return!1}function qm(n){var o=Qo(n.target);if(o!==null){var a=tt(o);if(a!==null){if(o=a.tag,o===13){if(o=Ls(a),o!==null){n.blockedOn=o,Wm(n.priority,function(){Um(a)});return}}else if(o===3&&a.stateNode.current.memoizedState.isDehydrated){n.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Il(n){if(n.blockedOn!==null)return!1;for(var o=n.targetContainers;0<o.length;){var a=nd(n.domEventName,n.eventSystemFlags,o[0],n.nativeEvent);if(a===null){a=n.nativeEvent;var c=new a.constructor(a.type,a);Gi=c,a.target.dispatchEvent(c),Gi=null}else return o=ya(a),o!==null&&Zc(o),n.blockedOn=a,!1;o.shift()}return!0}function Km(n,o,a){Il(n)&&a.delete(o)}function Ux(){ed=!1,ro!==null&&Il(ro)&&(ro=null),oo!==null&&Il(oo)&&(oo=null),so!==null&&Il(so)&&(so=null),na.forEach(Km),ra.forEach(Km)}function sa(n,o){n.blockedOn===o&&(n.blockedOn=null,ed||(ed=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ux)))}function ia(n){function o(h){return sa(h,n)}if(0<Dl.length){sa(Dl[0],n);for(var a=1;a<Dl.length;a++){var c=Dl[a];c.blockedOn===n&&(c.blockedOn=null)}}for(ro!==null&&sa(ro,n),oo!==null&&sa(oo,n),so!==null&&sa(so,n),na.forEach(o),ra.forEach(o),a=0;a<io.length;a++)c=io[a],c.blockedOn===n&&(c.blockedOn=null);for(;0<io.length&&(a=io[0],a.blockedOn===null);)qm(a),a.blockedOn===null&&io.shift()}var Fs=T.ReactCurrentBatchConfig,Ml=!0;function Hx(n,o,a,c){var h=it,v=Fs.transition;Fs.transition=null;try{it=1,td(n,o,a,c)}finally{it=h,Fs.transition=v}}function Wx(n,o,a,c){var h=it,v=Fs.transition;Fs.transition=null;try{it=4,td(n,o,a,c)}finally{it=h,Fs.transition=v}}function td(n,o,a,c){if(Ml){var h=nd(n,o,a,c);if(h===null)bd(n,o,c,$l,a),Qm(n,c);else if(Bx(h,n,o,a,c))c.stopPropagation();else if(Qm(n,c),o&4&&-1<Vx.indexOf(n)){for(;h!==null;){var v=ya(h);if(v!==null&&Bm(v),v=nd(n,o,a,c),v===null&&bd(n,o,c,$l,a),v===h)break;h=v}h!==null&&c.stopPropagation()}else bd(n,o,c,null,a)}}var $l=null;function nd(n,o,a,c){if($l=null,n=Ms(c),n=Qo(n),n!==null)if(o=tt(n),o===null)n=null;else if(a=o.tag,a===13){if(n=Ls(o),n!==null)return n;n=null}else if(a===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null);return $l=n,null}function Gm(n){switch(n){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(Ox()){case Gc:return 1;case Lm:return 4;case Tl:case Ax:return 16;case Fm:return 536870912;default:return 16}default:return 16}}var ao=null,rd=null,Ll=null;function Xm(){if(Ll)return Ll;var n,o=rd,a=o.length,c,h="value"in ao?ao.value:ao.textContent,v=h.length;for(n=0;n<a&&o[n]===h[n];n++);var _=a-n;for(c=1;c<=_&&o[a-c]===h[v-c];c++);return Ll=h.slice(n,1<c?1-c:void 0)}function Fl(n){var o=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&o===13&&(n=13)):n=o,n===10&&(n=13),32<=n||n===13?n:0}function zl(){return!0}function Ym(){return!1}function yn(n){function o(a,c,h,v,_){this._reactName=a,this._targetInst=h,this.type=c,this.nativeEvent=v,this.target=_,this.currentTarget=null;for(var D in n)n.hasOwnProperty(D)&&(a=n[D],this[D]=a?a(v):v[D]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?zl:Ym,this.isPropagationStopped=Ym,this}return W(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=zl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=zl)},persist:function(){},isPersistent:zl}),o}var zs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},od=yn(zs),aa=W({},zs,{view:0,detail:0}),Qx=yn(aa),sd,id,la,Vl=W({},aa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ld,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==la&&(la&&n.type==="mousemove"?(sd=n.screenX-la.screenX,id=n.screenY-la.screenY):id=sd=0,la=n),sd)},movementY:function(n){return"movementY"in n?n.movementY:id}}),Jm=yn(Vl),qx=W({},Vl,{dataTransfer:0}),Kx=yn(qx),Gx=W({},aa,{relatedTarget:0}),ad=yn(Gx),Xx=W({},zs,{animationName:0,elapsedTime:0,pseudoElement:0}),Yx=yn(Xx),Jx=W({},zs,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),Zx=yn(Jx),e1=W({},zs,{data:0}),Zm=yn(e1),t1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},n1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},r1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function o1(n){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(n):(n=r1[n])?!!o[n]:!1}function ld(){return o1}var s1=W({},aa,{key:function(n){if(n.key){var o=t1[n.key]||n.key;if(o!=="Unidentified")return o}return n.type==="keypress"?(n=Fl(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?n1[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ld,charCode:function(n){return n.type==="keypress"?Fl(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Fl(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),i1=yn(s1),a1=W({},Vl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),eg=yn(a1),l1=W({},aa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ld}),u1=yn(l1),c1=W({},zs,{propertyName:0,elapsedTime:0,pseudoElement:0}),d1=yn(c1),f1=W({},Vl,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),p1=yn(f1),h1=[9,13,27,32],ud=d&&"CompositionEvent"in window,ua=null;d&&"documentMode"in document&&(ua=document.documentMode);var m1=d&&"TextEvent"in window&&!ua,tg=d&&(!ud||ua&&8<ua&&11>=ua),ng=" ",rg=!1;function og(n,o){switch(n){case"keyup":return h1.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sg(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Vs=!1;function g1(n,o){switch(n){case"compositionend":return sg(o);case"keypress":return o.which!==32?null:(rg=!0,ng);case"textInput":return n=o.data,n===ng&&rg?null:n;default:return null}}function v1(n,o){if(Vs)return n==="compositionend"||!ud&&og(n,o)?(n=Xm(),Ll=rd=ao=null,Vs=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return tg&&o.locale!=="ko"?null:o.data;default:return null}}var y1={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 ig(n){var o=n&&n.nodeName&&n.nodeName.toLowerCase();return o==="input"?!!y1[n.type]:o==="textarea"}function ag(n,o,a,c){xl(c),o=Ql(o,"onChange"),0<o.length&&(a=new od("onChange","change",null,a,c),n.push({event:a,listeners:o}))}var ca=null,da=null;function b1(n){Rg(n,0)}function Bl(n){var o=Qs(n);if(Ze(o))return n}function w1(n,o){if(n==="change")return o}var lg=!1;if(d){var cd;if(d){var dd="oninput"in document;if(!dd){var ug=document.createElement("div");ug.setAttribute("oninput","return;"),dd=typeof ug.oninput=="function"}cd=dd}else cd=!1;lg=cd&&(!document.documentMode||9<document.documentMode)}function cg(){ca&&(ca.detachEvent("onpropertychange",dg),da=ca=null)}function dg(n){if(n.propertyName==="value"&&Bl(da)){var o=[];ag(o,da,n,Ms(n)),to(b1,o)}}function S1(n,o,a){n==="focusin"?(cg(),ca=o,da=a,ca.attachEvent("onpropertychange",dg)):n==="focusout"&&cg()}function x1(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Bl(da)}function C1(n,o){if(n==="click")return Bl(o)}function E1(n,o){if(n==="input"||n==="change")return Bl(o)}function R1(n,o){return n===o&&(n!==0||1/n===1/o)||n!==n&&o!==o}var Un=typeof Object.is=="function"?Object.is:R1;function fa(n,o){if(Un(n,o))return!0;if(typeof n!="object"||n===null||typeof o!="object"||o===null)return!1;var a=Object.keys(n),c=Object.keys(o);if(a.length!==c.length)return!1;for(c=0;c<a.length;c++){var h=a[c];if(!p.call(o,h)||!Un(n[h],o[h]))return!1}return!0}function fg(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function pg(n,o){var a=fg(n);n=0;for(var c;a;){if(a.nodeType===3){if(c=n+a.textContent.length,n<=o&&c>=o)return{node:a,offset:o-n};n=c}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=fg(a)}}function hg(n,o){return n&&o?n===o?!0:n&&n.nodeType===3?!1:o&&o.nodeType===3?hg(n,o.parentNode):"contains"in n?n.contains(o):n.compareDocumentPosition?!!(n.compareDocumentPosition(o)&16):!1:!1}function mg(){for(var n=window,o=et();o instanceof n.HTMLIFrameElement;){try{var a=typeof o.contentWindow.location.href=="string"}catch{a=!1}if(a)n=o.contentWindow;else break;o=et(n.document)}return o}function fd(n){var o=n&&n.nodeName&&n.nodeName.toLowerCase();return o&&(o==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||o==="textarea"||n.contentEditable==="true")}function _1(n){var o=mg(),a=n.focusedElem,c=n.selectionRange;if(o!==a&&a&&a.ownerDocument&&hg(a.ownerDocument.documentElement,a)){if(c!==null&&fd(a)){if(o=c.start,n=c.end,n===void 0&&(n=o),"selectionStart"in a)a.selectionStart=o,a.selectionEnd=Math.min(n,a.value.length);else if(n=(o=a.ownerDocument||document)&&o.defaultView||window,n.getSelection){n=n.getSelection();var h=a.textContent.length,v=Math.min(c.start,h);c=c.end===void 0?v:Math.min(c.end,h),!n.extend&&v>c&&(h=c,c=v,v=h),h=pg(a,v);var _=pg(a,c);h&&_&&(n.rangeCount!==1||n.anchorNode!==h.node||n.anchorOffset!==h.offset||n.focusNode!==_.node||n.focusOffset!==_.offset)&&(o=o.createRange(),o.setStart(h.node,h.offset),n.removeAllRanges(),v>c?(n.addRange(o),n.extend(_.node,_.offset)):(o.setEnd(_.node,_.offset),n.addRange(o)))}}for(o=[],n=a;n=n.parentNode;)n.nodeType===1&&o.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<o.length;a++)n=o[a],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var P1=d&&"documentMode"in document&&11>=document.documentMode,Bs=null,pd=null,pa=null,hd=!1;function gg(n,o,a){var c=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;hd||Bs==null||Bs!==et(c)||(c=Bs,"selectionStart"in c&&fd(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),pa&&fa(pa,c)||(pa=c,c=Ql(pd,"onSelect"),0<c.length&&(o=new od("onSelect","select",null,o,a),n.push({event:o,listeners:c}),o.target=Bs)))}function Ul(n,o){var a={};return a[n.toLowerCase()]=o.toLowerCase(),a["Webkit"+n]="webkit"+o,a["Moz"+n]="moz"+o,a}var Us={animationend:Ul("Animation","AnimationEnd"),animationiteration:Ul("Animation","AnimationIteration"),animationstart:Ul("Animation","AnimationStart"),transitionend:Ul("Transition","TransitionEnd")},md={},vg={};d&&(vg=document.createElement("div").style,"AnimationEvent"in window||(delete Us.animationend.animation,delete Us.animationiteration.animation,delete Us.animationstart.animation),"TransitionEvent"in window||delete Us.transitionend.transition);function Hl(n){if(md[n])return md[n];if(!Us[n])return n;var o=Us[n],a;for(a in o)if(o.hasOwnProperty(a)&&a in vg)return md[n]=o[a];return n}var yg=Hl("animationend"),bg=Hl("animationiteration"),wg=Hl("animationstart"),Sg=Hl("transitionend"),xg=new Map,Cg="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 lo(n,o){xg.set(n,o),l(o,[n])}for(var gd=0;gd<Cg.length;gd++){var vd=Cg[gd],k1=vd.toLowerCase(),T1=vd[0].toUpperCase()+vd.slice(1);lo(k1,"on"+T1)}lo(yg,"onAnimationEnd"),lo(bg,"onAnimationIteration"),lo(wg,"onAnimationStart"),lo("dblclick","onDoubleClick"),lo("focusin","onFocus"),lo("focusout","onBlur"),lo(Sg,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ha="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(" "),N1=new Set("cancel close invalid load scroll toggle".split(" ").concat(ha));function Eg(n,o,a){var c=n.type||"unknown-event";n.currentTarget=a,_l(c,o,void 0,n),n.currentTarget=null}function Rg(n,o){o=(o&4)!==0;for(var a=0;a<n.length;a++){var c=n[a],h=c.event;c=c.listeners;e:{var v=void 0;if(o)for(var _=c.length-1;0<=_;_--){var D=c[_],$=D.instance,Y=D.currentTarget;if(D=D.listener,$!==v&&h.isPropagationStopped())break e;Eg(h,D,Y),v=$}else for(_=0;_<c.length;_++){if(D=c[_],$=D.instance,Y=D.currentTarget,D=D.listener,$!==v&&h.isPropagationStopped())break e;Eg(h,D,Y),v=$}}}if($s)throw n=Ji,$s=!1,Ji=null,n}function ut(n,o){var a=o[Rd];a===void 0&&(a=o[Rd]=new Set);var c=n+"__bubble";a.has(c)||(_g(o,n,2,!1),a.add(c))}function yd(n,o,a){var c=0;o&&(c|=4),_g(a,n,c,o)}var Wl="_reactListening"+Math.random().toString(36).slice(2);function ma(n){if(!n[Wl]){n[Wl]=!0,s.forEach(function(a){a!=="selectionchange"&&(N1.has(a)||yd(a,!1,n),yd(a,!0,n))});var o=n.nodeType===9?n:n.ownerDocument;o===null||o[Wl]||(o[Wl]=!0,yd("selectionchange",!1,o))}}function _g(n,o,a,c){switch(Gm(o)){case 1:var h=Hx;break;case 4:h=Wx;break;default:h=td}a=h.bind(null,o,a,n),h=void 0,!Xi||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(h=!0),c?h!==void 0?n.addEventListener(o,a,{capture:!0,passive:h}):n.addEventListener(o,a,!0):h!==void 0?n.addEventListener(o,a,{passive:h}):n.addEventListener(o,a,!1)}function bd(n,o,a,c,h){var v=c;if((o&1)===0&&(o&2)===0&&c!==null)e:for(;;){if(c===null)return;var _=c.tag;if(_===3||_===4){var D=c.stateNode.containerInfo;if(D===h||D.nodeType===8&&D.parentNode===h)break;if(_===4)for(_=c.return;_!==null;){var $=_.tag;if(($===3||$===4)&&($=_.stateNode.containerInfo,$===h||$.nodeType===8&&$.parentNode===h))return;_=_.return}for(;D!==null;){if(_=Qo(D),_===null)return;if($=_.tag,$===5||$===6){c=v=_;continue e}D=D.parentNode}}c=c.return}to(function(){var Y=v,ae=Ms(a),de=[];e:{var ie=xg.get(n);if(ie!==void 0){var xe=od,_e=n;switch(n){case"keypress":if(Fl(a)===0)break e;case"keydown":case"keyup":xe=i1;break;case"focusin":_e="focus",xe=ad;break;case"focusout":_e="blur",xe=ad;break;case"beforeblur":case"afterblur":xe=ad;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":xe=Jm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":xe=Kx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":xe=u1;break;case yg:case bg:case wg:xe=Yx;break;case Sg:xe=d1;break;case"scroll":xe=Qx;break;case"wheel":xe=p1;break;case"copy":case"cut":case"paste":xe=Zx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":xe=eg}var Pe=(o&4)!==0,wt=!Pe&&n==="scroll",H=Pe?ie!==null?ie+"Capture":null:ie;Pe=[];for(var z=Y,K;z!==null;){K=z;var ge=K.stateNode;if(K.tag===5&&ge!==null&&(K=ge,H!==null&&(ge=ir(z,H),ge!=null&&Pe.push(ga(z,ge,K)))),wt)break;z=z.return}0<Pe.length&&(ie=new xe(ie,_e,null,a,ae),de.push({event:ie,listeners:Pe}))}}if((o&7)===0){e:{if(ie=n==="mouseover"||n==="pointerover",xe=n==="mouseout"||n==="pointerout",ie&&a!==Gi&&(_e=a.relatedTarget||a.fromElement)&&(Qo(_e)||_e[kr]))break e;if((xe||ie)&&(ie=ae.window===ae?ae:(ie=ae.ownerDocument)?ie.defaultView||ie.parentWindow:window,xe?(_e=a.relatedTarget||a.toElement,xe=Y,_e=_e?Qo(_e):null,_e!==null&&(wt=tt(_e),_e!==wt||_e.tag!==5&&_e.tag!==6)&&(_e=null)):(xe=null,_e=Y),xe!==_e)){if(Pe=Jm,ge="onMouseLeave",H="onMouseEnter",z="mouse",(n==="pointerout"||n==="pointerover")&&(Pe=eg,ge="onPointerLeave",H="onPointerEnter",z="pointer"),wt=xe==null?ie:Qs(xe),K=_e==null?ie:Qs(_e),ie=new Pe(ge,z+"leave",xe,a,ae),ie.target=wt,ie.relatedTarget=K,ge=null,Qo(ae)===Y&&(Pe=new Pe(H,z+"enter",_e,a,ae),Pe.target=K,Pe.relatedTarget=wt,ge=Pe),wt=ge,xe&&_e)t:{for(Pe=xe,H=_e,z=0,K=Pe;K;K=Hs(K))z++;for(K=0,ge=H;ge;ge=Hs(ge))K++;for(;0<z-K;)Pe=Hs(Pe),z--;for(;0<K-z;)H=Hs(H),K--;for(;z--;){if(Pe===H||H!==null&&Pe===H.alternate)break t;Pe=Hs(Pe),H=Hs(H)}Pe=null}else Pe=null;xe!==null&&Pg(de,ie,xe,Pe,!1),_e!==null&&wt!==null&&Pg(de,wt,_e,Pe,!0)}}e:{if(ie=Y?Qs(Y):window,xe=ie.nodeName&&ie.nodeName.toLowerCase(),xe==="select"||xe==="input"&&ie.type==="file")var Te=w1;else if(ig(ie))if(lg)Te=E1;else{Te=x1;var Ae=S1}else(xe=ie.nodeName)&&xe.toLowerCase()==="input"&&(ie.type==="checkbox"||ie.type==="radio")&&(Te=C1);if(Te&&(Te=Te(n,Y))){ag(de,Te,a,ae);break e}Ae&&Ae(n,ie,Y),n==="focusout"&&(Ae=ie._wrapperState)&&Ae.controlled&&ie.type==="number"&&Ce(ie,"number",ie.value)}switch(Ae=Y?Qs(Y):window,n){case"focusin":(ig(Ae)||Ae.contentEditable==="true")&&(Bs=Ae,pd=Y,pa=null);break;case"focusout":pa=pd=Bs=null;break;case"mousedown":hd=!0;break;case"contextmenu":case"mouseup":case"dragend":hd=!1,gg(de,a,ae);break;case"selectionchange":if(P1)break;case"keydown":case"keyup":gg(de,a,ae)}var De;if(ud)e:{switch(n){case"compositionstart":var $e="onCompositionStart";break e;case"compositionend":$e="onCompositionEnd";break e;case"compositionupdate":$e="onCompositionUpdate";break e}$e=void 0}else Vs?og(n,a)&&($e="onCompositionEnd"):n==="keydown"&&a.keyCode===229&&($e="onCompositionStart");$e&&(tg&&a.locale!=="ko"&&(Vs||$e!=="onCompositionStart"?$e==="onCompositionEnd"&&Vs&&(De=Xm()):(ao=ae,rd="value"in ao?ao.value:ao.textContent,Vs=!0)),Ae=Ql(Y,$e),0<Ae.length&&($e=new Zm($e,n,null,a,ae),de.push({event:$e,listeners:Ae}),De?$e.data=De:(De=sg(a),De!==null&&($e.data=De)))),(De=m1?g1(n,a):v1(n,a))&&(Y=Ql(Y,"onBeforeInput"),0<Y.length&&(ae=new Zm("onBeforeInput","beforeinput",null,a,ae),de.push({event:ae,listeners:Y}),ae.data=De))}Rg(de,o)})}function ga(n,o,a){return{instance:n,listener:o,currentTarget:a}}function Ql(n,o){for(var a=o+"Capture",c=[];n!==null;){var h=n,v=h.stateNode;h.tag===5&&v!==null&&(h=v,v=ir(n,a),v!=null&&c.unshift(ga(n,v,h)),v=ir(n,o),v!=null&&c.push(ga(n,v,h))),n=n.return}return c}function Hs(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function Pg(n,o,a,c,h){for(var v=o._reactName,_=[];a!==null&&a!==c;){var D=a,$=D.alternate,Y=D.stateNode;if($!==null&&$===c)break;D.tag===5&&Y!==null&&(D=Y,h?($=ir(a,v),$!=null&&_.unshift(ga(a,$,D))):h||($=ir(a,v),$!=null&&_.push(ga(a,$,D)))),a=a.return}_.length!==0&&n.push({event:o,listeners:_})}var j1=/\r\n?/g,O1=/\u0000|\uFFFD/g;function kg(n){return(typeof n=="string"?n:""+n).replace(j1,`
38
- `).replace(O1,"")}function ql(n,o,a){if(o=kg(o),kg(n)!==o&&a)throw Error(r(425))}function Kl(){}var wd=null,Sd=null;function xd(n,o){return n==="textarea"||n==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Cd=typeof setTimeout=="function"?setTimeout:void 0,A1=typeof clearTimeout=="function"?clearTimeout:void 0,Tg=typeof Promise=="function"?Promise:void 0,D1=typeof queueMicrotask=="function"?queueMicrotask:typeof Tg<"u"?function(n){return Tg.resolve(null).then(n).catch(I1)}:Cd;function I1(n){setTimeout(function(){throw n})}function Ed(n,o){var a=o,c=0;do{var h=a.nextSibling;if(n.removeChild(a),h&&h.nodeType===8)if(a=h.data,a==="/$"){if(c===0){n.removeChild(h),ia(o);return}c--}else a!=="$"&&a!=="$?"&&a!=="$!"||c++;a=h}while(a);ia(o)}function uo(n){for(;n!=null;n=n.nextSibling){var o=n.nodeType;if(o===1||o===3)break;if(o===8){if(o=n.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return n}function Ng(n){n=n.previousSibling;for(var o=0;n;){if(n.nodeType===8){var a=n.data;if(a==="$"||a==="$!"||a==="$?"){if(o===0)return n;o--}else a==="/$"&&o++}n=n.previousSibling}return null}var Ws=Math.random().toString(36).slice(2),ur="__reactFiber$"+Ws,va="__reactProps$"+Ws,kr="__reactContainer$"+Ws,Rd="__reactEvents$"+Ws,M1="__reactListeners$"+Ws,$1="__reactHandles$"+Ws;function Qo(n){var o=n[ur];if(o)return o;for(var a=n.parentNode;a;){if(o=a[kr]||a[ur]){if(a=o.alternate,o.child!==null||a!==null&&a.child!==null)for(n=Ng(n);n!==null;){if(a=n[ur])return a;n=Ng(n)}return o}n=a,a=n.parentNode}return null}function ya(n){return n=n[ur]||n[kr],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function Qs(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(r(33))}function Gl(n){return n[va]||null}var _d=[],qs=-1;function co(n){return{current:n}}function ct(n){0>qs||(n.current=_d[qs],_d[qs]=null,qs--)}function lt(n,o){qs++,_d[qs]=n.current,n.current=o}var fo={},Wt=co(fo),on=co(!1),qo=fo;function Ks(n,o){var a=n.type.contextTypes;if(!a)return fo;var c=n.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===o)return c.__reactInternalMemoizedMaskedChildContext;var h={},v;for(v in a)h[v]=o[v];return c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=o,n.__reactInternalMemoizedMaskedChildContext=h),h}function sn(n){return n=n.childContextTypes,n!=null}function Xl(){ct(on),ct(Wt)}function jg(n,o,a){if(Wt.current!==fo)throw Error(r(168));lt(Wt,o),lt(on,a)}function Og(n,o,a){var c=n.stateNode;if(o=o.childContextTypes,typeof c.getChildContext!="function")return a;c=c.getChildContext();for(var h in c)if(!(h in o))throw Error(r(108,ve(n)||"Unknown",h));return W({},a,c)}function Yl(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||fo,qo=Wt.current,lt(Wt,n),lt(on,on.current),!0}function Ag(n,o,a){var c=n.stateNode;if(!c)throw Error(r(169));a?(n=Og(n,o,qo),c.__reactInternalMemoizedMergedChildContext=n,ct(on),ct(Wt),lt(Wt,n)):ct(on),lt(on,a)}var Tr=null,Jl=!1,Pd=!1;function Dg(n){Tr===null?Tr=[n]:Tr.push(n)}function L1(n){Jl=!0,Dg(n)}function po(){if(!Pd&&Tr!==null){Pd=!0;var n=0,o=it;try{var a=Tr;for(it=1;n<a.length;n++){var c=a[n];do c=c(!0);while(c!==null)}Tr=null,Jl=!1}catch(h){throw Tr!==null&&(Tr=Tr.slice(n+1)),Mm(Gc,po),h}finally{it=o,Pd=!1}}return null}var Gs=[],Xs=0,Zl=null,eu=0,_n=[],Pn=0,Ko=null,Nr=1,jr="";function Go(n,o){Gs[Xs++]=eu,Gs[Xs++]=Zl,Zl=n,eu=o}function Ig(n,o,a){_n[Pn++]=Nr,_n[Pn++]=jr,_n[Pn++]=Ko,Ko=n;var c=Nr;n=jr;var h=32-Bn(c)-1;c&=~(1<<h),a+=1;var v=32-Bn(o)+h;if(30<v){var _=h-h%5;v=(c&(1<<_)-1).toString(32),c>>=_,h-=_,Nr=1<<32-Bn(o)+h|a<<h|c,jr=v+n}else Nr=1<<v|a<<h|c,jr=n}function kd(n){n.return!==null&&(Go(n,1),Ig(n,1,0))}function Td(n){for(;n===Zl;)Zl=Gs[--Xs],Gs[Xs]=null,eu=Gs[--Xs],Gs[Xs]=null;for(;n===Ko;)Ko=_n[--Pn],_n[Pn]=null,jr=_n[--Pn],_n[Pn]=null,Nr=_n[--Pn],_n[Pn]=null}var bn=null,wn=null,pt=!1,Hn=null;function Mg(n,o){var a=jn(5,null,null,0);a.elementType="DELETED",a.stateNode=o,a.return=n,o=n.deletions,o===null?(n.deletions=[a],n.flags|=16):o.push(a)}function $g(n,o){switch(n.tag){case 5:var a=n.type;return o=o.nodeType!==1||a.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(n.stateNode=o,bn=n,wn=uo(o.firstChild),!0):!1;case 6:return o=n.pendingProps===""||o.nodeType!==3?null:o,o!==null?(n.stateNode=o,bn=n,wn=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(a=Ko!==null?{id:Nr,overflow:jr}:null,n.memoizedState={dehydrated:o,treeContext:a,retryLane:1073741824},a=jn(18,null,null,0),a.stateNode=o,a.return=n,n.child=a,bn=n,wn=null,!0):!1;default:return!1}}function Nd(n){return(n.mode&1)!==0&&(n.flags&128)===0}function jd(n){if(pt){var o=wn;if(o){var a=o;if(!$g(n,o)){if(Nd(n))throw Error(r(418));o=uo(a.nextSibling);var c=bn;o&&$g(n,o)?Mg(c,a):(n.flags=n.flags&-4097|2,pt=!1,bn=n)}}else{if(Nd(n))throw Error(r(418));n.flags=n.flags&-4097|2,pt=!1,bn=n}}}function Lg(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;bn=n}function tu(n){if(n!==bn)return!1;if(!pt)return Lg(n),pt=!0,!1;var o;if((o=n.tag!==3)&&!(o=n.tag!==5)&&(o=n.type,o=o!=="head"&&o!=="body"&&!xd(n.type,n.memoizedProps)),o&&(o=wn)){if(Nd(n))throw Fg(),Error(r(418));for(;o;)Mg(n,o),o=uo(o.nextSibling)}if(Lg(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));e:{for(n=n.nextSibling,o=0;n;){if(n.nodeType===8){var a=n.data;if(a==="/$"){if(o===0){wn=uo(n.nextSibling);break e}o--}else a!=="$"&&a!=="$!"&&a!=="$?"||o++}n=n.nextSibling}wn=null}}else wn=bn?uo(n.stateNode.nextSibling):null;return!0}function Fg(){for(var n=wn;n;)n=uo(n.nextSibling)}function Ys(){wn=bn=null,pt=!1}function Od(n){Hn===null?Hn=[n]:Hn.push(n)}var F1=T.ReactCurrentBatchConfig;function ba(n,o,a){if(n=a.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(r(309));var c=a.stateNode}if(!c)throw Error(r(147,n));var h=c,v=""+n;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===v?o.ref:(o=function(_){var D=h.refs;_===null?delete D[v]:D[v]=_},o._stringRef=v,o)}if(typeof n!="string")throw Error(r(284));if(!a._owner)throw Error(r(290,n))}return n}function nu(n,o){throw n=Object.prototype.toString.call(o),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":n))}function zg(n){var o=n._init;return o(n._payload)}function Vg(n){function o(H,z){if(n){var K=H.deletions;K===null?(H.deletions=[z],H.flags|=16):K.push(z)}}function a(H,z){if(!n)return null;for(;z!==null;)o(H,z),z=z.sibling;return null}function c(H,z){for(H=new Map;z!==null;)z.key!==null?H.set(z.key,z):H.set(z.index,z),z=z.sibling;return H}function h(H,z){return H=So(H,z),H.index=0,H.sibling=null,H}function v(H,z,K){return H.index=K,n?(K=H.alternate,K!==null?(K=K.index,K<z?(H.flags|=2,z):K):(H.flags|=2,z)):(H.flags|=1048576,z)}function _(H){return n&&H.alternate===null&&(H.flags|=2),H}function D(H,z,K,ge){return z===null||z.tag!==6?(z=Ef(K,H.mode,ge),z.return=H,z):(z=h(z,K),z.return=H,z)}function $(H,z,K,ge){var Te=K.type;return Te===L?ae(H,z,K.props.children,ge,K.key):z!==null&&(z.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===B&&zg(Te)===z.type)?(ge=h(z,K.props),ge.ref=ba(H,z,K),ge.return=H,ge):(ge=_u(K.type,K.key,K.props,null,H.mode,ge),ge.ref=ba(H,z,K),ge.return=H,ge)}function Y(H,z,K,ge){return z===null||z.tag!==4||z.stateNode.containerInfo!==K.containerInfo||z.stateNode.implementation!==K.implementation?(z=Rf(K,H.mode,ge),z.return=H,z):(z=h(z,K.children||[]),z.return=H,z)}function ae(H,z,K,ge,Te){return z===null||z.tag!==7?(z=rs(K,H.mode,ge,Te),z.return=H,z):(z=h(z,K),z.return=H,z)}function de(H,z,K){if(typeof z=="string"&&z!==""||typeof z=="number")return z=Ef(""+z,H.mode,K),z.return=H,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case j:return K=_u(z.type,z.key,z.props,null,H.mode,K),K.ref=ba(H,null,z),K.return=H,K;case O:return z=Rf(z,H.mode,K),z.return=H,z;case B:var ge=z._init;return de(H,ge(z._payload),K)}if(ke(z)||V(z))return z=rs(z,H.mode,K,null),z.return=H,z;nu(H,z)}return null}function ie(H,z,K,ge){var Te=z!==null?z.key:null;if(typeof K=="string"&&K!==""||typeof K=="number")return Te!==null?null:D(H,z,""+K,ge);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case j:return K.key===Te?$(H,z,K,ge):null;case O:return K.key===Te?Y(H,z,K,ge):null;case B:return Te=K._init,ie(H,z,Te(K._payload),ge)}if(ke(K)||V(K))return Te!==null?null:ae(H,z,K,ge,null);nu(H,K)}return null}function xe(H,z,K,ge,Te){if(typeof ge=="string"&&ge!==""||typeof ge=="number")return H=H.get(K)||null,D(z,H,""+ge,Te);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case j:return H=H.get(ge.key===null?K:ge.key)||null,$(z,H,ge,Te);case O:return H=H.get(ge.key===null?K:ge.key)||null,Y(z,H,ge,Te);case B:var Ae=ge._init;return xe(H,z,K,Ae(ge._payload),Te)}if(ke(ge)||V(ge))return H=H.get(K)||null,ae(z,H,ge,Te,null);nu(z,ge)}return null}function _e(H,z,K,ge){for(var Te=null,Ae=null,De=z,$e=z=0,At=null;De!==null&&$e<K.length;$e++){De.index>$e?(At=De,De=null):At=De.sibling;var rt=ie(H,De,K[$e],ge);if(rt===null){De===null&&(De=At);break}n&&De&&rt.alternate===null&&o(H,De),z=v(rt,z,$e),Ae===null?Te=rt:Ae.sibling=rt,Ae=rt,De=At}if($e===K.length)return a(H,De),pt&&Go(H,$e),Te;if(De===null){for(;$e<K.length;$e++)De=de(H,K[$e],ge),De!==null&&(z=v(De,z,$e),Ae===null?Te=De:Ae.sibling=De,Ae=De);return pt&&Go(H,$e),Te}for(De=c(H,De);$e<K.length;$e++)At=xe(De,H,$e,K[$e],ge),At!==null&&(n&&At.alternate!==null&&De.delete(At.key===null?$e:At.key),z=v(At,z,$e),Ae===null?Te=At:Ae.sibling=At,Ae=At);return n&&De.forEach(function(xo){return o(H,xo)}),pt&&Go(H,$e),Te}function Pe(H,z,K,ge){var Te=V(K);if(typeof Te!="function")throw Error(r(150));if(K=Te.call(K),K==null)throw Error(r(151));for(var Ae=Te=null,De=z,$e=z=0,At=null,rt=K.next();De!==null&&!rt.done;$e++,rt=K.next()){De.index>$e?(At=De,De=null):At=De.sibling;var xo=ie(H,De,rt.value,ge);if(xo===null){De===null&&(De=At);break}n&&De&&xo.alternate===null&&o(H,De),z=v(xo,z,$e),Ae===null?Te=xo:Ae.sibling=xo,Ae=xo,De=At}if(rt.done)return a(H,De),pt&&Go(H,$e),Te;if(De===null){for(;!rt.done;$e++,rt=K.next())rt=de(H,rt.value,ge),rt!==null&&(z=v(rt,z,$e),Ae===null?Te=rt:Ae.sibling=rt,Ae=rt);return pt&&Go(H,$e),Te}for(De=c(H,De);!rt.done;$e++,rt=K.next())rt=xe(De,H,$e,rt.value,ge),rt!==null&&(n&&rt.alternate!==null&&De.delete(rt.key===null?$e:rt.key),z=v(rt,z,$e),Ae===null?Te=rt:Ae.sibling=rt,Ae=rt);return n&&De.forEach(function(yC){return o(H,yC)}),pt&&Go(H,$e),Te}function wt(H,z,K,ge){if(typeof K=="object"&&K!==null&&K.type===L&&K.key===null&&(K=K.props.children),typeof K=="object"&&K!==null){switch(K.$$typeof){case j:e:{for(var Te=K.key,Ae=z;Ae!==null;){if(Ae.key===Te){if(Te=K.type,Te===L){if(Ae.tag===7){a(H,Ae.sibling),z=h(Ae,K.props.children),z.return=H,H=z;break e}}else if(Ae.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===B&&zg(Te)===Ae.type){a(H,Ae.sibling),z=h(Ae,K.props),z.ref=ba(H,Ae,K),z.return=H,H=z;break e}a(H,Ae);break}else o(H,Ae);Ae=Ae.sibling}K.type===L?(z=rs(K.props.children,H.mode,ge,K.key),z.return=H,H=z):(ge=_u(K.type,K.key,K.props,null,H.mode,ge),ge.ref=ba(H,z,K),ge.return=H,H=ge)}return _(H);case O:e:{for(Ae=K.key;z!==null;){if(z.key===Ae)if(z.tag===4&&z.stateNode.containerInfo===K.containerInfo&&z.stateNode.implementation===K.implementation){a(H,z.sibling),z=h(z,K.children||[]),z.return=H,H=z;break e}else{a(H,z);break}else o(H,z);z=z.sibling}z=Rf(K,H.mode,ge),z.return=H,H=z}return _(H);case B:return Ae=K._init,wt(H,z,Ae(K._payload),ge)}if(ke(K))return _e(H,z,K,ge);if(V(K))return Pe(H,z,K,ge);nu(H,K)}return typeof K=="string"&&K!==""||typeof K=="number"?(K=""+K,z!==null&&z.tag===6?(a(H,z.sibling),z=h(z,K),z.return=H,H=z):(a(H,z),z=Ef(K,H.mode,ge),z.return=H,H=z),_(H)):a(H,z)}return wt}var Js=Vg(!0),Bg=Vg(!1),ru=co(null),ou=null,Zs=null,Ad=null;function Dd(){Ad=Zs=ou=null}function Id(n){var o=ru.current;ct(ru),n._currentValue=o}function Md(n,o,a){for(;n!==null;){var c=n.alternate;if((n.childLanes&o)!==o?(n.childLanes|=o,c!==null&&(c.childLanes|=o)):c!==null&&(c.childLanes&o)!==o&&(c.childLanes|=o),n===a)break;n=n.return}}function ei(n,o){ou=n,Ad=Zs=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&o)!==0&&(an=!0),n.firstContext=null)}function kn(n){var o=n._currentValue;if(Ad!==n)if(n={context:n,memoizedValue:o,next:null},Zs===null){if(ou===null)throw Error(r(308));Zs=n,ou.dependencies={lanes:0,firstContext:n}}else Zs=Zs.next=n;return o}var Xo=null;function $d(n){Xo===null?Xo=[n]:Xo.push(n)}function Ug(n,o,a,c){var h=o.interleaved;return h===null?(a.next=a,$d(o)):(a.next=h.next,h.next=a),o.interleaved=a,Or(n,c)}function Or(n,o){n.lanes|=o;var a=n.alternate;for(a!==null&&(a.lanes|=o),a=n,n=n.return;n!==null;)n.childLanes|=o,a=n.alternate,a!==null&&(a.childLanes|=o),a=n,n=n.return;return a.tag===3?a.stateNode:null}var ho=!1;function Ld(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Hg(n,o){n=n.updateQueue,o.updateQueue===n&&(o.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function Ar(n,o){return{eventTime:n,lane:o,tag:0,payload:null,callback:null,next:null}}function mo(n,o,a){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(nt&2)!==0){var h=c.pending;return h===null?o.next=o:(o.next=h.next,h.next=o),c.pending=o,Or(n,a)}return h=c.interleaved,h===null?(o.next=o,$d(c)):(o.next=h.next,h.next=o),c.interleaved=o,Or(n,a)}function su(n,o,a){if(o=o.updateQueue,o!==null&&(o=o.shared,(a&4194240)!==0)){var c=o.lanes;c&=n.pendingLanes,a|=c,o.lanes=a,Jc(n,a)}}function Wg(n,o){var a=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,a===c)){var h=null,v=null;if(a=a.firstBaseUpdate,a!==null){do{var _={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};v===null?h=v=_:v=v.next=_,a=a.next}while(a!==null);v===null?h=v=o:v=v.next=o}else h=v=o;a={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:v,shared:c.shared,effects:c.effects},n.updateQueue=a;return}n=a.lastBaseUpdate,n===null?a.firstBaseUpdate=o:n.next=o,a.lastBaseUpdate=o}function iu(n,o,a,c){var h=n.updateQueue;ho=!1;var v=h.firstBaseUpdate,_=h.lastBaseUpdate,D=h.shared.pending;if(D!==null){h.shared.pending=null;var $=D,Y=$.next;$.next=null,_===null?v=Y:_.next=Y,_=$;var ae=n.alternate;ae!==null&&(ae=ae.updateQueue,D=ae.lastBaseUpdate,D!==_&&(D===null?ae.firstBaseUpdate=Y:D.next=Y,ae.lastBaseUpdate=$))}if(v!==null){var de=h.baseState;_=0,ae=Y=$=null,D=v;do{var ie=D.lane,xe=D.eventTime;if((c&ie)===ie){ae!==null&&(ae=ae.next={eventTime:xe,lane:0,tag:D.tag,payload:D.payload,callback:D.callback,next:null});e:{var _e=n,Pe=D;switch(ie=o,xe=a,Pe.tag){case 1:if(_e=Pe.payload,typeof _e=="function"){de=_e.call(xe,de,ie);break e}de=_e;break e;case 3:_e.flags=_e.flags&-65537|128;case 0:if(_e=Pe.payload,ie=typeof _e=="function"?_e.call(xe,de,ie):_e,ie==null)break e;de=W({},de,ie);break e;case 2:ho=!0}}D.callback!==null&&D.lane!==0&&(n.flags|=64,ie=h.effects,ie===null?h.effects=[D]:ie.push(D))}else xe={eventTime:xe,lane:ie,tag:D.tag,payload:D.payload,callback:D.callback,next:null},ae===null?(Y=ae=xe,$=de):ae=ae.next=xe,_|=ie;if(D=D.next,D===null){if(D=h.shared.pending,D===null)break;ie=D,D=ie.next,ie.next=null,h.lastBaseUpdate=ie,h.shared.pending=null}}while(!0);if(ae===null&&($=de),h.baseState=$,h.firstBaseUpdate=Y,h.lastBaseUpdate=ae,o=h.shared.interleaved,o!==null){h=o;do _|=h.lane,h=h.next;while(h!==o)}else v===null&&(h.shared.lanes=0);Zo|=_,n.lanes=_,n.memoizedState=de}}function Qg(n,o,a){if(n=o.effects,o.effects=null,n!==null)for(o=0;o<n.length;o++){var c=n[o],h=c.callback;if(h!==null){if(c.callback=null,c=a,typeof h!="function")throw Error(r(191,h));h.call(c)}}}var wa={},cr=co(wa),Sa=co(wa),xa=co(wa);function Yo(n){if(n===wa)throw Error(r(174));return n}function Fd(n,o){switch(lt(xa,o),lt(Sa,n),lt(cr,wa),n=o.nodeType,n){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Je(null,"");break;default:n=n===8?o.parentNode:o,o=n.namespaceURI||null,n=n.tagName,o=Je(o,n)}ct(cr),lt(cr,o)}function ti(){ct(cr),ct(Sa),ct(xa)}function qg(n){Yo(xa.current);var o=Yo(cr.current),a=Je(o,n.type);o!==a&&(lt(Sa,n),lt(cr,a))}function zd(n){Sa.current===n&&(ct(cr),ct(Sa))}var ht=co(0);function au(n){for(var o=n;o!==null;){if(o.tag===13){var a=o.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Vd=[];function Bd(){for(var n=0;n<Vd.length;n++)Vd[n]._workInProgressVersionPrimary=null;Vd.length=0}var lu=T.ReactCurrentDispatcher,Ud=T.ReactCurrentBatchConfig,Jo=0,mt=null,Pt=null,jt=null,uu=!1,Ca=!1,Ea=0,z1=0;function Qt(){throw Error(r(321))}function Hd(n,o){if(o===null)return!1;for(var a=0;a<o.length&&a<n.length;a++)if(!Un(n[a],o[a]))return!1;return!0}function Wd(n,o,a,c,h,v){if(Jo=v,mt=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,lu.current=n===null||n.memoizedState===null?H1:W1,n=a(c,h),Ca){v=0;do{if(Ca=!1,Ea=0,25<=v)throw Error(r(301));v+=1,jt=Pt=null,o.updateQueue=null,lu.current=Q1,n=a(c,h)}while(Ca)}if(lu.current=fu,o=Pt!==null&&Pt.next!==null,Jo=0,jt=Pt=mt=null,uu=!1,o)throw Error(r(300));return n}function Qd(){var n=Ea!==0;return Ea=0,n}function dr(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jt===null?mt.memoizedState=jt=n:jt=jt.next=n,jt}function Tn(){if(Pt===null){var n=mt.alternate;n=n!==null?n.memoizedState:null}else n=Pt.next;var o=jt===null?mt.memoizedState:jt.next;if(o!==null)jt=o,Pt=n;else{if(n===null)throw Error(r(310));Pt=n,n={memoizedState:Pt.memoizedState,baseState:Pt.baseState,baseQueue:Pt.baseQueue,queue:Pt.queue,next:null},jt===null?mt.memoizedState=jt=n:jt=jt.next=n}return jt}function Ra(n,o){return typeof o=="function"?o(n):o}function qd(n){var o=Tn(),a=o.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var c=Pt,h=c.baseQueue,v=a.pending;if(v!==null){if(h!==null){var _=h.next;h.next=v.next,v.next=_}c.baseQueue=h=v,a.pending=null}if(h!==null){v=h.next,c=c.baseState;var D=_=null,$=null,Y=v;do{var ae=Y.lane;if((Jo&ae)===ae)$!==null&&($=$.next={lane:0,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),c=Y.hasEagerState?Y.eagerState:n(c,Y.action);else{var de={lane:ae,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null};$===null?(D=$=de,_=c):$=$.next=de,mt.lanes|=ae,Zo|=ae}Y=Y.next}while(Y!==null&&Y!==v);$===null?_=c:$.next=D,Un(c,o.memoizedState)||(an=!0),o.memoizedState=c,o.baseState=_,o.baseQueue=$,a.lastRenderedState=c}if(n=a.interleaved,n!==null){h=n;do v=h.lane,mt.lanes|=v,Zo|=v,h=h.next;while(h!==n)}else h===null&&(a.lanes=0);return[o.memoizedState,a.dispatch]}function Kd(n){var o=Tn(),a=o.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var c=a.dispatch,h=a.pending,v=o.memoizedState;if(h!==null){a.pending=null;var _=h=h.next;do v=n(v,_.action),_=_.next;while(_!==h);Un(v,o.memoizedState)||(an=!0),o.memoizedState=v,o.baseQueue===null&&(o.baseState=v),a.lastRenderedState=v}return[v,c]}function Kg(){}function Gg(n,o){var a=mt,c=Tn(),h=o(),v=!Un(c.memoizedState,h);if(v&&(c.memoizedState=h,an=!0),c=c.queue,Gd(Jg.bind(null,a,c,n),[n]),c.getSnapshot!==o||v||jt!==null&&jt.memoizedState.tag&1){if(a.flags|=2048,_a(9,Yg.bind(null,a,c,h,o),void 0,null),Ot===null)throw Error(r(349));(Jo&30)!==0||Xg(a,o,h)}return h}function Xg(n,o,a){n.flags|=16384,n={getSnapshot:o,value:a},o=mt.updateQueue,o===null?(o={lastEffect:null,stores:null},mt.updateQueue=o,o.stores=[n]):(a=o.stores,a===null?o.stores=[n]:a.push(n))}function Yg(n,o,a,c){o.value=a,o.getSnapshot=c,Zg(o)&&ev(n)}function Jg(n,o,a){return a(function(){Zg(o)&&ev(n)})}function Zg(n){var o=n.getSnapshot;n=n.value;try{var a=o();return!Un(n,a)}catch{return!0}}function ev(n){var o=Or(n,1);o!==null&&Kn(o,n,1,-1)}function tv(n){var o=dr();return typeof n=="function"&&(n=n()),o.memoizedState=o.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:n},o.queue=n,n=n.dispatch=U1.bind(null,mt,n),[o.memoizedState,n]}function _a(n,o,a,c){return n={tag:n,create:o,destroy:a,deps:c,next:null},o=mt.updateQueue,o===null?(o={lastEffect:null,stores:null},mt.updateQueue=o,o.lastEffect=n.next=n):(a=o.lastEffect,a===null?o.lastEffect=n.next=n:(c=a.next,a.next=n,n.next=c,o.lastEffect=n)),n}function nv(){return Tn().memoizedState}function cu(n,o,a,c){var h=dr();mt.flags|=n,h.memoizedState=_a(1|o,a,void 0,c===void 0?null:c)}function du(n,o,a,c){var h=Tn();c=c===void 0?null:c;var v=void 0;if(Pt!==null){var _=Pt.memoizedState;if(v=_.destroy,c!==null&&Hd(c,_.deps)){h.memoizedState=_a(o,a,v,c);return}}mt.flags|=n,h.memoizedState=_a(1|o,a,v,c)}function rv(n,o){return cu(8390656,8,n,o)}function Gd(n,o){return du(2048,8,n,o)}function ov(n,o){return du(4,2,n,o)}function sv(n,o){return du(4,4,n,o)}function iv(n,o){if(typeof o=="function")return n=n(),o(n),function(){o(null)};if(o!=null)return n=n(),o.current=n,function(){o.current=null}}function av(n,o,a){return a=a!=null?a.concat([n]):null,du(4,4,iv.bind(null,o,n),a)}function Xd(){}function lv(n,o){var a=Tn();o=o===void 0?null:o;var c=a.memoizedState;return c!==null&&o!==null&&Hd(o,c[1])?c[0]:(a.memoizedState=[n,o],n)}function uv(n,o){var a=Tn();o=o===void 0?null:o;var c=a.memoizedState;return c!==null&&o!==null&&Hd(o,c[1])?c[0]:(n=n(),a.memoizedState=[n,o],n)}function cv(n,o,a){return(Jo&21)===0?(n.baseState&&(n.baseState=!1,an=!0),n.memoizedState=a):(Un(a,o)||(a=zm(),mt.lanes|=a,Zo|=a,n.baseState=!0),o)}function V1(n,o){var a=it;it=a!==0&&4>a?a:4,n(!0);var c=Ud.transition;Ud.transition={};try{n(!1),o()}finally{it=a,Ud.transition=c}}function dv(){return Tn().memoizedState}function B1(n,o,a){var c=bo(n);if(a={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null},fv(n))pv(o,a);else if(a=Ug(n,o,a,c),a!==null){var h=Zt();Kn(a,n,c,h),hv(a,o,c)}}function U1(n,o,a){var c=bo(n),h={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null};if(fv(n))pv(o,h);else{var v=n.alternate;if(n.lanes===0&&(v===null||v.lanes===0)&&(v=o.lastRenderedReducer,v!==null))try{var _=o.lastRenderedState,D=v(_,a);if(h.hasEagerState=!0,h.eagerState=D,Un(D,_)){var $=o.interleaved;$===null?(h.next=h,$d(o)):(h.next=$.next,$.next=h),o.interleaved=h;return}}catch{}finally{}a=Ug(n,o,h,c),a!==null&&(h=Zt(),Kn(a,n,c,h),hv(a,o,c))}}function fv(n){var o=n.alternate;return n===mt||o!==null&&o===mt}function pv(n,o){Ca=uu=!0;var a=n.pending;a===null?o.next=o:(o.next=a.next,a.next=o),n.pending=o}function hv(n,o,a){if((a&4194240)!==0){var c=o.lanes;c&=n.pendingLanes,a|=c,o.lanes=a,Jc(n,a)}}var fu={readContext:kn,useCallback:Qt,useContext:Qt,useEffect:Qt,useImperativeHandle:Qt,useInsertionEffect:Qt,useLayoutEffect:Qt,useMemo:Qt,useReducer:Qt,useRef:Qt,useState:Qt,useDebugValue:Qt,useDeferredValue:Qt,useTransition:Qt,useMutableSource:Qt,useSyncExternalStore:Qt,useId:Qt,unstable_isNewReconciler:!1},H1={readContext:kn,useCallback:function(n,o){return dr().memoizedState=[n,o===void 0?null:o],n},useContext:kn,useEffect:rv,useImperativeHandle:function(n,o,a){return a=a!=null?a.concat([n]):null,cu(4194308,4,iv.bind(null,o,n),a)},useLayoutEffect:function(n,o){return cu(4194308,4,n,o)},useInsertionEffect:function(n,o){return cu(4,2,n,o)},useMemo:function(n,o){var a=dr();return o=o===void 0?null:o,n=n(),a.memoizedState=[n,o],n},useReducer:function(n,o,a){var c=dr();return o=a!==void 0?a(o):o,c.memoizedState=c.baseState=o,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:o},c.queue=n,n=n.dispatch=B1.bind(null,mt,n),[c.memoizedState,n]},useRef:function(n){var o=dr();return n={current:n},o.memoizedState=n},useState:tv,useDebugValue:Xd,useDeferredValue:function(n){return dr().memoizedState=n},useTransition:function(){var n=tv(!1),o=n[0];return n=V1.bind(null,n[1]),dr().memoizedState=n,[o,n]},useMutableSource:function(){},useSyncExternalStore:function(n,o,a){var c=mt,h=dr();if(pt){if(a===void 0)throw Error(r(407));a=a()}else{if(a=o(),Ot===null)throw Error(r(349));(Jo&30)!==0||Xg(c,o,a)}h.memoizedState=a;var v={value:a,getSnapshot:o};return h.queue=v,rv(Jg.bind(null,c,v,n),[n]),c.flags|=2048,_a(9,Yg.bind(null,c,v,a,o),void 0,null),a},useId:function(){var n=dr(),o=Ot.identifierPrefix;if(pt){var a=jr,c=Nr;a=(c&~(1<<32-Bn(c)-1)).toString(32)+a,o=":"+o+"R"+a,a=Ea++,0<a&&(o+="H"+a.toString(32)),o+=":"}else a=z1++,o=":"+o+"r"+a.toString(32)+":";return n.memoizedState=o},unstable_isNewReconciler:!1},W1={readContext:kn,useCallback:lv,useContext:kn,useEffect:Gd,useImperativeHandle:av,useInsertionEffect:ov,useLayoutEffect:sv,useMemo:uv,useReducer:qd,useRef:nv,useState:function(){return qd(Ra)},useDebugValue:Xd,useDeferredValue:function(n){var o=Tn();return cv(o,Pt.memoizedState,n)},useTransition:function(){var n=qd(Ra)[0],o=Tn().memoizedState;return[n,o]},useMutableSource:Kg,useSyncExternalStore:Gg,useId:dv,unstable_isNewReconciler:!1},Q1={readContext:kn,useCallback:lv,useContext:kn,useEffect:Gd,useImperativeHandle:av,useInsertionEffect:ov,useLayoutEffect:sv,useMemo:uv,useReducer:Kd,useRef:nv,useState:function(){return Kd(Ra)},useDebugValue:Xd,useDeferredValue:function(n){var o=Tn();return Pt===null?o.memoizedState=n:cv(o,Pt.memoizedState,n)},useTransition:function(){var n=Kd(Ra)[0],o=Tn().memoizedState;return[n,o]},useMutableSource:Kg,useSyncExternalStore:Gg,useId:dv,unstable_isNewReconciler:!1};function Wn(n,o){if(n&&n.defaultProps){o=W({},o),n=n.defaultProps;for(var a in n)o[a]===void 0&&(o[a]=n[a]);return o}return o}function Yd(n,o,a,c){o=n.memoizedState,a=a(c,o),a=a==null?o:W({},o,a),n.memoizedState=a,n.lanes===0&&(n.updateQueue.baseState=a)}var pu={isMounted:function(n){return(n=n._reactInternals)?tt(n)===n:!1},enqueueSetState:function(n,o,a){n=n._reactInternals;var c=Zt(),h=bo(n),v=Ar(c,h);v.payload=o,a!=null&&(v.callback=a),o=mo(n,v,h),o!==null&&(Kn(o,n,h,c),su(o,n,h))},enqueueReplaceState:function(n,o,a){n=n._reactInternals;var c=Zt(),h=bo(n),v=Ar(c,h);v.tag=1,v.payload=o,a!=null&&(v.callback=a),o=mo(n,v,h),o!==null&&(Kn(o,n,h,c),su(o,n,h))},enqueueForceUpdate:function(n,o){n=n._reactInternals;var a=Zt(),c=bo(n),h=Ar(a,c);h.tag=2,o!=null&&(h.callback=o),o=mo(n,h,c),o!==null&&(Kn(o,n,c,a),su(o,n,c))}};function mv(n,o,a,c,h,v,_){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(c,v,_):o.prototype&&o.prototype.isPureReactComponent?!fa(a,c)||!fa(h,v):!0}function gv(n,o,a){var c=!1,h=fo,v=o.contextType;return typeof v=="object"&&v!==null?v=kn(v):(h=sn(o)?qo:Wt.current,c=o.contextTypes,v=(c=c!=null)?Ks(n,h):fo),o=new o(a,v),n.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=pu,n.stateNode=o,o._reactInternals=n,c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=h,n.__reactInternalMemoizedMaskedChildContext=v),o}function vv(n,o,a,c){n=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(a,c),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(a,c),o.state!==n&&pu.enqueueReplaceState(o,o.state,null)}function Jd(n,o,a,c){var h=n.stateNode;h.props=a,h.state=n.memoizedState,h.refs={},Ld(n);var v=o.contextType;typeof v=="object"&&v!==null?h.context=kn(v):(v=sn(o)?qo:Wt.current,h.context=Ks(n,v)),h.state=n.memoizedState,v=o.getDerivedStateFromProps,typeof v=="function"&&(Yd(n,o,v,a),h.state=n.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(o=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),o!==h.state&&pu.enqueueReplaceState(h,h.state,null),iu(n,a,h,c),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308)}function ni(n,o){try{var a="",c=o;do a+=X(c),c=c.return;while(c);var h=a}catch(v){h=`
37
+ `+h[_].replace(" at new "," at ");return n.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",n.displayName)),$}while(1<=_&&0<=D);break}}}finally{le=!1,Error.prepareStackTrace=a}return(n=n?n.displayName||n.name:"")?F(n):""}function X(n){switch(n.tag){case 5:return F(n.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return n=ye(n.type,!1),n;case 11:return n=ye(n.type.render,!1),n;case 1:return n=ye(n.type,!0),n;default:return""}}function re(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case L:return"Fragment";case O:return"Portal";case Q:return"Profiler";case M:return"StrictMode";case ne:return"Suspense";case G:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case te:return(n.displayName||"Context")+".Consumer";case q:return(n._context.displayName||"Context")+".Provider";case ee:var o=n.render;return n=n.displayName,n||(n=o.displayName||o.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case Z:return o=n.displayName||null,o!==null?o:re(n.type)||"Memo";case B:o=n._payload,n=n._init;try{return re(n(o))}catch{}}return null}function ve(n){var o=n.type;switch(n.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=o.render,n=n.displayName||n.name||"",o.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return re(o);case 8:return o===M?"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 o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function fe(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function we(n){var o=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function je(n){var o=we(n)?"checked":"value",a=Object.getOwnPropertyDescriptor(n.constructor.prototype,o),c=""+n[o];if(!n.hasOwnProperty(o)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var h=a.get,v=a.set;return Object.defineProperty(n,o,{configurable:!0,get:function(){return h.call(this)},set:function(_){c=""+_,v.call(this,_)}}),Object.defineProperty(n,o,{enumerable:a.enumerable}),{getValue:function(){return c},setValue:function(_){c=""+_},stopTracking:function(){n._valueTracker=null,delete n[o]}}}}function Ue(n){n._valueTracker||(n._valueTracker=je(n))}function Ze(n){if(!n)return!1;var o=n._valueTracker;if(!o)return!0;var a=o.getValue(),c="";return n&&(c=we(n)?n.checked?"true":"false":n.value),n=c,n!==a?(o.setValue(n),!0):!1}function et(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function ft(n,o){var a=o.checked;return W({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??n._wrapperState.initialChecked})}function He(n,o){var a=o.defaultValue==null?"":o.defaultValue,c=o.checked!=null?o.checked:o.defaultChecked;a=fe(o.value!=null?o.value:a),n._wrapperState={initialChecked:c,initialValue:a,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Rt(n,o){o=o.checked,o!=null&&k(n,"checked",o,!1)}function ue(n,o){Rt(n,o);var a=fe(o.value),c=o.type;if(a!=null)c==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+a):n.value!==""+a&&(n.value=""+a);else if(c==="submit"||c==="reset"){n.removeAttribute("value");return}o.hasOwnProperty("value")?Ce(n,o.type,a):o.hasOwnProperty("defaultValue")&&Ce(n,o.type,fe(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(n.defaultChecked=!!o.defaultChecked)}function pe(n,o,a){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var c=o.type;if(!(c!=="submit"&&c!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+n._wrapperState.initialValue,a||o===n.value||(n.value=o),n.defaultValue=o}a=n.name,a!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,a!==""&&(n.name=a)}function Ce(n,o,a){(o!=="number"||et(n.ownerDocument)!==n)&&(a==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+a&&(n.defaultValue=""+a))}var Pe=Array.isArray;function Me(n,o,a,c){if(n=n.options,o){o={};for(var h=0;h<a.length;h++)o["$"+a[h]]=!0;for(a=0;a<n.length;a++)h=o.hasOwnProperty("$"+n[a].value),n[a].selected!==h&&(n[a].selected=h),h&&c&&(n[a].defaultSelected=!0)}else{for(a=""+fe(a),o=null,h=0;h<n.length;h++){if(n[h].value===a){n[h].selected=!0,c&&(n[h].defaultSelected=!0);return}o!==null||n[h].disabled||(o=n[h])}o!==null&&(o.selected=!0)}}function Fe(n,o){if(o.dangerouslySetInnerHTML!=null)throw Error(r(91));return W({},o,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function ze(n,o){var a=o.value;if(a==null){if(a=o.children,o=o.defaultValue,a!=null){if(o!=null)throw Error(r(92));if(Pe(a)){if(1<a.length)throw Error(r(93));a=a[0]}o=a}o==null&&(o=""),a=o}n._wrapperState={initialValue:fe(a)}}function ce(n,o){var a=fe(o.value),c=fe(o.defaultValue);a!=null&&(a=""+a,a!==n.value&&(n.value=a),o.defaultValue==null&&n.defaultValue!==a&&(n.defaultValue=a)),c!=null&&(n.defaultValue=""+c)}function oe(n){var o=n.textContent;o===n._wrapperState.initialValue&&o!==""&&o!==null&&(n.value=o)}function Se(n){switch(n){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 Je(n,o){return n==null||n==="http://www.w3.org/1999/xhtml"?Se(o):n==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var Ne,Be=(function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,a,c,h){MSApp.execUnsafeLocalFunction(function(){return n(o,a,c,h)})}:n})(function(n,o){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=o;else{for(Ne=Ne||document.createElement("div"),Ne.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=Ne.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;o.firstChild;)n.appendChild(o.firstChild)}});function Ge(n,o){if(o){var a=n.firstChild;if(a&&a===n.lastChild&&a.nodeType===3){a.nodeValue=o;return}}n.textContent=o}var qe={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},Rr=["Webkit","ms","Moz","O"];Object.keys(qe).forEach(function(n){Rr.forEach(function(o){o=o+n.charAt(0).toUpperCase()+n.substring(1),qe[o]=qe[n]})});function _r(n,o,a){return o==null||typeof o=="boolean"||o===""?"":a||typeof o!="number"||o===0||qe.hasOwnProperty(n)&&qe[n]?(""+o).trim():o+"px"}function kr(n,o){n=n.style;for(var a in o)if(o.hasOwnProperty(a)){var c=a.indexOf("--")===0,h=_r(a,o[a],c);a==="float"&&(a="cssFloat"),c?n.setProperty(a,h):n[a]=h}}var st=W({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 Lt(n,o){if(o){if(st[n]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(r(137,n));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(r(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(r(61))}if(o.style!=null&&typeof o.style!="object")throw Error(r(62))}}function Pr(n,o){if(n.indexOf("-")===-1)return typeof o.is=="string";switch(n){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 Gi=null;function Ms(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Ho=null,ir=null,vn=null;function Ht(n){if(n=ya(n)){if(typeof Ho!="function")throw Error(r(280));var o=n.stateNode;o&&(o=Gl(o),Ho(n.stateNode,n.type,o))}}function xl(n){ir?vn?vn.push(n):vn=[n]:ir=n}function qc(){if(ir){var n=ir,o=vn;if(vn=ir=null,Ht(n),o)for(n=0;n<o.length;n++)Ht(o[n])}}function Cl(n,o){return n(o)}function El(){}var _t=!1;function to(n,o,a){if(_t)return n(o,a);_t=!0;try{return Cl(n,o,a)}finally{_t=!1,(ir!==null||vn!==null)&&(El(),qc())}}function ar(n,o){var a=n.stateNode;if(a===null)return null;var c=Gl(a);if(c===null)return null;a=c[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(n=n.type,c=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!c;break e;default:n=!1}if(n)return null;if(a&&typeof a!="function")throw Error(r(231,o,typeof a));return a}var Xi=!1;if(d)try{var lr={};Object.defineProperty(lr,"passive",{get:function(){Xi=!0}}),window.addEventListener("test",lr,lr),window.removeEventListener("test",lr,lr)}catch{Xi=!1}function Yi(n,o,a,c,h,v,_,D,$){var Y=Array.prototype.slice.call(arguments,3);try{o.apply(a,Y)}catch(ae){this.onError(ae)}}var no=!1,Wo=null,$s=!1,Ji=null,Rl={onError:function(n){no=!0,Wo=n}};function Kc(n,o,a,c,h,v,_,D,$){no=!1,Wo=null,Yi.apply(Rl,arguments)}function _l(n,o,a,c,h,v,_,D,$){if(Kc.apply(this,arguments),no){if(no){var Y=Wo;no=!1,Wo=null}else throw Error(r(198));$s||($s=!0,Ji=Y)}}function tt(n){var o=n,a=n;if(n.alternate)for(;o.return;)o=o.return;else{n=o;do o=n,(o.flags&4098)!==0&&(a=o.return),n=o.return;while(n)}return o.tag===3?a:null}function Ls(n){if(n.tag===13){var o=n.memoizedState;if(o===null&&(n=n.alternate,n!==null&&(o=n.memoizedState)),o!==null)return o.dehydrated}return null}function Zi(n){if(tt(n)!==n)throw Error(r(188))}function kl(n){var o=n.alternate;if(!o){if(o=tt(n),o===null)throw Error(r(188));return o!==n?null:n}for(var a=n,c=o;;){var h=a.return;if(h===null)break;var v=h.alternate;if(v===null){if(c=h.return,c!==null){a=c;continue}break}if(h.child===v.child){for(v=h.child;v;){if(v===a)return Zi(h),n;if(v===c)return Zi(h),o;v=v.sibling}throw Error(r(188))}if(a.return!==c.return)a=h,c=v;else{for(var _=!1,D=h.child;D;){if(D===a){_=!0,a=h,c=v;break}if(D===c){_=!0,c=h,a=v;break}D=D.sibling}if(!_){for(D=v.child;D;){if(D===a){_=!0,a=v,c=h;break}if(D===c){_=!0,c=v,a=h;break}D=D.sibling}if(!_)throw Error(r(189))}}if(a.alternate!==c)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?n:o}function Pl(n){return n=kl(n),n!==null?Im(n):null}function Im(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var o=Im(n);if(o!==null)return o;n=n.sibling}return null}var Mm=t.unstable_scheduleCallback,$m=t.unstable_cancelCallback,Nx=t.unstable_shouldYield,jx=t.unstable_requestPaint,bt=t.unstable_now,Ox=t.unstable_getCurrentPriorityLevel,Gc=t.unstable_ImmediatePriority,Lm=t.unstable_UserBlockingPriority,Tl=t.unstable_NormalPriority,Ax=t.unstable_LowPriority,Fm=t.unstable_IdlePriority,Nl=null,ur=null;function Dx(n){if(ur&&typeof ur.onCommitFiberRoot=="function")try{ur.onCommitFiberRoot(Nl,n,void 0,(n.current.flags&128)===128)}catch{}}var Bn=Math.clz32?Math.clz32:$x,Ix=Math.log,Mx=Math.LN2;function $x(n){return n>>>=0,n===0?32:31-(Ix(n)/Mx|0)|0}var jl=64,Ol=4194304;function ea(n){switch(n&-n){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 n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Al(n,o){var a=n.pendingLanes;if(a===0)return 0;var c=0,h=n.suspendedLanes,v=n.pingedLanes,_=a&268435455;if(_!==0){var D=_&~h;D!==0?c=ea(D):(v&=_,v!==0&&(c=ea(v)))}else _=a&~h,_!==0?c=ea(_):v!==0&&(c=ea(v));if(c===0)return 0;if(o!==0&&o!==c&&(o&h)===0&&(h=c&-c,v=o&-o,h>=v||h===16&&(v&4194240)!==0))return o;if((c&4)!==0&&(c|=a&16),o=n.entangledLanes,o!==0)for(n=n.entanglements,o&=c;0<o;)a=31-Bn(o),h=1<<a,c|=n[a],o&=~h;return c}function Lx(n,o){switch(n){case 1:case 2:case 4:return o+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 o+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 Fx(n,o){for(var a=n.suspendedLanes,c=n.pingedLanes,h=n.expirationTimes,v=n.pendingLanes;0<v;){var _=31-Bn(v),D=1<<_,$=h[_];$===-1?((D&a)===0||(D&c)!==0)&&(h[_]=Lx(D,o)):$<=o&&(n.expiredLanes|=D),v&=~D}}function Xc(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function zm(){var n=jl;return jl<<=1,(jl&4194240)===0&&(jl=64),n}function Yc(n){for(var o=[],a=0;31>a;a++)o.push(n);return o}function ta(n,o,a){n.pendingLanes|=o,o!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,o=31-Bn(o),n[o]=a}function zx(n,o){var a=n.pendingLanes&~o;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=o,n.mutableReadLanes&=o,n.entangledLanes&=o,o=n.entanglements;var c=n.eventTimes;for(n=n.expirationTimes;0<a;){var h=31-Bn(a),v=1<<h;o[h]=0,c[h]=-1,n[h]=-1,a&=~v}}function Jc(n,o){var a=n.entangledLanes|=o;for(n=n.entanglements;a;){var c=31-Bn(a),h=1<<c;h&o|n[c]&o&&(n[c]|=o),a&=~h}}var it=0;function Vm(n){return n&=-n,1<n?4<n?(n&268435455)!==0?16:536870912:4:1}var Bm,Zc,Um,Hm,Wm,ed=!1,Dl=[],ro=null,oo=null,so=null,na=new Map,ra=new Map,io=[],Vx="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 Qm(n,o){switch(n){case"focusin":case"focusout":ro=null;break;case"dragenter":case"dragleave":oo=null;break;case"mouseover":case"mouseout":so=null;break;case"pointerover":case"pointerout":na.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":ra.delete(o.pointerId)}}function oa(n,o,a,c,h,v){return n===null||n.nativeEvent!==v?(n={blockedOn:o,domEventName:a,eventSystemFlags:c,nativeEvent:v,targetContainers:[h]},o!==null&&(o=ya(o),o!==null&&Zc(o)),n):(n.eventSystemFlags|=c,o=n.targetContainers,h!==null&&o.indexOf(h)===-1&&o.push(h),n)}function Bx(n,o,a,c,h){switch(o){case"focusin":return ro=oa(ro,n,o,a,c,h),!0;case"dragenter":return oo=oa(oo,n,o,a,c,h),!0;case"mouseover":return so=oa(so,n,o,a,c,h),!0;case"pointerover":var v=h.pointerId;return na.set(v,oa(na.get(v)||null,n,o,a,c,h)),!0;case"gotpointercapture":return v=h.pointerId,ra.set(v,oa(ra.get(v)||null,n,o,a,c,h)),!0}return!1}function qm(n){var o=Qo(n.target);if(o!==null){var a=tt(o);if(a!==null){if(o=a.tag,o===13){if(o=Ls(a),o!==null){n.blockedOn=o,Wm(n.priority,function(){Um(a)});return}}else if(o===3&&a.stateNode.current.memoizedState.isDehydrated){n.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Il(n){if(n.blockedOn!==null)return!1;for(var o=n.targetContainers;0<o.length;){var a=nd(n.domEventName,n.eventSystemFlags,o[0],n.nativeEvent);if(a===null){a=n.nativeEvent;var c=new a.constructor(a.type,a);Gi=c,a.target.dispatchEvent(c),Gi=null}else return o=ya(a),o!==null&&Zc(o),n.blockedOn=a,!1;o.shift()}return!0}function Km(n,o,a){Il(n)&&a.delete(o)}function Ux(){ed=!1,ro!==null&&Il(ro)&&(ro=null),oo!==null&&Il(oo)&&(oo=null),so!==null&&Il(so)&&(so=null),na.forEach(Km),ra.forEach(Km)}function sa(n,o){n.blockedOn===o&&(n.blockedOn=null,ed||(ed=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ux)))}function ia(n){function o(h){return sa(h,n)}if(0<Dl.length){sa(Dl[0],n);for(var a=1;a<Dl.length;a++){var c=Dl[a];c.blockedOn===n&&(c.blockedOn=null)}}for(ro!==null&&sa(ro,n),oo!==null&&sa(oo,n),so!==null&&sa(so,n),na.forEach(o),ra.forEach(o),a=0;a<io.length;a++)c=io[a],c.blockedOn===n&&(c.blockedOn=null);for(;0<io.length&&(a=io[0],a.blockedOn===null);)qm(a),a.blockedOn===null&&io.shift()}var Fs=T.ReactCurrentBatchConfig,Ml=!0;function Hx(n,o,a,c){var h=it,v=Fs.transition;Fs.transition=null;try{it=1,td(n,o,a,c)}finally{it=h,Fs.transition=v}}function Wx(n,o,a,c){var h=it,v=Fs.transition;Fs.transition=null;try{it=4,td(n,o,a,c)}finally{it=h,Fs.transition=v}}function td(n,o,a,c){if(Ml){var h=nd(n,o,a,c);if(h===null)bd(n,o,c,$l,a),Qm(n,c);else if(Bx(h,n,o,a,c))c.stopPropagation();else if(Qm(n,c),o&4&&-1<Vx.indexOf(n)){for(;h!==null;){var v=ya(h);if(v!==null&&Bm(v),v=nd(n,o,a,c),v===null&&bd(n,o,c,$l,a),v===h)break;h=v}h!==null&&c.stopPropagation()}else bd(n,o,c,null,a)}}var $l=null;function nd(n,o,a,c){if($l=null,n=Ms(c),n=Qo(n),n!==null)if(o=tt(n),o===null)n=null;else if(a=o.tag,a===13){if(n=Ls(o),n!==null)return n;n=null}else if(a===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null);return $l=n,null}function Gm(n){switch(n){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(Ox()){case Gc:return 1;case Lm:return 4;case Tl:case Ax:return 16;case Fm:return 536870912;default:return 16}default:return 16}}var ao=null,rd=null,Ll=null;function Xm(){if(Ll)return Ll;var n,o=rd,a=o.length,c,h="value"in ao?ao.value:ao.textContent,v=h.length;for(n=0;n<a&&o[n]===h[n];n++);var _=a-n;for(c=1;c<=_&&o[a-c]===h[v-c];c++);return Ll=h.slice(n,1<c?1-c:void 0)}function Fl(n){var o=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&o===13&&(n=13)):n=o,n===10&&(n=13),32<=n||n===13?n:0}function zl(){return!0}function Ym(){return!1}function yn(n){function o(a,c,h,v,_){this._reactName=a,this._targetInst=h,this.type=c,this.nativeEvent=v,this.target=_,this.currentTarget=null;for(var D in n)n.hasOwnProperty(D)&&(a=n[D],this[D]=a?a(v):v[D]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?zl:Ym,this.isPropagationStopped=Ym,this}return W(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=zl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=zl)},persist:function(){},isPersistent:zl}),o}var zs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},od=yn(zs),aa=W({},zs,{view:0,detail:0}),Qx=yn(aa),sd,id,la,Vl=W({},aa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ld,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==la&&(la&&n.type==="mousemove"?(sd=n.screenX-la.screenX,id=n.screenY-la.screenY):id=sd=0,la=n),sd)},movementY:function(n){return"movementY"in n?n.movementY:id}}),Jm=yn(Vl),qx=W({},Vl,{dataTransfer:0}),Kx=yn(qx),Gx=W({},aa,{relatedTarget:0}),ad=yn(Gx),Xx=W({},zs,{animationName:0,elapsedTime:0,pseudoElement:0}),Yx=yn(Xx),Jx=W({},zs,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),Zx=yn(Jx),e1=W({},zs,{data:0}),Zm=yn(e1),t1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},n1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},r1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function o1(n){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(n):(n=r1[n])?!!o[n]:!1}function ld(){return o1}var s1=W({},aa,{key:function(n){if(n.key){var o=t1[n.key]||n.key;if(o!=="Unidentified")return o}return n.type==="keypress"?(n=Fl(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?n1[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ld,charCode:function(n){return n.type==="keypress"?Fl(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Fl(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),i1=yn(s1),a1=W({},Vl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),eg=yn(a1),l1=W({},aa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ld}),u1=yn(l1),c1=W({},zs,{propertyName:0,elapsedTime:0,pseudoElement:0}),d1=yn(c1),f1=W({},Vl,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),p1=yn(f1),h1=[9,13,27,32],ud=d&&"CompositionEvent"in window,ua=null;d&&"documentMode"in document&&(ua=document.documentMode);var m1=d&&"TextEvent"in window&&!ua,tg=d&&(!ud||ua&&8<ua&&11>=ua),ng=" ",rg=!1;function og(n,o){switch(n){case"keyup":return h1.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sg(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Vs=!1;function g1(n,o){switch(n){case"compositionend":return sg(o);case"keypress":return o.which!==32?null:(rg=!0,ng);case"textInput":return n=o.data,n===ng&&rg?null:n;default:return null}}function v1(n,o){if(Vs)return n==="compositionend"||!ud&&og(n,o)?(n=Xm(),Ll=rd=ao=null,Vs=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return tg&&o.locale!=="ko"?null:o.data;default:return null}}var y1={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 ig(n){var o=n&&n.nodeName&&n.nodeName.toLowerCase();return o==="input"?!!y1[n.type]:o==="textarea"}function ag(n,o,a,c){xl(c),o=Ql(o,"onChange"),0<o.length&&(a=new od("onChange","change",null,a,c),n.push({event:a,listeners:o}))}var ca=null,da=null;function b1(n){Rg(n,0)}function Bl(n){var o=Qs(n);if(Ze(o))return n}function w1(n,o){if(n==="change")return o}var lg=!1;if(d){var cd;if(d){var dd="oninput"in document;if(!dd){var ug=document.createElement("div");ug.setAttribute("oninput","return;"),dd=typeof ug.oninput=="function"}cd=dd}else cd=!1;lg=cd&&(!document.documentMode||9<document.documentMode)}function cg(){ca&&(ca.detachEvent("onpropertychange",dg),da=ca=null)}function dg(n){if(n.propertyName==="value"&&Bl(da)){var o=[];ag(o,da,n,Ms(n)),to(b1,o)}}function S1(n,o,a){n==="focusin"?(cg(),ca=o,da=a,ca.attachEvent("onpropertychange",dg)):n==="focusout"&&cg()}function x1(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Bl(da)}function C1(n,o){if(n==="click")return Bl(o)}function E1(n,o){if(n==="input"||n==="change")return Bl(o)}function R1(n,o){return n===o&&(n!==0||1/n===1/o)||n!==n&&o!==o}var Un=typeof Object.is=="function"?Object.is:R1;function fa(n,o){if(Un(n,o))return!0;if(typeof n!="object"||n===null||typeof o!="object"||o===null)return!1;var a=Object.keys(n),c=Object.keys(o);if(a.length!==c.length)return!1;for(c=0;c<a.length;c++){var h=a[c];if(!p.call(o,h)||!Un(n[h],o[h]))return!1}return!0}function fg(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function pg(n,o){var a=fg(n);n=0;for(var c;a;){if(a.nodeType===3){if(c=n+a.textContent.length,n<=o&&c>=o)return{node:a,offset:o-n};n=c}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=fg(a)}}function hg(n,o){return n&&o?n===o?!0:n&&n.nodeType===3?!1:o&&o.nodeType===3?hg(n,o.parentNode):"contains"in n?n.contains(o):n.compareDocumentPosition?!!(n.compareDocumentPosition(o)&16):!1:!1}function mg(){for(var n=window,o=et();o instanceof n.HTMLIFrameElement;){try{var a=typeof o.contentWindow.location.href=="string"}catch{a=!1}if(a)n=o.contentWindow;else break;o=et(n.document)}return o}function fd(n){var o=n&&n.nodeName&&n.nodeName.toLowerCase();return o&&(o==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||o==="textarea"||n.contentEditable==="true")}function _1(n){var o=mg(),a=n.focusedElem,c=n.selectionRange;if(o!==a&&a&&a.ownerDocument&&hg(a.ownerDocument.documentElement,a)){if(c!==null&&fd(a)){if(o=c.start,n=c.end,n===void 0&&(n=o),"selectionStart"in a)a.selectionStart=o,a.selectionEnd=Math.min(n,a.value.length);else if(n=(o=a.ownerDocument||document)&&o.defaultView||window,n.getSelection){n=n.getSelection();var h=a.textContent.length,v=Math.min(c.start,h);c=c.end===void 0?v:Math.min(c.end,h),!n.extend&&v>c&&(h=c,c=v,v=h),h=pg(a,v);var _=pg(a,c);h&&_&&(n.rangeCount!==1||n.anchorNode!==h.node||n.anchorOffset!==h.offset||n.focusNode!==_.node||n.focusOffset!==_.offset)&&(o=o.createRange(),o.setStart(h.node,h.offset),n.removeAllRanges(),v>c?(n.addRange(o),n.extend(_.node,_.offset)):(o.setEnd(_.node,_.offset),n.addRange(o)))}}for(o=[],n=a;n=n.parentNode;)n.nodeType===1&&o.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<o.length;a++)n=o[a],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var k1=d&&"documentMode"in document&&11>=document.documentMode,Bs=null,pd=null,pa=null,hd=!1;function gg(n,o,a){var c=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;hd||Bs==null||Bs!==et(c)||(c=Bs,"selectionStart"in c&&fd(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),pa&&fa(pa,c)||(pa=c,c=Ql(pd,"onSelect"),0<c.length&&(o=new od("onSelect","select",null,o,a),n.push({event:o,listeners:c}),o.target=Bs)))}function Ul(n,o){var a={};return a[n.toLowerCase()]=o.toLowerCase(),a["Webkit"+n]="webkit"+o,a["Moz"+n]="moz"+o,a}var Us={animationend:Ul("Animation","AnimationEnd"),animationiteration:Ul("Animation","AnimationIteration"),animationstart:Ul("Animation","AnimationStart"),transitionend:Ul("Transition","TransitionEnd")},md={},vg={};d&&(vg=document.createElement("div").style,"AnimationEvent"in window||(delete Us.animationend.animation,delete Us.animationiteration.animation,delete Us.animationstart.animation),"TransitionEvent"in window||delete Us.transitionend.transition);function Hl(n){if(md[n])return md[n];if(!Us[n])return n;var o=Us[n],a;for(a in o)if(o.hasOwnProperty(a)&&a in vg)return md[n]=o[a];return n}var yg=Hl("animationend"),bg=Hl("animationiteration"),wg=Hl("animationstart"),Sg=Hl("transitionend"),xg=new Map,Cg="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 lo(n,o){xg.set(n,o),l(o,[n])}for(var gd=0;gd<Cg.length;gd++){var vd=Cg[gd],P1=vd.toLowerCase(),T1=vd[0].toUpperCase()+vd.slice(1);lo(P1,"on"+T1)}lo(yg,"onAnimationEnd"),lo(bg,"onAnimationIteration"),lo(wg,"onAnimationStart"),lo("dblclick","onDoubleClick"),lo("focusin","onFocus"),lo("focusout","onBlur"),lo(Sg,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ha="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(" "),N1=new Set("cancel close invalid load scroll toggle".split(" ").concat(ha));function Eg(n,o,a){var c=n.type||"unknown-event";n.currentTarget=a,_l(c,o,void 0,n),n.currentTarget=null}function Rg(n,o){o=(o&4)!==0;for(var a=0;a<n.length;a++){var c=n[a],h=c.event;c=c.listeners;e:{var v=void 0;if(o)for(var _=c.length-1;0<=_;_--){var D=c[_],$=D.instance,Y=D.currentTarget;if(D=D.listener,$!==v&&h.isPropagationStopped())break e;Eg(h,D,Y),v=$}else for(_=0;_<c.length;_++){if(D=c[_],$=D.instance,Y=D.currentTarget,D=D.listener,$!==v&&h.isPropagationStopped())break e;Eg(h,D,Y),v=$}}}if($s)throw n=Ji,$s=!1,Ji=null,n}function ut(n,o){var a=o[Rd];a===void 0&&(a=o[Rd]=new Set);var c=n+"__bubble";a.has(c)||(_g(o,n,2,!1),a.add(c))}function yd(n,o,a){var c=0;o&&(c|=4),_g(a,n,c,o)}var Wl="_reactListening"+Math.random().toString(36).slice(2);function ma(n){if(!n[Wl]){n[Wl]=!0,s.forEach(function(a){a!=="selectionchange"&&(N1.has(a)||yd(a,!1,n),yd(a,!0,n))});var o=n.nodeType===9?n:n.ownerDocument;o===null||o[Wl]||(o[Wl]=!0,yd("selectionchange",!1,o))}}function _g(n,o,a,c){switch(Gm(o)){case 1:var h=Hx;break;case 4:h=Wx;break;default:h=td}a=h.bind(null,o,a,n),h=void 0,!Xi||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(h=!0),c?h!==void 0?n.addEventListener(o,a,{capture:!0,passive:h}):n.addEventListener(o,a,!0):h!==void 0?n.addEventListener(o,a,{passive:h}):n.addEventListener(o,a,!1)}function bd(n,o,a,c,h){var v=c;if((o&1)===0&&(o&2)===0&&c!==null)e:for(;;){if(c===null)return;var _=c.tag;if(_===3||_===4){var D=c.stateNode.containerInfo;if(D===h||D.nodeType===8&&D.parentNode===h)break;if(_===4)for(_=c.return;_!==null;){var $=_.tag;if(($===3||$===4)&&($=_.stateNode.containerInfo,$===h||$.nodeType===8&&$.parentNode===h))return;_=_.return}for(;D!==null;){if(_=Qo(D),_===null)return;if($=_.tag,$===5||$===6){c=v=_;continue e}D=D.parentNode}}c=c.return}to(function(){var Y=v,ae=Ms(a),de=[];e:{var ie=xg.get(n);if(ie!==void 0){var xe=od,_e=n;switch(n){case"keypress":if(Fl(a)===0)break e;case"keydown":case"keyup":xe=i1;break;case"focusin":_e="focus",xe=ad;break;case"focusout":_e="blur",xe=ad;break;case"beforeblur":case"afterblur":xe=ad;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":xe=Jm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":xe=Kx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":xe=u1;break;case yg:case bg:case wg:xe=Yx;break;case Sg:xe=d1;break;case"scroll":xe=Qx;break;case"wheel":xe=p1;break;case"copy":case"cut":case"paste":xe=Zx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":xe=eg}var ke=(o&4)!==0,wt=!ke&&n==="scroll",H=ke?ie!==null?ie+"Capture":null:ie;ke=[];for(var z=Y,K;z!==null;){K=z;var ge=K.stateNode;if(K.tag===5&&ge!==null&&(K=ge,H!==null&&(ge=ar(z,H),ge!=null&&ke.push(ga(z,ge,K)))),wt)break;z=z.return}0<ke.length&&(ie=new xe(ie,_e,null,a,ae),de.push({event:ie,listeners:ke}))}}if((o&7)===0){e:{if(ie=n==="mouseover"||n==="pointerover",xe=n==="mouseout"||n==="pointerout",ie&&a!==Gi&&(_e=a.relatedTarget||a.fromElement)&&(Qo(_e)||_e[Tr]))break e;if((xe||ie)&&(ie=ae.window===ae?ae:(ie=ae.ownerDocument)?ie.defaultView||ie.parentWindow:window,xe?(_e=a.relatedTarget||a.toElement,xe=Y,_e=_e?Qo(_e):null,_e!==null&&(wt=tt(_e),_e!==wt||_e.tag!==5&&_e.tag!==6)&&(_e=null)):(xe=null,_e=Y),xe!==_e)){if(ke=Jm,ge="onMouseLeave",H="onMouseEnter",z="mouse",(n==="pointerout"||n==="pointerover")&&(ke=eg,ge="onPointerLeave",H="onPointerEnter",z="pointer"),wt=xe==null?ie:Qs(xe),K=_e==null?ie:Qs(_e),ie=new ke(ge,z+"leave",xe,a,ae),ie.target=wt,ie.relatedTarget=K,ge=null,Qo(ae)===Y&&(ke=new ke(H,z+"enter",_e,a,ae),ke.target=K,ke.relatedTarget=wt,ge=ke),wt=ge,xe&&_e)t:{for(ke=xe,H=_e,z=0,K=ke;K;K=Hs(K))z++;for(K=0,ge=H;ge;ge=Hs(ge))K++;for(;0<z-K;)ke=Hs(ke),z--;for(;0<K-z;)H=Hs(H),K--;for(;z--;){if(ke===H||H!==null&&ke===H.alternate)break t;ke=Hs(ke),H=Hs(H)}ke=null}else ke=null;xe!==null&&kg(de,ie,xe,ke,!1),_e!==null&&wt!==null&&kg(de,wt,_e,ke,!0)}}e:{if(ie=Y?Qs(Y):window,xe=ie.nodeName&&ie.nodeName.toLowerCase(),xe==="select"||xe==="input"&&ie.type==="file")var Te=w1;else if(ig(ie))if(lg)Te=E1;else{Te=x1;var Ae=S1}else(xe=ie.nodeName)&&xe.toLowerCase()==="input"&&(ie.type==="checkbox"||ie.type==="radio")&&(Te=C1);if(Te&&(Te=Te(n,Y))){ag(de,Te,a,ae);break e}Ae&&Ae(n,ie,Y),n==="focusout"&&(Ae=ie._wrapperState)&&Ae.controlled&&ie.type==="number"&&Ce(ie,"number",ie.value)}switch(Ae=Y?Qs(Y):window,n){case"focusin":(ig(Ae)||Ae.contentEditable==="true")&&(Bs=Ae,pd=Y,pa=null);break;case"focusout":pa=pd=Bs=null;break;case"mousedown":hd=!0;break;case"contextmenu":case"mouseup":case"dragend":hd=!1,gg(de,a,ae);break;case"selectionchange":if(k1)break;case"keydown":case"keyup":gg(de,a,ae)}var De;if(ud)e:{switch(n){case"compositionstart":var $e="onCompositionStart";break e;case"compositionend":$e="onCompositionEnd";break e;case"compositionupdate":$e="onCompositionUpdate";break e}$e=void 0}else Vs?og(n,a)&&($e="onCompositionEnd"):n==="keydown"&&a.keyCode===229&&($e="onCompositionStart");$e&&(tg&&a.locale!=="ko"&&(Vs||$e!=="onCompositionStart"?$e==="onCompositionEnd"&&Vs&&(De=Xm()):(ao=ae,rd="value"in ao?ao.value:ao.textContent,Vs=!0)),Ae=Ql(Y,$e),0<Ae.length&&($e=new Zm($e,n,null,a,ae),de.push({event:$e,listeners:Ae}),De?$e.data=De:(De=sg(a),De!==null&&($e.data=De)))),(De=m1?g1(n,a):v1(n,a))&&(Y=Ql(Y,"onBeforeInput"),0<Y.length&&(ae=new Zm("onBeforeInput","beforeinput",null,a,ae),de.push({event:ae,listeners:Y}),ae.data=De))}Rg(de,o)})}function ga(n,o,a){return{instance:n,listener:o,currentTarget:a}}function Ql(n,o){for(var a=o+"Capture",c=[];n!==null;){var h=n,v=h.stateNode;h.tag===5&&v!==null&&(h=v,v=ar(n,a),v!=null&&c.unshift(ga(n,v,h)),v=ar(n,o),v!=null&&c.push(ga(n,v,h))),n=n.return}return c}function Hs(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function kg(n,o,a,c,h){for(var v=o._reactName,_=[];a!==null&&a!==c;){var D=a,$=D.alternate,Y=D.stateNode;if($!==null&&$===c)break;D.tag===5&&Y!==null&&(D=Y,h?($=ar(a,v),$!=null&&_.unshift(ga(a,$,D))):h||($=ar(a,v),$!=null&&_.push(ga(a,$,D)))),a=a.return}_.length!==0&&n.push({event:o,listeners:_})}var j1=/\r\n?/g,O1=/\u0000|\uFFFD/g;function Pg(n){return(typeof n=="string"?n:""+n).replace(j1,`
38
+ `).replace(O1,"")}function ql(n,o,a){if(o=Pg(o),Pg(n)!==o&&a)throw Error(r(425))}function Kl(){}var wd=null,Sd=null;function xd(n,o){return n==="textarea"||n==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Cd=typeof setTimeout=="function"?setTimeout:void 0,A1=typeof clearTimeout=="function"?clearTimeout:void 0,Tg=typeof Promise=="function"?Promise:void 0,D1=typeof queueMicrotask=="function"?queueMicrotask:typeof Tg<"u"?function(n){return Tg.resolve(null).then(n).catch(I1)}:Cd;function I1(n){setTimeout(function(){throw n})}function Ed(n,o){var a=o,c=0;do{var h=a.nextSibling;if(n.removeChild(a),h&&h.nodeType===8)if(a=h.data,a==="/$"){if(c===0){n.removeChild(h),ia(o);return}c--}else a!=="$"&&a!=="$?"&&a!=="$!"||c++;a=h}while(a);ia(o)}function uo(n){for(;n!=null;n=n.nextSibling){var o=n.nodeType;if(o===1||o===3)break;if(o===8){if(o=n.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return n}function Ng(n){n=n.previousSibling;for(var o=0;n;){if(n.nodeType===8){var a=n.data;if(a==="$"||a==="$!"||a==="$?"){if(o===0)return n;o--}else a==="/$"&&o++}n=n.previousSibling}return null}var Ws=Math.random().toString(36).slice(2),cr="__reactFiber$"+Ws,va="__reactProps$"+Ws,Tr="__reactContainer$"+Ws,Rd="__reactEvents$"+Ws,M1="__reactListeners$"+Ws,$1="__reactHandles$"+Ws;function Qo(n){var o=n[cr];if(o)return o;for(var a=n.parentNode;a;){if(o=a[Tr]||a[cr]){if(a=o.alternate,o.child!==null||a!==null&&a.child!==null)for(n=Ng(n);n!==null;){if(a=n[cr])return a;n=Ng(n)}return o}n=a,a=n.parentNode}return null}function ya(n){return n=n[cr]||n[Tr],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function Qs(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(r(33))}function Gl(n){return n[va]||null}var _d=[],qs=-1;function co(n){return{current:n}}function ct(n){0>qs||(n.current=_d[qs],_d[qs]=null,qs--)}function lt(n,o){qs++,_d[qs]=n.current,n.current=o}var fo={},Wt=co(fo),on=co(!1),qo=fo;function Ks(n,o){var a=n.type.contextTypes;if(!a)return fo;var c=n.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===o)return c.__reactInternalMemoizedMaskedChildContext;var h={},v;for(v in a)h[v]=o[v];return c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=o,n.__reactInternalMemoizedMaskedChildContext=h),h}function sn(n){return n=n.childContextTypes,n!=null}function Xl(){ct(on),ct(Wt)}function jg(n,o,a){if(Wt.current!==fo)throw Error(r(168));lt(Wt,o),lt(on,a)}function Og(n,o,a){var c=n.stateNode;if(o=o.childContextTypes,typeof c.getChildContext!="function")return a;c=c.getChildContext();for(var h in c)if(!(h in o))throw Error(r(108,ve(n)||"Unknown",h));return W({},a,c)}function Yl(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||fo,qo=Wt.current,lt(Wt,n),lt(on,on.current),!0}function Ag(n,o,a){var c=n.stateNode;if(!c)throw Error(r(169));a?(n=Og(n,o,qo),c.__reactInternalMemoizedMergedChildContext=n,ct(on),ct(Wt),lt(Wt,n)):ct(on),lt(on,a)}var Nr=null,Jl=!1,kd=!1;function Dg(n){Nr===null?Nr=[n]:Nr.push(n)}function L1(n){Jl=!0,Dg(n)}function po(){if(!kd&&Nr!==null){kd=!0;var n=0,o=it;try{var a=Nr;for(it=1;n<a.length;n++){var c=a[n];do c=c(!0);while(c!==null)}Nr=null,Jl=!1}catch(h){throw Nr!==null&&(Nr=Nr.slice(n+1)),Mm(Gc,po),h}finally{it=o,kd=!1}}return null}var Gs=[],Xs=0,Zl=null,eu=0,_n=[],kn=0,Ko=null,jr=1,Or="";function Go(n,o){Gs[Xs++]=eu,Gs[Xs++]=Zl,Zl=n,eu=o}function Ig(n,o,a){_n[kn++]=jr,_n[kn++]=Or,_n[kn++]=Ko,Ko=n;var c=jr;n=Or;var h=32-Bn(c)-1;c&=~(1<<h),a+=1;var v=32-Bn(o)+h;if(30<v){var _=h-h%5;v=(c&(1<<_)-1).toString(32),c>>=_,h-=_,jr=1<<32-Bn(o)+h|a<<h|c,Or=v+n}else jr=1<<v|a<<h|c,Or=n}function Pd(n){n.return!==null&&(Go(n,1),Ig(n,1,0))}function Td(n){for(;n===Zl;)Zl=Gs[--Xs],Gs[Xs]=null,eu=Gs[--Xs],Gs[Xs]=null;for(;n===Ko;)Ko=_n[--kn],_n[kn]=null,Or=_n[--kn],_n[kn]=null,jr=_n[--kn],_n[kn]=null}var bn=null,wn=null,pt=!1,Hn=null;function Mg(n,o){var a=jn(5,null,null,0);a.elementType="DELETED",a.stateNode=o,a.return=n,o=n.deletions,o===null?(n.deletions=[a],n.flags|=16):o.push(a)}function $g(n,o){switch(n.tag){case 5:var a=n.type;return o=o.nodeType!==1||a.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(n.stateNode=o,bn=n,wn=uo(o.firstChild),!0):!1;case 6:return o=n.pendingProps===""||o.nodeType!==3?null:o,o!==null?(n.stateNode=o,bn=n,wn=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(a=Ko!==null?{id:jr,overflow:Or}:null,n.memoizedState={dehydrated:o,treeContext:a,retryLane:1073741824},a=jn(18,null,null,0),a.stateNode=o,a.return=n,n.child=a,bn=n,wn=null,!0):!1;default:return!1}}function Nd(n){return(n.mode&1)!==0&&(n.flags&128)===0}function jd(n){if(pt){var o=wn;if(o){var a=o;if(!$g(n,o)){if(Nd(n))throw Error(r(418));o=uo(a.nextSibling);var c=bn;o&&$g(n,o)?Mg(c,a):(n.flags=n.flags&-4097|2,pt=!1,bn=n)}}else{if(Nd(n))throw Error(r(418));n.flags=n.flags&-4097|2,pt=!1,bn=n}}}function Lg(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;bn=n}function tu(n){if(n!==bn)return!1;if(!pt)return Lg(n),pt=!0,!1;var o;if((o=n.tag!==3)&&!(o=n.tag!==5)&&(o=n.type,o=o!=="head"&&o!=="body"&&!xd(n.type,n.memoizedProps)),o&&(o=wn)){if(Nd(n))throw Fg(),Error(r(418));for(;o;)Mg(n,o),o=uo(o.nextSibling)}if(Lg(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));e:{for(n=n.nextSibling,o=0;n;){if(n.nodeType===8){var a=n.data;if(a==="/$"){if(o===0){wn=uo(n.nextSibling);break e}o--}else a!=="$"&&a!=="$!"&&a!=="$?"||o++}n=n.nextSibling}wn=null}}else wn=bn?uo(n.stateNode.nextSibling):null;return!0}function Fg(){for(var n=wn;n;)n=uo(n.nextSibling)}function Ys(){wn=bn=null,pt=!1}function Od(n){Hn===null?Hn=[n]:Hn.push(n)}var F1=T.ReactCurrentBatchConfig;function ba(n,o,a){if(n=a.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(r(309));var c=a.stateNode}if(!c)throw Error(r(147,n));var h=c,v=""+n;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===v?o.ref:(o=function(_){var D=h.refs;_===null?delete D[v]:D[v]=_},o._stringRef=v,o)}if(typeof n!="string")throw Error(r(284));if(!a._owner)throw Error(r(290,n))}return n}function nu(n,o){throw n=Object.prototype.toString.call(o),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":n))}function zg(n){var o=n._init;return o(n._payload)}function Vg(n){function o(H,z){if(n){var K=H.deletions;K===null?(H.deletions=[z],H.flags|=16):K.push(z)}}function a(H,z){if(!n)return null;for(;z!==null;)o(H,z),z=z.sibling;return null}function c(H,z){for(H=new Map;z!==null;)z.key!==null?H.set(z.key,z):H.set(z.index,z),z=z.sibling;return H}function h(H,z){return H=So(H,z),H.index=0,H.sibling=null,H}function v(H,z,K){return H.index=K,n?(K=H.alternate,K!==null?(K=K.index,K<z?(H.flags|=2,z):K):(H.flags|=2,z)):(H.flags|=1048576,z)}function _(H){return n&&H.alternate===null&&(H.flags|=2),H}function D(H,z,K,ge){return z===null||z.tag!==6?(z=Ef(K,H.mode,ge),z.return=H,z):(z=h(z,K),z.return=H,z)}function $(H,z,K,ge){var Te=K.type;return Te===L?ae(H,z,K.props.children,ge,K.key):z!==null&&(z.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===B&&zg(Te)===z.type)?(ge=h(z,K.props),ge.ref=ba(H,z,K),ge.return=H,ge):(ge=_u(K.type,K.key,K.props,null,H.mode,ge),ge.ref=ba(H,z,K),ge.return=H,ge)}function Y(H,z,K,ge){return z===null||z.tag!==4||z.stateNode.containerInfo!==K.containerInfo||z.stateNode.implementation!==K.implementation?(z=Rf(K,H.mode,ge),z.return=H,z):(z=h(z,K.children||[]),z.return=H,z)}function ae(H,z,K,ge,Te){return z===null||z.tag!==7?(z=rs(K,H.mode,ge,Te),z.return=H,z):(z=h(z,K),z.return=H,z)}function de(H,z,K){if(typeof z=="string"&&z!==""||typeof z=="number")return z=Ef(""+z,H.mode,K),z.return=H,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case j:return K=_u(z.type,z.key,z.props,null,H.mode,K),K.ref=ba(H,null,z),K.return=H,K;case O:return z=Rf(z,H.mode,K),z.return=H,z;case B:var ge=z._init;return de(H,ge(z._payload),K)}if(Pe(z)||V(z))return z=rs(z,H.mode,K,null),z.return=H,z;nu(H,z)}return null}function ie(H,z,K,ge){var Te=z!==null?z.key:null;if(typeof K=="string"&&K!==""||typeof K=="number")return Te!==null?null:D(H,z,""+K,ge);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case j:return K.key===Te?$(H,z,K,ge):null;case O:return K.key===Te?Y(H,z,K,ge):null;case B:return Te=K._init,ie(H,z,Te(K._payload),ge)}if(Pe(K)||V(K))return Te!==null?null:ae(H,z,K,ge,null);nu(H,K)}return null}function xe(H,z,K,ge,Te){if(typeof ge=="string"&&ge!==""||typeof ge=="number")return H=H.get(K)||null,D(z,H,""+ge,Te);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case j:return H=H.get(ge.key===null?K:ge.key)||null,$(z,H,ge,Te);case O:return H=H.get(ge.key===null?K:ge.key)||null,Y(z,H,ge,Te);case B:var Ae=ge._init;return xe(H,z,K,Ae(ge._payload),Te)}if(Pe(ge)||V(ge))return H=H.get(K)||null,ae(z,H,ge,Te,null);nu(z,ge)}return null}function _e(H,z,K,ge){for(var Te=null,Ae=null,De=z,$e=z=0,At=null;De!==null&&$e<K.length;$e++){De.index>$e?(At=De,De=null):At=De.sibling;var rt=ie(H,De,K[$e],ge);if(rt===null){De===null&&(De=At);break}n&&De&&rt.alternate===null&&o(H,De),z=v(rt,z,$e),Ae===null?Te=rt:Ae.sibling=rt,Ae=rt,De=At}if($e===K.length)return a(H,De),pt&&Go(H,$e),Te;if(De===null){for(;$e<K.length;$e++)De=de(H,K[$e],ge),De!==null&&(z=v(De,z,$e),Ae===null?Te=De:Ae.sibling=De,Ae=De);return pt&&Go(H,$e),Te}for(De=c(H,De);$e<K.length;$e++)At=xe(De,H,$e,K[$e],ge),At!==null&&(n&&At.alternate!==null&&De.delete(At.key===null?$e:At.key),z=v(At,z,$e),Ae===null?Te=At:Ae.sibling=At,Ae=At);return n&&De.forEach(function(xo){return o(H,xo)}),pt&&Go(H,$e),Te}function ke(H,z,K,ge){var Te=V(K);if(typeof Te!="function")throw Error(r(150));if(K=Te.call(K),K==null)throw Error(r(151));for(var Ae=Te=null,De=z,$e=z=0,At=null,rt=K.next();De!==null&&!rt.done;$e++,rt=K.next()){De.index>$e?(At=De,De=null):At=De.sibling;var xo=ie(H,De,rt.value,ge);if(xo===null){De===null&&(De=At);break}n&&De&&xo.alternate===null&&o(H,De),z=v(xo,z,$e),Ae===null?Te=xo:Ae.sibling=xo,Ae=xo,De=At}if(rt.done)return a(H,De),pt&&Go(H,$e),Te;if(De===null){for(;!rt.done;$e++,rt=K.next())rt=de(H,rt.value,ge),rt!==null&&(z=v(rt,z,$e),Ae===null?Te=rt:Ae.sibling=rt,Ae=rt);return pt&&Go(H,$e),Te}for(De=c(H,De);!rt.done;$e++,rt=K.next())rt=xe(De,H,$e,rt.value,ge),rt!==null&&(n&&rt.alternate!==null&&De.delete(rt.key===null?$e:rt.key),z=v(rt,z,$e),Ae===null?Te=rt:Ae.sibling=rt,Ae=rt);return n&&De.forEach(function(yC){return o(H,yC)}),pt&&Go(H,$e),Te}function wt(H,z,K,ge){if(typeof K=="object"&&K!==null&&K.type===L&&K.key===null&&(K=K.props.children),typeof K=="object"&&K!==null){switch(K.$$typeof){case j:e:{for(var Te=K.key,Ae=z;Ae!==null;){if(Ae.key===Te){if(Te=K.type,Te===L){if(Ae.tag===7){a(H,Ae.sibling),z=h(Ae,K.props.children),z.return=H,H=z;break e}}else if(Ae.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===B&&zg(Te)===Ae.type){a(H,Ae.sibling),z=h(Ae,K.props),z.ref=ba(H,Ae,K),z.return=H,H=z;break e}a(H,Ae);break}else o(H,Ae);Ae=Ae.sibling}K.type===L?(z=rs(K.props.children,H.mode,ge,K.key),z.return=H,H=z):(ge=_u(K.type,K.key,K.props,null,H.mode,ge),ge.ref=ba(H,z,K),ge.return=H,H=ge)}return _(H);case O:e:{for(Ae=K.key;z!==null;){if(z.key===Ae)if(z.tag===4&&z.stateNode.containerInfo===K.containerInfo&&z.stateNode.implementation===K.implementation){a(H,z.sibling),z=h(z,K.children||[]),z.return=H,H=z;break e}else{a(H,z);break}else o(H,z);z=z.sibling}z=Rf(K,H.mode,ge),z.return=H,H=z}return _(H);case B:return Ae=K._init,wt(H,z,Ae(K._payload),ge)}if(Pe(K))return _e(H,z,K,ge);if(V(K))return ke(H,z,K,ge);nu(H,K)}return typeof K=="string"&&K!==""||typeof K=="number"?(K=""+K,z!==null&&z.tag===6?(a(H,z.sibling),z=h(z,K),z.return=H,H=z):(a(H,z),z=Ef(K,H.mode,ge),z.return=H,H=z),_(H)):a(H,z)}return wt}var Js=Vg(!0),Bg=Vg(!1),ru=co(null),ou=null,Zs=null,Ad=null;function Dd(){Ad=Zs=ou=null}function Id(n){var o=ru.current;ct(ru),n._currentValue=o}function Md(n,o,a){for(;n!==null;){var c=n.alternate;if((n.childLanes&o)!==o?(n.childLanes|=o,c!==null&&(c.childLanes|=o)):c!==null&&(c.childLanes&o)!==o&&(c.childLanes|=o),n===a)break;n=n.return}}function ei(n,o){ou=n,Ad=Zs=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&o)!==0&&(an=!0),n.firstContext=null)}function Pn(n){var o=n._currentValue;if(Ad!==n)if(n={context:n,memoizedValue:o,next:null},Zs===null){if(ou===null)throw Error(r(308));Zs=n,ou.dependencies={lanes:0,firstContext:n}}else Zs=Zs.next=n;return o}var Xo=null;function $d(n){Xo===null?Xo=[n]:Xo.push(n)}function Ug(n,o,a,c){var h=o.interleaved;return h===null?(a.next=a,$d(o)):(a.next=h.next,h.next=a),o.interleaved=a,Ar(n,c)}function Ar(n,o){n.lanes|=o;var a=n.alternate;for(a!==null&&(a.lanes|=o),a=n,n=n.return;n!==null;)n.childLanes|=o,a=n.alternate,a!==null&&(a.childLanes|=o),a=n,n=n.return;return a.tag===3?a.stateNode:null}var ho=!1;function Ld(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Hg(n,o){n=n.updateQueue,o.updateQueue===n&&(o.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function Dr(n,o){return{eventTime:n,lane:o,tag:0,payload:null,callback:null,next:null}}function mo(n,o,a){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(nt&2)!==0){var h=c.pending;return h===null?o.next=o:(o.next=h.next,h.next=o),c.pending=o,Ar(n,a)}return h=c.interleaved,h===null?(o.next=o,$d(c)):(o.next=h.next,h.next=o),c.interleaved=o,Ar(n,a)}function su(n,o,a){if(o=o.updateQueue,o!==null&&(o=o.shared,(a&4194240)!==0)){var c=o.lanes;c&=n.pendingLanes,a|=c,o.lanes=a,Jc(n,a)}}function Wg(n,o){var a=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,a===c)){var h=null,v=null;if(a=a.firstBaseUpdate,a!==null){do{var _={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};v===null?h=v=_:v=v.next=_,a=a.next}while(a!==null);v===null?h=v=o:v=v.next=o}else h=v=o;a={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:v,shared:c.shared,effects:c.effects},n.updateQueue=a;return}n=a.lastBaseUpdate,n===null?a.firstBaseUpdate=o:n.next=o,a.lastBaseUpdate=o}function iu(n,o,a,c){var h=n.updateQueue;ho=!1;var v=h.firstBaseUpdate,_=h.lastBaseUpdate,D=h.shared.pending;if(D!==null){h.shared.pending=null;var $=D,Y=$.next;$.next=null,_===null?v=Y:_.next=Y,_=$;var ae=n.alternate;ae!==null&&(ae=ae.updateQueue,D=ae.lastBaseUpdate,D!==_&&(D===null?ae.firstBaseUpdate=Y:D.next=Y,ae.lastBaseUpdate=$))}if(v!==null){var de=h.baseState;_=0,ae=Y=$=null,D=v;do{var ie=D.lane,xe=D.eventTime;if((c&ie)===ie){ae!==null&&(ae=ae.next={eventTime:xe,lane:0,tag:D.tag,payload:D.payload,callback:D.callback,next:null});e:{var _e=n,ke=D;switch(ie=o,xe=a,ke.tag){case 1:if(_e=ke.payload,typeof _e=="function"){de=_e.call(xe,de,ie);break e}de=_e;break e;case 3:_e.flags=_e.flags&-65537|128;case 0:if(_e=ke.payload,ie=typeof _e=="function"?_e.call(xe,de,ie):_e,ie==null)break e;de=W({},de,ie);break e;case 2:ho=!0}}D.callback!==null&&D.lane!==0&&(n.flags|=64,ie=h.effects,ie===null?h.effects=[D]:ie.push(D))}else xe={eventTime:xe,lane:ie,tag:D.tag,payload:D.payload,callback:D.callback,next:null},ae===null?(Y=ae=xe,$=de):ae=ae.next=xe,_|=ie;if(D=D.next,D===null){if(D=h.shared.pending,D===null)break;ie=D,D=ie.next,ie.next=null,h.lastBaseUpdate=ie,h.shared.pending=null}}while(!0);if(ae===null&&($=de),h.baseState=$,h.firstBaseUpdate=Y,h.lastBaseUpdate=ae,o=h.shared.interleaved,o!==null){h=o;do _|=h.lane,h=h.next;while(h!==o)}else v===null&&(h.shared.lanes=0);Zo|=_,n.lanes=_,n.memoizedState=de}}function Qg(n,o,a){if(n=o.effects,o.effects=null,n!==null)for(o=0;o<n.length;o++){var c=n[o],h=c.callback;if(h!==null){if(c.callback=null,c=a,typeof h!="function")throw Error(r(191,h));h.call(c)}}}var wa={},dr=co(wa),Sa=co(wa),xa=co(wa);function Yo(n){if(n===wa)throw Error(r(174));return n}function Fd(n,o){switch(lt(xa,o),lt(Sa,n),lt(dr,wa),n=o.nodeType,n){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Je(null,"");break;default:n=n===8?o.parentNode:o,o=n.namespaceURI||null,n=n.tagName,o=Je(o,n)}ct(dr),lt(dr,o)}function ti(){ct(dr),ct(Sa),ct(xa)}function qg(n){Yo(xa.current);var o=Yo(dr.current),a=Je(o,n.type);o!==a&&(lt(Sa,n),lt(dr,a))}function zd(n){Sa.current===n&&(ct(dr),ct(Sa))}var ht=co(0);function au(n){for(var o=n;o!==null;){if(o.tag===13){var a=o.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Vd=[];function Bd(){for(var n=0;n<Vd.length;n++)Vd[n]._workInProgressVersionPrimary=null;Vd.length=0}var lu=T.ReactCurrentDispatcher,Ud=T.ReactCurrentBatchConfig,Jo=0,mt=null,kt=null,jt=null,uu=!1,Ca=!1,Ea=0,z1=0;function Qt(){throw Error(r(321))}function Hd(n,o){if(o===null)return!1;for(var a=0;a<o.length&&a<n.length;a++)if(!Un(n[a],o[a]))return!1;return!0}function Wd(n,o,a,c,h,v){if(Jo=v,mt=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,lu.current=n===null||n.memoizedState===null?H1:W1,n=a(c,h),Ca){v=0;do{if(Ca=!1,Ea=0,25<=v)throw Error(r(301));v+=1,jt=kt=null,o.updateQueue=null,lu.current=Q1,n=a(c,h)}while(Ca)}if(lu.current=fu,o=kt!==null&&kt.next!==null,Jo=0,jt=kt=mt=null,uu=!1,o)throw Error(r(300));return n}function Qd(){var n=Ea!==0;return Ea=0,n}function fr(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jt===null?mt.memoizedState=jt=n:jt=jt.next=n,jt}function Tn(){if(kt===null){var n=mt.alternate;n=n!==null?n.memoizedState:null}else n=kt.next;var o=jt===null?mt.memoizedState:jt.next;if(o!==null)jt=o,kt=n;else{if(n===null)throw Error(r(310));kt=n,n={memoizedState:kt.memoizedState,baseState:kt.baseState,baseQueue:kt.baseQueue,queue:kt.queue,next:null},jt===null?mt.memoizedState=jt=n:jt=jt.next=n}return jt}function Ra(n,o){return typeof o=="function"?o(n):o}function qd(n){var o=Tn(),a=o.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var c=kt,h=c.baseQueue,v=a.pending;if(v!==null){if(h!==null){var _=h.next;h.next=v.next,v.next=_}c.baseQueue=h=v,a.pending=null}if(h!==null){v=h.next,c=c.baseState;var D=_=null,$=null,Y=v;do{var ae=Y.lane;if((Jo&ae)===ae)$!==null&&($=$.next={lane:0,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),c=Y.hasEagerState?Y.eagerState:n(c,Y.action);else{var de={lane:ae,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null};$===null?(D=$=de,_=c):$=$.next=de,mt.lanes|=ae,Zo|=ae}Y=Y.next}while(Y!==null&&Y!==v);$===null?_=c:$.next=D,Un(c,o.memoizedState)||(an=!0),o.memoizedState=c,o.baseState=_,o.baseQueue=$,a.lastRenderedState=c}if(n=a.interleaved,n!==null){h=n;do v=h.lane,mt.lanes|=v,Zo|=v,h=h.next;while(h!==n)}else h===null&&(a.lanes=0);return[o.memoizedState,a.dispatch]}function Kd(n){var o=Tn(),a=o.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var c=a.dispatch,h=a.pending,v=o.memoizedState;if(h!==null){a.pending=null;var _=h=h.next;do v=n(v,_.action),_=_.next;while(_!==h);Un(v,o.memoizedState)||(an=!0),o.memoizedState=v,o.baseQueue===null&&(o.baseState=v),a.lastRenderedState=v}return[v,c]}function Kg(){}function Gg(n,o){var a=mt,c=Tn(),h=o(),v=!Un(c.memoizedState,h);if(v&&(c.memoizedState=h,an=!0),c=c.queue,Gd(Jg.bind(null,a,c,n),[n]),c.getSnapshot!==o||v||jt!==null&&jt.memoizedState.tag&1){if(a.flags|=2048,_a(9,Yg.bind(null,a,c,h,o),void 0,null),Ot===null)throw Error(r(349));(Jo&30)!==0||Xg(a,o,h)}return h}function Xg(n,o,a){n.flags|=16384,n={getSnapshot:o,value:a},o=mt.updateQueue,o===null?(o={lastEffect:null,stores:null},mt.updateQueue=o,o.stores=[n]):(a=o.stores,a===null?o.stores=[n]:a.push(n))}function Yg(n,o,a,c){o.value=a,o.getSnapshot=c,Zg(o)&&ev(n)}function Jg(n,o,a){return a(function(){Zg(o)&&ev(n)})}function Zg(n){var o=n.getSnapshot;n=n.value;try{var a=o();return!Un(n,a)}catch{return!0}}function ev(n){var o=Ar(n,1);o!==null&&Kn(o,n,1,-1)}function tv(n){var o=fr();return typeof n=="function"&&(n=n()),o.memoizedState=o.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:n},o.queue=n,n=n.dispatch=U1.bind(null,mt,n),[o.memoizedState,n]}function _a(n,o,a,c){return n={tag:n,create:o,destroy:a,deps:c,next:null},o=mt.updateQueue,o===null?(o={lastEffect:null,stores:null},mt.updateQueue=o,o.lastEffect=n.next=n):(a=o.lastEffect,a===null?o.lastEffect=n.next=n:(c=a.next,a.next=n,n.next=c,o.lastEffect=n)),n}function nv(){return Tn().memoizedState}function cu(n,o,a,c){var h=fr();mt.flags|=n,h.memoizedState=_a(1|o,a,void 0,c===void 0?null:c)}function du(n,o,a,c){var h=Tn();c=c===void 0?null:c;var v=void 0;if(kt!==null){var _=kt.memoizedState;if(v=_.destroy,c!==null&&Hd(c,_.deps)){h.memoizedState=_a(o,a,v,c);return}}mt.flags|=n,h.memoizedState=_a(1|o,a,v,c)}function rv(n,o){return cu(8390656,8,n,o)}function Gd(n,o){return du(2048,8,n,o)}function ov(n,o){return du(4,2,n,o)}function sv(n,o){return du(4,4,n,o)}function iv(n,o){if(typeof o=="function")return n=n(),o(n),function(){o(null)};if(o!=null)return n=n(),o.current=n,function(){o.current=null}}function av(n,o,a){return a=a!=null?a.concat([n]):null,du(4,4,iv.bind(null,o,n),a)}function Xd(){}function lv(n,o){var a=Tn();o=o===void 0?null:o;var c=a.memoizedState;return c!==null&&o!==null&&Hd(o,c[1])?c[0]:(a.memoizedState=[n,o],n)}function uv(n,o){var a=Tn();o=o===void 0?null:o;var c=a.memoizedState;return c!==null&&o!==null&&Hd(o,c[1])?c[0]:(n=n(),a.memoizedState=[n,o],n)}function cv(n,o,a){return(Jo&21)===0?(n.baseState&&(n.baseState=!1,an=!0),n.memoizedState=a):(Un(a,o)||(a=zm(),mt.lanes|=a,Zo|=a,n.baseState=!0),o)}function V1(n,o){var a=it;it=a!==0&&4>a?a:4,n(!0);var c=Ud.transition;Ud.transition={};try{n(!1),o()}finally{it=a,Ud.transition=c}}function dv(){return Tn().memoizedState}function B1(n,o,a){var c=bo(n);if(a={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null},fv(n))pv(o,a);else if(a=Ug(n,o,a,c),a!==null){var h=Zt();Kn(a,n,c,h),hv(a,o,c)}}function U1(n,o,a){var c=bo(n),h={lane:c,action:a,hasEagerState:!1,eagerState:null,next:null};if(fv(n))pv(o,h);else{var v=n.alternate;if(n.lanes===0&&(v===null||v.lanes===0)&&(v=o.lastRenderedReducer,v!==null))try{var _=o.lastRenderedState,D=v(_,a);if(h.hasEagerState=!0,h.eagerState=D,Un(D,_)){var $=o.interleaved;$===null?(h.next=h,$d(o)):(h.next=$.next,$.next=h),o.interleaved=h;return}}catch{}finally{}a=Ug(n,o,h,c),a!==null&&(h=Zt(),Kn(a,n,c,h),hv(a,o,c))}}function fv(n){var o=n.alternate;return n===mt||o!==null&&o===mt}function pv(n,o){Ca=uu=!0;var a=n.pending;a===null?o.next=o:(o.next=a.next,a.next=o),n.pending=o}function hv(n,o,a){if((a&4194240)!==0){var c=o.lanes;c&=n.pendingLanes,a|=c,o.lanes=a,Jc(n,a)}}var fu={readContext:Pn,useCallback:Qt,useContext:Qt,useEffect:Qt,useImperativeHandle:Qt,useInsertionEffect:Qt,useLayoutEffect:Qt,useMemo:Qt,useReducer:Qt,useRef:Qt,useState:Qt,useDebugValue:Qt,useDeferredValue:Qt,useTransition:Qt,useMutableSource:Qt,useSyncExternalStore:Qt,useId:Qt,unstable_isNewReconciler:!1},H1={readContext:Pn,useCallback:function(n,o){return fr().memoizedState=[n,o===void 0?null:o],n},useContext:Pn,useEffect:rv,useImperativeHandle:function(n,o,a){return a=a!=null?a.concat([n]):null,cu(4194308,4,iv.bind(null,o,n),a)},useLayoutEffect:function(n,o){return cu(4194308,4,n,o)},useInsertionEffect:function(n,o){return cu(4,2,n,o)},useMemo:function(n,o){var a=fr();return o=o===void 0?null:o,n=n(),a.memoizedState=[n,o],n},useReducer:function(n,o,a){var c=fr();return o=a!==void 0?a(o):o,c.memoizedState=c.baseState=o,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:o},c.queue=n,n=n.dispatch=B1.bind(null,mt,n),[c.memoizedState,n]},useRef:function(n){var o=fr();return n={current:n},o.memoizedState=n},useState:tv,useDebugValue:Xd,useDeferredValue:function(n){return fr().memoizedState=n},useTransition:function(){var n=tv(!1),o=n[0];return n=V1.bind(null,n[1]),fr().memoizedState=n,[o,n]},useMutableSource:function(){},useSyncExternalStore:function(n,o,a){var c=mt,h=fr();if(pt){if(a===void 0)throw Error(r(407));a=a()}else{if(a=o(),Ot===null)throw Error(r(349));(Jo&30)!==0||Xg(c,o,a)}h.memoizedState=a;var v={value:a,getSnapshot:o};return h.queue=v,rv(Jg.bind(null,c,v,n),[n]),c.flags|=2048,_a(9,Yg.bind(null,c,v,a,o),void 0,null),a},useId:function(){var n=fr(),o=Ot.identifierPrefix;if(pt){var a=Or,c=jr;a=(c&~(1<<32-Bn(c)-1)).toString(32)+a,o=":"+o+"R"+a,a=Ea++,0<a&&(o+="H"+a.toString(32)),o+=":"}else a=z1++,o=":"+o+"r"+a.toString(32)+":";return n.memoizedState=o},unstable_isNewReconciler:!1},W1={readContext:Pn,useCallback:lv,useContext:Pn,useEffect:Gd,useImperativeHandle:av,useInsertionEffect:ov,useLayoutEffect:sv,useMemo:uv,useReducer:qd,useRef:nv,useState:function(){return qd(Ra)},useDebugValue:Xd,useDeferredValue:function(n){var o=Tn();return cv(o,kt.memoizedState,n)},useTransition:function(){var n=qd(Ra)[0],o=Tn().memoizedState;return[n,o]},useMutableSource:Kg,useSyncExternalStore:Gg,useId:dv,unstable_isNewReconciler:!1},Q1={readContext:Pn,useCallback:lv,useContext:Pn,useEffect:Gd,useImperativeHandle:av,useInsertionEffect:ov,useLayoutEffect:sv,useMemo:uv,useReducer:Kd,useRef:nv,useState:function(){return Kd(Ra)},useDebugValue:Xd,useDeferredValue:function(n){var o=Tn();return kt===null?o.memoizedState=n:cv(o,kt.memoizedState,n)},useTransition:function(){var n=Kd(Ra)[0],o=Tn().memoizedState;return[n,o]},useMutableSource:Kg,useSyncExternalStore:Gg,useId:dv,unstable_isNewReconciler:!1};function Wn(n,o){if(n&&n.defaultProps){o=W({},o),n=n.defaultProps;for(var a in n)o[a]===void 0&&(o[a]=n[a]);return o}return o}function Yd(n,o,a,c){o=n.memoizedState,a=a(c,o),a=a==null?o:W({},o,a),n.memoizedState=a,n.lanes===0&&(n.updateQueue.baseState=a)}var pu={isMounted:function(n){return(n=n._reactInternals)?tt(n)===n:!1},enqueueSetState:function(n,o,a){n=n._reactInternals;var c=Zt(),h=bo(n),v=Dr(c,h);v.payload=o,a!=null&&(v.callback=a),o=mo(n,v,h),o!==null&&(Kn(o,n,h,c),su(o,n,h))},enqueueReplaceState:function(n,o,a){n=n._reactInternals;var c=Zt(),h=bo(n),v=Dr(c,h);v.tag=1,v.payload=o,a!=null&&(v.callback=a),o=mo(n,v,h),o!==null&&(Kn(o,n,h,c),su(o,n,h))},enqueueForceUpdate:function(n,o){n=n._reactInternals;var a=Zt(),c=bo(n),h=Dr(a,c);h.tag=2,o!=null&&(h.callback=o),o=mo(n,h,c),o!==null&&(Kn(o,n,c,a),su(o,n,c))}};function mv(n,o,a,c,h,v,_){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(c,v,_):o.prototype&&o.prototype.isPureReactComponent?!fa(a,c)||!fa(h,v):!0}function gv(n,o,a){var c=!1,h=fo,v=o.contextType;return typeof v=="object"&&v!==null?v=Pn(v):(h=sn(o)?qo:Wt.current,c=o.contextTypes,v=(c=c!=null)?Ks(n,h):fo),o=new o(a,v),n.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=pu,n.stateNode=o,o._reactInternals=n,c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=h,n.__reactInternalMemoizedMaskedChildContext=v),o}function vv(n,o,a,c){n=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(a,c),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(a,c),o.state!==n&&pu.enqueueReplaceState(o,o.state,null)}function Jd(n,o,a,c){var h=n.stateNode;h.props=a,h.state=n.memoizedState,h.refs={},Ld(n);var v=o.contextType;typeof v=="object"&&v!==null?h.context=Pn(v):(v=sn(o)?qo:Wt.current,h.context=Ks(n,v)),h.state=n.memoizedState,v=o.getDerivedStateFromProps,typeof v=="function"&&(Yd(n,o,v,a),h.state=n.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(o=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),o!==h.state&&pu.enqueueReplaceState(h,h.state,null),iu(n,a,h,c),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308)}function ni(n,o){try{var a="",c=o;do a+=X(c),c=c.return;while(c);var h=a}catch(v){h=`
39
39
  Error generating stack: `+v.message+`
40
- `+v.stack}return{value:n,source:o,stack:h,digest:null}}function Zd(n,o,a){return{value:n,source:null,stack:a??null,digest:o??null}}function ef(n,o){try{console.error(o.value)}catch(a){setTimeout(function(){throw a})}}var q1=typeof WeakMap=="function"?WeakMap:Map;function yv(n,o,a){a=Ar(-1,a),a.tag=3,a.payload={element:null};var c=o.value;return a.callback=function(){wu||(wu=!0,gf=c),ef(n,o)},a}function bv(n,o,a){a=Ar(-1,a),a.tag=3;var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var h=o.value;a.payload=function(){return c(h)},a.callback=function(){ef(n,o)}}var v=n.stateNode;return v!==null&&typeof v.componentDidCatch=="function"&&(a.callback=function(){ef(n,o),typeof c!="function"&&(vo===null?vo=new Set([this]):vo.add(this));var _=o.stack;this.componentDidCatch(o.value,{componentStack:_!==null?_:""})}),a}function wv(n,o,a){var c=n.pingCache;if(c===null){c=n.pingCache=new q1;var h=new Set;c.set(o,h)}else h=c.get(o),h===void 0&&(h=new Set,c.set(o,h));h.has(a)||(h.add(a),n=aC.bind(null,n,o,a),o.then(n,n))}function Sv(n){do{var o;if((o=n.tag===13)&&(o=n.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return n;n=n.return}while(n!==null);return null}function xv(n,o,a,c,h){return(n.mode&1)===0?(n===o?n.flags|=65536:(n.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(o=Ar(-1,1),o.tag=2,mo(a,o,1))),a.lanes|=1),n):(n.flags|=65536,n.lanes=h,n)}var K1=T.ReactCurrentOwner,an=!1;function Jt(n,o,a,c){o.child=n===null?Bg(o,null,a,c):Js(o,n.child,a,c)}function Cv(n,o,a,c,h){a=a.render;var v=o.ref;return ei(o,h),c=Wd(n,o,a,c,v,h),a=Qd(),n!==null&&!an?(o.updateQueue=n.updateQueue,o.flags&=-2053,n.lanes&=~h,Dr(n,o,h)):(pt&&a&&kd(o),o.flags|=1,Jt(n,o,c,h),o.child)}function Ev(n,o,a,c,h){if(n===null){var v=a.type;return typeof v=="function"&&!Cf(v)&&v.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(o.tag=15,o.type=v,Rv(n,o,v,c,h)):(n=_u(a.type,null,c,o,o.mode,h),n.ref=o.ref,n.return=o,o.child=n)}if(v=n.child,(n.lanes&h)===0){var _=v.memoizedProps;if(a=a.compare,a=a!==null?a:fa,a(_,c)&&n.ref===o.ref)return Dr(n,o,h)}return o.flags|=1,n=So(v,c),n.ref=o.ref,n.return=o,o.child=n}function Rv(n,o,a,c,h){if(n!==null){var v=n.memoizedProps;if(fa(v,c)&&n.ref===o.ref)if(an=!1,o.pendingProps=c=v,(n.lanes&h)!==0)(n.flags&131072)!==0&&(an=!0);else return o.lanes=n.lanes,Dr(n,o,h)}return tf(n,o,a,c,h)}function _v(n,o,a){var c=o.pendingProps,h=c.children,v=n!==null?n.memoizedState:null;if(c.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},lt(oi,Sn),Sn|=a;else{if((a&1073741824)===0)return n=v!==null?v.baseLanes|a:a,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:n,cachePool:null,transitions:null},o.updateQueue=null,lt(oi,Sn),Sn|=n,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=v!==null?v.baseLanes:a,lt(oi,Sn),Sn|=c}else v!==null?(c=v.baseLanes|a,o.memoizedState=null):c=a,lt(oi,Sn),Sn|=c;return Jt(n,o,h,a),o.child}function Pv(n,o){var a=o.ref;(n===null&&a!==null||n!==null&&n.ref!==a)&&(o.flags|=512,o.flags|=2097152)}function tf(n,o,a,c,h){var v=sn(a)?qo:Wt.current;return v=Ks(o,v),ei(o,h),a=Wd(n,o,a,c,v,h),c=Qd(),n!==null&&!an?(o.updateQueue=n.updateQueue,o.flags&=-2053,n.lanes&=~h,Dr(n,o,h)):(pt&&c&&kd(o),o.flags|=1,Jt(n,o,a,h),o.child)}function kv(n,o,a,c,h){if(sn(a)){var v=!0;Yl(o)}else v=!1;if(ei(o,h),o.stateNode===null)mu(n,o),gv(o,a,c),Jd(o,a,c,h),c=!0;else if(n===null){var _=o.stateNode,D=o.memoizedProps;_.props=D;var $=_.context,Y=a.contextType;typeof Y=="object"&&Y!==null?Y=kn(Y):(Y=sn(a)?qo:Wt.current,Y=Ks(o,Y));var ae=a.getDerivedStateFromProps,de=typeof ae=="function"||typeof _.getSnapshotBeforeUpdate=="function";de||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(D!==c||$!==Y)&&vv(o,_,c,Y),ho=!1;var ie=o.memoizedState;_.state=ie,iu(o,c,_,h),$=o.memoizedState,D!==c||ie!==$||on.current||ho?(typeof ae=="function"&&(Yd(o,a,ae,c),$=o.memoizedState),(D=ho||mv(o,a,D,c,ie,$,Y))?(de||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(o.flags|=4194308)):(typeof _.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=c,o.memoizedState=$),_.props=c,_.state=$,_.context=Y,c=D):(typeof _.componentDidMount=="function"&&(o.flags|=4194308),c=!1)}else{_=o.stateNode,Hg(n,o),D=o.memoizedProps,Y=o.type===o.elementType?D:Wn(o.type,D),_.props=Y,de=o.pendingProps,ie=_.context,$=a.contextType,typeof $=="object"&&$!==null?$=kn($):($=sn(a)?qo:Wt.current,$=Ks(o,$));var xe=a.getDerivedStateFromProps;(ae=typeof xe=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(D!==de||ie!==$)&&vv(o,_,c,$),ho=!1,ie=o.memoizedState,_.state=ie,iu(o,c,_,h);var _e=o.memoizedState;D!==de||ie!==_e||on.current||ho?(typeof xe=="function"&&(Yd(o,a,xe,c),_e=o.memoizedState),(Y=ho||mv(o,a,Y,c,ie,_e,$)||!1)?(ae||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(c,_e,$),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(c,_e,$)),typeof _.componentDidUpdate=="function"&&(o.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof _.componentDidUpdate!="function"||D===n.memoizedProps&&ie===n.memoizedState||(o.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||D===n.memoizedProps&&ie===n.memoizedState||(o.flags|=1024),o.memoizedProps=c,o.memoizedState=_e),_.props=c,_.state=_e,_.context=$,c=Y):(typeof _.componentDidUpdate!="function"||D===n.memoizedProps&&ie===n.memoizedState||(o.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||D===n.memoizedProps&&ie===n.memoizedState||(o.flags|=1024),c=!1)}return nf(n,o,a,c,v,h)}function nf(n,o,a,c,h,v){Pv(n,o);var _=(o.flags&128)!==0;if(!c&&!_)return h&&Ag(o,a,!1),Dr(n,o,v);c=o.stateNode,K1.current=o;var D=_&&typeof a.getDerivedStateFromError!="function"?null:c.render();return o.flags|=1,n!==null&&_?(o.child=Js(o,n.child,null,v),o.child=Js(o,null,D,v)):Jt(n,o,D,v),o.memoizedState=c.state,h&&Ag(o,a,!0),o.child}function Tv(n){var o=n.stateNode;o.pendingContext?jg(n,o.pendingContext,o.pendingContext!==o.context):o.context&&jg(n,o.context,!1),Fd(n,o.containerInfo)}function Nv(n,o,a,c,h){return Ys(),Od(h),o.flags|=256,Jt(n,o,a,c),o.child}var rf={dehydrated:null,treeContext:null,retryLane:0};function of(n){return{baseLanes:n,cachePool:null,transitions:null}}function jv(n,o,a){var c=o.pendingProps,h=ht.current,v=!1,_=(o.flags&128)!==0,D;if((D=_)||(D=n!==null&&n.memoizedState===null?!1:(h&2)!==0),D?(v=!0,o.flags&=-129):(n===null||n.memoizedState!==null)&&(h|=1),lt(ht,h&1),n===null)return jd(o),n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((o.mode&1)===0?o.lanes=1:n.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(_=c.children,n=c.fallback,v?(c=o.mode,v=o.child,_={mode:"hidden",children:_},(c&1)===0&&v!==null?(v.childLanes=0,v.pendingProps=_):v=Pu(_,c,0,null),n=rs(n,c,a,null),v.return=o,n.return=o,v.sibling=n,o.child=v,o.child.memoizedState=of(a),o.memoizedState=rf,n):sf(o,_));if(h=n.memoizedState,h!==null&&(D=h.dehydrated,D!==null))return G1(n,o,_,c,D,h,a);if(v){v=c.fallback,_=o.mode,h=n.child,D=h.sibling;var $={mode:"hidden",children:c.children};return(_&1)===0&&o.child!==h?(c=o.child,c.childLanes=0,c.pendingProps=$,o.deletions=null):(c=So(h,$),c.subtreeFlags=h.subtreeFlags&14680064),D!==null?v=So(D,v):(v=rs(v,_,a,null),v.flags|=2),v.return=o,c.return=o,c.sibling=v,o.child=c,c=v,v=o.child,_=n.child.memoizedState,_=_===null?of(a):{baseLanes:_.baseLanes|a,cachePool:null,transitions:_.transitions},v.memoizedState=_,v.childLanes=n.childLanes&~a,o.memoizedState=rf,c}return v=n.child,n=v.sibling,c=So(v,{mode:"visible",children:c.children}),(o.mode&1)===0&&(c.lanes=a),c.return=o,c.sibling=null,n!==null&&(a=o.deletions,a===null?(o.deletions=[n],o.flags|=16):a.push(n)),o.child=c,o.memoizedState=null,c}function sf(n,o){return o=Pu({mode:"visible",children:o},n.mode,0,null),o.return=n,n.child=o}function hu(n,o,a,c){return c!==null&&Od(c),Js(o,n.child,null,a),n=sf(o,o.pendingProps.children),n.flags|=2,o.memoizedState=null,n}function G1(n,o,a,c,h,v,_){if(a)return o.flags&256?(o.flags&=-257,c=Zd(Error(r(422))),hu(n,o,_,c)):o.memoizedState!==null?(o.child=n.child,o.flags|=128,null):(v=c.fallback,h=o.mode,c=Pu({mode:"visible",children:c.children},h,0,null),v=rs(v,h,_,null),v.flags|=2,c.return=o,v.return=o,c.sibling=v,o.child=c,(o.mode&1)!==0&&Js(o,n.child,null,_),o.child.memoizedState=of(_),o.memoizedState=rf,v);if((o.mode&1)===0)return hu(n,o,_,null);if(h.data==="$!"){if(c=h.nextSibling&&h.nextSibling.dataset,c)var D=c.dgst;return c=D,v=Error(r(419)),c=Zd(v,c,void 0),hu(n,o,_,c)}if(D=(_&n.childLanes)!==0,an||D){if(c=Ot,c!==null){switch(_&-_){case 4:h=2;break;case 16:h=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:h=32;break;case 536870912:h=268435456;break;default:h=0}h=(h&(c.suspendedLanes|_))!==0?0:h,h!==0&&h!==v.retryLane&&(v.retryLane=h,Or(n,h),Kn(c,n,h,-1))}return xf(),c=Zd(Error(r(421))),hu(n,o,_,c)}return h.data==="$?"?(o.flags|=128,o.child=n.child,o=lC.bind(null,n),h._reactRetry=o,null):(n=v.treeContext,wn=uo(h.nextSibling),bn=o,pt=!0,Hn=null,n!==null&&(_n[Pn++]=Nr,_n[Pn++]=jr,_n[Pn++]=Ko,Nr=n.id,jr=n.overflow,Ko=o),o=sf(o,c.children),o.flags|=4096,o)}function Ov(n,o,a){n.lanes|=o;var c=n.alternate;c!==null&&(c.lanes|=o),Md(n.return,o,a)}function af(n,o,a,c,h){var v=n.memoizedState;v===null?n.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:c,tail:a,tailMode:h}:(v.isBackwards=o,v.rendering=null,v.renderingStartTime=0,v.last=c,v.tail=a,v.tailMode=h)}function Av(n,o,a){var c=o.pendingProps,h=c.revealOrder,v=c.tail;if(Jt(n,o,c.children,a),c=ht.current,(c&2)!==0)c=c&1|2,o.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=o.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Ov(n,a,o);else if(n.tag===19)Ov(n,a,o);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===o)break e;for(;n.sibling===null;){if(n.return===null||n.return===o)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}c&=1}if(lt(ht,c),(o.mode&1)===0)o.memoizedState=null;else switch(h){case"forwards":for(a=o.child,h=null;a!==null;)n=a.alternate,n!==null&&au(n)===null&&(h=a),a=a.sibling;a=h,a===null?(h=o.child,o.child=null):(h=a.sibling,a.sibling=null),af(o,!1,h,a,v);break;case"backwards":for(a=null,h=o.child,o.child=null;h!==null;){if(n=h.alternate,n!==null&&au(n)===null){o.child=h;break}n=h.sibling,h.sibling=a,a=h,h=n}af(o,!0,a,null,v);break;case"together":af(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function mu(n,o){(o.mode&1)===0&&n!==null&&(n.alternate=null,o.alternate=null,o.flags|=2)}function Dr(n,o,a){if(n!==null&&(o.dependencies=n.dependencies),Zo|=o.lanes,(a&o.childLanes)===0)return null;if(n!==null&&o.child!==n.child)throw Error(r(153));if(o.child!==null){for(n=o.child,a=So(n,n.pendingProps),o.child=a,a.return=o;n.sibling!==null;)n=n.sibling,a=a.sibling=So(n,n.pendingProps),a.return=o;a.sibling=null}return o.child}function X1(n,o,a){switch(o.tag){case 3:Tv(o),Ys();break;case 5:qg(o);break;case 1:sn(o.type)&&Yl(o);break;case 4:Fd(o,o.stateNode.containerInfo);break;case 10:var c=o.type._context,h=o.memoizedProps.value;lt(ru,c._currentValue),c._currentValue=h;break;case 13:if(c=o.memoizedState,c!==null)return c.dehydrated!==null?(lt(ht,ht.current&1),o.flags|=128,null):(a&o.child.childLanes)!==0?jv(n,o,a):(lt(ht,ht.current&1),n=Dr(n,o,a),n!==null?n.sibling:null);lt(ht,ht.current&1);break;case 19:if(c=(a&o.childLanes)!==0,(n.flags&128)!==0){if(c)return Av(n,o,a);o.flags|=128}if(h=o.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),lt(ht,ht.current),c)break;return null;case 22:case 23:return o.lanes=0,_v(n,o,a)}return Dr(n,o,a)}var Dv,lf,Iv,Mv;Dv=function(n,o){for(var a=o.child;a!==null;){if(a.tag===5||a.tag===6)n.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},lf=function(){},Iv=function(n,o,a,c){var h=n.memoizedProps;if(h!==c){n=o.stateNode,Yo(cr.current);var v=null;switch(a){case"input":h=ft(n,h),c=ft(n,c),v=[];break;case"select":h=W({},h,{value:void 0}),c=W({},c,{value:void 0}),v=[];break;case"textarea":h=Fe(n,h),c=Fe(n,c),v=[];break;default:typeof h.onClick!="function"&&typeof c.onClick=="function"&&(n.onclick=Kl)}Lt(a,c);var _;a=null;for(Y in h)if(!c.hasOwnProperty(Y)&&h.hasOwnProperty(Y)&&h[Y]!=null)if(Y==="style"){var D=h[Y];for(_ in D)D.hasOwnProperty(_)&&(a||(a={}),a[_]="")}else Y!=="dangerouslySetInnerHTML"&&Y!=="children"&&Y!=="suppressContentEditableWarning"&&Y!=="suppressHydrationWarning"&&Y!=="autoFocus"&&(i.hasOwnProperty(Y)?v||(v=[]):(v=v||[]).push(Y,null));for(Y in c){var $=c[Y];if(D=h!=null?h[Y]:void 0,c.hasOwnProperty(Y)&&$!==D&&($!=null||D!=null))if(Y==="style")if(D){for(_ in D)!D.hasOwnProperty(_)||$&&$.hasOwnProperty(_)||(a||(a={}),a[_]="");for(_ in $)$.hasOwnProperty(_)&&D[_]!==$[_]&&(a||(a={}),a[_]=$[_])}else a||(v||(v=[]),v.push(Y,a)),a=$;else Y==="dangerouslySetInnerHTML"?($=$?$.__html:void 0,D=D?D.__html:void 0,$!=null&&D!==$&&(v=v||[]).push(Y,$)):Y==="children"?typeof $!="string"&&typeof $!="number"||(v=v||[]).push(Y,""+$):Y!=="suppressContentEditableWarning"&&Y!=="suppressHydrationWarning"&&(i.hasOwnProperty(Y)?($!=null&&Y==="onScroll"&&ut("scroll",n),v||D===$||(v=[])):(v=v||[]).push(Y,$))}a&&(v=v||[]).push("style",a);var Y=v;(o.updateQueue=Y)&&(o.flags|=4)}},Mv=function(n,o,a,c){a!==c&&(o.flags|=4)};function Pa(n,o){if(!pt)switch(n.tailMode){case"hidden":o=n.tail;for(var a=null;o!==null;)o.alternate!==null&&(a=o),o=o.sibling;a===null?n.tail=null:a.sibling=null;break;case"collapsed":a=n.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?o||n.tail===null?n.tail=null:n.tail.sibling=null:c.sibling=null}}function qt(n){var o=n.alternate!==null&&n.alternate.child===n.child,a=0,c=0;if(o)for(var h=n.child;h!==null;)a|=h.lanes|h.childLanes,c|=h.subtreeFlags&14680064,c|=h.flags&14680064,h.return=n,h=h.sibling;else for(h=n.child;h!==null;)a|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=n,h=h.sibling;return n.subtreeFlags|=c,n.childLanes=a,o}function Y1(n,o,a){var c=o.pendingProps;switch(Td(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qt(o),null;case 1:return sn(o.type)&&Xl(),qt(o),null;case 3:return c=o.stateNode,ti(),ct(on),ct(Wt),Bd(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(n===null||n.child===null)&&(tu(o)?o.flags|=4:n===null||n.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Hn!==null&&(bf(Hn),Hn=null))),lf(n,o),qt(o),null;case 5:zd(o);var h=Yo(xa.current);if(a=o.type,n!==null&&o.stateNode!=null)Iv(n,o,a,c,h),n.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!c){if(o.stateNode===null)throw Error(r(166));return qt(o),null}if(n=Yo(cr.current),tu(o)){c=o.stateNode,a=o.type;var v=o.memoizedProps;switch(c[ur]=o,c[va]=v,n=(o.mode&1)!==0,a){case"dialog":ut("cancel",c),ut("close",c);break;case"iframe":case"object":case"embed":ut("load",c);break;case"video":case"audio":for(h=0;h<ha.length;h++)ut(ha[h],c);break;case"source":ut("error",c);break;case"img":case"image":case"link":ut("error",c),ut("load",c);break;case"details":ut("toggle",c);break;case"input":He(c,v),ut("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!v.multiple},ut("invalid",c);break;case"textarea":ze(c,v),ut("invalid",c)}Lt(a,v),h=null;for(var _ in v)if(v.hasOwnProperty(_)){var D=v[_];_==="children"?typeof D=="string"?c.textContent!==D&&(v.suppressHydrationWarning!==!0&&ql(c.textContent,D,n),h=["children",D]):typeof D=="number"&&c.textContent!==""+D&&(v.suppressHydrationWarning!==!0&&ql(c.textContent,D,n),h=["children",""+D]):i.hasOwnProperty(_)&&D!=null&&_==="onScroll"&&ut("scroll",c)}switch(a){case"input":Ue(c),pe(c,v,!0);break;case"textarea":Ue(c),oe(c);break;case"select":case"option":break;default:typeof v.onClick=="function"&&(c.onclick=Kl)}c=h,o.updateQueue=c,c!==null&&(o.flags|=4)}else{_=h.nodeType===9?h:h.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=Se(a)),n==="http://www.w3.org/1999/xhtml"?a==="script"?(n=_.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof c.is=="string"?n=_.createElement(a,{is:c.is}):(n=_.createElement(a),a==="select"&&(_=n,c.multiple?_.multiple=!0:c.size&&(_.size=c.size))):n=_.createElementNS(n,a),n[ur]=o,n[va]=c,Dv(n,o,!1,!1),o.stateNode=n;e:{switch(_=Pr(a,c),a){case"dialog":ut("cancel",n),ut("close",n),h=c;break;case"iframe":case"object":case"embed":ut("load",n),h=c;break;case"video":case"audio":for(h=0;h<ha.length;h++)ut(ha[h],n);h=c;break;case"source":ut("error",n),h=c;break;case"img":case"image":case"link":ut("error",n),ut("load",n),h=c;break;case"details":ut("toggle",n),h=c;break;case"input":He(n,c),h=ft(n,c),ut("invalid",n);break;case"option":h=c;break;case"select":n._wrapperState={wasMultiple:!!c.multiple},h=W({},c,{value:void 0}),ut("invalid",n);break;case"textarea":ze(n,c),h=Fe(n,c),ut("invalid",n);break;default:h=c}Lt(a,h),D=h;for(v in D)if(D.hasOwnProperty(v)){var $=D[v];v==="style"?_r(n,$):v==="dangerouslySetInnerHTML"?($=$?$.__html:void 0,$!=null&&Be(n,$)):v==="children"?typeof $=="string"?(a!=="textarea"||$!=="")&&Ge(n,$):typeof $=="number"&&Ge(n,""+$):v!=="suppressContentEditableWarning"&&v!=="suppressHydrationWarning"&&v!=="autoFocus"&&(i.hasOwnProperty(v)?$!=null&&v==="onScroll"&&ut("scroll",n):$!=null&&P(n,v,$,_))}switch(a){case"input":Ue(n),pe(n,c,!1);break;case"textarea":Ue(n),oe(n);break;case"option":c.value!=null&&n.setAttribute("value",""+fe(c.value));break;case"select":n.multiple=!!c.multiple,v=c.value,v!=null?Me(n,!!c.multiple,v,!1):c.defaultValue!=null&&Me(n,!!c.multiple,c.defaultValue,!0);break;default:typeof h.onClick=="function"&&(n.onclick=Kl)}switch(a){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return qt(o),null;case 6:if(n&&o.stateNode!=null)Mv(n,o,n.memoizedProps,c);else{if(typeof c!="string"&&o.stateNode===null)throw Error(r(166));if(a=Yo(xa.current),Yo(cr.current),tu(o)){if(c=o.stateNode,a=o.memoizedProps,c[ur]=o,(v=c.nodeValue!==a)&&(n=bn,n!==null))switch(n.tag){case 3:ql(c.nodeValue,a,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&ql(c.nodeValue,a,(n.mode&1)!==0)}v&&(o.flags|=4)}else c=(a.nodeType===9?a:a.ownerDocument).createTextNode(c),c[ur]=o,o.stateNode=c}return qt(o),null;case 13:if(ct(ht),c=o.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(pt&&wn!==null&&(o.mode&1)!==0&&(o.flags&128)===0)Fg(),Ys(),o.flags|=98560,v=!1;else if(v=tu(o),c!==null&&c.dehydrated!==null){if(n===null){if(!v)throw Error(r(318));if(v=o.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[ur]=o}else Ys(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;qt(o),v=!1}else Hn!==null&&(bf(Hn),Hn=null),v=!0;if(!v)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=a,o):(c=c!==null,c!==(n!==null&&n.memoizedState!==null)&&c&&(o.child.flags|=8192,(o.mode&1)!==0&&(n===null||(ht.current&1)!==0?kt===0&&(kt=3):xf())),o.updateQueue!==null&&(o.flags|=4),qt(o),null);case 4:return ti(),lf(n,o),n===null&&ma(o.stateNode.containerInfo),qt(o),null;case 10:return Id(o.type._context),qt(o),null;case 17:return sn(o.type)&&Xl(),qt(o),null;case 19:if(ct(ht),v=o.memoizedState,v===null)return qt(o),null;if(c=(o.flags&128)!==0,_=v.rendering,_===null)if(c)Pa(v,!1);else{if(kt!==0||n!==null&&(n.flags&128)!==0)for(n=o.child;n!==null;){if(_=au(n),_!==null){for(o.flags|=128,Pa(v,!1),c=_.updateQueue,c!==null&&(o.updateQueue=c,o.flags|=4),o.subtreeFlags=0,c=a,a=o.child;a!==null;)v=a,n=c,v.flags&=14680066,_=v.alternate,_===null?(v.childLanes=0,v.lanes=n,v.child=null,v.subtreeFlags=0,v.memoizedProps=null,v.memoizedState=null,v.updateQueue=null,v.dependencies=null,v.stateNode=null):(v.childLanes=_.childLanes,v.lanes=_.lanes,v.child=_.child,v.subtreeFlags=0,v.deletions=null,v.memoizedProps=_.memoizedProps,v.memoizedState=_.memoizedState,v.updateQueue=_.updateQueue,v.type=_.type,n=_.dependencies,v.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),a=a.sibling;return lt(ht,ht.current&1|2),o.child}n=n.sibling}v.tail!==null&&bt()>si&&(o.flags|=128,c=!0,Pa(v,!1),o.lanes=4194304)}else{if(!c)if(n=au(_),n!==null){if(o.flags|=128,c=!0,a=n.updateQueue,a!==null&&(o.updateQueue=a,o.flags|=4),Pa(v,!0),v.tail===null&&v.tailMode==="hidden"&&!_.alternate&&!pt)return qt(o),null}else 2*bt()-v.renderingStartTime>si&&a!==1073741824&&(o.flags|=128,c=!0,Pa(v,!1),o.lanes=4194304);v.isBackwards?(_.sibling=o.child,o.child=_):(a=v.last,a!==null?a.sibling=_:o.child=_,v.last=_)}return v.tail!==null?(o=v.tail,v.rendering=o,v.tail=o.sibling,v.renderingStartTime=bt(),o.sibling=null,a=ht.current,lt(ht,c?a&1|2:a&1),o):(qt(o),null);case 22:case 23:return Sf(),c=o.memoizedState!==null,n!==null&&n.memoizedState!==null!==c&&(o.flags|=8192),c&&(o.mode&1)!==0?(Sn&1073741824)!==0&&(qt(o),o.subtreeFlags&6&&(o.flags|=8192)):qt(o),null;case 24:return null;case 25:return null}throw Error(r(156,o.tag))}function J1(n,o){switch(Td(o),o.tag){case 1:return sn(o.type)&&Xl(),n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 3:return ti(),ct(on),ct(Wt),Bd(),n=o.flags,(n&65536)!==0&&(n&128)===0?(o.flags=n&-65537|128,o):null;case 5:return zd(o),null;case 13:if(ct(ht),n=o.memoizedState,n!==null&&n.dehydrated!==null){if(o.alternate===null)throw Error(r(340));Ys()}return n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 19:return ct(ht),null;case 4:return ti(),null;case 10:return Id(o.type._context),null;case 22:case 23:return Sf(),null;case 24:return null;default:return null}}var gu=!1,Kt=!1,Z1=typeof WeakSet=="function"?WeakSet:Set,Ee=null;function ri(n,o){var a=n.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(c){gt(n,o,c)}else a.current=null}function uf(n,o,a){try{a()}catch(c){gt(n,o,c)}}var $v=!1;function eC(n,o){if(wd=Ml,n=mg(),fd(n)){if("selectionStart"in n)var a={start:n.selectionStart,end:n.selectionEnd};else e:{a=(a=n.ownerDocument)&&a.defaultView||window;var c=a.getSelection&&a.getSelection();if(c&&c.rangeCount!==0){a=c.anchorNode;var h=c.anchorOffset,v=c.focusNode;c=c.focusOffset;try{a.nodeType,v.nodeType}catch{a=null;break e}var _=0,D=-1,$=-1,Y=0,ae=0,de=n,ie=null;t:for(;;){for(var xe;de!==a||h!==0&&de.nodeType!==3||(D=_+h),de!==v||c!==0&&de.nodeType!==3||($=_+c),de.nodeType===3&&(_+=de.nodeValue.length),(xe=de.firstChild)!==null;)ie=de,de=xe;for(;;){if(de===n)break t;if(ie===a&&++Y===h&&(D=_),ie===v&&++ae===c&&($=_),(xe=de.nextSibling)!==null)break;de=ie,ie=de.parentNode}de=xe}a=D===-1||$===-1?null:{start:D,end:$}}else a=null}a=a||{start:0,end:0}}else a=null;for(Sd={focusedElem:n,selectionRange:a},Ml=!1,Ee=o;Ee!==null;)if(o=Ee,n=o.child,(o.subtreeFlags&1028)!==0&&n!==null)n.return=o,Ee=n;else for(;Ee!==null;){o=Ee;try{var _e=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(_e!==null){var Pe=_e.memoizedProps,wt=_e.memoizedState,H=o.stateNode,z=H.getSnapshotBeforeUpdate(o.elementType===o.type?Pe:Wn(o.type,Pe),wt);H.__reactInternalSnapshotBeforeUpdate=z}break;case 3:var K=o.stateNode.containerInfo;K.nodeType===1?K.textContent="":K.nodeType===9&&K.documentElement&&K.removeChild(K.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(ge){gt(o,o.return,ge)}if(n=o.sibling,n!==null){n.return=o.return,Ee=n;break}Ee=o.return}return _e=$v,$v=!1,_e}function ka(n,o,a){var c=o.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var h=c=c.next;do{if((h.tag&n)===n){var v=h.destroy;h.destroy=void 0,v!==void 0&&uf(o,a,v)}h=h.next}while(h!==c)}}function vu(n,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var a=o=o.next;do{if((a.tag&n)===n){var c=a.create;a.destroy=c()}a=a.next}while(a!==o)}}function cf(n){var o=n.ref;if(o!==null){var a=n.stateNode;switch(n.tag){case 5:n=a;break;default:n=a}typeof o=="function"?o(n):o.current=n}}function Lv(n){var o=n.alternate;o!==null&&(n.alternate=null,Lv(o)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(o=n.stateNode,o!==null&&(delete o[ur],delete o[va],delete o[Rd],delete o[M1],delete o[$1])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function Fv(n){return n.tag===5||n.tag===3||n.tag===4}function zv(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Fv(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function df(n,o,a){var c=n.tag;if(c===5||c===6)n=n.stateNode,o?a.nodeType===8?a.parentNode.insertBefore(n,o):a.insertBefore(n,o):(a.nodeType===8?(o=a.parentNode,o.insertBefore(n,a)):(o=a,o.appendChild(n)),a=a._reactRootContainer,a!=null||o.onclick!==null||(o.onclick=Kl));else if(c!==4&&(n=n.child,n!==null))for(df(n,o,a),n=n.sibling;n!==null;)df(n,o,a),n=n.sibling}function ff(n,o,a){var c=n.tag;if(c===5||c===6)n=n.stateNode,o?a.insertBefore(n,o):a.appendChild(n);else if(c!==4&&(n=n.child,n!==null))for(ff(n,o,a),n=n.sibling;n!==null;)ff(n,o,a),n=n.sibling}var Ft=null,Qn=!1;function go(n,o,a){for(a=a.child;a!==null;)Vv(n,o,a),a=a.sibling}function Vv(n,o,a){if(lr&&typeof lr.onCommitFiberUnmount=="function")try{lr.onCommitFiberUnmount(Nl,a)}catch{}switch(a.tag){case 5:Kt||ri(a,o);case 6:var c=Ft,h=Qn;Ft=null,go(n,o,a),Ft=c,Qn=h,Ft!==null&&(Qn?(n=Ft,a=a.stateNode,n.nodeType===8?n.parentNode.removeChild(a):n.removeChild(a)):Ft.removeChild(a.stateNode));break;case 18:Ft!==null&&(Qn?(n=Ft,a=a.stateNode,n.nodeType===8?Ed(n.parentNode,a):n.nodeType===1&&Ed(n,a),ia(n)):Ed(Ft,a.stateNode));break;case 4:c=Ft,h=Qn,Ft=a.stateNode.containerInfo,Qn=!0,go(n,o,a),Ft=c,Qn=h;break;case 0:case 11:case 14:case 15:if(!Kt&&(c=a.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){h=c=c.next;do{var v=h,_=v.destroy;v=v.tag,_!==void 0&&((v&2)!==0||(v&4)!==0)&&uf(a,o,_),h=h.next}while(h!==c)}go(n,o,a);break;case 1:if(!Kt&&(ri(a,o),c=a.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=a.memoizedProps,c.state=a.memoizedState,c.componentWillUnmount()}catch(D){gt(a,o,D)}go(n,o,a);break;case 21:go(n,o,a);break;case 22:a.mode&1?(Kt=(c=Kt)||a.memoizedState!==null,go(n,o,a),Kt=c):go(n,o,a);break;default:go(n,o,a)}}function Bv(n){var o=n.updateQueue;if(o!==null){n.updateQueue=null;var a=n.stateNode;a===null&&(a=n.stateNode=new Z1),o.forEach(function(c){var h=uC.bind(null,n,c);a.has(c)||(a.add(c),c.then(h,h))})}}function qn(n,o){var a=o.deletions;if(a!==null)for(var c=0;c<a.length;c++){var h=a[c];try{var v=n,_=o,D=_;e:for(;D!==null;){switch(D.tag){case 5:Ft=D.stateNode,Qn=!1;break e;case 3:Ft=D.stateNode.containerInfo,Qn=!0;break e;case 4:Ft=D.stateNode.containerInfo,Qn=!0;break e}D=D.return}if(Ft===null)throw Error(r(160));Vv(v,_,h),Ft=null,Qn=!1;var $=h.alternate;$!==null&&($.return=null),h.return=null}catch(Y){gt(h,o,Y)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Uv(o,n),o=o.sibling}function Uv(n,o){var a=n.alternate,c=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(qn(o,n),fr(n),c&4){try{ka(3,n,n.return),vu(3,n)}catch(Pe){gt(n,n.return,Pe)}try{ka(5,n,n.return)}catch(Pe){gt(n,n.return,Pe)}}break;case 1:qn(o,n),fr(n),c&512&&a!==null&&ri(a,a.return);break;case 5:if(qn(o,n),fr(n),c&512&&a!==null&&ri(a,a.return),n.flags&32){var h=n.stateNode;try{Ge(h,"")}catch(Pe){gt(n,n.return,Pe)}}if(c&4&&(h=n.stateNode,h!=null)){var v=n.memoizedProps,_=a!==null?a.memoizedProps:v,D=n.type,$=n.updateQueue;if(n.updateQueue=null,$!==null)try{D==="input"&&v.type==="radio"&&v.name!=null&&Rt(h,v),Pr(D,_);var Y=Pr(D,v);for(_=0;_<$.length;_+=2){var ae=$[_],de=$[_+1];ae==="style"?_r(h,de):ae==="dangerouslySetInnerHTML"?Be(h,de):ae==="children"?Ge(h,de):P(h,ae,de,Y)}switch(D){case"input":ue(h,v);break;case"textarea":ce(h,v);break;case"select":var ie=h._wrapperState.wasMultiple;h._wrapperState.wasMultiple=!!v.multiple;var xe=v.value;xe!=null?Me(h,!!v.multiple,xe,!1):ie!==!!v.multiple&&(v.defaultValue!=null?Me(h,!!v.multiple,v.defaultValue,!0):Me(h,!!v.multiple,v.multiple?[]:"",!1))}h[va]=v}catch(Pe){gt(n,n.return,Pe)}}break;case 6:if(qn(o,n),fr(n),c&4){if(n.stateNode===null)throw Error(r(162));h=n.stateNode,v=n.memoizedProps;try{h.nodeValue=v}catch(Pe){gt(n,n.return,Pe)}}break;case 3:if(qn(o,n),fr(n),c&4&&a!==null&&a.memoizedState.isDehydrated)try{ia(o.containerInfo)}catch(Pe){gt(n,n.return,Pe)}break;case 4:qn(o,n),fr(n);break;case 13:qn(o,n),fr(n),h=n.child,h.flags&8192&&(v=h.memoizedState!==null,h.stateNode.isHidden=v,!v||h.alternate!==null&&h.alternate.memoizedState!==null||(mf=bt())),c&4&&Bv(n);break;case 22:if(ae=a!==null&&a.memoizedState!==null,n.mode&1?(Kt=(Y=Kt)||ae,qn(o,n),Kt=Y):qn(o,n),fr(n),c&8192){if(Y=n.memoizedState!==null,(n.stateNode.isHidden=Y)&&!ae&&(n.mode&1)!==0)for(Ee=n,ae=n.child;ae!==null;){for(de=Ee=ae;Ee!==null;){switch(ie=Ee,xe=ie.child,ie.tag){case 0:case 11:case 14:case 15:ka(4,ie,ie.return);break;case 1:ri(ie,ie.return);var _e=ie.stateNode;if(typeof _e.componentWillUnmount=="function"){c=ie,a=ie.return;try{o=c,_e.props=o.memoizedProps,_e.state=o.memoizedState,_e.componentWillUnmount()}catch(Pe){gt(c,a,Pe)}}break;case 5:ri(ie,ie.return);break;case 22:if(ie.memoizedState!==null){Qv(de);continue}}xe!==null?(xe.return=ie,Ee=xe):Qv(de)}ae=ae.sibling}e:for(ae=null,de=n;;){if(de.tag===5){if(ae===null){ae=de;try{h=de.stateNode,Y?(v=h.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none"):(D=de.stateNode,$=de.memoizedProps.style,_=$!=null&&$.hasOwnProperty("display")?$.display:null,D.style.display=Rr("display",_))}catch(Pe){gt(n,n.return,Pe)}}}else if(de.tag===6){if(ae===null)try{de.stateNode.nodeValue=Y?"":de.memoizedProps}catch(Pe){gt(n,n.return,Pe)}}else if((de.tag!==22&&de.tag!==23||de.memoizedState===null||de===n)&&de.child!==null){de.child.return=de,de=de.child;continue}if(de===n)break e;for(;de.sibling===null;){if(de.return===null||de.return===n)break e;ae===de&&(ae=null),de=de.return}ae===de&&(ae=null),de.sibling.return=de.return,de=de.sibling}}break;case 19:qn(o,n),fr(n),c&4&&Bv(n);break;case 21:break;default:qn(o,n),fr(n)}}function fr(n){var o=n.flags;if(o&2){try{e:{for(var a=n.return;a!==null;){if(Fv(a)){var c=a;break e}a=a.return}throw Error(r(160))}switch(c.tag){case 5:var h=c.stateNode;c.flags&32&&(Ge(h,""),c.flags&=-33);var v=zv(n);ff(n,v,h);break;case 3:case 4:var _=c.stateNode.containerInfo,D=zv(n);df(n,D,_);break;default:throw Error(r(161))}}catch($){gt(n,n.return,$)}n.flags&=-3}o&4096&&(n.flags&=-4097)}function tC(n,o,a){Ee=n,Hv(n)}function Hv(n,o,a){for(var c=(n.mode&1)!==0;Ee!==null;){var h=Ee,v=h.child;if(h.tag===22&&c){var _=h.memoizedState!==null||gu;if(!_){var D=h.alternate,$=D!==null&&D.memoizedState!==null||Kt;D=gu;var Y=Kt;if(gu=_,(Kt=$)&&!Y)for(Ee=h;Ee!==null;)_=Ee,$=_.child,_.tag===22&&_.memoizedState!==null?qv(h):$!==null?($.return=_,Ee=$):qv(h);for(;v!==null;)Ee=v,Hv(v),v=v.sibling;Ee=h,gu=D,Kt=Y}Wv(n)}else(h.subtreeFlags&8772)!==0&&v!==null?(v.return=h,Ee=v):Wv(n)}}function Wv(n){for(;Ee!==null;){var o=Ee;if((o.flags&8772)!==0){var a=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:Kt||vu(5,o);break;case 1:var c=o.stateNode;if(o.flags&4&&!Kt)if(a===null)c.componentDidMount();else{var h=o.elementType===o.type?a.memoizedProps:Wn(o.type,a.memoizedProps);c.componentDidUpdate(h,a.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var v=o.updateQueue;v!==null&&Qg(o,v,c);break;case 3:var _=o.updateQueue;if(_!==null){if(a=null,o.child!==null)switch(o.child.tag){case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}Qg(o,_,a)}break;case 5:var D=o.stateNode;if(a===null&&o.flags&4){a=D;var $=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":$.autoFocus&&a.focus();break;case"img":$.src&&(a.src=$.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var Y=o.alternate;if(Y!==null){var ae=Y.memoizedState;if(ae!==null){var de=ae.dehydrated;de!==null&&ia(de)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Kt||o.flags&512&&cf(o)}catch(ie){gt(o,o.return,ie)}}if(o===n){Ee=null;break}if(a=o.sibling,a!==null){a.return=o.return,Ee=a;break}Ee=o.return}}function Qv(n){for(;Ee!==null;){var o=Ee;if(o===n){Ee=null;break}var a=o.sibling;if(a!==null){a.return=o.return,Ee=a;break}Ee=o.return}}function qv(n){for(;Ee!==null;){var o=Ee;try{switch(o.tag){case 0:case 11:case 15:var a=o.return;try{vu(4,o)}catch($){gt(o,a,$)}break;case 1:var c=o.stateNode;if(typeof c.componentDidMount=="function"){var h=o.return;try{c.componentDidMount()}catch($){gt(o,h,$)}}var v=o.return;try{cf(o)}catch($){gt(o,v,$)}break;case 5:var _=o.return;try{cf(o)}catch($){gt(o,_,$)}}}catch($){gt(o,o.return,$)}if(o===n){Ee=null;break}var D=o.sibling;if(D!==null){D.return=o.return,Ee=D;break}Ee=o.return}}var nC=Math.ceil,yu=T.ReactCurrentDispatcher,pf=T.ReactCurrentOwner,Nn=T.ReactCurrentBatchConfig,nt=0,Ot=null,Et=null,zt=0,Sn=0,oi=co(0),kt=0,Ta=null,Zo=0,bu=0,hf=0,Na=null,ln=null,mf=0,si=1/0,Ir=null,wu=!1,gf=null,vo=null,Su=!1,yo=null,xu=0,ja=0,vf=null,Cu=-1,Eu=0;function Zt(){return(nt&6)!==0?bt():Cu!==-1?Cu:Cu=bt()}function bo(n){return(n.mode&1)===0?1:(nt&2)!==0&&zt!==0?zt&-zt:F1.transition!==null?(Eu===0&&(Eu=zm()),Eu):(n=it,n!==0||(n=window.event,n=n===void 0?16:Gm(n.type)),n)}function Kn(n,o,a,c){if(50<ja)throw ja=0,vf=null,Error(r(185));ta(n,a,c),((nt&2)===0||n!==Ot)&&(n===Ot&&((nt&2)===0&&(bu|=a),kt===4&&wo(n,zt)),un(n,c),a===1&&nt===0&&(o.mode&1)===0&&(si=bt()+500,Jl&&po()))}function un(n,o){var a=n.callbackNode;Fx(n,o);var c=Al(n,n===Ot?zt:0);if(c===0)a!==null&&$m(a),n.callbackNode=null,n.callbackPriority=0;else if(o=c&-c,n.callbackPriority!==o){if(a!=null&&$m(a),o===1)n.tag===0?L1(Gv.bind(null,n)):Dg(Gv.bind(null,n)),D1(function(){(nt&6)===0&&po()}),a=null;else{switch(Vm(c)){case 1:a=Gc;break;case 4:a=Lm;break;case 16:a=Tl;break;case 536870912:a=Fm;break;default:a=Tl}a=ry(a,Kv.bind(null,n))}n.callbackPriority=o,n.callbackNode=a}}function Kv(n,o){if(Cu=-1,Eu=0,(nt&6)!==0)throw Error(r(327));var a=n.callbackNode;if(ii()&&n.callbackNode!==a)return null;var c=Al(n,n===Ot?zt:0);if(c===0)return null;if((c&30)!==0||(c&n.expiredLanes)!==0||o)o=Ru(n,c);else{o=c;var h=nt;nt|=2;var v=Yv();(Ot!==n||zt!==o)&&(Ir=null,si=bt()+500,ts(n,o));do try{sC();break}catch(D){Xv(n,D)}while(!0);Dd(),yu.current=v,nt=h,Et!==null?o=0:(Ot=null,zt=0,o=kt)}if(o!==0){if(o===2&&(h=Xc(n),h!==0&&(c=h,o=yf(n,h))),o===1)throw a=Ta,ts(n,0),wo(n,c),un(n,bt()),a;if(o===6)wo(n,c);else{if(h=n.current.alternate,(c&30)===0&&!rC(h)&&(o=Ru(n,c),o===2&&(v=Xc(n),v!==0&&(c=v,o=yf(n,v))),o===1))throw a=Ta,ts(n,0),wo(n,c),un(n,bt()),a;switch(n.finishedWork=h,n.finishedLanes=c,o){case 0:case 1:throw Error(r(345));case 2:ns(n,ln,Ir);break;case 3:if(wo(n,c),(c&130023424)===c&&(o=mf+500-bt(),10<o)){if(Al(n,0)!==0)break;if(h=n.suspendedLanes,(h&c)!==c){Zt(),n.pingedLanes|=n.suspendedLanes&h;break}n.timeoutHandle=Cd(ns.bind(null,n,ln,Ir),o);break}ns(n,ln,Ir);break;case 4:if(wo(n,c),(c&4194240)===c)break;for(o=n.eventTimes,h=-1;0<c;){var _=31-Bn(c);v=1<<_,_=o[_],_>h&&(h=_),c&=~v}if(c=h,c=bt()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*nC(c/1960))-c,10<c){n.timeoutHandle=Cd(ns.bind(null,n,ln,Ir),c);break}ns(n,ln,Ir);break;case 5:ns(n,ln,Ir);break;default:throw Error(r(329))}}}return un(n,bt()),n.callbackNode===a?Kv.bind(null,n):null}function yf(n,o){var a=Na;return n.current.memoizedState.isDehydrated&&(ts(n,o).flags|=256),n=Ru(n,o),n!==2&&(o=ln,ln=a,o!==null&&bf(o)),n}function bf(n){ln===null?ln=n:ln.push.apply(ln,n)}function rC(n){for(var o=n;;){if(o.flags&16384){var a=o.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var c=0;c<a.length;c++){var h=a[c],v=h.getSnapshot;h=h.value;try{if(!Un(v(),h))return!1}catch{return!1}}}if(a=o.child,o.subtreeFlags&16384&&a!==null)a.return=o,o=a;else{if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function wo(n,o){for(o&=~hf,o&=~bu,n.suspendedLanes|=o,n.pingedLanes&=~o,n=n.expirationTimes;0<o;){var a=31-Bn(o),c=1<<a;n[a]=-1,o&=~c}}function Gv(n){if((nt&6)!==0)throw Error(r(327));ii();var o=Al(n,0);if((o&1)===0)return un(n,bt()),null;var a=Ru(n,o);if(n.tag!==0&&a===2){var c=Xc(n);c!==0&&(o=c,a=yf(n,c))}if(a===1)throw a=Ta,ts(n,0),wo(n,o),un(n,bt()),a;if(a===6)throw Error(r(345));return n.finishedWork=n.current.alternate,n.finishedLanes=o,ns(n,ln,Ir),un(n,bt()),null}function wf(n,o){var a=nt;nt|=1;try{return n(o)}finally{nt=a,nt===0&&(si=bt()+500,Jl&&po())}}function es(n){yo!==null&&yo.tag===0&&(nt&6)===0&&ii();var o=nt;nt|=1;var a=Nn.transition,c=it;try{if(Nn.transition=null,it=1,n)return n()}finally{it=c,Nn.transition=a,nt=o,(nt&6)===0&&po()}}function Sf(){Sn=oi.current,ct(oi)}function ts(n,o){n.finishedWork=null,n.finishedLanes=0;var a=n.timeoutHandle;if(a!==-1&&(n.timeoutHandle=-1,A1(a)),Et!==null)for(a=Et.return;a!==null;){var c=a;switch(Td(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Xl();break;case 3:ti(),ct(on),ct(Wt),Bd();break;case 5:zd(c);break;case 4:ti();break;case 13:ct(ht);break;case 19:ct(ht);break;case 10:Id(c.type._context);break;case 22:case 23:Sf()}a=a.return}if(Ot=n,Et=n=So(n.current,null),zt=Sn=o,kt=0,Ta=null,hf=bu=Zo=0,ln=Na=null,Xo!==null){for(o=0;o<Xo.length;o++)if(a=Xo[o],c=a.interleaved,c!==null){a.interleaved=null;var h=c.next,v=a.pending;if(v!==null){var _=v.next;v.next=h,c.next=_}a.pending=c}Xo=null}return n}function Xv(n,o){do{var a=Et;try{if(Dd(),lu.current=fu,uu){for(var c=mt.memoizedState;c!==null;){var h=c.queue;h!==null&&(h.pending=null),c=c.next}uu=!1}if(Jo=0,jt=Pt=mt=null,Ca=!1,Ea=0,pf.current=null,a===null||a.return===null){kt=1,Ta=o,Et=null;break}e:{var v=n,_=a.return,D=a,$=o;if(o=zt,D.flags|=32768,$!==null&&typeof $=="object"&&typeof $.then=="function"){var Y=$,ae=D,de=ae.tag;if((ae.mode&1)===0&&(de===0||de===11||de===15)){var ie=ae.alternate;ie?(ae.updateQueue=ie.updateQueue,ae.memoizedState=ie.memoizedState,ae.lanes=ie.lanes):(ae.updateQueue=null,ae.memoizedState=null)}var xe=Sv(_);if(xe!==null){xe.flags&=-257,xv(xe,_,D,v,o),xe.mode&1&&wv(v,Y,o),o=xe,$=Y;var _e=o.updateQueue;if(_e===null){var Pe=new Set;Pe.add($),o.updateQueue=Pe}else _e.add($);break e}else{if((o&1)===0){wv(v,Y,o),xf();break e}$=Error(r(426))}}else if(pt&&D.mode&1){var wt=Sv(_);if(wt!==null){(wt.flags&65536)===0&&(wt.flags|=256),xv(wt,_,D,v,o),Od(ni($,D));break e}}v=$=ni($,D),kt!==4&&(kt=2),Na===null?Na=[v]:Na.push(v),v=_;do{switch(v.tag){case 3:v.flags|=65536,o&=-o,v.lanes|=o;var H=yv(v,$,o);Wg(v,H);break e;case 1:D=$;var z=v.type,K=v.stateNode;if((v.flags&128)===0&&(typeof z.getDerivedStateFromError=="function"||K!==null&&typeof K.componentDidCatch=="function"&&(vo===null||!vo.has(K)))){v.flags|=65536,o&=-o,v.lanes|=o;var ge=bv(v,D,o);Wg(v,ge);break e}}v=v.return}while(v!==null)}Zv(a)}catch(Te){o=Te,Et===a&&a!==null&&(Et=a=a.return);continue}break}while(!0)}function Yv(){var n=yu.current;return yu.current=fu,n===null?fu:n}function xf(){(kt===0||kt===3||kt===2)&&(kt=4),Ot===null||(Zo&268435455)===0&&(bu&268435455)===0||wo(Ot,zt)}function Ru(n,o){var a=nt;nt|=2;var c=Yv();(Ot!==n||zt!==o)&&(Ir=null,ts(n,o));do try{oC();break}catch(h){Xv(n,h)}while(!0);if(Dd(),nt=a,yu.current=c,Et!==null)throw Error(r(261));return Ot=null,zt=0,kt}function oC(){for(;Et!==null;)Jv(Et)}function sC(){for(;Et!==null&&!Nx();)Jv(Et)}function Jv(n){var o=ny(n.alternate,n,Sn);n.memoizedProps=n.pendingProps,o===null?Zv(n):Et=o,pf.current=null}function Zv(n){var o=n;do{var a=o.alternate;if(n=o.return,(o.flags&32768)===0){if(a=Y1(a,o,Sn),a!==null){Et=a;return}}else{if(a=J1(a,o),a!==null){a.flags&=32767,Et=a;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{kt=6,Et=null;return}}if(o=o.sibling,o!==null){Et=o;return}Et=o=n}while(o!==null);kt===0&&(kt=5)}function ns(n,o,a){var c=it,h=Nn.transition;try{Nn.transition=null,it=1,iC(n,o,a,c)}finally{Nn.transition=h,it=c}return null}function iC(n,o,a,c){do ii();while(yo!==null);if((nt&6)!==0)throw Error(r(327));a=n.finishedWork;var h=n.finishedLanes;if(a===null)return null;if(n.finishedWork=null,n.finishedLanes=0,a===n.current)throw Error(r(177));n.callbackNode=null,n.callbackPriority=0;var v=a.lanes|a.childLanes;if(zx(n,v),n===Ot&&(Et=Ot=null,zt=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||Su||(Su=!0,ry(Tl,function(){return ii(),null})),v=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||v){v=Nn.transition,Nn.transition=null;var _=it;it=1;var D=nt;nt|=4,pf.current=null,eC(n,a),Uv(a,n),_1(Sd),Ml=!!wd,Sd=wd=null,n.current=a,tC(a),jx(),nt=D,it=_,Nn.transition=v}else n.current=a;if(Su&&(Su=!1,yo=n,xu=h),v=n.pendingLanes,v===0&&(vo=null),Dx(a.stateNode),un(n,bt()),o!==null)for(c=n.onRecoverableError,a=0;a<o.length;a++)h=o[a],c(h.value,{componentStack:h.stack,digest:h.digest});if(wu)throw wu=!1,n=gf,gf=null,n;return(xu&1)!==0&&n.tag!==0&&ii(),v=n.pendingLanes,(v&1)!==0?n===vf?ja++:(ja=0,vf=n):ja=0,po(),null}function ii(){if(yo!==null){var n=Vm(xu),o=Nn.transition,a=it;try{if(Nn.transition=null,it=16>n?16:n,yo===null)var c=!1;else{if(n=yo,yo=null,xu=0,(nt&6)!==0)throw Error(r(331));var h=nt;for(nt|=4,Ee=n.current;Ee!==null;){var v=Ee,_=v.child;if((Ee.flags&16)!==0){var D=v.deletions;if(D!==null){for(var $=0;$<D.length;$++){var Y=D[$];for(Ee=Y;Ee!==null;){var ae=Ee;switch(ae.tag){case 0:case 11:case 15:ka(8,ae,v)}var de=ae.child;if(de!==null)de.return=ae,Ee=de;else for(;Ee!==null;){ae=Ee;var ie=ae.sibling,xe=ae.return;if(Lv(ae),ae===Y){Ee=null;break}if(ie!==null){ie.return=xe,Ee=ie;break}Ee=xe}}}var _e=v.alternate;if(_e!==null){var Pe=_e.child;if(Pe!==null){_e.child=null;do{var wt=Pe.sibling;Pe.sibling=null,Pe=wt}while(Pe!==null)}}Ee=v}}if((v.subtreeFlags&2064)!==0&&_!==null)_.return=v,Ee=_;else e:for(;Ee!==null;){if(v=Ee,(v.flags&2048)!==0)switch(v.tag){case 0:case 11:case 15:ka(9,v,v.return)}var H=v.sibling;if(H!==null){H.return=v.return,Ee=H;break e}Ee=v.return}}var z=n.current;for(Ee=z;Ee!==null;){_=Ee;var K=_.child;if((_.subtreeFlags&2064)!==0&&K!==null)K.return=_,Ee=K;else e:for(_=z;Ee!==null;){if(D=Ee,(D.flags&2048)!==0)try{switch(D.tag){case 0:case 11:case 15:vu(9,D)}}catch(Te){gt(D,D.return,Te)}if(D===_){Ee=null;break e}var ge=D.sibling;if(ge!==null){ge.return=D.return,Ee=ge;break e}Ee=D.return}}if(nt=h,po(),lr&&typeof lr.onPostCommitFiberRoot=="function")try{lr.onPostCommitFiberRoot(Nl,n)}catch{}c=!0}return c}finally{it=a,Nn.transition=o}}return!1}function ey(n,o,a){o=ni(a,o),o=yv(n,o,1),n=mo(n,o,1),o=Zt(),n!==null&&(ta(n,1,o),un(n,o))}function gt(n,o,a){if(n.tag===3)ey(n,n,a);else for(;o!==null;){if(o.tag===3){ey(o,n,a);break}else if(o.tag===1){var c=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(vo===null||!vo.has(c))){n=ni(a,n),n=bv(o,n,1),o=mo(o,n,1),n=Zt(),o!==null&&(ta(o,1,n),un(o,n));break}}o=o.return}}function aC(n,o,a){var c=n.pingCache;c!==null&&c.delete(o),o=Zt(),n.pingedLanes|=n.suspendedLanes&a,Ot===n&&(zt&a)===a&&(kt===4||kt===3&&(zt&130023424)===zt&&500>bt()-mf?ts(n,0):hf|=a),un(n,o)}function ty(n,o){o===0&&((n.mode&1)===0?o=1:(o=Ol,Ol<<=1,(Ol&130023424)===0&&(Ol=4194304)));var a=Zt();n=Or(n,o),n!==null&&(ta(n,o,a),un(n,a))}function lC(n){var o=n.memoizedState,a=0;o!==null&&(a=o.retryLane),ty(n,a)}function uC(n,o){var a=0;switch(n.tag){case 13:var c=n.stateNode,h=n.memoizedState;h!==null&&(a=h.retryLane);break;case 19:c=n.stateNode;break;default:throw Error(r(314))}c!==null&&c.delete(o),ty(n,a)}var ny;ny=function(n,o,a){if(n!==null)if(n.memoizedProps!==o.pendingProps||on.current)an=!0;else{if((n.lanes&a)===0&&(o.flags&128)===0)return an=!1,X1(n,o,a);an=(n.flags&131072)!==0}else an=!1,pt&&(o.flags&1048576)!==0&&Ig(o,eu,o.index);switch(o.lanes=0,o.tag){case 2:var c=o.type;mu(n,o),n=o.pendingProps;var h=Ks(o,Wt.current);ei(o,a),h=Wd(null,o,c,n,h,a);var v=Qd();return o.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,sn(c)?(v=!0,Yl(o)):v=!1,o.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,Ld(o),h.updater=pu,o.stateNode=h,h._reactInternals=o,Jd(o,c,n,a),o=nf(null,o,c,!0,v,a)):(o.tag=0,pt&&v&&kd(o),Jt(null,o,h,a),o=o.child),o;case 16:c=o.elementType;e:{switch(mu(n,o),n=o.pendingProps,h=c._init,c=h(c._payload),o.type=c,h=o.tag=dC(c),n=Wn(c,n),h){case 0:o=tf(null,o,c,n,a);break e;case 1:o=kv(null,o,c,n,a);break e;case 11:o=Cv(null,o,c,n,a);break e;case 14:o=Ev(null,o,c,Wn(c.type,n),a);break e}throw Error(r(306,c,""))}return o;case 0:return c=o.type,h=o.pendingProps,h=o.elementType===c?h:Wn(c,h),tf(n,o,c,h,a);case 1:return c=o.type,h=o.pendingProps,h=o.elementType===c?h:Wn(c,h),kv(n,o,c,h,a);case 3:e:{if(Tv(o),n===null)throw Error(r(387));c=o.pendingProps,v=o.memoizedState,h=v.element,Hg(n,o),iu(o,c,null,a);var _=o.memoizedState;if(c=_.element,v.isDehydrated)if(v={element:c,isDehydrated:!1,cache:_.cache,pendingSuspenseBoundaries:_.pendingSuspenseBoundaries,transitions:_.transitions},o.updateQueue.baseState=v,o.memoizedState=v,o.flags&256){h=ni(Error(r(423)),o),o=Nv(n,o,c,a,h);break e}else if(c!==h){h=ni(Error(r(424)),o),o=Nv(n,o,c,a,h);break e}else for(wn=uo(o.stateNode.containerInfo.firstChild),bn=o,pt=!0,Hn=null,a=Bg(o,null,c,a),o.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Ys(),c===h){o=Dr(n,o,a);break e}Jt(n,o,c,a)}o=o.child}return o;case 5:return qg(o),n===null&&jd(o),c=o.type,h=o.pendingProps,v=n!==null?n.memoizedProps:null,_=h.children,xd(c,h)?_=null:v!==null&&xd(c,v)&&(o.flags|=32),Pv(n,o),Jt(n,o,_,a),o.child;case 6:return n===null&&jd(o),null;case 13:return jv(n,o,a);case 4:return Fd(o,o.stateNode.containerInfo),c=o.pendingProps,n===null?o.child=Js(o,null,c,a):Jt(n,o,c,a),o.child;case 11:return c=o.type,h=o.pendingProps,h=o.elementType===c?h:Wn(c,h),Cv(n,o,c,h,a);case 7:return Jt(n,o,o.pendingProps,a),o.child;case 8:return Jt(n,o,o.pendingProps.children,a),o.child;case 12:return Jt(n,o,o.pendingProps.children,a),o.child;case 10:e:{if(c=o.type._context,h=o.pendingProps,v=o.memoizedProps,_=h.value,lt(ru,c._currentValue),c._currentValue=_,v!==null)if(Un(v.value,_)){if(v.children===h.children&&!on.current){o=Dr(n,o,a);break e}}else for(v=o.child,v!==null&&(v.return=o);v!==null;){var D=v.dependencies;if(D!==null){_=v.child;for(var $=D.firstContext;$!==null;){if($.context===c){if(v.tag===1){$=Ar(-1,a&-a),$.tag=2;var Y=v.updateQueue;if(Y!==null){Y=Y.shared;var ae=Y.pending;ae===null?$.next=$:($.next=ae.next,ae.next=$),Y.pending=$}}v.lanes|=a,$=v.alternate,$!==null&&($.lanes|=a),Md(v.return,a,o),D.lanes|=a;break}$=$.next}}else if(v.tag===10)_=v.type===o.type?null:v.child;else if(v.tag===18){if(_=v.return,_===null)throw Error(r(341));_.lanes|=a,D=_.alternate,D!==null&&(D.lanes|=a),Md(_,a,o),_=v.sibling}else _=v.child;if(_!==null)_.return=v;else for(_=v;_!==null;){if(_===o){_=null;break}if(v=_.sibling,v!==null){v.return=_.return,_=v;break}_=_.return}v=_}Jt(n,o,h.children,a),o=o.child}return o;case 9:return h=o.type,c=o.pendingProps.children,ei(o,a),h=kn(h),c=c(h),o.flags|=1,Jt(n,o,c,a),o.child;case 14:return c=o.type,h=Wn(c,o.pendingProps),h=Wn(c.type,h),Ev(n,o,c,h,a);case 15:return Rv(n,o,o.type,o.pendingProps,a);case 17:return c=o.type,h=o.pendingProps,h=o.elementType===c?h:Wn(c,h),mu(n,o),o.tag=1,sn(c)?(n=!0,Yl(o)):n=!1,ei(o,a),gv(o,c,h),Jd(o,c,h,a),nf(null,o,c,!0,n,a);case 19:return Av(n,o,a);case 22:return _v(n,o,a)}throw Error(r(156,o.tag))};function ry(n,o){return Mm(n,o)}function cC(n,o,a,c){this.tag=n,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jn(n,o,a,c){return new cC(n,o,a,c)}function Cf(n){return n=n.prototype,!(!n||!n.isReactComponent)}function dC(n){if(typeof n=="function")return Cf(n)?1:0;if(n!=null){if(n=n.$$typeof,n===ee)return 11;if(n===Z)return 14}return 2}function So(n,o){var a=n.alternate;return a===null?(a=jn(n.tag,o,n.key,n.mode),a.elementType=n.elementType,a.type=n.type,a.stateNode=n.stateNode,a.alternate=n,n.alternate=a):(a.pendingProps=o,a.type=n.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=n.flags&14680064,a.childLanes=n.childLanes,a.lanes=n.lanes,a.child=n.child,a.memoizedProps=n.memoizedProps,a.memoizedState=n.memoizedState,a.updateQueue=n.updateQueue,o=n.dependencies,a.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},a.sibling=n.sibling,a.index=n.index,a.ref=n.ref,a}function _u(n,o,a,c,h,v){var _=2;if(c=n,typeof n=="function")Cf(n)&&(_=1);else if(typeof n=="string")_=5;else e:switch(n){case L:return rs(a.children,h,v,o);case M:_=8,h|=8;break;case Q:return n=jn(12,a,o,h|2),n.elementType=Q,n.lanes=v,n;case ne:return n=jn(13,a,o,h),n.elementType=ne,n.lanes=v,n;case G:return n=jn(19,a,o,h),n.elementType=G,n.lanes=v,n;case U:return Pu(a,h,v,o);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case q:_=10;break e;case te:_=9;break e;case ee:_=11;break e;case Z:_=14;break e;case B:_=16,c=null;break e}throw Error(r(130,n==null?n:typeof n,""))}return o=jn(_,a,o,h),o.elementType=n,o.type=c,o.lanes=v,o}function rs(n,o,a,c){return n=jn(7,n,c,o),n.lanes=a,n}function Pu(n,o,a,c){return n=jn(22,n,c,o),n.elementType=U,n.lanes=a,n.stateNode={isHidden:!1},n}function Ef(n,o,a){return n=jn(6,n,null,o),n.lanes=a,n}function Rf(n,o,a){return o=jn(4,n.children!==null?n.children:[],n.key,o),o.lanes=a,o.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},o}function fC(n,o,a,c,h){this.tag=o,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Yc(0),this.expirationTimes=Yc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yc(0),this.identifierPrefix=c,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function _f(n,o,a,c,h,v,_,D,$){return n=new fC(n,o,a,D,$),o===1?(o=1,v===!0&&(o|=8)):o=0,v=jn(3,null,null,o),n.current=v,v.stateNode=n,v.memoizedState={element:c,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ld(v),n}function pC(n,o,a){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:O,key:c==null?null:""+c,children:n,containerInfo:o,implementation:a}}function oy(n){if(!n)return fo;n=n._reactInternals;e:{if(tt(n)!==n||n.tag!==1)throw Error(r(170));var o=n;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(sn(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(r(171))}if(n.tag===1){var a=n.type;if(sn(a))return Og(n,a,o)}return o}function sy(n,o,a,c,h,v,_,D,$){return n=_f(a,c,!0,n,h,v,_,D,$),n.context=oy(null),a=n.current,c=Zt(),h=bo(a),v=Ar(c,h),v.callback=o??null,mo(a,v,h),n.current.lanes=h,ta(n,h,c),un(n,c),n}function ku(n,o,a,c){var h=o.current,v=Zt(),_=bo(h);return a=oy(a),o.context===null?o.context=a:o.pendingContext=a,o=Ar(v,_),o.payload={element:n},c=c===void 0?null:c,c!==null&&(o.callback=c),n=mo(h,o,_),n!==null&&(Kn(n,h,_,v),su(n,h,_)),_}function Tu(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function iy(n,o){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var a=n.retryLane;n.retryLane=a!==0&&a<o?a:o}}function Pf(n,o){iy(n,o),(n=n.alternate)&&iy(n,o)}function hC(){return null}var ay=typeof reportError=="function"?reportError:function(n){console.error(n)};function kf(n){this._internalRoot=n}Nu.prototype.render=kf.prototype.render=function(n){var o=this._internalRoot;if(o===null)throw Error(r(409));ku(n,o,null,null)},Nu.prototype.unmount=kf.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var o=n.containerInfo;es(function(){ku(null,n,null,null)}),o[kr]=null}};function Nu(n){this._internalRoot=n}Nu.prototype.unstable_scheduleHydration=function(n){if(n){var o=Hm();n={blockedOn:null,target:n,priority:o};for(var a=0;a<io.length&&o!==0&&o<io[a].priority;a++);io.splice(a,0,n),a===0&&qm(n)}};function Tf(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function ju(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function ly(){}function mC(n,o,a,c,h){if(h){if(typeof c=="function"){var v=c;c=function(){var Y=Tu(_);v.call(Y)}}var _=sy(o,c,n,0,null,!1,!1,"",ly);return n._reactRootContainer=_,n[kr]=_.current,ma(n.nodeType===8?n.parentNode:n),es(),_}for(;h=n.lastChild;)n.removeChild(h);if(typeof c=="function"){var D=c;c=function(){var Y=Tu($);D.call(Y)}}var $=_f(n,0,!1,null,null,!1,!1,"",ly);return n._reactRootContainer=$,n[kr]=$.current,ma(n.nodeType===8?n.parentNode:n),es(function(){ku(o,$,a,c)}),$}function Ou(n,o,a,c,h){var v=a._reactRootContainer;if(v){var _=v;if(typeof h=="function"){var D=h;h=function(){var $=Tu(_);D.call($)}}ku(o,_,n,h)}else _=mC(a,o,n,h,c);return Tu(_)}Bm=function(n){switch(n.tag){case 3:var o=n.stateNode;if(o.current.memoizedState.isDehydrated){var a=ea(o.pendingLanes);a!==0&&(Jc(o,a|1),un(o,bt()),(nt&6)===0&&(si=bt()+500,po()))}break;case 13:es(function(){var c=Or(n,1);if(c!==null){var h=Zt();Kn(c,n,1,h)}}),Pf(n,1)}},Zc=function(n){if(n.tag===13){var o=Or(n,134217728);if(o!==null){var a=Zt();Kn(o,n,134217728,a)}Pf(n,134217728)}},Um=function(n){if(n.tag===13){var o=bo(n),a=Or(n,o);if(a!==null){var c=Zt();Kn(a,n,o,c)}Pf(n,o)}},Hm=function(){return it},Wm=function(n,o){var a=it;try{return it=n,o()}finally{it=a}},Ho=function(n,o,a){switch(o){case"input":if(ue(n,a),o=a.name,a.type==="radio"&&o!=null){for(a=n;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<a.length;o++){var c=a[o];if(c!==n&&c.form===n.form){var h=Gl(c);if(!h)throw Error(r(90));Ze(c),ue(c,h)}}}break;case"textarea":ce(n,a);break;case"select":o=a.value,o!=null&&Me(n,!!a.multiple,o,!1)}},Cl=wf,El=es;var gC={usingClientEntryPoint:!1,Events:[ya,Qs,Gl,xl,qc,wf]},Oa={findFiberByHostInstance:Qo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},vC={bundleType:Oa.bundleType,version:Oa.version,rendererPackageName:Oa.rendererPackageName,rendererConfig:Oa.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:T.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=kl(n),n===null?null:n.stateNode},findFiberByHostInstance:Oa.findFiberByHostInstance||hC,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 Au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Au.isDisabled&&Au.supportsFiber)try{Nl=Au.inject(vC),lr=Au}catch{}}return cn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gC,cn.createPortal=function(n,o){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Tf(o))throw Error(r(200));return pC(n,o,null,a)},cn.createRoot=function(n,o){if(!Tf(n))throw Error(r(299));var a=!1,c="",h=ay;return o!=null&&(o.unstable_strictMode===!0&&(a=!0),o.identifierPrefix!==void 0&&(c=o.identifierPrefix),o.onRecoverableError!==void 0&&(h=o.onRecoverableError)),o=_f(n,1,!1,null,null,a,!1,c,h),n[kr]=o.current,ma(n.nodeType===8?n.parentNode:n),new kf(o)},cn.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var o=n._reactInternals;if(o===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=kl(o),n=n===null?null:n.stateNode,n},cn.flushSync=function(n){return es(n)},cn.hydrate=function(n,o,a){if(!ju(o))throw Error(r(200));return Ou(null,n,o,!0,a)},cn.hydrateRoot=function(n,o,a){if(!Tf(n))throw Error(r(405));var c=a!=null&&a.hydratedSources||null,h=!1,v="",_=ay;if(a!=null&&(a.unstable_strictMode===!0&&(h=!0),a.identifierPrefix!==void 0&&(v=a.identifierPrefix),a.onRecoverableError!==void 0&&(_=a.onRecoverableError)),o=sy(o,null,n,1,a??null,h,!1,v,_),n[kr]=o.current,ma(n),c)for(n=0;n<c.length;n++)a=c[n],h=a._getVersion,h=h(a._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[a,h]:o.mutableSourceEagerHydrationData.push(a,h);return new Nu(o)},cn.render=function(n,o,a){if(!ju(o))throw Error(r(200));return Ou(null,n,o,!1,a)},cn.unmountComponentAtNode=function(n){if(!ju(n))throw Error(r(40));return n._reactRootContainer?(es(function(){Ou(null,null,n,!1,function(){n._reactRootContainer=null,n[kr]=null})}),!0):!1},cn.unstable_batchedUpdates=wf,cn.unstable_renderSubtreeIntoContainer=function(n,o,a,c){if(!ju(a))throw Error(r(200));if(n==null||n._reactInternals===void 0)throw Error(r(38));return Ou(n,o,a,!1,c)},cn.version="18.3.1-next-f1338f8080-20240426",cn}var vy;function bb(){if(vy)return Af.exports;vy=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Af.exports=_C(),Af.exports}var yy;function PC(){if(yy)return Iu;yy=1;var e=bb();return Iu.createRoot=e.createRoot,Iu.hydrateRoot=e.hydrateRoot,Iu}var kC=PC();const TC=vc(kC);var yr=function(){return yr=Object.assign||function(t){for(var r,s=1,i=arguments.length;s<i;s++){r=arguments[s];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(t[l]=r[l])}return t},yr.apply(this,arguments)};function wb(e,t){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(r[s[i]]=e[s[i]]);return r}function NC(e,t,r){if(r||arguments.length===2)for(var s=0,i=t.length,l;s<i;s++)(l||!(s in t))&&(l||(l=Array.prototype.slice.call(t,0,s)),l[s]=t[s]);return e.concat(l||Array.prototype.slice.call(t))}var qu="right-scroll-bar-position",Ku="width-before-scroll-bar",jC="with-scroll-bars-hidden",OC="--removed-body-scroll-bar-size";function Mf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function AC(e,t){var r=C.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(s){var i=r.value;i!==s&&(r.value=s,r.callback(s,i))}}}})[0];return r.callback=t,r.facade}var DC=typeof window<"u"?C.useLayoutEffect:C.useEffect,by=new WeakMap;function IC(e,t){var r=AC(null,function(s){return e.forEach(function(i){return Mf(i,s)})});return DC(function(){var s=by.get(r);if(s){var i=new Set(s),l=new Set(e),u=r.current;i.forEach(function(d){l.has(d)||Mf(d,null)}),l.forEach(function(d){i.has(d)||Mf(d,u)})}by.set(r,e)},[e]),r}function MC(e){return e}function $C(e,t){t===void 0&&(t=MC);var r=[],s=!1,i={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(l){var u=t(l,s);return r.push(u),function(){r=r.filter(function(d){return d!==u})}},assignSyncMedium:function(l){for(s=!0;r.length;){var u=r;r=[],u.forEach(l)}r={push:function(d){return l(d)},filter:function(){return r}}},assignMedium:function(l){s=!0;var u=[];if(r.length){var d=r;r=[],d.forEach(l),u=r}var p=function(){var m=u;u=[],m.forEach(l)},f=function(){return Promise.resolve().then(p)};f(),r={push:function(m){u.push(m),f()},filter:function(m){return u=u.filter(m),r}}}};return i}function LC(e){e===void 0&&(e={});var t=$C(null);return t.options=yr({async:!0,ssr:!1},e),t}var Sb=function(e){var t=e.sideCar,r=wb(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return C.createElement(s,yr({},r))};Sb.isSideCarExport=!0;function FC(e,t){return e.useMedium(t),Sb}var xb=LC(),$f=function(){},yc=C.forwardRef(function(e,t){var r=C.useRef(null),s=C.useState({onScrollCapture:$f,onWheelCapture:$f,onTouchMoveCapture:$f}),i=s[0],l=s[1],u=e.forwardProps,d=e.children,p=e.className,f=e.removeScrollBar,m=e.enabled,g=e.shards,w=e.sideCar,S=e.noRelative,x=e.noIsolation,b=e.inert,E=e.allowPinchZoom,R=e.as,k=R===void 0?"div":R,P=e.gapMode,T=wb(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=w,O=IC([r,t]),L=yr(yr({},T),i);return C.createElement(C.Fragment,null,m&&C.createElement(j,{sideCar:xb,removeScrollBar:f,shards:g,noRelative:S,noIsolation:x,inert:b,setCallbacks:l,allowPinchZoom:!!E,lockRef:r,gapMode:P}),u?C.cloneElement(C.Children.only(d),yr(yr({},L),{ref:O})):C.createElement(k,yr({},L,{className:p,ref:O}),d))});yc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};yc.classNames={fullWidth:Ku,zeroRight:qu};var zC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function VC(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=zC();return t&&e.setAttribute("nonce",t),e}function BC(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function UC(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var HC=function(){var e=0,t=null;return{add:function(r){e==0&&(t=VC())&&(BC(t,r),UC(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},WC=function(){var e=HC();return function(t,r){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Cb=function(){var e=WC(),t=function(r){var s=r.styles,i=r.dynamic;return e(s,i),null};return t},QC={left:0,top:0,right:0,gap:0},Lf=function(e){return parseInt(e||"",10)||0},qC=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Lf(r),Lf(s),Lf(i)]},KC=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return QC;var t=qC(e),r=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-r+t[2]-t[0])}},GC=Cb(),gi="data-scroll-locked",XC=function(e,t,r,s){var i=e.left,l=e.top,u=e.right,d=e.gap;return r===void 0&&(r="margin"),`
40
+ `+v.stack}return{value:n,source:o,stack:h,digest:null}}function Zd(n,o,a){return{value:n,source:null,stack:a??null,digest:o??null}}function ef(n,o){try{console.error(o.value)}catch(a){setTimeout(function(){throw a})}}var q1=typeof WeakMap=="function"?WeakMap:Map;function yv(n,o,a){a=Dr(-1,a),a.tag=3,a.payload={element:null};var c=o.value;return a.callback=function(){wu||(wu=!0,gf=c),ef(n,o)},a}function bv(n,o,a){a=Dr(-1,a),a.tag=3;var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var h=o.value;a.payload=function(){return c(h)},a.callback=function(){ef(n,o)}}var v=n.stateNode;return v!==null&&typeof v.componentDidCatch=="function"&&(a.callback=function(){ef(n,o),typeof c!="function"&&(vo===null?vo=new Set([this]):vo.add(this));var _=o.stack;this.componentDidCatch(o.value,{componentStack:_!==null?_:""})}),a}function wv(n,o,a){var c=n.pingCache;if(c===null){c=n.pingCache=new q1;var h=new Set;c.set(o,h)}else h=c.get(o),h===void 0&&(h=new Set,c.set(o,h));h.has(a)||(h.add(a),n=aC.bind(null,n,o,a),o.then(n,n))}function Sv(n){do{var o;if((o=n.tag===13)&&(o=n.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return n;n=n.return}while(n!==null);return null}function xv(n,o,a,c,h){return(n.mode&1)===0?(n===o?n.flags|=65536:(n.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(o=Dr(-1,1),o.tag=2,mo(a,o,1))),a.lanes|=1),n):(n.flags|=65536,n.lanes=h,n)}var K1=T.ReactCurrentOwner,an=!1;function Jt(n,o,a,c){o.child=n===null?Bg(o,null,a,c):Js(o,n.child,a,c)}function Cv(n,o,a,c,h){a=a.render;var v=o.ref;return ei(o,h),c=Wd(n,o,a,c,v,h),a=Qd(),n!==null&&!an?(o.updateQueue=n.updateQueue,o.flags&=-2053,n.lanes&=~h,Ir(n,o,h)):(pt&&a&&Pd(o),o.flags|=1,Jt(n,o,c,h),o.child)}function Ev(n,o,a,c,h){if(n===null){var v=a.type;return typeof v=="function"&&!Cf(v)&&v.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(o.tag=15,o.type=v,Rv(n,o,v,c,h)):(n=_u(a.type,null,c,o,o.mode,h),n.ref=o.ref,n.return=o,o.child=n)}if(v=n.child,(n.lanes&h)===0){var _=v.memoizedProps;if(a=a.compare,a=a!==null?a:fa,a(_,c)&&n.ref===o.ref)return Ir(n,o,h)}return o.flags|=1,n=So(v,c),n.ref=o.ref,n.return=o,o.child=n}function Rv(n,o,a,c,h){if(n!==null){var v=n.memoizedProps;if(fa(v,c)&&n.ref===o.ref)if(an=!1,o.pendingProps=c=v,(n.lanes&h)!==0)(n.flags&131072)!==0&&(an=!0);else return o.lanes=n.lanes,Ir(n,o,h)}return tf(n,o,a,c,h)}function _v(n,o,a){var c=o.pendingProps,h=c.children,v=n!==null?n.memoizedState:null;if(c.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},lt(oi,Sn),Sn|=a;else{if((a&1073741824)===0)return n=v!==null?v.baseLanes|a:a,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:n,cachePool:null,transitions:null},o.updateQueue=null,lt(oi,Sn),Sn|=n,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=v!==null?v.baseLanes:a,lt(oi,Sn),Sn|=c}else v!==null?(c=v.baseLanes|a,o.memoizedState=null):c=a,lt(oi,Sn),Sn|=c;return Jt(n,o,h,a),o.child}function kv(n,o){var a=o.ref;(n===null&&a!==null||n!==null&&n.ref!==a)&&(o.flags|=512,o.flags|=2097152)}function tf(n,o,a,c,h){var v=sn(a)?qo:Wt.current;return v=Ks(o,v),ei(o,h),a=Wd(n,o,a,c,v,h),c=Qd(),n!==null&&!an?(o.updateQueue=n.updateQueue,o.flags&=-2053,n.lanes&=~h,Ir(n,o,h)):(pt&&c&&Pd(o),o.flags|=1,Jt(n,o,a,h),o.child)}function Pv(n,o,a,c,h){if(sn(a)){var v=!0;Yl(o)}else v=!1;if(ei(o,h),o.stateNode===null)mu(n,o),gv(o,a,c),Jd(o,a,c,h),c=!0;else if(n===null){var _=o.stateNode,D=o.memoizedProps;_.props=D;var $=_.context,Y=a.contextType;typeof Y=="object"&&Y!==null?Y=Pn(Y):(Y=sn(a)?qo:Wt.current,Y=Ks(o,Y));var ae=a.getDerivedStateFromProps,de=typeof ae=="function"||typeof _.getSnapshotBeforeUpdate=="function";de||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(D!==c||$!==Y)&&vv(o,_,c,Y),ho=!1;var ie=o.memoizedState;_.state=ie,iu(o,c,_,h),$=o.memoizedState,D!==c||ie!==$||on.current||ho?(typeof ae=="function"&&(Yd(o,a,ae,c),$=o.memoizedState),(D=ho||mv(o,a,D,c,ie,$,Y))?(de||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(o.flags|=4194308)):(typeof _.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=c,o.memoizedState=$),_.props=c,_.state=$,_.context=Y,c=D):(typeof _.componentDidMount=="function"&&(o.flags|=4194308),c=!1)}else{_=o.stateNode,Hg(n,o),D=o.memoizedProps,Y=o.type===o.elementType?D:Wn(o.type,D),_.props=Y,de=o.pendingProps,ie=_.context,$=a.contextType,typeof $=="object"&&$!==null?$=Pn($):($=sn(a)?qo:Wt.current,$=Ks(o,$));var xe=a.getDerivedStateFromProps;(ae=typeof xe=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(D!==de||ie!==$)&&vv(o,_,c,$),ho=!1,ie=o.memoizedState,_.state=ie,iu(o,c,_,h);var _e=o.memoizedState;D!==de||ie!==_e||on.current||ho?(typeof xe=="function"&&(Yd(o,a,xe,c),_e=o.memoizedState),(Y=ho||mv(o,a,Y,c,ie,_e,$)||!1)?(ae||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(c,_e,$),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(c,_e,$)),typeof _.componentDidUpdate=="function"&&(o.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof _.componentDidUpdate!="function"||D===n.memoizedProps&&ie===n.memoizedState||(o.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||D===n.memoizedProps&&ie===n.memoizedState||(o.flags|=1024),o.memoizedProps=c,o.memoizedState=_e),_.props=c,_.state=_e,_.context=$,c=Y):(typeof _.componentDidUpdate!="function"||D===n.memoizedProps&&ie===n.memoizedState||(o.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||D===n.memoizedProps&&ie===n.memoizedState||(o.flags|=1024),c=!1)}return nf(n,o,a,c,v,h)}function nf(n,o,a,c,h,v){kv(n,o);var _=(o.flags&128)!==0;if(!c&&!_)return h&&Ag(o,a,!1),Ir(n,o,v);c=o.stateNode,K1.current=o;var D=_&&typeof a.getDerivedStateFromError!="function"?null:c.render();return o.flags|=1,n!==null&&_?(o.child=Js(o,n.child,null,v),o.child=Js(o,null,D,v)):Jt(n,o,D,v),o.memoizedState=c.state,h&&Ag(o,a,!0),o.child}function Tv(n){var o=n.stateNode;o.pendingContext?jg(n,o.pendingContext,o.pendingContext!==o.context):o.context&&jg(n,o.context,!1),Fd(n,o.containerInfo)}function Nv(n,o,a,c,h){return Ys(),Od(h),o.flags|=256,Jt(n,o,a,c),o.child}var rf={dehydrated:null,treeContext:null,retryLane:0};function of(n){return{baseLanes:n,cachePool:null,transitions:null}}function jv(n,o,a){var c=o.pendingProps,h=ht.current,v=!1,_=(o.flags&128)!==0,D;if((D=_)||(D=n!==null&&n.memoizedState===null?!1:(h&2)!==0),D?(v=!0,o.flags&=-129):(n===null||n.memoizedState!==null)&&(h|=1),lt(ht,h&1),n===null)return jd(o),n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((o.mode&1)===0?o.lanes=1:n.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(_=c.children,n=c.fallback,v?(c=o.mode,v=o.child,_={mode:"hidden",children:_},(c&1)===0&&v!==null?(v.childLanes=0,v.pendingProps=_):v=ku(_,c,0,null),n=rs(n,c,a,null),v.return=o,n.return=o,v.sibling=n,o.child=v,o.child.memoizedState=of(a),o.memoizedState=rf,n):sf(o,_));if(h=n.memoizedState,h!==null&&(D=h.dehydrated,D!==null))return G1(n,o,_,c,D,h,a);if(v){v=c.fallback,_=o.mode,h=n.child,D=h.sibling;var $={mode:"hidden",children:c.children};return(_&1)===0&&o.child!==h?(c=o.child,c.childLanes=0,c.pendingProps=$,o.deletions=null):(c=So(h,$),c.subtreeFlags=h.subtreeFlags&14680064),D!==null?v=So(D,v):(v=rs(v,_,a,null),v.flags|=2),v.return=o,c.return=o,c.sibling=v,o.child=c,c=v,v=o.child,_=n.child.memoizedState,_=_===null?of(a):{baseLanes:_.baseLanes|a,cachePool:null,transitions:_.transitions},v.memoizedState=_,v.childLanes=n.childLanes&~a,o.memoizedState=rf,c}return v=n.child,n=v.sibling,c=So(v,{mode:"visible",children:c.children}),(o.mode&1)===0&&(c.lanes=a),c.return=o,c.sibling=null,n!==null&&(a=o.deletions,a===null?(o.deletions=[n],o.flags|=16):a.push(n)),o.child=c,o.memoizedState=null,c}function sf(n,o){return o=ku({mode:"visible",children:o},n.mode,0,null),o.return=n,n.child=o}function hu(n,o,a,c){return c!==null&&Od(c),Js(o,n.child,null,a),n=sf(o,o.pendingProps.children),n.flags|=2,o.memoizedState=null,n}function G1(n,o,a,c,h,v,_){if(a)return o.flags&256?(o.flags&=-257,c=Zd(Error(r(422))),hu(n,o,_,c)):o.memoizedState!==null?(o.child=n.child,o.flags|=128,null):(v=c.fallback,h=o.mode,c=ku({mode:"visible",children:c.children},h,0,null),v=rs(v,h,_,null),v.flags|=2,c.return=o,v.return=o,c.sibling=v,o.child=c,(o.mode&1)!==0&&Js(o,n.child,null,_),o.child.memoizedState=of(_),o.memoizedState=rf,v);if((o.mode&1)===0)return hu(n,o,_,null);if(h.data==="$!"){if(c=h.nextSibling&&h.nextSibling.dataset,c)var D=c.dgst;return c=D,v=Error(r(419)),c=Zd(v,c,void 0),hu(n,o,_,c)}if(D=(_&n.childLanes)!==0,an||D){if(c=Ot,c!==null){switch(_&-_){case 4:h=2;break;case 16:h=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:h=32;break;case 536870912:h=268435456;break;default:h=0}h=(h&(c.suspendedLanes|_))!==0?0:h,h!==0&&h!==v.retryLane&&(v.retryLane=h,Ar(n,h),Kn(c,n,h,-1))}return xf(),c=Zd(Error(r(421))),hu(n,o,_,c)}return h.data==="$?"?(o.flags|=128,o.child=n.child,o=lC.bind(null,n),h._reactRetry=o,null):(n=v.treeContext,wn=uo(h.nextSibling),bn=o,pt=!0,Hn=null,n!==null&&(_n[kn++]=jr,_n[kn++]=Or,_n[kn++]=Ko,jr=n.id,Or=n.overflow,Ko=o),o=sf(o,c.children),o.flags|=4096,o)}function Ov(n,o,a){n.lanes|=o;var c=n.alternate;c!==null&&(c.lanes|=o),Md(n.return,o,a)}function af(n,o,a,c,h){var v=n.memoizedState;v===null?n.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:c,tail:a,tailMode:h}:(v.isBackwards=o,v.rendering=null,v.renderingStartTime=0,v.last=c,v.tail=a,v.tailMode=h)}function Av(n,o,a){var c=o.pendingProps,h=c.revealOrder,v=c.tail;if(Jt(n,o,c.children,a),c=ht.current,(c&2)!==0)c=c&1|2,o.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=o.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Ov(n,a,o);else if(n.tag===19)Ov(n,a,o);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===o)break e;for(;n.sibling===null;){if(n.return===null||n.return===o)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}c&=1}if(lt(ht,c),(o.mode&1)===0)o.memoizedState=null;else switch(h){case"forwards":for(a=o.child,h=null;a!==null;)n=a.alternate,n!==null&&au(n)===null&&(h=a),a=a.sibling;a=h,a===null?(h=o.child,o.child=null):(h=a.sibling,a.sibling=null),af(o,!1,h,a,v);break;case"backwards":for(a=null,h=o.child,o.child=null;h!==null;){if(n=h.alternate,n!==null&&au(n)===null){o.child=h;break}n=h.sibling,h.sibling=a,a=h,h=n}af(o,!0,a,null,v);break;case"together":af(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function mu(n,o){(o.mode&1)===0&&n!==null&&(n.alternate=null,o.alternate=null,o.flags|=2)}function Ir(n,o,a){if(n!==null&&(o.dependencies=n.dependencies),Zo|=o.lanes,(a&o.childLanes)===0)return null;if(n!==null&&o.child!==n.child)throw Error(r(153));if(o.child!==null){for(n=o.child,a=So(n,n.pendingProps),o.child=a,a.return=o;n.sibling!==null;)n=n.sibling,a=a.sibling=So(n,n.pendingProps),a.return=o;a.sibling=null}return o.child}function X1(n,o,a){switch(o.tag){case 3:Tv(o),Ys();break;case 5:qg(o);break;case 1:sn(o.type)&&Yl(o);break;case 4:Fd(o,o.stateNode.containerInfo);break;case 10:var c=o.type._context,h=o.memoizedProps.value;lt(ru,c._currentValue),c._currentValue=h;break;case 13:if(c=o.memoizedState,c!==null)return c.dehydrated!==null?(lt(ht,ht.current&1),o.flags|=128,null):(a&o.child.childLanes)!==0?jv(n,o,a):(lt(ht,ht.current&1),n=Ir(n,o,a),n!==null?n.sibling:null);lt(ht,ht.current&1);break;case 19:if(c=(a&o.childLanes)!==0,(n.flags&128)!==0){if(c)return Av(n,o,a);o.flags|=128}if(h=o.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),lt(ht,ht.current),c)break;return null;case 22:case 23:return o.lanes=0,_v(n,o,a)}return Ir(n,o,a)}var Dv,lf,Iv,Mv;Dv=function(n,o){for(var a=o.child;a!==null;){if(a.tag===5||a.tag===6)n.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},lf=function(){},Iv=function(n,o,a,c){var h=n.memoizedProps;if(h!==c){n=o.stateNode,Yo(dr.current);var v=null;switch(a){case"input":h=ft(n,h),c=ft(n,c),v=[];break;case"select":h=W({},h,{value:void 0}),c=W({},c,{value:void 0}),v=[];break;case"textarea":h=Fe(n,h),c=Fe(n,c),v=[];break;default:typeof h.onClick!="function"&&typeof c.onClick=="function"&&(n.onclick=Kl)}Lt(a,c);var _;a=null;for(Y in h)if(!c.hasOwnProperty(Y)&&h.hasOwnProperty(Y)&&h[Y]!=null)if(Y==="style"){var D=h[Y];for(_ in D)D.hasOwnProperty(_)&&(a||(a={}),a[_]="")}else Y!=="dangerouslySetInnerHTML"&&Y!=="children"&&Y!=="suppressContentEditableWarning"&&Y!=="suppressHydrationWarning"&&Y!=="autoFocus"&&(i.hasOwnProperty(Y)?v||(v=[]):(v=v||[]).push(Y,null));for(Y in c){var $=c[Y];if(D=h!=null?h[Y]:void 0,c.hasOwnProperty(Y)&&$!==D&&($!=null||D!=null))if(Y==="style")if(D){for(_ in D)!D.hasOwnProperty(_)||$&&$.hasOwnProperty(_)||(a||(a={}),a[_]="");for(_ in $)$.hasOwnProperty(_)&&D[_]!==$[_]&&(a||(a={}),a[_]=$[_])}else a||(v||(v=[]),v.push(Y,a)),a=$;else Y==="dangerouslySetInnerHTML"?($=$?$.__html:void 0,D=D?D.__html:void 0,$!=null&&D!==$&&(v=v||[]).push(Y,$)):Y==="children"?typeof $!="string"&&typeof $!="number"||(v=v||[]).push(Y,""+$):Y!=="suppressContentEditableWarning"&&Y!=="suppressHydrationWarning"&&(i.hasOwnProperty(Y)?($!=null&&Y==="onScroll"&&ut("scroll",n),v||D===$||(v=[])):(v=v||[]).push(Y,$))}a&&(v=v||[]).push("style",a);var Y=v;(o.updateQueue=Y)&&(o.flags|=4)}},Mv=function(n,o,a,c){a!==c&&(o.flags|=4)};function ka(n,o){if(!pt)switch(n.tailMode){case"hidden":o=n.tail;for(var a=null;o!==null;)o.alternate!==null&&(a=o),o=o.sibling;a===null?n.tail=null:a.sibling=null;break;case"collapsed":a=n.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?o||n.tail===null?n.tail=null:n.tail.sibling=null:c.sibling=null}}function qt(n){var o=n.alternate!==null&&n.alternate.child===n.child,a=0,c=0;if(o)for(var h=n.child;h!==null;)a|=h.lanes|h.childLanes,c|=h.subtreeFlags&14680064,c|=h.flags&14680064,h.return=n,h=h.sibling;else for(h=n.child;h!==null;)a|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=n,h=h.sibling;return n.subtreeFlags|=c,n.childLanes=a,o}function Y1(n,o,a){var c=o.pendingProps;switch(Td(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qt(o),null;case 1:return sn(o.type)&&Xl(),qt(o),null;case 3:return c=o.stateNode,ti(),ct(on),ct(Wt),Bd(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(n===null||n.child===null)&&(tu(o)?o.flags|=4:n===null||n.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Hn!==null&&(bf(Hn),Hn=null))),lf(n,o),qt(o),null;case 5:zd(o);var h=Yo(xa.current);if(a=o.type,n!==null&&o.stateNode!=null)Iv(n,o,a,c,h),n.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!c){if(o.stateNode===null)throw Error(r(166));return qt(o),null}if(n=Yo(dr.current),tu(o)){c=o.stateNode,a=o.type;var v=o.memoizedProps;switch(c[cr]=o,c[va]=v,n=(o.mode&1)!==0,a){case"dialog":ut("cancel",c),ut("close",c);break;case"iframe":case"object":case"embed":ut("load",c);break;case"video":case"audio":for(h=0;h<ha.length;h++)ut(ha[h],c);break;case"source":ut("error",c);break;case"img":case"image":case"link":ut("error",c),ut("load",c);break;case"details":ut("toggle",c);break;case"input":He(c,v),ut("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!v.multiple},ut("invalid",c);break;case"textarea":ze(c,v),ut("invalid",c)}Lt(a,v),h=null;for(var _ in v)if(v.hasOwnProperty(_)){var D=v[_];_==="children"?typeof D=="string"?c.textContent!==D&&(v.suppressHydrationWarning!==!0&&ql(c.textContent,D,n),h=["children",D]):typeof D=="number"&&c.textContent!==""+D&&(v.suppressHydrationWarning!==!0&&ql(c.textContent,D,n),h=["children",""+D]):i.hasOwnProperty(_)&&D!=null&&_==="onScroll"&&ut("scroll",c)}switch(a){case"input":Ue(c),pe(c,v,!0);break;case"textarea":Ue(c),oe(c);break;case"select":case"option":break;default:typeof v.onClick=="function"&&(c.onclick=Kl)}c=h,o.updateQueue=c,c!==null&&(o.flags|=4)}else{_=h.nodeType===9?h:h.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=Se(a)),n==="http://www.w3.org/1999/xhtml"?a==="script"?(n=_.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof c.is=="string"?n=_.createElement(a,{is:c.is}):(n=_.createElement(a),a==="select"&&(_=n,c.multiple?_.multiple=!0:c.size&&(_.size=c.size))):n=_.createElementNS(n,a),n[cr]=o,n[va]=c,Dv(n,o,!1,!1),o.stateNode=n;e:{switch(_=Pr(a,c),a){case"dialog":ut("cancel",n),ut("close",n),h=c;break;case"iframe":case"object":case"embed":ut("load",n),h=c;break;case"video":case"audio":for(h=0;h<ha.length;h++)ut(ha[h],n);h=c;break;case"source":ut("error",n),h=c;break;case"img":case"image":case"link":ut("error",n),ut("load",n),h=c;break;case"details":ut("toggle",n),h=c;break;case"input":He(n,c),h=ft(n,c),ut("invalid",n);break;case"option":h=c;break;case"select":n._wrapperState={wasMultiple:!!c.multiple},h=W({},c,{value:void 0}),ut("invalid",n);break;case"textarea":ze(n,c),h=Fe(n,c),ut("invalid",n);break;default:h=c}Lt(a,h),D=h;for(v in D)if(D.hasOwnProperty(v)){var $=D[v];v==="style"?kr(n,$):v==="dangerouslySetInnerHTML"?($=$?$.__html:void 0,$!=null&&Be(n,$)):v==="children"?typeof $=="string"?(a!=="textarea"||$!=="")&&Ge(n,$):typeof $=="number"&&Ge(n,""+$):v!=="suppressContentEditableWarning"&&v!=="suppressHydrationWarning"&&v!=="autoFocus"&&(i.hasOwnProperty(v)?$!=null&&v==="onScroll"&&ut("scroll",n):$!=null&&k(n,v,$,_))}switch(a){case"input":Ue(n),pe(n,c,!1);break;case"textarea":Ue(n),oe(n);break;case"option":c.value!=null&&n.setAttribute("value",""+fe(c.value));break;case"select":n.multiple=!!c.multiple,v=c.value,v!=null?Me(n,!!c.multiple,v,!1):c.defaultValue!=null&&Me(n,!!c.multiple,c.defaultValue,!0);break;default:typeof h.onClick=="function"&&(n.onclick=Kl)}switch(a){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return qt(o),null;case 6:if(n&&o.stateNode!=null)Mv(n,o,n.memoizedProps,c);else{if(typeof c!="string"&&o.stateNode===null)throw Error(r(166));if(a=Yo(xa.current),Yo(dr.current),tu(o)){if(c=o.stateNode,a=o.memoizedProps,c[cr]=o,(v=c.nodeValue!==a)&&(n=bn,n!==null))switch(n.tag){case 3:ql(c.nodeValue,a,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&ql(c.nodeValue,a,(n.mode&1)!==0)}v&&(o.flags|=4)}else c=(a.nodeType===9?a:a.ownerDocument).createTextNode(c),c[cr]=o,o.stateNode=c}return qt(o),null;case 13:if(ct(ht),c=o.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(pt&&wn!==null&&(o.mode&1)!==0&&(o.flags&128)===0)Fg(),Ys(),o.flags|=98560,v=!1;else if(v=tu(o),c!==null&&c.dehydrated!==null){if(n===null){if(!v)throw Error(r(318));if(v=o.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[cr]=o}else Ys(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;qt(o),v=!1}else Hn!==null&&(bf(Hn),Hn=null),v=!0;if(!v)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=a,o):(c=c!==null,c!==(n!==null&&n.memoizedState!==null)&&c&&(o.child.flags|=8192,(o.mode&1)!==0&&(n===null||(ht.current&1)!==0?Pt===0&&(Pt=3):xf())),o.updateQueue!==null&&(o.flags|=4),qt(o),null);case 4:return ti(),lf(n,o),n===null&&ma(o.stateNode.containerInfo),qt(o),null;case 10:return Id(o.type._context),qt(o),null;case 17:return sn(o.type)&&Xl(),qt(o),null;case 19:if(ct(ht),v=o.memoizedState,v===null)return qt(o),null;if(c=(o.flags&128)!==0,_=v.rendering,_===null)if(c)ka(v,!1);else{if(Pt!==0||n!==null&&(n.flags&128)!==0)for(n=o.child;n!==null;){if(_=au(n),_!==null){for(o.flags|=128,ka(v,!1),c=_.updateQueue,c!==null&&(o.updateQueue=c,o.flags|=4),o.subtreeFlags=0,c=a,a=o.child;a!==null;)v=a,n=c,v.flags&=14680066,_=v.alternate,_===null?(v.childLanes=0,v.lanes=n,v.child=null,v.subtreeFlags=0,v.memoizedProps=null,v.memoizedState=null,v.updateQueue=null,v.dependencies=null,v.stateNode=null):(v.childLanes=_.childLanes,v.lanes=_.lanes,v.child=_.child,v.subtreeFlags=0,v.deletions=null,v.memoizedProps=_.memoizedProps,v.memoizedState=_.memoizedState,v.updateQueue=_.updateQueue,v.type=_.type,n=_.dependencies,v.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),a=a.sibling;return lt(ht,ht.current&1|2),o.child}n=n.sibling}v.tail!==null&&bt()>si&&(o.flags|=128,c=!0,ka(v,!1),o.lanes=4194304)}else{if(!c)if(n=au(_),n!==null){if(o.flags|=128,c=!0,a=n.updateQueue,a!==null&&(o.updateQueue=a,o.flags|=4),ka(v,!0),v.tail===null&&v.tailMode==="hidden"&&!_.alternate&&!pt)return qt(o),null}else 2*bt()-v.renderingStartTime>si&&a!==1073741824&&(o.flags|=128,c=!0,ka(v,!1),o.lanes=4194304);v.isBackwards?(_.sibling=o.child,o.child=_):(a=v.last,a!==null?a.sibling=_:o.child=_,v.last=_)}return v.tail!==null?(o=v.tail,v.rendering=o,v.tail=o.sibling,v.renderingStartTime=bt(),o.sibling=null,a=ht.current,lt(ht,c?a&1|2:a&1),o):(qt(o),null);case 22:case 23:return Sf(),c=o.memoizedState!==null,n!==null&&n.memoizedState!==null!==c&&(o.flags|=8192),c&&(o.mode&1)!==0?(Sn&1073741824)!==0&&(qt(o),o.subtreeFlags&6&&(o.flags|=8192)):qt(o),null;case 24:return null;case 25:return null}throw Error(r(156,o.tag))}function J1(n,o){switch(Td(o),o.tag){case 1:return sn(o.type)&&Xl(),n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 3:return ti(),ct(on),ct(Wt),Bd(),n=o.flags,(n&65536)!==0&&(n&128)===0?(o.flags=n&-65537|128,o):null;case 5:return zd(o),null;case 13:if(ct(ht),n=o.memoizedState,n!==null&&n.dehydrated!==null){if(o.alternate===null)throw Error(r(340));Ys()}return n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 19:return ct(ht),null;case 4:return ti(),null;case 10:return Id(o.type._context),null;case 22:case 23:return Sf(),null;case 24:return null;default:return null}}var gu=!1,Kt=!1,Z1=typeof WeakSet=="function"?WeakSet:Set,Ee=null;function ri(n,o){var a=n.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(c){gt(n,o,c)}else a.current=null}function uf(n,o,a){try{a()}catch(c){gt(n,o,c)}}var $v=!1;function eC(n,o){if(wd=Ml,n=mg(),fd(n)){if("selectionStart"in n)var a={start:n.selectionStart,end:n.selectionEnd};else e:{a=(a=n.ownerDocument)&&a.defaultView||window;var c=a.getSelection&&a.getSelection();if(c&&c.rangeCount!==0){a=c.anchorNode;var h=c.anchorOffset,v=c.focusNode;c=c.focusOffset;try{a.nodeType,v.nodeType}catch{a=null;break e}var _=0,D=-1,$=-1,Y=0,ae=0,de=n,ie=null;t:for(;;){for(var xe;de!==a||h!==0&&de.nodeType!==3||(D=_+h),de!==v||c!==0&&de.nodeType!==3||($=_+c),de.nodeType===3&&(_+=de.nodeValue.length),(xe=de.firstChild)!==null;)ie=de,de=xe;for(;;){if(de===n)break t;if(ie===a&&++Y===h&&(D=_),ie===v&&++ae===c&&($=_),(xe=de.nextSibling)!==null)break;de=ie,ie=de.parentNode}de=xe}a=D===-1||$===-1?null:{start:D,end:$}}else a=null}a=a||{start:0,end:0}}else a=null;for(Sd={focusedElem:n,selectionRange:a},Ml=!1,Ee=o;Ee!==null;)if(o=Ee,n=o.child,(o.subtreeFlags&1028)!==0&&n!==null)n.return=o,Ee=n;else for(;Ee!==null;){o=Ee;try{var _e=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(_e!==null){var ke=_e.memoizedProps,wt=_e.memoizedState,H=o.stateNode,z=H.getSnapshotBeforeUpdate(o.elementType===o.type?ke:Wn(o.type,ke),wt);H.__reactInternalSnapshotBeforeUpdate=z}break;case 3:var K=o.stateNode.containerInfo;K.nodeType===1?K.textContent="":K.nodeType===9&&K.documentElement&&K.removeChild(K.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(ge){gt(o,o.return,ge)}if(n=o.sibling,n!==null){n.return=o.return,Ee=n;break}Ee=o.return}return _e=$v,$v=!1,_e}function Pa(n,o,a){var c=o.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var h=c=c.next;do{if((h.tag&n)===n){var v=h.destroy;h.destroy=void 0,v!==void 0&&uf(o,a,v)}h=h.next}while(h!==c)}}function vu(n,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var a=o=o.next;do{if((a.tag&n)===n){var c=a.create;a.destroy=c()}a=a.next}while(a!==o)}}function cf(n){var o=n.ref;if(o!==null){var a=n.stateNode;switch(n.tag){case 5:n=a;break;default:n=a}typeof o=="function"?o(n):o.current=n}}function Lv(n){var o=n.alternate;o!==null&&(n.alternate=null,Lv(o)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(o=n.stateNode,o!==null&&(delete o[cr],delete o[va],delete o[Rd],delete o[M1],delete o[$1])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function Fv(n){return n.tag===5||n.tag===3||n.tag===4}function zv(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Fv(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function df(n,o,a){var c=n.tag;if(c===5||c===6)n=n.stateNode,o?a.nodeType===8?a.parentNode.insertBefore(n,o):a.insertBefore(n,o):(a.nodeType===8?(o=a.parentNode,o.insertBefore(n,a)):(o=a,o.appendChild(n)),a=a._reactRootContainer,a!=null||o.onclick!==null||(o.onclick=Kl));else if(c!==4&&(n=n.child,n!==null))for(df(n,o,a),n=n.sibling;n!==null;)df(n,o,a),n=n.sibling}function ff(n,o,a){var c=n.tag;if(c===5||c===6)n=n.stateNode,o?a.insertBefore(n,o):a.appendChild(n);else if(c!==4&&(n=n.child,n!==null))for(ff(n,o,a),n=n.sibling;n!==null;)ff(n,o,a),n=n.sibling}var Ft=null,Qn=!1;function go(n,o,a){for(a=a.child;a!==null;)Vv(n,o,a),a=a.sibling}function Vv(n,o,a){if(ur&&typeof ur.onCommitFiberUnmount=="function")try{ur.onCommitFiberUnmount(Nl,a)}catch{}switch(a.tag){case 5:Kt||ri(a,o);case 6:var c=Ft,h=Qn;Ft=null,go(n,o,a),Ft=c,Qn=h,Ft!==null&&(Qn?(n=Ft,a=a.stateNode,n.nodeType===8?n.parentNode.removeChild(a):n.removeChild(a)):Ft.removeChild(a.stateNode));break;case 18:Ft!==null&&(Qn?(n=Ft,a=a.stateNode,n.nodeType===8?Ed(n.parentNode,a):n.nodeType===1&&Ed(n,a),ia(n)):Ed(Ft,a.stateNode));break;case 4:c=Ft,h=Qn,Ft=a.stateNode.containerInfo,Qn=!0,go(n,o,a),Ft=c,Qn=h;break;case 0:case 11:case 14:case 15:if(!Kt&&(c=a.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){h=c=c.next;do{var v=h,_=v.destroy;v=v.tag,_!==void 0&&((v&2)!==0||(v&4)!==0)&&uf(a,o,_),h=h.next}while(h!==c)}go(n,o,a);break;case 1:if(!Kt&&(ri(a,o),c=a.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=a.memoizedProps,c.state=a.memoizedState,c.componentWillUnmount()}catch(D){gt(a,o,D)}go(n,o,a);break;case 21:go(n,o,a);break;case 22:a.mode&1?(Kt=(c=Kt)||a.memoizedState!==null,go(n,o,a),Kt=c):go(n,o,a);break;default:go(n,o,a)}}function Bv(n){var o=n.updateQueue;if(o!==null){n.updateQueue=null;var a=n.stateNode;a===null&&(a=n.stateNode=new Z1),o.forEach(function(c){var h=uC.bind(null,n,c);a.has(c)||(a.add(c),c.then(h,h))})}}function qn(n,o){var a=o.deletions;if(a!==null)for(var c=0;c<a.length;c++){var h=a[c];try{var v=n,_=o,D=_;e:for(;D!==null;){switch(D.tag){case 5:Ft=D.stateNode,Qn=!1;break e;case 3:Ft=D.stateNode.containerInfo,Qn=!0;break e;case 4:Ft=D.stateNode.containerInfo,Qn=!0;break e}D=D.return}if(Ft===null)throw Error(r(160));Vv(v,_,h),Ft=null,Qn=!1;var $=h.alternate;$!==null&&($.return=null),h.return=null}catch(Y){gt(h,o,Y)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Uv(o,n),o=o.sibling}function Uv(n,o){var a=n.alternate,c=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(qn(o,n),pr(n),c&4){try{Pa(3,n,n.return),vu(3,n)}catch(ke){gt(n,n.return,ke)}try{Pa(5,n,n.return)}catch(ke){gt(n,n.return,ke)}}break;case 1:qn(o,n),pr(n),c&512&&a!==null&&ri(a,a.return);break;case 5:if(qn(o,n),pr(n),c&512&&a!==null&&ri(a,a.return),n.flags&32){var h=n.stateNode;try{Ge(h,"")}catch(ke){gt(n,n.return,ke)}}if(c&4&&(h=n.stateNode,h!=null)){var v=n.memoizedProps,_=a!==null?a.memoizedProps:v,D=n.type,$=n.updateQueue;if(n.updateQueue=null,$!==null)try{D==="input"&&v.type==="radio"&&v.name!=null&&Rt(h,v),Pr(D,_);var Y=Pr(D,v);for(_=0;_<$.length;_+=2){var ae=$[_],de=$[_+1];ae==="style"?kr(h,de):ae==="dangerouslySetInnerHTML"?Be(h,de):ae==="children"?Ge(h,de):k(h,ae,de,Y)}switch(D){case"input":ue(h,v);break;case"textarea":ce(h,v);break;case"select":var ie=h._wrapperState.wasMultiple;h._wrapperState.wasMultiple=!!v.multiple;var xe=v.value;xe!=null?Me(h,!!v.multiple,xe,!1):ie!==!!v.multiple&&(v.defaultValue!=null?Me(h,!!v.multiple,v.defaultValue,!0):Me(h,!!v.multiple,v.multiple?[]:"",!1))}h[va]=v}catch(ke){gt(n,n.return,ke)}}break;case 6:if(qn(o,n),pr(n),c&4){if(n.stateNode===null)throw Error(r(162));h=n.stateNode,v=n.memoizedProps;try{h.nodeValue=v}catch(ke){gt(n,n.return,ke)}}break;case 3:if(qn(o,n),pr(n),c&4&&a!==null&&a.memoizedState.isDehydrated)try{ia(o.containerInfo)}catch(ke){gt(n,n.return,ke)}break;case 4:qn(o,n),pr(n);break;case 13:qn(o,n),pr(n),h=n.child,h.flags&8192&&(v=h.memoizedState!==null,h.stateNode.isHidden=v,!v||h.alternate!==null&&h.alternate.memoizedState!==null||(mf=bt())),c&4&&Bv(n);break;case 22:if(ae=a!==null&&a.memoizedState!==null,n.mode&1?(Kt=(Y=Kt)||ae,qn(o,n),Kt=Y):qn(o,n),pr(n),c&8192){if(Y=n.memoizedState!==null,(n.stateNode.isHidden=Y)&&!ae&&(n.mode&1)!==0)for(Ee=n,ae=n.child;ae!==null;){for(de=Ee=ae;Ee!==null;){switch(ie=Ee,xe=ie.child,ie.tag){case 0:case 11:case 14:case 15:Pa(4,ie,ie.return);break;case 1:ri(ie,ie.return);var _e=ie.stateNode;if(typeof _e.componentWillUnmount=="function"){c=ie,a=ie.return;try{o=c,_e.props=o.memoizedProps,_e.state=o.memoizedState,_e.componentWillUnmount()}catch(ke){gt(c,a,ke)}}break;case 5:ri(ie,ie.return);break;case 22:if(ie.memoizedState!==null){Qv(de);continue}}xe!==null?(xe.return=ie,Ee=xe):Qv(de)}ae=ae.sibling}e:for(ae=null,de=n;;){if(de.tag===5){if(ae===null){ae=de;try{h=de.stateNode,Y?(v=h.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none"):(D=de.stateNode,$=de.memoizedProps.style,_=$!=null&&$.hasOwnProperty("display")?$.display:null,D.style.display=_r("display",_))}catch(ke){gt(n,n.return,ke)}}}else if(de.tag===6){if(ae===null)try{de.stateNode.nodeValue=Y?"":de.memoizedProps}catch(ke){gt(n,n.return,ke)}}else if((de.tag!==22&&de.tag!==23||de.memoizedState===null||de===n)&&de.child!==null){de.child.return=de,de=de.child;continue}if(de===n)break e;for(;de.sibling===null;){if(de.return===null||de.return===n)break e;ae===de&&(ae=null),de=de.return}ae===de&&(ae=null),de.sibling.return=de.return,de=de.sibling}}break;case 19:qn(o,n),pr(n),c&4&&Bv(n);break;case 21:break;default:qn(o,n),pr(n)}}function pr(n){var o=n.flags;if(o&2){try{e:{for(var a=n.return;a!==null;){if(Fv(a)){var c=a;break e}a=a.return}throw Error(r(160))}switch(c.tag){case 5:var h=c.stateNode;c.flags&32&&(Ge(h,""),c.flags&=-33);var v=zv(n);ff(n,v,h);break;case 3:case 4:var _=c.stateNode.containerInfo,D=zv(n);df(n,D,_);break;default:throw Error(r(161))}}catch($){gt(n,n.return,$)}n.flags&=-3}o&4096&&(n.flags&=-4097)}function tC(n,o,a){Ee=n,Hv(n)}function Hv(n,o,a){for(var c=(n.mode&1)!==0;Ee!==null;){var h=Ee,v=h.child;if(h.tag===22&&c){var _=h.memoizedState!==null||gu;if(!_){var D=h.alternate,$=D!==null&&D.memoizedState!==null||Kt;D=gu;var Y=Kt;if(gu=_,(Kt=$)&&!Y)for(Ee=h;Ee!==null;)_=Ee,$=_.child,_.tag===22&&_.memoizedState!==null?qv(h):$!==null?($.return=_,Ee=$):qv(h);for(;v!==null;)Ee=v,Hv(v),v=v.sibling;Ee=h,gu=D,Kt=Y}Wv(n)}else(h.subtreeFlags&8772)!==0&&v!==null?(v.return=h,Ee=v):Wv(n)}}function Wv(n){for(;Ee!==null;){var o=Ee;if((o.flags&8772)!==0){var a=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:Kt||vu(5,o);break;case 1:var c=o.stateNode;if(o.flags&4&&!Kt)if(a===null)c.componentDidMount();else{var h=o.elementType===o.type?a.memoizedProps:Wn(o.type,a.memoizedProps);c.componentDidUpdate(h,a.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var v=o.updateQueue;v!==null&&Qg(o,v,c);break;case 3:var _=o.updateQueue;if(_!==null){if(a=null,o.child!==null)switch(o.child.tag){case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}Qg(o,_,a)}break;case 5:var D=o.stateNode;if(a===null&&o.flags&4){a=D;var $=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":$.autoFocus&&a.focus();break;case"img":$.src&&(a.src=$.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var Y=o.alternate;if(Y!==null){var ae=Y.memoizedState;if(ae!==null){var de=ae.dehydrated;de!==null&&ia(de)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Kt||o.flags&512&&cf(o)}catch(ie){gt(o,o.return,ie)}}if(o===n){Ee=null;break}if(a=o.sibling,a!==null){a.return=o.return,Ee=a;break}Ee=o.return}}function Qv(n){for(;Ee!==null;){var o=Ee;if(o===n){Ee=null;break}var a=o.sibling;if(a!==null){a.return=o.return,Ee=a;break}Ee=o.return}}function qv(n){for(;Ee!==null;){var o=Ee;try{switch(o.tag){case 0:case 11:case 15:var a=o.return;try{vu(4,o)}catch($){gt(o,a,$)}break;case 1:var c=o.stateNode;if(typeof c.componentDidMount=="function"){var h=o.return;try{c.componentDidMount()}catch($){gt(o,h,$)}}var v=o.return;try{cf(o)}catch($){gt(o,v,$)}break;case 5:var _=o.return;try{cf(o)}catch($){gt(o,_,$)}}}catch($){gt(o,o.return,$)}if(o===n){Ee=null;break}var D=o.sibling;if(D!==null){D.return=o.return,Ee=D;break}Ee=o.return}}var nC=Math.ceil,yu=T.ReactCurrentDispatcher,pf=T.ReactCurrentOwner,Nn=T.ReactCurrentBatchConfig,nt=0,Ot=null,Et=null,zt=0,Sn=0,oi=co(0),Pt=0,Ta=null,Zo=0,bu=0,hf=0,Na=null,ln=null,mf=0,si=1/0,Mr=null,wu=!1,gf=null,vo=null,Su=!1,yo=null,xu=0,ja=0,vf=null,Cu=-1,Eu=0;function Zt(){return(nt&6)!==0?bt():Cu!==-1?Cu:Cu=bt()}function bo(n){return(n.mode&1)===0?1:(nt&2)!==0&&zt!==0?zt&-zt:F1.transition!==null?(Eu===0&&(Eu=zm()),Eu):(n=it,n!==0||(n=window.event,n=n===void 0?16:Gm(n.type)),n)}function Kn(n,o,a,c){if(50<ja)throw ja=0,vf=null,Error(r(185));ta(n,a,c),((nt&2)===0||n!==Ot)&&(n===Ot&&((nt&2)===0&&(bu|=a),Pt===4&&wo(n,zt)),un(n,c),a===1&&nt===0&&(o.mode&1)===0&&(si=bt()+500,Jl&&po()))}function un(n,o){var a=n.callbackNode;Fx(n,o);var c=Al(n,n===Ot?zt:0);if(c===0)a!==null&&$m(a),n.callbackNode=null,n.callbackPriority=0;else if(o=c&-c,n.callbackPriority!==o){if(a!=null&&$m(a),o===1)n.tag===0?L1(Gv.bind(null,n)):Dg(Gv.bind(null,n)),D1(function(){(nt&6)===0&&po()}),a=null;else{switch(Vm(c)){case 1:a=Gc;break;case 4:a=Lm;break;case 16:a=Tl;break;case 536870912:a=Fm;break;default:a=Tl}a=ry(a,Kv.bind(null,n))}n.callbackPriority=o,n.callbackNode=a}}function Kv(n,o){if(Cu=-1,Eu=0,(nt&6)!==0)throw Error(r(327));var a=n.callbackNode;if(ii()&&n.callbackNode!==a)return null;var c=Al(n,n===Ot?zt:0);if(c===0)return null;if((c&30)!==0||(c&n.expiredLanes)!==0||o)o=Ru(n,c);else{o=c;var h=nt;nt|=2;var v=Yv();(Ot!==n||zt!==o)&&(Mr=null,si=bt()+500,ts(n,o));do try{sC();break}catch(D){Xv(n,D)}while(!0);Dd(),yu.current=v,nt=h,Et!==null?o=0:(Ot=null,zt=0,o=Pt)}if(o!==0){if(o===2&&(h=Xc(n),h!==0&&(c=h,o=yf(n,h))),o===1)throw a=Ta,ts(n,0),wo(n,c),un(n,bt()),a;if(o===6)wo(n,c);else{if(h=n.current.alternate,(c&30)===0&&!rC(h)&&(o=Ru(n,c),o===2&&(v=Xc(n),v!==0&&(c=v,o=yf(n,v))),o===1))throw a=Ta,ts(n,0),wo(n,c),un(n,bt()),a;switch(n.finishedWork=h,n.finishedLanes=c,o){case 0:case 1:throw Error(r(345));case 2:ns(n,ln,Mr);break;case 3:if(wo(n,c),(c&130023424)===c&&(o=mf+500-bt(),10<o)){if(Al(n,0)!==0)break;if(h=n.suspendedLanes,(h&c)!==c){Zt(),n.pingedLanes|=n.suspendedLanes&h;break}n.timeoutHandle=Cd(ns.bind(null,n,ln,Mr),o);break}ns(n,ln,Mr);break;case 4:if(wo(n,c),(c&4194240)===c)break;for(o=n.eventTimes,h=-1;0<c;){var _=31-Bn(c);v=1<<_,_=o[_],_>h&&(h=_),c&=~v}if(c=h,c=bt()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*nC(c/1960))-c,10<c){n.timeoutHandle=Cd(ns.bind(null,n,ln,Mr),c);break}ns(n,ln,Mr);break;case 5:ns(n,ln,Mr);break;default:throw Error(r(329))}}}return un(n,bt()),n.callbackNode===a?Kv.bind(null,n):null}function yf(n,o){var a=Na;return n.current.memoizedState.isDehydrated&&(ts(n,o).flags|=256),n=Ru(n,o),n!==2&&(o=ln,ln=a,o!==null&&bf(o)),n}function bf(n){ln===null?ln=n:ln.push.apply(ln,n)}function rC(n){for(var o=n;;){if(o.flags&16384){var a=o.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var c=0;c<a.length;c++){var h=a[c],v=h.getSnapshot;h=h.value;try{if(!Un(v(),h))return!1}catch{return!1}}}if(a=o.child,o.subtreeFlags&16384&&a!==null)a.return=o,o=a;else{if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function wo(n,o){for(o&=~hf,o&=~bu,n.suspendedLanes|=o,n.pingedLanes&=~o,n=n.expirationTimes;0<o;){var a=31-Bn(o),c=1<<a;n[a]=-1,o&=~c}}function Gv(n){if((nt&6)!==0)throw Error(r(327));ii();var o=Al(n,0);if((o&1)===0)return un(n,bt()),null;var a=Ru(n,o);if(n.tag!==0&&a===2){var c=Xc(n);c!==0&&(o=c,a=yf(n,c))}if(a===1)throw a=Ta,ts(n,0),wo(n,o),un(n,bt()),a;if(a===6)throw Error(r(345));return n.finishedWork=n.current.alternate,n.finishedLanes=o,ns(n,ln,Mr),un(n,bt()),null}function wf(n,o){var a=nt;nt|=1;try{return n(o)}finally{nt=a,nt===0&&(si=bt()+500,Jl&&po())}}function es(n){yo!==null&&yo.tag===0&&(nt&6)===0&&ii();var o=nt;nt|=1;var a=Nn.transition,c=it;try{if(Nn.transition=null,it=1,n)return n()}finally{it=c,Nn.transition=a,nt=o,(nt&6)===0&&po()}}function Sf(){Sn=oi.current,ct(oi)}function ts(n,o){n.finishedWork=null,n.finishedLanes=0;var a=n.timeoutHandle;if(a!==-1&&(n.timeoutHandle=-1,A1(a)),Et!==null)for(a=Et.return;a!==null;){var c=a;switch(Td(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Xl();break;case 3:ti(),ct(on),ct(Wt),Bd();break;case 5:zd(c);break;case 4:ti();break;case 13:ct(ht);break;case 19:ct(ht);break;case 10:Id(c.type._context);break;case 22:case 23:Sf()}a=a.return}if(Ot=n,Et=n=So(n.current,null),zt=Sn=o,Pt=0,Ta=null,hf=bu=Zo=0,ln=Na=null,Xo!==null){for(o=0;o<Xo.length;o++)if(a=Xo[o],c=a.interleaved,c!==null){a.interleaved=null;var h=c.next,v=a.pending;if(v!==null){var _=v.next;v.next=h,c.next=_}a.pending=c}Xo=null}return n}function Xv(n,o){do{var a=Et;try{if(Dd(),lu.current=fu,uu){for(var c=mt.memoizedState;c!==null;){var h=c.queue;h!==null&&(h.pending=null),c=c.next}uu=!1}if(Jo=0,jt=kt=mt=null,Ca=!1,Ea=0,pf.current=null,a===null||a.return===null){Pt=1,Ta=o,Et=null;break}e:{var v=n,_=a.return,D=a,$=o;if(o=zt,D.flags|=32768,$!==null&&typeof $=="object"&&typeof $.then=="function"){var Y=$,ae=D,de=ae.tag;if((ae.mode&1)===0&&(de===0||de===11||de===15)){var ie=ae.alternate;ie?(ae.updateQueue=ie.updateQueue,ae.memoizedState=ie.memoizedState,ae.lanes=ie.lanes):(ae.updateQueue=null,ae.memoizedState=null)}var xe=Sv(_);if(xe!==null){xe.flags&=-257,xv(xe,_,D,v,o),xe.mode&1&&wv(v,Y,o),o=xe,$=Y;var _e=o.updateQueue;if(_e===null){var ke=new Set;ke.add($),o.updateQueue=ke}else _e.add($);break e}else{if((o&1)===0){wv(v,Y,o),xf();break e}$=Error(r(426))}}else if(pt&&D.mode&1){var wt=Sv(_);if(wt!==null){(wt.flags&65536)===0&&(wt.flags|=256),xv(wt,_,D,v,o),Od(ni($,D));break e}}v=$=ni($,D),Pt!==4&&(Pt=2),Na===null?Na=[v]:Na.push(v),v=_;do{switch(v.tag){case 3:v.flags|=65536,o&=-o,v.lanes|=o;var H=yv(v,$,o);Wg(v,H);break e;case 1:D=$;var z=v.type,K=v.stateNode;if((v.flags&128)===0&&(typeof z.getDerivedStateFromError=="function"||K!==null&&typeof K.componentDidCatch=="function"&&(vo===null||!vo.has(K)))){v.flags|=65536,o&=-o,v.lanes|=o;var ge=bv(v,D,o);Wg(v,ge);break e}}v=v.return}while(v!==null)}Zv(a)}catch(Te){o=Te,Et===a&&a!==null&&(Et=a=a.return);continue}break}while(!0)}function Yv(){var n=yu.current;return yu.current=fu,n===null?fu:n}function xf(){(Pt===0||Pt===3||Pt===2)&&(Pt=4),Ot===null||(Zo&268435455)===0&&(bu&268435455)===0||wo(Ot,zt)}function Ru(n,o){var a=nt;nt|=2;var c=Yv();(Ot!==n||zt!==o)&&(Mr=null,ts(n,o));do try{oC();break}catch(h){Xv(n,h)}while(!0);if(Dd(),nt=a,yu.current=c,Et!==null)throw Error(r(261));return Ot=null,zt=0,Pt}function oC(){for(;Et!==null;)Jv(Et)}function sC(){for(;Et!==null&&!Nx();)Jv(Et)}function Jv(n){var o=ny(n.alternate,n,Sn);n.memoizedProps=n.pendingProps,o===null?Zv(n):Et=o,pf.current=null}function Zv(n){var o=n;do{var a=o.alternate;if(n=o.return,(o.flags&32768)===0){if(a=Y1(a,o,Sn),a!==null){Et=a;return}}else{if(a=J1(a,o),a!==null){a.flags&=32767,Et=a;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{Pt=6,Et=null;return}}if(o=o.sibling,o!==null){Et=o;return}Et=o=n}while(o!==null);Pt===0&&(Pt=5)}function ns(n,o,a){var c=it,h=Nn.transition;try{Nn.transition=null,it=1,iC(n,o,a,c)}finally{Nn.transition=h,it=c}return null}function iC(n,o,a,c){do ii();while(yo!==null);if((nt&6)!==0)throw Error(r(327));a=n.finishedWork;var h=n.finishedLanes;if(a===null)return null;if(n.finishedWork=null,n.finishedLanes=0,a===n.current)throw Error(r(177));n.callbackNode=null,n.callbackPriority=0;var v=a.lanes|a.childLanes;if(zx(n,v),n===Ot&&(Et=Ot=null,zt=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||Su||(Su=!0,ry(Tl,function(){return ii(),null})),v=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||v){v=Nn.transition,Nn.transition=null;var _=it;it=1;var D=nt;nt|=4,pf.current=null,eC(n,a),Uv(a,n),_1(Sd),Ml=!!wd,Sd=wd=null,n.current=a,tC(a),jx(),nt=D,it=_,Nn.transition=v}else n.current=a;if(Su&&(Su=!1,yo=n,xu=h),v=n.pendingLanes,v===0&&(vo=null),Dx(a.stateNode),un(n,bt()),o!==null)for(c=n.onRecoverableError,a=0;a<o.length;a++)h=o[a],c(h.value,{componentStack:h.stack,digest:h.digest});if(wu)throw wu=!1,n=gf,gf=null,n;return(xu&1)!==0&&n.tag!==0&&ii(),v=n.pendingLanes,(v&1)!==0?n===vf?ja++:(ja=0,vf=n):ja=0,po(),null}function ii(){if(yo!==null){var n=Vm(xu),o=Nn.transition,a=it;try{if(Nn.transition=null,it=16>n?16:n,yo===null)var c=!1;else{if(n=yo,yo=null,xu=0,(nt&6)!==0)throw Error(r(331));var h=nt;for(nt|=4,Ee=n.current;Ee!==null;){var v=Ee,_=v.child;if((Ee.flags&16)!==0){var D=v.deletions;if(D!==null){for(var $=0;$<D.length;$++){var Y=D[$];for(Ee=Y;Ee!==null;){var ae=Ee;switch(ae.tag){case 0:case 11:case 15:Pa(8,ae,v)}var de=ae.child;if(de!==null)de.return=ae,Ee=de;else for(;Ee!==null;){ae=Ee;var ie=ae.sibling,xe=ae.return;if(Lv(ae),ae===Y){Ee=null;break}if(ie!==null){ie.return=xe,Ee=ie;break}Ee=xe}}}var _e=v.alternate;if(_e!==null){var ke=_e.child;if(ke!==null){_e.child=null;do{var wt=ke.sibling;ke.sibling=null,ke=wt}while(ke!==null)}}Ee=v}}if((v.subtreeFlags&2064)!==0&&_!==null)_.return=v,Ee=_;else e:for(;Ee!==null;){if(v=Ee,(v.flags&2048)!==0)switch(v.tag){case 0:case 11:case 15:Pa(9,v,v.return)}var H=v.sibling;if(H!==null){H.return=v.return,Ee=H;break e}Ee=v.return}}var z=n.current;for(Ee=z;Ee!==null;){_=Ee;var K=_.child;if((_.subtreeFlags&2064)!==0&&K!==null)K.return=_,Ee=K;else e:for(_=z;Ee!==null;){if(D=Ee,(D.flags&2048)!==0)try{switch(D.tag){case 0:case 11:case 15:vu(9,D)}}catch(Te){gt(D,D.return,Te)}if(D===_){Ee=null;break e}var ge=D.sibling;if(ge!==null){ge.return=D.return,Ee=ge;break e}Ee=D.return}}if(nt=h,po(),ur&&typeof ur.onPostCommitFiberRoot=="function")try{ur.onPostCommitFiberRoot(Nl,n)}catch{}c=!0}return c}finally{it=a,Nn.transition=o}}return!1}function ey(n,o,a){o=ni(a,o),o=yv(n,o,1),n=mo(n,o,1),o=Zt(),n!==null&&(ta(n,1,o),un(n,o))}function gt(n,o,a){if(n.tag===3)ey(n,n,a);else for(;o!==null;){if(o.tag===3){ey(o,n,a);break}else if(o.tag===1){var c=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(vo===null||!vo.has(c))){n=ni(a,n),n=bv(o,n,1),o=mo(o,n,1),n=Zt(),o!==null&&(ta(o,1,n),un(o,n));break}}o=o.return}}function aC(n,o,a){var c=n.pingCache;c!==null&&c.delete(o),o=Zt(),n.pingedLanes|=n.suspendedLanes&a,Ot===n&&(zt&a)===a&&(Pt===4||Pt===3&&(zt&130023424)===zt&&500>bt()-mf?ts(n,0):hf|=a),un(n,o)}function ty(n,o){o===0&&((n.mode&1)===0?o=1:(o=Ol,Ol<<=1,(Ol&130023424)===0&&(Ol=4194304)));var a=Zt();n=Ar(n,o),n!==null&&(ta(n,o,a),un(n,a))}function lC(n){var o=n.memoizedState,a=0;o!==null&&(a=o.retryLane),ty(n,a)}function uC(n,o){var a=0;switch(n.tag){case 13:var c=n.stateNode,h=n.memoizedState;h!==null&&(a=h.retryLane);break;case 19:c=n.stateNode;break;default:throw Error(r(314))}c!==null&&c.delete(o),ty(n,a)}var ny;ny=function(n,o,a){if(n!==null)if(n.memoizedProps!==o.pendingProps||on.current)an=!0;else{if((n.lanes&a)===0&&(o.flags&128)===0)return an=!1,X1(n,o,a);an=(n.flags&131072)!==0}else an=!1,pt&&(o.flags&1048576)!==0&&Ig(o,eu,o.index);switch(o.lanes=0,o.tag){case 2:var c=o.type;mu(n,o),n=o.pendingProps;var h=Ks(o,Wt.current);ei(o,a),h=Wd(null,o,c,n,h,a);var v=Qd();return o.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,sn(c)?(v=!0,Yl(o)):v=!1,o.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,Ld(o),h.updater=pu,o.stateNode=h,h._reactInternals=o,Jd(o,c,n,a),o=nf(null,o,c,!0,v,a)):(o.tag=0,pt&&v&&Pd(o),Jt(null,o,h,a),o=o.child),o;case 16:c=o.elementType;e:{switch(mu(n,o),n=o.pendingProps,h=c._init,c=h(c._payload),o.type=c,h=o.tag=dC(c),n=Wn(c,n),h){case 0:o=tf(null,o,c,n,a);break e;case 1:o=Pv(null,o,c,n,a);break e;case 11:o=Cv(null,o,c,n,a);break e;case 14:o=Ev(null,o,c,Wn(c.type,n),a);break e}throw Error(r(306,c,""))}return o;case 0:return c=o.type,h=o.pendingProps,h=o.elementType===c?h:Wn(c,h),tf(n,o,c,h,a);case 1:return c=o.type,h=o.pendingProps,h=o.elementType===c?h:Wn(c,h),Pv(n,o,c,h,a);case 3:e:{if(Tv(o),n===null)throw Error(r(387));c=o.pendingProps,v=o.memoizedState,h=v.element,Hg(n,o),iu(o,c,null,a);var _=o.memoizedState;if(c=_.element,v.isDehydrated)if(v={element:c,isDehydrated:!1,cache:_.cache,pendingSuspenseBoundaries:_.pendingSuspenseBoundaries,transitions:_.transitions},o.updateQueue.baseState=v,o.memoizedState=v,o.flags&256){h=ni(Error(r(423)),o),o=Nv(n,o,c,a,h);break e}else if(c!==h){h=ni(Error(r(424)),o),o=Nv(n,o,c,a,h);break e}else for(wn=uo(o.stateNode.containerInfo.firstChild),bn=o,pt=!0,Hn=null,a=Bg(o,null,c,a),o.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Ys(),c===h){o=Ir(n,o,a);break e}Jt(n,o,c,a)}o=o.child}return o;case 5:return qg(o),n===null&&jd(o),c=o.type,h=o.pendingProps,v=n!==null?n.memoizedProps:null,_=h.children,xd(c,h)?_=null:v!==null&&xd(c,v)&&(o.flags|=32),kv(n,o),Jt(n,o,_,a),o.child;case 6:return n===null&&jd(o),null;case 13:return jv(n,o,a);case 4:return Fd(o,o.stateNode.containerInfo),c=o.pendingProps,n===null?o.child=Js(o,null,c,a):Jt(n,o,c,a),o.child;case 11:return c=o.type,h=o.pendingProps,h=o.elementType===c?h:Wn(c,h),Cv(n,o,c,h,a);case 7:return Jt(n,o,o.pendingProps,a),o.child;case 8:return Jt(n,o,o.pendingProps.children,a),o.child;case 12:return Jt(n,o,o.pendingProps.children,a),o.child;case 10:e:{if(c=o.type._context,h=o.pendingProps,v=o.memoizedProps,_=h.value,lt(ru,c._currentValue),c._currentValue=_,v!==null)if(Un(v.value,_)){if(v.children===h.children&&!on.current){o=Ir(n,o,a);break e}}else for(v=o.child,v!==null&&(v.return=o);v!==null;){var D=v.dependencies;if(D!==null){_=v.child;for(var $=D.firstContext;$!==null;){if($.context===c){if(v.tag===1){$=Dr(-1,a&-a),$.tag=2;var Y=v.updateQueue;if(Y!==null){Y=Y.shared;var ae=Y.pending;ae===null?$.next=$:($.next=ae.next,ae.next=$),Y.pending=$}}v.lanes|=a,$=v.alternate,$!==null&&($.lanes|=a),Md(v.return,a,o),D.lanes|=a;break}$=$.next}}else if(v.tag===10)_=v.type===o.type?null:v.child;else if(v.tag===18){if(_=v.return,_===null)throw Error(r(341));_.lanes|=a,D=_.alternate,D!==null&&(D.lanes|=a),Md(_,a,o),_=v.sibling}else _=v.child;if(_!==null)_.return=v;else for(_=v;_!==null;){if(_===o){_=null;break}if(v=_.sibling,v!==null){v.return=_.return,_=v;break}_=_.return}v=_}Jt(n,o,h.children,a),o=o.child}return o;case 9:return h=o.type,c=o.pendingProps.children,ei(o,a),h=Pn(h),c=c(h),o.flags|=1,Jt(n,o,c,a),o.child;case 14:return c=o.type,h=Wn(c,o.pendingProps),h=Wn(c.type,h),Ev(n,o,c,h,a);case 15:return Rv(n,o,o.type,o.pendingProps,a);case 17:return c=o.type,h=o.pendingProps,h=o.elementType===c?h:Wn(c,h),mu(n,o),o.tag=1,sn(c)?(n=!0,Yl(o)):n=!1,ei(o,a),gv(o,c,h),Jd(o,c,h,a),nf(null,o,c,!0,n,a);case 19:return Av(n,o,a);case 22:return _v(n,o,a)}throw Error(r(156,o.tag))};function ry(n,o){return Mm(n,o)}function cC(n,o,a,c){this.tag=n,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jn(n,o,a,c){return new cC(n,o,a,c)}function Cf(n){return n=n.prototype,!(!n||!n.isReactComponent)}function dC(n){if(typeof n=="function")return Cf(n)?1:0;if(n!=null){if(n=n.$$typeof,n===ee)return 11;if(n===Z)return 14}return 2}function So(n,o){var a=n.alternate;return a===null?(a=jn(n.tag,o,n.key,n.mode),a.elementType=n.elementType,a.type=n.type,a.stateNode=n.stateNode,a.alternate=n,n.alternate=a):(a.pendingProps=o,a.type=n.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=n.flags&14680064,a.childLanes=n.childLanes,a.lanes=n.lanes,a.child=n.child,a.memoizedProps=n.memoizedProps,a.memoizedState=n.memoizedState,a.updateQueue=n.updateQueue,o=n.dependencies,a.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},a.sibling=n.sibling,a.index=n.index,a.ref=n.ref,a}function _u(n,o,a,c,h,v){var _=2;if(c=n,typeof n=="function")Cf(n)&&(_=1);else if(typeof n=="string")_=5;else e:switch(n){case L:return rs(a.children,h,v,o);case M:_=8,h|=8;break;case Q:return n=jn(12,a,o,h|2),n.elementType=Q,n.lanes=v,n;case ne:return n=jn(13,a,o,h),n.elementType=ne,n.lanes=v,n;case G:return n=jn(19,a,o,h),n.elementType=G,n.lanes=v,n;case U:return ku(a,h,v,o);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case q:_=10;break e;case te:_=9;break e;case ee:_=11;break e;case Z:_=14;break e;case B:_=16,c=null;break e}throw Error(r(130,n==null?n:typeof n,""))}return o=jn(_,a,o,h),o.elementType=n,o.type=c,o.lanes=v,o}function rs(n,o,a,c){return n=jn(7,n,c,o),n.lanes=a,n}function ku(n,o,a,c){return n=jn(22,n,c,o),n.elementType=U,n.lanes=a,n.stateNode={isHidden:!1},n}function Ef(n,o,a){return n=jn(6,n,null,o),n.lanes=a,n}function Rf(n,o,a){return o=jn(4,n.children!==null?n.children:[],n.key,o),o.lanes=a,o.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},o}function fC(n,o,a,c,h){this.tag=o,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Yc(0),this.expirationTimes=Yc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yc(0),this.identifierPrefix=c,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function _f(n,o,a,c,h,v,_,D,$){return n=new fC(n,o,a,D,$),o===1?(o=1,v===!0&&(o|=8)):o=0,v=jn(3,null,null,o),n.current=v,v.stateNode=n,v.memoizedState={element:c,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ld(v),n}function pC(n,o,a){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:O,key:c==null?null:""+c,children:n,containerInfo:o,implementation:a}}function oy(n){if(!n)return fo;n=n._reactInternals;e:{if(tt(n)!==n||n.tag!==1)throw Error(r(170));var o=n;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(sn(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(r(171))}if(n.tag===1){var a=n.type;if(sn(a))return Og(n,a,o)}return o}function sy(n,o,a,c,h,v,_,D,$){return n=_f(a,c,!0,n,h,v,_,D,$),n.context=oy(null),a=n.current,c=Zt(),h=bo(a),v=Dr(c,h),v.callback=o??null,mo(a,v,h),n.current.lanes=h,ta(n,h,c),un(n,c),n}function Pu(n,o,a,c){var h=o.current,v=Zt(),_=bo(h);return a=oy(a),o.context===null?o.context=a:o.pendingContext=a,o=Dr(v,_),o.payload={element:n},c=c===void 0?null:c,c!==null&&(o.callback=c),n=mo(h,o,_),n!==null&&(Kn(n,h,_,v),su(n,h,_)),_}function Tu(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function iy(n,o){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var a=n.retryLane;n.retryLane=a!==0&&a<o?a:o}}function kf(n,o){iy(n,o),(n=n.alternate)&&iy(n,o)}function hC(){return null}var ay=typeof reportError=="function"?reportError:function(n){console.error(n)};function Pf(n){this._internalRoot=n}Nu.prototype.render=Pf.prototype.render=function(n){var o=this._internalRoot;if(o===null)throw Error(r(409));Pu(n,o,null,null)},Nu.prototype.unmount=Pf.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var o=n.containerInfo;es(function(){Pu(null,n,null,null)}),o[Tr]=null}};function Nu(n){this._internalRoot=n}Nu.prototype.unstable_scheduleHydration=function(n){if(n){var o=Hm();n={blockedOn:null,target:n,priority:o};for(var a=0;a<io.length&&o!==0&&o<io[a].priority;a++);io.splice(a,0,n),a===0&&qm(n)}};function Tf(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function ju(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function ly(){}function mC(n,o,a,c,h){if(h){if(typeof c=="function"){var v=c;c=function(){var Y=Tu(_);v.call(Y)}}var _=sy(o,c,n,0,null,!1,!1,"",ly);return n._reactRootContainer=_,n[Tr]=_.current,ma(n.nodeType===8?n.parentNode:n),es(),_}for(;h=n.lastChild;)n.removeChild(h);if(typeof c=="function"){var D=c;c=function(){var Y=Tu($);D.call(Y)}}var $=_f(n,0,!1,null,null,!1,!1,"",ly);return n._reactRootContainer=$,n[Tr]=$.current,ma(n.nodeType===8?n.parentNode:n),es(function(){Pu(o,$,a,c)}),$}function Ou(n,o,a,c,h){var v=a._reactRootContainer;if(v){var _=v;if(typeof h=="function"){var D=h;h=function(){var $=Tu(_);D.call($)}}Pu(o,_,n,h)}else _=mC(a,o,n,h,c);return Tu(_)}Bm=function(n){switch(n.tag){case 3:var o=n.stateNode;if(o.current.memoizedState.isDehydrated){var a=ea(o.pendingLanes);a!==0&&(Jc(o,a|1),un(o,bt()),(nt&6)===0&&(si=bt()+500,po()))}break;case 13:es(function(){var c=Ar(n,1);if(c!==null){var h=Zt();Kn(c,n,1,h)}}),kf(n,1)}},Zc=function(n){if(n.tag===13){var o=Ar(n,134217728);if(o!==null){var a=Zt();Kn(o,n,134217728,a)}kf(n,134217728)}},Um=function(n){if(n.tag===13){var o=bo(n),a=Ar(n,o);if(a!==null){var c=Zt();Kn(a,n,o,c)}kf(n,o)}},Hm=function(){return it},Wm=function(n,o){var a=it;try{return it=n,o()}finally{it=a}},Ho=function(n,o,a){switch(o){case"input":if(ue(n,a),o=a.name,a.type==="radio"&&o!=null){for(a=n;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<a.length;o++){var c=a[o];if(c!==n&&c.form===n.form){var h=Gl(c);if(!h)throw Error(r(90));Ze(c),ue(c,h)}}}break;case"textarea":ce(n,a);break;case"select":o=a.value,o!=null&&Me(n,!!a.multiple,o,!1)}},Cl=wf,El=es;var gC={usingClientEntryPoint:!1,Events:[ya,Qs,Gl,xl,qc,wf]},Oa={findFiberByHostInstance:Qo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},vC={bundleType:Oa.bundleType,version:Oa.version,rendererPackageName:Oa.rendererPackageName,rendererConfig:Oa.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:T.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=Pl(n),n===null?null:n.stateNode},findFiberByHostInstance:Oa.findFiberByHostInstance||hC,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 Au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Au.isDisabled&&Au.supportsFiber)try{Nl=Au.inject(vC),ur=Au}catch{}}return cn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gC,cn.createPortal=function(n,o){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Tf(o))throw Error(r(200));return pC(n,o,null,a)},cn.createRoot=function(n,o){if(!Tf(n))throw Error(r(299));var a=!1,c="",h=ay;return o!=null&&(o.unstable_strictMode===!0&&(a=!0),o.identifierPrefix!==void 0&&(c=o.identifierPrefix),o.onRecoverableError!==void 0&&(h=o.onRecoverableError)),o=_f(n,1,!1,null,null,a,!1,c,h),n[Tr]=o.current,ma(n.nodeType===8?n.parentNode:n),new Pf(o)},cn.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var o=n._reactInternals;if(o===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=Pl(o),n=n===null?null:n.stateNode,n},cn.flushSync=function(n){return es(n)},cn.hydrate=function(n,o,a){if(!ju(o))throw Error(r(200));return Ou(null,n,o,!0,a)},cn.hydrateRoot=function(n,o,a){if(!Tf(n))throw Error(r(405));var c=a!=null&&a.hydratedSources||null,h=!1,v="",_=ay;if(a!=null&&(a.unstable_strictMode===!0&&(h=!0),a.identifierPrefix!==void 0&&(v=a.identifierPrefix),a.onRecoverableError!==void 0&&(_=a.onRecoverableError)),o=sy(o,null,n,1,a??null,h,!1,v,_),n[Tr]=o.current,ma(n),c)for(n=0;n<c.length;n++)a=c[n],h=a._getVersion,h=h(a._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[a,h]:o.mutableSourceEagerHydrationData.push(a,h);return new Nu(o)},cn.render=function(n,o,a){if(!ju(o))throw Error(r(200));return Ou(null,n,o,!1,a)},cn.unmountComponentAtNode=function(n){if(!ju(n))throw Error(r(40));return n._reactRootContainer?(es(function(){Ou(null,null,n,!1,function(){n._reactRootContainer=null,n[Tr]=null})}),!0):!1},cn.unstable_batchedUpdates=wf,cn.unstable_renderSubtreeIntoContainer=function(n,o,a,c){if(!ju(a))throw Error(r(200));if(n==null||n._reactInternals===void 0)throw Error(r(38));return Ou(n,o,a,!1,c)},cn.version="18.3.1-next-f1338f8080-20240426",cn}var vy;function bb(){if(vy)return Af.exports;vy=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Af.exports=_C(),Af.exports}var yy;function kC(){if(yy)return Iu;yy=1;var e=bb();return Iu.createRoot=e.createRoot,Iu.hydrateRoot=e.hydrateRoot,Iu}var PC=kC();const TC=vc(PC);var br=function(){return br=Object.assign||function(t){for(var r,s=1,i=arguments.length;s<i;s++){r=arguments[s];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(t[l]=r[l])}return t},br.apply(this,arguments)};function wb(e,t){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(r[s[i]]=e[s[i]]);return r}function NC(e,t,r){if(r||arguments.length===2)for(var s=0,i=t.length,l;s<i;s++)(l||!(s in t))&&(l||(l=Array.prototype.slice.call(t,0,s)),l[s]=t[s]);return e.concat(l||Array.prototype.slice.call(t))}var qu="right-scroll-bar-position",Ku="width-before-scroll-bar",jC="with-scroll-bars-hidden",OC="--removed-body-scroll-bar-size";function Mf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function AC(e,t){var r=C.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(s){var i=r.value;i!==s&&(r.value=s,r.callback(s,i))}}}})[0];return r.callback=t,r.facade}var DC=typeof window<"u"?C.useLayoutEffect:C.useEffect,by=new WeakMap;function IC(e,t){var r=AC(null,function(s){return e.forEach(function(i){return Mf(i,s)})});return DC(function(){var s=by.get(r);if(s){var i=new Set(s),l=new Set(e),u=r.current;i.forEach(function(d){l.has(d)||Mf(d,null)}),l.forEach(function(d){i.has(d)||Mf(d,u)})}by.set(r,e)},[e]),r}function MC(e){return e}function $C(e,t){t===void 0&&(t=MC);var r=[],s=!1,i={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(l){var u=t(l,s);return r.push(u),function(){r=r.filter(function(d){return d!==u})}},assignSyncMedium:function(l){for(s=!0;r.length;){var u=r;r=[],u.forEach(l)}r={push:function(d){return l(d)},filter:function(){return r}}},assignMedium:function(l){s=!0;var u=[];if(r.length){var d=r;r=[],d.forEach(l),u=r}var p=function(){var m=u;u=[],m.forEach(l)},f=function(){return Promise.resolve().then(p)};f(),r={push:function(m){u.push(m),f()},filter:function(m){return u=u.filter(m),r}}}};return i}function LC(e){e===void 0&&(e={});var t=$C(null);return t.options=br({async:!0,ssr:!1},e),t}var Sb=function(e){var t=e.sideCar,r=wb(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return C.createElement(s,br({},r))};Sb.isSideCarExport=!0;function FC(e,t){return e.useMedium(t),Sb}var xb=LC(),$f=function(){},yc=C.forwardRef(function(e,t){var r=C.useRef(null),s=C.useState({onScrollCapture:$f,onWheelCapture:$f,onTouchMoveCapture:$f}),i=s[0],l=s[1],u=e.forwardProps,d=e.children,p=e.className,f=e.removeScrollBar,m=e.enabled,g=e.shards,w=e.sideCar,S=e.noRelative,x=e.noIsolation,b=e.inert,E=e.allowPinchZoom,R=e.as,P=R===void 0?"div":R,k=e.gapMode,T=wb(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=w,O=IC([r,t]),L=br(br({},T),i);return C.createElement(C.Fragment,null,m&&C.createElement(j,{sideCar:xb,removeScrollBar:f,shards:g,noRelative:S,noIsolation:x,inert:b,setCallbacks:l,allowPinchZoom:!!E,lockRef:r,gapMode:k}),u?C.cloneElement(C.Children.only(d),br(br({},L),{ref:O})):C.createElement(P,br({},L,{className:p,ref:O}),d))});yc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};yc.classNames={fullWidth:Ku,zeroRight:qu};var zC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function VC(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=zC();return t&&e.setAttribute("nonce",t),e}function BC(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function UC(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var HC=function(){var e=0,t=null;return{add:function(r){e==0&&(t=VC())&&(BC(t,r),UC(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},WC=function(){var e=HC();return function(t,r){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Cb=function(){var e=WC(),t=function(r){var s=r.styles,i=r.dynamic;return e(s,i),null};return t},QC={left:0,top:0,right:0,gap:0},Lf=function(e){return parseInt(e||"",10)||0},qC=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Lf(r),Lf(s),Lf(i)]},KC=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return QC;var t=qC(e),r=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-r+t[2]-t[0])}},GC=Cb(),gi="data-scroll-locked",XC=function(e,t,r,s){var i=e.left,l=e.top,u=e.right,d=e.gap;return r===void 0&&(r="margin"),`
41
41
  .`.concat(jC,` {
42
42
  overflow: hidden `).concat(s,`;
43
43
  padding-right: `).concat(d,"px ").concat(s,`;
@@ -74,13 +74,13 @@ Error generating stack: `+v.message+`
74
74
  body[`).concat(gi,`] {
75
75
  `).concat(OC,": ").concat(d,`px;
76
76
  }
77
- `)},wy=function(){var e=parseInt(document.body.getAttribute(gi)||"0",10);return isFinite(e)?e:0},YC=function(){C.useEffect(function(){return document.body.setAttribute(gi,(wy()+1).toString()),function(){var e=wy()-1;e<=0?document.body.removeAttribute(gi):document.body.setAttribute(gi,e.toString())}},[])},JC=function(e){var t=e.noRelative,r=e.noImportant,s=e.gapMode,i=s===void 0?"margin":s;YC();var l=C.useMemo(function(){return KC(i)},[i]);return C.createElement(GC,{styles:XC(l,!t,i,r?"":"!important")})},up=!1;if(typeof window<"u")try{var Mu=Object.defineProperty({},"passive",{get:function(){return up=!0,!0}});window.addEventListener("test",Mu,Mu),window.removeEventListener("test",Mu,Mu)}catch{up=!1}var ai=up?{passive:!1}:!1,ZC=function(e){return e.tagName==="TEXTAREA"},Eb=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!ZC(e)&&r[t]==="visible")},eE=function(e){return Eb(e,"overflowY")},tE=function(e){return Eb(e,"overflowX")},Sy=function(e,t){var r=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var i=Rb(e,s);if(i){var l=_b(e,s),u=l[1],d=l[2];if(u>d)return!0}s=s.parentNode}while(s&&s!==r.body);return!1},nE=function(e){var t=e.scrollTop,r=e.scrollHeight,s=e.clientHeight;return[t,r,s]},rE=function(e){var t=e.scrollLeft,r=e.scrollWidth,s=e.clientWidth;return[t,r,s]},Rb=function(e,t){return e==="v"?eE(t):tE(t)},_b=function(e,t){return e==="v"?nE(t):rE(t)},oE=function(e,t){return e==="h"&&t==="rtl"?-1:1},sE=function(e,t,r,s,i){var l=oE(e,window.getComputedStyle(t).direction),u=l*s,d=r.target,p=t.contains(d),f=!1,m=u>0,g=0,w=0;do{if(!d)break;var S=_b(e,d),x=S[0],b=S[1],E=S[2],R=b-E-l*x;(x||R)&&Rb(e,d)&&(g+=R,w+=x);var k=d.parentNode;d=k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?k.host:k}while(!p&&d!==document.body||p&&(t.contains(d)||t===d));return(m&&Math.abs(g)<1||!m&&Math.abs(w)<1)&&(f=!0),f},$u=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xy=function(e){return[e.deltaX,e.deltaY]},Cy=function(e){return e&&"current"in e?e.current:e},iE=function(e,t){return e[0]===t[0]&&e[1]===t[1]},aE=function(e){return`
77
+ `)},wy=function(){var e=parseInt(document.body.getAttribute(gi)||"0",10);return isFinite(e)?e:0},YC=function(){C.useEffect(function(){return document.body.setAttribute(gi,(wy()+1).toString()),function(){var e=wy()-1;e<=0?document.body.removeAttribute(gi):document.body.setAttribute(gi,e.toString())}},[])},JC=function(e){var t=e.noRelative,r=e.noImportant,s=e.gapMode,i=s===void 0?"margin":s;YC();var l=C.useMemo(function(){return KC(i)},[i]);return C.createElement(GC,{styles:XC(l,!t,i,r?"":"!important")})},up=!1;if(typeof window<"u")try{var Mu=Object.defineProperty({},"passive",{get:function(){return up=!0,!0}});window.addEventListener("test",Mu,Mu),window.removeEventListener("test",Mu,Mu)}catch{up=!1}var ai=up?{passive:!1}:!1,ZC=function(e){return e.tagName==="TEXTAREA"},Eb=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!ZC(e)&&r[t]==="visible")},eE=function(e){return Eb(e,"overflowY")},tE=function(e){return Eb(e,"overflowX")},Sy=function(e,t){var r=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var i=Rb(e,s);if(i){var l=_b(e,s),u=l[1],d=l[2];if(u>d)return!0}s=s.parentNode}while(s&&s!==r.body);return!1},nE=function(e){var t=e.scrollTop,r=e.scrollHeight,s=e.clientHeight;return[t,r,s]},rE=function(e){var t=e.scrollLeft,r=e.scrollWidth,s=e.clientWidth;return[t,r,s]},Rb=function(e,t){return e==="v"?eE(t):tE(t)},_b=function(e,t){return e==="v"?nE(t):rE(t)},oE=function(e,t){return e==="h"&&t==="rtl"?-1:1},sE=function(e,t,r,s,i){var l=oE(e,window.getComputedStyle(t).direction),u=l*s,d=r.target,p=t.contains(d),f=!1,m=u>0,g=0,w=0;do{if(!d)break;var S=_b(e,d),x=S[0],b=S[1],E=S[2],R=b-E-l*x;(x||R)&&Rb(e,d)&&(g+=R,w+=x);var P=d.parentNode;d=P&&P.nodeType===Node.DOCUMENT_FRAGMENT_NODE?P.host:P}while(!p&&d!==document.body||p&&(t.contains(d)||t===d));return(m&&Math.abs(g)<1||!m&&Math.abs(w)<1)&&(f=!0),f},$u=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xy=function(e){return[e.deltaX,e.deltaY]},Cy=function(e){return e&&"current"in e?e.current:e},iE=function(e,t){return e[0]===t[0]&&e[1]===t[1]},aE=function(e){return`
78
78
  .block-interactivity-`.concat(e,` {pointer-events: none;}
79
79
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
80
- `)},lE=0,li=[];function uE(e){var t=C.useRef([]),r=C.useRef([0,0]),s=C.useRef(),i=C.useState(lE++)[0],l=C.useState(Cb)[0],u=C.useRef(e);C.useEffect(function(){u.current=e},[e]),C.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var b=NC([e.lockRef.current],(e.shards||[]).map(Cy),!0).filter(Boolean);return b.forEach(function(E){return E.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),b.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var d=C.useCallback(function(b,E){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!u.current.allowPinchZoom;var R=$u(b),k=r.current,P="deltaX"in b?b.deltaX:k[0]-R[0],T="deltaY"in b?b.deltaY:k[1]-R[1],j,O=b.target,L=Math.abs(P)>Math.abs(T)?"h":"v";if("touches"in b&&L==="h"&&O.type==="range")return!1;var M=window.getSelection(),Q=M&&M.anchorNode,q=Q?Q===O||Q.contains(O):!1;if(q)return!1;var te=Sy(L,O);if(!te)return!0;if(te?j=L:(j=L==="v"?"h":"v",te=Sy(L,O)),!te)return!1;if(!s.current&&"changedTouches"in b&&(P||T)&&(s.current=j),!j)return!0;var ee=s.current||j;return sE(ee,E,b,ee==="h"?P:T)},[]),p=C.useCallback(function(b){var E=b;if(!(!li.length||li[li.length-1]!==l)){var R="deltaY"in E?xy(E):$u(E),k=t.current.filter(function(j){return j.name===E.type&&(j.target===E.target||E.target===j.shadowParent)&&iE(j.delta,R)})[0];if(k&&k.should){E.cancelable&&E.preventDefault();return}if(!k){var P=(u.current.shards||[]).map(Cy).filter(Boolean).filter(function(j){return j.contains(E.target)}),T=P.length>0?d(E,P[0]):!u.current.noIsolation;T&&E.cancelable&&E.preventDefault()}}},[]),f=C.useCallback(function(b,E,R,k){var P={name:b,delta:E,target:R,should:k,shadowParent:cE(R)};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(T){return T!==P})},1)},[]),m=C.useCallback(function(b){r.current=$u(b),s.current=void 0},[]),g=C.useCallback(function(b){f(b.type,xy(b),b.target,d(b,e.lockRef.current))},[]),w=C.useCallback(function(b){f(b.type,$u(b),b.target,d(b,e.lockRef.current))},[]);C.useEffect(function(){return li.push(l),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:w}),document.addEventListener("wheel",p,ai),document.addEventListener("touchmove",p,ai),document.addEventListener("touchstart",m,ai),function(){li=li.filter(function(b){return b!==l}),document.removeEventListener("wheel",p,ai),document.removeEventListener("touchmove",p,ai),document.removeEventListener("touchstart",m,ai)}},[]);var S=e.removeScrollBar,x=e.inert;return C.createElement(C.Fragment,null,x?C.createElement(l,{styles:aE(i)}):null,S?C.createElement(JC,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function cE(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const dE=FC(xb,uE);var cp=C.forwardRef(function(e,t){return C.createElement(yc,yr({},e,{ref:t,sideCar:dE}))});cp.classNames=yc.classNames;function Yt(e){return Object.keys(e)}function Ff(e){return e&&typeof e=="object"&&!Array.isArray(e)}function ih(e,t){const r={...e},s=t;return Ff(e)&&Ff(t)&&Object.keys(t).forEach(i=>{Ff(s[i])&&i in e?r[i]=ih(r[i],s[i]):r[i]=s[i]}),r}function fE(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function pE(e){var t;return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:(t=e.match(/^calc\((.*?)\)$/))==null?void 0:t[1].split("*")[0].trim()}function dp(e){const t=pE(e);return typeof t=="number"?t:typeof t=="string"?t.includes("calc")||t.includes("var")?t:t.includes("px")?Number(t.replace("px","")):t.includes("rem")?Number(t.replace("rem",""))*16:t.includes("em")?Number(t.replace("em",""))*16:Number(t):NaN}function zf(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function Pb(e,{shouldScale:t=!1}={}){function r(s){if(s===0||s==="0")return`0${e}`;if(typeof s=="number"){const i=`${s/16}${e}`;return t?zf(i):i}if(typeof s=="string"){if(s===""||s.startsWith("calc(")||s.startsWith("clamp(")||s.includes("rgba("))return s;if(s.includes(","))return s.split(",").map(l=>r(l)).join(",");if(s.includes(" "))return s.split(" ").map(l=>r(l)).join(" ");if(s.includes(e))return t?zf(s):s;const i=s.replace("px","");if(!Number.isNaN(Number(i))){const l=`${Number(i)/16}${e}`;return t?zf(l):l}}return s}return r}const se=Pb("rem",{shouldScale:!0}),Ey=Pb("em");function al(e){return Object.keys(e).reduce((t,r)=>(e[r]!==void 0&&(t[r]=e[r]),t),{})}function kb(e){if(typeof e=="number")return!0;if(typeof e=="string"){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&e.trim()!=="")return!0;const t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(s=>t.test(s))}return!1}function Ns(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==C.Fragment:!1}function Yr(e){const t=C.createContext(null);return[({children:i,value:l})=>y.jsx(t.Provider,{value:l,children:i}),()=>{const i=C.useContext(t);if(i===null)throw new Error(e);return i}]}function bc(e=null){const t=C.createContext(e);return[({children:i,value:l})=>y.jsx(t.Provider,{value:l,children:i}),()=>C.useContext(t)]}function Ry(e,t){return r=>{if(typeof r!="string"||r.trim().length===0)throw new Error(t);return`${e}-${r}`}}function fp(e,t){let r=e;for(;(r=r.parentElement)&&!r.matches(t););return r}function hE(e,t,r){for(let s=e-1;s>=0;s-=1)if(!t[s].disabled)return s;if(r){for(let s=t.length-1;s>-1;s-=1)if(!t[s].disabled)return s}return e}function mE(e,t,r){for(let s=e+1;s<t.length;s+=1)if(!t[s].disabled)return s;if(r){for(let s=0;s<t.length;s+=1)if(!t[s].disabled)return s}return e}function gE(e,t,r){return fp(e,r)===fp(t,r)}function vE({parentSelector:e,siblingSelector:t,onKeyDown:r,loop:s=!0,activateOnFocus:i=!1,dir:l="rtl",orientation:u}){return d=>{var x;r==null||r(d);const p=Array.from(((x=fp(d.currentTarget,e))==null?void 0:x.querySelectorAll(t))||[]).filter(b=>gE(d.currentTarget,b,e)),f=p.findIndex(b=>d.currentTarget===b),m=mE(f,p,s),g=hE(f,p,s),w=l==="rtl"?g:m,S=l==="rtl"?m:g;switch(d.key){case"ArrowRight":{u==="horizontal"&&(d.stopPropagation(),d.preventDefault(),p[w].focus(),i&&p[w].click());break}case"ArrowLeft":{u==="horizontal"&&(d.stopPropagation(),d.preventDefault(),p[S].focus(),i&&p[S].click());break}case"ArrowUp":{u==="vertical"&&(d.stopPropagation(),d.preventDefault(),p[g].focus(),i&&p[g].click());break}case"ArrowDown":{u==="vertical"&&(d.stopPropagation(),d.preventDefault(),p[m].focus(),i&&p[m].click());break}case"Home":{d.stopPropagation(),d.preventDefault(),!p[0].disabled&&p[0].focus();break}case"End":{d.stopPropagation(),d.preventDefault();const b=p.length-1;!p[b].disabled&&p[b].focus();break}}}}const yE={app:100,modal:200,popover:300,overlay:400,max:9999};function $i(e){return yE[e]}const nc=()=>{};function bE(e,t={active:!0}){return typeof e!="function"||!t.active?t.onKeyDown||nc:r=>{var s;r.key==="Escape"&&(e(r),(s=t.onTrigger)==null||s.call(t))}}function Ke(e,t="size",r=!0){if(e!==void 0)return kb(e)?r?se(e):e:`var(--${t}-${e})`}function $o(e){return Ke(e,"mantine-spacing")}function Ct(e){return e===void 0?"var(--mantine-radius-default)":Ke(e,"mantine-radius")}function Ut(e){return Ke(e,"mantine-font-size")}function Tb(e){return Ke(e,"mantine-line-height",!1)}function Nb(e){if(e)return Ke(e,"mantine-shadow",!1)}function wE(e,t){return e in t?dp(t[e]):dp(e)}function jb(e,t){const r=e.map(s=>({value:s,px:wE(s,t)}));return r.sort((s,i)=>s.px-i.px),r}function za(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function Wr(e,t,r){return t===void 0&&r===void 0?e:t!==void 0&&r===void 0?Math.max(e,t):Math.min(t===void 0&&r!==void 0?e:Math.max(e,t),r)}function Ob(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}function is(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...r)=>{var s;return(s=t.current)==null?void 0:s.call(t,...r)},[])}function ll(e,t){const r=typeof t=="number"?t:t.delay,s=typeof t=="number"?!1:t.flushOnUnmount,i=is(e),l=C.useRef(0),u=C.useRef(()=>{}),d=Object.assign(C.useCallback((...p)=>{window.clearTimeout(l.current);const f=()=>{l.current!==0&&(l.current=0,i(...p))};u.current=f,d.flush=f,l.current=window.setTimeout(f,r)},[i,r]),{flush:u.current});return C.useEffect(()=>()=>{window.clearTimeout(l.current),s&&d.flush()},[d,s]),d}const _y=["mousedown","touchstart"];function SE(e,t,r){const s=C.useRef(null);return C.useEffect(()=>{const i=l=>{const{target:u}=l??{};if(Array.isArray(r)){const d=(u==null?void 0:u.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(u)&&u.tagName!=="HTML";r.every(f=>!!f&&!l.composedPath().includes(f))&&!d&&e()}else s.current&&!s.current.contains(u)&&e()};return(t||_y).forEach(l=>document.addEventListener(l,i)),()=>{(t||_y).forEach(l=>document.removeEventListener(l,i))}},[s,e,r]),s}function xE(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function CE(e,t){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function Ab(e,t,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){const[s,i]=C.useState(r?t:CE(e)),l=C.useRef(null);return C.useEffect(()=>{if("matchMedia"in window)return l.current=window.matchMedia(e),i(l.current.matches),xE(l.current,u=>i(u.matches))},[e]),s}function EE(e,t){return Ab("(prefers-color-scheme: dark)",e==="dark",t)?"dark":"light"}const ul=typeof document<"u"?C.useLayoutEffect:C.useEffect;function Kr(e,t){const r=C.useRef(!1);C.useEffect(()=>()=>{r.current=!1},[]),C.useEffect(()=>{if(r.current)return e();r.current=!0},t)}function RE({opened:e,shouldReturnFocus:t=!0}){const r=C.useRef(null),s=()=>{var i;r.current&&"focus"in r.current&&typeof r.current.focus=="function"&&((i=r.current)==null||i.focus({preventScroll:!0}))};return Kr(()=>{let i=-1;const l=u=>{u.key==="Tab"&&window.clearTimeout(i)};return document.addEventListener("keydown",l),e?r.current=document.activeElement:t&&(i=window.setTimeout(s,10)),()=>{window.clearTimeout(i),document.removeEventListener("keydown",l)}},[e,t]),s}const _E=/input|select|textarea|button|object/,Db="a, input, select, textarea, button, object, [tabindex]";function PE(e){return e.style.display==="none"}function kE(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let r=e;for(;r&&!(r===document.body||r.nodeType===11);){if(PE(r))return!1;r=r.parentNode}return!0}function Ib(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function pp(e){const t=e.nodeName.toLowerCase(),r=!Number.isNaN(Ib(e));return(_E.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||r)&&kE(e)}function Mb(e){const t=Ib(e);return(Number.isNaN(t)||t>=0)&&pp(e)}function TE(e){return Array.from(e.querySelectorAll(Db)).filter(Mb)}function NE(e,t){const r=TE(e);if(!r.length){t.preventDefault();return}const s=r[t.shiftKey?0:r.length-1],i=e.getRootNode();let l=s===i.activeElement||e===i.activeElement;const u=i.activeElement;if(u.tagName==="INPUT"&&u.getAttribute("type")==="radio"&&(l=r.filter(m=>m.getAttribute("type")==="radio"&&m.getAttribute("name")===u.getAttribute("name")).includes(s)),!l)return;t.preventDefault();const p=r[t.shiftKey?r.length-1:0];p&&p.focus()}function jE(e=!0){const t=C.useRef(null),r=i=>{let l=i.querySelector("[data-autofocus]");if(!l){const u=Array.from(i.querySelectorAll(Db));l=u.find(Mb)||u.find(pp)||null,!l&&pp(i)&&(l=i)}l&&l.focus({preventScroll:!0})},s=C.useCallback(i=>{e&&i!==null&&t.current!==i&&(i?(setTimeout(()=>{i.getRootNode()&&r(i)}),t.current=i):t.current=null)},[e]);return C.useEffect(()=>{if(!e)return;t.current&&setTimeout(()=>r(t.current));const i=l=>{l.key==="Tab"&&t.current&&NE(t.current,l)};return document.addEventListener("keydown",i),()=>document.removeEventListener("keydown",i)},[e]),s}const OE=e=>(e+1)%1e6;function AE(){const[,e]=C.useReducer(OE,0);return e}const DE=St.useId||(()=>{});function IE(){const e=DE();return e?`mantine-${e.replace(/:/g,"")}`:""}function Jr(e){const t=IE(),[r,s]=C.useState(t);return ul(()=>{s(Ob())},[]),typeof e=="string"?e:typeof window>"u"?t:r}function rc(e,t){if(typeof e=="function")return e(t);typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function $b(...e){const t=new Map;return r=>{if(e.forEach(s=>{const i=rc(s,r);i&&t.set(s,i)}),t.size>0)return()=>{e.forEach(s=>{const i=t.get(s);i?i():rc(s,null)}),t.clear()}}}function $t(...e){return C.useCallback($b(...e),e)}function Lb(e,t,r="ltr"){const s=C.useRef(null),i=C.useRef(!1),l=C.useRef(!1),u=C.useRef(0),[d,p]=C.useState(!1);return C.useEffect(()=>{i.current=!0},[]),C.useEffect(()=>{const f=s.current,m=({x:P,y:T})=>{cancelAnimationFrame(u.current),u.current=requestAnimationFrame(()=>{if(i.current&&f){f.style.userSelect="none";const j=f.getBoundingClientRect();if(j.width&&j.height){const O=Wr((P-j.left)/j.width,0,1);e({x:r==="ltr"?O:1-O,y:Wr((T-j.top)/j.height,0,1)})}}})},g=()=>{document.addEventListener("mousemove",E),document.addEventListener("mouseup",x),document.addEventListener("touchmove",k),document.addEventListener("touchend",x)},w=()=>{document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",x),document.removeEventListener("touchmove",k),document.removeEventListener("touchend",x)},S=()=>{!l.current&&i.current&&(l.current=!0,typeof(t==null?void 0:t.onScrubStart)=="function"&&t.onScrubStart(),p(!0),g())},x=()=>{l.current&&i.current&&(l.current=!1,p(!1),w(),setTimeout(()=>{typeof(t==null?void 0:t.onScrubEnd)=="function"&&t.onScrubEnd()},0))},b=P=>{S(),P.preventDefault(),E(P)},E=P=>m({x:P.clientX,y:P.clientY}),R=P=>{P.cancelable&&P.preventDefault(),S(),k(P)},k=P=>{P.cancelable&&P.preventDefault(),m({x:P.changedTouches[0].clientX,y:P.changedTouches[0].clientY})};return f==null||f.addEventListener("mousedown",b),f==null||f.addEventListener("touchstart",R,{passive:!1}),()=>{f&&(f.removeEventListener("mousedown",b),f.removeEventListener("touchstart",R))}},[r,e]),{ref:s,active:d}}function $n({value:e,defaultValue:t,finalValue:r,onChange:s=()=>{}}){const[i,l]=C.useState(t!==void 0?t:r),u=(d,...p)=>{l(d),s==null||s(d,...p)};return e!==void 0?[e,s,!0]:[i,u,!1]}function ah(e,t){return Ab("(prefers-reduced-motion: reduce)",e,t)}function ME(e){const t=C.useRef(void 0);return C.useEffect(()=>{t.current=e},[e]),t.current}function hp(e,t){return t.length===0?e:t.reduce((r,s)=>Math.abs(s-e)<Math.abs(r-e)?s:r)}function wc(e){var r;const t=St.version;return typeof St.version!="string"||t.startsWith("18.")?e==null?void 0:e.ref:(r=e==null?void 0:e.props)==null?void 0:r.ref}function Fb(e){var t,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Fb(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function En(){for(var e,t,r=0,s="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Fb(e))&&(s&&(s+=" "),s+=t);return s}const $E={};function LE(e){const t={};return e.forEach(r=>{Object.entries(r).forEach(([s,i])=>{t[s]?t[s]=En(t[s],i):t[s]=i})}),t}function Sc({theme:e,classNames:t,props:r,stylesCtx:s}){const l=(Array.isArray(t)?t:[t]).map(u=>typeof u=="function"?u(e,r,s):u||$E);return LE(l)}function oc({theme:e,styles:t,props:r,stylesCtx:s}){return(Array.isArray(t)?t:[t]).reduce((l,u)=>typeof u=="function"?{...l,...u(e,r,s)}:{...l,...u},{})}const lh=C.createContext(null);function zo(){const e=C.useContext(lh);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function FE(){return zo().cssVariablesResolver}function zE(){return zo().classNamesPrefix}function xc(){return zo().getStyleNonce}function VE(){return zo().withStaticClasses}function BE(){return zo().headless}function UE(){var e;return(e=zo().stylesTransform)==null?void 0:e.sx}function HE(){var e;return(e=zo().stylesTransform)==null?void 0:e.styles}function zb(){return zo().env||"default"}function WE(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function QE(e){let t=e.replace("#","");if(t.length===3){const u=t.split("");t=[u[0],u[0],u[1],u[1],u[2],u[2]].join("")}if(t.length===8){const u=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:u}}const r=parseInt(t,16),s=r>>16&255,i=r>>8&255,l=r&255;return{r:s,g:i,b:l,a:1}}function qE(e){const[t,r,s,i]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:t,g:r,b:s,a:i===void 0?1:i}}function KE(e){const t=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,r=e.match(t);if(!r)return{r:0,g:0,b:0,a:1};const s=parseInt(r[1],10),i=parseInt(r[2],10)/100,l=parseInt(r[3],10)/100,u=r[5]?parseFloat(r[5]):void 0,d=(1-Math.abs(2*l-1))*i,p=s/60,f=d*(1-Math.abs(p%2-1)),m=l-d/2;let g,w,S;return p>=0&&p<1?(g=d,w=f,S=0):p>=1&&p<2?(g=f,w=d,S=0):p>=2&&p<3?(g=0,w=d,S=f):p>=3&&p<4?(g=0,w=f,S=d):p>=4&&p<5?(g=f,w=0,S=d):(g=d,w=0,S=f),{r:Math.round((g+m)*255),g:Math.round((w+m)*255),b:Math.round((S+m)*255),a:u||1}}function uh(e){return WE(e)?QE(e):e.startsWith("rgb")?qE(e):e.startsWith("hsl")?KE(e):{r:0,g:0,b:0,a:1}}function Lu(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${t*100}%)`;const{r,g:s,b:i,a:l}=uh(e),u=1-t,d=p=>Math.round(p*u);return`rgba(${d(r)}, ${d(s)}, ${d(i)}, ${l})`}function qa(e,t){return typeof e.primaryShade=="number"?e.primaryShade:t==="dark"?e.primaryShade.dark:e.primaryShade.light}function Vf(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function GE(e){const t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function XE(e){if(e.startsWith("oklch("))return(GE(e)||0)/100;const{r:t,g:r,b:s}=uh(e),i=t/255,l=r/255,u=s/255,d=Vf(i),p=Vf(l),f=Vf(u);return .2126*d+.7152*p+.0722*f}function Da(e,t=.179){return e.startsWith("var(")?!1:XE(e)>t}function cl({color:e,theme:t,colorScheme:r}){if(typeof e!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e==="bright")return{color:e,value:r==="dark"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Da(r==="dark"?t.white:t.black,t.luminanceThreshold),variable:"--mantine-color-bright"};if(e==="dimmed")return{color:e,value:r==="dark"?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Da(r==="dark"?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:"--mantine-color-dimmed"};if(e==="white"||e==="black")return{color:e,value:e==="white"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Da(e==="white"?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};const[s,i]=e.split("."),l=i?Number(i):void 0,u=s in t.colors;if(u){const d=l!==void 0?t.colors[s][l]:t.colors[s][qa(t,r||"light")];return{color:s,value:d,shade:l,isThemeColor:u,isLight:Da(d,t.luminanceThreshold),variable:i?`--mantine-color-${s}-${l}`:`--mantine-color-${s}-filled`}}return{color:e,value:e,isThemeColor:u,isLight:Da(e,t.luminanceThreshold),shade:l,variable:void 0}}function It(e,t){const r=cl({color:e||t.primaryColor,theme:t});return r.variable?`var(${r.variable})`:e}function mp(e,t){const r={from:(e==null?void 0:e.from)||t.defaultGradient.from,to:(e==null?void 0:e.to)||t.defaultGradient.to,deg:(e==null?void 0:e.deg)??t.defaultGradient.deg??0},s=It(r.from,t),i=It(r.to,t);return`linear-gradient(${r.deg}deg, ${s} 0%, ${i} 100%)`}function hr(e,t){if(typeof e!="string"||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(")){const l=(1-t)*100;return`color-mix(in srgb, ${e}, transparent ${l}%)`}if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(")",` / ${t})`);const{r,g:s,b:i}=uh(e);return`rgba(${r}, ${s}, ${i}, ${t})`}const ui=hr,YE=({color:e,theme:t,variant:r,gradient:s,autoContrast:i})=>{const l=cl({color:e,theme:t}),u=typeof i=="boolean"?i:t.autoContrast;if(r==="filled"){const d=u&&l.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return l.isThemeColor?l.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:d,border:`${se(1)} solid transparent`}:{background:`var(--mantine-color-${l.color}-${l.shade})`,hover:`var(--mantine-color-${l.color}-${l.shade===9?8:l.shade+1})`,color:d,border:`${se(1)} solid transparent`}:{background:e,hover:Lu(e,.1),color:d,border:`${se(1)} solid transparent`}}if(r==="light"){if(l.isThemeColor){if(l.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${se(1)} solid transparent`};const d=t.colors[l.color][l.shade];return{background:hr(d,.1),hover:hr(d,.12),color:`var(--mantine-color-${l.color}-${Math.min(l.shade,6)})`,border:`${se(1)} solid transparent`}}return{background:hr(e,.1),hover:hr(e,.12),color:e,border:`${se(1)} solid transparent`}}if(r==="outline")return l.isThemeColor?l.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${se(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:hr(t.colors[l.color][l.shade],.05),color:`var(--mantine-color-${l.color}-${l.shade})`,border:`${se(1)} solid var(--mantine-color-${l.color}-${l.shade})`}:{background:"transparent",hover:hr(e,.05),color:e,border:`${se(1)} solid ${e}`};if(r==="subtle"){if(l.isThemeColor){if(l.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${se(1)} solid transparent`};const d=t.colors[l.color][l.shade];return{background:"transparent",hover:hr(d,.12),color:`var(--mantine-color-${l.color}-${Math.min(l.shade,6)})`,border:`${se(1)} solid transparent`}}return{background:"transparent",hover:hr(e,.12),color:e,border:`${se(1)} solid transparent`}}return r==="transparent"?l.isThemeColor?l.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${se(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${l.color}-${Math.min(l.shade,6)})`,border:`${se(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${se(1)} solid transparent`}:r==="white"?l.isThemeColor?l.shade===void 0?{background:"var(--mantine-color-white)",hover:Lu(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${se(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Lu(t.white,.01),color:`var(--mantine-color-${l.color}-${l.shade})`,border:`${se(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Lu(t.white,.01),color:e,border:`${se(1)} solid transparent`}:r==="gradient"?{background:mp(s,t),hover:mp(s,t),color:"var(--mantine-color-white)",border:"none"}:r==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${se(1)} solid var(--mantine-color-default-border)`}:{}},JE={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},Py="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",ch={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:JE,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:YE,autoContrast:!1,luminanceThreshold:.3,fontFamily:Py,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:Py,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:se(34),lineHeight:"1.3"},h2:{fontSize:se(26),lineHeight:"1.35"},h3:{fontSize:se(22),lineHeight:"1.4"},h4:{fontSize:se(18),lineHeight:"1.45"},h5:{fontSize:se(16),lineHeight:"1.5"},h6:{fontSize:se(14),lineHeight:"1.5"}}},fontSizes:{xs:se(12),sm:se(14),md:se(16),lg:se(18),xl:se(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:se(2),sm:se(4),md:se(8),lg:se(16),xl:se(32)},spacing:{xs:se(10),sm:se(12),md:se(16),lg:se(20),xl:se(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${se(1)} ${se(3)} rgba(0, 0, 0, 0.05), 0 ${se(1)} ${se(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${se(1)} ${se(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${se(10)} ${se(15)} ${se(-5)}, rgba(0, 0, 0, 0.04) 0 ${se(7)} ${se(7)} ${se(-5)}`,md:`0 ${se(1)} ${se(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${se(20)} ${se(25)} ${se(-5)}, rgba(0, 0, 0, 0.04) 0 ${se(10)} ${se(10)} ${se(-5)}`,lg:`0 ${se(1)} ${se(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${se(28)} ${se(23)} ${se(-7)}, rgba(0, 0, 0, 0.04) 0 ${se(12)} ${se(12)} ${se(-7)}`,xl:`0 ${se(1)} ${se(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${se(36)} ${se(28)} ${se(-7)}, rgba(0, 0, 0, 0.04) 0 ${se(17)} ${se(17)} ${se(-7)}`},other:{},components:{}};function ky(e){return e==="auto"||e==="dark"||e==="light"}function ZE({key:e="mantine-color-scheme-value"}={}){let t;return{get:r=>{if(typeof window>"u")return r;try{const s=window.localStorage.getItem(e);return ky(s)?s:r}catch{return r}},set:r=>{try{window.localStorage.setItem(e,r)}catch(s){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",s)}},subscribe:r=>{t=s=>{s.storageArea===window.localStorage&&s.key===e&&ky(s.newValue)&&r(s.newValue)},window.addEventListener("storage",t)},unsubscribe:()=>{window.removeEventListener("storage",t)},clear:()=>{window.localStorage.removeItem(e)}}}const eR="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",Ty="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function Bf(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function Ny(e){if(!(e.primaryColor in e.colors))throw new Error(eR);if(typeof e.primaryShade=="object"&&(!Bf(e.primaryShade.dark)||!Bf(e.primaryShade.light)))throw new Error(Ty);if(typeof e.primaryShade=="number"&&!Bf(e.primaryShade))throw new Error(Ty)}function tR(e,t){var s;if(!t)return Ny(e),e;const r=ih(e,t);return t.fontFamily&&!((s=t.headings)!=null&&s.fontFamily)&&(r.headings.fontFamily=t.fontFamily),Ny(r),r}const dh=C.createContext(null),nR=()=>C.useContext(dh)||ch;function rn(){const e=C.useContext(dh);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function Vb({theme:e,children:t,inherit:r=!0}){const s=nR(),i=C.useMemo(()=>tR(r?s:ch,e),[e,s,r]);return y.jsx(dh.Provider,{value:i,children:t})}Vb.displayName="@mantine/core/MantineThemeProvider";function rR(){const e=rn(),t=xc(),r=Yt(e.breakpoints).reduce((s,i)=>{const l=e.breakpoints[i].includes("px"),u=dp(e.breakpoints[i]),d=l?`${u-.1}px`:Ey(u-.1),p=l?`${u}px`:Ey(u);return`${s}@media (max-width: ${d}) {.mantine-visible-from-${i} {display: none !important;}}@media (min-width: ${p}) {.mantine-hidden-from-${i} {display: none !important;}}`},"");return y.jsx("style",{"data-mantine-styles":"classes",nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:r}})}function Uf(e){return Object.entries(e).map(([t,r])=>`${t}: ${r};`).join("")}function Ia(e,t){return(Array.isArray(e)?e:[e]).reduce((s,i)=>`${i}{${s}}`,t)}function oR(e,t){const r=Uf(e.variables),s=r?Ia(t,r):"",i=Uf(e.dark),l=Uf(e.light),u=i?Ia(t===":host"?`${t}([data-mantine-color-scheme="dark"])`:`${t}[data-mantine-color-scheme="dark"]`,i):"",d=l?Ia(t===":host"?`${t}([data-mantine-color-scheme="light"])`:`${t}[data-mantine-color-scheme="light"]`,l):"";return`${s}${u}${d}`}function Bb({color:e,theme:t,autoContrast:r}){return(typeof r=="boolean"?r:t.autoContrast)&&cl({color:e||t.primaryColor,theme:t}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function jy(e,t){return Bb({color:e.colors[e.primaryColor][qa(e,t)],theme:e,autoContrast:null})}function Fu({theme:e,color:t,colorScheme:r,name:s=t,withColorValues:i=!0}){if(!e.colors[t])return{};if(r==="light"){const d=qa(e,"light"),p={[`--mantine-color-${s}-text`]:`var(--mantine-color-${s}-filled)`,[`--mantine-color-${s}-filled`]:`var(--mantine-color-${s}-${d})`,[`--mantine-color-${s}-filled-hover`]:`var(--mantine-color-${s}-${d===9?8:d+1})`,[`--mantine-color-${s}-light`]:ui(e.colors[t][d],.1),[`--mantine-color-${s}-light-hover`]:ui(e.colors[t][d],.12),[`--mantine-color-${s}-light-color`]:`var(--mantine-color-${s}-${d})`,[`--mantine-color-${s}-outline`]:`var(--mantine-color-${s}-${d})`,[`--mantine-color-${s}-outline-hover`]:ui(e.colors[t][d],.05)};return i?{[`--mantine-color-${s}-0`]:e.colors[t][0],[`--mantine-color-${s}-1`]:e.colors[t][1],[`--mantine-color-${s}-2`]:e.colors[t][2],[`--mantine-color-${s}-3`]:e.colors[t][3],[`--mantine-color-${s}-4`]:e.colors[t][4],[`--mantine-color-${s}-5`]:e.colors[t][5],[`--mantine-color-${s}-6`]:e.colors[t][6],[`--mantine-color-${s}-7`]:e.colors[t][7],[`--mantine-color-${s}-8`]:e.colors[t][8],[`--mantine-color-${s}-9`]:e.colors[t][9],...p}:p}const l=qa(e,"dark"),u={[`--mantine-color-${s}-text`]:`var(--mantine-color-${s}-4)`,[`--mantine-color-${s}-filled`]:`var(--mantine-color-${s}-${l})`,[`--mantine-color-${s}-filled-hover`]:`var(--mantine-color-${s}-${l===9?8:l+1})`,[`--mantine-color-${s}-light`]:ui(e.colors[t][Math.max(0,l-2)],.15),[`--mantine-color-${s}-light-hover`]:ui(e.colors[t][Math.max(0,l-2)],.2),[`--mantine-color-${s}-light-color`]:`var(--mantine-color-${s}-${Math.max(l-5,0)})`,[`--mantine-color-${s}-outline`]:`var(--mantine-color-${s}-${Math.max(l-4,0)})`,[`--mantine-color-${s}-outline-hover`]:ui(e.colors[t][Math.max(l-4,0)],.05)};return i?{[`--mantine-color-${s}-0`]:e.colors[t][0],[`--mantine-color-${s}-1`]:e.colors[t][1],[`--mantine-color-${s}-2`]:e.colors[t][2],[`--mantine-color-${s}-3`]:e.colors[t][3],[`--mantine-color-${s}-4`]:e.colors[t][4],[`--mantine-color-${s}-5`]:e.colors[t][5],[`--mantine-color-${s}-6`]:e.colors[t][6],[`--mantine-color-${s}-7`]:e.colors[t][7],[`--mantine-color-${s}-8`]:e.colors[t][8],[`--mantine-color-${s}-9`]:e.colors[t][9],...u}:u}function sR(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function ci(e,t,r){Yt(t).forEach(s=>Object.assign(e,{[`--mantine-${r}-${s}`]:t[s]}))}const Ub=e=>{const t=qa(e,"light"),r=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:se(e.defaultRadius),s={variables:{"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-color-scheme":"light dark","--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":r,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-primary-color-contrast":jy(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)"},dark:{"--mantine-primary-color-contrast":jy(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)"}};ci(s.variables,e.breakpoints,"breakpoint"),ci(s.variables,e.spacing,"spacing"),ci(s.variables,e.fontSizes,"font-size"),ci(s.variables,e.lineHeights,"line-height"),ci(s.variables,e.shadows,"shadow"),ci(s.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((l,u)=>{s.variables[`--mantine-primary-color-${u}`]=`var(--mantine-color-${e.primaryColor}-${u})`}),Yt(e.colors).forEach(l=>{const u=e.colors[l];if(sR(u)){Object.assign(s.light,Fu({theme:e,name:u.name,color:u.light,colorScheme:"light",withColorValues:!0})),Object.assign(s.dark,Fu({theme:e,name:u.name,color:u.dark,colorScheme:"dark",withColorValues:!0}));return}u.forEach((d,p)=>{s.variables[`--mantine-color-${l}-${p}`]=d}),Object.assign(s.light,Fu({theme:e,color:l,colorScheme:"light",withColorValues:!1})),Object.assign(s.dark,Fu({theme:e,color:l,colorScheme:"dark",withColorValues:!1}))});const i=e.headings.sizes;return Yt(i).forEach(l=>{s.variables[`--mantine-${l}-font-size`]=i[l].fontSize,s.variables[`--mantine-${l}-line-height`]=i[l].lineHeight,s.variables[`--mantine-${l}-font-weight`]=i[l].fontWeight||e.headings.fontWeight}),s};function iR({theme:e,generator:t}){const r=Ub(e),s=t==null?void 0:t(e);return s?ih(r,s):r}const Hf=Ub(ch);function aR(e){const t={variables:{},light:{},dark:{}};return Yt(e.variables).forEach(r=>{Hf.variables[r]!==e.variables[r]&&(t.variables[r]=e.variables[r])}),Yt(e.light).forEach(r=>{Hf.light[r]!==e.light[r]&&(t.light[r]=e.light[r])}),Yt(e.dark).forEach(r=>{Hf.dark[r]!==e.dark[r]&&(t.dark[r]=e.dark[r])}),t}function lR(e){return`
80
+ `)},lE=0,li=[];function uE(e){var t=C.useRef([]),r=C.useRef([0,0]),s=C.useRef(),i=C.useState(lE++)[0],l=C.useState(Cb)[0],u=C.useRef(e);C.useEffect(function(){u.current=e},[e]),C.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var b=NC([e.lockRef.current],(e.shards||[]).map(Cy),!0).filter(Boolean);return b.forEach(function(E){return E.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),b.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var d=C.useCallback(function(b,E){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!u.current.allowPinchZoom;var R=$u(b),P=r.current,k="deltaX"in b?b.deltaX:P[0]-R[0],T="deltaY"in b?b.deltaY:P[1]-R[1],j,O=b.target,L=Math.abs(k)>Math.abs(T)?"h":"v";if("touches"in b&&L==="h"&&O.type==="range")return!1;var M=window.getSelection(),Q=M&&M.anchorNode,q=Q?Q===O||Q.contains(O):!1;if(q)return!1;var te=Sy(L,O);if(!te)return!0;if(te?j=L:(j=L==="v"?"h":"v",te=Sy(L,O)),!te)return!1;if(!s.current&&"changedTouches"in b&&(k||T)&&(s.current=j),!j)return!0;var ee=s.current||j;return sE(ee,E,b,ee==="h"?k:T)},[]),p=C.useCallback(function(b){var E=b;if(!(!li.length||li[li.length-1]!==l)){var R="deltaY"in E?xy(E):$u(E),P=t.current.filter(function(j){return j.name===E.type&&(j.target===E.target||E.target===j.shadowParent)&&iE(j.delta,R)})[0];if(P&&P.should){E.cancelable&&E.preventDefault();return}if(!P){var k=(u.current.shards||[]).map(Cy).filter(Boolean).filter(function(j){return j.contains(E.target)}),T=k.length>0?d(E,k[0]):!u.current.noIsolation;T&&E.cancelable&&E.preventDefault()}}},[]),f=C.useCallback(function(b,E,R,P){var k={name:b,delta:E,target:R,should:P,shadowParent:cE(R)};t.current.push(k),setTimeout(function(){t.current=t.current.filter(function(T){return T!==k})},1)},[]),m=C.useCallback(function(b){r.current=$u(b),s.current=void 0},[]),g=C.useCallback(function(b){f(b.type,xy(b),b.target,d(b,e.lockRef.current))},[]),w=C.useCallback(function(b){f(b.type,$u(b),b.target,d(b,e.lockRef.current))},[]);C.useEffect(function(){return li.push(l),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:w}),document.addEventListener("wheel",p,ai),document.addEventListener("touchmove",p,ai),document.addEventListener("touchstart",m,ai),function(){li=li.filter(function(b){return b!==l}),document.removeEventListener("wheel",p,ai),document.removeEventListener("touchmove",p,ai),document.removeEventListener("touchstart",m,ai)}},[]);var S=e.removeScrollBar,x=e.inert;return C.createElement(C.Fragment,null,x?C.createElement(l,{styles:aE(i)}):null,S?C.createElement(JC,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function cE(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const dE=FC(xb,uE);var cp=C.forwardRef(function(e,t){return C.createElement(yc,br({},e,{ref:t,sideCar:dE}))});cp.classNames=yc.classNames;function Yt(e){return Object.keys(e)}function Ff(e){return e&&typeof e=="object"&&!Array.isArray(e)}function ih(e,t){const r={...e},s=t;return Ff(e)&&Ff(t)&&Object.keys(t).forEach(i=>{Ff(s[i])&&i in e?r[i]=ih(r[i],s[i]):r[i]=s[i]}),r}function fE(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function pE(e){var t;return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:(t=e.match(/^calc\((.*?)\)$/))==null?void 0:t[1].split("*")[0].trim()}function dp(e){const t=pE(e);return typeof t=="number"?t:typeof t=="string"?t.includes("calc")||t.includes("var")?t:t.includes("px")?Number(t.replace("px","")):t.includes("rem")?Number(t.replace("rem",""))*16:t.includes("em")?Number(t.replace("em",""))*16:Number(t):NaN}function zf(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function kb(e,{shouldScale:t=!1}={}){function r(s){if(s===0||s==="0")return`0${e}`;if(typeof s=="number"){const i=`${s/16}${e}`;return t?zf(i):i}if(typeof s=="string"){if(s===""||s.startsWith("calc(")||s.startsWith("clamp(")||s.includes("rgba("))return s;if(s.includes(","))return s.split(",").map(l=>r(l)).join(",");if(s.includes(" "))return s.split(" ").map(l=>r(l)).join(" ");if(s.includes(e))return t?zf(s):s;const i=s.replace("px","");if(!Number.isNaN(Number(i))){const l=`${Number(i)/16}${e}`;return t?zf(l):l}}return s}return r}const se=kb("rem",{shouldScale:!0}),Ey=kb("em");function al(e){return Object.keys(e).reduce((t,r)=>(e[r]!==void 0&&(t[r]=e[r]),t),{})}function Pb(e){if(typeof e=="number")return!0;if(typeof e=="string"){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&e.trim()!=="")return!0;const t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(s=>t.test(s))}return!1}function Ns(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==C.Fragment:!1}function Yr(e){const t=C.createContext(null);return[({children:i,value:l})=>y.jsx(t.Provider,{value:l,children:i}),()=>{const i=C.useContext(t);if(i===null)throw new Error(e);return i}]}function bc(e=null){const t=C.createContext(e);return[({children:i,value:l})=>y.jsx(t.Provider,{value:l,children:i}),()=>C.useContext(t)]}function Ry(e,t){return r=>{if(typeof r!="string"||r.trim().length===0)throw new Error(t);return`${e}-${r}`}}function fp(e,t){let r=e;for(;(r=r.parentElement)&&!r.matches(t););return r}function hE(e,t,r){for(let s=e-1;s>=0;s-=1)if(!t[s].disabled)return s;if(r){for(let s=t.length-1;s>-1;s-=1)if(!t[s].disabled)return s}return e}function mE(e,t,r){for(let s=e+1;s<t.length;s+=1)if(!t[s].disabled)return s;if(r){for(let s=0;s<t.length;s+=1)if(!t[s].disabled)return s}return e}function gE(e,t,r){return fp(e,r)===fp(t,r)}function vE({parentSelector:e,siblingSelector:t,onKeyDown:r,loop:s=!0,activateOnFocus:i=!1,dir:l="rtl",orientation:u}){return d=>{var x;r==null||r(d);const p=Array.from(((x=fp(d.currentTarget,e))==null?void 0:x.querySelectorAll(t))||[]).filter(b=>gE(d.currentTarget,b,e)),f=p.findIndex(b=>d.currentTarget===b),m=mE(f,p,s),g=hE(f,p,s),w=l==="rtl"?g:m,S=l==="rtl"?m:g;switch(d.key){case"ArrowRight":{u==="horizontal"&&(d.stopPropagation(),d.preventDefault(),p[w].focus(),i&&p[w].click());break}case"ArrowLeft":{u==="horizontal"&&(d.stopPropagation(),d.preventDefault(),p[S].focus(),i&&p[S].click());break}case"ArrowUp":{u==="vertical"&&(d.stopPropagation(),d.preventDefault(),p[g].focus(),i&&p[g].click());break}case"ArrowDown":{u==="vertical"&&(d.stopPropagation(),d.preventDefault(),p[m].focus(),i&&p[m].click());break}case"Home":{d.stopPropagation(),d.preventDefault(),!p[0].disabled&&p[0].focus();break}case"End":{d.stopPropagation(),d.preventDefault();const b=p.length-1;!p[b].disabled&&p[b].focus();break}}}}const yE={app:100,modal:200,popover:300,overlay:400,max:9999};function $i(e){return yE[e]}const nc=()=>{};function bE(e,t={active:!0}){return typeof e!="function"||!t.active?t.onKeyDown||nc:r=>{var s;r.key==="Escape"&&(e(r),(s=t.onTrigger)==null||s.call(t))}}function Ke(e,t="size",r=!0){if(e!==void 0)return Pb(e)?r?se(e):e:`var(--${t}-${e})`}function $o(e){return Ke(e,"mantine-spacing")}function Ct(e){return e===void 0?"var(--mantine-radius-default)":Ke(e,"mantine-radius")}function Ut(e){return Ke(e,"mantine-font-size")}function Tb(e){return Ke(e,"mantine-line-height",!1)}function Nb(e){if(e)return Ke(e,"mantine-shadow",!1)}function wE(e,t){return e in t?dp(t[e]):dp(e)}function jb(e,t){const r=e.map(s=>({value:s,px:wE(s,t)}));return r.sort((s,i)=>s.px-i.px),r}function za(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function Wr(e,t,r){return t===void 0&&r===void 0?e:t!==void 0&&r===void 0?Math.max(e,t):Math.min(t===void 0&&r!==void 0?e:Math.max(e,t),r)}function Ob(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}function is(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...r)=>{var s;return(s=t.current)==null?void 0:s.call(t,...r)},[])}function ll(e,t){const r=typeof t=="number"?t:t.delay,s=typeof t=="number"?!1:t.flushOnUnmount,i=is(e),l=C.useRef(0),u=C.useRef(()=>{}),d=Object.assign(C.useCallback((...p)=>{window.clearTimeout(l.current);const f=()=>{l.current!==0&&(l.current=0,i(...p))};u.current=f,d.flush=f,l.current=window.setTimeout(f,r)},[i,r]),{flush:u.current});return C.useEffect(()=>()=>{window.clearTimeout(l.current),s&&d.flush()},[d,s]),d}const _y=["mousedown","touchstart"];function SE(e,t,r){const s=C.useRef(null);return C.useEffect(()=>{const i=l=>{const{target:u}=l??{};if(Array.isArray(r)){const d=(u==null?void 0:u.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(u)&&u.tagName!=="HTML";r.every(f=>!!f&&!l.composedPath().includes(f))&&!d&&e()}else s.current&&!s.current.contains(u)&&e()};return(t||_y).forEach(l=>document.addEventListener(l,i)),()=>{(t||_y).forEach(l=>document.removeEventListener(l,i))}},[s,e,r]),s}function xE(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function CE(e,t){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function Ab(e,t,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){const[s,i]=C.useState(r?t:CE(e)),l=C.useRef(null);return C.useEffect(()=>{if("matchMedia"in window)return l.current=window.matchMedia(e),i(l.current.matches),xE(l.current,u=>i(u.matches))},[e]),s}function EE(e,t){return Ab("(prefers-color-scheme: dark)",e==="dark",t)?"dark":"light"}const ul=typeof document<"u"?C.useLayoutEffect:C.useEffect;function Kr(e,t){const r=C.useRef(!1);C.useEffect(()=>()=>{r.current=!1},[]),C.useEffect(()=>{if(r.current)return e();r.current=!0},t)}function RE({opened:e,shouldReturnFocus:t=!0}){const r=C.useRef(null),s=()=>{var i;r.current&&"focus"in r.current&&typeof r.current.focus=="function"&&((i=r.current)==null||i.focus({preventScroll:!0}))};return Kr(()=>{let i=-1;const l=u=>{u.key==="Tab"&&window.clearTimeout(i)};return document.addEventListener("keydown",l),e?r.current=document.activeElement:t&&(i=window.setTimeout(s,10)),()=>{window.clearTimeout(i),document.removeEventListener("keydown",l)}},[e,t]),s}const _E=/input|select|textarea|button|object/,Db="a, input, select, textarea, button, object, [tabindex]";function kE(e){return e.style.display==="none"}function PE(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let r=e;for(;r&&!(r===document.body||r.nodeType===11);){if(kE(r))return!1;r=r.parentNode}return!0}function Ib(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function pp(e){const t=e.nodeName.toLowerCase(),r=!Number.isNaN(Ib(e));return(_E.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||r)&&PE(e)}function Mb(e){const t=Ib(e);return(Number.isNaN(t)||t>=0)&&pp(e)}function TE(e){return Array.from(e.querySelectorAll(Db)).filter(Mb)}function NE(e,t){const r=TE(e);if(!r.length){t.preventDefault();return}const s=r[t.shiftKey?0:r.length-1],i=e.getRootNode();let l=s===i.activeElement||e===i.activeElement;const u=i.activeElement;if(u.tagName==="INPUT"&&u.getAttribute("type")==="radio"&&(l=r.filter(m=>m.getAttribute("type")==="radio"&&m.getAttribute("name")===u.getAttribute("name")).includes(s)),!l)return;t.preventDefault();const p=r[t.shiftKey?r.length-1:0];p&&p.focus()}function jE(e=!0){const t=C.useRef(null),r=i=>{let l=i.querySelector("[data-autofocus]");if(!l){const u=Array.from(i.querySelectorAll(Db));l=u.find(Mb)||u.find(pp)||null,!l&&pp(i)&&(l=i)}l&&l.focus({preventScroll:!0})},s=C.useCallback(i=>{e&&i!==null&&t.current!==i&&(i?(setTimeout(()=>{i.getRootNode()&&r(i)}),t.current=i):t.current=null)},[e]);return C.useEffect(()=>{if(!e)return;t.current&&setTimeout(()=>r(t.current));const i=l=>{l.key==="Tab"&&t.current&&NE(t.current,l)};return document.addEventListener("keydown",i),()=>document.removeEventListener("keydown",i)},[e]),s}const OE=e=>(e+1)%1e6;function AE(){const[,e]=C.useReducer(OE,0);return e}const DE=St.useId||(()=>{});function IE(){const e=DE();return e?`mantine-${e.replace(/:/g,"")}`:""}function Jr(e){const t=IE(),[r,s]=C.useState(t);return ul(()=>{s(Ob())},[]),typeof e=="string"?e:typeof window>"u"?t:r}function rc(e,t){if(typeof e=="function")return e(t);typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function $b(...e){const t=new Map;return r=>{if(e.forEach(s=>{const i=rc(s,r);i&&t.set(s,i)}),t.size>0)return()=>{e.forEach(s=>{const i=t.get(s);i?i():rc(s,null)}),t.clear()}}}function $t(...e){return C.useCallback($b(...e),e)}function Lb(e,t,r="ltr"){const s=C.useRef(null),i=C.useRef(!1),l=C.useRef(!1),u=C.useRef(0),[d,p]=C.useState(!1);return C.useEffect(()=>{i.current=!0},[]),C.useEffect(()=>{const f=s.current,m=({x:k,y:T})=>{cancelAnimationFrame(u.current),u.current=requestAnimationFrame(()=>{if(i.current&&f){f.style.userSelect="none";const j=f.getBoundingClientRect();if(j.width&&j.height){const O=Wr((k-j.left)/j.width,0,1);e({x:r==="ltr"?O:1-O,y:Wr((T-j.top)/j.height,0,1)})}}})},g=()=>{document.addEventListener("mousemove",E),document.addEventListener("mouseup",x),document.addEventListener("touchmove",P),document.addEventListener("touchend",x)},w=()=>{document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",x),document.removeEventListener("touchmove",P),document.removeEventListener("touchend",x)},S=()=>{!l.current&&i.current&&(l.current=!0,typeof(t==null?void 0:t.onScrubStart)=="function"&&t.onScrubStart(),p(!0),g())},x=()=>{l.current&&i.current&&(l.current=!1,p(!1),w(),setTimeout(()=>{typeof(t==null?void 0:t.onScrubEnd)=="function"&&t.onScrubEnd()},0))},b=k=>{S(),k.preventDefault(),E(k)},E=k=>m({x:k.clientX,y:k.clientY}),R=k=>{k.cancelable&&k.preventDefault(),S(),P(k)},P=k=>{k.cancelable&&k.preventDefault(),m({x:k.changedTouches[0].clientX,y:k.changedTouches[0].clientY})};return f==null||f.addEventListener("mousedown",b),f==null||f.addEventListener("touchstart",R,{passive:!1}),()=>{f&&(f.removeEventListener("mousedown",b),f.removeEventListener("touchstart",R))}},[r,e]),{ref:s,active:d}}function $n({value:e,defaultValue:t,finalValue:r,onChange:s=()=>{}}){const[i,l]=C.useState(t!==void 0?t:r),u=(d,...p)=>{l(d),s==null||s(d,...p)};return e!==void 0?[e,s,!0]:[i,u,!1]}function ah(e,t){return Ab("(prefers-reduced-motion: reduce)",e,t)}function ME(e){const t=C.useRef(void 0);return C.useEffect(()=>{t.current=e},[e]),t.current}function hp(e,t){return t.length===0?e:t.reduce((r,s)=>Math.abs(s-e)<Math.abs(r-e)?s:r)}function wc(e){var r;const t=St.version;return typeof St.version!="string"||t.startsWith("18.")?e==null?void 0:e.ref:(r=e==null?void 0:e.props)==null?void 0:r.ref}function Fb(e){var t,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Fb(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function En(){for(var e,t,r=0,s="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Fb(e))&&(s&&(s+=" "),s+=t);return s}const $E={};function LE(e){const t={};return e.forEach(r=>{Object.entries(r).forEach(([s,i])=>{t[s]?t[s]=En(t[s],i):t[s]=i})}),t}function Sc({theme:e,classNames:t,props:r,stylesCtx:s}){const l=(Array.isArray(t)?t:[t]).map(u=>typeof u=="function"?u(e,r,s):u||$E);return LE(l)}function oc({theme:e,styles:t,props:r,stylesCtx:s}){return(Array.isArray(t)?t:[t]).reduce((l,u)=>typeof u=="function"?{...l,...u(e,r,s)}:{...l,...u},{})}const lh=C.createContext(null);function zo(){const e=C.useContext(lh);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function FE(){return zo().cssVariablesResolver}function zE(){return zo().classNamesPrefix}function xc(){return zo().getStyleNonce}function VE(){return zo().withStaticClasses}function BE(){return zo().headless}function UE(){var e;return(e=zo().stylesTransform)==null?void 0:e.sx}function HE(){var e;return(e=zo().stylesTransform)==null?void 0:e.styles}function zb(){return zo().env||"default"}function WE(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function QE(e){let t=e.replace("#","");if(t.length===3){const u=t.split("");t=[u[0],u[0],u[1],u[1],u[2],u[2]].join("")}if(t.length===8){const u=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:u}}const r=parseInt(t,16),s=r>>16&255,i=r>>8&255,l=r&255;return{r:s,g:i,b:l,a:1}}function qE(e){const[t,r,s,i]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:t,g:r,b:s,a:i===void 0?1:i}}function KE(e){const t=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,r=e.match(t);if(!r)return{r:0,g:0,b:0,a:1};const s=parseInt(r[1],10),i=parseInt(r[2],10)/100,l=parseInt(r[3],10)/100,u=r[5]?parseFloat(r[5]):void 0,d=(1-Math.abs(2*l-1))*i,p=s/60,f=d*(1-Math.abs(p%2-1)),m=l-d/2;let g,w,S;return p>=0&&p<1?(g=d,w=f,S=0):p>=1&&p<2?(g=f,w=d,S=0):p>=2&&p<3?(g=0,w=d,S=f):p>=3&&p<4?(g=0,w=f,S=d):p>=4&&p<5?(g=f,w=0,S=d):(g=d,w=0,S=f),{r:Math.round((g+m)*255),g:Math.round((w+m)*255),b:Math.round((S+m)*255),a:u||1}}function uh(e){return WE(e)?QE(e):e.startsWith("rgb")?qE(e):e.startsWith("hsl")?KE(e):{r:0,g:0,b:0,a:1}}function Lu(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${t*100}%)`;const{r,g:s,b:i,a:l}=uh(e),u=1-t,d=p=>Math.round(p*u);return`rgba(${d(r)}, ${d(s)}, ${d(i)}, ${l})`}function qa(e,t){return typeof e.primaryShade=="number"?e.primaryShade:t==="dark"?e.primaryShade.dark:e.primaryShade.light}function Vf(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function GE(e){const t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function XE(e){if(e.startsWith("oklch("))return(GE(e)||0)/100;const{r:t,g:r,b:s}=uh(e),i=t/255,l=r/255,u=s/255,d=Vf(i),p=Vf(l),f=Vf(u);return .2126*d+.7152*p+.0722*f}function Da(e,t=.179){return e.startsWith("var(")?!1:XE(e)>t}function cl({color:e,theme:t,colorScheme:r}){if(typeof e!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e==="bright")return{color:e,value:r==="dark"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Da(r==="dark"?t.white:t.black,t.luminanceThreshold),variable:"--mantine-color-bright"};if(e==="dimmed")return{color:e,value:r==="dark"?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Da(r==="dark"?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:"--mantine-color-dimmed"};if(e==="white"||e==="black")return{color:e,value:e==="white"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Da(e==="white"?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};const[s,i]=e.split("."),l=i?Number(i):void 0,u=s in t.colors;if(u){const d=l!==void 0?t.colors[s][l]:t.colors[s][qa(t,r||"light")];return{color:s,value:d,shade:l,isThemeColor:u,isLight:Da(d,t.luminanceThreshold),variable:i?`--mantine-color-${s}-${l}`:`--mantine-color-${s}-filled`}}return{color:e,value:e,isThemeColor:u,isLight:Da(e,t.luminanceThreshold),shade:l,variable:void 0}}function It(e,t){const r=cl({color:e||t.primaryColor,theme:t});return r.variable?`var(${r.variable})`:e}function mp(e,t){const r={from:(e==null?void 0:e.from)||t.defaultGradient.from,to:(e==null?void 0:e.to)||t.defaultGradient.to,deg:(e==null?void 0:e.deg)??t.defaultGradient.deg??0},s=It(r.from,t),i=It(r.to,t);return`linear-gradient(${r.deg}deg, ${s} 0%, ${i} 100%)`}function mr(e,t){if(typeof e!="string"||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(")){const l=(1-t)*100;return`color-mix(in srgb, ${e}, transparent ${l}%)`}if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(")",` / ${t})`);const{r,g:s,b:i}=uh(e);return`rgba(${r}, ${s}, ${i}, ${t})`}const ui=mr,YE=({color:e,theme:t,variant:r,gradient:s,autoContrast:i})=>{const l=cl({color:e,theme:t}),u=typeof i=="boolean"?i:t.autoContrast;if(r==="filled"){const d=u&&l.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return l.isThemeColor?l.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:d,border:`${se(1)} solid transparent`}:{background:`var(--mantine-color-${l.color}-${l.shade})`,hover:`var(--mantine-color-${l.color}-${l.shade===9?8:l.shade+1})`,color:d,border:`${se(1)} solid transparent`}:{background:e,hover:Lu(e,.1),color:d,border:`${se(1)} solid transparent`}}if(r==="light"){if(l.isThemeColor){if(l.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${se(1)} solid transparent`};const d=t.colors[l.color][l.shade];return{background:mr(d,.1),hover:mr(d,.12),color:`var(--mantine-color-${l.color}-${Math.min(l.shade,6)})`,border:`${se(1)} solid transparent`}}return{background:mr(e,.1),hover:mr(e,.12),color:e,border:`${se(1)} solid transparent`}}if(r==="outline")return l.isThemeColor?l.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${se(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:mr(t.colors[l.color][l.shade],.05),color:`var(--mantine-color-${l.color}-${l.shade})`,border:`${se(1)} solid var(--mantine-color-${l.color}-${l.shade})`}:{background:"transparent",hover:mr(e,.05),color:e,border:`${se(1)} solid ${e}`};if(r==="subtle"){if(l.isThemeColor){if(l.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${se(1)} solid transparent`};const d=t.colors[l.color][l.shade];return{background:"transparent",hover:mr(d,.12),color:`var(--mantine-color-${l.color}-${Math.min(l.shade,6)})`,border:`${se(1)} solid transparent`}}return{background:"transparent",hover:mr(e,.12),color:e,border:`${se(1)} solid transparent`}}return r==="transparent"?l.isThemeColor?l.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${se(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${l.color}-${Math.min(l.shade,6)})`,border:`${se(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${se(1)} solid transparent`}:r==="white"?l.isThemeColor?l.shade===void 0?{background:"var(--mantine-color-white)",hover:Lu(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${se(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Lu(t.white,.01),color:`var(--mantine-color-${l.color}-${l.shade})`,border:`${se(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Lu(t.white,.01),color:e,border:`${se(1)} solid transparent`}:r==="gradient"?{background:mp(s,t),hover:mp(s,t),color:"var(--mantine-color-white)",border:"none"}:r==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${se(1)} solid var(--mantine-color-default-border)`}:{}},JE={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},ky="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",ch={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:JE,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:YE,autoContrast:!1,luminanceThreshold:.3,fontFamily:ky,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:ky,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:se(34),lineHeight:"1.3"},h2:{fontSize:se(26),lineHeight:"1.35"},h3:{fontSize:se(22),lineHeight:"1.4"},h4:{fontSize:se(18),lineHeight:"1.45"},h5:{fontSize:se(16),lineHeight:"1.5"},h6:{fontSize:se(14),lineHeight:"1.5"}}},fontSizes:{xs:se(12),sm:se(14),md:se(16),lg:se(18),xl:se(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:se(2),sm:se(4),md:se(8),lg:se(16),xl:se(32)},spacing:{xs:se(10),sm:se(12),md:se(16),lg:se(20),xl:se(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${se(1)} ${se(3)} rgba(0, 0, 0, 0.05), 0 ${se(1)} ${se(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${se(1)} ${se(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${se(10)} ${se(15)} ${se(-5)}, rgba(0, 0, 0, 0.04) 0 ${se(7)} ${se(7)} ${se(-5)}`,md:`0 ${se(1)} ${se(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${se(20)} ${se(25)} ${se(-5)}, rgba(0, 0, 0, 0.04) 0 ${se(10)} ${se(10)} ${se(-5)}`,lg:`0 ${se(1)} ${se(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${se(28)} ${se(23)} ${se(-7)}, rgba(0, 0, 0, 0.04) 0 ${se(12)} ${se(12)} ${se(-7)}`,xl:`0 ${se(1)} ${se(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${se(36)} ${se(28)} ${se(-7)}, rgba(0, 0, 0, 0.04) 0 ${se(17)} ${se(17)} ${se(-7)}`},other:{},components:{}};function Py(e){return e==="auto"||e==="dark"||e==="light"}function ZE({key:e="mantine-color-scheme-value"}={}){let t;return{get:r=>{if(typeof window>"u")return r;try{const s=window.localStorage.getItem(e);return Py(s)?s:r}catch{return r}},set:r=>{try{window.localStorage.setItem(e,r)}catch(s){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",s)}},subscribe:r=>{t=s=>{s.storageArea===window.localStorage&&s.key===e&&Py(s.newValue)&&r(s.newValue)},window.addEventListener("storage",t)},unsubscribe:()=>{window.removeEventListener("storage",t)},clear:()=>{window.localStorage.removeItem(e)}}}const eR="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",Ty="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function Bf(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function Ny(e){if(!(e.primaryColor in e.colors))throw new Error(eR);if(typeof e.primaryShade=="object"&&(!Bf(e.primaryShade.dark)||!Bf(e.primaryShade.light)))throw new Error(Ty);if(typeof e.primaryShade=="number"&&!Bf(e.primaryShade))throw new Error(Ty)}function tR(e,t){var s;if(!t)return Ny(e),e;const r=ih(e,t);return t.fontFamily&&!((s=t.headings)!=null&&s.fontFamily)&&(r.headings.fontFamily=t.fontFamily),Ny(r),r}const dh=C.createContext(null),nR=()=>C.useContext(dh)||ch;function rn(){const e=C.useContext(dh);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function Vb({theme:e,children:t,inherit:r=!0}){const s=nR(),i=C.useMemo(()=>tR(r?s:ch,e),[e,s,r]);return y.jsx(dh.Provider,{value:i,children:t})}Vb.displayName="@mantine/core/MantineThemeProvider";function rR(){const e=rn(),t=xc(),r=Yt(e.breakpoints).reduce((s,i)=>{const l=e.breakpoints[i].includes("px"),u=dp(e.breakpoints[i]),d=l?`${u-.1}px`:Ey(u-.1),p=l?`${u}px`:Ey(u);return`${s}@media (max-width: ${d}) {.mantine-visible-from-${i} {display: none !important;}}@media (min-width: ${p}) {.mantine-hidden-from-${i} {display: none !important;}}`},"");return y.jsx("style",{"data-mantine-styles":"classes",nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:r}})}function Uf(e){return Object.entries(e).map(([t,r])=>`${t}: ${r};`).join("")}function Ia(e,t){return(Array.isArray(e)?e:[e]).reduce((s,i)=>`${i}{${s}}`,t)}function oR(e,t){const r=Uf(e.variables),s=r?Ia(t,r):"",i=Uf(e.dark),l=Uf(e.light),u=i?Ia(t===":host"?`${t}([data-mantine-color-scheme="dark"])`:`${t}[data-mantine-color-scheme="dark"]`,i):"",d=l?Ia(t===":host"?`${t}([data-mantine-color-scheme="light"])`:`${t}[data-mantine-color-scheme="light"]`,l):"";return`${s}${u}${d}`}function Bb({color:e,theme:t,autoContrast:r}){return(typeof r=="boolean"?r:t.autoContrast)&&cl({color:e||t.primaryColor,theme:t}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function jy(e,t){return Bb({color:e.colors[e.primaryColor][qa(e,t)],theme:e,autoContrast:null})}function Fu({theme:e,color:t,colorScheme:r,name:s=t,withColorValues:i=!0}){if(!e.colors[t])return{};if(r==="light"){const d=qa(e,"light"),p={[`--mantine-color-${s}-text`]:`var(--mantine-color-${s}-filled)`,[`--mantine-color-${s}-filled`]:`var(--mantine-color-${s}-${d})`,[`--mantine-color-${s}-filled-hover`]:`var(--mantine-color-${s}-${d===9?8:d+1})`,[`--mantine-color-${s}-light`]:ui(e.colors[t][d],.1),[`--mantine-color-${s}-light-hover`]:ui(e.colors[t][d],.12),[`--mantine-color-${s}-light-color`]:`var(--mantine-color-${s}-${d})`,[`--mantine-color-${s}-outline`]:`var(--mantine-color-${s}-${d})`,[`--mantine-color-${s}-outline-hover`]:ui(e.colors[t][d],.05)};return i?{[`--mantine-color-${s}-0`]:e.colors[t][0],[`--mantine-color-${s}-1`]:e.colors[t][1],[`--mantine-color-${s}-2`]:e.colors[t][2],[`--mantine-color-${s}-3`]:e.colors[t][3],[`--mantine-color-${s}-4`]:e.colors[t][4],[`--mantine-color-${s}-5`]:e.colors[t][5],[`--mantine-color-${s}-6`]:e.colors[t][6],[`--mantine-color-${s}-7`]:e.colors[t][7],[`--mantine-color-${s}-8`]:e.colors[t][8],[`--mantine-color-${s}-9`]:e.colors[t][9],...p}:p}const l=qa(e,"dark"),u={[`--mantine-color-${s}-text`]:`var(--mantine-color-${s}-4)`,[`--mantine-color-${s}-filled`]:`var(--mantine-color-${s}-${l})`,[`--mantine-color-${s}-filled-hover`]:`var(--mantine-color-${s}-${l===9?8:l+1})`,[`--mantine-color-${s}-light`]:ui(e.colors[t][Math.max(0,l-2)],.15),[`--mantine-color-${s}-light-hover`]:ui(e.colors[t][Math.max(0,l-2)],.2),[`--mantine-color-${s}-light-color`]:`var(--mantine-color-${s}-${Math.max(l-5,0)})`,[`--mantine-color-${s}-outline`]:`var(--mantine-color-${s}-${Math.max(l-4,0)})`,[`--mantine-color-${s}-outline-hover`]:ui(e.colors[t][Math.max(l-4,0)],.05)};return i?{[`--mantine-color-${s}-0`]:e.colors[t][0],[`--mantine-color-${s}-1`]:e.colors[t][1],[`--mantine-color-${s}-2`]:e.colors[t][2],[`--mantine-color-${s}-3`]:e.colors[t][3],[`--mantine-color-${s}-4`]:e.colors[t][4],[`--mantine-color-${s}-5`]:e.colors[t][5],[`--mantine-color-${s}-6`]:e.colors[t][6],[`--mantine-color-${s}-7`]:e.colors[t][7],[`--mantine-color-${s}-8`]:e.colors[t][8],[`--mantine-color-${s}-9`]:e.colors[t][9],...u}:u}function sR(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function ci(e,t,r){Yt(t).forEach(s=>Object.assign(e,{[`--mantine-${r}-${s}`]:t[s]}))}const Ub=e=>{const t=qa(e,"light"),r=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:se(e.defaultRadius),s={variables:{"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-color-scheme":"light dark","--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":r,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-primary-color-contrast":jy(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)"},dark:{"--mantine-primary-color-contrast":jy(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)"}};ci(s.variables,e.breakpoints,"breakpoint"),ci(s.variables,e.spacing,"spacing"),ci(s.variables,e.fontSizes,"font-size"),ci(s.variables,e.lineHeights,"line-height"),ci(s.variables,e.shadows,"shadow"),ci(s.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((l,u)=>{s.variables[`--mantine-primary-color-${u}`]=`var(--mantine-color-${e.primaryColor}-${u})`}),Yt(e.colors).forEach(l=>{const u=e.colors[l];if(sR(u)){Object.assign(s.light,Fu({theme:e,name:u.name,color:u.light,colorScheme:"light",withColorValues:!0})),Object.assign(s.dark,Fu({theme:e,name:u.name,color:u.dark,colorScheme:"dark",withColorValues:!0}));return}u.forEach((d,p)=>{s.variables[`--mantine-color-${l}-${p}`]=d}),Object.assign(s.light,Fu({theme:e,color:l,colorScheme:"light",withColorValues:!1})),Object.assign(s.dark,Fu({theme:e,color:l,colorScheme:"dark",withColorValues:!1}))});const i=e.headings.sizes;return Yt(i).forEach(l=>{s.variables[`--mantine-${l}-font-size`]=i[l].fontSize,s.variables[`--mantine-${l}-line-height`]=i[l].lineHeight,s.variables[`--mantine-${l}-font-weight`]=i[l].fontWeight||e.headings.fontWeight}),s};function iR({theme:e,generator:t}){const r=Ub(e),s=t==null?void 0:t(e);return s?ih(r,s):r}const Hf=Ub(ch);function aR(e){const t={variables:{},light:{},dark:{}};return Yt(e.variables).forEach(r=>{Hf.variables[r]!==e.variables[r]&&(t.variables[r]=e.variables[r])}),Yt(e.light).forEach(r=>{Hf.light[r]!==e.light[r]&&(t.light[r]=e.light[r])}),Yt(e.dark).forEach(r=>{Hf.dark[r]!==e.dark[r]&&(t.dark[r]=e.dark[r])}),t}function lR(e){return`
81
81
  ${e}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }
82
82
  ${e}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }
83
- `}function Hb({cssVariablesSelector:e,deduplicateCssVariables:t}){const r=rn(),s=xc(),i=FE(),l=iR({theme:r,generator:i}),u=e===":root"&&t,d=u?aR(l):l,p=oR(d,e);return p?y.jsx("style",{"data-mantine-styles":!0,nonce:s==null?void 0:s(),dangerouslySetInnerHTML:{__html:`${p}${u?"":lR(e)}`}}):null}Hb.displayName="@mantine/CssVariables";function uR(){const e=console.error;console.error=(...t)=>{t.length>1&&typeof t[0]=="string"&&t[0].toLowerCase().includes("extra attributes from the server")&&typeof t[1]=="string"&&t[1].toLowerCase().includes("data-mantine-color-scheme")||e(...t)}}function di(e,t){var i,l;const r=typeof window<"u"&&"matchMedia"in window&&((i=window.matchMedia("(prefers-color-scheme: dark)"))==null?void 0:i.matches),s=e!=="auto"?e:r?"dark":"light";(l=t())==null||l.setAttribute("data-mantine-color-scheme",s)}function cR({manager:e,defaultColorScheme:t,getRootElement:r,forceColorScheme:s}){const i=C.useRef(null),[l,u]=C.useState(()=>e.get(t)),d=s||l,p=C.useCallback(m=>{s||(di(m,r),u(m),e.set(m))},[e.set,d,s]),f=C.useCallback(()=>{u(t),di(t,r),e.clear()},[e.clear,t]);return C.useEffect(()=>(e.subscribe(p),e.unsubscribe),[e.subscribe,e.unsubscribe]),ul(()=>{di(e.get(t),r)},[]),C.useEffect(()=>{var g;if(s)return di(s,r),()=>{};s===void 0&&di(l,r),typeof window<"u"&&"matchMedia"in window&&(i.current=window.matchMedia("(prefers-color-scheme: dark)"));const m=w=>{l==="auto"&&di(w.matches?"dark":"light",r)};return(g=i.current)==null||g.addEventListener("change",m),()=>{var w;return(w=i.current)==null?void 0:w.removeEventListener("change",m)}},[l,s]),{colorScheme:d,setColorScheme:p,clearColorScheme:f}}function dR({respectReducedMotion:e,getRootElement:t}){ul(()=>{var r;e&&((r=t())==null||r.setAttribute("data-respect-reduced-motion","true"))},[e])}uR();function Wb({theme:e,children:t,getStyleNonce:r,withStaticClasses:s=!0,withGlobalClasses:i=!0,deduplicateCssVariables:l=!0,withCssVariables:u=!0,cssVariablesSelector:d=":root",classNamesPrefix:p="mantine",colorSchemeManager:f=ZE(),defaultColorScheme:m="light",getRootElement:g=()=>document.documentElement,cssVariablesResolver:w,forceColorScheme:S,stylesTransform:x,env:b}){const{colorScheme:E,setColorScheme:R,clearColorScheme:k}=cR({defaultColorScheme:m,forceColorScheme:S,manager:f,getRootElement:g});return dR({respectReducedMotion:(e==null?void 0:e.respectReducedMotion)||!1,getRootElement:g}),y.jsx(lh.Provider,{value:{colorScheme:E,setColorScheme:R,clearColorScheme:k,getRootElement:g,classNamesPrefix:p,getStyleNonce:r,cssVariablesResolver:w,cssVariablesSelector:d,withStaticClasses:s,stylesTransform:x,env:b},children:y.jsxs(Vb,{theme:e,children:[u&&y.jsx(Hb,{cssVariablesSelector:d,deduplicateCssVariables:l}),i&&y.jsx(rR,{}),t]})})}Wb.displayName="@mantine/core/MantineProvider";function dl({classNames:e,styles:t,props:r,stylesCtx:s}){const i=rn();return{resolvedClassNames:Sc({theme:i,classNames:e,props:r,stylesCtx:s||void 0}),resolvedStyles:oc({theme:i,styles:t,props:r,stylesCtx:s||void 0})}}const fR={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function pR({theme:e,options:t,unstyled:r}){return En((t==null?void 0:t.focusable)&&!r&&(e.focusClassName||fR[e.focusRing]),(t==null?void 0:t.active)&&!r&&e.activeClassName)}function hR({selector:e,stylesCtx:t,options:r,props:s,theme:i}){return Sc({theme:i,classNames:r==null?void 0:r.classNames,props:(r==null?void 0:r.props)||s,stylesCtx:t})[e]}function Oy({selector:e,stylesCtx:t,theme:r,classNames:s,props:i}){return Sc({theme:r,classNames:s,props:i,stylesCtx:t})[e]}function mR({rootSelector:e,selector:t,className:r}){return e===t?r:void 0}function gR({selector:e,classes:t,unstyled:r}){return r?void 0:t[e]}function vR({themeName:e,classNamesPrefix:t,selector:r,withStaticClass:s}){return s===!1?[]:e.map(i=>`${t}-${i}-${r}`)}function yR({themeName:e,theme:t,selector:r,props:s,stylesCtx:i}){return e.map(l=>{var u,d;return(d=Sc({theme:t,classNames:(u=t.components[l])==null?void 0:u.classNames,props:s,stylesCtx:i}))==null?void 0:d[r]})}function bR({options:e,classes:t,selector:r,unstyled:s}){return e!=null&&e.variant&&!s?t[`${r}--${e.variant}`]:void 0}function wR({theme:e,options:t,themeName:r,selector:s,classNamesPrefix:i,classNames:l,classes:u,unstyled:d,className:p,rootSelector:f,props:m,stylesCtx:g,withStaticClasses:w,headless:S,transformedStyles:x}){return En(pR({theme:e,options:t,unstyled:d||S}),yR({theme:e,themeName:r,selector:s,props:m,stylesCtx:g}),bR({options:t,classes:u,selector:s,unstyled:d}),Oy({selector:s,stylesCtx:g,theme:e,classNames:l,props:m}),Oy({selector:s,stylesCtx:g,theme:e,classNames:x,props:m}),hR({selector:s,stylesCtx:g,options:t,props:m,theme:e}),mR({rootSelector:f,selector:s,className:p}),gR({selector:s,classes:u,unstyled:d||S}),w&&!S&&vR({themeName:r,classNamesPrefix:i,selector:s,withStaticClass:t==null?void 0:t.withStaticClass}),t==null?void 0:t.className)}function SR({theme:e,themeName:t,props:r,stylesCtx:s,selector:i}){return t.map(l=>{var u;return oc({theme:e,styles:(u=e.components[l])==null?void 0:u.styles,props:r,stylesCtx:s})[i]}).reduce((l,u)=>({...l,...u}),{})}function gp({style:e,theme:t}){return Array.isArray(e)?[...e].reduce((r,s)=>({...r,...gp({style:s,theme:t})}),{}):typeof e=="function"?e(t):e??{}}function xR(e){return e.reduce((t,r)=>(r&&Object.keys(r).forEach(s=>{t[s]={...t[s],...al(r[s])}}),t),{})}function CR({vars:e,varsResolver:t,theme:r,props:s,stylesCtx:i,selector:l,themeName:u,headless:d}){var p;return(p=xR([d?{}:t==null?void 0:t(r,s,i),...u.map(f=>{var m,g,w;return(w=(g=(m=r.components)==null?void 0:m[f])==null?void 0:g.vars)==null?void 0:w.call(g,r,s,i)}),e==null?void 0:e(r,s,i)]))==null?void 0:p[l]}function ER({theme:e,themeName:t,selector:r,options:s,props:i,stylesCtx:l,rootSelector:u,styles:d,style:p,vars:f,varsResolver:m,headless:g,withStylesTransform:w}){return{...!w&&SR({theme:e,themeName:t,props:i,stylesCtx:l,selector:r}),...!w&&oc({theme:e,styles:d,props:i,stylesCtx:l})[r],...!w&&oc({theme:e,styles:s==null?void 0:s.styles,props:(s==null?void 0:s.props)||i,stylesCtx:l})[r],...CR({theme:e,props:i,stylesCtx:l,vars:f,varsResolver:m,selector:r,themeName:t,headless:g}),...u===r?gp({style:p,theme:e}):null,...gp({style:s==null?void 0:s.style,theme:e})}}function RR({props:e,stylesCtx:t,themeName:r}){var u;const s=rn(),i=(u=HE())==null?void 0:u();return{getTransformedStyles:d=>i?[...d.map(f=>i(f,{props:e,theme:s,ctx:t})),...r.map(f=>{var m;return i((m=s.components[f])==null?void 0:m.styles,{props:e,theme:s,ctx:t})})].filter(Boolean):[],withStylesTransform:!!i}}function Ie({name:e,classes:t,props:r,stylesCtx:s,className:i,style:l,rootSelector:u="root",unstyled:d,classNames:p,styles:f,vars:m,varsResolver:g}){const w=rn(),S=zE(),x=VE(),b=BE(),E=(Array.isArray(e)?e:[e]).filter(P=>P),{withStylesTransform:R,getTransformedStyles:k}=RR({props:r,stylesCtx:s,themeName:E});return(P,T)=>({className:wR({theme:w,options:T,themeName:E,selector:P,classNamesPrefix:S,classNames:p,classes:t,unstyled:d,className:i,rootSelector:u,props:r,stylesCtx:s,withStaticClasses:x,headless:b,transformedStyles:k([T==null?void 0:T.styles,f])}),style:ER({theme:w,themeName:E,selector:P,options:T,props:r,stylesCtx:s,rootSelector:u,styles:f,style:l,vars:m,varsResolver:g,headless:b,withStylesTransform:R})})}function _R(e,t){return typeof e=="boolean"?e:t.autoContrast}function Ay(e){const t=document.createElement("style");return t.setAttribute("data-mantine-styles","inline"),t.innerHTML="*, *::before, *::after {transition: none !important;}",t.setAttribute("data-mantine-disable-transition","true"),e&&t.setAttribute("nonce",e),document.head.appendChild(t),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(s=>s.remove())}function PR({keepTransitions:e}={}){const t=C.useRef(nc),r=C.useRef(-1),s=C.useContext(lh),i=xc(),l=C.useRef(i==null?void 0:i());if(!s)throw new Error("[@mantine/core] MantineProvider was not found in tree");const u=g=>{s.setColorScheme(g),t.current=e?()=>{}:Ay(l.current),window.clearTimeout(r.current),r.current=window.setTimeout(()=>{var w;(w=t.current)==null||w.call(t)},10)},d=()=>{s.clearColorScheme(),t.current=e?()=>{}:Ay(l.current),window.clearTimeout(r.current),r.current=window.setTimeout(()=>{var g;(g=t.current)==null||g.call(t)},10)},p=EE("light",{getInitialValueInEffect:!1}),f=s.colorScheme==="auto"?p:s.colorScheme,m=C.useCallback(()=>u(f==="light"?"dark":"light"),[u,f]);return C.useEffect(()=>()=>{var g;(g=t.current)==null||g.call(t),window.clearTimeout(r.current)},[]),{colorScheme:s.colorScheme,setColorScheme:u,clearColorScheme:d,toggleColorScheme:m}}function me(e,t,r){var u;const s=rn(),i=(u=s.components[e])==null?void 0:u.defaultProps,l=typeof i=="function"?i(s):i;return{...t,...l,...al(r)}}function Wf(e){return Yt(e).reduce((t,r)=>e[r]!==void 0?`${t}${fE(r)}:${e[r]};`:t,"").trim()}function kR({selector:e,styles:t,media:r,container:s}){const i=t?Wf(t):"",l=Array.isArray(r)?r.map(d=>`@media${d.query}{${e}{${Wf(d.styles)}}}`):[],u=Array.isArray(s)?s.map(d=>`@container ${d.query}{${e}{${Wf(d.styles)}}}`):[];return`${i?`${e}{${i}}`:""}${l.join("")}${u.join("")}`.trim()}function fh(e){const t=xc();return y.jsx("style",{"data-mantine-styles":"inline",nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:kR(e)}})}function fl(e){const{m:t,mx:r,my:s,mt:i,mb:l,ml:u,mr:d,me:p,ms:f,p:m,px:g,py:w,pt:S,pb:x,pl:b,pr:E,pe:R,ps:k,bd:P,bg:T,c:j,opacity:O,ff:L,fz:M,fw:Q,lts:q,ta:te,lh:ee,fs:ne,tt:G,td:Z,w:B,miw:U,maw:A,h:V,mih:W,mah:N,bgsz:F,bgp:le,bgr:ye,bga:X,pos:re,top:ve,left:fe,bottom:we,right:je,inset:Ue,display:Ze,flex:et,hiddenFrom:ft,visibleFrom:He,lightHidden:Rt,darkHidden:ue,sx:pe,...Ce}=e;return{styleProps:al({m:t,mx:r,my:s,mt:i,mb:l,ml:u,mr:d,me:p,ms:f,p:m,px:g,py:w,pt:S,pb:x,pl:b,pr:E,pe:R,ps:k,bd:P,bg:T,c:j,opacity:O,ff:L,fz:M,fw:Q,lts:q,ta:te,lh:ee,fs:ne,tt:G,td:Z,w:B,miw:U,maw:A,h:V,mih:W,mah:N,bgsz:F,bgp:le,bgr:ye,bga:X,pos:re,top:ve,left:fe,bottom:we,right:je,inset:Ue,display:Ze,flex:et,hiddenFrom:ft,visibleFrom:He,lightHidden:Rt,darkHidden:ue,sx:pe}),rest:Ce}}const TR={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function ph(e,t){const r=cl({color:e,theme:t});return r.color==="dimmed"?"var(--mantine-color-dimmed)":r.color==="bright"?"var(--mantine-color-bright)":r.variable?`var(${r.variable})`:r.color}function NR(e,t){const r=cl({color:e,theme:t});return r.isThemeColor&&r.shade===void 0?`var(--mantine-color-${r.color}-text)`:ph(e,t)}function jR(e,t){if(typeof e=="number")return se(e);if(typeof e=="string"){const[r,s,...i]=e.split(" ").filter(u=>u.trim()!=="");let l=`${se(r)}`;return s&&(l+=` ${s}`),i.length>0&&(l+=` ${ph(i.join(" "),t)}`),l.trim()}return e}const Dy={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function OR(e){return typeof e=="string"&&e in Dy?Dy[e]:e}const AR=["h1","h2","h3","h4","h5","h6"];function DR(e,t){return typeof e=="string"&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&AR.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?se(e):e}function IR(e){return e}const MR=["h1","h2","h3","h4","h5","h6"];function $R(e,t){return typeof e=="string"&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&MR.includes(e)?`var(--mantine-${e}-line-height)`:e}function LR(e){return typeof e=="number"?se(e):e}function FR(e,t){if(typeof e=="number")return se(e);if(typeof e=="string"){const r=e.replace("-","");if(!(r in t.spacing))return se(e);const s=`--mantine-spacing-${r}`;return e.startsWith("-")?`calc(var(${s}) * -1)`:`var(${s})`}return e}const Qf={color:ph,textColor:NR,fontSize:DR,spacing:FR,identity:IR,size:LR,lineHeight:$R,fontFamily:OR,border:jR};function Iy(e){return e.replace("(min-width: ","").replace("em)","")}function zR({media:e,...t}){const s=Object.keys(e).sort((i,l)=>Number(Iy(i))-Number(Iy(l))).map(i=>({query:i,styles:e[i]}));return{...t,media:s}}function VR(e){if(typeof e!="object"||e===null)return!1;const t=Object.keys(e);return!(t.length===1&&t[0]==="base")}function BR(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function UR(e){return typeof e=="object"&&e!==null?Yt(e).filter(t=>t!=="base"):[]}function HR(e,t){return typeof e=="object"&&e!==null&&t in e?e[t]:e}function WR({styleProps:e,data:t,theme:r}){return zR(Yt(e).reduce((s,i)=>{if(i==="hiddenFrom"||i==="visibleFrom"||i==="sx")return s;const l=t[i],u=Array.isArray(l.property)?l.property:[l.property],d=BR(e[i]);if(!VR(e[i]))return u.forEach(f=>{s.inlineStyles[f]=Qf[l.type](d,r)}),s;s.hasResponsiveStyles=!0;const p=UR(e[i]);return u.forEach(f=>{d&&(s.styles[f]=Qf[l.type](d,r)),p.forEach(m=>{const g=`(min-width: ${r.breakpoints[m]})`;s.media[g]={...s.media[g],[f]:Qf[l.type](HR(e[i],m),r)}})}),s},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function hh(){return`__m__-${C.useId().replace(/:/g,"")}`}function mh(e,t){return Array.isArray(e)?[...e].reduce((r,s)=>({...r,...mh(s,t)}),{}):typeof e=="function"?e(t):e??{}}function Qb(e){return e.startsWith("data-")?e:`data-${e}`}function QR(e){return Object.keys(e).reduce((t,r)=>{const s=e[r];return s===void 0||s===""||s===!1||s===null||(t[Qb(r)]=e[r]),t},{})}function qb(e){return e?typeof e=="string"?{[Qb(e)]:!0}:Array.isArray(e)?[...e].reduce((t,r)=>({...t,...qb(r)}),{}):QR(e):null}function vp(e,t){return Array.isArray(e)?[...e].reduce((r,s)=>({...r,...vp(s,t)}),{}):typeof e=="function"?e(t):e??{}}function qR({theme:e,style:t,vars:r,styleProps:s}){const i=vp(t,e),l=vp(r,e);return{...i,...l,...s}}const Kb=C.forwardRef(({component:e,style:t,__vars:r,className:s,variant:i,mod:l,size:u,hiddenFrom:d,visibleFrom:p,lightHidden:f,darkHidden:m,renderRoot:g,__size:w,...S},x)=>{var M;const b=rn(),E=e||"div",{styleProps:R,rest:k}=fl(S),P=UE(),T=(M=P==null?void 0:P())==null?void 0:M(R.sx),j=hh(),O=WR({styleProps:R,theme:b,data:TR}),L={ref:x,style:qR({theme:b,style:t,vars:r,styleProps:O.inlineStyles}),className:En(s,T,{[j]:O.hasResponsiveStyles,"mantine-light-hidden":f,"mantine-dark-hidden":m,[`mantine-hidden-from-${d}`]:d,[`mantine-visible-from-${p}`]:p}),"data-variant":i,"data-size":kb(u)?void 0:u||void 0,size:w,...qb(l),...k};return y.jsxs(y.Fragment,{children:[O.hasResponsiveStyles&&y.jsx(fh,{selector:`.${j}`,styles:O.styles,media:O.media}),typeof g=="function"?g(L):y.jsx(E,{...L})]})});Kb.displayName="@mantine/core/Box";const he=Kb;function Gb(e){return e}function Re(e){const t=C.forwardRef(e);return t.extend=Gb,t.withProps=r=>{const s=C.forwardRef((i,l)=>y.jsx(t,{...r,...i,ref:l}));return s.extend=t.extend,s.displayName=`WithProps(${t.displayName})`,s},t}function Rn(e){const t=C.forwardRef(e);return t.withProps=r=>{const s=C.forwardRef((i,l)=>y.jsx(t,{...r,...i,ref:l}));return s.extend=t.extend,s.displayName=`WithProps(${t.displayName})`,s},t.extend=Gb,t}const KR=C.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function js(){return C.useContext(KR)}var Cc=bb();const Va=vc(Cc);function GR(e){if(!e||typeof e=="string")return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function qf(e){return e!=null&&e.current?e.current.scrollHeight:"auto"}const Ma=typeof window<"u"&&window.requestAnimationFrame;function XR({transitionDuration:e,transitionTimingFunction:t="ease",onTransitionEnd:r=()=>{},opened:s}){const i=C.useRef(null),l=0,u={height:0,overflow:"hidden"},[d,p]=C.useState(s?{}:u),f=x=>{Cc.flushSync(()=>p(x))},m=x=>{f(b=>({...b,...x}))};function g(x){const b=e||GR(x);return{transition:`height ${b}ms ${t}, opacity ${b}ms ${t}`}}Kr(()=>{typeof Ma=="function"&&Ma(s?()=>{m({willChange:"height",display:"block",overflow:"hidden"}),Ma(()=>{const x=qf(i);m({...g(x),height:x})})}:()=>{const x=qf(i);m({...g(x),willChange:"height",height:x}),Ma(()=>m({height:l,overflow:"hidden"}))})},[s]);const w=x=>{if(!(x.target!==i.current||x.propertyName!=="height"))if(s){const b=qf(i);b===d.height?f({}):m({height:b}),r()}else d.height===l&&(f(u),r())};function S({style:x={},refKey:b="ref",...E}={}){const R=E[b],k={"aria-hidden":!s,...E,[b]:$b(i,R),onTransitionEnd:w,style:{boxSizing:"border-box",...x,...d}};return St.version.startsWith("18")?s||(k.inert=""):k.inert=!s,k}return S}const YR={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},Ka=Re((e,t)=>{const{children:r,in:s,transitionDuration:i,transitionTimingFunction:l,style:u,onTransitionEnd:d,animateOpacity:p,...f}=me("Collapse",YR,e),m=rn(),g=ah(),S=(m.respectReducedMotion?g:!1)?0:i,x=XR({opened:s,transitionDuration:S,transitionTimingFunction:l,onTransitionEnd:d});return S===0?s?y.jsx(he,{...f,children:r}):null:y.jsx(he,{...x({style:{opacity:s||!p?1:0,transition:p?`opacity ${S}ms ${l}`:"none",...mh(u,m)},ref:t,...f}),children:r})});Ka.displayName="@mantine/core/Collapse";function Ec(){return typeof window<"u"}function Li(e){return Xb(e)?(e.nodeName||"").toLowerCase():"#document"}function pn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Sr(e){var t;return(t=(Xb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xb(e){return Ec()?e instanceof Node||e instanceof pn(e).Node:!1}function dt(e){return Ec()?e instanceof Element||e instanceof pn(e).Element:!1}function Cn(e){return Ec()?e instanceof HTMLElement||e instanceof pn(e).HTMLElement:!1}function yp(e){return!Ec()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof pn(e).ShadowRoot}const JR=new Set(["inline","contents"]);function pl(e){const{overflow:t,overflowX:r,overflowY:s,display:i}=Ln(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+r)&&!JR.has(i)}const ZR=new Set(["table","td","th"]);function e_(e){return ZR.has(Li(e))}const t_=[":popover-open",":modal"];function Rc(e){return t_.some(t=>{try{return e.matches(t)}catch{return!1}})}const n_=["transform","translate","scale","rotate","perspective"],r_=["transform","translate","scale","rotate","perspective","filter"],o_=["paint","layout","strict","content"];function gh(e){const t=_c(),r=dt(e)?Ln(e):e;return n_.some(s=>r[s]?r[s]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||r_.some(s=>(r.willChange||"").includes(s))||o_.some(s=>(r.contain||"").includes(s))}function s_(e){let t=Gr(e);for(;Cn(t)&&!Lo(t);){if(gh(t))return t;if(Rc(t))return null;t=Gr(t)}return null}function _c(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const i_=new Set(["html","body","#document"]);function Lo(e){return i_.has(Li(e))}function Ln(e){return pn(e).getComputedStyle(e)}function Pc(e){return dt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gr(e){if(Li(e)==="html")return e;const t=e.assignedSlot||e.parentNode||yp(e)&&e.host||Sr(e);return yp(t)?t.host:t}function Yb(e){const t=Gr(e);return Lo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Cn(t)&&pl(t)?t:Yb(t)}function Qr(e,t,r){var s;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=Yb(e),l=i===((s=e.ownerDocument)==null?void 0:s.body),u=pn(i);if(l){const d=bp(u);return t.concat(u,u.visualViewport||[],pl(i)?i:[],d&&r?Qr(d):[])}return t.concat(i,Qr(i,[],r))}function bp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function My(e){let t=e.activeElement;for(;((r=t)==null||(r=r.shadowRoot)==null?void 0:r.activeElement)!=null;){var r;t=t.shadowRoot.activeElement}return t}function Ga(e,t){if(!e||!t)return!1;const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&yp(r)){let s=t;for(;s;){if(e===s)return!0;s=s.parentNode||s.host}}return!1}function Jb(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Zb(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:s}=t;return r+"/"+s}).join(" "):navigator.userAgent}function a_(e){return c_()?!1:!$y()&&e.width===0&&e.height===0||$y()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function l_(){return/apple/i.test(navigator.vendor)}function $y(){const e=/android/i;return e.test(Jb())||e.test(Zb())}function u_(){return Jb().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function c_(){return Zb().includes("jsdom/")}function wp(e,t){const r=["mouse","pen"];return r.push("",void 0),r.includes(e)}function d_(e){return"nativeEvent"in e}function f_(e){return e.matches("html,body")}function ls(e){return(e==null?void 0:e.ownerDocument)||document}function Kf(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}function pi(e){return"composedPath"in e?e.composedPath()[0]:e.target}const p_="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function h_(e){return Cn(e)&&e.matches(p_)}const tr=Math.min,Gt=Math.max,sc=Math.round,zu=Math.floor,br=e=>({x:e,y:e}),m_={left:"right",right:"left",bottom:"top",top:"bottom"},g_={start:"end",end:"start"};function Sp(e,t,r){return Gt(e,tr(t,r))}function Xr(e,t){return typeof e=="function"?e(t):e}function nr(e){return e.split("-")[0]}function Fi(e){return e.split("-")[1]}function vh(e){return e==="x"?"y":"x"}function yh(e){return e==="y"?"height":"width"}const v_=new Set(["top","bottom"]);function Jn(e){return v_.has(nr(e))?"y":"x"}function bh(e){return vh(Jn(e))}function y_(e,t,r){r===void 0&&(r=!1);const s=Fi(e),i=bh(e),l=yh(i);let u=i==="x"?s===(r?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=ic(u)),[u,ic(u)]}function b_(e){const t=ic(e);return[xp(e),t,xp(t)]}function xp(e){return e.replace(/start|end/g,t=>g_[t])}const Ly=["left","right"],Fy=["right","left"],w_=["top","bottom"],S_=["bottom","top"];function x_(e,t,r){switch(e){case"top":case"bottom":return r?t?Fy:Ly:t?Ly:Fy;case"left":case"right":return t?w_:S_;default:return[]}}function C_(e,t,r,s){const i=Fi(e);let l=x_(nr(e),r==="start",s);return i&&(l=l.map(u=>u+"-"+i),t&&(l=l.concat(l.map(xp)))),l}function ic(e){return e.replace(/left|right|bottom|top/g,t=>m_[t])}function E_(e){return{top:0,right:0,bottom:0,left:0,...e}}function wh(e){return typeof e!="number"?E_(e):{top:e,right:e,bottom:e,left:e}}function Oi(e){const{x:t,y:r,width:s,height:i}=e;return{width:s,height:i,top:r,left:t,right:t+s,bottom:r+i,x:t,y:r}}function zy(e,t,r){let{reference:s,floating:i}=e;const l=Jn(t),u=bh(t),d=yh(u),p=nr(t),f=l==="y",m=s.x+s.width/2-i.width/2,g=s.y+s.height/2-i.height/2,w=s[d]/2-i[d]/2;let S;switch(p){case"top":S={x:m,y:s.y-i.height};break;case"bottom":S={x:m,y:s.y+s.height};break;case"right":S={x:s.x+s.width,y:g};break;case"left":S={x:s.x-i.width,y:g};break;default:S={x:s.x,y:s.y}}switch(Fi(t)){case"start":S[u]-=w*(r&&f?-1:1);break;case"end":S[u]+=w*(r&&f?-1:1);break}return S}const R_=async(e,t,r)=>{const{placement:s="bottom",strategy:i="absolute",middleware:l=[],platform:u}=r,d=l.filter(Boolean),p=await(u.isRTL==null?void 0:u.isRTL(t));let f=await u.getElementRects({reference:e,floating:t,strategy:i}),{x:m,y:g}=zy(f,s,p),w=s,S={},x=0;for(let b=0;b<d.length;b++){const{name:E,fn:R}=d[b],{x:k,y:P,data:T,reset:j}=await R({x:m,y:g,initialPlacement:s,placement:w,strategy:i,middlewareData:S,rects:f,platform:u,elements:{reference:e,floating:t}});m=k??m,g=P??g,S={...S,[E]:{...S[E],...T}},j&&x<=50&&(x++,typeof j=="object"&&(j.placement&&(w=j.placement),j.rects&&(f=j.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:i}):j.rects),{x:m,y:g}=zy(f,w,p)),b=-1)}return{x:m,y:g,placement:w,strategy:i,middlewareData:S}};async function Sh(e,t){var r;t===void 0&&(t={});const{x:s,y:i,platform:l,rects:u,elements:d,strategy:p}=e,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:w=!1,padding:S=0}=Xr(t,e),x=wh(S),E=d[w?g==="floating"?"reference":"floating":g],R=Oi(await l.getClippingRect({element:(r=await(l.isElement==null?void 0:l.isElement(E)))==null||r?E:E.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(d.floating)),boundary:f,rootBoundary:m,strategy:p})),k=g==="floating"?{x:s,y:i,width:u.floating.width,height:u.floating.height}:u.reference,P=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d.floating)),T=await(l.isElement==null?void 0:l.isElement(P))?await(l.getScale==null?void 0:l.getScale(P))||{x:1,y:1}:{x:1,y:1},j=Oi(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:k,offsetParent:P,strategy:p}):k);return{top:(R.top-j.top+x.top)/T.y,bottom:(j.bottom-R.bottom+x.bottom)/T.y,left:(R.left-j.left+x.left)/T.x,right:(j.right-R.right+x.right)/T.x}}const __=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:s,placement:i,rects:l,platform:u,elements:d,middlewareData:p}=t,{element:f,padding:m=0}=Xr(e,t)||{};if(f==null)return{};const g=wh(m),w={x:r,y:s},S=bh(i),x=yh(S),b=await u.getDimensions(f),E=S==="y",R=E?"top":"left",k=E?"bottom":"right",P=E?"clientHeight":"clientWidth",T=l.reference[x]+l.reference[S]-w[S]-l.floating[x],j=w[S]-l.reference[S],O=await(u.getOffsetParent==null?void 0:u.getOffsetParent(f));let L=O?O[P]:0;(!L||!await(u.isElement==null?void 0:u.isElement(O)))&&(L=d.floating[P]||l.floating[x]);const M=T/2-j/2,Q=L/2-b[x]/2-1,q=tr(g[R],Q),te=tr(g[k],Q),ee=q,ne=L-b[x]-te,G=L/2-b[x]/2+M,Z=Sp(ee,G,ne),B=!p.arrow&&Fi(i)!=null&&G!==Z&&l.reference[x]/2-(G<ee?q:te)-b[x]/2<0,U=B?G<ee?G-ee:G-ne:0;return{[S]:w[S]+U,data:{[S]:Z,centerOffset:G-Z-U,...B&&{alignmentOffset:U}},reset:B}}}),P_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,s;const{placement:i,middlewareData:l,rects:u,initialPlacement:d,platform:p,elements:f}=t,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:w,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:b=!0,...E}=Xr(e,t);if((r=l.arrow)!=null&&r.alignmentOffset)return{};const R=nr(i),k=Jn(d),P=nr(d)===d,T=await(p.isRTL==null?void 0:p.isRTL(f.floating)),j=w||(P||!b?[ic(d)]:b_(d)),O=x!=="none";!w&&O&&j.push(...C_(d,b,x,T));const L=[d,...j],M=await Sh(t,E),Q=[];let q=((s=l.flip)==null?void 0:s.overflows)||[];if(m&&Q.push(M[R]),g){const G=y_(i,u,T);Q.push(M[G[0]],M[G[1]])}if(q=[...q,{placement:i,overflows:Q}],!Q.every(G=>G<=0)){var te,ee;const G=(((te=l.flip)==null?void 0:te.index)||0)+1,Z=L[G];if(Z&&(!(g==="alignment"?k!==Jn(Z):!1)||q.every(A=>Jn(A.placement)===k?A.overflows[0]>0:!0)))return{data:{index:G,overflows:q},reset:{placement:Z}};let B=(ee=q.filter(U=>U.overflows[0]<=0).sort((U,A)=>U.overflows[1]-A.overflows[1])[0])==null?void 0:ee.placement;if(!B)switch(S){case"bestFit":{var ne;const U=(ne=q.filter(A=>{if(O){const V=Jn(A.placement);return V===k||V==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(V=>V>0).reduce((V,W)=>V+W,0)]).sort((A,V)=>A[1]-V[1])[0])==null?void 0:ne[0];U&&(B=U);break}case"initialPlacement":B=d;break}if(i!==B)return{reset:{placement:B}}}return{}}}};function ew(e){const t=tr(...e.map(l=>l.left)),r=tr(...e.map(l=>l.top)),s=Gt(...e.map(l=>l.right)),i=Gt(...e.map(l=>l.bottom));return{x:t,y:r,width:s-t,height:i-r}}function k_(e){const t=e.slice().sort((i,l)=>i.y-l.y),r=[];let s=null;for(let i=0;i<t.length;i++){const l=t[i];!s||l.y-s.y>s.height/2?r.push([l]):r[r.length-1].push(l),s=l}return r.map(i=>Oi(ew(i)))}const T_=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:r,elements:s,rects:i,platform:l,strategy:u}=t,{padding:d=2,x:p,y:f}=Xr(e,t),m=Array.from(await(l.getClientRects==null?void 0:l.getClientRects(s.reference))||[]),g=k_(m),w=Oi(ew(m)),S=wh(d);function x(){if(g.length===2&&g[0].left>g[1].right&&p!=null&&f!=null)return g.find(E=>p>E.left-S.left&&p<E.right+S.right&&f>E.top-S.top&&f<E.bottom+S.bottom)||w;if(g.length>=2){if(Jn(r)==="y"){const q=g[0],te=g[g.length-1],ee=nr(r)==="top",ne=q.top,G=te.bottom,Z=ee?q.left:te.left,B=ee?q.right:te.right,U=B-Z,A=G-ne;return{top:ne,bottom:G,left:Z,right:B,width:U,height:A,x:Z,y:ne}}const E=nr(r)==="left",R=Gt(...g.map(q=>q.right)),k=tr(...g.map(q=>q.left)),P=g.filter(q=>E?q.left===k:q.right===R),T=P[0].top,j=P[P.length-1].bottom,O=k,L=R,M=L-O,Q=j-T;return{top:T,bottom:j,left:O,right:L,width:M,height:Q,x:O,y:T}}return w}const b=await l.getElementRects({reference:{getBoundingClientRect:x},floating:s.floating,strategy:u});return i.reference.x!==b.reference.x||i.reference.y!==b.reference.y||i.reference.width!==b.reference.width||i.reference.height!==b.reference.height?{reset:{rects:b}}:{}}}},tw=new Set(["left","top"]);async function N_(e,t){const{placement:r,platform:s,elements:i}=e,l=await(s.isRTL==null?void 0:s.isRTL(i.floating)),u=nr(r),d=Fi(r),p=Jn(r)==="y",f=tw.has(u)?-1:1,m=l&&p?-1:1,g=Xr(t,e);let{mainAxis:w,crossAxis:S,alignmentAxis:x}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return d&&typeof x=="number"&&(S=d==="end"?x*-1:x),p?{x:S*m,y:w*f}:{x:w*f,y:S*m}}const j_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,s;const{x:i,y:l,placement:u,middlewareData:d}=t,p=await N_(t,e);return u===((r=d.offset)==null?void 0:r.placement)&&(s=d.arrow)!=null&&s.alignmentOffset?{}:{x:i+p.x,y:l+p.y,data:{...p,placement:u}}}}},O_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:s,placement:i}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:d={fn:E=>{let{x:R,y:k}=E;return{x:R,y:k}}},...p}=Xr(e,t),f={x:r,y:s},m=await Sh(t,p),g=Jn(nr(i)),w=vh(g);let S=f[w],x=f[g];if(l){const E=w==="y"?"top":"left",R=w==="y"?"bottom":"right",k=S+m[E],P=S-m[R];S=Sp(k,S,P)}if(u){const E=g==="y"?"top":"left",R=g==="y"?"bottom":"right",k=x+m[E],P=x-m[R];x=Sp(k,x,P)}const b=d.fn({...t,[w]:S,[g]:x});return{...b,data:{x:b.x-r,y:b.y-s,enabled:{[w]:l,[g]:u}}}}}},A_=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:s,placement:i,rects:l,middlewareData:u}=t,{offset:d=0,mainAxis:p=!0,crossAxis:f=!0}=Xr(e,t),m={x:r,y:s},g=Jn(i),w=vh(g);let S=m[w],x=m[g];const b=Xr(d,t),E=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(p){const P=w==="y"?"height":"width",T=l.reference[w]-l.floating[P]+E.mainAxis,j=l.reference[w]+l.reference[P]-E.mainAxis;S<T?S=T:S>j&&(S=j)}if(f){var R,k;const P=w==="y"?"width":"height",T=tw.has(nr(i)),j=l.reference[g]-l.floating[P]+(T&&((R=u.offset)==null?void 0:R[g])||0)+(T?0:E.crossAxis),O=l.reference[g]+l.reference[P]+(T?0:((k=u.offset)==null?void 0:k[g])||0)-(T?E.crossAxis:0);x<j?x=j:x>O&&(x=O)}return{[w]:S,[g]:x}}}},D_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,s;const{placement:i,rects:l,platform:u,elements:d}=t,{apply:p=()=>{},...f}=Xr(e,t),m=await Sh(t,f),g=nr(i),w=Fi(i),S=Jn(i)==="y",{width:x,height:b}=l.floating;let E,R;g==="top"||g==="bottom"?(E=g,R=w===(await(u.isRTL==null?void 0:u.isRTL(d.floating))?"start":"end")?"left":"right"):(R=g,E=w==="end"?"top":"bottom");const k=b-m.top-m.bottom,P=x-m.left-m.right,T=tr(b-m[E],k),j=tr(x-m[R],P),O=!t.middlewareData.shift;let L=T,M=j;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(M=P),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(L=k),O&&!w){const q=Gt(m.left,0),te=Gt(m.right,0),ee=Gt(m.top,0),ne=Gt(m.bottom,0);S?M=x-2*(q!==0||te!==0?q+te:Gt(m.left,m.right)):L=b-2*(ee!==0||ne!==0?ee+ne:Gt(m.top,m.bottom))}await p({...t,availableWidth:M,availableHeight:L});const Q=await u.getDimensions(d.floating);return x!==Q.width||b!==Q.height?{reset:{rects:!0}}:{}}}};function nw(e){const t=Ln(e);let r=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const i=Cn(e),l=i?e.offsetWidth:r,u=i?e.offsetHeight:s,d=sc(r)!==l||sc(s)!==u;return d&&(r=l,s=u),{width:r,height:s,$:d}}function xh(e){return dt(e)?e:e.contextElement}function vi(e){const t=xh(e);if(!Cn(t))return br(1);const r=t.getBoundingClientRect(),{width:s,height:i,$:l}=nw(t);let u=(l?sc(r.width):r.width)/s,d=(l?sc(r.height):r.height)/i;return(!u||!Number.isFinite(u))&&(u=1),(!d||!Number.isFinite(d))&&(d=1),{x:u,y:d}}const I_=br(0);function rw(e){const t=pn(e);return!_c()||!t.visualViewport?I_:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function M_(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==pn(e)?!1:t}function _s(e,t,r,s){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),l=xh(e);let u=br(1);t&&(s?dt(s)&&(u=vi(s)):u=vi(e));const d=M_(l,r,s)?rw(l):br(0);let p=(i.left+d.x)/u.x,f=(i.top+d.y)/u.y,m=i.width/u.x,g=i.height/u.y;if(l){const w=pn(l),S=s&&dt(s)?pn(s):s;let x=w,b=bp(x);for(;b&&s&&S!==x;){const E=vi(b),R=b.getBoundingClientRect(),k=Ln(b),P=R.left+(b.clientLeft+parseFloat(k.paddingLeft))*E.x,T=R.top+(b.clientTop+parseFloat(k.paddingTop))*E.y;p*=E.x,f*=E.y,m*=E.x,g*=E.y,p+=P,f+=T,x=pn(b),b=bp(x)}}return Oi({width:m,height:g,x:p,y:f})}function kc(e,t){const r=Pc(e).scrollLeft;return t?t.left+r:_s(Sr(e)).left+r}function ow(e,t){const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-kc(e,r),i=r.top+t.scrollTop;return{x:s,y:i}}function $_(e){let{elements:t,rect:r,offsetParent:s,strategy:i}=e;const l=i==="fixed",u=Sr(s),d=t?Rc(t.floating):!1;if(s===u||d&&l)return r;let p={scrollLeft:0,scrollTop:0},f=br(1);const m=br(0),g=Cn(s);if((g||!g&&!l)&&((Li(s)!=="body"||pl(u))&&(p=Pc(s)),Cn(s))){const S=_s(s);f=vi(s),m.x=S.x+s.clientLeft,m.y=S.y+s.clientTop}const w=u&&!g&&!l?ow(u,p):br(0);return{width:r.width*f.x,height:r.height*f.y,x:r.x*f.x-p.scrollLeft*f.x+m.x+w.x,y:r.y*f.y-p.scrollTop*f.y+m.y+w.y}}function L_(e){return Array.from(e.getClientRects())}function F_(e){const t=Sr(e),r=Pc(e),s=e.ownerDocument.body,i=Gt(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),l=Gt(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let u=-r.scrollLeft+kc(e);const d=-r.scrollTop;return Ln(s).direction==="rtl"&&(u+=Gt(t.clientWidth,s.clientWidth)-i),{width:i,height:l,x:u,y:d}}const Vy=25;function z_(e,t){const r=pn(e),s=Sr(e),i=r.visualViewport;let l=s.clientWidth,u=s.clientHeight,d=0,p=0;if(i){l=i.width,u=i.height;const m=_c();(!m||m&&t==="fixed")&&(d=i.offsetLeft,p=i.offsetTop)}const f=kc(s);if(f<=0){const m=s.ownerDocument,g=m.body,w=getComputedStyle(g),S=m.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,x=Math.abs(s.clientWidth-g.clientWidth-S);x<=Vy&&(l-=x)}else f<=Vy&&(l+=f);return{width:l,height:u,x:d,y:p}}const V_=new Set(["absolute","fixed"]);function B_(e,t){const r=_s(e,!0,t==="fixed"),s=r.top+e.clientTop,i=r.left+e.clientLeft,l=Cn(e)?vi(e):br(1),u=e.clientWidth*l.x,d=e.clientHeight*l.y,p=i*l.x,f=s*l.y;return{width:u,height:d,x:p,y:f}}function By(e,t,r){let s;if(t==="viewport")s=z_(e,r);else if(t==="document")s=F_(Sr(e));else if(dt(t))s=B_(t,r);else{const i=rw(e);s={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Oi(s)}function sw(e,t){const r=Gr(e);return r===t||!dt(r)||Lo(r)?!1:Ln(r).position==="fixed"||sw(r,t)}function U_(e,t){const r=t.get(e);if(r)return r;let s=Qr(e,[],!1).filter(d=>dt(d)&&Li(d)!=="body"),i=null;const l=Ln(e).position==="fixed";let u=l?Gr(e):e;for(;dt(u)&&!Lo(u);){const d=Ln(u),p=gh(u);!p&&d.position==="fixed"&&(i=null),(l?!p&&!i:!p&&d.position==="static"&&!!i&&V_.has(i.position)||pl(u)&&!p&&sw(e,u))?s=s.filter(m=>m!==u):i=d,u=Gr(u)}return t.set(e,s),s}function H_(e){let{element:t,boundary:r,rootBoundary:s,strategy:i}=e;const u=[...r==="clippingAncestors"?Rc(t)?[]:U_(t,this._c):[].concat(r),s],d=u[0],p=u.reduce((f,m)=>{const g=By(t,m,i);return f.top=Gt(g.top,f.top),f.right=tr(g.right,f.right),f.bottom=tr(g.bottom,f.bottom),f.left=Gt(g.left,f.left),f},By(t,d,i));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function W_(e){const{width:t,height:r}=nw(e);return{width:t,height:r}}function Q_(e,t,r){const s=Cn(t),i=Sr(t),l=r==="fixed",u=_s(e,!0,l,t);let d={scrollLeft:0,scrollTop:0};const p=br(0);function f(){p.x=kc(i)}if(s||!s&&!l)if((Li(t)!=="body"||pl(i))&&(d=Pc(t)),s){const S=_s(t,!0,l,t);p.x=S.x+t.clientLeft,p.y=S.y+t.clientTop}else i&&f();l&&!s&&i&&f();const m=i&&!s&&!l?ow(i,d):br(0),g=u.left+d.scrollLeft-p.x-m.x,w=u.top+d.scrollTop-p.y-m.y;return{x:g,y:w,width:u.width,height:u.height}}function Gf(e){return Ln(e).position==="static"}function Uy(e,t){if(!Cn(e)||Ln(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Sr(e)===r&&(r=r.ownerDocument.body),r}function iw(e,t){const r=pn(e);if(Rc(e))return r;if(!Cn(e)){let i=Gr(e);for(;i&&!Lo(i);){if(dt(i)&&!Gf(i))return i;i=Gr(i)}return r}let s=Uy(e,t);for(;s&&e_(s)&&Gf(s);)s=Uy(s,t);return s&&Lo(s)&&Gf(s)&&!gh(s)?r:s||s_(e)||r}const q_=async function(e){const t=this.getOffsetParent||iw,r=this.getDimensions,s=await r(e.floating);return{reference:Q_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function K_(e){return Ln(e).direction==="rtl"}const G_={convertOffsetParentRelativeRectToViewportRelativeRect:$_,getDocumentElement:Sr,getClippingRect:H_,getOffsetParent:iw,getElementRects:q_,getClientRects:L_,getDimensions:W_,getScale:vi,isElement:dt,isRTL:K_};function aw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function X_(e,t){let r=null,s;const i=Sr(e);function l(){var d;clearTimeout(s),(d=r)==null||d.disconnect(),r=null}function u(d,p){d===void 0&&(d=!1),p===void 0&&(p=1),l();const f=e.getBoundingClientRect(),{left:m,top:g,width:w,height:S}=f;if(d||t(),!w||!S)return;const x=zu(g),b=zu(i.clientWidth-(m+w)),E=zu(i.clientHeight-(g+S)),R=zu(m),P={rootMargin:-x+"px "+-b+"px "+-E+"px "+-R+"px",threshold:Gt(0,tr(1,p))||1};let T=!0;function j(O){const L=O[0].intersectionRatio;if(L!==p){if(!T)return u();L?u(!1,L):s=setTimeout(()=>{u(!1,1e-7)},1e3)}L===1&&!aw(f,e.getBoundingClientRect())&&u(),T=!1}try{r=new IntersectionObserver(j,{...P,root:i.ownerDocument})}catch{r=new IntersectionObserver(j,P)}r.observe(e)}return u(!0),l}function Y_(e,t,r,s){s===void 0&&(s={});const{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:p=!1}=s,f=xh(e),m=i||l?[...f?Qr(f):[],...Qr(t)]:[];m.forEach(R=>{i&&R.addEventListener("scroll",r,{passive:!0}),l&&R.addEventListener("resize",r)});const g=f&&d?X_(f,r):null;let w=-1,S=null;u&&(S=new ResizeObserver(R=>{let[k]=R;k&&k.target===f&&S&&(S.unobserve(t),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var P;(P=S)==null||P.observe(t)})),r()}),f&&!p&&S.observe(f),S.observe(t));let x,b=p?_s(e):null;p&&E();function E(){const R=_s(e);b&&!aw(b,R)&&r(),b=R,x=requestAnimationFrame(E)}return r(),()=>{var R;m.forEach(k=>{i&&k.removeEventListener("scroll",r),l&&k.removeEventListener("resize",r)}),g==null||g(),(R=S)==null||R.disconnect(),S=null,p&&cancelAnimationFrame(x)}}const J_=j_,Z_=O_,eP=P_,tP=D_,Hy=__,nP=T_,rP=A_,oP=(e,t,r)=>{const s=new Map,i={platform:G_,...r},l={...i.platform,_c:s};return R_(e,t,{...i,platform:l})};var sP=typeof document<"u",iP=function(){},Gu=sP?C.useLayoutEffect:iP;function ac(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 r,s,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(s=r;s--!==0;)if(!ac(e[s],t[s]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(s=r;s--!==0;)if(!{}.hasOwnProperty.call(t,i[s]))return!1;for(s=r;s--!==0;){const l=i[s];if(!(l==="_owner"&&e.$$typeof)&&!ac(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function lw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Wy(e,t){const r=lw(e);return Math.round(t*r)/r}function Xf(e){const t=C.useRef(e);return Gu(()=>{t.current=e}),t}function aP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:s=[],platform:i,elements:{reference:l,floating:u}={},transform:d=!0,whileElementsMounted:p,open:f}=e,[m,g]=C.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[w,S]=C.useState(s);ac(w,s)||S(s);const[x,b]=C.useState(null),[E,R]=C.useState(null),k=C.useCallback(A=>{A!==O.current&&(O.current=A,b(A))},[]),P=C.useCallback(A=>{A!==L.current&&(L.current=A,R(A))},[]),T=l||x,j=u||E,O=C.useRef(null),L=C.useRef(null),M=C.useRef(m),Q=p!=null,q=Xf(p),te=Xf(i),ee=Xf(f),ne=C.useCallback(()=>{if(!O.current||!L.current)return;const A={placement:t,strategy:r,middleware:w};te.current&&(A.platform=te.current),oP(O.current,L.current,A).then(V=>{const W={...V,isPositioned:ee.current!==!1};G.current&&!ac(M.current,W)&&(M.current=W,Cc.flushSync(()=>{g(W)}))})},[w,t,r,te,ee]);Gu(()=>{f===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,g(A=>({...A,isPositioned:!1})))},[f]);const G=C.useRef(!1);Gu(()=>(G.current=!0,()=>{G.current=!1}),[]),Gu(()=>{if(T&&(O.current=T),j&&(L.current=j),T&&j){if(q.current)return q.current(T,j,ne);ne()}},[T,j,ne,q,Q]);const Z=C.useMemo(()=>({reference:O,floating:L,setReference:k,setFloating:P}),[k,P]),B=C.useMemo(()=>({reference:T,floating:j}),[T,j]),U=C.useMemo(()=>{const A={position:r,left:0,top:0};if(!B.floating)return A;const V=Wy(B.floating,m.x),W=Wy(B.floating,m.y);return d?{...A,transform:"translate("+V+"px, "+W+"px)",...lw(B.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:V,top:W}},[r,d,B.floating,m.x,m.y]);return C.useMemo(()=>({...m,update:ne,refs:Z,elements:B,floatingStyles:U}),[m,ne,Z,B,U])}const lP=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:s,padding:i}=typeof e=="function"?e(r):e;return s&&t(s)?s.current!=null?Hy({element:s.current,padding:i}).fn(r):{}:s?Hy({element:s,padding:i}).fn(r):{}}}},uw=(e,t)=>({...J_(e),options:[e,t]}),Ch=(e,t)=>({...Z_(e),options:[e,t]}),Qy=(e,t)=>({...rP(e),options:[e,t]}),lc=(e,t)=>({...eP(e),options:[e,t]}),uP=(e,t)=>({...tP(e),options:[e,t]}),Ha=(e,t)=>({...nP(e),options:[e,t]}),cw=(e,t)=>({...lP(e),options:[e,t]});function cP(e){return C.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})},e)}const dw={...CC},dP=dw.useInsertionEffect,fP=dP||(e=>e());function Br(e){const t=C.useRef(()=>{});return fP(()=>{t.current=e}),C.useCallback(function(){for(var r=arguments.length,s=new Array(r),i=0;i<r;i++)s[i]=arguments[i];return t.current==null?void 0:t.current(...s)},[])}var wr=typeof document<"u"?C.useLayoutEffect:C.useEffect;let qy=!1,pP=0;const Ky=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+pP++;function hP(){const[e,t]=C.useState(()=>qy?Ky():void 0);return wr(()=>{e==null&&t(Ky())},[]),C.useEffect(()=>{qy=!0},[]),e}const mP=dw.useId,fw=mP||hP;function gP(){const e=new Map;return{emit(t,r){var s;(s=e.get(t))==null||s.forEach(i=>i(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var s;e.set(t,((s=e.get(t))==null?void 0:s.filter(i=>i!==r))||[])}}}const vP=C.createContext(null),yP=C.createContext(null),Eh=()=>{var e;return((e=C.useContext(vP))==null?void 0:e.id)||null},Rh=()=>C.useContext(yP);function _h(e){return"data-floating-ui-"+e}function Yf(e){const t=C.useRef(e);return wr(()=>{t.current=e}),t}const Gy=_h("safe-polygon");function Xu(e,t,r){return r&&!wp(r)?0:typeof e=="number"?e:e==null?void 0:e[t]}function bP(e,t){t===void 0&&(t={});const{open:r,onOpenChange:s,dataRef:i,events:l,elements:u}=e,{enabled:d=!0,delay:p=0,handleClose:f=null,mouseOnly:m=!1,restMs:g=0,move:w=!0}=t,S=Rh(),x=Eh(),b=Yf(f),E=Yf(p),R=Yf(r),k=C.useRef(),P=C.useRef(-1),T=C.useRef(),j=C.useRef(-1),O=C.useRef(!0),L=C.useRef(!1),M=C.useRef(()=>{}),Q=C.useRef(!1),q=C.useCallback(()=>{var U;const A=(U=i.current.openEvent)==null?void 0:U.type;return(A==null?void 0:A.includes("mouse"))&&A!=="mousedown"},[i]);C.useEffect(()=>{if(!d)return;function U(A){let{open:V}=A;V||(clearTimeout(P.current),clearTimeout(j.current),O.current=!0,Q.current=!1)}return l.on("openchange",U),()=>{l.off("openchange",U)}},[d,l]),C.useEffect(()=>{if(!d||!b.current||!r)return;function U(V){q()&&s(!1,V,"hover")}const A=ls(u.floating).documentElement;return A.addEventListener("mouseleave",U),()=>{A.removeEventListener("mouseleave",U)}},[u.floating,r,s,d,b,q]);const te=C.useCallback(function(U,A,V){A===void 0&&(A=!0),V===void 0&&(V="hover");const W=Xu(E.current,"close",k.current);W&&!T.current?(clearTimeout(P.current),P.current=window.setTimeout(()=>s(!1,U,V),W)):A&&(clearTimeout(P.current),s(!1,U,V))},[E,s]),ee=Br(()=>{M.current(),T.current=void 0}),ne=Br(()=>{if(L.current){const U=ls(u.floating).body;U.style.pointerEvents="",U.removeAttribute(Gy),L.current=!1}}),G=Br(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);C.useEffect(()=>{if(!d)return;function U(N){if(clearTimeout(P.current),O.current=!1,m&&!wp(k.current)||g>0&&!Xu(E.current,"open"))return;const F=Xu(E.current,"open",k.current);F?P.current=window.setTimeout(()=>{R.current||s(!0,N,"hover")},F):r||s(!0,N,"hover")}function A(N){if(G())return;M.current();const F=ls(u.floating);if(clearTimeout(j.current),Q.current=!1,b.current&&i.current.floatingContext){r||clearTimeout(P.current),T.current=b.current({...i.current.floatingContext,tree:S,x:N.clientX,y:N.clientY,onClose(){ne(),ee(),G()||te(N,!0,"safe-polygon")}});const ye=T.current;F.addEventListener("mousemove",ye),M.current=()=>{F.removeEventListener("mousemove",ye)};return}(k.current==="touch"?!Ga(u.floating,N.relatedTarget):!0)&&te(N)}function V(N){G()||i.current.floatingContext&&(b.current==null||b.current({...i.current.floatingContext,tree:S,x:N.clientX,y:N.clientY,onClose(){ne(),ee(),G()||te(N)}})(N))}if(dt(u.domReference)){var W;const N=u.domReference;return r&&N.addEventListener("mouseleave",V),(W=u.floating)==null||W.addEventListener("mouseleave",V),w&&N.addEventListener("mousemove",U,{once:!0}),N.addEventListener("mouseenter",U),N.addEventListener("mouseleave",A),()=>{var F;r&&N.removeEventListener("mouseleave",V),(F=u.floating)==null||F.removeEventListener("mouseleave",V),w&&N.removeEventListener("mousemove",U),N.removeEventListener("mouseenter",U),N.removeEventListener("mouseleave",A)}}},[u,d,e,m,g,w,te,ee,ne,s,r,R,S,E,b,i,G]),wr(()=>{var U;if(d&&r&&(U=b.current)!=null&&U.__options.blockPointerEvents&&q()){L.current=!0;const V=u.floating;if(dt(u.domReference)&&V){var A;const W=ls(u.floating).body;W.setAttribute(Gy,"");const N=u.domReference,F=S==null||(A=S.nodesRef.current.find(le=>le.id===x))==null||(A=A.context)==null?void 0:A.elements.floating;return F&&(F.style.pointerEvents=""),W.style.pointerEvents="none",N.style.pointerEvents="auto",V.style.pointerEvents="auto",()=>{W.style.pointerEvents="",N.style.pointerEvents="",V.style.pointerEvents=""}}}},[d,r,x,u,S,b,q]),wr(()=>{r||(k.current=void 0,Q.current=!1,ee(),ne())},[r,ee,ne]),C.useEffect(()=>()=>{ee(),clearTimeout(P.current),clearTimeout(j.current),ne()},[d,u.domReference,ee,ne]);const Z=C.useMemo(()=>{function U(A){k.current=A.pointerType}return{onPointerDown:U,onPointerEnter:U,onMouseMove(A){const{nativeEvent:V}=A;function W(){!O.current&&!R.current&&s(!0,V,"hover")}m&&!wp(k.current)||r||g===0||Q.current&&A.movementX**2+A.movementY**2<2||(clearTimeout(j.current),k.current==="touch"?W():(Q.current=!0,j.current=window.setTimeout(W,g)))}}},[m,s,r,R,g]),B=C.useMemo(()=>({onMouseEnter(){clearTimeout(P.current)},onMouseLeave(U){G()||te(U.nativeEvent,!1)}}),[te,G]);return C.useMemo(()=>d?{reference:Z,floating:B}:{},[d,Z,B])}const Cp=()=>{},pw=C.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Cp,setState:Cp,isInstantPhase:!1}),wP=()=>C.useContext(pw);function SP(e){const{children:t,delay:r,timeoutMs:s=0}=e,[i,l]=C.useReducer((p,f)=>({...p,...f}),{delay:r,timeoutMs:s,initialDelay:r,currentId:null,isInstantPhase:!1}),u=C.useRef(null),d=C.useCallback(p=>{l({currentId:p})},[]);return wr(()=>{i.currentId?u.current===null?u.current=i.currentId:i.isInstantPhase||l({isInstantPhase:!0}):(i.isInstantPhase&&l({isInstantPhase:!1}),u.current=null)},[i.currentId,i.isInstantPhase]),C.createElement(pw.Provider,{value:C.useMemo(()=>({...i,setState:l,setCurrentId:d}),[i,d])},t)}function xP(e,t){t===void 0&&(t={});const{open:r,onOpenChange:s,floatingId:i}=e,{id:l,enabled:u=!0}=t,d=l??i,p=wP(),{currentId:f,setCurrentId:m,initialDelay:g,setState:w,timeoutMs:S}=p;return wr(()=>{u&&f&&(w({delay:{open:1,close:Xu(g,"close")}}),f!==d&&s(!1))},[u,d,s,w,f,g]),wr(()=>{function x(){s(!1),w({delay:g,currentId:null})}if(u&&f&&!r&&f===d){if(S){const b=window.setTimeout(x,S);return()=>{clearTimeout(b)}}x()}},[u,r,w,f,d,s,g,S]),wr(()=>{u&&(m===Cp||!r||m(d))},[u,r,m,d]),p}function Jf(e,t){let r=e.filter(i=>{var l;return i.parentId===t&&((l=i.context)==null?void 0:l.open)}),s=r;for(;s.length;)s=e.filter(i=>{var l;return(l=s)==null?void 0:l.some(u=>{var d;return i.parentId===u.id&&((d=i.context)==null?void 0:d.open)})}),r=r.concat(s);return r}const CP="data-floating-ui-focusable",EP={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},RP={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Xy=e=>{var t,r;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(r=e==null?void 0:e.outsidePress)!=null?r:!0}};function _P(e,t){t===void 0&&(t={});const{open:r,onOpenChange:s,elements:i,dataRef:l}=e,{enabled:u=!0,escapeKey:d=!0,outsidePress:p=!0,outsidePressEvent:f="pointerdown",referencePress:m=!1,referencePressEvent:g="pointerdown",ancestorScroll:w=!1,bubbles:S,capture:x}=t,b=Rh(),E=Br(typeof p=="function"?p:()=>!1),R=typeof p=="function"?E:p,k=C.useRef(!1),P=C.useRef(!1),{escapeKey:T,outsidePress:j}=Xy(S),{escapeKey:O,outsidePress:L}=Xy(x),M=C.useRef(!1),Q=Br(Z=>{var B;if(!r||!u||!d||Z.key!=="Escape"||M.current)return;const U=(B=l.current.floatingContext)==null?void 0:B.nodeId,A=b?Jf(b.nodesRef.current,U):[];if(!T&&(Z.stopPropagation(),A.length>0)){let V=!0;if(A.forEach(W=>{var N;if((N=W.context)!=null&&N.open&&!W.context.dataRef.current.__escapeKeyBubbles){V=!1;return}}),!V)return}s(!1,d_(Z)?Z.nativeEvent:Z,"escape-key")}),q=Br(Z=>{var B;const U=()=>{var A;Q(Z),(A=pi(Z))==null||A.removeEventListener("keydown",U)};(B=pi(Z))==null||B.addEventListener("keydown",U)}),te=Br(Z=>{var B;const U=k.current;k.current=!1;const A=P.current;if(P.current=!1,f==="click"&&A||U||typeof R=="function"&&!R(Z))return;const V=pi(Z),W="["+_h("inert")+"]",N=ls(i.floating).querySelectorAll(W);let F=dt(V)?V:null;for(;F&&!Lo(F);){const re=Gr(F);if(Lo(re)||!dt(re))break;F=re}if(N.length&&dt(V)&&!f_(V)&&!Ga(V,i.floating)&&Array.from(N).every(re=>!Ga(F,re)))return;if(Cn(V)&&G){const re=V.clientWidth>0&&V.scrollWidth>V.clientWidth,ve=V.clientHeight>0&&V.scrollHeight>V.clientHeight;let fe=ve&&Z.offsetX>V.clientWidth;if(ve&&Ln(V).direction==="rtl"&&(fe=Z.offsetX<=V.offsetWidth-V.clientWidth),fe||re&&Z.offsetY>V.clientHeight)return}const le=(B=l.current.floatingContext)==null?void 0:B.nodeId,ye=b&&Jf(b.nodesRef.current,le).some(re=>{var ve;return Kf(Z,(ve=re.context)==null?void 0:ve.elements.floating)});if(Kf(Z,i.floating)||Kf(Z,i.domReference)||ye)return;const X=b?Jf(b.nodesRef.current,le):[];if(X.length>0){let re=!0;if(X.forEach(ve=>{var fe;if((fe=ve.context)!=null&&fe.open&&!ve.context.dataRef.current.__outsidePressBubbles){re=!1;return}}),!re)return}s(!1,Z,"outside-press")}),ee=Br(Z=>{var B;const U=()=>{var A;te(Z),(A=pi(Z))==null||A.removeEventListener(f,U)};(B=pi(Z))==null||B.addEventListener(f,U)});C.useEffect(()=>{if(!r||!u)return;l.current.__escapeKeyBubbles=T,l.current.__outsidePressBubbles=j;let Z=-1;function B(N){s(!1,N,"ancestor-scroll")}function U(){window.clearTimeout(Z),M.current=!0}function A(){Z=window.setTimeout(()=>{M.current=!1},_c()?5:0)}const V=ls(i.floating);d&&(V.addEventListener("keydown",O?q:Q,O),V.addEventListener("compositionstart",U),V.addEventListener("compositionend",A)),R&&V.addEventListener(f,L?ee:te,L);let W=[];return w&&(dt(i.domReference)&&(W=Qr(i.domReference)),dt(i.floating)&&(W=W.concat(Qr(i.floating))),!dt(i.reference)&&i.reference&&i.reference.contextElement&&(W=W.concat(Qr(i.reference.contextElement)))),W=W.filter(N=>{var F;return N!==((F=V.defaultView)==null?void 0:F.visualViewport)}),W.forEach(N=>{N.addEventListener("scroll",B,{passive:!0})}),()=>{d&&(V.removeEventListener("keydown",O?q:Q,O),V.removeEventListener("compositionstart",U),V.removeEventListener("compositionend",A)),R&&V.removeEventListener(f,L?ee:te,L),W.forEach(N=>{N.removeEventListener("scroll",B)}),window.clearTimeout(Z)}},[l,i,d,R,f,r,s,w,u,T,j,Q,O,q,te,L,ee]),C.useEffect(()=>{k.current=!1},[R,f]);const ne=C.useMemo(()=>({onKeyDown:Q,[EP[g]]:Z=>{m&&s(!1,Z.nativeEvent,"reference-press")}}),[Q,s,m,g]),G=C.useMemo(()=>({onKeyDown:Q,onMouseDown(){P.current=!0},onMouseUp(){P.current=!0},[RP[f]]:()=>{k.current=!0}}),[Q,f]);return C.useMemo(()=>u?{reference:ne,floating:G}:{},[u,ne,G])}function PP(e){const{open:t=!1,onOpenChange:r,elements:s}=e,i=fw(),l=C.useRef({}),[u]=C.useState(()=>gP()),d=Eh()!=null,[p,f]=C.useState(s.reference),m=Br((S,x,b)=>{l.current.openEvent=S?x:void 0,u.emit("openchange",{open:S,event:x,reason:b,nested:d}),r==null||r(S,x,b)}),g=C.useMemo(()=>({setPositionReference:f}),[]),w=C.useMemo(()=>({reference:p||s.reference||null,floating:s.floating||null,domReference:s.reference}),[p,s.reference,s.floating]);return C.useMemo(()=>({dataRef:l,open:t,onOpenChange:m,elements:w,events:u,floatingId:i,refs:g}),[t,m,w,u,i,g])}function Ph(e){e===void 0&&(e={});const{nodeId:t}=e,r=PP({...e,elements:{reference:null,floating:null,...e.elements}}),s=e.rootContext||r,i=s.elements,[l,u]=C.useState(null),[d,p]=C.useState(null),m=(i==null?void 0:i.domReference)||l,g=C.useRef(null),w=Rh();wr(()=>{m&&(g.current=m)},[m]);const S=aP({...e,elements:{...i,...d&&{reference:d}}}),x=C.useCallback(P=>{const T=dt(P)?{getBoundingClientRect:()=>P.getBoundingClientRect(),contextElement:P}:P;p(T),S.refs.setReference(T)},[S.refs]),b=C.useCallback(P=>{(dt(P)||P===null)&&(g.current=P,u(P)),(dt(S.refs.reference.current)||S.refs.reference.current===null||P!==null&&!dt(P))&&S.refs.setReference(P)},[S.refs]),E=C.useMemo(()=>({...S.refs,setReference:b,setPositionReference:x,domReference:g}),[S.refs,b,x]),R=C.useMemo(()=>({...S.elements,domReference:m}),[S.elements,m]),k=C.useMemo(()=>({...S,...s,refs:E,elements:R,nodeId:t}),[S,E,R,t,s]);return wr(()=>{s.dataRef.current.floatingContext=k;const P=w==null?void 0:w.nodesRef.current.find(T=>T.id===t);P&&(P.context=k)}),C.useMemo(()=>({...S,context:k,refs:E,elements:R}),[S,E,R,k])}function kP(e,t){t===void 0&&(t={});const{open:r,onOpenChange:s,events:i,dataRef:l,elements:u}=e,{enabled:d=!0,visibleOnly:p=!0}=t,f=C.useRef(!1),m=C.useRef(),g=C.useRef(!0);C.useEffect(()=>{if(!d)return;const S=pn(u.domReference);function x(){!r&&Cn(u.domReference)&&u.domReference===My(ls(u.domReference))&&(f.current=!0)}function b(){g.current=!0}return S.addEventListener("blur",x),S.addEventListener("keydown",b,!0),()=>{S.removeEventListener("blur",x),S.removeEventListener("keydown",b,!0)}},[u.domReference,r,d]),C.useEffect(()=>{if(!d)return;function S(x){let{reason:b}=x;(b==="reference-press"||b==="escape-key")&&(f.current=!0)}return i.on("openchange",S),()=>{i.off("openchange",S)}},[i,d]),C.useEffect(()=>()=>{clearTimeout(m.current)},[]);const w=C.useMemo(()=>({onPointerDown(S){a_(S.nativeEvent)||(g.current=!1)},onMouseLeave(){f.current=!1},onFocus(S){if(f.current)return;const x=pi(S.nativeEvent);if(p&&dt(x))try{if(l_()&&u_())throw Error();if(!x.matches(":focus-visible"))return}catch{if(!g.current&&!h_(x))return}s(!0,S.nativeEvent,"focus")},onBlur(S){f.current=!1;const x=S.relatedTarget,b=S.nativeEvent,E=dt(x)&&x.hasAttribute(_h("focus-guard"))&&x.getAttribute("data-type")==="outside";m.current=window.setTimeout(()=>{var R;const k=My(u.domReference?u.domReference.ownerDocument:document);!x&&k===u.domReference||Ga((R=l.current.floatingContext)==null?void 0:R.refs.floating.current,k)||Ga(u.domReference,k)||E||s(!1,b,"focus")})}}),[l,u.domReference,s,p]);return C.useMemo(()=>d?{reference:w}:{},[d,w])}const Yy="active",Jy="selected";function Zf(e,t,r){const s=new Map,i=r==="item";let l=e;if(i&&e){const{[Yy]:u,[Jy]:d,...p}=e;l=p}return{...r==="floating"&&{tabIndex:-1,[CP]:""},...l,...t.map(u=>{const d=u?u[r]:null;return typeof d=="function"?e?d(e):null:d}).concat(e).reduce((u,d)=>(d&&Object.entries(d).forEach(p=>{let[f,m]=p;if(!(i&&[Yy,Jy].includes(f)))if(f.indexOf("on")===0){if(s.has(f)||s.set(f,[]),typeof m=="function"){var g;(g=s.get(f))==null||g.push(m),u[f]=function(){for(var w,S=arguments.length,x=new Array(S),b=0;b<S;b++)x[b]=arguments[b];return(w=s.get(f))==null?void 0:w.map(E=>E(...x)).find(E=>E!==void 0)}}}else u[f]=m}),u),{})}}function TP(e){e===void 0&&(e=[]);const t=e.map(d=>d==null?void 0:d.reference),r=e.map(d=>d==null?void 0:d.floating),s=e.map(d=>d==null?void 0:d.item),i=C.useCallback(d=>Zf(d,e,"reference"),t),l=C.useCallback(d=>Zf(d,e,"floating"),r),u=C.useCallback(d=>Zf(d,e,"item"),s);return C.useMemo(()=>({getReferenceProps:i,getFloatingProps:l,getItemProps:u}),[i,l,u])}const NP=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function jP(e,t){var r;t===void 0&&(t={});const{open:s,floatingId:i}=e,{enabled:l=!0,role:u="dialog"}=t,d=(r=NP.get(u))!=null?r:u,p=fw(),m=Eh()!=null,g=C.useMemo(()=>d==="tooltip"||u==="label"?{["aria-"+(u==="label"?"labelledby":"describedby")]:s?i:void 0}:{"aria-expanded":s?"true":"false","aria-haspopup":d==="alertdialog"?"dialog":d,"aria-controls":s?i:void 0,...d==="listbox"&&{role:"combobox"},...d==="menu"&&{id:p},...d==="menu"&&m&&{role:"menuitem"},...u==="select"&&{"aria-autocomplete":"none"},...u==="combobox"&&{"aria-autocomplete":"list"}},[d,i,m,s,p,u]),w=C.useMemo(()=>{const x={id:i,...d&&{role:d}};return d==="tooltip"||u==="label"?x:{...x,...d==="menu"&&{"aria-labelledby":p}}},[d,i,p,u]),S=C.useCallback(x=>{let{active:b,selected:E}=x;const R={role:"option",...b&&{id:i+"-option"}};switch(u){case"select":return{...R,"aria-selected":b&&E};case"combobox":return{...R,...b&&{"aria-selected":!0}}}return{}},[i,u]);return C.useMemo(()=>l?{reference:g,floating:w,item:S}:{},[l,g,w,S])}const[OP,Fn]=Yr("ScrollArea.Root component was not found in tree");function Ai(e,t){const r=is(t);ul(()=>{let s=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(s),s=window.requestAnimationFrame(r)});return i.observe(e),()=>{window.cancelAnimationFrame(s),i.unobserve(e)}}},[e,r])}const AP=C.forwardRef((e,t)=>{const{style:r,...s}=e,i=Fn(),[l,u]=C.useState(0),[d,p]=C.useState(0),f=!!(l&&d);return Ai(i.scrollbarX,()=>{var g;const m=((g=i.scrollbarX)==null?void 0:g.offsetHeight)||0;i.onCornerHeightChange(m),p(m)}),Ai(i.scrollbarY,()=>{var g;const m=((g=i.scrollbarY)==null?void 0:g.offsetWidth)||0;i.onCornerWidthChange(m),u(m)}),f?y.jsx("div",{...s,ref:t,style:{...r,width:l,height:d}}):null}),DP=C.forwardRef((e,t)=>{const r=Fn(),s=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&s?y.jsx(AP,{...e,ref:t}):null}),IP={scrollHideDelay:1e3,type:"hover"},hw=C.forwardRef((e,t)=>{const r=me("ScrollAreaRoot",IP,e),{type:s,scrollHideDelay:i,scrollbars:l,...u}=r,[d,p]=C.useState(null),[f,m]=C.useState(null),[g,w]=C.useState(null),[S,x]=C.useState(null),[b,E]=C.useState(null),[R,k]=C.useState(0),[P,T]=C.useState(0),[j,O]=C.useState(!1),[L,M]=C.useState(!1),Q=$t(t,q=>p(q));return y.jsx(OP,{value:{type:s,scrollHideDelay:i,scrollArea:d,viewport:f,onViewportChange:m,content:g,onContentChange:w,scrollbarX:S,onScrollbarXChange:x,scrollbarXEnabled:j,onScrollbarXEnabledChange:O,scrollbarY:b,onScrollbarYChange:E,scrollbarYEnabled:L,onScrollbarYEnabledChange:M,onCornerWidthChange:k,onCornerHeightChange:T},children:y.jsx(he,{...u,ref:Q,__vars:{"--sa-corner-width":l!=="xy"?"0px":`${R}px`,"--sa-corner-height":l!=="xy"?"0px":`${P}px`}})})});hw.displayName="@mantine/core/ScrollAreaRoot";function mw(e,t){const r=e/t;return Number.isNaN(r)?0:r}function Tc(e){const t=mw(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,s=(e.scrollbar.size-r)*t;return Math.max(s,18)}function gw(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const s=(t[1]-t[0])/(e[1]-e[0]);return t[0]+s*(r-e[0])}}function MP(e,[t,r]){return Math.min(r,Math.max(t,e))}function Zy(e,t,r="ltr"){const s=Tc(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-i,u=t.content-t.viewport,d=l-s,p=r==="ltr"?[0,u]:[u*-1,0],f=MP(e,p);return gw([0,u],[0,d])(f)}function $P(e,t,r,s="ltr"){const i=Tc(r),l=i/2,u=t||l,d=i-u,p=r.scrollbar.paddingStart+u,f=r.scrollbar.size-r.scrollbar.paddingEnd-d,m=r.content-r.viewport,g=s==="ltr"?[0,m]:[m*-1,0];return gw([p,f],g)(e)}function vw(e,t){return e>0&&e<t}function uc(e){return e?parseInt(e,10):0}function Es(e,t,{checkForDefaultPrevented:r=!0}={}){return s=>{e==null||e(s),(r===!1||!s.defaultPrevented)&&(t==null||t(s))}}const[LP,yw]=Yr("ScrollAreaScrollbar was not found in tree"),bw=C.forwardRef((e,t)=>{const{sizes:r,hasThumb:s,onThumbChange:i,onThumbPointerUp:l,onThumbPointerDown:u,onThumbPositionChange:d,onDragScroll:p,onWheelScroll:f,onResize:m,...g}=e,w=Fn(),[S,x]=C.useState(null),b=$t(t,M=>x(M)),E=C.useRef(null),R=C.useRef(""),{viewport:k}=w,P=r.content-r.viewport,T=is(f),j=is(d),O=ll(m,10),L=M=>{if(E.current){const Q=M.clientX-E.current.left,q=M.clientY-E.current.top;p({x:Q,y:q})}};return C.useEffect(()=>{const M=Q=>{const q=Q.target;(S==null?void 0:S.contains(q))&&T(Q,P)};return document.addEventListener("wheel",M,{passive:!1}),()=>document.removeEventListener("wheel",M,{passive:!1})},[k,S,P,T]),C.useEffect(j,[r,j]),Ai(S,O),Ai(w.content,O),y.jsx(LP,{value:{scrollbar:S,hasThumb:s,onThumbChange:is(i),onThumbPointerUp:is(l),onThumbPositionChange:j,onThumbPointerDown:is(u)},children:y.jsx("div",{...g,ref:b,"data-mantine-scrollbar":!0,style:{position:"absolute",...g.style},onPointerDown:Es(e.onPointerDown,M=>{M.preventDefault(),M.button===0&&(M.target.setPointerCapture(M.pointerId),E.current=S.getBoundingClientRect(),R.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",L(M))}),onPointerMove:Es(e.onPointerMove,L),onPointerUp:Es(e.onPointerUp,M=>{const Q=M.target;Q.hasPointerCapture(M.pointerId)&&(M.preventDefault(),Q.releasePointerCapture(M.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=R.current,E.current=null}})})}),ww=C.forwardRef((e,t)=>{const{sizes:r,onSizesChange:s,style:i,...l}=e,u=Fn(),[d,p]=C.useState(),f=C.useRef(null),m=$t(t,f,u.onScrollbarXChange);return C.useEffect(()=>{f.current&&p(getComputedStyle(f.current))},[f]),y.jsx(bw,{"data-orientation":"horizontal",...l,ref:m,sizes:r,style:{...i,"--sa-thumb-width":`${Tc(r)}px`},onThumbPointerDown:g=>e.onThumbPointerDown(g.x),onDragScroll:g=>e.onDragScroll(g.x),onWheelScroll:(g,w)=>{if(u.viewport){const S=u.viewport.scrollLeft+g.deltaX;e.onWheelScroll(S),vw(S,w)&&g.preventDefault()}},onResize:()=>{f.current&&u.viewport&&d&&s({content:u.viewport.scrollWidth,viewport:u.viewport.offsetWidth,scrollbar:{size:f.current.clientWidth,paddingStart:uc(d.paddingLeft),paddingEnd:uc(d.paddingRight)}})}})});ww.displayName="@mantine/core/ScrollAreaScrollbarX";const Sw=C.forwardRef((e,t)=>{const{sizes:r,onSizesChange:s,style:i,...l}=e,u=Fn(),[d,p]=C.useState(),f=C.useRef(null),m=$t(t,f,u.onScrollbarYChange);return C.useEffect(()=>{f.current&&p(window.getComputedStyle(f.current))},[]),y.jsx(bw,{...l,"data-orientation":"vertical",ref:m,sizes:r,style:{"--sa-thumb-height":`${Tc(r)}px`,...i},onThumbPointerDown:g=>e.onThumbPointerDown(g.y),onDragScroll:g=>e.onDragScroll(g.y),onWheelScroll:(g,w)=>{if(u.viewport){const S=u.viewport.scrollTop+g.deltaY;e.onWheelScroll(S),vw(S,w)&&g.preventDefault()}},onResize:()=>{f.current&&u.viewport&&d&&s({content:u.viewport.scrollHeight,viewport:u.viewport.offsetHeight,scrollbar:{size:f.current.clientHeight,paddingStart:uc(d.paddingTop),paddingEnd:uc(d.paddingBottom)}})}})});Sw.displayName="@mantine/core/ScrollAreaScrollbarY";const Nc=C.forwardRef((e,t)=>{const{orientation:r="vertical",...s}=e,{dir:i}=js(),l=Fn(),u=C.useRef(null),d=C.useRef(0),[p,f]=C.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),m=mw(p.viewport,p.content),g={...s,sizes:p,onSizesChange:f,hasThumb:m>0&&m<1,onThumbChange:S=>{u.current=S},onThumbPointerUp:()=>{d.current=0},onThumbPointerDown:S=>{d.current=S}},w=(S,x)=>$P(S,d.current,p,x);return r==="horizontal"?y.jsx(ww,{...g,ref:t,onThumbPositionChange:()=>{if(l.viewport&&u.current){const S=l.viewport.scrollLeft,x=Zy(S,p,i);u.current.style.transform=`translate3d(${x}px, 0, 0)`}},onWheelScroll:S=>{l.viewport&&(l.viewport.scrollLeft=S)},onDragScroll:S=>{l.viewport&&(l.viewport.scrollLeft=w(S,i))}}):r==="vertical"?y.jsx(Sw,{...g,ref:t,onThumbPositionChange:()=>{if(l.viewport&&u.current){const S=l.viewport.scrollTop,x=Zy(S,p);p.scrollbar.size===0?u.current.style.setProperty("--thumb-opacity","0"):u.current.style.setProperty("--thumb-opacity","1"),u.current.style.transform=`translate3d(0, ${x}px, 0)`}},onWheelScroll:S=>{l.viewport&&(l.viewport.scrollTop=S)},onDragScroll:S=>{l.viewport&&(l.viewport.scrollTop=w(S))}}):null});Nc.displayName="@mantine/core/ScrollAreaScrollbarVisible";const kh=C.forwardRef((e,t)=>{const r=Fn(),{forceMount:s,...i}=e,[l,u]=C.useState(!1),d=e.orientation==="horizontal",p=ll(()=>{if(r.viewport){const f=r.viewport.offsetWidth<r.viewport.scrollWidth,m=r.viewport.offsetHeight<r.viewport.scrollHeight;u(d?f:m)}},10);return Ai(r.viewport,p),Ai(r.content,p),s||l?y.jsx(Nc,{"data-state":l?"visible":"hidden",...i,ref:t}):null});kh.displayName="@mantine/core/ScrollAreaScrollbarAuto";const xw=C.forwardRef((e,t)=>{const{forceMount:r,...s}=e,i=Fn(),[l,u]=C.useState(!1);return C.useEffect(()=>{const{scrollArea:d}=i;let p=0;if(d){const f=()=>{window.clearTimeout(p),u(!0)},m=()=>{p=window.setTimeout(()=>u(!1),i.scrollHideDelay)};return d.addEventListener("pointerenter",f),d.addEventListener("pointerleave",m),()=>{window.clearTimeout(p),d.removeEventListener("pointerenter",f),d.removeEventListener("pointerleave",m)}}},[i.scrollArea,i.scrollHideDelay]),r||l?y.jsx(kh,{"data-state":l?"visible":"hidden",...s,ref:t}):null});xw.displayName="@mantine/core/ScrollAreaScrollbarHover";const FP=C.forwardRef((e,t)=>{const{forceMount:r,...s}=e,i=Fn(),l=e.orientation==="horizontal",[u,d]=C.useState("hidden"),p=ll(()=>d("idle"),100);return C.useEffect(()=>{if(u==="idle"){const f=window.setTimeout(()=>d("hidden"),i.scrollHideDelay);return()=>window.clearTimeout(f)}},[u,i.scrollHideDelay]),C.useEffect(()=>{const{viewport:f}=i,m=l?"scrollLeft":"scrollTop";if(f){let g=f[m];const w=()=>{const S=f[m];g!==S&&(d("scrolling"),p()),g=S};return f.addEventListener("scroll",w),()=>f.removeEventListener("scroll",w)}},[i.viewport,l,p]),r||u!=="hidden"?y.jsx(Nc,{"data-state":u==="hidden"?"hidden":"visible",...s,ref:t,onPointerEnter:Es(e.onPointerEnter,()=>d("interacting")),onPointerLeave:Es(e.onPointerLeave,()=>d("idle"))}):null}),Ep=C.forwardRef((e,t)=>{const{forceMount:r,...s}=e,i=Fn(),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:u}=i,d=e.orientation==="horizontal";return C.useEffect(()=>(d?l(!0):u(!0),()=>{d?l(!1):u(!1)}),[d,l,u]),i.type==="hover"?y.jsx(xw,{...s,ref:t,forceMount:r}):i.type==="scroll"?y.jsx(FP,{...s,ref:t,forceMount:r}):i.type==="auto"?y.jsx(kh,{...s,ref:t,forceMount:r}):i.type==="always"?y.jsx(Nc,{...s,ref:t}):null});Ep.displayName="@mantine/core/ScrollAreaScrollbar";function zP(e,t=()=>{}){let r={left:e.scrollLeft,top:e.scrollTop},s=0;return(function i(){const l={left:e.scrollLeft,top:e.scrollTop},u=r.left!==l.left,d=r.top!==l.top;(u||d)&&t(),r=l,s=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(s)}const Cw=C.forwardRef((e,t)=>{const{style:r,...s}=e,i=Fn(),l=yw(),{onThumbPositionChange:u}=l,d=$t(t,m=>l.onThumbChange(m)),p=C.useRef(void 0),f=ll(()=>{p.current&&(p.current(),p.current=void 0)},100);return C.useEffect(()=>{const{viewport:m}=i;if(m){const g=()=>{if(f(),!p.current){const w=zP(m,u);p.current=w,u()}};return u(),m.addEventListener("scroll",g),()=>m.removeEventListener("scroll",g)}},[i.viewport,f,u]),y.jsx("div",{"data-state":l.hasThumb?"visible":"hidden",...s,ref:d,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...r},onPointerDownCapture:Es(e.onPointerDownCapture,m=>{const w=m.target.getBoundingClientRect(),S=m.clientX-w.left,x=m.clientY-w.top;l.onThumbPointerDown({x:S,y:x})}),onPointerUp:Es(e.onPointerUp,l.onThumbPointerUp)})});Cw.displayName="@mantine/core/ScrollAreaThumb";const Rp=C.forwardRef((e,t)=>{const{forceMount:r,...s}=e,i=yw();return r||i.hasThumb?y.jsx(Cw,{ref:t,...s}):null});Rp.displayName="@mantine/core/ScrollAreaThumb";const Ew=C.forwardRef(({children:e,style:t,...r},s)=>{const i=Fn(),l=$t(s,i.onViewportChange);return y.jsx(he,{...r,ref:l,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...t},children:y.jsx("div",{style:{minWidth:"100%"},ref:i.onContentChange,children:e})})});Ew.displayName="@mantine/core/ScrollAreaViewport";var Th={root:"m_d57069b5",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const Rw={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},VP=(e,{scrollbarSize:t,overscrollBehavior:r})=>({root:{"--scrollarea-scrollbar-size":se(t),"--scrollarea-over-scroll-behavior":r}}),Os=Re((e,t)=>{const r=me("ScrollArea",Rw,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,scrollbarSize:p,vars:f,type:m,scrollHideDelay:g,viewportProps:w,viewportRef:S,onScrollPositionChange:x,children:b,offsetScrollbars:E,scrollbars:R,onBottomReached:k,onTopReached:P,overscrollBehavior:T,...j}=r,[O,L]=C.useState(!1),[M,Q]=C.useState(!1),[q,te]=C.useState(!1),ee=Ie({name:"ScrollArea",props:r,classes:Th,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:f,varsResolver:VP}),ne=C.useRef(null),G=cP([S,ne]);return C.useEffect(()=>{if(!ne.current||E!=="present")return;const Z=ne.current,B=new ResizeObserver(()=>{const{scrollHeight:U,clientHeight:A,scrollWidth:V,clientWidth:W}=Z;Q(U>A),te(V>W)});return B.observe(Z),()=>B.disconnect()},[ne,E]),y.jsxs(hw,{type:m==="never"?"always":m,scrollHideDelay:g,ref:t,scrollbars:R,...ee("root"),...j,children:[y.jsx(Ew,{...w,...ee("viewport",{style:w==null?void 0:w.style}),ref:G,"data-offset-scrollbars":E===!0?"xy":E||void 0,"data-scrollbars":R||void 0,"data-horizontal-hidden":E==="present"&&!q?"true":void 0,"data-vertical-hidden":E==="present"&&!M?"true":void 0,onScroll:Z=>{var V;(V=w==null?void 0:w.onScroll)==null||V.call(w,Z),x==null||x({x:Z.currentTarget.scrollLeft,y:Z.currentTarget.scrollTop});const{scrollTop:B,scrollHeight:U,clientHeight:A}=Z.currentTarget;B-(U-A)>=-.6&&(k==null||k()),B===0&&(P==null||P())},children:b}),(R==="xy"||R==="x")&&y.jsx(Ep,{...ee("scrollbar"),orientation:"horizontal","data-hidden":m==="never"||E==="present"&&!q?!0:void 0,forceMount:!0,onMouseEnter:()=>L(!0),onMouseLeave:()=>L(!1),children:y.jsx(Rp,{...ee("thumb")})}),(R==="xy"||R==="y")&&y.jsx(Ep,{...ee("scrollbar"),orientation:"vertical","data-hidden":m==="never"||E==="present"&&!M?!0:void 0,forceMount:!0,onMouseEnter:()=>L(!0),onMouseLeave:()=>L(!1),children:y.jsx(Rp,{...ee("thumb")})}),y.jsx(DP,{...ee("corner"),"data-hovered":O||void 0,"data-hidden":m==="never"||void 0})]})});Os.displayName="@mantine/core/ScrollArea";const Nh=Re((e,t)=>{const{children:r,classNames:s,styles:i,scrollbarSize:l,scrollHideDelay:u,type:d,dir:p,offsetScrollbars:f,viewportRef:m,onScrollPositionChange:g,unstyled:w,variant:S,viewportProps:x,scrollbars:b,style:E,vars:R,onBottomReached:k,onTopReached:P,...T}=me("ScrollAreaAutosize",Rw,e);return y.jsx(he,{...T,ref:t,style:[{display:"flex",overflow:"auto"},E],children:y.jsx(he,{style:{display:"flex",flexDirection:"column",flex:1},children:y.jsx(Os,{classNames:s,styles:i,scrollHideDelay:u,scrollbarSize:l,type:d,dir:p,offsetScrollbars:f,viewportRef:m,onScrollPositionChange:g,unstyled:w,variant:S,viewportProps:x,vars:R,scrollbars:b,onBottomReached:k,onTopReached:P,children:r})})})});Os.classes=Th;Nh.displayName="@mantine/core/ScrollAreaAutosize";Nh.classes=Th;Os.Autosize=Nh;var _w={root:"m_87cf2631"};const BP={__staticSelector:"UnstyledButton"},Fo=Rn((e,t)=>{const r=me("UnstyledButton",BP,e),{className:s,component:i="button",__staticSelector:l,unstyled:u,classNames:d,styles:p,style:f,...m}=r,g=Ie({name:l,props:r,classes:_w,className:s,style:f,classNames:d,styles:p,unstyled:u});return y.jsx(he,{...g("root",{focusable:!0}),component:i,ref:t,type:i==="button"?"button":void 0,...m})});Fo.classes=_w;Fo.displayName="@mantine/core/UnstyledButton";var Pw={root:"m_515a97f8"};const UP={},jh=Re((e,t)=>{const r=me("VisuallyHidden",UP,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,...f}=r,m=Ie({name:"VisuallyHidden",classes:Pw,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d});return y.jsx(he,{component:"span",ref:t,...m("root"),...f})});jh.classes=Pw;jh.displayName="@mantine/core/VisuallyHidden";var kw={root:"m_1b7284a3"};const HP={},WP=(e,{radius:t,shadow:r})=>({root:{"--paper-radius":t===void 0?void 0:Ct(t),"--paper-shadow":Nb(r)}}),Ur=Rn((e,t)=>{const r=me("Paper",HP,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,withBorder:p,vars:f,radius:m,shadow:g,variant:w,mod:S,...x}=r,b=Ie({name:"Paper",props:r,classes:kw,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:f,varsResolver:WP});return y.jsx(he,{ref:t,mod:[{"data-with-border":p},S],...b("root"),variant:w,...x})});Ur.classes=kw;Ur.displayName="@mantine/core/Paper";function Tw(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){const[r,s]=t.split("-"),i=r==="right"?"left":"right";return s===void 0?i:`${i}-${s}`}return t}function e0(e,t,r,s){return e==="center"||s==="center"?{top:t}:e==="end"?{bottom:r}:e==="start"?{top:r}:{}}function t0(e,t,r,s,i){return e==="center"||s==="center"?{left:t}:e==="end"?{[i==="ltr"?"right":"left"]:r}:e==="start"?{[i==="ltr"?"left":"right"]:r}:{}}const QP={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function qP({position:e,arrowSize:t,arrowOffset:r,arrowRadius:s,arrowPosition:i,arrowX:l,arrowY:u,dir:d}){const[p,f="center"]=e.split("-"),m={width:t,height:t,transform:"rotate(45deg)",position:"absolute",[QP[p]]:s},g=-t/2;return p==="left"?{...m,...e0(f,u,r,i),right:g,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:p==="right"?{...m,...e0(f,u,r,i),left:g,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:p==="top"?{...m,...t0(f,l,r,i,d),bottom:g,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:p==="bottom"?{...m,...t0(f,l,r,i,d),top:g,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const Oh=C.forwardRef(({position:e,arrowSize:t,arrowOffset:r,arrowRadius:s,arrowPosition:i,visible:l,arrowX:u,arrowY:d,style:p,...f},m)=>{const{dir:g}=js();return l?y.jsx("div",{...f,ref:m,style:{...p,...qP({position:e,arrowSize:t,arrowOffset:r,arrowRadius:s,arrowPosition:i,dir:g,arrowX:u,arrowY:d})}}):null});Oh.displayName="@mantine/core/FloatingArrow";var Nw={root:"m_9814e45f"};const KP={zIndex:$i("modal")},GP=(e,{gradient:t,color:r,backgroundOpacity:s,blur:i,radius:l,zIndex:u})=>({root:{"--overlay-bg":t||(r!==void 0||s!==void 0)&&hr(r||"#000",s??.6)||void 0,"--overlay-filter":i?`blur(${se(i)})`:void 0,"--overlay-radius":l===void 0?void 0:Ct(l),"--overlay-z-index":u==null?void 0:u.toString()}}),Xa=Rn((e,t)=>{const r=me("Overlay",KP,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,fixed:f,center:m,children:g,radius:w,zIndex:S,gradient:x,blur:b,color:E,backgroundOpacity:R,mod:k,...P}=r,T=Ie({name:"Overlay",props:r,classes:Nw,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:GP});return y.jsx(he,{ref:t,...T("root"),mod:[{center:m,fixed:f},k],...P,children:g})});Xa.classes=Nw;Xa.displayName="@mantine/core/Overlay";function ep(e){const t=document.createElement("div");return t.setAttribute("data-portal","true"),typeof e.className=="string"&&t.classList.add(...e.className.split(" ").filter(Boolean)),typeof e.style=="object"&&Object.assign(t.style,e.style),typeof e.id=="string"&&t.setAttribute("id",e.id),t}function XP({target:e,reuseTargetNode:t,...r}){if(e)return typeof e=="string"?document.querySelector(e)||ep(r):e;if(t){const s=document.querySelector("[data-mantine-shared-portal-node]");if(s)return s;const i=ep(r);return i.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(i),i}return ep(r)}const YP={},jw=Re((e,t)=>{const{children:r,target:s,reuseTargetNode:i,...l}=me("Portal",YP,e),[u,d]=C.useState(!1),p=C.useRef(null);return ul(()=>(d(!0),p.current=XP({target:s,reuseTargetNode:i,...l}),rc(t,p.current),!s&&!i&&p.current&&document.body.appendChild(p.current),()=>{!s&&!i&&p.current&&document.body.removeChild(p.current)}),[s]),!u||!p.current?null:Cc.createPortal(y.jsx(y.Fragment,{children:r}),p.current)});jw.displayName="@mantine/core/Portal";const zi=Re(({withinPortal:e=!0,children:t,...r},s)=>zb()==="test"||!e?y.jsx(y.Fragment,{children:t}):y.jsx(jw,{ref:s,...r,children:t}));zi.displayName="@mantine/core/OptionalPortal";const $a=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${e==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),Vu={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...$a("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...$a("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...$a("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...$a("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...$a("top"),common:{transformOrigin:"top right"}}},n0={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function JP({transition:e,state:t,duration:r,timingFunction:s}){const i={WebkitBackfaceVisibility:"hidden",willChange:"transform, opacity",transitionDuration:`${r}ms`,transitionTimingFunction:s};return typeof e=="string"?e in Vu?{transitionProperty:Vu[e].transitionProperty,...i,...Vu[e].common,...Vu[e][n0[t]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[n0[t]]}}function ZP({duration:e,exitDuration:t,timingFunction:r,mounted:s,onEnter:i,onExit:l,onEntered:u,onExited:d,enterDelay:p,exitDelay:f}){const m=rn(),g=ah(),w=m.respectReducedMotion?g:!1,[S,x]=C.useState(w?0:e),[b,E]=C.useState(s?"entered":"exited"),R=C.useRef(-1),k=C.useRef(-1),P=C.useRef(-1);function T(){window.clearTimeout(R.current),window.clearTimeout(k.current),cancelAnimationFrame(P.current)}const j=L=>{T();const M=L?i:l,Q=L?u:d,q=w?0:L?e:t;x(q),q===0?(typeof M=="function"&&M(),typeof Q=="function"&&Q(),E(L?"entered":"exited")):P.current=requestAnimationFrame(()=>{Va.flushSync(()=>{E(L?"pre-entering":"pre-exiting")}),P.current=requestAnimationFrame(()=>{typeof M=="function"&&M(),E(L?"entering":"exiting"),R.current=window.setTimeout(()=>{typeof Q=="function"&&Q(),E(L?"entered":"exited")},q)})})},O=L=>{if(T(),typeof(L?p:f)!="number"){j(L);return}k.current=window.setTimeout(()=>{j(L)},L?p:f)};return Kr(()=>{O(s)},[s]),C.useEffect(()=>()=>{T()},[]),{transitionDuration:S,transitionStatus:b,transitionTimingFunction:r||"ease"}}function Vo({keepMounted:e,transition:t="fade",duration:r=250,exitDuration:s=r,mounted:i,children:l,timingFunction:u="ease",onExit:d,onEntered:p,onEnter:f,onExited:m,enterDelay:g,exitDelay:w}){const S=zb(),{transitionDuration:x,transitionStatus:b,transitionTimingFunction:E}=ZP({mounted:i,exitDuration:s,duration:r,timingFunction:u,onExit:d,onEntered:p,onEnter:f,onExited:m,enterDelay:g,exitDelay:w});return x===0||S==="test"?i?y.jsx(y.Fragment,{children:l({})}):e?l({display:"none"}):null:b==="exited"?e?l({display:"none"}):null:y.jsx(y.Fragment,{children:l(JP({transition:t,duration:x,state:b,timingFunction:E}))})}Vo.displayName="@mantine/core/Transition";const[ek,Ow]=Yr("Popover component was not found in the tree");function Ah({children:e,active:t=!0,refProp:r="ref",innerRef:s}){const i=jE(t),l=$t(i,s);return Ns(e)?C.cloneElement(e,{[r]:l}):e}function Aw(e){return y.jsx(jh,{tabIndex:-1,"data-autofocus":!0,...e})}Ah.displayName="@mantine/core/FocusTrap";Aw.displayName="@mantine/core/FocusTrapInitialFocus";Ah.InitialFocus=Aw;var Dw={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const tk={},Dh=Re((e,t)=>{var E,R,k,P;const r=me("PopoverDropdown",tk,e),{className:s,style:i,vars:l,children:u,onKeyDownCapture:d,variant:p,classNames:f,styles:m,...g}=r,w=Ow(),S=RE({opened:w.opened,shouldReturnFocus:w.returnFocus}),x=w.withRoles?{"aria-labelledby":w.getTargetId(),id:w.getDropdownId(),role:"dialog",tabIndex:-1}:{},b=$t(t,w.floating);return w.disabled?null:y.jsx(zi,{...w.portalProps,withinPortal:w.withinPortal,children:y.jsx(Vo,{mounted:w.opened,...w.transitionProps,transition:((E=w.transitionProps)==null?void 0:E.transition)||"fade",duration:((R=w.transitionProps)==null?void 0:R.duration)??150,keepMounted:w.keepMounted,exitDuration:typeof((k=w.transitionProps)==null?void 0:k.exitDuration)=="number"?w.transitionProps.exitDuration:(P=w.transitionProps)==null?void 0:P.duration,children:T=>y.jsx(Ah,{active:w.trapFocus&&w.opened,innerRef:b,children:y.jsxs(he,{...x,...g,variant:p,onKeyDownCapture:bE(()=>{var j,O;(j=w.onClose)==null||j.call(w),(O=w.onDismiss)==null||O.call(w)},{active:w.closeOnEscape,onTrigger:S,onKeyDown:d}),"data-position":w.placement,"data-fixed":w.floatingStrategy==="fixed"||void 0,...w.getStyles("dropdown",{className:s,props:r,classNames:f,styles:m,style:[{...T,zIndex:w.zIndex,top:w.y??0,left:w.x??0,width:w.width==="target"?void 0:se(w.width)},w.resolvedStyles.dropdown,m==null?void 0:m.dropdown,i]}),children:[u,y.jsx(Oh,{ref:w.arrowRef,arrowX:w.arrowX,arrowY:w.arrowY,visible:w.withArrow,position:w.placement,arrowSize:w.arrowSize,arrowRadius:w.arrowRadius,arrowOffset:w.arrowOffset,arrowPosition:w.arrowPosition,...w.getStyles("arrow",{props:r,classNames:f,styles:m})})]})})})})});Dh.classes=Dw;Dh.displayName="@mantine/core/PopoverDropdown";const nk={refProp:"ref",popupType:"dialog"},Iw=Re((e,t)=>{const{children:r,refProp:s,popupType:i,...l}=me("PopoverTarget",nk,e);if(!Ns(r))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=l,d=Ow(),p=$t(d.reference,wc(r),t),f=d.withRoles?{"aria-haspopup":i,"aria-expanded":d.opened,"aria-controls":d.getDropdownId(),id:d.getTargetId()}:{};return C.cloneElement(r,{...u,...f,...d.targetProps,className:En(d.targetProps.className,u.className,r.props.className),[s]:p,...d.controlled?null:{onClick:d.onToggle}})});Iw.displayName="@mantine/core/PopoverTarget";function Mw({opened:e,floating:t,position:r,positionDependencies:s}){const[i,l]=C.useState(0);C.useEffect(()=>{if(t.refs.reference.current&&t.refs.floating.current&&e)return Y_(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference.current,t.refs.floating.current,e,i,r]),Kr(()=>{t.update()},s),Kr(()=>{l(u=>u+1)},[e])}function rk(e){if(e===void 0)return{shift:!0,flip:!0};const t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function ok(e,t){const r=rk(e.middlewares),s=[uw(e.offset)];return r.shift&&s.push(Ch(typeof r.shift=="boolean"?{limiter:Qy(),padding:5}:{limiter:Qy(),padding:5,...r.shift})),r.flip&&s.push(typeof r.flip=="boolean"?lc():lc(r.flip)),r.inline&&s.push(typeof r.inline=="boolean"?Ha():Ha(r.inline)),s.push(cw({element:e.arrowRef,padding:e.arrowOffset})),(r.size||e.width==="target")&&s.push(uP({...typeof r.size=="boolean"?{}:r.size,apply({rects:i,availableWidth:l,availableHeight:u,...d}){var m;const f=((m=t().refs.floating.current)==null?void 0:m.style)??{};r.size&&(typeof r.size=="object"&&r.size.apply?r.size.apply({rects:i,availableWidth:l,availableHeight:u,...d}):Object.assign(f,{maxWidth:`${l}px`,maxHeight:`${u}px`})),e.width==="target"&&Object.assign(f,{width:`${i.reference.width}px`})}})),s}function sk(e){const[t,r]=$n({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),s=C.useRef(t),i=()=>{t&&!e.disabled&&r(!1)},l=()=>!e.disabled&&r(!t),u=Ph({strategy:e.strategy,placement:e.position,middleware:ok(e,()=>u)});return Mw({opened:t,position:e.position,positionDependencies:e.positionDependencies||[],floating:u}),Kr(()=>{var d;(d=e.onPositionChange)==null||d.call(e,u.placement)},[u.placement]),Kr(()=>{var d,p;t!==s.current&&(t?(p=e.onOpen)==null||p.call(e):(d=e.onClose)==null||d.call(e)),s.current=t},[t,e.onClose,e.onOpen]),{floating:u,controlled:typeof e.opened=="boolean",opened:t,onClose:i,onToggle:l}}const ik={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:$i("popover"),__staticSelector:"Popover",width:"max-content"},ak=(e,{radius:t,shadow:r})=>({dropdown:{"--popover-radius":t===void 0?void 0:Ct(t),"--popover-shadow":Nb(r)}});function Bo(e){var oe,Se,Je,Ne,Be,Ge;const t=me("Popover",ik,e),{children:r,position:s,offset:i,onPositionChange:l,positionDependencies:u,opened:d,transitionProps:p,onExitTransitionEnd:f,onEnterTransitionEnd:m,width:g,middlewares:w,withArrow:S,arrowSize:x,arrowOffset:b,arrowRadius:E,arrowPosition:R,unstyled:k,classNames:P,styles:T,closeOnClickOutside:j,withinPortal:O,portalProps:L,closeOnEscape:M,clickOutsideEvents:Q,trapFocus:q,onClose:te,onDismiss:ee,onOpen:ne,onChange:G,zIndex:Z,radius:B,shadow:U,id:A,defaultOpened:V,__staticSelector:W,withRoles:N,disabled:F,returnFocus:le,variant:ye,keepMounted:X,vars:re,floatingStrategy:ve,withOverlay:fe,overlayProps:we,...je}=t,Ue=Ie({name:W,props:t,classes:Dw,classNames:P,styles:T,unstyled:k,rootSelector:"dropdown",vars:re,varsResolver:ak}),{resolvedStyles:Ze}=dl({classNames:P,styles:T,props:t}),et=C.useRef(null),[ft,He]=C.useState(null),[Rt,ue]=C.useState(null),{dir:pe}=js(),Ce=Jr(A),ke=sk({middlewares:w,width:g,position:Tw(pe,s),offset:typeof i=="number"?i+(S?x/2:0):i,arrowRef:et,arrowOffset:b,onPositionChange:l,positionDependencies:u,opened:d,defaultOpened:V,onChange:G,onOpen:ne,onClose:te,onDismiss:ee,strategy:ve,disabled:F});SE(()=>{j&&(ke.onClose(),ee==null||ee())},Q,[ft,Rt]);const Me=C.useCallback(qe=>{He(qe),ke.floating.refs.setReference(qe)},[ke.floating.refs.setReference]),Fe=C.useCallback(qe=>{ue(qe),ke.floating.refs.setFloating(qe)},[ke.floating.refs.setFloating]),ze=C.useCallback(()=>{var qe;(qe=p==null?void 0:p.onExited)==null||qe.call(p),f==null||f()},[p==null?void 0:p.onExited,f]),ce=C.useCallback(()=>{var qe;(qe=p==null?void 0:p.onEntered)==null||qe.call(p),m==null||m()},[p==null?void 0:p.onEntered,m]);return y.jsxs(ek,{value:{returnFocus:le,disabled:F,controlled:ke.controlled,reference:Me,floating:Fe,x:ke.floating.x,y:ke.floating.y,arrowX:(Je=(Se=(oe=ke.floating)==null?void 0:oe.middlewareData)==null?void 0:Se.arrow)==null?void 0:Je.x,arrowY:(Ge=(Be=(Ne=ke.floating)==null?void 0:Ne.middlewareData)==null?void 0:Be.arrow)==null?void 0:Ge.y,opened:ke.opened,arrowRef:et,transitionProps:{...p,onExited:ze,onEntered:ce},width:g,withArrow:S,arrowSize:x,arrowOffset:b,arrowRadius:E,arrowPosition:R,placement:ke.floating.placement,trapFocus:q,withinPortal:O,portalProps:L,zIndex:Z,radius:B,shadow:U,closeOnEscape:M,onDismiss:ee,onClose:ke.onClose,onToggle:ke.onToggle,getTargetId:()=>`${Ce}-target`,getDropdownId:()=>`${Ce}-dropdown`,withRoles:N,targetProps:je,__staticSelector:W,classNames:P,styles:T,unstyled:k,variant:ye,keepMounted:X,getStyles:Ue,resolvedStyles:Ze,floatingStrategy:ve},children:[r,fe&&y.jsx(Vo,{transition:"fade",mounted:ke.opened,duration:(p==null?void 0:p.duration)||250,exitDuration:(p==null?void 0:p.exitDuration)||250,children:qe=>y.jsx(zi,{withinPortal:O,children:y.jsx(Xa,{...we,...Ue("overlay",{className:we==null?void 0:we.className,style:[qe,we==null?void 0:we.style]})})})})]})}Bo.Target=Iw;Bo.Dropdown=Dh;Bo.displayName="@mantine/core/Popover";Bo.extend=e=>e;var Zn={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const $w=C.forwardRef(({className:e,...t},r)=>y.jsxs(he,{component:"span",className:En(Zn.barsLoader,e),...t,ref:r,children:[y.jsx("span",{className:Zn.bar}),y.jsx("span",{className:Zn.bar}),y.jsx("span",{className:Zn.bar})]}));$w.displayName="@mantine/core/Bars";const Lw=C.forwardRef(({className:e,...t},r)=>y.jsxs(he,{component:"span",className:En(Zn.dotsLoader,e),...t,ref:r,children:[y.jsx("span",{className:Zn.dot}),y.jsx("span",{className:Zn.dot}),y.jsx("span",{className:Zn.dot})]}));Lw.displayName="@mantine/core/Dots";const Fw=C.forwardRef(({className:e,...t},r)=>y.jsx(he,{component:"span",className:En(Zn.ovalLoader,e),...t,ref:r}));Fw.displayName="@mantine/core/Oval";const zw={bars:$w,oval:Fw,dots:Lw},lk={loaders:zw,type:"oval"},uk=(e,{size:t,color:r})=>({root:{"--loader-size":Ke(t,"loader-size"),"--loader-color":r?It(r,e):void 0}}),Uo=Re((e,t)=>{const r=me("Loader",lk,e),{size:s,color:i,type:l,vars:u,className:d,style:p,classNames:f,styles:m,unstyled:g,loaders:w,variant:S,children:x,...b}=r,E=Ie({name:"Loader",props:r,classes:Zn,className:d,style:p,classNames:f,styles:m,unstyled:g,vars:u,varsResolver:uk});return x?y.jsx(he,{...E("root"),ref:t,...b,children:x}):y.jsx(he,{...E("root"),ref:t,component:w[l],variant:S,size:s,...b})});Uo.defaultLoaders=zw;Uo.classes=Zn;Uo.displayName="@mantine/core/Loader";var Vi={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const r0={orientation:"horizontal"},ck=(e,{borderWidth:t})=>({group:{"--ai-border-width":se(t)}}),Ih=Re((e,t)=>{const r=me("ActionIconGroup",r0,e),{className:s,style:i,classNames:l,styles:u,unstyled:d,orientation:p,vars:f,borderWidth:m,variant:g,mod:w,...S}=me("ActionIconGroup",r0,e),x=Ie({name:"ActionIconGroup",props:r,classes:Vi,className:s,style:i,classNames:l,styles:u,unstyled:d,vars:f,varsResolver:ck,rootSelector:"group"});return y.jsx(he,{...x("group"),ref:t,variant:g,mod:[{"data-orientation":p},w],role:"group",...S})});Ih.classes=Vi;Ih.displayName="@mantine/core/ActionIconGroup";const o0={},dk=(e,{radius:t,color:r,gradient:s,variant:i,autoContrast:l,size:u})=>{const d=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:s,variant:i||"filled",autoContrast:l});return{groupSection:{"--section-height":Ke(u,"section-height"),"--section-padding-x":Ke(u,"section-padding-x"),"--section-fz":Ut(u),"--section-radius":t===void 0?void 0:Ct(t),"--section-bg":r||i?d.background:void 0,"--section-color":d.color,"--section-bd":r||i?d.border:void 0}}},Mh=Re((e,t)=>{const r=me("ActionIconGroupSection",o0,e),{className:s,style:i,classNames:l,styles:u,unstyled:d,vars:p,variant:f,gradient:m,radius:g,autoContrast:w,...S}=me("ActionIconGroupSection",o0,e),x=Ie({name:"ActionIconGroupSection",props:r,classes:Vi,className:s,style:i,classNames:l,styles:u,unstyled:d,vars:p,varsResolver:dk,rootSelector:"groupSection"});return y.jsx(he,{...x("groupSection"),ref:t,variant:f,...S})});Mh.classes=Vi;Mh.displayName="@mantine/core/ActionIconGroupSection";const fk={},pk=(e,{size:t,radius:r,variant:s,gradient:i,color:l,autoContrast:u})=>{const d=e.variantColorResolver({color:l||e.primaryColor,theme:e,gradient:i,variant:s||"filled",autoContrast:u});return{root:{"--ai-size":Ke(t,"ai-size"),"--ai-radius":r===void 0?void 0:Ct(r),"--ai-bg":l||s?d.background:void 0,"--ai-hover":l||s?d.hover:void 0,"--ai-hover-color":l||s?d.hoverColor:void 0,"--ai-color":d.color,"--ai-bd":l||s?d.border:void 0}}},hl=Rn((e,t)=>{const r=me("ActionIcon",fk,e),{className:s,unstyled:i,variant:l,classNames:u,styles:d,style:p,loading:f,loaderProps:m,size:g,color:w,radius:S,__staticSelector:x,gradient:b,vars:E,children:R,disabled:k,"data-disabled":P,autoContrast:T,mod:j,...O}=r,L=Ie({name:["ActionIcon",x],props:r,className:s,style:p,classes:Vi,classNames:u,styles:d,unstyled:i,vars:E,varsResolver:pk});return y.jsxs(Fo,{...L("root",{active:!k&&!f&&!P}),...O,unstyled:i,variant:l,size:g,disabled:k||f,ref:t,mod:[{loading:f,disabled:k||P},j],children:[y.jsx(Vo,{mounted:!!f,transition:"slide-down",duration:150,children:M=>y.jsx(he,{component:"span",...L("loader",{style:M}),"aria-hidden":!0,children:y.jsx(Uo,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...m})})}),y.jsx(he,{component:"span",mod:{loading:f},...L("icon"),children:R})]})});hl.classes=Vi;hl.displayName="@mantine/core/ActionIcon";hl.Group=Ih;hl.GroupSection=Mh;const Vw=C.forwardRef(({size:e="var(--cb-icon-size, 70%)",style:t,...r},s)=>y.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:e,height:e},ref:s,...r,children:y.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));Vw.displayName="@mantine/core/CloseIcon";var Bw={root:"m_86a44da5","root--subtle":"m_220c80f2"};const hk={variant:"subtle"},mk=(e,{size:t,radius:r,iconSize:s})=>({root:{"--cb-size":Ke(t,"cb-size"),"--cb-radius":r===void 0?void 0:Ct(r),"--cb-icon-size":se(s)}}),Bi=Rn((e,t)=>{const r=me("CloseButton",hk,e),{iconSize:s,children:i,vars:l,radius:u,className:d,classNames:p,style:f,styles:m,unstyled:g,"data-disabled":w,disabled:S,variant:x,icon:b,mod:E,__staticSelector:R,...k}=r,P=Ie({name:R||"CloseButton",props:r,className:d,style:f,classes:Bw,classNames:p,styles:m,unstyled:g,vars:l,varsResolver:mk});return y.jsxs(Fo,{ref:t,...k,unstyled:g,variant:x,disabled:S,mod:[{disabled:S||w},E],...P("root",{variant:x,active:!S&&!w}),children:[b||y.jsx(Vw,{}),i]})});Bi.classes=Bw;Bi.displayName="@mantine/core/CloseButton";function gk(e){return C.Children.toArray(e).filter(Boolean)}var Uw={root:"m_4081bf90"};const vk={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},yk=(e,{grow:t,preventGrowOverflow:r,gap:s,align:i,justify:l,wrap:u},{childWidth:d})=>({root:{"--group-child-width":t&&r?d:void 0,"--group-gap":$o(s),"--group-align":i,"--group-justify":l,"--group-wrap":u}}),yt=Re((e,t)=>{const r=me("Group",vk,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,children:p,gap:f,align:m,justify:g,wrap:w,grow:S,preventGrowOverflow:x,vars:b,variant:E,__size:R,mod:k,...P}=r,T=gk(p),j=T.length,O=$o(f??"md"),M={childWidth:`calc(${100/j}% - (${O} - ${O} / ${j}))`},Q=Ie({name:"Group",props:r,stylesCtx:M,className:i,style:l,classes:Uw,classNames:s,styles:u,unstyled:d,vars:b,varsResolver:yk});return y.jsx(he,{...Q("root"),ref:t,variant:E,mod:[{grow:S},k],size:R,...P,children:T})});yt.classes=Uw;yt.displayName="@mantine/core/Group";const[bk,wk]=bc({size:"sm"}),Sk={},Hw=Re((e,t)=>{const r=me("InputClearButton",Sk,e),{size:s,variant:i,vars:l,classNames:u,styles:d,...p}=r,f=wk(),{resolvedClassNames:m,resolvedStyles:g}=dl({classNames:u,styles:d,props:r});return y.jsx(Bi,{variant:i||"transparent",ref:t,size:s||(f==null?void 0:f.size)||"sm",classNames:m,styles:g,__staticSelector:"InputClearButton",...p})});Hw.displayName="@mantine/core/InputClearButton";const[xk,Ui]=bc({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var zn={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const s0={},Ck=(e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${Ut(t)} - ${se(2)})`}}),jc=Re((e,t)=>{const r=me("InputDescription",s0,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,size:f,__staticSelector:m,__inheritStyles:g=!0,variant:w,...S}=me("InputDescription",s0,r),x=Ui(),b=Ie({name:["InputWrapper",m],props:r,classes:zn,className:i,style:l,classNames:s,styles:u,unstyled:d,rootSelector:"description",vars:p,varsResolver:Ck}),E=g&&(x==null?void 0:x.getStyles)||b;return y.jsx(he,{component:"p",ref:t,variant:w,size:f,...E("description",x!=null&&x.getStyles?{className:i,style:l}:void 0),...S})});jc.classes=zn;jc.displayName="@mantine/core/InputDescription";const Ek={},Rk=(e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${Ut(t)} - ${se(2)})`}}),Oc=Re((e,t)=>{const r=me("InputError",Ek,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,size:f,__staticSelector:m,__inheritStyles:g=!0,variant:w,...S}=r,x=Ie({name:["InputWrapper",m],props:r,classes:zn,className:i,style:l,classNames:s,styles:u,unstyled:d,rootSelector:"error",vars:p,varsResolver:Rk}),b=Ui(),E=g&&(b==null?void 0:b.getStyles)||x;return y.jsx(he,{component:"p",ref:t,variant:w,size:f,...E("error",b!=null&&b.getStyles?{className:i,style:l}:void 0),...S})});Oc.classes=zn;Oc.displayName="@mantine/core/InputError";const i0={labelElement:"label"},_k=(e,{size:t})=>({label:{"--input-label-size":Ut(t),"--input-asterisk-color":void 0}}),Ac=Re((e,t)=>{const r=me("InputLabel",i0,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,labelElement:f,size:m,required:g,htmlFor:w,onMouseDown:S,children:x,__staticSelector:b,variant:E,mod:R,...k}=me("InputLabel",i0,r),P=Ie({name:["InputWrapper",b],props:r,classes:zn,className:i,style:l,classNames:s,styles:u,unstyled:d,rootSelector:"label",vars:p,varsResolver:_k}),T=Ui(),j=(T==null?void 0:T.getStyles)||P;return y.jsxs(he,{...j("label",T!=null&&T.getStyles?{className:i,style:l}:void 0),component:f,variant:E,size:m,ref:t,htmlFor:f==="label"?w:void 0,mod:[{required:g},R],onMouseDown:O=>{S==null||S(O),!O.defaultPrevented&&O.detail>1&&O.preventDefault()},...k,children:[x,g&&y.jsx("span",{...j("required"),"aria-hidden":!0,children:" *"})]})});Ac.classes=zn;Ac.displayName="@mantine/core/InputLabel";const a0={},$h=Re((e,t)=>{const r=me("InputPlaceholder",a0,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,__staticSelector:f,variant:m,error:g,mod:w,...S}=me("InputPlaceholder",a0,r),x=Ie({name:["InputPlaceholder",f],props:r,classes:zn,className:i,style:l,classNames:s,styles:u,unstyled:d,rootSelector:"placeholder"});return y.jsx(he,{...x("placeholder"),mod:[{error:!!g},w],component:"span",variant:m,ref:t,...S})});$h.classes=zn;$h.displayName="@mantine/core/InputPlaceholder";function Pk(e,{hasDescription:t,hasError:r}){const s=e.findIndex(p=>p==="input"),i=e.slice(0,s),l=e.slice(s+1),u=t&&i.includes("description")||r&&i.includes("error");return{offsetBottom:t&&l.includes("description")||r&&l.includes("error"),offsetTop:u}}const kk={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},Tk=(e,{size:t})=>({label:{"--input-label-size":Ut(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${Ut(t)} - ${se(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${Ut(t)} - ${se(2)})`}}),Lh=Re((e,t)=>{const r=me("InputWrapper",kk,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,size:f,variant:m,__staticSelector:g,inputContainer:w,inputWrapperOrder:S,label:x,error:b,description:E,labelProps:R,descriptionProps:k,errorProps:P,labelElement:T,children:j,withAsterisk:O,id:L,required:M,__stylesApiProps:Q,mod:q,...te}=r,ee=Ie({name:["InputWrapper",g],props:Q||r,classes:zn,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:Tk}),ne={size:f,variant:m,__staticSelector:g},G=Jr(L),Z=typeof O=="boolean"?O:M,B=(P==null?void 0:P.id)||`${G}-error`,U=(k==null?void 0:k.id)||`${G}-description`,A=G,V=!!b&&typeof b!="boolean",W=!!E,N=`${V?B:""} ${W?U:""}`,F=N.trim().length>0?N.trim():void 0,le=(R==null?void 0:R.id)||`${G}-label`,ye=x&&y.jsx(Ac,{labelElement:T,id:le,htmlFor:A,required:Z,...ne,...R,children:x},"label"),X=W&&y.jsx(jc,{...k,...ne,size:(k==null?void 0:k.size)||ne.size,id:(k==null?void 0:k.id)||U,children:E},"description"),re=y.jsx(C.Fragment,{children:w(j)},"input"),ve=V&&C.createElement(Oc,{...P,...ne,size:(P==null?void 0:P.size)||ne.size,key:"error",id:(P==null?void 0:P.id)||B},b),fe=S.map(we=>{switch(we){case"label":return ye;case"input":return re;case"description":return X;case"error":return ve;default:return null}});return y.jsx(xk,{value:{getStyles:ee,describedBy:F,inputId:A,labelId:le,...Pk(S,{hasDescription:W,hasError:V})},children:y.jsx(he,{ref:t,variant:m,size:f,mod:[{error:!!b},q],...ee("root"),...te,children:fe})})});Lh.classes=zn;Lh.displayName="@mantine/core/InputWrapper";const Nk={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},jk=(e,t,r)=>({wrapper:{"--input-margin-top":r.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":r.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":Ke(t.size,"input-height"),"--input-fz":Ut(t.size),"--input-radius":t.radius===void 0?void 0:Ct(t.radius),"--input-left-section-width":t.leftSectionWidth!==void 0?se(t.leftSectionWidth):void 0,"--input-right-section-width":t.rightSectionWidth!==void 0?se(t.rightSectionWidth):void 0,"--input-padding-y":t.multiline?Ke(t.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}}),Mt=Rn((e,t)=>{const r=me("Input",Nk,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,required:p,__staticSelector:f,__stylesApiProps:m,size:g,wrapperProps:w,error:S,disabled:x,leftSection:b,leftSectionProps:E,leftSectionWidth:R,rightSection:k,rightSectionProps:P,rightSectionWidth:T,rightSectionPointerEvents:j,leftSectionPointerEvents:O,variant:L,vars:M,pointer:Q,multiline:q,radius:te,id:ee,withAria:ne,withErrorStyles:G,mod:Z,inputSize:B,__clearSection:U,__clearable:A,__defaultRightSection:V,...W}=r,{styleProps:N,rest:F}=fl(W),le=Ui(),ye={offsetBottom:le==null?void 0:le.offsetBottom,offsetTop:le==null?void 0:le.offsetTop},X=Ie({name:["Input",f],props:m||r,classes:zn,className:i,style:l,classNames:s,styles:u,unstyled:d,stylesCtx:ye,rootSelector:"wrapper",vars:M,varsResolver:jk}),re=ne?{required:p,disabled:x,"aria-invalid":!!S,"aria-describedby":le==null?void 0:le.describedBy,id:(le==null?void 0:le.inputId)||ee}:{},ve=k||A&&U||V;return y.jsx(bk,{value:{size:g||"sm"},children:y.jsxs(he,{...X("wrapper"),...N,...w,mod:[{error:!!S&&G,pointer:Q,disabled:x,multiline:q,"data-with-right-section":!!ve,"data-with-left-section":!!b},Z],variant:L,size:g,children:[b&&y.jsx("div",{...E,"data-position":"left",...X("section",{className:E==null?void 0:E.className,style:E==null?void 0:E.style}),children:b}),y.jsx(he,{component:"input",...F,...re,ref:t,required:p,mod:{disabled:x,error:!!S&&G},variant:L,__size:B,...X("input")}),ve&&y.jsx("div",{...P,"data-position":"right",...X("section",{className:P==null?void 0:P.className,style:P==null?void 0:P.style}),children:ve})]})})});Mt.classes=zn;Mt.Wrapper=Lh;Mt.Label=Ac;Mt.Error=Oc;Mt.Description=jc;Mt.Placeholder=$h;Mt.ClearButton=Hw;Mt.displayName="@mantine/core/Input";function Ok(e,t,r){const s=me(e,t,r),{label:i,description:l,error:u,required:d,classNames:p,styles:f,className:m,unstyled:g,__staticSelector:w,__stylesApiProps:S,errorProps:x,labelProps:b,descriptionProps:E,wrapperProps:R,id:k,size:P,style:T,inputContainer:j,inputWrapperOrder:O,withAsterisk:L,variant:M,vars:Q,mod:q,...te}=s,{styleProps:ee,rest:ne}=fl(te),G={label:i,description:l,error:u,required:d,classNames:p,className:m,__staticSelector:w,__stylesApiProps:S||s,errorProps:x,labelProps:b,descriptionProps:E,unstyled:g,styles:f,size:P,style:T,inputContainer:j,inputWrapperOrder:O,withAsterisk:L,variant:M,id:k,mod:q,...R};return{...ne,classNames:p,styles:f,unstyled:g,wrapperProps:{...G,...ee},inputProps:{required:d,classNames:p,styles:f,unstyled:g,size:P,__staticSelector:w,__stylesApiProps:S||s,error:u,variant:M,id:k}}}const Ak={__staticSelector:"InputBase",withAria:!0},xr=Rn((e,t)=>{const{inputProps:r,wrapperProps:s,...i}=Ok("InputBase",Ak,e);return y.jsx(Mt.Wrapper,{...s,children:y.jsx(Mt,{...r,...i,ref:t})})});xr.classes={...Mt.classes,...Mt.Wrapper.classes};xr.displayName="@mantine/core/InputBase";var Ww={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const Dk={},Ik=(e,{radius:t,color:r,variant:s,autoContrast:i})=>{const l=e.variantColorResolver({color:r||e.primaryColor,theme:e,variant:s||"light",autoContrast:i});return{root:{"--alert-radius":t===void 0?void 0:Ct(t),"--alert-bg":r||s?l.background:void 0,"--alert-color":l.color,"--alert-bd":r||s?l.border:void 0}}},Dc=Re((e,t)=>{const r=me("Alert",Dk,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,radius:f,color:m,title:g,children:w,id:S,icon:x,withCloseButton:b,onClose:E,closeButtonLabel:R,variant:k,autoContrast:P,...T}=r,j=Ie({name:"Alert",classes:Ww,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:Ik}),O=Jr(S),L=g&&`${O}-title`||void 0,M=`${O}-body`;return y.jsx(he,{id:O,...j("root",{variant:k}),variant:k,ref:t,...T,role:"alert","aria-describedby":M,"aria-labelledby":L,children:y.jsxs("div",{...j("wrapper"),children:[x&&y.jsx("div",{...j("icon"),children:x}),y.jsxs("div",{...j("body"),children:[g&&y.jsx("div",{...j("title"),"data-with-close-button":b||void 0,children:y.jsx("span",{id:L,...j("label"),children:g})}),w&&y.jsx("div",{id:M,...j("message"),"data-variant":k,children:w})]}),b&&y.jsx(Bi,{...j("closeButton"),onClick:E,variant:"transparent",size:16,iconSize:16,"aria-label":R,unstyled:d})]})})});Dc.classes=Ww;Dc.displayName="@mantine/core/Alert";var Qw={root:"m_b6d8b162"};function Mk(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const $k={inherit:!1},Lk=(e,{variant:t,lineClamp:r,gradient:s,size:i,color:l})=>({root:{"--text-fz":Ut(i),"--text-lh":Tb(i),"--text-gradient":t==="gradient"?mp(s,e):void 0,"--text-line-clamp":typeof r=="number"?r.toString():void 0,"--text-color":l?It(l,e):void 0}}),at=Rn((e,t)=>{const r=me("Text",$k,e),{lineClamp:s,truncate:i,inline:l,inherit:u,gradient:d,span:p,__staticSelector:f,vars:m,className:g,style:w,classNames:S,styles:x,unstyled:b,variant:E,mod:R,size:k,...P}=r,T=Ie({name:["Text",f],props:r,classes:Qw,className:g,style:w,classNames:S,styles:x,unstyled:b,vars:m,varsResolver:Lk});return y.jsx(he,{...T("root",{focusable:!0}),ref:t,component:p?"span":"p",variant:E,mod:[{"data-truncate":Mk(i),"data-line-clamp":typeof s=="number","data-inline":l,"data-inherit":u},R],size:k,...P})});at.classes=Qw;at.displayName="@mantine/core/Text";var qw={root:"m_849cf0da"};const Fk={underline:"hover"},Hr=Rn((e,t)=>{const{underline:r,className:s,unstyled:i,mod:l,...u}=me("Anchor",Fk,e);return y.jsx(at,{component:"a",ref:t,className:En({[qw.root]:!i},s),...u,mod:[{underline:r},l],__staticSelector:"Anchor",unstyled:i})});Hr.classes=qw;Hr.displayName="@mantine/core/Anchor";function Kw(e){return typeof e=="string"?{value:e,label:e}:"value"in e&&!("label"in e)?{value:e.value,label:e.value,disabled:e.disabled}:typeof e=="number"?{value:e.toString(),label:e.toString()}:"group"in e?{group:e.group,items:e.items.map(t=>Kw(t))}:e}function Gw(e){return e?e.map(t=>Kw(t)):[]}function Fh(e){return e.reduce((t,r)=>"group"in r?{...t,...Fh(r.items)}:(t[r.value]=r,t),{})}var gn={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const zk={error:null},Vk=(e,{size:t,color:r})=>({chevron:{"--combobox-chevron-size":Ke(t,"combobox-chevron-size"),"--combobox-chevron-color":r?It(r,e):void 0}}),zh=Re((e,t)=>{const r=me("ComboboxChevron",zk,e),{size:s,error:i,style:l,className:u,classNames:d,styles:p,unstyled:f,vars:m,mod:g,...w}=r,S=Ie({name:"ComboboxChevron",classes:gn,props:r,style:l,className:u,classNames:d,styles:p,unstyled:f,vars:m,varsResolver:Vk,rootSelector:"chevron"});return y.jsx(he,{component:"svg",...w,...S("chevron"),size:s,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:i},g],ref:t,children:y.jsx("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:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});zh.classes=gn;zh.displayName="@mantine/core/ComboboxChevron";const[Bk,Vn]=Yr("Combobox component was not found in tree"),Xw=C.forwardRef(({size:e,onMouseDown:t,onClick:r,onClear:s,...i},l)=>y.jsx(Mt.ClearButton,{ref:l,tabIndex:-1,"aria-hidden":!0,...i,onMouseDown:u=>{u.preventDefault(),t==null||t(u)},onClick:u=>{s(),r==null||r(u)}}));Xw.displayName="@mantine/core/ComboboxClearButton";const Uk={},Vh=Re((e,t)=>{const{classNames:r,styles:s,className:i,style:l,hidden:u,...d}=me("ComboboxDropdown",Uk,e),p=Vn();return y.jsx(Bo.Dropdown,{...d,ref:t,role:"presentation","data-hidden":u||void 0,...p.getStyles("dropdown",{className:i,style:l,classNames:r,styles:s})})});Vh.classes=gn;Vh.displayName="@mantine/core/ComboboxDropdown";const Hk={refProp:"ref"},Yw=Re((e,t)=>{const{children:r,refProp:s}=me("ComboboxDropdownTarget",Hk,e);if(Vn(),!Ns(r))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return y.jsx(Bo.Target,{ref:t,refProp:s,children:r})});Yw.displayName="@mantine/core/ComboboxDropdownTarget";const Wk={},Bh=Re((e,t)=>{const{classNames:r,className:s,style:i,styles:l,vars:u,...d}=me("ComboboxEmpty",Wk,e),p=Vn();return y.jsx(he,{ref:t,...p.getStyles("empty",{className:s,classNames:r,styles:l,style:i}),...d})});Bh.classes=gn;Bh.displayName="@mantine/core/ComboboxEmpty";function Uh({onKeyDown:e,withKeyboardNavigation:t,withAriaAttributes:r,withExpandedAttribute:s,targetType:i,autoComplete:l}){const u=Vn(),[d,p]=C.useState(null),f=g=>{if(e==null||e(g),!u.readOnly&&t){if(g.nativeEvent.isComposing)return;if(g.nativeEvent.code==="ArrowDown"&&(g.preventDefault(),u.store.dropdownOpened?p(u.store.selectNextOption()):(u.store.openDropdown("keyboard"),p(u.store.selectActiveOption()),u.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),g.nativeEvent.code==="ArrowUp"&&(g.preventDefault(),u.store.dropdownOpened?p(u.store.selectPreviousOption()):(u.store.openDropdown("keyboard"),p(u.store.selectActiveOption()),u.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),g.nativeEvent.code==="Enter"||g.nativeEvent.code==="NumpadEnter"){if(g.nativeEvent.keyCode===229)return;const w=u.store.getSelectedOptionIndex();u.store.dropdownOpened&&w!==-1?(g.preventDefault(),u.store.clickSelectedOption()):i==="button"&&(g.preventDefault(),u.store.openDropdown("keyboard"))}g.key==="Escape"&&u.store.closeDropdown("keyboard"),g.nativeEvent.code==="Space"&&i==="button"&&(g.preventDefault(),u.store.toggleDropdown("keyboard"))}};return{...r?{"aria-haspopup":"listbox","aria-expanded":s&&!!(u.store.listId&&u.store.dropdownOpened)||void 0,"aria-controls":u.store.dropdownOpened?u.store.listId:void 0,"aria-activedescendant":u.store.dropdownOpened&&d||void 0,autoComplete:l,"data-expanded":u.store.dropdownOpened||void 0,"data-mantine-stop-propagation":u.store.dropdownOpened||void 0}:{},onKeyDown:f}}const Qk={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},Jw=Re((e,t)=>{const{children:r,refProp:s,withKeyboardNavigation:i,withAriaAttributes:l,withExpandedAttribute:u,targetType:d,autoComplete:p,...f}=me("ComboboxEventsTarget",Qk,e);if(!Ns(r))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const m=Vn(),g=Uh({targetType:d,withAriaAttributes:l,withKeyboardNavigation:i,withExpandedAttribute:u,onKeyDown:r.props.onKeyDown,autoComplete:p});return C.cloneElement(r,{...g,...f,[s]:$t(t,m.store.targetRef,wc(r))})});Jw.displayName="@mantine/core/ComboboxEventsTarget";const qk={},Hh=Re((e,t)=>{const{classNames:r,className:s,style:i,styles:l,vars:u,...d}=me("ComboboxFooter",qk,e),p=Vn();return y.jsx(he,{ref:t,...p.getStyles("footer",{className:s,classNames:r,style:i,styles:l}),...d,onMouseDown:f=>{f.preventDefault()}})});Hh.classes=gn;Hh.displayName="@mantine/core/ComboboxFooter";const Kk={},Wh=Re((e,t)=>{const{classNames:r,className:s,style:i,styles:l,vars:u,children:d,label:p,...f}=me("ComboboxGroup",Kk,e),m=Vn();return y.jsxs(he,{ref:t,...m.getStyles("group",{className:s,classNames:r,style:i,styles:l}),...f,children:[p&&y.jsx("div",{...m.getStyles("groupLabel",{classNames:r,styles:l}),children:p}),d]})});Wh.classes=gn;Wh.displayName="@mantine/core/ComboboxGroup";const Gk={},Qh=Re((e,t)=>{const{classNames:r,className:s,style:i,styles:l,vars:u,...d}=me("ComboboxHeader",Gk,e),p=Vn();return y.jsx(he,{ref:t,...p.getStyles("header",{className:s,classNames:r,style:i,styles:l}),...d,onMouseDown:f=>{f.preventDefault()}})});Qh.classes=gn;Qh.displayName="@mantine/core/ComboboxHeader";function Zw({value:e,valuesDivider:t=",",...r}){return y.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(t):e||"",...r})}Zw.displayName="@mantine/core/ComboboxHiddenInput";const Xk={},qh=Re((e,t)=>{const r=me("ComboboxOption",Xk,e),{classNames:s,className:i,style:l,styles:u,vars:d,onClick:p,id:f,active:m,onMouseDown:g,onMouseOver:w,disabled:S,selected:x,mod:b,...E}=r,R=Vn(),k=C.useId(),P=f||k;return y.jsx(he,{...R.getStyles("option",{className:i,classNames:s,styles:u,style:l}),...E,ref:t,id:P,mod:["combobox-option",{"combobox-active":m,"combobox-disabled":S,"combobox-selected":x},b],role:"option",onClick:T=>{var j;S?T.preventDefault():((j=R.onOptionSubmit)==null||j.call(R,r.value,r),p==null||p(T))},onMouseDown:T=>{T.preventDefault(),g==null||g(T)},onMouseOver:T=>{R.resetSelectionOnOptionHover&&R.store.resetSelectedOption(),w==null||w(T)}})});qh.classes=gn;qh.displayName="@mantine/core/ComboboxOption";const Yk={},Kh=Re((e,t)=>{const r=me("ComboboxOptions",Yk,e),{classNames:s,className:i,style:l,styles:u,id:d,onMouseDown:p,labelledBy:f,...m}=r,g=Vn(),w=Jr(d);return C.useEffect(()=>{g.store.setListId(w)},[w]),y.jsx(he,{ref:t,...g.getStyles("options",{className:i,style:l,classNames:s,styles:u}),...m,id:w,role:"listbox","aria-labelledby":f,onMouseDown:S=>{S.preventDefault(),p==null||p(S)}})});Kh.classes=gn;Kh.displayName="@mantine/core/ComboboxOptions";const Jk={withAriaAttributes:!0,withKeyboardNavigation:!0},Gh=Re((e,t)=>{const r=me("ComboboxSearch",Jk,e),{classNames:s,styles:i,unstyled:l,vars:u,withAriaAttributes:d,onKeyDown:p,withKeyboardNavigation:f,size:m,...g}=r,w=Vn(),S=w.getStyles("search"),x=Uh({targetType:"input",withAriaAttributes:d,withKeyboardNavigation:f,withExpandedAttribute:!1,onKeyDown:p,autoComplete:"off"});return y.jsx(Mt,{ref:$t(t,w.store.searchRef),classNames:[{input:S.className},s],styles:[{input:S.style},i],size:m||w.size,...x,...g,__staticSelector:"Combobox"})});Gh.classes=gn;Gh.displayName="@mantine/core/ComboboxSearch";const Zk={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},eS=Re((e,t)=>{const{children:r,refProp:s,withKeyboardNavigation:i,withAriaAttributes:l,withExpandedAttribute:u,targetType:d,autoComplete:p,...f}=me("ComboboxTarget",Zk,e);if(!Ns(r))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const m=Vn(),g=Uh({targetType:d,withAriaAttributes:l,withKeyboardNavigation:i,withExpandedAttribute:u,onKeyDown:r.props.onKeyDown,autoComplete:p}),w=C.cloneElement(r,{...g,...f});return y.jsx(Bo.Target,{ref:$t(t,m.store.targetRef),children:w})});eS.displayName="@mantine/core/ComboboxTarget";function eT(e,t,r){for(let s=e-1;s>=0;s-=1)if(!t[s].hasAttribute("data-combobox-disabled"))return s;if(r){for(let s=t.length-1;s>-1;s-=1)if(!t[s].hasAttribute("data-combobox-disabled"))return s}return e}function tT(e,t,r){for(let s=e+1;s<t.length;s+=1)if(!t[s].hasAttribute("data-combobox-disabled"))return s;if(r){for(let s=0;s<t.length;s+=1)if(!t[s].hasAttribute("data-combobox-disabled"))return s}return e}function nT(e){for(let t=0;t<e.length;t+=1)if(!e[t].hasAttribute("data-combobox-disabled"))return t;return-1}function Xh({defaultOpened:e,opened:t,onOpenedChange:r,onDropdownClose:s,onDropdownOpen:i,loop:l=!0,scrollBehavior:u="instant"}={}){const[d,p]=$n({value:t,defaultValue:e,finalValue:!1,onChange:r}),f=C.useRef(null),m=C.useRef(-1),g=C.useRef(null),w=C.useRef(null),S=C.useRef(-1),x=C.useRef(-1),b=C.useRef(-1),E=C.useCallback((B="unknown")=>{d||(p(!0),i==null||i(B))},[p,i,d]),R=C.useCallback((B="unknown")=>{d&&(p(!1),s==null||s(B))},[p,s,d]),k=C.useCallback((B="unknown")=>{d?R(B):E(B)},[R,E,d]),P=C.useCallback(()=>{const B=document.querySelector(`#${f.current} [data-combobox-selected]`);B==null||B.removeAttribute("data-combobox-selected"),B==null||B.removeAttribute("aria-selected")},[]),T=C.useCallback(B=>{const U=document.getElementById(f.current),A=U==null?void 0:U.querySelectorAll("[data-combobox-option]");if(!A)return null;const V=B>=A.length?0:B<0?A.length-1:B;return m.current=V,A!=null&&A[V]&&!A[V].hasAttribute("data-combobox-disabled")?(P(),A[V].setAttribute("data-combobox-selected","true"),A[V].setAttribute("aria-selected","true"),A[V].scrollIntoView({block:"nearest",behavior:u}),A[V].id):null},[u,P]),j=C.useCallback(()=>{const B=document.querySelector(`#${f.current} [data-combobox-active]`);if(B){const U=document.querySelectorAll(`#${f.current} [data-combobox-option]`),A=Array.from(U).findIndex(V=>V===B);return T(A)}return T(0)},[T]),O=C.useCallback(()=>T(tT(m.current,document.querySelectorAll(`#${f.current} [data-combobox-option]`),l)),[T,l]),L=C.useCallback(()=>T(eT(m.current,document.querySelectorAll(`#${f.current} [data-combobox-option]`),l)),[T,l]),M=C.useCallback(()=>T(nT(document.querySelectorAll(`#${f.current} [data-combobox-option]`))),[T]),Q=C.useCallback((B="selected",U)=>{b.current=window.setTimeout(()=>{var W;const A=document.querySelectorAll(`#${f.current} [data-combobox-option]`),V=Array.from(A).findIndex(N=>N.hasAttribute(`data-combobox-${B}`));m.current=V,U!=null&&U.scrollIntoView&&((W=A[V])==null||W.scrollIntoView({block:"nearest",behavior:u}))},0)},[]),q=C.useCallback(()=>{m.current=-1,P()},[P]),te=C.useCallback(()=>{const B=document.querySelectorAll(`#${f.current} [data-combobox-option]`),U=B==null?void 0:B[m.current];U==null||U.click()},[]),ee=C.useCallback(B=>{f.current=B},[]),ne=C.useCallback(()=>{S.current=window.setTimeout(()=>g.current.focus(),0)},[]),G=C.useCallback(()=>{x.current=window.setTimeout(()=>w.current.focus(),0)},[]),Z=C.useCallback(()=>m.current,[]);return C.useEffect(()=>()=>{window.clearTimeout(S.current),window.clearTimeout(x.current),window.clearTimeout(b.current)},[]),{dropdownOpened:d,openDropdown:E,closeDropdown:R,toggleDropdown:k,selectedOptionIndex:m.current,getSelectedOptionIndex:Z,selectOption:T,selectFirstOption:M,selectActiveOption:j,selectNextOption:O,selectPreviousOption:L,resetSelectedOption:q,updateSelectedOptionIndex:Q,listId:f.current,setListId:ee,clickSelectedOption:te,searchRef:g,focusSearchInput:ne,targetRef:w,focusTarget:G}}const rT={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0}},oT=(e,{size:t,dropdownPadding:r})=>({options:{"--combobox-option-fz":Ut(t),"--combobox-option-padding":Ke(t,"combobox-option-padding")},dropdown:{"--combobox-padding":r===void 0?void 0:se(r),"--combobox-option-fz":Ut(t),"--combobox-option-padding":Ke(t,"combobox-option-padding")}});function Ye(e){const t=me("Combobox",rT,e),{classNames:r,styles:s,unstyled:i,children:l,store:u,vars:d,onOptionSubmit:p,onClose:f,size:m,dropdownPadding:g,resetSelectionOnOptionHover:w,__staticSelector:S,readOnly:x,...b}=t,E=Xh(),R=u||E,k=Ie({name:S||"Combobox",classes:gn,props:t,classNames:r,styles:s,unstyled:i,vars:d,varsResolver:oT}),P=()=>{f==null||f(),R.closeDropdown()};return y.jsx(Bk,{value:{getStyles:k,store:R,onOptionSubmit:p,size:m,resetSelectionOnOptionHover:w,readOnly:x},children:y.jsx(Bo,{opened:R.dropdownOpened,...b,onChange:T=>!T&&P(),withRoles:!1,unstyled:i,children:l})})}const sT=e=>e;Ye.extend=sT;Ye.classes=gn;Ye.displayName="@mantine/core/Combobox";Ye.Target=eS;Ye.Dropdown=Vh;Ye.Options=Kh;Ye.Option=qh;Ye.Search=Gh;Ye.Empty=Bh;Ye.Chevron=zh;Ye.Footer=Hh;Ye.Header=Qh;Ye.EventsTarget=Jw;Ye.DropdownTarget=Yw;Ye.Group=Wh;Ye.ClearButton=Xw;Ye.HiddenInput=Zw;var tS={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};const iT=tS,nS=C.forwardRef(({__staticSelector:e,__stylesApiProps:t,className:r,classNames:s,styles:i,unstyled:l,children:u,label:d,description:p,id:f,disabled:m,error:g,size:w,labelPosition:S="left",bodyElement:x="div",labelElement:b="label",variant:E,style:R,vars:k,mod:P,...T},j)=>{const O=Ie({name:e,props:t,className:r,style:R,classes:tS,classNames:s,styles:i,unstyled:l});return y.jsx(he,{...O("root"),ref:j,__vars:{"--label-fz":Ut(w),"--label-lh":Ke(w,"label-lh")},mod:[{"label-position":S},P],variant:E,size:w,...T,children:y.jsxs(he,{component:x,htmlFor:x==="label"?f:void 0,...O("body"),children:[u,y.jsxs("div",{...O("labelWrapper"),"data-disabled":m||void 0,children:[d&&y.jsx(he,{component:b,htmlFor:b==="label"?f:void 0,...O("label"),"data-disabled":m||void 0,children:d}),p&&y.jsx(Mt.Description,{size:w,__inheritStyles:!1,...O("description"),children:p}),g&&typeof g!="boolean"&&y.jsx(Mt.Error,{size:w,__inheritStyles:!1,...O("error"),children:g})]})]})})});nS.displayName="@mantine/core/InlineInput";function aT({children:e,role:t}){const r=Ui();return r?y.jsx("div",{role:t,"aria-labelledby":r.labelId,"aria-describedby":r.describedBy,children:e}):y.jsx(y.Fragment,{children:e})}function lT({size:e,style:t,...r}){const s=e!==void 0?{width:se(e),height:se(e),...t}:t;return y.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:s,"aria-hidden":!0,...r,children:y.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Di(e){return"group"in e}function rS({options:e,search:t,limit:r}){const s=t.trim().toLowerCase(),i=[];for(let l=0;l<e.length;l+=1){const u=e[l];if(i.length===r)return i;Di(u)&&i.push({group:u.group,items:rS({options:u.items,search:t,limit:r-i.length})}),Di(u)||u.label.toLowerCase().includes(s)&&i.push(u)}return i}function uT(e){if(e.length===0)return!0;for(const t of e)if(!("group"in t)||t.items.length>0)return!1;return!0}function oS(e,t=new Set){if(Array.isArray(e))for(const r of e)if(Di(r))oS(r.items,t);else{if(typeof r.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(typeof r.value!="string")throw new Error(`[@mantine/core] Option value must be a string, other data formats are not supported, got ${typeof r.value}`);if(t.has(r.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${r.value}" was provided more than once`);t.add(r.value)}}function cT(e,t){return Array.isArray(e)?e.includes(t):e===t}function sS({data:e,withCheckIcon:t,value:r,checkIconPosition:s,unstyled:i,renderOption:l}){if(!Di(e)){const d=cT(r,e.value),p=t&&d&&y.jsx(lT,{className:gn.optionsDropdownCheckIcon}),f=y.jsxs(y.Fragment,{children:[s==="left"&&p,y.jsx("span",{children:e.label}),s==="right"&&p]});return y.jsx(Ye.Option,{value:e.value,disabled:e.disabled,className:En({[gn.optionsDropdownOption]:!i}),"data-reverse":s==="right"||void 0,"data-checked":d||void 0,"aria-selected":d,active:d,children:typeof l=="function"?l({option:e,checked:d}):f})}const u=e.items.map(d=>y.jsx(sS,{data:d,value:r,unstyled:i,withCheckIcon:t,checkIconPosition:s,renderOption:l},d.value));return y.jsx(Ye.Group,{label:e.group,children:u})}function iS({data:e,hidden:t,hiddenWhenEmpty:r,filter:s,search:i,limit:l,maxDropdownHeight:u,withScrollArea:d=!0,filterOptions:p=!0,withCheckIcon:f=!1,value:m,checkIconPosition:g,nothingFoundMessage:w,unstyled:S,labelId:x,renderOption:b,scrollAreaProps:E,"aria-label":R}){oS(e);const P=typeof i=="string"?(s||rS)({options:e,search:p?i:"",limit:l??1/0}):e,T=uT(P),j=P.map(O=>y.jsx(sS,{data:O,withCheckIcon:f,value:m,checkIconPosition:g,unstyled:S,renderOption:b},Di(O)?O.group:O.value));return y.jsx(Ye.Dropdown,{hidden:t||r&&T,"data-composed":!0,children:y.jsxs(Ye.Options,{labelledBy:x,"aria-label":R,children:[d?y.jsx(Os.Autosize,{mah:u??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...E,children:j}):j,T&&w&&y.jsx(Ye.Empty,{children:w})]})})}var aS={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const dT={},fT=(e,{radius:t,color:r,gradient:s,variant:i,size:l,autoContrast:u})=>{const d=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:s,variant:i||"filled",autoContrast:u});return{root:{"--badge-height":Ke(l,"badge-height"),"--badge-padding-x":Ke(l,"badge-padding-x"),"--badge-fz":Ke(l,"badge-fz"),"--badge-radius":t===void 0?void 0:Ct(t),"--badge-bg":r||i?d.background:void 0,"--badge-color":r||i?d.color:void 0,"--badge-bd":r||i?d.border:void 0,"--badge-dot-color":i==="dot"?It(r,e):void 0}}},Yh=Rn((e,t)=>{const r=me("Badge",dT,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,radius:f,color:m,gradient:g,leftSection:w,rightSection:S,children:x,variant:b,fullWidth:E,autoContrast:R,circle:k,mod:P,...T}=r,j=Ie({name:"Badge",props:r,classes:aS,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:fT});return y.jsxs(he,{variant:b,mod:[{block:E,circle:k,"with-right-section":!!S,"with-left-section":!!w},P],...j("root",{variant:b}),ref:t,...T,children:[w&&y.jsx("span",{...j("section"),"data-position":"left",children:w}),y.jsx("span",{...j("label"),children:x}),S&&y.jsx("span",{...j("section"),"data-position":"right",children:S})]})});Yh.classes=aS;Yh.displayName="@mantine/core/Badge";var Hi={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const l0={orientation:"horizontal"},pT=(e,{borderWidth:t})=>({group:{"--button-border-width":se(t)}}),Jh=Re((e,t)=>{const r=me("ButtonGroup",l0,e),{className:s,style:i,classNames:l,styles:u,unstyled:d,orientation:p,vars:f,borderWidth:m,variant:g,mod:w,...S}=me("ButtonGroup",l0,e),x=Ie({name:"ButtonGroup",props:r,classes:Hi,className:s,style:i,classNames:l,styles:u,unstyled:d,vars:f,varsResolver:pT,rootSelector:"group"});return y.jsx(he,{...x("group"),ref:t,variant:g,mod:[{"data-orientation":p},w],role:"group",...S})});Jh.classes=Hi;Jh.displayName="@mantine/core/ButtonGroup";const u0={},hT=(e,{radius:t,color:r,gradient:s,variant:i,autoContrast:l,size:u})=>{const d=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:s,variant:i||"filled",autoContrast:l});return{groupSection:{"--section-height":Ke(u,"section-height"),"--section-padding-x":Ke(u,"section-padding-x"),"--section-fz":u!=null&&u.includes("compact")?Ut(u.replace("compact-","")):Ut(u),"--section-radius":t===void 0?void 0:Ct(t),"--section-bg":r||i?d.background:void 0,"--section-color":d.color,"--section-bd":r||i?d.border:void 0}}},Zh=Re((e,t)=>{const r=me("ButtonGroupSection",u0,e),{className:s,style:i,classNames:l,styles:u,unstyled:d,vars:p,variant:f,gradient:m,radius:g,autoContrast:w,...S}=me("ButtonGroupSection",u0,e),x=Ie({name:"ButtonGroupSection",props:r,classes:Hi,className:s,style:i,classNames:l,styles:u,unstyled:d,vars:p,varsResolver:hT,rootSelector:"groupSection"});return y.jsx(he,{...x("groupSection"),ref:t,variant:f,...S})});Zh.classes=Hi;Zh.displayName="@mantine/core/ButtonGroupSection";const mT={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${se(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},gT={},vT=(e,{radius:t,color:r,gradient:s,variant:i,size:l,justify:u,autoContrast:d})=>{const p=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:s,variant:i||"filled",autoContrast:d});return{root:{"--button-justify":u,"--button-height":Ke(l,"button-height"),"--button-padding-x":Ke(l,"button-padding-x"),"--button-fz":l!=null&&l.includes("compact")?Ut(l.replace("compact-","")):Ut(l),"--button-radius":t===void 0?void 0:Ct(t),"--button-bg":r||i?p.background:void 0,"--button-hover":r||i?p.hover:void 0,"--button-color":p.color,"--button-bd":r||i?p.border:void 0,"--button-hover-color":r||i?p.hoverColor:void 0}}},Mn=Rn((e,t)=>{const r=me("Button",gT,e),{style:s,vars:i,className:l,color:u,disabled:d,children:p,leftSection:f,rightSection:m,fullWidth:g,variant:w,radius:S,loading:x,loaderProps:b,gradient:E,classNames:R,styles:k,unstyled:P,"data-disabled":T,autoContrast:j,mod:O,...L}=r,M=Ie({name:"Button",props:r,classes:Hi,className:l,style:s,classNames:R,styles:k,unstyled:P,vars:i,varsResolver:vT}),Q=!!f,q=!!m;return y.jsxs(Fo,{ref:t,...M("root",{active:!d&&!x&&!T}),unstyled:P,variant:w,disabled:d||x,mod:[{disabled:d||T,loading:x,block:g,"with-left-section":Q,"with-right-section":q},O],...L,children:[y.jsx(Vo,{mounted:!!x,transition:mT,duration:150,children:te=>y.jsx(he,{component:"span",...M("loader",{style:te}),"aria-hidden":!0,children:y.jsx(Uo,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...b})})}),y.jsxs("span",{...M("inner"),children:[f&&y.jsx(he,{component:"span",...M("section"),mod:{position:"left"},children:f}),y.jsx(he,{component:"span",mod:{loading:x},...M("label"),children:p}),m&&y.jsx(he,{component:"span",...M("section"),mod:{position:"right"},children:m})]})]})});Mn.classes=Hi;Mn.displayName="@mantine/core/Button";Mn.Group=Jh;Mn.GroupSection=Zh;var lS={root:"m_de3d2490",colorOverlay:"m_862f3d1b",shadowOverlay:"m_98ae7f22",alphaOverlay:"m_95709ac0",childrenOverlay:"m_93e74e3"};const c0={withShadow:!0},yT=(e,{radius:t,size:r})=>({root:{"--cs-radius":t===void 0?void 0:Ct(t),"--cs-size":se(r)}}),Wa=Rn((e,t)=>{const r=me("ColorSwatch",c0,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,color:f,size:m,radius:g,withShadow:w,children:S,variant:x,...b}=me("ColorSwatch",c0,r),E=Ie({name:"ColorSwatch",props:r,classes:lS,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:yT});return y.jsxs(he,{ref:t,variant:x,size:m,...E("root",{focusable:!0}),...b,children:[y.jsx("span",{...E("alphaOverlay")}),w&&y.jsx("span",{...E("shadowOverlay")}),y.jsx("span",{...E("colorOverlay",{style:{backgroundColor:f}})}),y.jsx("span",{...E("childrenOverlay"),children:S})]})});Wa.classes=lS;Wa.displayName="@mantine/core/ColorSwatch";var uS={root:"m_7485cace"};const bT={},wT=(e,{size:t,fluid:r})=>({root:{"--container-size":r?void 0:Ke(t,"container-size")}}),em=Re((e,t)=>{const r=me("Container",bT,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,fluid:f,mod:m,...g}=r,w=Ie({name:"Container",classes:uS,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:wT});return y.jsx(he,{ref:t,mod:[{fluid:f},m],...w("root"),...g})});em.classes=uS;em.displayName="@mantine/core/Container";var cS={root:"m_3eebeb36",label:"m_9e365f20"};const ST={orientation:"horizontal"},xT=(e,{color:t,variant:r,size:s})=>({root:{"--divider-color":t?It(t,e):void 0,"--divider-border-style":r,"--divider-size":Ke(s,"divider-size")}}),tm=Re((e,t)=>{const r=me("Divider",ST,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,color:f,orientation:m,label:g,labelPosition:w,mod:S,...x}=r,b=Ie({name:"Divider",classes:cS,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:xT});return y.jsx(he,{ref:t,mod:[{orientation:m,"with-label":!!g},S],...b("root"),...x,role:"separator",children:g&&y.jsx(he,{component:"span",mod:{position:w},...b("label"),children:g})})});tm.classes=cS;tm.displayName="@mantine/core/Divider";const[d0,dS]=Yr("Grid component was not found in tree"),_p=(e,t)=>e==="content"?"auto":e==="auto"?"0rem":e?`${100/(t/e)}%`:void 0,f0=(e,t,r)=>r||e==="auto"?"100%":e==="content"?"unset":_p(e,t),p0=(e,t)=>{if(e)return e==="auto"||t?"1":"auto"},h0=(e,t)=>e===0?"0":e?`${100/(t/e)}%`:void 0;function CT({span:e,order:t,offset:r,selector:s}){var S;const i=rn(),l=dS(),u=l.breakpoints||i.breakpoints,p=za(e)===void 0?12:za(e),f=al({"--col-order":(S=za(t))==null?void 0:S.toString(),"--col-flex-grow":p0(p,l.grow),"--col-flex-basis":_p(p,l.columns),"--col-width":p==="content"?"auto":void 0,"--col-max-width":f0(p,l.columns,l.grow),"--col-offset":h0(za(r),l.columns)}),m=Yt(u).reduce((x,b)=>{var E;return x[b]||(x[b]={}),typeof t=="object"&&t[b]!==void 0&&(x[b]["--col-order"]=(E=t[b])==null?void 0:E.toString()),typeof e=="object"&&e[b]!==void 0&&(x[b]["--col-flex-grow"]=p0(e[b],l.grow),x[b]["--col-flex-basis"]=_p(e[b],l.columns),x[b]["--col-width"]=e[b]==="content"?"auto":void 0,x[b]["--col-max-width"]=f0(e[b],l.columns,l.grow)),typeof r=="object"&&r[b]!==void 0&&(x[b]["--col-offset"]=h0(r[b],l.columns)),x},{}),w=jb(Yt(m),u).filter(x=>Yt(m[x.value]).length>0).map(x=>({query:l.type==="container"?`mantine-grid (min-width: ${u[x.value]})`:`(min-width: ${u[x.value]})`,styles:m[x.value]}));return y.jsx(fh,{styles:f,media:l.type==="container"?void 0:w,container:l.type==="container"?w:void 0,selector:s})}var nm={container:"m_8478a6da",root:"m_410352e9",inner:"m_dee7bd2f",col:"m_96bdd299"};const ET={span:12},rm=Re((e,t)=>{const r=me("GridCol",ET,e),{classNames:s,className:i,style:l,styles:u,vars:d,span:p,order:f,offset:m,...g}=r,w=dS(),S=hh();return y.jsxs(y.Fragment,{children:[y.jsx(CT,{selector:`.${S}`,span:p,order:f,offset:m}),y.jsx(he,{ref:t,...w.getStyles("col",{className:En(i,S),style:l,classNames:s,styles:u}),...g})]})});rm.classes=nm;rm.displayName="@mantine/core/GridCol";function m0({gutter:e,selector:t,breakpoints:r,type:s}){const i=rn(),l=r||i.breakpoints,u=al({"--grid-gutter":$o(za(e))}),d=Yt(l).reduce((m,g)=>(m[g]||(m[g]={}),typeof e=="object"&&e[g]!==void 0&&(m[g]["--grid-gutter"]=$o(e[g])),m),{}),f=jb(Yt(d),l).filter(m=>Yt(d[m.value]).length>0).map(m=>({query:s==="container"?`mantine-grid (min-width: ${l[m.value]})`:`(min-width: ${l[m.value]})`,styles:d[m.value]}));return y.jsx(fh,{styles:u,media:s==="container"?void 0:f,container:s==="container"?f:void 0,selector:t})}const RT={gutter:"md",grow:!1,columns:12},_T=(e,{justify:t,align:r,overflow:s})=>({root:{"--grid-justify":t,"--grid-align":r,"--grid-overflow":s}}),$r=Re((e,t)=>{const r=me("Grid",RT,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,grow:f,gutter:m,columns:g,align:w,justify:S,children:x,breakpoints:b,type:E,...R}=r,k=Ie({name:"Grid",classes:nm,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:_T}),P=hh();return E==="container"&&b?y.jsxs(d0,{value:{getStyles:k,grow:f,columns:g||12,breakpoints:b,type:E},children:[y.jsx(m0,{selector:`.${P}`,...r}),y.jsx("div",{...k("container"),children:y.jsx(he,{ref:t,...k("root",{className:P}),...R,children:y.jsx("div",{...k("inner"),children:x})})})]}):y.jsxs(d0,{value:{getStyles:k,grow:f,columns:g||12,breakpoints:b,type:E},children:[y.jsx(m0,{selector:`.${P}`,...r}),y.jsx(he,{ref:t,...k("root",{className:P}),...R,children:y.jsx("div",{...k("inner"),children:x})})]})});$r.classes=nm;$r.displayName="@mantine/core/Grid";$r.Col=rm;var fS={root:"m_9e117634"};const PT={},kT=(e,{radius:t,fit:r})=>({root:{"--image-radius":t===void 0?void 0:Ct(t),"--image-object-fit":r}}),yi=Rn((e,t)=>{const r=me("Image",PT,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,onError:f,src:m,radius:g,fit:w,fallbackSrc:S,mod:x,...b}=r,[E,R]=C.useState(!m);C.useEffect(()=>R(!m),[m]);const k=Ie({name:"Image",classes:fS,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:kT});return E&&S?y.jsx(he,{component:"img",ref:t,src:S,...k("root"),onError:f,mod:["fallback",x],...b}):y.jsx(he,{component:"img",ref:t,...k("root"),src:m,onError:P=>{f==null||f(P),R(!0)},mod:x,...b})});yi.classes=fS;yi.displayName="@mantine/core/Image";function Pp(){return Pp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},Pp.apply(null,arguments)}function pS(e,t){if(e==null)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)!==-1)continue;r[s]=e[s]}return r}const[TT,NT]=Yr("List component was not found in tree");var om={root:"m_abbac491",item:"m_abb6bec2",itemWrapper:"m_75cd9f71",itemIcon:"m_60f83e5b"};const jT={},sm=Re((e,t)=>{const r=me("ListItem",jT,e),{classNames:s,className:i,style:l,styles:u,vars:d,icon:p,children:f,mod:m,...g}=r,w=NT(),S=p||w.icon,x={classNames:s,styles:u};return y.jsx(he,{...w.getStyles("item",{...x,className:i,style:l}),component:"li",mod:[{"with-icon":!!S,centered:w.center},m],ref:t,...g,children:y.jsxs("div",{...w.getStyles("itemWrapper",x),children:[S&&y.jsx("span",{...w.getStyles("itemIcon",x),children:S}),y.jsx("span",{...w.getStyles("itemLabel",x),children:f})]})})});sm.classes=om;sm.displayName="@mantine/core/ListItem";const OT={type:"unordered"},AT=(e,{size:t,spacing:r})=>({root:{"--list-fz":Ut(t),"--list-lh":Tb(t),"--list-spacing":$o(r)}}),us=Re((e,t)=>{const r=me("List",OT,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,children:f,type:m,withPadding:g,icon:w,spacing:S,center:x,listStyleType:b,mod:E,...R}=r,k=Ie({name:"List",classes:om,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:AT});return y.jsx(TT,{value:{center:x,icon:w,getStyles:k},children:y.jsx(he,{...k("root",{style:{listStyleType:b}}),component:m==="unordered"?"ul":"ol",mod:[{"with-padding":g},E],ref:t,...R,children:f})})});us.classes=om;us.displayName="@mantine/core/List";us.Item=sm;var hS={root:"m_6e45937b",loader:"m_e8eb006c",overlay:"m_df587f17"};const g0={transitionProps:{transition:"fade",duration:0},overlayProps:{backgroundOpacity:.75},zIndex:$i("overlay")},DT=(e,{zIndex:t})=>({root:{"--lo-z-index":t==null?void 0:t.toString()}}),im=Re((e,t)=>{const r=me("LoadingOverlay",g0,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,transitionProps:f,loaderProps:m,overlayProps:g,visible:w,zIndex:S,...x}=r,b=rn(),E=Ie({name:"LoadingOverlay",classes:hS,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:DT}),R={...g0.overlayProps,...g};return y.jsx(Vo,{transition:"fade",...f,mounted:!!w,children:k=>y.jsxs(he,{...E("root",{style:k}),ref:t,...x,children:[y.jsx(Uo,{...E("loader"),unstyled:d,...m}),y.jsx(Xa,{...R,...E("overlay"),darkHidden:!0,unstyled:d,color:(g==null?void 0:g.color)||b.white}),y.jsx(Xa,{...R,...E("overlay"),lightHidden:!0,unstyled:d,color:(g==null?void 0:g.color)||b.colors.dark[5]})]})})});im.classes=hS;im.displayName="@mantine/core/LoadingOverlay";const[IT,am]=bc(),[MT,$T]=bc();var Ic={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};const LT={},FT=(e,{gap:t},{size:r})=>({group:{"--pg-gap":t!==void 0?Ke(t):Ke(r,"pg-gap")}}),lm=Re((e,t)=>{const r=me("PillGroup",LT,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,size:f,disabled:m,...g}=r,w=am(),S=(w==null?void 0:w.size)||f||void 0,x=Ie({name:"PillGroup",classes:Ic,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:FT,stylesCtx:{size:S},rootSelector:"group"});return y.jsx(MT,{value:{size:S,disabled:m},children:y.jsx(he,{ref:t,size:S,...x("group"),...g})})});lm.classes=Ic;lm.displayName="@mantine/core/PillGroup";const zT={variant:"default"},VT=(e,{radius:t},{size:r})=>({root:{"--pill-fz":Ke(r,"pill-fz"),"--pill-height":Ke(r,"pill-height"),"--pill-radius":t===void 0?void 0:Ct(t)}}),Ya=Re((e,t)=>{const r=me("Pill",zT,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,variant:f,children:m,withRemoveButton:g,onRemove:w,removeButtonProps:S,radius:x,size:b,disabled:E,mod:R,...k}=r,P=$T(),T=am(),j=b||(P==null?void 0:P.size)||void 0,O=(T==null?void 0:T.variant)==="filled"?"contrast":f||"default",L=Ie({name:"Pill",classes:Ic,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:VT,stylesCtx:{size:j}});return y.jsxs(he,{component:"span",ref:t,variant:O,size:j,...L("root",{variant:O}),mod:[{"with-remove":g&&!E,disabled:E||(P==null?void 0:P.disabled)},R],...k,children:[y.jsx("span",{...L("label"),children:m}),g&&y.jsx(Bi,{variant:"transparent",radius:x,tabIndex:-1,"aria-hidden":!0,unstyled:d,...S,...L("remove",{className:S==null?void 0:S.className,style:S==null?void 0:S.style}),onMouseDown:M=>{var Q;M.preventDefault(),M.stopPropagation(),(Q=S==null?void 0:S.onMouseDown)==null||Q.call(S,M)},onClick:M=>{var Q;M.stopPropagation(),w==null||w(),(Q=S==null?void 0:S.onClick)==null||Q.call(S,M)}})]})});Ya.classes=Ic;Ya.displayName="@mantine/core/Pill";Ya.Group=lm;var mS={field:"m_45c4369d"};const BT={type:"visible"},um=Re((e,t)=>{const r=me("PillsInputField",BT,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,type:f,disabled:m,id:g,pointer:w,mod:S,...x}=r,b=am(),E=Ui(),R=Ie({name:"PillsInputField",classes:mS,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d,rootSelector:"field"}),k=m||(b==null?void 0:b.disabled);return y.jsx(he,{component:"input",ref:$t(t,b==null?void 0:b.fieldRef),"data-type":f,disabled:k,mod:[{disabled:k,pointer:w},S],...R("field"),...x,id:(E==null?void 0:E.inputId)||g,"aria-invalid":b==null?void 0:b.hasError,"aria-describedby":E==null?void 0:E.describedBy,type:"text",onMouseDown:P=>!w&&P.stopPropagation()})});um.classes=mS;um.displayName="@mantine/core/PillsInputField";const UT={},cc=Re((e,t)=>{const r=me("PillsInput",UT,e),{children:s,onMouseDown:i,onClick:l,size:u,disabled:d,__staticSelector:p,error:f,variant:m,...g}=r,w=C.useRef(null);return y.jsx(IT,{value:{fieldRef:w,size:u,disabled:d,hasError:!!f,variant:m},children:y.jsx(xr,{size:u,error:f,variant:m,component:"div",ref:t,onMouseDown:S=>{var x;S.preventDefault(),i==null||i(S),(x=w.current)==null||x.focus()},onClick:S=>{var b;S.preventDefault();const x=S.currentTarget.closest("fieldset");x!=null&&x.disabled||((b=w.current)==null||b.focus(),l==null||l(S))},...g,multiline:!0,disabled:d,__staticSelector:p||"PillsInput",withAria:!1,children:s})})});cc.displayName="@mantine/core/PillsInput";cc.Field=um;function HT({data:e,value:t}){const r=t.map(i=>i.trim().toLowerCase());return e.reduce((i,l)=>(Di(l)?i.push({group:l.group,items:l.items.filter(u=>r.indexOf(u.value.toLowerCase().trim())===-1)}):r.indexOf(l.value.toLowerCase().trim())===-1&&i.push(l),i),[])}const WT={maxValues:1/0,withCheckIcon:!0,checkIconPosition:"left",hiddenInputValuesDivider:","},Mc=Re((e,t)=>{const r=me("MultiSelect",WT,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,size:f,value:m,defaultValue:g,onChange:w,onKeyDown:S,variant:x,data:b,dropdownOpened:E,defaultDropdownOpened:R,onDropdownOpen:k,onDropdownClose:P,selectFirstOptionOnChange:T,onOptionSubmit:j,comboboxProps:O,filter:L,limit:M,withScrollArea:Q,maxDropdownHeight:q,searchValue:te,defaultSearchValue:ee,onSearchChange:ne,readOnly:G,disabled:Z,onFocus:B,onBlur:U,radius:A,rightSection:V,rightSectionWidth:W,rightSectionPointerEvents:N,rightSectionProps:F,leftSection:le,leftSectionWidth:ye,leftSectionPointerEvents:X,leftSectionProps:re,inputContainer:ve,inputWrapperOrder:fe,withAsterisk:we,labelProps:je,descriptionProps:Ue,errorProps:Ze,wrapperProps:et,description:ft,label:He,error:Rt,maxValues:ue,searchable:pe,nothingFoundMessage:Ce,withCheckIcon:ke,checkIconPosition:Me,hidePickedOptions:Fe,withErrorStyles:ze,name:ce,form:oe,id:Se,clearable:Je,clearButtonProps:Ne,hiddenInputProps:Be,placeholder:Ge,hiddenInputValuesDivider:qe,required:Er,mod:Rr,renderOption:_r,onRemove:st,onClear:Lt,scrollAreaProps:Pr,chevronColor:Gi,...Ms}=r,Ho=Jr(Se),sr=Gw(b),vn=Fh(sr),Ht=Xh({opened:E,defaultOpened:R,onDropdownOpen:k,onDropdownClose:()=>{P==null||P(),Ht.resetSelectedOption()}}),{styleProps:xl,rest:{type:qc,autoComplete:Cl,...El}}=fl(Ms),[_t,to]=$n({value:m,defaultValue:g,finalValue:[],onChange:w}),[ir,Xi]=$n({value:te,defaultValue:ee,finalValue:"",onChange:ne}),ar=tt=>{Xi(tt),Ht.resetSelectedOption()},Yi=Ie({name:"MultiSelect",classes:{},props:r,classNames:s,styles:u,unstyled:d}),{resolvedClassNames:no,resolvedStyles:Wo}=dl({props:r,styles:u,classNames:s}),$s=tt=>{S==null||S(tt),tt.key===" "&&!pe&&(tt.preventDefault(),Ht.toggleDropdown()),tt.key==="Backspace"&&ir.length===0&&_t.length>0&&(st==null||st(_t[_t.length-1]),to(_t.slice(0,_t.length-1)))},Ji=_t.map((tt,Ls)=>{var Zi,Pl;return y.jsx(Ya,{withRemoveButton:!G&&!((Zi=vn[tt])!=null&&Zi.disabled),onRemove:()=>{to(_t.filter(kl=>tt!==kl)),st==null||st(tt)},unstyled:d,disabled:Z,...Yi("pill"),children:((Pl=vn[tt])==null?void 0:Pl.label)||tt},`${tt}-${Ls}`)});C.useEffect(()=>{T&&Ht.selectFirstOption()},[T,ir]);const Rl=y.jsx(Ye.ClearButton,{...Ne,onClear:()=>{Lt==null||Lt(),to([]),ar("")}}),Kc=HT({data:sr,value:_t}),_l=Je&&_t.length>0&&!Z&&!G;return y.jsxs(y.Fragment,{children:[y.jsxs(Ye,{store:Ht,classNames:no,styles:Wo,unstyled:d,size:f,readOnly:G,__staticSelector:"MultiSelect",onOptionSubmit:tt=>{j==null||j(tt),ar(""),Ht.updateSelectedOptionIndex("selected"),_t.includes(vn[tt].value)?(to(_t.filter(Ls=>Ls!==vn[tt].value)),st==null||st(vn[tt].value)):_t.length<ue&&to([..._t,vn[tt].value])},...O,children:[y.jsx(Ye.DropdownTarget,{children:y.jsx(cc,{...xl,__staticSelector:"MultiSelect",classNames:no,styles:Wo,unstyled:d,size:f,className:i,style:l,variant:x,disabled:Z,radius:A,__defaultRightSection:y.jsx(Ye.Chevron,{size:f,error:Rt,unstyled:d,color:Gi}),__clearSection:Rl,__clearable:_l,rightSection:V,rightSectionPointerEvents:N||(Rl?"all":"none"),rightSectionWidth:W,rightSectionProps:F,leftSection:le,leftSectionWidth:ye,leftSectionPointerEvents:X,leftSectionProps:re,inputContainer:ve,inputWrapperOrder:fe,withAsterisk:we,labelProps:je,descriptionProps:Ue,errorProps:Ze,wrapperProps:et,description:ft,label:He,error:Rt,withErrorStyles:ze,__stylesApiProps:{...r,rightSectionPointerEvents:N||(_l?"all":"none"),multiline:!0},pointer:!pe,onClick:()=>pe?Ht.openDropdown():Ht.toggleDropdown(),"data-expanded":Ht.dropdownOpened||void 0,id:Ho,required:Er,mod:Rr,children:y.jsxs(Ya.Group,{disabled:Z,unstyled:d,...Yi("pillsList"),children:[Ji,y.jsx(Ye.EventsTarget,{autoComplete:Cl,children:y.jsx(cc.Field,{...El,ref:t,id:Ho,placeholder:Ge,type:!pe&&!Ge?"hidden":"visible",...Yi("inputField"),unstyled:d,onFocus:tt=>{B==null||B(tt),pe&&Ht.openDropdown()},onBlur:tt=>{U==null||U(tt),Ht.closeDropdown(),ar("")},onKeyDown:$s,value:ir,onChange:tt=>{ar(tt.currentTarget.value),pe&&Ht.openDropdown(),T&&Ht.selectFirstOption()},disabled:Z,readOnly:G||!pe,pointer:!pe})})]})})}),y.jsx(iS,{data:Fe?Kc:sr,hidden:G||Z,filter:L,search:ir,limit:M,hiddenWhenEmpty:!Ce,withScrollArea:Q,maxDropdownHeight:q,filterOptions:pe,value:_t,checkIconPosition:Me,withCheckIcon:ke,nothingFoundMessage:Ce,unstyled:d,labelId:He?`${Ho}-label`:void 0,"aria-label":He?void 0:Ms["aria-label"],renderOption:_r,scrollAreaProps:Pr})]}),y.jsx(Ye.HiddenInput,{name:ce,valuesDivider:qe,value:_t,form:oe,disabled:Z,...Be})]})});Mc.classes={...xr.classes,...Ye.classes};Mc.displayName="@mantine/core/MultiSelect";var gS={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const QT={withCloseButton:!0},qT=(e,{radius:t,color:r})=>({root:{"--notification-radius":t===void 0?void 0:Ct(t),"--notification-color":r?It(r,e):void 0}}),cm=Re((e,t)=>{const r=me("Notification",QT,e),{className:s,color:i,radius:l,loading:u,withCloseButton:d,withBorder:p,title:f,icon:m,children:g,onClose:w,closeButtonProps:S,classNames:x,style:b,styles:E,unstyled:R,variant:k,vars:P,mod:T,loaderProps:j,role:O,...L}=r,M=Ie({name:"Notification",classes:gS,props:r,className:s,style:b,classNames:x,styles:E,unstyled:R,vars:P,varsResolver:qT});return y.jsxs(he,{...M("root"),mod:[{"data-with-icon":!!m||u,"data-with-border":p},T],ref:t,variant:k,role:O||"alert",...L,children:[m&&!u&&y.jsx("div",{...M("icon"),children:m}),u&&y.jsx(Uo,{size:28,color:i,...j,...M("loader")}),y.jsxs("div",{...M("body"),children:[f&&y.jsx("div",{...M("title"),children:f}),y.jsx(he,{...M("description"),mod:{"data-with-title":!!f},children:g})]}),d&&y.jsx(Bi,{iconSize:16,color:"gray",...S,unstyled:R,onClick:w,...M("closeButton")})]})});cm.classes=gS;cm.displayName="@mantine/core/Notification";function vS(e,t){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(r[s[i]]=e[s[i]]);return r}var Ja;(function(e){e.event="event",e.props="prop"})(Ja||(Ja={}));function _o(){}function KT(e){var t,r=void 0;return function(){for(var s=[],i=arguments.length;i--;)s[i]=arguments[i];return t&&s.length===t.length&&s.every(function(l,u){return l===t[u]})||(t=s,r=e.apply(void 0,s)),r}}function Za(e){return!!(e||"").match(/\d/)}function bi(e){return e==null}function GT(e){return typeof e=="number"&&isNaN(e)}function yS(e){return bi(e)||GT(e)||typeof e=="number"&&!isFinite(e)}function bS(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function XT(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function YT(e,t,r){var s=XT(r),i=e.search(/[1-9]/);return i=i===-1?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(s,"$1"+t)}function JT(e){var t=C.useRef(e);t.current=e;var r=C.useRef(function(){for(var s=[],i=arguments.length;i--;)s[i]=arguments[i];return t.current.apply(t,s)});return r.current}function dm(e,t){t===void 0&&(t=!0);var r=e[0]==="-",s=r&&t;e=e.replace("-","");var i=e.split("."),l=i[0],u=i[1]||"";return{beforeDecimal:l,afterDecimal:u,hasNegation:r,addNegation:s}}function ZT(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var r=e.split("."),s=r[0].replace(/^0+/,"")||"0",i=r[1]||"";return(t?"-":"")+s+(i?"."+i:"")}function wS(e,t,r){for(var s="",i=r?"0":"",l=0;l<=t-1;l++)s+=e[l]||i;return s}function v0(e,t){return Array(t+1).join(e)}function SS(e){var t=e+"",r=t[0]==="-"?"-":"";r&&(t=t.substring(1));var s=t.split(/[eE]/g),i=s[0],l=s[1];if(l=Number(l),!l)return r+i;i=i.replace(".","");var u=1+l,d=i.length;return u<0?i="0."+v0("0",Math.abs(u))+i:u>=d?i=i+v0("0",u-d):i=(i.substring(0,u)||"0")+"."+i.substring(u),r+i}function y0(e,t,r){if(["","-"].indexOf(e)!==-1)return e;var s=(e.indexOf(".")!==-1||r)&&t,i=dm(e),l=i.beforeDecimal,u=i.afterDecimal,d=i.hasNegation,p=parseFloat("0."+(u||"0")),f=u.length<=t?"0."+u:p.toFixed(t),m=f.split("."),g=l;l&&Number(m[0])&&(g=l.split("").reverse().reduce(function(b,E,R){return b.length>R?(Number(b[0])+Number(E)).toString()+b.substring(1,b.length):E+b},m[0]));var w=wS(m[1]||"",t,r),S=d?"-":"",x=s?".":"";return""+S+g+x+w}function as(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var xS=KT(function(e,t){for(var r=0,s=0,i=e.length,l=t.length;e[r]===t[r]&&r<i;)r++;for(;e[i-1-s]===t[l-1-s]&&l-s>r&&i-s>r;)s++;return{from:{start:r,end:i-s},to:{start:r,end:l-s}}}),eN=function(e,t){var r=Math.min(e.selectionStart,t);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:t}}};function tN(e,t,r){return Math.min(Math.max(e,t),r)}function tp(e){return Math.max(e.selectionStart,e.selectionEnd)}function nN(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function rN(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function oN(e){var t=e.currentValue,r=e.formattedValue,s=e.currentValueIndex,i=e.formattedValueIndex;return t[s]===r[i]}function sN(e,t,r,s,i,l,u){u===void 0&&(u=oN);var d=i.findIndex(function(T){return T}),p=e.slice(0,d);!t&&!r.startsWith(p)&&(t=p,r=p+r,s=s+p.length);for(var f=r.length,m=e.length,g={},w=new Array(f),S=0;S<f;S++){w[S]=-1;for(var x=0,b=m;x<b;x++){var E=u({currentValue:r,lastValue:t,formattedValue:e,currentValueIndex:S,formattedValueIndex:x});if(E&&g[x]!==!0){w[S]=x,g[x]=!0;break}}}for(var R=s;R<f&&(w[R]===-1||!l(r[R]));)R++;var k=R===f||w[R]===-1?m:w[R];for(R=s-1;R>0&&w[R]===-1;)R--;var P=R===-1||w[R]===-1?0:w[R]+1;return P>k?k:s-P<k-s?P:k}function b0(e,t,r,s){var i=e.length;if(t=tN(t,0,i),s==="left"){for(;t>=0&&!r[t];)t--;t===-1&&(t=r.indexOf(!0))}else{for(;t<=i&&!r[t];)t++;t>i&&(t=r.lastIndexOf(!0))}return t===-1&&(t=i),t}function iN(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),r=0,s=t.length;r<s;r++)t[r]=!!(Za(e[r])||Za(e[r-1]));return t}function CS(e,t,r,s,i,l){l===void 0&&(l=_o);var u=JT(function(x,b){var E,R;return yS(x)?(R="",E=""):typeof x=="number"||b?(R=typeof x=="number"?SS(x):x,E=s(R)):(R=i(x,void 0),E=s(R)),{formattedValue:E,numAsString:R}}),d=C.useState(function(){return u(bi(e)?t:e,r)}),p=d[0],f=d[1],m=function(x,b){x.formattedValue!==p.formattedValue&&f({formattedValue:x.formattedValue,numAsString:x.value}),l(x,b)},g=e,w=r;bi(e)&&(g=p.numAsString,w=!0);var S=u(g,w);return C.useMemo(function(){f(S)},[S.formattedValue]),[p,m]}function aN(e){return e.replace(/[^0-9]/g,"")}function lN(e){return e}function uN(e){var t=e.type;t===void 0&&(t="text");var r=e.displayType;r===void 0&&(r="input");var s=e.customInput,i=e.renderText,l=e.getInputRef,u=e.format;u===void 0&&(u=lN);var d=e.removeFormatting;d===void 0&&(d=aN);var p=e.defaultValue,f=e.valueIsNumericString,m=e.onValueChange,g=e.isAllowed,w=e.onChange;w===void 0&&(w=_o);var S=e.onKeyDown;S===void 0&&(S=_o);var x=e.onMouseUp;x===void 0&&(x=_o);var b=e.onFocus;b===void 0&&(b=_o);var E=e.onBlur;E===void 0&&(E=_o);var R=e.value,k=e.getCaretBoundary;k===void 0&&(k=iN);var P=e.isValidInputCharacter;P===void 0&&(P=Za);var T=e.isCharacterSame,j=vS(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),O=CS(R,p,!!f,u,d,m),L=O[0],M=L.formattedValue,Q=L.numAsString,q=O[1],te=C.useRef(),ee=C.useRef({formattedValue:M,numAsString:Q}),ne=function(ue,pe){ee.current={formattedValue:ue.formattedValue,numAsString:ue.value},q(ue,pe)},G=C.useState(!1),Z=G[0],B=G[1],U=C.useRef(null),A=C.useRef({setCaretTimeout:null,focusTimeout:null});C.useEffect(function(){return B(!0),function(){clearTimeout(A.current.setCaretTimeout),clearTimeout(A.current.focusTimeout)}},[]);var V=u,W=function(ue,pe){var Ce=parseFloat(pe);return{formattedValue:ue,value:pe,floatValue:isNaN(Ce)?void 0:Ce}},N=function(ue,pe,Ce){ue.selectionStart===0&&ue.selectionEnd===ue.value.length||(as(ue,pe),A.current.setCaretTimeout=setTimeout(function(){ue.value===Ce&&ue.selectionStart!==pe&&as(ue,pe)},0))},F=function(ue,pe,Ce){return b0(ue,pe,k(ue),Ce)},le=function(ue,pe,Ce){var ke=k(pe),Me=sN(pe,M,ue,Ce,ke,P,T);return Me=b0(pe,Me,ke),Me},ye=function(ue){var pe=ue.formattedValue;pe===void 0&&(pe="");var Ce=ue.input,ke=ue.source,Me=ue.event,Fe=ue.numAsString,ze;if(Ce){var ce=ue.inputValue||Ce.value,oe=tp(Ce);Ce.value=pe,ze=le(ce,pe,oe),ze!==void 0&&N(Ce,ze,pe)}pe!==M&&ne(W(pe,Fe),{event:Me,source:ke})};C.useEffect(function(){var ue=ee.current,pe=ue.formattedValue,Ce=ue.numAsString;(M!==pe||Q!==Ce)&&ne(W(M,Q),{event:void 0,source:Ja.props})},[M,Q]);var X=U.current?tp(U.current):void 0,re=typeof window<"u"?C.useLayoutEffect:C.useEffect;re(function(){var ue=U.current;if(M!==ee.current.formattedValue&&ue){var pe=le(ee.current.formattedValue,M,X);ue.value=M,N(ue,pe,M)}},[M]);var ve=function(ue,pe,Ce){var ke=pe.target,Me=te.current?eN(te.current,ke.selectionEnd):xS(M,ue),Fe=Object.assign(Object.assign({},Me),{lastValue:M}),ze=d(ue,Fe),ce=V(ze);if(ze=d(ce,void 0),g&&!g(W(ce,ze))){var oe=pe.target,Se=tp(oe),Je=le(ue,M,Se);return oe.value=M,N(oe,Je,M),!1}return ye({formattedValue:ce,numAsString:ze,inputValue:ue,event:pe,source:Ce,input:pe.target}),!0},fe=function(ue,pe){pe===void 0&&(pe=0);var Ce=ue.selectionStart,ke=ue.selectionEnd;te.current={selectionStart:Ce,selectionEnd:ke+pe}},we=function(ue){var pe=ue.target,Ce=pe.value,ke=ve(Ce,ue,Ja.event);ke&&w(ue),te.current=void 0},je=function(ue){var pe=ue.target,Ce=ue.key,ke=pe.selectionStart,Me=pe.selectionEnd,Fe=pe.value;Fe===void 0&&(Fe="");var ze;Ce==="ArrowLeft"||Ce==="Backspace"?ze=Math.max(ke-1,0):Ce==="ArrowRight"?ze=Math.min(ke+1,Fe.length):Ce==="Delete"&&(ze=ke);var ce=0;Ce==="Delete"&&ke===Me&&(ce=1);var oe=Ce==="ArrowLeft"||Ce==="ArrowRight";if(ze===void 0||ke!==Me&&!oe){S(ue),fe(pe,ce);return}var Se=ze;if(oe){var Je=Ce==="ArrowLeft"?"left":"right";Se=F(Fe,ze,Je),Se!==ze&&ue.preventDefault()}else Ce==="Delete"&&!P(Fe[ze])?Se=F(Fe,ze,"right"):Ce==="Backspace"&&!P(Fe[ze])&&(Se=F(Fe,ze,"left"));Se!==ze&&N(pe,Se,Fe),S(ue),fe(pe,ce)},Ue=function(ue){var pe=ue.target,Ce=function(){var ke=pe.selectionStart,Me=pe.selectionEnd,Fe=pe.value;if(Fe===void 0&&(Fe=""),ke===Me){var ze=F(Fe,ke);ze!==ke&&N(pe,ze,Fe)}};Ce(),requestAnimationFrame(function(){Ce()}),x(ue),fe(pe)},Ze=function(ue){ue.persist&&ue.persist();var pe=ue.target,Ce=ue.currentTarget;U.current=pe,A.current.focusTimeout=setTimeout(function(){var ke=pe.selectionStart,Me=pe.selectionEnd,Fe=pe.value;Fe===void 0&&(Fe="");var ze=F(Fe,ke);ze!==ke&&!(ke===0&&Me===Fe.length)&&N(pe,ze,Fe),b(Object.assign(Object.assign({},ue),{currentTarget:Ce}))},0)},et=function(ue){U.current=null,clearTimeout(A.current.focusTimeout),clearTimeout(A.current.setCaretTimeout),E(ue)},ft=Z&&nN()?"numeric":void 0,He=Object.assign({inputMode:ft},j,{type:t,value:M,onChange:we,onKeyDown:je,onMouseUp:Ue,onFocus:Ze,onBlur:et});if(r==="text")return i?St.createElement(St.Fragment,null,i(M,j)||null):St.createElement("span",Object.assign({},j,{ref:l}),M);if(s){var Rt=s;return St.createElement(Rt,Object.assign({},He,{ref:l}))}return St.createElement("input",Object.assign({},He,{ref:l}))}function w0(e,t){var r=t.decimalScale,s=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i="");var l=t.suffix;l===void 0&&(l="");var u=t.allowNegative,d=t.thousandsGroupStyle;if(d===void 0&&(d="thousand"),e===""||e==="-")return e;var p=$c(t),f=p.thousandSeparator,m=p.decimalSeparator,g=r!==0&&e.indexOf(".")!==-1||r&&s,w=dm(e,u),S=w.beforeDecimal,x=w.afterDecimal,b=w.addNegation;return r!==void 0&&(x=wS(x,r,!!s)),f&&(S=YT(S,f,d)),i&&(S=i+S),l&&(x=x+l),b&&(S="-"+S),e=S+(g&&m||"")+x,e}function $c(e){var t=e.decimalSeparator;t===void 0&&(t=".");var r=e.thousandSeparator,s=e.allowedDecimalSeparators;return r===!0&&(r=","),s||(s=[t,"."]),{decimalSeparator:t,thousandSeparator:r,allowedDecimalSeparators:s}}function cN(e,t){e===void 0&&(e="");var r=new RegExp("(-)"),s=new RegExp("(-)(.)*(-)"),i=r.test(e),l=s.test(e);return e=e.replace(/-/g,""),i&&!l&&t&&(e="-"+e),e}function dN(e,t){return new RegExp("(^-)|[0-9]|"+bS(e),"g")}function fN(e,t,r){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(r!=null&&r.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function pN(e,t,r){var s;t===void 0&&(t=rN(e));var i=r.allowNegative,l=r.prefix;l===void 0&&(l="");var u=r.suffix;u===void 0&&(u="");var d=r.decimalScale,p=t.from,f=t.to,m=f.start,g=f.end,w=$c(r),S=w.allowedDecimalSeparators,x=w.decimalSeparator,b=e[g]===x;if(Za(e)&&(e===l||e===u)&&t.lastValue==="")return e;if(g-m===1&&S.indexOf(e[m])!==-1){var E=d===0?"":x;e=e.substring(0,m)+E+e.substring(m+1,e.length)}var R=function(U,A,V){var W=!1,N=!1;l.startsWith("-")?W=!1:U.startsWith("--")?(W=!1,N=!0):u.startsWith("-")&&U.length===u.length?W=!1:U[0]==="-"&&(W=!0);var F=W?1:0;return N&&(F=2),F&&(U=U.substring(F),A-=F,V-=F),{value:U,start:A,end:V,hasNegation:W}},k=R(e,m,g),P=k.hasNegation;s=k,e=s.value,m=s.start,g=s.end;var T=R(t.lastValue,p.start,p.end),j=T.start,O=T.end,L=T.value,M=e.substring(m,g);e.length&&L.length&&(j>L.length-u.length||O<l.length)&&!(M&&u.startsWith(M))&&(e=L);var Q=0;e.startsWith(l)?Q+=l.length:m<l.length&&(Q=m),e=e.substring(Q),g-=Q;var q=e.length,te=e.length-u.length;e.endsWith(u)?q=te:(g>te||g>e.length-u.length)&&(q=g),e=e.substring(0,q),e=cN(P?"-"+e:e,i),e=(e.match(dN(x))||[]).join("");var ee=e.indexOf(x);e=e.replace(new RegExp(bS(x),"g"),function(U,A){return A===ee?".":""});var ne=dm(e,i),G=ne.beforeDecimal,Z=ne.afterDecimal,B=ne.addNegation;return f.end-f.start<p.end-p.start&&G===""&&b&&!parseFloat(Z)&&(e=B?"-":""),e}function hN(e,t){var r=t.prefix;r===void 0&&(r="");var s=t.suffix;s===void 0&&(s="");var i=Array.from({length:e.length+1}).map(function(){return!0}),l=e[0]==="-";i.fill(!1,0,r.length+(l?1:0));var u=e.length;return i.fill(!1,u-s.length+1,u+1),i}function mN(e){var t=$c(e),r=t.thousandSeparator,s=t.decimalSeparator,i=e.prefix;i===void 0&&(i="");var l=e.allowNegative;if(l===void 0&&(l=!0),r===s)throw new Error(`
83
+ `}function Hb({cssVariablesSelector:e,deduplicateCssVariables:t}){const r=rn(),s=xc(),i=FE(),l=iR({theme:r,generator:i}),u=e===":root"&&t,d=u?aR(l):l,p=oR(d,e);return p?y.jsx("style",{"data-mantine-styles":!0,nonce:s==null?void 0:s(),dangerouslySetInnerHTML:{__html:`${p}${u?"":lR(e)}`}}):null}Hb.displayName="@mantine/CssVariables";function uR(){const e=console.error;console.error=(...t)=>{t.length>1&&typeof t[0]=="string"&&t[0].toLowerCase().includes("extra attributes from the server")&&typeof t[1]=="string"&&t[1].toLowerCase().includes("data-mantine-color-scheme")||e(...t)}}function di(e,t){var i,l;const r=typeof window<"u"&&"matchMedia"in window&&((i=window.matchMedia("(prefers-color-scheme: dark)"))==null?void 0:i.matches),s=e!=="auto"?e:r?"dark":"light";(l=t())==null||l.setAttribute("data-mantine-color-scheme",s)}function cR({manager:e,defaultColorScheme:t,getRootElement:r,forceColorScheme:s}){const i=C.useRef(null),[l,u]=C.useState(()=>e.get(t)),d=s||l,p=C.useCallback(m=>{s||(di(m,r),u(m),e.set(m))},[e.set,d,s]),f=C.useCallback(()=>{u(t),di(t,r),e.clear()},[e.clear,t]);return C.useEffect(()=>(e.subscribe(p),e.unsubscribe),[e.subscribe,e.unsubscribe]),ul(()=>{di(e.get(t),r)},[]),C.useEffect(()=>{var g;if(s)return di(s,r),()=>{};s===void 0&&di(l,r),typeof window<"u"&&"matchMedia"in window&&(i.current=window.matchMedia("(prefers-color-scheme: dark)"));const m=w=>{l==="auto"&&di(w.matches?"dark":"light",r)};return(g=i.current)==null||g.addEventListener("change",m),()=>{var w;return(w=i.current)==null?void 0:w.removeEventListener("change",m)}},[l,s]),{colorScheme:d,setColorScheme:p,clearColorScheme:f}}function dR({respectReducedMotion:e,getRootElement:t}){ul(()=>{var r;e&&((r=t())==null||r.setAttribute("data-respect-reduced-motion","true"))},[e])}uR();function Wb({theme:e,children:t,getStyleNonce:r,withStaticClasses:s=!0,withGlobalClasses:i=!0,deduplicateCssVariables:l=!0,withCssVariables:u=!0,cssVariablesSelector:d=":root",classNamesPrefix:p="mantine",colorSchemeManager:f=ZE(),defaultColorScheme:m="light",getRootElement:g=()=>document.documentElement,cssVariablesResolver:w,forceColorScheme:S,stylesTransform:x,env:b}){const{colorScheme:E,setColorScheme:R,clearColorScheme:P}=cR({defaultColorScheme:m,forceColorScheme:S,manager:f,getRootElement:g});return dR({respectReducedMotion:(e==null?void 0:e.respectReducedMotion)||!1,getRootElement:g}),y.jsx(lh.Provider,{value:{colorScheme:E,setColorScheme:R,clearColorScheme:P,getRootElement:g,classNamesPrefix:p,getStyleNonce:r,cssVariablesResolver:w,cssVariablesSelector:d,withStaticClasses:s,stylesTransform:x,env:b},children:y.jsxs(Vb,{theme:e,children:[u&&y.jsx(Hb,{cssVariablesSelector:d,deduplicateCssVariables:l}),i&&y.jsx(rR,{}),t]})})}Wb.displayName="@mantine/core/MantineProvider";function dl({classNames:e,styles:t,props:r,stylesCtx:s}){const i=rn();return{resolvedClassNames:Sc({theme:i,classNames:e,props:r,stylesCtx:s||void 0}),resolvedStyles:oc({theme:i,styles:t,props:r,stylesCtx:s||void 0})}}const fR={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function pR({theme:e,options:t,unstyled:r}){return En((t==null?void 0:t.focusable)&&!r&&(e.focusClassName||fR[e.focusRing]),(t==null?void 0:t.active)&&!r&&e.activeClassName)}function hR({selector:e,stylesCtx:t,options:r,props:s,theme:i}){return Sc({theme:i,classNames:r==null?void 0:r.classNames,props:(r==null?void 0:r.props)||s,stylesCtx:t})[e]}function Oy({selector:e,stylesCtx:t,theme:r,classNames:s,props:i}){return Sc({theme:r,classNames:s,props:i,stylesCtx:t})[e]}function mR({rootSelector:e,selector:t,className:r}){return e===t?r:void 0}function gR({selector:e,classes:t,unstyled:r}){return r?void 0:t[e]}function vR({themeName:e,classNamesPrefix:t,selector:r,withStaticClass:s}){return s===!1?[]:e.map(i=>`${t}-${i}-${r}`)}function yR({themeName:e,theme:t,selector:r,props:s,stylesCtx:i}){return e.map(l=>{var u,d;return(d=Sc({theme:t,classNames:(u=t.components[l])==null?void 0:u.classNames,props:s,stylesCtx:i}))==null?void 0:d[r]})}function bR({options:e,classes:t,selector:r,unstyled:s}){return e!=null&&e.variant&&!s?t[`${r}--${e.variant}`]:void 0}function wR({theme:e,options:t,themeName:r,selector:s,classNamesPrefix:i,classNames:l,classes:u,unstyled:d,className:p,rootSelector:f,props:m,stylesCtx:g,withStaticClasses:w,headless:S,transformedStyles:x}){return En(pR({theme:e,options:t,unstyled:d||S}),yR({theme:e,themeName:r,selector:s,props:m,stylesCtx:g}),bR({options:t,classes:u,selector:s,unstyled:d}),Oy({selector:s,stylesCtx:g,theme:e,classNames:l,props:m}),Oy({selector:s,stylesCtx:g,theme:e,classNames:x,props:m}),hR({selector:s,stylesCtx:g,options:t,props:m,theme:e}),mR({rootSelector:f,selector:s,className:p}),gR({selector:s,classes:u,unstyled:d||S}),w&&!S&&vR({themeName:r,classNamesPrefix:i,selector:s,withStaticClass:t==null?void 0:t.withStaticClass}),t==null?void 0:t.className)}function SR({theme:e,themeName:t,props:r,stylesCtx:s,selector:i}){return t.map(l=>{var u;return oc({theme:e,styles:(u=e.components[l])==null?void 0:u.styles,props:r,stylesCtx:s})[i]}).reduce((l,u)=>({...l,...u}),{})}function gp({style:e,theme:t}){return Array.isArray(e)?[...e].reduce((r,s)=>({...r,...gp({style:s,theme:t})}),{}):typeof e=="function"?e(t):e??{}}function xR(e){return e.reduce((t,r)=>(r&&Object.keys(r).forEach(s=>{t[s]={...t[s],...al(r[s])}}),t),{})}function CR({vars:e,varsResolver:t,theme:r,props:s,stylesCtx:i,selector:l,themeName:u,headless:d}){var p;return(p=xR([d?{}:t==null?void 0:t(r,s,i),...u.map(f=>{var m,g,w;return(w=(g=(m=r.components)==null?void 0:m[f])==null?void 0:g.vars)==null?void 0:w.call(g,r,s,i)}),e==null?void 0:e(r,s,i)]))==null?void 0:p[l]}function ER({theme:e,themeName:t,selector:r,options:s,props:i,stylesCtx:l,rootSelector:u,styles:d,style:p,vars:f,varsResolver:m,headless:g,withStylesTransform:w}){return{...!w&&SR({theme:e,themeName:t,props:i,stylesCtx:l,selector:r}),...!w&&oc({theme:e,styles:d,props:i,stylesCtx:l})[r],...!w&&oc({theme:e,styles:s==null?void 0:s.styles,props:(s==null?void 0:s.props)||i,stylesCtx:l})[r],...CR({theme:e,props:i,stylesCtx:l,vars:f,varsResolver:m,selector:r,themeName:t,headless:g}),...u===r?gp({style:p,theme:e}):null,...gp({style:s==null?void 0:s.style,theme:e})}}function RR({props:e,stylesCtx:t,themeName:r}){var u;const s=rn(),i=(u=HE())==null?void 0:u();return{getTransformedStyles:d=>i?[...d.map(f=>i(f,{props:e,theme:s,ctx:t})),...r.map(f=>{var m;return i((m=s.components[f])==null?void 0:m.styles,{props:e,theme:s,ctx:t})})].filter(Boolean):[],withStylesTransform:!!i}}function Ie({name:e,classes:t,props:r,stylesCtx:s,className:i,style:l,rootSelector:u="root",unstyled:d,classNames:p,styles:f,vars:m,varsResolver:g}){const w=rn(),S=zE(),x=VE(),b=BE(),E=(Array.isArray(e)?e:[e]).filter(k=>k),{withStylesTransform:R,getTransformedStyles:P}=RR({props:r,stylesCtx:s,themeName:E});return(k,T)=>({className:wR({theme:w,options:T,themeName:E,selector:k,classNamesPrefix:S,classNames:p,classes:t,unstyled:d,className:i,rootSelector:u,props:r,stylesCtx:s,withStaticClasses:x,headless:b,transformedStyles:P([T==null?void 0:T.styles,f])}),style:ER({theme:w,themeName:E,selector:k,options:T,props:r,stylesCtx:s,rootSelector:u,styles:f,style:l,vars:m,varsResolver:g,headless:b,withStylesTransform:R})})}function _R(e,t){return typeof e=="boolean"?e:t.autoContrast}function Ay(e){const t=document.createElement("style");return t.setAttribute("data-mantine-styles","inline"),t.innerHTML="*, *::before, *::after {transition: none !important;}",t.setAttribute("data-mantine-disable-transition","true"),e&&t.setAttribute("nonce",e),document.head.appendChild(t),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(s=>s.remove())}function kR({keepTransitions:e}={}){const t=C.useRef(nc),r=C.useRef(-1),s=C.useContext(lh),i=xc(),l=C.useRef(i==null?void 0:i());if(!s)throw new Error("[@mantine/core] MantineProvider was not found in tree");const u=g=>{s.setColorScheme(g),t.current=e?()=>{}:Ay(l.current),window.clearTimeout(r.current),r.current=window.setTimeout(()=>{var w;(w=t.current)==null||w.call(t)},10)},d=()=>{s.clearColorScheme(),t.current=e?()=>{}:Ay(l.current),window.clearTimeout(r.current),r.current=window.setTimeout(()=>{var g;(g=t.current)==null||g.call(t)},10)},p=EE("light",{getInitialValueInEffect:!1}),f=s.colorScheme==="auto"?p:s.colorScheme,m=C.useCallback(()=>u(f==="light"?"dark":"light"),[u,f]);return C.useEffect(()=>()=>{var g;(g=t.current)==null||g.call(t),window.clearTimeout(r.current)},[]),{colorScheme:s.colorScheme,setColorScheme:u,clearColorScheme:d,toggleColorScheme:m}}function me(e,t,r){var u;const s=rn(),i=(u=s.components[e])==null?void 0:u.defaultProps,l=typeof i=="function"?i(s):i;return{...t,...l,...al(r)}}function Wf(e){return Yt(e).reduce((t,r)=>e[r]!==void 0?`${t}${fE(r)}:${e[r]};`:t,"").trim()}function PR({selector:e,styles:t,media:r,container:s}){const i=t?Wf(t):"",l=Array.isArray(r)?r.map(d=>`@media${d.query}{${e}{${Wf(d.styles)}}}`):[],u=Array.isArray(s)?s.map(d=>`@container ${d.query}{${e}{${Wf(d.styles)}}}`):[];return`${i?`${e}{${i}}`:""}${l.join("")}${u.join("")}`.trim()}function fh(e){const t=xc();return y.jsx("style",{"data-mantine-styles":"inline",nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:PR(e)}})}function fl(e){const{m:t,mx:r,my:s,mt:i,mb:l,ml:u,mr:d,me:p,ms:f,p:m,px:g,py:w,pt:S,pb:x,pl:b,pr:E,pe:R,ps:P,bd:k,bg:T,c:j,opacity:O,ff:L,fz:M,fw:Q,lts:q,ta:te,lh:ee,fs:ne,tt:G,td:Z,w:B,miw:U,maw:A,h:V,mih:W,mah:N,bgsz:F,bgp:le,bgr:ye,bga:X,pos:re,top:ve,left:fe,bottom:we,right:je,inset:Ue,display:Ze,flex:et,hiddenFrom:ft,visibleFrom:He,lightHidden:Rt,darkHidden:ue,sx:pe,...Ce}=e;return{styleProps:al({m:t,mx:r,my:s,mt:i,mb:l,ml:u,mr:d,me:p,ms:f,p:m,px:g,py:w,pt:S,pb:x,pl:b,pr:E,pe:R,ps:P,bd:k,bg:T,c:j,opacity:O,ff:L,fz:M,fw:Q,lts:q,ta:te,lh:ee,fs:ne,tt:G,td:Z,w:B,miw:U,maw:A,h:V,mih:W,mah:N,bgsz:F,bgp:le,bgr:ye,bga:X,pos:re,top:ve,left:fe,bottom:we,right:je,inset:Ue,display:Ze,flex:et,hiddenFrom:ft,visibleFrom:He,lightHidden:Rt,darkHidden:ue,sx:pe}),rest:Ce}}const TR={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function ph(e,t){const r=cl({color:e,theme:t});return r.color==="dimmed"?"var(--mantine-color-dimmed)":r.color==="bright"?"var(--mantine-color-bright)":r.variable?`var(${r.variable})`:r.color}function NR(e,t){const r=cl({color:e,theme:t});return r.isThemeColor&&r.shade===void 0?`var(--mantine-color-${r.color}-text)`:ph(e,t)}function jR(e,t){if(typeof e=="number")return se(e);if(typeof e=="string"){const[r,s,...i]=e.split(" ").filter(u=>u.trim()!=="");let l=`${se(r)}`;return s&&(l+=` ${s}`),i.length>0&&(l+=` ${ph(i.join(" "),t)}`),l.trim()}return e}const Dy={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function OR(e){return typeof e=="string"&&e in Dy?Dy[e]:e}const AR=["h1","h2","h3","h4","h5","h6"];function DR(e,t){return typeof e=="string"&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&AR.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?se(e):e}function IR(e){return e}const MR=["h1","h2","h3","h4","h5","h6"];function $R(e,t){return typeof e=="string"&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&MR.includes(e)?`var(--mantine-${e}-line-height)`:e}function LR(e){return typeof e=="number"?se(e):e}function FR(e,t){if(typeof e=="number")return se(e);if(typeof e=="string"){const r=e.replace("-","");if(!(r in t.spacing))return se(e);const s=`--mantine-spacing-${r}`;return e.startsWith("-")?`calc(var(${s}) * -1)`:`var(${s})`}return e}const Qf={color:ph,textColor:NR,fontSize:DR,spacing:FR,identity:IR,size:LR,lineHeight:$R,fontFamily:OR,border:jR};function Iy(e){return e.replace("(min-width: ","").replace("em)","")}function zR({media:e,...t}){const s=Object.keys(e).sort((i,l)=>Number(Iy(i))-Number(Iy(l))).map(i=>({query:i,styles:e[i]}));return{...t,media:s}}function VR(e){if(typeof e!="object"||e===null)return!1;const t=Object.keys(e);return!(t.length===1&&t[0]==="base")}function BR(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function UR(e){return typeof e=="object"&&e!==null?Yt(e).filter(t=>t!=="base"):[]}function HR(e,t){return typeof e=="object"&&e!==null&&t in e?e[t]:e}function WR({styleProps:e,data:t,theme:r}){return zR(Yt(e).reduce((s,i)=>{if(i==="hiddenFrom"||i==="visibleFrom"||i==="sx")return s;const l=t[i],u=Array.isArray(l.property)?l.property:[l.property],d=BR(e[i]);if(!VR(e[i]))return u.forEach(f=>{s.inlineStyles[f]=Qf[l.type](d,r)}),s;s.hasResponsiveStyles=!0;const p=UR(e[i]);return u.forEach(f=>{d&&(s.styles[f]=Qf[l.type](d,r)),p.forEach(m=>{const g=`(min-width: ${r.breakpoints[m]})`;s.media[g]={...s.media[g],[f]:Qf[l.type](HR(e[i],m),r)}})}),s},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function hh(){return`__m__-${C.useId().replace(/:/g,"")}`}function mh(e,t){return Array.isArray(e)?[...e].reduce((r,s)=>({...r,...mh(s,t)}),{}):typeof e=="function"?e(t):e??{}}function Qb(e){return e.startsWith("data-")?e:`data-${e}`}function QR(e){return Object.keys(e).reduce((t,r)=>{const s=e[r];return s===void 0||s===""||s===!1||s===null||(t[Qb(r)]=e[r]),t},{})}function qb(e){return e?typeof e=="string"?{[Qb(e)]:!0}:Array.isArray(e)?[...e].reduce((t,r)=>({...t,...qb(r)}),{}):QR(e):null}function vp(e,t){return Array.isArray(e)?[...e].reduce((r,s)=>({...r,...vp(s,t)}),{}):typeof e=="function"?e(t):e??{}}function qR({theme:e,style:t,vars:r,styleProps:s}){const i=vp(t,e),l=vp(r,e);return{...i,...l,...s}}const Kb=C.forwardRef(({component:e,style:t,__vars:r,className:s,variant:i,mod:l,size:u,hiddenFrom:d,visibleFrom:p,lightHidden:f,darkHidden:m,renderRoot:g,__size:w,...S},x)=>{var M;const b=rn(),E=e||"div",{styleProps:R,rest:P}=fl(S),k=UE(),T=(M=k==null?void 0:k())==null?void 0:M(R.sx),j=hh(),O=WR({styleProps:R,theme:b,data:TR}),L={ref:x,style:qR({theme:b,style:t,vars:r,styleProps:O.inlineStyles}),className:En(s,T,{[j]:O.hasResponsiveStyles,"mantine-light-hidden":f,"mantine-dark-hidden":m,[`mantine-hidden-from-${d}`]:d,[`mantine-visible-from-${p}`]:p}),"data-variant":i,"data-size":Pb(u)?void 0:u||void 0,size:w,...qb(l),...P};return y.jsxs(y.Fragment,{children:[O.hasResponsiveStyles&&y.jsx(fh,{selector:`.${j}`,styles:O.styles,media:O.media}),typeof g=="function"?g(L):y.jsx(E,{...L})]})});Kb.displayName="@mantine/core/Box";const he=Kb;function Gb(e){return e}function Re(e){const t=C.forwardRef(e);return t.extend=Gb,t.withProps=r=>{const s=C.forwardRef((i,l)=>y.jsx(t,{...r,...i,ref:l}));return s.extend=t.extend,s.displayName=`WithProps(${t.displayName})`,s},t}function Rn(e){const t=C.forwardRef(e);return t.withProps=r=>{const s=C.forwardRef((i,l)=>y.jsx(t,{...r,...i,ref:l}));return s.extend=t.extend,s.displayName=`WithProps(${t.displayName})`,s},t.extend=Gb,t}const KR=C.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function js(){return C.useContext(KR)}var Cc=bb();const Va=vc(Cc);function GR(e){if(!e||typeof e=="string")return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function qf(e){return e!=null&&e.current?e.current.scrollHeight:"auto"}const Ma=typeof window<"u"&&window.requestAnimationFrame;function XR({transitionDuration:e,transitionTimingFunction:t="ease",onTransitionEnd:r=()=>{},opened:s}){const i=C.useRef(null),l=0,u={height:0,overflow:"hidden"},[d,p]=C.useState(s?{}:u),f=x=>{Cc.flushSync(()=>p(x))},m=x=>{f(b=>({...b,...x}))};function g(x){const b=e||GR(x);return{transition:`height ${b}ms ${t}, opacity ${b}ms ${t}`}}Kr(()=>{typeof Ma=="function"&&Ma(s?()=>{m({willChange:"height",display:"block",overflow:"hidden"}),Ma(()=>{const x=qf(i);m({...g(x),height:x})})}:()=>{const x=qf(i);m({...g(x),willChange:"height",height:x}),Ma(()=>m({height:l,overflow:"hidden"}))})},[s]);const w=x=>{if(!(x.target!==i.current||x.propertyName!=="height"))if(s){const b=qf(i);b===d.height?f({}):m({height:b}),r()}else d.height===l&&(f(u),r())};function S({style:x={},refKey:b="ref",...E}={}){const R=E[b],P={"aria-hidden":!s,...E,[b]:$b(i,R),onTransitionEnd:w,style:{boxSizing:"border-box",...x,...d}};return St.version.startsWith("18")?s||(P.inert=""):P.inert=!s,P}return S}const YR={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},Ka=Re((e,t)=>{const{children:r,in:s,transitionDuration:i,transitionTimingFunction:l,style:u,onTransitionEnd:d,animateOpacity:p,...f}=me("Collapse",YR,e),m=rn(),g=ah(),S=(m.respectReducedMotion?g:!1)?0:i,x=XR({opened:s,transitionDuration:S,transitionTimingFunction:l,onTransitionEnd:d});return S===0?s?y.jsx(he,{...f,children:r}):null:y.jsx(he,{...x({style:{opacity:s||!p?1:0,transition:p?`opacity ${S}ms ${l}`:"none",...mh(u,m)},ref:t,...f}),children:r})});Ka.displayName="@mantine/core/Collapse";function Ec(){return typeof window<"u"}function Li(e){return Xb(e)?(e.nodeName||"").toLowerCase():"#document"}function pn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xr(e){var t;return(t=(Xb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xb(e){return Ec()?e instanceof Node||e instanceof pn(e).Node:!1}function dt(e){return Ec()?e instanceof Element||e instanceof pn(e).Element:!1}function Cn(e){return Ec()?e instanceof HTMLElement||e instanceof pn(e).HTMLElement:!1}function yp(e){return!Ec()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof pn(e).ShadowRoot}const JR=new Set(["inline","contents"]);function pl(e){const{overflow:t,overflowX:r,overflowY:s,display:i}=Ln(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+r)&&!JR.has(i)}const ZR=new Set(["table","td","th"]);function e_(e){return ZR.has(Li(e))}const t_=[":popover-open",":modal"];function Rc(e){return t_.some(t=>{try{return e.matches(t)}catch{return!1}})}const n_=["transform","translate","scale","rotate","perspective"],r_=["transform","translate","scale","rotate","perspective","filter"],o_=["paint","layout","strict","content"];function gh(e){const t=_c(),r=dt(e)?Ln(e):e;return n_.some(s=>r[s]?r[s]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||r_.some(s=>(r.willChange||"").includes(s))||o_.some(s=>(r.contain||"").includes(s))}function s_(e){let t=Gr(e);for(;Cn(t)&&!Lo(t);){if(gh(t))return t;if(Rc(t))return null;t=Gr(t)}return null}function _c(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const i_=new Set(["html","body","#document"]);function Lo(e){return i_.has(Li(e))}function Ln(e){return pn(e).getComputedStyle(e)}function kc(e){return dt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gr(e){if(Li(e)==="html")return e;const t=e.assignedSlot||e.parentNode||yp(e)&&e.host||xr(e);return yp(t)?t.host:t}function Yb(e){const t=Gr(e);return Lo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Cn(t)&&pl(t)?t:Yb(t)}function Qr(e,t,r){var s;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=Yb(e),l=i===((s=e.ownerDocument)==null?void 0:s.body),u=pn(i);if(l){const d=bp(u);return t.concat(u,u.visualViewport||[],pl(i)?i:[],d&&r?Qr(d):[])}return t.concat(i,Qr(i,[],r))}function bp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function My(e){let t=e.activeElement;for(;((r=t)==null||(r=r.shadowRoot)==null?void 0:r.activeElement)!=null;){var r;t=t.shadowRoot.activeElement}return t}function Ga(e,t){if(!e||!t)return!1;const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&yp(r)){let s=t;for(;s;){if(e===s)return!0;s=s.parentNode||s.host}}return!1}function Jb(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Zb(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:s}=t;return r+"/"+s}).join(" "):navigator.userAgent}function a_(e){return c_()?!1:!$y()&&e.width===0&&e.height===0||$y()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function l_(){return/apple/i.test(navigator.vendor)}function $y(){const e=/android/i;return e.test(Jb())||e.test(Zb())}function u_(){return Jb().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function c_(){return Zb().includes("jsdom/")}function wp(e,t){const r=["mouse","pen"];return r.push("",void 0),r.includes(e)}function d_(e){return"nativeEvent"in e}function f_(e){return e.matches("html,body")}function ls(e){return(e==null?void 0:e.ownerDocument)||document}function Kf(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}function pi(e){return"composedPath"in e?e.composedPath()[0]:e.target}const p_="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function h_(e){return Cn(e)&&e.matches(p_)}const nr=Math.min,Gt=Math.max,sc=Math.round,zu=Math.floor,wr=e=>({x:e,y:e}),m_={left:"right",right:"left",bottom:"top",top:"bottom"},g_={start:"end",end:"start"};function Sp(e,t,r){return Gt(e,nr(t,r))}function Xr(e,t){return typeof e=="function"?e(t):e}function rr(e){return e.split("-")[0]}function Fi(e){return e.split("-")[1]}function vh(e){return e==="x"?"y":"x"}function yh(e){return e==="y"?"height":"width"}const v_=new Set(["top","bottom"]);function Zn(e){return v_.has(rr(e))?"y":"x"}function bh(e){return vh(Zn(e))}function y_(e,t,r){r===void 0&&(r=!1);const s=Fi(e),i=bh(e),l=yh(i);let u=i==="x"?s===(r?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=ic(u)),[u,ic(u)]}function b_(e){const t=ic(e);return[xp(e),t,xp(t)]}function xp(e){return e.replace(/start|end/g,t=>g_[t])}const Ly=["left","right"],Fy=["right","left"],w_=["top","bottom"],S_=["bottom","top"];function x_(e,t,r){switch(e){case"top":case"bottom":return r?t?Fy:Ly:t?Ly:Fy;case"left":case"right":return t?w_:S_;default:return[]}}function C_(e,t,r,s){const i=Fi(e);let l=x_(rr(e),r==="start",s);return i&&(l=l.map(u=>u+"-"+i),t&&(l=l.concat(l.map(xp)))),l}function ic(e){return e.replace(/left|right|bottom|top/g,t=>m_[t])}function E_(e){return{top:0,right:0,bottom:0,left:0,...e}}function wh(e){return typeof e!="number"?E_(e):{top:e,right:e,bottom:e,left:e}}function Oi(e){const{x:t,y:r,width:s,height:i}=e;return{width:s,height:i,top:r,left:t,right:t+s,bottom:r+i,x:t,y:r}}function zy(e,t,r){let{reference:s,floating:i}=e;const l=Zn(t),u=bh(t),d=yh(u),p=rr(t),f=l==="y",m=s.x+s.width/2-i.width/2,g=s.y+s.height/2-i.height/2,w=s[d]/2-i[d]/2;let S;switch(p){case"top":S={x:m,y:s.y-i.height};break;case"bottom":S={x:m,y:s.y+s.height};break;case"right":S={x:s.x+s.width,y:g};break;case"left":S={x:s.x-i.width,y:g};break;default:S={x:s.x,y:s.y}}switch(Fi(t)){case"start":S[u]-=w*(r&&f?-1:1);break;case"end":S[u]+=w*(r&&f?-1:1);break}return S}const R_=async(e,t,r)=>{const{placement:s="bottom",strategy:i="absolute",middleware:l=[],platform:u}=r,d=l.filter(Boolean),p=await(u.isRTL==null?void 0:u.isRTL(t));let f=await u.getElementRects({reference:e,floating:t,strategy:i}),{x:m,y:g}=zy(f,s,p),w=s,S={},x=0;for(let b=0;b<d.length;b++){const{name:E,fn:R}=d[b],{x:P,y:k,data:T,reset:j}=await R({x:m,y:g,initialPlacement:s,placement:w,strategy:i,middlewareData:S,rects:f,platform:u,elements:{reference:e,floating:t}});m=P??m,g=k??g,S={...S,[E]:{...S[E],...T}},j&&x<=50&&(x++,typeof j=="object"&&(j.placement&&(w=j.placement),j.rects&&(f=j.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:i}):j.rects),{x:m,y:g}=zy(f,w,p)),b=-1)}return{x:m,y:g,placement:w,strategy:i,middlewareData:S}};async function Sh(e,t){var r;t===void 0&&(t={});const{x:s,y:i,platform:l,rects:u,elements:d,strategy:p}=e,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:w=!1,padding:S=0}=Xr(t,e),x=wh(S),E=d[w?g==="floating"?"reference":"floating":g],R=Oi(await l.getClippingRect({element:(r=await(l.isElement==null?void 0:l.isElement(E)))==null||r?E:E.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(d.floating)),boundary:f,rootBoundary:m,strategy:p})),P=g==="floating"?{x:s,y:i,width:u.floating.width,height:u.floating.height}:u.reference,k=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d.floating)),T=await(l.isElement==null?void 0:l.isElement(k))?await(l.getScale==null?void 0:l.getScale(k))||{x:1,y:1}:{x:1,y:1},j=Oi(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:P,offsetParent:k,strategy:p}):P);return{top:(R.top-j.top+x.top)/T.y,bottom:(j.bottom-R.bottom+x.bottom)/T.y,left:(R.left-j.left+x.left)/T.x,right:(j.right-R.right+x.right)/T.x}}const __=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:s,placement:i,rects:l,platform:u,elements:d,middlewareData:p}=t,{element:f,padding:m=0}=Xr(e,t)||{};if(f==null)return{};const g=wh(m),w={x:r,y:s},S=bh(i),x=yh(S),b=await u.getDimensions(f),E=S==="y",R=E?"top":"left",P=E?"bottom":"right",k=E?"clientHeight":"clientWidth",T=l.reference[x]+l.reference[S]-w[S]-l.floating[x],j=w[S]-l.reference[S],O=await(u.getOffsetParent==null?void 0:u.getOffsetParent(f));let L=O?O[k]:0;(!L||!await(u.isElement==null?void 0:u.isElement(O)))&&(L=d.floating[k]||l.floating[x]);const M=T/2-j/2,Q=L/2-b[x]/2-1,q=nr(g[R],Q),te=nr(g[P],Q),ee=q,ne=L-b[x]-te,G=L/2-b[x]/2+M,Z=Sp(ee,G,ne),B=!p.arrow&&Fi(i)!=null&&G!==Z&&l.reference[x]/2-(G<ee?q:te)-b[x]/2<0,U=B?G<ee?G-ee:G-ne:0;return{[S]:w[S]+U,data:{[S]:Z,centerOffset:G-Z-U,...B&&{alignmentOffset:U}},reset:B}}}),k_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,s;const{placement:i,middlewareData:l,rects:u,initialPlacement:d,platform:p,elements:f}=t,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:w,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:b=!0,...E}=Xr(e,t);if((r=l.arrow)!=null&&r.alignmentOffset)return{};const R=rr(i),P=Zn(d),k=rr(d)===d,T=await(p.isRTL==null?void 0:p.isRTL(f.floating)),j=w||(k||!b?[ic(d)]:b_(d)),O=x!=="none";!w&&O&&j.push(...C_(d,b,x,T));const L=[d,...j],M=await Sh(t,E),Q=[];let q=((s=l.flip)==null?void 0:s.overflows)||[];if(m&&Q.push(M[R]),g){const G=y_(i,u,T);Q.push(M[G[0]],M[G[1]])}if(q=[...q,{placement:i,overflows:Q}],!Q.every(G=>G<=0)){var te,ee;const G=(((te=l.flip)==null?void 0:te.index)||0)+1,Z=L[G];if(Z&&(!(g==="alignment"?P!==Zn(Z):!1)||q.every(A=>Zn(A.placement)===P?A.overflows[0]>0:!0)))return{data:{index:G,overflows:q},reset:{placement:Z}};let B=(ee=q.filter(U=>U.overflows[0]<=0).sort((U,A)=>U.overflows[1]-A.overflows[1])[0])==null?void 0:ee.placement;if(!B)switch(S){case"bestFit":{var ne;const U=(ne=q.filter(A=>{if(O){const V=Zn(A.placement);return V===P||V==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(V=>V>0).reduce((V,W)=>V+W,0)]).sort((A,V)=>A[1]-V[1])[0])==null?void 0:ne[0];U&&(B=U);break}case"initialPlacement":B=d;break}if(i!==B)return{reset:{placement:B}}}return{}}}};function ew(e){const t=nr(...e.map(l=>l.left)),r=nr(...e.map(l=>l.top)),s=Gt(...e.map(l=>l.right)),i=Gt(...e.map(l=>l.bottom));return{x:t,y:r,width:s-t,height:i-r}}function P_(e){const t=e.slice().sort((i,l)=>i.y-l.y),r=[];let s=null;for(let i=0;i<t.length;i++){const l=t[i];!s||l.y-s.y>s.height/2?r.push([l]):r[r.length-1].push(l),s=l}return r.map(i=>Oi(ew(i)))}const T_=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:r,elements:s,rects:i,platform:l,strategy:u}=t,{padding:d=2,x:p,y:f}=Xr(e,t),m=Array.from(await(l.getClientRects==null?void 0:l.getClientRects(s.reference))||[]),g=P_(m),w=Oi(ew(m)),S=wh(d);function x(){if(g.length===2&&g[0].left>g[1].right&&p!=null&&f!=null)return g.find(E=>p>E.left-S.left&&p<E.right+S.right&&f>E.top-S.top&&f<E.bottom+S.bottom)||w;if(g.length>=2){if(Zn(r)==="y"){const q=g[0],te=g[g.length-1],ee=rr(r)==="top",ne=q.top,G=te.bottom,Z=ee?q.left:te.left,B=ee?q.right:te.right,U=B-Z,A=G-ne;return{top:ne,bottom:G,left:Z,right:B,width:U,height:A,x:Z,y:ne}}const E=rr(r)==="left",R=Gt(...g.map(q=>q.right)),P=nr(...g.map(q=>q.left)),k=g.filter(q=>E?q.left===P:q.right===R),T=k[0].top,j=k[k.length-1].bottom,O=P,L=R,M=L-O,Q=j-T;return{top:T,bottom:j,left:O,right:L,width:M,height:Q,x:O,y:T}}return w}const b=await l.getElementRects({reference:{getBoundingClientRect:x},floating:s.floating,strategy:u});return i.reference.x!==b.reference.x||i.reference.y!==b.reference.y||i.reference.width!==b.reference.width||i.reference.height!==b.reference.height?{reset:{rects:b}}:{}}}},tw=new Set(["left","top"]);async function N_(e,t){const{placement:r,platform:s,elements:i}=e,l=await(s.isRTL==null?void 0:s.isRTL(i.floating)),u=rr(r),d=Fi(r),p=Zn(r)==="y",f=tw.has(u)?-1:1,m=l&&p?-1:1,g=Xr(t,e);let{mainAxis:w,crossAxis:S,alignmentAxis:x}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return d&&typeof x=="number"&&(S=d==="end"?x*-1:x),p?{x:S*m,y:w*f}:{x:w*f,y:S*m}}const j_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,s;const{x:i,y:l,placement:u,middlewareData:d}=t,p=await N_(t,e);return u===((r=d.offset)==null?void 0:r.placement)&&(s=d.arrow)!=null&&s.alignmentOffset?{}:{x:i+p.x,y:l+p.y,data:{...p,placement:u}}}}},O_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:s,placement:i}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:d={fn:E=>{let{x:R,y:P}=E;return{x:R,y:P}}},...p}=Xr(e,t),f={x:r,y:s},m=await Sh(t,p),g=Zn(rr(i)),w=vh(g);let S=f[w],x=f[g];if(l){const E=w==="y"?"top":"left",R=w==="y"?"bottom":"right",P=S+m[E],k=S-m[R];S=Sp(P,S,k)}if(u){const E=g==="y"?"top":"left",R=g==="y"?"bottom":"right",P=x+m[E],k=x-m[R];x=Sp(P,x,k)}const b=d.fn({...t,[w]:S,[g]:x});return{...b,data:{x:b.x-r,y:b.y-s,enabled:{[w]:l,[g]:u}}}}}},A_=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:s,placement:i,rects:l,middlewareData:u}=t,{offset:d=0,mainAxis:p=!0,crossAxis:f=!0}=Xr(e,t),m={x:r,y:s},g=Zn(i),w=vh(g);let S=m[w],x=m[g];const b=Xr(d,t),E=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(p){const k=w==="y"?"height":"width",T=l.reference[w]-l.floating[k]+E.mainAxis,j=l.reference[w]+l.reference[k]-E.mainAxis;S<T?S=T:S>j&&(S=j)}if(f){var R,P;const k=w==="y"?"width":"height",T=tw.has(rr(i)),j=l.reference[g]-l.floating[k]+(T&&((R=u.offset)==null?void 0:R[g])||0)+(T?0:E.crossAxis),O=l.reference[g]+l.reference[k]+(T?0:((P=u.offset)==null?void 0:P[g])||0)-(T?E.crossAxis:0);x<j?x=j:x>O&&(x=O)}return{[w]:S,[g]:x}}}},D_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,s;const{placement:i,rects:l,platform:u,elements:d}=t,{apply:p=()=>{},...f}=Xr(e,t),m=await Sh(t,f),g=rr(i),w=Fi(i),S=Zn(i)==="y",{width:x,height:b}=l.floating;let E,R;g==="top"||g==="bottom"?(E=g,R=w===(await(u.isRTL==null?void 0:u.isRTL(d.floating))?"start":"end")?"left":"right"):(R=g,E=w==="end"?"top":"bottom");const P=b-m.top-m.bottom,k=x-m.left-m.right,T=nr(b-m[E],P),j=nr(x-m[R],k),O=!t.middlewareData.shift;let L=T,M=j;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(M=k),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(L=P),O&&!w){const q=Gt(m.left,0),te=Gt(m.right,0),ee=Gt(m.top,0),ne=Gt(m.bottom,0);S?M=x-2*(q!==0||te!==0?q+te:Gt(m.left,m.right)):L=b-2*(ee!==0||ne!==0?ee+ne:Gt(m.top,m.bottom))}await p({...t,availableWidth:M,availableHeight:L});const Q=await u.getDimensions(d.floating);return x!==Q.width||b!==Q.height?{reset:{rects:!0}}:{}}}};function nw(e){const t=Ln(e);let r=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const i=Cn(e),l=i?e.offsetWidth:r,u=i?e.offsetHeight:s,d=sc(r)!==l||sc(s)!==u;return d&&(r=l,s=u),{width:r,height:s,$:d}}function xh(e){return dt(e)?e:e.contextElement}function vi(e){const t=xh(e);if(!Cn(t))return wr(1);const r=t.getBoundingClientRect(),{width:s,height:i,$:l}=nw(t);let u=(l?sc(r.width):r.width)/s,d=(l?sc(r.height):r.height)/i;return(!u||!Number.isFinite(u))&&(u=1),(!d||!Number.isFinite(d))&&(d=1),{x:u,y:d}}const I_=wr(0);function rw(e){const t=pn(e);return!_c()||!t.visualViewport?I_:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function M_(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==pn(e)?!1:t}function _s(e,t,r,s){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),l=xh(e);let u=wr(1);t&&(s?dt(s)&&(u=vi(s)):u=vi(e));const d=M_(l,r,s)?rw(l):wr(0);let p=(i.left+d.x)/u.x,f=(i.top+d.y)/u.y,m=i.width/u.x,g=i.height/u.y;if(l){const w=pn(l),S=s&&dt(s)?pn(s):s;let x=w,b=bp(x);for(;b&&s&&S!==x;){const E=vi(b),R=b.getBoundingClientRect(),P=Ln(b),k=R.left+(b.clientLeft+parseFloat(P.paddingLeft))*E.x,T=R.top+(b.clientTop+parseFloat(P.paddingTop))*E.y;p*=E.x,f*=E.y,m*=E.x,g*=E.y,p+=k,f+=T,x=pn(b),b=bp(x)}}return Oi({width:m,height:g,x:p,y:f})}function Pc(e,t){const r=kc(e).scrollLeft;return t?t.left+r:_s(xr(e)).left+r}function ow(e,t){const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-Pc(e,r),i=r.top+t.scrollTop;return{x:s,y:i}}function $_(e){let{elements:t,rect:r,offsetParent:s,strategy:i}=e;const l=i==="fixed",u=xr(s),d=t?Rc(t.floating):!1;if(s===u||d&&l)return r;let p={scrollLeft:0,scrollTop:0},f=wr(1);const m=wr(0),g=Cn(s);if((g||!g&&!l)&&((Li(s)!=="body"||pl(u))&&(p=kc(s)),Cn(s))){const S=_s(s);f=vi(s),m.x=S.x+s.clientLeft,m.y=S.y+s.clientTop}const w=u&&!g&&!l?ow(u,p):wr(0);return{width:r.width*f.x,height:r.height*f.y,x:r.x*f.x-p.scrollLeft*f.x+m.x+w.x,y:r.y*f.y-p.scrollTop*f.y+m.y+w.y}}function L_(e){return Array.from(e.getClientRects())}function F_(e){const t=xr(e),r=kc(e),s=e.ownerDocument.body,i=Gt(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),l=Gt(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let u=-r.scrollLeft+Pc(e);const d=-r.scrollTop;return Ln(s).direction==="rtl"&&(u+=Gt(t.clientWidth,s.clientWidth)-i),{width:i,height:l,x:u,y:d}}const Vy=25;function z_(e,t){const r=pn(e),s=xr(e),i=r.visualViewport;let l=s.clientWidth,u=s.clientHeight,d=0,p=0;if(i){l=i.width,u=i.height;const m=_c();(!m||m&&t==="fixed")&&(d=i.offsetLeft,p=i.offsetTop)}const f=Pc(s);if(f<=0){const m=s.ownerDocument,g=m.body,w=getComputedStyle(g),S=m.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,x=Math.abs(s.clientWidth-g.clientWidth-S);x<=Vy&&(l-=x)}else f<=Vy&&(l+=f);return{width:l,height:u,x:d,y:p}}const V_=new Set(["absolute","fixed"]);function B_(e,t){const r=_s(e,!0,t==="fixed"),s=r.top+e.clientTop,i=r.left+e.clientLeft,l=Cn(e)?vi(e):wr(1),u=e.clientWidth*l.x,d=e.clientHeight*l.y,p=i*l.x,f=s*l.y;return{width:u,height:d,x:p,y:f}}function By(e,t,r){let s;if(t==="viewport")s=z_(e,r);else if(t==="document")s=F_(xr(e));else if(dt(t))s=B_(t,r);else{const i=rw(e);s={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Oi(s)}function sw(e,t){const r=Gr(e);return r===t||!dt(r)||Lo(r)?!1:Ln(r).position==="fixed"||sw(r,t)}function U_(e,t){const r=t.get(e);if(r)return r;let s=Qr(e,[],!1).filter(d=>dt(d)&&Li(d)!=="body"),i=null;const l=Ln(e).position==="fixed";let u=l?Gr(e):e;for(;dt(u)&&!Lo(u);){const d=Ln(u),p=gh(u);!p&&d.position==="fixed"&&(i=null),(l?!p&&!i:!p&&d.position==="static"&&!!i&&V_.has(i.position)||pl(u)&&!p&&sw(e,u))?s=s.filter(m=>m!==u):i=d,u=Gr(u)}return t.set(e,s),s}function H_(e){let{element:t,boundary:r,rootBoundary:s,strategy:i}=e;const u=[...r==="clippingAncestors"?Rc(t)?[]:U_(t,this._c):[].concat(r),s],d=u[0],p=u.reduce((f,m)=>{const g=By(t,m,i);return f.top=Gt(g.top,f.top),f.right=nr(g.right,f.right),f.bottom=nr(g.bottom,f.bottom),f.left=Gt(g.left,f.left),f},By(t,d,i));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function W_(e){const{width:t,height:r}=nw(e);return{width:t,height:r}}function Q_(e,t,r){const s=Cn(t),i=xr(t),l=r==="fixed",u=_s(e,!0,l,t);let d={scrollLeft:0,scrollTop:0};const p=wr(0);function f(){p.x=Pc(i)}if(s||!s&&!l)if((Li(t)!=="body"||pl(i))&&(d=kc(t)),s){const S=_s(t,!0,l,t);p.x=S.x+t.clientLeft,p.y=S.y+t.clientTop}else i&&f();l&&!s&&i&&f();const m=i&&!s&&!l?ow(i,d):wr(0),g=u.left+d.scrollLeft-p.x-m.x,w=u.top+d.scrollTop-p.y-m.y;return{x:g,y:w,width:u.width,height:u.height}}function Gf(e){return Ln(e).position==="static"}function Uy(e,t){if(!Cn(e)||Ln(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return xr(e)===r&&(r=r.ownerDocument.body),r}function iw(e,t){const r=pn(e);if(Rc(e))return r;if(!Cn(e)){let i=Gr(e);for(;i&&!Lo(i);){if(dt(i)&&!Gf(i))return i;i=Gr(i)}return r}let s=Uy(e,t);for(;s&&e_(s)&&Gf(s);)s=Uy(s,t);return s&&Lo(s)&&Gf(s)&&!gh(s)?r:s||s_(e)||r}const q_=async function(e){const t=this.getOffsetParent||iw,r=this.getDimensions,s=await r(e.floating);return{reference:Q_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function K_(e){return Ln(e).direction==="rtl"}const G_={convertOffsetParentRelativeRectToViewportRelativeRect:$_,getDocumentElement:xr,getClippingRect:H_,getOffsetParent:iw,getElementRects:q_,getClientRects:L_,getDimensions:W_,getScale:vi,isElement:dt,isRTL:K_};function aw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function X_(e,t){let r=null,s;const i=xr(e);function l(){var d;clearTimeout(s),(d=r)==null||d.disconnect(),r=null}function u(d,p){d===void 0&&(d=!1),p===void 0&&(p=1),l();const f=e.getBoundingClientRect(),{left:m,top:g,width:w,height:S}=f;if(d||t(),!w||!S)return;const x=zu(g),b=zu(i.clientWidth-(m+w)),E=zu(i.clientHeight-(g+S)),R=zu(m),k={rootMargin:-x+"px "+-b+"px "+-E+"px "+-R+"px",threshold:Gt(0,nr(1,p))||1};let T=!0;function j(O){const L=O[0].intersectionRatio;if(L!==p){if(!T)return u();L?u(!1,L):s=setTimeout(()=>{u(!1,1e-7)},1e3)}L===1&&!aw(f,e.getBoundingClientRect())&&u(),T=!1}try{r=new IntersectionObserver(j,{...k,root:i.ownerDocument})}catch{r=new IntersectionObserver(j,k)}r.observe(e)}return u(!0),l}function Y_(e,t,r,s){s===void 0&&(s={});const{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:p=!1}=s,f=xh(e),m=i||l?[...f?Qr(f):[],...Qr(t)]:[];m.forEach(R=>{i&&R.addEventListener("scroll",r,{passive:!0}),l&&R.addEventListener("resize",r)});const g=f&&d?X_(f,r):null;let w=-1,S=null;u&&(S=new ResizeObserver(R=>{let[P]=R;P&&P.target===f&&S&&(S.unobserve(t),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var k;(k=S)==null||k.observe(t)})),r()}),f&&!p&&S.observe(f),S.observe(t));let x,b=p?_s(e):null;p&&E();function E(){const R=_s(e);b&&!aw(b,R)&&r(),b=R,x=requestAnimationFrame(E)}return r(),()=>{var R;m.forEach(P=>{i&&P.removeEventListener("scroll",r),l&&P.removeEventListener("resize",r)}),g==null||g(),(R=S)==null||R.disconnect(),S=null,p&&cancelAnimationFrame(x)}}const J_=j_,Z_=O_,ek=k_,tk=D_,Hy=__,nk=T_,rk=A_,ok=(e,t,r)=>{const s=new Map,i={platform:G_,...r},l={...i.platform,_c:s};return R_(e,t,{...i,platform:l})};var sk=typeof document<"u",ik=function(){},Gu=sk?C.useLayoutEffect:ik;function ac(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 r,s,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(s=r;s--!==0;)if(!ac(e[s],t[s]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(s=r;s--!==0;)if(!{}.hasOwnProperty.call(t,i[s]))return!1;for(s=r;s--!==0;){const l=i[s];if(!(l==="_owner"&&e.$$typeof)&&!ac(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function lw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Wy(e,t){const r=lw(e);return Math.round(t*r)/r}function Xf(e){const t=C.useRef(e);return Gu(()=>{t.current=e}),t}function ak(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:s=[],platform:i,elements:{reference:l,floating:u}={},transform:d=!0,whileElementsMounted:p,open:f}=e,[m,g]=C.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[w,S]=C.useState(s);ac(w,s)||S(s);const[x,b]=C.useState(null),[E,R]=C.useState(null),P=C.useCallback(A=>{A!==O.current&&(O.current=A,b(A))},[]),k=C.useCallback(A=>{A!==L.current&&(L.current=A,R(A))},[]),T=l||x,j=u||E,O=C.useRef(null),L=C.useRef(null),M=C.useRef(m),Q=p!=null,q=Xf(p),te=Xf(i),ee=Xf(f),ne=C.useCallback(()=>{if(!O.current||!L.current)return;const A={placement:t,strategy:r,middleware:w};te.current&&(A.platform=te.current),ok(O.current,L.current,A).then(V=>{const W={...V,isPositioned:ee.current!==!1};G.current&&!ac(M.current,W)&&(M.current=W,Cc.flushSync(()=>{g(W)}))})},[w,t,r,te,ee]);Gu(()=>{f===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,g(A=>({...A,isPositioned:!1})))},[f]);const G=C.useRef(!1);Gu(()=>(G.current=!0,()=>{G.current=!1}),[]),Gu(()=>{if(T&&(O.current=T),j&&(L.current=j),T&&j){if(q.current)return q.current(T,j,ne);ne()}},[T,j,ne,q,Q]);const Z=C.useMemo(()=>({reference:O,floating:L,setReference:P,setFloating:k}),[P,k]),B=C.useMemo(()=>({reference:T,floating:j}),[T,j]),U=C.useMemo(()=>{const A={position:r,left:0,top:0};if(!B.floating)return A;const V=Wy(B.floating,m.x),W=Wy(B.floating,m.y);return d?{...A,transform:"translate("+V+"px, "+W+"px)",...lw(B.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:V,top:W}},[r,d,B.floating,m.x,m.y]);return C.useMemo(()=>({...m,update:ne,refs:Z,elements:B,floatingStyles:U}),[m,ne,Z,B,U])}const lk=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:s,padding:i}=typeof e=="function"?e(r):e;return s&&t(s)?s.current!=null?Hy({element:s.current,padding:i}).fn(r):{}:s?Hy({element:s,padding:i}).fn(r):{}}}},uw=(e,t)=>({...J_(e),options:[e,t]}),Ch=(e,t)=>({...Z_(e),options:[e,t]}),Qy=(e,t)=>({...rk(e),options:[e,t]}),lc=(e,t)=>({...ek(e),options:[e,t]}),uk=(e,t)=>({...tk(e),options:[e,t]}),Ha=(e,t)=>({...nk(e),options:[e,t]}),cw=(e,t)=>({...lk(e),options:[e,t]});function ck(e){return C.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})},e)}const dw={...CC},dk=dw.useInsertionEffect,fk=dk||(e=>e());function Ur(e){const t=C.useRef(()=>{});return fk(()=>{t.current=e}),C.useCallback(function(){for(var r=arguments.length,s=new Array(r),i=0;i<r;i++)s[i]=arguments[i];return t.current==null?void 0:t.current(...s)},[])}var Sr=typeof document<"u"?C.useLayoutEffect:C.useEffect;let qy=!1,pk=0;const Ky=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+pk++;function hk(){const[e,t]=C.useState(()=>qy?Ky():void 0);return Sr(()=>{e==null&&t(Ky())},[]),C.useEffect(()=>{qy=!0},[]),e}const mk=dw.useId,fw=mk||hk;function gk(){const e=new Map;return{emit(t,r){var s;(s=e.get(t))==null||s.forEach(i=>i(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var s;e.set(t,((s=e.get(t))==null?void 0:s.filter(i=>i!==r))||[])}}}const vk=C.createContext(null),yk=C.createContext(null),Eh=()=>{var e;return((e=C.useContext(vk))==null?void 0:e.id)||null},Rh=()=>C.useContext(yk);function _h(e){return"data-floating-ui-"+e}function Yf(e){const t=C.useRef(e);return Sr(()=>{t.current=e}),t}const Gy=_h("safe-polygon");function Xu(e,t,r){return r&&!wp(r)?0:typeof e=="number"?e:e==null?void 0:e[t]}function bk(e,t){t===void 0&&(t={});const{open:r,onOpenChange:s,dataRef:i,events:l,elements:u}=e,{enabled:d=!0,delay:p=0,handleClose:f=null,mouseOnly:m=!1,restMs:g=0,move:w=!0}=t,S=Rh(),x=Eh(),b=Yf(f),E=Yf(p),R=Yf(r),P=C.useRef(),k=C.useRef(-1),T=C.useRef(),j=C.useRef(-1),O=C.useRef(!0),L=C.useRef(!1),M=C.useRef(()=>{}),Q=C.useRef(!1),q=C.useCallback(()=>{var U;const A=(U=i.current.openEvent)==null?void 0:U.type;return(A==null?void 0:A.includes("mouse"))&&A!=="mousedown"},[i]);C.useEffect(()=>{if(!d)return;function U(A){let{open:V}=A;V||(clearTimeout(k.current),clearTimeout(j.current),O.current=!0,Q.current=!1)}return l.on("openchange",U),()=>{l.off("openchange",U)}},[d,l]),C.useEffect(()=>{if(!d||!b.current||!r)return;function U(V){q()&&s(!1,V,"hover")}const A=ls(u.floating).documentElement;return A.addEventListener("mouseleave",U),()=>{A.removeEventListener("mouseleave",U)}},[u.floating,r,s,d,b,q]);const te=C.useCallback(function(U,A,V){A===void 0&&(A=!0),V===void 0&&(V="hover");const W=Xu(E.current,"close",P.current);W&&!T.current?(clearTimeout(k.current),k.current=window.setTimeout(()=>s(!1,U,V),W)):A&&(clearTimeout(k.current),s(!1,U,V))},[E,s]),ee=Ur(()=>{M.current(),T.current=void 0}),ne=Ur(()=>{if(L.current){const U=ls(u.floating).body;U.style.pointerEvents="",U.removeAttribute(Gy),L.current=!1}}),G=Ur(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);C.useEffect(()=>{if(!d)return;function U(N){if(clearTimeout(k.current),O.current=!1,m&&!wp(P.current)||g>0&&!Xu(E.current,"open"))return;const F=Xu(E.current,"open",P.current);F?k.current=window.setTimeout(()=>{R.current||s(!0,N,"hover")},F):r||s(!0,N,"hover")}function A(N){if(G())return;M.current();const F=ls(u.floating);if(clearTimeout(j.current),Q.current=!1,b.current&&i.current.floatingContext){r||clearTimeout(k.current),T.current=b.current({...i.current.floatingContext,tree:S,x:N.clientX,y:N.clientY,onClose(){ne(),ee(),G()||te(N,!0,"safe-polygon")}});const ye=T.current;F.addEventListener("mousemove",ye),M.current=()=>{F.removeEventListener("mousemove",ye)};return}(P.current==="touch"?!Ga(u.floating,N.relatedTarget):!0)&&te(N)}function V(N){G()||i.current.floatingContext&&(b.current==null||b.current({...i.current.floatingContext,tree:S,x:N.clientX,y:N.clientY,onClose(){ne(),ee(),G()||te(N)}})(N))}if(dt(u.domReference)){var W;const N=u.domReference;return r&&N.addEventListener("mouseleave",V),(W=u.floating)==null||W.addEventListener("mouseleave",V),w&&N.addEventListener("mousemove",U,{once:!0}),N.addEventListener("mouseenter",U),N.addEventListener("mouseleave",A),()=>{var F;r&&N.removeEventListener("mouseleave",V),(F=u.floating)==null||F.removeEventListener("mouseleave",V),w&&N.removeEventListener("mousemove",U),N.removeEventListener("mouseenter",U),N.removeEventListener("mouseleave",A)}}},[u,d,e,m,g,w,te,ee,ne,s,r,R,S,E,b,i,G]),Sr(()=>{var U;if(d&&r&&(U=b.current)!=null&&U.__options.blockPointerEvents&&q()){L.current=!0;const V=u.floating;if(dt(u.domReference)&&V){var A;const W=ls(u.floating).body;W.setAttribute(Gy,"");const N=u.domReference,F=S==null||(A=S.nodesRef.current.find(le=>le.id===x))==null||(A=A.context)==null?void 0:A.elements.floating;return F&&(F.style.pointerEvents=""),W.style.pointerEvents="none",N.style.pointerEvents="auto",V.style.pointerEvents="auto",()=>{W.style.pointerEvents="",N.style.pointerEvents="",V.style.pointerEvents=""}}}},[d,r,x,u,S,b,q]),Sr(()=>{r||(P.current=void 0,Q.current=!1,ee(),ne())},[r,ee,ne]),C.useEffect(()=>()=>{ee(),clearTimeout(k.current),clearTimeout(j.current),ne()},[d,u.domReference,ee,ne]);const Z=C.useMemo(()=>{function U(A){P.current=A.pointerType}return{onPointerDown:U,onPointerEnter:U,onMouseMove(A){const{nativeEvent:V}=A;function W(){!O.current&&!R.current&&s(!0,V,"hover")}m&&!wp(P.current)||r||g===0||Q.current&&A.movementX**2+A.movementY**2<2||(clearTimeout(j.current),P.current==="touch"?W():(Q.current=!0,j.current=window.setTimeout(W,g)))}}},[m,s,r,R,g]),B=C.useMemo(()=>({onMouseEnter(){clearTimeout(k.current)},onMouseLeave(U){G()||te(U.nativeEvent,!1)}}),[te,G]);return C.useMemo(()=>d?{reference:Z,floating:B}:{},[d,Z,B])}const Cp=()=>{},pw=C.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Cp,setState:Cp,isInstantPhase:!1}),wk=()=>C.useContext(pw);function Sk(e){const{children:t,delay:r,timeoutMs:s=0}=e,[i,l]=C.useReducer((p,f)=>({...p,...f}),{delay:r,timeoutMs:s,initialDelay:r,currentId:null,isInstantPhase:!1}),u=C.useRef(null),d=C.useCallback(p=>{l({currentId:p})},[]);return Sr(()=>{i.currentId?u.current===null?u.current=i.currentId:i.isInstantPhase||l({isInstantPhase:!0}):(i.isInstantPhase&&l({isInstantPhase:!1}),u.current=null)},[i.currentId,i.isInstantPhase]),C.createElement(pw.Provider,{value:C.useMemo(()=>({...i,setState:l,setCurrentId:d}),[i,d])},t)}function xk(e,t){t===void 0&&(t={});const{open:r,onOpenChange:s,floatingId:i}=e,{id:l,enabled:u=!0}=t,d=l??i,p=wk(),{currentId:f,setCurrentId:m,initialDelay:g,setState:w,timeoutMs:S}=p;return Sr(()=>{u&&f&&(w({delay:{open:1,close:Xu(g,"close")}}),f!==d&&s(!1))},[u,d,s,w,f,g]),Sr(()=>{function x(){s(!1),w({delay:g,currentId:null})}if(u&&f&&!r&&f===d){if(S){const b=window.setTimeout(x,S);return()=>{clearTimeout(b)}}x()}},[u,r,w,f,d,s,g,S]),Sr(()=>{u&&(m===Cp||!r||m(d))},[u,r,m,d]),p}function Jf(e,t){let r=e.filter(i=>{var l;return i.parentId===t&&((l=i.context)==null?void 0:l.open)}),s=r;for(;s.length;)s=e.filter(i=>{var l;return(l=s)==null?void 0:l.some(u=>{var d;return i.parentId===u.id&&((d=i.context)==null?void 0:d.open)})}),r=r.concat(s);return r}const Ck="data-floating-ui-focusable",Ek={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Rk={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Xy=e=>{var t,r;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(r=e==null?void 0:e.outsidePress)!=null?r:!0}};function _k(e,t){t===void 0&&(t={});const{open:r,onOpenChange:s,elements:i,dataRef:l}=e,{enabled:u=!0,escapeKey:d=!0,outsidePress:p=!0,outsidePressEvent:f="pointerdown",referencePress:m=!1,referencePressEvent:g="pointerdown",ancestorScroll:w=!1,bubbles:S,capture:x}=t,b=Rh(),E=Ur(typeof p=="function"?p:()=>!1),R=typeof p=="function"?E:p,P=C.useRef(!1),k=C.useRef(!1),{escapeKey:T,outsidePress:j}=Xy(S),{escapeKey:O,outsidePress:L}=Xy(x),M=C.useRef(!1),Q=Ur(Z=>{var B;if(!r||!u||!d||Z.key!=="Escape"||M.current)return;const U=(B=l.current.floatingContext)==null?void 0:B.nodeId,A=b?Jf(b.nodesRef.current,U):[];if(!T&&(Z.stopPropagation(),A.length>0)){let V=!0;if(A.forEach(W=>{var N;if((N=W.context)!=null&&N.open&&!W.context.dataRef.current.__escapeKeyBubbles){V=!1;return}}),!V)return}s(!1,d_(Z)?Z.nativeEvent:Z,"escape-key")}),q=Ur(Z=>{var B;const U=()=>{var A;Q(Z),(A=pi(Z))==null||A.removeEventListener("keydown",U)};(B=pi(Z))==null||B.addEventListener("keydown",U)}),te=Ur(Z=>{var B;const U=P.current;P.current=!1;const A=k.current;if(k.current=!1,f==="click"&&A||U||typeof R=="function"&&!R(Z))return;const V=pi(Z),W="["+_h("inert")+"]",N=ls(i.floating).querySelectorAll(W);let F=dt(V)?V:null;for(;F&&!Lo(F);){const re=Gr(F);if(Lo(re)||!dt(re))break;F=re}if(N.length&&dt(V)&&!f_(V)&&!Ga(V,i.floating)&&Array.from(N).every(re=>!Ga(F,re)))return;if(Cn(V)&&G){const re=V.clientWidth>0&&V.scrollWidth>V.clientWidth,ve=V.clientHeight>0&&V.scrollHeight>V.clientHeight;let fe=ve&&Z.offsetX>V.clientWidth;if(ve&&Ln(V).direction==="rtl"&&(fe=Z.offsetX<=V.offsetWidth-V.clientWidth),fe||re&&Z.offsetY>V.clientHeight)return}const le=(B=l.current.floatingContext)==null?void 0:B.nodeId,ye=b&&Jf(b.nodesRef.current,le).some(re=>{var ve;return Kf(Z,(ve=re.context)==null?void 0:ve.elements.floating)});if(Kf(Z,i.floating)||Kf(Z,i.domReference)||ye)return;const X=b?Jf(b.nodesRef.current,le):[];if(X.length>0){let re=!0;if(X.forEach(ve=>{var fe;if((fe=ve.context)!=null&&fe.open&&!ve.context.dataRef.current.__outsidePressBubbles){re=!1;return}}),!re)return}s(!1,Z,"outside-press")}),ee=Ur(Z=>{var B;const U=()=>{var A;te(Z),(A=pi(Z))==null||A.removeEventListener(f,U)};(B=pi(Z))==null||B.addEventListener(f,U)});C.useEffect(()=>{if(!r||!u)return;l.current.__escapeKeyBubbles=T,l.current.__outsidePressBubbles=j;let Z=-1;function B(N){s(!1,N,"ancestor-scroll")}function U(){window.clearTimeout(Z),M.current=!0}function A(){Z=window.setTimeout(()=>{M.current=!1},_c()?5:0)}const V=ls(i.floating);d&&(V.addEventListener("keydown",O?q:Q,O),V.addEventListener("compositionstart",U),V.addEventListener("compositionend",A)),R&&V.addEventListener(f,L?ee:te,L);let W=[];return w&&(dt(i.domReference)&&(W=Qr(i.domReference)),dt(i.floating)&&(W=W.concat(Qr(i.floating))),!dt(i.reference)&&i.reference&&i.reference.contextElement&&(W=W.concat(Qr(i.reference.contextElement)))),W=W.filter(N=>{var F;return N!==((F=V.defaultView)==null?void 0:F.visualViewport)}),W.forEach(N=>{N.addEventListener("scroll",B,{passive:!0})}),()=>{d&&(V.removeEventListener("keydown",O?q:Q,O),V.removeEventListener("compositionstart",U),V.removeEventListener("compositionend",A)),R&&V.removeEventListener(f,L?ee:te,L),W.forEach(N=>{N.removeEventListener("scroll",B)}),window.clearTimeout(Z)}},[l,i,d,R,f,r,s,w,u,T,j,Q,O,q,te,L,ee]),C.useEffect(()=>{P.current=!1},[R,f]);const ne=C.useMemo(()=>({onKeyDown:Q,[Ek[g]]:Z=>{m&&s(!1,Z.nativeEvent,"reference-press")}}),[Q,s,m,g]),G=C.useMemo(()=>({onKeyDown:Q,onMouseDown(){k.current=!0},onMouseUp(){k.current=!0},[Rk[f]]:()=>{P.current=!0}}),[Q,f]);return C.useMemo(()=>u?{reference:ne,floating:G}:{},[u,ne,G])}function kk(e){const{open:t=!1,onOpenChange:r,elements:s}=e,i=fw(),l=C.useRef({}),[u]=C.useState(()=>gk()),d=Eh()!=null,[p,f]=C.useState(s.reference),m=Ur((S,x,b)=>{l.current.openEvent=S?x:void 0,u.emit("openchange",{open:S,event:x,reason:b,nested:d}),r==null||r(S,x,b)}),g=C.useMemo(()=>({setPositionReference:f}),[]),w=C.useMemo(()=>({reference:p||s.reference||null,floating:s.floating||null,domReference:s.reference}),[p,s.reference,s.floating]);return C.useMemo(()=>({dataRef:l,open:t,onOpenChange:m,elements:w,events:u,floatingId:i,refs:g}),[t,m,w,u,i,g])}function kh(e){e===void 0&&(e={});const{nodeId:t}=e,r=kk({...e,elements:{reference:null,floating:null,...e.elements}}),s=e.rootContext||r,i=s.elements,[l,u]=C.useState(null),[d,p]=C.useState(null),m=(i==null?void 0:i.domReference)||l,g=C.useRef(null),w=Rh();Sr(()=>{m&&(g.current=m)},[m]);const S=ak({...e,elements:{...i,...d&&{reference:d}}}),x=C.useCallback(k=>{const T=dt(k)?{getBoundingClientRect:()=>k.getBoundingClientRect(),contextElement:k}:k;p(T),S.refs.setReference(T)},[S.refs]),b=C.useCallback(k=>{(dt(k)||k===null)&&(g.current=k,u(k)),(dt(S.refs.reference.current)||S.refs.reference.current===null||k!==null&&!dt(k))&&S.refs.setReference(k)},[S.refs]),E=C.useMemo(()=>({...S.refs,setReference:b,setPositionReference:x,domReference:g}),[S.refs,b,x]),R=C.useMemo(()=>({...S.elements,domReference:m}),[S.elements,m]),P=C.useMemo(()=>({...S,...s,refs:E,elements:R,nodeId:t}),[S,E,R,t,s]);return Sr(()=>{s.dataRef.current.floatingContext=P;const k=w==null?void 0:w.nodesRef.current.find(T=>T.id===t);k&&(k.context=P)}),C.useMemo(()=>({...S,context:P,refs:E,elements:R}),[S,E,R,P])}function Pk(e,t){t===void 0&&(t={});const{open:r,onOpenChange:s,events:i,dataRef:l,elements:u}=e,{enabled:d=!0,visibleOnly:p=!0}=t,f=C.useRef(!1),m=C.useRef(),g=C.useRef(!0);C.useEffect(()=>{if(!d)return;const S=pn(u.domReference);function x(){!r&&Cn(u.domReference)&&u.domReference===My(ls(u.domReference))&&(f.current=!0)}function b(){g.current=!0}return S.addEventListener("blur",x),S.addEventListener("keydown",b,!0),()=>{S.removeEventListener("blur",x),S.removeEventListener("keydown",b,!0)}},[u.domReference,r,d]),C.useEffect(()=>{if(!d)return;function S(x){let{reason:b}=x;(b==="reference-press"||b==="escape-key")&&(f.current=!0)}return i.on("openchange",S),()=>{i.off("openchange",S)}},[i,d]),C.useEffect(()=>()=>{clearTimeout(m.current)},[]);const w=C.useMemo(()=>({onPointerDown(S){a_(S.nativeEvent)||(g.current=!1)},onMouseLeave(){f.current=!1},onFocus(S){if(f.current)return;const x=pi(S.nativeEvent);if(p&&dt(x))try{if(l_()&&u_())throw Error();if(!x.matches(":focus-visible"))return}catch{if(!g.current&&!h_(x))return}s(!0,S.nativeEvent,"focus")},onBlur(S){f.current=!1;const x=S.relatedTarget,b=S.nativeEvent,E=dt(x)&&x.hasAttribute(_h("focus-guard"))&&x.getAttribute("data-type")==="outside";m.current=window.setTimeout(()=>{var R;const P=My(u.domReference?u.domReference.ownerDocument:document);!x&&P===u.domReference||Ga((R=l.current.floatingContext)==null?void 0:R.refs.floating.current,P)||Ga(u.domReference,P)||E||s(!1,b,"focus")})}}),[l,u.domReference,s,p]);return C.useMemo(()=>d?{reference:w}:{},[d,w])}const Yy="active",Jy="selected";function Zf(e,t,r){const s=new Map,i=r==="item";let l=e;if(i&&e){const{[Yy]:u,[Jy]:d,...p}=e;l=p}return{...r==="floating"&&{tabIndex:-1,[Ck]:""},...l,...t.map(u=>{const d=u?u[r]:null;return typeof d=="function"?e?d(e):null:d}).concat(e).reduce((u,d)=>(d&&Object.entries(d).forEach(p=>{let[f,m]=p;if(!(i&&[Yy,Jy].includes(f)))if(f.indexOf("on")===0){if(s.has(f)||s.set(f,[]),typeof m=="function"){var g;(g=s.get(f))==null||g.push(m),u[f]=function(){for(var w,S=arguments.length,x=new Array(S),b=0;b<S;b++)x[b]=arguments[b];return(w=s.get(f))==null?void 0:w.map(E=>E(...x)).find(E=>E!==void 0)}}}else u[f]=m}),u),{})}}function Tk(e){e===void 0&&(e=[]);const t=e.map(d=>d==null?void 0:d.reference),r=e.map(d=>d==null?void 0:d.floating),s=e.map(d=>d==null?void 0:d.item),i=C.useCallback(d=>Zf(d,e,"reference"),t),l=C.useCallback(d=>Zf(d,e,"floating"),r),u=C.useCallback(d=>Zf(d,e,"item"),s);return C.useMemo(()=>({getReferenceProps:i,getFloatingProps:l,getItemProps:u}),[i,l,u])}const Nk=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function jk(e,t){var r;t===void 0&&(t={});const{open:s,floatingId:i}=e,{enabled:l=!0,role:u="dialog"}=t,d=(r=Nk.get(u))!=null?r:u,p=fw(),m=Eh()!=null,g=C.useMemo(()=>d==="tooltip"||u==="label"?{["aria-"+(u==="label"?"labelledby":"describedby")]:s?i:void 0}:{"aria-expanded":s?"true":"false","aria-haspopup":d==="alertdialog"?"dialog":d,"aria-controls":s?i:void 0,...d==="listbox"&&{role:"combobox"},...d==="menu"&&{id:p},...d==="menu"&&m&&{role:"menuitem"},...u==="select"&&{"aria-autocomplete":"none"},...u==="combobox"&&{"aria-autocomplete":"list"}},[d,i,m,s,p,u]),w=C.useMemo(()=>{const x={id:i,...d&&{role:d}};return d==="tooltip"||u==="label"?x:{...x,...d==="menu"&&{"aria-labelledby":p}}},[d,i,p,u]),S=C.useCallback(x=>{let{active:b,selected:E}=x;const R={role:"option",...b&&{id:i+"-option"}};switch(u){case"select":return{...R,"aria-selected":b&&E};case"combobox":return{...R,...b&&{"aria-selected":!0}}}return{}},[i,u]);return C.useMemo(()=>l?{reference:g,floating:w,item:S}:{},[l,g,w,S])}const[Ok,Fn]=Yr("ScrollArea.Root component was not found in tree");function Ai(e,t){const r=is(t);ul(()=>{let s=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(s),s=window.requestAnimationFrame(r)});return i.observe(e),()=>{window.cancelAnimationFrame(s),i.unobserve(e)}}},[e,r])}const Ak=C.forwardRef((e,t)=>{const{style:r,...s}=e,i=Fn(),[l,u]=C.useState(0),[d,p]=C.useState(0),f=!!(l&&d);return Ai(i.scrollbarX,()=>{var g;const m=((g=i.scrollbarX)==null?void 0:g.offsetHeight)||0;i.onCornerHeightChange(m),p(m)}),Ai(i.scrollbarY,()=>{var g;const m=((g=i.scrollbarY)==null?void 0:g.offsetWidth)||0;i.onCornerWidthChange(m),u(m)}),f?y.jsx("div",{...s,ref:t,style:{...r,width:l,height:d}}):null}),Dk=C.forwardRef((e,t)=>{const r=Fn(),s=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&s?y.jsx(Ak,{...e,ref:t}):null}),Ik={scrollHideDelay:1e3,type:"hover"},hw=C.forwardRef((e,t)=>{const r=me("ScrollAreaRoot",Ik,e),{type:s,scrollHideDelay:i,scrollbars:l,...u}=r,[d,p]=C.useState(null),[f,m]=C.useState(null),[g,w]=C.useState(null),[S,x]=C.useState(null),[b,E]=C.useState(null),[R,P]=C.useState(0),[k,T]=C.useState(0),[j,O]=C.useState(!1),[L,M]=C.useState(!1),Q=$t(t,q=>p(q));return y.jsx(Ok,{value:{type:s,scrollHideDelay:i,scrollArea:d,viewport:f,onViewportChange:m,content:g,onContentChange:w,scrollbarX:S,onScrollbarXChange:x,scrollbarXEnabled:j,onScrollbarXEnabledChange:O,scrollbarY:b,onScrollbarYChange:E,scrollbarYEnabled:L,onScrollbarYEnabledChange:M,onCornerWidthChange:P,onCornerHeightChange:T},children:y.jsx(he,{...u,ref:Q,__vars:{"--sa-corner-width":l!=="xy"?"0px":`${R}px`,"--sa-corner-height":l!=="xy"?"0px":`${k}px`}})})});hw.displayName="@mantine/core/ScrollAreaRoot";function mw(e,t){const r=e/t;return Number.isNaN(r)?0:r}function Tc(e){const t=mw(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,s=(e.scrollbar.size-r)*t;return Math.max(s,18)}function gw(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const s=(t[1]-t[0])/(e[1]-e[0]);return t[0]+s*(r-e[0])}}function Mk(e,[t,r]){return Math.min(r,Math.max(t,e))}function Zy(e,t,r="ltr"){const s=Tc(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-i,u=t.content-t.viewport,d=l-s,p=r==="ltr"?[0,u]:[u*-1,0],f=Mk(e,p);return gw([0,u],[0,d])(f)}function $k(e,t,r,s="ltr"){const i=Tc(r),l=i/2,u=t||l,d=i-u,p=r.scrollbar.paddingStart+u,f=r.scrollbar.size-r.scrollbar.paddingEnd-d,m=r.content-r.viewport,g=s==="ltr"?[0,m]:[m*-1,0];return gw([p,f],g)(e)}function vw(e,t){return e>0&&e<t}function uc(e){return e?parseInt(e,10):0}function Es(e,t,{checkForDefaultPrevented:r=!0}={}){return s=>{e==null||e(s),(r===!1||!s.defaultPrevented)&&(t==null||t(s))}}const[Lk,yw]=Yr("ScrollAreaScrollbar was not found in tree"),bw=C.forwardRef((e,t)=>{const{sizes:r,hasThumb:s,onThumbChange:i,onThumbPointerUp:l,onThumbPointerDown:u,onThumbPositionChange:d,onDragScroll:p,onWheelScroll:f,onResize:m,...g}=e,w=Fn(),[S,x]=C.useState(null),b=$t(t,M=>x(M)),E=C.useRef(null),R=C.useRef(""),{viewport:P}=w,k=r.content-r.viewport,T=is(f),j=is(d),O=ll(m,10),L=M=>{if(E.current){const Q=M.clientX-E.current.left,q=M.clientY-E.current.top;p({x:Q,y:q})}};return C.useEffect(()=>{const M=Q=>{const q=Q.target;(S==null?void 0:S.contains(q))&&T(Q,k)};return document.addEventListener("wheel",M,{passive:!1}),()=>document.removeEventListener("wheel",M,{passive:!1})},[P,S,k,T]),C.useEffect(j,[r,j]),Ai(S,O),Ai(w.content,O),y.jsx(Lk,{value:{scrollbar:S,hasThumb:s,onThumbChange:is(i),onThumbPointerUp:is(l),onThumbPositionChange:j,onThumbPointerDown:is(u)},children:y.jsx("div",{...g,ref:b,"data-mantine-scrollbar":!0,style:{position:"absolute",...g.style},onPointerDown:Es(e.onPointerDown,M=>{M.preventDefault(),M.button===0&&(M.target.setPointerCapture(M.pointerId),E.current=S.getBoundingClientRect(),R.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",L(M))}),onPointerMove:Es(e.onPointerMove,L),onPointerUp:Es(e.onPointerUp,M=>{const Q=M.target;Q.hasPointerCapture(M.pointerId)&&(M.preventDefault(),Q.releasePointerCapture(M.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=R.current,E.current=null}})})}),ww=C.forwardRef((e,t)=>{const{sizes:r,onSizesChange:s,style:i,...l}=e,u=Fn(),[d,p]=C.useState(),f=C.useRef(null),m=$t(t,f,u.onScrollbarXChange);return C.useEffect(()=>{f.current&&p(getComputedStyle(f.current))},[f]),y.jsx(bw,{"data-orientation":"horizontal",...l,ref:m,sizes:r,style:{...i,"--sa-thumb-width":`${Tc(r)}px`},onThumbPointerDown:g=>e.onThumbPointerDown(g.x),onDragScroll:g=>e.onDragScroll(g.x),onWheelScroll:(g,w)=>{if(u.viewport){const S=u.viewport.scrollLeft+g.deltaX;e.onWheelScroll(S),vw(S,w)&&g.preventDefault()}},onResize:()=>{f.current&&u.viewport&&d&&s({content:u.viewport.scrollWidth,viewport:u.viewport.offsetWidth,scrollbar:{size:f.current.clientWidth,paddingStart:uc(d.paddingLeft),paddingEnd:uc(d.paddingRight)}})}})});ww.displayName="@mantine/core/ScrollAreaScrollbarX";const Sw=C.forwardRef((e,t)=>{const{sizes:r,onSizesChange:s,style:i,...l}=e,u=Fn(),[d,p]=C.useState(),f=C.useRef(null),m=$t(t,f,u.onScrollbarYChange);return C.useEffect(()=>{f.current&&p(window.getComputedStyle(f.current))},[]),y.jsx(bw,{...l,"data-orientation":"vertical",ref:m,sizes:r,style:{"--sa-thumb-height":`${Tc(r)}px`,...i},onThumbPointerDown:g=>e.onThumbPointerDown(g.y),onDragScroll:g=>e.onDragScroll(g.y),onWheelScroll:(g,w)=>{if(u.viewport){const S=u.viewport.scrollTop+g.deltaY;e.onWheelScroll(S),vw(S,w)&&g.preventDefault()}},onResize:()=>{f.current&&u.viewport&&d&&s({content:u.viewport.scrollHeight,viewport:u.viewport.offsetHeight,scrollbar:{size:f.current.clientHeight,paddingStart:uc(d.paddingTop),paddingEnd:uc(d.paddingBottom)}})}})});Sw.displayName="@mantine/core/ScrollAreaScrollbarY";const Nc=C.forwardRef((e,t)=>{const{orientation:r="vertical",...s}=e,{dir:i}=js(),l=Fn(),u=C.useRef(null),d=C.useRef(0),[p,f]=C.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),m=mw(p.viewport,p.content),g={...s,sizes:p,onSizesChange:f,hasThumb:m>0&&m<1,onThumbChange:S=>{u.current=S},onThumbPointerUp:()=>{d.current=0},onThumbPointerDown:S=>{d.current=S}},w=(S,x)=>$k(S,d.current,p,x);return r==="horizontal"?y.jsx(ww,{...g,ref:t,onThumbPositionChange:()=>{if(l.viewport&&u.current){const S=l.viewport.scrollLeft,x=Zy(S,p,i);u.current.style.transform=`translate3d(${x}px, 0, 0)`}},onWheelScroll:S=>{l.viewport&&(l.viewport.scrollLeft=S)},onDragScroll:S=>{l.viewport&&(l.viewport.scrollLeft=w(S,i))}}):r==="vertical"?y.jsx(Sw,{...g,ref:t,onThumbPositionChange:()=>{if(l.viewport&&u.current){const S=l.viewport.scrollTop,x=Zy(S,p);p.scrollbar.size===0?u.current.style.setProperty("--thumb-opacity","0"):u.current.style.setProperty("--thumb-opacity","1"),u.current.style.transform=`translate3d(0, ${x}px, 0)`}},onWheelScroll:S=>{l.viewport&&(l.viewport.scrollTop=S)},onDragScroll:S=>{l.viewport&&(l.viewport.scrollTop=w(S))}}):null});Nc.displayName="@mantine/core/ScrollAreaScrollbarVisible";const Ph=C.forwardRef((e,t)=>{const r=Fn(),{forceMount:s,...i}=e,[l,u]=C.useState(!1),d=e.orientation==="horizontal",p=ll(()=>{if(r.viewport){const f=r.viewport.offsetWidth<r.viewport.scrollWidth,m=r.viewport.offsetHeight<r.viewport.scrollHeight;u(d?f:m)}},10);return Ai(r.viewport,p),Ai(r.content,p),s||l?y.jsx(Nc,{"data-state":l?"visible":"hidden",...i,ref:t}):null});Ph.displayName="@mantine/core/ScrollAreaScrollbarAuto";const xw=C.forwardRef((e,t)=>{const{forceMount:r,...s}=e,i=Fn(),[l,u]=C.useState(!1);return C.useEffect(()=>{const{scrollArea:d}=i;let p=0;if(d){const f=()=>{window.clearTimeout(p),u(!0)},m=()=>{p=window.setTimeout(()=>u(!1),i.scrollHideDelay)};return d.addEventListener("pointerenter",f),d.addEventListener("pointerleave",m),()=>{window.clearTimeout(p),d.removeEventListener("pointerenter",f),d.removeEventListener("pointerleave",m)}}},[i.scrollArea,i.scrollHideDelay]),r||l?y.jsx(Ph,{"data-state":l?"visible":"hidden",...s,ref:t}):null});xw.displayName="@mantine/core/ScrollAreaScrollbarHover";const Fk=C.forwardRef((e,t)=>{const{forceMount:r,...s}=e,i=Fn(),l=e.orientation==="horizontal",[u,d]=C.useState("hidden"),p=ll(()=>d("idle"),100);return C.useEffect(()=>{if(u==="idle"){const f=window.setTimeout(()=>d("hidden"),i.scrollHideDelay);return()=>window.clearTimeout(f)}},[u,i.scrollHideDelay]),C.useEffect(()=>{const{viewport:f}=i,m=l?"scrollLeft":"scrollTop";if(f){let g=f[m];const w=()=>{const S=f[m];g!==S&&(d("scrolling"),p()),g=S};return f.addEventListener("scroll",w),()=>f.removeEventListener("scroll",w)}},[i.viewport,l,p]),r||u!=="hidden"?y.jsx(Nc,{"data-state":u==="hidden"?"hidden":"visible",...s,ref:t,onPointerEnter:Es(e.onPointerEnter,()=>d("interacting")),onPointerLeave:Es(e.onPointerLeave,()=>d("idle"))}):null}),Ep=C.forwardRef((e,t)=>{const{forceMount:r,...s}=e,i=Fn(),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:u}=i,d=e.orientation==="horizontal";return C.useEffect(()=>(d?l(!0):u(!0),()=>{d?l(!1):u(!1)}),[d,l,u]),i.type==="hover"?y.jsx(xw,{...s,ref:t,forceMount:r}):i.type==="scroll"?y.jsx(Fk,{...s,ref:t,forceMount:r}):i.type==="auto"?y.jsx(Ph,{...s,ref:t,forceMount:r}):i.type==="always"?y.jsx(Nc,{...s,ref:t}):null});Ep.displayName="@mantine/core/ScrollAreaScrollbar";function zk(e,t=()=>{}){let r={left:e.scrollLeft,top:e.scrollTop},s=0;return(function i(){const l={left:e.scrollLeft,top:e.scrollTop},u=r.left!==l.left,d=r.top!==l.top;(u||d)&&t(),r=l,s=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(s)}const Cw=C.forwardRef((e,t)=>{const{style:r,...s}=e,i=Fn(),l=yw(),{onThumbPositionChange:u}=l,d=$t(t,m=>l.onThumbChange(m)),p=C.useRef(void 0),f=ll(()=>{p.current&&(p.current(),p.current=void 0)},100);return C.useEffect(()=>{const{viewport:m}=i;if(m){const g=()=>{if(f(),!p.current){const w=zk(m,u);p.current=w,u()}};return u(),m.addEventListener("scroll",g),()=>m.removeEventListener("scroll",g)}},[i.viewport,f,u]),y.jsx("div",{"data-state":l.hasThumb?"visible":"hidden",...s,ref:d,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...r},onPointerDownCapture:Es(e.onPointerDownCapture,m=>{const w=m.target.getBoundingClientRect(),S=m.clientX-w.left,x=m.clientY-w.top;l.onThumbPointerDown({x:S,y:x})}),onPointerUp:Es(e.onPointerUp,l.onThumbPointerUp)})});Cw.displayName="@mantine/core/ScrollAreaThumb";const Rp=C.forwardRef((e,t)=>{const{forceMount:r,...s}=e,i=yw();return r||i.hasThumb?y.jsx(Cw,{ref:t,...s}):null});Rp.displayName="@mantine/core/ScrollAreaThumb";const Ew=C.forwardRef(({children:e,style:t,...r},s)=>{const i=Fn(),l=$t(s,i.onViewportChange);return y.jsx(he,{...r,ref:l,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...t},children:y.jsx("div",{style:{minWidth:"100%"},ref:i.onContentChange,children:e})})});Ew.displayName="@mantine/core/ScrollAreaViewport";var Th={root:"m_d57069b5",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const Rw={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},Vk=(e,{scrollbarSize:t,overscrollBehavior:r})=>({root:{"--scrollarea-scrollbar-size":se(t),"--scrollarea-over-scroll-behavior":r}}),Os=Re((e,t)=>{const r=me("ScrollArea",Rw,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,scrollbarSize:p,vars:f,type:m,scrollHideDelay:g,viewportProps:w,viewportRef:S,onScrollPositionChange:x,children:b,offsetScrollbars:E,scrollbars:R,onBottomReached:P,onTopReached:k,overscrollBehavior:T,...j}=r,[O,L]=C.useState(!1),[M,Q]=C.useState(!1),[q,te]=C.useState(!1),ee=Ie({name:"ScrollArea",props:r,classes:Th,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:f,varsResolver:Vk}),ne=C.useRef(null),G=ck([S,ne]);return C.useEffect(()=>{if(!ne.current||E!=="present")return;const Z=ne.current,B=new ResizeObserver(()=>{const{scrollHeight:U,clientHeight:A,scrollWidth:V,clientWidth:W}=Z;Q(U>A),te(V>W)});return B.observe(Z),()=>B.disconnect()},[ne,E]),y.jsxs(hw,{type:m==="never"?"always":m,scrollHideDelay:g,ref:t,scrollbars:R,...ee("root"),...j,children:[y.jsx(Ew,{...w,...ee("viewport",{style:w==null?void 0:w.style}),ref:G,"data-offset-scrollbars":E===!0?"xy":E||void 0,"data-scrollbars":R||void 0,"data-horizontal-hidden":E==="present"&&!q?"true":void 0,"data-vertical-hidden":E==="present"&&!M?"true":void 0,onScroll:Z=>{var V;(V=w==null?void 0:w.onScroll)==null||V.call(w,Z),x==null||x({x:Z.currentTarget.scrollLeft,y:Z.currentTarget.scrollTop});const{scrollTop:B,scrollHeight:U,clientHeight:A}=Z.currentTarget;B-(U-A)>=-.6&&(P==null||P()),B===0&&(k==null||k())},children:b}),(R==="xy"||R==="x")&&y.jsx(Ep,{...ee("scrollbar"),orientation:"horizontal","data-hidden":m==="never"||E==="present"&&!q?!0:void 0,forceMount:!0,onMouseEnter:()=>L(!0),onMouseLeave:()=>L(!1),children:y.jsx(Rp,{...ee("thumb")})}),(R==="xy"||R==="y")&&y.jsx(Ep,{...ee("scrollbar"),orientation:"vertical","data-hidden":m==="never"||E==="present"&&!M?!0:void 0,forceMount:!0,onMouseEnter:()=>L(!0),onMouseLeave:()=>L(!1),children:y.jsx(Rp,{...ee("thumb")})}),y.jsx(Dk,{...ee("corner"),"data-hovered":O||void 0,"data-hidden":m==="never"||void 0})]})});Os.displayName="@mantine/core/ScrollArea";const Nh=Re((e,t)=>{const{children:r,classNames:s,styles:i,scrollbarSize:l,scrollHideDelay:u,type:d,dir:p,offsetScrollbars:f,viewportRef:m,onScrollPositionChange:g,unstyled:w,variant:S,viewportProps:x,scrollbars:b,style:E,vars:R,onBottomReached:P,onTopReached:k,...T}=me("ScrollAreaAutosize",Rw,e);return y.jsx(he,{...T,ref:t,style:[{display:"flex",overflow:"auto"},E],children:y.jsx(he,{style:{display:"flex",flexDirection:"column",flex:1},children:y.jsx(Os,{classNames:s,styles:i,scrollHideDelay:u,scrollbarSize:l,type:d,dir:p,offsetScrollbars:f,viewportRef:m,onScrollPositionChange:g,unstyled:w,variant:S,viewportProps:x,vars:R,scrollbars:b,onBottomReached:P,onTopReached:k,children:r})})})});Os.classes=Th;Nh.displayName="@mantine/core/ScrollAreaAutosize";Nh.classes=Th;Os.Autosize=Nh;var _w={root:"m_87cf2631"};const Bk={__staticSelector:"UnstyledButton"},Fo=Rn((e,t)=>{const r=me("UnstyledButton",Bk,e),{className:s,component:i="button",__staticSelector:l,unstyled:u,classNames:d,styles:p,style:f,...m}=r,g=Ie({name:l,props:r,classes:_w,className:s,style:f,classNames:d,styles:p,unstyled:u});return y.jsx(he,{...g("root",{focusable:!0}),component:i,ref:t,type:i==="button"?"button":void 0,...m})});Fo.classes=_w;Fo.displayName="@mantine/core/UnstyledButton";var kw={root:"m_515a97f8"};const Uk={},jh=Re((e,t)=>{const r=me("VisuallyHidden",Uk,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,...f}=r,m=Ie({name:"VisuallyHidden",classes:kw,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d});return y.jsx(he,{component:"span",ref:t,...m("root"),...f})});jh.classes=kw;jh.displayName="@mantine/core/VisuallyHidden";var Pw={root:"m_1b7284a3"};const Hk={},Wk=(e,{radius:t,shadow:r})=>({root:{"--paper-radius":t===void 0?void 0:Ct(t),"--paper-shadow":Nb(r)}}),Hr=Rn((e,t)=>{const r=me("Paper",Hk,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,withBorder:p,vars:f,radius:m,shadow:g,variant:w,mod:S,...x}=r,b=Ie({name:"Paper",props:r,classes:Pw,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:f,varsResolver:Wk});return y.jsx(he,{ref:t,mod:[{"data-with-border":p},S],...b("root"),variant:w,...x})});Hr.classes=Pw;Hr.displayName="@mantine/core/Paper";function Tw(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){const[r,s]=t.split("-"),i=r==="right"?"left":"right";return s===void 0?i:`${i}-${s}`}return t}function e0(e,t,r,s){return e==="center"||s==="center"?{top:t}:e==="end"?{bottom:r}:e==="start"?{top:r}:{}}function t0(e,t,r,s,i){return e==="center"||s==="center"?{left:t}:e==="end"?{[i==="ltr"?"right":"left"]:r}:e==="start"?{[i==="ltr"?"left":"right"]:r}:{}}const Qk={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function qk({position:e,arrowSize:t,arrowOffset:r,arrowRadius:s,arrowPosition:i,arrowX:l,arrowY:u,dir:d}){const[p,f="center"]=e.split("-"),m={width:t,height:t,transform:"rotate(45deg)",position:"absolute",[Qk[p]]:s},g=-t/2;return p==="left"?{...m,...e0(f,u,r,i),right:g,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:p==="right"?{...m,...e0(f,u,r,i),left:g,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:p==="top"?{...m,...t0(f,l,r,i,d),bottom:g,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:p==="bottom"?{...m,...t0(f,l,r,i,d),top:g,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const Oh=C.forwardRef(({position:e,arrowSize:t,arrowOffset:r,arrowRadius:s,arrowPosition:i,visible:l,arrowX:u,arrowY:d,style:p,...f},m)=>{const{dir:g}=js();return l?y.jsx("div",{...f,ref:m,style:{...p,...qk({position:e,arrowSize:t,arrowOffset:r,arrowRadius:s,arrowPosition:i,dir:g,arrowX:u,arrowY:d})}}):null});Oh.displayName="@mantine/core/FloatingArrow";var Nw={root:"m_9814e45f"};const Kk={zIndex:$i("modal")},Gk=(e,{gradient:t,color:r,backgroundOpacity:s,blur:i,radius:l,zIndex:u})=>({root:{"--overlay-bg":t||(r!==void 0||s!==void 0)&&mr(r||"#000",s??.6)||void 0,"--overlay-filter":i?`blur(${se(i)})`:void 0,"--overlay-radius":l===void 0?void 0:Ct(l),"--overlay-z-index":u==null?void 0:u.toString()}}),Xa=Rn((e,t)=>{const r=me("Overlay",Kk,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,fixed:f,center:m,children:g,radius:w,zIndex:S,gradient:x,blur:b,color:E,backgroundOpacity:R,mod:P,...k}=r,T=Ie({name:"Overlay",props:r,classes:Nw,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:Gk});return y.jsx(he,{ref:t,...T("root"),mod:[{center:m,fixed:f},P],...k,children:g})});Xa.classes=Nw;Xa.displayName="@mantine/core/Overlay";function ep(e){const t=document.createElement("div");return t.setAttribute("data-portal","true"),typeof e.className=="string"&&t.classList.add(...e.className.split(" ").filter(Boolean)),typeof e.style=="object"&&Object.assign(t.style,e.style),typeof e.id=="string"&&t.setAttribute("id",e.id),t}function Xk({target:e,reuseTargetNode:t,...r}){if(e)return typeof e=="string"?document.querySelector(e)||ep(r):e;if(t){const s=document.querySelector("[data-mantine-shared-portal-node]");if(s)return s;const i=ep(r);return i.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(i),i}return ep(r)}const Yk={},jw=Re((e,t)=>{const{children:r,target:s,reuseTargetNode:i,...l}=me("Portal",Yk,e),[u,d]=C.useState(!1),p=C.useRef(null);return ul(()=>(d(!0),p.current=Xk({target:s,reuseTargetNode:i,...l}),rc(t,p.current),!s&&!i&&p.current&&document.body.appendChild(p.current),()=>{!s&&!i&&p.current&&document.body.removeChild(p.current)}),[s]),!u||!p.current?null:Cc.createPortal(y.jsx(y.Fragment,{children:r}),p.current)});jw.displayName="@mantine/core/Portal";const zi=Re(({withinPortal:e=!0,children:t,...r},s)=>zb()==="test"||!e?y.jsx(y.Fragment,{children:t}):y.jsx(jw,{ref:s,...r,children:t}));zi.displayName="@mantine/core/OptionalPortal";const $a=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${e==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),Vu={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...$a("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...$a("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...$a("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...$a("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...$a("top"),common:{transformOrigin:"top right"}}},n0={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function Jk({transition:e,state:t,duration:r,timingFunction:s}){const i={WebkitBackfaceVisibility:"hidden",willChange:"transform, opacity",transitionDuration:`${r}ms`,transitionTimingFunction:s};return typeof e=="string"?e in Vu?{transitionProperty:Vu[e].transitionProperty,...i,...Vu[e].common,...Vu[e][n0[t]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[n0[t]]}}function Zk({duration:e,exitDuration:t,timingFunction:r,mounted:s,onEnter:i,onExit:l,onEntered:u,onExited:d,enterDelay:p,exitDelay:f}){const m=rn(),g=ah(),w=m.respectReducedMotion?g:!1,[S,x]=C.useState(w?0:e),[b,E]=C.useState(s?"entered":"exited"),R=C.useRef(-1),P=C.useRef(-1),k=C.useRef(-1);function T(){window.clearTimeout(R.current),window.clearTimeout(P.current),cancelAnimationFrame(k.current)}const j=L=>{T();const M=L?i:l,Q=L?u:d,q=w?0:L?e:t;x(q),q===0?(typeof M=="function"&&M(),typeof Q=="function"&&Q(),E(L?"entered":"exited")):k.current=requestAnimationFrame(()=>{Va.flushSync(()=>{E(L?"pre-entering":"pre-exiting")}),k.current=requestAnimationFrame(()=>{typeof M=="function"&&M(),E(L?"entering":"exiting"),R.current=window.setTimeout(()=>{typeof Q=="function"&&Q(),E(L?"entered":"exited")},q)})})},O=L=>{if(T(),typeof(L?p:f)!="number"){j(L);return}P.current=window.setTimeout(()=>{j(L)},L?p:f)};return Kr(()=>{O(s)},[s]),C.useEffect(()=>()=>{T()},[]),{transitionDuration:S,transitionStatus:b,transitionTimingFunction:r||"ease"}}function Vo({keepMounted:e,transition:t="fade",duration:r=250,exitDuration:s=r,mounted:i,children:l,timingFunction:u="ease",onExit:d,onEntered:p,onEnter:f,onExited:m,enterDelay:g,exitDelay:w}){const S=zb(),{transitionDuration:x,transitionStatus:b,transitionTimingFunction:E}=Zk({mounted:i,exitDuration:s,duration:r,timingFunction:u,onExit:d,onEntered:p,onEnter:f,onExited:m,enterDelay:g,exitDelay:w});return x===0||S==="test"?i?y.jsx(y.Fragment,{children:l({})}):e?l({display:"none"}):null:b==="exited"?e?l({display:"none"}):null:y.jsx(y.Fragment,{children:l(Jk({transition:t,duration:x,state:b,timingFunction:E}))})}Vo.displayName="@mantine/core/Transition";const[eP,Ow]=Yr("Popover component was not found in the tree");function Ah({children:e,active:t=!0,refProp:r="ref",innerRef:s}){const i=jE(t),l=$t(i,s);return Ns(e)?C.cloneElement(e,{[r]:l}):e}function Aw(e){return y.jsx(jh,{tabIndex:-1,"data-autofocus":!0,...e})}Ah.displayName="@mantine/core/FocusTrap";Aw.displayName="@mantine/core/FocusTrapInitialFocus";Ah.InitialFocus=Aw;var Dw={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const tP={},Dh=Re((e,t)=>{var E,R,P,k;const r=me("PopoverDropdown",tP,e),{className:s,style:i,vars:l,children:u,onKeyDownCapture:d,variant:p,classNames:f,styles:m,...g}=r,w=Ow(),S=RE({opened:w.opened,shouldReturnFocus:w.returnFocus}),x=w.withRoles?{"aria-labelledby":w.getTargetId(),id:w.getDropdownId(),role:"dialog",tabIndex:-1}:{},b=$t(t,w.floating);return w.disabled?null:y.jsx(zi,{...w.portalProps,withinPortal:w.withinPortal,children:y.jsx(Vo,{mounted:w.opened,...w.transitionProps,transition:((E=w.transitionProps)==null?void 0:E.transition)||"fade",duration:((R=w.transitionProps)==null?void 0:R.duration)??150,keepMounted:w.keepMounted,exitDuration:typeof((P=w.transitionProps)==null?void 0:P.exitDuration)=="number"?w.transitionProps.exitDuration:(k=w.transitionProps)==null?void 0:k.duration,children:T=>y.jsx(Ah,{active:w.trapFocus&&w.opened,innerRef:b,children:y.jsxs(he,{...x,...g,variant:p,onKeyDownCapture:bE(()=>{var j,O;(j=w.onClose)==null||j.call(w),(O=w.onDismiss)==null||O.call(w)},{active:w.closeOnEscape,onTrigger:S,onKeyDown:d}),"data-position":w.placement,"data-fixed":w.floatingStrategy==="fixed"||void 0,...w.getStyles("dropdown",{className:s,props:r,classNames:f,styles:m,style:[{...T,zIndex:w.zIndex,top:w.y??0,left:w.x??0,width:w.width==="target"?void 0:se(w.width)},w.resolvedStyles.dropdown,m==null?void 0:m.dropdown,i]}),children:[u,y.jsx(Oh,{ref:w.arrowRef,arrowX:w.arrowX,arrowY:w.arrowY,visible:w.withArrow,position:w.placement,arrowSize:w.arrowSize,arrowRadius:w.arrowRadius,arrowOffset:w.arrowOffset,arrowPosition:w.arrowPosition,...w.getStyles("arrow",{props:r,classNames:f,styles:m})})]})})})})});Dh.classes=Dw;Dh.displayName="@mantine/core/PopoverDropdown";const nP={refProp:"ref",popupType:"dialog"},Iw=Re((e,t)=>{const{children:r,refProp:s,popupType:i,...l}=me("PopoverTarget",nP,e);if(!Ns(r))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=l,d=Ow(),p=$t(d.reference,wc(r),t),f=d.withRoles?{"aria-haspopup":i,"aria-expanded":d.opened,"aria-controls":d.getDropdownId(),id:d.getTargetId()}:{};return C.cloneElement(r,{...u,...f,...d.targetProps,className:En(d.targetProps.className,u.className,r.props.className),[s]:p,...d.controlled?null:{onClick:d.onToggle}})});Iw.displayName="@mantine/core/PopoverTarget";function Mw({opened:e,floating:t,position:r,positionDependencies:s}){const[i,l]=C.useState(0);C.useEffect(()=>{if(t.refs.reference.current&&t.refs.floating.current&&e)return Y_(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference.current,t.refs.floating.current,e,i,r]),Kr(()=>{t.update()},s),Kr(()=>{l(u=>u+1)},[e])}function rP(e){if(e===void 0)return{shift:!0,flip:!0};const t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function oP(e,t){const r=rP(e.middlewares),s=[uw(e.offset)];return r.shift&&s.push(Ch(typeof r.shift=="boolean"?{limiter:Qy(),padding:5}:{limiter:Qy(),padding:5,...r.shift})),r.flip&&s.push(typeof r.flip=="boolean"?lc():lc(r.flip)),r.inline&&s.push(typeof r.inline=="boolean"?Ha():Ha(r.inline)),s.push(cw({element:e.arrowRef,padding:e.arrowOffset})),(r.size||e.width==="target")&&s.push(uk({...typeof r.size=="boolean"?{}:r.size,apply({rects:i,availableWidth:l,availableHeight:u,...d}){var m;const f=((m=t().refs.floating.current)==null?void 0:m.style)??{};r.size&&(typeof r.size=="object"&&r.size.apply?r.size.apply({rects:i,availableWidth:l,availableHeight:u,...d}):Object.assign(f,{maxWidth:`${l}px`,maxHeight:`${u}px`})),e.width==="target"&&Object.assign(f,{width:`${i.reference.width}px`})}})),s}function sP(e){const[t,r]=$n({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),s=C.useRef(t),i=()=>{t&&!e.disabled&&r(!1)},l=()=>!e.disabled&&r(!t),u=kh({strategy:e.strategy,placement:e.position,middleware:oP(e,()=>u)});return Mw({opened:t,position:e.position,positionDependencies:e.positionDependencies||[],floating:u}),Kr(()=>{var d;(d=e.onPositionChange)==null||d.call(e,u.placement)},[u.placement]),Kr(()=>{var d,p;t!==s.current&&(t?(p=e.onOpen)==null||p.call(e):(d=e.onClose)==null||d.call(e)),s.current=t},[t,e.onClose,e.onOpen]),{floating:u,controlled:typeof e.opened=="boolean",opened:t,onClose:i,onToggle:l}}const iP={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:$i("popover"),__staticSelector:"Popover",width:"max-content"},aP=(e,{radius:t,shadow:r})=>({dropdown:{"--popover-radius":t===void 0?void 0:Ct(t),"--popover-shadow":Nb(r)}});function Bo(e){var oe,Se,Je,Ne,Be,Ge;const t=me("Popover",iP,e),{children:r,position:s,offset:i,onPositionChange:l,positionDependencies:u,opened:d,transitionProps:p,onExitTransitionEnd:f,onEnterTransitionEnd:m,width:g,middlewares:w,withArrow:S,arrowSize:x,arrowOffset:b,arrowRadius:E,arrowPosition:R,unstyled:P,classNames:k,styles:T,closeOnClickOutside:j,withinPortal:O,portalProps:L,closeOnEscape:M,clickOutsideEvents:Q,trapFocus:q,onClose:te,onDismiss:ee,onOpen:ne,onChange:G,zIndex:Z,radius:B,shadow:U,id:A,defaultOpened:V,__staticSelector:W,withRoles:N,disabled:F,returnFocus:le,variant:ye,keepMounted:X,vars:re,floatingStrategy:ve,withOverlay:fe,overlayProps:we,...je}=t,Ue=Ie({name:W,props:t,classes:Dw,classNames:k,styles:T,unstyled:P,rootSelector:"dropdown",vars:re,varsResolver:aP}),{resolvedStyles:Ze}=dl({classNames:k,styles:T,props:t}),et=C.useRef(null),[ft,He]=C.useState(null),[Rt,ue]=C.useState(null),{dir:pe}=js(),Ce=Jr(A),Pe=sP({middlewares:w,width:g,position:Tw(pe,s),offset:typeof i=="number"?i+(S?x/2:0):i,arrowRef:et,arrowOffset:b,onPositionChange:l,positionDependencies:u,opened:d,defaultOpened:V,onChange:G,onOpen:ne,onClose:te,onDismiss:ee,strategy:ve,disabled:F});SE(()=>{j&&(Pe.onClose(),ee==null||ee())},Q,[ft,Rt]);const Me=C.useCallback(qe=>{He(qe),Pe.floating.refs.setReference(qe)},[Pe.floating.refs.setReference]),Fe=C.useCallback(qe=>{ue(qe),Pe.floating.refs.setFloating(qe)},[Pe.floating.refs.setFloating]),ze=C.useCallback(()=>{var qe;(qe=p==null?void 0:p.onExited)==null||qe.call(p),f==null||f()},[p==null?void 0:p.onExited,f]),ce=C.useCallback(()=>{var qe;(qe=p==null?void 0:p.onEntered)==null||qe.call(p),m==null||m()},[p==null?void 0:p.onEntered,m]);return y.jsxs(eP,{value:{returnFocus:le,disabled:F,controlled:Pe.controlled,reference:Me,floating:Fe,x:Pe.floating.x,y:Pe.floating.y,arrowX:(Je=(Se=(oe=Pe.floating)==null?void 0:oe.middlewareData)==null?void 0:Se.arrow)==null?void 0:Je.x,arrowY:(Ge=(Be=(Ne=Pe.floating)==null?void 0:Ne.middlewareData)==null?void 0:Be.arrow)==null?void 0:Ge.y,opened:Pe.opened,arrowRef:et,transitionProps:{...p,onExited:ze,onEntered:ce},width:g,withArrow:S,arrowSize:x,arrowOffset:b,arrowRadius:E,arrowPosition:R,placement:Pe.floating.placement,trapFocus:q,withinPortal:O,portalProps:L,zIndex:Z,radius:B,shadow:U,closeOnEscape:M,onDismiss:ee,onClose:Pe.onClose,onToggle:Pe.onToggle,getTargetId:()=>`${Ce}-target`,getDropdownId:()=>`${Ce}-dropdown`,withRoles:N,targetProps:je,__staticSelector:W,classNames:k,styles:T,unstyled:P,variant:ye,keepMounted:X,getStyles:Ue,resolvedStyles:Ze,floatingStrategy:ve},children:[r,fe&&y.jsx(Vo,{transition:"fade",mounted:Pe.opened,duration:(p==null?void 0:p.duration)||250,exitDuration:(p==null?void 0:p.exitDuration)||250,children:qe=>y.jsx(zi,{withinPortal:O,children:y.jsx(Xa,{...we,...Ue("overlay",{className:we==null?void 0:we.className,style:[qe,we==null?void 0:we.style]})})})})]})}Bo.Target=Iw;Bo.Dropdown=Dh;Bo.displayName="@mantine/core/Popover";Bo.extend=e=>e;var er={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const $w=C.forwardRef(({className:e,...t},r)=>y.jsxs(he,{component:"span",className:En(er.barsLoader,e),...t,ref:r,children:[y.jsx("span",{className:er.bar}),y.jsx("span",{className:er.bar}),y.jsx("span",{className:er.bar})]}));$w.displayName="@mantine/core/Bars";const Lw=C.forwardRef(({className:e,...t},r)=>y.jsxs(he,{component:"span",className:En(er.dotsLoader,e),...t,ref:r,children:[y.jsx("span",{className:er.dot}),y.jsx("span",{className:er.dot}),y.jsx("span",{className:er.dot})]}));Lw.displayName="@mantine/core/Dots";const Fw=C.forwardRef(({className:e,...t},r)=>y.jsx(he,{component:"span",className:En(er.ovalLoader,e),...t,ref:r}));Fw.displayName="@mantine/core/Oval";const zw={bars:$w,oval:Fw,dots:Lw},lP={loaders:zw,type:"oval"},uP=(e,{size:t,color:r})=>({root:{"--loader-size":Ke(t,"loader-size"),"--loader-color":r?It(r,e):void 0}}),Uo=Re((e,t)=>{const r=me("Loader",lP,e),{size:s,color:i,type:l,vars:u,className:d,style:p,classNames:f,styles:m,unstyled:g,loaders:w,variant:S,children:x,...b}=r,E=Ie({name:"Loader",props:r,classes:er,className:d,style:p,classNames:f,styles:m,unstyled:g,vars:u,varsResolver:uP});return x?y.jsx(he,{...E("root"),ref:t,...b,children:x}):y.jsx(he,{...E("root"),ref:t,component:w[l],variant:S,size:s,...b})});Uo.defaultLoaders=zw;Uo.classes=er;Uo.displayName="@mantine/core/Loader";var Vi={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const r0={orientation:"horizontal"},cP=(e,{borderWidth:t})=>({group:{"--ai-border-width":se(t)}}),Ih=Re((e,t)=>{const r=me("ActionIconGroup",r0,e),{className:s,style:i,classNames:l,styles:u,unstyled:d,orientation:p,vars:f,borderWidth:m,variant:g,mod:w,...S}=me("ActionIconGroup",r0,e),x=Ie({name:"ActionIconGroup",props:r,classes:Vi,className:s,style:i,classNames:l,styles:u,unstyled:d,vars:f,varsResolver:cP,rootSelector:"group"});return y.jsx(he,{...x("group"),ref:t,variant:g,mod:[{"data-orientation":p},w],role:"group",...S})});Ih.classes=Vi;Ih.displayName="@mantine/core/ActionIconGroup";const o0={},dP=(e,{radius:t,color:r,gradient:s,variant:i,autoContrast:l,size:u})=>{const d=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:s,variant:i||"filled",autoContrast:l});return{groupSection:{"--section-height":Ke(u,"section-height"),"--section-padding-x":Ke(u,"section-padding-x"),"--section-fz":Ut(u),"--section-radius":t===void 0?void 0:Ct(t),"--section-bg":r||i?d.background:void 0,"--section-color":d.color,"--section-bd":r||i?d.border:void 0}}},Mh=Re((e,t)=>{const r=me("ActionIconGroupSection",o0,e),{className:s,style:i,classNames:l,styles:u,unstyled:d,vars:p,variant:f,gradient:m,radius:g,autoContrast:w,...S}=me("ActionIconGroupSection",o0,e),x=Ie({name:"ActionIconGroupSection",props:r,classes:Vi,className:s,style:i,classNames:l,styles:u,unstyled:d,vars:p,varsResolver:dP,rootSelector:"groupSection"});return y.jsx(he,{...x("groupSection"),ref:t,variant:f,...S})});Mh.classes=Vi;Mh.displayName="@mantine/core/ActionIconGroupSection";const fP={},pP=(e,{size:t,radius:r,variant:s,gradient:i,color:l,autoContrast:u})=>{const d=e.variantColorResolver({color:l||e.primaryColor,theme:e,gradient:i,variant:s||"filled",autoContrast:u});return{root:{"--ai-size":Ke(t,"ai-size"),"--ai-radius":r===void 0?void 0:Ct(r),"--ai-bg":l||s?d.background:void 0,"--ai-hover":l||s?d.hover:void 0,"--ai-hover-color":l||s?d.hoverColor:void 0,"--ai-color":d.color,"--ai-bd":l||s?d.border:void 0}}},hl=Rn((e,t)=>{const r=me("ActionIcon",fP,e),{className:s,unstyled:i,variant:l,classNames:u,styles:d,style:p,loading:f,loaderProps:m,size:g,color:w,radius:S,__staticSelector:x,gradient:b,vars:E,children:R,disabled:P,"data-disabled":k,autoContrast:T,mod:j,...O}=r,L=Ie({name:["ActionIcon",x],props:r,className:s,style:p,classes:Vi,classNames:u,styles:d,unstyled:i,vars:E,varsResolver:pP});return y.jsxs(Fo,{...L("root",{active:!P&&!f&&!k}),...O,unstyled:i,variant:l,size:g,disabled:P||f,ref:t,mod:[{loading:f,disabled:P||k},j],children:[y.jsx(Vo,{mounted:!!f,transition:"slide-down",duration:150,children:M=>y.jsx(he,{component:"span",...L("loader",{style:M}),"aria-hidden":!0,children:y.jsx(Uo,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...m})})}),y.jsx(he,{component:"span",mod:{loading:f},...L("icon"),children:R})]})});hl.classes=Vi;hl.displayName="@mantine/core/ActionIcon";hl.Group=Ih;hl.GroupSection=Mh;const Vw=C.forwardRef(({size:e="var(--cb-icon-size, 70%)",style:t,...r},s)=>y.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:e,height:e},ref:s,...r,children:y.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));Vw.displayName="@mantine/core/CloseIcon";var Bw={root:"m_86a44da5","root--subtle":"m_220c80f2"};const hP={variant:"subtle"},mP=(e,{size:t,radius:r,iconSize:s})=>({root:{"--cb-size":Ke(t,"cb-size"),"--cb-radius":r===void 0?void 0:Ct(r),"--cb-icon-size":se(s)}}),Bi=Rn((e,t)=>{const r=me("CloseButton",hP,e),{iconSize:s,children:i,vars:l,radius:u,className:d,classNames:p,style:f,styles:m,unstyled:g,"data-disabled":w,disabled:S,variant:x,icon:b,mod:E,__staticSelector:R,...P}=r,k=Ie({name:R||"CloseButton",props:r,className:d,style:f,classes:Bw,classNames:p,styles:m,unstyled:g,vars:l,varsResolver:mP});return y.jsxs(Fo,{ref:t,...P,unstyled:g,variant:x,disabled:S,mod:[{disabled:S||w},E],...k("root",{variant:x,active:!S&&!w}),children:[b||y.jsx(Vw,{}),i]})});Bi.classes=Bw;Bi.displayName="@mantine/core/CloseButton";function gP(e){return C.Children.toArray(e).filter(Boolean)}var Uw={root:"m_4081bf90"};const vP={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},yP=(e,{grow:t,preventGrowOverflow:r,gap:s,align:i,justify:l,wrap:u},{childWidth:d})=>({root:{"--group-child-width":t&&r?d:void 0,"--group-gap":$o(s),"--group-align":i,"--group-justify":l,"--group-wrap":u}}),yt=Re((e,t)=>{const r=me("Group",vP,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,children:p,gap:f,align:m,justify:g,wrap:w,grow:S,preventGrowOverflow:x,vars:b,variant:E,__size:R,mod:P,...k}=r,T=gP(p),j=T.length,O=$o(f??"md"),M={childWidth:`calc(${100/j}% - (${O} - ${O} / ${j}))`},Q=Ie({name:"Group",props:r,stylesCtx:M,className:i,style:l,classes:Uw,classNames:s,styles:u,unstyled:d,vars:b,varsResolver:yP});return y.jsx(he,{...Q("root"),ref:t,variant:E,mod:[{grow:S},P],size:R,...k,children:T})});yt.classes=Uw;yt.displayName="@mantine/core/Group";const[bP,wP]=bc({size:"sm"}),SP={},Hw=Re((e,t)=>{const r=me("InputClearButton",SP,e),{size:s,variant:i,vars:l,classNames:u,styles:d,...p}=r,f=wP(),{resolvedClassNames:m,resolvedStyles:g}=dl({classNames:u,styles:d,props:r});return y.jsx(Bi,{variant:i||"transparent",ref:t,size:s||(f==null?void 0:f.size)||"sm",classNames:m,styles:g,__staticSelector:"InputClearButton",...p})});Hw.displayName="@mantine/core/InputClearButton";const[xP,Ui]=bc({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var zn={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const s0={},CP=(e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${Ut(t)} - ${se(2)})`}}),jc=Re((e,t)=>{const r=me("InputDescription",s0,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,size:f,__staticSelector:m,__inheritStyles:g=!0,variant:w,...S}=me("InputDescription",s0,r),x=Ui(),b=Ie({name:["InputWrapper",m],props:r,classes:zn,className:i,style:l,classNames:s,styles:u,unstyled:d,rootSelector:"description",vars:p,varsResolver:CP}),E=g&&(x==null?void 0:x.getStyles)||b;return y.jsx(he,{component:"p",ref:t,variant:w,size:f,...E("description",x!=null&&x.getStyles?{className:i,style:l}:void 0),...S})});jc.classes=zn;jc.displayName="@mantine/core/InputDescription";const EP={},RP=(e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${Ut(t)} - ${se(2)})`}}),Oc=Re((e,t)=>{const r=me("InputError",EP,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,size:f,__staticSelector:m,__inheritStyles:g=!0,variant:w,...S}=r,x=Ie({name:["InputWrapper",m],props:r,classes:zn,className:i,style:l,classNames:s,styles:u,unstyled:d,rootSelector:"error",vars:p,varsResolver:RP}),b=Ui(),E=g&&(b==null?void 0:b.getStyles)||x;return y.jsx(he,{component:"p",ref:t,variant:w,size:f,...E("error",b!=null&&b.getStyles?{className:i,style:l}:void 0),...S})});Oc.classes=zn;Oc.displayName="@mantine/core/InputError";const i0={labelElement:"label"},_P=(e,{size:t})=>({label:{"--input-label-size":Ut(t),"--input-asterisk-color":void 0}}),Ac=Re((e,t)=>{const r=me("InputLabel",i0,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,labelElement:f,size:m,required:g,htmlFor:w,onMouseDown:S,children:x,__staticSelector:b,variant:E,mod:R,...P}=me("InputLabel",i0,r),k=Ie({name:["InputWrapper",b],props:r,classes:zn,className:i,style:l,classNames:s,styles:u,unstyled:d,rootSelector:"label",vars:p,varsResolver:_P}),T=Ui(),j=(T==null?void 0:T.getStyles)||k;return y.jsxs(he,{...j("label",T!=null&&T.getStyles?{className:i,style:l}:void 0),component:f,variant:E,size:m,ref:t,htmlFor:f==="label"?w:void 0,mod:[{required:g},R],onMouseDown:O=>{S==null||S(O),!O.defaultPrevented&&O.detail>1&&O.preventDefault()},...P,children:[x,g&&y.jsx("span",{...j("required"),"aria-hidden":!0,children:" *"})]})});Ac.classes=zn;Ac.displayName="@mantine/core/InputLabel";const a0={},$h=Re((e,t)=>{const r=me("InputPlaceholder",a0,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,__staticSelector:f,variant:m,error:g,mod:w,...S}=me("InputPlaceholder",a0,r),x=Ie({name:["InputPlaceholder",f],props:r,classes:zn,className:i,style:l,classNames:s,styles:u,unstyled:d,rootSelector:"placeholder"});return y.jsx(he,{...x("placeholder"),mod:[{error:!!g},w],component:"span",variant:m,ref:t,...S})});$h.classes=zn;$h.displayName="@mantine/core/InputPlaceholder";function kP(e,{hasDescription:t,hasError:r}){const s=e.findIndex(p=>p==="input"),i=e.slice(0,s),l=e.slice(s+1),u=t&&i.includes("description")||r&&i.includes("error");return{offsetBottom:t&&l.includes("description")||r&&l.includes("error"),offsetTop:u}}const PP={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},TP=(e,{size:t})=>({label:{"--input-label-size":Ut(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${Ut(t)} - ${se(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${Ut(t)} - ${se(2)})`}}),Lh=Re((e,t)=>{const r=me("InputWrapper",PP,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,size:f,variant:m,__staticSelector:g,inputContainer:w,inputWrapperOrder:S,label:x,error:b,description:E,labelProps:R,descriptionProps:P,errorProps:k,labelElement:T,children:j,withAsterisk:O,id:L,required:M,__stylesApiProps:Q,mod:q,...te}=r,ee=Ie({name:["InputWrapper",g],props:Q||r,classes:zn,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:TP}),ne={size:f,variant:m,__staticSelector:g},G=Jr(L),Z=typeof O=="boolean"?O:M,B=(k==null?void 0:k.id)||`${G}-error`,U=(P==null?void 0:P.id)||`${G}-description`,A=G,V=!!b&&typeof b!="boolean",W=!!E,N=`${V?B:""} ${W?U:""}`,F=N.trim().length>0?N.trim():void 0,le=(R==null?void 0:R.id)||`${G}-label`,ye=x&&y.jsx(Ac,{labelElement:T,id:le,htmlFor:A,required:Z,...ne,...R,children:x},"label"),X=W&&y.jsx(jc,{...P,...ne,size:(P==null?void 0:P.size)||ne.size,id:(P==null?void 0:P.id)||U,children:E},"description"),re=y.jsx(C.Fragment,{children:w(j)},"input"),ve=V&&C.createElement(Oc,{...k,...ne,size:(k==null?void 0:k.size)||ne.size,key:"error",id:(k==null?void 0:k.id)||B},b),fe=S.map(we=>{switch(we){case"label":return ye;case"input":return re;case"description":return X;case"error":return ve;default:return null}});return y.jsx(xP,{value:{getStyles:ee,describedBy:F,inputId:A,labelId:le,...kP(S,{hasDescription:W,hasError:V})},children:y.jsx(he,{ref:t,variant:m,size:f,mod:[{error:!!b},q],...ee("root"),...te,children:fe})})});Lh.classes=zn;Lh.displayName="@mantine/core/InputWrapper";const NP={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},jP=(e,t,r)=>({wrapper:{"--input-margin-top":r.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":r.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":Ke(t.size,"input-height"),"--input-fz":Ut(t.size),"--input-radius":t.radius===void 0?void 0:Ct(t.radius),"--input-left-section-width":t.leftSectionWidth!==void 0?se(t.leftSectionWidth):void 0,"--input-right-section-width":t.rightSectionWidth!==void 0?se(t.rightSectionWidth):void 0,"--input-padding-y":t.multiline?Ke(t.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}}),Mt=Rn((e,t)=>{const r=me("Input",NP,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,required:p,__staticSelector:f,__stylesApiProps:m,size:g,wrapperProps:w,error:S,disabled:x,leftSection:b,leftSectionProps:E,leftSectionWidth:R,rightSection:P,rightSectionProps:k,rightSectionWidth:T,rightSectionPointerEvents:j,leftSectionPointerEvents:O,variant:L,vars:M,pointer:Q,multiline:q,radius:te,id:ee,withAria:ne,withErrorStyles:G,mod:Z,inputSize:B,__clearSection:U,__clearable:A,__defaultRightSection:V,...W}=r,{styleProps:N,rest:F}=fl(W),le=Ui(),ye={offsetBottom:le==null?void 0:le.offsetBottom,offsetTop:le==null?void 0:le.offsetTop},X=Ie({name:["Input",f],props:m||r,classes:zn,className:i,style:l,classNames:s,styles:u,unstyled:d,stylesCtx:ye,rootSelector:"wrapper",vars:M,varsResolver:jP}),re=ne?{required:p,disabled:x,"aria-invalid":!!S,"aria-describedby":le==null?void 0:le.describedBy,id:(le==null?void 0:le.inputId)||ee}:{},ve=P||A&&U||V;return y.jsx(bP,{value:{size:g||"sm"},children:y.jsxs(he,{...X("wrapper"),...N,...w,mod:[{error:!!S&&G,pointer:Q,disabled:x,multiline:q,"data-with-right-section":!!ve,"data-with-left-section":!!b},Z],variant:L,size:g,children:[b&&y.jsx("div",{...E,"data-position":"left",...X("section",{className:E==null?void 0:E.className,style:E==null?void 0:E.style}),children:b}),y.jsx(he,{component:"input",...F,...re,ref:t,required:p,mod:{disabled:x,error:!!S&&G},variant:L,__size:B,...X("input")}),ve&&y.jsx("div",{...k,"data-position":"right",...X("section",{className:k==null?void 0:k.className,style:k==null?void 0:k.style}),children:ve})]})})});Mt.classes=zn;Mt.Wrapper=Lh;Mt.Label=Ac;Mt.Error=Oc;Mt.Description=jc;Mt.Placeholder=$h;Mt.ClearButton=Hw;Mt.displayName="@mantine/core/Input";function OP(e,t,r){const s=me(e,t,r),{label:i,description:l,error:u,required:d,classNames:p,styles:f,className:m,unstyled:g,__staticSelector:w,__stylesApiProps:S,errorProps:x,labelProps:b,descriptionProps:E,wrapperProps:R,id:P,size:k,style:T,inputContainer:j,inputWrapperOrder:O,withAsterisk:L,variant:M,vars:Q,mod:q,...te}=s,{styleProps:ee,rest:ne}=fl(te),G={label:i,description:l,error:u,required:d,classNames:p,className:m,__staticSelector:w,__stylesApiProps:S||s,errorProps:x,labelProps:b,descriptionProps:E,unstyled:g,styles:f,size:k,style:T,inputContainer:j,inputWrapperOrder:O,withAsterisk:L,variant:M,id:P,mod:q,...R};return{...ne,classNames:p,styles:f,unstyled:g,wrapperProps:{...G,...ee},inputProps:{required:d,classNames:p,styles:f,unstyled:g,size:k,__staticSelector:w,__stylesApiProps:S||s,error:u,variant:M,id:P}}}const AP={__staticSelector:"InputBase",withAria:!0},Cr=Rn((e,t)=>{const{inputProps:r,wrapperProps:s,...i}=OP("InputBase",AP,e);return y.jsx(Mt.Wrapper,{...s,children:y.jsx(Mt,{...r,...i,ref:t})})});Cr.classes={...Mt.classes,...Mt.Wrapper.classes};Cr.displayName="@mantine/core/InputBase";var Ww={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const DP={},IP=(e,{radius:t,color:r,variant:s,autoContrast:i})=>{const l=e.variantColorResolver({color:r||e.primaryColor,theme:e,variant:s||"light",autoContrast:i});return{root:{"--alert-radius":t===void 0?void 0:Ct(t),"--alert-bg":r||s?l.background:void 0,"--alert-color":l.color,"--alert-bd":r||s?l.border:void 0}}},Dc=Re((e,t)=>{const r=me("Alert",DP,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,radius:f,color:m,title:g,children:w,id:S,icon:x,withCloseButton:b,onClose:E,closeButtonLabel:R,variant:P,autoContrast:k,...T}=r,j=Ie({name:"Alert",classes:Ww,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:IP}),O=Jr(S),L=g&&`${O}-title`||void 0,M=`${O}-body`;return y.jsx(he,{id:O,...j("root",{variant:P}),variant:P,ref:t,...T,role:"alert","aria-describedby":M,"aria-labelledby":L,children:y.jsxs("div",{...j("wrapper"),children:[x&&y.jsx("div",{...j("icon"),children:x}),y.jsxs("div",{...j("body"),children:[g&&y.jsx("div",{...j("title"),"data-with-close-button":b||void 0,children:y.jsx("span",{id:L,...j("label"),children:g})}),w&&y.jsx("div",{id:M,...j("message"),"data-variant":P,children:w})]}),b&&y.jsx(Bi,{...j("closeButton"),onClick:E,variant:"transparent",size:16,iconSize:16,"aria-label":R,unstyled:d})]})})});Dc.classes=Ww;Dc.displayName="@mantine/core/Alert";var Qw={root:"m_b6d8b162"};function MP(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const $P={inherit:!1},LP=(e,{variant:t,lineClamp:r,gradient:s,size:i,color:l})=>({root:{"--text-fz":Ut(i),"--text-lh":Tb(i),"--text-gradient":t==="gradient"?mp(s,e):void 0,"--text-line-clamp":typeof r=="number"?r.toString():void 0,"--text-color":l?It(l,e):void 0}}),at=Rn((e,t)=>{const r=me("Text",$P,e),{lineClamp:s,truncate:i,inline:l,inherit:u,gradient:d,span:p,__staticSelector:f,vars:m,className:g,style:w,classNames:S,styles:x,unstyled:b,variant:E,mod:R,size:P,...k}=r,T=Ie({name:["Text",f],props:r,classes:Qw,className:g,style:w,classNames:S,styles:x,unstyled:b,vars:m,varsResolver:LP});return y.jsx(he,{...T("root",{focusable:!0}),ref:t,component:p?"span":"p",variant:E,mod:[{"data-truncate":MP(i),"data-line-clamp":typeof s=="number","data-inline":l,"data-inherit":u},R],size:P,...k})});at.classes=Qw;at.displayName="@mantine/core/Text";var qw={root:"m_849cf0da"};const FP={underline:"hover"},Yn=Rn((e,t)=>{const{underline:r,className:s,unstyled:i,mod:l,...u}=me("Anchor",FP,e);return y.jsx(at,{component:"a",ref:t,className:En({[qw.root]:!i},s),...u,mod:[{underline:r},l],__staticSelector:"Anchor",unstyled:i})});Yn.classes=qw;Yn.displayName="@mantine/core/Anchor";function Kw(e){return typeof e=="string"?{value:e,label:e}:"value"in e&&!("label"in e)?{value:e.value,label:e.value,disabled:e.disabled}:typeof e=="number"?{value:e.toString(),label:e.toString()}:"group"in e?{group:e.group,items:e.items.map(t=>Kw(t))}:e}function Gw(e){return e?e.map(t=>Kw(t)):[]}function Fh(e){return e.reduce((t,r)=>"group"in r?{...t,...Fh(r.items)}:(t[r.value]=r,t),{})}var gn={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const zP={error:null},VP=(e,{size:t,color:r})=>({chevron:{"--combobox-chevron-size":Ke(t,"combobox-chevron-size"),"--combobox-chevron-color":r?It(r,e):void 0}}),zh=Re((e,t)=>{const r=me("ComboboxChevron",zP,e),{size:s,error:i,style:l,className:u,classNames:d,styles:p,unstyled:f,vars:m,mod:g,...w}=r,S=Ie({name:"ComboboxChevron",classes:gn,props:r,style:l,className:u,classNames:d,styles:p,unstyled:f,vars:m,varsResolver:VP,rootSelector:"chevron"});return y.jsx(he,{component:"svg",...w,...S("chevron"),size:s,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:i},g],ref:t,children:y.jsx("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:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});zh.classes=gn;zh.displayName="@mantine/core/ComboboxChevron";const[BP,Vn]=Yr("Combobox component was not found in tree"),Xw=C.forwardRef(({size:e,onMouseDown:t,onClick:r,onClear:s,...i},l)=>y.jsx(Mt.ClearButton,{ref:l,tabIndex:-1,"aria-hidden":!0,...i,onMouseDown:u=>{u.preventDefault(),t==null||t(u)},onClick:u=>{s(),r==null||r(u)}}));Xw.displayName="@mantine/core/ComboboxClearButton";const UP={},Vh=Re((e,t)=>{const{classNames:r,styles:s,className:i,style:l,hidden:u,...d}=me("ComboboxDropdown",UP,e),p=Vn();return y.jsx(Bo.Dropdown,{...d,ref:t,role:"presentation","data-hidden":u||void 0,...p.getStyles("dropdown",{className:i,style:l,classNames:r,styles:s})})});Vh.classes=gn;Vh.displayName="@mantine/core/ComboboxDropdown";const HP={refProp:"ref"},Yw=Re((e,t)=>{const{children:r,refProp:s}=me("ComboboxDropdownTarget",HP,e);if(Vn(),!Ns(r))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return y.jsx(Bo.Target,{ref:t,refProp:s,children:r})});Yw.displayName="@mantine/core/ComboboxDropdownTarget";const WP={},Bh=Re((e,t)=>{const{classNames:r,className:s,style:i,styles:l,vars:u,...d}=me("ComboboxEmpty",WP,e),p=Vn();return y.jsx(he,{ref:t,...p.getStyles("empty",{className:s,classNames:r,styles:l,style:i}),...d})});Bh.classes=gn;Bh.displayName="@mantine/core/ComboboxEmpty";function Uh({onKeyDown:e,withKeyboardNavigation:t,withAriaAttributes:r,withExpandedAttribute:s,targetType:i,autoComplete:l}){const u=Vn(),[d,p]=C.useState(null),f=g=>{if(e==null||e(g),!u.readOnly&&t){if(g.nativeEvent.isComposing)return;if(g.nativeEvent.code==="ArrowDown"&&(g.preventDefault(),u.store.dropdownOpened?p(u.store.selectNextOption()):(u.store.openDropdown("keyboard"),p(u.store.selectActiveOption()),u.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),g.nativeEvent.code==="ArrowUp"&&(g.preventDefault(),u.store.dropdownOpened?p(u.store.selectPreviousOption()):(u.store.openDropdown("keyboard"),p(u.store.selectActiveOption()),u.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),g.nativeEvent.code==="Enter"||g.nativeEvent.code==="NumpadEnter"){if(g.nativeEvent.keyCode===229)return;const w=u.store.getSelectedOptionIndex();u.store.dropdownOpened&&w!==-1?(g.preventDefault(),u.store.clickSelectedOption()):i==="button"&&(g.preventDefault(),u.store.openDropdown("keyboard"))}g.key==="Escape"&&u.store.closeDropdown("keyboard"),g.nativeEvent.code==="Space"&&i==="button"&&(g.preventDefault(),u.store.toggleDropdown("keyboard"))}};return{...r?{"aria-haspopup":"listbox","aria-expanded":s&&!!(u.store.listId&&u.store.dropdownOpened)||void 0,"aria-controls":u.store.dropdownOpened?u.store.listId:void 0,"aria-activedescendant":u.store.dropdownOpened&&d||void 0,autoComplete:l,"data-expanded":u.store.dropdownOpened||void 0,"data-mantine-stop-propagation":u.store.dropdownOpened||void 0}:{},onKeyDown:f}}const QP={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},Jw=Re((e,t)=>{const{children:r,refProp:s,withKeyboardNavigation:i,withAriaAttributes:l,withExpandedAttribute:u,targetType:d,autoComplete:p,...f}=me("ComboboxEventsTarget",QP,e);if(!Ns(r))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const m=Vn(),g=Uh({targetType:d,withAriaAttributes:l,withKeyboardNavigation:i,withExpandedAttribute:u,onKeyDown:r.props.onKeyDown,autoComplete:p});return C.cloneElement(r,{...g,...f,[s]:$t(t,m.store.targetRef,wc(r))})});Jw.displayName="@mantine/core/ComboboxEventsTarget";const qP={},Hh=Re((e,t)=>{const{classNames:r,className:s,style:i,styles:l,vars:u,...d}=me("ComboboxFooter",qP,e),p=Vn();return y.jsx(he,{ref:t,...p.getStyles("footer",{className:s,classNames:r,style:i,styles:l}),...d,onMouseDown:f=>{f.preventDefault()}})});Hh.classes=gn;Hh.displayName="@mantine/core/ComboboxFooter";const KP={},Wh=Re((e,t)=>{const{classNames:r,className:s,style:i,styles:l,vars:u,children:d,label:p,...f}=me("ComboboxGroup",KP,e),m=Vn();return y.jsxs(he,{ref:t,...m.getStyles("group",{className:s,classNames:r,style:i,styles:l}),...f,children:[p&&y.jsx("div",{...m.getStyles("groupLabel",{classNames:r,styles:l}),children:p}),d]})});Wh.classes=gn;Wh.displayName="@mantine/core/ComboboxGroup";const GP={},Qh=Re((e,t)=>{const{classNames:r,className:s,style:i,styles:l,vars:u,...d}=me("ComboboxHeader",GP,e),p=Vn();return y.jsx(he,{ref:t,...p.getStyles("header",{className:s,classNames:r,style:i,styles:l}),...d,onMouseDown:f=>{f.preventDefault()}})});Qh.classes=gn;Qh.displayName="@mantine/core/ComboboxHeader";function Zw({value:e,valuesDivider:t=",",...r}){return y.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(t):e||"",...r})}Zw.displayName="@mantine/core/ComboboxHiddenInput";const XP={},qh=Re((e,t)=>{const r=me("ComboboxOption",XP,e),{classNames:s,className:i,style:l,styles:u,vars:d,onClick:p,id:f,active:m,onMouseDown:g,onMouseOver:w,disabled:S,selected:x,mod:b,...E}=r,R=Vn(),P=C.useId(),k=f||P;return y.jsx(he,{...R.getStyles("option",{className:i,classNames:s,styles:u,style:l}),...E,ref:t,id:k,mod:["combobox-option",{"combobox-active":m,"combobox-disabled":S,"combobox-selected":x},b],role:"option",onClick:T=>{var j;S?T.preventDefault():((j=R.onOptionSubmit)==null||j.call(R,r.value,r),p==null||p(T))},onMouseDown:T=>{T.preventDefault(),g==null||g(T)},onMouseOver:T=>{R.resetSelectionOnOptionHover&&R.store.resetSelectedOption(),w==null||w(T)}})});qh.classes=gn;qh.displayName="@mantine/core/ComboboxOption";const YP={},Kh=Re((e,t)=>{const r=me("ComboboxOptions",YP,e),{classNames:s,className:i,style:l,styles:u,id:d,onMouseDown:p,labelledBy:f,...m}=r,g=Vn(),w=Jr(d);return C.useEffect(()=>{g.store.setListId(w)},[w]),y.jsx(he,{ref:t,...g.getStyles("options",{className:i,style:l,classNames:s,styles:u}),...m,id:w,role:"listbox","aria-labelledby":f,onMouseDown:S=>{S.preventDefault(),p==null||p(S)}})});Kh.classes=gn;Kh.displayName="@mantine/core/ComboboxOptions";const JP={withAriaAttributes:!0,withKeyboardNavigation:!0},Gh=Re((e,t)=>{const r=me("ComboboxSearch",JP,e),{classNames:s,styles:i,unstyled:l,vars:u,withAriaAttributes:d,onKeyDown:p,withKeyboardNavigation:f,size:m,...g}=r,w=Vn(),S=w.getStyles("search"),x=Uh({targetType:"input",withAriaAttributes:d,withKeyboardNavigation:f,withExpandedAttribute:!1,onKeyDown:p,autoComplete:"off"});return y.jsx(Mt,{ref:$t(t,w.store.searchRef),classNames:[{input:S.className},s],styles:[{input:S.style},i],size:m||w.size,...x,...g,__staticSelector:"Combobox"})});Gh.classes=gn;Gh.displayName="@mantine/core/ComboboxSearch";const ZP={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},eS=Re((e,t)=>{const{children:r,refProp:s,withKeyboardNavigation:i,withAriaAttributes:l,withExpandedAttribute:u,targetType:d,autoComplete:p,...f}=me("ComboboxTarget",ZP,e);if(!Ns(r))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const m=Vn(),g=Uh({targetType:d,withAriaAttributes:l,withKeyboardNavigation:i,withExpandedAttribute:u,onKeyDown:r.props.onKeyDown,autoComplete:p}),w=C.cloneElement(r,{...g,...f});return y.jsx(Bo.Target,{ref:$t(t,m.store.targetRef),children:w})});eS.displayName="@mantine/core/ComboboxTarget";function eT(e,t,r){for(let s=e-1;s>=0;s-=1)if(!t[s].hasAttribute("data-combobox-disabled"))return s;if(r){for(let s=t.length-1;s>-1;s-=1)if(!t[s].hasAttribute("data-combobox-disabled"))return s}return e}function tT(e,t,r){for(let s=e+1;s<t.length;s+=1)if(!t[s].hasAttribute("data-combobox-disabled"))return s;if(r){for(let s=0;s<t.length;s+=1)if(!t[s].hasAttribute("data-combobox-disabled"))return s}return e}function nT(e){for(let t=0;t<e.length;t+=1)if(!e[t].hasAttribute("data-combobox-disabled"))return t;return-1}function Xh({defaultOpened:e,opened:t,onOpenedChange:r,onDropdownClose:s,onDropdownOpen:i,loop:l=!0,scrollBehavior:u="instant"}={}){const[d,p]=$n({value:t,defaultValue:e,finalValue:!1,onChange:r}),f=C.useRef(null),m=C.useRef(-1),g=C.useRef(null),w=C.useRef(null),S=C.useRef(-1),x=C.useRef(-1),b=C.useRef(-1),E=C.useCallback((B="unknown")=>{d||(p(!0),i==null||i(B))},[p,i,d]),R=C.useCallback((B="unknown")=>{d&&(p(!1),s==null||s(B))},[p,s,d]),P=C.useCallback((B="unknown")=>{d?R(B):E(B)},[R,E,d]),k=C.useCallback(()=>{const B=document.querySelector(`#${f.current} [data-combobox-selected]`);B==null||B.removeAttribute("data-combobox-selected"),B==null||B.removeAttribute("aria-selected")},[]),T=C.useCallback(B=>{const U=document.getElementById(f.current),A=U==null?void 0:U.querySelectorAll("[data-combobox-option]");if(!A)return null;const V=B>=A.length?0:B<0?A.length-1:B;return m.current=V,A!=null&&A[V]&&!A[V].hasAttribute("data-combobox-disabled")?(k(),A[V].setAttribute("data-combobox-selected","true"),A[V].setAttribute("aria-selected","true"),A[V].scrollIntoView({block:"nearest",behavior:u}),A[V].id):null},[u,k]),j=C.useCallback(()=>{const B=document.querySelector(`#${f.current} [data-combobox-active]`);if(B){const U=document.querySelectorAll(`#${f.current} [data-combobox-option]`),A=Array.from(U).findIndex(V=>V===B);return T(A)}return T(0)},[T]),O=C.useCallback(()=>T(tT(m.current,document.querySelectorAll(`#${f.current} [data-combobox-option]`),l)),[T,l]),L=C.useCallback(()=>T(eT(m.current,document.querySelectorAll(`#${f.current} [data-combobox-option]`),l)),[T,l]),M=C.useCallback(()=>T(nT(document.querySelectorAll(`#${f.current} [data-combobox-option]`))),[T]),Q=C.useCallback((B="selected",U)=>{b.current=window.setTimeout(()=>{var W;const A=document.querySelectorAll(`#${f.current} [data-combobox-option]`),V=Array.from(A).findIndex(N=>N.hasAttribute(`data-combobox-${B}`));m.current=V,U!=null&&U.scrollIntoView&&((W=A[V])==null||W.scrollIntoView({block:"nearest",behavior:u}))},0)},[]),q=C.useCallback(()=>{m.current=-1,k()},[k]),te=C.useCallback(()=>{const B=document.querySelectorAll(`#${f.current} [data-combobox-option]`),U=B==null?void 0:B[m.current];U==null||U.click()},[]),ee=C.useCallback(B=>{f.current=B},[]),ne=C.useCallback(()=>{S.current=window.setTimeout(()=>g.current.focus(),0)},[]),G=C.useCallback(()=>{x.current=window.setTimeout(()=>w.current.focus(),0)},[]),Z=C.useCallback(()=>m.current,[]);return C.useEffect(()=>()=>{window.clearTimeout(S.current),window.clearTimeout(x.current),window.clearTimeout(b.current)},[]),{dropdownOpened:d,openDropdown:E,closeDropdown:R,toggleDropdown:P,selectedOptionIndex:m.current,getSelectedOptionIndex:Z,selectOption:T,selectFirstOption:M,selectActiveOption:j,selectNextOption:O,selectPreviousOption:L,resetSelectedOption:q,updateSelectedOptionIndex:Q,listId:f.current,setListId:ee,clickSelectedOption:te,searchRef:g,focusSearchInput:ne,targetRef:w,focusTarget:G}}const rT={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0}},oT=(e,{size:t,dropdownPadding:r})=>({options:{"--combobox-option-fz":Ut(t),"--combobox-option-padding":Ke(t,"combobox-option-padding")},dropdown:{"--combobox-padding":r===void 0?void 0:se(r),"--combobox-option-fz":Ut(t),"--combobox-option-padding":Ke(t,"combobox-option-padding")}});function Ye(e){const t=me("Combobox",rT,e),{classNames:r,styles:s,unstyled:i,children:l,store:u,vars:d,onOptionSubmit:p,onClose:f,size:m,dropdownPadding:g,resetSelectionOnOptionHover:w,__staticSelector:S,readOnly:x,...b}=t,E=Xh(),R=u||E,P=Ie({name:S||"Combobox",classes:gn,props:t,classNames:r,styles:s,unstyled:i,vars:d,varsResolver:oT}),k=()=>{f==null||f(),R.closeDropdown()};return y.jsx(BP,{value:{getStyles:P,store:R,onOptionSubmit:p,size:m,resetSelectionOnOptionHover:w,readOnly:x},children:y.jsx(Bo,{opened:R.dropdownOpened,...b,onChange:T=>!T&&k(),withRoles:!1,unstyled:i,children:l})})}const sT=e=>e;Ye.extend=sT;Ye.classes=gn;Ye.displayName="@mantine/core/Combobox";Ye.Target=eS;Ye.Dropdown=Vh;Ye.Options=Kh;Ye.Option=qh;Ye.Search=Gh;Ye.Empty=Bh;Ye.Chevron=zh;Ye.Footer=Hh;Ye.Header=Qh;Ye.EventsTarget=Jw;Ye.DropdownTarget=Yw;Ye.Group=Wh;Ye.ClearButton=Xw;Ye.HiddenInput=Zw;var tS={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};const iT=tS,nS=C.forwardRef(({__staticSelector:e,__stylesApiProps:t,className:r,classNames:s,styles:i,unstyled:l,children:u,label:d,description:p,id:f,disabled:m,error:g,size:w,labelPosition:S="left",bodyElement:x="div",labelElement:b="label",variant:E,style:R,vars:P,mod:k,...T},j)=>{const O=Ie({name:e,props:t,className:r,style:R,classes:tS,classNames:s,styles:i,unstyled:l});return y.jsx(he,{...O("root"),ref:j,__vars:{"--label-fz":Ut(w),"--label-lh":Ke(w,"label-lh")},mod:[{"label-position":S},k],variant:E,size:w,...T,children:y.jsxs(he,{component:x,htmlFor:x==="label"?f:void 0,...O("body"),children:[u,y.jsxs("div",{...O("labelWrapper"),"data-disabled":m||void 0,children:[d&&y.jsx(he,{component:b,htmlFor:b==="label"?f:void 0,...O("label"),"data-disabled":m||void 0,children:d}),p&&y.jsx(Mt.Description,{size:w,__inheritStyles:!1,...O("description"),children:p}),g&&typeof g!="boolean"&&y.jsx(Mt.Error,{size:w,__inheritStyles:!1,...O("error"),children:g})]})]})})});nS.displayName="@mantine/core/InlineInput";function aT({children:e,role:t}){const r=Ui();return r?y.jsx("div",{role:t,"aria-labelledby":r.labelId,"aria-describedby":r.describedBy,children:e}):y.jsx(y.Fragment,{children:e})}function lT({size:e,style:t,...r}){const s=e!==void 0?{width:se(e),height:se(e),...t}:t;return y.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:s,"aria-hidden":!0,...r,children:y.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Di(e){return"group"in e}function rS({options:e,search:t,limit:r}){const s=t.trim().toLowerCase(),i=[];for(let l=0;l<e.length;l+=1){const u=e[l];if(i.length===r)return i;Di(u)&&i.push({group:u.group,items:rS({options:u.items,search:t,limit:r-i.length})}),Di(u)||u.label.toLowerCase().includes(s)&&i.push(u)}return i}function uT(e){if(e.length===0)return!0;for(const t of e)if(!("group"in t)||t.items.length>0)return!1;return!0}function oS(e,t=new Set){if(Array.isArray(e))for(const r of e)if(Di(r))oS(r.items,t);else{if(typeof r.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(typeof r.value!="string")throw new Error(`[@mantine/core] Option value must be a string, other data formats are not supported, got ${typeof r.value}`);if(t.has(r.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${r.value}" was provided more than once`);t.add(r.value)}}function cT(e,t){return Array.isArray(e)?e.includes(t):e===t}function sS({data:e,withCheckIcon:t,value:r,checkIconPosition:s,unstyled:i,renderOption:l}){if(!Di(e)){const d=cT(r,e.value),p=t&&d&&y.jsx(lT,{className:gn.optionsDropdownCheckIcon}),f=y.jsxs(y.Fragment,{children:[s==="left"&&p,y.jsx("span",{children:e.label}),s==="right"&&p]});return y.jsx(Ye.Option,{value:e.value,disabled:e.disabled,className:En({[gn.optionsDropdownOption]:!i}),"data-reverse":s==="right"||void 0,"data-checked":d||void 0,"aria-selected":d,active:d,children:typeof l=="function"?l({option:e,checked:d}):f})}const u=e.items.map(d=>y.jsx(sS,{data:d,value:r,unstyled:i,withCheckIcon:t,checkIconPosition:s,renderOption:l},d.value));return y.jsx(Ye.Group,{label:e.group,children:u})}function iS({data:e,hidden:t,hiddenWhenEmpty:r,filter:s,search:i,limit:l,maxDropdownHeight:u,withScrollArea:d=!0,filterOptions:p=!0,withCheckIcon:f=!1,value:m,checkIconPosition:g,nothingFoundMessage:w,unstyled:S,labelId:x,renderOption:b,scrollAreaProps:E,"aria-label":R}){oS(e);const k=typeof i=="string"?(s||rS)({options:e,search:p?i:"",limit:l??1/0}):e,T=uT(k),j=k.map(O=>y.jsx(sS,{data:O,withCheckIcon:f,value:m,checkIconPosition:g,unstyled:S,renderOption:b},Di(O)?O.group:O.value));return y.jsx(Ye.Dropdown,{hidden:t||r&&T,"data-composed":!0,children:y.jsxs(Ye.Options,{labelledBy:x,"aria-label":R,children:[d?y.jsx(Os.Autosize,{mah:u??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...E,children:j}):j,T&&w&&y.jsx(Ye.Empty,{children:w})]})})}var aS={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const dT={},fT=(e,{radius:t,color:r,gradient:s,variant:i,size:l,autoContrast:u})=>{const d=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:s,variant:i||"filled",autoContrast:u});return{root:{"--badge-height":Ke(l,"badge-height"),"--badge-padding-x":Ke(l,"badge-padding-x"),"--badge-fz":Ke(l,"badge-fz"),"--badge-radius":t===void 0?void 0:Ct(t),"--badge-bg":r||i?d.background:void 0,"--badge-color":r||i?d.color:void 0,"--badge-bd":r||i?d.border:void 0,"--badge-dot-color":i==="dot"?It(r,e):void 0}}},Yh=Rn((e,t)=>{const r=me("Badge",dT,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,radius:f,color:m,gradient:g,leftSection:w,rightSection:S,children:x,variant:b,fullWidth:E,autoContrast:R,circle:P,mod:k,...T}=r,j=Ie({name:"Badge",props:r,classes:aS,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:fT});return y.jsxs(he,{variant:b,mod:[{block:E,circle:P,"with-right-section":!!S,"with-left-section":!!w},k],...j("root",{variant:b}),ref:t,...T,children:[w&&y.jsx("span",{...j("section"),"data-position":"left",children:w}),y.jsx("span",{...j("label"),children:x}),S&&y.jsx("span",{...j("section"),"data-position":"right",children:S})]})});Yh.classes=aS;Yh.displayName="@mantine/core/Badge";var Hi={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const l0={orientation:"horizontal"},pT=(e,{borderWidth:t})=>({group:{"--button-border-width":se(t)}}),Jh=Re((e,t)=>{const r=me("ButtonGroup",l0,e),{className:s,style:i,classNames:l,styles:u,unstyled:d,orientation:p,vars:f,borderWidth:m,variant:g,mod:w,...S}=me("ButtonGroup",l0,e),x=Ie({name:"ButtonGroup",props:r,classes:Hi,className:s,style:i,classNames:l,styles:u,unstyled:d,vars:f,varsResolver:pT,rootSelector:"group"});return y.jsx(he,{...x("group"),ref:t,variant:g,mod:[{"data-orientation":p},w],role:"group",...S})});Jh.classes=Hi;Jh.displayName="@mantine/core/ButtonGroup";const u0={},hT=(e,{radius:t,color:r,gradient:s,variant:i,autoContrast:l,size:u})=>{const d=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:s,variant:i||"filled",autoContrast:l});return{groupSection:{"--section-height":Ke(u,"section-height"),"--section-padding-x":Ke(u,"section-padding-x"),"--section-fz":u!=null&&u.includes("compact")?Ut(u.replace("compact-","")):Ut(u),"--section-radius":t===void 0?void 0:Ct(t),"--section-bg":r||i?d.background:void 0,"--section-color":d.color,"--section-bd":r||i?d.border:void 0}}},Zh=Re((e,t)=>{const r=me("ButtonGroupSection",u0,e),{className:s,style:i,classNames:l,styles:u,unstyled:d,vars:p,variant:f,gradient:m,radius:g,autoContrast:w,...S}=me("ButtonGroupSection",u0,e),x=Ie({name:"ButtonGroupSection",props:r,classes:Hi,className:s,style:i,classNames:l,styles:u,unstyled:d,vars:p,varsResolver:hT,rootSelector:"groupSection"});return y.jsx(he,{...x("groupSection"),ref:t,variant:f,...S})});Zh.classes=Hi;Zh.displayName="@mantine/core/ButtonGroupSection";const mT={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${se(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},gT={},vT=(e,{radius:t,color:r,gradient:s,variant:i,size:l,justify:u,autoContrast:d})=>{const p=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:s,variant:i||"filled",autoContrast:d});return{root:{"--button-justify":u,"--button-height":Ke(l,"button-height"),"--button-padding-x":Ke(l,"button-padding-x"),"--button-fz":l!=null&&l.includes("compact")?Ut(l.replace("compact-","")):Ut(l),"--button-radius":t===void 0?void 0:Ct(t),"--button-bg":r||i?p.background:void 0,"--button-hover":r||i?p.hover:void 0,"--button-color":p.color,"--button-bd":r||i?p.border:void 0,"--button-hover-color":r||i?p.hoverColor:void 0}}},Mn=Rn((e,t)=>{const r=me("Button",gT,e),{style:s,vars:i,className:l,color:u,disabled:d,children:p,leftSection:f,rightSection:m,fullWidth:g,variant:w,radius:S,loading:x,loaderProps:b,gradient:E,classNames:R,styles:P,unstyled:k,"data-disabled":T,autoContrast:j,mod:O,...L}=r,M=Ie({name:"Button",props:r,classes:Hi,className:l,style:s,classNames:R,styles:P,unstyled:k,vars:i,varsResolver:vT}),Q=!!f,q=!!m;return y.jsxs(Fo,{ref:t,...M("root",{active:!d&&!x&&!T}),unstyled:k,variant:w,disabled:d||x,mod:[{disabled:d||T,loading:x,block:g,"with-left-section":Q,"with-right-section":q},O],...L,children:[y.jsx(Vo,{mounted:!!x,transition:mT,duration:150,children:te=>y.jsx(he,{component:"span",...M("loader",{style:te}),"aria-hidden":!0,children:y.jsx(Uo,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...b})})}),y.jsxs("span",{...M("inner"),children:[f&&y.jsx(he,{component:"span",...M("section"),mod:{position:"left"},children:f}),y.jsx(he,{component:"span",mod:{loading:x},...M("label"),children:p}),m&&y.jsx(he,{component:"span",...M("section"),mod:{position:"right"},children:m})]})]})});Mn.classes=Hi;Mn.displayName="@mantine/core/Button";Mn.Group=Jh;Mn.GroupSection=Zh;var lS={root:"m_de3d2490",colorOverlay:"m_862f3d1b",shadowOverlay:"m_98ae7f22",alphaOverlay:"m_95709ac0",childrenOverlay:"m_93e74e3"};const c0={withShadow:!0},yT=(e,{radius:t,size:r})=>({root:{"--cs-radius":t===void 0?void 0:Ct(t),"--cs-size":se(r)}}),Wa=Rn((e,t)=>{const r=me("ColorSwatch",c0,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,color:f,size:m,radius:g,withShadow:w,children:S,variant:x,...b}=me("ColorSwatch",c0,r),E=Ie({name:"ColorSwatch",props:r,classes:lS,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:yT});return y.jsxs(he,{ref:t,variant:x,size:m,...E("root",{focusable:!0}),...b,children:[y.jsx("span",{...E("alphaOverlay")}),w&&y.jsx("span",{...E("shadowOverlay")}),y.jsx("span",{...E("colorOverlay",{style:{backgroundColor:f}})}),y.jsx("span",{...E("childrenOverlay"),children:S})]})});Wa.classes=lS;Wa.displayName="@mantine/core/ColorSwatch";var uS={root:"m_7485cace"};const bT={},wT=(e,{size:t,fluid:r})=>({root:{"--container-size":r?void 0:Ke(t,"container-size")}}),em=Re((e,t)=>{const r=me("Container",bT,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,fluid:f,mod:m,...g}=r,w=Ie({name:"Container",classes:uS,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:wT});return y.jsx(he,{ref:t,mod:[{fluid:f},m],...w("root"),...g})});em.classes=uS;em.displayName="@mantine/core/Container";var cS={root:"m_3eebeb36",label:"m_9e365f20"};const ST={orientation:"horizontal"},xT=(e,{color:t,variant:r,size:s})=>({root:{"--divider-color":t?It(t,e):void 0,"--divider-border-style":r,"--divider-size":Ke(s,"divider-size")}}),tm=Re((e,t)=>{const r=me("Divider",ST,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,color:f,orientation:m,label:g,labelPosition:w,mod:S,...x}=r,b=Ie({name:"Divider",classes:cS,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:xT});return y.jsx(he,{ref:t,mod:[{orientation:m,"with-label":!!g},S],...b("root"),...x,role:"separator",children:g&&y.jsx(he,{component:"span",mod:{position:w},...b("label"),children:g})})});tm.classes=cS;tm.displayName="@mantine/core/Divider";const[d0,dS]=Yr("Grid component was not found in tree"),_p=(e,t)=>e==="content"?"auto":e==="auto"?"0rem":e?`${100/(t/e)}%`:void 0,f0=(e,t,r)=>r||e==="auto"?"100%":e==="content"?"unset":_p(e,t),p0=(e,t)=>{if(e)return e==="auto"||t?"1":"auto"},h0=(e,t)=>e===0?"0":e?`${100/(t/e)}%`:void 0;function CT({span:e,order:t,offset:r,selector:s}){var S;const i=rn(),l=dS(),u=l.breakpoints||i.breakpoints,p=za(e)===void 0?12:za(e),f=al({"--col-order":(S=za(t))==null?void 0:S.toString(),"--col-flex-grow":p0(p,l.grow),"--col-flex-basis":_p(p,l.columns),"--col-width":p==="content"?"auto":void 0,"--col-max-width":f0(p,l.columns,l.grow),"--col-offset":h0(za(r),l.columns)}),m=Yt(u).reduce((x,b)=>{var E;return x[b]||(x[b]={}),typeof t=="object"&&t[b]!==void 0&&(x[b]["--col-order"]=(E=t[b])==null?void 0:E.toString()),typeof e=="object"&&e[b]!==void 0&&(x[b]["--col-flex-grow"]=p0(e[b],l.grow),x[b]["--col-flex-basis"]=_p(e[b],l.columns),x[b]["--col-width"]=e[b]==="content"?"auto":void 0,x[b]["--col-max-width"]=f0(e[b],l.columns,l.grow)),typeof r=="object"&&r[b]!==void 0&&(x[b]["--col-offset"]=h0(r[b],l.columns)),x},{}),w=jb(Yt(m),u).filter(x=>Yt(m[x.value]).length>0).map(x=>({query:l.type==="container"?`mantine-grid (min-width: ${u[x.value]})`:`(min-width: ${u[x.value]})`,styles:m[x.value]}));return y.jsx(fh,{styles:f,media:l.type==="container"?void 0:w,container:l.type==="container"?w:void 0,selector:s})}var nm={container:"m_8478a6da",root:"m_410352e9",inner:"m_dee7bd2f",col:"m_96bdd299"};const ET={span:12},rm=Re((e,t)=>{const r=me("GridCol",ET,e),{classNames:s,className:i,style:l,styles:u,vars:d,span:p,order:f,offset:m,...g}=r,w=dS(),S=hh();return y.jsxs(y.Fragment,{children:[y.jsx(CT,{selector:`.${S}`,span:p,order:f,offset:m}),y.jsx(he,{ref:t,...w.getStyles("col",{className:En(i,S),style:l,classNames:s,styles:u}),...g})]})});rm.classes=nm;rm.displayName="@mantine/core/GridCol";function m0({gutter:e,selector:t,breakpoints:r,type:s}){const i=rn(),l=r||i.breakpoints,u=al({"--grid-gutter":$o(za(e))}),d=Yt(l).reduce((m,g)=>(m[g]||(m[g]={}),typeof e=="object"&&e[g]!==void 0&&(m[g]["--grid-gutter"]=$o(e[g])),m),{}),f=jb(Yt(d),l).filter(m=>Yt(d[m.value]).length>0).map(m=>({query:s==="container"?`mantine-grid (min-width: ${l[m.value]})`:`(min-width: ${l[m.value]})`,styles:d[m.value]}));return y.jsx(fh,{styles:u,media:s==="container"?void 0:f,container:s==="container"?f:void 0,selector:t})}const RT={gutter:"md",grow:!1,columns:12},_T=(e,{justify:t,align:r,overflow:s})=>({root:{"--grid-justify":t,"--grid-align":r,"--grid-overflow":s}}),Lr=Re((e,t)=>{const r=me("Grid",RT,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,grow:f,gutter:m,columns:g,align:w,justify:S,children:x,breakpoints:b,type:E,...R}=r,P=Ie({name:"Grid",classes:nm,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:_T}),k=hh();return E==="container"&&b?y.jsxs(d0,{value:{getStyles:P,grow:f,columns:g||12,breakpoints:b,type:E},children:[y.jsx(m0,{selector:`.${k}`,...r}),y.jsx("div",{...P("container"),children:y.jsx(he,{ref:t,...P("root",{className:k}),...R,children:y.jsx("div",{...P("inner"),children:x})})})]}):y.jsxs(d0,{value:{getStyles:P,grow:f,columns:g||12,breakpoints:b,type:E},children:[y.jsx(m0,{selector:`.${k}`,...r}),y.jsx(he,{ref:t,...P("root",{className:k}),...R,children:y.jsx("div",{...P("inner"),children:x})})]})});Lr.classes=nm;Lr.displayName="@mantine/core/Grid";Lr.Col=rm;var fS={root:"m_9e117634"};const kT={},PT=(e,{radius:t,fit:r})=>({root:{"--image-radius":t===void 0?void 0:Ct(t),"--image-object-fit":r}}),yi=Rn((e,t)=>{const r=me("Image",kT,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,onError:f,src:m,radius:g,fit:w,fallbackSrc:S,mod:x,...b}=r,[E,R]=C.useState(!m);C.useEffect(()=>R(!m),[m]);const P=Ie({name:"Image",classes:fS,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:PT});return E&&S?y.jsx(he,{component:"img",ref:t,src:S,...P("root"),onError:f,mod:["fallback",x],...b}):y.jsx(he,{component:"img",ref:t,...P("root"),src:m,onError:k=>{f==null||f(k),R(!0)},mod:x,...b})});yi.classes=fS;yi.displayName="@mantine/core/Image";function kp(){return kp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},kp.apply(null,arguments)}function pS(e,t){if(e==null)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)!==-1)continue;r[s]=e[s]}return r}const[TT,NT]=Yr("List component was not found in tree");var om={root:"m_abbac491",item:"m_abb6bec2",itemWrapper:"m_75cd9f71",itemIcon:"m_60f83e5b"};const jT={},sm=Re((e,t)=>{const r=me("ListItem",jT,e),{classNames:s,className:i,style:l,styles:u,vars:d,icon:p,children:f,mod:m,...g}=r,w=NT(),S=p||w.icon,x={classNames:s,styles:u};return y.jsx(he,{...w.getStyles("item",{...x,className:i,style:l}),component:"li",mod:[{"with-icon":!!S,centered:w.center},m],ref:t,...g,children:y.jsxs("div",{...w.getStyles("itemWrapper",x),children:[S&&y.jsx("span",{...w.getStyles("itemIcon",x),children:S}),y.jsx("span",{...w.getStyles("itemLabel",x),children:f})]})})});sm.classes=om;sm.displayName="@mantine/core/ListItem";const OT={type:"unordered"},AT=(e,{size:t,spacing:r})=>({root:{"--list-fz":Ut(t),"--list-lh":Tb(t),"--list-spacing":$o(r)}}),us=Re((e,t)=>{const r=me("List",OT,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,children:f,type:m,withPadding:g,icon:w,spacing:S,center:x,listStyleType:b,mod:E,...R}=r,P=Ie({name:"List",classes:om,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:AT});return y.jsx(TT,{value:{center:x,icon:w,getStyles:P},children:y.jsx(he,{...P("root",{style:{listStyleType:b}}),component:m==="unordered"?"ul":"ol",mod:[{"with-padding":g},E],ref:t,...R,children:f})})});us.classes=om;us.displayName="@mantine/core/List";us.Item=sm;var hS={root:"m_6e45937b",loader:"m_e8eb006c",overlay:"m_df587f17"};const g0={transitionProps:{transition:"fade",duration:0},overlayProps:{backgroundOpacity:.75},zIndex:$i("overlay")},DT=(e,{zIndex:t})=>({root:{"--lo-z-index":t==null?void 0:t.toString()}}),im=Re((e,t)=>{const r=me("LoadingOverlay",g0,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,transitionProps:f,loaderProps:m,overlayProps:g,visible:w,zIndex:S,...x}=r,b=rn(),E=Ie({name:"LoadingOverlay",classes:hS,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:DT}),R={...g0.overlayProps,...g};return y.jsx(Vo,{transition:"fade",...f,mounted:!!w,children:P=>y.jsxs(he,{...E("root",{style:P}),ref:t,...x,children:[y.jsx(Uo,{...E("loader"),unstyled:d,...m}),y.jsx(Xa,{...R,...E("overlay"),darkHidden:!0,unstyled:d,color:(g==null?void 0:g.color)||b.white}),y.jsx(Xa,{...R,...E("overlay"),lightHidden:!0,unstyled:d,color:(g==null?void 0:g.color)||b.colors.dark[5]})]})})});im.classes=hS;im.displayName="@mantine/core/LoadingOverlay";const[IT,am]=bc(),[MT,$T]=bc();var Ic={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};const LT={},FT=(e,{gap:t},{size:r})=>({group:{"--pg-gap":t!==void 0?Ke(t):Ke(r,"pg-gap")}}),lm=Re((e,t)=>{const r=me("PillGroup",LT,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,size:f,disabled:m,...g}=r,w=am(),S=(w==null?void 0:w.size)||f||void 0,x=Ie({name:"PillGroup",classes:Ic,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:FT,stylesCtx:{size:S},rootSelector:"group"});return y.jsx(MT,{value:{size:S,disabled:m},children:y.jsx(he,{ref:t,size:S,...x("group"),...g})})});lm.classes=Ic;lm.displayName="@mantine/core/PillGroup";const zT={variant:"default"},VT=(e,{radius:t},{size:r})=>({root:{"--pill-fz":Ke(r,"pill-fz"),"--pill-height":Ke(r,"pill-height"),"--pill-radius":t===void 0?void 0:Ct(t)}}),Ya=Re((e,t)=>{const r=me("Pill",zT,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,variant:f,children:m,withRemoveButton:g,onRemove:w,removeButtonProps:S,radius:x,size:b,disabled:E,mod:R,...P}=r,k=$T(),T=am(),j=b||(k==null?void 0:k.size)||void 0,O=(T==null?void 0:T.variant)==="filled"?"contrast":f||"default",L=Ie({name:"Pill",classes:Ic,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:VT,stylesCtx:{size:j}});return y.jsxs(he,{component:"span",ref:t,variant:O,size:j,...L("root",{variant:O}),mod:[{"with-remove":g&&!E,disabled:E||(k==null?void 0:k.disabled)},R],...P,children:[y.jsx("span",{...L("label"),children:m}),g&&y.jsx(Bi,{variant:"transparent",radius:x,tabIndex:-1,"aria-hidden":!0,unstyled:d,...S,...L("remove",{className:S==null?void 0:S.className,style:S==null?void 0:S.style}),onMouseDown:M=>{var Q;M.preventDefault(),M.stopPropagation(),(Q=S==null?void 0:S.onMouseDown)==null||Q.call(S,M)},onClick:M=>{var Q;M.stopPropagation(),w==null||w(),(Q=S==null?void 0:S.onClick)==null||Q.call(S,M)}})]})});Ya.classes=Ic;Ya.displayName="@mantine/core/Pill";Ya.Group=lm;var mS={field:"m_45c4369d"};const BT={type:"visible"},um=Re((e,t)=>{const r=me("PillsInputField",BT,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,type:f,disabled:m,id:g,pointer:w,mod:S,...x}=r,b=am(),E=Ui(),R=Ie({name:"PillsInputField",classes:mS,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d,rootSelector:"field"}),P=m||(b==null?void 0:b.disabled);return y.jsx(he,{component:"input",ref:$t(t,b==null?void 0:b.fieldRef),"data-type":f,disabled:P,mod:[{disabled:P,pointer:w},S],...R("field"),...x,id:(E==null?void 0:E.inputId)||g,"aria-invalid":b==null?void 0:b.hasError,"aria-describedby":E==null?void 0:E.describedBy,type:"text",onMouseDown:k=>!w&&k.stopPropagation()})});um.classes=mS;um.displayName="@mantine/core/PillsInputField";const UT={},cc=Re((e,t)=>{const r=me("PillsInput",UT,e),{children:s,onMouseDown:i,onClick:l,size:u,disabled:d,__staticSelector:p,error:f,variant:m,...g}=r,w=C.useRef(null);return y.jsx(IT,{value:{fieldRef:w,size:u,disabled:d,hasError:!!f,variant:m},children:y.jsx(Cr,{size:u,error:f,variant:m,component:"div",ref:t,onMouseDown:S=>{var x;S.preventDefault(),i==null||i(S),(x=w.current)==null||x.focus()},onClick:S=>{var b;S.preventDefault();const x=S.currentTarget.closest("fieldset");x!=null&&x.disabled||((b=w.current)==null||b.focus(),l==null||l(S))},...g,multiline:!0,disabled:d,__staticSelector:p||"PillsInput",withAria:!1,children:s})})});cc.displayName="@mantine/core/PillsInput";cc.Field=um;function HT({data:e,value:t}){const r=t.map(i=>i.trim().toLowerCase());return e.reduce((i,l)=>(Di(l)?i.push({group:l.group,items:l.items.filter(u=>r.indexOf(u.value.toLowerCase().trim())===-1)}):r.indexOf(l.value.toLowerCase().trim())===-1&&i.push(l),i),[])}const WT={maxValues:1/0,withCheckIcon:!0,checkIconPosition:"left",hiddenInputValuesDivider:","},Mc=Re((e,t)=>{const r=me("MultiSelect",WT,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,size:f,value:m,defaultValue:g,onChange:w,onKeyDown:S,variant:x,data:b,dropdownOpened:E,defaultDropdownOpened:R,onDropdownOpen:P,onDropdownClose:k,selectFirstOptionOnChange:T,onOptionSubmit:j,comboboxProps:O,filter:L,limit:M,withScrollArea:Q,maxDropdownHeight:q,searchValue:te,defaultSearchValue:ee,onSearchChange:ne,readOnly:G,disabled:Z,onFocus:B,onBlur:U,radius:A,rightSection:V,rightSectionWidth:W,rightSectionPointerEvents:N,rightSectionProps:F,leftSection:le,leftSectionWidth:ye,leftSectionPointerEvents:X,leftSectionProps:re,inputContainer:ve,inputWrapperOrder:fe,withAsterisk:we,labelProps:je,descriptionProps:Ue,errorProps:Ze,wrapperProps:et,description:ft,label:He,error:Rt,maxValues:ue,searchable:pe,nothingFoundMessage:Ce,withCheckIcon:Pe,checkIconPosition:Me,hidePickedOptions:Fe,withErrorStyles:ze,name:ce,form:oe,id:Se,clearable:Je,clearButtonProps:Ne,hiddenInputProps:Be,placeholder:Ge,hiddenInputValuesDivider:qe,required:Rr,mod:_r,renderOption:kr,onRemove:st,onClear:Lt,scrollAreaProps:Pr,chevronColor:Gi,...Ms}=r,Ho=Jr(Se),ir=Gw(b),vn=Fh(ir),Ht=Xh({opened:E,defaultOpened:R,onDropdownOpen:P,onDropdownClose:()=>{k==null||k(),Ht.resetSelectedOption()}}),{styleProps:xl,rest:{type:qc,autoComplete:Cl,...El}}=fl(Ms),[_t,to]=$n({value:m,defaultValue:g,finalValue:[],onChange:w}),[ar,Xi]=$n({value:te,defaultValue:ee,finalValue:"",onChange:ne}),lr=tt=>{Xi(tt),Ht.resetSelectedOption()},Yi=Ie({name:"MultiSelect",classes:{},props:r,classNames:s,styles:u,unstyled:d}),{resolvedClassNames:no,resolvedStyles:Wo}=dl({props:r,styles:u,classNames:s}),$s=tt=>{S==null||S(tt),tt.key===" "&&!pe&&(tt.preventDefault(),Ht.toggleDropdown()),tt.key==="Backspace"&&ar.length===0&&_t.length>0&&(st==null||st(_t[_t.length-1]),to(_t.slice(0,_t.length-1)))},Ji=_t.map((tt,Ls)=>{var Zi,kl;return y.jsx(Ya,{withRemoveButton:!G&&!((Zi=vn[tt])!=null&&Zi.disabled),onRemove:()=>{to(_t.filter(Pl=>tt!==Pl)),st==null||st(tt)},unstyled:d,disabled:Z,...Yi("pill"),children:((kl=vn[tt])==null?void 0:kl.label)||tt},`${tt}-${Ls}`)});C.useEffect(()=>{T&&Ht.selectFirstOption()},[T,ar]);const Rl=y.jsx(Ye.ClearButton,{...Ne,onClear:()=>{Lt==null||Lt(),to([]),lr("")}}),Kc=HT({data:ir,value:_t}),_l=Je&&_t.length>0&&!Z&&!G;return y.jsxs(y.Fragment,{children:[y.jsxs(Ye,{store:Ht,classNames:no,styles:Wo,unstyled:d,size:f,readOnly:G,__staticSelector:"MultiSelect",onOptionSubmit:tt=>{j==null||j(tt),lr(""),Ht.updateSelectedOptionIndex("selected"),_t.includes(vn[tt].value)?(to(_t.filter(Ls=>Ls!==vn[tt].value)),st==null||st(vn[tt].value)):_t.length<ue&&to([..._t,vn[tt].value])},...O,children:[y.jsx(Ye.DropdownTarget,{children:y.jsx(cc,{...xl,__staticSelector:"MultiSelect",classNames:no,styles:Wo,unstyled:d,size:f,className:i,style:l,variant:x,disabled:Z,radius:A,__defaultRightSection:y.jsx(Ye.Chevron,{size:f,error:Rt,unstyled:d,color:Gi}),__clearSection:Rl,__clearable:_l,rightSection:V,rightSectionPointerEvents:N||(Rl?"all":"none"),rightSectionWidth:W,rightSectionProps:F,leftSection:le,leftSectionWidth:ye,leftSectionPointerEvents:X,leftSectionProps:re,inputContainer:ve,inputWrapperOrder:fe,withAsterisk:we,labelProps:je,descriptionProps:Ue,errorProps:Ze,wrapperProps:et,description:ft,label:He,error:Rt,withErrorStyles:ze,__stylesApiProps:{...r,rightSectionPointerEvents:N||(_l?"all":"none"),multiline:!0},pointer:!pe,onClick:()=>pe?Ht.openDropdown():Ht.toggleDropdown(),"data-expanded":Ht.dropdownOpened||void 0,id:Ho,required:Rr,mod:_r,children:y.jsxs(Ya.Group,{disabled:Z,unstyled:d,...Yi("pillsList"),children:[Ji,y.jsx(Ye.EventsTarget,{autoComplete:Cl,children:y.jsx(cc.Field,{...El,ref:t,id:Ho,placeholder:Ge,type:!pe&&!Ge?"hidden":"visible",...Yi("inputField"),unstyled:d,onFocus:tt=>{B==null||B(tt),pe&&Ht.openDropdown()},onBlur:tt=>{U==null||U(tt),Ht.closeDropdown(),lr("")},onKeyDown:$s,value:ar,onChange:tt=>{lr(tt.currentTarget.value),pe&&Ht.openDropdown(),T&&Ht.selectFirstOption()},disabled:Z,readOnly:G||!pe,pointer:!pe})})]})})}),y.jsx(iS,{data:Fe?Kc:ir,hidden:G||Z,filter:L,search:ar,limit:M,hiddenWhenEmpty:!Ce,withScrollArea:Q,maxDropdownHeight:q,filterOptions:pe,value:_t,checkIconPosition:Me,withCheckIcon:Pe,nothingFoundMessage:Ce,unstyled:d,labelId:He?`${Ho}-label`:void 0,"aria-label":He?void 0:Ms["aria-label"],renderOption:kr,scrollAreaProps:Pr})]}),y.jsx(Ye.HiddenInput,{name:ce,valuesDivider:qe,value:_t,form:oe,disabled:Z,...Be})]})});Mc.classes={...Cr.classes,...Ye.classes};Mc.displayName="@mantine/core/MultiSelect";var gS={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const QT={withCloseButton:!0},qT=(e,{radius:t,color:r})=>({root:{"--notification-radius":t===void 0?void 0:Ct(t),"--notification-color":r?It(r,e):void 0}}),cm=Re((e,t)=>{const r=me("Notification",QT,e),{className:s,color:i,radius:l,loading:u,withCloseButton:d,withBorder:p,title:f,icon:m,children:g,onClose:w,closeButtonProps:S,classNames:x,style:b,styles:E,unstyled:R,variant:P,vars:k,mod:T,loaderProps:j,role:O,...L}=r,M=Ie({name:"Notification",classes:gS,props:r,className:s,style:b,classNames:x,styles:E,unstyled:R,vars:k,varsResolver:qT});return y.jsxs(he,{...M("root"),mod:[{"data-with-icon":!!m||u,"data-with-border":p},T],ref:t,variant:P,role:O||"alert",...L,children:[m&&!u&&y.jsx("div",{...M("icon"),children:m}),u&&y.jsx(Uo,{size:28,color:i,...j,...M("loader")}),y.jsxs("div",{...M("body"),children:[f&&y.jsx("div",{...M("title"),children:f}),y.jsx(he,{...M("description"),mod:{"data-with-title":!!f},children:g})]}),d&&y.jsx(Bi,{iconSize:16,color:"gray",...S,unstyled:R,onClick:w,...M("closeButton")})]})});cm.classes=gS;cm.displayName="@mantine/core/Notification";function vS(e,t){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(r[s[i]]=e[s[i]]);return r}var Ja;(function(e){e.event="event",e.props="prop"})(Ja||(Ja={}));function _o(){}function KT(e){var t,r=void 0;return function(){for(var s=[],i=arguments.length;i--;)s[i]=arguments[i];return t&&s.length===t.length&&s.every(function(l,u){return l===t[u]})||(t=s,r=e.apply(void 0,s)),r}}function Za(e){return!!(e||"").match(/\d/)}function bi(e){return e==null}function GT(e){return typeof e=="number"&&isNaN(e)}function yS(e){return bi(e)||GT(e)||typeof e=="number"&&!isFinite(e)}function bS(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function XT(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function YT(e,t,r){var s=XT(r),i=e.search(/[1-9]/);return i=i===-1?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(s,"$1"+t)}function JT(e){var t=C.useRef(e);t.current=e;var r=C.useRef(function(){for(var s=[],i=arguments.length;i--;)s[i]=arguments[i];return t.current.apply(t,s)});return r.current}function dm(e,t){t===void 0&&(t=!0);var r=e[0]==="-",s=r&&t;e=e.replace("-","");var i=e.split("."),l=i[0],u=i[1]||"";return{beforeDecimal:l,afterDecimal:u,hasNegation:r,addNegation:s}}function ZT(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var r=e.split("."),s=r[0].replace(/^0+/,"")||"0",i=r[1]||"";return(t?"-":"")+s+(i?"."+i:"")}function wS(e,t,r){for(var s="",i=r?"0":"",l=0;l<=t-1;l++)s+=e[l]||i;return s}function v0(e,t){return Array(t+1).join(e)}function SS(e){var t=e+"",r=t[0]==="-"?"-":"";r&&(t=t.substring(1));var s=t.split(/[eE]/g),i=s[0],l=s[1];if(l=Number(l),!l)return r+i;i=i.replace(".","");var u=1+l,d=i.length;return u<0?i="0."+v0("0",Math.abs(u))+i:u>=d?i=i+v0("0",u-d):i=(i.substring(0,u)||"0")+"."+i.substring(u),r+i}function y0(e,t,r){if(["","-"].indexOf(e)!==-1)return e;var s=(e.indexOf(".")!==-1||r)&&t,i=dm(e),l=i.beforeDecimal,u=i.afterDecimal,d=i.hasNegation,p=parseFloat("0."+(u||"0")),f=u.length<=t?"0."+u:p.toFixed(t),m=f.split("."),g=l;l&&Number(m[0])&&(g=l.split("").reverse().reduce(function(b,E,R){return b.length>R?(Number(b[0])+Number(E)).toString()+b.substring(1,b.length):E+b},m[0]));var w=wS(m[1]||"",t,r),S=d?"-":"",x=s?".":"";return""+S+g+x+w}function as(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var xS=KT(function(e,t){for(var r=0,s=0,i=e.length,l=t.length;e[r]===t[r]&&r<i;)r++;for(;e[i-1-s]===t[l-1-s]&&l-s>r&&i-s>r;)s++;return{from:{start:r,end:i-s},to:{start:r,end:l-s}}}),eN=function(e,t){var r=Math.min(e.selectionStart,t);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:t}}};function tN(e,t,r){return Math.min(Math.max(e,t),r)}function tp(e){return Math.max(e.selectionStart,e.selectionEnd)}function nN(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function rN(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function oN(e){var t=e.currentValue,r=e.formattedValue,s=e.currentValueIndex,i=e.formattedValueIndex;return t[s]===r[i]}function sN(e,t,r,s,i,l,u){u===void 0&&(u=oN);var d=i.findIndex(function(T){return T}),p=e.slice(0,d);!t&&!r.startsWith(p)&&(t=p,r=p+r,s=s+p.length);for(var f=r.length,m=e.length,g={},w=new Array(f),S=0;S<f;S++){w[S]=-1;for(var x=0,b=m;x<b;x++){var E=u({currentValue:r,lastValue:t,formattedValue:e,currentValueIndex:S,formattedValueIndex:x});if(E&&g[x]!==!0){w[S]=x,g[x]=!0;break}}}for(var R=s;R<f&&(w[R]===-1||!l(r[R]));)R++;var P=R===f||w[R]===-1?m:w[R];for(R=s-1;R>0&&w[R]===-1;)R--;var k=R===-1||w[R]===-1?0:w[R]+1;return k>P?P:s-k<P-s?k:P}function b0(e,t,r,s){var i=e.length;if(t=tN(t,0,i),s==="left"){for(;t>=0&&!r[t];)t--;t===-1&&(t=r.indexOf(!0))}else{for(;t<=i&&!r[t];)t++;t>i&&(t=r.lastIndexOf(!0))}return t===-1&&(t=i),t}function iN(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),r=0,s=t.length;r<s;r++)t[r]=!!(Za(e[r])||Za(e[r-1]));return t}function CS(e,t,r,s,i,l){l===void 0&&(l=_o);var u=JT(function(x,b){var E,R;return yS(x)?(R="",E=""):typeof x=="number"||b?(R=typeof x=="number"?SS(x):x,E=s(R)):(R=i(x,void 0),E=s(R)),{formattedValue:E,numAsString:R}}),d=C.useState(function(){return u(bi(e)?t:e,r)}),p=d[0],f=d[1],m=function(x,b){x.formattedValue!==p.formattedValue&&f({formattedValue:x.formattedValue,numAsString:x.value}),l(x,b)},g=e,w=r;bi(e)&&(g=p.numAsString,w=!0);var S=u(g,w);return C.useMemo(function(){f(S)},[S.formattedValue]),[p,m]}function aN(e){return e.replace(/[^0-9]/g,"")}function lN(e){return e}function uN(e){var t=e.type;t===void 0&&(t="text");var r=e.displayType;r===void 0&&(r="input");var s=e.customInput,i=e.renderText,l=e.getInputRef,u=e.format;u===void 0&&(u=lN);var d=e.removeFormatting;d===void 0&&(d=aN);var p=e.defaultValue,f=e.valueIsNumericString,m=e.onValueChange,g=e.isAllowed,w=e.onChange;w===void 0&&(w=_o);var S=e.onKeyDown;S===void 0&&(S=_o);var x=e.onMouseUp;x===void 0&&(x=_o);var b=e.onFocus;b===void 0&&(b=_o);var E=e.onBlur;E===void 0&&(E=_o);var R=e.value,P=e.getCaretBoundary;P===void 0&&(P=iN);var k=e.isValidInputCharacter;k===void 0&&(k=Za);var T=e.isCharacterSame,j=vS(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),O=CS(R,p,!!f,u,d,m),L=O[0],M=L.formattedValue,Q=L.numAsString,q=O[1],te=C.useRef(),ee=C.useRef({formattedValue:M,numAsString:Q}),ne=function(ue,pe){ee.current={formattedValue:ue.formattedValue,numAsString:ue.value},q(ue,pe)},G=C.useState(!1),Z=G[0],B=G[1],U=C.useRef(null),A=C.useRef({setCaretTimeout:null,focusTimeout:null});C.useEffect(function(){return B(!0),function(){clearTimeout(A.current.setCaretTimeout),clearTimeout(A.current.focusTimeout)}},[]);var V=u,W=function(ue,pe){var Ce=parseFloat(pe);return{formattedValue:ue,value:pe,floatValue:isNaN(Ce)?void 0:Ce}},N=function(ue,pe,Ce){ue.selectionStart===0&&ue.selectionEnd===ue.value.length||(as(ue,pe),A.current.setCaretTimeout=setTimeout(function(){ue.value===Ce&&ue.selectionStart!==pe&&as(ue,pe)},0))},F=function(ue,pe,Ce){return b0(ue,pe,P(ue),Ce)},le=function(ue,pe,Ce){var Pe=P(pe),Me=sN(pe,M,ue,Ce,Pe,k,T);return Me=b0(pe,Me,Pe),Me},ye=function(ue){var pe=ue.formattedValue;pe===void 0&&(pe="");var Ce=ue.input,Pe=ue.source,Me=ue.event,Fe=ue.numAsString,ze;if(Ce){var ce=ue.inputValue||Ce.value,oe=tp(Ce);Ce.value=pe,ze=le(ce,pe,oe),ze!==void 0&&N(Ce,ze,pe)}pe!==M&&ne(W(pe,Fe),{event:Me,source:Pe})};C.useEffect(function(){var ue=ee.current,pe=ue.formattedValue,Ce=ue.numAsString;(M!==pe||Q!==Ce)&&ne(W(M,Q),{event:void 0,source:Ja.props})},[M,Q]);var X=U.current?tp(U.current):void 0,re=typeof window<"u"?C.useLayoutEffect:C.useEffect;re(function(){var ue=U.current;if(M!==ee.current.formattedValue&&ue){var pe=le(ee.current.formattedValue,M,X);ue.value=M,N(ue,pe,M)}},[M]);var ve=function(ue,pe,Ce){var Pe=pe.target,Me=te.current?eN(te.current,Pe.selectionEnd):xS(M,ue),Fe=Object.assign(Object.assign({},Me),{lastValue:M}),ze=d(ue,Fe),ce=V(ze);if(ze=d(ce,void 0),g&&!g(W(ce,ze))){var oe=pe.target,Se=tp(oe),Je=le(ue,M,Se);return oe.value=M,N(oe,Je,M),!1}return ye({formattedValue:ce,numAsString:ze,inputValue:ue,event:pe,source:Ce,input:pe.target}),!0},fe=function(ue,pe){pe===void 0&&(pe=0);var Ce=ue.selectionStart,Pe=ue.selectionEnd;te.current={selectionStart:Ce,selectionEnd:Pe+pe}},we=function(ue){var pe=ue.target,Ce=pe.value,Pe=ve(Ce,ue,Ja.event);Pe&&w(ue),te.current=void 0},je=function(ue){var pe=ue.target,Ce=ue.key,Pe=pe.selectionStart,Me=pe.selectionEnd,Fe=pe.value;Fe===void 0&&(Fe="");var ze;Ce==="ArrowLeft"||Ce==="Backspace"?ze=Math.max(Pe-1,0):Ce==="ArrowRight"?ze=Math.min(Pe+1,Fe.length):Ce==="Delete"&&(ze=Pe);var ce=0;Ce==="Delete"&&Pe===Me&&(ce=1);var oe=Ce==="ArrowLeft"||Ce==="ArrowRight";if(ze===void 0||Pe!==Me&&!oe){S(ue),fe(pe,ce);return}var Se=ze;if(oe){var Je=Ce==="ArrowLeft"?"left":"right";Se=F(Fe,ze,Je),Se!==ze&&ue.preventDefault()}else Ce==="Delete"&&!k(Fe[ze])?Se=F(Fe,ze,"right"):Ce==="Backspace"&&!k(Fe[ze])&&(Se=F(Fe,ze,"left"));Se!==ze&&N(pe,Se,Fe),S(ue),fe(pe,ce)},Ue=function(ue){var pe=ue.target,Ce=function(){var Pe=pe.selectionStart,Me=pe.selectionEnd,Fe=pe.value;if(Fe===void 0&&(Fe=""),Pe===Me){var ze=F(Fe,Pe);ze!==Pe&&N(pe,ze,Fe)}};Ce(),requestAnimationFrame(function(){Ce()}),x(ue),fe(pe)},Ze=function(ue){ue.persist&&ue.persist();var pe=ue.target,Ce=ue.currentTarget;U.current=pe,A.current.focusTimeout=setTimeout(function(){var Pe=pe.selectionStart,Me=pe.selectionEnd,Fe=pe.value;Fe===void 0&&(Fe="");var ze=F(Fe,Pe);ze!==Pe&&!(Pe===0&&Me===Fe.length)&&N(pe,ze,Fe),b(Object.assign(Object.assign({},ue),{currentTarget:Ce}))},0)},et=function(ue){U.current=null,clearTimeout(A.current.focusTimeout),clearTimeout(A.current.setCaretTimeout),E(ue)},ft=Z&&nN()?"numeric":void 0,He=Object.assign({inputMode:ft},j,{type:t,value:M,onChange:we,onKeyDown:je,onMouseUp:Ue,onFocus:Ze,onBlur:et});if(r==="text")return i?St.createElement(St.Fragment,null,i(M,j)||null):St.createElement("span",Object.assign({},j,{ref:l}),M);if(s){var Rt=s;return St.createElement(Rt,Object.assign({},He,{ref:l}))}return St.createElement("input",Object.assign({},He,{ref:l}))}function w0(e,t){var r=t.decimalScale,s=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i="");var l=t.suffix;l===void 0&&(l="");var u=t.allowNegative,d=t.thousandsGroupStyle;if(d===void 0&&(d="thousand"),e===""||e==="-")return e;var p=$c(t),f=p.thousandSeparator,m=p.decimalSeparator,g=r!==0&&e.indexOf(".")!==-1||r&&s,w=dm(e,u),S=w.beforeDecimal,x=w.afterDecimal,b=w.addNegation;return r!==void 0&&(x=wS(x,r,!!s)),f&&(S=YT(S,f,d)),i&&(S=i+S),l&&(x=x+l),b&&(S="-"+S),e=S+(g&&m||"")+x,e}function $c(e){var t=e.decimalSeparator;t===void 0&&(t=".");var r=e.thousandSeparator,s=e.allowedDecimalSeparators;return r===!0&&(r=","),s||(s=[t,"."]),{decimalSeparator:t,thousandSeparator:r,allowedDecimalSeparators:s}}function cN(e,t){e===void 0&&(e="");var r=new RegExp("(-)"),s=new RegExp("(-)(.)*(-)"),i=r.test(e),l=s.test(e);return e=e.replace(/-/g,""),i&&!l&&t&&(e="-"+e),e}function dN(e,t){return new RegExp("(^-)|[0-9]|"+bS(e),"g")}function fN(e,t,r){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(r!=null&&r.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function pN(e,t,r){var s;t===void 0&&(t=rN(e));var i=r.allowNegative,l=r.prefix;l===void 0&&(l="");var u=r.suffix;u===void 0&&(u="");var d=r.decimalScale,p=t.from,f=t.to,m=f.start,g=f.end,w=$c(r),S=w.allowedDecimalSeparators,x=w.decimalSeparator,b=e[g]===x;if(Za(e)&&(e===l||e===u)&&t.lastValue==="")return e;if(g-m===1&&S.indexOf(e[m])!==-1){var E=d===0?"":x;e=e.substring(0,m)+E+e.substring(m+1,e.length)}var R=function(U,A,V){var W=!1,N=!1;l.startsWith("-")?W=!1:U.startsWith("--")?(W=!1,N=!0):u.startsWith("-")&&U.length===u.length?W=!1:U[0]==="-"&&(W=!0);var F=W?1:0;return N&&(F=2),F&&(U=U.substring(F),A-=F,V-=F),{value:U,start:A,end:V,hasNegation:W}},P=R(e,m,g),k=P.hasNegation;s=P,e=s.value,m=s.start,g=s.end;var T=R(t.lastValue,p.start,p.end),j=T.start,O=T.end,L=T.value,M=e.substring(m,g);e.length&&L.length&&(j>L.length-u.length||O<l.length)&&!(M&&u.startsWith(M))&&(e=L);var Q=0;e.startsWith(l)?Q+=l.length:m<l.length&&(Q=m),e=e.substring(Q),g-=Q;var q=e.length,te=e.length-u.length;e.endsWith(u)?q=te:(g>te||g>e.length-u.length)&&(q=g),e=e.substring(0,q),e=cN(k?"-"+e:e,i),e=(e.match(dN(x))||[]).join("");var ee=e.indexOf(x);e=e.replace(new RegExp(bS(x),"g"),function(U,A){return A===ee?".":""});var ne=dm(e,i),G=ne.beforeDecimal,Z=ne.afterDecimal,B=ne.addNegation;return f.end-f.start<p.end-p.start&&G===""&&b&&!parseFloat(Z)&&(e=B?"-":""),e}function hN(e,t){var r=t.prefix;r===void 0&&(r="");var s=t.suffix;s===void 0&&(s="");var i=Array.from({length:e.length+1}).map(function(){return!0}),l=e[0]==="-";i.fill(!1,0,r.length+(l?1:0));var u=e.length;return i.fill(!1,u-s.length+1,u+1),i}function mN(e){var t=$c(e),r=t.thousandSeparator,s=t.decimalSeparator,i=e.prefix;i===void 0&&(i="");var l=e.allowNegative;if(l===void 0&&(l=!0),r===s)throw new Error(`
84
84
  Decimal separator can't be same as thousand separator.
85
85
  thousandSeparator: `+r+` (thousandSeparator = {true} is same as thousandSeparator = ",")
86
86
  decimalSeparator: `+s+` (default value for decimalSeparator is .)
@@ -88,7 +88,7 @@ Error generating stack: `+v.message+`
88
88
  Prefix can't start with '-' when allowNegative is true.
89
89
  prefix: `+i+`
90
90
  allowNegative: `+l+`
91
- `),l=!1),Object.assign(Object.assign({},e),{allowNegative:l})}function gN(e){e=mN(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,r=e.allowNegative,s=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=_o);var l=e.onBlur;l===void 0&&(l=_o);var u=e.thousandSeparator,d=e.decimalScale,p=e.fixedDecimalScale,f=e.prefix;f===void 0&&(f="");var m=e.defaultValue,g=e.value,w=e.valueIsNumericString,S=e.onValueChange,x=vS(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),b=$c(e),E=b.decimalSeparator,R=b.allowedDecimalSeparators,k=function(B){return w0(B,e)},P=function(B,U){return pN(B,U,e)},T=bi(g)?m:g,j=w??fN(T,f,t);bi(g)?bi(m)||(j=j||typeof m=="number"):j=j||typeof g=="number";var O=function(B){return yS(B)?B:(typeof B=="number"&&(B=SS(B)),j&&typeof d=="number"?y0(B,d,!!p):B)},L=CS(O(g),O(m),!!j,k,P,S),M=L[0],Q=M.numAsString,q=M.formattedValue,te=L[1],ee=function(B){var U=B.target,A=B.key,V=U.selectionStart,W=U.selectionEnd,N=U.value;if(N===void 0&&(N=""),(A==="Backspace"||A==="Delete")&&W<f.length){B.preventDefault();return}if(V!==W){i(B);return}A==="Backspace"&&N[0]==="-"&&V===f.length+1&&r&&as(U,1),d&&p&&(A==="Backspace"&&N[V-1]===E?(as(U,V-1),B.preventDefault()):A==="Delete"&&N[V]===E&&B.preventDefault()),R!=null&&R.includes(A)&&N[V]===E&&as(U,V+1);var F=u===!0?",":u;A==="Backspace"&&N[V-1]===F&&as(U,V-1),A==="Delete"&&N[V]===F&&as(U,V+1),i(B)},ne=function(B){var U=Q;if(U.match(/\d/g)||(U=""),s||(U=ZT(U)),p&&d&&(U=y0(U,d,p)),U!==Q){var A=w0(U,e);te({formattedValue:A,value:U,floatValue:parseFloat(U)},{event:B,source:Ja.event})}l(B)},G=function(B){return B===E?!0:Za(B)},Z=function(B){var U=B.currentValue,A=B.lastValue,V=B.formattedValue,W=B.currentValueIndex,N=B.formattedValueIndex,F=U[W],le=V[N],ye=xS(A,U),X=ye.to,re=function(ve){return P(ve).indexOf(".")+f.length};return g===0&&p&&d&&U[X.start]===E&&re(U)<W&&re(V)>N?!1:W>=X.start&&W<X.end&&R&&R.includes(F)&&le===E?!0:F===le};return Object.assign(Object.assign({},x),{value:q,valueIsNumericString:!1,isValidInputCharacter:G,isCharacterSame:Z,onValueChange:te,format:k,removeFormatting:P,getCaretBoundary:function(B){return hN(B,e)},onKeyDown:ee,onBlur:ne})}function vN(e){var t=gN(e);return St.createElement(uN,Object.assign({},t))}function S0({direction:e,style:t,...r}){return y.jsx("svg",{style:{width:"var(--ni-chevron-size)",height:"var(--ni-chevron-size)",transform:e==="up"?"rotate(180deg)":void 0,...t},viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:y.jsx("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:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}var kp={root:"m_e2f5cd4e",controls:"m_95e17d22",control:"m_80b4b171"};const yN=/^(0\.0*|-0(\.0*)?)$/,bN=/^-?0\d+(\.\d+)?\.?$/;function Tp(e){return typeof e=="string"&&e!==""&&!Number.isNaN(Number(e))}function np(e){return typeof e=="number"?e<Number.MAX_SAFE_INTEGER:e===""||Tp(e)&&Number(e)<Number.MAX_SAFE_INTEGER}function wN(e){return e.toString().replace(".","").length}function SN(e,t){return(typeof e=="number"?e<Number.MAX_SAFE_INTEGER:!Number.isNaN(Number(e)))&&!Number.isNaN(e)&&wN(t)<14&&t!==""}function x0(e,t,r){if(e===void 0)return!0;const s=t===void 0||e>=t,i=r===void 0||e<=r;return s&&i}const xN={step:1,clampBehavior:"blur",allowDecimal:!0,allowNegative:!0,withKeyboardEvents:!0,allowLeadingZeros:!0,trimLeadingZeroesOnBlur:!0,startValue:0},CN=(e,{size:t})=>({controls:{"--ni-chevron-size":Ke(t,"ni-chevron-size")}});function EN(e,t,r){const s=e.toString().replace(/^0+/,""),i=parseFloat(s);return Number.isNaN(i)?s:i>Number.MAX_SAFE_INTEGER?t!==void 0?String(t):s:Wr(i,r,t)}const Dn=Re((e,t)=>{const r=me("NumberInput",xN,e),{className:s,classNames:i,styles:l,unstyled:u,vars:d,onChange:p,onValueChange:f,value:m,defaultValue:g,max:w,min:S,step:x,hideControls:b,rightSection:E,isAllowed:R,clampBehavior:k,onBlur:P,allowDecimal:T,decimalScale:j,onKeyDown:O,onKeyDownCapture:L,handlersRef:M,startValue:Q,disabled:q,rightSectionPointerEvents:te,allowNegative:ee,readOnly:ne,size:G,rightSectionWidth:Z,stepHoldInterval:B,stepHoldDelay:U,allowLeadingZeros:A,withKeyboardEvents:V,trimLeadingZeroesOnBlur:W,...N}=r,F=Ie({name:"NumberInput",classes:kp,props:r,classNames:i,styles:l,unstyled:u,vars:d,varsResolver:CN}),{resolvedClassNames:le,resolvedStyles:ye}=dl({classNames:i,styles:l,props:r}),[X,re]=$n({value:m,defaultValue:g,finalValue:"",onChange:p}),ve=U!==void 0&&B!==void 0,fe=C.useRef(null),we=C.useRef(null),je=C.useRef(0),Ue=(ce,oe)=>{oe.source==="event"&&re(SN(ce.floatValue,ce.value)&&!yN.test(ce.value)&&!(A&&bN.test(ce.value))?ce.floatValue:ce.value),f==null||f(ce,oe)},Ze=ce=>{const oe=String(ce).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return oe?Math.max(0,(oe[1]?oe[1].length:0)-(oe[2]?+oe[2]:0)):0},et=ce=>{fe.current&&typeof ce<"u"&&fe.current.setSelectionRange(ce,ce)},ft=C.useRef(nc);ft.current=()=>{if(!np(X))return;let ce;const oe=Ze(X),Se=Ze(x),Je=Math.max(oe,Se),Ne=10**Je;if(!Tp(X)&&(typeof X!="number"||Number.isNaN(X)))ce=Wr(Q,S,w);else if(w!==void 0){const Ge=(Math.round(Number(X)*Ne)+Math.round(x*Ne))/Ne;ce=Ge<=w?Ge:w}else ce=(Math.round(Number(X)*Ne)+Math.round(x*Ne))/Ne;const Be=ce.toFixed(Je);re(parseFloat(Be)),f==null||f({floatValue:parseFloat(Be),formattedValue:Be,value:Be},{source:"increment"}),setTimeout(()=>{var Ge;return et((Ge=fe.current)==null?void 0:Ge.value.length)},0)};const He=C.useRef(nc);He.current=()=>{if(!np(X))return;let ce;const oe=S!==void 0?S:ee?Number.MIN_SAFE_INTEGER:0,Se=Ze(X),Je=Ze(x),Ne=Math.max(Se,Je),Be=10**Ne;if(!Tp(X)&&typeof X!="number"||Number.isNaN(X))ce=Wr(Q,oe,w);else{const qe=(Math.round(Number(X)*Be)-Math.round(x*Be))/Be;ce=oe!==void 0&&qe<oe?oe:qe}const Ge=ce.toFixed(Ne);re(parseFloat(Ge)),f==null||f({floatValue:parseFloat(Ge),formattedValue:Ge,value:Ge},{source:"decrement"}),setTimeout(()=>{var qe;return et((qe=fe.current)==null?void 0:qe.value.length)},0)};const Rt=ce=>{O==null||O(ce),!(ne||!V)&&(ce.key==="ArrowUp"&&(ce.preventDefault(),ft.current()),ce.key==="ArrowDown"&&(ce.preventDefault(),He.current()))},ue=ce=>{if(L==null||L(ce),ce.key==="Backspace"){const oe=fe.current;oe.selectionStart===0&&oe.selectionStart===oe.selectionEnd&&(ce.preventDefault(),window.setTimeout(()=>et(0),0))}},pe=ce=>{let oe=X;k==="blur"&&typeof oe=="number"&&(oe=Wr(oe,S,w)),W&&typeof oe=="string"&&Ze(oe)<15&&(oe=EN(oe,w,S)),X!==oe&&re(oe),P==null||P(ce)};rc(M,{increment:ft.current,decrement:He.current});const Ce=ce=>{ce?ft.current():He.current(),je.current+=1},ke=ce=>{if(Ce(ce),ve){const oe=typeof B=="number"?B:B(je.current);we.current=window.setTimeout(()=>ke(ce),oe)}},Me=(ce,oe)=>{var Se;ce.preventDefault(),(Se=fe.current)==null||Se.focus(),Ce(oe),ve&&(we.current=window.setTimeout(()=>ke(oe),U))},Fe=()=>{we.current&&window.clearTimeout(we.current),we.current=null,je.current=0},ze=y.jsxs("div",{...F("controls"),children:[y.jsx(Fo,{...F("control"),tabIndex:-1,"aria-hidden":!0,disabled:q||typeof X=="number"&&w!==void 0&&X>=w,mod:{direction:"up"},onMouseDown:ce=>ce.preventDefault(),onPointerDown:ce=>{Me(ce,!0)},onPointerUp:Fe,onPointerLeave:Fe,children:y.jsx(S0,{direction:"up"})}),y.jsx(Fo,{...F("control"),tabIndex:-1,"aria-hidden":!0,disabled:q||typeof X=="number"&&S!==void 0&&X<=S,mod:{direction:"down"},onMouseDown:ce=>ce.preventDefault(),onPointerDown:ce=>{Me(ce,!1)},onPointerUp:Fe,onPointerLeave:Fe,children:y.jsx(S0,{direction:"down"})})]});return y.jsx(xr,{component:vN,allowNegative:ee,className:En(kp.root,s),size:G,...N,readOnly:ne,disabled:q,value:X,getInputRef:$t(t,fe),onValueChange:Ue,rightSection:b||ne||!np(X)?E:E||ze,classNames:le,styles:ye,unstyled:u,__staticSelector:"NumberInput",decimalScale:T?j:0,onKeyDown:Rt,onKeyDownCapture:ue,rightSectionPointerEvents:te??(q?"none":void 0),rightSectionWidth:Z??`var(--ni-right-section-width-${G||"sm"})`,allowLeadingZeros:A,onBlur:pe,isAllowed:ce=>k==="strict"?R?R(ce)&&x0(ce.floatValue,S,w):x0(ce.floatValue,S,w):R?R(ce):!0})});Dn.classes={...xr.classes,...kp};Dn.displayName="@mantine/core/NumberInput";const RN={duration:100,transition:"fade"};function _N(e,t){return{...RN,...t,...e}}function PN({offset:e,position:t,defaultOpened:r}){const[s,i]=C.useState(r),l=C.useRef(null),{x:u,y:d,elements:p,refs:f,update:m,placement:g}=Ph({placement:t,middleware:[Ch({crossAxis:!0,padding:5,rootBoundary:"document"})]}),w=g.includes("right")?e:t.includes("left")?e*-1:0,S=g.includes("bottom")?e:t.includes("top")?e*-1:0,x=C.useCallback(({clientX:b,clientY:E})=>{f.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:b,y:E,left:b+w,top:E+S,right:b,bottom:E}}})},[p.reference]);return C.useEffect(()=>{if(f.floating.current){const b=l.current;b.addEventListener("mousemove",x);const E=Qr(f.floating.current);return E.forEach(R=>{R.addEventListener("scroll",m)}),()=>{b.removeEventListener("mousemove",x),E.forEach(R=>{R.removeEventListener("scroll",m)})}}},[p.reference,f.floating.current,m,x,s]),{handleMouseMove:x,x:u,y:d,opened:s,setOpened:i,boundaryRef:l,floating:f.setFloating}}var Lc={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const kN={refProp:"ref",withinPortal:!0,offset:10,defaultOpened:!1,position:"right",zIndex:$i("popover")},TN=(e,{radius:t,color:r})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:Ct(t),"--tooltip-bg":r?It(r,e):void 0,"--tooltip-color":r?"var(--mantine-color-white)":void 0}}),fm=Re((e,t)=>{const r=me("TooltipFloating",kN,e),{children:s,refProp:i,withinPortal:l,style:u,className:d,classNames:p,styles:f,unstyled:m,radius:g,color:w,label:S,offset:x,position:b,multiline:E,zIndex:R,disabled:k,defaultOpened:P,variant:T,vars:j,portalProps:O,...L}=r,M=rn(),Q=Ie({name:"TooltipFloating",props:r,classes:Lc,className:d,style:u,classNames:p,styles:f,unstyled:m,rootSelector:"tooltip",vars:j,varsResolver:TN}),{handleMouseMove:q,x:te,y:ee,opened:ne,boundaryRef:G,floating:Z,setOpened:B}=PN({offset:x,position:b,defaultOpened:P});if(!Ns(s))throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const U=$t(G,wc(s),t),A=s.props,V=N=>{var F;(F=A.onMouseEnter)==null||F.call(A,N),q(N),B(!0)},W=N=>{var F;(F=A.onMouseLeave)==null||F.call(A,N),B(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(zi,{...O,withinPortal:l,children:y.jsx(he,{...L,...Q("tooltip",{style:{...mh(u,M),zIndex:R,display:!k&&ne?"block":"none",top:(ee&&Math.round(ee))??"",left:(te&&Math.round(te))??""}}),variant:T,ref:Z,mod:{multiline:E},children:S})}),C.cloneElement(s,{...A,[i]:U,onMouseEnter:V,onMouseLeave:W})]})});fm.classes=Lc;fm.displayName="@mantine/core/TooltipFloating";const ES=C.createContext(!1),NN=ES.Provider,jN=()=>C.useContext(ES),ON={openDelay:0,closeDelay:0};function pm(e){const{openDelay:t,closeDelay:r,children:s}=me("TooltipGroup",ON,e);return y.jsx(NN,{value:!0,children:y.jsx(SP,{delay:{open:t,close:r},children:s})})}pm.displayName="@mantine/core/TooltipGroup";pm.extend=e=>e;function AN(e){if(e===void 0)return{shift:!0,flip:!0};const t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function DN(e){const t=AN(e.middlewares),r=[uw(e.offset)];return t.shift&&r.push(Ch(typeof t.shift=="boolean"?{padding:8}:{padding:8,...t.shift})),t.flip&&r.push(typeof t.flip=="boolean"?lc():lc(t.flip)),r.push(cw({element:e.arrowRef,padding:e.arrowOffset})),t.inline?r.push(typeof t.inline=="boolean"?Ha():Ha(t.inline)):e.inline&&r.push(Ha()),r}function IN(e){var O,L,M;const[t,r]=C.useState(e.defaultOpened),i=typeof e.opened=="boolean"?e.opened:t,l=jN(),u=Jr(),d=C.useCallback(Q=>{r(Q),Q&&k(u)},[u]),{x:p,y:f,context:m,refs:g,update:w,placement:S,middlewareData:{arrow:{x,y:b}={}}}=Ph({strategy:e.strategy,placement:e.position,open:i,onOpenChange:d,middleware:DN(e)}),{delay:E,currentId:R,setCurrentId:k}=xP(m,{id:u}),{getReferenceProps:P,getFloatingProps:T}=TP([bP(m,{enabled:(O=e.events)==null?void 0:O.hover,delay:l?E:{open:e.openDelay,close:e.closeDelay},mouseOnly:!((L=e.events)!=null&&L.touch)}),kP(m,{enabled:(M=e.events)==null?void 0:M.focus,visibleOnly:!0}),jP(m,{role:"tooltip"}),_P(m,{enabled:typeof e.opened>"u"})]);Mw({opened:i,position:e.position,positionDependencies:e.positionDependencies,floating:{refs:g,update:w}}),Kr(()=>{var Q;(Q=e.onPositionChange)==null||Q.call(e,S)},[S]);const j=i&&R&&R!==u;return{x:p,y:f,arrowX:x,arrowY:b,reference:g.setReference,floating:g.setFloating,getFloatingProps:T,getReferenceProps:P,isGroupPhase:j,opened:i,placement:S}}const C0={position:"top",refProp:"ref",withinPortal:!0,inline:!1,defaultOpened:!1,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:$i("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},MN=(e,{radius:t,color:r})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:Ct(t),"--tooltip-bg":r?It(r,e):void 0,"--tooltip-color":r?"var(--mantine-color-white)":void 0}}),As=Re((e,t)=>{const r=me("Tooltip",C0,e),{children:s,position:i,refProp:l,label:u,openDelay:d,closeDelay:p,onPositionChange:f,opened:m,defaultOpened:g,withinPortal:w,radius:S,color:x,classNames:b,styles:E,unstyled:R,style:k,className:P,withArrow:T,arrowSize:j,arrowOffset:O,arrowRadius:L,arrowPosition:M,offset:Q,transitionProps:q,multiline:te,events:ee,zIndex:ne,disabled:G,positionDependencies:Z,onClick:B,onMouseEnter:U,onMouseLeave:A,inline:V,variant:W,keepMounted:N,vars:F,portalProps:le,mod:ye,floatingStrategy:X,middlewares:re,...ve}=me("Tooltip",C0,r),{dir:fe}=js(),we=C.useRef(null),je=IN({position:Tw(fe,i),closeDelay:p,openDelay:d,onPositionChange:f,opened:m,defaultOpened:g,events:ee,arrowRef:we,arrowOffset:O,offset:typeof Q=="number"?Q+(T?j/2:0):Q,positionDependencies:[...Z,s],inline:V,strategy:X,middlewares:re}),Ue=Ie({name:"Tooltip",props:r,classes:Lc,className:P,style:k,classNames:b,styles:E,unstyled:R,rootSelector:"tooltip",vars:F,varsResolver:MN});if(!Ns(s))throw new Error("[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const Ze=$t(je.reference,wc(s),t),et=_N(q,{duration:100,transition:"fade"}),ft=s.props;return y.jsxs(y.Fragment,{children:[y.jsx(zi,{...le,withinPortal:w,children:y.jsx(Vo,{...et,keepMounted:N,mounted:!G&&!!je.opened,duration:je.isGroupPhase?10:et.duration,children:He=>y.jsxs(he,{...ve,"data-fixed":X==="fixed"||void 0,variant:W,mod:[{multiline:te},ye],...je.getFloatingProps({ref:je.floating,className:Ue("tooltip").className,style:{...Ue("tooltip").style,...He,zIndex:ne,top:je.y??0,left:je.x??0}}),children:[u,y.jsx(Oh,{ref:we,arrowX:je.arrowX,arrowY:je.arrowY,visible:T,position:je.placement,arrowSize:j,arrowOffset:O,arrowRadius:L,arrowPosition:M,...Ue("arrow")})]})})}),C.cloneElement(s,je.getReferenceProps({onClick:B,onMouseEnter:U,onMouseLeave:A,onMouseMove:r.onMouseMove,onPointerDown:r.onPointerDown,onPointerEnter:r.onPointerEnter,className:En(P,ft.className),...ft,[l]:Ze}))]})});As.classes=Lc;As.displayName="@mantine/core/Tooltip";As.Floating=fm;As.Group=pm;const $N={searchable:!1,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},Fc=Re((e,t)=>{const r=me("Select",$N,e),{classNames:s,styles:i,unstyled:l,vars:u,dropdownOpened:d,defaultDropdownOpened:p,onDropdownClose:f,onDropdownOpen:m,onFocus:g,onBlur:w,onClick:S,onChange:x,data:b,value:E,defaultValue:R,selectFirstOptionOnChange:k,onOptionSubmit:P,comboboxProps:T,readOnly:j,disabled:O,filter:L,limit:M,withScrollArea:Q,maxDropdownHeight:q,size:te,searchable:ee,rightSection:ne,checkIconPosition:G,withCheckIcon:Z,nothingFoundMessage:B,name:U,form:A,searchValue:V,defaultSearchValue:W,onSearchChange:N,allowDeselect:F,error:le,rightSectionPointerEvents:ye,id:X,clearable:re,clearButtonProps:ve,hiddenInputProps:fe,renderOption:we,onClear:je,autoComplete:Ue,scrollAreaProps:Ze,__defaultRightSection:et,__clearSection:ft,__clearable:He,chevronColor:Rt,...ue}=r,pe=C.useMemo(()=>Gw(b),[b]),Ce=C.useMemo(()=>Fh(pe),[pe]),ke=Jr(X),[Me,Fe,ze]=$n({value:E,defaultValue:R,finalValue:null,onChange:x}),ce=typeof Me=="string"?Ce[Me]:void 0,oe=ME(ce),[Se,Je,Ne]=$n({value:V,defaultValue:W,finalValue:ce?ce.label:"",onChange:N}),Be=Xh({opened:d,defaultOpened:p,onDropdownOpen:()=>{m==null||m(),Be.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{f==null||f(),Be.resetSelectedOption()}}),Ge=st=>{Je(st),Be.resetSelectedOption()},{resolvedClassNames:qe,resolvedStyles:Er}=dl({props:r,styles:i,classNames:s});C.useEffect(()=>{k&&Be.selectFirstOption()},[k,Se]),C.useEffect(()=>{E===null&&Ge(""),typeof E=="string"&&ce&&((oe==null?void 0:oe.value)!==ce.value||(oe==null?void 0:oe.label)!==ce.label)&&Ge(ce.label)},[E,ce]),C.useEffect(()=>{var st;!ze&&!Ne&&Ge(typeof Me=="string"&&((st=Ce[Me])==null?void 0:st.label)||"")},[b,Me]);const Rr=y.jsx(Ye.ClearButton,{...ve,onClear:()=>{Fe(null,null),Ge(""),je==null||je()}}),_r=re&&!!Me&&!O&&!j;return y.jsxs(y.Fragment,{children:[y.jsxs(Ye,{store:Be,__staticSelector:"Select",classNames:qe,styles:Er,unstyled:l,readOnly:j,onOptionSubmit:st=>{P==null||P(st);const Lt=F&&Ce[st].value===Me?null:Ce[st],Pr=Lt?Lt.value:null;Pr!==Me&&Fe(Pr,Lt),!ze&&Ge(typeof Pr=="string"&&(Lt==null?void 0:Lt.label)||""),Be.closeDropdown()},size:te,...T,children:[y.jsx(Ye.Target,{targetType:ee?"input":"button",autoComplete:Ue,children:y.jsx(xr,{id:ke,ref:t,__defaultRightSection:y.jsx(Ye.Chevron,{size:te,error:le,unstyled:l,color:Rt}),__clearSection:Rr,__clearable:_r,rightSection:ne,rightSectionPointerEvents:ye||(_r?"all":"none"),...ue,size:te,__staticSelector:"Select",disabled:O,readOnly:j||!ee,value:Se,onChange:st=>{Ge(st.currentTarget.value),Be.openDropdown(),k&&Be.selectFirstOption()},onFocus:st=>{ee&&Be.openDropdown(),g==null||g(st)},onBlur:st=>{var Lt;ee&&Be.closeDropdown(),Ge(Me!=null&&((Lt=Ce[Me])==null?void 0:Lt.label)||""),w==null||w(st)},onClick:st=>{ee?Be.openDropdown():Be.toggleDropdown(),S==null||S(st)},classNames:qe,styles:Er,unstyled:l,pointer:!ee,error:le})}),y.jsx(iS,{data:pe,hidden:j||O,filter:L,search:Se,limit:M,hiddenWhenEmpty:!B,withScrollArea:Q,maxDropdownHeight:q,filterOptions:ee&&(ce==null?void 0:ce.label)!==Se,value:Me,checkIconPosition:G,withCheckIcon:Z,nothingFoundMessage:B,unstyled:l,labelId:ue.label?`${ke}-label`:void 0,"aria-label":ue.label?void 0:ue["aria-label"],renderOption:we,scrollAreaProps:Ze})]}),y.jsx(Ye.HiddenInput,{value:Me,name:U,form:A,disabled:O,...fe})]})});Fc.classes={...xr.classes,...Ye.classes};Fc.displayName="@mantine/core/Select";const[RS,zc]=Yr("SliderProvider was not found in tree"),hm=C.forwardRef(({size:e,disabled:t,variant:r,color:s,thumbSize:i,radius:l,...u},d)=>{const{getStyles:p}=zc();return y.jsx(he,{tabIndex:-1,variant:r,size:e,ref:d,...p("root"),...u})});hm.displayName="@mantine/core/SliderRoot";const dc=C.forwardRef(({max:e,min:t,value:r,position:s,label:i,dragging:l,onMouseDown:u,onKeyDownCapture:d,labelTransitionProps:p,labelAlwaysOn:f,thumbLabel:m,onFocus:g,onBlur:w,showLabelOnHover:S,isHovered:x,children:b=null,disabled:E},R)=>{const{getStyles:k}=zc(),[P,T]=C.useState(!1),j=f||l||P||S&&x;return y.jsxs(he,{tabIndex:0,role:"slider","aria-label":m,"aria-valuemax":e,"aria-valuemin":t,"aria-valuenow":r,ref:R,__vars:{"--slider-thumb-offset":`${s}%`},...k("thumb",{focusable:!0}),mod:{dragging:l,disabled:E},onFocus:O=>{T(!0),typeof g=="function"&&g(O)},onBlur:O=>{T(!1),typeof w=="function"&&w(O)},onTouchStart:u,onMouseDown:u,onKeyDownCapture:d,onClick:O=>O.stopPropagation(),children:[b,y.jsx(Vo,{mounted:i!=null&&!!j,transition:"fade",duration:0,...p,children:O=>y.jsx("div",{...k("label",{style:O}),children:i})})]})});dc.displayName="@mantine/core/SliderThumb";function fc({value:e,min:t,max:r}){const s=(e-t)/(r-t)*100;return Math.min(Math.max(s,0),100)}function LN({mark:e,offset:t,value:r,inverted:s=!1}){return s?typeof t=="number"&&e.value<=t||e.value>=r:typeof t=="number"?e.value>=t&&e.value<=r:e.value<=r}function _S({marks:e,min:t,max:r,disabled:s,value:i,offset:l,inverted:u}){const{getStyles:d}=zc();if(!e)return null;const p=e.map((f,m)=>C.createElement(he,{...d("markWrapper"),__vars:{"--mark-offset":`${fc({value:f.value,min:t,max:r})}%`},key:m},y.jsx(he,{...d("mark"),mod:{filled:LN({mark:f,value:i,offset:l,inverted:u}),disabled:s}}),f.label&&y.jsx("div",{...d("markLabel"),children:f.label})));return y.jsx("div",{children:p})}_S.displayName="@mantine/core/SliderMarks";function mm({filled:e,children:t,offset:r,disabled:s,marksOffset:i,inverted:l,containerProps:u,...d}){const{getStyles:p}=zc();return y.jsx(he,{...p("trackContainer"),mod:{disabled:s},...u,children:y.jsxs(he,{...p("track"),mod:{inverted:l,disabled:s},children:[y.jsx(he,{mod:{inverted:l,disabled:s},__vars:{"--slider-bar-width":`calc(${e}% + var(--slider-size))`,"--slider-bar-offset":`calc(${r}% - var(--slider-size))`},...p("bar")}),t,y.jsx(_S,{...d,offset:i,disabled:s,inverted:l})]})})}mm.displayName="@mantine/core/SliderTrack";function Np({value:e,containerWidth:t,min:r,max:s,step:i,precision:l}){const d=(t?Math.min(Math.max(e,0),t)/t:e)*(s-r),p=(d!==0?Math.round(d/i)*i:0)+r,f=Math.max(p,r);return l!==void 0?Number(f.toFixed(l)):f}function An(e,t){return parseFloat(e.toFixed(t))}function PS(e){if(!e)return 0;const t=e.toString().split(".");return t.length>1?t[1].length:0}function cs(e,t){const s=[...t].sort((i,l)=>i.value-l.value).find(i=>i.value>e);return s?s.value:e}function ds(e,t){const s=[...t].sort((i,l)=>l.value-i.value).find(i=>i.value<e);return s?s.value:e}function jp(e){const t=[...e].sort((r,s)=>r.value-s.value);return t.length>0?t[0].value:0}function Op(e){const t=[...e].sort((r,s)=>r.value-s.value);return t.length>0?t[t.length-1].value:100}var Vc={root:"m_dd36362e",label:"m_c9357328",thumb:"m_c9a9a60a",trackContainer:"m_a8645c2",track:"m_c9ade57f",bar:"m_38aeed47",markWrapper:"m_b7b0423a",mark:"m_dd33bc19",markLabel:"m_68c77a5b"};const FN={radius:"xl",min:0,max:100,step:1,marks:[],label:e=>e,labelTransitionProps:{transition:"fade",duration:0},labelAlwaysOn:!1,thumbLabel:"",showLabelOnHover:!0,disabled:!1,scale:e=>e},zN=(e,{size:t,color:r,thumbSize:s,radius:i})=>({root:{"--slider-size":Ke(t,"slider-size"),"--slider-color":r?It(r,e):void 0,"--slider-radius":i===void 0?void 0:Ct(i),"--slider-thumb-size":s!==void 0?se(s):"calc(var(--slider-size) * 2)"}}),gm=Re((e,t)=>{const r=me("Slider",FN,e),{classNames:s,styles:i,value:l,onChange:u,onChangeEnd:d,size:p,min:f,max:m,step:g,precision:w,defaultValue:S,name:x,marks:b,label:E,labelTransitionProps:R,labelAlwaysOn:k,thumbLabel:P,showLabelOnHover:T,thumbChildren:j,disabled:O,unstyled:L,scale:M,inverted:Q,className:q,style:te,vars:ee,hiddenInputProps:ne,restrictToMarks:G,thumbProps:Z,...B}=r,U=Ie({name:"Slider",props:r,classes:Vc,classNames:s,className:q,styles:i,style:te,vars:ee,varsResolver:zN,unstyled:L}),{dir:A}=js(),[V,W]=C.useState(!1),[N,F]=$n({value:typeof l=="number"?Wr(l,f,m):l,defaultValue:typeof S=="number"?Wr(S,f,m):S,finalValue:Wr(0,f,m),onChange:u}),le=C.useRef(N),ye=C.useRef(d);C.useEffect(()=>{ye.current=d},[d]);const X=C.useRef(null),re=C.useRef(null),ve=fc({value:N,min:f,max:m}),fe=M(N),we=typeof E=="function"?E(fe):E,je=w??PS(g),Ue=C.useCallback(({x:ue})=>{if(!O){const pe=Np({value:ue,min:f,max:m,step:g,precision:je});F(G&&(b!=null&&b.length)?hp(pe,b.map(Ce=>Ce.value)):pe),le.current=pe}},[O,f,m,g,je,F,b,G]),Ze=C.useCallback(()=>{if(!O&&ye.current){const ue=G&&(b!=null&&b.length)?hp(le.current,b.map(pe=>pe.value)):le.current;ye.current(ue)}},[O,b,G]),{ref:et,active:ft}=Lb(Ue,{onScrubEnd:Ze},A),He=C.useCallback(ue=>{!O&&ye.current&&ye.current(ue)},[O]),Rt=ue=>{var pe,Ce,ke,Me,Fe,ze;if(!O)switch(ue.key){case"ArrowUp":{if(ue.preventDefault(),(pe=re.current)==null||pe.focus(),G&&b){const oe=cs(N,b);F(oe),He(oe);break}const ce=An(Math.min(Math.max(N+g,f),m),je);F(ce),He(ce);break}case"ArrowRight":{if(ue.preventDefault(),(Ce=re.current)==null||Ce.focus(),G&&b){const oe=A==="rtl"?ds(N,b):cs(N,b);F(oe),He(oe);break}const ce=An(Math.min(Math.max(A==="rtl"?N-g:N+g,f),m),je);F(ce),He(ce);break}case"ArrowDown":{if(ue.preventDefault(),(ke=re.current)==null||ke.focus(),G&&b){const oe=ds(N,b);F(oe),He(oe);break}const ce=An(Math.min(Math.max(N-g,f),m),je);F(ce),He(ce);break}case"ArrowLeft":{if(ue.preventDefault(),(Me=re.current)==null||Me.focus(),G&&b){const oe=A==="rtl"?cs(N,b):ds(N,b);F(oe),He(oe);break}const ce=An(Math.min(Math.max(A==="rtl"?N+g:N-g,f),m),je);F(ce),He(ce);break}case"Home":{if(ue.preventDefault(),(Fe=re.current)==null||Fe.focus(),G&&b){F(jp(b)),He(jp(b));break}F(f),He(f);break}case"End":{if(ue.preventDefault(),(ze=re.current)==null||ze.focus(),G&&b){F(Op(b)),He(Op(b));break}F(m),He(m);break}}};return y.jsx(RS,{value:{getStyles:U},children:y.jsxs(hm,{...B,ref:$t(t,X),onKeyDownCapture:Rt,onMouseDownCapture:()=>{var ue;return(ue=X.current)==null?void 0:ue.focus()},size:p,disabled:O,children:[y.jsx(mm,{inverted:Q,offset:0,filled:ve,marks:b,min:f,max:m,value:fe,disabled:O,containerProps:{ref:et,onMouseEnter:T?()=>W(!0):void 0,onMouseLeave:T?()=>W(!1):void 0},children:y.jsx(dc,{max:m,min:f,value:fe,position:ve,dragging:ft,label:we,ref:re,labelTransitionProps:R,labelAlwaysOn:k,thumbLabel:P,showLabelOnHover:T,isHovered:V,disabled:O,...Z,children:j})}),y.jsx("input",{type:"hidden",name:x,value:fe,...ne})]})})});gm.classes=Vc;gm.displayName="@mantine/core/Slider";function VN(e){return"TouchEvent"in window&&e instanceof window.TouchEvent?e.touches[0].clientX:e.clientX}const BN=(e,{size:t,color:r,thumbSize:s,radius:i})=>({root:{"--slider-size":Ke(t,"slider-size"),"--slider-color":r?It(r,e):void 0,"--slider-radius":i===void 0?void 0:Ct(i),"--slider-thumb-size":s!==void 0?se(s):"calc(var(--slider-size) * 2)"}}),UN={min:0,max:100,minRange:10,step:1,marks:[],label:e=>e,labelTransitionProps:{transition:"fade",duration:0},labelAlwaysOn:!1,showLabelOnHover:!0,disabled:!1,scale:e=>e},vm=Re((e,t)=>{const r=me("RangeSlider",UN,e),{classNames:s,styles:i,value:l,onChange:u,onChangeEnd:d,size:p,min:f,max:m,minRange:g,maxRange:w,step:S,precision:x,defaultValue:b,name:E,marks:R,label:k,labelTransitionProps:P,labelAlwaysOn:T,thumbFromLabel:j,thumbToLabel:O,showLabelOnHover:L,thumbChildren:M,disabled:Q,unstyled:q,scale:te,inverted:ee,className:ne,style:G,vars:Z,hiddenInputProps:B,restrictToMarks:U,thumbProps:A,...V}=r,W=Ie({name:"Slider",props:r,classes:Vc,classNames:s,className:ne,styles:i,style:G,vars:Z,varsResolver:BN,unstyled:q}),{dir:N}=js(),[F,le]=C.useState(-1),[ye,X]=C.useState(!1),[re,ve]=$n({value:l,defaultValue:b,finalValue:[f,m],onChange:u}),fe=C.useRef(re),we=C.useRef([]),je=C.useRef(null),Ue=C.useRef(void 0),Ze=[fc({value:re[0],min:f,max:m}),fc({value:re[1],min:f,max:m})],et=x??PS(S),ft=oe=>{ve(oe),fe.current=oe};C.useEffect(()=>{Array.isArray(l)&&(fe.current=l)},Array.isArray(l)?[l[0],l[1]]:[null,null]);const He=(oe,Se,Je)=>{if(Se===-1)return;const Ne=[...fe.current];if(U&&R){const Be=hp(oe,R.map(_r=>_r.value)),Ge=Ne[Se];Ne[Se]=Be;const qe=Se===0?1:0,Er=Op(R),Rr=jp(R);Be===Er&&Ne[qe]===Er||Be===Rr&&Ne[qe]===Rr?Ne[Se]=Ge:Be===Ne[qe]&&(Ge>Ne[qe]?Ne[qe]=ds(Be,R):Ne[qe]=cs(Be,R))}else Ne[Se]=oe,Se===0&&(oe>Ne[1]-(g-1e-9)&&(Ne[1]=Math.min(oe+g,m)),oe>(m-(g-1e-9)||f)&&(Ne[Se]=fe.current[Se]),Ne[1]-oe>w&&(Ne[1]=oe+w)),Se===1&&(oe<Ne[0]+g&&(Ne[0]=Math.max(oe-g,f)),oe<Ne[0]+g&&(Ne[Se]=fe.current[Se]),oe-Ne[0]>w&&(Ne[0]=oe-w));if(Ne[0]=An(Ne[0],et),Ne[1]=An(Ne[1],et),Ne[0]>Ne[1]){const Be=Ne[0];Ne[0]=Ne[1],Ne[1]=Be}ft(Ne),Je&&(d==null||d(fe.current))},Rt=oe=>{if(!Q){const Se=Np({value:oe,min:f,max:m,step:S,precision:et});He(Se,Ue.current,!1)}},{ref:ue,active:pe}=Lb(({x:oe})=>Rt(oe),{onScrubEnd:()=>!Q&&(d==null?void 0:d(fe.current))},N);function Ce(oe){Ue.current=oe}const ke=oe=>{ue.current.focus();const Se=ue.current.getBoundingClientRect(),Je=VN(oe.nativeEvent),Ne=Np({value:Je-Se.left,max:m,min:f,step:S,containerWidth:Se.width}),Be=Math.abs(re[0]-Ne)>Math.abs(re[1]-Ne)?1:0,Ge=N==="ltr"?Be:Be===1?0:1;Ue.current=Ge},Me=()=>F!==1&&F!==0?(le(0),0):F,Fe=oe=>{if(!Q)switch(oe.key){case"ArrowUp":{oe.preventDefault();const Se=Me();we.current[Se].focus();const Je=U&&R?cs(fe.current[Se],R):Math.min(Math.max(fe.current[Se]+S,f),m);He(An(Je,et),Se,!0);break}case"ArrowRight":{oe.preventDefault();const Se=Me();we.current[Se].focus();const Je=U&&R?(N==="rtl"?ds:cs)(fe.current[Se],R):Math.min(Math.max(N==="rtl"?fe.current[Se]-S:fe.current[Se]+S,f),m);He(An(Je,et),Se,!0);break}case"ArrowDown":{oe.preventDefault();const Se=Me();we.current[Se].focus();const Je=U&&R?ds(fe.current[Se],R):Math.min(Math.max(fe.current[Se]-S,f),m);He(An(Je,et),Se,!0);break}case"ArrowLeft":{oe.preventDefault();const Se=Me();we.current[Se].focus();const Je=U&&R?(N==="rtl"?cs:ds)(fe.current[Se],R):Math.min(Math.max(N==="rtl"?fe.current[Se]+S:fe.current[Se]-S,f),m);He(An(Je,et),Se,!0);break}}},ze={max:m,min:f,size:p,labelTransitionProps:P,labelAlwaysOn:T,onBlur:()=>le(-1)},ce=Array.isArray(M);return y.jsx(RS,{value:{getStyles:W},children:y.jsxs(hm,{...V,size:p,ref:$t(t,je),disabled:Q,onMouseDownCapture:()=>{var oe;return(oe=je.current)==null?void 0:oe.focus()},onKeyDownCapture:()=>{var oe,Se,Je;(Se=(oe=we.current[0])==null?void 0:oe.parentElement)!=null&&Se.contains(document.activeElement)||(Je=we.current[0])==null||Je.focus()},children:[y.jsxs(mm,{offset:Ze[0],marksOffset:re[0],filled:Ze[1]-Ze[0],marks:R,inverted:ee,min:f,max:m,value:re[1],disabled:Q,containerProps:{ref:ue,onMouseEnter:L?()=>X(!0):void 0,onMouseLeave:L?()=>X(!1):void 0,onTouchStartCapture:ke,onTouchEndCapture:()=>{Ue.current=-1},onMouseDownCapture:ke,onMouseUpCapture:()=>{Ue.current=-1},onKeyDownCapture:Fe},children:[y.jsx(dc,{...ze,value:te(re[0]),position:Ze[0],dragging:pe,label:typeof k=="function"?k(An(te(re[0]),et)):k,ref:oe=>{we.current[0]=oe},thumbLabel:j,onMouseDown:()=>Ce(0),onFocus:()=>le(0),showLabelOnHover:L,isHovered:ye,disabled:Q,...A==null?void 0:A(0),children:ce?M[0]:M}),y.jsx(dc,{...ze,thumbLabel:O,value:te(re[1]),position:Ze[1],dragging:pe,label:typeof k=="function"?k(An(te(re[1]),et)):k,ref:oe=>{we.current[1]=oe},onMouseDown:()=>Ce(1),onFocus:()=>le(1),showLabelOnHover:L,isHovered:ye,disabled:Q,...A==null?void 0:A(1),children:ce?M[1]:M})]}),y.jsx("input",{type:"hidden",name:`${E}_from`,value:re[0],...B}),y.jsx("input",{type:"hidden",name:`${E}_to`,value:re[1],...B})]})})});vm.classes=Vc;vm.displayName="@mantine/core/RangeSlider";var kS={root:"m_6d731127"};const HN={gap:"md",align:"stretch",justify:"flex-start"},WN=(e,{gap:t,align:r,justify:s})=>({root:{"--stack-gap":$o(t),"--stack-align":r,"--stack-justify":s}}),er=Re((e,t)=>{const r=me("Stack",HN,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,align:f,justify:m,gap:g,variant:w,...S}=r,x=Ie({name:"Stack",props:r,classes:kS,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:WN});return y.jsx(he,{ref:t,...x("root"),variant:w,...S})});er.classes=kS;er.displayName="@mantine/core/Stack";const TS=C.createContext(null),QN=TS.Provider,qN=()=>C.useContext(TS),KN={},ym=Re((e,t)=>{const{value:r,defaultValue:s,onChange:i,size:l,wrapperProps:u,children:d,readOnly:p,...f}=me("SwitchGroup",KN,e),[m,g]=$n({value:r,defaultValue:s,finalValue:[],onChange:i}),w=S=>{const x=S.currentTarget.value;!p&&g(m.includes(x)?m.filter(b=>b!==x):[...m,x])};return y.jsx(QN,{value:{value:m,onChange:w,size:l},children:y.jsx(Mt.Wrapper,{size:l,ref:t,...u,...f,labelElement:"div",__staticSelector:"SwitchGroup",children:y.jsx(aT,{role:"group",children:d})})})});ym.classes=Mt.Wrapper.classes;ym.displayName="@mantine/core/SwitchGroup";var NS={root:"m_5f93f3bb",input:"m_926b4011",track:"m_9307d992",thumb:"m_93039a1d",trackLabel:"m_8277e082"};const GN={labelPosition:"right"},XN=(e,{radius:t,color:r,size:s})=>({root:{"--switch-radius":t===void 0?void 0:Ct(t),"--switch-height":Ke(s,"switch-height"),"--switch-width":Ke(s,"switch-width"),"--switch-thumb-size":Ke(s,"switch-thumb-size"),"--switch-label-font-size":Ke(s,"switch-label-font-size"),"--switch-track-label-padding":Ke(s,"switch-track-label-padding"),"--switch-color":r?It(r,e):void 0}}),Ii=Re((e,t)=>{const r=me("Switch",GN,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,color:f,label:m,offLabel:g,onLabel:w,id:S,size:x,radius:b,wrapperProps:E,thumbIcon:R,checked:k,defaultChecked:P,onChange:T,labelPosition:j,description:O,error:L,disabled:M,variant:Q,rootRef:q,mod:te,...ee}=r,ne=qN(),G=x||(ne==null?void 0:ne.size),Z=Ie({name:"Switch",props:r,classes:NS,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:XN}),{styleProps:B,rest:U}=fl(ee),A=Jr(S),V=ne?{checked:ne.value.includes(U.value),onChange:ne.onChange}:{},[W,N]=$n({value:V.checked??k,defaultValue:P,finalValue:!1});return y.jsxs(nS,{...Z("root"),__staticSelector:"Switch",__stylesApiProps:r,id:A,size:G,labelPosition:j,label:m,description:O,error:L,disabled:M,bodyElement:"label",labelElement:"span",classNames:s,styles:u,unstyled:d,"data-checked":V.checked||k||void 0,variant:Q,ref:q,mod:te,...B,...E,children:[y.jsx("input",{...U,disabled:M,checked:W,"data-checked":V.checked||k||void 0,onChange:F=>{var le;ne?(le=V.onChange)==null||le.call(V,F):T==null||T(F),N(F.currentTarget.checked)},id:A,ref:t,type:"checkbox",role:"switch",...Z("input")}),y.jsxs(he,{"aria-hidden":"true",component:"span",mod:{error:L,"label-position":j,"without-labels":!w&&!g},...Z("track"),children:[y.jsx(he,{component:"span",mod:"reduce-motion",...Z("thumb"),children:R}),y.jsx("span",{...Z("trackLabel"),children:W?w:g})]})]})});Ii.classes={...NS,...iT};Ii.displayName="@mantine/core/Switch";Ii.Group=ym;const[YN,JN]=Yr("Table component was not found in the tree");var ml={table:"m_b23fa0ef",th:"m_4e7aa4f3",tr:"m_4e7aa4fd",td:"m_4e7aa4ef",tbody:"m_b2404537",thead:"m_b242d975",caption:"m_9e5a3ac7",scrollContainer:"m_a100c15",scrollContainerInner:"m_62259741"};function ZN(e,t){if(!t)return;const r={};return t.columnBorder&&e.withColumnBorders&&(r["data-with-column-border"]=!0),t.rowBorder&&e.withRowBorders&&(r["data-with-row-border"]=!0),t.striped&&e.striped&&(r["data-striped"]=e.striped),t.highlightOnHover&&e.highlightOnHover&&(r["data-hover"]=!0),t.captionSide&&e.captionSide&&(r["data-side"]=e.captionSide),t.stickyHeader&&e.stickyHeader&&(r["data-sticky"]=!0),r}function Ds(e,t){const r=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,s=Re((i,l)=>{const u=me(r,{},i),{classNames:d,className:p,style:f,styles:m,...g}=u,w=JN();return y.jsx(he,{component:e,ref:l,...ZN(w,t),...w.getStyles(e,{className:p,classNames:d,style:f,styles:m,props:u}),...g})});return s.displayName=`@mantine/core/${r}`,s.classes=ml,s}const Ap=Ds("th",{columnBorder:!0}),jS=Ds("td",{columnBorder:!0}),Yu=Ds("tr",{rowBorder:!0,striped:!0,highlightOnHover:!0}),OS=Ds("thead",{stickyHeader:!0}),AS=Ds("tbody"),DS=Ds("tfoot"),IS=Ds("caption",{captionSide:!0});function bm({data:e}){return y.jsxs(y.Fragment,{children:[e.caption&&y.jsx(IS,{children:e.caption}),e.head&&y.jsx(OS,{children:y.jsx(Yu,{children:e.head.map((t,r)=>y.jsx(Ap,{children:t},r))})}),e.body&&y.jsx(AS,{children:e.body.map((t,r)=>y.jsx(Yu,{children:t.map((s,i)=>y.jsx(jS,{children:s},i))},r))}),e.foot&&y.jsx(DS,{children:y.jsx(Yu,{children:e.foot.map((t,r)=>y.jsx(Ap,{children:t},r))})})]})}bm.displayName="@mantine/core/TableDataRenderer";const e2={type:"scrollarea"},t2=(e,{minWidth:t,maxHeight:r,type:s})=>({scrollContainer:{"--table-min-width":se(t),"--table-max-height":se(r),"--table-overflow":s==="native"?"auto":void 0}}),wm=Re((e,t)=>{const r=me("TableScrollContainer",e2,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,children:f,minWidth:m,maxHeight:g,type:w,scrollAreaProps:S,...x}=r,b=Ie({name:"TableScrollContainer",classes:ml,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:t2,rootSelector:"scrollContainer"});return y.jsx(he,{component:w==="scrollarea"?Os:"div",...w==="scrollarea"?g?{offsetScrollbars:"xy",...S}:{offsetScrollbars:"x",...S}:{},ref:t,...b("scrollContainer"),...x,children:y.jsx("div",{...b("scrollContainerInner"),children:f})})});wm.classes=ml;wm.displayName="@mantine/core/TableScrollContainer";const n2={withRowBorders:!0,verticalSpacing:7},r2=(e,{layout:t,captionSide:r,horizontalSpacing:s,verticalSpacing:i,borderColor:l,stripedColor:u,highlightOnHoverColor:d,striped:p,highlightOnHover:f,stickyHeaderOffset:m,stickyHeader:g})=>({table:{"--table-layout":t,"--table-caption-side":r,"--table-horizontal-spacing":$o(s),"--table-vertical-spacing":$o(i),"--table-border-color":l?It(l,e):void 0,"--table-striped-color":p&&u?It(u,e):void 0,"--table-highlight-on-hover-color":f&&d?It(d,e):void 0,"--table-sticky-header-offset":g?se(m):void 0}}),Le=Re((e,t)=>{const r=me("Table",n2,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,horizontalSpacing:f,verticalSpacing:m,captionSide:g,stripedColor:w,highlightOnHoverColor:S,striped:x,highlightOnHover:b,withColumnBorders:E,withRowBorders:R,withTableBorder:k,borderColor:P,layout:T,variant:j,data:O,children:L,stickyHeader:M,stickyHeaderOffset:Q,mod:q,tabularNums:te,...ee}=r,ne=Ie({name:"Table",props:r,className:i,style:l,classes:ml,classNames:s,styles:u,unstyled:d,rootSelector:"table",vars:p,varsResolver:r2});return y.jsx(YN,{value:{getStyles:ne,stickyHeader:M,striped:x===!0?"odd":x||void 0,highlightOnHover:b,withColumnBorders:E,withRowBorders:R,captionSide:g||"bottom"},children:y.jsx(he,{component:"table",variant:j,ref:t,mod:[{"data-with-table-border":k,"data-tabular-nums":te},q],...ne("table"),...ee,children:L||!!O&&y.jsx(bm,{data:O})})})});Le.classes=ml;Le.displayName="@mantine/core/Table";Le.Td=jS;Le.Th=Ap;Le.Tr=Yu;Le.Thead=OS;Le.Tbody=AS;Le.Tfoot=DS;Le.Caption=IS;Le.ScrollContainer=wm;Le.DataRenderer=bm;const[o2,Sm]=Yr("Tabs component was not found in the tree");var gl={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",panel:"m_b0c91715",tab:"m_4ec4dce6",tabSection:"m_fc420b1f","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const s2={},xm=Re((e,t)=>{const r=me("TabsList",s2,e),{children:s,className:i,grow:l,justify:u,classNames:d,styles:p,style:f,mod:m,...g}=r,w=Sm();return y.jsx(he,{...g,...w.getStyles("list",{className:i,style:f,classNames:d,styles:p,props:r,variant:w.variant}),ref:t,role:"tablist",variant:w.variant,mod:[{grow:l,orientation:w.orientation,placement:w.orientation==="vertical"&&w.placement,inverted:w.inverted},m],"aria-orientation":w.orientation,__vars:{"--tabs-justify":u},children:s})});xm.classes=gl;xm.displayName="@mantine/core/TabsList";const i2={},Cm=Re((e,t)=>{const r=me("TabsPanel",i2,e),{children:s,className:i,value:l,classNames:u,styles:d,style:p,mod:f,keepMounted:m,...g}=r,w=Sm(),S=w.value===l,x=w.keepMounted||m||S?s:null;return y.jsx(he,{...g,...w.getStyles("panel",{className:i,classNames:u,styles:d,style:[p,S?void 0:{display:"none"}],props:r}),ref:t,mod:[{orientation:w.orientation},f],role:"tabpanel",id:w.getPanelId(l),"aria-labelledby":w.getTabId(l),children:x})});Cm.classes=gl;Cm.displayName="@mantine/core/TabsPanel";const a2={},Em=Re((e,t)=>{const r=me("TabsTab",a2,e),{className:s,children:i,rightSection:l,leftSection:u,value:d,onClick:p,onKeyDown:f,disabled:m,color:g,style:w,classNames:S,styles:x,vars:b,mod:E,tabIndex:R,...k}=r,P=rn(),{dir:T}=js(),j=Sm(),O=d===j.value,L=Q=>{j.onChange(j.allowTabDeactivation&&d===j.value?null:d),p==null||p(Q)},M={classNames:S,styles:x,props:r};return y.jsxs(Fo,{...k,...j.getStyles("tab",{className:s,style:w,variant:j.variant,...M}),disabled:m,unstyled:j.unstyled,variant:j.variant,mod:[{active:O,disabled:m,orientation:j.orientation,inverted:j.inverted,placement:j.orientation==="vertical"&&j.placement},E],ref:t,role:"tab",id:j.getTabId(d),"aria-selected":O,tabIndex:R!==void 0?R:O||j.value===null?0:-1,"aria-controls":j.getPanelId(d),onClick:L,__vars:{"--tabs-color":g?It(g,P):void 0},onKeyDown:vE({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:j.activateTabWithKeyboard,loop:j.loop,orientation:j.orientation||"horizontal",dir:T,onKeyDown:f}),children:[u&&y.jsx("span",{...j.getStyles("tabSection",M),"data-position":"left",children:u}),i&&y.jsx("span",{...j.getStyles("tabLabel",M),children:i}),l&&y.jsx("span",{...j.getStyles("tabSection",M),"data-position":"right",children:l})]})});Em.classes=gl;Em.displayName="@mantine/core/TabsTab";const E0="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",l2={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,allowTabDeactivation:!1,unstyled:!1,inverted:!1,variant:"default",placement:"left"},u2=(e,{radius:t,color:r,autoContrast:s})=>({root:{"--tabs-radius":Ct(t),"--tabs-color":It(r,e),"--tabs-text-color":_R(s,e)?Bb({color:r,theme:e,autoContrast:s}):void 0}}),Yn=Re((e,t)=>{const r=me("Tabs",l2,e),{defaultValue:s,value:i,onChange:l,orientation:u,children:d,loop:p,id:f,activateTabWithKeyboard:m,allowTabDeactivation:g,variant:w,color:S,radius:x,inverted:b,placement:E,keepMounted:R,classNames:k,styles:P,unstyled:T,className:j,style:O,vars:L,autoContrast:M,mod:Q,...q}=r,te=Jr(f),[ee,ne]=$n({value:i,defaultValue:s,finalValue:null,onChange:l}),G=Ie({name:"Tabs",props:r,classes:gl,className:j,style:O,classNames:k,styles:P,unstyled:T,vars:L,varsResolver:u2});return y.jsx(o2,{value:{placement:E,value:ee,orientation:u,id:te,loop:p,activateTabWithKeyboard:m,getTabId:Ry(`${te}-tab`,E0),getPanelId:Ry(`${te}-panel`,E0),onChange:ne,allowTabDeactivation:g,variant:w,color:S,radius:x,inverted:b,keepMounted:R,unstyled:T,getStyles:G},children:y.jsx(he,{ref:t,id:te,variant:w,mod:[{orientation:u,inverted:u==="horizontal"&&b,placement:u==="vertical"&&E},Q],...G("root"),...q,children:d})})});Yn.classes=gl;Yn.displayName="@mantine/core/Tabs";Yn.Tab=Em;Yn.Panel=Cm;Yn.List=xm;const c2={},el=Re((e,t)=>{const r=me("TextInput",c2,e);return y.jsx(xr,{component:"input",ref:t,...r,__staticSelector:"TextInput"})});el.classes=xr.classes;el.displayName="@mantine/core/TextInput";const d2=["h1","h2","h3","h4","h5","h6"],f2=["xs","sm","md","lg","xl"];function p2(e,t){const r=t!==void 0?t:`h${e}`;return d2.includes(r)?{fontSize:`var(--mantine-${r}-font-size)`,fontWeight:`var(--mantine-${r}-font-weight)`,lineHeight:`var(--mantine-${r}-line-height)`}:f2.includes(r)?{fontSize:`var(--mantine-font-size-${r})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:se(r),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var MS={root:"m_8a5d1357"};const h2={order:1},m2=(e,{order:t,size:r,lineClamp:s,textWrap:i})=>{const l=p2(t,r);return{root:{"--title-fw":l.fontWeight,"--title-lh":l.lineHeight,"--title-fz":l.fontSize,"--title-line-clamp":typeof s=="number"?s.toString():void 0,"--title-text-wrap":i}}},Qa=Re((e,t)=>{const r=me("Title",h2,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,order:p,vars:f,size:m,variant:g,lineClamp:w,textWrap:S,mod:x,...b}=r,E=Ie({name:"Title",props:r,classes:MS,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:f,varsResolver:m2});return[1,2,3,4,5,6].includes(p)?y.jsx(he,{...E("root"),component:`h${p}`,variant:g,ref:t,mod:[{order:p,"data-line-clamp":typeof w=="number"},x],size:m,...b}):null});Qa.classes=MS;Qa.displayName="@mantine/core/Title";function g2(e){let t=e,r=!1;const s=new Set;return{getState(){return t},updateState(i){t=typeof i=="function"?i(t):i},setState(i){this.updateState(i),s.forEach(l=>l(t))},initialize(i){r||(t=i,r=!0)},subscribe(i){return s.add(i),()=>s.delete(i)}}}function v2(e){return C.useSyncExternalStore(e.subscribe,()=>e.getState(),()=>e.getState())}function y2(e,t,r){const s=[],i=[],l={};for(const u of e){const d=u.position||t;l[d]=l[d]||0,l[d]+=1,l[d]<=r?i.push(u):s.push(u)}return{notifications:i,queue:s}}const b2=()=>g2({notifications:[],queue:[],defaultPosition:"bottom-right",limit:5}),Is=b2(),w2=(e=Is)=>v2(e);function Wi(e,t){const r=e.getState(),s=t([...r.notifications,...r.queue]),i=y2(s,r.defaultPosition,r.limit);e.setState({notifications:i.notifications,queue:i.queue,limit:r.limit,defaultPosition:r.defaultPosition})}function S2(e,t=Is){const r=e.id||Ob();return Wi(t,s=>e.id&&s.some(i=>i.id===e.id)?s:[...s,{...e,id:r}]),r}function $S(e,t=Is){return Wi(t,r=>r.filter(s=>{var i;return s.id===e?((i=s.onClose)==null||i.call(s,s),!1):!0})),e}function x2(e,t=Is){return Wi(t,r=>r.map(s=>s.id===e.id?{...s,...e}:s)),e.id}function C2(e=Is){Wi(e,()=>[])}function E2(e=Is){Wi(e,t=>t.slice(0,e.getState().limit))}const Tt={show:S2,hide:$S,update:x2,clean:C2,cleanQueue:E2,updateState:Wi};function Dp(e,t){return Dp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,s){return r.__proto__=s,r},Dp(e,t)}function LS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Dp(e,t)}const R0={disabled:!1},pc=St.createContext(null);var R2=function(t){return t.scrollTop},Ba="unmounted",os="exited",ss="entering",hi="entered",Ip="exiting",Zr=(function(e){LS(t,e);function t(s,i){var l;l=e.call(this,s,i)||this;var u=i,d=u&&!u.isMounting?s.enter:s.appear,p;return l.appearStatus=null,s.in?d?(p=os,l.appearStatus=ss):p=hi:s.unmountOnExit||s.mountOnEnter?p=Ba:p=os,l.state={status:p},l.nextCallback=null,l}t.getDerivedStateFromProps=function(i,l){var u=i.in;return u&&l.status===Ba?{status:os}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var l=null;if(i!==this.props){var u=this.state.status;this.props.in?u!==ss&&u!==hi&&(l=ss):(u===ss||u===hi)&&(l=Ip)}this.updateStatus(!1,l)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,l,u,d;return l=u=d=i,i!=null&&typeof i!="number"&&(l=i.exit,u=i.enter,d=i.appear!==void 0?i.appear:u),{exit:l,enter:u,appear:d}},r.updateStatus=function(i,l){if(i===void 0&&(i=!1),l!==null)if(this.cancelNextCallback(),l===ss){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:Va.findDOMNode(this);u&&R2(u)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===os&&this.setState({status:Ba})},r.performEnter=function(i){var l=this,u=this.props.enter,d=this.context?this.context.isMounting:i,p=this.props.nodeRef?[d]:[Va.findDOMNode(this),d],f=p[0],m=p[1],g=this.getTimeouts(),w=d?g.appear:g.enter;if(!i&&!u||R0.disabled){this.safeSetState({status:hi},function(){l.props.onEntered(f)});return}this.props.onEnter(f,m),this.safeSetState({status:ss},function(){l.props.onEntering(f,m),l.onTransitionEnd(w,function(){l.safeSetState({status:hi},function(){l.props.onEntered(f,m)})})})},r.performExit=function(){var i=this,l=this.props.exit,u=this.getTimeouts(),d=this.props.nodeRef?void 0:Va.findDOMNode(this);if(!l||R0.disabled){this.safeSetState({status:os},function(){i.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:Ip},function(){i.props.onExiting(d),i.onTransitionEnd(u.exit,function(){i.safeSetState({status:os},function(){i.props.onExited(d)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,l){l=this.setNextCallback(l),this.setState(i,l)},r.setNextCallback=function(i){var l=this,u=!0;return this.nextCallback=function(d){u&&(u=!1,l.nextCallback=null,i(d))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},r.onTransitionEnd=function(i,l){this.setNextCallback(l);var u=this.props.nodeRef?this.props.nodeRef.current:Va.findDOMNode(this),d=i==null&&!this.props.addEndListener;if(!u||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var p=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],f=p[0],m=p[1];this.props.addEndListener(f,m)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Ba)return null;var l=this.props,u=l.children;l.in,l.mountOnEnter,l.unmountOnExit,l.appear,l.enter,l.exit,l.timeout,l.addEndListener,l.onEnter,l.onEntering,l.onEntered,l.onExit,l.onExiting,l.onExited,l.nodeRef;var d=pS(l,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return St.createElement(pc.Provider,{value:null},typeof u=="function"?u(i,d):St.cloneElement(St.Children.only(u),d))},t})(St.Component);Zr.contextType=pc;Zr.propTypes={};function fi(){}Zr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:fi,onEntering:fi,onEntered:fi,onExit:fi,onExiting:fi,onExited:fi};Zr.UNMOUNTED=Ba;Zr.EXITED=os;Zr.ENTERING=ss;Zr.ENTERED=hi;Zr.EXITING=Ip;function _2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rm(e,t){var r=function(l){return t&&C.isValidElement(l)?t(l):l},s=Object.create(null);return e&&C.Children.map(e,function(i){return i}).forEach(function(i){s[i.key]=r(i)}),s}function P2(e,t){e=e||{},t=t||{};function r(m){return m in t?t[m]:e[m]}var s=Object.create(null),i=[];for(var l in e)l in t?i.length&&(s[l]=i,i=[]):i.push(l);var u,d={};for(var p in t){if(s[p])for(u=0;u<s[p].length;u++){var f=s[p][u];d[s[p][u]]=r(f)}d[p]=r(p)}for(u=0;u<i.length;u++)d[i[u]]=r(i[u]);return d}function fs(e,t,r){return r[t]!=null?r[t]:e.props[t]}function k2(e,t){return Rm(e.children,function(r){return C.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:fs(r,"appear",e),enter:fs(r,"enter",e),exit:fs(r,"exit",e)})})}function T2(e,t,r){var s=Rm(e.children),i=P2(t,s);return Object.keys(i).forEach(function(l){var u=i[l];if(C.isValidElement(u)){var d=l in t,p=l in s,f=t[l],m=C.isValidElement(f)&&!f.props.in;p&&(!d||m)?i[l]=C.cloneElement(u,{onExited:r.bind(null,u),in:!0,exit:fs(u,"exit",e),enter:fs(u,"enter",e)}):!p&&d&&!m?i[l]=C.cloneElement(u,{in:!1}):p&&d&&C.isValidElement(f)&&(i[l]=C.cloneElement(u,{onExited:r.bind(null,u),in:f.props.in,exit:fs(u,"exit",e),enter:fs(u,"enter",e)}))}}),i}var N2=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},j2={component:"div",childFactory:function(t){return t}},Ro=(function(e){LS(t,e);function t(s,i){var l;l=e.call(this,s,i)||this;var u=l.handleExited.bind(_2(l));return l.state={contextValue:{isMounting:!0},handleExited:u,firstRender:!0},l}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,l){var u=l.children,d=l.handleExited,p=l.firstRender;return{children:p?k2(i,d):T2(i,u,d),firstRender:!1}},r.handleExited=function(i,l){var u=Rm(this.props.children);i.key in u||(i.props.onExited&&i.props.onExited(l),this.mounted&&this.setState(function(d){var p=Pp({},d.children);return delete p[i.key],{children:p}}))},r.render=function(){var i=this.props,l=i.component,u=i.childFactory,d=pS(i,["component","childFactory"]),p=this.state.contextValue,f=N2(this.state.children).map(u);return delete d.appear,delete d.enter,delete d.exit,l===null?St.createElement(pc.Provider,{value:p},f):St.createElement(pc.Provider,{value:p},St.createElement(l,d,f))},t})(St.Component);Ro.propTypes={};Ro.defaultProps=j2;const FS=["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"];function O2(e,t){return e.reduce((r,s)=>(r[s.position||t].push(s),r),FS.reduce((r,s)=>(r[s]=[],r),{}))}const _0={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},A2={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};function D2({state:e,maxHeight:t,position:r,transitionDuration:s}){const[i,l]=r.split("-"),u=l==="center"?`${i}-center`:l,d={opacity:0,maxHeight:t,transform:_0[u],transitionDuration:`${s}ms, ${s}ms, ${s}ms`,transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear",transitionProperty:"opacity, transform, max-height"},p={opacity:1,transform:A2[u]},f={opacity:0,maxHeight:0,transform:_0[u]};return{...d,...{entering:p,entered:p,exiting:f,exited:f}[e]}}function I2(e,t){return typeof t=="number"?t:t===!1||e===!1?!1:e}const zS=C.forwardRef(({data:e,onHide:t,autoClose:r,...s},i)=>{const{autoClose:l,message:u,...d}=e,p=I2(r,e.autoClose),f=C.useRef(-1),m=()=>window.clearTimeout(f.current),g=()=>{t(e.id),m()},w=()=>{typeof p=="number"&&(f.current=window.setTimeout(g,p))};return C.useEffect(()=>{var S;(S=e.onOpen)==null||S.call(e,e)},[]),C.useEffect(()=>(w(),m),[p]),y.jsx(cm,{...s,...d,onClose:g,ref:i,onMouseEnter:m,onMouseLeave:w,children:u})});zS.displayName="@mantine/notifications/NotificationContainer";var VS={root:"m_b37d9ac7",notification:"m_5ed0edd0"};const M2=Zr,$2={position:"bottom-right",autoClose:4e3,transitionDuration:250,containerWidth:440,notificationMaxHeight:200,limit:5,zIndex:$i("overlay"),store:Is,withinPortal:!0},L2=(e,{zIndex:t,containerWidth:r})=>({root:{"--notifications-z-index":t==null?void 0:t.toString(),"--notifications-container-width":se(r)}}),eo=Re((e,t)=>{const r=me("Notifications",$2,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,position:f,autoClose:m,transitionDuration:g,containerWidth:w,notificationMaxHeight:S,limit:x,zIndex:b,store:E,portalProps:R,withinPortal:k,...P}=r,T=rn(),j=w2(E),O=AE(),L=ah(),M=C.useRef({}),Q=C.useRef(0),te=(T.respectReducedMotion?L:!1)?1:g,ee=Ie({name:"Notifications",classes:VS,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:L2});C.useEffect(()=>{E==null||E.updateState(Z=>({...Z,limit:x||5,defaultPosition:f}))},[x,f]),Kr(()=>{j.notifications.length>Q.current&&setTimeout(()=>O(),0),Q.current=j.notifications.length},[j.notifications]);const ne=O2(j.notifications,f),G=FS.reduce((Z,B)=>(Z[B]=ne[B].map(({style:U,...A})=>y.jsx(M2,{timeout:te,onEnter:()=>M.current[A.id].offsetHeight,nodeRef:{current:M.current[A.id]},children:V=>y.jsx(zS,{ref:W=>{M.current[A.id]=W},data:A,onHide:W=>$S(W,E),autoClose:m,...ee("notification",{style:{...D2({state:V,position:B,transitionDuration:te,maxHeight:S}),...U}})})},A.id)),Z),{});return y.jsxs(zi,{withinPortal:k,...R,children:[y.jsx(he,{...ee("root"),"data-position":"top-center",ref:t,...P,children:y.jsx(Ro,{children:G["top-center"]})}),y.jsx(he,{...ee("root"),"data-position":"top-left",...P,children:y.jsx(Ro,{children:G["top-left"]})}),y.jsx(he,{...ee("root",{className:cp.classNames.fullWidth}),"data-position":"top-right",...P,children:y.jsx(Ro,{children:G["top-right"]})}),y.jsx(he,{...ee("root",{className:cp.classNames.fullWidth}),"data-position":"bottom-right",...P,children:y.jsx(Ro,{children:G["bottom-right"]})}),y.jsx(he,{...ee("root"),"data-position":"bottom-left",...P,children:y.jsx(Ro,{children:G["bottom-left"]})}),y.jsx(he,{...ee("root"),"data-position":"bottom-center",...P,children:y.jsx(Ro,{children:G["bottom-center"]})})]})});eo.classes=VS;eo.displayName="@mantine/notifications/Notifications";eo.show=Tt.show;eo.hide=Tt.hide;eo.update=Tt.update;eo.clean=Tt.clean;eo.cleanQueue=Tt.cleanQueue;eo.updateState=Tt.updateState;var Qi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},F2={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Po,oh,lb,z2=(lb=class{constructor(){Oe(this,Po,F2);Oe(this,oh,!1)}setTimeoutProvider(e){be(this,Po,e)}setTimeout(e,t){return I(this,Po).setTimeout(e,t)}clearTimeout(e){I(this,Po).clearTimeout(e)}setInterval(e,t){return I(this,Po).setInterval(e,t)}clearInterval(e){I(this,Po).clearInterval(e)}},Po=new WeakMap,oh=new WeakMap,lb),ps=new z2;function V2(e){setTimeout(e,0)}var Ps=typeof window>"u"||"Deno"in globalThis;function nn(){}function B2(e,t){return typeof e=="function"?e(t):e}function Mp(e){return typeof e=="number"&&e>=0&&e!==1/0}function BS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Mo(e,t){return typeof e=="function"?e(t):e}function In(e,t){return typeof e=="function"?e(t):e}function P0(e,t){const{type:r="all",exact:s,fetchStatus:i,predicate:l,queryKey:u,stale:d}=e;if(u){if(s){if(t.queryHash!==_m(u,t.options))return!1}else if(!tl(t.queryKey,u))return!1}if(r!=="all"){const p=t.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||i&&i!==t.state.fetchStatus||l&&!l(t))}function k0(e,t){const{exact:r,status:s,predicate:i,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(r){if(ks(t.options.mutationKey)!==ks(l))return!1}else if(!tl(t.options.mutationKey,l))return!1}return!(s&&t.state.status!==s||i&&!i(t))}function _m(e,t){return((t==null?void 0:t.queryKeyHashFn)||ks)(e)}function ks(e){return JSON.stringify(e,(t,r)=>$p(r)?Object.keys(r).sort().reduce((s,i)=>(s[i]=r[i],s),{}):r)}function tl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>tl(e[r],t[r])):!1}var U2=Object.prototype.hasOwnProperty;function US(e,t){if(e===t)return e;const r=T0(e)&&T0(t);if(!r&&!($p(e)&&$p(t)))return t;const i=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),u=l.length,d=r?new Array(u):{};let p=0;for(let f=0;f<u;f++){const m=r?f:l[f],g=e[m],w=t[m];if(g===w){d[m]=g,(r?f<i:U2.call(e,m))&&p++;continue}if(g===null||w===null||typeof g!="object"||typeof w!="object"){d[m]=w;continue}const S=US(g,w);d[m]=S,S===g&&p++}return i===u&&p===i?e:d}function hc(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function T0(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function $p(e){if(!N0(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!N0(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function N0(e){return Object.prototype.toString.call(e)==="[object Object]"}function H2(e){return new Promise(t=>{ps.setTimeout(t,e)})}function Lp(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?US(e,t):t}function W2(e,t,r=0){const s=[...e,t];return r&&s.length>r?s.slice(1):s}function Q2(e,t,r=0){const s=[t,...e];return r&&s.length>r?s.slice(0,-1):s}var Pm=Symbol();function HS(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Pm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function WS(e,t){return typeof e=="function"?e(...t):!!e}var ms,ko,wi,ub,q2=(ub=class extends Qi{constructor(){super();Oe(this,ms);Oe(this,ko);Oe(this,wi);be(this,wi,t=>{if(!Ps&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){I(this,ko)||this.setEventListener(I(this,wi))}onUnsubscribe(){var t;this.hasListeners()||((t=I(this,ko))==null||t.call(this),be(this,ko,void 0))}setEventListener(t){var r;be(this,wi,t),(r=I(this,ko))==null||r.call(this),be(this,ko,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){I(this,ms)!==t&&(be(this,ms,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof I(this,ms)=="boolean"?I(this,ms):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ms=new WeakMap,ko=new WeakMap,wi=new WeakMap,ub),km=new q2;function Fp(){let e,t;const r=new Promise((i,l)=>{e=i,t=l});r.status="pending",r.catch(()=>{});function s(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{s({status:"fulfilled",value:i}),e(i)},r.reject=i=>{s({status:"rejected",reason:i}),t(i)},r}var K2=V2;function G2(){let e=[],t=0,r=d=>{d()},s=d=>{d()},i=K2;const l=d=>{t?e.push(d):i(()=>{r(d)})},u=()=>{const d=e;e=[],d.length&&i(()=>{s(()=>{d.forEach(p=>{r(p)})})})};return{batch:d=>{let p;t++;try{p=d()}finally{t--,t||u()}return p},batchCalls:d=>(...p)=>{l(()=>{d(...p)})},schedule:l,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{s=d},setScheduler:d=>{i=d}}}var Nt=G2(),Si,To,xi,cb,X2=(cb=class extends Qi{constructor(){super();Oe(this,Si,!0);Oe(this,To);Oe(this,xi);be(this,xi,t=>{if(!Ps&&window.addEventListener){const r=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",s)}}})}onSubscribe(){I(this,To)||this.setEventListener(I(this,xi))}onUnsubscribe(){var t;this.hasListeners()||((t=I(this,To))==null||t.call(this),be(this,To,void 0))}setEventListener(t){var r;be(this,xi,t),(r=I(this,To))==null||r.call(this),be(this,To,t(this.setOnline.bind(this)))}setOnline(t){I(this,Si)!==t&&(be(this,Si,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return I(this,Si)}},Si=new WeakMap,To=new WeakMap,xi=new WeakMap,cb),mc=new X2;function Y2(e){return Math.min(1e3*2**e,3e4)}function QS(e){return(e??"online")==="online"?mc.isOnline():!0}var zp=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function qS(e){let t=!1,r=0,s;const i=Fp(),l=()=>i.status!=="pending",u=b=>{var E;if(!l()){const R=new zp(b);w(R),(E=e.onCancel)==null||E.call(e,R)}},d=()=>{t=!0},p=()=>{t=!1},f=()=>km.isFocused()&&(e.networkMode==="always"||mc.isOnline())&&e.canRun(),m=()=>QS(e.networkMode)&&e.canRun(),g=b=>{l()||(s==null||s(),i.resolve(b))},w=b=>{l()||(s==null||s(),i.reject(b))},S=()=>new Promise(b=>{var E;s=R=>{(l()||f())&&b(R)},(E=e.onPause)==null||E.call(e)}).then(()=>{var b;s=void 0,l()||(b=e.onContinue)==null||b.call(e)}),x=()=>{if(l())return;let b;const E=r===0?e.initialPromise:void 0;try{b=E??e.fn()}catch(R){b=Promise.reject(R)}Promise.resolve(b).then(g).catch(R=>{var O;if(l())return;const k=e.retry??(Ps?0:3),P=e.retryDelay??Y2,T=typeof P=="function"?P(r,R):P,j=k===!0||typeof k=="number"&&r<k||typeof k=="function"&&k(r,R);if(t||!j){w(R);return}r++,(O=e.onFail)==null||O.call(e,r,R),H2(T).then(()=>f()?void 0:S()).then(()=>{t?w(R):x()})})};return{promise:i,status:()=>i.status,cancel:u,continue:()=>(s==null||s(),i),cancelRetry:d,continueRetry:p,canStart:m,start:()=>(m()?x():S().then(x),i)}}var gs,db,KS=(db=class{constructor(){Oe(this,gs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Mp(this.gcTime)&&be(this,gs,ps.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ps?1/0:300*1e3))}clearGcTimeout(){I(this,gs)&&(ps.clearTimeout(I(this,gs)),be(this,gs,void 0))}},gs=new WeakMap,db),vs,Ci,On,ys,Dt,nl,bs,Gn,Mr,fb,J2=(fb=class extends KS{constructor(t){super();Oe(this,Gn);Oe(this,vs);Oe(this,Ci);Oe(this,On);Oe(this,ys);Oe(this,Dt);Oe(this,nl);Oe(this,bs);be(this,bs,!1),be(this,nl,t.defaultOptions),this.setOptions(t.options),this.observers=[],be(this,ys,t.client),be(this,On,I(this,ys).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,be(this,vs,O0(this.options)),this.state=t.state??I(this,vs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=I(this,Dt))==null?void 0:t.promise}setOptions(t){if(this.options={...I(this,nl),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=O0(this.options);r.data!==void 0&&(this.setState(j0(r.data,r.dataUpdatedAt)),be(this,vs,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&I(this,On).remove(this)}setData(t,r){const s=Lp(this.state.data,t,this.options);return We(this,Gn,Mr).call(this,{data:s,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),s}setState(t,r){We(this,Gn,Mr).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var s,i;const r=(s=I(this,Dt))==null?void 0:s.promise;return(i=I(this,Dt))==null||i.cancel(t),r?r.then(nn).catch(nn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(I(this,vs))}isActive(){return this.observers.some(t=>In(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Pm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Mo(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!BS(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=I(this,Dt))==null||r.continue()}onOnline(){var r;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=I(this,Dt))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),I(this,On).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(I(this,Dt)&&(I(this,bs)?I(this,Dt).cancel({revert:!0}):I(this,Dt).cancelRetry()),this.scheduleGc()),I(this,On).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||We(this,Gn,Mr).call(this,{type:"invalidate"})}async fetch(t,r){var p,f,m,g,w,S,x,b,E,R,k,P;if(this.state.fetchStatus!=="idle"&&((p=I(this,Dt))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(I(this,Dt))return I(this,Dt).continueRetry(),I(this,Dt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const T=this.observers.find(j=>j.options.queryFn);T&&this.setOptions(T.options)}const s=new AbortController,i=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(be(this,bs,!0),s.signal)})},l=()=>{const T=HS(this.options,r),O=(()=>{const L={client:I(this,ys),queryKey:this.queryKey,meta:this.meta};return i(L),L})();return be(this,bs,!1),this.options.persister?this.options.persister(T,O,this):T(O)},d=(()=>{const T={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:I(this,ys),state:this.state,fetchFn:l};return i(T),T})();(f=this.options.behavior)==null||f.onFetch(d,this),be(this,Ci,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=d.fetchOptions)==null?void 0:m.meta))&&We(this,Gn,Mr).call(this,{type:"fetch",meta:(g=d.fetchOptions)==null?void 0:g.meta}),be(this,Dt,qS({initialPromise:r==null?void 0:r.initialPromise,fn:d.fetchFn,onCancel:T=>{T instanceof zp&&T.revert&&this.setState({...I(this,Ci),fetchStatus:"idle"}),s.abort()},onFail:(T,j)=>{We(this,Gn,Mr).call(this,{type:"failed",failureCount:T,error:j})},onPause:()=>{We(this,Gn,Mr).call(this,{type:"pause"})},onContinue:()=>{We(this,Gn,Mr).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const T=await I(this,Dt).start();if(T===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(T),(S=(w=I(this,On).config).onSuccess)==null||S.call(w,T,this),(b=(x=I(this,On).config).onSettled)==null||b.call(x,T,this.state.error,this),T}catch(T){if(T instanceof zp){if(T.silent)return I(this,Dt).promise;if(T.revert){if(this.state.data===void 0)throw T;return this.state.data}}throw We(this,Gn,Mr).call(this,{type:"error",error:T}),(R=(E=I(this,On).config).onError)==null||R.call(E,T,this),(P=(k=I(this,On).config).onSettled)==null||P.call(k,this.state.data,T,this),T}finally{this.scheduleGc()}}},vs=new WeakMap,Ci=new WeakMap,On=new WeakMap,ys=new WeakMap,Dt=new WeakMap,nl=new WeakMap,bs=new WeakMap,Gn=new WeakSet,Mr=function(t){const r=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...GS(s.data,this.options),fetchMeta:t.meta??null};case"success":const i={...s,...j0(t.data,t.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return be(this,Ci,t.manual?i:void 0),i;case"error":const l=t.error;return{...s,error:l,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=r(this.state),Nt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),I(this,On).notify({query:this,type:"updated",action:t})})},fb);function GS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:QS(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function j0(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function O0(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,s=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var dn,Xe,rl,en,ws,Ei,Lr,No,ol,Ri,_i,Ss,xs,jo,Pi,ot,Ua,Vp,Bp,Up,Hp,Wp,Qp,qp,XS,pb,Z2=(pb=class extends Qi{constructor(t,r){super();Oe(this,ot);Oe(this,dn);Oe(this,Xe);Oe(this,rl);Oe(this,en);Oe(this,ws);Oe(this,Ei);Oe(this,Lr);Oe(this,No);Oe(this,ol);Oe(this,Ri);Oe(this,_i);Oe(this,Ss);Oe(this,xs);Oe(this,jo);Oe(this,Pi,new Set);this.options=r,be(this,dn,t),be(this,No,null),be(this,Lr,Fp()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(I(this,Xe).addObserver(this),A0(I(this,Xe),this.options)?We(this,ot,Ua).call(this):this.updateResult(),We(this,ot,Hp).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Kp(I(this,Xe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Kp(I(this,Xe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,We(this,ot,Wp).call(this),We(this,ot,Qp).call(this),I(this,Xe).removeObserver(this)}setOptions(t){const r=this.options,s=I(this,Xe);if(this.options=I(this,dn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof In(this.options.enabled,I(this,Xe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");We(this,ot,qp).call(this),I(this,Xe).setOptions(this.options),r._defaulted&&!hc(this.options,r)&&I(this,dn).getQueryCache().notify({type:"observerOptionsUpdated",query:I(this,Xe),observer:this});const i=this.hasListeners();i&&D0(I(this,Xe),s,this.options,r)&&We(this,ot,Ua).call(this),this.updateResult(),i&&(I(this,Xe)!==s||In(this.options.enabled,I(this,Xe))!==In(r.enabled,I(this,Xe))||Mo(this.options.staleTime,I(this,Xe))!==Mo(r.staleTime,I(this,Xe)))&&We(this,ot,Vp).call(this);const l=We(this,ot,Bp).call(this);i&&(I(this,Xe)!==s||In(this.options.enabled,I(this,Xe))!==In(r.enabled,I(this,Xe))||l!==I(this,jo))&&We(this,ot,Up).call(this,l)}getOptimisticResult(t){const r=I(this,dn).getQueryCache().build(I(this,dn),t),s=this.createResult(r,t);return tj(this,s)&&(be(this,en,s),be(this,Ei,this.options),be(this,ws,I(this,Xe).state)),s}getCurrentResult(){return I(this,en)}trackResult(t,r){return new Proxy(t,{get:(s,i)=>(this.trackProp(i),r==null||r(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&I(this,Lr).status==="pending"&&I(this,Lr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,i))})}trackProp(t){I(this,Pi).add(t)}getCurrentQuery(){return I(this,Xe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=I(this,dn).defaultQueryOptions(t),s=I(this,dn).getQueryCache().build(I(this,dn),r);return s.fetch().then(()=>this.createResult(s,r))}fetch(t){return We(this,ot,Ua).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),I(this,en)))}createResult(t,r){var Q;const s=I(this,Xe),i=this.options,l=I(this,en),u=I(this,ws),d=I(this,Ei),f=t!==s?t.state:I(this,rl),{state:m}=t;let g={...m},w=!1,S;if(r._optimisticResults){const q=this.hasListeners(),te=!q&&A0(t,r),ee=q&&D0(t,s,r,i);(te||ee)&&(g={...g,...GS(m.data,t.options)}),r._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:x,errorUpdatedAt:b,status:E}=g;S=g.data;let R=!1;if(r.placeholderData!==void 0&&S===void 0&&E==="pending"){let q;l!=null&&l.isPlaceholderData&&r.placeholderData===(d==null?void 0:d.placeholderData)?(q=l.data,R=!0):q=typeof r.placeholderData=="function"?r.placeholderData((Q=I(this,_i))==null?void 0:Q.state.data,I(this,_i)):r.placeholderData,q!==void 0&&(E="success",S=Lp(l==null?void 0:l.data,q,r),w=!0)}if(r.select&&S!==void 0&&!R)if(l&&S===(u==null?void 0:u.data)&&r.select===I(this,ol))S=I(this,Ri);else try{be(this,ol,r.select),S=r.select(S),S=Lp(l==null?void 0:l.data,S,r),be(this,Ri,S),be(this,No,null)}catch(q){be(this,No,q)}I(this,No)&&(x=I(this,No),S=I(this,Ri),b=Date.now(),E="error");const k=g.fetchStatus==="fetching",P=E==="pending",T=E==="error",j=P&&k,O=S!==void 0,M={status:E,fetchStatus:g.fetchStatus,isPending:P,isSuccess:E==="success",isError:T,isInitialLoading:j,isLoading:j,data:S,dataUpdatedAt:g.dataUpdatedAt,error:x,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>f.dataUpdateCount||g.errorUpdateCount>f.errorUpdateCount,isFetching:k,isRefetching:k&&!P,isLoadingError:T&&!O,isPaused:g.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:T&&O,isStale:Tm(t,r),refetch:this.refetch,promise:I(this,Lr),isEnabled:In(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const q=ne=>{M.status==="error"?ne.reject(M.error):M.data!==void 0&&ne.resolve(M.data)},te=()=>{const ne=be(this,Lr,M.promise=Fp());q(ne)},ee=I(this,Lr);switch(ee.status){case"pending":t.queryHash===s.queryHash&&q(ee);break;case"fulfilled":(M.status==="error"||M.data!==ee.value)&&te();break;case"rejected":(M.status!=="error"||M.error!==ee.reason)&&te();break}}return M}updateResult(){const t=I(this,en),r=this.createResult(I(this,Xe),this.options);if(be(this,ws,I(this,Xe).state),be(this,Ei,this.options),I(this,ws).data!==void 0&&be(this,_i,I(this,Xe)),hc(r,t))return;be(this,en,r);const s=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!I(this,Pi).size)return!0;const u=new Set(l??I(this,Pi));return this.options.throwOnError&&u.add("error"),Object.keys(I(this,en)).some(d=>{const p=d;return I(this,en)[p]!==t[p]&&u.has(p)})};We(this,ot,XS).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&We(this,ot,Hp).call(this)}},dn=new WeakMap,Xe=new WeakMap,rl=new WeakMap,en=new WeakMap,ws=new WeakMap,Ei=new WeakMap,Lr=new WeakMap,No=new WeakMap,ol=new WeakMap,Ri=new WeakMap,_i=new WeakMap,Ss=new WeakMap,xs=new WeakMap,jo=new WeakMap,Pi=new WeakMap,ot=new WeakSet,Ua=function(t){We(this,ot,qp).call(this);let r=I(this,Xe).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(nn)),r},Vp=function(){We(this,ot,Wp).call(this);const t=Mo(this.options.staleTime,I(this,Xe));if(Ps||I(this,en).isStale||!Mp(t))return;const s=BS(I(this,en).dataUpdatedAt,t)+1;be(this,Ss,ps.setTimeout(()=>{I(this,en).isStale||this.updateResult()},s))},Bp=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(I(this,Xe)):this.options.refetchInterval)??!1},Up=function(t){We(this,ot,Qp).call(this),be(this,jo,t),!(Ps||In(this.options.enabled,I(this,Xe))===!1||!Mp(I(this,jo))||I(this,jo)===0)&&be(this,xs,ps.setInterval(()=>{(this.options.refetchIntervalInBackground||km.isFocused())&&We(this,ot,Ua).call(this)},I(this,jo)))},Hp=function(){We(this,ot,Vp).call(this),We(this,ot,Up).call(this,We(this,ot,Bp).call(this))},Wp=function(){I(this,Ss)&&(ps.clearTimeout(I(this,Ss)),be(this,Ss,void 0))},Qp=function(){I(this,xs)&&(ps.clearInterval(I(this,xs)),be(this,xs,void 0))},qp=function(){const t=I(this,dn).getQueryCache().build(I(this,dn),this.options);if(t===I(this,Xe))return;const r=I(this,Xe);be(this,Xe,t),be(this,rl,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},XS=function(t){Nt.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(I(this,en))}),I(this,dn).getQueryCache().notify({query:I(this,Xe),type:"observerResultsUpdated"})})},pb);function ej(e,t){return In(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function A0(e,t){return ej(e,t)||e.state.data!==void 0&&Kp(e,t,t.refetchOnMount)}function Kp(e,t,r){if(In(t.enabled,e)!==!1&&Mo(t.staleTime,e)!=="static"){const s=typeof r=="function"?r(e):r;return s==="always"||s!==!1&&Tm(e,t)}return!1}function D0(e,t,r,s){return(e!==t||In(s.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Tm(e,r)}function Tm(e,t){return In(t.enabled,e)!==!1&&e.isStaleByTime(Mo(t.staleTime,e))}function tj(e,t){return!hc(e.getCurrentResult(),t)}function I0(e){return{onFetch:(t,r)=>{var m,g,w,S,x;const s=t.options,i=(w=(g=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:g.fetchMore)==null?void 0:w.direction,l=((S=t.state.data)==null?void 0:S.pages)||[],u=((x=t.state.data)==null?void 0:x.pageParams)||[];let d={pages:[],pageParams:[]},p=0;const f=async()=>{let b=!1;const E=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>(t.signal.aborted?b=!0:t.signal.addEventListener("abort",()=>{b=!0}),t.signal)})},R=HS(t.options,t.fetchOptions),k=async(P,T,j)=>{if(b)return Promise.reject();if(T==null&&P.pages.length)return Promise.resolve(P);const L=(()=>{const te={client:t.client,queryKey:t.queryKey,pageParam:T,direction:j?"backward":"forward",meta:t.options.meta};return E(te),te})(),M=await R(L),{maxPages:Q}=t.options,q=j?Q2:W2;return{pages:q(P.pages,M,Q),pageParams:q(P.pageParams,T,Q)}};if(i&&l.length){const P=i==="backward",T=P?nj:M0,j={pages:l,pageParams:u},O=T(s,j);d=await k(j,O,P)}else{const P=e??l.length;do{const T=p===0?u[0]??s.initialPageParam:M0(s,d);if(p>0&&T==null)break;d=await k(d,T),p++}while(p<P)}return d};t.options.persister?t.fetchFn=()=>{var b,E;return(E=(b=t.options).persister)==null?void 0:E.call(b,f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=f}}}function M0(e,{pages:t,pageParams:r}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,r[s],r):void 0}function nj(e,{pages:t,pageParams:r}){var s;return t.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,t[0],t,r[0],r):void 0}var sl,mr,tn,Cs,gr,Eo,hb,rj=(hb=class extends KS{constructor(t){super();Oe(this,gr);Oe(this,sl);Oe(this,mr);Oe(this,tn);Oe(this,Cs);be(this,sl,t.client),this.mutationId=t.mutationId,be(this,tn,t.mutationCache),be(this,mr,[]),this.state=t.state||YS(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){I(this,mr).includes(t)||(I(this,mr).push(t),this.clearGcTimeout(),I(this,tn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){be(this,mr,I(this,mr).filter(r=>r!==t)),this.scheduleGc(),I(this,tn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){I(this,mr).length||(this.state.status==="pending"?this.scheduleGc():I(this,tn).remove(this))}continue(){var t;return((t=I(this,Cs))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var u,d,p,f,m,g,w,S,x,b,E,R,k,P,T,j,O,L,M,Q;const r=()=>{We(this,gr,Eo).call(this,{type:"continue"})},s={client:I(this,sl),meta:this.options.meta,mutationKey:this.options.mutationKey};be(this,Cs,qS({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(q,te)=>{We(this,gr,Eo).call(this,{type:"failed",failureCount:q,error:te})},onPause:()=>{We(this,gr,Eo).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>I(this,tn).canRun(this)}));const i=this.state.status==="pending",l=!I(this,Cs).canStart();try{if(i)r();else{We(this,gr,Eo).call(this,{type:"pending",variables:t,isPaused:l}),await((d=(u=I(this,tn).config).onMutate)==null?void 0:d.call(u,t,this,s));const te=await((f=(p=this.options).onMutate)==null?void 0:f.call(p,t,s));te!==this.state.context&&We(this,gr,Eo).call(this,{type:"pending",context:te,variables:t,isPaused:l})}const q=await I(this,Cs).start();return await((g=(m=I(this,tn).config).onSuccess)==null?void 0:g.call(m,q,t,this.state.context,this,s)),await((S=(w=this.options).onSuccess)==null?void 0:S.call(w,q,t,this.state.context,s)),await((b=(x=I(this,tn).config).onSettled)==null?void 0:b.call(x,q,null,this.state.variables,this.state.context,this,s)),await((R=(E=this.options).onSettled)==null?void 0:R.call(E,q,null,t,this.state.context,s)),We(this,gr,Eo).call(this,{type:"success",data:q}),q}catch(q){try{throw await((P=(k=I(this,tn).config).onError)==null?void 0:P.call(k,q,t,this.state.context,this,s)),await((j=(T=this.options).onError)==null?void 0:j.call(T,q,t,this.state.context,s)),await((L=(O=I(this,tn).config).onSettled)==null?void 0:L.call(O,void 0,q,this.state.variables,this.state.context,this,s)),await((Q=(M=this.options).onSettled)==null?void 0:Q.call(M,void 0,q,t,this.state.context,s)),q}finally{We(this,gr,Eo).call(this,{type:"error",error:q})}}finally{I(this,tn).runNext(this)}}},sl=new WeakMap,mr=new WeakMap,tn=new WeakMap,Cs=new WeakMap,gr=new WeakSet,Eo=function(t){const r=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Nt.batch(()=>{I(this,mr).forEach(s=>{s.onMutationUpdate(t)}),I(this,tn).notify({mutation:this,type:"updated",action:t})})},hb);function YS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Fr,Xn,il,mb,oj=(mb=class extends Qi{constructor(t={}){super();Oe(this,Fr);Oe(this,Xn);Oe(this,il);this.config=t,be(this,Fr,new Set),be(this,Xn,new Map),be(this,il,0)}build(t,r,s){const i=new rj({client:t,mutationCache:this,mutationId:++Du(this,il)._,options:t.defaultMutationOptions(r),state:s});return this.add(i),i}add(t){I(this,Fr).add(t);const r=Bu(t);if(typeof r=="string"){const s=I(this,Xn).get(r);s?s.push(t):I(this,Xn).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(I(this,Fr).delete(t)){const r=Bu(t);if(typeof r=="string"){const s=I(this,Xn).get(r);if(s)if(s.length>1){const i=s.indexOf(t);i!==-1&&s.splice(i,1)}else s[0]===t&&I(this,Xn).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Bu(t);if(typeof r=="string"){const s=I(this,Xn).get(r),i=s==null?void 0:s.find(l=>l.state.status==="pending");return!i||i===t}else return!0}runNext(t){var s;const r=Bu(t);if(typeof r=="string"){const i=(s=I(this,Xn).get(r))==null?void 0:s.find(l=>l!==t&&l.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Nt.batch(()=>{I(this,Fr).forEach(t=>{this.notify({type:"removed",mutation:t})}),I(this,Fr).clear(),I(this,Xn).clear()})}getAll(){return Array.from(I(this,Fr))}find(t){const r={exact:!0,...t};return this.getAll().find(s=>k0(r,s))}findAll(t={}){return this.getAll().filter(r=>k0(t,r))}notify(t){Nt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Nt.batch(()=>Promise.all(t.map(r=>r.continue().catch(nn))))}},Fr=new WeakMap,Xn=new WeakMap,il=new WeakMap,mb);function Bu(e){var t;return(t=e.options.scope)==null?void 0:t.id}var zr,Oo,fn,Vr,qr,Ju,Gp,gb,sj=(gb=class extends Qi{constructor(r,s){super();Oe(this,qr);Oe(this,zr);Oe(this,Oo);Oe(this,fn);Oe(this,Vr);be(this,zr,r),this.setOptions(s),this.bindMethods(),We(this,qr,Ju).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var i;const s=this.options;this.options=I(this,zr).defaultMutationOptions(r),hc(this.options,s)||I(this,zr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:I(this,fn),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&ks(s.mutationKey)!==ks(this.options.mutationKey)?this.reset():((i=I(this,fn))==null?void 0:i.state.status)==="pending"&&I(this,fn).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=I(this,fn))==null||r.removeObserver(this)}onMutationUpdate(r){We(this,qr,Ju).call(this),We(this,qr,Gp).call(this,r)}getCurrentResult(){return I(this,Oo)}reset(){var r;(r=I(this,fn))==null||r.removeObserver(this),be(this,fn,void 0),We(this,qr,Ju).call(this),We(this,qr,Gp).call(this)}mutate(r,s){var i;return be(this,Vr,s),(i=I(this,fn))==null||i.removeObserver(this),be(this,fn,I(this,zr).getMutationCache().build(I(this,zr),this.options)),I(this,fn).addObserver(this),I(this,fn).execute(r)}},zr=new WeakMap,Oo=new WeakMap,fn=new WeakMap,Vr=new WeakMap,qr=new WeakSet,Ju=function(){var s;const r=((s=I(this,fn))==null?void 0:s.state)??YS();be(this,Oo,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Gp=function(r){Nt.batch(()=>{var s,i,l,u,d,p,f,m;if(I(this,Vr)&&this.hasListeners()){const g=I(this,Oo).variables,w=I(this,Oo).context,S={client:I(this,zr),meta:this.options.meta,mutationKey:this.options.mutationKey};(r==null?void 0:r.type)==="success"?((i=(s=I(this,Vr)).onSuccess)==null||i.call(s,r.data,g,w,S),(u=(l=I(this,Vr)).onSettled)==null||u.call(l,r.data,null,g,w,S)):(r==null?void 0:r.type)==="error"&&((p=(d=I(this,Vr)).onError)==null||p.call(d,r.error,g,w,S),(m=(f=I(this,Vr)).onSettled)==null||m.call(f,void 0,r.error,g,w,S))}this.listeners.forEach(g=>{g(I(this,Oo))})})},gb),vr,vb,ij=(vb=class extends Qi{constructor(t={}){super();Oe(this,vr);this.config=t,be(this,vr,new Map)}build(t,r,s){const i=r.queryKey,l=r.queryHash??_m(i,r);let u=this.get(l);return u||(u=new J2({client:t,queryKey:i,queryHash:l,options:t.defaultQueryOptions(r),state:s,defaultOptions:t.getQueryDefaults(i)}),this.add(u)),u}add(t){I(this,vr).has(t.queryHash)||(I(this,vr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=I(this,vr).get(t.queryHash);r&&(t.destroy(),r===t&&I(this,vr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Nt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return I(this,vr).get(t)}getAll(){return[...I(this,vr).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(s=>P0(r,s))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(s=>P0(t,s)):r}notify(t){Nt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Nt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Nt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},vr=new WeakMap,vb),vt,Ao,Do,ki,Ti,Io,Ni,ji,yb,aj=(yb=class{constructor(e={}){Oe(this,vt);Oe(this,Ao);Oe(this,Do);Oe(this,ki);Oe(this,Ti);Oe(this,Io);Oe(this,Ni);Oe(this,ji);be(this,vt,e.queryCache||new ij),be(this,Ao,e.mutationCache||new oj),be(this,Do,e.defaultOptions||{}),be(this,ki,new Map),be(this,Ti,new Map),be(this,Io,0)}mount(){Du(this,Io)._++,I(this,Io)===1&&(be(this,Ni,km.subscribe(async e=>{e&&(await this.resumePausedMutations(),I(this,vt).onFocus())})),be(this,ji,mc.subscribe(async e=>{e&&(await this.resumePausedMutations(),I(this,vt).onOnline())})))}unmount(){var e,t;Du(this,Io)._--,I(this,Io)===0&&((e=I(this,Ni))==null||e.call(this),be(this,Ni,void 0),(t=I(this,ji))==null||t.call(this),be(this,ji,void 0))}isFetching(e){return I(this,vt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return I(this,Ao).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=I(this,vt).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=I(this,vt).build(this,t),s=r.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Mo(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return I(this,vt).findAll(e).map(({queryKey:t,state:r})=>{const s=r.data;return[t,s]})}setQueryData(e,t,r){const s=this.defaultQueryOptions({queryKey:e}),i=I(this,vt).get(s.queryHash),l=i==null?void 0:i.state.data,u=B2(t,l);if(u!==void 0)return I(this,vt).build(this,s).setData(u,{...r,manual:!0})}setQueriesData(e,t,r){return Nt.batch(()=>I(this,vt).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=I(this,vt).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=I(this,vt);Nt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=I(this,vt);return Nt.batch(()=>(r.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},s=Nt.batch(()=>I(this,vt).findAll(e).map(i=>i.cancel(r)));return Promise.all(s).then(nn).catch(nn)}invalidateQueries(e,t={}){return Nt.batch(()=>(I(this,vt).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},s=Nt.batch(()=>I(this,vt).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let l=i.fetch(void 0,r);return r.throwOnError||(l=l.catch(nn)),i.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(s).then(nn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=I(this,vt).build(this,t);return r.isStaleByTime(Mo(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(nn).catch(nn)}fetchInfiniteQuery(e){return e.behavior=I0(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(nn).catch(nn)}ensureInfiniteQueryData(e){return e.behavior=I0(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return mc.isOnline()?I(this,Ao).resumePausedMutations():Promise.resolve()}getQueryCache(){return I(this,vt)}getMutationCache(){return I(this,Ao)}getDefaultOptions(){return I(this,Do)}setDefaultOptions(e){be(this,Do,e)}setQueryDefaults(e,t){I(this,ki).set(ks(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...I(this,ki).values()],r={};return t.forEach(s=>{tl(e,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(e,t){I(this,Ti).set(ks(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...I(this,Ti).values()],r={};return t.forEach(s=>{tl(e,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...I(this,Do).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=_m(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Pm&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...I(this,Do).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){I(this,vt).clear(),I(this,Ao).clear()}},vt=new WeakMap,Ao=new WeakMap,Do=new WeakMap,ki=new WeakMap,Ti=new WeakMap,Io=new WeakMap,Ni=new WeakMap,ji=new WeakMap,yb),JS=C.createContext(void 0),ZS=e=>{const t=C.useContext(JS);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},lj=({client:e,children:t})=>(C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(JS.Provider,{value:e,children:t})),ex=C.createContext(!1),uj=()=>C.useContext(ex);ex.Provider;function cj(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var dj=C.createContext(cj()),fj=()=>C.useContext(dj),pj=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},hj=e=>{C.useEffect(()=>{e.clearReset()},[e])},mj=({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(i&&e.data===void 0||WS(r,[e.error,s])),gj=e=>{if(e.suspense){const r=i=>i==="static"?i:Math.max(i??1e3,1e3),s=e.staleTime;e.staleTime=typeof s=="function"?(...i)=>r(s(...i)):r(s),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},vj=(e,t)=>e.isLoading&&e.isFetching&&!t,yj=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,$0=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function bj(e,t,r){var g,w,S,x,b;const s=uj(),i=fj(),l=ZS(),u=l.defaultQueryOptions(e);(w=(g=l.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||w.call(g,u),u._optimisticResults=s?"isRestoring":"optimistic",gj(u),pj(u,i),hj(i);const d=!l.getQueryCache().get(u.queryHash),[p]=C.useState(()=>new t(l,u)),f=p.getOptimisticResult(u),m=!s&&e.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(E=>{const R=m?p.subscribe(Nt.batchCalls(E)):nn;return p.updateResult(),R},[p,m]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),C.useEffect(()=>{p.setOptions(u)},[u,p]),yj(u,f))throw $0(u,p,i);if(mj({result:f,errorResetBoundary:i,throwOnError:u.throwOnError,query:l.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw f.error;if((x=(S=l.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||x.call(S,u,f),u.experimental_prefetchInRender&&!Ps&&vj(f,s)){const E=d?$0(u,p,i):(b=l.getQueryCache().get(u.queryHash))==null?void 0:b.promise;E==null||E.catch(nn).finally(()=>{p.updateResult()})}return u.notifyOnChangeProps?f:p.trackResult(f)}function wj(e,t){return bj(e,Z2)}function rp(e,t){const r=ZS(),[s]=C.useState(()=>new sj(r,e));C.useEffect(()=>{s.setOptions(e)},[s,e]);const i=C.useSyncExternalStore(C.useCallback(u=>s.subscribe(Nt.batchCalls(u)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),l=C.useCallback((u,d)=>{s.mutate(u,d).catch(nn)},[s]);if(i.error&&WS(s.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:l,mutateAsync:i.mutate}}/**
91
+ `),l=!1),Object.assign(Object.assign({},e),{allowNegative:l})}function gN(e){e=mN(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,r=e.allowNegative,s=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=_o);var l=e.onBlur;l===void 0&&(l=_o);var u=e.thousandSeparator,d=e.decimalScale,p=e.fixedDecimalScale,f=e.prefix;f===void 0&&(f="");var m=e.defaultValue,g=e.value,w=e.valueIsNumericString,S=e.onValueChange,x=vS(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),b=$c(e),E=b.decimalSeparator,R=b.allowedDecimalSeparators,P=function(B){return w0(B,e)},k=function(B,U){return pN(B,U,e)},T=bi(g)?m:g,j=w??fN(T,f,t);bi(g)?bi(m)||(j=j||typeof m=="number"):j=j||typeof g=="number";var O=function(B){return yS(B)?B:(typeof B=="number"&&(B=SS(B)),j&&typeof d=="number"?y0(B,d,!!p):B)},L=CS(O(g),O(m),!!j,P,k,S),M=L[0],Q=M.numAsString,q=M.formattedValue,te=L[1],ee=function(B){var U=B.target,A=B.key,V=U.selectionStart,W=U.selectionEnd,N=U.value;if(N===void 0&&(N=""),(A==="Backspace"||A==="Delete")&&W<f.length){B.preventDefault();return}if(V!==W){i(B);return}A==="Backspace"&&N[0]==="-"&&V===f.length+1&&r&&as(U,1),d&&p&&(A==="Backspace"&&N[V-1]===E?(as(U,V-1),B.preventDefault()):A==="Delete"&&N[V]===E&&B.preventDefault()),R!=null&&R.includes(A)&&N[V]===E&&as(U,V+1);var F=u===!0?",":u;A==="Backspace"&&N[V-1]===F&&as(U,V-1),A==="Delete"&&N[V]===F&&as(U,V+1),i(B)},ne=function(B){var U=Q;if(U.match(/\d/g)||(U=""),s||(U=ZT(U)),p&&d&&(U=y0(U,d,p)),U!==Q){var A=w0(U,e);te({formattedValue:A,value:U,floatValue:parseFloat(U)},{event:B,source:Ja.event})}l(B)},G=function(B){return B===E?!0:Za(B)},Z=function(B){var U=B.currentValue,A=B.lastValue,V=B.formattedValue,W=B.currentValueIndex,N=B.formattedValueIndex,F=U[W],le=V[N],ye=xS(A,U),X=ye.to,re=function(ve){return k(ve).indexOf(".")+f.length};return g===0&&p&&d&&U[X.start]===E&&re(U)<W&&re(V)>N?!1:W>=X.start&&W<X.end&&R&&R.includes(F)&&le===E?!0:F===le};return Object.assign(Object.assign({},x),{value:q,valueIsNumericString:!1,isValidInputCharacter:G,isCharacterSame:Z,onValueChange:te,format:P,removeFormatting:k,getCaretBoundary:function(B){return hN(B,e)},onKeyDown:ee,onBlur:ne})}function vN(e){var t=gN(e);return St.createElement(uN,Object.assign({},t))}function S0({direction:e,style:t,...r}){return y.jsx("svg",{style:{width:"var(--ni-chevron-size)",height:"var(--ni-chevron-size)",transform:e==="up"?"rotate(180deg)":void 0,...t},viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:y.jsx("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:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}var Pp={root:"m_e2f5cd4e",controls:"m_95e17d22",control:"m_80b4b171"};const yN=/^(0\.0*|-0(\.0*)?)$/,bN=/^-?0\d+(\.\d+)?\.?$/;function Tp(e){return typeof e=="string"&&e!==""&&!Number.isNaN(Number(e))}function np(e){return typeof e=="number"?e<Number.MAX_SAFE_INTEGER:e===""||Tp(e)&&Number(e)<Number.MAX_SAFE_INTEGER}function wN(e){return e.toString().replace(".","").length}function SN(e,t){return(typeof e=="number"?e<Number.MAX_SAFE_INTEGER:!Number.isNaN(Number(e)))&&!Number.isNaN(e)&&wN(t)<14&&t!==""}function x0(e,t,r){if(e===void 0)return!0;const s=t===void 0||e>=t,i=r===void 0||e<=r;return s&&i}const xN={step:1,clampBehavior:"blur",allowDecimal:!0,allowNegative:!0,withKeyboardEvents:!0,allowLeadingZeros:!0,trimLeadingZeroesOnBlur:!0,startValue:0},CN=(e,{size:t})=>({controls:{"--ni-chevron-size":Ke(t,"ni-chevron-size")}});function EN(e,t,r){const s=e.toString().replace(/^0+/,""),i=parseFloat(s);return Number.isNaN(i)?s:i>Number.MAX_SAFE_INTEGER?t!==void 0?String(t):s:Wr(i,r,t)}const Dn=Re((e,t)=>{const r=me("NumberInput",xN,e),{className:s,classNames:i,styles:l,unstyled:u,vars:d,onChange:p,onValueChange:f,value:m,defaultValue:g,max:w,min:S,step:x,hideControls:b,rightSection:E,isAllowed:R,clampBehavior:P,onBlur:k,allowDecimal:T,decimalScale:j,onKeyDown:O,onKeyDownCapture:L,handlersRef:M,startValue:Q,disabled:q,rightSectionPointerEvents:te,allowNegative:ee,readOnly:ne,size:G,rightSectionWidth:Z,stepHoldInterval:B,stepHoldDelay:U,allowLeadingZeros:A,withKeyboardEvents:V,trimLeadingZeroesOnBlur:W,...N}=r,F=Ie({name:"NumberInput",classes:Pp,props:r,classNames:i,styles:l,unstyled:u,vars:d,varsResolver:CN}),{resolvedClassNames:le,resolvedStyles:ye}=dl({classNames:i,styles:l,props:r}),[X,re]=$n({value:m,defaultValue:g,finalValue:"",onChange:p}),ve=U!==void 0&&B!==void 0,fe=C.useRef(null),we=C.useRef(null),je=C.useRef(0),Ue=(ce,oe)=>{oe.source==="event"&&re(SN(ce.floatValue,ce.value)&&!yN.test(ce.value)&&!(A&&bN.test(ce.value))?ce.floatValue:ce.value),f==null||f(ce,oe)},Ze=ce=>{const oe=String(ce).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return oe?Math.max(0,(oe[1]?oe[1].length:0)-(oe[2]?+oe[2]:0)):0},et=ce=>{fe.current&&typeof ce<"u"&&fe.current.setSelectionRange(ce,ce)},ft=C.useRef(nc);ft.current=()=>{if(!np(X))return;let ce;const oe=Ze(X),Se=Ze(x),Je=Math.max(oe,Se),Ne=10**Je;if(!Tp(X)&&(typeof X!="number"||Number.isNaN(X)))ce=Wr(Q,S,w);else if(w!==void 0){const Ge=(Math.round(Number(X)*Ne)+Math.round(x*Ne))/Ne;ce=Ge<=w?Ge:w}else ce=(Math.round(Number(X)*Ne)+Math.round(x*Ne))/Ne;const Be=ce.toFixed(Je);re(parseFloat(Be)),f==null||f({floatValue:parseFloat(Be),formattedValue:Be,value:Be},{source:"increment"}),setTimeout(()=>{var Ge;return et((Ge=fe.current)==null?void 0:Ge.value.length)},0)};const He=C.useRef(nc);He.current=()=>{if(!np(X))return;let ce;const oe=S!==void 0?S:ee?Number.MIN_SAFE_INTEGER:0,Se=Ze(X),Je=Ze(x),Ne=Math.max(Se,Je),Be=10**Ne;if(!Tp(X)&&typeof X!="number"||Number.isNaN(X))ce=Wr(Q,oe,w);else{const qe=(Math.round(Number(X)*Be)-Math.round(x*Be))/Be;ce=oe!==void 0&&qe<oe?oe:qe}const Ge=ce.toFixed(Ne);re(parseFloat(Ge)),f==null||f({floatValue:parseFloat(Ge),formattedValue:Ge,value:Ge},{source:"decrement"}),setTimeout(()=>{var qe;return et((qe=fe.current)==null?void 0:qe.value.length)},0)};const Rt=ce=>{O==null||O(ce),!(ne||!V)&&(ce.key==="ArrowUp"&&(ce.preventDefault(),ft.current()),ce.key==="ArrowDown"&&(ce.preventDefault(),He.current()))},ue=ce=>{if(L==null||L(ce),ce.key==="Backspace"){const oe=fe.current;oe.selectionStart===0&&oe.selectionStart===oe.selectionEnd&&(ce.preventDefault(),window.setTimeout(()=>et(0),0))}},pe=ce=>{let oe=X;P==="blur"&&typeof oe=="number"&&(oe=Wr(oe,S,w)),W&&typeof oe=="string"&&Ze(oe)<15&&(oe=EN(oe,w,S)),X!==oe&&re(oe),k==null||k(ce)};rc(M,{increment:ft.current,decrement:He.current});const Ce=ce=>{ce?ft.current():He.current(),je.current+=1},Pe=ce=>{if(Ce(ce),ve){const oe=typeof B=="number"?B:B(je.current);we.current=window.setTimeout(()=>Pe(ce),oe)}},Me=(ce,oe)=>{var Se;ce.preventDefault(),(Se=fe.current)==null||Se.focus(),Ce(oe),ve&&(we.current=window.setTimeout(()=>Pe(oe),U))},Fe=()=>{we.current&&window.clearTimeout(we.current),we.current=null,je.current=0},ze=y.jsxs("div",{...F("controls"),children:[y.jsx(Fo,{...F("control"),tabIndex:-1,"aria-hidden":!0,disabled:q||typeof X=="number"&&w!==void 0&&X>=w,mod:{direction:"up"},onMouseDown:ce=>ce.preventDefault(),onPointerDown:ce=>{Me(ce,!0)},onPointerUp:Fe,onPointerLeave:Fe,children:y.jsx(S0,{direction:"up"})}),y.jsx(Fo,{...F("control"),tabIndex:-1,"aria-hidden":!0,disabled:q||typeof X=="number"&&S!==void 0&&X<=S,mod:{direction:"down"},onMouseDown:ce=>ce.preventDefault(),onPointerDown:ce=>{Me(ce,!1)},onPointerUp:Fe,onPointerLeave:Fe,children:y.jsx(S0,{direction:"down"})})]});return y.jsx(Cr,{component:vN,allowNegative:ee,className:En(Pp.root,s),size:G,...N,readOnly:ne,disabled:q,value:X,getInputRef:$t(t,fe),onValueChange:Ue,rightSection:b||ne||!np(X)?E:E||ze,classNames:le,styles:ye,unstyled:u,__staticSelector:"NumberInput",decimalScale:T?j:0,onKeyDown:Rt,onKeyDownCapture:ue,rightSectionPointerEvents:te??(q?"none":void 0),rightSectionWidth:Z??`var(--ni-right-section-width-${G||"sm"})`,allowLeadingZeros:A,onBlur:pe,isAllowed:ce=>P==="strict"?R?R(ce)&&x0(ce.floatValue,S,w):x0(ce.floatValue,S,w):R?R(ce):!0})});Dn.classes={...Cr.classes,...Pp};Dn.displayName="@mantine/core/NumberInput";const RN={duration:100,transition:"fade"};function _N(e,t){return{...RN,...t,...e}}function kN({offset:e,position:t,defaultOpened:r}){const[s,i]=C.useState(r),l=C.useRef(null),{x:u,y:d,elements:p,refs:f,update:m,placement:g}=kh({placement:t,middleware:[Ch({crossAxis:!0,padding:5,rootBoundary:"document"})]}),w=g.includes("right")?e:t.includes("left")?e*-1:0,S=g.includes("bottom")?e:t.includes("top")?e*-1:0,x=C.useCallback(({clientX:b,clientY:E})=>{f.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:b,y:E,left:b+w,top:E+S,right:b,bottom:E}}})},[p.reference]);return C.useEffect(()=>{if(f.floating.current){const b=l.current;b.addEventListener("mousemove",x);const E=Qr(f.floating.current);return E.forEach(R=>{R.addEventListener("scroll",m)}),()=>{b.removeEventListener("mousemove",x),E.forEach(R=>{R.removeEventListener("scroll",m)})}}},[p.reference,f.floating.current,m,x,s]),{handleMouseMove:x,x:u,y:d,opened:s,setOpened:i,boundaryRef:l,floating:f.setFloating}}var Lc={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const PN={refProp:"ref",withinPortal:!0,offset:10,defaultOpened:!1,position:"right",zIndex:$i("popover")},TN=(e,{radius:t,color:r})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:Ct(t),"--tooltip-bg":r?It(r,e):void 0,"--tooltip-color":r?"var(--mantine-color-white)":void 0}}),fm=Re((e,t)=>{const r=me("TooltipFloating",PN,e),{children:s,refProp:i,withinPortal:l,style:u,className:d,classNames:p,styles:f,unstyled:m,radius:g,color:w,label:S,offset:x,position:b,multiline:E,zIndex:R,disabled:P,defaultOpened:k,variant:T,vars:j,portalProps:O,...L}=r,M=rn(),Q=Ie({name:"TooltipFloating",props:r,classes:Lc,className:d,style:u,classNames:p,styles:f,unstyled:m,rootSelector:"tooltip",vars:j,varsResolver:TN}),{handleMouseMove:q,x:te,y:ee,opened:ne,boundaryRef:G,floating:Z,setOpened:B}=kN({offset:x,position:b,defaultOpened:k});if(!Ns(s))throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const U=$t(G,wc(s),t),A=s.props,V=N=>{var F;(F=A.onMouseEnter)==null||F.call(A,N),q(N),B(!0)},W=N=>{var F;(F=A.onMouseLeave)==null||F.call(A,N),B(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(zi,{...O,withinPortal:l,children:y.jsx(he,{...L,...Q("tooltip",{style:{...mh(u,M),zIndex:R,display:!P&&ne?"block":"none",top:(ee&&Math.round(ee))??"",left:(te&&Math.round(te))??""}}),variant:T,ref:Z,mod:{multiline:E},children:S})}),C.cloneElement(s,{...A,[i]:U,onMouseEnter:V,onMouseLeave:W})]})});fm.classes=Lc;fm.displayName="@mantine/core/TooltipFloating";const ES=C.createContext(!1),NN=ES.Provider,jN=()=>C.useContext(ES),ON={openDelay:0,closeDelay:0};function pm(e){const{openDelay:t,closeDelay:r,children:s}=me("TooltipGroup",ON,e);return y.jsx(NN,{value:!0,children:y.jsx(Sk,{delay:{open:t,close:r},children:s})})}pm.displayName="@mantine/core/TooltipGroup";pm.extend=e=>e;function AN(e){if(e===void 0)return{shift:!0,flip:!0};const t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function DN(e){const t=AN(e.middlewares),r=[uw(e.offset)];return t.shift&&r.push(Ch(typeof t.shift=="boolean"?{padding:8}:{padding:8,...t.shift})),t.flip&&r.push(typeof t.flip=="boolean"?lc():lc(t.flip)),r.push(cw({element:e.arrowRef,padding:e.arrowOffset})),t.inline?r.push(typeof t.inline=="boolean"?Ha():Ha(t.inline)):e.inline&&r.push(Ha()),r}function IN(e){var O,L,M;const[t,r]=C.useState(e.defaultOpened),i=typeof e.opened=="boolean"?e.opened:t,l=jN(),u=Jr(),d=C.useCallback(Q=>{r(Q),Q&&P(u)},[u]),{x:p,y:f,context:m,refs:g,update:w,placement:S,middlewareData:{arrow:{x,y:b}={}}}=kh({strategy:e.strategy,placement:e.position,open:i,onOpenChange:d,middleware:DN(e)}),{delay:E,currentId:R,setCurrentId:P}=xk(m,{id:u}),{getReferenceProps:k,getFloatingProps:T}=Tk([bk(m,{enabled:(O=e.events)==null?void 0:O.hover,delay:l?E:{open:e.openDelay,close:e.closeDelay},mouseOnly:!((L=e.events)!=null&&L.touch)}),Pk(m,{enabled:(M=e.events)==null?void 0:M.focus,visibleOnly:!0}),jk(m,{role:"tooltip"}),_k(m,{enabled:typeof e.opened>"u"})]);Mw({opened:i,position:e.position,positionDependencies:e.positionDependencies,floating:{refs:g,update:w}}),Kr(()=>{var Q;(Q=e.onPositionChange)==null||Q.call(e,S)},[S]);const j=i&&R&&R!==u;return{x:p,y:f,arrowX:x,arrowY:b,reference:g.setReference,floating:g.setFloating,getFloatingProps:T,getReferenceProps:k,isGroupPhase:j,opened:i,placement:S}}const C0={position:"top",refProp:"ref",withinPortal:!0,inline:!1,defaultOpened:!1,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:$i("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},MN=(e,{radius:t,color:r})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:Ct(t),"--tooltip-bg":r?It(r,e):void 0,"--tooltip-color":r?"var(--mantine-color-white)":void 0}}),As=Re((e,t)=>{const r=me("Tooltip",C0,e),{children:s,position:i,refProp:l,label:u,openDelay:d,closeDelay:p,onPositionChange:f,opened:m,defaultOpened:g,withinPortal:w,radius:S,color:x,classNames:b,styles:E,unstyled:R,style:P,className:k,withArrow:T,arrowSize:j,arrowOffset:O,arrowRadius:L,arrowPosition:M,offset:Q,transitionProps:q,multiline:te,events:ee,zIndex:ne,disabled:G,positionDependencies:Z,onClick:B,onMouseEnter:U,onMouseLeave:A,inline:V,variant:W,keepMounted:N,vars:F,portalProps:le,mod:ye,floatingStrategy:X,middlewares:re,...ve}=me("Tooltip",C0,r),{dir:fe}=js(),we=C.useRef(null),je=IN({position:Tw(fe,i),closeDelay:p,openDelay:d,onPositionChange:f,opened:m,defaultOpened:g,events:ee,arrowRef:we,arrowOffset:O,offset:typeof Q=="number"?Q+(T?j/2:0):Q,positionDependencies:[...Z,s],inline:V,strategy:X,middlewares:re}),Ue=Ie({name:"Tooltip",props:r,classes:Lc,className:k,style:P,classNames:b,styles:E,unstyled:R,rootSelector:"tooltip",vars:F,varsResolver:MN});if(!Ns(s))throw new Error("[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const Ze=$t(je.reference,wc(s),t),et=_N(q,{duration:100,transition:"fade"}),ft=s.props;return y.jsxs(y.Fragment,{children:[y.jsx(zi,{...le,withinPortal:w,children:y.jsx(Vo,{...et,keepMounted:N,mounted:!G&&!!je.opened,duration:je.isGroupPhase?10:et.duration,children:He=>y.jsxs(he,{...ve,"data-fixed":X==="fixed"||void 0,variant:W,mod:[{multiline:te},ye],...je.getFloatingProps({ref:je.floating,className:Ue("tooltip").className,style:{...Ue("tooltip").style,...He,zIndex:ne,top:je.y??0,left:je.x??0}}),children:[u,y.jsx(Oh,{ref:we,arrowX:je.arrowX,arrowY:je.arrowY,visible:T,position:je.placement,arrowSize:j,arrowOffset:O,arrowRadius:L,arrowPosition:M,...Ue("arrow")})]})})}),C.cloneElement(s,je.getReferenceProps({onClick:B,onMouseEnter:U,onMouseLeave:A,onMouseMove:r.onMouseMove,onPointerDown:r.onPointerDown,onPointerEnter:r.onPointerEnter,className:En(k,ft.className),...ft,[l]:Ze}))]})});As.classes=Lc;As.displayName="@mantine/core/Tooltip";As.Floating=fm;As.Group=pm;const $N={searchable:!1,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},Fc=Re((e,t)=>{const r=me("Select",$N,e),{classNames:s,styles:i,unstyled:l,vars:u,dropdownOpened:d,defaultDropdownOpened:p,onDropdownClose:f,onDropdownOpen:m,onFocus:g,onBlur:w,onClick:S,onChange:x,data:b,value:E,defaultValue:R,selectFirstOptionOnChange:P,onOptionSubmit:k,comboboxProps:T,readOnly:j,disabled:O,filter:L,limit:M,withScrollArea:Q,maxDropdownHeight:q,size:te,searchable:ee,rightSection:ne,checkIconPosition:G,withCheckIcon:Z,nothingFoundMessage:B,name:U,form:A,searchValue:V,defaultSearchValue:W,onSearchChange:N,allowDeselect:F,error:le,rightSectionPointerEvents:ye,id:X,clearable:re,clearButtonProps:ve,hiddenInputProps:fe,renderOption:we,onClear:je,autoComplete:Ue,scrollAreaProps:Ze,__defaultRightSection:et,__clearSection:ft,__clearable:He,chevronColor:Rt,...ue}=r,pe=C.useMemo(()=>Gw(b),[b]),Ce=C.useMemo(()=>Fh(pe),[pe]),Pe=Jr(X),[Me,Fe,ze]=$n({value:E,defaultValue:R,finalValue:null,onChange:x}),ce=typeof Me=="string"?Ce[Me]:void 0,oe=ME(ce),[Se,Je,Ne]=$n({value:V,defaultValue:W,finalValue:ce?ce.label:"",onChange:N}),Be=Xh({opened:d,defaultOpened:p,onDropdownOpen:()=>{m==null||m(),Be.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{f==null||f(),Be.resetSelectedOption()}}),Ge=st=>{Je(st),Be.resetSelectedOption()},{resolvedClassNames:qe,resolvedStyles:Rr}=dl({props:r,styles:i,classNames:s});C.useEffect(()=>{P&&Be.selectFirstOption()},[P,Se]),C.useEffect(()=>{E===null&&Ge(""),typeof E=="string"&&ce&&((oe==null?void 0:oe.value)!==ce.value||(oe==null?void 0:oe.label)!==ce.label)&&Ge(ce.label)},[E,ce]),C.useEffect(()=>{var st;!ze&&!Ne&&Ge(typeof Me=="string"&&((st=Ce[Me])==null?void 0:st.label)||"")},[b,Me]);const _r=y.jsx(Ye.ClearButton,{...ve,onClear:()=>{Fe(null,null),Ge(""),je==null||je()}}),kr=re&&!!Me&&!O&&!j;return y.jsxs(y.Fragment,{children:[y.jsxs(Ye,{store:Be,__staticSelector:"Select",classNames:qe,styles:Rr,unstyled:l,readOnly:j,onOptionSubmit:st=>{k==null||k(st);const Lt=F&&Ce[st].value===Me?null:Ce[st],Pr=Lt?Lt.value:null;Pr!==Me&&Fe(Pr,Lt),!ze&&Ge(typeof Pr=="string"&&(Lt==null?void 0:Lt.label)||""),Be.closeDropdown()},size:te,...T,children:[y.jsx(Ye.Target,{targetType:ee?"input":"button",autoComplete:Ue,children:y.jsx(Cr,{id:Pe,ref:t,__defaultRightSection:y.jsx(Ye.Chevron,{size:te,error:le,unstyled:l,color:Rt}),__clearSection:_r,__clearable:kr,rightSection:ne,rightSectionPointerEvents:ye||(kr?"all":"none"),...ue,size:te,__staticSelector:"Select",disabled:O,readOnly:j||!ee,value:Se,onChange:st=>{Ge(st.currentTarget.value),Be.openDropdown(),P&&Be.selectFirstOption()},onFocus:st=>{ee&&Be.openDropdown(),g==null||g(st)},onBlur:st=>{var Lt;ee&&Be.closeDropdown(),Ge(Me!=null&&((Lt=Ce[Me])==null?void 0:Lt.label)||""),w==null||w(st)},onClick:st=>{ee?Be.openDropdown():Be.toggleDropdown(),S==null||S(st)},classNames:qe,styles:Rr,unstyled:l,pointer:!ee,error:le})}),y.jsx(iS,{data:pe,hidden:j||O,filter:L,search:Se,limit:M,hiddenWhenEmpty:!B,withScrollArea:Q,maxDropdownHeight:q,filterOptions:ee&&(ce==null?void 0:ce.label)!==Se,value:Me,checkIconPosition:G,withCheckIcon:Z,nothingFoundMessage:B,unstyled:l,labelId:ue.label?`${Pe}-label`:void 0,"aria-label":ue.label?void 0:ue["aria-label"],renderOption:we,scrollAreaProps:Ze})]}),y.jsx(Ye.HiddenInput,{value:Me,name:U,form:A,disabled:O,...fe})]})});Fc.classes={...Cr.classes,...Ye.classes};Fc.displayName="@mantine/core/Select";const[RS,zc]=Yr("SliderProvider was not found in tree"),hm=C.forwardRef(({size:e,disabled:t,variant:r,color:s,thumbSize:i,radius:l,...u},d)=>{const{getStyles:p}=zc();return y.jsx(he,{tabIndex:-1,variant:r,size:e,ref:d,...p("root"),...u})});hm.displayName="@mantine/core/SliderRoot";const dc=C.forwardRef(({max:e,min:t,value:r,position:s,label:i,dragging:l,onMouseDown:u,onKeyDownCapture:d,labelTransitionProps:p,labelAlwaysOn:f,thumbLabel:m,onFocus:g,onBlur:w,showLabelOnHover:S,isHovered:x,children:b=null,disabled:E},R)=>{const{getStyles:P}=zc(),[k,T]=C.useState(!1),j=f||l||k||S&&x;return y.jsxs(he,{tabIndex:0,role:"slider","aria-label":m,"aria-valuemax":e,"aria-valuemin":t,"aria-valuenow":r,ref:R,__vars:{"--slider-thumb-offset":`${s}%`},...P("thumb",{focusable:!0}),mod:{dragging:l,disabled:E},onFocus:O=>{T(!0),typeof g=="function"&&g(O)},onBlur:O=>{T(!1),typeof w=="function"&&w(O)},onTouchStart:u,onMouseDown:u,onKeyDownCapture:d,onClick:O=>O.stopPropagation(),children:[b,y.jsx(Vo,{mounted:i!=null&&!!j,transition:"fade",duration:0,...p,children:O=>y.jsx("div",{...P("label",{style:O}),children:i})})]})});dc.displayName="@mantine/core/SliderThumb";function fc({value:e,min:t,max:r}){const s=(e-t)/(r-t)*100;return Math.min(Math.max(s,0),100)}function LN({mark:e,offset:t,value:r,inverted:s=!1}){return s?typeof t=="number"&&e.value<=t||e.value>=r:typeof t=="number"?e.value>=t&&e.value<=r:e.value<=r}function _S({marks:e,min:t,max:r,disabled:s,value:i,offset:l,inverted:u}){const{getStyles:d}=zc();if(!e)return null;const p=e.map((f,m)=>C.createElement(he,{...d("markWrapper"),__vars:{"--mark-offset":`${fc({value:f.value,min:t,max:r})}%`},key:m},y.jsx(he,{...d("mark"),mod:{filled:LN({mark:f,value:i,offset:l,inverted:u}),disabled:s}}),f.label&&y.jsx("div",{...d("markLabel"),children:f.label})));return y.jsx("div",{children:p})}_S.displayName="@mantine/core/SliderMarks";function mm({filled:e,children:t,offset:r,disabled:s,marksOffset:i,inverted:l,containerProps:u,...d}){const{getStyles:p}=zc();return y.jsx(he,{...p("trackContainer"),mod:{disabled:s},...u,children:y.jsxs(he,{...p("track"),mod:{inverted:l,disabled:s},children:[y.jsx(he,{mod:{inverted:l,disabled:s},__vars:{"--slider-bar-width":`calc(${e}% + var(--slider-size))`,"--slider-bar-offset":`calc(${r}% - var(--slider-size))`},...p("bar")}),t,y.jsx(_S,{...d,offset:i,disabled:s,inverted:l})]})})}mm.displayName="@mantine/core/SliderTrack";function Np({value:e,containerWidth:t,min:r,max:s,step:i,precision:l}){const d=(t?Math.min(Math.max(e,0),t)/t:e)*(s-r),p=(d!==0?Math.round(d/i)*i:0)+r,f=Math.max(p,r);return l!==void 0?Number(f.toFixed(l)):f}function An(e,t){return parseFloat(e.toFixed(t))}function kS(e){if(!e)return 0;const t=e.toString().split(".");return t.length>1?t[1].length:0}function cs(e,t){const s=[...t].sort((i,l)=>i.value-l.value).find(i=>i.value>e);return s?s.value:e}function ds(e,t){const s=[...t].sort((i,l)=>l.value-i.value).find(i=>i.value<e);return s?s.value:e}function jp(e){const t=[...e].sort((r,s)=>r.value-s.value);return t.length>0?t[0].value:0}function Op(e){const t=[...e].sort((r,s)=>r.value-s.value);return t.length>0?t[t.length-1].value:100}var Vc={root:"m_dd36362e",label:"m_c9357328",thumb:"m_c9a9a60a",trackContainer:"m_a8645c2",track:"m_c9ade57f",bar:"m_38aeed47",markWrapper:"m_b7b0423a",mark:"m_dd33bc19",markLabel:"m_68c77a5b"};const FN={radius:"xl",min:0,max:100,step:1,marks:[],label:e=>e,labelTransitionProps:{transition:"fade",duration:0},labelAlwaysOn:!1,thumbLabel:"",showLabelOnHover:!0,disabled:!1,scale:e=>e},zN=(e,{size:t,color:r,thumbSize:s,radius:i})=>({root:{"--slider-size":Ke(t,"slider-size"),"--slider-color":r?It(r,e):void 0,"--slider-radius":i===void 0?void 0:Ct(i),"--slider-thumb-size":s!==void 0?se(s):"calc(var(--slider-size) * 2)"}}),gm=Re((e,t)=>{const r=me("Slider",FN,e),{classNames:s,styles:i,value:l,onChange:u,onChangeEnd:d,size:p,min:f,max:m,step:g,precision:w,defaultValue:S,name:x,marks:b,label:E,labelTransitionProps:R,labelAlwaysOn:P,thumbLabel:k,showLabelOnHover:T,thumbChildren:j,disabled:O,unstyled:L,scale:M,inverted:Q,className:q,style:te,vars:ee,hiddenInputProps:ne,restrictToMarks:G,thumbProps:Z,...B}=r,U=Ie({name:"Slider",props:r,classes:Vc,classNames:s,className:q,styles:i,style:te,vars:ee,varsResolver:zN,unstyled:L}),{dir:A}=js(),[V,W]=C.useState(!1),[N,F]=$n({value:typeof l=="number"?Wr(l,f,m):l,defaultValue:typeof S=="number"?Wr(S,f,m):S,finalValue:Wr(0,f,m),onChange:u}),le=C.useRef(N),ye=C.useRef(d);C.useEffect(()=>{ye.current=d},[d]);const X=C.useRef(null),re=C.useRef(null),ve=fc({value:N,min:f,max:m}),fe=M(N),we=typeof E=="function"?E(fe):E,je=w??kS(g),Ue=C.useCallback(({x:ue})=>{if(!O){const pe=Np({value:ue,min:f,max:m,step:g,precision:je});F(G&&(b!=null&&b.length)?hp(pe,b.map(Ce=>Ce.value)):pe),le.current=pe}},[O,f,m,g,je,F,b,G]),Ze=C.useCallback(()=>{if(!O&&ye.current){const ue=G&&(b!=null&&b.length)?hp(le.current,b.map(pe=>pe.value)):le.current;ye.current(ue)}},[O,b,G]),{ref:et,active:ft}=Lb(Ue,{onScrubEnd:Ze},A),He=C.useCallback(ue=>{!O&&ye.current&&ye.current(ue)},[O]),Rt=ue=>{var pe,Ce,Pe,Me,Fe,ze;if(!O)switch(ue.key){case"ArrowUp":{if(ue.preventDefault(),(pe=re.current)==null||pe.focus(),G&&b){const oe=cs(N,b);F(oe),He(oe);break}const ce=An(Math.min(Math.max(N+g,f),m),je);F(ce),He(ce);break}case"ArrowRight":{if(ue.preventDefault(),(Ce=re.current)==null||Ce.focus(),G&&b){const oe=A==="rtl"?ds(N,b):cs(N,b);F(oe),He(oe);break}const ce=An(Math.min(Math.max(A==="rtl"?N-g:N+g,f),m),je);F(ce),He(ce);break}case"ArrowDown":{if(ue.preventDefault(),(Pe=re.current)==null||Pe.focus(),G&&b){const oe=ds(N,b);F(oe),He(oe);break}const ce=An(Math.min(Math.max(N-g,f),m),je);F(ce),He(ce);break}case"ArrowLeft":{if(ue.preventDefault(),(Me=re.current)==null||Me.focus(),G&&b){const oe=A==="rtl"?cs(N,b):ds(N,b);F(oe),He(oe);break}const ce=An(Math.min(Math.max(A==="rtl"?N+g:N-g,f),m),je);F(ce),He(ce);break}case"Home":{if(ue.preventDefault(),(Fe=re.current)==null||Fe.focus(),G&&b){F(jp(b)),He(jp(b));break}F(f),He(f);break}case"End":{if(ue.preventDefault(),(ze=re.current)==null||ze.focus(),G&&b){F(Op(b)),He(Op(b));break}F(m),He(m);break}}};return y.jsx(RS,{value:{getStyles:U},children:y.jsxs(hm,{...B,ref:$t(t,X),onKeyDownCapture:Rt,onMouseDownCapture:()=>{var ue;return(ue=X.current)==null?void 0:ue.focus()},size:p,disabled:O,children:[y.jsx(mm,{inverted:Q,offset:0,filled:ve,marks:b,min:f,max:m,value:fe,disabled:O,containerProps:{ref:et,onMouseEnter:T?()=>W(!0):void 0,onMouseLeave:T?()=>W(!1):void 0},children:y.jsx(dc,{max:m,min:f,value:fe,position:ve,dragging:ft,label:we,ref:re,labelTransitionProps:R,labelAlwaysOn:P,thumbLabel:k,showLabelOnHover:T,isHovered:V,disabled:O,...Z,children:j})}),y.jsx("input",{type:"hidden",name:x,value:fe,...ne})]})})});gm.classes=Vc;gm.displayName="@mantine/core/Slider";function VN(e){return"TouchEvent"in window&&e instanceof window.TouchEvent?e.touches[0].clientX:e.clientX}const BN=(e,{size:t,color:r,thumbSize:s,radius:i})=>({root:{"--slider-size":Ke(t,"slider-size"),"--slider-color":r?It(r,e):void 0,"--slider-radius":i===void 0?void 0:Ct(i),"--slider-thumb-size":s!==void 0?se(s):"calc(var(--slider-size) * 2)"}}),UN={min:0,max:100,minRange:10,step:1,marks:[],label:e=>e,labelTransitionProps:{transition:"fade",duration:0},labelAlwaysOn:!1,showLabelOnHover:!0,disabled:!1,scale:e=>e},vm=Re((e,t)=>{const r=me("RangeSlider",UN,e),{classNames:s,styles:i,value:l,onChange:u,onChangeEnd:d,size:p,min:f,max:m,minRange:g,maxRange:w,step:S,precision:x,defaultValue:b,name:E,marks:R,label:P,labelTransitionProps:k,labelAlwaysOn:T,thumbFromLabel:j,thumbToLabel:O,showLabelOnHover:L,thumbChildren:M,disabled:Q,unstyled:q,scale:te,inverted:ee,className:ne,style:G,vars:Z,hiddenInputProps:B,restrictToMarks:U,thumbProps:A,...V}=r,W=Ie({name:"Slider",props:r,classes:Vc,classNames:s,className:ne,styles:i,style:G,vars:Z,varsResolver:BN,unstyled:q}),{dir:N}=js(),[F,le]=C.useState(-1),[ye,X]=C.useState(!1),[re,ve]=$n({value:l,defaultValue:b,finalValue:[f,m],onChange:u}),fe=C.useRef(re),we=C.useRef([]),je=C.useRef(null),Ue=C.useRef(void 0),Ze=[fc({value:re[0],min:f,max:m}),fc({value:re[1],min:f,max:m})],et=x??kS(S),ft=oe=>{ve(oe),fe.current=oe};C.useEffect(()=>{Array.isArray(l)&&(fe.current=l)},Array.isArray(l)?[l[0],l[1]]:[null,null]);const He=(oe,Se,Je)=>{if(Se===-1)return;const Ne=[...fe.current];if(U&&R){const Be=hp(oe,R.map(kr=>kr.value)),Ge=Ne[Se];Ne[Se]=Be;const qe=Se===0?1:0,Rr=Op(R),_r=jp(R);Be===Rr&&Ne[qe]===Rr||Be===_r&&Ne[qe]===_r?Ne[Se]=Ge:Be===Ne[qe]&&(Ge>Ne[qe]?Ne[qe]=ds(Be,R):Ne[qe]=cs(Be,R))}else Ne[Se]=oe,Se===0&&(oe>Ne[1]-(g-1e-9)&&(Ne[1]=Math.min(oe+g,m)),oe>(m-(g-1e-9)||f)&&(Ne[Se]=fe.current[Se]),Ne[1]-oe>w&&(Ne[1]=oe+w)),Se===1&&(oe<Ne[0]+g&&(Ne[0]=Math.max(oe-g,f)),oe<Ne[0]+g&&(Ne[Se]=fe.current[Se]),oe-Ne[0]>w&&(Ne[0]=oe-w));if(Ne[0]=An(Ne[0],et),Ne[1]=An(Ne[1],et),Ne[0]>Ne[1]){const Be=Ne[0];Ne[0]=Ne[1],Ne[1]=Be}ft(Ne),Je&&(d==null||d(fe.current))},Rt=oe=>{if(!Q){const Se=Np({value:oe,min:f,max:m,step:S,precision:et});He(Se,Ue.current,!1)}},{ref:ue,active:pe}=Lb(({x:oe})=>Rt(oe),{onScrubEnd:()=>!Q&&(d==null?void 0:d(fe.current))},N);function Ce(oe){Ue.current=oe}const Pe=oe=>{ue.current.focus();const Se=ue.current.getBoundingClientRect(),Je=VN(oe.nativeEvent),Ne=Np({value:Je-Se.left,max:m,min:f,step:S,containerWidth:Se.width}),Be=Math.abs(re[0]-Ne)>Math.abs(re[1]-Ne)?1:0,Ge=N==="ltr"?Be:Be===1?0:1;Ue.current=Ge},Me=()=>F!==1&&F!==0?(le(0),0):F,Fe=oe=>{if(!Q)switch(oe.key){case"ArrowUp":{oe.preventDefault();const Se=Me();we.current[Se].focus();const Je=U&&R?cs(fe.current[Se],R):Math.min(Math.max(fe.current[Se]+S,f),m);He(An(Je,et),Se,!0);break}case"ArrowRight":{oe.preventDefault();const Se=Me();we.current[Se].focus();const Je=U&&R?(N==="rtl"?ds:cs)(fe.current[Se],R):Math.min(Math.max(N==="rtl"?fe.current[Se]-S:fe.current[Se]+S,f),m);He(An(Je,et),Se,!0);break}case"ArrowDown":{oe.preventDefault();const Se=Me();we.current[Se].focus();const Je=U&&R?ds(fe.current[Se],R):Math.min(Math.max(fe.current[Se]-S,f),m);He(An(Je,et),Se,!0);break}case"ArrowLeft":{oe.preventDefault();const Se=Me();we.current[Se].focus();const Je=U&&R?(N==="rtl"?cs:ds)(fe.current[Se],R):Math.min(Math.max(N==="rtl"?fe.current[Se]+S:fe.current[Se]-S,f),m);He(An(Je,et),Se,!0);break}}},ze={max:m,min:f,size:p,labelTransitionProps:k,labelAlwaysOn:T,onBlur:()=>le(-1)},ce=Array.isArray(M);return y.jsx(RS,{value:{getStyles:W},children:y.jsxs(hm,{...V,size:p,ref:$t(t,je),disabled:Q,onMouseDownCapture:()=>{var oe;return(oe=je.current)==null?void 0:oe.focus()},onKeyDownCapture:()=>{var oe,Se,Je;(Se=(oe=we.current[0])==null?void 0:oe.parentElement)!=null&&Se.contains(document.activeElement)||(Je=we.current[0])==null||Je.focus()},children:[y.jsxs(mm,{offset:Ze[0],marksOffset:re[0],filled:Ze[1]-Ze[0],marks:R,inverted:ee,min:f,max:m,value:re[1],disabled:Q,containerProps:{ref:ue,onMouseEnter:L?()=>X(!0):void 0,onMouseLeave:L?()=>X(!1):void 0,onTouchStartCapture:Pe,onTouchEndCapture:()=>{Ue.current=-1},onMouseDownCapture:Pe,onMouseUpCapture:()=>{Ue.current=-1},onKeyDownCapture:Fe},children:[y.jsx(dc,{...ze,value:te(re[0]),position:Ze[0],dragging:pe,label:typeof P=="function"?P(An(te(re[0]),et)):P,ref:oe=>{we.current[0]=oe},thumbLabel:j,onMouseDown:()=>Ce(0),onFocus:()=>le(0),showLabelOnHover:L,isHovered:ye,disabled:Q,...A==null?void 0:A(0),children:ce?M[0]:M}),y.jsx(dc,{...ze,thumbLabel:O,value:te(re[1]),position:Ze[1],dragging:pe,label:typeof P=="function"?P(An(te(re[1]),et)):P,ref:oe=>{we.current[1]=oe},onMouseDown:()=>Ce(1),onFocus:()=>le(1),showLabelOnHover:L,isHovered:ye,disabled:Q,...A==null?void 0:A(1),children:ce?M[1]:M})]}),y.jsx("input",{type:"hidden",name:`${E}_from`,value:re[0],...B}),y.jsx("input",{type:"hidden",name:`${E}_to`,value:re[1],...B})]})})});vm.classes=Vc;vm.displayName="@mantine/core/RangeSlider";var PS={root:"m_6d731127"};const HN={gap:"md",align:"stretch",justify:"flex-start"},WN=(e,{gap:t,align:r,justify:s})=>({root:{"--stack-gap":$o(t),"--stack-align":r,"--stack-justify":s}}),tr=Re((e,t)=>{const r=me("Stack",HN,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,align:f,justify:m,gap:g,variant:w,...S}=r,x=Ie({name:"Stack",props:r,classes:PS,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:WN});return y.jsx(he,{ref:t,...x("root"),variant:w,...S})});tr.classes=PS;tr.displayName="@mantine/core/Stack";const TS=C.createContext(null),QN=TS.Provider,qN=()=>C.useContext(TS),KN={},ym=Re((e,t)=>{const{value:r,defaultValue:s,onChange:i,size:l,wrapperProps:u,children:d,readOnly:p,...f}=me("SwitchGroup",KN,e),[m,g]=$n({value:r,defaultValue:s,finalValue:[],onChange:i}),w=S=>{const x=S.currentTarget.value;!p&&g(m.includes(x)?m.filter(b=>b!==x):[...m,x])};return y.jsx(QN,{value:{value:m,onChange:w,size:l},children:y.jsx(Mt.Wrapper,{size:l,ref:t,...u,...f,labelElement:"div",__staticSelector:"SwitchGroup",children:y.jsx(aT,{role:"group",children:d})})})});ym.classes=Mt.Wrapper.classes;ym.displayName="@mantine/core/SwitchGroup";var NS={root:"m_5f93f3bb",input:"m_926b4011",track:"m_9307d992",thumb:"m_93039a1d",trackLabel:"m_8277e082"};const GN={labelPosition:"right"},XN=(e,{radius:t,color:r,size:s})=>({root:{"--switch-radius":t===void 0?void 0:Ct(t),"--switch-height":Ke(s,"switch-height"),"--switch-width":Ke(s,"switch-width"),"--switch-thumb-size":Ke(s,"switch-thumb-size"),"--switch-label-font-size":Ke(s,"switch-label-font-size"),"--switch-track-label-padding":Ke(s,"switch-track-label-padding"),"--switch-color":r?It(r,e):void 0}}),Ii=Re((e,t)=>{const r=me("Switch",GN,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,color:f,label:m,offLabel:g,onLabel:w,id:S,size:x,radius:b,wrapperProps:E,thumbIcon:R,checked:P,defaultChecked:k,onChange:T,labelPosition:j,description:O,error:L,disabled:M,variant:Q,rootRef:q,mod:te,...ee}=r,ne=qN(),G=x||(ne==null?void 0:ne.size),Z=Ie({name:"Switch",props:r,classes:NS,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:XN}),{styleProps:B,rest:U}=fl(ee),A=Jr(S),V=ne?{checked:ne.value.includes(U.value),onChange:ne.onChange}:{},[W,N]=$n({value:V.checked??P,defaultValue:k,finalValue:!1});return y.jsxs(nS,{...Z("root"),__staticSelector:"Switch",__stylesApiProps:r,id:A,size:G,labelPosition:j,label:m,description:O,error:L,disabled:M,bodyElement:"label",labelElement:"span",classNames:s,styles:u,unstyled:d,"data-checked":V.checked||P||void 0,variant:Q,ref:q,mod:te,...B,...E,children:[y.jsx("input",{...U,disabled:M,checked:W,"data-checked":V.checked||P||void 0,onChange:F=>{var le;ne?(le=V.onChange)==null||le.call(V,F):T==null||T(F),N(F.currentTarget.checked)},id:A,ref:t,type:"checkbox",role:"switch",...Z("input")}),y.jsxs(he,{"aria-hidden":"true",component:"span",mod:{error:L,"label-position":j,"without-labels":!w&&!g},...Z("track"),children:[y.jsx(he,{component:"span",mod:"reduce-motion",...Z("thumb"),children:R}),y.jsx("span",{...Z("trackLabel"),children:W?w:g})]})]})});Ii.classes={...NS,...iT};Ii.displayName="@mantine/core/Switch";Ii.Group=ym;const[YN,JN]=Yr("Table component was not found in the tree");var ml={table:"m_b23fa0ef",th:"m_4e7aa4f3",tr:"m_4e7aa4fd",td:"m_4e7aa4ef",tbody:"m_b2404537",thead:"m_b242d975",caption:"m_9e5a3ac7",scrollContainer:"m_a100c15",scrollContainerInner:"m_62259741"};function ZN(e,t){if(!t)return;const r={};return t.columnBorder&&e.withColumnBorders&&(r["data-with-column-border"]=!0),t.rowBorder&&e.withRowBorders&&(r["data-with-row-border"]=!0),t.striped&&e.striped&&(r["data-striped"]=e.striped),t.highlightOnHover&&e.highlightOnHover&&(r["data-hover"]=!0),t.captionSide&&e.captionSide&&(r["data-side"]=e.captionSide),t.stickyHeader&&e.stickyHeader&&(r["data-sticky"]=!0),r}function Ds(e,t){const r=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,s=Re((i,l)=>{const u=me(r,{},i),{classNames:d,className:p,style:f,styles:m,...g}=u,w=JN();return y.jsx(he,{component:e,ref:l,...ZN(w,t),...w.getStyles(e,{className:p,classNames:d,style:f,styles:m,props:u}),...g})});return s.displayName=`@mantine/core/${r}`,s.classes=ml,s}const Ap=Ds("th",{columnBorder:!0}),jS=Ds("td",{columnBorder:!0}),Yu=Ds("tr",{rowBorder:!0,striped:!0,highlightOnHover:!0}),OS=Ds("thead",{stickyHeader:!0}),AS=Ds("tbody"),DS=Ds("tfoot"),IS=Ds("caption",{captionSide:!0});function bm({data:e}){return y.jsxs(y.Fragment,{children:[e.caption&&y.jsx(IS,{children:e.caption}),e.head&&y.jsx(OS,{children:y.jsx(Yu,{children:e.head.map((t,r)=>y.jsx(Ap,{children:t},r))})}),e.body&&y.jsx(AS,{children:e.body.map((t,r)=>y.jsx(Yu,{children:t.map((s,i)=>y.jsx(jS,{children:s},i))},r))}),e.foot&&y.jsx(DS,{children:y.jsx(Yu,{children:e.foot.map((t,r)=>y.jsx(Ap,{children:t},r))})})]})}bm.displayName="@mantine/core/TableDataRenderer";const e2={type:"scrollarea"},t2=(e,{minWidth:t,maxHeight:r,type:s})=>({scrollContainer:{"--table-min-width":se(t),"--table-max-height":se(r),"--table-overflow":s==="native"?"auto":void 0}}),wm=Re((e,t)=>{const r=me("TableScrollContainer",e2,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,children:f,minWidth:m,maxHeight:g,type:w,scrollAreaProps:S,...x}=r,b=Ie({name:"TableScrollContainer",classes:ml,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:t2,rootSelector:"scrollContainer"});return y.jsx(he,{component:w==="scrollarea"?Os:"div",...w==="scrollarea"?g?{offsetScrollbars:"xy",...S}:{offsetScrollbars:"x",...S}:{},ref:t,...b("scrollContainer"),...x,children:y.jsx("div",{...b("scrollContainerInner"),children:f})})});wm.classes=ml;wm.displayName="@mantine/core/TableScrollContainer";const n2={withRowBorders:!0,verticalSpacing:7},r2=(e,{layout:t,captionSide:r,horizontalSpacing:s,verticalSpacing:i,borderColor:l,stripedColor:u,highlightOnHoverColor:d,striped:p,highlightOnHover:f,stickyHeaderOffset:m,stickyHeader:g})=>({table:{"--table-layout":t,"--table-caption-side":r,"--table-horizontal-spacing":$o(s),"--table-vertical-spacing":$o(i),"--table-border-color":l?It(l,e):void 0,"--table-striped-color":p&&u?It(u,e):void 0,"--table-highlight-on-hover-color":f&&d?It(d,e):void 0,"--table-sticky-header-offset":g?se(m):void 0}}),Le=Re((e,t)=>{const r=me("Table",n2,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,horizontalSpacing:f,verticalSpacing:m,captionSide:g,stripedColor:w,highlightOnHoverColor:S,striped:x,highlightOnHover:b,withColumnBorders:E,withRowBorders:R,withTableBorder:P,borderColor:k,layout:T,variant:j,data:O,children:L,stickyHeader:M,stickyHeaderOffset:Q,mod:q,tabularNums:te,...ee}=r,ne=Ie({name:"Table",props:r,className:i,style:l,classes:ml,classNames:s,styles:u,unstyled:d,rootSelector:"table",vars:p,varsResolver:r2});return y.jsx(YN,{value:{getStyles:ne,stickyHeader:M,striped:x===!0?"odd":x||void 0,highlightOnHover:b,withColumnBorders:E,withRowBorders:R,captionSide:g||"bottom"},children:y.jsx(he,{component:"table",variant:j,ref:t,mod:[{"data-with-table-border":P,"data-tabular-nums":te},q],...ne("table"),...ee,children:L||!!O&&y.jsx(bm,{data:O})})})});Le.classes=ml;Le.displayName="@mantine/core/Table";Le.Td=jS;Le.Th=Ap;Le.Tr=Yu;Le.Thead=OS;Le.Tbody=AS;Le.Tfoot=DS;Le.Caption=IS;Le.ScrollContainer=wm;Le.DataRenderer=bm;const[o2,Sm]=Yr("Tabs component was not found in the tree");var gl={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",panel:"m_b0c91715",tab:"m_4ec4dce6",tabSection:"m_fc420b1f","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const s2={},xm=Re((e,t)=>{const r=me("TabsList",s2,e),{children:s,className:i,grow:l,justify:u,classNames:d,styles:p,style:f,mod:m,...g}=r,w=Sm();return y.jsx(he,{...g,...w.getStyles("list",{className:i,style:f,classNames:d,styles:p,props:r,variant:w.variant}),ref:t,role:"tablist",variant:w.variant,mod:[{grow:l,orientation:w.orientation,placement:w.orientation==="vertical"&&w.placement,inverted:w.inverted},m],"aria-orientation":w.orientation,__vars:{"--tabs-justify":u},children:s})});xm.classes=gl;xm.displayName="@mantine/core/TabsList";const i2={},Cm=Re((e,t)=>{const r=me("TabsPanel",i2,e),{children:s,className:i,value:l,classNames:u,styles:d,style:p,mod:f,keepMounted:m,...g}=r,w=Sm(),S=w.value===l,x=w.keepMounted||m||S?s:null;return y.jsx(he,{...g,...w.getStyles("panel",{className:i,classNames:u,styles:d,style:[p,S?void 0:{display:"none"}],props:r}),ref:t,mod:[{orientation:w.orientation},f],role:"tabpanel",id:w.getPanelId(l),"aria-labelledby":w.getTabId(l),children:x})});Cm.classes=gl;Cm.displayName="@mantine/core/TabsPanel";const a2={},Em=Re((e,t)=>{const r=me("TabsTab",a2,e),{className:s,children:i,rightSection:l,leftSection:u,value:d,onClick:p,onKeyDown:f,disabled:m,color:g,style:w,classNames:S,styles:x,vars:b,mod:E,tabIndex:R,...P}=r,k=rn(),{dir:T}=js(),j=Sm(),O=d===j.value,L=Q=>{j.onChange(j.allowTabDeactivation&&d===j.value?null:d),p==null||p(Q)},M={classNames:S,styles:x,props:r};return y.jsxs(Fo,{...P,...j.getStyles("tab",{className:s,style:w,variant:j.variant,...M}),disabled:m,unstyled:j.unstyled,variant:j.variant,mod:[{active:O,disabled:m,orientation:j.orientation,inverted:j.inverted,placement:j.orientation==="vertical"&&j.placement},E],ref:t,role:"tab",id:j.getTabId(d),"aria-selected":O,tabIndex:R!==void 0?R:O||j.value===null?0:-1,"aria-controls":j.getPanelId(d),onClick:L,__vars:{"--tabs-color":g?It(g,k):void 0},onKeyDown:vE({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:j.activateTabWithKeyboard,loop:j.loop,orientation:j.orientation||"horizontal",dir:T,onKeyDown:f}),children:[u&&y.jsx("span",{...j.getStyles("tabSection",M),"data-position":"left",children:u}),i&&y.jsx("span",{...j.getStyles("tabLabel",M),children:i}),l&&y.jsx("span",{...j.getStyles("tabSection",M),"data-position":"right",children:l})]})});Em.classes=gl;Em.displayName="@mantine/core/TabsTab";const E0="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",l2={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,allowTabDeactivation:!1,unstyled:!1,inverted:!1,variant:"default",placement:"left"},u2=(e,{radius:t,color:r,autoContrast:s})=>({root:{"--tabs-radius":Ct(t),"--tabs-color":It(r,e),"--tabs-text-color":_R(s,e)?Bb({color:r,theme:e,autoContrast:s}):void 0}}),Jn=Re((e,t)=>{const r=me("Tabs",l2,e),{defaultValue:s,value:i,onChange:l,orientation:u,children:d,loop:p,id:f,activateTabWithKeyboard:m,allowTabDeactivation:g,variant:w,color:S,radius:x,inverted:b,placement:E,keepMounted:R,classNames:P,styles:k,unstyled:T,className:j,style:O,vars:L,autoContrast:M,mod:Q,...q}=r,te=Jr(f),[ee,ne]=$n({value:i,defaultValue:s,finalValue:null,onChange:l}),G=Ie({name:"Tabs",props:r,classes:gl,className:j,style:O,classNames:P,styles:k,unstyled:T,vars:L,varsResolver:u2});return y.jsx(o2,{value:{placement:E,value:ee,orientation:u,id:te,loop:p,activateTabWithKeyboard:m,getTabId:Ry(`${te}-tab`,E0),getPanelId:Ry(`${te}-panel`,E0),onChange:ne,allowTabDeactivation:g,variant:w,color:S,radius:x,inverted:b,keepMounted:R,unstyled:T,getStyles:G},children:y.jsx(he,{ref:t,id:te,variant:w,mod:[{orientation:u,inverted:u==="horizontal"&&b,placement:u==="vertical"&&E},Q],...G("root"),...q,children:d})})});Jn.classes=gl;Jn.displayName="@mantine/core/Tabs";Jn.Tab=Em;Jn.Panel=Cm;Jn.List=xm;const c2={},el=Re((e,t)=>{const r=me("TextInput",c2,e);return y.jsx(Cr,{component:"input",ref:t,...r,__staticSelector:"TextInput"})});el.classes=Cr.classes;el.displayName="@mantine/core/TextInput";const d2=["h1","h2","h3","h4","h5","h6"],f2=["xs","sm","md","lg","xl"];function p2(e,t){const r=t!==void 0?t:`h${e}`;return d2.includes(r)?{fontSize:`var(--mantine-${r}-font-size)`,fontWeight:`var(--mantine-${r}-font-weight)`,lineHeight:`var(--mantine-${r}-line-height)`}:f2.includes(r)?{fontSize:`var(--mantine-font-size-${r})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:se(r),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var MS={root:"m_8a5d1357"};const h2={order:1},m2=(e,{order:t,size:r,lineClamp:s,textWrap:i})=>{const l=p2(t,r);return{root:{"--title-fw":l.fontWeight,"--title-lh":l.lineHeight,"--title-fz":l.fontSize,"--title-line-clamp":typeof s=="number"?s.toString():void 0,"--title-text-wrap":i}}},Qa=Re((e,t)=>{const r=me("Title",h2,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,order:p,vars:f,size:m,variant:g,lineClamp:w,textWrap:S,mod:x,...b}=r,E=Ie({name:"Title",props:r,classes:MS,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:f,varsResolver:m2});return[1,2,3,4,5,6].includes(p)?y.jsx(he,{...E("root"),component:`h${p}`,variant:g,ref:t,mod:[{order:p,"data-line-clamp":typeof w=="number"},x],size:m,...b}):null});Qa.classes=MS;Qa.displayName="@mantine/core/Title";function g2(e){let t=e,r=!1;const s=new Set;return{getState(){return t},updateState(i){t=typeof i=="function"?i(t):i},setState(i){this.updateState(i),s.forEach(l=>l(t))},initialize(i){r||(t=i,r=!0)},subscribe(i){return s.add(i),()=>s.delete(i)}}}function v2(e){return C.useSyncExternalStore(e.subscribe,()=>e.getState(),()=>e.getState())}function y2(e,t,r){const s=[],i=[],l={};for(const u of e){const d=u.position||t;l[d]=l[d]||0,l[d]+=1,l[d]<=r?i.push(u):s.push(u)}return{notifications:i,queue:s}}const b2=()=>g2({notifications:[],queue:[],defaultPosition:"bottom-right",limit:5}),Is=b2(),w2=(e=Is)=>v2(e);function Wi(e,t){const r=e.getState(),s=t([...r.notifications,...r.queue]),i=y2(s,r.defaultPosition,r.limit);e.setState({notifications:i.notifications,queue:i.queue,limit:r.limit,defaultPosition:r.defaultPosition})}function S2(e,t=Is){const r=e.id||Ob();return Wi(t,s=>e.id&&s.some(i=>i.id===e.id)?s:[...s,{...e,id:r}]),r}function $S(e,t=Is){return Wi(t,r=>r.filter(s=>{var i;return s.id===e?((i=s.onClose)==null||i.call(s,s),!1):!0})),e}function x2(e,t=Is){return Wi(t,r=>r.map(s=>s.id===e.id?{...s,...e}:s)),e.id}function C2(e=Is){Wi(e,()=>[])}function E2(e=Is){Wi(e,t=>t.slice(0,e.getState().limit))}const Tt={show:S2,hide:$S,update:x2,clean:C2,cleanQueue:E2,updateState:Wi};function Dp(e,t){return Dp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,s){return r.__proto__=s,r},Dp(e,t)}function LS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Dp(e,t)}const R0={disabled:!1},pc=St.createContext(null);var R2=function(t){return t.scrollTop},Ba="unmounted",os="exited",ss="entering",hi="entered",Ip="exiting",Zr=(function(e){LS(t,e);function t(s,i){var l;l=e.call(this,s,i)||this;var u=i,d=u&&!u.isMounting?s.enter:s.appear,p;return l.appearStatus=null,s.in?d?(p=os,l.appearStatus=ss):p=hi:s.unmountOnExit||s.mountOnEnter?p=Ba:p=os,l.state={status:p},l.nextCallback=null,l}t.getDerivedStateFromProps=function(i,l){var u=i.in;return u&&l.status===Ba?{status:os}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var l=null;if(i!==this.props){var u=this.state.status;this.props.in?u!==ss&&u!==hi&&(l=ss):(u===ss||u===hi)&&(l=Ip)}this.updateStatus(!1,l)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,l,u,d;return l=u=d=i,i!=null&&typeof i!="number"&&(l=i.exit,u=i.enter,d=i.appear!==void 0?i.appear:u),{exit:l,enter:u,appear:d}},r.updateStatus=function(i,l){if(i===void 0&&(i=!1),l!==null)if(this.cancelNextCallback(),l===ss){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:Va.findDOMNode(this);u&&R2(u)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===os&&this.setState({status:Ba})},r.performEnter=function(i){var l=this,u=this.props.enter,d=this.context?this.context.isMounting:i,p=this.props.nodeRef?[d]:[Va.findDOMNode(this),d],f=p[0],m=p[1],g=this.getTimeouts(),w=d?g.appear:g.enter;if(!i&&!u||R0.disabled){this.safeSetState({status:hi},function(){l.props.onEntered(f)});return}this.props.onEnter(f,m),this.safeSetState({status:ss},function(){l.props.onEntering(f,m),l.onTransitionEnd(w,function(){l.safeSetState({status:hi},function(){l.props.onEntered(f,m)})})})},r.performExit=function(){var i=this,l=this.props.exit,u=this.getTimeouts(),d=this.props.nodeRef?void 0:Va.findDOMNode(this);if(!l||R0.disabled){this.safeSetState({status:os},function(){i.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:Ip},function(){i.props.onExiting(d),i.onTransitionEnd(u.exit,function(){i.safeSetState({status:os},function(){i.props.onExited(d)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,l){l=this.setNextCallback(l),this.setState(i,l)},r.setNextCallback=function(i){var l=this,u=!0;return this.nextCallback=function(d){u&&(u=!1,l.nextCallback=null,i(d))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},r.onTransitionEnd=function(i,l){this.setNextCallback(l);var u=this.props.nodeRef?this.props.nodeRef.current:Va.findDOMNode(this),d=i==null&&!this.props.addEndListener;if(!u||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var p=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],f=p[0],m=p[1];this.props.addEndListener(f,m)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Ba)return null;var l=this.props,u=l.children;l.in,l.mountOnEnter,l.unmountOnExit,l.appear,l.enter,l.exit,l.timeout,l.addEndListener,l.onEnter,l.onEntering,l.onEntered,l.onExit,l.onExiting,l.onExited,l.nodeRef;var d=pS(l,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return St.createElement(pc.Provider,{value:null},typeof u=="function"?u(i,d):St.cloneElement(St.Children.only(u),d))},t})(St.Component);Zr.contextType=pc;Zr.propTypes={};function fi(){}Zr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:fi,onEntering:fi,onEntered:fi,onExit:fi,onExiting:fi,onExited:fi};Zr.UNMOUNTED=Ba;Zr.EXITED=os;Zr.ENTERING=ss;Zr.ENTERED=hi;Zr.EXITING=Ip;function _2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rm(e,t){var r=function(l){return t&&C.isValidElement(l)?t(l):l},s=Object.create(null);return e&&C.Children.map(e,function(i){return i}).forEach(function(i){s[i.key]=r(i)}),s}function k2(e,t){e=e||{},t=t||{};function r(m){return m in t?t[m]:e[m]}var s=Object.create(null),i=[];for(var l in e)l in t?i.length&&(s[l]=i,i=[]):i.push(l);var u,d={};for(var p in t){if(s[p])for(u=0;u<s[p].length;u++){var f=s[p][u];d[s[p][u]]=r(f)}d[p]=r(p)}for(u=0;u<i.length;u++)d[i[u]]=r(i[u]);return d}function fs(e,t,r){return r[t]!=null?r[t]:e.props[t]}function P2(e,t){return Rm(e.children,function(r){return C.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:fs(r,"appear",e),enter:fs(r,"enter",e),exit:fs(r,"exit",e)})})}function T2(e,t,r){var s=Rm(e.children),i=k2(t,s);return Object.keys(i).forEach(function(l){var u=i[l];if(C.isValidElement(u)){var d=l in t,p=l in s,f=t[l],m=C.isValidElement(f)&&!f.props.in;p&&(!d||m)?i[l]=C.cloneElement(u,{onExited:r.bind(null,u),in:!0,exit:fs(u,"exit",e),enter:fs(u,"enter",e)}):!p&&d&&!m?i[l]=C.cloneElement(u,{in:!1}):p&&d&&C.isValidElement(f)&&(i[l]=C.cloneElement(u,{onExited:r.bind(null,u),in:f.props.in,exit:fs(u,"exit",e),enter:fs(u,"enter",e)}))}}),i}var N2=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},j2={component:"div",childFactory:function(t){return t}},Ro=(function(e){LS(t,e);function t(s,i){var l;l=e.call(this,s,i)||this;var u=l.handleExited.bind(_2(l));return l.state={contextValue:{isMounting:!0},handleExited:u,firstRender:!0},l}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,l){var u=l.children,d=l.handleExited,p=l.firstRender;return{children:p?P2(i,d):T2(i,u,d),firstRender:!1}},r.handleExited=function(i,l){var u=Rm(this.props.children);i.key in u||(i.props.onExited&&i.props.onExited(l),this.mounted&&this.setState(function(d){var p=kp({},d.children);return delete p[i.key],{children:p}}))},r.render=function(){var i=this.props,l=i.component,u=i.childFactory,d=pS(i,["component","childFactory"]),p=this.state.contextValue,f=N2(this.state.children).map(u);return delete d.appear,delete d.enter,delete d.exit,l===null?St.createElement(pc.Provider,{value:p},f):St.createElement(pc.Provider,{value:p},St.createElement(l,d,f))},t})(St.Component);Ro.propTypes={};Ro.defaultProps=j2;const FS=["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"];function O2(e,t){return e.reduce((r,s)=>(r[s.position||t].push(s),r),FS.reduce((r,s)=>(r[s]=[],r),{}))}const _0={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},A2={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};function D2({state:e,maxHeight:t,position:r,transitionDuration:s}){const[i,l]=r.split("-"),u=l==="center"?`${i}-center`:l,d={opacity:0,maxHeight:t,transform:_0[u],transitionDuration:`${s}ms, ${s}ms, ${s}ms`,transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear",transitionProperty:"opacity, transform, max-height"},p={opacity:1,transform:A2[u]},f={opacity:0,maxHeight:0,transform:_0[u]};return{...d,...{entering:p,entered:p,exiting:f,exited:f}[e]}}function I2(e,t){return typeof t=="number"?t:t===!1||e===!1?!1:e}const zS=C.forwardRef(({data:e,onHide:t,autoClose:r,...s},i)=>{const{autoClose:l,message:u,...d}=e,p=I2(r,e.autoClose),f=C.useRef(-1),m=()=>window.clearTimeout(f.current),g=()=>{t(e.id),m()},w=()=>{typeof p=="number"&&(f.current=window.setTimeout(g,p))};return C.useEffect(()=>{var S;(S=e.onOpen)==null||S.call(e,e)},[]),C.useEffect(()=>(w(),m),[p]),y.jsx(cm,{...s,...d,onClose:g,ref:i,onMouseEnter:m,onMouseLeave:w,children:u})});zS.displayName="@mantine/notifications/NotificationContainer";var VS={root:"m_b37d9ac7",notification:"m_5ed0edd0"};const M2=Zr,$2={position:"bottom-right",autoClose:4e3,transitionDuration:250,containerWidth:440,notificationMaxHeight:200,limit:5,zIndex:$i("overlay"),store:Is,withinPortal:!0},L2=(e,{zIndex:t,containerWidth:r})=>({root:{"--notifications-z-index":t==null?void 0:t.toString(),"--notifications-container-width":se(r)}}),eo=Re((e,t)=>{const r=me("Notifications",$2,e),{classNames:s,className:i,style:l,styles:u,unstyled:d,vars:p,position:f,autoClose:m,transitionDuration:g,containerWidth:w,notificationMaxHeight:S,limit:x,zIndex:b,store:E,portalProps:R,withinPortal:P,...k}=r,T=rn(),j=w2(E),O=AE(),L=ah(),M=C.useRef({}),Q=C.useRef(0),te=(T.respectReducedMotion?L:!1)?1:g,ee=Ie({name:"Notifications",classes:VS,props:r,className:i,style:l,classNames:s,styles:u,unstyled:d,vars:p,varsResolver:L2});C.useEffect(()=>{E==null||E.updateState(Z=>({...Z,limit:x||5,defaultPosition:f}))},[x,f]),Kr(()=>{j.notifications.length>Q.current&&setTimeout(()=>O(),0),Q.current=j.notifications.length},[j.notifications]);const ne=O2(j.notifications,f),G=FS.reduce((Z,B)=>(Z[B]=ne[B].map(({style:U,...A})=>y.jsx(M2,{timeout:te,onEnter:()=>M.current[A.id].offsetHeight,nodeRef:{current:M.current[A.id]},children:V=>y.jsx(zS,{ref:W=>{M.current[A.id]=W},data:A,onHide:W=>$S(W,E),autoClose:m,...ee("notification",{style:{...D2({state:V,position:B,transitionDuration:te,maxHeight:S}),...U}})})},A.id)),Z),{});return y.jsxs(zi,{withinPortal:P,...R,children:[y.jsx(he,{...ee("root"),"data-position":"top-center",ref:t,...k,children:y.jsx(Ro,{children:G["top-center"]})}),y.jsx(he,{...ee("root"),"data-position":"top-left",...k,children:y.jsx(Ro,{children:G["top-left"]})}),y.jsx(he,{...ee("root",{className:cp.classNames.fullWidth}),"data-position":"top-right",...k,children:y.jsx(Ro,{children:G["top-right"]})}),y.jsx(he,{...ee("root",{className:cp.classNames.fullWidth}),"data-position":"bottom-right",...k,children:y.jsx(Ro,{children:G["bottom-right"]})}),y.jsx(he,{...ee("root"),"data-position":"bottom-left",...k,children:y.jsx(Ro,{children:G["bottom-left"]})}),y.jsx(he,{...ee("root"),"data-position":"bottom-center",...k,children:y.jsx(Ro,{children:G["bottom-center"]})})]})});eo.classes=VS;eo.displayName="@mantine/notifications/Notifications";eo.show=Tt.show;eo.hide=Tt.hide;eo.update=Tt.update;eo.clean=Tt.clean;eo.cleanQueue=Tt.cleanQueue;eo.updateState=Tt.updateState;var Qi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},F2={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ko,oh,lb,z2=(lb=class{constructor(){Oe(this,ko,F2);Oe(this,oh,!1)}setTimeoutProvider(e){be(this,ko,e)}setTimeout(e,t){return I(this,ko).setTimeout(e,t)}clearTimeout(e){I(this,ko).clearTimeout(e)}setInterval(e,t){return I(this,ko).setInterval(e,t)}clearInterval(e){I(this,ko).clearInterval(e)}},ko=new WeakMap,oh=new WeakMap,lb),ps=new z2;function V2(e){setTimeout(e,0)}var ks=typeof window>"u"||"Deno"in globalThis;function nn(){}function B2(e,t){return typeof e=="function"?e(t):e}function Mp(e){return typeof e=="number"&&e>=0&&e!==1/0}function BS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Mo(e,t){return typeof e=="function"?e(t):e}function In(e,t){return typeof e=="function"?e(t):e}function k0(e,t){const{type:r="all",exact:s,fetchStatus:i,predicate:l,queryKey:u,stale:d}=e;if(u){if(s){if(t.queryHash!==_m(u,t.options))return!1}else if(!tl(t.queryKey,u))return!1}if(r!=="all"){const p=t.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||i&&i!==t.state.fetchStatus||l&&!l(t))}function P0(e,t){const{exact:r,status:s,predicate:i,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(r){if(Ps(t.options.mutationKey)!==Ps(l))return!1}else if(!tl(t.options.mutationKey,l))return!1}return!(s&&t.state.status!==s||i&&!i(t))}function _m(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ps)(e)}function Ps(e){return JSON.stringify(e,(t,r)=>$p(r)?Object.keys(r).sort().reduce((s,i)=>(s[i]=r[i],s),{}):r)}function tl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>tl(e[r],t[r])):!1}var U2=Object.prototype.hasOwnProperty;function US(e,t){if(e===t)return e;const r=T0(e)&&T0(t);if(!r&&!($p(e)&&$p(t)))return t;const i=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),u=l.length,d=r?new Array(u):{};let p=0;for(let f=0;f<u;f++){const m=r?f:l[f],g=e[m],w=t[m];if(g===w){d[m]=g,(r?f<i:U2.call(e,m))&&p++;continue}if(g===null||w===null||typeof g!="object"||typeof w!="object"){d[m]=w;continue}const S=US(g,w);d[m]=S,S===g&&p++}return i===u&&p===i?e:d}function hc(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function T0(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function $p(e){if(!N0(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!N0(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function N0(e){return Object.prototype.toString.call(e)==="[object Object]"}function H2(e){return new Promise(t=>{ps.setTimeout(t,e)})}function Lp(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?US(e,t):t}function W2(e,t,r=0){const s=[...e,t];return r&&s.length>r?s.slice(1):s}function Q2(e,t,r=0){const s=[t,...e];return r&&s.length>r?s.slice(0,-1):s}var km=Symbol();function HS(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===km?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function WS(e,t){return typeof e=="function"?e(...t):!!e}var ms,Po,wi,ub,q2=(ub=class extends Qi{constructor(){super();Oe(this,ms);Oe(this,Po);Oe(this,wi);be(this,wi,t=>{if(!ks&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){I(this,Po)||this.setEventListener(I(this,wi))}onUnsubscribe(){var t;this.hasListeners()||((t=I(this,Po))==null||t.call(this),be(this,Po,void 0))}setEventListener(t){var r;be(this,wi,t),(r=I(this,Po))==null||r.call(this),be(this,Po,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){I(this,ms)!==t&&(be(this,ms,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof I(this,ms)=="boolean"?I(this,ms):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ms=new WeakMap,Po=new WeakMap,wi=new WeakMap,ub),Pm=new q2;function Fp(){let e,t;const r=new Promise((i,l)=>{e=i,t=l});r.status="pending",r.catch(()=>{});function s(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{s({status:"fulfilled",value:i}),e(i)},r.reject=i=>{s({status:"rejected",reason:i}),t(i)},r}var K2=V2;function G2(){let e=[],t=0,r=d=>{d()},s=d=>{d()},i=K2;const l=d=>{t?e.push(d):i(()=>{r(d)})},u=()=>{const d=e;e=[],d.length&&i(()=>{s(()=>{d.forEach(p=>{r(p)})})})};return{batch:d=>{let p;t++;try{p=d()}finally{t--,t||u()}return p},batchCalls:d=>(...p)=>{l(()=>{d(...p)})},schedule:l,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{s=d},setScheduler:d=>{i=d}}}var Nt=G2(),Si,To,xi,cb,X2=(cb=class extends Qi{constructor(){super();Oe(this,Si,!0);Oe(this,To);Oe(this,xi);be(this,xi,t=>{if(!ks&&window.addEventListener){const r=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",s)}}})}onSubscribe(){I(this,To)||this.setEventListener(I(this,xi))}onUnsubscribe(){var t;this.hasListeners()||((t=I(this,To))==null||t.call(this),be(this,To,void 0))}setEventListener(t){var r;be(this,xi,t),(r=I(this,To))==null||r.call(this),be(this,To,t(this.setOnline.bind(this)))}setOnline(t){I(this,Si)!==t&&(be(this,Si,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return I(this,Si)}},Si=new WeakMap,To=new WeakMap,xi=new WeakMap,cb),mc=new X2;function Y2(e){return Math.min(1e3*2**e,3e4)}function QS(e){return(e??"online")==="online"?mc.isOnline():!0}var zp=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function qS(e){let t=!1,r=0,s;const i=Fp(),l=()=>i.status!=="pending",u=b=>{var E;if(!l()){const R=new zp(b);w(R),(E=e.onCancel)==null||E.call(e,R)}},d=()=>{t=!0},p=()=>{t=!1},f=()=>Pm.isFocused()&&(e.networkMode==="always"||mc.isOnline())&&e.canRun(),m=()=>QS(e.networkMode)&&e.canRun(),g=b=>{l()||(s==null||s(),i.resolve(b))},w=b=>{l()||(s==null||s(),i.reject(b))},S=()=>new Promise(b=>{var E;s=R=>{(l()||f())&&b(R)},(E=e.onPause)==null||E.call(e)}).then(()=>{var b;s=void 0,l()||(b=e.onContinue)==null||b.call(e)}),x=()=>{if(l())return;let b;const E=r===0?e.initialPromise:void 0;try{b=E??e.fn()}catch(R){b=Promise.reject(R)}Promise.resolve(b).then(g).catch(R=>{var O;if(l())return;const P=e.retry??(ks?0:3),k=e.retryDelay??Y2,T=typeof k=="function"?k(r,R):k,j=P===!0||typeof P=="number"&&r<P||typeof P=="function"&&P(r,R);if(t||!j){w(R);return}r++,(O=e.onFail)==null||O.call(e,r,R),H2(T).then(()=>f()?void 0:S()).then(()=>{t?w(R):x()})})};return{promise:i,status:()=>i.status,cancel:u,continue:()=>(s==null||s(),i),cancelRetry:d,continueRetry:p,canStart:m,start:()=>(m()?x():S().then(x),i)}}var gs,db,KS=(db=class{constructor(){Oe(this,gs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Mp(this.gcTime)&&be(this,gs,ps.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ks?1/0:300*1e3))}clearGcTimeout(){I(this,gs)&&(ps.clearTimeout(I(this,gs)),be(this,gs,void 0))}},gs=new WeakMap,db),vs,Ci,On,ys,Dt,nl,bs,Gn,$r,fb,J2=(fb=class extends KS{constructor(t){super();Oe(this,Gn);Oe(this,vs);Oe(this,Ci);Oe(this,On);Oe(this,ys);Oe(this,Dt);Oe(this,nl);Oe(this,bs);be(this,bs,!1),be(this,nl,t.defaultOptions),this.setOptions(t.options),this.observers=[],be(this,ys,t.client),be(this,On,I(this,ys).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,be(this,vs,O0(this.options)),this.state=t.state??I(this,vs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=I(this,Dt))==null?void 0:t.promise}setOptions(t){if(this.options={...I(this,nl),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=O0(this.options);r.data!==void 0&&(this.setState(j0(r.data,r.dataUpdatedAt)),be(this,vs,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&I(this,On).remove(this)}setData(t,r){const s=Lp(this.state.data,t,this.options);return We(this,Gn,$r).call(this,{data:s,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),s}setState(t,r){We(this,Gn,$r).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var s,i;const r=(s=I(this,Dt))==null?void 0:s.promise;return(i=I(this,Dt))==null||i.cancel(t),r?r.then(nn).catch(nn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(I(this,vs))}isActive(){return this.observers.some(t=>In(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===km||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Mo(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!BS(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=I(this,Dt))==null||r.continue()}onOnline(){var r;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=I(this,Dt))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),I(this,On).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(I(this,Dt)&&(I(this,bs)?I(this,Dt).cancel({revert:!0}):I(this,Dt).cancelRetry()),this.scheduleGc()),I(this,On).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||We(this,Gn,$r).call(this,{type:"invalidate"})}async fetch(t,r){var p,f,m,g,w,S,x,b,E,R,P,k;if(this.state.fetchStatus!=="idle"&&((p=I(this,Dt))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(I(this,Dt))return I(this,Dt).continueRetry(),I(this,Dt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const T=this.observers.find(j=>j.options.queryFn);T&&this.setOptions(T.options)}const s=new AbortController,i=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(be(this,bs,!0),s.signal)})},l=()=>{const T=HS(this.options,r),O=(()=>{const L={client:I(this,ys),queryKey:this.queryKey,meta:this.meta};return i(L),L})();return be(this,bs,!1),this.options.persister?this.options.persister(T,O,this):T(O)},d=(()=>{const T={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:I(this,ys),state:this.state,fetchFn:l};return i(T),T})();(f=this.options.behavior)==null||f.onFetch(d,this),be(this,Ci,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=d.fetchOptions)==null?void 0:m.meta))&&We(this,Gn,$r).call(this,{type:"fetch",meta:(g=d.fetchOptions)==null?void 0:g.meta}),be(this,Dt,qS({initialPromise:r==null?void 0:r.initialPromise,fn:d.fetchFn,onCancel:T=>{T instanceof zp&&T.revert&&this.setState({...I(this,Ci),fetchStatus:"idle"}),s.abort()},onFail:(T,j)=>{We(this,Gn,$r).call(this,{type:"failed",failureCount:T,error:j})},onPause:()=>{We(this,Gn,$r).call(this,{type:"pause"})},onContinue:()=>{We(this,Gn,$r).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const T=await I(this,Dt).start();if(T===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(T),(S=(w=I(this,On).config).onSuccess)==null||S.call(w,T,this),(b=(x=I(this,On).config).onSettled)==null||b.call(x,T,this.state.error,this),T}catch(T){if(T instanceof zp){if(T.silent)return I(this,Dt).promise;if(T.revert){if(this.state.data===void 0)throw T;return this.state.data}}throw We(this,Gn,$r).call(this,{type:"error",error:T}),(R=(E=I(this,On).config).onError)==null||R.call(E,T,this),(k=(P=I(this,On).config).onSettled)==null||k.call(P,this.state.data,T,this),T}finally{this.scheduleGc()}}},vs=new WeakMap,Ci=new WeakMap,On=new WeakMap,ys=new WeakMap,Dt=new WeakMap,nl=new WeakMap,bs=new WeakMap,Gn=new WeakSet,$r=function(t){const r=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...GS(s.data,this.options),fetchMeta:t.meta??null};case"success":const i={...s,...j0(t.data,t.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return be(this,Ci,t.manual?i:void 0),i;case"error":const l=t.error;return{...s,error:l,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=r(this.state),Nt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),I(this,On).notify({query:this,type:"updated",action:t})})},fb);function GS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:QS(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function j0(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function O0(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,s=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var dn,Xe,rl,en,ws,Ei,Fr,No,ol,Ri,_i,Ss,xs,jo,ki,ot,Ua,Vp,Bp,Up,Hp,Wp,Qp,qp,XS,pb,Z2=(pb=class extends Qi{constructor(t,r){super();Oe(this,ot);Oe(this,dn);Oe(this,Xe);Oe(this,rl);Oe(this,en);Oe(this,ws);Oe(this,Ei);Oe(this,Fr);Oe(this,No);Oe(this,ol);Oe(this,Ri);Oe(this,_i);Oe(this,Ss);Oe(this,xs);Oe(this,jo);Oe(this,ki,new Set);this.options=r,be(this,dn,t),be(this,No,null),be(this,Fr,Fp()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(I(this,Xe).addObserver(this),A0(I(this,Xe),this.options)?We(this,ot,Ua).call(this):this.updateResult(),We(this,ot,Hp).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Kp(I(this,Xe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Kp(I(this,Xe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,We(this,ot,Wp).call(this),We(this,ot,Qp).call(this),I(this,Xe).removeObserver(this)}setOptions(t){const r=this.options,s=I(this,Xe);if(this.options=I(this,dn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof In(this.options.enabled,I(this,Xe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");We(this,ot,qp).call(this),I(this,Xe).setOptions(this.options),r._defaulted&&!hc(this.options,r)&&I(this,dn).getQueryCache().notify({type:"observerOptionsUpdated",query:I(this,Xe),observer:this});const i=this.hasListeners();i&&D0(I(this,Xe),s,this.options,r)&&We(this,ot,Ua).call(this),this.updateResult(),i&&(I(this,Xe)!==s||In(this.options.enabled,I(this,Xe))!==In(r.enabled,I(this,Xe))||Mo(this.options.staleTime,I(this,Xe))!==Mo(r.staleTime,I(this,Xe)))&&We(this,ot,Vp).call(this);const l=We(this,ot,Bp).call(this);i&&(I(this,Xe)!==s||In(this.options.enabled,I(this,Xe))!==In(r.enabled,I(this,Xe))||l!==I(this,jo))&&We(this,ot,Up).call(this,l)}getOptimisticResult(t){const r=I(this,dn).getQueryCache().build(I(this,dn),t),s=this.createResult(r,t);return tj(this,s)&&(be(this,en,s),be(this,Ei,this.options),be(this,ws,I(this,Xe).state)),s}getCurrentResult(){return I(this,en)}trackResult(t,r){return new Proxy(t,{get:(s,i)=>(this.trackProp(i),r==null||r(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&I(this,Fr).status==="pending"&&I(this,Fr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,i))})}trackProp(t){I(this,ki).add(t)}getCurrentQuery(){return I(this,Xe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=I(this,dn).defaultQueryOptions(t),s=I(this,dn).getQueryCache().build(I(this,dn),r);return s.fetch().then(()=>this.createResult(s,r))}fetch(t){return We(this,ot,Ua).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),I(this,en)))}createResult(t,r){var Q;const s=I(this,Xe),i=this.options,l=I(this,en),u=I(this,ws),d=I(this,Ei),f=t!==s?t.state:I(this,rl),{state:m}=t;let g={...m},w=!1,S;if(r._optimisticResults){const q=this.hasListeners(),te=!q&&A0(t,r),ee=q&&D0(t,s,r,i);(te||ee)&&(g={...g,...GS(m.data,t.options)}),r._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:x,errorUpdatedAt:b,status:E}=g;S=g.data;let R=!1;if(r.placeholderData!==void 0&&S===void 0&&E==="pending"){let q;l!=null&&l.isPlaceholderData&&r.placeholderData===(d==null?void 0:d.placeholderData)?(q=l.data,R=!0):q=typeof r.placeholderData=="function"?r.placeholderData((Q=I(this,_i))==null?void 0:Q.state.data,I(this,_i)):r.placeholderData,q!==void 0&&(E="success",S=Lp(l==null?void 0:l.data,q,r),w=!0)}if(r.select&&S!==void 0&&!R)if(l&&S===(u==null?void 0:u.data)&&r.select===I(this,ol))S=I(this,Ri);else try{be(this,ol,r.select),S=r.select(S),S=Lp(l==null?void 0:l.data,S,r),be(this,Ri,S),be(this,No,null)}catch(q){be(this,No,q)}I(this,No)&&(x=I(this,No),S=I(this,Ri),b=Date.now(),E="error");const P=g.fetchStatus==="fetching",k=E==="pending",T=E==="error",j=k&&P,O=S!==void 0,M={status:E,fetchStatus:g.fetchStatus,isPending:k,isSuccess:E==="success",isError:T,isInitialLoading:j,isLoading:j,data:S,dataUpdatedAt:g.dataUpdatedAt,error:x,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>f.dataUpdateCount||g.errorUpdateCount>f.errorUpdateCount,isFetching:P,isRefetching:P&&!k,isLoadingError:T&&!O,isPaused:g.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:T&&O,isStale:Tm(t,r),refetch:this.refetch,promise:I(this,Fr),isEnabled:In(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const q=ne=>{M.status==="error"?ne.reject(M.error):M.data!==void 0&&ne.resolve(M.data)},te=()=>{const ne=be(this,Fr,M.promise=Fp());q(ne)},ee=I(this,Fr);switch(ee.status){case"pending":t.queryHash===s.queryHash&&q(ee);break;case"fulfilled":(M.status==="error"||M.data!==ee.value)&&te();break;case"rejected":(M.status!=="error"||M.error!==ee.reason)&&te();break}}return M}updateResult(){const t=I(this,en),r=this.createResult(I(this,Xe),this.options);if(be(this,ws,I(this,Xe).state),be(this,Ei,this.options),I(this,ws).data!==void 0&&be(this,_i,I(this,Xe)),hc(r,t))return;be(this,en,r);const s=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!I(this,ki).size)return!0;const u=new Set(l??I(this,ki));return this.options.throwOnError&&u.add("error"),Object.keys(I(this,en)).some(d=>{const p=d;return I(this,en)[p]!==t[p]&&u.has(p)})};We(this,ot,XS).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&We(this,ot,Hp).call(this)}},dn=new WeakMap,Xe=new WeakMap,rl=new WeakMap,en=new WeakMap,ws=new WeakMap,Ei=new WeakMap,Fr=new WeakMap,No=new WeakMap,ol=new WeakMap,Ri=new WeakMap,_i=new WeakMap,Ss=new WeakMap,xs=new WeakMap,jo=new WeakMap,ki=new WeakMap,ot=new WeakSet,Ua=function(t){We(this,ot,qp).call(this);let r=I(this,Xe).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(nn)),r},Vp=function(){We(this,ot,Wp).call(this);const t=Mo(this.options.staleTime,I(this,Xe));if(ks||I(this,en).isStale||!Mp(t))return;const s=BS(I(this,en).dataUpdatedAt,t)+1;be(this,Ss,ps.setTimeout(()=>{I(this,en).isStale||this.updateResult()},s))},Bp=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(I(this,Xe)):this.options.refetchInterval)??!1},Up=function(t){We(this,ot,Qp).call(this),be(this,jo,t),!(ks||In(this.options.enabled,I(this,Xe))===!1||!Mp(I(this,jo))||I(this,jo)===0)&&be(this,xs,ps.setInterval(()=>{(this.options.refetchIntervalInBackground||Pm.isFocused())&&We(this,ot,Ua).call(this)},I(this,jo)))},Hp=function(){We(this,ot,Vp).call(this),We(this,ot,Up).call(this,We(this,ot,Bp).call(this))},Wp=function(){I(this,Ss)&&(ps.clearTimeout(I(this,Ss)),be(this,Ss,void 0))},Qp=function(){I(this,xs)&&(ps.clearInterval(I(this,xs)),be(this,xs,void 0))},qp=function(){const t=I(this,dn).getQueryCache().build(I(this,dn),this.options);if(t===I(this,Xe))return;const r=I(this,Xe);be(this,Xe,t),be(this,rl,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},XS=function(t){Nt.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(I(this,en))}),I(this,dn).getQueryCache().notify({query:I(this,Xe),type:"observerResultsUpdated"})})},pb);function ej(e,t){return In(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function A0(e,t){return ej(e,t)||e.state.data!==void 0&&Kp(e,t,t.refetchOnMount)}function Kp(e,t,r){if(In(t.enabled,e)!==!1&&Mo(t.staleTime,e)!=="static"){const s=typeof r=="function"?r(e):r;return s==="always"||s!==!1&&Tm(e,t)}return!1}function D0(e,t,r,s){return(e!==t||In(s.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Tm(e,r)}function Tm(e,t){return In(t.enabled,e)!==!1&&e.isStaleByTime(Mo(t.staleTime,e))}function tj(e,t){return!hc(e.getCurrentResult(),t)}function I0(e){return{onFetch:(t,r)=>{var m,g,w,S,x;const s=t.options,i=(w=(g=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:g.fetchMore)==null?void 0:w.direction,l=((S=t.state.data)==null?void 0:S.pages)||[],u=((x=t.state.data)==null?void 0:x.pageParams)||[];let d={pages:[],pageParams:[]},p=0;const f=async()=>{let b=!1;const E=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(t.signal.aborted?b=!0:t.signal.addEventListener("abort",()=>{b=!0}),t.signal)})},R=HS(t.options,t.fetchOptions),P=async(k,T,j)=>{if(b)return Promise.reject();if(T==null&&k.pages.length)return Promise.resolve(k);const L=(()=>{const te={client:t.client,queryKey:t.queryKey,pageParam:T,direction:j?"backward":"forward",meta:t.options.meta};return E(te),te})(),M=await R(L),{maxPages:Q}=t.options,q=j?Q2:W2;return{pages:q(k.pages,M,Q),pageParams:q(k.pageParams,T,Q)}};if(i&&l.length){const k=i==="backward",T=k?nj:M0,j={pages:l,pageParams:u},O=T(s,j);d=await P(j,O,k)}else{const k=e??l.length;do{const T=p===0?u[0]??s.initialPageParam:M0(s,d);if(p>0&&T==null)break;d=await P(d,T),p++}while(p<k)}return d};t.options.persister?t.fetchFn=()=>{var b,E;return(E=(b=t.options).persister)==null?void 0:E.call(b,f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=f}}}function M0(e,{pages:t,pageParams:r}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,r[s],r):void 0}function nj(e,{pages:t,pageParams:r}){var s;return t.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,t[0],t,r[0],r):void 0}var sl,gr,tn,Cs,vr,Eo,hb,rj=(hb=class extends KS{constructor(t){super();Oe(this,vr);Oe(this,sl);Oe(this,gr);Oe(this,tn);Oe(this,Cs);be(this,sl,t.client),this.mutationId=t.mutationId,be(this,tn,t.mutationCache),be(this,gr,[]),this.state=t.state||YS(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){I(this,gr).includes(t)||(I(this,gr).push(t),this.clearGcTimeout(),I(this,tn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){be(this,gr,I(this,gr).filter(r=>r!==t)),this.scheduleGc(),I(this,tn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){I(this,gr).length||(this.state.status==="pending"?this.scheduleGc():I(this,tn).remove(this))}continue(){var t;return((t=I(this,Cs))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var u,d,p,f,m,g,w,S,x,b,E,R,P,k,T,j,O,L,M,Q;const r=()=>{We(this,vr,Eo).call(this,{type:"continue"})},s={client:I(this,sl),meta:this.options.meta,mutationKey:this.options.mutationKey};be(this,Cs,qS({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(q,te)=>{We(this,vr,Eo).call(this,{type:"failed",failureCount:q,error:te})},onPause:()=>{We(this,vr,Eo).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>I(this,tn).canRun(this)}));const i=this.state.status==="pending",l=!I(this,Cs).canStart();try{if(i)r();else{We(this,vr,Eo).call(this,{type:"pending",variables:t,isPaused:l}),await((d=(u=I(this,tn).config).onMutate)==null?void 0:d.call(u,t,this,s));const te=await((f=(p=this.options).onMutate)==null?void 0:f.call(p,t,s));te!==this.state.context&&We(this,vr,Eo).call(this,{type:"pending",context:te,variables:t,isPaused:l})}const q=await I(this,Cs).start();return await((g=(m=I(this,tn).config).onSuccess)==null?void 0:g.call(m,q,t,this.state.context,this,s)),await((S=(w=this.options).onSuccess)==null?void 0:S.call(w,q,t,this.state.context,s)),await((b=(x=I(this,tn).config).onSettled)==null?void 0:b.call(x,q,null,this.state.variables,this.state.context,this,s)),await((R=(E=this.options).onSettled)==null?void 0:R.call(E,q,null,t,this.state.context,s)),We(this,vr,Eo).call(this,{type:"success",data:q}),q}catch(q){try{throw await((k=(P=I(this,tn).config).onError)==null?void 0:k.call(P,q,t,this.state.context,this,s)),await((j=(T=this.options).onError)==null?void 0:j.call(T,q,t,this.state.context,s)),await((L=(O=I(this,tn).config).onSettled)==null?void 0:L.call(O,void 0,q,this.state.variables,this.state.context,this,s)),await((Q=(M=this.options).onSettled)==null?void 0:Q.call(M,void 0,q,t,this.state.context,s)),q}finally{We(this,vr,Eo).call(this,{type:"error",error:q})}}finally{I(this,tn).runNext(this)}}},sl=new WeakMap,gr=new WeakMap,tn=new WeakMap,Cs=new WeakMap,vr=new WeakSet,Eo=function(t){const r=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Nt.batch(()=>{I(this,gr).forEach(s=>{s.onMutationUpdate(t)}),I(this,tn).notify({mutation:this,type:"updated",action:t})})},hb);function YS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zr,Xn,il,mb,oj=(mb=class extends Qi{constructor(t={}){super();Oe(this,zr);Oe(this,Xn);Oe(this,il);this.config=t,be(this,zr,new Set),be(this,Xn,new Map),be(this,il,0)}build(t,r,s){const i=new rj({client:t,mutationCache:this,mutationId:++Du(this,il)._,options:t.defaultMutationOptions(r),state:s});return this.add(i),i}add(t){I(this,zr).add(t);const r=Bu(t);if(typeof r=="string"){const s=I(this,Xn).get(r);s?s.push(t):I(this,Xn).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(I(this,zr).delete(t)){const r=Bu(t);if(typeof r=="string"){const s=I(this,Xn).get(r);if(s)if(s.length>1){const i=s.indexOf(t);i!==-1&&s.splice(i,1)}else s[0]===t&&I(this,Xn).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Bu(t);if(typeof r=="string"){const s=I(this,Xn).get(r),i=s==null?void 0:s.find(l=>l.state.status==="pending");return!i||i===t}else return!0}runNext(t){var s;const r=Bu(t);if(typeof r=="string"){const i=(s=I(this,Xn).get(r))==null?void 0:s.find(l=>l!==t&&l.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Nt.batch(()=>{I(this,zr).forEach(t=>{this.notify({type:"removed",mutation:t})}),I(this,zr).clear(),I(this,Xn).clear()})}getAll(){return Array.from(I(this,zr))}find(t){const r={exact:!0,...t};return this.getAll().find(s=>P0(r,s))}findAll(t={}){return this.getAll().filter(r=>P0(t,r))}notify(t){Nt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Nt.batch(()=>Promise.all(t.map(r=>r.continue().catch(nn))))}},zr=new WeakMap,Xn=new WeakMap,il=new WeakMap,mb);function Bu(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Vr,Oo,fn,Br,qr,Ju,Gp,gb,sj=(gb=class extends Qi{constructor(r,s){super();Oe(this,qr);Oe(this,Vr);Oe(this,Oo);Oe(this,fn);Oe(this,Br);be(this,Vr,r),this.setOptions(s),this.bindMethods(),We(this,qr,Ju).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var i;const s=this.options;this.options=I(this,Vr).defaultMutationOptions(r),hc(this.options,s)||I(this,Vr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:I(this,fn),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&Ps(s.mutationKey)!==Ps(this.options.mutationKey)?this.reset():((i=I(this,fn))==null?void 0:i.state.status)==="pending"&&I(this,fn).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=I(this,fn))==null||r.removeObserver(this)}onMutationUpdate(r){We(this,qr,Ju).call(this),We(this,qr,Gp).call(this,r)}getCurrentResult(){return I(this,Oo)}reset(){var r;(r=I(this,fn))==null||r.removeObserver(this),be(this,fn,void 0),We(this,qr,Ju).call(this),We(this,qr,Gp).call(this)}mutate(r,s){var i;return be(this,Br,s),(i=I(this,fn))==null||i.removeObserver(this),be(this,fn,I(this,Vr).getMutationCache().build(I(this,Vr),this.options)),I(this,fn).addObserver(this),I(this,fn).execute(r)}},Vr=new WeakMap,Oo=new WeakMap,fn=new WeakMap,Br=new WeakMap,qr=new WeakSet,Ju=function(){var s;const r=((s=I(this,fn))==null?void 0:s.state)??YS();be(this,Oo,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Gp=function(r){Nt.batch(()=>{var s,i,l,u,d,p,f,m;if(I(this,Br)&&this.hasListeners()){const g=I(this,Oo).variables,w=I(this,Oo).context,S={client:I(this,Vr),meta:this.options.meta,mutationKey:this.options.mutationKey};(r==null?void 0:r.type)==="success"?((i=(s=I(this,Br)).onSuccess)==null||i.call(s,r.data,g,w,S),(u=(l=I(this,Br)).onSettled)==null||u.call(l,r.data,null,g,w,S)):(r==null?void 0:r.type)==="error"&&((p=(d=I(this,Br)).onError)==null||p.call(d,r.error,g,w,S),(m=(f=I(this,Br)).onSettled)==null||m.call(f,void 0,r.error,g,w,S))}this.listeners.forEach(g=>{g(I(this,Oo))})})},gb),yr,vb,ij=(vb=class extends Qi{constructor(t={}){super();Oe(this,yr);this.config=t,be(this,yr,new Map)}build(t,r,s){const i=r.queryKey,l=r.queryHash??_m(i,r);let u=this.get(l);return u||(u=new J2({client:t,queryKey:i,queryHash:l,options:t.defaultQueryOptions(r),state:s,defaultOptions:t.getQueryDefaults(i)}),this.add(u)),u}add(t){I(this,yr).has(t.queryHash)||(I(this,yr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=I(this,yr).get(t.queryHash);r&&(t.destroy(),r===t&&I(this,yr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Nt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return I(this,yr).get(t)}getAll(){return[...I(this,yr).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(s=>k0(r,s))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(s=>k0(t,s)):r}notify(t){Nt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Nt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Nt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},yr=new WeakMap,vb),vt,Ao,Do,Pi,Ti,Io,Ni,ji,yb,aj=(yb=class{constructor(e={}){Oe(this,vt);Oe(this,Ao);Oe(this,Do);Oe(this,Pi);Oe(this,Ti);Oe(this,Io);Oe(this,Ni);Oe(this,ji);be(this,vt,e.queryCache||new ij),be(this,Ao,e.mutationCache||new oj),be(this,Do,e.defaultOptions||{}),be(this,Pi,new Map),be(this,Ti,new Map),be(this,Io,0)}mount(){Du(this,Io)._++,I(this,Io)===1&&(be(this,Ni,Pm.subscribe(async e=>{e&&(await this.resumePausedMutations(),I(this,vt).onFocus())})),be(this,ji,mc.subscribe(async e=>{e&&(await this.resumePausedMutations(),I(this,vt).onOnline())})))}unmount(){var e,t;Du(this,Io)._--,I(this,Io)===0&&((e=I(this,Ni))==null||e.call(this),be(this,Ni,void 0),(t=I(this,ji))==null||t.call(this),be(this,ji,void 0))}isFetching(e){return I(this,vt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return I(this,Ao).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=I(this,vt).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=I(this,vt).build(this,t),s=r.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Mo(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return I(this,vt).findAll(e).map(({queryKey:t,state:r})=>{const s=r.data;return[t,s]})}setQueryData(e,t,r){const s=this.defaultQueryOptions({queryKey:e}),i=I(this,vt).get(s.queryHash),l=i==null?void 0:i.state.data,u=B2(t,l);if(u!==void 0)return I(this,vt).build(this,s).setData(u,{...r,manual:!0})}setQueriesData(e,t,r){return Nt.batch(()=>I(this,vt).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=I(this,vt).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=I(this,vt);Nt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=I(this,vt);return Nt.batch(()=>(r.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},s=Nt.batch(()=>I(this,vt).findAll(e).map(i=>i.cancel(r)));return Promise.all(s).then(nn).catch(nn)}invalidateQueries(e,t={}){return Nt.batch(()=>(I(this,vt).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},s=Nt.batch(()=>I(this,vt).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let l=i.fetch(void 0,r);return r.throwOnError||(l=l.catch(nn)),i.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(s).then(nn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=I(this,vt).build(this,t);return r.isStaleByTime(Mo(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(nn).catch(nn)}fetchInfiniteQuery(e){return e.behavior=I0(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(nn).catch(nn)}ensureInfiniteQueryData(e){return e.behavior=I0(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return mc.isOnline()?I(this,Ao).resumePausedMutations():Promise.resolve()}getQueryCache(){return I(this,vt)}getMutationCache(){return I(this,Ao)}getDefaultOptions(){return I(this,Do)}setDefaultOptions(e){be(this,Do,e)}setQueryDefaults(e,t){I(this,Pi).set(Ps(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...I(this,Pi).values()],r={};return t.forEach(s=>{tl(e,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(e,t){I(this,Ti).set(Ps(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...I(this,Ti).values()],r={};return t.forEach(s=>{tl(e,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...I(this,Do).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=_m(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===km&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...I(this,Do).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){I(this,vt).clear(),I(this,Ao).clear()}},vt=new WeakMap,Ao=new WeakMap,Do=new WeakMap,Pi=new WeakMap,Ti=new WeakMap,Io=new WeakMap,Ni=new WeakMap,ji=new WeakMap,yb),JS=C.createContext(void 0),ZS=e=>{const t=C.useContext(JS);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},lj=({client:e,children:t})=>(C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(JS.Provider,{value:e,children:t})),ex=C.createContext(!1),uj=()=>C.useContext(ex);ex.Provider;function cj(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var dj=C.createContext(cj()),fj=()=>C.useContext(dj),pj=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},hj=e=>{C.useEffect(()=>{e.clearReset()},[e])},mj=({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(i&&e.data===void 0||WS(r,[e.error,s])),gj=e=>{if(e.suspense){const r=i=>i==="static"?i:Math.max(i??1e3,1e3),s=e.staleTime;e.staleTime=typeof s=="function"?(...i)=>r(s(...i)):r(s),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},vj=(e,t)=>e.isLoading&&e.isFetching&&!t,yj=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,$0=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function bj(e,t,r){var g,w,S,x,b;const s=uj(),i=fj(),l=ZS(),u=l.defaultQueryOptions(e);(w=(g=l.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||w.call(g,u),u._optimisticResults=s?"isRestoring":"optimistic",gj(u),pj(u,i),hj(i);const d=!l.getQueryCache().get(u.queryHash),[p]=C.useState(()=>new t(l,u)),f=p.getOptimisticResult(u),m=!s&&e.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(E=>{const R=m?p.subscribe(Nt.batchCalls(E)):nn;return p.updateResult(),R},[p,m]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),C.useEffect(()=>{p.setOptions(u)},[u,p]),yj(u,f))throw $0(u,p,i);if(mj({result:f,errorResetBoundary:i,throwOnError:u.throwOnError,query:l.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw f.error;if((x=(S=l.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||x.call(S,u,f),u.experimental_prefetchInRender&&!ks&&vj(f,s)){const E=d?$0(u,p,i):(b=l.getQueryCache().get(u.queryHash))==null?void 0:b.promise;E==null||E.catch(nn).finally(()=>{p.updateResult()})}return u.notifyOnChangeProps?f:p.trackResult(f)}function wj(e,t){return bj(e,Z2)}function rp(e,t){const r=ZS(),[s]=C.useState(()=>new sj(r,e));C.useEffect(()=>{s.setOptions(e)},[s,e]);const i=C.useSyncExternalStore(C.useCallback(u=>s.subscribe(Nt.batchCalls(u)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),l=C.useCallback((u,d)=>{s.mutate(u,d).catch(nn)},[s]);if(i.error&&WS(s.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:l,mutateAsync:i.mutate}}/**
92
92
  * @license @tabler/icons-react v3.36.0 - MIT
93
93
  *
94
94
  * This source code is licensed under the MIT license.
@@ -98,59 +98,59 @@ Error generating stack: `+v.message+`
98
98
  *
99
99
  * This source code is licensed under the MIT license.
100
100
  * See the LICENSE file in the root directory of this source tree.
101
- */const Cr=(e,t,r,s)=>{const i=C.forwardRef(({color:l="currentColor",size:u=24,stroke:d=2,title:p,className:f,children:m,...g},w)=>C.createElement("svg",{ref:w,...Sj[e],width:u,height:u,className:["tabler-icon",`tabler-icon-${t}`,f].join(" "),strokeWidth:d,stroke:l,...g},[p&&C.createElement("title",{key:"svg-title"},p),...s.map(([S,x])=>C.createElement(S,x)),...Array.isArray(m)?m:[m]]));return i.displayName=`${r}`,i};/**
101
+ */const Er=(e,t,r,s)=>{const i=C.forwardRef(({color:l="currentColor",size:u=24,stroke:d=2,title:p,className:f,children:m,...g},w)=>C.createElement("svg",{ref:w,...Sj[e],width:u,height:u,className:["tabler-icon",`tabler-icon-${t}`,f].join(" "),strokeWidth:d,stroke:l,...g},[p&&C.createElement("title",{key:"svg-title"},p),...s.map(([S,x])=>C.createElement(S,x)),...Array.isArray(m)?m:[m]]));return i.displayName=`${r}`,i};/**
102
102
  * @license @tabler/icons-react v3.36.0 - MIT
103
103
  *
104
104
  * This source code is licensed under the MIT license.
105
105
  * See the LICENSE file in the root directory of this source tree.
106
- */const xj=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 8v4",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]],Cj=Cr("outline","alert-circle","AlertCircle",xj);/**
106
+ */const xj=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 8v4",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]],Cj=Er("outline","alert-circle","AlertCircle",xj);/**
107
107
  * @license @tabler/icons-react v3.36.0 - MIT
108
108
  *
109
109
  * This source code is licensed under the MIT license.
110
110
  * See the LICENSE file in the root directory of this source tree.
111
- */const Ej=[["path",{d:"M12 12v.01",key:"svg-0"}],["path",{d:"M19.071 4.929c-1.562 -1.562 -6 .337 -9.9 4.243c-3.905 3.905 -5.804 8.337 -4.242 9.9c1.562 1.561 6 -.338 9.9 -4.244c3.905 -3.905 5.804 -8.337 4.242 -9.9",key:"svg-1"}],["path",{d:"M4.929 4.929c-1.562 1.562 .337 6 4.243 9.9c3.905 3.905 8.337 5.804 9.9 4.242c1.561 -1.562 -.338 -6 -4.244 -9.9c-3.905 -3.905 -8.337 -5.804 -9.9 -4.242",key:"svg-2"}]],Rj=Cr("outline","atom","Atom",Ej);/**
111
+ */const Ej=[["path",{d:"M12 12v.01",key:"svg-0"}],["path",{d:"M19.071 4.929c-1.562 -1.562 -6 .337 -9.9 4.243c-3.905 3.905 -5.804 8.337 -4.242 9.9c1.562 1.561 6 -.338 9.9 -4.244c3.905 -3.905 5.804 -8.337 4.242 -9.9",key:"svg-1"}],["path",{d:"M4.929 4.929c-1.562 1.562 .337 6 4.243 9.9c3.905 3.905 8.337 5.804 9.9 4.242c1.561 -1.562 -.338 -6 -4.244 -9.9c-3.905 -3.905 -8.337 -5.804 -9.9 -4.242",key:"svg-2"}]],Rj=Er("outline","atom","Atom",Ej);/**
112
112
  * @license @tabler/icons-react v3.36.0 - MIT
113
113
  *
114
114
  * This source code is licensed under the MIT license.
115
115
  * See the LICENSE file in the root directory of this source tree.
116
- */const _j=[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 11l5 5l5 -5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]],Pj=Cr("outline","download","Download",_j);/**
116
+ */const _j=[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 11l5 5l5 -5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]],kj=Er("outline","download","Download",_j);/**
117
117
  * @license @tabler/icons-react v3.36.0 - MIT
118
118
  *
119
119
  * This source code is licensed under the MIT license.
120
120
  * See the LICENSE file in the root directory of this source tree.
121
- */const kj=[["path",{d:"M10.585 10.587a2 2 0 0 0 2.829 2.828",key:"svg-0"}],["path",{d:"M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87",key:"svg-1"}],["path",{d:"M3 3l18 18",key:"svg-2"}]],Tj=Cr("outline","eye-off","EyeOff",kj);/**
121
+ */const Pj=[["path",{d:"M10.585 10.587a2 2 0 0 0 2.829 2.828",key:"svg-0"}],["path",{d:"M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87",key:"svg-1"}],["path",{d:"M3 3l18 18",key:"svg-2"}]],Tj=Er("outline","eye-off","EyeOff",Pj);/**
122
122
  * @license @tabler/icons-react v3.36.0 - MIT
123
123
  *
124
124
  * This source code is licensed under the MIT license.
125
125
  * See the LICENSE file in the root directory of this source tree.
126
- */const Nj=[["path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0",key:"svg-0"}],["path",{d:"M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6",key:"svg-1"}]],jj=Cr("outline","eye","Eye",Nj);/**
126
+ */const Nj=[["path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0",key:"svg-0"}],["path",{d:"M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6",key:"svg-1"}]],jj=Er("outline","eye","Eye",Nj);/**
127
127
  * @license @tabler/icons-react v3.36.0 - MIT
128
128
  *
129
129
  * This source code is licensed under the MIT license.
130
130
  * See the LICENSE file in the root directory of this source tree.
131
- */const Oj=[["path",{d:"M9 3l6 0",key:"svg-0"}],["path",{d:"M10 9l4 0",key:"svg-1"}],["path",{d:"M10 3v6l-4 11a.7 .7 0 0 0 .5 1h11a.7 .7 0 0 0 .5 -1l-4 -11v-6",key:"svg-2"}]],Aj=Cr("outline","flask","Flask",Oj);/**
131
+ */const Oj=[["path",{d:"M9 3l6 0",key:"svg-0"}],["path",{d:"M10 9l4 0",key:"svg-1"}],["path",{d:"M10 3v6l-4 11a.7 .7 0 0 0 .5 1h11a.7 .7 0 0 0 .5 -1l-4 -11v-6",key:"svg-2"}]],Aj=Er("outline","flask","Flask",Oj);/**
132
132
  * @license @tabler/icons-react v3.36.0 - MIT
133
133
  *
134
134
  * This source code is licensed under the MIT license.
135
135
  * See the LICENSE file in the root directory of this source tree.
136
- */const Dj=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 9h.01",key:"svg-1"}],["path",{d:"M11 12h1v4h1",key:"svg-2"}]],Nm=Cr("outline","info-circle","InfoCircle",Dj);/**
136
+ */const Dj=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 9h.01",key:"svg-1"}],["path",{d:"M11 12h1v4h1",key:"svg-2"}]],Nm=Er("outline","info-circle","InfoCircle",Dj);/**
137
137
  * @license @tabler/icons-react v3.36.0 - MIT
138
138
  *
139
139
  * This source code is licensed under the MIT license.
140
140
  * See the LICENSE file in the root directory of this source tree.
141
- */const Ij=[["path",{d:"M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z",key:"svg-0"}]],Mj=Cr("outline","moon","Moon",Ij);/**
141
+ */const Ij=[["path",{d:"M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z",key:"svg-0"}]],Mj=Er("outline","moon","Moon",Ij);/**
142
142
  * @license @tabler/icons-react v3.36.0 - MIT
143
143
  *
144
144
  * This source code is licensed under the MIT license.
145
145
  * See the LICENSE file in the root directory of this source tree.
146
- */const $j=[["path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7",key:"svg-1"}]],Lj=Cr("outline","sun","Sun",$j);/**
146
+ */const $j=[["path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7",key:"svg-1"}]],Lj=Er("outline","sun","Sun",$j);/**
147
147
  * @license @tabler/icons-react v3.36.0 - MIT
148
148
  *
149
149
  * This source code is licensed under the MIT license.
150
150
  * See the LICENSE file in the root directory of this source tree.
151
- */const Fj=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],zj=Cr("outline","x","X",Fj),Vj=C.forwardRef(({onStructChange:e,initialMolfile:t},r)=>{const s=C.useRef(null),[i,l]=C.useState(!1),[u,d]=C.useState(null);return C.useImperativeHandle(r,()=>({getSmiles:async()=>u?await u.getSmiles():"",setMolecule:p=>{u&&u.setMolecule(p)}})),C.useEffect(()=>{const p=s.current;if(!p)return;const f=()=>{if(p.contentWindow&&p.contentWindow.ketcher){const m=p.contentWindow.ketcher;d(m),l(!0)}else setTimeout(f,500)};p.onload=f,f()},[]),C.useEffect(()=>{i&&u&&t&&u.setMolecule(t)},[i,u,t]),C.useEffect(()=>{if(u&&e){let p="";const f=setInterval(async()=>{try{const m=await u.getSmiles();m!==p&&(p=m,e(m))}catch{}},1500);return()=>clearInterval(f)}},[u,e]),y.jsxs(he,{pos:"relative",h:500,w:"100%",style:{border:"1px solid #dee2e6",borderRadius:"4px"},children:[y.jsx(im,{visible:!i}),!i&&y.jsx(at,{ta:"center",mt:"md",children:"Loading Ketcher..."}),y.jsx("iframe",{ref:s,src:"/ketcher/index.html?hiddenControls=open",width:"100%",height:"100%",style:{border:"none"},title:"Ketcher"})]})});function Bj(e){if(!/^[0-9a-zA-Z-]+$/.test(e))throw new Error(`[@mantine/use-form] Form name "${e}" is invalid, it should contain only letters, numbers and dashes`)}const Uj=typeof window<"u"?C.useLayoutEffect:C.useEffect;function Vt(e,t){Uj(()=>{if(e)return window.addEventListener(e,t),()=>window.removeEventListener(e,t)},[e])}function Hj(e,t){e&&Bj(e),Vt(`mantine-form:${e}:set-field-value`,r=>t.setFieldValue(r.detail.path,r.detail.value)),Vt(`mantine-form:${e}:set-values`,r=>t.setValues(r.detail)),Vt(`mantine-form:${e}:set-initial-values`,r=>t.setInitialValues(r.detail)),Vt(`mantine-form:${e}:set-errors`,r=>t.setErrors(r.detail)),Vt(`mantine-form:${e}:set-field-error`,r=>t.setFieldError(r.detail.path,r.detail.error)),Vt(`mantine-form:${e}:clear-field-error`,r=>t.clearFieldError(r.detail)),Vt(`mantine-form:${e}:clear-errors`,t.clearErrors),Vt(`mantine-form:${e}:reset`,t.reset),Vt(`mantine-form:${e}:validate`,t.validate),Vt(`mantine-form:${e}:validate-field`,r=>t.validateField(r.detail)),Vt(`mantine-form:${e}:reorder-list-item`,r=>t.reorderListItem(r.detail.path,r.detail.payload)),Vt(`mantine-form:${e}:remove-list-item`,r=>t.removeListItem(r.detail.path,r.detail.index)),Vt(`mantine-form:${e}:insert-list-item`,r=>t.insertListItem(r.detail.path,r.detail.item,r.detail.index)),Vt(`mantine-form:${e}:set-dirty`,r=>t.setDirty(r.detail)),Vt(`mantine-form:${e}:set-touched`,r=>t.setTouched(r.detail)),Vt(`mantine-form:${e}:reset-dirty`,r=>t.resetDirty(r.detail)),Vt(`mantine-form:${e}:reset-touched`,t.resetTouched)}function Wj(e){return t=>{if(!t)e(t);else if(typeof t=="function")e(t);else if(typeof t=="object"&&"nativeEvent"in t){const{currentTarget:r}=t;r instanceof HTMLInputElement?r.type==="checkbox"?e(r.checked):e(r.value):(r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement)&&e(r.value)}else e(t)}}function Xp(e){return e===null||typeof e!="object"?{}:Object.keys(e).reduce((t,r)=>{const s=e[r];return s!=null&&s!==!1&&(t[r]=s),t},{})}function Qj(e){const[t,r]=C.useState(Xp(e)),s=C.useRef(t),i=C.useCallback(p=>{r(f=>{const m=Xp(typeof p=="function"?p(f):p);return s.current=m,m})},[]),l=C.useCallback(()=>i({}),[]),u=C.useCallback(p=>{s.current[p]!==void 0&&i(f=>{const m={...f};return delete m[p],m})},[t]),d=C.useCallback((p,f)=>{f==null||f===!1?u(p):s.current[p]!==f&&i(m=>({...m,[p]:f}))},[t]);return{errorsState:t,setErrors:i,clearErrors:l,setFieldError:d,clearFieldError:u}}function Yp(e,t){if(t===null||typeof t!="object")return{};const r={...t};return Object.keys(t).forEach(s=>{s.includes(`${String(e)}.`)&&delete r[s]}),r}function L0(e,t){const r=e.substring(t.length+1).split(".")[0];return parseInt(r,10)}function F0(e,t,r,s){if(t===void 0)return r;const i=`${String(e)}`;let l=r;s===-1&&(l=Yp(`${i}.${t}`,l));const u={...l},d=new Set;return Object.entries(l).filter(([p])=>{if(!p.startsWith(`${i}.`))return!1;const f=L0(p,i);return Number.isNaN(f)?!1:f>=t}).forEach(([p,f])=>{const m=L0(p,i),g=p.replace(`${i}.${m}`,`${i}.${m+s}`);u[g]=f,d.add(g),d.has(p)||delete u[p]}),u}function qj(e,{from:t,to:r},s){const i=`${e}.${t}`,l=`${e}.${r}`,u={...s},d=new Set;return Object.keys(s).forEach(p=>{if(d.has(p))return;let f,m;if(p.startsWith(i)?(f=p,m=p.replace(i,l)):p.startsWith(l)&&(f=p.replace(l,i),m=p),f&&m){const g=u[f],w=u[m];w===void 0?delete u[f]:u[f]=w,g===void 0?delete u[m]:u[m]=g,d.add(f),d.add(m)}}),u}function z0(e,t,r){typeof r.value=="object"&&(r.value=mi(r.value)),!r.enumerable||r.get||r.set||!r.configurable||!r.writable||t==="__proto__"?Object.defineProperty(e,t,r):e[t]=r.value}function mi(e){if(typeof e!="object")return e;var t=0,r,s,i,l=Object.prototype.toString.call(e);if(l==="[object Object]"?i=Object.create(e.__proto__||null):l==="[object Array]"?i=Array(e.length):l==="[object Set]"?(i=new Set,e.forEach(function(u){i.add(mi(u))})):l==="[object Map]"?(i=new Map,e.forEach(function(u,d){i.set(mi(d),mi(u))})):l==="[object Date]"?i=new Date(+e):l==="[object RegExp]"?i=new RegExp(e.source,e.flags):l==="[object DataView]"?i=new e.constructor(mi(e.buffer)):l==="[object ArrayBuffer]"?i=e.slice(0):l.slice(-6)==="Array]"&&(i=new e.constructor(e)),i){for(s=Object.getOwnPropertySymbols(e);t<s.length;t++)z0(i,s[t],Object.getOwnPropertyDescriptor(e,s[t]));for(t=0,s=Object.getOwnPropertyNames(e);t<s.length;t++)Object.hasOwnProperty.call(i,r=s[t])&&i[r]===e[r]||z0(i,r,Object.getOwnPropertyDescriptor(e,r))}return i||e}function tx(e){return typeof e!="string"?[]:e.split(".")}function Bt(e,t){const r=tx(e);if(r.length===0||typeof t!="object"||t===null)return;let s=t[r[0]];for(let i=1;i<r.length&&s!=null;i+=1)s=s[r[i]];return s}function vl(e,t,r){const s=tx(e);if(s.length===0)return r;const i=mi(r);if(s.length===1)return i[s[0]]=t,i;let l=i[s[0]];for(let u=1;u<s.length-1;u+=1){if(l===void 0)return i;l=l[s[u]]}return l[s[s.length-1]]=t,i}function Kj(e,{from:t,to:r},s){const i=Bt(e,s);if(!Array.isArray(i))return s;const l=[...i],u=i[t];return l.splice(t,1),l.splice(r,0,u),vl(e,l,s)}function Gj(e,t,r,s){const i=Bt(e,s);if(!Array.isArray(i))return s;const l=[...i];return l.splice(typeof r=="number"?r:l.length,0,t),vl(e,l,s)}function Xj(e,t,r){const s=Bt(e,r);return Array.isArray(s)?vl(e,s.filter((i,l)=>l!==t),r):r}function Yj(e,t,r,s){const i=Bt(e,s);if(!Array.isArray(i)||i.length<=r)return s;const l=[...i];return l[r]=t,vl(e,l,s)}function Jj({$values:e,$errors:t,$status:r}){const s=C.useCallback((d,p)=>{r.clearFieldDirty(d),t.setErrors(f=>qj(d,p,f)),e.setValues({values:Kj(d,p,e.refValues.current),updateState:!0})},[]),i=C.useCallback((d,p)=>{r.clearFieldDirty(d),t.setErrors(f=>F0(d,p,f,-1)),e.setValues({values:Xj(d,p,e.refValues.current),updateState:!0})},[]),l=C.useCallback((d,p,f)=>{r.clearFieldDirty(d),t.setErrors(m=>F0(d,f,m,1)),e.setValues({values:Gj(d,p,f,e.refValues.current),updateState:!0})},[]),u=C.useCallback((d,p,f)=>{r.clearFieldDirty(d),e.setValues({values:Yj(d,f,p,e.refValues.current),updateState:!0})},[]);return{reorderListItem:s,removeListItem:i,insertListItem:l,replaceListItem:u}}var op,V0;function Zj(){return V0||(V0=1,op=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var s,i,l;if(Array.isArray(t)){if(s=t.length,s!=r.length)return!1;for(i=s;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(l=Object.keys(t),s=l.length,s!==Object.keys(r).length)return!1;for(i=s;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,l[i]))return!1;for(i=s;i--!==0;){var u=l[i];if(!e(t[u],r[u]))return!1}return!0}return t!==t&&r!==r}),op}var eO=Zj();const Uu=vc(eO);function La(e,t){const r=Object.keys(e);if(typeof t=="string"){const s=r.filter(i=>i.startsWith(`${t}.`));return e[t]||s.some(i=>e[i])||!1}return r.some(s=>e[s])}function tO({initialDirty:e,initialTouched:t,mode:r,$values:s}){const[i,l]=C.useState(t),[u,d]=C.useState(e),p=C.useRef(t),f=C.useRef(e),m=C.useCallback(O=>{const L=typeof O=="function"?O(p.current):O;p.current=L,r==="controlled"&&l(L)},[]),g=C.useCallback((O,L=!1)=>{const M=typeof O=="function"?O(f.current):O;f.current=M,(r==="controlled"||L)&&d(M)},[]),w=C.useCallback(()=>m({}),[]),S=C.useCallback(O=>{const L=O?{...s.refValues.current,...O}:s.refValues.current;s.setValuesSnapshot(L),g({})},[]),x=C.useCallback((O,L)=>{m(M=>La(M,O)===L?M:{...M,[O]:L})},[]),b=C.useCallback((O,L,M)=>{g(Q=>La(Q,O)===L?Q:{...Q,[O]:L},M)},[]),E=C.useCallback((O,L)=>{const M=La(f.current,O),Q=!Uu(Bt(O,s.getValuesSnapshot()),L),q=Yp(O,f.current);q[O]=Q,g(q,M!==Q)},[]),R=C.useCallback(O=>La(p.current,O),[]),k=C.useCallback(O=>g(L=>{if(typeof O!="string")return L;const M=Yp(O,L);return delete M[O],Uu(M,L)?L:M}),[]),P=C.useCallback(O=>{if(O){const M=Bt(O,f.current);if(typeof M=="boolean")return M;const Q=Bt(O,s.refValues.current),q=Bt(O,s.valuesSnapshot.current);return!Uu(Q,q)}return Object.keys(f.current).length>0?La(f.current):!Uu(s.refValues.current,s.valuesSnapshot.current)},[]),T=C.useCallback(()=>f.current,[]),j=C.useCallback(()=>p.current,[]);return{touchedState:i,dirtyState:u,touchedRef:p,dirtyRef:f,setTouched:m,setDirty:g,resetDirty:S,resetTouched:w,isTouched:R,setFieldTouched:x,setFieldDirty:b,setTouchedState:l,setDirtyState:d,clearFieldDirty:k,isDirty:P,getDirty:T,getTouched:j,setCalculatedFieldDirty:E}}function nO({initialValues:e,onValuesChange:t,mode:r}){const s=C.useRef(!1),[i,l]=C.useState(e||{}),u=C.useRef(i),d=C.useRef(i),p=C.useCallback(({values:b,subscribers:E,updateState:R=!0,mergeWithPreviousValues:k=!0})=>{const P=u.current,T=b instanceof Function?b(u.current):b,j=k?{...P,...T}:T;u.current=j,R&&l(j),t==null||t(j,P),E==null||E.filter(Boolean).forEach(O=>O({updatedValues:j,previousValues:P}))},[t]),f=C.useCallback(b=>{var k;const E=Bt(b.path,u.current),R=b.value instanceof Function?b.value(E):b.value;if(E!==R){const P=u.current,T=vl(b.path,R,u.current);p({values:T,updateState:b.updateState}),(k=b.subscribers)==null||k.filter(Boolean).forEach(j=>j({path:b.path,updatedValues:T,previousValues:P}))}},[p]),m=C.useCallback(b=>{d.current=b},[]),g=C.useCallback((b,E)=>{s.current||(s.current=!0,p({values:b,updateState:r==="controlled"}),m(b),E())},[p]),w=C.useCallback(()=>{p({values:d.current,updateState:!0,mergeWithPreviousValues:!1})},[p]),S=C.useCallback(()=>u.current,[]),x=C.useCallback(()=>d.current,[]);return{initialized:s,stateValues:i,refValues:u,valuesSnapshot:d,setValues:p,setFieldValue:f,resetValues:w,setValuesSnapshot:m,initialize:g,getValues:S,getValuesSnapshot:x}}function rO({$status:e}){const t=C.useRef({}),r=C.useCallback((i,l)=>{C.useEffect(()=>(t.current[i]=t.current[i]||[],t.current[i].push(l),()=>{t.current[i]=t.current[i].filter(u=>u!==l)}),[l])},[]),s=C.useCallback(i=>t.current[i]?t.current[i].map(l=>u=>l({previousValue:Bt(i,u.previousValues),value:Bt(i,u.updatedValues),touched:e.isTouched(i),dirty:e.isDirty(i)})):[],[]);return{subscribers:t,watch:r,getFieldSubscribers:s}}function B0(e,t){return e?`${e}-${t.toString()}`:t.toString()}const Hu=Symbol("root-rule");function U0(e){const t=Xp(e);return{hasErrors:Object.keys(t).length>0,errors:t}}function Jp(e,t,r="",s={}){return typeof e!="object"||e===null?s:Object.keys(e).reduce((i,l)=>{const u=e[l],d=`${r===""?"":`${r}.`}${l}`,p=Bt(d,t);let f=!1;return typeof u=="function"&&(i[d]=u(p,t,d)),typeof u=="object"&&Array.isArray(p)&&(f=!0,p.forEach((m,g)=>Jp(u,t,`${d}.${g}`,i)),Hu in u&&(i[d]=u[Hu](p,t,d))),typeof u=="object"&&typeof p=="object"&&p!==null&&(f||Jp(u,t,d,i),Hu in u&&(i[d]=u[Hu](p,t,d))),i},s)}function Zp(e,t){return U0(typeof e=="function"?e(t):Jp(e,t))}function Wu(e,t,r){if(typeof e!="string")return{hasError:!1,error:null};const s=Zp(t,r),i=Object.keys(s.errors).find(l=>e.split(".").every((u,d)=>u===l.split(".")[d]));return{hasError:!!i,error:i?s.errors[i]:null}}const oO="__MANTINE_FORM_INDEX__";function H0(e,t){return t?typeof t=="boolean"?t:Array.isArray(t)?t.includes(e.replace(/[.][0-9]+/g,`.${oO}`)):!1:!1}function nx({name:e,mode:t="controlled",initialValues:r,initialErrors:s={},initialDirty:i={},initialTouched:l={},clearInputErrorOnChange:u=!0,validateInputOnChange:d=!1,validateInputOnBlur:p=!1,onValuesChange:f,transformValues:m=b=>b,enhanceGetInputProps:g,validate:w,onSubmitPreventDefault:S="always",touchTrigger:x="change"}={}){const b=Qj(s),E=nO({initialValues:r,onValuesChange:f,mode:t}),R=tO({initialDirty:i,initialTouched:l,$values:E,mode:t}),k=Jj({$values:E,$errors:b,$status:R}),P=rO({$status:R}),[T,j]=C.useState(0),[O,L]=C.useState({}),[M,Q]=C.useState(!1),q=C.useCallback(()=>{E.resetValues(),b.clearErrors(),R.resetDirty(),R.resetTouched(),t==="uncontrolled"&&j(X=>X+1)},[]),te=C.useCallback(X=>{u&&b.clearErrors(),t==="uncontrolled"&&j(re=>re+1),Object.keys(P.subscribers.current).forEach(re=>{const ve=Bt(re,E.refValues.current),fe=Bt(re,X);ve!==fe&&P.getFieldSubscribers(re).forEach(we=>we({previousValues:X,updatedValues:E.refValues.current}))})},[u]),ee=C.useCallback(X=>{const re=E.refValues.current;E.initialize(X,()=>t==="uncontrolled"&&j(ve=>ve+1)),te(re)},[te]),ne=C.useCallback((X,re,ve)=>{const fe=H0(X,d),we=re instanceof Function?re(Bt(X,E.refValues.current)):re;R.setCalculatedFieldDirty(X,we),x==="change"&&R.setFieldTouched(X,!0),!fe&&u&&b.clearFieldError(X),E.setFieldValue({path:X,value:re,updateState:t==="controlled",subscribers:[...P.getFieldSubscribers(X),fe?je=>{const Ue=Wu(X,w,je.updatedValues);Ue.hasError?b.setFieldError(X,Ue.error):b.clearFieldError(X)}:null,(ve==null?void 0:ve.forceUpdate)!==!1&&t!=="controlled"?()=>L(je=>({...je,[X]:(je[X]||0)+1})):null]})},[f,w]),G=C.useCallback(X=>{const re=E.refValues.current;E.setValues({values:X,updateState:t==="controlled"}),te(re)},[f,te]),Z=C.useCallback(()=>{const X=Zp(w,E.refValues.current);return b.setErrors(X.errors),X},[w]),B=C.useCallback(X=>{const re=Wu(X,w,E.refValues.current);return re.hasError?b.setFieldError(X,re.error):b.clearFieldError(X),re},[w]),U=(X,{type:re="input",withError:ve=!0,withFocus:fe=!0,...we}={})=>{const Ue={onChange:Wj(Ze=>ne(X,Ze,{forceUpdate:!1})),"data-path":B0(e,X)};return ve&&(Ue.error=b.errorsState[X]),re==="checkbox"?Ue[t==="controlled"?"checked":"defaultChecked"]=Bt(X,E.refValues.current):Ue[t==="controlled"?"value":"defaultValue"]=Bt(X,E.refValues.current),fe&&(Ue.onFocus=()=>R.setFieldTouched(X,!0),Ue.onBlur=()=>{if(H0(X,p)){const Ze=Wu(X,w,E.refValues.current);Ze.hasError?b.setFieldError(X,Ze.error):b.clearFieldError(X)}}),Object.assign(Ue,g==null?void 0:g({inputProps:Ue,field:X,options:{type:re,withError:ve,withFocus:fe,...we},form:ye}))},A=(X,re)=>ve=>{S==="always"&&(ve==null||ve.preventDefault());const fe=Z();if(fe.hasErrors)S==="validation-failed"&&(ve==null||ve.preventDefault()),re==null||re(fe.errors,E.refValues.current,ve);else{const we=X==null?void 0:X(m(E.refValues.current),ve);we instanceof Promise&&(Q(!0),we.finally(()=>Q(!1)))}},V=X=>m(X||E.refValues.current),W=C.useCallback(X=>{X.preventDefault(),q()},[]),N=C.useCallback(X=>X?!Wu(X,w,E.refValues.current).hasError:!Zp(w,E.refValues.current).hasErrors,[w]),F=X=>`${T}-${X}-${O[X]||0}`,le=C.useCallback(X=>document.querySelector(`[data-path="${B0(e,X)}"]`),[]),ye={watch:P.watch,initialized:E.initialized.current,values:E.stateValues,getValues:E.getValues,getInitialValues:E.getValuesSnapshot,setInitialValues:E.setValuesSnapshot,initialize:ee,setValues:G,setFieldValue:ne,submitting:M,setSubmitting:Q,errors:b.errorsState,setErrors:b.setErrors,setFieldError:b.setFieldError,clearFieldError:b.clearFieldError,clearErrors:b.clearErrors,resetDirty:R.resetDirty,setTouched:R.setTouched,setDirty:R.setDirty,isTouched:R.isTouched,resetTouched:R.resetTouched,isDirty:R.isDirty,getTouched:R.getTouched,getDirty:R.getDirty,reorderListItem:k.reorderListItem,insertListItem:k.insertListItem,removeListItem:k.removeListItem,replaceListItem:k.replaceListItem,reset:q,validate:Z,validateField:B,getInputProps:U,onSubmit:A,onReset:W,isValid:N,getTransformedValues:V,key:F,getInputNode:le};return Hj(e,ye),ye}function rx(e,t){return function(){return e.apply(t,arguments)}}const{toString:sO}=Object.prototype,{getPrototypeOf:jm}=Object,{iterator:Bc,toStringTag:ox}=Symbol,Uc=(e=>t=>{const r=sO.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),rr=e=>(e=e.toLowerCase(),t=>Uc(t)===e),Hc=e=>t=>typeof t===e,{isArray:qi}=Array,Mi=Hc("undefined");function yl(e){return e!==null&&!Mi(e)&&e.constructor!==null&&!Mi(e.constructor)&&hn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sx=rr("ArrayBuffer");function iO(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&sx(e.buffer),t}const aO=Hc("string"),hn=Hc("function"),ix=Hc("number"),bl=e=>e!==null&&typeof e=="object",lO=e=>e===!0||e===!1,Zu=e=>{if(Uc(e)!=="object")return!1;const t=jm(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ox in e)&&!(Bc in e)},uO=e=>{if(!bl(e)||yl(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},cO=rr("Date"),dO=rr("File"),fO=rr("Blob"),pO=rr("FileList"),hO=e=>bl(e)&&hn(e.pipe),mO=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||hn(e.append)&&((t=Uc(e))==="formdata"||t==="object"&&hn(e.toString)&&e.toString()==="[object FormData]"))},gO=rr("URLSearchParams"),[vO,yO,bO,wO]=["ReadableStream","Request","Response","Headers"].map(rr),SO=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function wl(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let s,i;if(typeof e!="object"&&(e=[e]),qi(e))for(s=0,i=e.length;s<i;s++)t.call(null,e[s],s,e);else{if(yl(e))return;const l=r?Object.getOwnPropertyNames(e):Object.keys(e),u=l.length;let d;for(s=0;s<u;s++)d=l[s],t.call(null,e[d],d,e)}}function ax(e,t){if(yl(e))return null;t=t.toLowerCase();const r=Object.keys(e);let s=r.length,i;for(;s-- >0;)if(i=r[s],t===i.toLowerCase())return i;return null}const hs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,lx=e=>!Mi(e)&&e!==hs;function eh(){const{caseless:e,skipUndefined:t}=lx(this)&&this||{},r={},s=(i,l)=>{const u=e&&ax(r,l)||l;Zu(r[u])&&Zu(i)?r[u]=eh(r[u],i):Zu(i)?r[u]=eh({},i):qi(i)?r[u]=i.slice():(!t||!Mi(i))&&(r[u]=i)};for(let i=0,l=arguments.length;i<l;i++)arguments[i]&&wl(arguments[i],s);return r}const xO=(e,t,r,{allOwnKeys:s}={})=>(wl(t,(i,l)=>{r&&hn(i)?e[l]=rx(i,r):e[l]=i},{allOwnKeys:s}),e),CO=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),EO=(e,t,r,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},RO=(e,t,r,s)=>{let i,l,u;const d={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),l=i.length;l-- >0;)u=i[l],(!s||s(u,e,t))&&!d[u]&&(t[u]=e[u],d[u]=!0);e=r!==!1&&jm(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},_O=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const s=e.indexOf(t,r);return s!==-1&&s===r},PO=e=>{if(!e)return null;if(qi(e))return e;let t=e.length;if(!ix(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},kO=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&jm(Uint8Array)),TO=(e,t)=>{const s=(e&&e[Bc]).call(e);let i;for(;(i=s.next())&&!i.done;){const l=i.value;t.call(e,l[0],l[1])}},NO=(e,t)=>{let r;const s=[];for(;(r=e.exec(t))!==null;)s.push(r);return s},jO=rr("HTMLFormElement"),OO=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,s,i){return s.toUpperCase()+i}),W0=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),AO=rr("RegExp"),ux=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),s={};wl(r,(i,l)=>{let u;(u=t(i,l,e))!==!1&&(s[l]=u||i)}),Object.defineProperties(e,s)},DO=e=>{ux(e,(t,r)=>{if(hn(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const s=e[r];if(hn(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},IO=(e,t)=>{const r={},s=i=>{i.forEach(l=>{r[l]=!0})};return qi(e)?s(e):s(String(e).split(t)),r},MO=()=>{},$O=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function LO(e){return!!(e&&hn(e.append)&&e[ox]==="FormData"&&e[Bc])}const FO=e=>{const t=new Array(10),r=(s,i)=>{if(bl(s)){if(t.indexOf(s)>=0)return;if(yl(s))return s;if(!("toJSON"in s)){t[i]=s;const l=qi(s)?[]:{};return wl(s,(u,d)=>{const p=r(u,i+1);!Mi(p)&&(l[d]=p)}),t[i]=void 0,l}}return s};return r(e,0)},zO=rr("AsyncFunction"),VO=e=>e&&(bl(e)||hn(e))&&hn(e.then)&&hn(e.catch),cx=((e,t)=>e?setImmediate:t?((r,s)=>(hs.addEventListener("message",({source:i,data:l})=>{i===hs&&l===r&&s.length&&s.shift()()},!1),i=>{s.push(i),hs.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",hn(hs.postMessage)),BO=typeof queueMicrotask<"u"?queueMicrotask.bind(hs):typeof process<"u"&&process.nextTick||cx,UO=e=>e!=null&&hn(e[Bc]),J={isArray:qi,isArrayBuffer:sx,isBuffer:yl,isFormData:mO,isArrayBufferView:iO,isString:aO,isNumber:ix,isBoolean:lO,isObject:bl,isPlainObject:Zu,isEmptyObject:uO,isReadableStream:vO,isRequest:yO,isResponse:bO,isHeaders:wO,isUndefined:Mi,isDate:cO,isFile:dO,isBlob:fO,isRegExp:AO,isFunction:hn,isStream:hO,isURLSearchParams:gO,isTypedArray:kO,isFileList:pO,forEach:wl,merge:eh,extend:xO,trim:SO,stripBOM:CO,inherits:EO,toFlatObject:RO,kindOf:Uc,kindOfTest:rr,endsWith:_O,toArray:PO,forEachEntry:TO,matchAll:NO,isHTMLForm:jO,hasOwnProperty:W0,hasOwnProp:W0,reduceDescriptors:ux,freezeMethods:DO,toObjectSet:IO,toCamelCase:OO,noop:MO,toFiniteNumber:$O,findKey:ax,global:hs,isContextDefined:lx,isSpecCompliantForm:LO,toJSONObject:FO,isAsyncFn:zO,isThenable:VO,setImmediate:cx,asap:BO,isIterable:UO};function Ve(e,t,r,s,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),s&&(this.request=s),i&&(this.response=i,this.status=i.status?i.status:null)}J.inherits(Ve,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.status}}});const dx=Ve.prototype,fx={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{fx[e]={value:e}});Object.defineProperties(Ve,fx);Object.defineProperty(dx,"isAxiosError",{value:!0});Ve.from=(e,t,r,s,i,l)=>{const u=Object.create(dx);J.toFlatObject(e,u,function(m){return m!==Error.prototype},f=>f!=="isAxiosError");const d=e&&e.message?e.message:"Error",p=t==null&&e?e.code:t;return Ve.call(u,d,p,r,s,i),e&&u.cause==null&&Object.defineProperty(u,"cause",{value:e,configurable:!0}),u.name=e&&e.name||"Error",l&&Object.assign(u,l),u};const HO=null;function th(e){return J.isPlainObject(e)||J.isArray(e)}function px(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function Q0(e,t,r){return e?e.concat(t).map(function(i,l){return i=px(i),!r&&l?"["+i+"]":i}).join(r?".":""):t}function WO(e){return J.isArray(e)&&!e.some(th)}const QO=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function Wc(e,t,r){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=J.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,E){return!J.isUndefined(E[b])});const s=r.metaTokens,i=r.visitor||m,l=r.dots,u=r.indexes,p=(r.Blob||typeof Blob<"u"&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(i))throw new TypeError("visitor must be a function");function f(x){if(x===null)return"";if(J.isDate(x))return x.toISOString();if(J.isBoolean(x))return x.toString();if(!p&&J.isBlob(x))throw new Ve("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(x)||J.isTypedArray(x)?p&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function m(x,b,E){let R=x;if(x&&!E&&typeof x=="object"){if(J.endsWith(b,"{}"))b=s?b:b.slice(0,-2),x=JSON.stringify(x);else if(J.isArray(x)&&WO(x)||(J.isFileList(x)||J.endsWith(b,"[]"))&&(R=J.toArray(x)))return b=px(b),R.forEach(function(P,T){!(J.isUndefined(P)||P===null)&&t.append(u===!0?Q0([b],T,l):u===null?b:b+"[]",f(P))}),!1}return th(x)?!0:(t.append(Q0(E,b,l),f(x)),!1)}const g=[],w=Object.assign(QO,{defaultVisitor:m,convertValue:f,isVisitable:th});function S(x,b){if(!J.isUndefined(x)){if(g.indexOf(x)!==-1)throw Error("Circular reference detected in "+b.join("."));g.push(x),J.forEach(x,function(R,k){(!(J.isUndefined(R)||R===null)&&i.call(t,R,J.isString(k)?k.trim():k,b,w))===!0&&S(R,b?b.concat(k):[k])}),g.pop()}}if(!J.isObject(e))throw new TypeError("data must be an object");return S(e),t}function q0(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Om(e,t){this._pairs=[],e&&Wc(e,this,t)}const hx=Om.prototype;hx.append=function(t,r){this._pairs.push([t,r])};hx.toString=function(t){const r=t?function(s){return t.call(this,s,q0)}:q0;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function qO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function mx(e,t,r){if(!t)return e;const s=r&&r.encode||qO;J.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let l;if(i?l=i(t,r):l=J.isURLSearchParams(t)?t.toString():new Om(t,r).toString(s),l){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class K0{constructor(){this.handlers=[]}use(t,r,s){return this.handlers.push({fulfilled:t,rejected:r,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){J.forEach(this.handlers,function(s){s!==null&&t(s)})}}const gx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},KO=typeof URLSearchParams<"u"?URLSearchParams:Om,GO=typeof FormData<"u"?FormData:null,XO=typeof Blob<"u"?Blob:null,YO={isBrowser:!0,classes:{URLSearchParams:KO,FormData:GO,Blob:XO},protocols:["http","https","file","blob","url","data"]},Am=typeof window<"u"&&typeof document<"u",nh=typeof navigator=="object"&&navigator||void 0,JO=Am&&(!nh||["ReactNative","NativeScript","NS"].indexOf(nh.product)<0),ZO=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",eA=Am&&window.location.href||"http://localhost",tA=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Am,hasStandardBrowserEnv:JO,hasStandardBrowserWebWorkerEnv:ZO,navigator:nh,origin:eA},Symbol.toStringTag,{value:"Module"})),Xt={...tA,...YO};function nA(e,t){return Wc(e,new Xt.classes.URLSearchParams,{visitor:function(r,s,i,l){return Xt.isNode&&J.isBuffer(r)?(this.append(s,r.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}function rA(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function oA(e){const t={},r=Object.keys(e);let s;const i=r.length;let l;for(s=0;s<i;s++)l=r[s],t[l]=e[l];return t}function vx(e){function t(r,s,i,l){let u=r[l++];if(u==="__proto__")return!0;const d=Number.isFinite(+u),p=l>=r.length;return u=!u&&J.isArray(i)?i.length:u,p?(J.hasOwnProp(i,u)?i[u]=[i[u],s]:i[u]=s,!d):((!i[u]||!J.isObject(i[u]))&&(i[u]=[]),t(r,s,i[u],l)&&J.isArray(i[u])&&(i[u]=oA(i[u])),!d)}if(J.isFormData(e)&&J.isFunction(e.entries)){const r={};return J.forEachEntry(e,(s,i)=>{t(rA(s),i,r,0)}),r}return null}function sA(e,t,r){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(r||JSON.stringify)(e)}const Sl={transitional:gx,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const s=r.getContentType()||"",i=s.indexOf("application/json")>-1,l=J.isObject(t);if(l&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return i?JSON.stringify(vx(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t)||J.isReadableStream(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(l){if(s.indexOf("application/x-www-form-urlencoded")>-1)return nA(t,this.formSerializer).toString();if((d=J.isFileList(t))||s.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return Wc(d?{"files[]":t}:t,p&&new p,this.formSerializer)}}return l||i?(r.setContentType("application/json",!1),sA(t)):t}],transformResponse:[function(t){const r=this.transitional||Sl.transitional,s=r&&r.forcedJSONParsing,i=this.responseType==="json";if(J.isResponse(t)||J.isReadableStream(t))return t;if(t&&J.isString(t)&&(s&&!this.responseType||i)){const u=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(d){if(u)throw d.name==="SyntaxError"?Ve.from(d,Ve.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xt.classes.FormData,Blob:Xt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],e=>{Sl.headers[e]={}});const iA=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),aA=e=>{const t={};let r,s,i;return e&&e.split(`
151
+ */const Fj=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],zj=Er("outline","x","X",Fj),Vj=C.forwardRef(({onStructChange:e,initialMolfile:t},r)=>{const s=C.useRef(null),[i,l]=C.useState(!1),[u,d]=C.useState(null);return C.useImperativeHandle(r,()=>({getSmiles:async()=>u?await u.getSmiles():"",setMolecule:p=>{u&&u.setMolecule(p)}})),C.useEffect(()=>{const p=s.current;if(!p)return;const f=()=>{if(p.contentWindow&&p.contentWindow.ketcher){const m=p.contentWindow.ketcher;d(m),l(!0)}else setTimeout(f,500)};p.onload=f,f()},[]),C.useEffect(()=>{i&&u&&t&&u.setMolecule(t)},[i,u,t]),C.useEffect(()=>{if(u&&e){let p="";const f=setInterval(async()=>{try{const m=await u.getSmiles();m!==p&&(p=m,e(m))}catch{}},1500);return()=>clearInterval(f)}},[u,e]),y.jsxs(he,{pos:"relative",h:500,w:"100%",style:{border:"1px solid #dee2e6",borderRadius:"4px"},children:[y.jsx(im,{visible:!i}),!i&&y.jsx(at,{ta:"center",mt:"md",children:"Loading Ketcher..."}),y.jsx("iframe",{ref:s,src:"/ketcher/index.html?hiddenControls=open",width:"100%",height:"100%",style:{border:"none"},title:"Ketcher"})]})});function Bj(e){if(!/^[0-9a-zA-Z-]+$/.test(e))throw new Error(`[@mantine/use-form] Form name "${e}" is invalid, it should contain only letters, numbers and dashes`)}const Uj=typeof window<"u"?C.useLayoutEffect:C.useEffect;function Vt(e,t){Uj(()=>{if(e)return window.addEventListener(e,t),()=>window.removeEventListener(e,t)},[e])}function Hj(e,t){e&&Bj(e),Vt(`mantine-form:${e}:set-field-value`,r=>t.setFieldValue(r.detail.path,r.detail.value)),Vt(`mantine-form:${e}:set-values`,r=>t.setValues(r.detail)),Vt(`mantine-form:${e}:set-initial-values`,r=>t.setInitialValues(r.detail)),Vt(`mantine-form:${e}:set-errors`,r=>t.setErrors(r.detail)),Vt(`mantine-form:${e}:set-field-error`,r=>t.setFieldError(r.detail.path,r.detail.error)),Vt(`mantine-form:${e}:clear-field-error`,r=>t.clearFieldError(r.detail)),Vt(`mantine-form:${e}:clear-errors`,t.clearErrors),Vt(`mantine-form:${e}:reset`,t.reset),Vt(`mantine-form:${e}:validate`,t.validate),Vt(`mantine-form:${e}:validate-field`,r=>t.validateField(r.detail)),Vt(`mantine-form:${e}:reorder-list-item`,r=>t.reorderListItem(r.detail.path,r.detail.payload)),Vt(`mantine-form:${e}:remove-list-item`,r=>t.removeListItem(r.detail.path,r.detail.index)),Vt(`mantine-form:${e}:insert-list-item`,r=>t.insertListItem(r.detail.path,r.detail.item,r.detail.index)),Vt(`mantine-form:${e}:set-dirty`,r=>t.setDirty(r.detail)),Vt(`mantine-form:${e}:set-touched`,r=>t.setTouched(r.detail)),Vt(`mantine-form:${e}:reset-dirty`,r=>t.resetDirty(r.detail)),Vt(`mantine-form:${e}:reset-touched`,t.resetTouched)}function Wj(e){return t=>{if(!t)e(t);else if(typeof t=="function")e(t);else if(typeof t=="object"&&"nativeEvent"in t){const{currentTarget:r}=t;r instanceof HTMLInputElement?r.type==="checkbox"?e(r.checked):e(r.value):(r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement)&&e(r.value)}else e(t)}}function Xp(e){return e===null||typeof e!="object"?{}:Object.keys(e).reduce((t,r)=>{const s=e[r];return s!=null&&s!==!1&&(t[r]=s),t},{})}function Qj(e){const[t,r]=C.useState(Xp(e)),s=C.useRef(t),i=C.useCallback(p=>{r(f=>{const m=Xp(typeof p=="function"?p(f):p);return s.current=m,m})},[]),l=C.useCallback(()=>i({}),[]),u=C.useCallback(p=>{s.current[p]!==void 0&&i(f=>{const m={...f};return delete m[p],m})},[t]),d=C.useCallback((p,f)=>{f==null||f===!1?u(p):s.current[p]!==f&&i(m=>({...m,[p]:f}))},[t]);return{errorsState:t,setErrors:i,clearErrors:l,setFieldError:d,clearFieldError:u}}function Yp(e,t){if(t===null||typeof t!="object")return{};const r={...t};return Object.keys(t).forEach(s=>{s.includes(`${String(e)}.`)&&delete r[s]}),r}function L0(e,t){const r=e.substring(t.length+1).split(".")[0];return parseInt(r,10)}function F0(e,t,r,s){if(t===void 0)return r;const i=`${String(e)}`;let l=r;s===-1&&(l=Yp(`${i}.${t}`,l));const u={...l},d=new Set;return Object.entries(l).filter(([p])=>{if(!p.startsWith(`${i}.`))return!1;const f=L0(p,i);return Number.isNaN(f)?!1:f>=t}).forEach(([p,f])=>{const m=L0(p,i),g=p.replace(`${i}.${m}`,`${i}.${m+s}`);u[g]=f,d.add(g),d.has(p)||delete u[p]}),u}function qj(e,{from:t,to:r},s){const i=`${e}.${t}`,l=`${e}.${r}`,u={...s},d=new Set;return Object.keys(s).forEach(p=>{if(d.has(p))return;let f,m;if(p.startsWith(i)?(f=p,m=p.replace(i,l)):p.startsWith(l)&&(f=p.replace(l,i),m=p),f&&m){const g=u[f],w=u[m];w===void 0?delete u[f]:u[f]=w,g===void 0?delete u[m]:u[m]=g,d.add(f),d.add(m)}}),u}function z0(e,t,r){typeof r.value=="object"&&(r.value=mi(r.value)),!r.enumerable||r.get||r.set||!r.configurable||!r.writable||t==="__proto__"?Object.defineProperty(e,t,r):e[t]=r.value}function mi(e){if(typeof e!="object")return e;var t=0,r,s,i,l=Object.prototype.toString.call(e);if(l==="[object Object]"?i=Object.create(e.__proto__||null):l==="[object Array]"?i=Array(e.length):l==="[object Set]"?(i=new Set,e.forEach(function(u){i.add(mi(u))})):l==="[object Map]"?(i=new Map,e.forEach(function(u,d){i.set(mi(d),mi(u))})):l==="[object Date]"?i=new Date(+e):l==="[object RegExp]"?i=new RegExp(e.source,e.flags):l==="[object DataView]"?i=new e.constructor(mi(e.buffer)):l==="[object ArrayBuffer]"?i=e.slice(0):l.slice(-6)==="Array]"&&(i=new e.constructor(e)),i){for(s=Object.getOwnPropertySymbols(e);t<s.length;t++)z0(i,s[t],Object.getOwnPropertyDescriptor(e,s[t]));for(t=0,s=Object.getOwnPropertyNames(e);t<s.length;t++)Object.hasOwnProperty.call(i,r=s[t])&&i[r]===e[r]||z0(i,r,Object.getOwnPropertyDescriptor(e,r))}return i||e}function tx(e){return typeof e!="string"?[]:e.split(".")}function Bt(e,t){const r=tx(e);if(r.length===0||typeof t!="object"||t===null)return;let s=t[r[0]];for(let i=1;i<r.length&&s!=null;i+=1)s=s[r[i]];return s}function vl(e,t,r){const s=tx(e);if(s.length===0)return r;const i=mi(r);if(s.length===1)return i[s[0]]=t,i;let l=i[s[0]];for(let u=1;u<s.length-1;u+=1){if(l===void 0)return i;l=l[s[u]]}return l[s[s.length-1]]=t,i}function Kj(e,{from:t,to:r},s){const i=Bt(e,s);if(!Array.isArray(i))return s;const l=[...i],u=i[t];return l.splice(t,1),l.splice(r,0,u),vl(e,l,s)}function Gj(e,t,r,s){const i=Bt(e,s);if(!Array.isArray(i))return s;const l=[...i];return l.splice(typeof r=="number"?r:l.length,0,t),vl(e,l,s)}function Xj(e,t,r){const s=Bt(e,r);return Array.isArray(s)?vl(e,s.filter((i,l)=>l!==t),r):r}function Yj(e,t,r,s){const i=Bt(e,s);if(!Array.isArray(i)||i.length<=r)return s;const l=[...i];return l[r]=t,vl(e,l,s)}function Jj({$values:e,$errors:t,$status:r}){const s=C.useCallback((d,p)=>{r.clearFieldDirty(d),t.setErrors(f=>qj(d,p,f)),e.setValues({values:Kj(d,p,e.refValues.current),updateState:!0})},[]),i=C.useCallback((d,p)=>{r.clearFieldDirty(d),t.setErrors(f=>F0(d,p,f,-1)),e.setValues({values:Xj(d,p,e.refValues.current),updateState:!0})},[]),l=C.useCallback((d,p,f)=>{r.clearFieldDirty(d),t.setErrors(m=>F0(d,f,m,1)),e.setValues({values:Gj(d,p,f,e.refValues.current),updateState:!0})},[]),u=C.useCallback((d,p,f)=>{r.clearFieldDirty(d),e.setValues({values:Yj(d,f,p,e.refValues.current),updateState:!0})},[]);return{reorderListItem:s,removeListItem:i,insertListItem:l,replaceListItem:u}}var op,V0;function Zj(){return V0||(V0=1,op=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var s,i,l;if(Array.isArray(t)){if(s=t.length,s!=r.length)return!1;for(i=s;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(l=Object.keys(t),s=l.length,s!==Object.keys(r).length)return!1;for(i=s;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,l[i]))return!1;for(i=s;i--!==0;){var u=l[i];if(!e(t[u],r[u]))return!1}return!0}return t!==t&&r!==r}),op}var eO=Zj();const Uu=vc(eO);function La(e,t){const r=Object.keys(e);if(typeof t=="string"){const s=r.filter(i=>i.startsWith(`${t}.`));return e[t]||s.some(i=>e[i])||!1}return r.some(s=>e[s])}function tO({initialDirty:e,initialTouched:t,mode:r,$values:s}){const[i,l]=C.useState(t),[u,d]=C.useState(e),p=C.useRef(t),f=C.useRef(e),m=C.useCallback(O=>{const L=typeof O=="function"?O(p.current):O;p.current=L,r==="controlled"&&l(L)},[]),g=C.useCallback((O,L=!1)=>{const M=typeof O=="function"?O(f.current):O;f.current=M,(r==="controlled"||L)&&d(M)},[]),w=C.useCallback(()=>m({}),[]),S=C.useCallback(O=>{const L=O?{...s.refValues.current,...O}:s.refValues.current;s.setValuesSnapshot(L),g({})},[]),x=C.useCallback((O,L)=>{m(M=>La(M,O)===L?M:{...M,[O]:L})},[]),b=C.useCallback((O,L,M)=>{g(Q=>La(Q,O)===L?Q:{...Q,[O]:L},M)},[]),E=C.useCallback((O,L)=>{const M=La(f.current,O),Q=!Uu(Bt(O,s.getValuesSnapshot()),L),q=Yp(O,f.current);q[O]=Q,g(q,M!==Q)},[]),R=C.useCallback(O=>La(p.current,O),[]),P=C.useCallback(O=>g(L=>{if(typeof O!="string")return L;const M=Yp(O,L);return delete M[O],Uu(M,L)?L:M}),[]),k=C.useCallback(O=>{if(O){const M=Bt(O,f.current);if(typeof M=="boolean")return M;const Q=Bt(O,s.refValues.current),q=Bt(O,s.valuesSnapshot.current);return!Uu(Q,q)}return Object.keys(f.current).length>0?La(f.current):!Uu(s.refValues.current,s.valuesSnapshot.current)},[]),T=C.useCallback(()=>f.current,[]),j=C.useCallback(()=>p.current,[]);return{touchedState:i,dirtyState:u,touchedRef:p,dirtyRef:f,setTouched:m,setDirty:g,resetDirty:S,resetTouched:w,isTouched:R,setFieldTouched:x,setFieldDirty:b,setTouchedState:l,setDirtyState:d,clearFieldDirty:P,isDirty:k,getDirty:T,getTouched:j,setCalculatedFieldDirty:E}}function nO({initialValues:e,onValuesChange:t,mode:r}){const s=C.useRef(!1),[i,l]=C.useState(e||{}),u=C.useRef(i),d=C.useRef(i),p=C.useCallback(({values:b,subscribers:E,updateState:R=!0,mergeWithPreviousValues:P=!0})=>{const k=u.current,T=b instanceof Function?b(u.current):b,j=P?{...k,...T}:T;u.current=j,R&&l(j),t==null||t(j,k),E==null||E.filter(Boolean).forEach(O=>O({updatedValues:j,previousValues:k}))},[t]),f=C.useCallback(b=>{var P;const E=Bt(b.path,u.current),R=b.value instanceof Function?b.value(E):b.value;if(E!==R){const k=u.current,T=vl(b.path,R,u.current);p({values:T,updateState:b.updateState}),(P=b.subscribers)==null||P.filter(Boolean).forEach(j=>j({path:b.path,updatedValues:T,previousValues:k}))}},[p]),m=C.useCallback(b=>{d.current=b},[]),g=C.useCallback((b,E)=>{s.current||(s.current=!0,p({values:b,updateState:r==="controlled"}),m(b),E())},[p]),w=C.useCallback(()=>{p({values:d.current,updateState:!0,mergeWithPreviousValues:!1})},[p]),S=C.useCallback(()=>u.current,[]),x=C.useCallback(()=>d.current,[]);return{initialized:s,stateValues:i,refValues:u,valuesSnapshot:d,setValues:p,setFieldValue:f,resetValues:w,setValuesSnapshot:m,initialize:g,getValues:S,getValuesSnapshot:x}}function rO({$status:e}){const t=C.useRef({}),r=C.useCallback((i,l)=>{C.useEffect(()=>(t.current[i]=t.current[i]||[],t.current[i].push(l),()=>{t.current[i]=t.current[i].filter(u=>u!==l)}),[l])},[]),s=C.useCallback(i=>t.current[i]?t.current[i].map(l=>u=>l({previousValue:Bt(i,u.previousValues),value:Bt(i,u.updatedValues),touched:e.isTouched(i),dirty:e.isDirty(i)})):[],[]);return{subscribers:t,watch:r,getFieldSubscribers:s}}function B0(e,t){return e?`${e}-${t.toString()}`:t.toString()}const Hu=Symbol("root-rule");function U0(e){const t=Xp(e);return{hasErrors:Object.keys(t).length>0,errors:t}}function Jp(e,t,r="",s={}){return typeof e!="object"||e===null?s:Object.keys(e).reduce((i,l)=>{const u=e[l],d=`${r===""?"":`${r}.`}${l}`,p=Bt(d,t);let f=!1;return typeof u=="function"&&(i[d]=u(p,t,d)),typeof u=="object"&&Array.isArray(p)&&(f=!0,p.forEach((m,g)=>Jp(u,t,`${d}.${g}`,i)),Hu in u&&(i[d]=u[Hu](p,t,d))),typeof u=="object"&&typeof p=="object"&&p!==null&&(f||Jp(u,t,d,i),Hu in u&&(i[d]=u[Hu](p,t,d))),i},s)}function Zp(e,t){return U0(typeof e=="function"?e(t):Jp(e,t))}function Wu(e,t,r){if(typeof e!="string")return{hasError:!1,error:null};const s=Zp(t,r),i=Object.keys(s.errors).find(l=>e.split(".").every((u,d)=>u===l.split(".")[d]));return{hasError:!!i,error:i?s.errors[i]:null}}const oO="__MANTINE_FORM_INDEX__";function H0(e,t){return t?typeof t=="boolean"?t:Array.isArray(t)?t.includes(e.replace(/[.][0-9]+/g,`.${oO}`)):!1:!1}function nx({name:e,mode:t="controlled",initialValues:r,initialErrors:s={},initialDirty:i={},initialTouched:l={},clearInputErrorOnChange:u=!0,validateInputOnChange:d=!1,validateInputOnBlur:p=!1,onValuesChange:f,transformValues:m=b=>b,enhanceGetInputProps:g,validate:w,onSubmitPreventDefault:S="always",touchTrigger:x="change"}={}){const b=Qj(s),E=nO({initialValues:r,onValuesChange:f,mode:t}),R=tO({initialDirty:i,initialTouched:l,$values:E,mode:t}),P=Jj({$values:E,$errors:b,$status:R}),k=rO({$status:R}),[T,j]=C.useState(0),[O,L]=C.useState({}),[M,Q]=C.useState(!1),q=C.useCallback(()=>{E.resetValues(),b.clearErrors(),R.resetDirty(),R.resetTouched(),t==="uncontrolled"&&j(X=>X+1)},[]),te=C.useCallback(X=>{u&&b.clearErrors(),t==="uncontrolled"&&j(re=>re+1),Object.keys(k.subscribers.current).forEach(re=>{const ve=Bt(re,E.refValues.current),fe=Bt(re,X);ve!==fe&&k.getFieldSubscribers(re).forEach(we=>we({previousValues:X,updatedValues:E.refValues.current}))})},[u]),ee=C.useCallback(X=>{const re=E.refValues.current;E.initialize(X,()=>t==="uncontrolled"&&j(ve=>ve+1)),te(re)},[te]),ne=C.useCallback((X,re,ve)=>{const fe=H0(X,d),we=re instanceof Function?re(Bt(X,E.refValues.current)):re;R.setCalculatedFieldDirty(X,we),x==="change"&&R.setFieldTouched(X,!0),!fe&&u&&b.clearFieldError(X),E.setFieldValue({path:X,value:re,updateState:t==="controlled",subscribers:[...k.getFieldSubscribers(X),fe?je=>{const Ue=Wu(X,w,je.updatedValues);Ue.hasError?b.setFieldError(X,Ue.error):b.clearFieldError(X)}:null,(ve==null?void 0:ve.forceUpdate)!==!1&&t!=="controlled"?()=>L(je=>({...je,[X]:(je[X]||0)+1})):null]})},[f,w]),G=C.useCallback(X=>{const re=E.refValues.current;E.setValues({values:X,updateState:t==="controlled"}),te(re)},[f,te]),Z=C.useCallback(()=>{const X=Zp(w,E.refValues.current);return b.setErrors(X.errors),X},[w]),B=C.useCallback(X=>{const re=Wu(X,w,E.refValues.current);return re.hasError?b.setFieldError(X,re.error):b.clearFieldError(X),re},[w]),U=(X,{type:re="input",withError:ve=!0,withFocus:fe=!0,...we}={})=>{const Ue={onChange:Wj(Ze=>ne(X,Ze,{forceUpdate:!1})),"data-path":B0(e,X)};return ve&&(Ue.error=b.errorsState[X]),re==="checkbox"?Ue[t==="controlled"?"checked":"defaultChecked"]=Bt(X,E.refValues.current):Ue[t==="controlled"?"value":"defaultValue"]=Bt(X,E.refValues.current),fe&&(Ue.onFocus=()=>R.setFieldTouched(X,!0),Ue.onBlur=()=>{if(H0(X,p)){const Ze=Wu(X,w,E.refValues.current);Ze.hasError?b.setFieldError(X,Ze.error):b.clearFieldError(X)}}),Object.assign(Ue,g==null?void 0:g({inputProps:Ue,field:X,options:{type:re,withError:ve,withFocus:fe,...we},form:ye}))},A=(X,re)=>ve=>{S==="always"&&(ve==null||ve.preventDefault());const fe=Z();if(fe.hasErrors)S==="validation-failed"&&(ve==null||ve.preventDefault()),re==null||re(fe.errors,E.refValues.current,ve);else{const we=X==null?void 0:X(m(E.refValues.current),ve);we instanceof Promise&&(Q(!0),we.finally(()=>Q(!1)))}},V=X=>m(X||E.refValues.current),W=C.useCallback(X=>{X.preventDefault(),q()},[]),N=C.useCallback(X=>X?!Wu(X,w,E.refValues.current).hasError:!Zp(w,E.refValues.current).hasErrors,[w]),F=X=>`${T}-${X}-${O[X]||0}`,le=C.useCallback(X=>document.querySelector(`[data-path="${B0(e,X)}"]`),[]),ye={watch:k.watch,initialized:E.initialized.current,values:E.stateValues,getValues:E.getValues,getInitialValues:E.getValuesSnapshot,setInitialValues:E.setValuesSnapshot,initialize:ee,setValues:G,setFieldValue:ne,submitting:M,setSubmitting:Q,errors:b.errorsState,setErrors:b.setErrors,setFieldError:b.setFieldError,clearFieldError:b.clearFieldError,clearErrors:b.clearErrors,resetDirty:R.resetDirty,setTouched:R.setTouched,setDirty:R.setDirty,isTouched:R.isTouched,resetTouched:R.resetTouched,isDirty:R.isDirty,getTouched:R.getTouched,getDirty:R.getDirty,reorderListItem:P.reorderListItem,insertListItem:P.insertListItem,removeListItem:P.removeListItem,replaceListItem:P.replaceListItem,reset:q,validate:Z,validateField:B,getInputProps:U,onSubmit:A,onReset:W,isValid:N,getTransformedValues:V,key:F,getInputNode:le};return Hj(e,ye),ye}function rx(e,t){return function(){return e.apply(t,arguments)}}const{toString:sO}=Object.prototype,{getPrototypeOf:jm}=Object,{iterator:Bc,toStringTag:ox}=Symbol,Uc=(e=>t=>{const r=sO.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),or=e=>(e=e.toLowerCase(),t=>Uc(t)===e),Hc=e=>t=>typeof t===e,{isArray:qi}=Array,Mi=Hc("undefined");function yl(e){return e!==null&&!Mi(e)&&e.constructor!==null&&!Mi(e.constructor)&&hn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sx=or("ArrayBuffer");function iO(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&sx(e.buffer),t}const aO=Hc("string"),hn=Hc("function"),ix=Hc("number"),bl=e=>e!==null&&typeof e=="object",lO=e=>e===!0||e===!1,Zu=e=>{if(Uc(e)!=="object")return!1;const t=jm(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ox in e)&&!(Bc in e)},uO=e=>{if(!bl(e)||yl(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},cO=or("Date"),dO=or("File"),fO=or("Blob"),pO=or("FileList"),hO=e=>bl(e)&&hn(e.pipe),mO=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||hn(e.append)&&((t=Uc(e))==="formdata"||t==="object"&&hn(e.toString)&&e.toString()==="[object FormData]"))},gO=or("URLSearchParams"),[vO,yO,bO,wO]=["ReadableStream","Request","Response","Headers"].map(or),SO=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function wl(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let s,i;if(typeof e!="object"&&(e=[e]),qi(e))for(s=0,i=e.length;s<i;s++)t.call(null,e[s],s,e);else{if(yl(e))return;const l=r?Object.getOwnPropertyNames(e):Object.keys(e),u=l.length;let d;for(s=0;s<u;s++)d=l[s],t.call(null,e[d],d,e)}}function ax(e,t){if(yl(e))return null;t=t.toLowerCase();const r=Object.keys(e);let s=r.length,i;for(;s-- >0;)if(i=r[s],t===i.toLowerCase())return i;return null}const hs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,lx=e=>!Mi(e)&&e!==hs;function eh(){const{caseless:e,skipUndefined:t}=lx(this)&&this||{},r={},s=(i,l)=>{const u=e&&ax(r,l)||l;Zu(r[u])&&Zu(i)?r[u]=eh(r[u],i):Zu(i)?r[u]=eh({},i):qi(i)?r[u]=i.slice():(!t||!Mi(i))&&(r[u]=i)};for(let i=0,l=arguments.length;i<l;i++)arguments[i]&&wl(arguments[i],s);return r}const xO=(e,t,r,{allOwnKeys:s}={})=>(wl(t,(i,l)=>{r&&hn(i)?e[l]=rx(i,r):e[l]=i},{allOwnKeys:s}),e),CO=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),EO=(e,t,r,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},RO=(e,t,r,s)=>{let i,l,u;const d={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),l=i.length;l-- >0;)u=i[l],(!s||s(u,e,t))&&!d[u]&&(t[u]=e[u],d[u]=!0);e=r!==!1&&jm(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},_O=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const s=e.indexOf(t,r);return s!==-1&&s===r},kO=e=>{if(!e)return null;if(qi(e))return e;let t=e.length;if(!ix(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},PO=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&jm(Uint8Array)),TO=(e,t)=>{const s=(e&&e[Bc]).call(e);let i;for(;(i=s.next())&&!i.done;){const l=i.value;t.call(e,l[0],l[1])}},NO=(e,t)=>{let r;const s=[];for(;(r=e.exec(t))!==null;)s.push(r);return s},jO=or("HTMLFormElement"),OO=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,s,i){return s.toUpperCase()+i}),W0=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),AO=or("RegExp"),ux=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),s={};wl(r,(i,l)=>{let u;(u=t(i,l,e))!==!1&&(s[l]=u||i)}),Object.defineProperties(e,s)},DO=e=>{ux(e,(t,r)=>{if(hn(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const s=e[r];if(hn(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},IO=(e,t)=>{const r={},s=i=>{i.forEach(l=>{r[l]=!0})};return qi(e)?s(e):s(String(e).split(t)),r},MO=()=>{},$O=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function LO(e){return!!(e&&hn(e.append)&&e[ox]==="FormData"&&e[Bc])}const FO=e=>{const t=new Array(10),r=(s,i)=>{if(bl(s)){if(t.indexOf(s)>=0)return;if(yl(s))return s;if(!("toJSON"in s)){t[i]=s;const l=qi(s)?[]:{};return wl(s,(u,d)=>{const p=r(u,i+1);!Mi(p)&&(l[d]=p)}),t[i]=void 0,l}}return s};return r(e,0)},zO=or("AsyncFunction"),VO=e=>e&&(bl(e)||hn(e))&&hn(e.then)&&hn(e.catch),cx=((e,t)=>e?setImmediate:t?((r,s)=>(hs.addEventListener("message",({source:i,data:l})=>{i===hs&&l===r&&s.length&&s.shift()()},!1),i=>{s.push(i),hs.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",hn(hs.postMessage)),BO=typeof queueMicrotask<"u"?queueMicrotask.bind(hs):typeof process<"u"&&process.nextTick||cx,UO=e=>e!=null&&hn(e[Bc]),J={isArray:qi,isArrayBuffer:sx,isBuffer:yl,isFormData:mO,isArrayBufferView:iO,isString:aO,isNumber:ix,isBoolean:lO,isObject:bl,isPlainObject:Zu,isEmptyObject:uO,isReadableStream:vO,isRequest:yO,isResponse:bO,isHeaders:wO,isUndefined:Mi,isDate:cO,isFile:dO,isBlob:fO,isRegExp:AO,isFunction:hn,isStream:hO,isURLSearchParams:gO,isTypedArray:PO,isFileList:pO,forEach:wl,merge:eh,extend:xO,trim:SO,stripBOM:CO,inherits:EO,toFlatObject:RO,kindOf:Uc,kindOfTest:or,endsWith:_O,toArray:kO,forEachEntry:TO,matchAll:NO,isHTMLForm:jO,hasOwnProperty:W0,hasOwnProp:W0,reduceDescriptors:ux,freezeMethods:DO,toObjectSet:IO,toCamelCase:OO,noop:MO,toFiniteNumber:$O,findKey:ax,global:hs,isContextDefined:lx,isSpecCompliantForm:LO,toJSONObject:FO,isAsyncFn:zO,isThenable:VO,setImmediate:cx,asap:BO,isIterable:UO};function Ve(e,t,r,s,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),s&&(this.request=s),i&&(this.response=i,this.status=i.status?i.status:null)}J.inherits(Ve,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.status}}});const dx=Ve.prototype,fx={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{fx[e]={value:e}});Object.defineProperties(Ve,fx);Object.defineProperty(dx,"isAxiosError",{value:!0});Ve.from=(e,t,r,s,i,l)=>{const u=Object.create(dx);J.toFlatObject(e,u,function(m){return m!==Error.prototype},f=>f!=="isAxiosError");const d=e&&e.message?e.message:"Error",p=t==null&&e?e.code:t;return Ve.call(u,d,p,r,s,i),e&&u.cause==null&&Object.defineProperty(u,"cause",{value:e,configurable:!0}),u.name=e&&e.name||"Error",l&&Object.assign(u,l),u};const HO=null;function th(e){return J.isPlainObject(e)||J.isArray(e)}function px(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function Q0(e,t,r){return e?e.concat(t).map(function(i,l){return i=px(i),!r&&l?"["+i+"]":i}).join(r?".":""):t}function WO(e){return J.isArray(e)&&!e.some(th)}const QO=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function Wc(e,t,r){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=J.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,E){return!J.isUndefined(E[b])});const s=r.metaTokens,i=r.visitor||m,l=r.dots,u=r.indexes,p=(r.Blob||typeof Blob<"u"&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(i))throw new TypeError("visitor must be a function");function f(x){if(x===null)return"";if(J.isDate(x))return x.toISOString();if(J.isBoolean(x))return x.toString();if(!p&&J.isBlob(x))throw new Ve("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(x)||J.isTypedArray(x)?p&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function m(x,b,E){let R=x;if(x&&!E&&typeof x=="object"){if(J.endsWith(b,"{}"))b=s?b:b.slice(0,-2),x=JSON.stringify(x);else if(J.isArray(x)&&WO(x)||(J.isFileList(x)||J.endsWith(b,"[]"))&&(R=J.toArray(x)))return b=px(b),R.forEach(function(k,T){!(J.isUndefined(k)||k===null)&&t.append(u===!0?Q0([b],T,l):u===null?b:b+"[]",f(k))}),!1}return th(x)?!0:(t.append(Q0(E,b,l),f(x)),!1)}const g=[],w=Object.assign(QO,{defaultVisitor:m,convertValue:f,isVisitable:th});function S(x,b){if(!J.isUndefined(x)){if(g.indexOf(x)!==-1)throw Error("Circular reference detected in "+b.join("."));g.push(x),J.forEach(x,function(R,P){(!(J.isUndefined(R)||R===null)&&i.call(t,R,J.isString(P)?P.trim():P,b,w))===!0&&S(R,b?b.concat(P):[P])}),g.pop()}}if(!J.isObject(e))throw new TypeError("data must be an object");return S(e),t}function q0(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Om(e,t){this._pairs=[],e&&Wc(e,this,t)}const hx=Om.prototype;hx.append=function(t,r){this._pairs.push([t,r])};hx.toString=function(t){const r=t?function(s){return t.call(this,s,q0)}:q0;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function qO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function mx(e,t,r){if(!t)return e;const s=r&&r.encode||qO;J.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let l;if(i?l=i(t,r):l=J.isURLSearchParams(t)?t.toString():new Om(t,r).toString(s),l){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class K0{constructor(){this.handlers=[]}use(t,r,s){return this.handlers.push({fulfilled:t,rejected:r,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){J.forEach(this.handlers,function(s){s!==null&&t(s)})}}const gx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},KO=typeof URLSearchParams<"u"?URLSearchParams:Om,GO=typeof FormData<"u"?FormData:null,XO=typeof Blob<"u"?Blob:null,YO={isBrowser:!0,classes:{URLSearchParams:KO,FormData:GO,Blob:XO},protocols:["http","https","file","blob","url","data"]},Am=typeof window<"u"&&typeof document<"u",nh=typeof navigator=="object"&&navigator||void 0,JO=Am&&(!nh||["ReactNative","NativeScript","NS"].indexOf(nh.product)<0),ZO=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",eA=Am&&window.location.href||"http://localhost",tA=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Am,hasStandardBrowserEnv:JO,hasStandardBrowserWebWorkerEnv:ZO,navigator:nh,origin:eA},Symbol.toStringTag,{value:"Module"})),Xt={...tA,...YO};function nA(e,t){return Wc(e,new Xt.classes.URLSearchParams,{visitor:function(r,s,i,l){return Xt.isNode&&J.isBuffer(r)?(this.append(s,r.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}function rA(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function oA(e){const t={},r=Object.keys(e);let s;const i=r.length;let l;for(s=0;s<i;s++)l=r[s],t[l]=e[l];return t}function vx(e){function t(r,s,i,l){let u=r[l++];if(u==="__proto__")return!0;const d=Number.isFinite(+u),p=l>=r.length;return u=!u&&J.isArray(i)?i.length:u,p?(J.hasOwnProp(i,u)?i[u]=[i[u],s]:i[u]=s,!d):((!i[u]||!J.isObject(i[u]))&&(i[u]=[]),t(r,s,i[u],l)&&J.isArray(i[u])&&(i[u]=oA(i[u])),!d)}if(J.isFormData(e)&&J.isFunction(e.entries)){const r={};return J.forEachEntry(e,(s,i)=>{t(rA(s),i,r,0)}),r}return null}function sA(e,t,r){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(r||JSON.stringify)(e)}const Sl={transitional:gx,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const s=r.getContentType()||"",i=s.indexOf("application/json")>-1,l=J.isObject(t);if(l&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return i?JSON.stringify(vx(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t)||J.isReadableStream(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(l){if(s.indexOf("application/x-www-form-urlencoded")>-1)return nA(t,this.formSerializer).toString();if((d=J.isFileList(t))||s.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return Wc(d?{"files[]":t}:t,p&&new p,this.formSerializer)}}return l||i?(r.setContentType("application/json",!1),sA(t)):t}],transformResponse:[function(t){const r=this.transitional||Sl.transitional,s=r&&r.forcedJSONParsing,i=this.responseType==="json";if(J.isResponse(t)||J.isReadableStream(t))return t;if(t&&J.isString(t)&&(s&&!this.responseType||i)){const u=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(d){if(u)throw d.name==="SyntaxError"?Ve.from(d,Ve.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xt.classes.FormData,Blob:Xt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],e=>{Sl.headers[e]={}});const iA=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),aA=e=>{const t={};let r,s,i;return e&&e.split(`
152
152
  `).forEach(function(u){i=u.indexOf(":"),r=u.substring(0,i).trim().toLowerCase(),s=u.substring(i+1).trim(),!(!r||t[r]&&iA[r])&&(r==="set-cookie"?t[r]?t[r].push(s):t[r]=[s]:t[r]=t[r]?t[r]+", "+s:s)}),t},G0=Symbol("internals");function Fa(e){return e&&String(e).trim().toLowerCase()}function ec(e){return e===!1||e==null?e:J.isArray(e)?e.map(ec):String(e)}function lA(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=r.exec(e);)t[s[1]]=s[2];return t}const uA=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function sp(e,t,r,s,i){if(J.isFunction(s))return s.call(this,t,r);if(i&&(t=r),!!J.isString(t)){if(J.isString(s))return t.indexOf(s)!==-1;if(J.isRegExp(s))return s.test(t)}}function cA(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,s)=>r.toUpperCase()+s)}function dA(e,t){const r=J.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+r,{value:function(i,l,u){return this[s].call(this,t,i,l,u)},configurable:!0})})}let mn=class{constructor(t){t&&this.set(t)}set(t,r,s){const i=this;function l(d,p,f){const m=Fa(p);if(!m)throw new Error("header name must be a non-empty string");const g=J.findKey(i,m);(!g||i[g]===void 0||f===!0||f===void 0&&i[g]!==!1)&&(i[g||p]=ec(d))}const u=(d,p)=>J.forEach(d,(f,m)=>l(f,m,p));if(J.isPlainObject(t)||t instanceof this.constructor)u(t,r);else if(J.isString(t)&&(t=t.trim())&&!uA(t))u(aA(t),r);else if(J.isObject(t)&&J.isIterable(t)){let d={},p,f;for(const m of t){if(!J.isArray(m))throw TypeError("Object iterator must return a key-value pair");d[f=m[0]]=(p=d[f])?J.isArray(p)?[...p,m[1]]:[p,m[1]]:m[1]}u(d,r)}else t!=null&&l(r,t,s);return this}get(t,r){if(t=Fa(t),t){const s=J.findKey(this,t);if(s){const i=this[s];if(!r)return i;if(r===!0)return lA(i);if(J.isFunction(r))return r.call(this,i,s);if(J.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Fa(t),t){const s=J.findKey(this,t);return!!(s&&this[s]!==void 0&&(!r||sp(this,this[s],s,r)))}return!1}delete(t,r){const s=this;let i=!1;function l(u){if(u=Fa(u),u){const d=J.findKey(s,u);d&&(!r||sp(s,s[d],d,r))&&(delete s[d],i=!0)}}return J.isArray(t)?t.forEach(l):l(t),i}clear(t){const r=Object.keys(this);let s=r.length,i=!1;for(;s--;){const l=r[s];(!t||sp(this,this[l],l,t,!0))&&(delete this[l],i=!0)}return i}normalize(t){const r=this,s={};return J.forEach(this,(i,l)=>{const u=J.findKey(s,l);if(u){r[u]=ec(i),delete r[l];return}const d=t?cA(l):String(l).trim();d!==l&&delete r[l],r[d]=ec(i),s[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return J.forEach(this,(s,i)=>{s!=null&&s!==!1&&(r[i]=t&&J.isArray(s)?s.join(", "):s)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
153
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const s=new this(t);return r.forEach(i=>s.set(i)),s}static accessor(t){const s=(this[G0]=this[G0]={accessors:{}}).accessors,i=this.prototype;function l(u){const d=Fa(u);s[d]||(dA(i,u),s[d]=!0)}return J.isArray(t)?t.forEach(l):l(t),this}};mn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);J.reduceDescriptors(mn.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[r]=s}}});J.freezeMethods(mn);function ip(e,t){const r=this||Sl,s=t||r,i=mn.from(s.headers);let l=s.data;return J.forEach(e,function(d){l=d.call(r,l,i.normalize(),t?t.status:void 0)}),i.normalize(),l}function yx(e){return!!(e&&e.__CANCEL__)}function Ki(e,t,r){Ve.call(this,e??"canceled",Ve.ERR_CANCELED,t,r),this.name="CanceledError"}J.inherits(Ki,Ve,{__CANCEL__:!0});function bx(e,t,r){const s=r.config.validateStatus;!r.status||!s||s(r.status)?e(r):t(new Ve("Request failed with status code "+r.status,[Ve.ERR_BAD_REQUEST,Ve.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function fA(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function pA(e,t){e=e||10;const r=new Array(e),s=new Array(e);let i=0,l=0,u;return t=t!==void 0?t:1e3,function(p){const f=Date.now(),m=s[l];u||(u=f),r[i]=p,s[i]=f;let g=l,w=0;for(;g!==i;)w+=r[g++],g=g%e;if(i=(i+1)%e,i===l&&(l=(l+1)%e),f-u<t)return;const S=m&&f-m;return S?Math.round(w*1e3/S):void 0}}function hA(e,t){let r=0,s=1e3/t,i,l;const u=(f,m=Date.now())=>{r=m,i=null,l&&(clearTimeout(l),l=null),e(...f)};return[(...f)=>{const m=Date.now(),g=m-r;g>=s?u(f,m):(i=f,l||(l=setTimeout(()=>{l=null,u(i)},s-g)))},()=>i&&u(i)]}const gc=(e,t,r=3)=>{let s=0;const i=pA(50,250);return hA(l=>{const u=l.loaded,d=l.lengthComputable?l.total:void 0,p=u-s,f=i(p),m=u<=d;s=u;const g={loaded:u,total:d,progress:d?u/d:void 0,bytes:p,rate:f||void 0,estimated:f&&d&&m?(d-u)/f:void 0,event:l,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(g)},r)},X0=(e,t)=>{const r=e!=null;return[s=>t[0]({lengthComputable:r,total:e,loaded:s}),t[1]]},Y0=e=>(...t)=>J.asap(()=>e(...t)),mA=Xt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Xt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Xt.origin),Xt.navigator&&/(msie|trident)/i.test(Xt.navigator.userAgent)):()=>!0,gA=Xt.hasStandardBrowserEnv?{write(e,t,r,s,i,l,u){if(typeof document>"u")return;const d=[`${e}=${encodeURIComponent(t)}`];J.isNumber(r)&&d.push(`expires=${new Date(r).toUTCString()}`),J.isString(s)&&d.push(`path=${s}`),J.isString(i)&&d.push(`domain=${i}`),l===!0&&d.push("secure"),J.isString(u)&&d.push(`SameSite=${u}`),document.cookie=d.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function vA(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yA(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function wx(e,t,r){let s=!vA(t);return e&&(s||r==!1)?yA(e,t):t}const J0=e=>e instanceof mn?{...e}:e;function Ts(e,t){t=t||{};const r={};function s(f,m,g,w){return J.isPlainObject(f)&&J.isPlainObject(m)?J.merge.call({caseless:w},f,m):J.isPlainObject(m)?J.merge({},m):J.isArray(m)?m.slice():m}function i(f,m,g,w){if(J.isUndefined(m)){if(!J.isUndefined(f))return s(void 0,f,g,w)}else return s(f,m,g,w)}function l(f,m){if(!J.isUndefined(m))return s(void 0,m)}function u(f,m){if(J.isUndefined(m)){if(!J.isUndefined(f))return s(void 0,f)}else return s(void 0,m)}function d(f,m,g){if(g in t)return s(f,m);if(g in e)return s(void 0,f)}const p={url:l,method:l,data:l,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:d,headers:(f,m,g)=>i(J0(f),J0(m),g,!0)};return J.forEach(Object.keys({...e,...t}),function(m){const g=p[m]||i,w=g(e[m],t[m],m);J.isUndefined(w)&&g!==d||(r[m]=w)}),r}const Sx=e=>{const t=Ts({},e);let{data:r,withXSRFToken:s,xsrfHeaderName:i,xsrfCookieName:l,headers:u,auth:d}=t;if(t.headers=u=mn.from(u),t.url=mx(wx(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),d&&u.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):""))),J.isFormData(r)){if(Xt.hasStandardBrowserEnv||Xt.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if(J.isFunction(r.getHeaders)){const p=r.getHeaders(),f=["content-type","content-length"];Object.entries(p).forEach(([m,g])=>{f.includes(m.toLowerCase())&&u.set(m,g)})}}if(Xt.hasStandardBrowserEnv&&(s&&J.isFunction(s)&&(s=s(t)),s||s!==!1&&mA(t.url))){const p=i&&l&&gA.read(l);p&&u.set(i,p)}return t},bA=typeof XMLHttpRequest<"u",wA=bA&&function(e){return new Promise(function(r,s){const i=Sx(e);let l=i.data;const u=mn.from(i.headers).normalize();let{responseType:d,onUploadProgress:p,onDownloadProgress:f}=i,m,g,w,S,x;function b(){S&&S(),x&&x(),i.cancelToken&&i.cancelToken.unsubscribe(m),i.signal&&i.signal.removeEventListener("abort",m)}let E=new XMLHttpRequest;E.open(i.method.toUpperCase(),i.url,!0),E.timeout=i.timeout;function R(){if(!E)return;const P=mn.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),j={data:!d||d==="text"||d==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:P,config:e,request:E};bx(function(L){r(L),b()},function(L){s(L),b()},j),E=null}"onloadend"in E?E.onloadend=R:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(R)},E.onabort=function(){E&&(s(new Ve("Request aborted",Ve.ECONNABORTED,e,E)),E=null)},E.onerror=function(T){const j=T&&T.message?T.message:"Network Error",O=new Ve(j,Ve.ERR_NETWORK,e,E);O.event=T||null,s(O),E=null},E.ontimeout=function(){let T=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const j=i.transitional||gx;i.timeoutErrorMessage&&(T=i.timeoutErrorMessage),s(new Ve(T,j.clarifyTimeoutError?Ve.ETIMEDOUT:Ve.ECONNABORTED,e,E)),E=null},l===void 0&&u.setContentType(null),"setRequestHeader"in E&&J.forEach(u.toJSON(),function(T,j){E.setRequestHeader(j,T)}),J.isUndefined(i.withCredentials)||(E.withCredentials=!!i.withCredentials),d&&d!=="json"&&(E.responseType=i.responseType),f&&([w,x]=gc(f,!0),E.addEventListener("progress",w)),p&&E.upload&&([g,S]=gc(p),E.upload.addEventListener("progress",g),E.upload.addEventListener("loadend",S)),(i.cancelToken||i.signal)&&(m=P=>{E&&(s(!P||P.type?new Ki(null,e,E):P),E.abort(),E=null)},i.cancelToken&&i.cancelToken.subscribe(m),i.signal&&(i.signal.aborted?m():i.signal.addEventListener("abort",m)));const k=fA(i.url);if(k&&Xt.protocols.indexOf(k)===-1){s(new Ve("Unsupported protocol "+k+":",Ve.ERR_BAD_REQUEST,e));return}E.send(l||null)})},SA=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let s=new AbortController,i;const l=function(f){if(!i){i=!0,d();const m=f instanceof Error?f:this.reason;s.abort(m instanceof Ve?m:new Ki(m instanceof Error?m.message:m))}};let u=t&&setTimeout(()=>{u=null,l(new Ve(`timeout ${t} of ms exceeded`,Ve.ETIMEDOUT))},t);const d=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(l):f.removeEventListener("abort",l)}),e=null)};e.forEach(f=>f.addEventListener("abort",l));const{signal:p}=s;return p.unsubscribe=()=>J.asap(d),p}},xA=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let s=0,i;for(;s<r;)i=s+t,yield e.slice(s,i),s=i},CA=async function*(e,t){for await(const r of EA(e))yield*xA(r,t)},EA=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:s}=await t.read();if(r)break;yield s}}finally{await t.cancel()}},Z0=(e,t,r,s)=>{const i=CA(e,t);let l=0,u,d=p=>{u||(u=!0,s&&s(p))};return new ReadableStream({async pull(p){try{const{done:f,value:m}=await i.next();if(f){d(),p.close();return}let g=m.byteLength;if(r){let w=l+=g;r(w)}p.enqueue(new Uint8Array(m))}catch(f){throw d(f),f}},cancel(p){return d(p),i.return()}},{highWaterMark:2})},eb=64*1024,{isFunction:Qu}=J,RA=(({Request:e,Response:t})=>({Request:e,Response:t}))(J.global),{ReadableStream:tb,TextEncoder:nb}=J.global,rb=(e,...t)=>{try{return!!e(...t)}catch{return!1}},_A=e=>{e=J.merge.call({skipUndefined:!0},RA,e);const{fetch:t,Request:r,Response:s}=e,i=t?Qu(t):typeof fetch=="function",l=Qu(r),u=Qu(s);if(!i)return!1;const d=i&&Qu(tb),p=i&&(typeof nb=="function"?(x=>b=>x.encode(b))(new nb):async x=>new Uint8Array(await new r(x).arrayBuffer())),f=l&&d&&rb(()=>{let x=!1;const b=new r(Xt.origin,{body:new tb,method:"POST",get duplex(){return x=!0,"half"}}).headers.has("Content-Type");return x&&!b}),m=u&&d&&rb(()=>J.isReadableStream(new s("").body)),g={stream:m&&(x=>x.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(x=>{!g[x]&&(g[x]=(b,E)=>{let R=b&&b[x];if(R)return R.call(b);throw new Ve(`Response type '${x}' is not supported`,Ve.ERR_NOT_SUPPORT,E)})});const w=async x=>{if(x==null)return 0;if(J.isBlob(x))return x.size;if(J.isSpecCompliantForm(x))return(await new r(Xt.origin,{method:"POST",body:x}).arrayBuffer()).byteLength;if(J.isArrayBufferView(x)||J.isArrayBuffer(x))return x.byteLength;if(J.isURLSearchParams(x)&&(x=x+""),J.isString(x))return(await p(x)).byteLength},S=async(x,b)=>{const E=J.toFiniteNumber(x.getContentLength());return E??w(b)};return async x=>{let{url:b,method:E,data:R,signal:k,cancelToken:P,timeout:T,onDownloadProgress:j,onUploadProgress:O,responseType:L,headers:M,withCredentials:Q="same-origin",fetchOptions:q}=Sx(x),te=t||fetch;L=L?(L+"").toLowerCase():"text";let ee=SA([k,P&&P.toAbortSignal()],T),ne=null;const G=ee&&ee.unsubscribe&&(()=>{ee.unsubscribe()});let Z;try{if(O&&f&&E!=="get"&&E!=="head"&&(Z=await S(M,R))!==0){let N=new r(b,{method:"POST",body:R,duplex:"half"}),F;if(J.isFormData(R)&&(F=N.headers.get("content-type"))&&M.setContentType(F),N.body){const[le,ye]=X0(Z,gc(Y0(O)));R=Z0(N.body,eb,le,ye)}}J.isString(Q)||(Q=Q?"include":"omit");const B=l&&"credentials"in r.prototype,U={...q,signal:ee,method:E.toUpperCase(),headers:M.normalize().toJSON(),body:R,duplex:"half",credentials:B?Q:void 0};ne=l&&new r(b,U);let A=await(l?te(ne,q):te(b,U));const V=m&&(L==="stream"||L==="response");if(m&&(j||V&&G)){const N={};["status","statusText","headers"].forEach(X=>{N[X]=A[X]});const F=J.toFiniteNumber(A.headers.get("content-length")),[le,ye]=j&&X0(F,gc(Y0(j),!0))||[];A=new s(Z0(A.body,eb,le,()=>{ye&&ye(),G&&G()}),N)}L=L||"text";let W=await g[J.findKey(g,L)||"text"](A,x);return!V&&G&&G(),await new Promise((N,F)=>{bx(N,F,{data:W,headers:mn.from(A.headers),status:A.status,statusText:A.statusText,config:x,request:ne})})}catch(B){throw G&&G(),B&&B.name==="TypeError"&&/Load failed|fetch/i.test(B.message)?Object.assign(new Ve("Network Error",Ve.ERR_NETWORK,x,ne),{cause:B.cause||B}):Ve.from(B,B&&B.code,x,ne)}}},PA=new Map,xx=e=>{let t=e&&e.env||{};const{fetch:r,Request:s,Response:i}=t,l=[s,i,r];let u=l.length,d=u,p,f,m=PA;for(;d--;)p=l[d],f=m.get(p),f===void 0&&m.set(p,f=d?new Map:_A(t)),m=f;return f};xx();const Dm={http:HO,xhr:wA,fetch:{get:xx}};J.forEach(Dm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ob=e=>`- ${e}`,kA=e=>J.isFunction(e)||e===null||e===!1;function TA(e,t){e=J.isArray(e)?e:[e];const{length:r}=e;let s,i;const l={};for(let u=0;u<r;u++){s=e[u];let d;if(i=s,!kA(s)&&(i=Dm[(d=String(s)).toLowerCase()],i===void 0))throw new Ve(`Unknown adapter '${d}'`);if(i&&(J.isFunction(i)||(i=i.get(t))))break;l[d||"#"+u]=i}if(!i){const u=Object.entries(l).map(([p,f])=>`adapter ${p} `+(f===!1?"is not supported by the environment":"is not available in the build"));let d=r?u.length>1?`since :
153
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const s=new this(t);return r.forEach(i=>s.set(i)),s}static accessor(t){const s=(this[G0]=this[G0]={accessors:{}}).accessors,i=this.prototype;function l(u){const d=Fa(u);s[d]||(dA(i,u),s[d]=!0)}return J.isArray(t)?t.forEach(l):l(t),this}};mn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);J.reduceDescriptors(mn.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[r]=s}}});J.freezeMethods(mn);function ip(e,t){const r=this||Sl,s=t||r,i=mn.from(s.headers);let l=s.data;return J.forEach(e,function(d){l=d.call(r,l,i.normalize(),t?t.status:void 0)}),i.normalize(),l}function yx(e){return!!(e&&e.__CANCEL__)}function Ki(e,t,r){Ve.call(this,e??"canceled",Ve.ERR_CANCELED,t,r),this.name="CanceledError"}J.inherits(Ki,Ve,{__CANCEL__:!0});function bx(e,t,r){const s=r.config.validateStatus;!r.status||!s||s(r.status)?e(r):t(new Ve("Request failed with status code "+r.status,[Ve.ERR_BAD_REQUEST,Ve.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function fA(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function pA(e,t){e=e||10;const r=new Array(e),s=new Array(e);let i=0,l=0,u;return t=t!==void 0?t:1e3,function(p){const f=Date.now(),m=s[l];u||(u=f),r[i]=p,s[i]=f;let g=l,w=0;for(;g!==i;)w+=r[g++],g=g%e;if(i=(i+1)%e,i===l&&(l=(l+1)%e),f-u<t)return;const S=m&&f-m;return S?Math.round(w*1e3/S):void 0}}function hA(e,t){let r=0,s=1e3/t,i,l;const u=(f,m=Date.now())=>{r=m,i=null,l&&(clearTimeout(l),l=null),e(...f)};return[(...f)=>{const m=Date.now(),g=m-r;g>=s?u(f,m):(i=f,l||(l=setTimeout(()=>{l=null,u(i)},s-g)))},()=>i&&u(i)]}const gc=(e,t,r=3)=>{let s=0;const i=pA(50,250);return hA(l=>{const u=l.loaded,d=l.lengthComputable?l.total:void 0,p=u-s,f=i(p),m=u<=d;s=u;const g={loaded:u,total:d,progress:d?u/d:void 0,bytes:p,rate:f||void 0,estimated:f&&d&&m?(d-u)/f:void 0,event:l,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(g)},r)},X0=(e,t)=>{const r=e!=null;return[s=>t[0]({lengthComputable:r,total:e,loaded:s}),t[1]]},Y0=e=>(...t)=>J.asap(()=>e(...t)),mA=Xt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Xt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Xt.origin),Xt.navigator&&/(msie|trident)/i.test(Xt.navigator.userAgent)):()=>!0,gA=Xt.hasStandardBrowserEnv?{write(e,t,r,s,i,l,u){if(typeof document>"u")return;const d=[`${e}=${encodeURIComponent(t)}`];J.isNumber(r)&&d.push(`expires=${new Date(r).toUTCString()}`),J.isString(s)&&d.push(`path=${s}`),J.isString(i)&&d.push(`domain=${i}`),l===!0&&d.push("secure"),J.isString(u)&&d.push(`SameSite=${u}`),document.cookie=d.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function vA(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yA(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function wx(e,t,r){let s=!vA(t);return e&&(s||r==!1)?yA(e,t):t}const J0=e=>e instanceof mn?{...e}:e;function Ts(e,t){t=t||{};const r={};function s(f,m,g,w){return J.isPlainObject(f)&&J.isPlainObject(m)?J.merge.call({caseless:w},f,m):J.isPlainObject(m)?J.merge({},m):J.isArray(m)?m.slice():m}function i(f,m,g,w){if(J.isUndefined(m)){if(!J.isUndefined(f))return s(void 0,f,g,w)}else return s(f,m,g,w)}function l(f,m){if(!J.isUndefined(m))return s(void 0,m)}function u(f,m){if(J.isUndefined(m)){if(!J.isUndefined(f))return s(void 0,f)}else return s(void 0,m)}function d(f,m,g){if(g in t)return s(f,m);if(g in e)return s(void 0,f)}const p={url:l,method:l,data:l,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:d,headers:(f,m,g)=>i(J0(f),J0(m),g,!0)};return J.forEach(Object.keys({...e,...t}),function(m){const g=p[m]||i,w=g(e[m],t[m],m);J.isUndefined(w)&&g!==d||(r[m]=w)}),r}const Sx=e=>{const t=Ts({},e);let{data:r,withXSRFToken:s,xsrfHeaderName:i,xsrfCookieName:l,headers:u,auth:d}=t;if(t.headers=u=mn.from(u),t.url=mx(wx(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),d&&u.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):""))),J.isFormData(r)){if(Xt.hasStandardBrowserEnv||Xt.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if(J.isFunction(r.getHeaders)){const p=r.getHeaders(),f=["content-type","content-length"];Object.entries(p).forEach(([m,g])=>{f.includes(m.toLowerCase())&&u.set(m,g)})}}if(Xt.hasStandardBrowserEnv&&(s&&J.isFunction(s)&&(s=s(t)),s||s!==!1&&mA(t.url))){const p=i&&l&&gA.read(l);p&&u.set(i,p)}return t},bA=typeof XMLHttpRequest<"u",wA=bA&&function(e){return new Promise(function(r,s){const i=Sx(e);let l=i.data;const u=mn.from(i.headers).normalize();let{responseType:d,onUploadProgress:p,onDownloadProgress:f}=i,m,g,w,S,x;function b(){S&&S(),x&&x(),i.cancelToken&&i.cancelToken.unsubscribe(m),i.signal&&i.signal.removeEventListener("abort",m)}let E=new XMLHttpRequest;E.open(i.method.toUpperCase(),i.url,!0),E.timeout=i.timeout;function R(){if(!E)return;const k=mn.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),j={data:!d||d==="text"||d==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:k,config:e,request:E};bx(function(L){r(L),b()},function(L){s(L),b()},j),E=null}"onloadend"in E?E.onloadend=R:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(R)},E.onabort=function(){E&&(s(new Ve("Request aborted",Ve.ECONNABORTED,e,E)),E=null)},E.onerror=function(T){const j=T&&T.message?T.message:"Network Error",O=new Ve(j,Ve.ERR_NETWORK,e,E);O.event=T||null,s(O),E=null},E.ontimeout=function(){let T=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const j=i.transitional||gx;i.timeoutErrorMessage&&(T=i.timeoutErrorMessage),s(new Ve(T,j.clarifyTimeoutError?Ve.ETIMEDOUT:Ve.ECONNABORTED,e,E)),E=null},l===void 0&&u.setContentType(null),"setRequestHeader"in E&&J.forEach(u.toJSON(),function(T,j){E.setRequestHeader(j,T)}),J.isUndefined(i.withCredentials)||(E.withCredentials=!!i.withCredentials),d&&d!=="json"&&(E.responseType=i.responseType),f&&([w,x]=gc(f,!0),E.addEventListener("progress",w)),p&&E.upload&&([g,S]=gc(p),E.upload.addEventListener("progress",g),E.upload.addEventListener("loadend",S)),(i.cancelToken||i.signal)&&(m=k=>{E&&(s(!k||k.type?new Ki(null,e,E):k),E.abort(),E=null)},i.cancelToken&&i.cancelToken.subscribe(m),i.signal&&(i.signal.aborted?m():i.signal.addEventListener("abort",m)));const P=fA(i.url);if(P&&Xt.protocols.indexOf(P)===-1){s(new Ve("Unsupported protocol "+P+":",Ve.ERR_BAD_REQUEST,e));return}E.send(l||null)})},SA=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let s=new AbortController,i;const l=function(f){if(!i){i=!0,d();const m=f instanceof Error?f:this.reason;s.abort(m instanceof Ve?m:new Ki(m instanceof Error?m.message:m))}};let u=t&&setTimeout(()=>{u=null,l(new Ve(`timeout ${t} of ms exceeded`,Ve.ETIMEDOUT))},t);const d=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(l):f.removeEventListener("abort",l)}),e=null)};e.forEach(f=>f.addEventListener("abort",l));const{signal:p}=s;return p.unsubscribe=()=>J.asap(d),p}},xA=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let s=0,i;for(;s<r;)i=s+t,yield e.slice(s,i),s=i},CA=async function*(e,t){for await(const r of EA(e))yield*xA(r,t)},EA=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:s}=await t.read();if(r)break;yield s}}finally{await t.cancel()}},Z0=(e,t,r,s)=>{const i=CA(e,t);let l=0,u,d=p=>{u||(u=!0,s&&s(p))};return new ReadableStream({async pull(p){try{const{done:f,value:m}=await i.next();if(f){d(),p.close();return}let g=m.byteLength;if(r){let w=l+=g;r(w)}p.enqueue(new Uint8Array(m))}catch(f){throw d(f),f}},cancel(p){return d(p),i.return()}},{highWaterMark:2})},eb=64*1024,{isFunction:Qu}=J,RA=(({Request:e,Response:t})=>({Request:e,Response:t}))(J.global),{ReadableStream:tb,TextEncoder:nb}=J.global,rb=(e,...t)=>{try{return!!e(...t)}catch{return!1}},_A=e=>{e=J.merge.call({skipUndefined:!0},RA,e);const{fetch:t,Request:r,Response:s}=e,i=t?Qu(t):typeof fetch=="function",l=Qu(r),u=Qu(s);if(!i)return!1;const d=i&&Qu(tb),p=i&&(typeof nb=="function"?(x=>b=>x.encode(b))(new nb):async x=>new Uint8Array(await new r(x).arrayBuffer())),f=l&&d&&rb(()=>{let x=!1;const b=new r(Xt.origin,{body:new tb,method:"POST",get duplex(){return x=!0,"half"}}).headers.has("Content-Type");return x&&!b}),m=u&&d&&rb(()=>J.isReadableStream(new s("").body)),g={stream:m&&(x=>x.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(x=>{!g[x]&&(g[x]=(b,E)=>{let R=b&&b[x];if(R)return R.call(b);throw new Ve(`Response type '${x}' is not supported`,Ve.ERR_NOT_SUPPORT,E)})});const w=async x=>{if(x==null)return 0;if(J.isBlob(x))return x.size;if(J.isSpecCompliantForm(x))return(await new r(Xt.origin,{method:"POST",body:x}).arrayBuffer()).byteLength;if(J.isArrayBufferView(x)||J.isArrayBuffer(x))return x.byteLength;if(J.isURLSearchParams(x)&&(x=x+""),J.isString(x))return(await p(x)).byteLength},S=async(x,b)=>{const E=J.toFiniteNumber(x.getContentLength());return E??w(b)};return async x=>{let{url:b,method:E,data:R,signal:P,cancelToken:k,timeout:T,onDownloadProgress:j,onUploadProgress:O,responseType:L,headers:M,withCredentials:Q="same-origin",fetchOptions:q}=Sx(x),te=t||fetch;L=L?(L+"").toLowerCase():"text";let ee=SA([P,k&&k.toAbortSignal()],T),ne=null;const G=ee&&ee.unsubscribe&&(()=>{ee.unsubscribe()});let Z;try{if(O&&f&&E!=="get"&&E!=="head"&&(Z=await S(M,R))!==0){let N=new r(b,{method:"POST",body:R,duplex:"half"}),F;if(J.isFormData(R)&&(F=N.headers.get("content-type"))&&M.setContentType(F),N.body){const[le,ye]=X0(Z,gc(Y0(O)));R=Z0(N.body,eb,le,ye)}}J.isString(Q)||(Q=Q?"include":"omit");const B=l&&"credentials"in r.prototype,U={...q,signal:ee,method:E.toUpperCase(),headers:M.normalize().toJSON(),body:R,duplex:"half",credentials:B?Q:void 0};ne=l&&new r(b,U);let A=await(l?te(ne,q):te(b,U));const V=m&&(L==="stream"||L==="response");if(m&&(j||V&&G)){const N={};["status","statusText","headers"].forEach(X=>{N[X]=A[X]});const F=J.toFiniteNumber(A.headers.get("content-length")),[le,ye]=j&&X0(F,gc(Y0(j),!0))||[];A=new s(Z0(A.body,eb,le,()=>{ye&&ye(),G&&G()}),N)}L=L||"text";let W=await g[J.findKey(g,L)||"text"](A,x);return!V&&G&&G(),await new Promise((N,F)=>{bx(N,F,{data:W,headers:mn.from(A.headers),status:A.status,statusText:A.statusText,config:x,request:ne})})}catch(B){throw G&&G(),B&&B.name==="TypeError"&&/Load failed|fetch/i.test(B.message)?Object.assign(new Ve("Network Error",Ve.ERR_NETWORK,x,ne),{cause:B.cause||B}):Ve.from(B,B&&B.code,x,ne)}}},kA=new Map,xx=e=>{let t=e&&e.env||{};const{fetch:r,Request:s,Response:i}=t,l=[s,i,r];let u=l.length,d=u,p,f,m=kA;for(;d--;)p=l[d],f=m.get(p),f===void 0&&m.set(p,f=d?new Map:_A(t)),m=f;return f};xx();const Dm={http:HO,xhr:wA,fetch:{get:xx}};J.forEach(Dm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ob=e=>`- ${e}`,PA=e=>J.isFunction(e)||e===null||e===!1;function TA(e,t){e=J.isArray(e)?e:[e];const{length:r}=e;let s,i;const l={};for(let u=0;u<r;u++){s=e[u];let d;if(i=s,!PA(s)&&(i=Dm[(d=String(s)).toLowerCase()],i===void 0))throw new Ve(`Unknown adapter '${d}'`);if(i&&(J.isFunction(i)||(i=i.get(t))))break;l[d||"#"+u]=i}if(!i){const u=Object.entries(l).map(([p,f])=>`adapter ${p} `+(f===!1?"is not supported by the environment":"is not available in the build"));let d=r?u.length>1?`since :
154
154
  `+u.map(ob).join(`
155
- `):" "+ob(u[0]):"as no adapter specified";throw new Ve("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return i}const Cx={getAdapter:TA,adapters:Dm};function ap(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ki(null,e)}function sb(e){return ap(e),e.headers=mn.from(e.headers),e.data=ip.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Cx.getAdapter(e.adapter||Sl.adapter,e)(e).then(function(s){return ap(e),s.data=ip.call(e,e.transformResponse,s),s.headers=mn.from(s.headers),s},function(s){return yx(s)||(ap(e),s&&s.response&&(s.response.data=ip.call(e,e.transformResponse,s.response),s.response.headers=mn.from(s.response.headers))),Promise.reject(s)})}const Ex="1.13.2",Qc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Qc[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const ib={};Qc.transitional=function(t,r,s){function i(l,u){return"[Axios v"+Ex+"] Transitional option '"+l+"'"+u+(s?". "+s:"")}return(l,u,d)=>{if(t===!1)throw new Ve(i(u," has been removed"+(r?" in "+r:"")),Ve.ERR_DEPRECATED);return r&&!ib[u]&&(ib[u]=!0,console.warn(i(u," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(l,u,d):!0}};Qc.spelling=function(t){return(r,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function NA(e,t,r){if(typeof e!="object")throw new Ve("options must be an object",Ve.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let i=s.length;for(;i-- >0;){const l=s[i],u=t[l];if(u){const d=e[l],p=d===void 0||u(d,l,e);if(p!==!0)throw new Ve("option "+l+" must be "+p,Ve.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Ve("Unknown option "+l,Ve.ERR_BAD_OPTION)}}const tc={assertOptions:NA,validators:Qc},pr=tc.validators;let Rs=class{constructor(t){this.defaults=t||{},this.interceptors={request:new K0,response:new K0}}async request(t,r){try{return await this._request(t,r)}catch(s){if(s instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const l=i.stack?i.stack.replace(/^.+\n/,""):"";try{s.stack?l&&!String(s.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(s.stack+=`
156
- `+l):s.stack=l}catch{}}throw s}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ts(this.defaults,r);const{transitional:s,paramsSerializer:i,headers:l}=r;s!==void 0&&tc.assertOptions(s,{silentJSONParsing:pr.transitional(pr.boolean),forcedJSONParsing:pr.transitional(pr.boolean),clarifyTimeoutError:pr.transitional(pr.boolean)},!1),i!=null&&(J.isFunction(i)?r.paramsSerializer={serialize:i}:tc.assertOptions(i,{encode:pr.function,serialize:pr.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),tc.assertOptions(r,{baseUrl:pr.spelling("baseURL"),withXsrfToken:pr.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let u=l&&J.merge(l.common,l[r.method]);l&&J.forEach(["delete","get","head","post","put","patch","common"],x=>{delete l[x]}),r.headers=mn.concat(u,l);const d=[];let p=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(r)===!1||(p=p&&b.synchronous,d.unshift(b.fulfilled,b.rejected))});const f=[];this.interceptors.response.forEach(function(b){f.push(b.fulfilled,b.rejected)});let m,g=0,w;if(!p){const x=[sb.bind(this),void 0];for(x.unshift(...d),x.push(...f),w=x.length,m=Promise.resolve(r);g<w;)m=m.then(x[g++],x[g++]);return m}w=d.length;let S=r;for(;g<w;){const x=d[g++],b=d[g++];try{S=x(S)}catch(E){b.call(this,E);break}}try{m=sb.call(this,S)}catch(x){return Promise.reject(x)}for(g=0,w=f.length;g<w;)m=m.then(f[g++],f[g++]);return m}getUri(t){t=Ts(this.defaults,t);const r=wx(t.baseURL,t.url,t.allowAbsoluteUrls);return mx(r,t.params,t.paramsSerializer)}};J.forEach(["delete","get","head","options"],function(t){Rs.prototype[t]=function(r,s){return this.request(Ts(s||{},{method:t,url:r,data:(s||{}).data}))}});J.forEach(["post","put","patch"],function(t){function r(s){return function(l,u,d){return this.request(Ts(d||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:l,data:u}))}}Rs.prototype[t]=r(),Rs.prototype[t+"Form"]=r(!0)});let jA=class Rx{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(l){r=l});const s=this;this.promise.then(i=>{if(!s._listeners)return;let l=s._listeners.length;for(;l-- >0;)s._listeners[l](i);s._listeners=null}),this.promise.then=i=>{let l;const u=new Promise(d=>{s.subscribe(d),l=d}).then(i);return u.cancel=function(){s.unsubscribe(l)},u},t(function(l,u,d){s.reason||(s.reason=new Ki(l,u,d),r(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=s=>{t.abort(s)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Rx(function(i){t=i}),cancel:t}}};function OA(e){return function(r){return e.apply(null,r)}}function AA(e){return J.isObject(e)&&e.isAxiosError===!0}const rh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(rh).forEach(([e,t])=>{rh[t]=e});function _x(e){const t=new Rs(e),r=rx(Rs.prototype.request,t);return J.extend(r,Rs.prototype,t,{allOwnKeys:!0}),J.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return _x(Ts(e,i))},r}const xt=_x(Sl);xt.Axios=Rs;xt.CanceledError=Ki;xt.CancelToken=jA;xt.isCancel=yx;xt.VERSION=Ex;xt.toFormData=Wc;xt.AxiosError=Ve;xt.Cancel=xt.CanceledError;xt.all=function(t){return Promise.all(t)};xt.spread=OA;xt.isAxiosError=AA;xt.mergeConfig=Ts;xt.AxiosHeaders=mn;xt.formToJSON=e=>vx(J.isHTMLForm(e)?new FormData(e):e);xt.getAdapter=Cx.getAdapter;xt.HttpStatusCode=rh;xt.default=xt;const{Axios:nD,AxiosError:rD,CanceledError:oD,isCancel:sD,CancelToken:iD,VERSION:aD,all:lD,Cancel:uD,isAxiosError:cD,spread:dD,toFormData:fD,AxiosHeaders:pD,HttpStatusCode:hD,formToJSON:mD,getAdapter:gD,mergeConfig:vD}=xt,or=xt.create({baseURL:"/api"}),DA=async e=>(await or.post("/enumerate/molecule",e)).data,IA=async e=>(await or.post("/enumerate/site",e)).data,MA=async e=>(await or.get(`/jobs/${e}`)).data,$A=async e=>(await or.post(`/jobs/${e}/cancel`)).data,LA=async()=>(await or.get("/info/mode")).data.mode,Px=async()=>(await or.get("/info/limits")).data,kx=async()=>(await or.get("/info/building-blocks")).data.building_blocks,FA=async e=>(await or.post("/utils/smiles-to-mol",{smiles:e})).data.molblock,Tx=async()=>(await or.get("/utils/reaction-tags")).data,zA=async e=>(await or.post("/utils/render-mol-with-indices",{smiles:e})).data,VA=async(e,t,r,s)=>(await or.post("/utils/render-result",{smiles:e,bbs:t,alpha:r,bgColor:s})).data.svg,BA=e=>`/api/jobs/${e}/download`,ab=["amide coupling","amide","C-N bond formation","C-N","alkylation","N-arylation","azole","amination"],xn=({label:e,tooltip:t})=>y.jsxs(yt,{gap:5,children:[y.jsx(at,{size:"sm",fw:500,children:e}),y.jsx(As,{label:t,multiline:!0,w:220,withArrow:!0,children:y.jsx(Nm,{size:14,style:{cursor:"help",color:"var(--mantine-color-dimmed)"}})})]});function UA({onSubmit:e,isLoading:t,isMultiFragment:r}){const[s,i]=C.useState(!1),[l,u]=C.useState(ab),[d,p]=C.useState([{value:"test_100_bb_processed.sdf",label:"Test Set (100 BBs)"}]),[f,m]=C.useState(null),[g,w]=C.useState(!1);C.useEffect(()=>{Tx().then(b=>{b&&b.length>0&&u(b)}).catch(b=>console.error("Failed to fetch reaction tags",b)),kx().then(b=>{b&&b.length>0&&p(b)}).catch(b=>console.error("Failed to fetch building blocks",b)),Px().then(b=>{m(b.limits),w(b.server_mode)}).catch(b=>console.error("Failed to fetch server limits",b))},[]);const S=nx({initialValues:{bb_source:"test_100_bb_processed.sdf",reaction_tags:ab,sim_threshold:.5,n_compositions:10,randomize_compositions:!1,random_seed:-1,retro_tree_depth:1,min_frag_size:7,max_bbs_per_frag:0,shuffle_bb_order:!1,max_evals_per_comp:1e3,max_products_per_comp:100,max_total_products:1e3,custom_sites_str:""}});C.useEffect(()=>{d.length>0&&!d.find(b=>b.value===S.values.bb_source)&&S.setFieldValue("bb_source",d[0].value)},[d]);const x=b=>{let E;if(b.custom_sites_str&&b.custom_sites_str.trim())try{const P=b.custom_sites_str.split(/[;,]+/).map(T=>T.trim()).map(T=>{const j=T.split("-").map(O=>parseInt(O.trim()));return j.length===2&&!isNaN(j[0])&&!isNaN(j[1])?j:null}).filter(T=>T!==null);P.length>0&&(E=P)}catch(k){console.error("Failed to parse custom sites",k)}const R={bb_source:b.bb_source,reaction_tags:b.reaction_tags,sim_threshold:b.sim_threshold,n_compositions:b.n_compositions,randomize_compositions:b.randomize_compositions,random_seed:b.random_seed,retro_tree_depth:b.retro_tree_depth,min_frag_size:b.min_frag_size,max_bbs_per_frag:b.max_bbs_per_frag,shuffle_bb_order:b.shuffle_bb_order,max_evals_per_comp:b.max_evals_per_comp,max_products_per_comp:b.max_products_per_comp,max_total_products:b.max_total_products,use_fragment_healer:r,custom_sites:E};e(R)};return y.jsx("form",{onSubmit:S.onSubmit(x),children:y.jsxs(er,{gap:"md",children:[y.jsxs(at,{size:"sm",c:"dimmed",children:["Enumerate libraries starting from a whole molecule by retrosynthetically fragmenting it. You can also provide a multi-fragment molecule to use ",y.jsx("b",{children:"Fragment HEALER"}),"."]}),r&&y.jsx(Dc,{icon:y.jsx(Cj,{size:16}),title:"Fragment Mode Detected",color:"blue",children:"Multi-component molecule detected. System will use Fragment HEALER."}),y.jsx(Fc,{label:y.jsx(xn,{label:"Building Block Source",tooltip:"Choose the library of building blocks to use for enumeration."}),data:d,...S.getInputProps("bb_source")}),y.jsx(Mc,{label:y.jsx(xn,{label:"Reaction Tags",tooltip:`Select reaction tags to specify the reaction chemistry. One tag may point to multiple reaction.${g&&f?` Server max: ${f.max_reaction_tags}`:""}`}),data:l,searchable:!0,maxValues:g&&f?f.max_reaction_tags:20,...S.getInputProps("reaction_tags")}),y.jsxs(Ur,{withBorder:!0,p:"md",bg:"var(--mantine-color-gray-0)",children:[y.jsx(yt,{justify:"space-between",mb:"xs",children:y.jsx(xn,{label:`Similarity Threshold: ${S.values.sim_threshold}`,tooltip:`Minimum Tanimoto similarity required between a fragment and a building block.${g&&f?` Server limit: ${f.sim_threshold_min}-${f.sim_threshold_max}`:""}`})}),y.jsx(gm,{min:g&&f?f.sim_threshold_min:0,max:g&&f?f.sim_threshold_max:1,step:.01,label:b=>b.toFixed(2),...S.getInputProps("sim_threshold")})]}),y.jsx(Mn,{variant:"subtle",size:"xs",onClick:()=>i(!s),children:s?"Hide Advanced Options":"Show Advanced Options"}),y.jsx(Ka,{in:s,children:y.jsxs(er,{gap:"md",children:[y.jsx(el,{label:y.jsx(xn,{label:"Split Sites",tooltip:"Manually specify bonds to break using atom indices (e.g., '1-2, 3-4'). This will disable the retrosynthesis."}),placeholder:"e.g., 9-10, 6-9",...S.getInputProps("custom_sites_str")}),y.jsxs(yt,{grow:!0,align:"flex-start",children:[y.jsxs(yt,{grow:!0,align:"center",gap:4,children:[y.jsx(xn,{label:"Shuffle Compositions",tooltip:"Shuffle the order of fragment compositions."}),y.jsx(Ii,{...S.getInputProps("randomize_compositions",{type:"checkbox"})})]}),y.jsxs(yt,{grow:!0,align:"center",gap:4,children:[y.jsx(xn,{label:"Shuffle BB Order",tooltip:"Shuffle the order of building blocks within the library."}),y.jsx(Ii,{...S.getInputProps("shuffle_bb_order",{type:"checkbox"})})]})]}),y.jsxs(yt,{grow:!0,children:[y.jsx(Dn,{label:y.jsx(xn,{label:"N Compositions",tooltip:`Number of different fragment compositions to explore.${g&&f?` Server max: ${f.n_compositions_max}`:""}`}),min:1,max:g&&f?f.n_compositions_max:100,...S.getInputProps("n_compositions")}),y.jsx(Dn,{label:y.jsx(xn,{label:"Max BBs per Fragment",tooltip:`Use top N building blocks per fragment instead of similarity threshold. Set 0 to disable.${g&&f?` Server max: ${f.max_bbs_per_frag}`:""}`}),min:0,max:g&&f?f.max_bbs_per_frag:100,...S.getInputProps("max_bbs_per_frag")})]}),y.jsx(Dn,{label:y.jsx(xn,{label:"Max Evals / Comp",tooltip:`Maximum number of reaction attempts per composition.${g&&f?` Server max: ${f.max_evals_per_comp}`:""}`}),min:1,max:g&&f?f.max_evals_per_comp:1e5,...S.getInputProps("max_evals_per_comp")}),y.jsxs(yt,{grow:!0,children:[y.jsx(Dn,{label:y.jsx(xn,{label:"Max Products / Comp",tooltip:`Maximum number of products to generate per composition.${g&&f?` Server max: ${f.max_products_per_comp}`:""}`}),min:1,max:g&&f?f.max_products_per_comp:void 0,placeholder:"Unlimited",...S.getInputProps("max_products_per_comp")}),y.jsx(Dn,{label:y.jsx(xn,{label:"Max Total Products",tooltip:`Stop enumeration after generating this many products total.${g&&f?` Server max: ${f.max_total_products}`:""}`}),min:1,max:g&&f?f.max_total_products:void 0,placeholder:"Unlimited",...S.getInputProps("max_total_products")})]}),y.jsxs(yt,{grow:!0,children:[y.jsx(Dn,{label:y.jsx(xn,{label:"Retro Depth",tooltip:`Depth of the retrosynthetic tree search.${g&&f?` Server max: ${f.retro_depth_max}`:""}`}),min:1,max:g&&f?f.retro_depth_max:5,...S.getInputProps("retro_tree_depth")}),y.jsx(Dn,{label:y.jsx(xn,{label:"Min Frag Size",tooltip:`Minimum number of heavy atoms for a fragment to be valid.${g&&f?` Server min: ${f.min_frag_size_min}`:""}`}),min:g&&f?f.min_frag_size_min:1,max:15,...S.getInputProps("min_frag_size")})]})]})}),y.jsx(Mn,{type:"submit",loading:t,fullWidth:!0,size:"md",children:"Enumerate"})]})})}const lp=["amide coupling","amide","C-N bond formation","C-N","alkylation","N-arylation","azole","amination"],Co=({label:e,tooltip:t})=>y.jsxs(yt,{gap:5,children:[y.jsx(at,{size:"sm",fw:500,children:e}),y.jsx(As,{label:t,multiline:!0,w:220,withArrow:!0,children:y.jsx(Nm,{size:14,style:{cursor:"help",color:"var(--mantine-color-dimmed)"}})})]});function HA({onSubmit:e,isLoading:t}){const[r,s]=C.useState(!1),[i,l]=C.useState(!1),[u,d]=C.useState(lp),[p,f]=C.useState([{value:"test_100_bb_processed.sdf",label:"Test Set (100 BBs)"}]),[m,g]=C.useState(null),[w,S]=C.useState(!1);C.useEffect(()=>{Tx().then(R=>{R&&R.length>0&&d(R)}).catch(R=>console.error("Failed to fetch reaction tags",R)),kx().then(R=>{R&&R.length>0&&f(R)}).catch(R=>console.error("Failed to fetch building blocks",R)),Px().then(R=>{g(R.limits),S(R.server_mode)}).catch(R=>console.error("Failed to fetch server limits",R))},[]);const x=nx({initialValues:{bb_source:"test_100_bb_processed.sdf",reaction_tags:lp,reactive_sites_str:"",struct_rules_str:"",shuffle_bb_order:!1,max_evals_per_comp:1e4,max_products_per_comp:1e3,max_total_products:1e3,rule_MW:[0,250],rule_HBD:[0,2],rule_HBA:[0,5],rule_TPSA:[0,60],rule_RotB:[0,5],rule_Rings:[0,3],rule_ArRings:[0,1],rule_Chiral:[0,1]}});C.useEffect(()=>{p.length>0&&!p.find(R=>R.value===x.values.bb_source)&&x.setFieldValue("bb_source",p[0].value)},[p]),C.useEffect(()=>{x.setFieldValue("reaction_tags",lp)},[]);const b=R=>{let k;R.reactive_sites_str&&R.reactive_sites_str.trim()&&(k=R.reactive_sites_str.split(",").map(O=>parseInt(O.trim())).filter(O=>!isNaN(O)),k.length===0&&(k=void 0));let P;R.struct_rules_str&&R.struct_rules_str.trim()&&(P=R.struct_rules_str.split(",").map(O=>O.trim()).filter(O=>O.length>0));const T={MW:R.rule_MW,HBD:R.rule_HBD,HBA:R.rule_HBA,TPSA:R.rule_TPSA,RotB:R.rule_RotB,Rings:R.rule_Rings,ArRings:R.rule_ArRings,Chiral:R.rule_Chiral},j={bb_source:R.bb_source,reaction_tags:R.reaction_tags,reactive_sites:k,rules:T,struct_rules:P,shuffle_bb_order:R.shuffle_bb_order,max_evals_per_comp:R.max_evals_per_comp,max_products_per_comp:R.max_products_per_comp,max_total_products:R.max_total_products};e(j)},E=(R,k,P,T,j=1)=>{const O=x.values[k];return y.jsxs(Ur,{withBorder:!0,p:"xs",bg:"var(--mantine-color-gray-0)",children:[y.jsxs(at,{size:"xs",fw:500,mb:4,children:[R,": ",O[0]," - ",O[1]]}),y.jsx(vm,{min:P,max:T,step:j,minRange:j,...x.getInputProps(k)})]})};return y.jsx("form",{onSubmit:x.onSubmit(b),children:y.jsxs(er,{gap:"md",children:[y.jsx(at,{size:"sm",c:"dimmed",children:"Enumerate libraries by attaching building blocks to specific reactive sites on the molecule. Use the filters below to restrict building blocks based on their properties. You can also set substructure rules using SMARTS patterns to further refine the selection."}),y.jsx(Fc,{label:y.jsx(Co,{label:"Building Block Source",tooltip:"Choose the library of building blocks to use for enumeration."}),data:p,...x.getInputProps("bb_source")}),y.jsx(Mc,{label:y.jsx(Co,{label:"Reaction Tags",tooltip:`Select reaction tags to specify the reaction chemistry. One tag may point to multiple reaction.${w&&m?` Server max: ${m.max_reaction_tags}`:""}`}),data:u,searchable:!0,maxValues:w&&m?m.max_reaction_tags:20,...x.getInputProps("reaction_tags")}),y.jsx(el,{label:y.jsx(Co,{label:"Reactive Sites (Indices)",tooltip:"Comma-separated atom indices to target (e.g., '1, 5'). Leave empty for all sites."}),placeholder:"e.g., 1, 5 (Leave empty for all)",...x.getInputProps("reactive_sites_str")}),y.jsx(Mn,{variant:"subtle",size:"xs",onClick:()=>s(!r),children:r?"Hide BB Filters":"Show BB Filters (Properties)"}),y.jsx(Ka,{in:r,children:y.jsxs(er,{gap:"xs",children:[E("Molecular Weight","rule_MW",0,500,10),E("H-Bond Donors","rule_HBD",0,5),E("H-Bond Acceptors","rule_HBA",0,10),E("TPSA","rule_TPSA",0,120,5),E("Rotatable Bonds","rule_RotB",0,10),E("Total Rings","rule_Rings",0,5),E("Aromatic Rings","rule_ArRings",0,5),E("Chiral Centers","rule_Chiral",0,5)]})}),y.jsx(Mn,{variant:"subtle",size:"xs",onClick:()=>l(!i),children:i?"Hide Advanced Options":"Show Advanced Options"}),y.jsx(Ka,{in:i,children:y.jsxs(er,{gap:"md",children:[y.jsx(el,{label:y.jsx(Co,{label:"Structure Rules (SMARTS)",tooltip:"Comma-separated SMARTS patterns that building blocks must contain."}),placeholder:"e.g., c1ccccc1, [CX3](=O)[OX2H1]",...x.getInputProps("struct_rules_str")}),y.jsx(Ii,{label:y.jsx(Co,{label:"Shuffle BB Order",tooltip:"Randomize the order of building blocks within the library."}),...x.getInputProps("shuffle_bb_order",{type:"checkbox"})}),y.jsx(Dn,{label:y.jsx(Co,{label:"Max Evals / Comp",tooltip:`Maximum number of reaction attempts per composition.${w&&m?` Server max: ${m.max_evals_per_comp}`:""}`}),min:1,max:w&&m?m.max_evals_per_comp:1e5,...x.getInputProps("max_evals_per_comp")}),y.jsxs(yt,{grow:!0,children:[y.jsx(Dn,{label:y.jsx(Co,{label:"Max Products / Comp",tooltip:`Maximum number of products to generate per composition.${w&&m?` Server max: ${m.max_products_per_comp}`:""}`}),min:1,max:w&&m?m.max_products_per_comp:void 0,placeholder:"Unlimited",...x.getInputProps("max_products_per_comp")}),y.jsx(Dn,{label:y.jsx(Co,{label:"Max Total Products",tooltip:`Stop enumeration after generating this many products total.${w&&m?` Server max: ${m.max_total_products}`:""}`}),min:1,max:w&&m?m.max_total_products:void 0,placeholder:"Unlimited",...x.getInputProps("max_total_products")})]})]})}),y.jsx(Mn,{type:"submit",loading:t,fullWidth:!0,size:"md",color:"violet",children:"Enumerate Sites"})]})})}const WA={green:"rgba(72, 173, 85, 0.06)",yellow:"rgba(235, 235, 52, 0.06)",red:"rgba(235, 64, 52, 0.06)"};function QA({smiles:e,bbs:t,alpha:r,bgColor:s}){const[i,l]=C.useState(null),[u,d]=C.useState(!0);return C.useEffect(()=>{let p=!0;return d(!0),VA(e,t,r,s).then(f=>{p&&(l(f),d(!1))}).catch(()=>{p&&d(!1)}),()=>{p=!1}},[e,JSON.stringify(t),r,s]),u?y.jsx(Uo,{size:"xs"}):i?y.jsx(yi,{src:i,w:200}):y.jsx(at,{size:"xs",c:"dimmed",children:"Error"})}function qA({row:e,bbKeys:t}){var d,p;const[r,s]=C.useState(!1),i=C.useMemo(()=>t.map(f=>e[f]).filter(Boolean),[e,t]),l=e.stoplight_color?e.stoplight_color.toLowerCase():"",u=WA[l]||"rgba(255, 255, 255, 1.0)";return y.jsxs(Le.Tr,{bg:u,children:[y.jsx(Le.Td,{onClick:()=>s(!r),style:{cursor:"pointer"},children:r?y.jsx(QA,{smiles:e.Product,bbs:i,alpha:.8,bgColor:u}):y.jsxs(y.Fragment,{children:[y.jsx(at,{size:"xs",c:"dimmed",fs:"italic",children:"Click to view structure"}),y.jsx(at,{size:"xs",mt:4,style:{fontFamily:"monospace"},children:e.Product})]})}),y.jsx(Le.Td,{style:{minWidth:80},ta:"center",children:(d=e.Similarity_to_query)==null?void 0:d.toFixed(2)}),y.jsx(Le.Td,{style:{minWidth:80},ta:"center",children:(p=e.QED)==null?void 0:p.toFixed(2)}),y.jsx(Le.Td,{style:{whiteSpace:"normal",minWidth:"180px"},children:e.Reaction_name&&y.jsx(Yh,{variant:"light",color:"blue",style:{textTransform:"none",height:"auto",padding:"4px 8px",whiteSpace:"normal",display:"block",lineHeight:"1.4",textAlign:"left"},children:e.Reaction_name})}),t.map(f=>{const m=f.replace("BB","URL"),g=e[m]||(f==="BB"?e.URL:void 0);return y.jsx(Le.Td,{style:{fontFamily:"monospace",fontSize:"12px",maxWidth:"150px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:e[f],children:g?y.jsx(Hr,{href:g,target:"_blank",size:"xs",inherit:!0,style:{textDecoration:"underline"},children:e[f]}):e[f]},f)})]})}function KA({results:e}){if(!e||e.length===0)return y.jsx(at,{ta:"center",c:"dimmed",my:"xl",children:"No results to display"});const t=parseInt("250"),r=e.slice(0,t),s=["Product","Similarity_to_query","Reaction_name","stoplight_color","QED"],i=C.useMemo(()=>{const l=new Set;return r.forEach(u=>{Object.keys(u).forEach(d=>{d.startsWith("BB")&&!s.includes(d)&&l.add(d)})}),Array.from(l).sort((u,d)=>{const p=parseInt(u.replace("BB",""))||0,f=parseInt(d.replace("BB",""))||0;return p-f})},[r]);return y.jsxs(er,{gap:"sm",children:[y.jsxs(Dc,{icon:y.jsx(Nm,{size:16}),title:"Results Legend",color:"gray",variant:"light",children:[y.jsxs(yt,{gap:"md",children:[y.jsxs(yt,{gap:"xs",children:[y.jsx(Wa,{color:"rgba(72, 173, 85, 0.6)",size:14})," ",y.jsx(at,{size:"sm",children:"High Drug-likeness (Green)"})]}),y.jsxs(yt,{gap:"xs",children:[y.jsx(Wa,{color:"rgba(235, 235, 52, 0.6)",size:14})," ",y.jsx(at,{size:"sm",children:"Medium Drug-likeness (Yellow)"})]}),y.jsxs(yt,{gap:"xs",children:[y.jsx(Wa,{color:"rgba(235, 64, 52, 0.6)",size:14})," ",y.jsx(at,{size:"sm",children:"Low Drug-likeness (Red)"})]})]}),y.jsxs(at,{size:"xs",mt:"xs",children:["The table below displays the first ",t," enumeration results at max. Columns are also truncated for simplicity. To view the complete data, download the full results. Rows are colored based on"," ",y.jsx(Hr,{href:"https://doi.org/10.1021/acs.jcim.4c00412",target:"_blank",inherit:!0,children:"Stoplight Scores"}),", which is a drug-likeness indicator. Click on a row to visualize the molecule. The building blocks are highlighted in the structure but may not be accurate always. You can also click on building block IDs to visit their source page (if available)."]})]}),y.jsx(Os,{h:600,children:y.jsxs(Le,{striped:!0,highlightOnHover:!0,verticalSpacing:"sm",children:[y.jsx(Le.Thead,{children:y.jsxs(Le.Tr,{children:[y.jsx(Le.Th,{w:220,children:"Product"}),y.jsx(Le.Th,{w:80,ta:"center",children:"Sim."}),y.jsx(Le.Th,{w:80,ta:"center",children:"QED"}),y.jsx(Le.Th,{w:200,children:"Reaction Path"}),i.map(l=>y.jsx(Le.Th,{children:l},l))]})}),y.jsx(Le.Tbody,{children:r.map((l,u)=>y.jsx(qA,{row:l,bbKeys:i},u))})]})})]})}function GA(){var te,ee,ne;const{colorScheme:e,toggleColorScheme:t}=PR(),r=C.useRef(null),[s,i]=C.useState("molecule"),[l,u]=C.useState(null),[d,p]=C.useState([]),[f,m]=C.useState(!1),[g,w]=C.useState("local"),[S,x]=C.useState(null),[b,E]=C.useState(!0),[R,k]=C.useState(void 0);C.useEffect(()=>{LA().then(w).catch(()=>w("local")),FA("COC1=CC=CC=C1OCCNCC(COC2=CC=CC3=C2C4=CC=CC=C4N3)O").then(k).catch(console.error)},[]);const P=rp({mutationFn:$A,onSuccess:()=>{Tt.show({title:"Cancelled",message:"Job has been cancelled",color:"orange"}),u(null)},onError:G=>{Tt.show({title:"Error",message:G.message||"Failed to cancel job",color:"red"})}}),T=rp({mutationFn:DA,onSuccess:G=>{u(G.job_id),Tt.show({title:"Molecule Job Submitted",message:"Enumeration started...",color:"blue"}),p([])},onError:G=>{Tt.show({title:"Error",message:G.message||"Failed to submit job",color:"red"})}}),j=rp({mutationFn:IA,onSuccess:G=>{u(G.job_id),Tt.show({title:"Site Job Submitted",message:"Enumeration started...",color:"violet"}),p([])},onError:G=>{Tt.show({title:"Error",message:G.message||"Failed to submit job",color:"red"})}}),O=wj({queryKey:["jobStatus",l],queryFn:()=>MA(l),enabled:!!l,refetchInterval:G=>{var Z,B;return((Z=G==null?void 0:G.state.data)==null?void 0:Z.status)==="SUCCESS"||((B=G==null?void 0:G.state.data)==null?void 0:B.status)==="FAILURE"?!1:2e3}});C.useEffect(()=>{var G,Z;if(((G=O.data)==null?void 0:G.status)==="SUCCESS"&&d.length===0&&O.data.result){const B=O.data.result.display||[];p(B),B.length<=1?Tt.show({title:"No New Molecules Found",message:"Only the input molecule was returned. Try adjusting the parameters.",color:"orange"}):Tt.show({title:"Success",message:`Enumeration completed! Generated ${B.length} molecules.`,color:"green"})}else((Z=O.data)==null?void 0:Z.status)==="FAILURE"&&l&&(Tt.show({title:"Job Failed",message:O.data.error||"Unknown error occurred",color:"red"}),u(null))},[O.data,d.length,l]);const L=ll(async G=>{const Z=(G.match(/\./g)||[]).length;if(m(Z>=1),G)try{const B=await zA(G);x(typeof B=="string"?{svg:B}:B)}catch(B){console.error("Failed to render indices",B)}else x(null)},500),M=async G=>{if(r.current)try{const Z=await r.current.getSmiles();if(!Z){Tt.show({title:"Error",message:"Please draw a molecule first",color:"red"});return}T.mutate({...G,molecule:Z})}catch{Tt.show({title:"Error",message:"Failed to retrieve structure",color:"red"})}},Q=async G=>{if(r.current)try{const Z=await r.current.getSmiles();if(!Z){Tt.show({title:"Error",message:"Please draw a molecule first",color:"red"});return}j.mutate({...G,molecule:Z})}catch{Tt.show({title:"Error",message:"Failed to retrieve structure",color:"red"})}},q=T.isPending||j.isPending||!!l&&((te=O.data)==null?void 0:te.status)!=="SUCCESS"&&((ee=O.data)==null?void 0:ee.status)!=="FAILURE";return y.jsxs(em,{fluid:!0,p:"md",style:{minHeight:"100vh",backgroundColor:e==="dark"?"#1A1B1E":"#f8f9fa"},children:[y.jsxs(he,{mb:"xl",pos:"relative",children:[y.jsxs(er,{align:"center",gap:0,children:[y.jsxs(yt,{gap:"md",align:"center",children:[y.jsx(yi,{src:"/healer_logo_no_text.png",alt:"HEALER",h:36,w:"auto",fit:"contain"}),y.jsx(Qa,{order:2,children:"HEALER Dashboard"}),y.jsx(yi,{src:"/healer_logo_no_text.png",alt:"HEALER",h:36,w:"auto",fit:"contain"})]}),y.jsx(at,{c:"dimmed",children:"Molecular enumeration using retrosynthetic analysis"})]}),y.jsx(hl,{variant:"outline",color:e==="dark"?"yellow":"blue",onClick:()=>t(),title:"Toggle color scheme",pos:"absolute",right:0,top:"50%",style:{transform:"translateY(-50%)"},children:e==="dark"?y.jsx(Lj,{size:"1.1rem"}):y.jsx(Mj,{size:"1.1rem"})})]}),y.jsx(Ur,{withBorder:!0,p:"md",mb:"xl",radius:"md",shadow:"xs",children:y.jsxs(er,{gap:"xs",children:[y.jsxs(at,{size:"sm",children:[y.jsx("strong",{children:"HEALER"})," (Hit Expansion to Advanced Leads Using Enumerated Reactions) is a computational chemistry platform designed to accelerate lead optimization by generating synthetically accessible chemical space."]}),y.jsx(at,{size:"sm",fw:500,children:"Capabilities:"}),y.jsxs(us,{size:"sm",withPadding:!0,children:[y.jsxs(us.Item,{children:[y.jsx("strong",{children:"Molecule HEALER"}),": Deconstruct a query molecule into its constituent fragments and re-enumerate them to discover novel analogs with improved properties."]}),y.jsxs(us.Item,{children:[y.jsx("strong",{children:"Fragment HEALER"}),": Enumerate analogs for a set of fragments (e.g., from a multi-fragment query) to explore chemical space around specific motifs."]}),y.jsxs(us.Item,{children:[y.jsx("strong",{children:"Site HEALER"}),": Perform targeted enumeration at specific reactive sites to explore local SAR (Structure-Activity Relationship) while maintaining the core scaffold."]})]}),y.jsxs(at,{size:"sm",children:["Generated molecules are designed to be synthetically accessible through established reaction transforms, bridging the gap between computational design and laboratory synthesis. This server uses ",y.jsx(Hr,{href:"https://enamine.net/building-blocks/building-blocks-catalog",target:"_blank",children:"Enamine's publicly available building blocks"})," for enumeration. However, HEALER is not limited to Enamine's libraries and can be used with any custom building block collection when set up locally."]}),y.jsxs(at,{size:"sm",children:["The reaction library is available at ",y.jsx(Hr,{href:"#",target:"_blank",children:"[Reaction Library Placeholder]"}),". Please reach out to us if you wish to add custom reaction SMARTS."]}),y.jsx(tm,{variant:"dashed",label:"Usage & Privacy",labelPosition:"center"}),y.jsxs(at,{size:"xs",c:"dimmed",children:[y.jsx("strong",{children:"Note:"})," This web interface applies certain limits to input parameters to ensure stable performance. For unrestricted access, please follow the setup instructions on ",y.jsx(Hr,{href:"https://github.com/eneskelestemur/healer",target:"_blank",children:"GitHub"})," to use HEALER via the CLI, Python API, or a local UI instance."]}),y.jsxs(at,{size:"xs",c:"dimmed",children:[y.jsx("strong",{children:"Privacy:"})," This server does not collect or store your query molecules or generated results. All processing is performed in-memory or via temporary job queues."]}),y.jsxs(yt,{gap:"xs",mt:"xs",children:[y.jsx(Hr,{href:"#",size:"xs",target:"_blank",fw:700,children:"[Cite HEALER Paper]"}),y.jsx(at,{size:"xs",c:"dimmed",children:"|"}),y.jsx(Hr,{href:"https://github.com/eneskelestemur/healer",size:"xs",target:"_blank",fw:700,children:"[GitHub Repository]"})]})]})}),y.jsxs(Yn,{value:s,onChange:i,variant:"pills",radius:"md",mb:"md",children:[y.jsxs(Yn.List,{grow:!0,children:[y.jsx(Yn.Tab,{value:"molecule",color:"blue",leftSection:y.jsx(Rj,{size:16}),children:"Molecule HEALER"}),y.jsx(Yn.Tab,{value:"site",color:"violet",leftSection:y.jsx(Aj,{size:16}),children:"Site HEALER"})]}),y.jsxs($r,{mt:"md",children:[y.jsx($r.Col,{span:{base:12,md:5,lg:4},children:y.jsxs(Ur,{p:"md",withBorder:!0,shadow:"sm",children:[y.jsx(Qa,{order:4,mb:"md",children:"Parameters"}),y.jsx(Yn.Panel,{value:"molecule",children:y.jsx(UA,{onSubmit:M,isLoading:q,isMultiFragment:f})}),y.jsx(Yn.Panel,{value:"site",children:y.jsx(HA,{onSubmit:Q,isLoading:q})})]})}),y.jsx($r.Col,{span:{base:12,md:7,lg:8},children:y.jsxs(er,{gap:"md",children:[y.jsx(Ur,{withBorder:!0,shadow:"sm",p:0,style:{overflow:"hidden"},children:y.jsx(Vj,{ref:r,onStructChange:L,initialMolfile:R})}),S&&y.jsxs(Ur,{withBorder:!0,p:"xs",children:[y.jsxs(yt,{justify:"space-between",mb:"xs",children:[y.jsx(at,{size:"sm",fw:500,children:"Atom Indices Reference (for Reactive/Split Sites)"}),y.jsx(Mn,{variant:"subtle",size:"xs",leftSection:b?y.jsx(Tj,{size:14}):y.jsx(jj,{size:14}),onClick:()=>E(!b),children:b?"Hide":"Show"})]}),y.jsx(Ka,{in:b,children:y.jsxs($r,{children:[y.jsx($r.Col,{span:6,children:y.jsx(yi,{src:S.svg,fit:"contain",bg:"white",p:"xs"})}),y.jsxs($r.Col,{span:6,children:[y.jsx(at,{size:"xs",fw:700,mb:5,children:"Properties"}),S.properties&&y.jsx(Le,{withTableBorder:!0,withColumnBorders:!0,children:y.jsxs(Le.Tbody,{children:[y.jsxs(Le.Tr,{children:[y.jsx(Le.Td,{children:"MW"}),y.jsx(Le.Td,{children:S.properties.MW})]}),y.jsxs(Le.Tr,{children:[y.jsx(Le.Td,{children:"LogP"}),y.jsx(Le.Td,{children:S.properties.LogP})]}),y.jsxs(Le.Tr,{children:[y.jsx(Le.Td,{children:"HBA"}),y.jsx(Le.Td,{children:S.properties.HBA})]}),y.jsxs(Le.Tr,{children:[y.jsx(Le.Td,{children:"HBD"}),y.jsx(Le.Td,{children:S.properties.HBD})]}),y.jsxs(Le.Tr,{children:[y.jsx(Le.Td,{children:"TPSA"}),y.jsx(Le.Td,{children:S.properties.TPSA})]}),y.jsxs(Le.Tr,{children:[y.jsx(Le.Td,{children:"QED"}),y.jsx(Le.Td,{children:S.properties.QED})]})]})})]})]})})]}),y.jsxs(Ur,{p:"md",withBorder:!0,shadow:"sm",children:[y.jsxs(yt,{justify:"space-between",mb:"sm",children:[y.jsxs(Qa,{order:4,mb:"sm",children:["Results ",d.length>0&&`(${d.length})`]}),((ne=O.data)==null?void 0:ne.status)==="SUCCESS"&&l&&y.jsx(yt,{justify:"flex-end",children:y.jsx(Mn,{component:"a",href:BA(l),leftSection:y.jsx(Pj,{size:16}),variant:"outline",color:"green",children:"Download Results (CSV)"})})]}),q&&y.jsxs(yt,{gap:"sm",mb:"sm",children:[y.jsx(at,{children:"Processing..."}),y.jsx(As,{label:g==="local"?"Cancel not available in local mode":"Cancel job",withArrow:!0,children:y.jsx(Mn,{size:"xs",color:"red",variant:"light",leftSection:y.jsx(zj,{size:14}),disabled:g==="local"||!l,loading:P.isPending,onClick:()=>l&&P.mutate(l),children:"Cancel"})})]}),y.jsx(KA,{results:d})]})]})})]})]})]})}const XA={primaryColor:"blue",fontFamily:"system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif"},YA=new aj({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});TC.createRoot(document.getElementById("root")).render(y.jsx(St.StrictMode,{children:y.jsx(lj,{client:YA,children:y.jsxs(Wb,{theme:XA,defaultColorScheme:"light",children:[y.jsx(eo,{position:"top-right"}),y.jsx(GA,{})]})})}));
155
+ `):" "+ob(u[0]):"as no adapter specified";throw new Ve("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return i}const Cx={getAdapter:TA,adapters:Dm};function ap(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ki(null,e)}function sb(e){return ap(e),e.headers=mn.from(e.headers),e.data=ip.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Cx.getAdapter(e.adapter||Sl.adapter,e)(e).then(function(s){return ap(e),s.data=ip.call(e,e.transformResponse,s),s.headers=mn.from(s.headers),s},function(s){return yx(s)||(ap(e),s&&s.response&&(s.response.data=ip.call(e,e.transformResponse,s.response),s.response.headers=mn.from(s.response.headers))),Promise.reject(s)})}const Ex="1.13.2",Qc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Qc[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const ib={};Qc.transitional=function(t,r,s){function i(l,u){return"[Axios v"+Ex+"] Transitional option '"+l+"'"+u+(s?". "+s:"")}return(l,u,d)=>{if(t===!1)throw new Ve(i(u," has been removed"+(r?" in "+r:"")),Ve.ERR_DEPRECATED);return r&&!ib[u]&&(ib[u]=!0,console.warn(i(u," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(l,u,d):!0}};Qc.spelling=function(t){return(r,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function NA(e,t,r){if(typeof e!="object")throw new Ve("options must be an object",Ve.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let i=s.length;for(;i-- >0;){const l=s[i],u=t[l];if(u){const d=e[l],p=d===void 0||u(d,l,e);if(p!==!0)throw new Ve("option "+l+" must be "+p,Ve.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Ve("Unknown option "+l,Ve.ERR_BAD_OPTION)}}const tc={assertOptions:NA,validators:Qc},hr=tc.validators;let Rs=class{constructor(t){this.defaults=t||{},this.interceptors={request:new K0,response:new K0}}async request(t,r){try{return await this._request(t,r)}catch(s){if(s instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const l=i.stack?i.stack.replace(/^.+\n/,""):"";try{s.stack?l&&!String(s.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(s.stack+=`
156
+ `+l):s.stack=l}catch{}}throw s}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ts(this.defaults,r);const{transitional:s,paramsSerializer:i,headers:l}=r;s!==void 0&&tc.assertOptions(s,{silentJSONParsing:hr.transitional(hr.boolean),forcedJSONParsing:hr.transitional(hr.boolean),clarifyTimeoutError:hr.transitional(hr.boolean)},!1),i!=null&&(J.isFunction(i)?r.paramsSerializer={serialize:i}:tc.assertOptions(i,{encode:hr.function,serialize:hr.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),tc.assertOptions(r,{baseUrl:hr.spelling("baseURL"),withXsrfToken:hr.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let u=l&&J.merge(l.common,l[r.method]);l&&J.forEach(["delete","get","head","post","put","patch","common"],x=>{delete l[x]}),r.headers=mn.concat(u,l);const d=[];let p=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(r)===!1||(p=p&&b.synchronous,d.unshift(b.fulfilled,b.rejected))});const f=[];this.interceptors.response.forEach(function(b){f.push(b.fulfilled,b.rejected)});let m,g=0,w;if(!p){const x=[sb.bind(this),void 0];for(x.unshift(...d),x.push(...f),w=x.length,m=Promise.resolve(r);g<w;)m=m.then(x[g++],x[g++]);return m}w=d.length;let S=r;for(;g<w;){const x=d[g++],b=d[g++];try{S=x(S)}catch(E){b.call(this,E);break}}try{m=sb.call(this,S)}catch(x){return Promise.reject(x)}for(g=0,w=f.length;g<w;)m=m.then(f[g++],f[g++]);return m}getUri(t){t=Ts(this.defaults,t);const r=wx(t.baseURL,t.url,t.allowAbsoluteUrls);return mx(r,t.params,t.paramsSerializer)}};J.forEach(["delete","get","head","options"],function(t){Rs.prototype[t]=function(r,s){return this.request(Ts(s||{},{method:t,url:r,data:(s||{}).data}))}});J.forEach(["post","put","patch"],function(t){function r(s){return function(l,u,d){return this.request(Ts(d||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:l,data:u}))}}Rs.prototype[t]=r(),Rs.prototype[t+"Form"]=r(!0)});let jA=class Rx{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(l){r=l});const s=this;this.promise.then(i=>{if(!s._listeners)return;let l=s._listeners.length;for(;l-- >0;)s._listeners[l](i);s._listeners=null}),this.promise.then=i=>{let l;const u=new Promise(d=>{s.subscribe(d),l=d}).then(i);return u.cancel=function(){s.unsubscribe(l)},u},t(function(l,u,d){s.reason||(s.reason=new Ki(l,u,d),r(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=s=>{t.abort(s)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Rx(function(i){t=i}),cancel:t}}};function OA(e){return function(r){return e.apply(null,r)}}function AA(e){return J.isObject(e)&&e.isAxiosError===!0}const rh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(rh).forEach(([e,t])=>{rh[t]=e});function _x(e){const t=new Rs(e),r=rx(Rs.prototype.request,t);return J.extend(r,Rs.prototype,t,{allOwnKeys:!0}),J.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return _x(Ts(e,i))},r}const xt=_x(Sl);xt.Axios=Rs;xt.CanceledError=Ki;xt.CancelToken=jA;xt.isCancel=yx;xt.VERSION=Ex;xt.toFormData=Wc;xt.AxiosError=Ve;xt.Cancel=xt.CanceledError;xt.all=function(t){return Promise.all(t)};xt.spread=OA;xt.isAxiosError=AA;xt.mergeConfig=Ts;xt.AxiosHeaders=mn;xt.formToJSON=e=>vx(J.isHTMLForm(e)?new FormData(e):e);xt.getAdapter=Cx.getAdapter;xt.HttpStatusCode=rh;xt.default=xt;const{Axios:nD,AxiosError:rD,CanceledError:oD,isCancel:sD,CancelToken:iD,VERSION:aD,all:lD,Cancel:uD,isAxiosError:cD,spread:dD,toFormData:fD,AxiosHeaders:pD,HttpStatusCode:hD,formToJSON:mD,getAdapter:gD,mergeConfig:vD}=xt,sr=xt.create({baseURL:"/api"}),DA=async e=>(await sr.post("/enumerate/molecule",e)).data,IA=async e=>(await sr.post("/enumerate/site",e)).data,MA=async e=>(await sr.get(`/jobs/${e}`)).data,$A=async e=>(await sr.post(`/jobs/${e}/cancel`)).data,LA=async()=>(await sr.get("/info/mode")).data.mode,kx=async()=>(await sr.get("/info/limits")).data,Px=async()=>(await sr.get("/info/building-blocks")).data.building_blocks,FA=async e=>(await sr.post("/utils/smiles-to-mol",{smiles:e})).data.molblock,Tx=async()=>(await sr.get("/utils/reaction-tags")).data,zA=async e=>(await sr.post("/utils/render-mol-with-indices",{smiles:e})).data,VA=async(e,t,r,s)=>(await sr.post("/utils/render-result",{smiles:e,bbs:t,alpha:r,bgColor:s})).data.svg,BA=e=>`/api/jobs/${e}/download`,ab=["amide coupling","amide","C-N bond formation","C-N","alkylation","N-arylation","azole","amination"],xn=({label:e,tooltip:t})=>y.jsxs(yt,{gap:5,children:[y.jsx(at,{size:"sm",fw:500,children:e}),y.jsx(As,{label:t,multiline:!0,w:220,withArrow:!0,children:y.jsx(Nm,{size:14,style:{cursor:"help",color:"var(--mantine-color-dimmed)"}})})]});function UA({onSubmit:e,isLoading:t,isMultiFragment:r}){const[s,i]=C.useState(!1),[l,u]=C.useState(ab),[d,p]=C.useState([{value:"test_100_bb_processed.sdf",label:"Test Set (100 BBs)"}]),[f,m]=C.useState(null),[g,w]=C.useState(!1);C.useEffect(()=>{Tx().then(b=>{b&&b.length>0&&u(b)}).catch(b=>console.error("Failed to fetch reaction tags",b)),Px().then(b=>{b&&b.length>0&&p(b)}).catch(b=>console.error("Failed to fetch building blocks",b)),kx().then(b=>{m(b.limits),w(b.server_mode)}).catch(b=>console.error("Failed to fetch server limits",b))},[]);const S=nx({initialValues:{bb_source:"test_100_bb_processed.sdf",reaction_tags:ab,sim_threshold:.5,n_compositions:10,randomize_compositions:!1,random_seed:-1,retro_tree_depth:1,min_frag_size:7,max_bbs_per_frag:0,shuffle_bb_order:!1,max_evals_per_comp:1e3,max_products_per_comp:100,max_total_products:1e3,custom_sites_str:""}});C.useEffect(()=>{d.length>0&&!d.find(b=>b.value===S.values.bb_source)&&S.setFieldValue("bb_source",d[0].value)},[d]);const x=b=>{let E;if(b.custom_sites_str&&b.custom_sites_str.trim())try{const k=b.custom_sites_str.split(/[;,]+/).map(T=>T.trim()).map(T=>{const j=T.split("-").map(O=>parseInt(O.trim()));return j.length===2&&!isNaN(j[0])&&!isNaN(j[1])?j:null}).filter(T=>T!==null);k.length>0&&(E=k)}catch(P){console.error("Failed to parse custom sites",P)}const R={bb_source:b.bb_source,reaction_tags:b.reaction_tags,sim_threshold:b.sim_threshold,n_compositions:b.n_compositions,randomize_compositions:b.randomize_compositions,random_seed:b.random_seed,retro_tree_depth:b.retro_tree_depth,min_frag_size:b.min_frag_size,max_bbs_per_frag:b.max_bbs_per_frag,shuffle_bb_order:b.shuffle_bb_order,max_evals_per_comp:b.max_evals_per_comp,max_products_per_comp:b.max_products_per_comp,max_total_products:b.max_total_products,use_fragment_healer:r,custom_sites:E};e(R)};return y.jsx("form",{onSubmit:S.onSubmit(x),children:y.jsxs(tr,{gap:"md",children:[y.jsxs(at,{size:"sm",c:"dimmed",children:["Enumerate libraries starting from a whole molecule by retrosynthetically fragmenting it. You can also provide a multi-fragment molecule to use ",y.jsx("b",{children:"Fragment HEALER"}),"."]}),r&&y.jsx(Dc,{icon:y.jsx(Cj,{size:16}),title:"Fragment Mode Detected",color:"blue",children:"Multi-component molecule detected. System will use Fragment HEALER."}),y.jsx(Fc,{label:y.jsx(xn,{label:"Building Block Source",tooltip:"Choose the library of building blocks to use for enumeration."}),data:d,...S.getInputProps("bb_source")}),y.jsx(Mc,{label:y.jsx(xn,{label:"Reaction Tags",tooltip:`Select reaction tags to specify the reaction chemistry. One tag may point to multiple reaction.${g&&f?` Server max: ${f.max_reaction_tags}`:""}`}),data:l,searchable:!0,maxValues:g&&f?f.max_reaction_tags:20,...S.getInputProps("reaction_tags")}),y.jsxs(Hr,{withBorder:!0,p:"md",bg:"var(--mantine-color-gray-0)",children:[y.jsx(yt,{justify:"space-between",mb:"xs",children:y.jsx(xn,{label:`Similarity Threshold: ${S.values.sim_threshold}`,tooltip:`Minimum Tanimoto similarity required between a fragment and a building block.${g&&f?` Server limit: ${f.sim_threshold_min}-${f.sim_threshold_max}`:""}`})}),y.jsx(gm,{min:g&&f?f.sim_threshold_min:0,max:g&&f?f.sim_threshold_max:1,step:.01,label:b=>b.toFixed(2),...S.getInputProps("sim_threshold")})]}),y.jsx(Mn,{variant:"subtle",size:"xs",onClick:()=>i(!s),children:s?"Hide Advanced Options":"Show Advanced Options"}),y.jsx(Ka,{in:s,children:y.jsxs(tr,{gap:"md",children:[y.jsx(el,{label:y.jsx(xn,{label:"Split Sites",tooltip:"Manually specify bonds to break using atom indices (e.g., '1-2, 3-4'). This will disable the retrosynthesis."}),placeholder:"e.g., 9-10, 6-9",...S.getInputProps("custom_sites_str")}),y.jsxs(yt,{grow:!0,align:"flex-start",children:[y.jsxs(yt,{grow:!0,align:"center",gap:4,children:[y.jsx(xn,{label:"Shuffle Compositions",tooltip:"Shuffle the order of fragment compositions."}),y.jsx(Ii,{...S.getInputProps("randomize_compositions",{type:"checkbox"})})]}),y.jsxs(yt,{grow:!0,align:"center",gap:4,children:[y.jsx(xn,{label:"Shuffle BB Order",tooltip:"Shuffle the order of building blocks within the library."}),y.jsx(Ii,{...S.getInputProps("shuffle_bb_order",{type:"checkbox"})})]})]}),y.jsxs(yt,{grow:!0,children:[y.jsx(Dn,{label:y.jsx(xn,{label:"N Compositions",tooltip:`Number of different fragment compositions to explore.${g&&f?` Server max: ${f.n_compositions_max}`:""}`}),min:1,max:g&&f?f.n_compositions_max:100,...S.getInputProps("n_compositions")}),y.jsx(Dn,{label:y.jsx(xn,{label:"Max BBs per Fragment",tooltip:`Use top N building blocks per fragment instead of similarity threshold. Set 0 to disable.${g&&f?` Server max: ${f.max_bbs_per_frag}`:""}`}),min:0,max:g&&f?f.max_bbs_per_frag:100,...S.getInputProps("max_bbs_per_frag")})]}),y.jsx(Dn,{label:y.jsx(xn,{label:"Max Evals / Comp",tooltip:`Maximum number of reaction attempts per composition.${g&&f?` Server max: ${f.max_evals_per_comp}`:""}`}),min:1,max:g&&f?f.max_evals_per_comp:1e5,...S.getInputProps("max_evals_per_comp")}),y.jsxs(yt,{grow:!0,children:[y.jsx(Dn,{label:y.jsx(xn,{label:"Max Products / Comp",tooltip:`Maximum number of products to generate per composition.${g&&f?` Server max: ${f.max_products_per_comp}`:""}`}),min:1,max:g&&f?f.max_products_per_comp:void 0,placeholder:"Unlimited",...S.getInputProps("max_products_per_comp")}),y.jsx(Dn,{label:y.jsx(xn,{label:"Max Total Products",tooltip:`Stop enumeration after generating this many products total.${g&&f?` Server max: ${f.max_total_products}`:""}`}),min:1,max:g&&f?f.max_total_products:void 0,placeholder:"Unlimited",...S.getInputProps("max_total_products")})]}),y.jsxs(yt,{grow:!0,children:[y.jsx(Dn,{label:y.jsx(xn,{label:"Retro Depth",tooltip:`Depth of the retrosynthetic tree search.${g&&f?` Server max: ${f.retro_depth_max}`:""}`}),min:1,max:g&&f?f.retro_depth_max:5,...S.getInputProps("retro_tree_depth")}),y.jsx(Dn,{label:y.jsx(xn,{label:"Min Frag Size",tooltip:`Minimum number of heavy atoms for a fragment to be valid.${g&&f?` Server min: ${f.min_frag_size_min}`:""}`}),min:g&&f?f.min_frag_size_min:1,max:15,...S.getInputProps("min_frag_size")})]})]})}),y.jsx(Mn,{type:"submit",loading:t,fullWidth:!0,size:"md",children:"Enumerate"})]})})}const lp=["amide coupling","amide","C-N bond formation","C-N","alkylation","N-arylation","azole","amination"],Co=({label:e,tooltip:t})=>y.jsxs(yt,{gap:5,children:[y.jsx(at,{size:"sm",fw:500,children:e}),y.jsx(As,{label:t,multiline:!0,w:220,withArrow:!0,children:y.jsx(Nm,{size:14,style:{cursor:"help",color:"var(--mantine-color-dimmed)"}})})]});function HA({onSubmit:e,isLoading:t}){const[r,s]=C.useState(!1),[i,l]=C.useState(!1),[u,d]=C.useState(lp),[p,f]=C.useState([{value:"test_100_bb_processed.sdf",label:"Test Set (100 BBs)"}]),[m,g]=C.useState(null),[w,S]=C.useState(!1);C.useEffect(()=>{Tx().then(R=>{R&&R.length>0&&d(R)}).catch(R=>console.error("Failed to fetch reaction tags",R)),Px().then(R=>{R&&R.length>0&&f(R)}).catch(R=>console.error("Failed to fetch building blocks",R)),kx().then(R=>{g(R.limits),S(R.server_mode)}).catch(R=>console.error("Failed to fetch server limits",R))},[]);const x=nx({initialValues:{bb_source:"test_100_bb_processed.sdf",reaction_tags:lp,reactive_sites_str:"",struct_rules_str:"",shuffle_bb_order:!1,max_evals_per_comp:1e4,max_products_per_comp:1e3,max_total_products:1e3,rule_MW:[0,250],rule_HBD:[0,2],rule_HBA:[0,5],rule_TPSA:[0,60],rule_RotB:[0,5],rule_Rings:[0,3],rule_ArRings:[0,1],rule_Chiral:[0,1]}});C.useEffect(()=>{p.length>0&&!p.find(R=>R.value===x.values.bb_source)&&x.setFieldValue("bb_source",p[0].value)},[p]),C.useEffect(()=>{x.setFieldValue("reaction_tags",lp)},[]);const b=R=>{let P;R.reactive_sites_str&&R.reactive_sites_str.trim()&&(P=R.reactive_sites_str.split(",").map(O=>parseInt(O.trim())).filter(O=>!isNaN(O)),P.length===0&&(P=void 0));let k;R.struct_rules_str&&R.struct_rules_str.trim()&&(k=R.struct_rules_str.split(",").map(O=>O.trim()).filter(O=>O.length>0));const T={MW:R.rule_MW,HBD:R.rule_HBD,HBA:R.rule_HBA,TPSA:R.rule_TPSA,RotB:R.rule_RotB,Rings:R.rule_Rings,ArRings:R.rule_ArRings,Chiral:R.rule_Chiral},j={bb_source:R.bb_source,reaction_tags:R.reaction_tags,reactive_sites:P,rules:T,struct_rules:k,shuffle_bb_order:R.shuffle_bb_order,max_evals_per_comp:R.max_evals_per_comp,max_products_per_comp:R.max_products_per_comp,max_total_products:R.max_total_products};e(j)},E=(R,P,k,T,j=1)=>{const O=x.values[P];return y.jsxs(Hr,{withBorder:!0,p:"xs",bg:"var(--mantine-color-gray-0)",children:[y.jsxs(at,{size:"xs",fw:500,mb:4,children:[R,": ",O[0]," - ",O[1]]}),y.jsx(vm,{min:k,max:T,step:j,minRange:j,...x.getInputProps(P)})]})};return y.jsx("form",{onSubmit:x.onSubmit(b),children:y.jsxs(tr,{gap:"md",children:[y.jsx(at,{size:"sm",c:"dimmed",children:"Enumerate libraries by attaching building blocks to specific reactive sites on the molecule. Use the filters below to restrict building blocks based on their properties. You can also set substructure rules using SMARTS patterns to further refine the selection."}),y.jsx(Fc,{label:y.jsx(Co,{label:"Building Block Source",tooltip:"Choose the library of building blocks to use for enumeration."}),data:p,...x.getInputProps("bb_source")}),y.jsx(Mc,{label:y.jsx(Co,{label:"Reaction Tags",tooltip:`Select reaction tags to specify the reaction chemistry. One tag may point to multiple reaction.${w&&m?` Server max: ${m.max_reaction_tags}`:""}`}),data:u,searchable:!0,maxValues:w&&m?m.max_reaction_tags:20,...x.getInputProps("reaction_tags")}),y.jsx(el,{label:y.jsx(Co,{label:"Reactive Sites (Indices)",tooltip:"Comma-separated atom indices to target (e.g., '1, 5'). Leave empty for all sites."}),placeholder:"e.g., 1, 5 (Leave empty for all)",...x.getInputProps("reactive_sites_str")}),y.jsx(Mn,{variant:"subtle",size:"xs",onClick:()=>s(!r),children:r?"Hide BB Filters":"Show BB Filters (Properties)"}),y.jsx(Ka,{in:r,children:y.jsxs(tr,{gap:"xs",children:[E("Molecular Weight","rule_MW",0,500,10),E("H-Bond Donors","rule_HBD",0,5),E("H-Bond Acceptors","rule_HBA",0,10),E("TPSA","rule_TPSA",0,120,5),E("Rotatable Bonds","rule_RotB",0,10),E("Total Rings","rule_Rings",0,5),E("Aromatic Rings","rule_ArRings",0,5),E("Chiral Centers","rule_Chiral",0,5)]})}),y.jsx(Mn,{variant:"subtle",size:"xs",onClick:()=>l(!i),children:i?"Hide Advanced Options":"Show Advanced Options"}),y.jsx(Ka,{in:i,children:y.jsxs(tr,{gap:"md",children:[y.jsx(el,{label:y.jsx(Co,{label:"Structure Rules (SMARTS)",tooltip:"Comma-separated SMARTS patterns that building blocks must contain."}),placeholder:"e.g., c1ccccc1, [CX3](=O)[OX2H1]",...x.getInputProps("struct_rules_str")}),y.jsx(Ii,{label:y.jsx(Co,{label:"Shuffle BB Order",tooltip:"Randomize the order of building blocks within the library."}),...x.getInputProps("shuffle_bb_order",{type:"checkbox"})}),y.jsx(Dn,{label:y.jsx(Co,{label:"Max Evals / Comp",tooltip:`Maximum number of reaction attempts per composition.${w&&m?` Server max: ${m.max_evals_per_comp}`:""}`}),min:1,max:w&&m?m.max_evals_per_comp:1e5,...x.getInputProps("max_evals_per_comp")}),y.jsxs(yt,{grow:!0,children:[y.jsx(Dn,{label:y.jsx(Co,{label:"Max Products / Comp",tooltip:`Maximum number of products to generate per composition.${w&&m?` Server max: ${m.max_products_per_comp}`:""}`}),min:1,max:w&&m?m.max_products_per_comp:void 0,placeholder:"Unlimited",...x.getInputProps("max_products_per_comp")}),y.jsx(Dn,{label:y.jsx(Co,{label:"Max Total Products",tooltip:`Stop enumeration after generating this many products total.${w&&m?` Server max: ${m.max_total_products}`:""}`}),min:1,max:w&&m?m.max_total_products:void 0,placeholder:"Unlimited",...x.getInputProps("max_total_products")})]})]})}),y.jsx(Mn,{type:"submit",loading:t,fullWidth:!0,size:"md",color:"violet",children:"Enumerate Sites"})]})})}const WA={green:"rgba(72, 173, 85, 0.06)",yellow:"rgba(235, 235, 52, 0.06)",red:"rgba(235, 64, 52, 0.06)"};function QA({smiles:e,bbs:t,alpha:r,bgColor:s}){const[i,l]=C.useState(null),[u,d]=C.useState(!0);return C.useEffect(()=>{let p=!0;return d(!0),VA(e,t,r,s).then(f=>{p&&(l(f),d(!1))}).catch(()=>{p&&d(!1)}),()=>{p=!1}},[e,JSON.stringify(t),r,s]),u?y.jsx(Uo,{size:"xs"}):i?y.jsx(yi,{src:i,w:200}):y.jsx(at,{size:"xs",c:"dimmed",children:"Error"})}function qA({row:e,bbKeys:t}){var d,p;const[r,s]=C.useState(!1),i=C.useMemo(()=>t.map(f=>e[f]).filter(Boolean),[e,t]),l=e.stoplight_color?e.stoplight_color.toLowerCase():"",u=WA[l]||"rgba(255, 255, 255, 1.0)";return y.jsxs(Le.Tr,{bg:u,children:[y.jsx(Le.Td,{onClick:()=>s(!r),style:{cursor:"pointer"},children:r?y.jsx(QA,{smiles:e.Product,bbs:i,alpha:.8,bgColor:u}):y.jsxs(y.Fragment,{children:[y.jsx(at,{size:"xs",c:"dimmed",fs:"italic",children:"Click to view structure"}),y.jsx(at,{size:"xs",mt:4,style:{fontFamily:"monospace"},children:e.Product})]})}),y.jsx(Le.Td,{style:{minWidth:80},ta:"center",children:(d=e.Similarity_to_query)==null?void 0:d.toFixed(2)}),y.jsx(Le.Td,{style:{minWidth:80},ta:"center",children:(p=e.QED)==null?void 0:p.toFixed(2)}),y.jsx(Le.Td,{style:{whiteSpace:"normal",minWidth:"180px"},children:e.Reaction_name&&y.jsx(Yh,{variant:"light",color:"blue",style:{textTransform:"none",height:"auto",padding:"4px 8px",whiteSpace:"normal",display:"block",lineHeight:"1.4",textAlign:"left"},children:e.Reaction_name})}),t.map(f=>{const m=f.replace("BB","URL"),g=e[m]||(f==="BB"?e.URL:void 0);return y.jsx(Le.Td,{style:{fontFamily:"monospace",fontSize:"12px",maxWidth:"150px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:e[f],children:g?y.jsx(Yn,{href:g,target:"_blank",size:"xs",inherit:!0,style:{textDecoration:"underline"},children:e[f]}):e[f]},f)})]})}function KA({results:e}){if(!e||e.length===0)return y.jsx(at,{ta:"center",c:"dimmed",my:"xl",children:"No results to display"});const t=parseInt("250"),r=e.slice(0,t),s=["Product","Similarity_to_query","Reaction_name","stoplight_color","QED"],i=C.useMemo(()=>{const l=new Set;return r.forEach(u=>{Object.keys(u).forEach(d=>{d.startsWith("BB")&&!s.includes(d)&&l.add(d)})}),Array.from(l).sort((u,d)=>{const p=parseInt(u.replace("BB",""))||0,f=parseInt(d.replace("BB",""))||0;return p-f})},[r]);return y.jsxs(tr,{gap:"sm",children:[y.jsxs(Dc,{icon:y.jsx(Nm,{size:16}),title:"Results Legend",color:"gray",variant:"light",children:[y.jsxs(yt,{gap:"md",children:[y.jsxs(yt,{gap:"xs",children:[y.jsx(Wa,{color:"rgba(72, 173, 85, 0.6)",size:14})," ",y.jsx(at,{size:"sm",children:"High Drug-likeness (Green)"})]}),y.jsxs(yt,{gap:"xs",children:[y.jsx(Wa,{color:"rgba(235, 235, 52, 0.6)",size:14})," ",y.jsx(at,{size:"sm",children:"Medium Drug-likeness (Yellow)"})]}),y.jsxs(yt,{gap:"xs",children:[y.jsx(Wa,{color:"rgba(235, 64, 52, 0.6)",size:14})," ",y.jsx(at,{size:"sm",children:"Low Drug-likeness (Red)"})]})]}),y.jsxs(at,{size:"xs",mt:"xs",children:["The table below displays the first ",t," enumeration results at max. Columns are also truncated for simplicity. To view the complete data, download the full results. Rows are colored based on"," ",y.jsx(Yn,{href:"https://doi.org/10.1021/acs.jcim.4c00412",target:"_blank",inherit:!0,children:"Stoplight Scores"}),", which is a drug-likeness indicator. Click on a row to visualize the molecule. The building blocks are highlighted in the structure but may not be accurate always. You can also click on building block IDs to visit their source page (if available)."]})]}),y.jsx(Os,{h:600,children:y.jsxs(Le,{striped:!0,highlightOnHover:!0,verticalSpacing:"sm",children:[y.jsx(Le.Thead,{children:y.jsxs(Le.Tr,{children:[y.jsx(Le.Th,{w:220,children:"Product"}),y.jsx(Le.Th,{w:80,ta:"center",children:"Sim."}),y.jsx(Le.Th,{w:80,ta:"center",children:"QED"}),y.jsx(Le.Th,{w:200,children:"Reaction Path"}),i.map(l=>y.jsx(Le.Th,{children:l},l))]})}),y.jsx(Le.Tbody,{children:r.map((l,u)=>y.jsx(qA,{row:l,bbKeys:i},u))})]})})]})}function GA(){var te,ee,ne;const{colorScheme:e,toggleColorScheme:t}=kR(),r=C.useRef(null),[s,i]=C.useState("molecule"),[l,u]=C.useState(null),[d,p]=C.useState([]),[f,m]=C.useState(!1),[g,w]=C.useState("local"),[S,x]=C.useState(null),[b,E]=C.useState(!0),[R,P]=C.useState(void 0);C.useEffect(()=>{LA().then(w).catch(()=>w("local")),FA("COC1=CC=CC=C1OCCNCC(COC2=CC=CC3=C2C4=CC=CC=C4N3)O").then(P).catch(console.error)},[]);const k=rp({mutationFn:$A,onSuccess:()=>{Tt.show({title:"Cancelled",message:"Job has been cancelled",color:"orange"}),u(null)},onError:G=>{Tt.show({title:"Error",message:G.message||"Failed to cancel job",color:"red"})}}),T=rp({mutationFn:DA,onSuccess:G=>{u(G.job_id),Tt.show({title:"Molecule Job Submitted",message:"Enumeration started...",color:"blue"}),p([])},onError:G=>{Tt.show({title:"Error",message:G.message||"Failed to submit job",color:"red"})}}),j=rp({mutationFn:IA,onSuccess:G=>{u(G.job_id),Tt.show({title:"Site Job Submitted",message:"Enumeration started...",color:"violet"}),p([])},onError:G=>{Tt.show({title:"Error",message:G.message||"Failed to submit job",color:"red"})}}),O=wj({queryKey:["jobStatus",l],queryFn:()=>MA(l),enabled:!!l,refetchInterval:G=>{var Z,B;return((Z=G==null?void 0:G.state.data)==null?void 0:Z.status)==="SUCCESS"||((B=G==null?void 0:G.state.data)==null?void 0:B.status)==="FAILURE"?!1:2e3}});C.useEffect(()=>{var G,Z;if(((G=O.data)==null?void 0:G.status)==="SUCCESS"&&d.length===0&&O.data.result){const B=O.data.result.display||[];p(B),B.length<=1?Tt.show({title:"No New Molecules Found",message:"Only the input molecule was returned. Try adjusting the parameters.",color:"orange"}):Tt.show({title:"Success",message:`Enumeration completed! Generated ${B.length} molecules.`,color:"green"})}else((Z=O.data)==null?void 0:Z.status)==="FAILURE"&&l&&(Tt.show({title:"Job Failed",message:O.data.error||"Unknown error occurred",color:"red"}),u(null))},[O.data,d.length,l]);const L=ll(async G=>{const Z=(G.match(/\./g)||[]).length;if(m(Z>=1),G)try{const B=await zA(G);x(typeof B=="string"?{svg:B}:B)}catch(B){console.error("Failed to render indices",B)}else x(null)},500),M=async G=>{if(r.current)try{const Z=await r.current.getSmiles();if(!Z){Tt.show({title:"Error",message:"Please draw a molecule first",color:"red"});return}T.mutate({...G,molecule:Z})}catch{Tt.show({title:"Error",message:"Failed to retrieve structure",color:"red"})}},Q=async G=>{if(r.current)try{const Z=await r.current.getSmiles();if(!Z){Tt.show({title:"Error",message:"Please draw a molecule first",color:"red"});return}j.mutate({...G,molecule:Z})}catch{Tt.show({title:"Error",message:"Failed to retrieve structure",color:"red"})}},q=T.isPending||j.isPending||!!l&&((te=O.data)==null?void 0:te.status)!=="SUCCESS"&&((ee=O.data)==null?void 0:ee.status)!=="FAILURE";return y.jsxs(em,{fluid:!0,p:"md",style:{minHeight:"100vh",backgroundColor:e==="dark"?"#1A1B1E":"#f8f9fa"},children:[y.jsxs(he,{mb:"xl",pos:"relative",children:[y.jsxs(tr,{align:"center",gap:0,children:[y.jsxs(yt,{gap:"md",align:"center",children:[y.jsx(yi,{src:"/healer_logo_no_text.png",alt:"HEALER",h:36,w:"auto",fit:"contain"}),y.jsx(Qa,{order:2,children:"HEALER Dashboard"}),y.jsx(yi,{src:"/healer_logo_no_text.png",alt:"HEALER",h:36,w:"auto",fit:"contain"})]}),y.jsx(at,{c:"dimmed",children:"Molecular enumeration using retrosynthetic analysis"})]}),y.jsx(hl,{variant:"outline",color:e==="dark"?"yellow":"blue",onClick:()=>t(),title:"Toggle color scheme",pos:"absolute",right:0,top:"50%",style:{transform:"translateY(-50%)"},children:e==="dark"?y.jsx(Lj,{size:"1.1rem"}):y.jsx(Mj,{size:"1.1rem"})})]}),y.jsx(Hr,{withBorder:!0,p:"md",mb:"xl",radius:"md",shadow:"xs",children:y.jsxs(tr,{gap:"xs",children:[y.jsxs(at,{size:"sm",children:[y.jsx("strong",{children:"HEALER"})," (Hit Expansion to Advanced Leads Using Enumerated Reactions) is a computational chemistry platform designed to accelerate lead optimization by generating synthetically accessible chemical space."]}),y.jsx(at,{size:"sm",fw:500,children:"Capabilities:"}),y.jsxs(us,{size:"sm",withPadding:!0,children:[y.jsxs(us.Item,{children:[y.jsx("strong",{children:"Molecule HEALER"}),": Deconstruct a query molecule into its constituent fragments and re-enumerate them to discover novel analogs with improved properties."]}),y.jsxs(us.Item,{children:[y.jsx("strong",{children:"Fragment HEALER"}),": Enumerate analogs for a set of fragments (e.g., from a multi-fragment query) to explore chemical space around specific motifs."]}),y.jsxs(us.Item,{children:[y.jsx("strong",{children:"Site HEALER"}),": Perform targeted enumeration at specific reactive sites to explore local SAR (Structure-Activity Relationship) while maintaining the core scaffold."]})]}),y.jsxs(at,{size:"sm",children:["Generated molecules are designed to be synthetically accessible through established reaction transforms, bridging the gap between computational design and laboratory synthesis. This server uses ",y.jsx(Yn,{href:"https://enamine.net/building-blocks/building-blocks-catalog",target:"_blank",children:"Enamine's publicly available building blocks"})," for enumeration. However, HEALER is not limited to Enamine's libraries and can be used with any custom building block collection when set up locally."]}),y.jsxs(at,{size:"sm",children:["The reaction library is available ",y.jsx(Yn,{href:"https://github.com/eneskelestemur/healer/blob/main/healer/data/reactions/reactions.json",target:"_blank",children:"here"}),". Please reach out to us if you wish to add custom reaction SMARTS. You can learn more about the reaction library format at ",y.jsx(Yn,{href:"https://github.com/eneskelestemur/healer?tab=readme-ov-file#contributing-reactions",target:"_blank",children:"Contributing Reactions"}),"."]}),y.jsxs(at,{size:"sm",children:["To raise issues, suggest features, contribute to the project, or open discussions, please use the ",y.jsx(Yn,{href:"https://github.com/eneskelestemur/healer/issues",target:"_blank",children:"GitHub Issues Page"}),"."]}),y.jsx(tm,{variant:"dashed",label:"Usage & Privacy",labelPosition:"center"}),y.jsxs(at,{size:"xs",c:"dimmed",children:[y.jsx("strong",{children:"Note:"})," This web interface applies certain limits to input parameters to ensure stable performance. For unrestricted access, please follow the setup instructions on ",y.jsx(Yn,{href:"https://github.com/eneskelestemur/healer",target:"_blank",children:"GitHub"})," to use HEALER via the CLI, Python API, or a local UI instance."]}),y.jsxs(at,{size:"xs",c:"dimmed",children:[y.jsx("strong",{children:"Privacy:"})," This server does not collect or store your query molecules or generated results. All processing is performed in-memory or via temporary job queues."]}),y.jsxs(yt,{gap:"xs",mt:"xs",children:[y.jsx(Yn,{href:"#",size:"xs",target:"_blank",fw:700,children:"[Cite HEALER Paper]"}),y.jsx(at,{size:"xs",c:"dimmed",children:"|"}),y.jsx(Yn,{href:"https://github.com/eneskelestemur/healer",size:"xs",target:"_blank",fw:700,children:"HEALER GitHub Repo"})]})]})}),y.jsxs(Jn,{value:s,onChange:i,variant:"pills",radius:"md",mb:"md",children:[y.jsxs(Jn.List,{grow:!0,children:[y.jsx(Jn.Tab,{value:"molecule",color:"blue",leftSection:y.jsx(Rj,{size:16}),children:"Molecule HEALER"}),y.jsx(Jn.Tab,{value:"site",color:"violet",leftSection:y.jsx(Aj,{size:16}),children:"Site HEALER"})]}),y.jsxs(Lr,{mt:"md",children:[y.jsx(Lr.Col,{span:{base:12,md:5,lg:4},children:y.jsxs(Hr,{p:"md",withBorder:!0,shadow:"sm",children:[y.jsx(Qa,{order:4,mb:"md",children:"Parameters"}),y.jsx(Jn.Panel,{value:"molecule",children:y.jsx(UA,{onSubmit:M,isLoading:q,isMultiFragment:f})}),y.jsx(Jn.Panel,{value:"site",children:y.jsx(HA,{onSubmit:Q,isLoading:q})})]})}),y.jsx(Lr.Col,{span:{base:12,md:7,lg:8},children:y.jsxs(tr,{gap:"md",children:[y.jsx(Hr,{withBorder:!0,shadow:"sm",p:0,style:{overflow:"hidden"},children:y.jsx(Vj,{ref:r,onStructChange:L,initialMolfile:R})}),S&&y.jsxs(Hr,{withBorder:!0,p:"xs",children:[y.jsxs(yt,{justify:"space-between",mb:"xs",children:[y.jsx(at,{size:"sm",fw:500,children:"Atom Indices Reference (for Reactive/Split Sites)"}),y.jsx(Mn,{variant:"subtle",size:"xs",leftSection:b?y.jsx(Tj,{size:14}):y.jsx(jj,{size:14}),onClick:()=>E(!b),children:b?"Hide":"Show"})]}),y.jsx(Ka,{in:b,children:y.jsxs(Lr,{children:[y.jsx(Lr.Col,{span:6,children:y.jsx(yi,{src:S.svg,fit:"contain",bg:"white",p:"xs"})}),y.jsxs(Lr.Col,{span:6,children:[y.jsx(at,{size:"xs",fw:700,mb:5,children:"Properties"}),S.properties&&y.jsx(Le,{withTableBorder:!0,withColumnBorders:!0,children:y.jsxs(Le.Tbody,{children:[y.jsxs(Le.Tr,{children:[y.jsx(Le.Td,{children:"MW"}),y.jsx(Le.Td,{children:S.properties.MW})]}),y.jsxs(Le.Tr,{children:[y.jsx(Le.Td,{children:"LogP"}),y.jsx(Le.Td,{children:S.properties.LogP})]}),y.jsxs(Le.Tr,{children:[y.jsx(Le.Td,{children:"HBA"}),y.jsx(Le.Td,{children:S.properties.HBA})]}),y.jsxs(Le.Tr,{children:[y.jsx(Le.Td,{children:"HBD"}),y.jsx(Le.Td,{children:S.properties.HBD})]}),y.jsxs(Le.Tr,{children:[y.jsx(Le.Td,{children:"TPSA"}),y.jsx(Le.Td,{children:S.properties.TPSA})]}),y.jsxs(Le.Tr,{children:[y.jsx(Le.Td,{children:"QED"}),y.jsx(Le.Td,{children:S.properties.QED})]})]})})]})]})})]}),y.jsxs(Hr,{p:"md",withBorder:!0,shadow:"sm",children:[y.jsxs(yt,{justify:"space-between",mb:"sm",children:[y.jsxs(Qa,{order:4,mb:"sm",children:["Results ",d.length>0&&`(${d.length})`]}),((ne=O.data)==null?void 0:ne.status)==="SUCCESS"&&l&&y.jsx(yt,{justify:"flex-end",children:y.jsx(Mn,{component:"a",href:BA(l),leftSection:y.jsx(kj,{size:16}),variant:"outline",color:"green",children:"Download Results (CSV)"})})]}),q&&y.jsxs(yt,{gap:"sm",mb:"sm",children:[y.jsx(at,{children:"Processing..."}),y.jsx(As,{label:g==="local"?"Cancel not available in local mode":"Cancel job",withArrow:!0,children:y.jsx(Mn,{size:"xs",color:"red",variant:"light",leftSection:y.jsx(zj,{size:14}),disabled:g==="local"||!l,loading:k.isPending,onClick:()=>l&&k.mutate(l),children:"Cancel"})})]}),y.jsx(KA,{results:d})]})]})})]})]})]})}const XA={primaryColor:"blue",fontFamily:"system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif"},YA=new aj({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});TC.createRoot(document.getElementById("root")).render(y.jsx(St.StrictMode,{children:y.jsx(lj,{client:YA,children:y.jsxs(Wb,{theme:XA,defaultColorScheme:"light",children:[y.jsx(eo,{position:"top-right"}),y.jsx(GA,{})]})})}));